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
845 LLVM_ENUM_ASM_PRINTERS
891 CONVENIENCE_LTDL_TRUE
892 CONVENIENCE_LTDL_FALSE
932 ENABLE_VISIBILITY_INLINES_HIDDEN
938 ac_precious_vars='build_alias
952 ac_subdirs_all='projects/sample
954 projects/llvm-stacker
961 projects/llvm-poolalloc
963 projects/llvm-kernel'
965 # Initialize some variables set by options.
967 ac_init_version=false
968 # The variables have the same names as the options, with
969 # dashes changed to underlines.
977 program_transform_name=s,x,x,
985 # Installation directory options.
986 # These are left unexpanded so users can "make install exec_prefix=/foo"
987 # and all the variables that are supposed to be based on exec_prefix
988 # by default will actually change.
989 # Use braces instead of parens because sh, perl, etc. also accept them.
990 # (The list follows the same order as the GNU Coding Standards.)
991 bindir='${exec_prefix}/bin'
992 sbindir='${exec_prefix}/sbin'
993 libexecdir='${exec_prefix}/libexec'
994 datarootdir='${prefix}/share'
995 datadir='${datarootdir}'
996 sysconfdir='${prefix}/etc'
997 sharedstatedir='${prefix}/com'
998 localstatedir='${prefix}/var'
999 includedir='${prefix}/include'
1000 oldincludedir='/usr/include'
1001 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1002 infodir='${datarootdir}/info'
1007 libdir='${exec_prefix}/lib'
1008 localedir='${datarootdir}/locale'
1009 mandir='${datarootdir}/man'
1015 # If the previous option needs an argument, assign it.
1016 if test -n "$ac_prev"; then
1017 eval $ac_prev=\$ac_option
1023 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1027 # Accept the important Cygnus configure options, so we can diagnose typos.
1029 case $ac_dashdash$ac_option in
1033 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1035 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1036 bindir=$ac_optarg ;;
1038 -build | --build | --buil | --bui | --bu)
1039 ac_prev=build_alias ;;
1040 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1041 build_alias=$ac_optarg ;;
1043 -cache-file | --cache-file | --cache-fil | --cache-fi \
1044 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1045 ac_prev=cache_file ;;
1046 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1047 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1048 cache_file=$ac_optarg ;;
1050 --config-cache | -C)
1051 cache_file=config.cache ;;
1053 -datadir | --datadir | --datadi | --datad)
1055 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1056 datadir=$ac_optarg ;;
1058 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1059 | --dataroo | --dataro | --datar)
1060 ac_prev=datarootdir ;;
1061 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1062 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1063 datarootdir=$ac_optarg ;;
1065 -disable-* | --disable-*)
1066 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1069 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1072 eval enable_$ac_feature=no ;;
1074 -docdir | --docdir | --docdi | --doc | --do)
1076 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1077 docdir=$ac_optarg ;;
1079 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1082 dvidir=$ac_optarg ;;
1084 -enable-* | --enable-*)
1085 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1088 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1089 { (exit 1); exit 1; }; }
1090 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1091 eval enable_$ac_feature=\$ac_optarg ;;
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
1100 exec_prefix=$ac_optarg ;;
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
1113 -host | --host | --hos | --ho)
1114 ac_prev=host_alias ;;
1115 -host=* | --host=* | --hos=* | --ho=*)
1116 host_alias=$ac_optarg ;;
1118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1122 htmldir=$ac_optarg ;;
1124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
1129 includedir=$ac_optarg ;;
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134 infodir=$ac_optarg ;;
1136 -libdir | --libdir | --libdi | --libd)
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139 libdir=$ac_optarg ;;
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
1146 libexecdir=$ac_optarg ;;
1148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1153 -localstatedir | --localstatedir | --localstatedi | --localstated \
1154 | --localstate | --localstat | --localsta | --localst | --locals)
1155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158 localstatedir=$ac_optarg ;;
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163 mandir=$ac_optarg ;;
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170 | --no-cr | --no-c | -n)
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184 oldincludedir=$ac_optarg ;;
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189 prefix=$ac_optarg ;;
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196 program_prefix=$ac_optarg ;;
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203 program_suffix=$ac_optarg ;;
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
1220 program_transform_name=$ac_optarg ;;
1222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1227 -psdir | --psdir | --psdi | --psd | --ps)
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240 sbindir=$ac_optarg ;;
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251 sharedstatedir=$ac_optarg ;;
1253 -site | --site | --sit)
1255 -site=* | --site=* | --sit=*)
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261 srcdir=$ac_optarg ;;
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268 sysconfdir=$ac_optarg ;;
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
1271 ac_prev=target_alias ;;
1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273 target_alias=$ac_optarg ;;
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
1282 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1285 { echo "$as_me: error: invalid package name: $ac_package" >&2
1286 { (exit 1); exit 1; }; }
1287 ac_package=`echo $ac_package| sed 's/-/_/g'`
1288 eval with_$ac_package=\$ac_optarg ;;
1290 -without-* | --without-*)
1291 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1294 { echo "$as_me: error: invalid package name: $ac_package" >&2
1295 { (exit 1); exit 1; }; }
1296 ac_package=`echo $ac_package | sed 's/-/_/g'`
1297 eval with_$ac_package=no ;;
1300 # Obsolete; use --with-x.
1303 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1304 | --x-incl | --x-inc | --x-in | --x-i)
1305 ac_prev=x_includes ;;
1306 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1307 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1308 x_includes=$ac_optarg ;;
1310 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1311 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1312 ac_prev=x_libraries ;;
1313 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1314 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1315 x_libraries=$ac_optarg ;;
1317 -*) { echo "$as_me: error: unrecognized option: $ac_option
1318 Try \`$0 --help' for more information." >&2
1319 { (exit 1); exit 1; }; }
1323 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1326 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1327 { (exit 1); exit 1; }; }
1328 eval $ac_envvar=\$ac_optarg
1329 export $ac_envvar ;;
1332 # FIXME: should be removed in autoconf 3.0.
1333 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1334 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1335 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1336 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1342 if test -n "$ac_prev"; then
1343 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1344 { echo "$as_me: error: missing argument to $ac_option" >&2
1345 { (exit 1); exit 1; }; }
1348 # Be sure to have absolute directory names.
1349 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1350 datadir sysconfdir sharedstatedir localstatedir includedir \
1351 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1352 libdir localedir mandir
1354 eval ac_val=\$$ac_var
1356 [\\/$]* | ?:[\\/]* ) continue;;
1357 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1360 { (exit 1); exit 1; }; }
1363 # There might be people who depend on the old broken behavior: `$host'
1364 # used to hold the argument of --host etc.
1365 # FIXME: To remove some day.
1368 target=$target_alias
1370 # FIXME: To remove some day.
1371 if test "x$host_alias" != x; then
1372 if test "x$build_alias" = x; then
1373 cross_compiling=maybe
1374 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1375 If a cross compiler is detected then cross compile mode will be used." >&2
1376 elif test "x$build_alias" != "x$host_alias"; then
1382 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1384 test "$silent" = yes && exec 6>/dev/null
1387 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388 ac_ls_di=`ls -di .` &&
1389 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390 { echo "$as_me: error: Working directory cannot be determined" >&2
1391 { (exit 1); exit 1; }; }
1392 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393 { echo "$as_me: error: pwd does not report name of working directory" >&2
1394 { (exit 1); exit 1; }; }
1397 # Find the source files, if location was not specified.
1398 if test -z "$srcdir"; then
1399 ac_srcdir_defaulted=yes
1400 # Try the directory containing this script, then the parent directory.
1401 ac_confdir=`$as_dirname -- "$0" ||
1402 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1403 X"$0" : 'X\(//\)[^/]' \| \
1404 X"$0" : 'X\(//\)$' \| \
1405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425 if test ! -r "$srcdir/$ac_unique_file"; then
1429 ac_srcdir_defaulted=no
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1432 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1433 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1434 { (exit 1); exit 1; }; }
1436 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1438 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1439 { (exit 1); exit 1; }; }
1441 # When building in place, set srcdir=.
1442 if test "$ac_abs_confdir" = "$ac_pwd"; then
1445 # Remove unnecessary trailing slashes from srcdir.
1446 # Double slashes in file names in object file debugging info
1447 # mess up M-x gdb in Emacs.
1449 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1451 for ac_var in $ac_precious_vars; do
1452 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_env_${ac_var}_value=\$${ac_var}
1454 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1455 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1459 # Report the --help message.
1461 if test "$ac_init_help" = "long"; then
1462 # Omit some internal or obsolete options to make the list less imposing.
1463 # This message is too long to be a string in the A/UX 3.1 sh.
1465 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1467 Usage: $0 [OPTION]... [VAR=VALUE]...
1469 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1470 VAR=VALUE. See below for descriptions of some of the useful variables.
1472 Defaults for the options are specified in brackets.
1475 -h, --help display this help and exit
1476 --help=short display options specific to this package
1477 --help=recursive display the short help of all the included packages
1478 -V, --version display version information and exit
1479 -q, --quiet, --silent do not print \`checking...' messages
1480 --cache-file=FILE cache test results in FILE [disabled]
1481 -C, --config-cache alias for \`--cache-file=config.cache'
1482 -n, --no-create do not create output files
1483 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1485 Installation directories:
1486 --prefix=PREFIX install architecture-independent files in PREFIX
1487 [$ac_default_prefix]
1488 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1491 By default, \`make install' will install all the files in
1492 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1493 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1494 for instance \`--prefix=\$HOME'.
1496 For better control, use the options below.
1498 Fine tuning of the installation directories:
1499 --bindir=DIR user executables [EPREFIX/bin]
1500 --sbindir=DIR system admin executables [EPREFIX/sbin]
1501 --libexecdir=DIR program executables [EPREFIX/libexec]
1502 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1503 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1504 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1505 --libdir=DIR object code libraries [EPREFIX/lib]
1506 --includedir=DIR C header files [PREFIX/include]
1507 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1508 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1509 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1510 --infodir=DIR info documentation [DATAROOTDIR/info]
1511 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1512 --mandir=DIR man documentation [DATAROOTDIR/man]
1513 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1514 --htmldir=DIR html documentation [DOCDIR]
1515 --dvidir=DIR dvi documentation [DOCDIR]
1516 --pdfdir=DIR pdf documentation [DOCDIR]
1517 --psdir=DIR ps documentation [DOCDIR]
1523 --build=BUILD configure for building on BUILD [guessed]
1524 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1525 --target=TARGET configure for building compilers for TARGET [HOST]
1529 if test -n "$ac_init_help"; then
1530 case $ac_init_help in
1531 short | recursive ) echo "Configuration of llvm 2.6svn:";;
1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1538 --enable-optimized Compile with optimizations enabled (default is NO)
1539 --enable-profiling Compile with profiling enabled (default is NO)
1540 --enable-assertions Compile with assertion checks enabled (default is
1542 --enable-expensive-checks
1543 Compile with expensive debug checks enabled (default
1545 --enable-debug-runtime Build runtime libs with debug symbols (default is
1547 --enable-jit Enable Just In Time Compiling (default is YES)
1548 --enable-doxygen Build doxygen documentation (default is NO)
1549 --enable-threads Use threads if available (default is YES)
1550 --enable-pic Build LLVM with Position Independent Code (default
1552 --enable-targets Build specific host targets:
1553 all,host-only,{target-name} (default=all)
1554 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1556 --enable-bindings Build specific language bindings:
1557 all,auto,none,{binding-name} (default=auto)
1558 --enable-libffi Check for the presence of libffi (default is YES)
1559 --enable-ltdl-install install libltdl
1560 --enable-shared[=PKGS] build shared libraries
1562 --enable-static[=PKGS] build static libraries
1564 --enable-fast-install[=PKGS]
1565 optimize for fast installation
1567 --disable-libtool-lock avoid locking (might break parallel builds)
1570 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1571 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1572 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1574 --with-llvmgcc Specify location of llvm-gcc driver (default
1576 --with-llvmgxx Specify location of llvm-g++ driver (default
1578 --with-extra-options Specify additional options to compile LLVM with
1579 --with-ocaml-libdir Specify install location for ocaml bindings (default
1581 --with-binutils-include Specify path to binutils/include/ containing
1582 plugin-api.h file for gold plugin.
1583 --with-tclinclude directory where tcl headers are
1584 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1585 --with-pic try to use only PIC/non-PIC objects [default=use
1587 --with-tags[=TAGS] include additional configurations [automatic]
1588 --with-udis86=<path> Use udis86 external x86 disassembler library
1590 Some influential environment variables:
1591 CC C compiler command
1592 CFLAGS C compiler flags
1593 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1594 nonstandard directory <lib dir>
1595 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1596 you have headers in a nonstandard directory <include dir>
1598 CXX C++ compiler command
1599 CXXFLAGS C++ compiler flags
1600 CXXCPP C++ preprocessor
1601 F77 Fortran 77 compiler command
1602 FFLAGS Fortran 77 compiler flags
1604 Use these variables to override the choices made by `configure' or to help
1605 it to find libraries and programs with nonstandard names/locations.
1607 Report bugs to <llvmbugs@cs.uiuc.edu>.
1612 if test "$ac_init_help" = "recursive"; then
1613 # If there are subdirs, report their specific --help.
1614 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1615 test -d "$ac_dir" || continue
1619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1622 # A ".." for each directory in $ac_dir_suffix.
1623 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1624 case $ac_top_builddir_sub in
1625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1629 ac_abs_top_builddir=$ac_pwd
1630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631 # for backward compatibility:
1632 ac_top_builddir=$ac_top_build_prefix
1635 .) # We are building in place.
1637 ac_top_srcdir=$ac_top_builddir_sub
1638 ac_abs_top_srcdir=$ac_pwd ;;
1639 [\\/]* | ?:[\\/]* ) # Absolute name.
1640 ac_srcdir=$srcdir$ac_dir_suffix;
1641 ac_top_srcdir=$srcdir
1642 ac_abs_top_srcdir=$srcdir ;;
1644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645 ac_top_srcdir=$ac_top_build_prefix$srcdir
1646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1650 cd "$ac_dir" || { ac_status=$?; continue; }
1651 # Check for guested configure.
1652 if test -f "$ac_srcdir/configure.gnu"; then
1654 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655 elif test -f "$ac_srcdir/configure"; then
1657 $SHELL "$ac_srcdir/configure" --help=recursive
1659 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1661 cd "$ac_pwd" || { ac_status=$?; break; }
1665 test -n "$ac_init_help" && exit $ac_status
1666 if $ac_init_version; then
1668 llvm configure 2.6svn
1669 generated by GNU Autoconf 2.60
1671 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1672 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1673 This configure script is free software; the Free Software Foundation
1674 gives unlimited permission to copy, distribute and modify it.
1676 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1680 cat >config.log <<_ACEOF
1681 This file contains any messages produced by compilers while
1682 running configure, to aid debugging if configure makes a mistake.
1684 It was created by llvm $as_me 2.6svn, which was
1685 generated by GNU Autoconf 2.60. Invocation command line was
1697 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1698 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1699 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1700 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1701 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1703 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1704 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1706 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1707 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1708 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1709 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1710 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1711 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1712 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 test -z "$as_dir" && as_dir=.
1721 echo "PATH: $as_dir"
1737 # Keep a trace of the command line.
1738 # Strip out --no-create and --no-recursion so they do not pile up.
1739 # Strip out --silent because we don't want to record it for future runs.
1740 # Also quote any args containing shell meta-characters.
1741 # Make two passes to allow for proper duplicate-argument suppression.
1745 ac_must_keep_next=false
1751 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1752 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1753 | -silent | --silent | --silen | --sile | --sil)
1756 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1759 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1761 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1762 if test $ac_must_keep_next = true; then
1763 ac_must_keep_next=false # Got value, back to normal.
1766 *=* | --config-cache | -C | -disable-* | --disable-* \
1767 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1768 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1769 | -with-* | --with-* | -without-* | --without-* | --x)
1770 case "$ac_configure_args0 " in
1771 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1774 -* ) ac_must_keep_next=true ;;
1777 ac_configure_args="$ac_configure_args '$ac_arg'"
1782 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1783 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1785 # When interrupted or exit'd, cleanup temporary files, and complete
1786 # config.log. We remove comments because anyway the quotes in there
1787 # would cause problems or look ugly.
1788 # WARNING: Use '\'' to represent an apostrophe within the trap.
1789 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1790 trap 'exit_status=$?
1791 # Save into config.log some information that might help in debugging.
1796 ## ---------------- ##
1797 ## Cache variables. ##
1798 ## ---------------- ##
1801 # The following way of writing the cache mishandles newlines in values,
1803 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1804 eval ac_val=\$$ac_var
1808 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1809 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1812 _ | IFS | as_nl) ;; #(
1813 *) $as_unset $ac_var ;;
1818 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1819 *${as_nl}ac_space=\ *)
1821 "s/'\''/'\''\\\\'\'''\''/g;
1822 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1825 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1833 ## ----------------- ##
1834 ## Output variables. ##
1835 ## ----------------- ##
1838 for ac_var in $ac_subst_vars
1840 eval ac_val=\$$ac_var
1842 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1844 echo "$ac_var='\''$ac_val'\''"
1848 if test -n "$ac_subst_files"; then
1850 ## ------------------- ##
1851 ## File substitutions. ##
1852 ## ------------------- ##
1855 for ac_var in $ac_subst_files
1857 eval ac_val=\$$ac_var
1859 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1861 echo "$ac_var='\''$ac_val'\''"
1866 if test -s confdefs.h; then
1876 test "$ac_signal" != 0 &&
1877 echo "$as_me: caught signal $ac_signal"
1878 echo "$as_me: exit $exit_status"
1880 rm -f core *.core core.conftest.* &&
1881 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1884 for ac_signal in 1 2 13 15; do
1885 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1889 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1890 rm -f -r conftest* confdefs.h
1892 # Predefined preprocessor variables.
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_NAME "$PACKAGE_NAME"
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_STRING "$PACKAGE_STRING"
1914 cat >>confdefs.h <<_ACEOF
1915 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1919 # Let the site file select an alternate cache file if it wants to.
1920 # Prefer explicitly selected file to automatically selected ones.
1921 if test -n "$CONFIG_SITE"; then
1922 set x "$CONFIG_SITE"
1923 elif test "x$prefix" != xNONE; then
1924 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1926 set x "$ac_default_prefix/share/config.site" \
1927 "$ac_default_prefix/etc/config.site"
1932 if test -r "$ac_site_file"; then
1933 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1934 echo "$as_me: loading site script $ac_site_file" >&6;}
1935 sed 's/^/| /' "$ac_site_file" >&5
1940 if test -r "$cache_file"; then
1941 # Some versions of bash will fail to source /dev/null (special
1942 # files actually), so we avoid doing that.
1943 if test -f "$cache_file"; then
1944 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1945 echo "$as_me: loading cache $cache_file" >&6;}
1947 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1948 *) . "./$cache_file";;
1952 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1953 echo "$as_me: creating cache $cache_file" >&6;}
1957 # Check that the precious variables saved in the cache have kept the same
1959 ac_cache_corrupted=false
1960 for ac_var in $ac_precious_vars; do
1961 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1962 eval ac_new_set=\$ac_env_${ac_var}_set
1963 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1964 eval ac_new_val=\$ac_env_${ac_var}_value
1965 case $ac_old_set,$ac_new_set in
1967 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1968 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1969 ac_cache_corrupted=: ;;
1971 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1972 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1973 ac_cache_corrupted=: ;;
1976 if test "x$ac_old_val" != "x$ac_new_val"; then
1977 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1978 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1979 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1980 echo "$as_me: former value: $ac_old_val" >&2;}
1981 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1982 echo "$as_me: current value: $ac_new_val" >&2;}
1983 ac_cache_corrupted=:
1986 # Pass precious variables to config.status.
1987 if test "$ac_new_set" = set; then
1989 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1990 *) ac_arg=$ac_var=$ac_new_val ;;
1992 case " $ac_configure_args " in
1993 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1994 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1998 if $ac_cache_corrupted; then
1999 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2000 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2001 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2002 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2003 { (exit 1); exit 1; }; }
2031 ac_cpp='$CPP $CPPFLAGS'
2032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2038 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2047 for ac_dir in autoconf "$srcdir"/autoconf; do
2048 if test -f "$ac_dir/install-sh"; then
2050 ac_install_sh="$ac_aux_dir/install-sh -c"
2052 elif test -f "$ac_dir/install.sh"; then
2054 ac_install_sh="$ac_aux_dir/install.sh -c"
2056 elif test -f "$ac_dir/shtool"; then
2058 ac_install_sh="$ac_aux_dir/shtool install -c"
2062 if test -z "$ac_aux_dir"; then
2063 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2064 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2065 { (exit 1); exit 1; }; }
2068 # These three variables are undocumented and unsupported,
2069 # and are intended to be withdrawn in a future Autoconf release.
2070 # They can cause serious problems if a builder's source tree is in a directory
2071 # whose full name contains unusual characters.
2072 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2073 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2074 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2078 if test ${srcdir} != "." ; then
2079 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2080 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2081 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2082 { (exit 1); exit 1; }; }
2086 for i in `ls ${srcdir}/projects`
2088 if test -d ${srcdir}/projects/${i} ; then
2091 sample) subdirs="$subdirs projects/sample"
2093 privbracket) subdirs="$subdirs projects/privbracket"
2095 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2097 # llvm-test is the old name of the test-suite, kept here for backwards
2099 llvm-test) subdirs="$subdirs projects/llvm-test"
2101 test-suite) subdirs="$subdirs projects/test-suite"
2103 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2105 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2107 llvm-java) subdirs="$subdirs projects/llvm-java"
2109 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2111 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2113 poolalloc) subdirs="$subdirs projects/poolalloc"
2115 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2118 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2119 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2126 # Make sure we can run config.sub.
2127 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2128 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2129 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2130 { (exit 1); exit 1; }; }
2132 { echo "$as_me:$LINENO: checking build system type" >&5
2133 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2134 if test "${ac_cv_build+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 ac_build_alias=$build_alias
2138 test "x$ac_build_alias" = x &&
2139 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2140 test "x$ac_build_alias" = x &&
2141 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2142 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2143 { (exit 1); exit 1; }; }
2144 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2145 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2146 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2147 { (exit 1); exit 1; }; }
2150 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2151 echo "${ECHO_T}$ac_cv_build" >&6; }
2152 case $ac_cv_build in
2154 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2155 echo "$as_me: error: invalid value of canonical build" >&2;}
2156 { (exit 1); exit 1; }; };;
2159 ac_save_IFS=$IFS; IFS='-'
2165 # Remember, the first character of IFS is used to create $*,
2166 # except with old shells:
2169 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2172 { echo "$as_me:$LINENO: checking host system type" >&5
2173 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2174 if test "${ac_cv_host+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 if test "x$host_alias" = x; then
2178 ac_cv_host=$ac_cv_build
2180 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2181 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2182 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2183 { (exit 1); exit 1; }; }
2187 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2188 echo "${ECHO_T}$ac_cv_host" >&6; }
2191 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2192 echo "$as_me: error: invalid value of canonical host" >&2;}
2193 { (exit 1); exit 1; }; };;
2196 ac_save_IFS=$IFS; IFS='-'
2202 # Remember, the first character of IFS is used to create $*,
2203 # except with old shells:
2206 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2209 { echo "$as_me:$LINENO: checking target system type" >&5
2210 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2211 if test "${ac_cv_target+set}" = set; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 if test "x$target_alias" = x; then
2215 ac_cv_target=$ac_cv_host
2217 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2218 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2219 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2220 { (exit 1); exit 1; }; }
2224 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2225 echo "${ECHO_T}$ac_cv_target" >&6; }
2226 case $ac_cv_target in
2228 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2229 echo "$as_me: error: invalid value of canonical target" >&2;}
2230 { (exit 1); exit 1; }; };;
2232 target=$ac_cv_target
2233 ac_save_IFS=$IFS; IFS='-'
2239 # Remember, the first character of IFS is used to create $*,
2240 # except with old shells:
2243 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2246 # The aliases save the names the user supplied, while $host etc.
2247 # will get canonicalized.
2248 test -n "$target_alias" &&
2249 test "$program_prefix$program_suffix$program_transform_name" = \
2251 program_prefix=${target_alias}-
2253 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2254 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2255 if test "${llvm_cv_os_type+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 llvm_cv_link_all_option="-Wl,--whole-archive"
2261 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2262 llvm_cv_os_type="AIX"
2263 llvm_cv_platform_type="Unix" ;;
2265 llvm_cv_link_all_option="-Wl,--whole-archive"
2266 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2267 llvm_cv_os_type="IRIX"
2268 llvm_cv_platform_type="Unix" ;;
2270 llvm_cv_link_all_option="-Wl,--whole-archive"
2271 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2272 llvm_cv_os_type="Cygwin"
2273 llvm_cv_platform_type="Unix" ;;
2275 llvm_cv_link_all_option="-Wl,-all_load"
2276 llvm_cv_no_link_all_option="-Wl,-noall_load"
2277 llvm_cv_os_type="Darwin"
2278 llvm_cv_platform_type="Unix" ;;
2280 llvm_cv_link_all_option="-Wl,--whole-archive"
2281 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2282 llvm_cv_os_type="FreeBSD"
2283 llvm_cv_platform_type="Unix" ;;
2285 llvm_cv_link_all_option="-Wl,--whole-archive"
2286 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2287 llvm_cv_os_type="OpenBSD"
2288 llvm_cv_platform_type="Unix" ;;
2290 llvm_cv_link_all_option="-Wl,--whole-archive"
2291 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2292 llvm_cv_os_type="NetBSD"
2293 llvm_cv_platform_type="Unix" ;;
2295 llvm_cv_link_all_option="-Wl,--whole-archive"
2296 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2297 llvm_cv_os_type="DragonFly"
2298 llvm_cv_platform_type="Unix" ;;
2300 llvm_cv_link_all_option="-Wl,--whole-archive"
2301 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2302 llvm_cv_os_type="HP-UX"
2303 llvm_cv_platform_type="Unix" ;;
2305 llvm_cv_link_all_option="-Wl,--whole-archive"
2306 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2307 llvm_cv_os_type="Interix"
2308 llvm_cv_platform_type="Unix" ;;
2310 llvm_cv_link_all_option="-Wl,--whole-archive"
2311 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2312 llvm_cv_os_type="Linux"
2313 llvm_cv_platform_type="Unix" ;;
2315 llvm_cv_link_all_option="-Wl,-z,allextract"
2316 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2317 llvm_cv_os_type="SunOS"
2318 llvm_cv_platform_type="Unix" ;;
2320 llvm_cv_link_all_option="-Wl,--whole-archive"
2321 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2322 llvm_cv_os_type="Win32"
2323 llvm_cv_platform_type="Win32" ;;
2325 llvm_cv_link_all_option="-Wl,--whole-archive"
2326 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2327 llvm_cv_os_type="MingW"
2328 llvm_cv_platform_type="Win32" ;;
2330 llvm_cv_link_all_option=""
2331 llvm_cv_no_link_all_option=""
2332 llvm_cv_os_type="Unknown"
2333 llvm_cv_platform_type="Unknown" ;;
2336 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2337 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2339 if test "$llvm_cv_os_type" = "Unknown" ; then
2340 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2341 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2342 { (exit 1); exit 1; }; }
2348 LINKALL=$llvm_cv_link_all_option
2350 NOLINKALL=$llvm_cv_no_link_all_option
2353 case $llvm_cv_platform_type in
2356 cat >>confdefs.h <<\_ACEOF
2357 #define LLVM_ON_UNIX 1
2367 cat >>confdefs.h <<\_ACEOF
2368 #define LLVM_ON_WIN32 1
2378 { echo "$as_me:$LINENO: checking target architecture" >&5
2379 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2380 if test "${llvm_cv_target_arch+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 i?86-*) llvm_cv_target_arch="x86" ;;
2385 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2386 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2387 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2388 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2389 ia64-*) llvm_cv_target_arch="IA64" ;;
2390 arm*-*) llvm_cv_target_arch="ARM" ;;
2391 mips-*) llvm_cv_target_arch="Mips" ;;
2392 pic16-*) llvm_cv_target_arch="PIC16" ;;
2393 xcore-*) llvm_cv_target_arch="XCore" ;;
2394 msp430-*) llvm_cv_target_arch="MSP430" ;;
2395 *) llvm_cv_target_arch="Unknown" ;;
2398 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2399 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2401 if test "$llvm_cv_target_arch" = "Unknown" ; then
2402 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2403 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2406 # Determine the LLVM native architecture for the target
2407 case "$llvm_cv_target_arch" in
2408 x86) LLVM_NATIVE_ARCH="X86" ;;
2409 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2410 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2413 ARCH=$llvm_cv_target_arch
2417 ac_cpp='$CPP $CPPFLAGS'
2418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2421 if test -n "$ac_tool_prefix"; then
2422 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2423 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2426 if test "${ac_cv_prog_CC+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2429 if test -n "$CC"; then
2430 ac_cv_prog_CC="$CC" # Let the user override the test.
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 test -z "$as_dir" && as_dir=.
2437 for ac_exec_ext in '' $ac_executable_extensions; do
2438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2439 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 if test -n "$CC"; then
2451 { echo "$as_me:$LINENO: result: $CC" >&5
2452 echo "${ECHO_T}$CC" >&6; }
2454 { echo "$as_me:$LINENO: result: no" >&5
2455 echo "${ECHO_T}no" >&6; }
2460 if test -z "$ac_cv_prog_CC"; then
2462 # Extract the first word of "gcc", so it can be a program name with args.
2463 set dummy gcc; ac_word=$2
2464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 if test -n "$ac_ct_CC"; then
2470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2479 ac_cv_prog_ac_ct_CC="gcc"
2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2490 if test -n "$ac_ct_CC"; then
2491 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2492 echo "${ECHO_T}$ac_ct_CC" >&6; }
2494 { echo "$as_me:$LINENO: result: no" >&5
2495 echo "${ECHO_T}no" >&6; }
2498 if test "x$ac_ct_CC" = x; then
2501 case $cross_compiling:$ac_tool_warned in
2503 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2504 whose name does not start with the host triplet. If you think this
2505 configuration is useful to you, please write to autoconf@gnu.org." >&5
2506 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2507 whose name does not start with the host triplet. If you think this
2508 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2509 ac_tool_warned=yes ;;
2517 if test -z "$CC"; then
2518 if test -n "$ac_tool_prefix"; then
2519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2520 set dummy ${ac_tool_prefix}cc; ac_word=$2
2521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2523 if test "${ac_cv_prog_CC+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 if test -n "$CC"; then
2527 ac_cv_prog_CC="$CC" # Let the user override the test.
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2536 ac_cv_prog_CC="${ac_tool_prefix}cc"
2537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 if test -n "$CC"; then
2548 { echo "$as_me:$LINENO: result: $CC" >&5
2549 echo "${ECHO_T}$CC" >&6; }
2551 { echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6; }
2558 if test -z "$CC"; then
2559 # Extract the first word of "cc", so it can be a program name with args.
2560 set dummy cc; ac_word=$2
2561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2563 if test "${ac_cv_prog_CC+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 if test -n "$CC"; then
2567 ac_cv_prog_CC="$CC" # Let the user override the test.
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2577 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2578 ac_prog_rejected=yes
2582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 if test $ac_prog_rejected = yes; then
2590 # We found a bogon in the path, so make sure we never use it.
2591 set dummy $ac_cv_prog_CC
2593 if test $# != 0; then
2594 # We chose a different compiler from the bogus one.
2595 # However, it has the same basename, so the bogon will be chosen
2596 # first if we set CC to just the basename; use the full file name.
2598 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2604 if test -n "$CC"; then
2605 { echo "$as_me:$LINENO: result: $CC" >&5
2606 echo "${ECHO_T}$CC" >&6; }
2608 { echo "$as_me:$LINENO: result: no" >&5
2609 echo "${ECHO_T}no" >&6; }
2614 if test -z "$CC"; then
2615 if test -n "$ac_tool_prefix"; then
2616 for ac_prog in cl.exe
2618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2622 if test "${ac_cv_prog_CC+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 if test -n "$CC"; then
2626 ac_cv_prog_CC="$CC" # Let the user override the test.
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 if test -n "$CC"; then
2647 { echo "$as_me:$LINENO: result: $CC" >&5
2648 echo "${ECHO_T}$CC" >&6; }
2650 { echo "$as_me:$LINENO: result: no" >&5
2651 echo "${ECHO_T}no" >&6; }
2655 test -n "$CC" && break
2658 if test -z "$CC"; then
2660 for ac_prog in cl.exe
2662 # Extract the first word of "$ac_prog", so it can be a program name with args.
2663 set dummy $ac_prog; ac_word=$2
2664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 if test -n "$ac_ct_CC"; then
2670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2679 ac_cv_prog_ac_ct_CC="$ac_prog"
2680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2690 if test -n "$ac_ct_CC"; then
2691 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2692 echo "${ECHO_T}$ac_ct_CC" >&6; }
2694 { echo "$as_me:$LINENO: result: no" >&5
2695 echo "${ECHO_T}no" >&6; }
2699 test -n "$ac_ct_CC" && break
2702 if test "x$ac_ct_CC" = x; then
2705 case $cross_compiling:$ac_tool_warned in
2707 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2708 whose name does not start with the host triplet. If you think this
2709 configuration is useful to you, please write to autoconf@gnu.org." >&5
2710 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2711 whose name does not start with the host triplet. If you think this
2712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2713 ac_tool_warned=yes ;;
2722 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2723 See \`config.log' for more details." >&5
2724 echo "$as_me: error: no acceptable C compiler found in \$PATH
2725 See \`config.log' for more details." >&2;}
2726 { (exit 1); exit 1; }; }
2728 # Provide some information about the compiler.
2729 echo "$as_me:$LINENO: checking for C compiler version" >&5
2730 ac_compiler=`set X $ac_compile; echo $2`
2731 { (ac_try="$ac_compiler --version >&5"
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_compiler --version >&5") 2>&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }
2741 { (ac_try="$ac_compiler -v >&5"
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_compiler -v >&5") 2>&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }
2751 { (ac_try="$ac_compiler -V >&5"
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_compiler -V >&5") 2>&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }
2762 cat >conftest.$ac_ext <<_ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h. */
2777 ac_clean_files_save=$ac_clean_files
2778 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2779 # Try to create an executable without -o first, disregard a.out.
2780 # It will help us diagnose broken compilers, and finding out an intuition
2782 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2783 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2784 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2786 # List of possible output files, starting from the most likely.
2787 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2788 # only as a last resort. b.out is created by i960 compilers.
2789 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2791 # The IRIX 6 linker writes into existing files which may not be
2792 # executable, retaining their permissions. Remove them first so a
2793 # subsequent execution test works.
2795 for ac_file in $ac_files
2798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2799 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2804 if { (ac_try="$ac_link_default"
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810 (eval "$ac_link_default") 2>&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; then
2814 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2815 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2816 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2817 # so that the user can short-circuit this test for compilers unknown to
2819 for ac_file in $ac_files
2821 test -f "$ac_file" || continue
2823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2826 # We found the default executable, but exeext='' is most
2830 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2832 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2834 # We set ac_cv_exeext here because the later test for it is not
2835 # safe: cross compilers may not add the suffix if given an `-o'
2836 # argument, so we may need to know it at that point already.
2837 # Even if this section looks crufty: it has the advantage of
2844 test "$ac_cv_exeext" = no && ac_cv_exeext=
2847 echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2850 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2851 See \`config.log' for more details." >&5
2852 echo "$as_me: error: C compiler cannot create executables
2853 See \`config.log' for more details." >&2;}
2854 { (exit 77); exit 77; }; }
2857 ac_exeext=$ac_cv_exeext
2858 { echo "$as_me:$LINENO: result: $ac_file" >&5
2859 echo "${ECHO_T}$ac_file" >&6; }
2861 # Check that the compiler produces executables we can run. If not, either
2862 # the compiler is broken, or we cross compile.
2863 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2864 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2865 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2866 # If not cross compiling, check that we can run a simple program.
2867 if test "$cross_compiling" != yes; then
2868 if { ac_try='./$ac_file'
2869 { (case "(($ac_try" in
2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871 *) ac_try_echo=$ac_try;;
2873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2874 (eval "$ac_try") 2>&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); }; }; then
2880 if test "$cross_compiling" = maybe; then
2883 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2884 If you meant to cross compile, use \`--host'.
2885 See \`config.log' for more details." >&5
2886 echo "$as_me: error: cannot run C compiled programs.
2887 If you meant to cross compile, use \`--host'.
2888 See \`config.log' for more details." >&2;}
2889 { (exit 1); exit 1; }; }
2893 { echo "$as_me:$LINENO: result: yes" >&5
2894 echo "${ECHO_T}yes" >&6; }
2896 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2897 ac_clean_files=$ac_clean_files_save
2898 # Check that the compiler produces executables we can run. If not, either
2899 # the compiler is broken, or we cross compile.
2900 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2901 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2902 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2903 echo "${ECHO_T}$cross_compiling" >&6; }
2905 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2906 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2907 if { (ac_try="$ac_link"
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913 (eval "$ac_link") 2>&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; then
2917 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2918 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2919 # work properly (i.e., refer to `conftest.exe'), while it won't with
2921 for ac_file in conftest.exe conftest conftest.*; do
2922 test -f "$ac_file" || continue
2924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2925 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2931 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2932 See \`config.log' for more details." >&5
2933 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2934 See \`config.log' for more details." >&2;}
2935 { (exit 1); exit 1; }; }
2938 rm -f conftest$ac_cv_exeext
2939 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2940 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2942 rm -f conftest.$ac_ext
2943 EXEEXT=$ac_cv_exeext
2945 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2946 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2947 if test "${ac_cv_objext+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2950 cat >conftest.$ac_ext <<_ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2965 rm -f conftest.o conftest.obj
2966 if { (ac_try="$ac_compile"
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_compile") 2>&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; then
2976 for ac_file in conftest.o conftest.obj conftest.*; do
2977 test -f "$ac_file" || continue;
2979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2980 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2985 echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2988 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2989 See \`config.log' for more details." >&5
2990 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2991 See \`config.log' for more details." >&2;}
2992 { (exit 1); exit 1; }; }
2995 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2997 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2998 echo "${ECHO_T}$ac_cv_objext" >&6; }
2999 OBJEXT=$ac_cv_objext
3001 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3002 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3003 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3006 cat >conftest.$ac_ext <<_ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3024 rm -f conftest.$ac_objext
3025 if { (ac_try="$ac_compile"
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_compile") 2>conftest.er1
3033 grep -v '^ *+' conftest.er1 >conftest.err
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } &&
3038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3039 { (case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_try") 2>&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; } &&
3048 { ac_try='test -s conftest.$ac_objext'
3049 { (case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_try") 2>&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; }; then
3060 echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3070 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3071 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3072 GCC=`test $ac_compiler_gnu = yes && echo yes`
3073 ac_test_CFLAGS=${CFLAGS+set}
3074 ac_save_CFLAGS=$CFLAGS
3075 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3076 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3077 if test "${ac_cv_prog_cc_g+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 ac_save_c_werror_flag=$ac_c_werror_flag
3081 ac_c_werror_flag=yes
3084 cat >conftest.$ac_ext <<_ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_compile") 2>conftest.er1
3108 grep -v '^ *+' conftest.er1 >conftest.err
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } &&
3113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3114 { (case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_try") 2>&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; } &&
3123 { ac_try='test -s conftest.$ac_objext'
3124 { (case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_try") 2>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; }; then
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3139 cat >conftest.$ac_ext <<_ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3154 rm -f conftest.$ac_objext
3155 if { (ac_try="$ac_compile"
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_compile") 2>conftest.er1
3163 grep -v '^ *+' conftest.er1 >conftest.err
3165 cat conftest.err >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } &&
3168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3169 { (case "(($ac_try" in
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174 (eval "$ac_try") 2>&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; } &&
3178 { ac_try='test -s conftest.$ac_objext'
3179 { (case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_try") 2>&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; }; then
3190 echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3193 ac_c_werror_flag=$ac_save_c_werror_flag
3195 cat >conftest.$ac_ext <<_ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h. */
3210 rm -f conftest.$ac_objext
3211 if { (ac_try="$ac_compile"
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_compile") 2>conftest.er1
3219 grep -v '^ *+' conftest.er1 >conftest.err
3221 cat conftest.err >&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); } &&
3224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3225 { (case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230 (eval "$ac_try") 2>&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; } &&
3234 { ac_try='test -s conftest.$ac_objext'
3235 { (case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240 (eval "$ac_try") 2>&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; }; then
3246 echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259 ac_c_werror_flag=$ac_save_c_werror_flag
3261 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3262 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3263 if test "$ac_test_CFLAGS" = set; then
3264 CFLAGS=$ac_save_CFLAGS
3265 elif test $ac_cv_prog_cc_g = yes; then
3266 if test "$GCC" = yes; then
3272 if test "$GCC" = yes; then
3278 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3279 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3280 if test "${ac_cv_prog_cc_c89+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 ac_cv_prog_cc_c89=no
3285 cat >conftest.$ac_ext <<_ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3293 #include <sys/types.h>
3294 #include <sys/stat.h>
3295 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3296 struct buf { int x; };
3297 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3298 static char *e (p, i)
3304 static char *f (char * (*g) (char **, int), char **p, ...)
3309 s = g (p, va_arg (v,int));
3314 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3315 function prototypes and stuff, but not '\xHH' hex character constants.
3316 These don't provoke an error unfortunately, instead are silently treated
3317 as 'x'. The following induces an error, until -std is added to get
3318 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3319 array size at least. It's necessary to write '\x00'==0 to get something
3320 that's true only with -std. */
3321 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3323 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3324 inside strings and character constants. */
3326 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3328 int test (int i, double x);
3329 struct s1 {int (*f) (int a);};
3330 struct s2 {int (*f) (double a);};
3331 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3337 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3342 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3343 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3345 CC="$ac_save_CC $ac_arg"
3346 rm -f conftest.$ac_objext
3347 if { (ac_try="$ac_compile"
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353 (eval "$ac_compile") 2>conftest.er1
3355 grep -v '^ *+' conftest.er1 >conftest.err
3357 cat conftest.err >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); } &&
3360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3361 { (case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366 (eval "$ac_try") 2>&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; } &&
3370 { ac_try='test -s conftest.$ac_objext'
3371 { (case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376 (eval "$ac_try") 2>&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; }; then
3380 ac_cv_prog_cc_c89=$ac_arg
3382 echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3388 rm -f core conftest.err conftest.$ac_objext
3389 test "x$ac_cv_prog_cc_c89" != "xno" && break
3391 rm -f conftest.$ac_ext
3396 case "x$ac_cv_prog_cc_c89" in
3398 { echo "$as_me:$LINENO: result: none needed" >&5
3399 echo "${ECHO_T}none needed" >&6; } ;;
3401 { echo "$as_me:$LINENO: result: unsupported" >&5
3402 echo "${ECHO_T}unsupported" >&6; } ;;
3404 CC="$CC $ac_cv_prog_cc_c89"
3405 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3406 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3411 ac_cpp='$CPP $CPPFLAGS'
3412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3418 ac_cpp='$CPP $CPPFLAGS'
3419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3422 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3423 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3424 # On Suns, sometimes $CPP names a directory.
3425 if test -n "$CPP" && test -d "$CPP"; then
3428 if test -z "$CPP"; then
3429 if test "${ac_cv_prog_CPP+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 # Double quotes because CPP needs to be expanded
3433 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3436 for ac_c_preproc_warn_flag in '' yes
3438 # Use a header file that comes with gcc, so configuring glibc
3439 # with a fresh cross-compiler works.
3440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3441 # <limits.h> exists even on freestanding compilers.
3442 # On the NeXT, cc -E runs the code through the compiler's parser,
3443 # not just through cpp. "Syntax error" is here to catch this case.
3444 cat >conftest.$ac_ext <<_ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3451 # include <limits.h>
3453 # include <assert.h>
3457 if { (ac_try="$ac_cpp conftest.$ac_ext"
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3465 grep -v '^ *+' conftest.er1 >conftest.err
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } >/dev/null; then
3470 if test -s conftest.err; then
3471 ac_cpp_err=$ac_c_preproc_warn_flag
3472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3479 if test -z "$ac_cpp_err"; then
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3485 # Broken: fails on valid input.
3489 rm -f conftest.err conftest.$ac_ext
3491 # OK, works on sane cases. Now check whether nonexistent headers
3492 # can be detected and how.
3493 cat >conftest.$ac_ext <<_ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h. */
3499 #include <ac_nonexistent.h>
3501 if { (ac_try="$ac_cpp conftest.$ac_ext"
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3509 grep -v '^ *+' conftest.er1 >conftest.err
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } >/dev/null; then
3514 if test -s conftest.err; then
3515 ac_cpp_err=$ac_c_preproc_warn_flag
3516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3523 if test -z "$ac_cpp_err"; then
3524 # Broken: success on invalid input.
3527 echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3530 # Passes both tests.
3535 rm -f conftest.err conftest.$ac_ext
3538 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3539 rm -f conftest.err conftest.$ac_ext
3540 if $ac_preproc_ok; then
3552 { echo "$as_me:$LINENO: result: $CPP" >&5
3553 echo "${ECHO_T}$CPP" >&6; }
3555 for ac_c_preproc_warn_flag in '' yes
3557 # Use a header file that comes with gcc, so configuring glibc
3558 # with a fresh cross-compiler works.
3559 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3560 # <limits.h> exists even on freestanding compilers.
3561 # On the NeXT, cc -E runs the code through the compiler's parser,
3562 # not just through cpp. "Syntax error" is here to catch this case.
3563 cat >conftest.$ac_ext <<_ACEOF
3566 cat confdefs.h >>conftest.$ac_ext
3567 cat >>conftest.$ac_ext <<_ACEOF
3568 /* end confdefs.h. */
3570 # include <limits.h>
3572 # include <assert.h>
3576 if { (ac_try="$ac_cpp conftest.$ac_ext"
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3584 grep -v '^ *+' conftest.er1 >conftest.err
3586 cat conftest.err >&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); } >/dev/null; then
3589 if test -s conftest.err; then
3590 ac_cpp_err=$ac_c_preproc_warn_flag
3591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3598 if test -z "$ac_cpp_err"; then
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3604 # Broken: fails on valid input.
3608 rm -f conftest.err conftest.$ac_ext
3610 # OK, works on sane cases. Now check whether nonexistent headers
3611 # can be detected and how.
3612 cat >conftest.$ac_ext <<_ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h. */
3618 #include <ac_nonexistent.h>
3620 if { (ac_try="$ac_cpp conftest.$ac_ext"
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3628 grep -v '^ *+' conftest.er1 >conftest.err
3630 cat conftest.err >&5
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); } >/dev/null; then
3633 if test -s conftest.err; then
3634 ac_cpp_err=$ac_c_preproc_warn_flag
3635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3642 if test -z "$ac_cpp_err"; then
3643 # Broken: success on invalid input.
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3649 # Passes both tests.
3654 rm -f conftest.err conftest.$ac_ext
3657 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3658 rm -f conftest.err conftest.$ac_ext
3659 if $ac_preproc_ok; then
3662 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3663 See \`config.log' for more details." >&5
3664 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3665 See \`config.log' for more details." >&2;}
3666 { (exit 1); exit 1; }; }
3670 ac_cpp='$CPP $CPPFLAGS'
3671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3676 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3677 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3678 if test "${ac_cv_path_GREP+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 # Extract the first word of "grep ggrep" to use in msg output
3682 if test -z "$GREP"; then
3683 set dummy grep ggrep; ac_prog_name=$2
3684 if test "${ac_cv_path_GREP+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 ac_path_GREP_found=false
3688 # Loop through the user's path and test for each of PROGNAME-LIST
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3693 test -z "$as_dir" && as_dir=.
3694 for ac_prog in grep ggrep; do
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3697 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3698 # Check for GNU ac_path_GREP and select it if it is found.
3699 # Check for GNU $ac_path_GREP
3700 case `"$ac_path_GREP" --version 2>&1` in
3702 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3705 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3708 cat "conftest.in" "conftest.in" >"conftest.tmp"
3709 mv "conftest.tmp" "conftest.in"
3710 cp "conftest.in" "conftest.nl"
3711 echo 'GREP' >> "conftest.nl"
3712 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3713 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3714 ac_count=`expr $ac_count + 1`
3715 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3716 # Best one so far, save it but keep looking for a better one
3717 ac_cv_path_GREP="$ac_path_GREP"
3718 ac_path_GREP_max=$ac_count
3720 # 10*(2^10) chars as input seems more than enough
3721 test $ac_count -gt 10 && break
3723 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3727 $ac_path_GREP_found && break 3
3737 GREP="$ac_cv_path_GREP"
3738 if test -z "$GREP"; then
3739 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3740 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3741 { (exit 1); exit 1; }; }
3745 ac_cv_path_GREP=$GREP
3750 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3751 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3752 GREP="$ac_cv_path_GREP"
3755 { echo "$as_me:$LINENO: checking for egrep" >&5
3756 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3757 if test "${ac_cv_path_EGREP+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3761 then ac_cv_path_EGREP="$GREP -E"
3763 # Extract the first word of "egrep" to use in msg output
3764 if test -z "$EGREP"; then
3765 set dummy egrep; ac_prog_name=$2
3766 if test "${ac_cv_path_EGREP+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 ac_path_EGREP_found=false
3770 # Loop through the user's path and test for each of PROGNAME-LIST
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3775 test -z "$as_dir" && as_dir=.
3776 for ac_prog in egrep; do
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3779 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3780 # Check for GNU ac_path_EGREP and select it if it is found.
3781 # Check for GNU $ac_path_EGREP
3782 case `"$ac_path_EGREP" --version 2>&1` in
3784 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3787 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3790 cat "conftest.in" "conftest.in" >"conftest.tmp"
3791 mv "conftest.tmp" "conftest.in"
3792 cp "conftest.in" "conftest.nl"
3793 echo 'EGREP' >> "conftest.nl"
3794 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3795 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3796 ac_count=`expr $ac_count + 1`
3797 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3798 # Best one so far, save it but keep looking for a better one
3799 ac_cv_path_EGREP="$ac_path_EGREP"
3800 ac_path_EGREP_max=$ac_count
3802 # 10*(2^10) chars as input seems more than enough
3803 test $ac_count -gt 10 && break
3805 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3809 $ac_path_EGREP_found && break 3
3819 EGREP="$ac_cv_path_EGREP"
3820 if test -z "$EGREP"; then
3821 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3822 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3823 { (exit 1); exit 1; }; }
3827 ac_cv_path_EGREP=$EGREP
3833 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3834 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3835 EGREP="$ac_cv_path_EGREP"
3838 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3839 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3840 if test "${ac_cv_header_stdc+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 cat >conftest.$ac_ext <<_ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3862 rm -f conftest.$ac_objext
3863 if { (ac_try="$ac_compile"
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3869 (eval "$ac_compile") 2>conftest.er1
3871 grep -v '^ *+' conftest.er1 >conftest.err
3873 cat conftest.err >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } &&
3876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3877 { (case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882 (eval "$ac_try") 2>&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; } &&
3886 { ac_try='test -s conftest.$ac_objext'
3887 { (case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892 (eval "$ac_try") 2>&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; }; then
3896 ac_cv_header_stdc=yes
3898 echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3901 ac_cv_header_stdc=no
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 if test $ac_cv_header_stdc = yes; then
3907 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3908 cat >conftest.$ac_ext <<_ACEOF
3911 cat confdefs.h >>conftest.$ac_ext
3912 cat >>conftest.$ac_ext <<_ACEOF
3913 /* end confdefs.h. */
3917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3918 $EGREP "memchr" >/dev/null 2>&1; then
3921 ac_cv_header_stdc=no
3927 if test $ac_cv_header_stdc = yes; then
3928 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3929 cat >conftest.$ac_ext <<_ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3939 $EGREP "free" >/dev/null 2>&1; then
3942 ac_cv_header_stdc=no
3948 if test $ac_cv_header_stdc = yes; then
3949 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3950 if test "$cross_compiling" = yes; then
3953 cat >conftest.$ac_ext <<_ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3961 #if ((' ' & 0x0FF) == 0x020)
3962 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3963 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3965 # define ISLOWER(c) \
3966 (('a' <= (c) && (c) <= 'i') \
3967 || ('j' <= (c) && (c) <= 'r') \
3968 || ('s' <= (c) && (c) <= 'z'))
3969 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3972 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3977 for (i = 0; i < 256; i++)
3978 if (XOR (islower (i), ISLOWER (i))
3979 || toupper (i) != TOUPPER (i))
3984 rm -f conftest$ac_exeext
3985 if { (ac_try="$ac_link"
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_link") 2>&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3995 { (case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4000 (eval "$ac_try") 2>&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; }; then
4006 echo "$as_me: program exited with status $ac_status" >&5
4007 echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4011 ac_cv_header_stdc=no
4013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4019 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4020 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4021 if test $ac_cv_header_stdc = yes; then
4023 cat >>confdefs.h <<\_ACEOF
4024 #define STDC_HEADERS 1
4029 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4039 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4040 inttypes.h stdint.h unistd.h
4042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4043 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 cat >conftest.$ac_ext <<_ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4054 $ac_includes_default
4056 #include <$ac_header>
4058 rm -f conftest.$ac_objext
4059 if { (ac_try="$ac_compile"
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_compile") 2>conftest.er1
4067 grep -v '^ *+' conftest.er1 >conftest.err
4069 cat conftest.err >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } &&
4072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4073 { (case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078 (eval "$ac_try") 2>&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; } &&
4082 { ac_try='test -s conftest.$ac_objext'
4083 { (case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088 (eval "$ac_try") 2>&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; }; then
4092 eval "$as_ac_Header=yes"
4094 echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4097 eval "$as_ac_Header=no"
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102 ac_res=`eval echo '${'$as_ac_Header'}'`
4103 { echo "$as_me:$LINENO: result: $ac_res" >&5
4104 echo "${ECHO_T}$ac_res" >&6; }
4105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4106 cat >>confdefs.h <<_ACEOF
4107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4115 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4116 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4117 if test "${ac_cv_c_bigendian+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 # See if sys/param.h defines the BYTE_ORDER macro.
4121 cat >conftest.$ac_ext <<_ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4127 #include <sys/types.h>
4128 #include <sys/param.h>
4133 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4141 rm -f conftest.$ac_objext
4142 if { (ac_try="$ac_compile"
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_compile") 2>conftest.er1
4150 grep -v '^ *+' conftest.er1 >conftest.err
4152 cat conftest.err >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } &&
4155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4156 { (case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_try") 2>&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try='test -s conftest.$ac_objext'
4166 { (case "(($ac_try" in
4167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168 *) ac_try_echo=$ac_try;;
4170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4171 (eval "$ac_try") 2>&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; }; then
4175 # It does; now see whether it defined to BIG_ENDIAN or not.
4176 cat >conftest.$ac_ext <<_ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h. */
4182 #include <sys/types.h>
4183 #include <sys/param.h>
4188 #if BYTE_ORDER != BIG_ENDIAN
4196 rm -f conftest.$ac_objext
4197 if { (ac_try="$ac_compile"
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203 (eval "$ac_compile") 2>conftest.er1
4205 grep -v '^ *+' conftest.er1 >conftest.err
4207 cat conftest.err >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); } &&
4210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4211 { (case "(($ac_try" in
4212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213 *) ac_try_echo=$ac_try;;
4215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4216 (eval "$ac_try") 2>&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; } &&
4220 { ac_try='test -s conftest.$ac_objext'
4221 { (case "(($ac_try" in
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226 (eval "$ac_try") 2>&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
4230 ac_cv_c_bigendian=yes
4232 echo "$as_me: failed program was:" >&5
4233 sed 's/^/| /' conftest.$ac_ext >&5
4235 ac_cv_c_bigendian=no
4238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4240 echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4243 # It does not; compile a test program.
4244 if test "$cross_compiling" = yes; then
4245 # try to guess the endianness by grepping values into an object file
4246 ac_cv_c_bigendian=unknown
4247 cat >conftest.$ac_ext <<_ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4254 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4255 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4256 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4257 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4258 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4262 _ascii (); _ebcdic ();
4267 rm -f conftest.$ac_objext
4268 if { (ac_try="$ac_compile"
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_compile") 2>conftest.er1
4276 grep -v '^ *+' conftest.er1 >conftest.err
4278 cat conftest.err >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } &&
4281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4282 { (case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287 (eval "$ac_try") 2>&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; } &&
4291 { ac_try='test -s conftest.$ac_objext'
4292 { (case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297 (eval "$ac_try") 2>&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; }; then
4301 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4302 ac_cv_c_bigendian=yes
4304 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4305 if test "$ac_cv_c_bigendian" = unknown; then
4306 ac_cv_c_bigendian=no
4308 # finding both strings is unlikely to happen, but who knows?
4309 ac_cv_c_bigendian=unknown
4313 echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4321 cat >conftest.$ac_ext <<_ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4327 $ac_includes_default
4332 /* Are we little or big endian? From Harbison&Steele. */
4336 char c[sizeof (long int)];
4339 return u.c[sizeof (long int) - 1] == 1;
4345 rm -f conftest$ac_exeext
4346 if { (ac_try="$ac_link"
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_link") 2>&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4356 { (case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_try") 2>&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 ac_cv_c_bigendian=no
4367 echo "$as_me: program exited with status $ac_status" >&5
4368 echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4372 ac_cv_c_bigendian=yes
4374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4383 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4384 case $ac_cv_c_bigendian in
4392 { { echo "$as_me:$LINENO: error: unknown endianness
4393 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4394 echo "$as_me: error: unknown endianness
4395 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4396 { (exit 1); exit 1; }; } ;;
4400 if test "$cross_compiling" = yes; then
4401 LLVM_CROSS_COMPILING=1
4404 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4405 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4406 if test "${ac_cv_build_exeext+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4410 ac_cv_build_exeext=.exe
4412 ac_build_prefix=${build_alias}-
4414 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4415 set dummy ${ac_build_prefix}gcc; ac_word=$2
4416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4418 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 if test -n "$BUILD_CC"; then
4422 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4431 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 BUILD_CC=$ac_cv_prog_BUILD_CC
4442 if test -n "$BUILD_CC"; then
4443 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4444 echo "${ECHO_T}$BUILD_CC" >&6; }
4446 { echo "$as_me:$LINENO: result: no" >&5
4447 echo "${ECHO_T}no" >&6; }
4451 if test -z "$BUILD_CC"; then
4452 # Extract the first word of "gcc", so it can be a program name with args.
4453 set dummy gcc; ac_word=$2
4454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4456 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 if test -n "$BUILD_CC"; then
4460 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 ac_cv_prog_BUILD_CC="gcc"
4470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 BUILD_CC=$ac_cv_prog_BUILD_CC
4480 if test -n "$BUILD_CC"; then
4481 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4482 echo "${ECHO_T}$BUILD_CC" >&6; }
4484 { echo "$as_me:$LINENO: result: no" >&5
4485 echo "${ECHO_T}no" >&6; }
4489 if test -z "$BUILD_CC"; then
4490 # Extract the first word of "cc", so it can be a program name with args.
4491 set dummy cc; ac_word=$2
4492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4494 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4495 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 if test -n "$BUILD_CC"; then
4498 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 test -z "$as_dir" && as_dir=.
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4508 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4509 ac_prog_rejected=yes
4512 ac_cv_prog_BUILD_CC="cc"
4513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 if test $ac_prog_rejected = yes; then
4521 # We found a bogon in the path, so make sure we never use it.
4522 set dummy $ac_cv_prog_BUILD_CC
4524 if test $# != 0; then
4525 # We chose a different compiler from the bogus one.
4526 # However, it has the same basename, so the bogon will be chosen
4527 # first if we set BUILD_CC to just the basename; use the full file name.
4529 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4534 BUILD_CC=$ac_cv_prog_BUILD_CC
4535 if test -n "$BUILD_CC"; then
4536 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4537 echo "${ECHO_T}$BUILD_CC" >&6; }
4539 { echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6; }
4546 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4547 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4548 { (exit 1); exit 1; }; }
4549 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4551 echo 'int main () { return 0; }' > conftest.$ac_ext
4553 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4554 (eval $ac_build_link) 2>&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; then
4558 for file in conftest.*; do
4560 *.c | *.o | *.obj | *.dSYM) ;;
4561 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4565 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4566 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4567 { (exit 1); exit 1; }; }
4570 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4575 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4576 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4577 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4578 ac_build_exeext=$BUILD_EXEEXT
4580 ac_build_prefix=${build_alias}-
4581 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4582 set dummy ${ac_build_prefix}g++; ac_word=$2
4583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4585 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 if test -n "$BUILD_CXX"; then
4589 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4598 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4609 if test -n "$BUILD_CXX"; then
4610 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4611 echo "${ECHO_T}$BUILD_CXX" >&6; }
4613 { echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6; }
4618 if test -z "$BUILD_CXX"; then
4619 # Extract the first word of "g++", so it can be a program name with args.
4620 set dummy g++; ac_word=$2
4621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4623 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 if test -n "$BUILD_CXX"; then
4627 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 ac_cv_prog_BUILD_CXX="g++"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4647 if test -n "$BUILD_CXX"; then
4648 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4649 echo "${ECHO_T}$BUILD_CXX" >&6; }
4651 { echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6; }
4656 if test -z "$BUILD_CXX"; then
4657 # Extract the first word of "c++", so it can be a program name with args.
4658 set dummy c++; ac_word=$2
4659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4661 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4664 if test -n "$BUILD_CXX"; then
4665 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4676 ac_prog_rejected=yes
4679 ac_cv_prog_BUILD_CXX="c++"
4680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 if test $ac_prog_rejected = yes; then
4688 # We found a bogon in the path, so make sure we never use it.
4689 set dummy $ac_cv_prog_BUILD_CXX
4691 if test $# != 0; then
4692 # We chose a different compiler from the bogus one.
4693 # However, it has the same basename, so the bogon will be chosen
4694 # first if we set BUILD_CXX to just the basename; use the full file name.
4696 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4701 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4702 if test -n "$BUILD_CXX"; then
4703 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4704 echo "${ECHO_T}$BUILD_CXX" >&6; }
4706 { echo "$as_me:$LINENO: result: no" >&5
4707 echo "${ECHO_T}no" >&6; }
4714 LLVM_CROSS_COMPILING=0
4718 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4729 # Check whether --enable-optimized was given.
4730 if test "${enable_optimized+set}" = set; then
4731 enableval=$enable_optimized;
4736 if test ${enableval} = "no" ; then
4740 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4744 # Check whether --enable-profiling was given.
4745 if test "${enable_profiling+set}" = set; then
4746 enableval=$enable_profiling;
4751 if test ${enableval} = "no" ; then
4755 ENABLE_PROFILING=ENABLE_PROFILING=1
4759 # Check whether --enable-assertions was given.
4760 if test "${enable_assertions+set}" = set; then
4761 enableval=$enable_assertions;
4766 if test ${enableval} = "yes" ; then
4770 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4774 # Check whether --enable-expensive-checks was given.
4775 if test "${enable_expensive_checks+set}" = set; then
4776 enableval=$enable_expensive_checks;
4781 if test ${enableval} = "yes" ; then
4782 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4784 EXPENSIVE_CHECKS=yes
4787 ENABLE_EXPENSIVE_CHECKS=
4793 # Check whether --enable-debug-runtime was given.
4794 if test "${enable_debug_runtime+set}" = set; then
4795 enableval=$enable_debug_runtime;
4800 if test ${enableval} = "no" ; then
4804 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4808 # Check whether --enable-jit was given.
4809 if test "${enable_jit+set}" = set; then
4810 enableval=$enable_jit;
4815 if test ${enableval} = "no"
4820 case "$llvm_cv_target_arch" in
4821 x86) TARGET_HAS_JIT=1
4823 Sparc) TARGET_HAS_JIT=0
4825 PowerPC) TARGET_HAS_JIT=1
4827 x86_64) TARGET_HAS_JIT=1
4829 Alpha) TARGET_HAS_JIT=1
4831 IA64) TARGET_HAS_JIT=0
4833 ARM) TARGET_HAS_JIT=0
4835 Mips) TARGET_HAS_JIT=0
4837 PIC16) TARGET_HAS_JIT=0
4839 XCore) TARGET_HAS_JIT=0
4841 MSP430) TARGET_HAS_JIT=0
4848 # Check whether --enable-doxygen was given.
4849 if test "${enable_doxygen+set}" = set; then
4850 enableval=$enable_doxygen;
4855 case "$enableval" in
4856 yes) ENABLE_DOXYGEN=1
4858 no) ENABLE_DOXYGEN=0
4860 default) ENABLE_DOXYGEN=0
4862 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4863 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4864 { (exit 1); exit 1; }; } ;;
4867 # Check whether --enable-threads was given.
4868 if test "${enable_threads+set}" = set; then
4869 enableval=$enable_threads;
4874 case "$enableval" in
4875 yes) ENABLE_THREADS=1
4877 no) ENABLE_THREADS=0
4879 default) ENABLE_THREADS=1
4881 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4882 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4883 { (exit 1); exit 1; }; } ;;
4886 cat >>confdefs.h <<_ACEOF
4887 #define ENABLE_THREADS $ENABLE_THREADS
4891 # Check whether --enable-pic was given.
4892 if test "${enable_pic+set}" = set; then
4893 enableval=$enable_pic;
4898 case "$enableval" in
4903 default) ENABLE_PIC=1
4905 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4906 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4907 { (exit 1); exit 1; }; } ;;
4910 cat >>confdefs.h <<_ACEOF
4911 #define ENABLE_PIC $ENABLE_PIC
4916 # Check whether --enable-targets was given.
4917 if test "${enable_targets+set}" = set; then
4918 enableval=$enable_targets;
4923 case "$enableval" in
4924 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
4926 case "$llvm_cv_target_arch" in
4927 x86) TARGETS_TO_BUILD="X86" ;;
4928 x86_64) TARGETS_TO_BUILD="X86" ;;
4929 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4930 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4931 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4932 IA64) TARGETS_TO_BUILD="IA64" ;;
4933 ARM) TARGETS_TO_BUILD="ARM" ;;
4934 Mips) TARGETS_TO_BUILD="Mips" ;;
4935 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4936 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4937 XCore) TARGETS_TO_BUILD="XCore" ;;
4938 MSP430) TARGETS_TO_BUILD="MSP430" ;;
4939 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4940 echo "$as_me: error: Can not set target to build" >&2;}
4941 { (exit 1); exit 1; }; } ;;
4944 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4946 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4947 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4948 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4949 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4950 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4951 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4952 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4953 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4954 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4955 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4956 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4957 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4958 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4959 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4960 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4961 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4962 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4963 { (exit 1); exit 1; }; } ;;
4968 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4971 # Determine whether we are building LLVM support for the native architecture.
4972 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4973 for a_target in $TARGETS_TO_BUILD; do
4974 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4975 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4977 cat >>confdefs.h <<_ACEOF
4978 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4984 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
4985 # Targets.def and AsmPrinters.def.
4986 LLVM_ENUM_TARGETS=""
4987 LLVM_ENUM_ASM_PRINTERS=""
4988 for target_to_build in $TARGETS_TO_BUILD; do
4989 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4990 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4991 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4997 # Check whether --enable-cbe-printf-a was given.
4998 if test "${enable_cbe_printf_a+set}" = set; then
4999 enableval=$enable_cbe_printf_a;
5004 case "$enableval" in
5005 yes) ENABLE_CBE_PRINTF_A=1
5007 no) ENABLE_CBE_PRINTF_A=0
5009 default) ENABLE_CBE_PRINTF_A=1
5011 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5012 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5013 { (exit 1); exit 1; }; } ;;
5016 cat >>confdefs.h <<_ACEOF
5017 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5022 # Check whether --with-llvmgccdir was given.
5023 if test "${with_llvmgccdir+set}" = set; then
5024 withval=$with_llvmgccdir;
5030 default) WITH_LLVMGCCDIR=default ;;
5031 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5032 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5033 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5034 { (exit 1); exit 1; }; } ;;
5038 # Check whether --with-llvmgcc was given.
5039 if test "${with_llvmgcc+set}" = set; then
5040 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5046 # Check whether --with-llvmgxx was given.
5047 if test "${with_llvmgxx+set}" = set; then
5048 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5053 if test -n "$LLVMGCC"; then
5054 LLVMGCCCOMMAND="$LLVMGCC"
5057 if test -n "$LLVMGXX"; then
5058 LLVMGXXCOMMAND="$LLVMGXX"
5061 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5062 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5063 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5064 { (exit 1); exit 1; }; };
5067 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5068 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5069 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5070 { (exit 1); exit 1; }; };
5074 # Check whether --with-extra-options was given.
5075 if test "${with_extra_options+set}" = set; then
5076 withval=$with_extra_options;
5082 default) EXTRA_OPTIONS= ;;
5083 *) EXTRA_OPTIONS=$withval ;;
5085 EXTRA_OPTIONS=$EXTRA_OPTIONS
5088 # Check whether --enable-bindings was given.
5089 if test "${enable_bindings+set}" = set; then
5090 enableval=$enable_bindings;
5095 BINDINGS_TO_BUILD=""
5096 case "$enableval" in
5097 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5098 all ) BINDINGS_TO_BUILD="ocaml" ;;
5099 none | no) BINDINGS_TO_BUILD="" ;;
5100 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5101 case "$a_binding" in
5102 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5103 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5104 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5105 { (exit 1); exit 1; }; } ;;
5112 # Check whether --with-ocaml-libdir was given.
5113 if test "${with_ocaml_libdir+set}" = set; then
5114 withval=$with_ocaml_libdir;
5120 auto) with_ocaml_libdir="$withval" ;;
5121 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5122 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5123 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5124 { (exit 1); exit 1; }; } ;;
5128 # Check whether --with-binutils-include was given.
5129 if test "${with_binutils_include+set}" = set; then
5130 withval=$with_binutils_include;
5136 default) WITH_BINUTILS_INCDIR=default ;;
5137 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5138 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5139 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5140 { (exit 1); exit 1; }; } ;;
5142 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5143 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5145 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5146 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5147 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5148 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5149 { (exit 1); exit 1; }; };
5153 # Check whether --enable-libffi was given.
5154 if test "${enable_libffi+set}" = set; then
5155 enableval=$enable_libffi;
5160 case "$enableval" in
5161 yes) llvm_cv_enable_libffi="yes" ;;
5162 no) llvm_cv_enable_libffi="no" ;;
5163 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5164 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5165 { (exit 1); exit 1; }; } ;;
5170 ac_cpp='$CPP $CPPFLAGS'
5171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5174 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5175 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5176 # On Suns, sometimes $CPP names a directory.
5177 if test -n "$CPP" && test -d "$CPP"; then
5180 if test -z "$CPP"; then
5181 if test "${ac_cv_prog_CPP+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 # Double quotes because CPP needs to be expanded
5185 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5188 for ac_c_preproc_warn_flag in '' yes
5190 # Use a header file that comes with gcc, so configuring glibc
5191 # with a fresh cross-compiler works.
5192 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5193 # <limits.h> exists even on freestanding compilers.
5194 # On the NeXT, cc -E runs the code through the compiler's parser,
5195 # not just through cpp. "Syntax error" is here to catch this case.
5196 cat >conftest.$ac_ext <<_ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h. */
5203 # include <limits.h>
5205 # include <assert.h>
5209 if { (ac_try="$ac_cpp conftest.$ac_ext"
5211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5212 *) ac_try_echo=$ac_try;;
5214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5217 grep -v '^ *+' conftest.er1 >conftest.err
5219 cat conftest.err >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } >/dev/null; then
5222 if test -s conftest.err; then
5223 ac_cpp_err=$ac_c_preproc_warn_flag
5224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5231 if test -z "$ac_cpp_err"; then
5234 echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5237 # Broken: fails on valid input.
5241 rm -f conftest.err conftest.$ac_ext
5243 # OK, works on sane cases. Now check whether nonexistent headers
5244 # can be detected and how.
5245 cat >conftest.$ac_ext <<_ACEOF
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h. */
5251 #include <ac_nonexistent.h>
5253 if { (ac_try="$ac_cpp conftest.$ac_ext"
5255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5256 *) ac_try_echo=$ac_try;;
5258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5261 grep -v '^ *+' conftest.er1 >conftest.err
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } >/dev/null; then
5266 if test -s conftest.err; then
5267 ac_cpp_err=$ac_c_preproc_warn_flag
5268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5275 if test -z "$ac_cpp_err"; then
5276 # Broken: success on invalid input.
5279 echo "$as_me: failed program was:" >&5
5280 sed 's/^/| /' conftest.$ac_ext >&5
5282 # Passes both tests.
5287 rm -f conftest.err conftest.$ac_ext
5290 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5291 rm -f conftest.err conftest.$ac_ext
5292 if $ac_preproc_ok; then
5304 { echo "$as_me:$LINENO: result: $CPP" >&5
5305 echo "${ECHO_T}$CPP" >&6; }
5307 for ac_c_preproc_warn_flag in '' yes
5309 # Use a header file that comes with gcc, so configuring glibc
5310 # with a fresh cross-compiler works.
5311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5312 # <limits.h> exists even on freestanding compilers.
5313 # On the NeXT, cc -E runs the code through the compiler's parser,
5314 # not just through cpp. "Syntax error" is here to catch this case.
5315 cat >conftest.$ac_ext <<_ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5322 # include <limits.h>
5324 # include <assert.h>
5328 if { (ac_try="$ac_cpp conftest.$ac_ext"
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5336 grep -v '^ *+' conftest.er1 >conftest.err
5338 cat conftest.err >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } >/dev/null; then
5341 if test -s conftest.err; then
5342 ac_cpp_err=$ac_c_preproc_warn_flag
5343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5350 if test -z "$ac_cpp_err"; then
5353 echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5356 # Broken: fails on valid input.
5360 rm -f conftest.err conftest.$ac_ext
5362 # OK, works on sane cases. Now check whether nonexistent headers
5363 # can be detected and how.
5364 cat >conftest.$ac_ext <<_ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5370 #include <ac_nonexistent.h>
5372 if { (ac_try="$ac_cpp conftest.$ac_ext"
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5380 grep -v '^ *+' conftest.er1 >conftest.err
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } >/dev/null; then
5385 if test -s conftest.err; then
5386 ac_cpp_err=$ac_c_preproc_warn_flag
5387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5394 if test -z "$ac_cpp_err"; then
5395 # Broken: success on invalid input.
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5401 # Passes both tests.
5406 rm -f conftest.err conftest.$ac_ext
5409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5410 rm -f conftest.err conftest.$ac_ext
5411 if $ac_preproc_ok; then
5414 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5415 See \`config.log' for more details." >&5
5416 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5417 See \`config.log' for more details." >&2;}
5418 { (exit 1); exit 1; }; }
5422 ac_cpp='$CPP $CPPFLAGS'
5423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5428 ac_cpp='$CPP $CPPFLAGS'
5429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5432 if test -n "$ac_tool_prefix"; then
5435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5439 if test "${ac_cv_prog_CC+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 if test -n "$CC"; then
5443 ac_cv_prog_CC="$CC" # Let the user override the test.
5445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449 test -z "$as_dir" && as_dir=.
5450 for ac_exec_ext in '' $ac_executable_extensions; do
5451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5452 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 if test -n "$CC"; then
5464 { echo "$as_me:$LINENO: result: $CC" >&5
5465 echo "${ECHO_T}$CC" >&6; }
5467 { echo "$as_me:$LINENO: result: no" >&5
5468 echo "${ECHO_T}no" >&6; }
5472 test -n "$CC" && break
5475 if test -z "$CC"; then
5479 # Extract the first word of "$ac_prog", so it can be a program name with args.
5480 set dummy $ac_prog; ac_word=$2
5481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5486 if test -n "$ac_ct_CC"; then
5487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 test -z "$as_dir" && as_dir=.
5494 for ac_exec_ext in '' $ac_executable_extensions; do
5495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5496 ac_cv_prog_ac_ct_CC="$ac_prog"
5497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5507 if test -n "$ac_ct_CC"; then
5508 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5509 echo "${ECHO_T}$ac_ct_CC" >&6; }
5511 { echo "$as_me:$LINENO: result: no" >&5
5512 echo "${ECHO_T}no" >&6; }
5516 test -n "$ac_ct_CC" && break
5519 if test "x$ac_ct_CC" = x; then
5522 case $cross_compiling:$ac_tool_warned in
5524 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5525 whose name does not start with the host triplet. If you think this
5526 configuration is useful to you, please write to autoconf@gnu.org." >&5
5527 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5528 whose name does not start with the host triplet. If you think this
5529 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5530 ac_tool_warned=yes ;;
5537 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5538 See \`config.log' for more details." >&5
5539 echo "$as_me: error: no acceptable C compiler found in \$PATH
5540 See \`config.log' for more details." >&2;}
5541 { (exit 1); exit 1; }; }
5543 # Provide some information about the compiler.
5544 echo "$as_me:$LINENO: checking for C compiler version" >&5
5545 ac_compiler=`set X $ac_compile; echo $2`
5546 { (ac_try="$ac_compiler --version >&5"
5548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552 (eval "$ac_compiler --version >&5") 2>&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }
5556 { (ac_try="$ac_compiler -v >&5"
5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562 (eval "$ac_compiler -v >&5") 2>&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }
5566 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }
5577 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5578 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5579 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5582 cat >conftest.$ac_ext <<_ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5600 rm -f conftest.$ac_objext
5601 if { (ac_try="$ac_compile"
5603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607 (eval "$ac_compile") 2>conftest.er1
5609 grep -v '^ *+' conftest.er1 >conftest.err
5611 cat conftest.err >&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } &&
5614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5615 { (case "(($ac_try" in
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_try") 2>&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; } &&
5624 { ac_try='test -s conftest.$ac_objext'
5625 { (case "(($ac_try" in
5626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5627 *) ac_try_echo=$ac_try;;
5629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5630 (eval "$ac_try") 2>&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; }; then
5636 echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5646 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5647 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5648 GCC=`test $ac_compiler_gnu = yes && echo yes`
5649 ac_test_CFLAGS=${CFLAGS+set}
5650 ac_save_CFLAGS=$CFLAGS
5651 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5652 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5653 if test "${ac_cv_prog_cc_g+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 ac_save_c_werror_flag=$ac_c_werror_flag
5657 ac_c_werror_flag=yes
5660 cat >conftest.$ac_ext <<_ACEOF
5663 cat confdefs.h >>conftest.$ac_ext
5664 cat >>conftest.$ac_ext <<_ACEOF
5665 /* end confdefs.h. */
5675 rm -f conftest.$ac_objext
5676 if { (ac_try="$ac_compile"
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682 (eval "$ac_compile") 2>conftest.er1
5684 grep -v '^ *+' conftest.er1 >conftest.err
5686 cat conftest.err >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } &&
5689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5690 { (case "(($ac_try" in
5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 (eval "$ac_try") 2>&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; } &&
5699 { ac_try='test -s conftest.$ac_objext'
5700 { (case "(($ac_try" in
5701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702 *) ac_try_echo=$ac_try;;
5704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5705 (eval "$ac_try") 2>&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; }; then
5711 echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.$ac_ext >&5
5715 cat >conftest.$ac_ext <<_ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5730 rm -f conftest.$ac_objext
5731 if { (ac_try="$ac_compile"
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_compile") 2>conftest.er1
5739 grep -v '^ *+' conftest.er1 >conftest.err
5741 cat conftest.err >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } &&
5744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5745 { (case "(($ac_try" in
5746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747 *) ac_try_echo=$ac_try;;
5749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750 (eval "$ac_try") 2>&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; } &&
5754 { ac_try='test -s conftest.$ac_objext'
5755 { (case "(($ac_try" in
5756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5760 (eval "$ac_try") 2>&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; }; then
5766 echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5769 ac_c_werror_flag=$ac_save_c_werror_flag
5771 cat >conftest.$ac_ext <<_ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5786 rm -f conftest.$ac_objext
5787 if { (ac_try="$ac_compile"
5789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790 *) ac_try_echo=$ac_try;;
5792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793 (eval "$ac_compile") 2>conftest.er1
5795 grep -v '^ *+' conftest.er1 >conftest.err
5797 cat conftest.err >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } &&
5800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5801 { (case "(($ac_try" in
5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803 *) ac_try_echo=$ac_try;;
5805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806 (eval "$ac_try") 2>&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; } &&
5810 { ac_try='test -s conftest.$ac_objext'
5811 { (case "(($ac_try" in
5812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813 *) ac_try_echo=$ac_try;;
5815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5816 (eval "$ac_try") 2>&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; }; then
5822 echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5835 ac_c_werror_flag=$ac_save_c_werror_flag
5837 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5838 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5839 if test "$ac_test_CFLAGS" = set; then
5840 CFLAGS=$ac_save_CFLAGS
5841 elif test $ac_cv_prog_cc_g = yes; then
5842 if test "$GCC" = yes; then
5848 if test "$GCC" = yes; then
5854 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5855 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5856 if test "${ac_cv_prog_cc_c89+set}" = set; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 ac_cv_prog_cc_c89=no
5861 cat >conftest.$ac_ext <<_ACEOF
5864 cat confdefs.h >>conftest.$ac_ext
5865 cat >>conftest.$ac_ext <<_ACEOF
5866 /* end confdefs.h. */
5869 #include <sys/types.h>
5870 #include <sys/stat.h>
5871 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5872 struct buf { int x; };
5873 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5874 static char *e (p, i)
5880 static char *f (char * (*g) (char **, int), char **p, ...)
5885 s = g (p, va_arg (v,int));
5890 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5891 function prototypes and stuff, but not '\xHH' hex character constants.
5892 These don't provoke an error unfortunately, instead are silently treated
5893 as 'x'. The following induces an error, until -std is added to get
5894 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5895 array size at least. It's necessary to write '\x00'==0 to get something
5896 that's true only with -std. */
5897 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5899 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5900 inside strings and character constants. */
5902 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5904 int test (int i, double x);
5905 struct s1 {int (*f) (int a);};
5906 struct s2 {int (*f) (double a);};
5907 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5913 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5918 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5919 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5921 CC="$ac_save_CC $ac_arg"
5922 rm -f conftest.$ac_objext
5923 if { (ac_try="$ac_compile"
5925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926 *) ac_try_echo=$ac_try;;
5928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5929 (eval "$ac_compile") 2>conftest.er1
5931 grep -v '^ *+' conftest.er1 >conftest.err
5933 cat conftest.err >&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); } &&
5936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5937 { (case "(($ac_try" in
5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5942 (eval "$ac_try") 2>&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; } &&
5946 { ac_try='test -s conftest.$ac_objext'
5947 { (case "(($ac_try" in
5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952 (eval "$ac_try") 2>&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; }; then
5956 ac_cv_prog_cc_c89=$ac_arg
5958 echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5964 rm -f core conftest.err conftest.$ac_objext
5965 test "x$ac_cv_prog_cc_c89" != "xno" && break
5967 rm -f conftest.$ac_ext
5972 case "x$ac_cv_prog_cc_c89" in
5974 { echo "$as_me:$LINENO: result: none needed" >&5
5975 echo "${ECHO_T}none needed" >&6; } ;;
5977 { echo "$as_me:$LINENO: result: unsupported" >&5
5978 echo "${ECHO_T}unsupported" >&6; } ;;
5980 CC="$CC $ac_cv_prog_cc_c89"
5981 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5982 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5987 ac_cpp='$CPP $CPPFLAGS'
5988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5993 ac_cpp='$CXXCPP $CPPFLAGS'
5994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5997 if test -z "$CXX"; then
5998 if test -n "$CCC"; then
6001 if test -n "$ac_tool_prefix"; then
6004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6005 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6008 if test "${ac_cv_prog_CXX+set}" = set; then
6009 echo $ECHO_N "(cached) $ECHO_C" >&6
6011 if test -n "$CXX"; then
6012 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 test -z "$as_dir" && as_dir=.
6019 for ac_exec_ext in '' $ac_executable_extensions; do
6020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6021 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 if test -n "$CXX"; then
6033 { echo "$as_me:$LINENO: result: $CXX" >&5
6034 echo "${ECHO_T}$CXX" >&6; }
6036 { echo "$as_me:$LINENO: result: no" >&5
6037 echo "${ECHO_T}no" >&6; }
6041 test -n "$CXX" && break
6044 if test -z "$CXX"; then
6048 # Extract the first word of "$ac_prog", so it can be a program name with args.
6049 set dummy $ac_prog; ac_word=$2
6050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6052 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 if test -n "$ac_ct_CXX"; then
6056 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6065 ac_cv_prog_ac_ct_CXX="$ac_prog"
6066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6076 if test -n "$ac_ct_CXX"; then
6077 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6078 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6080 { echo "$as_me:$LINENO: result: no" >&5
6081 echo "${ECHO_T}no" >&6; }
6085 test -n "$ac_ct_CXX" && break
6088 if test "x$ac_ct_CXX" = x; then
6091 case $cross_compiling:$ac_tool_warned in
6093 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6094 whose name does not start with the host triplet. If you think this
6095 configuration is useful to you, please write to autoconf@gnu.org." >&5
6096 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6097 whose name does not start with the host triplet. If you think this
6098 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6099 ac_tool_warned=yes ;;
6107 # Provide some information about the compiler.
6108 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6109 ac_compiler=`set X $ac_compile; echo $2`
6110 { (ac_try="$ac_compiler --version >&5"
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116 (eval "$ac_compiler --version >&5") 2>&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }
6120 { (ac_try="$ac_compiler -v >&5"
6122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126 (eval "$ac_compiler -v >&5") 2>&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }
6130 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }
6141 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6142 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6143 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 cat >conftest.$ac_ext <<_ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6164 rm -f conftest.$ac_objext
6165 if { (ac_try="$ac_compile"
6167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6171 (eval "$ac_compile") 2>conftest.er1
6173 grep -v '^ *+' conftest.er1 >conftest.err
6175 cat conftest.err >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } &&
6178 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6179 { (case "(($ac_try" in
6180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6181 *) ac_try_echo=$ac_try;;
6183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6184 (eval "$ac_try") 2>&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; } &&
6188 { ac_try='test -s conftest.$ac_objext'
6189 { (case "(($ac_try" in
6190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191 *) ac_try_echo=$ac_try;;
6193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6194 (eval "$ac_try") 2>&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6210 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6211 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6212 GXX=`test $ac_compiler_gnu = yes && echo yes`
6213 ac_test_CXXFLAGS=${CXXFLAGS+set}
6214 ac_save_CXXFLAGS=$CXXFLAGS
6215 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6216 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6217 if test "${ac_cv_prog_cxx_g+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6220 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6221 ac_cxx_werror_flag=yes
6224 cat >conftest.$ac_ext <<_ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6239 rm -f conftest.$ac_objext
6240 if { (ac_try="$ac_compile"
6242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6243 *) ac_try_echo=$ac_try;;
6245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6246 (eval "$ac_compile") 2>conftest.er1
6248 grep -v '^ *+' conftest.er1 >conftest.err
6250 cat conftest.err >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } &&
6253 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6254 { (case "(($ac_try" in
6255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256 *) ac_try_echo=$ac_try;;
6258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259 (eval "$ac_try") 2>&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; } &&
6263 { ac_try='test -s conftest.$ac_objext'
6264 { (case "(($ac_try" in
6265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266 *) ac_try_echo=$ac_try;;
6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$ac_try") 2>&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; }; then
6273 ac_cv_prog_cxx_g=yes
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6279 cat >conftest.$ac_ext <<_ACEOF
6282 cat confdefs.h >>conftest.$ac_ext
6283 cat >>conftest.$ac_ext <<_ACEOF
6284 /* end confdefs.h. */
6294 rm -f conftest.$ac_objext
6295 if { (ac_try="$ac_compile"
6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298 *) ac_try_echo=$ac_try;;
6300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301 (eval "$ac_compile") 2>conftest.er1
6303 grep -v '^ *+' conftest.er1 >conftest.err
6305 cat conftest.err >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } &&
6308 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6309 { (case "(($ac_try" in
6310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6311 *) ac_try_echo=$ac_try;;
6313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6314 (eval "$ac_try") 2>&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; } &&
6318 { ac_try='test -s conftest.$ac_objext'
6319 { (case "(($ac_try" in
6320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6321 *) ac_try_echo=$ac_try;;
6323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6324 (eval "$ac_try") 2>&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; }; then
6330 echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6333 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6335 cat >conftest.$ac_ext <<_ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6350 rm -f conftest.$ac_objext
6351 if { (ac_try="$ac_compile"
6353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6354 *) ac_try_echo=$ac_try;;
6356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6357 (eval "$ac_compile") 2>conftest.er1
6359 grep -v '^ *+' conftest.er1 >conftest.err
6361 cat conftest.err >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
6364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6365 { (case "(($ac_try" in
6366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6367 *) ac_try_echo=$ac_try;;
6369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6370 (eval "$ac_try") 2>&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; } &&
6374 { ac_try='test -s conftest.$ac_objext'
6375 { (case "(($ac_try" in
6376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6377 *) ac_try_echo=$ac_try;;
6379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6380 (eval "$ac_try") 2>&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); }; }; then
6384 ac_cv_prog_cxx_g=yes
6386 echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6399 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6401 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6402 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6403 if test "$ac_test_CXXFLAGS" = set; then
6404 CXXFLAGS=$ac_save_CXXFLAGS
6405 elif test $ac_cv_prog_cxx_g = yes; then
6406 if test "$GXX" = yes; then
6412 if test "$GXX" = yes; then
6419 ac_cpp='$CPP $CPPFLAGS'
6420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6425 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6426 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6427 if test "${lt_cv_path_NM+set}" = set; then
6428 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 if test -n "$NM"; then
6431 # Let the user override the test.
6434 lt_nm_to_check="${ac_tool_prefix}nm"
6435 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6436 lt_nm_to_check="$lt_nm_to_check nm"
6438 for lt_tmp_nm in $lt_nm_to_check; do
6439 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6440 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6442 test -z "$ac_dir" && ac_dir=.
6443 tmp_nm="$ac_dir/$lt_tmp_nm"
6444 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6445 # Check to see if the nm accepts a BSD-compat flag.
6446 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6447 # nm: unknown option "B" ignored
6448 # Tru64's nm complains that /dev/null is an invalid object file
6449 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6450 */dev/null* | *'Invalid file or object type'*)
6451 lt_cv_path_NM="$tmp_nm -B"
6455 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6457 lt_cv_path_NM="$tmp_nm -p"
6461 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6462 continue # so that we can try to find one that supports BSD flags
6471 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6474 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6475 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6480 { echo "$as_me:$LINENO: checking for GNU make" >&5
6481 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6482 if test "${llvm_cv_gnu_make_command+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 llvm_cv_gnu_make_command=''
6486 for a in "$MAKE" make gmake gnumake ; do
6487 if test -z "$a" ; then continue ; fi ;
6488 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6490 llvm_cv_gnu_make_command=$a ;
6495 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6496 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6497 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6501 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6502 echo "${ECHO_T}\"Not found\"" >&6; };
6506 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6507 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6509 if test "$LN_S" = "ln -s"; then
6510 { echo "$as_me:$LINENO: result: yes" >&5
6511 echo "${ECHO_T}yes" >&6; }
6513 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6514 echo "${ECHO_T}no, using $LN_S" >&6; }
6517 # Extract the first word of "cmp", so it can be a program name with args.
6518 set dummy cmp; ac_word=$2
6519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6521 if test "${ac_cv_path_CMP+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6536 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6549 if test -n "$CMP"; then
6550 { echo "$as_me:$LINENO: result: $CMP" >&5
6551 echo "${ECHO_T}$CMP" >&6; }
6553 { echo "$as_me:$LINENO: result: no" >&5
6554 echo "${ECHO_T}no" >&6; }
6558 # Extract the first word of "cp", so it can be a program name with args.
6559 set dummy cp; ac_word=$2
6560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6562 if test "${ac_cv_path_CP+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 test -z "$as_dir" && as_dir=.
6575 for ac_exec_ext in '' $ac_executable_extensions; do
6576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6577 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6585 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6590 if test -n "$CP"; then
6591 { echo "$as_me:$LINENO: result: $CP" >&5
6592 echo "${ECHO_T}$CP" >&6; }
6594 { echo "$as_me:$LINENO: result: no" >&5
6595 echo "${ECHO_T}no" >&6; }
6599 # Extract the first word of "date", so it can be a program name with args.
6600 set dummy date; ac_word=$2
6601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6603 if test "${ac_cv_path_DATE+set}" = set; then
6604 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6618 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6626 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6630 DATE=$ac_cv_path_DATE
6631 if test -n "$DATE"; then
6632 { echo "$as_me:$LINENO: result: $DATE" >&5
6633 echo "${ECHO_T}$DATE" >&6; }
6635 { echo "$as_me:$LINENO: result: no" >&5
6636 echo "${ECHO_T}no" >&6; }
6640 # Extract the first word of "find", so it can be a program name with args.
6641 set dummy find; ac_word=$2
6642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6644 if test "${ac_cv_path_FIND+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6659 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6671 FIND=$ac_cv_path_FIND
6672 if test -n "$FIND"; then
6673 { echo "$as_me:$LINENO: result: $FIND" >&5
6674 echo "${ECHO_T}$FIND" >&6; }
6676 { echo "$as_me:$LINENO: result: no" >&5
6677 echo "${ECHO_T}no" >&6; }
6681 # Extract the first word of "grep", so it can be a program name with args.
6682 set dummy grep; ac_word=$2
6683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6685 if test "${ac_cv_path_GREP+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6690 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
6699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6700 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6712 GREP=$ac_cv_path_GREP
6713 if test -n "$GREP"; then
6714 { echo "$as_me:$LINENO: result: $GREP" >&5
6715 echo "${ECHO_T}$GREP" >&6; }
6717 { echo "$as_me:$LINENO: result: no" >&5
6718 echo "${ECHO_T}no" >&6; }
6722 # Extract the first word of "mkdir", so it can be a program name with args.
6723 set dummy mkdir; ac_word=$2
6724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6726 if test "${ac_cv_path_MKDIR+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6741 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6753 MKDIR=$ac_cv_path_MKDIR
6754 if test -n "$MKDIR"; then
6755 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6756 echo "${ECHO_T}$MKDIR" >&6; }
6758 { echo "$as_me:$LINENO: result: no" >&5
6759 echo "${ECHO_T}no" >&6; }
6763 # Extract the first word of "mv", so it can be a program name with args.
6764 set dummy mv; ac_word=$2
6765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6767 if test "${ac_cv_path_MV+set}" = set; then
6768 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6782 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6790 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6795 if test -n "$MV"; then
6796 { echo "$as_me:$LINENO: result: $MV" >&5
6797 echo "${ECHO_T}$MV" >&6; }
6799 { echo "$as_me:$LINENO: result: no" >&5
6800 echo "${ECHO_T}no" >&6; }
6804 if test -n "$ac_tool_prefix"; then
6805 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6806 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6809 if test "${ac_cv_prog_RANLIB+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6812 if test -n "$RANLIB"; then
6813 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6822 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 RANLIB=$ac_cv_prog_RANLIB
6833 if test -n "$RANLIB"; then
6834 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6835 echo "${ECHO_T}$RANLIB" >&6; }
6837 { echo "$as_me:$LINENO: result: no" >&5
6838 echo "${ECHO_T}no" >&6; }
6843 if test -z "$ac_cv_prog_RANLIB"; then
6844 ac_ct_RANLIB=$RANLIB
6845 # Extract the first word of "ranlib", so it can be a program name with args.
6846 set dummy ranlib; ac_word=$2
6847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6849 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6850 echo $ECHO_N "(cached) $ECHO_C" >&6
6852 if test -n "$ac_ct_RANLIB"; then
6853 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859 test -z "$as_dir" && as_dir=.
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6862 ac_cv_prog_ac_ct_RANLIB="ranlib"
6863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6873 if test -n "$ac_ct_RANLIB"; then
6874 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6875 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6877 { echo "$as_me:$LINENO: result: no" >&5
6878 echo "${ECHO_T}no" >&6; }
6881 if test "x$ac_ct_RANLIB" = x; then
6884 case $cross_compiling:$ac_tool_warned in
6886 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6887 whose name does not start with the host triplet. If you think this
6888 configuration is useful to you, please write to autoconf@gnu.org." >&5
6889 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6890 whose name does not start with the host triplet. If you think this
6891 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6892 ac_tool_warned=yes ;;
6894 RANLIB=$ac_ct_RANLIB
6897 RANLIB="$ac_cv_prog_RANLIB"
6900 # Extract the first word of "rm", so it can be a program name with args.
6901 set dummy rm; ac_word=$2
6902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904 if test "${ac_cv_path_RM+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6919 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6932 if test -n "$RM"; then
6933 { echo "$as_me:$LINENO: result: $RM" >&5
6934 echo "${ECHO_T}$RM" >&6; }
6936 { echo "$as_me:$LINENO: result: no" >&5
6937 echo "${ECHO_T}no" >&6; }
6941 # Extract the first word of "sed", so it can be a program name with args.
6942 set dummy sed; ac_word=$2
6943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6945 if test "${ac_cv_path_SED+set}" = set; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
6950 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 test -z "$as_dir" && as_dir=.
6958 for ac_exec_ext in '' $ac_executable_extensions; do
6959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6960 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6973 if test -n "$SED"; then
6974 { echo "$as_me:$LINENO: result: $SED" >&5
6975 echo "${ECHO_T}$SED" >&6; }
6977 { echo "$as_me:$LINENO: result: no" >&5
6978 echo "${ECHO_T}no" >&6; }
6982 # Extract the first word of "tar", so it can be a program name with args.
6983 set dummy tar; ac_word=$2
6984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6986 if test "${ac_cv_path_TAR+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7001 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7014 if test -n "$TAR"; then
7015 { echo "$as_me:$LINENO: result: $TAR" >&5
7016 echo "${ECHO_T}$TAR" >&6; }
7018 { echo "$as_me:$LINENO: result: no" >&5
7019 echo "${ECHO_T}no" >&6; }
7023 # Extract the first word of "pwd", so it can be a program name with args.
7024 set dummy pwd; ac_word=$2
7025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7027 if test "${ac_cv_path_BINPWD+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 test -z "$as_dir" && as_dir=.
7040 for ac_exec_ext in '' $ac_executable_extensions; do
7041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7042 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7054 BINPWD=$ac_cv_path_BINPWD
7055 if test -n "$BINPWD"; then
7056 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7057 echo "${ECHO_T}$BINPWD" >&6; }
7059 { echo "$as_me:$LINENO: result: no" >&5
7060 echo "${ECHO_T}no" >&6; }
7065 # Extract the first word of "Graphviz", so it can be a program name with args.
7066 set dummy Graphviz; ac_word=$2
7067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7069 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7084 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7096 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7097 if test -n "$GRAPHVIZ"; then
7098 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7099 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7101 { echo "$as_me:$LINENO: result: no" >&5
7102 echo "${ECHO_T}no" >&6; }
7106 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7108 cat >>confdefs.h <<\_ACEOF
7109 #define HAVE_GRAPHVIZ 1
7112 if test "$llvm_cv_os_type" = "MingW" ; then
7113 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7116 cat >>confdefs.h <<_ACEOF
7117 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7121 # Extract the first word of "dot", so it can be a program name with args.
7122 set dummy dot; ac_word=$2
7123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7125 if test "${ac_cv_path_DOT+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7140 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7153 if test -n "$DOT"; then
7154 { echo "$as_me:$LINENO: result: $DOT" >&5
7155 echo "${ECHO_T}$DOT" >&6; }
7157 { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7162 if test "$DOT" != "echo dot" ; then
7164 cat >>confdefs.h <<\_ACEOF
7168 if test "$llvm_cv_os_type" = "MingW" ; then
7169 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7172 cat >>confdefs.h <<_ACEOF
7173 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7177 for ac_prog in gv gsview32
7179 # Extract the first word of "$ac_prog", so it can be a program name with args.
7180 set dummy $ac_prog; ac_word=$2
7181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7183 if test "${ac_cv_path_GV+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7198 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 if test -n "$GV"; then
7211 { echo "$as_me:$LINENO: result: $GV" >&5
7212 echo "${ECHO_T}$GV" >&6; }
7214 { echo "$as_me:$LINENO: result: no" >&5
7215 echo "${ECHO_T}no" >&6; }
7219 test -n "$GV" && break
7221 test -n "$GV" || GV="echo gv"
7223 if test "$GV" != "echo gv" ; then
7225 cat >>confdefs.h <<\_ACEOF
7229 if test "$llvm_cv_os_type" = "MingW" ; then
7230 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7233 cat >>confdefs.h <<_ACEOF
7234 #define LLVM_PATH_GV "$GV${EXEEXT}"
7238 # Extract the first word of "dotty", so it can be a program name with args.
7239 set dummy dotty; ac_word=$2
7240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7242 if test "${ac_cv_path_DOTTY+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7257 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7265 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7269 DOTTY=$ac_cv_path_DOTTY
7270 if test -n "$DOTTY"; then
7271 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7272 echo "${ECHO_T}$DOTTY" >&6; }
7274 { echo "$as_me:$LINENO: result: no" >&5
7275 echo "${ECHO_T}no" >&6; }
7279 if test "$DOTTY" != "echo dotty" ; then
7281 cat >>confdefs.h <<\_ACEOF
7282 #define HAVE_DOTTY 1
7285 if test "$llvm_cv_os_type" = "MingW" ; then
7286 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7289 cat >>confdefs.h <<_ACEOF
7290 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7296 # Extract the first word of "perl", so it can be a program name with args.
7297 set dummy perl; ac_word=$2
7298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7300 if test "${ac_cv_path_PERL+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7315 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7327 PERL=$ac_cv_path_PERL
7328 if test -n "$PERL"; then
7329 { echo "$as_me:$LINENO: result: $PERL" >&5
7330 echo "${ECHO_T}$PERL" >&6; }
7332 { echo "$as_me:$LINENO: result: no" >&5
7333 echo "${ECHO_T}no" >&6; }
7337 if test "$PERL" != "none"; then
7338 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7339 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7340 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7341 { echo "$as_me:$LINENO: result: yes" >&5
7342 echo "${ECHO_T}yes" >&6; }
7345 { echo "$as_me:$LINENO: result: not found" >&5
7346 echo "${ECHO_T}not found" >&6; }
7351 if test x"$PERL" = xnone; then
7354 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7355 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7356 { (exit 1); exit 1; }; }
7362 # Find a good install program. We prefer a C program (faster),
7363 # so one script is as good as another. But avoid the broken or
7364 # incompatible versions:
7365 # SysV /etc/install, /usr/sbin/install
7366 # SunOS /usr/etc/install
7367 # IRIX /sbin/install
7369 # AmigaOS /C/install, which installs bootblocks on floppy discs
7370 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7371 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7372 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7373 # OS/2's system install, which has a completely different semantic
7374 # ./install, which can be erroneously created by make from ./install.sh.
7375 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7376 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7377 if test -z "$INSTALL"; then
7378 if test "${ac_cv_path_install+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 test -z "$as_dir" && as_dir=.
7386 # Account for people who put trailing slashes in PATH elements.
7388 ./ | .// | /cC/* | \
7389 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7390 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7393 # OSF1 and SCO ODT 3.0 have their own names for install.
7394 # Don't use installbsd from OSF since it installs stuff as root
7396 for ac_prog in ginstall scoinst install; do
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7399 if test $ac_prog = install &&
7400 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7401 # AIX install. It has an incompatible calling convention.
7403 elif test $ac_prog = install &&
7404 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7405 # program-specific install script used by HP pwplus--don't use.
7408 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7421 if test "${ac_cv_path_install+set}" = set; then
7422 INSTALL=$ac_cv_path_install
7424 # As a last resort, use the slow shell script. Don't cache a
7425 # value for INSTALL within a source directory, because that will
7426 # break other packages using the cache if that directory is
7427 # removed, or if the value is a relative name.
7428 INSTALL=$ac_install_sh
7431 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7432 echo "${ECHO_T}$INSTALL" >&6; }
7434 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7435 # It thinks the first close brace ends the variable substitution.
7436 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7438 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7440 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7443 # Extract the first word of "bzip2", so it can be a program name with args.
7444 set dummy bzip2; ac_word=$2
7445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7447 if test "${ac_cv_path_BZIP2+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7452 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 test -z "$as_dir" && as_dir=.
7460 for ac_exec_ext in '' $ac_executable_extensions; do
7461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7462 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 BZIP2=$ac_cv_path_BZIP2
7474 if test -n "$BZIP2"; then
7475 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7476 echo "${ECHO_T}$BZIP2" >&6; }
7478 { echo "$as_me:$LINENO: result: no" >&5
7479 echo "${ECHO_T}no" >&6; }
7483 # Extract the first word of "doxygen", so it can be a program name with args.
7484 set dummy doxygen; ac_word=$2
7485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7487 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7502 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7513 DOXYGEN=$ac_cv_path_DOXYGEN
7514 if test -n "$DOXYGEN"; then
7515 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7516 echo "${ECHO_T}$DOXYGEN" >&6; }
7518 { echo "$as_me:$LINENO: result: no" >&5
7519 echo "${ECHO_T}no" >&6; }
7523 # Extract the first word of "groff", so it can be a program name with args.
7524 set dummy groff; ac_word=$2
7525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7527 if test "${ac_cv_path_GROFF+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7532 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7542 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 GROFF=$ac_cv_path_GROFF
7554 if test -n "$GROFF"; then
7555 { echo "$as_me:$LINENO: result: $GROFF" >&5
7556 echo "${ECHO_T}$GROFF" >&6; }
7558 { echo "$as_me:$LINENO: result: no" >&5
7559 echo "${ECHO_T}no" >&6; }
7563 # Extract the first word of "gzip", so it can be a program name with args.
7564 set dummy gzip; ac_word=$2
7565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7567 if test "${ac_cv_path_GZIP+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7572 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7582 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7593 GZIP=$ac_cv_path_GZIP
7594 if test -n "$GZIP"; then
7595 { echo "$as_me:$LINENO: result: $GZIP" >&5
7596 echo "${ECHO_T}$GZIP" >&6; }
7598 { echo "$as_me:$LINENO: result: no" >&5
7599 echo "${ECHO_T}no" >&6; }
7603 # Extract the first word of "pod2html", so it can be a program name with args.
7604 set dummy pod2html; ac_word=$2
7605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7607 if test "${ac_cv_path_POD2HTML+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7622 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7633 POD2HTML=$ac_cv_path_POD2HTML
7634 if test -n "$POD2HTML"; then
7635 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7636 echo "${ECHO_T}$POD2HTML" >&6; }
7638 { echo "$as_me:$LINENO: result: no" >&5
7639 echo "${ECHO_T}no" >&6; }
7643 # Extract the first word of "pod2man", so it can be a program name with args.
7644 set dummy pod2man; ac_word=$2
7645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7647 if test "${ac_cv_path_POD2MAN+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 test -z "$as_dir" && as_dir=.
7660 for ac_exec_ext in '' $ac_executable_extensions; do
7661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7662 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7673 POD2MAN=$ac_cv_path_POD2MAN
7674 if test -n "$POD2MAN"; then
7675 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7676 echo "${ECHO_T}$POD2MAN" >&6; }
7678 { echo "$as_me:$LINENO: result: no" >&5
7679 echo "${ECHO_T}no" >&6; }
7683 # Extract the first word of "runtest", so it can be a program name with args.
7684 set dummy runtest; ac_word=$2
7685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7687 if test "${ac_cv_path_RUNTEST+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 test -z "$as_dir" && as_dir=.
7700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7702 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7713 RUNTEST=$ac_cv_path_RUNTEST
7714 if test -n "$RUNTEST"; then
7715 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7716 echo "${ECHO_T}$RUNTEST" >&6; }
7718 { echo "$as_me:$LINENO: result: no" >&5
7719 echo "${ECHO_T}no" >&6; }
7725 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7726 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7728 # Check whether --with-tclinclude was given.
7729 if test "${with_tclinclude+set}" = set; then
7730 withval=$with_tclinclude; with_tclinclude=${withval}
7735 if test "${ac_cv_path_tclsh+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7739 if test x"${with_tclinclude}" != x ; then
7740 if test -f ${with_tclinclude}/tclsh ; then
7741 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7742 elif test -f ${with_tclinclude}/src/tclsh ; then
7743 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7745 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7746 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7747 { (exit 1); exit 1; }; }
7751 if test x"${ac_cv_path_tclsh}" = x ; then
7752 { echo "$as_me:$LINENO: result: none" >&5
7753 echo "${ECHO_T}none" >&6; }
7754 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
7756 # Extract the first word of "$ac_prog", so it can be a program name with args.
7757 set dummy $ac_prog; ac_word=$2
7758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7760 if test "${ac_cv_path_TCLSH+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7765 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 test -z "$as_dir" && as_dir=.
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7775 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 TCLSH=$ac_cv_path_TCLSH
7787 if test -n "$TCLSH"; then
7788 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7789 echo "${ECHO_T}$TCLSH" >&6; }
7791 { echo "$as_me:$LINENO: result: no" >&5
7792 echo "${ECHO_T}no" >&6; }
7796 test -n "$TCLSH" && break
7799 if test x"${TCLSH}" = x ; then
7800 ac_cv_path_tclsh='';
7802 ac_cv_path_tclsh="${TCLSH}";
7805 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7806 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7807 TCLSH="${ac_cv_path_tclsh}"
7813 # Extract the first word of "zip", so it can be a program name with args.
7814 set dummy zip; ac_word=$2
7815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7817 if test "${ac_cv_path_ZIP+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7822 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829 test -z "$as_dir" && as_dir=.
7830 for ac_exec_ext in '' $ac_executable_extensions; do
7831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7832 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 if test -n "$ZIP"; then
7845 { echo "$as_me:$LINENO: result: $ZIP" >&5
7846 echo "${ECHO_T}$ZIP" >&6; }
7848 { echo "$as_me:$LINENO: result: no" >&5
7849 echo "${ECHO_T}no" >&6; }
7853 for ac_prog in ocamlc
7855 # Extract the first word of "$ac_prog", so it can be a program name with args.
7856 set dummy $ac_prog; ac_word=$2
7857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7859 if test "${ac_cv_path_OCAMLC+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7864 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 test -z "$as_dir" && as_dir=.
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7874 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7885 OCAMLC=$ac_cv_path_OCAMLC
7886 if test -n "$OCAMLC"; then
7887 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7888 echo "${ECHO_T}$OCAMLC" >&6; }
7890 { echo "$as_me:$LINENO: result: no" >&5
7891 echo "${ECHO_T}no" >&6; }
7895 test -n "$OCAMLC" && break
7898 for ac_prog in ocamlopt
7900 # Extract the first word of "$ac_prog", so it can be a program name with args.
7901 set dummy $ac_prog; ac_word=$2
7902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7904 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916 test -z "$as_dir" && as_dir=.
7917 for ac_exec_ext in '' $ac_executable_extensions; do
7918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7919 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7930 OCAMLOPT=$ac_cv_path_OCAMLOPT
7931 if test -n "$OCAMLOPT"; then
7932 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7933 echo "${ECHO_T}$OCAMLOPT" >&6; }
7935 { echo "$as_me:$LINENO: result: no" >&5
7936 echo "${ECHO_T}no" >&6; }
7940 test -n "$OCAMLOPT" && break
7943 for ac_prog in ocamldep
7945 # Extract the first word of "$ac_prog", so it can be a program name with args.
7946 set dummy $ac_prog; ac_word=$2
7947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7949 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 test -z "$as_dir" && as_dir=.
7962 for ac_exec_ext in '' $ac_executable_extensions; do
7963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7964 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 OCAMLDEP=$ac_cv_path_OCAMLDEP
7976 if test -n "$OCAMLDEP"; then
7977 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7978 echo "${ECHO_T}$OCAMLDEP" >&6; }
7980 { echo "$as_me:$LINENO: result: no" >&5
7981 echo "${ECHO_T}no" >&6; }
7985 test -n "$OCAMLDEP" && break
7988 for ac_prog in ocamldoc
7990 # Extract the first word of "$ac_prog", so it can be a program name with args.
7991 set dummy $ac_prog; ac_word=$2
7992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7994 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7999 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8009 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 OCAMLDOC=$ac_cv_path_OCAMLDOC
8021 if test -n "$OCAMLDOC"; then
8022 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8023 echo "${ECHO_T}$OCAMLDOC" >&6; }
8025 { echo "$as_me:$LINENO: result: no" >&5
8026 echo "${ECHO_T}no" >&6; }
8030 test -n "$OCAMLDOC" && break
8033 for ac_prog in gas as
8035 # Extract the first word of "$ac_prog", so it can be a program name with args.
8036 set dummy $ac_prog; ac_word=$2
8037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8039 if test "${ac_cv_path_GAS+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8044 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051 test -z "$as_dir" && as_dir=.
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8054 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8066 if test -n "$GAS"; then
8067 { echo "$as_me:$LINENO: result: $GAS" >&5
8068 echo "${ECHO_T}$GAS" >&6; }
8070 { echo "$as_me:$LINENO: result: no" >&5
8071 echo "${ECHO_T}no" >&6; }
8075 test -n "$GAS" && break
8079 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8080 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8081 if test "${llvm_cv_link_use_r+set}" = set; then
8082 echo $ECHO_N "(cached) $ECHO_C" >&6
8085 ac_cpp='$CPP $CPPFLAGS'
8086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8091 CFLAGS="$CFLAGS -Wl,-R."
8092 cat >conftest.$ac_ext <<_ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8102 int main() { return 0; }
8107 rm -f conftest.$ac_objext conftest$ac_exeext
8108 if { (ac_try="$ac_link"
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_link") 2>conftest.er1
8116 grep -v '^ *+' conftest.er1 >conftest.err
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } &&
8121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8122 { (case "(($ac_try" in
8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127 (eval "$ac_try") 2>&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; } &&
8131 { ac_try='test -s conftest$ac_exeext'
8132 { (case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_try") 2>&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; }; then
8141 llvm_cv_link_use_r=yes
8143 echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8146 llvm_cv_link_use_r=no
8149 rm -f core conftest.err conftest.$ac_objext \
8150 conftest$ac_exeext conftest.$ac_ext
8153 ac_cpp='$CPP $CPPFLAGS'
8154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8160 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8161 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8162 if test "$llvm_cv_link_use_r" = yes ; then
8164 cat >>confdefs.h <<\_ACEOF
8165 #define HAVE_LINK_R 1
8171 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8172 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8173 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 ac_cpp='$CPP $CPPFLAGS'
8178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8183 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8184 cat >conftest.$ac_ext <<_ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h. */
8194 int main() { return 0; }
8199 rm -f conftest.$ac_objext conftest$ac_exeext
8200 if { (ac_try="$ac_link"
8202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203 *) ac_try_echo=$ac_try;;
8205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8206 (eval "$ac_link") 2>conftest.er1
8208 grep -v '^ *+' conftest.er1 >conftest.err
8210 cat conftest.err >&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); } &&
8213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8214 { (case "(($ac_try" in
8215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8216 *) ac_try_echo=$ac_try;;
8218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8219 (eval "$ac_try") 2>&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; } &&
8223 { ac_try='test -s conftest$ac_exeext'
8224 { (case "(($ac_try" in
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229 (eval "$ac_try") 2>&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; }; then
8233 llvm_cv_link_use_export_dynamic=yes
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8238 llvm_cv_link_use_export_dynamic=no
8241 rm -f core conftest.err conftest.$ac_objext \
8242 conftest$ac_exeext conftest.$ac_ext
8245 ac_cpp='$CPP $CPPFLAGS'
8246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8252 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8253 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8254 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8256 cat >>confdefs.h <<\_ACEOF
8257 #define HAVE_LINK_EXPORT_DYNAMIC 1
8265 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8266 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8267 if test "${ac_cv_c_const+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8270 cat >conftest.$ac_ext <<_ACEOF
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8280 /* FIXME: Include the comments suggested by Paul. */
8282 /* Ultrix mips cc rejects this. */
8283 typedef int charset[2];
8285 /* SunOS 4.1.1 cc rejects this. */
8286 char const *const *ccp;
8288 /* NEC SVR4.0.2 mips cc rejects this. */
8289 struct point {int x, y;};
8290 static struct point const zero = {0,0};
8291 /* AIX XL C 1.02.0.0 rejects this.
8292 It does not let you subtract one const X* pointer from another in
8293 an arm of an if-expression whose if-part is not a constant
8295 const char *g = "string";
8296 ccp = &g + (g ? g-g : 0);
8297 /* HPUX 7.0 cc rejects these. */
8300 ccp = (char const *const *) p;
8301 { /* SCO 3.2v4 cc rejects this. */
8303 char const *s = 0 ? (char *) 0 : (char const *) 0;
8308 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8310 const int *foo = &x[0];
8313 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8314 typedef const int *iptr;
8318 { /* AIX XL C 1.02.0.0 rejects this saying
8319 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8320 struct s { int j; const int *ap[3]; };
8321 struct s *b; b->j = 5;
8323 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8327 return !x[0] && !zero.x;
8334 rm -f conftest.$ac_objext
8335 if { (ac_try="$ac_compile"
8337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8338 *) ac_try_echo=$ac_try;;
8340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8341 (eval "$ac_compile") 2>conftest.er1
8343 grep -v '^ *+' conftest.er1 >conftest.err
8345 cat conftest.err >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } &&
8348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8349 { (case "(($ac_try" in
8350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351 *) ac_try_echo=$ac_try;;
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_try") 2>&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; } &&
8358 { ac_try='test -s conftest.$ac_objext'
8359 { (case "(($ac_try" in
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_try") 2>&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; }; then
8370 echo "$as_me: failed program was:" >&5
8371 sed 's/^/| /' conftest.$ac_ext >&5
8376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8378 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8379 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8380 if test $ac_cv_c_const = no; then
8382 cat >>confdefs.h <<\_ACEOF
8394 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8395 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8396 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8397 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8401 cat >conftest.$ac_ext <<_ACEOF
8404 cat confdefs.h >>conftest.$ac_ext
8405 cat >>conftest.$ac_ext <<_ACEOF
8406 /* end confdefs.h. */
8407 #include <sys/types.h>
8419 rm -f conftest.$ac_objext
8420 if { (ac_try="$ac_compile"
8422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8423 *) ac_try_echo=$ac_try;;
8425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8426 (eval "$ac_compile") 2>conftest.er1
8428 grep -v '^ *+' conftest.er1 >conftest.err
8430 cat conftest.err >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); } &&
8433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8434 { (case "(($ac_try" in
8435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436 *) ac_try_echo=$ac_try;;
8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439 (eval "$ac_try") 2>&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; } &&
8443 { ac_try='test -s conftest.$ac_objext'
8444 { (case "(($ac_try" in
8445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8446 *) ac_try_echo=$ac_try;;
8448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8449 (eval "$ac_try") 2>&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; }; then
8453 eval "$as_ac_Header=yes"
8455 echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8458 eval "$as_ac_Header=no"
8461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8463 ac_res=`eval echo '${'$as_ac_Header'}'`
8464 { echo "$as_me:$LINENO: result: $ac_res" >&5
8465 echo "${ECHO_T}$ac_res" >&6; }
8466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8467 cat >>confdefs.h <<_ACEOF
8468 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8471 ac_header_dirent=$ac_hdr; break
8475 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8476 if test $ac_header_dirent = dirent.h; then
8477 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8478 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8479 if test "${ac_cv_search_opendir+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8482 ac_func_search_save_LIBS=$LIBS
8483 cat >conftest.$ac_ext <<_ACEOF
8486 cat confdefs.h >>conftest.$ac_ext
8487 cat >>conftest.$ac_ext <<_ACEOF
8488 /* end confdefs.h. */
8490 /* Override any GCC internal prototype to avoid an error.
8491 Use char because int might match the return type of a GCC
8492 builtin and then its argument prototype would still apply. */
8505 for ac_lib in '' dir; do
8506 if test -z "$ac_lib"; then
8507 ac_res="none required"
8510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8512 rm -f conftest.$ac_objext conftest$ac_exeext
8513 if { (ac_try="$ac_link"
8515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516 *) ac_try_echo=$ac_try;;
8518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8519 (eval "$ac_link") 2>conftest.er1
8521 grep -v '^ *+' conftest.er1 >conftest.err
8523 cat conftest.err >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } &&
8526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8527 { (case "(($ac_try" in
8528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8529 *) ac_try_echo=$ac_try;;
8531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8532 (eval "$ac_try") 2>&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; } &&
8536 { ac_try='test -s conftest$ac_exeext'
8537 { (case "(($ac_try" in
8538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539 *) ac_try_echo=$ac_try;;
8541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542 (eval "$ac_try") 2>&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; }; then
8546 ac_cv_search_opendir=$ac_res
8548 echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8554 rm -f core conftest.err conftest.$ac_objext \
8556 if test "${ac_cv_search_opendir+set}" = set; then
8560 if test "${ac_cv_search_opendir+set}" = set; then
8563 ac_cv_search_opendir=no
8566 LIBS=$ac_func_search_save_LIBS
8568 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8569 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8570 ac_res=$ac_cv_search_opendir
8571 if test "$ac_res" != no; then
8572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8577 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8578 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8579 if test "${ac_cv_search_opendir+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
8582 ac_func_search_save_LIBS=$LIBS
8583 cat >conftest.$ac_ext <<_ACEOF
8586 cat confdefs.h >>conftest.$ac_ext
8587 cat >>conftest.$ac_ext <<_ACEOF
8588 /* end confdefs.h. */
8590 /* Override any GCC internal prototype to avoid an error.
8591 Use char because int might match the return type of a GCC
8592 builtin and then its argument prototype would still apply. */
8605 for ac_lib in '' x; do
8606 if test -z "$ac_lib"; then
8607 ac_res="none required"
8610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8612 rm -f conftest.$ac_objext conftest$ac_exeext
8613 if { (ac_try="$ac_link"
8615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616 *) ac_try_echo=$ac_try;;
8618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8619 (eval "$ac_link") 2>conftest.er1
8621 grep -v '^ *+' conftest.er1 >conftest.err
8623 cat conftest.err >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); } &&
8626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8627 { (case "(($ac_try" in
8628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629 *) ac_try_echo=$ac_try;;
8631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8632 (eval "$ac_try") 2>&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; } &&
8636 { ac_try='test -s conftest$ac_exeext'
8637 { (case "(($ac_try" in
8638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639 *) ac_try_echo=$ac_try;;
8641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642 (eval "$ac_try") 2>&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; }; then
8646 ac_cv_search_opendir=$ac_res
8648 echo "$as_me: failed program was:" >&5
8649 sed 's/^/| /' conftest.$ac_ext >&5
8654 rm -f core conftest.err conftest.$ac_objext \
8656 if test "${ac_cv_search_opendir+set}" = set; then
8660 if test "${ac_cv_search_opendir+set}" = set; then
8663 ac_cv_search_opendir=no
8666 LIBS=$ac_func_search_save_LIBS
8668 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8669 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8670 ac_res=$ac_cv_search_opendir
8671 if test "$ac_res" != no; then
8672 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8679 for ac_header in dlfcn.h
8681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8686 echo $ECHO_N "(cached) $ECHO_C" >&6
8688 ac_res=`eval echo '${'$as_ac_Header'}'`
8689 { echo "$as_me:$LINENO: result: $ac_res" >&5
8690 echo "${ECHO_T}$ac_res" >&6; }
8692 # Is the header compilable?
8693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8695 cat >conftest.$ac_ext <<_ACEOF
8698 cat confdefs.h >>conftest.$ac_ext
8699 cat >>conftest.$ac_ext <<_ACEOF
8700 /* end confdefs.h. */
8701 $ac_includes_default
8702 #include <$ac_header>
8704 rm -f conftest.$ac_objext
8705 if { (ac_try="$ac_compile"
8707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8708 *) ac_try_echo=$ac_try;;
8710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8711 (eval "$ac_compile") 2>conftest.er1
8713 grep -v '^ *+' conftest.er1 >conftest.err
8715 cat conftest.err >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } &&
8718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8719 { (case "(($ac_try" in
8720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8721 *) ac_try_echo=$ac_try;;
8723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8724 (eval "$ac_try") 2>&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; } &&
8728 { ac_try='test -s conftest.$ac_objext'
8729 { (case "(($ac_try" in
8730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8731 *) ac_try_echo=$ac_try;;
8733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8734 (eval "$ac_try") 2>&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); }; }; then
8738 ac_header_compiler=yes
8740 echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8743 ac_header_compiler=no
8746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8748 echo "${ECHO_T}$ac_header_compiler" >&6; }
8750 # Is the header present?
8751 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8753 cat >conftest.$ac_ext <<_ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8759 #include <$ac_header>
8761 if { (ac_try="$ac_cpp conftest.$ac_ext"
8763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8764 *) ac_try_echo=$ac_try;;
8766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8769 grep -v '^ *+' conftest.er1 >conftest.err
8771 cat conftest.err >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } >/dev/null; then
8774 if test -s conftest.err; then
8775 ac_cpp_err=$ac_c_preproc_warn_flag
8776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8783 if test -z "$ac_cpp_err"; then
8784 ac_header_preproc=yes
8786 echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8789 ac_header_preproc=no
8792 rm -f conftest.err conftest.$ac_ext
8793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8794 echo "${ECHO_T}$ac_header_preproc" >&6; }
8796 # So? What about this header?
8797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8803 ac_header_preproc=yes
8806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8819 ## ----------------------------------- ##
8820 ## Report this to llvmbugs@cs.uiuc.edu ##
8821 ## ----------------------------------- ##
8823 ) | sed "s/^/$as_me: WARNING: /" >&2
8826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8829 echo $ECHO_N "(cached) $ECHO_C" >&6
8831 eval "$as_ac_Header=\$ac_header_preproc"
8833 ac_res=`eval echo '${'$as_ac_Header'}'`
8834 { echo "$as_me:$LINENO: result: $ac_res" >&5
8835 echo "${ECHO_T}$ac_res" >&6; }
8838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8839 cat >>confdefs.h <<_ACEOF
8840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8847 # Check whether --enable-ltdl-install was given.
8848 if test "${enable_ltdl_install+set}" = set; then
8849 enableval=$enable_ltdl_install;
8855 if test x"${enable_ltdl_install-no}" != xno; then
8857 INSTALL_LTDL_FALSE='#'
8859 INSTALL_LTDL_TRUE='#'
8865 if test x"${enable_ltdl_convenience-no}" != xno; then
8866 CONVENIENCE_LTDL_TRUE=
8867 CONVENIENCE_LTDL_FALSE='#'
8869 CONVENIENCE_LTDL_TRUE='#'
8870 CONVENIENCE_LTDL_FALSE=
8874 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8875 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8877 libname_spec='lib$name'
8885 shlibpath_overrides_runpath=unknown
8887 dynamic_linker="$host_os ld.so"
8888 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8889 if test "$GCC" = yes; then
8890 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8891 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8892 # if the path contains ";" then we assume it to be the separator
8893 # otherwise default to the standard path separator (i.e. ":") - it is
8894 # assumed that no part of a normal pathname contains ";" but that should
8895 # okay in the real world where ";" in dirpaths is itself problematic.
8896 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8898 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8901 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8903 need_lib_prefix=unknown
8904 hardcode_into_libs=no
8906 # when you set need_version to no, make sure it does not cause -set_version
8907 # flags to be left without arguments
8908 need_version=unknown
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8914 shlibpath_var=LIBPATH
8916 # AIX 3 has no versioning support, so we append a major version to the name.
8917 soname_spec='${libname}${release}${shared_ext}$major'
8924 hardcode_into_libs=yes
8925 if test "$host_cpu" = ia64; then
8926 # AIX 5 supports IA64
8927 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8928 shlibpath_var=LD_LIBRARY_PATH
8930 # With GCC up to 2.95.x, collect2 would create an import file
8931 # for dependence libraries. The import file would start with
8932 # the line `#! .'. This would cause the generated library to
8933 # depend on `.', always an invalid library. This was fixed in
8934 # development snapshots of GCC prior to 3.0.
8936 aix4 | aix4.[01] | aix4.[01].*)
8937 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8939 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8946 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8947 # soname into executable. Probably we can add versioning support to
8948 # collect2, so additional links can be useful in future.
8949 if test "$aix_use_runtimelinking" = yes; then
8950 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8951 # instead of lib<name>.a to let people know that these are not
8952 # typical AIX shared libraries.
8953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8955 # We preserve .a as extension for shared libraries through AIX4.2
8956 # and later when we are not doing run time linking.
8957 library_names_spec='${libname}${release}.a $libname.a'
8958 soname_spec='${libname}${release}${shared_ext}$major'
8960 shlibpath_var=LIBPATH
8965 library_names_spec='$libname.ixlibrary $libname.a'
8966 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8967 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'
8971 library_names_spec='${libname}${shared_ext}'
8972 dynamic_linker="$host_os ld.so"
8973 shlibpath_var=LIBRARY_PATH
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8980 soname_spec='${libname}${release}${shared_ext}$major'
8981 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8982 shlibpath_var=LD_LIBRARY_PATH
8983 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8984 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8985 # the default ld.so.conf also contains /usr/contrib/lib and
8986 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8987 # libtool to hard-code these into programs
8990 cygwin* | mingw* | pw32*)
8991 version_type=windows
8996 case $GCC,$host_os in
8997 yes,cygwin* | yes,mingw* | yes,pw32*)
8998 library_names_spec='$libname.dll.a'
8999 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9000 postinstall_cmds='base_file=`basename \${file}`~
9001 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9002 dldir=$destdir/`dirname \$dlpath`~
9003 test -d \$dldir || mkdir -p \$dldir~
9004 $install_prog $dir/$dlname \$dldir/$dlname~
9005 chmod a+x \$dldir/$dlname'
9006 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9007 dlpath=$dir/\$dldll~
9009 shlibpath_overrides_runpath=yes
9013 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9014 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9015 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9018 # MinGW DLLs use traditional 'lib' prefix
9019 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9020 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9021 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9022 # It is most probably a Windows format PATH printed by
9023 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9024 # path with ; separators, and with drive letters. We can handle the
9025 # drive letters (cygwin fileutils understands them), so leave them,
9026 # especially as we might pass files found there to a mingw objdump,
9027 # which wouldn't understand a cygwinified path. Ahh.
9028 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9030 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9034 # pw32 DLLs use 'pw' prefix rather than 'lib'
9035 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9041 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9044 dynamic_linker='Win32 ld.exe'
9045 # FIXME: first we should search . and the directory the executable is in
9049 darwin* | rhapsody*)
9050 dynamic_linker="$host_os dyld"
9054 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9055 soname_spec='${libname}${release}${major}$shared_ext'
9056 shlibpath_overrides_runpath=yes
9057 shlibpath_var=DYLD_LIBRARY_PATH
9058 shrext_cmds='.dylib'
9059 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9060 if test "$GCC" = yes; then
9061 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"`
9063 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9065 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 shlibpath_var=LD_LIBRARY_PATH
9085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9086 soname_spec='${libname}${release}${shared_ext}$major'
9087 shlibpath_var=LD_LIBRARY_PATH
9088 shlibpath_overrides_runpath=no
9089 hardcode_into_libs=yes
9090 dynamic_linker='GNU ld.so'
9093 freebsd* | dragonfly*)
9094 # DragonFly does not have aout. When/if they implement a new
9095 # versioning mechanism, adjust this.
9096 if test -x /usr/bin/objformat; then
9097 objformat=`/usr/bin/objformat`
9100 freebsd[123]*) objformat=aout ;;
9104 version_type=freebsd-$objformat
9105 case $version_type in
9107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9112 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9116 shlibpath_var=LD_LIBRARY_PATH
9119 shlibpath_overrides_runpath=yes
9121 freebsd3.[01]* | freebsdelf3.[01]*)
9122 shlibpath_overrides_runpath=yes
9123 hardcode_into_libs=yes
9125 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9126 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9127 shlibpath_overrides_runpath=no
9128 hardcode_into_libs=yes
9130 freebsd*) # from 4.6 on
9131 shlibpath_overrides_runpath=yes
9132 hardcode_into_libs=yes
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9142 soname_spec='${libname}${release}${shared_ext}$major'
9143 shlibpath_var=LD_LIBRARY_PATH
9144 hardcode_into_libs=yes
9147 hpux9* | hpux10* | hpux11*)
9148 # Give a soname corresponding to the major version so that dld.sl refuses to
9149 # link against other versions.
9156 hardcode_into_libs=yes
9157 dynamic_linker="$host_os dld.so"
9158 shlibpath_var=LD_LIBRARY_PATH
9159 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9161 soname_spec='${libname}${release}${shared_ext}$major'
9162 if test "X$HPUX_IA64_MODE" = X32; then
9163 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9165 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9167 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9171 hardcode_into_libs=yes
9172 dynamic_linker="$host_os dld.sl"
9173 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9174 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9176 soname_spec='${libname}${release}${shared_ext}$major'
9177 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9178 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9182 dynamic_linker="$host_os dld.sl"
9183 shlibpath_var=SHLIB_PATH
9184 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9186 soname_spec='${libname}${release}${shared_ext}$major'
9189 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9190 postinstall_cmds='chmod 555 $lib'
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9198 soname_spec='${libname}${release}${shared_ext}$major'
9199 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9200 shlibpath_var=LD_LIBRARY_PATH
9201 shlibpath_overrides_runpath=no
9202 hardcode_into_libs=yes
9205 irix5* | irix6* | nonstopux*)
9207 nonstopux*) version_type=nonstopux ;;
9209 if test "$lt_cv_prog_gnu_ld" = yes; then
9217 soname_spec='${libname}${release}${shared_ext}$major'
9218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9220 irix5* | nonstopux*)
9224 case $LD in # libtool.m4 will add one of these switches to LD
9225 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9226 libsuff= shlibsuff= libmagic=32-bit;;
9227 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9228 libsuff=32 shlibsuff=N32 libmagic=N32;;
9229 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9230 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9231 *) libsuff= shlibsuff= libmagic=never-match;;
9235 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9236 shlibpath_overrides_runpath=no
9237 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9238 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9239 hardcode_into_libs=yes
9242 # No shared lib support for Linux oldld, aout, or coff.
9243 linux*oldld* | linux*aout* | linux*coff*)
9247 # This must be Linux ELF.
9252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253 soname_spec='${libname}${release}${shared_ext}$major'
9254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9255 shlibpath_var=LD_LIBRARY_PATH
9256 shlibpath_overrides_runpath=no
9257 # This implies no fast_install, which is unacceptable.
9258 # Some rework will be needed to allow for fast_install
9259 # before this can be enabled.
9260 hardcode_into_libs=yes
9262 # Append ld.so.conf contents to the search path
9263 if test -f /etc/ld.so.conf; then
9264 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' ' '`
9265 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9268 # We used to test for /lib/ld.so.1 and disable shared libraries on
9269 # powerpc, because MkLinux only supported shared libraries with the
9270 # GNU dynamic linker. Since this was broken with cross compilers,
9271 # most powerpc-linux boxes support dynamic linking these days and
9272 # people can always --disable-shared, the test was removed, and we
9273 # assume the GNU/Linux dynamic linker is in use.
9274 dynamic_linker='GNU/Linux ld.so'
9281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9282 soname_spec='${libname}${release}${shared_ext}$major'
9283 shlibpath_var=LD_LIBRARY_PATH
9284 shlibpath_overrides_runpath=no
9285 hardcode_into_libs=yes
9286 dynamic_linker='GNU ld.so'
9293 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9296 dynamic_linker='NetBSD (a.out) ld.so'
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9299 soname_spec='${libname}${release}${shared_ext}$major'
9300 dynamic_linker='NetBSD ld.elf_so'
9302 shlibpath_var=LD_LIBRARY_PATH
9303 shlibpath_overrides_runpath=yes
9304 hardcode_into_libs=yes
9309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310 shlibpath_var=LD_LIBRARY_PATH
9311 shlibpath_overrides_runpath=yes
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319 soname_spec='${libname}${release}${shared_ext}$major'
9320 shlibpath_var=LD_LIBRARY_PATH
9321 shlibpath_overrides_runpath=yes
9326 sys_lib_dlsearch_path_spec="/usr/lib"
9328 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9330 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9331 *) need_version=no ;;
9333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9334 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9335 shlibpath_var=LD_LIBRARY_PATH
9336 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9338 openbsd2.[89] | openbsd2.[89].*)
9339 shlibpath_overrides_runpath=no
9342 shlibpath_overrides_runpath=yes
9346 shlibpath_overrides_runpath=yes
9351 libname_spec='$name'
9354 library_names_spec='$libname${shared_ext} $libname.a'
9355 dynamic_linker='OS/2 ld.exe'
9356 shlibpath_var=LIBPATH
9359 osf3* | osf4* | osf5*)
9363 soname_spec='${libname}${release}${shared_ext}$major'
9364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365 shlibpath_var=LD_LIBRARY_PATH
9366 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9367 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9375 soname_spec='${libname}${release}${shared_ext}$major'
9376 shlibpath_var=LD_LIBRARY_PATH
9377 shlibpath_overrides_runpath=yes
9378 hardcode_into_libs=yes
9379 # ldd complains unless libraries are executable
9380 postinstall_cmds='chmod +x $lib'
9385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9386 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9387 shlibpath_var=LD_LIBRARY_PATH
9388 shlibpath_overrides_runpath=yes
9389 if test "$with_gnu_ld" = yes; then
9397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9398 soname_spec='${libname}${release}${shared_ext}$major'
9399 shlibpath_var=LD_LIBRARY_PATH
9400 case $host_vendor in
9402 shlibpath_overrides_runpath=no
9404 export_dynamic_flag_spec='${wl}-Blargedynsym'
9405 runpath_var=LD_RUN_PATH
9413 shlibpath_overrides_runpath=no
9414 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9420 if test -d /usr/nec ;then
9422 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9423 soname_spec='$libname${shared_ext}.$major'
9424 shlibpath_var=LD_LIBRARY_PATH
9428 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9429 version_type=freebsd-elf
9432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9433 soname_spec='${libname}${release}${shared_ext}$major'
9434 shlibpath_var=LD_LIBRARY_PATH
9435 hardcode_into_libs=yes
9436 if test "$with_gnu_ld" = yes; then
9437 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9438 shlibpath_overrides_runpath=no
9440 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9441 shlibpath_overrides_runpath=yes
9444 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9448 sys_lib_dlsearch_path_spec='/usr/lib'
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9454 soname_spec='${libname}${release}${shared_ext}$major'
9455 shlibpath_var=LD_LIBRARY_PATH
9462 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9463 echo "${ECHO_T}$dynamic_linker" >&6; }
9464 test "$dynamic_linker" = no && can_build_shared=no
9466 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9467 if test "$GCC" = yes; then
9468 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9472 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9473 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9474 if test "${libltdl_cv_shlibext+set}" = set; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9479 eval libltdl_cv_shlibext=$shrext_cmds
9482 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9483 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9484 if test -n "$libltdl_cv_shlibext"; then
9486 cat >>confdefs.h <<_ACEOF
9487 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9493 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9494 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9495 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 libltdl_cv_shlibpath_var="$shlibpath_var"
9500 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9501 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9502 if test -n "$libltdl_cv_shlibpath_var"; then
9504 cat >>confdefs.h <<_ACEOF
9505 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9511 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9512 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9513 if test "${libltdl_cv_sys_search_path+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9516 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9518 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9519 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9520 if test -n "$libltdl_cv_sys_search_path"; then
9522 for dir in $libltdl_cv_sys_search_path; do
9523 if test -z "$sys_search_path"; then
9524 sys_search_path="$dir"
9526 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9530 cat >>confdefs.h <<_ACEOF
9531 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9536 { echo "$as_me:$LINENO: checking for objdir" >&5
9537 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9538 if test "${libltdl_cv_objdir+set}" = set; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9541 libltdl_cv_objdir="$objdir"
9542 if test -n "$objdir"; then
9545 rm -f .libs 2>/dev/null
9546 mkdir .libs 2>/dev/null
9547 if test -d .libs; then
9548 libltdl_cv_objdir=.libs
9550 # MS-DOS does not allow filenames that begin with a dot.
9551 libltdl_cv_objdir=_libs
9553 rmdir .libs 2>/dev/null
9557 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9558 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9560 cat >>confdefs.h <<_ACEOF
9561 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9569 # Check for command to grab the raw symbol name followed by C symbol from nm.
9570 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9571 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9572 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9576 # These are sane defaults that work on at least a few old systems.
9577 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9579 # Character class describing NM global symbol codes.
9580 symcode='[BCDEGRST]'
9582 # Regexp to match symbols that can be accessed directly from C.
9583 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9585 # Transform an extracted symbol line into a proper C declaration
9586 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9588 # Transform an extracted symbol line into symbol name and symbol address
9589 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'"
9591 # Define system-specific variables.
9596 cygwin* | mingw* | pw32*)
9597 symcode='[ABCDGISTW]'
9599 hpux*) # Its linker distinguishes data from code symbols
9600 if test "$host_cpu" = ia64; then
9601 symcode='[ABCDEGRST]'
9603 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9604 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'"
9607 if test "$host_cpu" = ia64; then
9608 symcode='[ABCDGIRSTW]'
9609 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9610 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'"
9614 symcode='[BCDEGRST]'
9617 symcode='[BCDEGQRST]'
9628 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9636 # Handle CRLF in mingw tool chain
9640 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9644 # If we're using GNU nm, then use its standard symbol codes.
9645 case `$NM -V 2>&1` in
9646 *GNU* | *'with BFD'*)
9647 symcode='[ABCDGIRSTW]' ;;
9650 # Try without a prefix undercore, then with it.
9651 for ac_symprfx in "" "_"; do
9653 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9654 symxfrm="\\1 $ac_symprfx\\2 \\2"
9656 # Write the raw and C identifiers.
9657 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9659 # Check to see that the pipe works correctly.
9663 cat > conftest.$ac_ext <<EOF
9668 void nm_test_func(){}
9672 int main(){nm_test_var='a';nm_test_func();return(0);}
9675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9676 (eval $ac_compile) 2>&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; then
9680 # Now try to grab the symbols.
9682 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9683 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && test -s "$nlist"; then
9687 # Try sorting and uniquifying the output.
9688 if sort "$nlist" | uniq > "$nlist"T; then
9689 mv -f "$nlist"T "$nlist"
9694 # Make sure that we snagged all the symbols we need.
9695 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9696 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9697 cat <<EOF > conftest.$ac_ext
9703 # Now generate the symbol file.
9704 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9706 cat <<EOF >> conftest.$ac_ext
9707 #if defined (__STDC__) && __STDC__
9708 # define lt_ptr_t void *
9710 # define lt_ptr_t char *
9714 /* The mapping between symbol names and symbols. */
9719 lt_preloaded_symbols[] =
9722 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9723 cat <<\EOF >> conftest.$ac_ext
9731 # Now try linking the two files.
9732 mv conftest.$ac_objext conftstm.$ac_objext
9733 lt_save_LIBS="$LIBS"
9734 lt_save_CFLAGS="$CFLAGS"
9735 LIBS="conftstm.$ac_objext"
9736 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9738 (eval $ac_link) 2>&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9744 LIBS="$lt_save_LIBS"
9745 CFLAGS="$lt_save_CFLAGS"
9747 echo "cannot find nm_test_func in $nlist" >&5
9750 echo "cannot find nm_test_var in $nlist" >&5
9753 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9756 echo "$progname: failed program was:" >&5
9757 cat conftest.$ac_ext >&5
9759 rm -f conftest* conftst*
9761 # Do not use the global_symbol_pipe unless it works.
9762 if test "$pipe_works" = yes; then
9765 lt_cv_sys_global_symbol_pipe=
9771 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9772 lt_cv_sys_global_symbol_to_cdecl=
9774 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9775 { echo "$as_me:$LINENO: result: failed" >&5
9776 echo "${ECHO_T}failed" >&6; }
9778 { echo "$as_me:$LINENO: result: ok" >&5
9779 echo "${ECHO_T}ok" >&6; }
9783 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9784 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9785 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9788 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9789 libltdl_cv_preloaded_symbols=yes
9791 libltdl_cv_preloaded_symbols=no
9795 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9796 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9797 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9799 cat >>confdefs.h <<\_ACEOF
9800 #define HAVE_PRELOADED_SYMBOLS 1
9808 ac_cpp='$CPP $CPPFLAGS'
9809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9814 { echo "$as_me:$LINENO: checking for shl_load" >&5
9815 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9816 if test "${ac_cv_func_shl_load+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9819 cat >conftest.$ac_ext <<_ACEOF
9822 cat confdefs.h >>conftest.$ac_ext
9823 cat >>conftest.$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9825 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9827 #define shl_load innocuous_shl_load
9829 /* System header to define __stub macros and hopefully few prototypes,
9830 which can conflict with char shl_load (); below.
9831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9832 <limits.h> exists even on freestanding compilers. */
9835 # include <limits.h>
9837 # include <assert.h>
9842 /* Override any GCC internal prototype to avoid an error.
9843 Use char because int might match the return type of a GCC
9844 builtin and then its argument prototype would still apply. */
9849 /* The GNU C library defines this for functions which it implements
9850 to always fail with ENOSYS. Some functions are actually named
9851 something starting with __ and the normal name is an alias. */
9852 #if defined __stub_shl_load || defined __stub___shl_load
9864 rm -f conftest.$ac_objext conftest$ac_exeext
9865 if { (ac_try="$ac_link"
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871 (eval "$ac_link") 2>conftest.er1
9873 grep -v '^ *+' conftest.er1 >conftest.err
9875 cat conftest.err >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } &&
9878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9879 { (case "(($ac_try" in
9880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881 *) ac_try_echo=$ac_try;;
9883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9884 (eval "$ac_try") 2>&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; } &&
9888 { ac_try='test -s conftest$ac_exeext'
9889 { (case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_try") 2>&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
9898 ac_cv_func_shl_load=yes
9900 echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9903 ac_cv_func_shl_load=no
9906 rm -f core conftest.err conftest.$ac_objext \
9907 conftest$ac_exeext conftest.$ac_ext
9909 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9910 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9911 if test $ac_cv_func_shl_load = yes; then
9913 cat >>confdefs.h <<\_ACEOF
9914 #define HAVE_SHL_LOAD 1
9918 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9919 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9920 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 ac_check_lib_save_LIBS=$LIBS
9925 cat >conftest.$ac_ext <<_ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9932 /* Override any GCC internal prototype to avoid an error.
9933 Use char because int might match the return type of a GCC
9934 builtin and then its argument prototype would still apply. */
9947 rm -f conftest.$ac_objext conftest$ac_exeext
9948 if { (ac_try="$ac_link"
9950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951 *) ac_try_echo=$ac_try;;
9953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9954 (eval "$ac_link") 2>conftest.er1
9956 grep -v '^ *+' conftest.er1 >conftest.err
9958 cat conftest.err >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } &&
9961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9962 { (case "(($ac_try" in
9963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964 *) ac_try_echo=$ac_try;;
9966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967 (eval "$ac_try") 2>&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; } &&
9971 { ac_try='test -s conftest$ac_exeext'
9972 { (case "(($ac_try" in
9973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974 *) ac_try_echo=$ac_try;;
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977 (eval "$ac_try") 2>&5
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; }; then
9981 ac_cv_lib_dld_shl_load=yes
9983 echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9986 ac_cv_lib_dld_shl_load=no
9989 rm -f core conftest.err conftest.$ac_objext \
9990 conftest$ac_exeext conftest.$ac_ext
9991 LIBS=$ac_check_lib_save_LIBS
9993 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9994 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9995 if test $ac_cv_lib_dld_shl_load = yes; then
9997 cat >>confdefs.h <<\_ACEOF
9998 #define HAVE_SHL_LOAD 1
10001 LIBADD_DL="$LIBADD_DL -ldld"
10003 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10004 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10005 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
10008 ac_check_lib_save_LIBS=$LIBS
10010 cat >conftest.$ac_ext <<_ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10017 /* Override any GCC internal prototype to avoid an error.
10018 Use char because int might match the return type of a GCC
10019 builtin and then its argument prototype would still apply. */
10032 rm -f conftest.$ac_objext conftest$ac_exeext
10033 if { (ac_try="$ac_link"
10034 case "(($ac_try" in
10035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036 *) ac_try_echo=$ac_try;;
10038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039 (eval "$ac_link") 2>conftest.er1
10041 grep -v '^ *+' conftest.er1 >conftest.err
10043 cat conftest.err >&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } &&
10046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10047 { (case "(($ac_try" in
10048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049 *) ac_try_echo=$ac_try;;
10051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10052 (eval "$ac_try") 2>&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; } &&
10056 { ac_try='test -s conftest$ac_exeext'
10057 { (case "(($ac_try" in
10058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059 *) ac_try_echo=$ac_try;;
10061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062 (eval "$ac_try") 2>&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; }; then
10066 ac_cv_lib_dl_dlopen=yes
10068 echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10071 ac_cv_lib_dl_dlopen=no
10074 rm -f core conftest.err conftest.$ac_objext \
10075 conftest$ac_exeext conftest.$ac_ext
10076 LIBS=$ac_check_lib_save_LIBS
10078 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10079 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10080 if test $ac_cv_lib_dl_dlopen = yes; then
10082 cat >>confdefs.h <<\_ACEOF
10083 #define HAVE_LIBDL 1
10086 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10088 cat >conftest.$ac_ext <<_ACEOF
10091 cat confdefs.h >>conftest.$ac_ext
10092 cat >>conftest.$ac_ext <<_ACEOF
10093 /* end confdefs.h. */
10095 # include <dlfcn.h>
10106 rm -f conftest.$ac_objext conftest$ac_exeext
10107 if { (ac_try="$ac_link"
10108 case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_link") 2>conftest.er1
10115 grep -v '^ *+' conftest.er1 >conftest.err
10117 cat conftest.err >&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } &&
10120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10121 { (case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126 (eval "$ac_try") 2>&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; } &&
10130 { ac_try='test -s conftest$ac_exeext'
10131 { (case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_try") 2>&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); }; }; then
10141 cat >>confdefs.h <<\_ACEOF
10142 #define HAVE_LIBDL 1
10144 libltdl_cv_func_dlopen="yes"
10146 echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.$ac_ext >&5
10149 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10150 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10151 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10154 ac_check_lib_save_LIBS=$LIBS
10155 LIBS="-lsvld $LIBS"
10156 cat >conftest.$ac_ext <<_ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h. */
10163 /* Override any GCC internal prototype to avoid an error.
10164 Use char because int might match the return type of a GCC
10165 builtin and then its argument prototype would still apply. */
10178 rm -f conftest.$ac_objext conftest$ac_exeext
10179 if { (ac_try="$ac_link"
10180 case "(($ac_try" in
10181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182 *) ac_try_echo=$ac_try;;
10184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185 (eval "$ac_link") 2>conftest.er1
10187 grep -v '^ *+' conftest.er1 >conftest.err
10189 cat conftest.err >&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } &&
10192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10193 { (case "(($ac_try" in
10194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195 *) ac_try_echo=$ac_try;;
10197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198 (eval "$ac_try") 2>&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; } &&
10202 { ac_try='test -s conftest$ac_exeext'
10203 { (case "(($ac_try" in
10204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205 *) ac_try_echo=$ac_try;;
10207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208 (eval "$ac_try") 2>&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; }; then
10212 ac_cv_lib_svld_dlopen=yes
10214 echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10217 ac_cv_lib_svld_dlopen=no
10220 rm -f core conftest.err conftest.$ac_objext \
10221 conftest$ac_exeext conftest.$ac_ext
10222 LIBS=$ac_check_lib_save_LIBS
10224 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10225 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10226 if test $ac_cv_lib_svld_dlopen = yes; then
10228 cat >>confdefs.h <<\_ACEOF
10229 #define HAVE_LIBDL 1
10232 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10234 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10235 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10236 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 ac_check_lib_save_LIBS=$LIBS
10241 cat >conftest.$ac_ext <<_ACEOF
10244 cat confdefs.h >>conftest.$ac_ext
10245 cat >>conftest.$ac_ext <<_ACEOF
10246 /* end confdefs.h. */
10248 /* Override any GCC internal prototype to avoid an error.
10249 Use char because int might match the return type of a GCC
10250 builtin and then its argument prototype would still apply. */
10258 return dld_link ();
10263 rm -f conftest.$ac_objext conftest$ac_exeext
10264 if { (ac_try="$ac_link"
10265 case "(($ac_try" in
10266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267 *) ac_try_echo=$ac_try;;
10269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270 (eval "$ac_link") 2>conftest.er1
10272 grep -v '^ *+' conftest.er1 >conftest.err
10274 cat conftest.err >&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } &&
10277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10278 { (case "(($ac_try" in
10279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10280 *) ac_try_echo=$ac_try;;
10282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10283 (eval "$ac_try") 2>&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; } &&
10287 { ac_try='test -s conftest$ac_exeext'
10288 { (case "(($ac_try" in
10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290 *) ac_try_echo=$ac_try;;
10292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10293 (eval "$ac_try") 2>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; }; then
10297 ac_cv_lib_dld_dld_link=yes
10299 echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10302 ac_cv_lib_dld_dld_link=no
10305 rm -f core conftest.err conftest.$ac_objext \
10306 conftest$ac_exeext conftest.$ac_ext
10307 LIBS=$ac_check_lib_save_LIBS
10309 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10310 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10311 if test $ac_cv_lib_dld_dld_link = yes; then
10313 cat >>confdefs.h <<\_ACEOF
10317 LIBADD_DL="$LIBADD_DL -ldld"
10319 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10320 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10321 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10324 cat >conftest.$ac_ext <<_ACEOF
10327 cat confdefs.h >>conftest.$ac_ext
10328 cat >>conftest.$ac_ext <<_ACEOF
10329 /* end confdefs.h. */
10330 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10332 #define _dyld_func_lookup innocuous__dyld_func_lookup
10334 /* System header to define __stub macros and hopefully few prototypes,
10335 which can conflict with char _dyld_func_lookup (); below.
10336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10337 <limits.h> exists even on freestanding compilers. */
10340 # include <limits.h>
10342 # include <assert.h>
10345 #undef _dyld_func_lookup
10347 /* Override any GCC internal prototype to avoid an error.
10348 Use char because int might match the return type of a GCC
10349 builtin and then its argument prototype would still apply. */
10353 char _dyld_func_lookup ();
10354 /* The GNU C library defines this for functions which it implements
10355 to always fail with ENOSYS. Some functions are actually named
10356 something starting with __ and the normal name is an alias. */
10357 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10364 return _dyld_func_lookup ();
10369 rm -f conftest.$ac_objext conftest$ac_exeext
10370 if { (ac_try="$ac_link"
10371 case "(($ac_try" in
10372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10373 *) ac_try_echo=$ac_try;;
10375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10376 (eval "$ac_link") 2>conftest.er1
10378 grep -v '^ *+' conftest.er1 >conftest.err
10380 cat conftest.err >&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } &&
10383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10384 { (case "(($ac_try" in
10385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386 *) ac_try_echo=$ac_try;;
10388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10389 (eval "$ac_try") 2>&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; } &&
10393 { ac_try='test -s conftest$ac_exeext'
10394 { (case "(($ac_try" in
10395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396 *) ac_try_echo=$ac_try;;
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_try") 2>&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; }; then
10403 ac_cv_func__dyld_func_lookup=yes
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10408 ac_cv_func__dyld_func_lookup=no
10411 rm -f core conftest.err conftest.$ac_objext \
10412 conftest$ac_exeext conftest.$ac_ext
10414 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10415 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10416 if test $ac_cv_func__dyld_func_lookup = yes; then
10418 cat >>confdefs.h <<\_ACEOF
10419 #define HAVE_DYLD 1
10433 rm -f core conftest.err conftest.$ac_objext \
10434 conftest$ac_exeext conftest.$ac_ext
10445 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10447 lt_save_LIBS="$LIBS"
10448 LIBS="$LIBS $LIBADD_DL"
10450 for ac_func in dlerror
10452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10456 echo $ECHO_N "(cached) $ECHO_C" >&6
10458 cat >conftest.$ac_ext <<_ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10466 #define $ac_func innocuous_$ac_func
10468 /* System header to define __stub macros and hopefully few prototypes,
10469 which can conflict with char $ac_func (); below.
10470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10471 <limits.h> exists even on freestanding compilers. */
10474 # include <limits.h>
10476 # include <assert.h>
10481 /* Override any GCC internal prototype to avoid an error.
10482 Use char because int might match the return type of a GCC
10483 builtin and then its argument prototype would still apply. */
10488 /* The GNU C library defines this for functions which it implements
10489 to always fail with ENOSYS. Some functions are actually named
10490 something starting with __ and the normal name is an alias. */
10491 #if defined __stub_$ac_func || defined __stub___$ac_func
10498 return $ac_func ();
10503 rm -f conftest.$ac_objext conftest$ac_exeext
10504 if { (ac_try="$ac_link"
10505 case "(($ac_try" in
10506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10507 *) ac_try_echo=$ac_try;;
10509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10510 (eval "$ac_link") 2>conftest.er1
10512 grep -v '^ *+' conftest.er1 >conftest.err
10514 cat conftest.err >&5
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); } &&
10517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10518 { (case "(($ac_try" in
10519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10520 *) ac_try_echo=$ac_try;;
10522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10523 (eval "$ac_try") 2>&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); }; } &&
10527 { ac_try='test -s conftest$ac_exeext'
10528 { (case "(($ac_try" in
10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530 *) ac_try_echo=$ac_try;;
10532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533 (eval "$ac_try") 2>&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); }; }; then
10537 eval "$as_ac_var=yes"
10539 echo "$as_me: failed program was:" >&5
10540 sed 's/^/| /' conftest.$ac_ext >&5
10542 eval "$as_ac_var=no"
10545 rm -f core conftest.err conftest.$ac_objext \
10546 conftest$ac_exeext conftest.$ac_ext
10548 ac_res=`eval echo '${'$as_ac_var'}'`
10549 { echo "$as_me:$LINENO: result: $ac_res" >&5
10550 echo "${ECHO_T}$ac_res" >&6; }
10551 if test `eval echo '${'$as_ac_var'}'` = yes; then
10552 cat >>confdefs.h <<_ACEOF
10553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10559 LIBS="$lt_save_LIBS"
10562 ac_cpp='$CPP $CPPFLAGS'
10563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10569 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10570 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10571 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10574 ac_cv_sys_symbol_underscore=no
10575 cat > conftest.$ac_ext <<EOF
10576 void nm_test_func(){}
10577 int main(){nm_test_func;return 0;}
10579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10580 (eval $ac_compile) 2>&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; then
10584 # Now try to grab the symbols.
10585 ac_nlist=conftest.nm
10586 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10587 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } && test -s "$ac_nlist"; then
10591 # See whether the symbols have a leading underscore.
10592 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10593 ac_cv_sys_symbol_underscore=yes
10595 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10598 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10602 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10605 echo "configure: failed program was:" >&5
10611 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10612 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10615 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10616 if test x"$libltdl_cv_func_dlopen" = xyes ||
10617 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10618 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10619 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10620 if test "${libltdl_cv_need_uscore+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10623 libltdl_cv_need_uscore=unknown
10625 LIBS="$LIBS $LIBADD_DL"
10626 if test "$cross_compiling" = yes; then :
10627 libltdl_cv_need_uscore=cross
10629 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10630 lt_status=$lt_dlunknown
10631 cat > conftest.$ac_ext <<EOF
10632 #line 10632 "configure"
10633 #include "confdefs.h"
10642 # define LT_DLGLOBAL RTLD_GLOBAL
10645 # define LT_DLGLOBAL DL_GLOBAL
10647 # define LT_DLGLOBAL 0
10651 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10652 find out it does not work in some platform. */
10653 #ifndef LT_DLLAZY_OR_NOW
10655 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10658 # define LT_DLLAZY_OR_NOW DL_LAZY
10661 # define LT_DLLAZY_OR_NOW RTLD_NOW
10664 # define LT_DLLAZY_OR_NOW DL_NOW
10666 # define LT_DLLAZY_OR_NOW 0
10674 extern "C" void exit (int);
10677 void fnord() { int i=42;}
10680 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10681 int status = $lt_dlunknown;
10685 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10686 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10687 /* dlclose (self); */
10695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10696 (eval $ac_link) 2>&5
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10700 (./conftest; exit; ) >&5 2>/dev/null
10702 case x$lt_status in
10703 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10704 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10705 x$lt_dlunknown|x*) ;;
10708 # compilation failed
10717 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10718 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10722 if test x"$libltdl_cv_need_uscore" = xyes; then
10724 cat >>confdefs.h <<\_ACEOF
10725 #define NEED_USCORE 1
10731 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10732 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10733 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10736 # PORTME does your system automatically load deplibs for dlopen?
10737 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10738 # For now, we just catch OSes we know something about -- in the
10739 # future, we'll try test this programmatically.
10740 libltdl_cv_sys_dlopen_deplibs=unknown
10742 aix3*|aix4.1.*|aix4.2.*)
10743 # Unknown whether this is true for these versions of AIX, but
10744 # we want this `case' here to explicitly catch those versions.
10745 libltdl_cv_sys_dlopen_deplibs=unknown
10748 libltdl_cv_sys_dlopen_deplibs=yes
10751 # Assuming the user has installed a libdl from somewhere, this is true
10752 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10753 libltdl_cv_sys_dlopen_deplibs=yes
10755 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10756 # GNU and its variants, using gnu ld.so (Glibc)
10757 libltdl_cv_sys_dlopen_deplibs=yes
10760 libltdl_cv_sys_dlopen_deplibs=yes
10763 libltdl_cv_sys_dlopen_deplibs=yes
10765 irix[12345]*|irix6.[01]*)
10766 # Catch all versions of IRIX before 6.2, and indicate that we don't
10767 # know how it worked for any of those versions.
10768 libltdl_cv_sys_dlopen_deplibs=unknown
10771 # The case above catches anything before 6.2, and it's known that
10772 # at 6.2 and later dlopen does load deplibs.
10773 libltdl_cv_sys_dlopen_deplibs=yes
10776 libltdl_cv_sys_dlopen_deplibs=yes
10779 libltdl_cv_sys_dlopen_deplibs=yes
10782 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10783 # it did *not* use an RPATH in a shared library to find objects the
10784 # library depends on, so we explictly say `no'.
10785 libltdl_cv_sys_dlopen_deplibs=no
10787 osf5.0|osf5.0a|osf5.1)
10788 # dlopen *does* load deplibs and with the right loader patch applied
10789 # it even uses RPATH in a shared library to search for shared objects
10790 # that the library depends on, but there's no easy way to know if that
10791 # patch is installed. Since this is the case, all we can really
10792 # say is unknown -- it depends on the patch being installed. If
10793 # it is, this changes to `yes'. Without it, it would be `no'.
10794 libltdl_cv_sys_dlopen_deplibs=unknown
10797 # the two cases above should catch all versions of osf <= 5.1. Read
10798 # the comments above for what we know about them.
10799 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10800 # is used to find them so we can finally say `yes'.
10801 libltdl_cv_sys_dlopen_deplibs=yes
10804 libltdl_cv_sys_dlopen_deplibs=yes
10806 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10807 libltdl_cv_sys_dlopen_deplibs=yes
10812 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10813 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10814 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10816 cat >>confdefs.h <<\_ACEOF
10817 #define LTDL_DLOPEN_DEPLIBS 1
10823 for ac_header in argz.h
10825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10832 ac_res=`eval echo '${'$as_ac_Header'}'`
10833 { echo "$as_me:$LINENO: result: $ac_res" >&5
10834 echo "${ECHO_T}$ac_res" >&6; }
10836 # Is the header compilable?
10837 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10839 cat >conftest.$ac_ext <<_ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h. */
10845 $ac_includes_default
10846 #include <$ac_header>
10848 rm -f conftest.$ac_objext
10849 if { (ac_try="$ac_compile"
10850 case "(($ac_try" in
10851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10852 *) ac_try_echo=$ac_try;;
10854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10855 (eval "$ac_compile") 2>conftest.er1
10857 grep -v '^ *+' conftest.er1 >conftest.err
10859 cat conftest.err >&5
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); } &&
10862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10863 { (case "(($ac_try" in
10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865 *) ac_try_echo=$ac_try;;
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868 (eval "$ac_try") 2>&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); }; } &&
10872 { ac_try='test -s conftest.$ac_objext'
10873 { (case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878 (eval "$ac_try") 2>&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); }; }; then
10882 ac_header_compiler=yes
10884 echo "$as_me: failed program was:" >&5
10885 sed 's/^/| /' conftest.$ac_ext >&5
10887 ac_header_compiler=no
10890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10891 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10892 echo "${ECHO_T}$ac_header_compiler" >&6; }
10894 # Is the header present?
10895 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10897 cat >conftest.$ac_ext <<_ACEOF
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h. */
10903 #include <$ac_header>
10905 if { (ac_try="$ac_cpp conftest.$ac_ext"
10906 case "(($ac_try" in
10907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908 *) ac_try_echo=$ac_try;;
10910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10913 grep -v '^ *+' conftest.er1 >conftest.err
10915 cat conftest.err >&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } >/dev/null; then
10918 if test -s conftest.err; then
10919 ac_cpp_err=$ac_c_preproc_warn_flag
10920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10927 if test -z "$ac_cpp_err"; then
10928 ac_header_preproc=yes
10930 echo "$as_me: failed program was:" >&5
10931 sed 's/^/| /' conftest.$ac_ext >&5
10933 ac_header_preproc=no
10936 rm -f conftest.err conftest.$ac_ext
10937 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10938 echo "${ECHO_T}$ac_header_preproc" >&6; }
10940 # So? What about this header?
10941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10943 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10946 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10947 ac_header_preproc=yes
10950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10954 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10955 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10956 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10957 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10961 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10963 ## ----------------------------------- ##
10964 ## Report this to llvmbugs@cs.uiuc.edu ##
10965 ## ----------------------------------- ##
10967 ) | sed "s/^/$as_me: WARNING: /" >&2
10970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 eval "$as_ac_Header=\$ac_header_preproc"
10977 ac_res=`eval echo '${'$as_ac_Header'}'`
10978 { echo "$as_me:$LINENO: result: $ac_res" >&5
10979 echo "${ECHO_T}$ac_res" >&6; }
10982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10983 cat >>confdefs.h <<_ACEOF
10984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10992 { echo "$as_me:$LINENO: checking for error_t" >&5
10993 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10994 if test "${ac_cv_type_error_t+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10997 cat >conftest.$ac_ext <<_ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h. */
11007 typedef error_t ac__type_new_;
11011 if ((ac__type_new_ *) 0)
11013 if (sizeof (ac__type_new_))
11019 rm -f conftest.$ac_objext
11020 if { (ac_try="$ac_compile"
11021 case "(($ac_try" in
11022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11023 *) ac_try_echo=$ac_try;;
11025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11026 (eval "$ac_compile") 2>conftest.er1
11028 grep -v '^ *+' conftest.er1 >conftest.err
11030 cat conftest.err >&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); } &&
11033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11034 { (case "(($ac_try" in
11035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11036 *) ac_try_echo=$ac_try;;
11038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11039 (eval "$ac_try") 2>&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; } &&
11043 { ac_try='test -s conftest.$ac_objext'
11044 { (case "(($ac_try" in
11045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11046 *) ac_try_echo=$ac_try;;
11048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11049 (eval "$ac_try") 2>&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; }; then
11053 ac_cv_type_error_t=yes
11055 echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.$ac_ext >&5
11058 ac_cv_type_error_t=no
11061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11063 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11064 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11065 if test $ac_cv_type_error_t = yes; then
11067 cat >>confdefs.h <<_ACEOF
11068 #define HAVE_ERROR_T 1
11074 cat >>confdefs.h <<\_ACEOF
11075 #define error_t int
11086 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11089 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11091 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
11094 cat >conftest.$ac_ext <<_ACEOF
11097 cat confdefs.h >>conftest.$ac_ext
11098 cat >>conftest.$ac_ext <<_ACEOF
11099 /* end confdefs.h. */
11100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11102 #define $ac_func innocuous_$ac_func
11104 /* System header to define __stub macros and hopefully few prototypes,
11105 which can conflict with char $ac_func (); below.
11106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11107 <limits.h> exists even on freestanding compilers. */
11110 # include <limits.h>
11112 # include <assert.h>
11117 /* Override any GCC internal prototype to avoid an error.
11118 Use char because int might match the return type of a GCC
11119 builtin and then its argument prototype would still apply. */
11124 /* The GNU C library defines this for functions which it implements
11125 to always fail with ENOSYS. Some functions are actually named
11126 something starting with __ and the normal name is an alias. */
11127 #if defined __stub_$ac_func || defined __stub___$ac_func
11134 return $ac_func ();
11139 rm -f conftest.$ac_objext conftest$ac_exeext
11140 if { (ac_try="$ac_link"
11141 case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_link") 2>conftest.er1
11148 grep -v '^ *+' conftest.er1 >conftest.err
11150 cat conftest.err >&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } &&
11153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11154 { (case "(($ac_try" in
11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156 *) ac_try_echo=$ac_try;;
11158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11159 (eval "$ac_try") 2>&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; } &&
11163 { ac_try='test -s conftest$ac_exeext'
11164 { (case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_try") 2>&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; }; then
11173 eval "$as_ac_var=yes"
11175 echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11178 eval "$as_ac_var=no"
11181 rm -f core conftest.err conftest.$ac_objext \
11182 conftest$ac_exeext conftest.$ac_ext
11184 ac_res=`eval echo '${'$as_ac_var'}'`
11185 { echo "$as_me:$LINENO: result: $ac_res" >&5
11186 echo "${ECHO_T}$ac_res" >&6; }
11187 if test `eval echo '${'$as_ac_var'}'` = yes; then
11188 cat >>confdefs.h <<_ACEOF
11189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11222 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11230 echo $ECHO_N "(cached) $ECHO_C" >&6
11232 ac_res=`eval echo '${'$as_ac_Header'}'`
11233 { echo "$as_me:$LINENO: result: $ac_res" >&5
11234 echo "${ECHO_T}$ac_res" >&6; }
11236 # Is the header compilable?
11237 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11238 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11239 cat >conftest.$ac_ext <<_ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11245 $ac_includes_default
11246 #include <$ac_header>
11248 rm -f conftest.$ac_objext
11249 if { (ac_try="$ac_compile"
11250 case "(($ac_try" in
11251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11252 *) ac_try_echo=$ac_try;;
11254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11255 (eval "$ac_compile") 2>conftest.er1
11257 grep -v '^ *+' conftest.er1 >conftest.err
11259 cat conftest.err >&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } &&
11262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11263 { (case "(($ac_try" in
11264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265 *) ac_try_echo=$ac_try;;
11267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11268 (eval "$ac_try") 2>&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); }; } &&
11272 { ac_try='test -s conftest.$ac_objext'
11273 { (case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278 (eval "$ac_try") 2>&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; }; then
11282 ac_header_compiler=yes
11284 echo "$as_me: failed program was:" >&5
11285 sed 's/^/| /' conftest.$ac_ext >&5
11287 ac_header_compiler=no
11290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11292 echo "${ECHO_T}$ac_header_compiler" >&6; }
11294 # Is the header present?
11295 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11297 cat >conftest.$ac_ext <<_ACEOF
11300 cat confdefs.h >>conftest.$ac_ext
11301 cat >>conftest.$ac_ext <<_ACEOF
11302 /* end confdefs.h. */
11303 #include <$ac_header>
11305 if { (ac_try="$ac_cpp conftest.$ac_ext"
11306 case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11313 grep -v '^ *+' conftest.er1 >conftest.err
11315 cat conftest.err >&5
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); } >/dev/null; then
11318 if test -s conftest.err; then
11319 ac_cpp_err=$ac_c_preproc_warn_flag
11320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11327 if test -z "$ac_cpp_err"; then
11328 ac_header_preproc=yes
11330 echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.$ac_ext >&5
11333 ac_header_preproc=no
11336 rm -f conftest.err conftest.$ac_ext
11337 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11338 echo "${ECHO_T}$ac_header_preproc" >&6; }
11340 # So? What about this header?
11341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11347 ac_header_preproc=yes
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11357 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11363 ## ----------------------------------- ##
11364 ## Report this to llvmbugs@cs.uiuc.edu ##
11365 ## ----------------------------------- ##
11367 ) | sed "s/^/$as_me: WARNING: /" >&2
11370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11373 echo $ECHO_N "(cached) $ECHO_C" >&6
11375 eval "$as_ac_Header=\$ac_header_preproc"
11377 ac_res=`eval echo '${'$as_ac_Header'}'`
11378 { echo "$as_me:$LINENO: result: $ac_res" >&5
11379 echo "${ECHO_T}$ac_res" >&6; }
11382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11383 cat >>confdefs.h <<_ACEOF
11384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11395 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11404 ac_res=`eval echo '${'$as_ac_Header'}'`
11405 { echo "$as_me:$LINENO: result: $ac_res" >&5
11406 echo "${ECHO_T}$ac_res" >&6; }
11408 # Is the header compilable?
11409 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11411 cat >conftest.$ac_ext <<_ACEOF
11414 cat confdefs.h >>conftest.$ac_ext
11415 cat >>conftest.$ac_ext <<_ACEOF
11416 /* end confdefs.h. */
11417 $ac_includes_default
11418 #include <$ac_header>
11420 rm -f conftest.$ac_objext
11421 if { (ac_try="$ac_compile"
11422 case "(($ac_try" in
11423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11424 *) ac_try_echo=$ac_try;;
11426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11427 (eval "$ac_compile") 2>conftest.er1
11429 grep -v '^ *+' conftest.er1 >conftest.err
11431 cat conftest.err >&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } &&
11434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11435 { (case "(($ac_try" in
11436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11437 *) ac_try_echo=$ac_try;;
11439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11440 (eval "$ac_try") 2>&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; } &&
11444 { ac_try='test -s conftest.$ac_objext'
11445 { (case "(($ac_try" in
11446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11447 *) ac_try_echo=$ac_try;;
11449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11450 (eval "$ac_try") 2>&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); }; }; then
11454 ac_header_compiler=yes
11456 echo "$as_me: failed program was:" >&5
11457 sed 's/^/| /' conftest.$ac_ext >&5
11459 ac_header_compiler=no
11462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11464 echo "${ECHO_T}$ac_header_compiler" >&6; }
11466 # Is the header present?
11467 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11469 cat >conftest.$ac_ext <<_ACEOF
11472 cat confdefs.h >>conftest.$ac_ext
11473 cat >>conftest.$ac_ext <<_ACEOF
11474 /* end confdefs.h. */
11475 #include <$ac_header>
11477 if { (ac_try="$ac_cpp conftest.$ac_ext"
11478 case "(($ac_try" in
11479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480 *) ac_try_echo=$ac_try;;
11482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11485 grep -v '^ *+' conftest.er1 >conftest.err
11487 cat conftest.err >&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } >/dev/null; then
11490 if test -s conftest.err; then
11491 ac_cpp_err=$ac_c_preproc_warn_flag
11492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11499 if test -z "$ac_cpp_err"; then
11500 ac_header_preproc=yes
11502 echo "$as_me: failed program was:" >&5
11503 sed 's/^/| /' conftest.$ac_ext >&5
11505 ac_header_preproc=no
11508 rm -f conftest.err conftest.$ac_ext
11509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11510 echo "${ECHO_T}$ac_header_preproc" >&6; }
11512 # So? What about this header?
11513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11519 ac_header_preproc=yes
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11525 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11529 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11535 ## ----------------------------------- ##
11536 ## Report this to llvmbugs@cs.uiuc.edu ##
11537 ## ----------------------------------- ##
11539 ) | sed "s/^/$as_me: WARNING: /" >&2
11542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11547 eval "$as_ac_Header=\$ac_header_preproc"
11549 ac_res=`eval echo '${'$as_ac_Header'}'`
11550 { echo "$as_me:$LINENO: result: $ac_res" >&5
11551 echo "${ECHO_T}$ac_res" >&6; }
11554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11555 cat >>confdefs.h <<_ACEOF
11556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11565 for ac_header in string.h strings.h
11567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
11574 ac_res=`eval echo '${'$as_ac_Header'}'`
11575 { echo "$as_me:$LINENO: result: $ac_res" >&5
11576 echo "${ECHO_T}$ac_res" >&6; }
11578 # Is the header compilable?
11579 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11581 cat >conftest.$ac_ext <<_ACEOF
11584 cat confdefs.h >>conftest.$ac_ext
11585 cat >>conftest.$ac_ext <<_ACEOF
11586 /* end confdefs.h. */
11587 $ac_includes_default
11588 #include <$ac_header>
11590 rm -f conftest.$ac_objext
11591 if { (ac_try="$ac_compile"
11592 case "(($ac_try" in
11593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11594 *) ac_try_echo=$ac_try;;
11596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11597 (eval "$ac_compile") 2>conftest.er1
11599 grep -v '^ *+' conftest.er1 >conftest.err
11601 cat conftest.err >&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); } &&
11604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11605 { (case "(($ac_try" in
11606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607 *) ac_try_echo=$ac_try;;
11609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610 (eval "$ac_try") 2>&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; } &&
11614 { ac_try='test -s conftest.$ac_objext'
11615 { (case "(($ac_try" in
11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617 *) ac_try_echo=$ac_try;;
11619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_try") 2>&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; }; then
11624 ac_header_compiler=yes
11626 echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11629 ac_header_compiler=no
11632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11634 echo "${ECHO_T}$ac_header_compiler" >&6; }
11636 # Is the header present?
11637 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11639 cat >conftest.$ac_ext <<_ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11645 #include <$ac_header>
11647 if { (ac_try="$ac_cpp conftest.$ac_ext"
11648 case "(($ac_try" in
11649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650 *) ac_try_echo=$ac_try;;
11652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11655 grep -v '^ *+' conftest.er1 >conftest.err
11657 cat conftest.err >&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } >/dev/null; then
11660 if test -s conftest.err; then
11661 ac_cpp_err=$ac_c_preproc_warn_flag
11662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11669 if test -z "$ac_cpp_err"; then
11670 ac_header_preproc=yes
11672 echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.$ac_ext >&5
11675 ac_header_preproc=no
11678 rm -f conftest.err conftest.$ac_ext
11679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11680 echo "${ECHO_T}$ac_header_preproc" >&6; }
11682 # So? What about this header?
11683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11689 ac_header_preproc=yes
11692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11705 ## ----------------------------------- ##
11706 ## Report this to llvmbugs@cs.uiuc.edu ##
11707 ## ----------------------------------- ##
11709 ) | sed "s/^/$as_me: WARNING: /" >&2
11712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11715 echo $ECHO_N "(cached) $ECHO_C" >&6
11717 eval "$as_ac_Header=\$ac_header_preproc"
11719 ac_res=`eval echo '${'$as_ac_Header'}'`
11720 { echo "$as_me:$LINENO: result: $ac_res" >&5
11721 echo "${ECHO_T}$ac_res" >&6; }
11724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11725 cat >>confdefs.h <<_ACEOF
11726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11736 for ac_func in strchr index
11738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11739 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11741 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11744 cat >conftest.$ac_ext <<_ACEOF
11747 cat confdefs.h >>conftest.$ac_ext
11748 cat >>conftest.$ac_ext <<_ACEOF
11749 /* end confdefs.h. */
11750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11752 #define $ac_func innocuous_$ac_func
11754 /* System header to define __stub macros and hopefully few prototypes,
11755 which can conflict with char $ac_func (); below.
11756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11757 <limits.h> exists even on freestanding compilers. */
11760 # include <limits.h>
11762 # include <assert.h>
11767 /* Override any GCC internal prototype to avoid an error.
11768 Use char because int might match the return type of a GCC
11769 builtin and then its argument prototype would still apply. */
11774 /* The GNU C library defines this for functions which it implements
11775 to always fail with ENOSYS. Some functions are actually named
11776 something starting with __ and the normal name is an alias. */
11777 #if defined __stub_$ac_func || defined __stub___$ac_func
11784 return $ac_func ();
11789 rm -f conftest.$ac_objext conftest$ac_exeext
11790 if { (ac_try="$ac_link"
11791 case "(($ac_try" in
11792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793 *) ac_try_echo=$ac_try;;
11795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11796 (eval "$ac_link") 2>conftest.er1
11798 grep -v '^ *+' conftest.er1 >conftest.err
11800 cat conftest.err >&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); } &&
11803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11804 { (case "(($ac_try" in
11805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806 *) ac_try_echo=$ac_try;;
11808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11809 (eval "$ac_try") 2>&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; } &&
11813 { ac_try='test -s conftest$ac_exeext'
11814 { (case "(($ac_try" in
11815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816 *) ac_try_echo=$ac_try;;
11818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11819 (eval "$ac_try") 2>&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); }; }; then
11823 eval "$as_ac_var=yes"
11825 echo "$as_me: failed program was:" >&5
11826 sed 's/^/| /' conftest.$ac_ext >&5
11828 eval "$as_ac_var=no"
11831 rm -f core conftest.err conftest.$ac_objext \
11832 conftest$ac_exeext conftest.$ac_ext
11834 ac_res=`eval echo '${'$as_ac_var'}'`
11835 { echo "$as_me:$LINENO: result: $ac_res" >&5
11836 echo "${ECHO_T}$ac_res" >&6; }
11837 if test `eval echo '${'$as_ac_var'}'` = yes; then
11838 cat >>confdefs.h <<_ACEOF
11839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11847 for ac_func in strrchr rindex
11849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11850 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11852 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11853 echo $ECHO_N "(cached) $ECHO_C" >&6
11855 cat >conftest.$ac_ext <<_ACEOF
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h. */
11861 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11863 #define $ac_func innocuous_$ac_func
11865 /* System header to define __stub macros and hopefully few prototypes,
11866 which can conflict with char $ac_func (); below.
11867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11868 <limits.h> exists even on freestanding compilers. */
11871 # include <limits.h>
11873 # include <assert.h>
11878 /* Override any GCC internal prototype to avoid an error.
11879 Use char because int might match the return type of a GCC
11880 builtin and then its argument prototype would still apply. */
11885 /* The GNU C library defines this for functions which it implements
11886 to always fail with ENOSYS. Some functions are actually named
11887 something starting with __ and the normal name is an alias. */
11888 #if defined __stub_$ac_func || defined __stub___$ac_func
11895 return $ac_func ();
11900 rm -f conftest.$ac_objext conftest$ac_exeext
11901 if { (ac_try="$ac_link"
11902 case "(($ac_try" in
11903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907 (eval "$ac_link") 2>conftest.er1
11909 grep -v '^ *+' conftest.er1 >conftest.err
11911 cat conftest.err >&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } &&
11914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11915 { (case "(($ac_try" in
11916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11917 *) ac_try_echo=$ac_try;;
11919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11920 (eval "$ac_try") 2>&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; } &&
11924 { ac_try='test -s conftest$ac_exeext'
11925 { (case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930 (eval "$ac_try") 2>&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; }; then
11934 eval "$as_ac_var=yes"
11936 echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11939 eval "$as_ac_var=no"
11942 rm -f core conftest.err conftest.$ac_objext \
11943 conftest$ac_exeext conftest.$ac_ext
11945 ac_res=`eval echo '${'$as_ac_var'}'`
11946 { echo "$as_me:$LINENO: result: $ac_res" >&5
11947 echo "${ECHO_T}$ac_res" >&6; }
11948 if test `eval echo '${'$as_ac_var'}'` = yes; then
11949 cat >>confdefs.h <<_ACEOF
11950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11958 for ac_func in memcpy bcopy
11960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11961 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11966 cat >conftest.$ac_ext <<_ACEOF
11969 cat confdefs.h >>conftest.$ac_ext
11970 cat >>conftest.$ac_ext <<_ACEOF
11971 /* end confdefs.h. */
11972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11974 #define $ac_func innocuous_$ac_func
11976 /* System header to define __stub macros and hopefully few prototypes,
11977 which can conflict with char $ac_func (); below.
11978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11979 <limits.h> exists even on freestanding compilers. */
11982 # include <limits.h>
11984 # include <assert.h>
11989 /* Override any GCC internal prototype to avoid an error.
11990 Use char because int might match the return type of a GCC
11991 builtin and then its argument prototype would still apply. */
11996 /* The GNU C library defines this for functions which it implements
11997 to always fail with ENOSYS. Some functions are actually named
11998 something starting with __ and the normal name is an alias. */
11999 #if defined __stub_$ac_func || defined __stub___$ac_func
12006 return $ac_func ();
12011 rm -f conftest.$ac_objext conftest$ac_exeext
12012 if { (ac_try="$ac_link"
12013 case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_link") 2>conftest.er1
12020 grep -v '^ *+' conftest.er1 >conftest.err
12022 cat conftest.err >&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } &&
12025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12026 { (case "(($ac_try" in
12027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028 *) ac_try_echo=$ac_try;;
12030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031 (eval "$ac_try") 2>&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; } &&
12035 { ac_try='test -s conftest$ac_exeext'
12036 { (case "(($ac_try" in
12037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038 *) ac_try_echo=$ac_try;;
12040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12041 (eval "$ac_try") 2>&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
12045 eval "$as_ac_var=yes"
12047 echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12050 eval "$as_ac_var=no"
12053 rm -f core conftest.err conftest.$ac_objext \
12054 conftest$ac_exeext conftest.$ac_ext
12056 ac_res=`eval echo '${'$as_ac_var'}'`
12057 { echo "$as_me:$LINENO: result: $ac_res" >&5
12058 echo "${ECHO_T}$ac_res" >&6; }
12059 if test `eval echo '${'$as_ac_var'}'` = yes; then
12060 cat >>confdefs.h <<_ACEOF
12061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12069 for ac_func in memmove strcmp
12071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12077 cat >conftest.$ac_ext <<_ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h. */
12083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12085 #define $ac_func innocuous_$ac_func
12087 /* System header to define __stub macros and hopefully few prototypes,
12088 which can conflict with char $ac_func (); below.
12089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12090 <limits.h> exists even on freestanding compilers. */
12093 # include <limits.h>
12095 # include <assert.h>
12100 /* Override any GCC internal prototype to avoid an error.
12101 Use char because int might match the return type of a GCC
12102 builtin and then its argument prototype would still apply. */
12107 /* The GNU C library defines this for functions which it implements
12108 to always fail with ENOSYS. Some functions are actually named
12109 something starting with __ and the normal name is an alias. */
12110 #if defined __stub_$ac_func || defined __stub___$ac_func
12117 return $ac_func ();
12122 rm -f conftest.$ac_objext conftest$ac_exeext
12123 if { (ac_try="$ac_link"
12124 case "(($ac_try" in
12125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126 *) ac_try_echo=$ac_try;;
12128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129 (eval "$ac_link") 2>conftest.er1
12131 grep -v '^ *+' conftest.er1 >conftest.err
12133 cat conftest.err >&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); } &&
12136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12137 { (case "(($ac_try" in
12138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139 *) ac_try_echo=$ac_try;;
12141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142 (eval "$ac_try") 2>&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; } &&
12146 { ac_try='test -s conftest$ac_exeext'
12147 { (case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_try") 2>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
12156 eval "$as_ac_var=yes"
12158 echo "$as_me: failed program was:" >&5
12159 sed 's/^/| /' conftest.$ac_ext >&5
12161 eval "$as_ac_var=no"
12164 rm -f core conftest.err conftest.$ac_objext \
12165 conftest$ac_exeext conftest.$ac_ext
12167 ac_res=`eval echo '${'$as_ac_var'}'`
12168 { echo "$as_me:$LINENO: result: $ac_res" >&5
12169 echo "${ECHO_T}$ac_res" >&6; }
12170 if test `eval echo '${'$as_ac_var'}'` = yes; then
12171 cat >>confdefs.h <<_ACEOF
12172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12181 for ac_func in closedir opendir readdir
12183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12184 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12186 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12187 echo $ECHO_N "(cached) $ECHO_C" >&6
12189 cat >conftest.$ac_ext <<_ACEOF
12192 cat confdefs.h >>conftest.$ac_ext
12193 cat >>conftest.$ac_ext <<_ACEOF
12194 /* end confdefs.h. */
12195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12197 #define $ac_func innocuous_$ac_func
12199 /* System header to define __stub macros and hopefully few prototypes,
12200 which can conflict with char $ac_func (); below.
12201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12202 <limits.h> exists even on freestanding compilers. */
12205 # include <limits.h>
12207 # include <assert.h>
12212 /* Override any GCC internal prototype to avoid an error.
12213 Use char because int might match the return type of a GCC
12214 builtin and then its argument prototype would still apply. */
12219 /* The GNU C library defines this for functions which it implements
12220 to always fail with ENOSYS. Some functions are actually named
12221 something starting with __ and the normal name is an alias. */
12222 #if defined __stub_$ac_func || defined __stub___$ac_func
12229 return $ac_func ();
12234 rm -f conftest.$ac_objext conftest$ac_exeext
12235 if { (ac_try="$ac_link"
12236 case "(($ac_try" in
12237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238 *) ac_try_echo=$ac_try;;
12240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241 (eval "$ac_link") 2>conftest.er1
12243 grep -v '^ *+' conftest.er1 >conftest.err
12245 cat conftest.err >&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } &&
12248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12249 { (case "(($ac_try" in
12250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251 *) ac_try_echo=$ac_try;;
12253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254 (eval "$ac_try") 2>&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); }; } &&
12258 { ac_try='test -s conftest$ac_exeext'
12259 { (case "(($ac_try" in
12260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261 *) ac_try_echo=$ac_try;;
12263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12264 (eval "$ac_try") 2>&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }; }; then
12268 eval "$as_ac_var=yes"
12270 echo "$as_me: failed program was:" >&5
12271 sed 's/^/| /' conftest.$ac_ext >&5
12273 eval "$as_ac_var=no"
12276 rm -f core conftest.err conftest.$ac_objext \
12277 conftest$ac_exeext conftest.$ac_ext
12279 ac_res=`eval echo '${'$as_ac_var'}'`
12280 { echo "$as_me:$LINENO: result: $ac_res" >&5
12281 echo "${ECHO_T}$ac_res" >&6; }
12282 if test `eval echo '${'$as_ac_var'}'` = yes; then
12283 cat >>confdefs.h <<_ACEOF
12284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12291 # Check whether --enable-shared was given.
12292 if test "${enable_shared+set}" = set; then
12293 enableval=$enable_shared; p=${PACKAGE-default}
12295 yes) enable_shared=yes ;;
12296 no) enable_shared=no ;;
12299 # Look at the argument we got. We use all the common list separators.
12300 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12301 for pkg in $enableval; do
12303 if test "X$pkg" = "X$p"; then
12315 # Check whether --enable-static was given.
12316 if test "${enable_static+set}" = set; then
12317 enableval=$enable_static; p=${PACKAGE-default}
12319 yes) enable_static=yes ;;
12320 no) enable_static=no ;;
12323 # Look at the argument we got. We use all the common list separators.
12324 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12325 for pkg in $enableval; do
12327 if test "X$pkg" = "X$p"; then
12339 # Check whether --enable-fast-install was given.
12340 if test "${enable_fast_install+set}" = set; then
12341 enableval=$enable_fast_install; p=${PACKAGE-default}
12343 yes) enable_fast_install=yes ;;
12344 no) enable_fast_install=no ;;
12346 enable_fast_install=no
12347 # Look at the argument we got. We use all the common list separators.
12348 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12349 for pkg in $enableval; do
12351 if test "X$pkg" = "X$p"; then
12352 enable_fast_install=yes
12359 enable_fast_install=yes
12363 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12364 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12365 if test "${lt_cv_path_SED+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12368 # Loop through the user's path and test for sed and gsed.
12369 # Then use that list of sed's as ones to test for truncation.
12370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12371 for as_dir in $PATH
12374 test -z "$as_dir" && as_dir=.
12375 for lt_ac_prog in sed gsed; do
12376 for ac_exec_ext in '' $ac_executable_extensions; do
12377 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12378 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12385 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12386 # along with /bin/sed that truncates output.
12387 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12388 test ! -f $lt_ac_sed && continue
12389 cat /dev/null > conftest.in
12391 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12392 # Check for GNU sed and select it if it is found.
12393 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12394 lt_cv_path_SED=$lt_ac_sed
12398 cat conftest.in conftest.in >conftest.tmp
12399 mv conftest.tmp conftest.in
12400 cp conftest.in conftest.nl
12402 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12403 cmp -s conftest.out conftest.nl || break
12404 # 10000 chars as input seems more than enough
12405 test $lt_ac_count -gt 10 && break
12406 lt_ac_count=`expr $lt_ac_count + 1`
12407 if test $lt_ac_count -gt $lt_ac_max; then
12408 lt_ac_max=$lt_ac_count
12409 lt_cv_path_SED=$lt_ac_sed
12416 SED=$lt_cv_path_SED
12417 { echo "$as_me:$LINENO: result: $SED" >&5
12418 echo "${ECHO_T}$SED" >&6; }
12421 # Check whether --with-gnu-ld was given.
12422 if test "${with_gnu_ld+set}" = set; then
12423 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12429 if test "$GCC" = yes; then
12430 # Check if gcc -print-prog-name=ld gives a path.
12431 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12432 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12435 # gcc leaves a trailing carriage return which upsets mingw
12436 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12438 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12441 # Accept absolute paths.
12443 re_direlt='/[^/][^/]*/\.\./'
12444 # Canonicalize the pathname of ld
12445 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12446 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12447 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12449 test -z "$LD" && LD="$ac_prog"
12452 # If it fails, then pretend we aren't using GCC.
12456 # If it is relative, then search for the first ld in PATH.
12457 with_gnu_ld=unknown
12460 elif test "$with_gnu_ld" = yes; then
12461 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12462 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12464 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12465 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12467 if test "${lt_cv_path_LD+set}" = set; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12470 if test -z "$LD"; then
12471 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12472 for ac_dir in $PATH; do
12474 test -z "$ac_dir" && ac_dir=.
12475 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12476 lt_cv_path_LD="$ac_dir/$ac_prog"
12477 # Check to see if the program is GNU ld. I'd rather use --version,
12478 # but apparently some variants of GNU ld only accept -v.
12479 # Break only if it was the GNU/non-GNU ld that we prefer.
12480 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12481 *GNU* | *'with BFD'*)
12482 test "$with_gnu_ld" != no && break
12485 test "$with_gnu_ld" != yes && break
12492 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12496 LD="$lt_cv_path_LD"
12497 if test -n "$LD"; then
12498 { echo "$as_me:$LINENO: result: $LD" >&5
12499 echo "${ECHO_T}$LD" >&6; }
12501 { echo "$as_me:$LINENO: result: no" >&5
12502 echo "${ECHO_T}no" >&6; }
12504 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12505 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12506 { (exit 1); exit 1; }; }
12507 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12508 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12509 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12512 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12513 case `$LD -v 2>&1 </dev/null` in
12514 *GNU* | *'with BFD'*)
12515 lt_cv_prog_gnu_ld=yes
12518 lt_cv_prog_gnu_ld=no
12522 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12523 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12524 with_gnu_ld=$lt_cv_prog_gnu_ld
12527 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12528 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12529 if test "${lt_cv_ld_reload_flag+set}" = set; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 lt_cv_ld_reload_flag='-r'
12534 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12535 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12536 reload_flag=$lt_cv_ld_reload_flag
12537 case $reload_flag in
12539 *) reload_flag=" $reload_flag" ;;
12541 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12544 if test "$GCC" = yes; then
12545 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12547 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12552 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12553 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12554 if test "${lt_cv_deplibs_check_method+set}" = set; then
12555 echo $ECHO_N "(cached) $ECHO_C" >&6
12557 lt_cv_file_magic_cmd='$MAGIC_CMD'
12558 lt_cv_file_magic_test_file=
12559 lt_cv_deplibs_check_method='unknown'
12560 # Need to set the preceding variable on all platforms that support
12561 # interlibrary dependencies.
12562 # 'none' -- dependencies not supported.
12563 # `unknown' -- same as none, but documents that we really don't know.
12564 # 'pass_all' -- all dependencies passed with no checks.
12565 # 'test_compile' -- check by making test program.
12566 # 'file_magic [[regex]]' -- check by looking for files in library path
12567 # which responds to the $file_magic_cmd with a given extended regex.
12568 # If you have `file' or equivalent on your system and you're not sure
12569 # whether `pass_all' will *always* work, you probably want this one.
12573 lt_cv_deplibs_check_method=pass_all
12577 lt_cv_deplibs_check_method=pass_all
12581 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12582 lt_cv_file_magic_cmd='/usr/bin/file -L'
12583 lt_cv_file_magic_test_file=/shlib/libc.so
12587 # func_win32_libid is a shell function defined in ltmain.sh
12588 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12589 lt_cv_file_magic_cmd='func_win32_libid'
12593 # Base MSYS/MinGW do not provide the 'file' command needed by
12594 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12595 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12596 lt_cv_file_magic_cmd='$OBJDUMP -f'
12599 darwin* | rhapsody*)
12600 lt_cv_deplibs_check_method=pass_all
12603 freebsd* | kfreebsd*-gnu | dragonfly*)
12604 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12607 # Not sure whether the presence of OpenBSD here was a mistake.
12608 # Let's accept both of them until this is cleared up.
12609 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12610 lt_cv_file_magic_cmd=/usr/bin/file
12611 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12615 lt_cv_deplibs_check_method=pass_all
12620 lt_cv_deplibs_check_method=pass_all
12623 hpux10.20* | hpux11*)
12624 lt_cv_file_magic_cmd=/usr/bin/file
12627 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12628 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12631 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]'
12632 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12635 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12636 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12642 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12646 irix5* | irix6* | nonstopux*)
12648 *-32|*"-32 ") libmagic=32-bit;;
12649 *-n32|*"-n32 ") libmagic=N32;;
12650 *-64|*"-64 ") libmagic=64-bit;;
12651 *) libmagic=never-match;;
12653 lt_cv_deplibs_check_method=pass_all
12656 # This must be Linux ELF.
12658 lt_cv_deplibs_check_method=pass_all
12662 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12663 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12665 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12670 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12671 lt_cv_file_magic_cmd=/usr/bin/file
12672 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12676 lt_cv_deplibs_check_method=unknown
12680 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12681 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12683 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12687 osf3* | osf4* | osf5*)
12688 lt_cv_deplibs_check_method=pass_all
12692 lt_cv_deplibs_check_method=pass_all
12696 case $host_vendor in
12698 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]'
12699 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12702 lt_cv_deplibs_check_method=pass_all
12705 lt_cv_file_magic_cmd='/bin/file'
12706 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12709 lt_cv_file_magic_cmd='/bin/file'
12710 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12711 lt_cv_file_magic_test_file=/lib/libc.so
12714 lt_cv_deplibs_check_method=pass_all
12717 lt_cv_deplibs_check_method=pass_all
12722 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12723 lt_cv_deplibs_check_method=pass_all
12728 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12729 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12730 file_magic_cmd=$lt_cv_file_magic_cmd
12731 deplibs_check_method=$lt_cv_deplibs_check_method
12732 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12736 # If no C compiler was specified, use CC.
12739 # If no C compiler flags were specified, use CFLAGS.
12740 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12742 # Allow CC to be a program name with arguments.
12745 # Check whether --enable-libtool-lock was given.
12746 if test "${enable_libtool_lock+set}" = set; then
12747 enableval=$enable_libtool_lock;
12750 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12752 # Some flags need to be propagated to the compiler or linker for good
12756 # Find out which ABI we are using.
12757 echo 'int i;' > conftest.$ac_ext
12758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12759 (eval $ac_compile) 2>&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; then
12763 case `/usr/bin/file conftest.$ac_objext` in
12765 HPUX_IA64_MODE="32"
12768 HPUX_IA64_MODE="64"
12775 # Find out which ABI we are using.
12776 echo '#line 12776 "configure"' > conftest.$ac_ext
12777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12778 (eval $ac_compile) 2>&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; then
12782 if test "$lt_cv_prog_gnu_ld" = yes; then
12783 case `/usr/bin/file conftest.$ac_objext` in
12785 LD="${LD-ld} -melf32bsmip"
12788 LD="${LD-ld} -melf32bmipn32"
12791 LD="${LD-ld} -melf64bmip"
12795 case `/usr/bin/file conftest.$ac_objext` in
12811 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12812 # Find out which ABI we are using.
12813 echo 'int i;' > conftest.$ac_ext
12814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12815 (eval $ac_compile) 2>&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); }; then
12819 case `/usr/bin/file conftest.o` in
12823 LD="${LD-ld} -m elf_i386"
12825 ppc64-*linux*|powerpc64-*linux*)
12826 LD="${LD-ld} -m elf32ppclinux"
12829 LD="${LD-ld} -m elf_s390"
12832 LD="${LD-ld} -m elf32_sparc"
12839 LD="${LD-ld} -m elf_x86_64"
12841 ppc*-*linux*|powerpc*-*linux*)
12842 LD="${LD-ld} -m elf64ppc"
12845 LD="${LD-ld} -m elf64_s390"
12848 LD="${LD-ld} -m elf64_sparc"
12858 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12859 SAVE_CFLAGS="$CFLAGS"
12860 CFLAGS="$CFLAGS -belf"
12861 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12862 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12863 if test "${lt_cv_cc_needs_belf+set}" = set; then
12864 echo $ECHO_N "(cached) $ECHO_C" >&6
12867 ac_cpp='$CPP $CPPFLAGS'
12868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12872 cat >conftest.$ac_ext <<_ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h. */
12887 rm -f conftest.$ac_objext conftest$ac_exeext
12888 if { (ac_try="$ac_link"
12889 case "(($ac_try" in
12890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12891 *) ac_try_echo=$ac_try;;
12893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12894 (eval "$ac_link") 2>conftest.er1
12896 grep -v '^ *+' conftest.er1 >conftest.err
12898 cat conftest.err >&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } &&
12901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12902 { (case "(($ac_try" in
12903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904 *) ac_try_echo=$ac_try;;
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_try") 2>&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; } &&
12911 { ac_try='test -s conftest$ac_exeext'
12912 { (case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917 (eval "$ac_try") 2>&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12921 lt_cv_cc_needs_belf=yes
12923 echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12926 lt_cv_cc_needs_belf=no
12929 rm -f core conftest.err conftest.$ac_objext \
12930 conftest$ac_exeext conftest.$ac_ext
12932 ac_cpp='$CPP $CPPFLAGS'
12933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12938 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12939 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12940 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12941 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12942 CFLAGS="$SAVE_CFLAGS"
12946 # Find out which ABI we are using.
12947 echo 'int i;' > conftest.$ac_ext
12948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12949 (eval $ac_compile) 2>&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; then
12953 case `/usr/bin/file conftest.o` in
12955 case $lt_cv_prog_gnu_ld in
12956 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12957 *) LD="${LD-ld} -64" ;;
12968 need_locks="$enable_libtool_lock"
12973 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12974 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12975 (test "X$CXX" != "Xg++"))) ; then
12977 ac_cpp='$CXXCPP $CPPFLAGS'
12978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12981 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12982 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12983 if test -z "$CXXCPP"; then
12984 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12987 # Double quotes because CXXCPP needs to be expanded
12988 for CXXCPP in "$CXX -E" "/lib/cpp"
12990 ac_preproc_ok=false
12991 for ac_cxx_preproc_warn_flag in '' yes
12993 # Use a header file that comes with gcc, so configuring glibc
12994 # with a fresh cross-compiler works.
12995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12996 # <limits.h> exists even on freestanding compilers.
12997 # On the NeXT, cc -E runs the code through the compiler's parser,
12998 # not just through cpp. "Syntax error" is here to catch this case.
12999 cat >conftest.$ac_ext <<_ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h. */
13006 # include <limits.h>
13008 # include <assert.h>
13012 if { (ac_try="$ac_cpp conftest.$ac_ext"
13013 case "(($ac_try" in
13014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015 *) ac_try_echo=$ac_try;;
13017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13020 grep -v '^ *+' conftest.er1 >conftest.err
13022 cat conftest.err >&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } >/dev/null; then
13025 if test -s conftest.err; then
13026 ac_cpp_err=$ac_cxx_preproc_warn_flag
13027 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13034 if test -z "$ac_cpp_err"; then
13037 echo "$as_me: failed program was:" >&5
13038 sed 's/^/| /' conftest.$ac_ext >&5
13040 # Broken: fails on valid input.
13044 rm -f conftest.err conftest.$ac_ext
13046 # OK, works on sane cases. Now check whether nonexistent headers
13047 # can be detected and how.
13048 cat >conftest.$ac_ext <<_ACEOF
13051 cat confdefs.h >>conftest.$ac_ext
13052 cat >>conftest.$ac_ext <<_ACEOF
13053 /* end confdefs.h. */
13054 #include <ac_nonexistent.h>
13056 if { (ac_try="$ac_cpp conftest.$ac_ext"
13057 case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13064 grep -v '^ *+' conftest.er1 >conftest.err
13066 cat conftest.err >&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } >/dev/null; then
13069 if test -s conftest.err; then
13070 ac_cpp_err=$ac_cxx_preproc_warn_flag
13071 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13078 if test -z "$ac_cpp_err"; then
13079 # Broken: success on invalid input.
13082 echo "$as_me: failed program was:" >&5
13083 sed 's/^/| /' conftest.$ac_ext >&5
13085 # Passes both tests.
13090 rm -f conftest.err conftest.$ac_ext
13093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13094 rm -f conftest.err conftest.$ac_ext
13095 if $ac_preproc_ok; then
13100 ac_cv_prog_CXXCPP=$CXXCPP
13103 CXXCPP=$ac_cv_prog_CXXCPP
13105 ac_cv_prog_CXXCPP=$CXXCPP
13107 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13108 echo "${ECHO_T}$CXXCPP" >&6; }
13109 ac_preproc_ok=false
13110 for ac_cxx_preproc_warn_flag in '' yes
13112 # Use a header file that comes with gcc, so configuring glibc
13113 # with a fresh cross-compiler works.
13114 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13115 # <limits.h> exists even on freestanding compilers.
13116 # On the NeXT, cc -E runs the code through the compiler's parser,
13117 # not just through cpp. "Syntax error" is here to catch this case.
13118 cat >conftest.$ac_ext <<_ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h. */
13125 # include <limits.h>
13127 # include <assert.h>
13131 if { (ac_try="$ac_cpp conftest.$ac_ext"
13132 case "(($ac_try" in
13133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134 *) ac_try_echo=$ac_try;;
13136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13139 grep -v '^ *+' conftest.er1 >conftest.err
13141 cat conftest.err >&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } >/dev/null; then
13144 if test -s conftest.err; then
13145 ac_cpp_err=$ac_cxx_preproc_warn_flag
13146 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13153 if test -z "$ac_cpp_err"; then
13156 echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13159 # Broken: fails on valid input.
13163 rm -f conftest.err conftest.$ac_ext
13165 # OK, works on sane cases. Now check whether nonexistent headers
13166 # can be detected and how.
13167 cat >conftest.$ac_ext <<_ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h. */
13173 #include <ac_nonexistent.h>
13175 if { (ac_try="$ac_cpp conftest.$ac_ext"
13176 case "(($ac_try" in
13177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178 *) ac_try_echo=$ac_try;;
13180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13183 grep -v '^ *+' conftest.er1 >conftest.err
13185 cat conftest.err >&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } >/dev/null; then
13188 if test -s conftest.err; then
13189 ac_cpp_err=$ac_cxx_preproc_warn_flag
13190 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13197 if test -z "$ac_cpp_err"; then
13198 # Broken: success on invalid input.
13201 echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13204 # Passes both tests.
13209 rm -f conftest.err conftest.$ac_ext
13212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13213 rm -f conftest.err conftest.$ac_ext
13214 if $ac_preproc_ok; then
13217 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13218 See \`config.log' for more details." >&5
13219 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13220 See \`config.log' for more details." >&2;}
13221 { (exit 1); exit 1; }; }
13225 ac_cpp='$CXXCPP $CPPFLAGS'
13226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13234 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13235 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13236 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13237 if test -n "$ac_tool_prefix"; then
13238 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
13240 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13241 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13244 if test "${ac_cv_prog_F77+set}" = set; then
13245 echo $ECHO_N "(cached) $ECHO_C" >&6
13247 if test -n "$F77"; then
13248 ac_cv_prog_F77="$F77" # Let the user override the test.
13250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13251 for as_dir in $PATH
13254 test -z "$as_dir" && as_dir=.
13255 for ac_exec_ext in '' $ac_executable_extensions; do
13256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13257 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13267 F77=$ac_cv_prog_F77
13268 if test -n "$F77"; then
13269 { echo "$as_me:$LINENO: result: $F77" >&5
13270 echo "${ECHO_T}$F77" >&6; }
13272 { echo "$as_me:$LINENO: result: no" >&5
13273 echo "${ECHO_T}no" >&6; }
13277 test -n "$F77" && break
13280 if test -z "$F77"; then
13282 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
13284 # Extract the first word of "$ac_prog", so it can be a program name with args.
13285 set dummy $ac_prog; ac_word=$2
13286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13288 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13291 if test -n "$ac_ct_F77"; then
13292 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13295 for as_dir in $PATH
13298 test -z "$as_dir" && as_dir=.
13299 for ac_exec_ext in '' $ac_executable_extensions; do
13300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13301 ac_cv_prog_ac_ct_F77="$ac_prog"
13302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13311 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13312 if test -n "$ac_ct_F77"; then
13313 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13314 echo "${ECHO_T}$ac_ct_F77" >&6; }
13316 { echo "$as_me:$LINENO: result: no" >&5
13317 echo "${ECHO_T}no" >&6; }
13321 test -n "$ac_ct_F77" && break
13324 if test "x$ac_ct_F77" = x; then
13327 case $cross_compiling:$ac_tool_warned in
13329 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13330 whose name does not start with the host triplet. If you think this
13331 configuration is useful to you, please write to autoconf@gnu.org." >&5
13332 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13333 whose name does not start with the host triplet. If you think this
13334 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13335 ac_tool_warned=yes ;;
13342 # Provide some information about the compiler.
13343 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13344 ac_compiler=`set X $ac_compile; echo $2`
13345 { (ac_try="$ac_compiler --version >&5"
13346 case "(($ac_try" in
13347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13348 *) ac_try_echo=$ac_try;;
13350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13351 (eval "$ac_compiler --version >&5") 2>&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }
13355 { (ac_try="$ac_compiler -v >&5"
13356 case "(($ac_try" in
13357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358 *) ac_try_echo=$ac_try;;
13360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361 (eval "$ac_compiler -v >&5") 2>&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }
13365 { (ac_try="$ac_compiler -V >&5"
13366 case "(($ac_try" in
13367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13368 *) ac_try_echo=$ac_try;;
13370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13371 (eval "$ac_compiler -V >&5") 2>&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); }
13377 # If we don't use `.F' as extension, the preprocessor is not run on the
13378 # input file. (Note that this only needs to work for GNU compilers.)
13379 ac_save_ext=$ac_ext
13381 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13382 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13383 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13384 echo $ECHO_N "(cached) $ECHO_C" >&6
13386 cat >conftest.$ac_ext <<_ACEOF
13394 rm -f conftest.$ac_objext
13395 if { (ac_try="$ac_compile"
13396 case "(($ac_try" in
13397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13398 *) ac_try_echo=$ac_try;;
13400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13401 (eval "$ac_compile") 2>conftest.er1
13403 grep -v '^ *+' conftest.er1 >conftest.err
13405 cat conftest.err >&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } &&
13408 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13409 { (case "(($ac_try" in
13410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_try") 2>&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; } &&
13418 { ac_try='test -s conftest.$ac_objext'
13419 { (case "(($ac_try" in
13420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421 *) ac_try_echo=$ac_try;;
13423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424 (eval "$ac_try") 2>&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; }; then
13428 ac_compiler_gnu=yes
13430 echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13437 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13440 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13441 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13442 ac_ext=$ac_save_ext
13443 ac_test_FFLAGS=${FFLAGS+set}
13444 ac_save_FFLAGS=$FFLAGS
13446 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13447 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13448 if test "${ac_cv_prog_f77_g+set}" = set; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13452 cat >conftest.$ac_ext <<_ACEOF
13457 rm -f conftest.$ac_objext
13458 if { (ac_try="$ac_compile"
13459 case "(($ac_try" in
13460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461 *) ac_try_echo=$ac_try;;
13463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464 (eval "$ac_compile") 2>conftest.er1
13466 grep -v '^ *+' conftest.er1 >conftest.err
13468 cat conftest.err >&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } &&
13471 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13472 { (case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13477 (eval "$ac_try") 2>&5
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; } &&
13481 { ac_try='test -s conftest.$ac_objext'
13482 { (case "(($ac_try" in
13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487 (eval "$ac_try") 2>&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
13491 ac_cv_prog_f77_g=yes
13493 echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13496 ac_cv_prog_f77_g=no
13499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13502 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13503 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13504 if test "$ac_test_FFLAGS" = set; then
13505 FFLAGS=$ac_save_FFLAGS
13506 elif test $ac_cv_prog_f77_g = yes; then
13507 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13513 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13520 G77=`test $ac_compiler_gnu = yes && echo yes`
13522 ac_cpp='$CPP $CPPFLAGS'
13523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13529 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13531 # find the maximum length of command line arguments
13532 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13533 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13534 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13535 echo $ECHO_N "(cached) $ECHO_C" >&6
13542 # On DJGPP, this test can blow up pretty badly due to problems in libc
13543 # (any single argument exceeding 2000 bytes causes a buffer overrun
13544 # during glob expansion). Even if it were fixed, the result of this
13545 # check would be larger than it should be.
13546 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13550 # Under GNU Hurd, this test is not required because there is
13551 # no limit to the length of command line arguments.
13552 # Libtool will interpret -1 as no limit whatsoever
13553 lt_cv_sys_max_cmd_len=-1;
13557 # On Win9x/ME, this test blows up -- it succeeds, but takes
13558 # about 5 minutes as the teststring grows exponentially.
13559 # Worse, since 9x/ME are not pre-emptively multitasking,
13560 # you end up with a "frozen" computer, even though with patience
13561 # the test eventually succeeds (with a max line length of 256k).
13562 # Instead, let's just punt: use the minimum linelength reported by
13563 # all of the supported platforms: 8192 (on NT/2K/XP).
13564 lt_cv_sys_max_cmd_len=8192;
13568 # On AmigaOS with pdksh, this test takes hours, literally.
13569 # So we just punt and use a minimum line length of 8192.
13570 lt_cv_sys_max_cmd_len=8192;
13573 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13574 # This has been around since 386BSD, at least. Likely further.
13575 if test -x /sbin/sysctl; then
13576 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13577 elif test -x /usr/sbin/sysctl; then
13578 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13580 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13582 # And add a safety zone
13583 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13584 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13588 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13589 lt_cv_sys_max_cmd_len=196608
13593 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13594 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13595 # nice to cause kernel panics so lets avoid the loop below.
13596 # First set a reasonable default.
13597 lt_cv_sys_max_cmd_len=16384
13599 if test -x /sbin/sysconfig; then
13600 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13601 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13606 lt_cv_sys_max_cmd_len=102400
13608 sysv5* | sco5v6* | sysv4.2uw2*)
13609 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13610 if test -n "$kargmax"; then
13611 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13613 lt_cv_sys_max_cmd_len=32768
13617 # If test is not a shell built-in, we'll probably end up computing a
13618 # maximum length that is only half of the actual maximum length, but
13620 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13621 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13622 = "XX$teststring") >/dev/null 2>&1 &&
13623 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13624 lt_cv_sys_max_cmd_len=$new_result &&
13625 test $i != 17 # 1/2 MB should be enough
13628 teststring=$teststring$teststring
13631 # Add a significant safety factor because C++ compilers can tack on massive
13632 # amounts of additional arguments before passing them to the linker.
13633 # It appears as though 1/2 is a usable value.
13634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13640 if test -n $lt_cv_sys_max_cmd_len ; then
13641 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13642 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13644 { echo "$as_me:$LINENO: result: none" >&5
13645 echo "${ECHO_T}none" >&6; }
13651 # Check for command to grab the raw symbol name followed by C symbol from nm.
13652 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13653 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13654 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13655 echo $ECHO_N "(cached) $ECHO_C" >&6
13658 # These are sane defaults that work on at least a few old systems.
13659 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13661 # Character class describing NM global symbol codes.
13662 symcode='[BCDEGRST]'
13664 # Regexp to match symbols that can be accessed directly from C.
13665 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13667 # Transform an extracted symbol line into a proper C declaration
13668 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13670 # Transform an extracted symbol line into symbol name and symbol address
13671 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'"
13673 # Define system-specific variables.
13678 cygwin* | mingw* | pw32*)
13679 symcode='[ABCDGISTW]'
13681 hpux*) # Its linker distinguishes data from code symbols
13682 if test "$host_cpu" = ia64; then
13683 symcode='[ABCDEGRST]'
13685 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13686 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'"
13689 if test "$host_cpu" = ia64; then
13690 symcode='[ABCDGIRSTW]'
13691 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13692 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'"
13695 irix* | nonstopux*)
13696 symcode='[BCDEGRST]'
13699 symcode='[BCDEGQRST]'
13710 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13718 # Handle CRLF in mingw tool chain
13722 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13726 # If we're using GNU nm, then use its standard symbol codes.
13727 case `$NM -V 2>&1` in
13728 *GNU* | *'with BFD'*)
13729 symcode='[ABCDGIRSTW]' ;;
13732 # Try without a prefix undercore, then with it.
13733 for ac_symprfx in "" "_"; do
13735 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13736 symxfrm="\\1 $ac_symprfx\\2 \\2"
13738 # Write the raw and C identifiers.
13739 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13741 # Check to see that the pipe works correctly.
13745 cat > conftest.$ac_ext <<EOF
13750 void nm_test_func(){}
13754 int main(){nm_test_var='a';nm_test_func();return(0);}
13757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13758 (eval $ac_compile) 2>&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; then
13762 # Now try to grab the symbols.
13764 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13765 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } && test -s "$nlist"; then
13769 # Try sorting and uniquifying the output.
13770 if sort "$nlist" | uniq > "$nlist"T; then
13771 mv -f "$nlist"T "$nlist"
13776 # Make sure that we snagged all the symbols we need.
13777 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13778 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13779 cat <<EOF > conftest.$ac_ext
13785 # Now generate the symbol file.
13786 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13788 cat <<EOF >> conftest.$ac_ext
13789 #if defined (__STDC__) && __STDC__
13790 # define lt_ptr_t void *
13792 # define lt_ptr_t char *
13796 /* The mapping between symbol names and symbols. */
13801 lt_preloaded_symbols[] =
13804 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13805 cat <<\EOF >> conftest.$ac_ext
13813 # Now try linking the two files.
13814 mv conftest.$ac_objext conftstm.$ac_objext
13815 lt_save_LIBS="$LIBS"
13816 lt_save_CFLAGS="$CFLAGS"
13817 LIBS="conftstm.$ac_objext"
13818 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13820 (eval $ac_link) 2>&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13826 LIBS="$lt_save_LIBS"
13827 CFLAGS="$lt_save_CFLAGS"
13829 echo "cannot find nm_test_func in $nlist" >&5
13832 echo "cannot find nm_test_var in $nlist" >&5
13835 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13838 echo "$progname: failed program was:" >&5
13839 cat conftest.$ac_ext >&5
13841 rm -f conftest* conftst*
13843 # Do not use the global_symbol_pipe unless it works.
13844 if test "$pipe_works" = yes; then
13847 lt_cv_sys_global_symbol_pipe=
13853 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13854 lt_cv_sys_global_symbol_to_cdecl=
13856 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13857 { echo "$as_me:$LINENO: result: failed" >&5
13858 echo "${ECHO_T}failed" >&6; }
13860 { echo "$as_me:$LINENO: result: ok" >&5
13861 echo "${ECHO_T}ok" >&6; }
13864 { echo "$as_me:$LINENO: checking for objdir" >&5
13865 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13866 if test "${lt_cv_objdir+set}" = set; then
13867 echo $ECHO_N "(cached) $ECHO_C" >&6
13869 rm -f .libs 2>/dev/null
13870 mkdir .libs 2>/dev/null
13871 if test -d .libs; then
13874 # MS-DOS does not allow filenames that begin with a dot.
13877 rmdir .libs 2>/dev/null
13879 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13880 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13881 objdir=$lt_cv_objdir
13889 # AIX sometimes has problems with the GCC collect2 program. For some
13890 # reason, if we set the COLLECT_NAMES environment variable, the problems
13891 # vanish in a puff of smoke.
13892 if test "X${COLLECT_NAMES+set}" != Xset; then
13894 export COLLECT_NAMES
13899 # Sed substitution that helps us do robust quoting. It backslashifies
13900 # metacharacters that are still active within double-quoted strings.
13901 Xsed='sed -e 1s/^X//'
13902 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13904 # Same as above, but do not quote variable references.
13905 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13907 # Sed substitution to delay expansion of an escaped shell variable in a
13908 # double_quote_subst'ed string.
13909 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13911 # Sed substitution to avoid accidental globbing in evaled expressions
13912 no_glob_subst='s/\*/\\\*/g'
13917 # Global variables:
13918 default_ofile=mklib
13919 can_build_shared=yes
13921 # All known linkers require a `.a' archive for static linking (except MSVC,
13922 # which needs '.lib').
13924 ltmain="$ac_aux_dir/ltmain.sh"
13925 ofile="$default_ofile"
13926 with_gnu_ld="$lt_cv_prog_gnu_ld"
13928 if test -n "$ac_tool_prefix"; then
13929 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13930 set dummy ${ac_tool_prefix}ar; ac_word=$2
13931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13933 if test "${ac_cv_prog_AR+set}" = set; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 if test -n "$AR"; then
13937 ac_cv_prog_AR="$AR" # Let the user override the test.
13939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13940 for as_dir in $PATH
13943 test -z "$as_dir" && as_dir=.
13944 for ac_exec_ext in '' $ac_executable_extensions; do
13945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13946 ac_cv_prog_AR="${ac_tool_prefix}ar"
13947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13957 if test -n "$AR"; then
13958 { echo "$as_me:$LINENO: result: $AR" >&5
13959 echo "${ECHO_T}$AR" >&6; }
13961 { echo "$as_me:$LINENO: result: no" >&5
13962 echo "${ECHO_T}no" >&6; }
13967 if test -z "$ac_cv_prog_AR"; then
13969 # Extract the first word of "ar", so it can be a program name with args.
13970 set dummy ar; ac_word=$2
13971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13973 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13974 echo $ECHO_N "(cached) $ECHO_C" >&6
13976 if test -n "$ac_ct_AR"; then
13977 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13980 for as_dir in $PATH
13983 test -z "$as_dir" && as_dir=.
13984 for ac_exec_ext in '' $ac_executable_extensions; do
13985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13986 ac_cv_prog_ac_ct_AR="ar"
13987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13996 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13997 if test -n "$ac_ct_AR"; then
13998 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13999 echo "${ECHO_T}$ac_ct_AR" >&6; }
14001 { echo "$as_me:$LINENO: result: no" >&5
14002 echo "${ECHO_T}no" >&6; }
14005 if test "x$ac_ct_AR" = x; then
14008 case $cross_compiling:$ac_tool_warned in
14010 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14011 whose name does not start with the host triplet. If you think this
14012 configuration is useful to you, please write to autoconf@gnu.org." >&5
14013 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14014 whose name does not start with the host triplet. If you think this
14015 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14016 ac_tool_warned=yes ;;
14021 AR="$ac_cv_prog_AR"
14024 if test -n "$ac_tool_prefix"; then
14025 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14026 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14029 if test "${ac_cv_prog_RANLIB+set}" = set; then
14030 echo $ECHO_N "(cached) $ECHO_C" >&6
14032 if test -n "$RANLIB"; then
14033 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14036 for as_dir in $PATH
14039 test -z "$as_dir" && as_dir=.
14040 for ac_exec_ext in '' $ac_executable_extensions; do
14041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14042 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14052 RANLIB=$ac_cv_prog_RANLIB
14053 if test -n "$RANLIB"; then
14054 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14055 echo "${ECHO_T}$RANLIB" >&6; }
14057 { echo "$as_me:$LINENO: result: no" >&5
14058 echo "${ECHO_T}no" >&6; }
14063 if test -z "$ac_cv_prog_RANLIB"; then
14064 ac_ct_RANLIB=$RANLIB
14065 # Extract the first word of "ranlib", so it can be a program name with args.
14066 set dummy ranlib; ac_word=$2
14067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14069 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14070 echo $ECHO_N "(cached) $ECHO_C" >&6
14072 if test -n "$ac_ct_RANLIB"; then
14073 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14076 for as_dir in $PATH
14079 test -z "$as_dir" && as_dir=.
14080 for ac_exec_ext in '' $ac_executable_extensions; do
14081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14082 ac_cv_prog_ac_ct_RANLIB="ranlib"
14083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14092 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14093 if test -n "$ac_ct_RANLIB"; then
14094 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14095 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14097 { echo "$as_me:$LINENO: result: no" >&5
14098 echo "${ECHO_T}no" >&6; }
14101 if test "x$ac_ct_RANLIB" = x; then
14104 case $cross_compiling:$ac_tool_warned in
14106 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14107 whose name does not start with the host triplet. If you think this
14108 configuration is useful to you, please write to autoconf@gnu.org." >&5
14109 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14110 whose name does not start with the host triplet. If you think this
14111 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14112 ac_tool_warned=yes ;;
14114 RANLIB=$ac_ct_RANLIB
14117 RANLIB="$ac_cv_prog_RANLIB"
14120 if test -n "$ac_tool_prefix"; then
14121 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14122 set dummy ${ac_tool_prefix}strip; ac_word=$2
14123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14125 if test "${ac_cv_prog_STRIP+set}" = set; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
14128 if test -n "$STRIP"; then
14129 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14132 for as_dir in $PATH
14135 test -z "$as_dir" && as_dir=.
14136 for ac_exec_ext in '' $ac_executable_extensions; do
14137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14138 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14148 STRIP=$ac_cv_prog_STRIP
14149 if test -n "$STRIP"; then
14150 { echo "$as_me:$LINENO: result: $STRIP" >&5
14151 echo "${ECHO_T}$STRIP" >&6; }
14153 { echo "$as_me:$LINENO: result: no" >&5
14154 echo "${ECHO_T}no" >&6; }
14159 if test -z "$ac_cv_prog_STRIP"; then
14161 # Extract the first word of "strip", so it can be a program name with args.
14162 set dummy strip; ac_word=$2
14163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14165 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14166 echo $ECHO_N "(cached) $ECHO_C" >&6
14168 if test -n "$ac_ct_STRIP"; then
14169 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14172 for as_dir in $PATH
14175 test -z "$as_dir" && as_dir=.
14176 for ac_exec_ext in '' $ac_executable_extensions; do
14177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14178 ac_cv_prog_ac_ct_STRIP="strip"
14179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14188 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14189 if test -n "$ac_ct_STRIP"; then
14190 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14191 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14193 { echo "$as_me:$LINENO: result: no" >&5
14194 echo "${ECHO_T}no" >&6; }
14197 if test "x$ac_ct_STRIP" = x; then
14200 case $cross_compiling:$ac_tool_warned in
14202 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14203 whose name does not start with the host triplet. If you think this
14204 configuration is useful to you, please write to autoconf@gnu.org." >&5
14205 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14206 whose name does not start with the host triplet. If you think this
14207 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14208 ac_tool_warned=yes ;;
14213 STRIP="$ac_cv_prog_STRIP"
14218 old_CFLAGS="$CFLAGS"
14220 # Set sane defaults for various variables
14221 test -z "$AR" && AR=ar
14222 test -z "$AR_FLAGS" && AR_FLAGS=cru
14223 test -z "$AS" && AS=as
14224 test -z "$CC" && CC=cc
14225 test -z "$LTCC" && LTCC=$CC
14226 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14227 test -z "$DLLTOOL" && DLLTOOL=dlltool
14228 test -z "$LD" && LD=ld
14229 test -z "$LN_S" && LN_S="ln -s"
14230 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14231 test -z "$NM" && NM=nm
14232 test -z "$SED" && SED=sed
14233 test -z "$OBJDUMP" && OBJDUMP=objdump
14234 test -z "$RANLIB" && RANLIB=:
14235 test -z "$STRIP" && STRIP=:
14236 test -z "$ac_objext" && ac_objext=o
14238 # Determine commands to create old-style static archives.
14239 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14240 old_postinstall_cmds='chmod 644 $oldlib'
14241 old_postuninstall_cmds=
14243 if test -n "$RANLIB"; then
14246 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14249 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14252 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14255 for cc_temp in $compiler""; do
14257 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14258 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14263 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14266 # Only perform the check for file, if the check method requires it
14267 case $deplibs_check_method in
14269 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14270 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14271 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14272 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
14277 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14280 lt_save_MAGIC_CMD="$MAGIC_CMD"
14281 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14282 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14283 for ac_dir in $ac_dummy; do
14285 test -z "$ac_dir" && ac_dir=.
14286 if test -f $ac_dir/${ac_tool_prefix}file; then
14287 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14288 if test -n "$file_magic_test_file"; then
14289 case $deplibs_check_method in
14291 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14293 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14294 $EGREP "$file_magic_regex" > /dev/null; then
14299 *** Warning: the command libtool uses to detect shared libraries,
14300 *** $file_magic_cmd, produces output that libtool cannot recognize.
14301 *** The result is that libtool may fail to recognize shared libraries
14302 *** as such. This will affect the creation of libtool libraries that
14303 *** depend on shared libraries, but programs linked with such libtool
14304 *** libraries will work regardless of this problem. Nevertheless, you
14305 *** may want to report the problem to your system manager and/or to
14306 *** bug-libtool@gnu.org
14316 MAGIC_CMD="$lt_save_MAGIC_CMD"
14321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14322 if test -n "$MAGIC_CMD"; then
14323 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14324 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14326 { echo "$as_me:$LINENO: result: no" >&5
14327 echo "${ECHO_T}no" >&6; }
14330 if test -z "$lt_cv_path_MAGIC_CMD"; then
14331 if test -n "$ac_tool_prefix"; then
14332 { echo "$as_me:$LINENO: checking for file" >&5
14333 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14334 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14335 echo $ECHO_N "(cached) $ECHO_C" >&6
14339 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14342 lt_save_MAGIC_CMD="$MAGIC_CMD"
14343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14344 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14345 for ac_dir in $ac_dummy; do
14347 test -z "$ac_dir" && ac_dir=.
14348 if test -f $ac_dir/file; then
14349 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14350 if test -n "$file_magic_test_file"; then
14351 case $deplibs_check_method in
14353 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14354 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14355 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14356 $EGREP "$file_magic_regex" > /dev/null; then
14361 *** Warning: the command libtool uses to detect shared libraries,
14362 *** $file_magic_cmd, produces output that libtool cannot recognize.
14363 *** The result is that libtool may fail to recognize shared libraries
14364 *** as such. This will affect the creation of libtool libraries that
14365 *** depend on shared libraries, but programs linked with such libtool
14366 *** libraries will work regardless of this problem. Nevertheless, you
14367 *** may want to report the problem to your system manager and/or to
14368 *** bug-libtool@gnu.org
14378 MAGIC_CMD="$lt_save_MAGIC_CMD"
14383 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14384 if test -n "$MAGIC_CMD"; then
14385 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14386 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14388 { echo "$as_me:$LINENO: result: no" >&5
14389 echo "${ECHO_T}no" >&6; }
14402 enable_win32_dll=no
14404 # Check whether --enable-libtool-lock was given.
14405 if test "${enable_libtool_lock+set}" = set; then
14406 enableval=$enable_libtool_lock;
14409 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14412 # Check whether --with-pic was given.
14413 if test "${with_pic+set}" = set; then
14414 withval=$with_pic; pic_mode="$withval"
14419 test -z "$pic_mode" && pic_mode=default
14421 # Use C for the default configuration in the libtool script
14425 ac_cpp='$CPP $CPPFLAGS'
14426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14431 # Source file extension for C test sources.
14434 # Object file extension for compiled C test sources.
14438 # Code to be used in simple compile tests
14439 lt_simple_compile_test_code="int some_variable = 0;\n"
14441 # Code to be used in simple link tests
14442 lt_simple_link_test_code='int main(){return(0);}\n'
14445 # If no C compiler was specified, use CC.
14448 # If no C compiler flags were specified, use CFLAGS.
14449 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14451 # Allow CC to be a program name with arguments.
14455 # save warnings/boilerplate of simple test code
14456 ac_outfile=conftest.$ac_objext
14457 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14458 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14459 _lt_compiler_boilerplate=`cat conftest.err`
14462 ac_outfile=conftest.$ac_objext
14463 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14464 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14465 _lt_linker_boilerplate=`cat conftest.err`
14470 lt_prog_compiler_no_builtin_flag=
14472 if test "$GCC" = yes; then
14473 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14476 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14477 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14478 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14481 lt_cv_prog_compiler_rtti_exceptions=no
14482 ac_outfile=conftest.$ac_objext
14483 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14484 lt_compiler_flag="-fno-rtti -fno-exceptions"
14485 # Insert the option either (1) after the last *FLAGS variable, or
14486 # (2) before a word containing "conftest.", or (3) at the end.
14487 # Note that $ac_compile itself does not contain backslashes and begins
14488 # with a dollar sign (not a hyphen), so the echo should work correctly.
14489 # The option is referenced via a variable to avoid confusing sed.
14490 lt_compile=`echo "$ac_compile" | $SED \
14491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14493 -e 's:$: $lt_compiler_flag:'`
14494 (eval echo "\"\$as_me:14494: $lt_compile\"" >&5)
14495 (eval "$lt_compile" 2>conftest.err)
14497 cat conftest.err >&5
14498 echo "$as_me:14498: \$? = $ac_status" >&5
14499 if (exit $ac_status) && test -s "$ac_outfile"; then
14500 # The compiler can only warn and ignore the option if not recognized
14501 # So say no if there are warnings other than the usual output.
14502 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14504 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14505 lt_cv_prog_compiler_rtti_exceptions=yes
14511 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14512 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14514 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14515 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14522 lt_prog_compiler_wl=
14523 lt_prog_compiler_pic=
14524 lt_prog_compiler_static=
14526 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14527 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14529 if test "$GCC" = yes; then
14530 lt_prog_compiler_wl='-Wl,'
14531 lt_prog_compiler_static='-static'
14535 # All AIX code is PIC.
14536 if test "$host_cpu" = ia64; then
14537 # AIX 5 now supports IA64 processor
14538 lt_prog_compiler_static='-Bstatic'
14543 # FIXME: we need at least 68020 code to build shared libraries, but
14544 # adding the `-m68020' flag to GCC prevents building anything better,
14546 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14549 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14550 # PIC is the default for these OSes.
14553 mingw* | pw32* | os2*)
14554 # This hack is so that the source file can tell whether it is being
14555 # built for inclusion in a dll (and should export symbols for example).
14556 lt_prog_compiler_pic='-DDLL_EXPORT'
14559 darwin* | rhapsody*)
14560 # PIC is the default on this platform
14561 # Common symbols not allowed in MH_DYLIB files
14562 lt_prog_compiler_pic='-fno-common'
14566 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14567 # Instead, we relocate shared libraries at runtime.
14571 # Just because we use GCC doesn't mean we suddenly get shared libraries
14572 # on systems that don't support them.
14573 lt_prog_compiler_can_build_shared=no
14578 if test -d /usr/nec; then
14579 lt_prog_compiler_pic=-Kconform_pic
14584 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14585 # not for PA HP-UX.
14591 lt_prog_compiler_pic='-fPIC'
14597 lt_prog_compiler_pic='-fPIC'
14601 # PORTME Check for flag to pass linker flags through the system compiler.
14604 lt_prog_compiler_wl='-Wl,'
14605 if test "$host_cpu" = ia64; then
14606 # AIX 5 now supports IA64 processor
14607 lt_prog_compiler_static='-Bstatic'
14609 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14613 # PIC is the default on this platform
14614 # Common symbols not allowed in MH_DYLIB files
14615 case $cc_basename in
14617 lt_prog_compiler_pic='-qnocommon'
14618 lt_prog_compiler_wl='-Wl,'
14623 mingw* | pw32* | os2*)
14624 # This hack is so that the source file can tell whether it is being
14625 # built for inclusion in a dll (and should export symbols for example).
14626 lt_prog_compiler_pic='-DDLL_EXPORT'
14629 hpux9* | hpux10* | hpux11*)
14630 lt_prog_compiler_wl='-Wl,'
14631 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14632 # not for PA HP-UX.
14638 lt_prog_compiler_pic='+Z'
14641 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14642 lt_prog_compiler_static='${wl}-a ${wl}archive'
14645 irix5* | irix6* | nonstopux*)
14646 lt_prog_compiler_wl='-Wl,'
14647 # PIC (with -KPIC) is the default.
14648 lt_prog_compiler_static='-non_shared'
14652 lt_prog_compiler_pic='-KPIC'
14653 lt_prog_compiler_static='-Bstatic'
14657 case $cc_basename in
14659 lt_prog_compiler_wl='-Wl,'
14660 lt_prog_compiler_pic='-KPIC'
14661 lt_prog_compiler_static='-static'
14663 pgcc* | pgf77* | pgf90* | pgf95*)
14664 # Portland Group compilers (*not* the Pentium gcc compiler,
14665 # which looks to be a dead project)
14666 lt_prog_compiler_wl='-Wl,'
14667 lt_prog_compiler_pic='-fpic'
14668 lt_prog_compiler_static='-Bstatic'
14671 lt_prog_compiler_wl='-Wl,'
14672 # All Alpha code is PIC.
14673 lt_prog_compiler_static='-non_shared'
14678 osf3* | osf4* | osf5*)
14679 lt_prog_compiler_wl='-Wl,'
14680 # All OSF/1 code is PIC.
14681 lt_prog_compiler_static='-non_shared'
14685 lt_prog_compiler_pic='-KPIC'
14686 lt_prog_compiler_static='-Bstatic'
14687 case $cc_basename in
14688 f77* | f90* | f95*)
14689 lt_prog_compiler_wl='-Qoption ld ';;
14691 lt_prog_compiler_wl='-Wl,';;
14696 lt_prog_compiler_wl='-Qoption ld '
14697 lt_prog_compiler_pic='-PIC'
14698 lt_prog_compiler_static='-Bstatic'
14701 sysv4 | sysv4.2uw2* | sysv4.3*)
14702 lt_prog_compiler_wl='-Wl,'
14703 lt_prog_compiler_pic='-KPIC'
14704 lt_prog_compiler_static='-Bstatic'
14708 if test -d /usr/nec ;then
14709 lt_prog_compiler_pic='-Kconform_pic'
14710 lt_prog_compiler_static='-Bstatic'
14714 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14715 lt_prog_compiler_wl='-Wl,'
14716 lt_prog_compiler_pic='-KPIC'
14717 lt_prog_compiler_static='-Bstatic'
14721 lt_prog_compiler_wl='-Wl,'
14722 lt_prog_compiler_can_build_shared=no
14726 lt_prog_compiler_pic='-pic'
14727 lt_prog_compiler_static='-Bstatic'
14731 lt_prog_compiler_can_build_shared=no
14736 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14737 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14740 # Check to make sure the PIC flag actually works.
14742 if test -n "$lt_prog_compiler_pic"; then
14744 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14745 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14746 if test "${lt_prog_compiler_pic_works+set}" = set; then
14747 echo $ECHO_N "(cached) $ECHO_C" >&6
14749 lt_prog_compiler_pic_works=no
14750 ac_outfile=conftest.$ac_objext
14751 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14752 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14753 # Insert the option either (1) after the last *FLAGS variable, or
14754 # (2) before a word containing "conftest.", or (3) at the end.
14755 # Note that $ac_compile itself does not contain backslashes and begins
14756 # with a dollar sign (not a hyphen), so the echo should work correctly.
14757 # The option is referenced via a variable to avoid confusing sed.
14758 lt_compile=`echo "$ac_compile" | $SED \
14759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14761 -e 's:$: $lt_compiler_flag:'`
14762 (eval echo "\"\$as_me:14762: $lt_compile\"" >&5)
14763 (eval "$lt_compile" 2>conftest.err)
14765 cat conftest.err >&5
14766 echo "$as_me:14766: \$? = $ac_status" >&5
14767 if (exit $ac_status) && test -s "$ac_outfile"; then
14768 # The compiler can only warn and ignore the option if not recognized
14769 # So say no if there are warnings other than the usual output.
14770 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14771 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14772 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14773 lt_prog_compiler_pic_works=yes
14779 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14780 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14782 if test x"$lt_prog_compiler_pic_works" = xyes; then
14783 case $lt_prog_compiler_pic in
14785 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14788 lt_prog_compiler_pic=
14789 lt_prog_compiler_can_build_shared=no
14794 # For platforms which do not support PIC, -DPIC is meaningless:
14796 lt_prog_compiler_pic=
14799 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14804 # Check to make sure the static flag actually works.
14806 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14807 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14808 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14809 if test "${lt_prog_compiler_static_works+set}" = set; then
14810 echo $ECHO_N "(cached) $ECHO_C" >&6
14812 lt_prog_compiler_static_works=no
14813 save_LDFLAGS="$LDFLAGS"
14814 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14815 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14816 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14817 # The linker can only warn and ignore the option if not recognized
14818 # So say no if there are warnings
14819 if test -s conftest.err; then
14820 # Append any errors to the config.log.
14821 cat conftest.err 1>&5
14822 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14824 if diff conftest.exp conftest.er2 >/dev/null; then
14825 lt_prog_compiler_static_works=yes
14828 lt_prog_compiler_static_works=yes
14832 LDFLAGS="$save_LDFLAGS"
14835 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14836 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14838 if test x"$lt_prog_compiler_static_works" = xyes; then
14841 lt_prog_compiler_static=
14845 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14846 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14847 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14848 echo $ECHO_N "(cached) $ECHO_C" >&6
14850 lt_cv_prog_compiler_c_o=no
14851 $rm -r conftest 2>/dev/null
14855 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14857 lt_compiler_flag="-o out/conftest2.$ac_objext"
14858 # Insert the option either (1) after the last *FLAGS variable, or
14859 # (2) before a word containing "conftest.", or (3) at the end.
14860 # Note that $ac_compile itself does not contain backslashes and begins
14861 # with a dollar sign (not a hyphen), so the echo should work correctly.
14862 lt_compile=`echo "$ac_compile" | $SED \
14863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14865 -e 's:$: $lt_compiler_flag:'`
14866 (eval echo "\"\$as_me:14866: $lt_compile\"" >&5)
14867 (eval "$lt_compile" 2>out/conftest.err)
14869 cat out/conftest.err >&5
14870 echo "$as_me:14870: \$? = $ac_status" >&5
14871 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14873 # The compiler can only warn and ignore the option if not recognized
14874 # So say no if there are warnings
14875 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14876 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14877 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14878 lt_cv_prog_compiler_c_o=yes
14883 # SGI C++ compiler will create directory out/ii_files/ for
14884 # template instantiation
14885 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14886 $rm out/* && rmdir out
14892 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14893 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14896 hard_links="nottested"
14897 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14898 # do not overwrite the value of need_locks provided by the user
14899 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14900 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14903 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14905 ln conftest.a conftest.b 2>&5 || hard_links=no
14906 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14907 { echo "$as_me:$LINENO: result: $hard_links" >&5
14908 echo "${ECHO_T}$hard_links" >&6; }
14909 if test "$hard_links" = no; then
14910 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14911 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14918 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14919 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14922 allow_undefined_flag=
14923 enable_shared_with_static_runtimes=no
14925 archive_expsym_cmds=
14926 old_archive_From_new_cmds=
14927 old_archive_from_expsyms_cmds=
14928 export_dynamic_flag_spec=
14929 whole_archive_flag_spec=
14930 thread_safe_flag_spec=
14931 hardcode_libdir_flag_spec=
14932 hardcode_libdir_flag_spec_ld=
14933 hardcode_libdir_separator=
14935 hardcode_minus_L=no
14936 hardcode_shlibpath_var=unsupported
14937 link_all_deplibs=unknown
14938 hardcode_automatic=no
14940 module_expsym_cmds=
14941 always_export_symbols=no
14942 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14943 # include_expsyms should be a list of space-separated symbols to be *always*
14944 # included in the symbol list
14946 # exclude_expsyms can be an extended regexp of symbols to exclude
14947 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14948 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14949 # as well as any symbol that contains `d'.
14950 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14951 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14952 # platforms (ab)use it in PIC code, but their linkers get confused if
14953 # the symbol is explicitly referenced. Since portable code cannot
14954 # rely on this symbol name, it's probably fine to never include it in
14955 # preloaded symbol tables.
14956 extract_expsyms_cmds=
14957 # Just being paranoid about ensuring that cc_basename is set.
14958 for cc_temp in $compiler""; do
14960 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14961 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14966 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14969 cygwin* | mingw* | pw32*)
14970 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14971 # When not using gcc, we currently assume that we are using
14972 # Microsoft Visual C++.
14973 if test "$GCC" != yes; then
14978 # we just hope/assume this is gcc and not c89 (= MSVC++)
14987 if test "$with_gnu_ld" = yes; then
14988 # If archive_cmds runs LD, not CC, wlarc should be empty
14991 # Set some defaults for GNU ld with shared library support. These
14992 # are reset later if shared libraries are not supported. Putting them
14993 # here allows them to be overridden if necessary.
14994 runpath_var=LD_RUN_PATH
14995 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14996 export_dynamic_flag_spec='${wl}--export-dynamic'
14997 # ancient GNU ld didn't support --whole-archive et. al.
14998 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14999 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15001 whole_archive_flag_spec=
15003 supports_anon_versioning=no
15004 case `$LD -v 2>/dev/null` in
15005 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15006 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15007 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15008 *\ 2.11.*) ;; # other 2.11 versions
15009 *) supports_anon_versioning=yes ;;
15012 # See if GNU ld supports shared libraries.
15014 aix3* | aix4* | aix5*)
15015 # On AIX/PPC, the GNU linker is very broken
15016 if test "$host_cpu" != ia64; then
15020 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15021 *** to be unable to reliably create shared libraries on AIX.
15022 *** Therefore, libtool is disabling shared libraries support. If you
15023 *** really care for shared libraries, you may want to modify your PATH
15024 *** so that a non-GNU linker is found, and then restart.
15031 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)'
15032 hardcode_libdir_flag_spec='-L$libdir'
15033 hardcode_minus_L=yes
15035 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15036 # that the semantics of dynamic libraries on AmigaOS, at least up
15037 # to version 4, is to share data among multiple programs linked
15038 # with the same dynamic library. Since this doesn't match the
15039 # behavior of shared libraries on other platforms, we can't use
15045 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15046 allow_undefined_flag=unsupported
15047 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15048 # support --undefined. This deserves some investigation. FIXME
15049 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15055 cygwin* | mingw* | pw32*)
15056 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15057 # as there is no search path for DLLs.
15058 hardcode_libdir_flag_spec='-L$libdir'
15059 allow_undefined_flag=unsupported
15060 always_export_symbols=no
15061 enable_shared_with_static_runtimes=yes
15062 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15064 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15066 # If the export-symbols file already is a .def file (1st line
15067 # is EXPORTS), use it as is; otherwise, prepend...
15068 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15069 cp $export_symbols $output_objdir/$soname.def;
15071 echo EXPORTS > $output_objdir/$soname.def;
15072 cat $export_symbols >> $output_objdir/$soname.def;
15074 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15082 hardcode_shlibpath_var=no
15083 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15084 export_dynamic_flag_spec='${wl}-E'
15085 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15086 # Instead, shared libraries are loaded at an image base (0x10000000 by
15087 # default) and relocated if they conflict, which is a slow very memory
15088 # consuming and fragmenting process. To avoid this, we pick a random,
15089 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15090 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15091 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15092 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'
15096 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15098 case $cc_basename,$host_cpu in
15099 pgcc*) # Portland Group C compiler
15100 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'
15101 tmp_addflag=' $pic_flag'
15103 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15104 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15105 tmp_addflag=' $pic_flag -Mnomain' ;;
15106 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15107 tmp_addflag=' -i_dynamic' ;;
15108 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15109 tmp_addflag=' -i_dynamic -nofor_main' ;;
15110 ifc* | ifort*) # Intel Fortran compiler
15111 tmp_addflag=' -nofor_main' ;;
15113 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15115 if test $supports_anon_versioning = yes; then
15116 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15117 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15118 $echo "local: *; };" >> $output_objdir/$libname.ver~
15119 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15127 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15128 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15132 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15137 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15141 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15142 *** create shared libraries on Solaris systems. Therefore, libtool
15143 *** is disabling shared libraries support. We urge you to upgrade GNU
15144 *** binutils to release 2.9.1 or newer. Another option is to modify
15145 *** your PATH or compiler configuration so that the native linker is
15146 *** used, and then restart.
15149 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15151 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15158 case `$LD -v 2>&1` in
15159 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15163 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15164 *** reliably create shared libraries on SCO systems. Therefore, libtool
15165 *** is disabling shared libraries support. We urge you to upgrade GNU
15166 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15167 *** your PATH or compiler configuration so that the native linker is
15168 *** used, and then restart.
15173 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15174 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15176 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15185 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15187 hardcode_direct=yes
15188 hardcode_shlibpath_var=no
15192 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15194 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15201 if test "$ld_shlibs" = no; then
15203 hardcode_libdir_flag_spec=
15204 export_dynamic_flag_spec=
15205 whole_archive_flag_spec=
15208 # PORTME fill in a description of your system's linker (not GNU ld)
15211 allow_undefined_flag=unsupported
15212 always_export_symbols=yes
15213 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'
15214 # Note: this linker hardcodes the directories in LIBPATH if there
15215 # are no directories specified by -L.
15216 hardcode_minus_L=yes
15217 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15218 # Neither direct hardcoding nor static linking is supported with a
15220 hardcode_direct=unsupported
15225 if test "$host_cpu" = ia64; then
15226 # On IA64, the linker does run time linking by default, so we don't
15227 # have to do anything special.
15228 aix_use_runtimelinking=no
15229 exp_sym_flag='-Bexport'
15232 # If we're using GNU nm, then we don't want the "-C" option.
15233 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15234 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15235 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'
15237 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'
15239 aix_use_runtimelinking=no
15241 # Test if we are trying to use run time linking or normal
15242 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15243 # need to do runtime linking.
15244 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15245 for ld_flag in $LDFLAGS; do
15246 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15247 aix_use_runtimelinking=yes
15254 exp_sym_flag='-bexport'
15255 no_entry_flag='-bnoentry'
15258 # When large executables or shared objects are built, AIX ld can
15259 # have problems creating the table of contents. If linking a library
15260 # or program results in "error TOC overflow" add -mminimal-toc to
15261 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15262 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15265 hardcode_direct=yes
15266 hardcode_libdir_separator=':'
15267 link_all_deplibs=yes
15269 if test "$GCC" = yes; then
15270 case $host_os in aix4.[012]|aix4.[012].*)
15271 # We only want to do this on AIX 4.2 and lower, the check
15272 # below for broken collect2 doesn't work under 4.3+
15273 collect2name=`${CC} -print-prog-name=collect2`
15274 if test -f "$collect2name" && \
15275 strings "$collect2name" | grep resolve_lib_name >/dev/null
15277 # We have reworked collect2
15278 hardcode_direct=yes
15280 # We have old collect2
15281 hardcode_direct=unsupported
15282 # It fails to find uninstalled libraries when the uninstalled
15283 # path is not listed in the libpath. Setting hardcode_minus_L
15284 # to unsupported forces relinking
15285 hardcode_minus_L=yes
15286 hardcode_libdir_flag_spec='-L$libdir'
15287 hardcode_libdir_separator=
15291 shared_flag='-shared'
15292 if test "$aix_use_runtimelinking" = yes; then
15293 shared_flag="$shared_flag "'${wl}-G'
15297 if test "$host_cpu" = ia64; then
15298 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15299 # chokes on -Wl,-G. The following line is correct:
15302 if test "$aix_use_runtimelinking" = yes; then
15303 shared_flag='${wl}-G'
15305 shared_flag='${wl}-bM:SRE'
15310 # It seems that -bexpall does not export symbols beginning with
15311 # underscore (_), so it is better to generate a list of symbols to export.
15312 always_export_symbols=yes
15313 if test "$aix_use_runtimelinking" = yes; then
15314 # Warning - without using the other runtime loading flags (-brtl),
15315 # -berok will link without error, but may produce a broken library.
15316 allow_undefined_flag='-berok'
15317 # Determine the default libpath from the value encoded in an empty executable.
15318 cat >conftest.$ac_ext <<_ACEOF
15321 cat confdefs.h >>conftest.$ac_ext
15322 cat >>conftest.$ac_ext <<_ACEOF
15323 /* end confdefs.h. */
15333 rm -f conftest.$ac_objext conftest$ac_exeext
15334 if { (ac_try="$ac_link"
15335 case "(($ac_try" in
15336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15337 *) ac_try_echo=$ac_try;;
15339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15340 (eval "$ac_link") 2>conftest.er1
15342 grep -v '^ *+' conftest.er1 >conftest.err
15344 cat conftest.err >&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); } &&
15347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15348 { (case "(($ac_try" in
15349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350 *) ac_try_echo=$ac_try;;
15352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353 (eval "$ac_try") 2>&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; } &&
15357 { ac_try='test -s conftest$ac_exeext'
15358 { (case "(($ac_try" in
15359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15360 *) ac_try_echo=$ac_try;;
15362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15363 (eval "$ac_try") 2>&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); }; }; then
15368 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15370 # Check for a 64-bit object if we didn't find anything.
15371 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; }
15374 echo "$as_me: failed program was:" >&5
15375 sed 's/^/| /' conftest.$ac_ext >&5
15380 rm -f core conftest.err conftest.$ac_objext \
15381 conftest$ac_exeext conftest.$ac_ext
15382 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15384 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15385 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"
15387 if test "$host_cpu" = ia64; then
15388 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15389 allow_undefined_flag="-z nodefs"
15390 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"
15392 # Determine the default libpath from the value encoded in an empty executable.
15393 cat >conftest.$ac_ext <<_ACEOF
15396 cat confdefs.h >>conftest.$ac_ext
15397 cat >>conftest.$ac_ext <<_ACEOF
15398 /* end confdefs.h. */
15408 rm -f conftest.$ac_objext conftest$ac_exeext
15409 if { (ac_try="$ac_link"
15410 case "(($ac_try" in
15411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412 *) ac_try_echo=$ac_try;;
15414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415 (eval "$ac_link") 2>conftest.er1
15417 grep -v '^ *+' conftest.er1 >conftest.err
15419 cat conftest.err >&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); } &&
15422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15423 { (case "(($ac_try" in
15424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15425 *) ac_try_echo=$ac_try;;
15427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15428 (eval "$ac_try") 2>&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; } &&
15432 { ac_try='test -s conftest$ac_exeext'
15433 { (case "(($ac_try" in
15434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15435 *) ac_try_echo=$ac_try;;
15437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15438 (eval "$ac_try") 2>&5
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; }; then
15443 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15445 # Check for a 64-bit object if we didn't find anything.
15446 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; }
15449 echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15455 rm -f core conftest.err conftest.$ac_objext \
15456 conftest$ac_exeext conftest.$ac_ext
15457 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15459 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15460 # Warning - without using the other run time loading flags,
15461 # -berok will link without error, but may produce a broken library.
15462 no_undefined_flag=' ${wl}-bernotok'
15463 allow_undefined_flag=' ${wl}-berok'
15464 # Exported symbols can be pulled into shared objects from archives
15465 whole_archive_flag_spec='$convenience'
15466 archive_cmds_need_lc=yes
15467 # This is similar to how AIX traditionally builds its shared libraries.
15468 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'
15474 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)'
15475 hardcode_libdir_flag_spec='-L$libdir'
15476 hardcode_minus_L=yes
15477 # see comment about different semantics on the GNU ld section
15482 export_dynamic_flag_spec=-rdynamic
15485 cygwin* | mingw* | pw32*)
15486 # When not using gcc, we currently assume that we are using
15487 # Microsoft Visual C++.
15488 # hardcode_libdir_flag_spec is actually meaningless, as there is
15489 # no search path for DLLs.
15490 hardcode_libdir_flag_spec=' '
15491 allow_undefined_flag=unsupported
15492 # Tell ltmain to make .lib files, not .a files.
15494 # Tell ltmain to make .dll files, not .so files.
15496 # FIXME: Setting linknames here is a bad hack.
15497 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15498 # The linker will automatically build a .lib file if we build a DLL.
15499 old_archive_From_new_cmds='true'
15500 # FIXME: Should let the user specify the lib program.
15501 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15502 fix_srcfile_path='`cygpath -w "$srcfile"`'
15503 enable_shared_with_static_runtimes=yes
15506 darwin* | rhapsody*)
15508 rhapsody* | darwin1.[012])
15509 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15512 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15513 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15515 case ${MACOSX_DEPLOYMENT_TARGET} in
15517 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15520 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15526 archive_cmds_need_lc=no
15528 hardcode_automatic=yes
15529 hardcode_shlibpath_var=unsupported
15530 whole_archive_flag_spec=''
15531 link_all_deplibs=yes
15532 if test "$GCC" = yes ; then
15533 output_verbose_link_cmd='echo'
15534 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15535 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15536 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15537 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}'
15538 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}'
15540 case $cc_basename in
15542 output_verbose_link_cmd='echo'
15543 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15544 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15545 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15546 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}'
15547 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}'
15557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15558 hardcode_libdir_flag_spec='-L$libdir'
15559 hardcode_shlibpath_var=no
15566 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15567 # support. Future versions do this automatically, but an explicit c++rt0.o
15568 # does not break anything, and helps significantly (at the cost of a little
15571 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15572 hardcode_libdir_flag_spec='-R$libdir'
15573 hardcode_direct=yes
15574 hardcode_shlibpath_var=no
15577 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15579 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15580 hardcode_direct=yes
15581 hardcode_minus_L=yes
15582 hardcode_shlibpath_var=no
15585 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15586 freebsd* | kfreebsd*-gnu | dragonfly*)
15587 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15588 hardcode_libdir_flag_spec='-R$libdir'
15589 hardcode_direct=yes
15590 hardcode_shlibpath_var=no
15594 if test "$GCC" = yes; then
15595 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'
15597 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'
15599 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15600 hardcode_libdir_separator=:
15601 hardcode_direct=yes
15603 # hardcode_minus_L: Not really in the search PATH,
15604 # but as the default location of the library.
15605 hardcode_minus_L=yes
15606 export_dynamic_flag_spec='${wl}-E'
15610 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15611 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15613 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15615 if test "$with_gnu_ld" = no; then
15616 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15617 hardcode_libdir_separator=:
15619 hardcode_direct=yes
15620 export_dynamic_flag_spec='${wl}-E'
15622 # hardcode_minus_L: Not really in the search PATH,
15623 # but as the default location of the library.
15624 hardcode_minus_L=yes
15629 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15632 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15635 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15638 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15644 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15647 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15650 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15654 if test "$with_gnu_ld" = no; then
15655 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15656 hardcode_libdir_separator=:
15660 hardcode_libdir_flag_spec_ld='+b $libdir'
15662 hardcode_shlibpath_var=no
15665 hardcode_direct=yes
15666 export_dynamic_flag_spec='${wl}-E'
15668 # hardcode_minus_L: Not really in the search PATH,
15669 # but as the default location of the library.
15670 hardcode_minus_L=yes
15676 irix5* | irix6* | nonstopux*)
15677 if test "$GCC" = yes; then
15678 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'
15680 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'
15681 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15683 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15684 hardcode_libdir_separator=:
15685 link_all_deplibs=yes
15689 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15690 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15692 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15694 hardcode_libdir_flag_spec='-R$libdir'
15695 hardcode_direct=yes
15696 hardcode_shlibpath_var=no
15700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15701 hardcode_direct=yes
15702 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15703 hardcode_libdir_separator=:
15704 hardcode_shlibpath_var=no
15708 hardcode_direct=yes
15709 hardcode_shlibpath_var=no
15710 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15711 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15712 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15713 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15714 export_dynamic_flag_spec='${wl}-E'
15717 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15718 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15719 hardcode_libdir_flag_spec='-R$libdir'
15722 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15723 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15730 hardcode_libdir_flag_spec='-L$libdir'
15731 hardcode_minus_L=yes
15732 allow_undefined_flag=unsupported
15733 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'
15734 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15738 if test "$GCC" = yes; then
15739 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15740 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'
15742 allow_undefined_flag=' -expect_unresolved \*'
15743 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'
15745 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15746 hardcode_libdir_separator=:
15749 osf4* | osf5*) # as osf3* with the addition of -msym flag
15750 if test "$GCC" = yes; then
15751 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15752 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'
15753 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15755 allow_undefined_flag=' -expect_unresolved \*'
15756 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'
15757 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15758 $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'
15760 # Both c and cxx compiler support -rpath directly
15761 hardcode_libdir_flag_spec='-rpath $libdir'
15763 hardcode_libdir_separator=:
15767 no_undefined_flag=' -z text'
15768 if test "$GCC" = yes; then
15770 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15771 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15772 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15775 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15776 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15777 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15779 hardcode_libdir_flag_spec='-R$libdir'
15780 hardcode_shlibpath_var=no
15782 solaris2.[0-5] | solaris2.[0-5].*) ;;
15784 # The compiler driver will combine linker options so we
15785 # cannot just pass the convience library names through
15786 # without $wl, iff we do not link with $LD.
15787 # Luckily, gcc supports the same syntax we need for Sun Studio.
15788 # Supported since Solaris 2.6 (maybe 2.5.1?)
15791 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15793 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' ;;
15796 link_all_deplibs=yes
15800 if test "x$host_vendor" = xsequent; then
15801 # Use $CC to link under sequent, because it throws in some extra .o
15802 # files that make .init and .fini sections work.
15803 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15805 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15807 hardcode_libdir_flag_spec='-L$libdir'
15808 hardcode_direct=yes
15809 hardcode_minus_L=yes
15810 hardcode_shlibpath_var=no
15814 case $host_vendor in
15816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15817 hardcode_direct=yes # is this really true???
15820 ## LD is ld it makes a PLAMLIB
15821 ## CC just makes a GrossModule.
15822 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15823 reload_cmds='$CC -r -o $output$reload_objs'
15827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15828 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15831 runpath_var='LD_RUN_PATH'
15832 hardcode_shlibpath_var=no
15836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15837 hardcode_shlibpath_var=no
15838 export_dynamic_flag_spec='-Bexport'
15842 if test -d /usr/nec; then
15843 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15844 hardcode_shlibpath_var=no
15845 runpath_var=LD_RUN_PATH
15846 hardcode_runpath_var=yes
15851 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15852 no_undefined_flag='${wl}-z,text'
15853 archive_cmds_need_lc=no
15854 hardcode_shlibpath_var=no
15855 runpath_var='LD_RUN_PATH'
15857 if test "$GCC" = yes; then
15858 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15859 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15861 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15862 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15866 sysv5* | sco3.2v5* | sco5v6*)
15867 # Note: We can NOT use -z defs as we might desire, because we do not
15868 # link with -lc, and that would cause any symbols used from libc to
15869 # always be unresolved, which means just about no library would
15870 # ever link correctly. If we're not using GNU ld we use -z text
15871 # though, which does catch some bad symbols but isn't as heavy-handed
15873 no_undefined_flag='${wl}-z,text'
15874 allow_undefined_flag='${wl}-z,nodefs'
15875 archive_cmds_need_lc=no
15876 hardcode_shlibpath_var=no
15877 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15878 hardcode_libdir_separator=':'
15879 link_all_deplibs=yes
15880 export_dynamic_flag_spec='${wl}-Bexport'
15881 runpath_var='LD_RUN_PATH'
15883 if test "$GCC" = yes; then
15884 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15885 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15887 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15888 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15894 hardcode_libdir_flag_spec='-L$libdir'
15895 hardcode_shlibpath_var=no
15904 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15905 echo "${ECHO_T}$ld_shlibs" >&6; }
15906 test "$ld_shlibs" = no && can_build_shared=no
15909 # Do we need to explicitly link libc?
15911 case "x$archive_cmds_need_lc" in
15913 # Assume -lc should be added
15914 archive_cmds_need_lc=yes
15916 if test "$enable_shared" = yes && test "$GCC" = yes; then
15917 case $archive_cmds in
15919 # FIXME: we may have to deal with multi-command sequences.
15922 # Test whether the compiler implicitly links with -lc since on some
15923 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15924 # to ld, don't add -lc before -lgcc.
15925 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15926 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15928 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15931 (eval $ac_compile) 2>&5
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); } 2>conftest.err; then
15937 libobjs=conftest.$ac_objext
15939 wl=$lt_prog_compiler_wl
15940 pic_flag=$lt_prog_compiler_pic
15946 lt_save_allow_undefined_flag=$allow_undefined_flag
15947 allow_undefined_flag=
15948 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15949 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }
15954 archive_cmds_need_lc=no
15956 archive_cmds_need_lc=yes
15958 allow_undefined_flag=$lt_save_allow_undefined_flag
15960 cat conftest.err 1>&5
15963 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15964 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15971 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15972 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15973 library_names_spec=
15974 libname_spec='lib$name'
15978 postuninstall_cmds=
15982 shlibpath_overrides_runpath=unknown
15984 dynamic_linker="$host_os ld.so"
15985 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15986 if test "$GCC" = yes; then
15987 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15988 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15989 # if the path contains ";" then we assume it to be the separator
15990 # otherwise default to the standard path separator (i.e. ":") - it is
15991 # assumed that no part of a normal pathname contains ";" but that should
15992 # okay in the real world where ";" in dirpaths is itself problematic.
15993 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15998 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16000 need_lib_prefix=unknown
16001 hardcode_into_libs=no
16003 # when you set need_version to no, make sure it does not cause -set_version
16004 # flags to be left without arguments
16005 need_version=unknown
16010 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16011 shlibpath_var=LIBPATH
16013 # AIX 3 has no versioning support, so we append a major version to the name.
16014 soname_spec='${libname}${release}${shared_ext}$major'
16021 hardcode_into_libs=yes
16022 if test "$host_cpu" = ia64; then
16023 # AIX 5 supports IA64
16024 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16025 shlibpath_var=LD_LIBRARY_PATH
16027 # With GCC up to 2.95.x, collect2 would create an import file
16028 # for dependence libraries. The import file would start with
16029 # the line `#! .'. This would cause the generated library to
16030 # depend on `.', always an invalid library. This was fixed in
16031 # development snapshots of GCC prior to 3.0.
16033 aix4 | aix4.[01] | aix4.[01].*)
16034 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16036 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16039 can_build_shared=no
16043 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16044 # soname into executable. Probably we can add versioning support to
16045 # collect2, so additional links can be useful in future.
16046 if test "$aix_use_runtimelinking" = yes; then
16047 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16048 # instead of lib<name>.a to let people know that these are not
16049 # typical AIX shared libraries.
16050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16052 # We preserve .a as extension for shared libraries through AIX4.2
16053 # and later when we are not doing run time linking.
16054 library_names_spec='${libname}${release}.a $libname.a'
16055 soname_spec='${libname}${release}${shared_ext}$major'
16057 shlibpath_var=LIBPATH
16062 library_names_spec='$libname.ixlibrary $libname.a'
16063 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16064 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'
16068 library_names_spec='${libname}${shared_ext}'
16069 dynamic_linker="$host_os ld.so"
16070 shlibpath_var=LIBRARY_PATH
16076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16077 soname_spec='${libname}${release}${shared_ext}$major'
16078 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16079 shlibpath_var=LD_LIBRARY_PATH
16080 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16081 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16082 # the default ld.so.conf also contains /usr/contrib/lib and
16083 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16084 # libtool to hard-code these into programs
16087 cygwin* | mingw* | pw32*)
16088 version_type=windows
16093 case $GCC,$host_os in
16094 yes,cygwin* | yes,mingw* | yes,pw32*)
16095 library_names_spec='$libname.dll.a'
16096 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16097 postinstall_cmds='base_file=`basename \${file}`~
16098 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16099 dldir=$destdir/`dirname \$dlpath`~
16100 test -d \$dldir || mkdir -p \$dldir~
16101 $install_prog $dir/$dlname \$dldir/$dlname~
16102 chmod a+x \$dldir/$dlname'
16103 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16104 dlpath=$dir/\$dldll~
16106 shlibpath_overrides_runpath=yes
16110 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16111 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16112 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16115 # MinGW DLLs use traditional 'lib' prefix
16116 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16117 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16118 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16119 # It is most probably a Windows format PATH printed by
16120 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16121 # path with ; separators, and with drive letters. We can handle the
16122 # drive letters (cygwin fileutils understands them), so leave them,
16123 # especially as we might pass files found there to a mingw objdump,
16124 # which wouldn't understand a cygwinified path. Ahh.
16125 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16131 # pw32 DLLs use 'pw' prefix rather than 'lib'
16132 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16138 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16141 dynamic_linker='Win32 ld.exe'
16142 # FIXME: first we should search . and the directory the executable is in
16146 darwin* | rhapsody*)
16147 dynamic_linker="$host_os dyld"
16148 version_type=darwin
16151 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16152 soname_spec='${libname}${release}${major}$shared_ext'
16153 shlibpath_overrides_runpath=yes
16154 shlibpath_var=DYLD_LIBRARY_PATH
16155 shrext_cmds='.dylib'
16156 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16157 if test "$GCC" = yes; then
16158 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"`
16160 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16162 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16170 soname_spec='${libname}${release}${shared_ext}$major'
16171 shlibpath_var=LD_LIBRARY_PATH
16182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16183 soname_spec='${libname}${release}${shared_ext}$major'
16184 shlibpath_var=LD_LIBRARY_PATH
16185 shlibpath_overrides_runpath=no
16186 hardcode_into_libs=yes
16187 dynamic_linker='GNU ld.so'
16190 freebsd* | dragonfly*)
16191 # DragonFly does not have aout. When/if they implement a new
16192 # versioning mechanism, adjust this.
16193 if test -x /usr/bin/objformat; then
16194 objformat=`/usr/bin/objformat`
16197 freebsd[123]*) objformat=aout ;;
16198 *) objformat=elf ;;
16201 version_type=freebsd-$objformat
16202 case $version_type in
16204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16209 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16213 shlibpath_var=LD_LIBRARY_PATH
16216 shlibpath_overrides_runpath=yes
16218 freebsd3.[01]* | freebsdelf3.[01]*)
16219 shlibpath_overrides_runpath=yes
16220 hardcode_into_libs=yes
16222 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16223 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16224 shlibpath_overrides_runpath=no
16225 hardcode_into_libs=yes
16227 freebsd*) # from 4.6 on
16228 shlibpath_overrides_runpath=yes
16229 hardcode_into_libs=yes
16238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16239 soname_spec='${libname}${release}${shared_ext}$major'
16240 shlibpath_var=LD_LIBRARY_PATH
16241 hardcode_into_libs=yes
16244 hpux9* | hpux10* | hpux11*)
16245 # Give a soname corresponding to the major version so that dld.sl refuses to
16246 # link against other versions.
16253 hardcode_into_libs=yes
16254 dynamic_linker="$host_os dld.so"
16255 shlibpath_var=LD_LIBRARY_PATH
16256 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16258 soname_spec='${libname}${release}${shared_ext}$major'
16259 if test "X$HPUX_IA64_MODE" = X32; then
16260 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16262 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16264 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16268 hardcode_into_libs=yes
16269 dynamic_linker="$host_os dld.sl"
16270 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16271 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16273 soname_spec='${libname}${release}${shared_ext}$major'
16274 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16275 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16279 dynamic_linker="$host_os dld.sl"
16280 shlibpath_var=SHLIB_PATH
16281 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16283 soname_spec='${libname}${release}${shared_ext}$major'
16286 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16287 postinstall_cmds='chmod 555 $lib'
16294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16295 soname_spec='${libname}${release}${shared_ext}$major'
16296 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16297 shlibpath_var=LD_LIBRARY_PATH
16298 shlibpath_overrides_runpath=no
16299 hardcode_into_libs=yes
16302 irix5* | irix6* | nonstopux*)
16304 nonstopux*) version_type=nonstopux ;;
16306 if test "$lt_cv_prog_gnu_ld" = yes; then
16314 soname_spec='${libname}${release}${shared_ext}$major'
16315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16317 irix5* | nonstopux*)
16318 libsuff= shlibsuff=
16321 case $LD in # libtool.m4 will add one of these switches to LD
16322 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16323 libsuff= shlibsuff= libmagic=32-bit;;
16324 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16325 libsuff=32 shlibsuff=N32 libmagic=N32;;
16326 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16327 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16328 *) libsuff= shlibsuff= libmagic=never-match;;
16332 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16333 shlibpath_overrides_runpath=no
16334 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16335 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16336 hardcode_into_libs=yes
16339 # No shared lib support for Linux oldld, aout, or coff.
16340 linux*oldld* | linux*aout* | linux*coff*)
16344 # This must be Linux ELF.
16349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16350 soname_spec='${libname}${release}${shared_ext}$major'
16351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16352 shlibpath_var=LD_LIBRARY_PATH
16353 shlibpath_overrides_runpath=no
16354 # This implies no fast_install, which is unacceptable.
16355 # Some rework will be needed to allow for fast_install
16356 # before this can be enabled.
16357 hardcode_into_libs=yes
16359 # Append ld.so.conf contents to the search path
16360 if test -f /etc/ld.so.conf; then
16361 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' ' '`
16362 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16365 # We used to test for /lib/ld.so.1 and disable shared libraries on
16366 # powerpc, because MkLinux only supported shared libraries with the
16367 # GNU dynamic linker. Since this was broken with cross compilers,
16368 # most powerpc-linux boxes support dynamic linking these days and
16369 # people can always --disable-shared, the test was removed, and we
16370 # assume the GNU/Linux dynamic linker is in use.
16371 dynamic_linker='GNU/Linux ld.so'
16378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16379 soname_spec='${libname}${release}${shared_ext}$major'
16380 shlibpath_var=LD_LIBRARY_PATH
16381 shlibpath_overrides_runpath=no
16382 hardcode_into_libs=yes
16383 dynamic_linker='GNU ld.so'
16390 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16392 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16393 dynamic_linker='NetBSD (a.out) ld.so'
16395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16396 soname_spec='${libname}${release}${shared_ext}$major'
16397 dynamic_linker='NetBSD ld.elf_so'
16399 shlibpath_var=LD_LIBRARY_PATH
16400 shlibpath_overrides_runpath=yes
16401 hardcode_into_libs=yes
16406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16407 shlibpath_var=LD_LIBRARY_PATH
16408 shlibpath_overrides_runpath=yes
16415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16416 soname_spec='${libname}${release}${shared_ext}$major'
16417 shlibpath_var=LD_LIBRARY_PATH
16418 shlibpath_overrides_runpath=yes
16423 sys_lib_dlsearch_path_spec="/usr/lib"
16425 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16427 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16428 *) need_version=no ;;
16430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16432 shlibpath_var=LD_LIBRARY_PATH
16433 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16435 openbsd2.[89] | openbsd2.[89].*)
16436 shlibpath_overrides_runpath=no
16439 shlibpath_overrides_runpath=yes
16443 shlibpath_overrides_runpath=yes
16448 libname_spec='$name'
16451 library_names_spec='$libname${shared_ext} $libname.a'
16452 dynamic_linker='OS/2 ld.exe'
16453 shlibpath_var=LIBPATH
16456 osf3* | osf4* | osf5*)
16460 soname_spec='${libname}${release}${shared_ext}$major'
16461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16462 shlibpath_var=LD_LIBRARY_PATH
16463 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16464 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16472 soname_spec='${libname}${release}${shared_ext}$major'
16473 shlibpath_var=LD_LIBRARY_PATH
16474 shlibpath_overrides_runpath=yes
16475 hardcode_into_libs=yes
16476 # ldd complains unless libraries are executable
16477 postinstall_cmds='chmod +x $lib'
16482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16483 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16484 shlibpath_var=LD_LIBRARY_PATH
16485 shlibpath_overrides_runpath=yes
16486 if test "$with_gnu_ld" = yes; then
16494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16495 soname_spec='${libname}${release}${shared_ext}$major'
16496 shlibpath_var=LD_LIBRARY_PATH
16497 case $host_vendor in
16499 shlibpath_overrides_runpath=no
16501 export_dynamic_flag_spec='${wl}-Blargedynsym'
16502 runpath_var=LD_RUN_PATH
16510 shlibpath_overrides_runpath=no
16511 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16517 if test -d /usr/nec ;then
16519 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16520 soname_spec='$libname${shared_ext}.$major'
16521 shlibpath_var=LD_LIBRARY_PATH
16525 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16526 version_type=freebsd-elf
16529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16530 soname_spec='${libname}${release}${shared_ext}$major'
16531 shlibpath_var=LD_LIBRARY_PATH
16532 hardcode_into_libs=yes
16533 if test "$with_gnu_ld" = yes; then
16534 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16535 shlibpath_overrides_runpath=no
16537 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16538 shlibpath_overrides_runpath=yes
16541 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16545 sys_lib_dlsearch_path_spec='/usr/lib'
16550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16551 soname_spec='${libname}${release}${shared_ext}$major'
16552 shlibpath_var=LD_LIBRARY_PATH
16559 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16560 echo "${ECHO_T}$dynamic_linker" >&6; }
16561 test "$dynamic_linker" = no && can_build_shared=no
16563 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16564 if test "$GCC" = yes; then
16565 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16568 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16569 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16571 if test -n "$hardcode_libdir_flag_spec" || \
16572 test -n "$runpath_var" || \
16573 test "X$hardcode_automatic" = "Xyes" ; then
16575 # We can hardcode non-existant directories.
16576 if test "$hardcode_direct" != no &&
16577 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16578 # have to relink, otherwise we might link with an installed library
16579 # when we should be linking with a yet-to-be-installed one
16580 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16581 test "$hardcode_minus_L" != no; then
16582 # Linking always hardcodes the temporary library directory.
16583 hardcode_action=relink
16585 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16586 hardcode_action=immediate
16589 # We cannot hardcode anything, or else we can only hardcode existing
16591 hardcode_action=unsupported
16593 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16594 echo "${ECHO_T}$hardcode_action" >&6; }
16596 if test "$hardcode_action" = relink; then
16597 # Fast installation is not supported
16598 enable_fast_install=no
16599 elif test "$shlibpath_overrides_runpath" = yes ||
16600 test "$enable_shared" = no; then
16601 # Fast installation is not necessary
16602 enable_fast_install=needless
16607 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16608 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16609 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16610 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16611 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16612 { echo "$as_me:$LINENO: result: yes" >&5
16613 echo "${ECHO_T}yes" >&6; }
16615 # FIXME - insert some real tests, host_os isn't really good enough
16618 if test -n "$STRIP" ; then
16619 striplib="$STRIP -x"
16620 { echo "$as_me:$LINENO: result: yes" >&5
16621 echo "${ECHO_T}yes" >&6; }
16623 { echo "$as_me:$LINENO: result: no" >&5
16624 echo "${ECHO_T}no" >&6; }
16628 { echo "$as_me:$LINENO: result: no" >&5
16629 echo "${ECHO_T}no" >&6; }
16634 if test "x$enable_dlopen" != xyes; then
16635 enable_dlopen=unknown
16636 enable_dlopen_self=unknown
16637 enable_dlopen_self_static=unknown
16644 lt_cv_dlopen="load_add_on"
16646 lt_cv_dlopen_self=yes
16650 lt_cv_dlopen="LoadLibrary"
16655 lt_cv_dlopen="dlopen"
16660 # if libdl is installed we need to link against it
16661 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16662 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16663 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16664 echo $ECHO_N "(cached) $ECHO_C" >&6
16666 ac_check_lib_save_LIBS=$LIBS
16668 cat >conftest.$ac_ext <<_ACEOF
16671 cat confdefs.h >>conftest.$ac_ext
16672 cat >>conftest.$ac_ext <<_ACEOF
16673 /* end confdefs.h. */
16675 /* Override any GCC internal prototype to avoid an error.
16676 Use char because int might match the return type of a GCC
16677 builtin and then its argument prototype would still apply. */
16690 rm -f conftest.$ac_objext conftest$ac_exeext
16691 if { (ac_try="$ac_link"
16692 case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697 (eval "$ac_link") 2>conftest.er1
16699 grep -v '^ *+' conftest.er1 >conftest.err
16701 cat conftest.err >&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } &&
16704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16705 { (case "(($ac_try" in
16706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707 *) ac_try_echo=$ac_try;;
16709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710 (eval "$ac_try") 2>&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; } &&
16714 { ac_try='test -s conftest$ac_exeext'
16715 { (case "(($ac_try" in
16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717 *) ac_try_echo=$ac_try;;
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_try") 2>&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 ac_cv_lib_dl_dlopen=yes
16726 echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16729 ac_cv_lib_dl_dlopen=no
16732 rm -f core conftest.err conftest.$ac_objext \
16733 conftest$ac_exeext conftest.$ac_ext
16734 LIBS=$ac_check_lib_save_LIBS
16736 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16737 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16738 if test $ac_cv_lib_dl_dlopen = yes; then
16739 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16742 lt_cv_dlopen="dyld"
16744 lt_cv_dlopen_self=yes
16751 { echo "$as_me:$LINENO: checking for shl_load" >&5
16752 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16753 if test "${ac_cv_func_shl_load+set}" = set; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16756 cat >conftest.$ac_ext <<_ACEOF
16759 cat confdefs.h >>conftest.$ac_ext
16760 cat >>conftest.$ac_ext <<_ACEOF
16761 /* end confdefs.h. */
16762 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16764 #define shl_load innocuous_shl_load
16766 /* System header to define __stub macros and hopefully few prototypes,
16767 which can conflict with char shl_load (); below.
16768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16769 <limits.h> exists even on freestanding compilers. */
16772 # include <limits.h>
16774 # include <assert.h>
16779 /* Override any GCC internal prototype to avoid an error.
16780 Use char because int might match the return type of a GCC
16781 builtin and then its argument prototype would still apply. */
16786 /* The GNU C library defines this for functions which it implements
16787 to always fail with ENOSYS. Some functions are actually named
16788 something starting with __ and the normal name is an alias. */
16789 #if defined __stub_shl_load || defined __stub___shl_load
16796 return shl_load ();
16801 rm -f conftest.$ac_objext conftest$ac_exeext
16802 if { (ac_try="$ac_link"
16803 case "(($ac_try" in
16804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805 *) ac_try_echo=$ac_try;;
16807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808 (eval "$ac_link") 2>conftest.er1
16810 grep -v '^ *+' conftest.er1 >conftest.err
16812 cat conftest.err >&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); } &&
16815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16816 { (case "(($ac_try" in
16817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16818 *) ac_try_echo=$ac_try;;
16820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16821 (eval "$ac_try") 2>&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); }; } &&
16825 { ac_try='test -s conftest$ac_exeext'
16826 { (case "(($ac_try" in
16827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16828 *) ac_try_echo=$ac_try;;
16830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16831 (eval "$ac_try") 2>&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; }; then
16835 ac_cv_func_shl_load=yes
16837 echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16840 ac_cv_func_shl_load=no
16843 rm -f core conftest.err conftest.$ac_objext \
16844 conftest$ac_exeext conftest.$ac_ext
16846 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16847 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16848 if test $ac_cv_func_shl_load = yes; then
16849 lt_cv_dlopen="shl_load"
16851 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16852 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16853 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16854 echo $ECHO_N "(cached) $ECHO_C" >&6
16856 ac_check_lib_save_LIBS=$LIBS
16858 cat >conftest.$ac_ext <<_ACEOF
16861 cat confdefs.h >>conftest.$ac_ext
16862 cat >>conftest.$ac_ext <<_ACEOF
16863 /* end confdefs.h. */
16865 /* Override any GCC internal prototype to avoid an error.
16866 Use char because int might match the return type of a GCC
16867 builtin and then its argument prototype would still apply. */
16875 return shl_load ();
16880 rm -f conftest.$ac_objext conftest$ac_exeext
16881 if { (ac_try="$ac_link"
16882 case "(($ac_try" in
16883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884 *) ac_try_echo=$ac_try;;
16886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887 (eval "$ac_link") 2>conftest.er1
16889 grep -v '^ *+' conftest.er1 >conftest.err
16891 cat conftest.err >&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); } &&
16894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16895 { (case "(($ac_try" in
16896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897 *) ac_try_echo=$ac_try;;
16899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900 (eval "$ac_try") 2>&5
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); }; } &&
16904 { ac_try='test -s conftest$ac_exeext'
16905 { (case "(($ac_try" in
16906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907 *) ac_try_echo=$ac_try;;
16909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910 (eval "$ac_try") 2>&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; }; then
16914 ac_cv_lib_dld_shl_load=yes
16916 echo "$as_me: failed program was:" >&5
16917 sed 's/^/| /' conftest.$ac_ext >&5
16919 ac_cv_lib_dld_shl_load=no
16922 rm -f core conftest.err conftest.$ac_objext \
16923 conftest$ac_exeext conftest.$ac_ext
16924 LIBS=$ac_check_lib_save_LIBS
16926 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16927 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16928 if test $ac_cv_lib_dld_shl_load = yes; then
16929 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16931 { echo "$as_me:$LINENO: checking for dlopen" >&5
16932 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16933 if test "${ac_cv_func_dlopen+set}" = set; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16936 cat >conftest.$ac_ext <<_ACEOF
16939 cat confdefs.h >>conftest.$ac_ext
16940 cat >>conftest.$ac_ext <<_ACEOF
16941 /* end confdefs.h. */
16942 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16944 #define dlopen innocuous_dlopen
16946 /* System header to define __stub macros and hopefully few prototypes,
16947 which can conflict with char dlopen (); below.
16948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16949 <limits.h> exists even on freestanding compilers. */
16952 # include <limits.h>
16954 # include <assert.h>
16959 /* Override any GCC internal prototype to avoid an error.
16960 Use char because int might match the return type of a GCC
16961 builtin and then its argument prototype would still apply. */
16966 /* The GNU C library defines this for functions which it implements
16967 to always fail with ENOSYS. Some functions are actually named
16968 something starting with __ and the normal name is an alias. */
16969 #if defined __stub_dlopen || defined __stub___dlopen
16981 rm -f conftest.$ac_objext conftest$ac_exeext
16982 if { (ac_try="$ac_link"
16983 case "(($ac_try" in
16984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985 *) ac_try_echo=$ac_try;;
16987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988 (eval "$ac_link") 2>conftest.er1
16990 grep -v '^ *+' conftest.er1 >conftest.err
16992 cat conftest.err >&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); } &&
16995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16996 { (case "(($ac_try" in
16997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998 *) ac_try_echo=$ac_try;;
17000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17001 (eval "$ac_try") 2>&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; } &&
17005 { ac_try='test -s conftest$ac_exeext'
17006 { (case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_try") 2>&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; }; then
17015 ac_cv_func_dlopen=yes
17017 echo "$as_me: failed program was:" >&5
17018 sed 's/^/| /' conftest.$ac_ext >&5
17020 ac_cv_func_dlopen=no
17023 rm -f core conftest.err conftest.$ac_objext \
17024 conftest$ac_exeext conftest.$ac_ext
17026 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17027 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17028 if test $ac_cv_func_dlopen = yes; then
17029 lt_cv_dlopen="dlopen"
17031 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17032 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17033 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17034 echo $ECHO_N "(cached) $ECHO_C" >&6
17036 ac_check_lib_save_LIBS=$LIBS
17038 cat >conftest.$ac_ext <<_ACEOF
17041 cat confdefs.h >>conftest.$ac_ext
17042 cat >>conftest.$ac_ext <<_ACEOF
17043 /* end confdefs.h. */
17045 /* Override any GCC internal prototype to avoid an error.
17046 Use char because int might match the return type of a GCC
17047 builtin and then its argument prototype would still apply. */
17060 rm -f conftest.$ac_objext conftest$ac_exeext
17061 if { (ac_try="$ac_link"
17062 case "(($ac_try" in
17063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064 *) ac_try_echo=$ac_try;;
17066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17067 (eval "$ac_link") 2>conftest.er1
17069 grep -v '^ *+' conftest.er1 >conftest.err
17071 cat conftest.err >&5
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); } &&
17074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17075 { (case "(($ac_try" in
17076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17077 *) ac_try_echo=$ac_try;;
17079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17080 (eval "$ac_try") 2>&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); }; } &&
17084 { ac_try='test -s conftest$ac_exeext'
17085 { (case "(($ac_try" in
17086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17087 *) ac_try_echo=$ac_try;;
17089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17090 (eval "$ac_try") 2>&5
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); }; }; then
17094 ac_cv_lib_dl_dlopen=yes
17096 echo "$as_me: failed program was:" >&5
17097 sed 's/^/| /' conftest.$ac_ext >&5
17099 ac_cv_lib_dl_dlopen=no
17102 rm -f core conftest.err conftest.$ac_objext \
17103 conftest$ac_exeext conftest.$ac_ext
17104 LIBS=$ac_check_lib_save_LIBS
17106 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17107 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17108 if test $ac_cv_lib_dl_dlopen = yes; then
17109 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17111 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17112 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17113 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17114 echo $ECHO_N "(cached) $ECHO_C" >&6
17116 ac_check_lib_save_LIBS=$LIBS
17117 LIBS="-lsvld $LIBS"
17118 cat >conftest.$ac_ext <<_ACEOF
17121 cat confdefs.h >>conftest.$ac_ext
17122 cat >>conftest.$ac_ext <<_ACEOF
17123 /* end confdefs.h. */
17125 /* Override any GCC internal prototype to avoid an error.
17126 Use char because int might match the return type of a GCC
17127 builtin and then its argument prototype would still apply. */
17140 rm -f conftest.$ac_objext conftest$ac_exeext
17141 if { (ac_try="$ac_link"
17142 case "(($ac_try" in
17143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17144 *) ac_try_echo=$ac_try;;
17146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17147 (eval "$ac_link") 2>conftest.er1
17149 grep -v '^ *+' conftest.er1 >conftest.err
17151 cat conftest.err >&5
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); } &&
17154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17155 { (case "(($ac_try" in
17156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157 *) ac_try_echo=$ac_try;;
17159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160 (eval "$ac_try") 2>&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; } &&
17164 { ac_try='test -s conftest$ac_exeext'
17165 { (case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170 (eval "$ac_try") 2>&5
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; }; then
17174 ac_cv_lib_svld_dlopen=yes
17176 echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.$ac_ext >&5
17179 ac_cv_lib_svld_dlopen=no
17182 rm -f core conftest.err conftest.$ac_objext \
17183 conftest$ac_exeext conftest.$ac_ext
17184 LIBS=$ac_check_lib_save_LIBS
17186 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17187 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17188 if test $ac_cv_lib_svld_dlopen = yes; then
17189 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17191 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17192 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17193 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17194 echo $ECHO_N "(cached) $ECHO_C" >&6
17196 ac_check_lib_save_LIBS=$LIBS
17198 cat >conftest.$ac_ext <<_ACEOF
17201 cat confdefs.h >>conftest.$ac_ext
17202 cat >>conftest.$ac_ext <<_ACEOF
17203 /* end confdefs.h. */
17205 /* Override any GCC internal prototype to avoid an error.
17206 Use char because int might match the return type of a GCC
17207 builtin and then its argument prototype would still apply. */
17215 return dld_link ();
17220 rm -f conftest.$ac_objext conftest$ac_exeext
17221 if { (ac_try="$ac_link"
17222 case "(($ac_try" in
17223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17224 *) ac_try_echo=$ac_try;;
17226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17227 (eval "$ac_link") 2>conftest.er1
17229 grep -v '^ *+' conftest.er1 >conftest.err
17231 cat conftest.err >&5
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); } &&
17234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17235 { (case "(($ac_try" in
17236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237 *) ac_try_echo=$ac_try;;
17239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17240 (eval "$ac_try") 2>&5
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); }; } &&
17244 { ac_try='test -s conftest$ac_exeext'
17245 { (case "(($ac_try" in
17246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17247 *) ac_try_echo=$ac_try;;
17249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17250 (eval "$ac_try") 2>&5
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }; }; then
17254 ac_cv_lib_dld_dld_link=yes
17256 echo "$as_me: failed program was:" >&5
17257 sed 's/^/| /' conftest.$ac_ext >&5
17259 ac_cv_lib_dld_dld_link=no
17262 rm -f core conftest.err conftest.$ac_objext \
17263 conftest$ac_exeext conftest.$ac_ext
17264 LIBS=$ac_check_lib_save_LIBS
17266 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17267 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17268 if test $ac_cv_lib_dld_dld_link = yes; then
17269 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17290 if test "x$lt_cv_dlopen" != xno; then
17296 case $lt_cv_dlopen in
17298 save_CPPFLAGS="$CPPFLAGS"
17299 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17301 save_LDFLAGS="$LDFLAGS"
17302 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17305 LIBS="$lt_cv_dlopen_libs $LIBS"
17307 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17308 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17309 if test "${lt_cv_dlopen_self+set}" = set; then
17310 echo $ECHO_N "(cached) $ECHO_C" >&6
17312 if test "$cross_compiling" = yes; then :
17313 lt_cv_dlopen_self=cross
17315 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17316 lt_status=$lt_dlunknown
17317 cat > conftest.$ac_ext <<EOF
17318 #line 17318 "configure"
17319 #include "confdefs.h"
17328 # define LT_DLGLOBAL RTLD_GLOBAL
17331 # define LT_DLGLOBAL DL_GLOBAL
17333 # define LT_DLGLOBAL 0
17337 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17338 find out it does not work in some platform. */
17339 #ifndef LT_DLLAZY_OR_NOW
17341 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17344 # define LT_DLLAZY_OR_NOW DL_LAZY
17347 # define LT_DLLAZY_OR_NOW RTLD_NOW
17350 # define LT_DLLAZY_OR_NOW DL_NOW
17352 # define LT_DLLAZY_OR_NOW 0
17360 extern "C" void exit (int);
17363 void fnord() { int i=42;}
17366 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17367 int status = $lt_dlunknown;
17371 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17372 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17373 /* dlclose (self); */
17381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17382 (eval $ac_link) 2>&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17386 (./conftest; exit; ) >&5 2>/dev/null
17388 case x$lt_status in
17389 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17390 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17391 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17394 # compilation failed
17395 lt_cv_dlopen_self=no
17402 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17403 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17405 if test "x$lt_cv_dlopen_self" = xyes; then
17406 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17407 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17408 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17409 if test "${lt_cv_dlopen_self_static+set}" = set; then
17410 echo $ECHO_N "(cached) $ECHO_C" >&6
17412 if test "$cross_compiling" = yes; then :
17413 lt_cv_dlopen_self_static=cross
17415 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17416 lt_status=$lt_dlunknown
17417 cat > conftest.$ac_ext <<EOF
17418 #line 17418 "configure"
17419 #include "confdefs.h"
17428 # define LT_DLGLOBAL RTLD_GLOBAL
17431 # define LT_DLGLOBAL DL_GLOBAL
17433 # define LT_DLGLOBAL 0
17437 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17438 find out it does not work in some platform. */
17439 #ifndef LT_DLLAZY_OR_NOW
17441 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17444 # define LT_DLLAZY_OR_NOW DL_LAZY
17447 # define LT_DLLAZY_OR_NOW RTLD_NOW
17450 # define LT_DLLAZY_OR_NOW DL_NOW
17452 # define LT_DLLAZY_OR_NOW 0
17460 extern "C" void exit (int);
17463 void fnord() { int i=42;}
17466 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17467 int status = $lt_dlunknown;
17471 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17472 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17473 /* dlclose (self); */
17481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17482 (eval $ac_link) 2>&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17486 (./conftest; exit; ) >&5 2>/dev/null
17488 case x$lt_status in
17489 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17490 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17491 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17494 # compilation failed
17495 lt_cv_dlopen_self_static=no
17502 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17503 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17506 CPPFLAGS="$save_CPPFLAGS"
17507 LDFLAGS="$save_LDFLAGS"
17512 case $lt_cv_dlopen_self in
17513 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17514 *) enable_dlopen_self=unknown ;;
17517 case $lt_cv_dlopen_self_static in
17518 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17519 *) enable_dlopen_self_static=unknown ;;
17524 # Report which library types will actually be built
17525 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17526 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17527 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17528 echo "${ECHO_T}$can_build_shared" >&6; }
17530 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17531 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17532 test "$can_build_shared" = "no" && enable_shared=no
17534 # On AIX, shared libraries and static libraries use the same namespace, and
17535 # are all built from PIC.
17538 test "$enable_shared" = yes && enable_static=no
17539 if test -n "$RANLIB"; then
17540 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17541 postinstall_cmds='$RANLIB $lib'
17546 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17547 test "$enable_shared" = yes && enable_static=no
17551 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17552 echo "${ECHO_T}$enable_shared" >&6; }
17554 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17555 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17556 # Make sure either enable_shared or enable_static is yes.
17557 test "$enable_shared" = yes || enable_static=yes
17558 { echo "$as_me:$LINENO: result: $enable_static" >&5
17559 echo "${ECHO_T}$enable_static" >&6; }
17561 # The else clause should only fire when bootstrapping the
17562 # libtool distribution, otherwise you forgot to ship ltmain.sh
17563 # with your package, and you will get complaints that there are
17564 # no rules to generate ltmain.sh.
17565 if test -f "$ltmain"; then
17566 # See if we are running on zsh, and set the options which allow our commands through
17567 # without removal of \ escapes.
17568 if test -n "${ZSH_VERSION+set}" ; then
17569 setopt NO_GLOB_SUBST
17571 # Now quote all the things that may contain metacharacters while being
17572 # careful not to overquote the AC_SUBSTed values. We take copies of the
17573 # variables and quote the copies for generation of the libtool script.
17574 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17576 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17577 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17578 deplibs_check_method reload_flag reload_cmds need_locks \
17579 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17580 lt_cv_sys_global_symbol_to_c_name_address \
17581 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17582 old_postinstall_cmds old_postuninstall_cmds \
17586 lt_prog_compiler_wl \
17587 lt_prog_compiler_pic \
17588 lt_prog_compiler_static \
17589 lt_prog_compiler_no_builtin_flag \
17590 export_dynamic_flag_spec \
17591 thread_safe_flag_spec \
17592 whole_archive_flag_spec \
17593 enable_shared_with_static_runtimes \
17595 old_archive_from_new_cmds \
17600 compiler_lib_search_path \
17602 archive_expsym_cmds \
17604 postuninstall_cmds \
17605 old_archive_from_expsyms_cmds \
17606 allow_undefined_flag \
17607 no_undefined_flag \
17608 export_symbols_cmds \
17609 hardcode_libdir_flag_spec \
17610 hardcode_libdir_flag_spec_ld \
17611 hardcode_libdir_separator \
17612 hardcode_automatic \
17614 module_expsym_cmds \
17615 lt_cv_prog_compiler_c_o \
17617 include_expsyms; do
17620 old_archive_cmds | \
17621 old_archive_from_new_cmds | \
17623 archive_expsym_cmds | \
17625 module_expsym_cmds | \
17626 old_archive_from_expsyms_cmds | \
17627 export_symbols_cmds | \
17628 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17629 postinstall_cmds | postuninstall_cmds | \
17630 old_postinstall_cmds | old_postuninstall_cmds | \
17631 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17632 # Double-quote double-evaled strings.
17633 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17636 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17642 *'\$0 --fallback-echo"')
17643 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17647 cfgfile="${ofile}T"
17648 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17650 { echo "$as_me:$LINENO: creating $ofile" >&5
17651 echo "$as_me: creating $ofile" >&6;}
17653 cat <<__EOF__ >> "$cfgfile"
17656 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17657 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17658 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17660 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17661 # Free Software Foundation, Inc.
17663 # This file is part of GNU Libtool:
17664 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17666 # This program is free software; you can redistribute it and/or modify
17667 # it under the terms of the GNU General Public License as published by
17668 # the Free Software Foundation; either version 2 of the License, or
17669 # (at your option) any later version.
17671 # This program is distributed in the hope that it will be useful, but
17672 # WITHOUT ANY WARRANTY; without even the implied warranty of
17673 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17674 # General Public License for more details.
17676 # You should have received a copy of the GNU General Public License
17677 # along with this program; if not, write to the Free Software
17678 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17680 # As a special exception to the GNU General Public License, if you
17681 # distribute this file as part of a program that contains a
17682 # configuration script generated by Autoconf, you may include it under
17683 # the same distribution terms that you use for the rest of that program.
17685 # A sed program that does not truncate output.
17688 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17689 Xsed="$SED -e 1s/^X//"
17691 # The HP-UX ksh and POSIX shell print the target directory to stdout
17692 # if CDPATH is set.
17693 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17695 # The names of the tagged configurations supported by this script.
17698 # ### BEGIN LIBTOOL CONFIG
17700 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17702 # Shell to use when invoking shell scripts.
17705 # Whether or not to build shared libraries.
17706 build_libtool_libs=$enable_shared
17708 # Whether or not to build static libraries.
17709 build_old_libs=$enable_static
17711 # Whether or not to add -lc for building shared libraries.
17712 build_libtool_need_lc=$archive_cmds_need_lc
17714 # Whether or not to disallow shared libs when runtime libs are static
17715 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17717 # Whether or not to optimize for fast installation.
17718 fast_install=$enable_fast_install
17721 host_alias=$host_alias
17725 # The build system.
17726 build_alias=$build_alias
17730 # An echo program that does not interpret backslashes.
17735 AR_FLAGS=$lt_AR_FLAGS
17740 # LTCC compiler flags.
17741 LTCFLAGS=$lt_LTCFLAGS
17743 # A language-specific compiler.
17746 # Is the compiler the GNU C compiler?
17752 # The linker used to build libraries.
17755 # Whether we need hard or soft links.
17758 # A BSD-compatible nm program.
17761 # A symbol stripping program
17764 # Used to examine libraries when file_magic_cmd begins "file"
17765 MAGIC_CMD=$MAGIC_CMD
17767 # Used on cygwin: DLL creation program.
17770 # Used on cygwin: object dumper.
17773 # Used on cygwin: assembler.
17776 # The name of the directory that contains temporary libtool files.
17779 # How to create reloadable object files.
17780 reload_flag=$lt_reload_flag
17781 reload_cmds=$lt_reload_cmds
17783 # How to pass a linker flag through the compiler.
17784 wl=$lt_lt_prog_compiler_wl
17786 # Object file suffix (normally "o").
17787 objext="$ac_objext"
17789 # Old archive suffix (normally "a").
17792 # Shared library suffix (normally ".so").
17793 shrext_cmds='$shrext_cmds'
17795 # Executable file suffix (normally "").
17798 # Additional compiler flags for building library objects.
17799 pic_flag=$lt_lt_prog_compiler_pic
17802 # What is the maximum length of a command?
17803 max_cmd_len=$lt_cv_sys_max_cmd_len
17805 # Does compiler simultaneously support -c and -o options?
17806 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17808 # Must we lock files when doing compilation?
17809 need_locks=$lt_need_locks
17811 # Do we need the lib prefix for modules?
17812 need_lib_prefix=$need_lib_prefix
17814 # Do we need a version for libraries?
17815 need_version=$need_version
17817 # Whether dlopen is supported.
17818 dlopen_support=$enable_dlopen
17820 # Whether dlopen of programs is supported.
17821 dlopen_self=$enable_dlopen_self
17823 # Whether dlopen of statically linked programs is supported.
17824 dlopen_self_static=$enable_dlopen_self_static
17826 # Compiler flag to prevent dynamic linking.
17827 link_static_flag=$lt_lt_prog_compiler_static
17829 # Compiler flag to turn off builtin functions.
17830 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17832 # Compiler flag to allow reflexive dlopens.
17833 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17835 # Compiler flag to generate shared objects directly from archives.
17836 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17838 # Compiler flag to generate thread-safe objects.
17839 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17841 # Library versioning type.
17842 version_type=$version_type
17844 # Format of library name prefix.
17845 libname_spec=$lt_libname_spec
17847 # List of archive names. First name is the real one, the rest are links.
17848 # The last name is the one that the linker finds with -lNAME.
17849 library_names_spec=$lt_library_names_spec
17851 # The coded name of the library, if different from the real name.
17852 soname_spec=$lt_soname_spec
17854 # Commands used to build and install an old-style archive.
17856 old_archive_cmds=$lt_old_archive_cmds
17857 old_postinstall_cmds=$lt_old_postinstall_cmds
17858 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17860 # Create an old-style archive from a shared archive.
17861 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17863 # Create a temporary old-style archive to link instead of a shared archive.
17864 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17866 # Commands used to build and install a shared archive.
17867 archive_cmds=$lt_archive_cmds
17868 archive_expsym_cmds=$lt_archive_expsym_cmds
17869 postinstall_cmds=$lt_postinstall_cmds
17870 postuninstall_cmds=$lt_postuninstall_cmds
17872 # Commands used to build a loadable module (assumed same as above if empty)
17873 module_cmds=$lt_module_cmds
17874 module_expsym_cmds=$lt_module_expsym_cmds
17876 # Commands to strip libraries.
17877 old_striplib=$lt_old_striplib
17878 striplib=$lt_striplib
17880 # Dependencies to place before the objects being linked to create a
17882 predep_objects=$lt_predep_objects
17884 # Dependencies to place after the objects being linked to create a
17886 postdep_objects=$lt_postdep_objects
17888 # Dependencies to place before the objects being linked to create a
17890 predeps=$lt_predeps
17892 # Dependencies to place after the objects being linked to create a
17894 postdeps=$lt_postdeps
17896 # The library search path used internally by the compiler when linking
17897 # a shared library.
17898 compiler_lib_search_path=$lt_compiler_lib_search_path
17900 # Method to check whether dependent libraries are shared objects.
17901 deplibs_check_method=$lt_deplibs_check_method
17903 # Command to use when deplibs_check_method == file_magic.
17904 file_magic_cmd=$lt_file_magic_cmd
17906 # Flag that allows shared libraries with undefined symbols to be built.
17907 allow_undefined_flag=$lt_allow_undefined_flag
17909 # Flag that forces no undefined symbols.
17910 no_undefined_flag=$lt_no_undefined_flag
17912 # Commands used to finish a libtool library installation in a directory.
17913 finish_cmds=$lt_finish_cmds
17915 # Same as above, but a single script fragment to be evaled but not shown.
17916 finish_eval=$lt_finish_eval
17918 # Take the output of nm and produce a listing of raw symbols and C names.
17919 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17921 # Transform the output of nm in a proper C declaration
17922 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17924 # Transform the output of nm in a C name address pair
17925 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17927 # This is the shared library runtime path variable.
17928 runpath_var=$runpath_var
17930 # This is the shared library path variable.
17931 shlibpath_var=$shlibpath_var
17933 # Is shlibpath searched before the hard-coded library search path?
17934 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17936 # How to hardcode a shared library path into an executable.
17937 hardcode_action=$hardcode_action
17939 # Whether we should hardcode library paths into libraries.
17940 hardcode_into_libs=$hardcode_into_libs
17942 # Flag to hardcode \$libdir into a binary during linking.
17943 # This must work even if \$libdir does not exist.
17944 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17946 # If ld is used when linking, flag to hardcode \$libdir into
17947 # a binary during linking. This must work even if \$libdir does
17949 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17951 # Whether we need a single -rpath flag with a separated argument.
17952 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17954 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17955 # resulting binary.
17956 hardcode_direct=$hardcode_direct
17958 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17959 # resulting binary.
17960 hardcode_minus_L=$hardcode_minus_L
17962 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17963 # the resulting binary.
17964 hardcode_shlibpath_var=$hardcode_shlibpath_var
17966 # Set to yes if building a shared library automatically hardcodes DIR into the library
17967 # and all subsequent libraries and executables linked against it.
17968 hardcode_automatic=$hardcode_automatic
17970 # Variables whose values should be saved in libtool wrapper scripts and
17971 # restored at relink time.
17972 variables_saved_for_relink="$variables_saved_for_relink"
17974 # Whether libtool must link a program against all its dependency libraries.
17975 link_all_deplibs=$link_all_deplibs
17977 # Compile-time system search path for libraries
17978 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17980 # Run-time system search path for libraries
17981 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17983 # Fix the shell variable \$srcfile for the compiler.
17984 fix_srcfile_path="$fix_srcfile_path"
17986 # Set to yes if exported symbols are required.
17987 always_export_symbols=$always_export_symbols
17989 # The commands to list exported symbols.
17990 export_symbols_cmds=$lt_export_symbols_cmds
17992 # The commands to extract the exported symbol list from a shared archive.
17993 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17995 # Symbols that should not be listed in the preloaded symbols.
17996 exclude_expsyms=$lt_exclude_expsyms
17998 # Symbols that must always be exported.
17999 include_expsyms=$lt_include_expsyms
18001 # ### END LIBTOOL CONFIG
18008 cat <<\EOF >> "$cfgfile"
18010 # AIX sometimes has problems with the GCC collect2 program. For some
18011 # reason, if we set the COLLECT_NAMES environment variable, the problems
18012 # vanish in a puff of smoke.
18013 if test "X${COLLECT_NAMES+set}" != Xset; then
18015 export COLLECT_NAMES
18021 # We use sed instead of cat because bash on DJGPP gets confused if
18022 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18023 # text mode, it properly converts lines to CR/LF. This bash problem
18024 # is reportedly fixed, but why not run on old versions too?
18025 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18027 mv -f "$cfgfile" "$ofile" || \
18028 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18032 # If there is no Makefile yet, we rely on a make rule to execute
18033 # `config.status --recheck' to rerun these tests and create the
18034 # libtool script then.
18035 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18036 if test -f "$ltmain_in"; then
18037 test -f Makefile && make "$ltmain"
18043 ac_cpp='$CPP $CPPFLAGS'
18044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18051 # Check whether --with-tags was given.
18052 if test "${with_tags+set}" = set; then
18053 withval=$with_tags; tagnames="$withval"
18057 if test -f "$ltmain" && test -n "$tagnames"; then
18058 if test ! -f "${ofile}"; then
18059 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18060 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18063 if test -z "$LTCC"; then
18064 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18065 if test -z "$LTCC"; then
18066 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18067 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18069 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18070 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18073 if test -z "$LTCFLAGS"; then
18074 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18077 # Extract list of available tagged configurations in $ofile.
18078 # Note that this assumes the entire list is on one line.
18079 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18081 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18082 for tagname in $tagnames; do
18084 # Check whether tagname contains only valid characters
18085 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18087 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18088 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18089 { (exit 1); exit 1; }; }
18093 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18095 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18096 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18097 { (exit 1); exit 1; }; }
18100 # Update the list of available tags.
18101 if test -n "$tagname"; then
18102 echo appending configuration tag \"$tagname\" to $ofile
18106 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18107 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18108 (test "X$CXX" != "Xg++"))) ; then
18110 ac_cpp='$CXXCPP $CPPFLAGS'
18111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18118 archive_cmds_need_lc_CXX=no
18119 allow_undefined_flag_CXX=
18120 always_export_symbols_CXX=no
18121 archive_expsym_cmds_CXX=
18122 export_dynamic_flag_spec_CXX=
18123 hardcode_direct_CXX=no
18124 hardcode_libdir_flag_spec_CXX=
18125 hardcode_libdir_flag_spec_ld_CXX=
18126 hardcode_libdir_separator_CXX=
18127 hardcode_minus_L_CXX=no
18128 hardcode_shlibpath_var_CXX=unsupported
18129 hardcode_automatic_CXX=no
18131 module_expsym_cmds_CXX=
18132 link_all_deplibs_CXX=unknown
18133 old_archive_cmds_CXX=$old_archive_cmds
18134 no_undefined_flag_CXX=
18135 whole_archive_flag_spec_CXX=
18136 enable_shared_with_static_runtimes_CXX=no
18138 # Dependencies to place before and after the object being linked:
18139 predep_objects_CXX=
18140 postdep_objects_CXX=
18143 compiler_lib_search_path_CXX=
18145 # Source file extension for C++ test sources.
18148 # Object file extension for compiled C++ test sources.
18152 # Code to be used in simple compile tests
18153 lt_simple_compile_test_code="int some_variable = 0;\n"
18155 # Code to be used in simple link tests
18156 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18158 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18160 # If no C compiler was specified, use CC.
18163 # If no C compiler flags were specified, use CFLAGS.
18164 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18166 # Allow CC to be a program name with arguments.
18170 # save warnings/boilerplate of simple test code
18171 ac_outfile=conftest.$ac_objext
18172 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18173 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18174 _lt_compiler_boilerplate=`cat conftest.err`
18177 ac_outfile=conftest.$ac_objext
18178 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18179 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18180 _lt_linker_boilerplate=`cat conftest.err`
18184 # Allow CC to be a program name with arguments.
18189 lt_save_with_gnu_ld=$with_gnu_ld
18190 lt_save_path_LD=$lt_cv_path_LD
18191 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18192 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18194 $as_unset lt_cv_prog_gnu_ld
18196 if test -n "${lt_cv_path_LDCXX+set}"; then
18197 lt_cv_path_LD=$lt_cv_path_LDCXX
18199 $as_unset lt_cv_path_LD
18201 test -z "${LDCXX+set}" || LD=$LDCXX
18205 for cc_temp in $compiler""; do
18207 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18208 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18213 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18216 # We don't want -fno-exception wen compiling C++ code, so set the
18217 # no_builtin_flag separately
18218 if test "$GXX" = yes; then
18219 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18221 lt_prog_compiler_no_builtin_flag_CXX=
18224 if test "$GXX" = yes; then
18225 # Set up default GNU C++ configuration
18228 # Check whether --with-gnu-ld was given.
18229 if test "${with_gnu_ld+set}" = set; then
18230 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18236 if test "$GCC" = yes; then
18237 # Check if gcc -print-prog-name=ld gives a path.
18238 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18239 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18242 # gcc leaves a trailing carriage return which upsets mingw
18243 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18245 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18248 # Accept absolute paths.
18250 re_direlt='/[^/][^/]*/\.\./'
18251 # Canonicalize the pathname of ld
18252 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18253 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18254 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18256 test -z "$LD" && LD="$ac_prog"
18259 # If it fails, then pretend we aren't using GCC.
18263 # If it is relative, then search for the first ld in PATH.
18264 with_gnu_ld=unknown
18267 elif test "$with_gnu_ld" = yes; then
18268 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18269 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18271 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18272 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18274 if test "${lt_cv_path_LD+set}" = set; then
18275 echo $ECHO_N "(cached) $ECHO_C" >&6
18277 if test -z "$LD"; then
18278 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18279 for ac_dir in $PATH; do
18281 test -z "$ac_dir" && ac_dir=.
18282 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18283 lt_cv_path_LD="$ac_dir/$ac_prog"
18284 # Check to see if the program is GNU ld. I'd rather use --version,
18285 # but apparently some variants of GNU ld only accept -v.
18286 # Break only if it was the GNU/non-GNU ld that we prefer.
18287 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18288 *GNU* | *'with BFD'*)
18289 test "$with_gnu_ld" != no && break
18292 test "$with_gnu_ld" != yes && break
18299 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18303 LD="$lt_cv_path_LD"
18304 if test -n "$LD"; then
18305 { echo "$as_me:$LINENO: result: $LD" >&5
18306 echo "${ECHO_T}$LD" >&6; }
18308 { echo "$as_me:$LINENO: result: no" >&5
18309 echo "${ECHO_T}no" >&6; }
18311 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18312 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18313 { (exit 1); exit 1; }; }
18314 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18315 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18316 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18317 echo $ECHO_N "(cached) $ECHO_C" >&6
18319 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18320 case `$LD -v 2>&1 </dev/null` in
18321 *GNU* | *'with BFD'*)
18322 lt_cv_prog_gnu_ld=yes
18325 lt_cv_prog_gnu_ld=no
18329 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18330 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18331 with_gnu_ld=$lt_cv_prog_gnu_ld
18335 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18336 # archiving commands below assume that GNU ld is being used.
18337 if test "$with_gnu_ld" = yes; then
18338 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18339 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'
18341 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18342 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18344 # If archive_cmds runs LD, not CC, wlarc should be empty
18345 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18346 # investigate it a little bit more. (MM)
18349 # ancient GNU ld didn't support --whole-archive et. al.
18350 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18351 grep 'no-whole-archive' > /dev/null; then
18352 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18354 whole_archive_flag_spec_CXX=
18360 # A generic and very simple default shared library creation
18361 # command for GNU C++ for the case where it uses the native
18362 # linker, instead of GNU ld. If possible, this setting should
18363 # overridden to take advantage of the native linker features on
18364 # the platform it is being used on.
18365 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18368 # Commands to make compiler produce verbose output that lists
18369 # what "hidden" libraries, object files and flags are used when
18370 # linking a shared library.
18371 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18379 # PORTME: fill in a description of your system's C++ link characteristics
18380 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18381 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18385 # FIXME: insert proper C++ library support
18389 if test "$host_cpu" = ia64; then
18390 # On IA64, the linker does run time linking by default, so we don't
18391 # have to do anything special.
18392 aix_use_runtimelinking=no
18393 exp_sym_flag='-Bexport'
18396 aix_use_runtimelinking=no
18398 # Test if we are trying to use run time linking or normal
18399 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18400 # need to do runtime linking.
18401 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18402 for ld_flag in $LDFLAGS; do
18405 aix_use_runtimelinking=yes
18413 exp_sym_flag='-bexport'
18414 no_entry_flag='-bnoentry'
18417 # When large executables or shared objects are built, AIX ld can
18418 # have problems creating the table of contents. If linking a library
18419 # or program results in "error TOC overflow" add -mminimal-toc to
18420 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18421 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18423 archive_cmds_CXX=''
18424 hardcode_direct_CXX=yes
18425 hardcode_libdir_separator_CXX=':'
18426 link_all_deplibs_CXX=yes
18428 if test "$GXX" = yes; then
18429 case $host_os in aix4.[012]|aix4.[012].*)
18430 # We only want to do this on AIX 4.2 and lower, the check
18431 # below for broken collect2 doesn't work under 4.3+
18432 collect2name=`${CC} -print-prog-name=collect2`
18433 if test -f "$collect2name" && \
18434 strings "$collect2name" | grep resolve_lib_name >/dev/null
18436 # We have reworked collect2
18437 hardcode_direct_CXX=yes
18439 # We have old collect2
18440 hardcode_direct_CXX=unsupported
18441 # It fails to find uninstalled libraries when the uninstalled
18442 # path is not listed in the libpath. Setting hardcode_minus_L
18443 # to unsupported forces relinking
18444 hardcode_minus_L_CXX=yes
18445 hardcode_libdir_flag_spec_CXX='-L$libdir'
18446 hardcode_libdir_separator_CXX=
18450 shared_flag='-shared'
18451 if test "$aix_use_runtimelinking" = yes; then
18452 shared_flag="$shared_flag "'${wl}-G'
18456 if test "$host_cpu" = ia64; then
18457 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18458 # chokes on -Wl,-G. The following line is correct:
18461 if test "$aix_use_runtimelinking" = yes; then
18462 shared_flag='${wl}-G'
18464 shared_flag='${wl}-bM:SRE'
18469 # It seems that -bexpall does not export symbols beginning with
18470 # underscore (_), so it is better to generate a list of symbols to export.
18471 always_export_symbols_CXX=yes
18472 if test "$aix_use_runtimelinking" = yes; then
18473 # Warning - without using the other runtime loading flags (-brtl),
18474 # -berok will link without error, but may produce a broken library.
18475 allow_undefined_flag_CXX='-berok'
18476 # Determine the default libpath from the value encoded in an empty executable.
18477 cat >conftest.$ac_ext <<_ACEOF
18480 cat confdefs.h >>conftest.$ac_ext
18481 cat >>conftest.$ac_ext <<_ACEOF
18482 /* end confdefs.h. */
18492 rm -f conftest.$ac_objext conftest$ac_exeext
18493 if { (ac_try="$ac_link"
18494 case "(($ac_try" in
18495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18496 *) ac_try_echo=$ac_try;;
18498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18499 (eval "$ac_link") 2>conftest.er1
18501 grep -v '^ *+' conftest.er1 >conftest.err
18503 cat conftest.err >&5
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); } &&
18506 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18507 { (case "(($ac_try" in
18508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509 *) ac_try_echo=$ac_try;;
18511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512 (eval "$ac_try") 2>&5
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); }; } &&
18516 { ac_try='test -s conftest$ac_exeext'
18517 { (case "(($ac_try" in
18518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18519 *) ac_try_echo=$ac_try;;
18521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18522 (eval "$ac_try") 2>&5
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); }; }; then
18527 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18529 # Check for a 64-bit object if we didn't find anything.
18530 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; }
18533 echo "$as_me: failed program was:" >&5
18534 sed 's/^/| /' conftest.$ac_ext >&5
18539 rm -f core conftest.err conftest.$ac_objext \
18540 conftest$ac_exeext conftest.$ac_ext
18541 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18543 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18545 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"
18547 if test "$host_cpu" = ia64; then
18548 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18549 allow_undefined_flag_CXX="-z nodefs"
18550 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"
18552 # Determine the default libpath from the value encoded in an empty executable.
18553 cat >conftest.$ac_ext <<_ACEOF
18556 cat confdefs.h >>conftest.$ac_ext
18557 cat >>conftest.$ac_ext <<_ACEOF
18558 /* end confdefs.h. */
18568 rm -f conftest.$ac_objext conftest$ac_exeext
18569 if { (ac_try="$ac_link"
18570 case "(($ac_try" in
18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572 *) ac_try_echo=$ac_try;;
18574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575 (eval "$ac_link") 2>conftest.er1
18577 grep -v '^ *+' conftest.er1 >conftest.err
18579 cat conftest.err >&5
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); } &&
18582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18583 { (case "(($ac_try" in
18584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18585 *) ac_try_echo=$ac_try;;
18587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18588 (eval "$ac_try") 2>&5
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); }; } &&
18592 { ac_try='test -s conftest$ac_exeext'
18593 { (case "(($ac_try" in
18594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18595 *) ac_try_echo=$ac_try;;
18597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18598 (eval "$ac_try") 2>&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); }; }; then
18603 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18605 # Check for a 64-bit object if we didn't find anything.
18606 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; }
18609 echo "$as_me: failed program was:" >&5
18610 sed 's/^/| /' conftest.$ac_ext >&5
18615 rm -f core conftest.err conftest.$ac_objext \
18616 conftest$ac_exeext conftest.$ac_ext
18617 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18619 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18620 # Warning - without using the other run time loading flags,
18621 # -berok will link without error, but may produce a broken library.
18622 no_undefined_flag_CXX=' ${wl}-bernotok'
18623 allow_undefined_flag_CXX=' ${wl}-berok'
18624 # Exported symbols can be pulled into shared objects from archives
18625 whole_archive_flag_spec_CXX='$convenience'
18626 archive_cmds_need_lc_CXX=yes
18627 # This is similar to how AIX traditionally builds its shared libraries.
18628 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'
18634 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18635 allow_undefined_flag_CXX=unsupported
18636 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18637 # support --undefined. This deserves some investigation. FIXME
18638 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18645 case $cc_basename in
18647 # FIXME: insert proper C++ library support
18653 cygwin* | mingw* | pw32*)
18654 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18655 # as there is no search path for DLLs.
18656 hardcode_libdir_flag_spec_CXX='-L$libdir'
18657 allow_undefined_flag_CXX=unsupported
18658 always_export_symbols_CXX=no
18659 enable_shared_with_static_runtimes_CXX=yes
18661 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18662 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'
18663 # If the export-symbols file already is a .def file (1st line
18664 # is EXPORTS), use it as is; otherwise, prepend...
18665 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18666 cp $export_symbols $output_objdir/$soname.def;
18668 echo EXPORTS > $output_objdir/$soname.def;
18669 cat $export_symbols >> $output_objdir/$soname.def;
18671 $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'
18676 darwin* | rhapsody*)
18678 rhapsody* | darwin1.[012])
18679 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18682 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18683 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18685 case ${MACOSX_DEPLOYMENT_TARGET} in
18687 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18690 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18696 archive_cmds_need_lc_CXX=no
18697 hardcode_direct_CXX=no
18698 hardcode_automatic_CXX=yes
18699 hardcode_shlibpath_var_CXX=unsupported
18700 whole_archive_flag_spec_CXX=''
18701 link_all_deplibs_CXX=yes
18703 if test "$GXX" = yes ; then
18704 lt_int_apple_cc_single_mod=no
18705 output_verbose_link_cmd='echo'
18706 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18707 lt_int_apple_cc_single_mod=yes
18709 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18710 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18712 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'
18714 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18715 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18716 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18717 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}'
18719 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}'
18721 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}'
18723 case $cc_basename in
18725 output_verbose_link_cmd='echo'
18726 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'
18727 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18728 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18729 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}'
18730 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}'
18740 case $cc_basename in
18742 # FIXME: insert proper C++ library support
18746 # Green Hills C++ Compiler
18747 # FIXME: insert proper C++ library support
18751 # FIXME: insert proper C++ library support
18757 # C++ shared libraries reported to be fairly broken before switch to ELF
18761 archive_cmds_need_lc_CXX=no
18763 freebsd* | kfreebsd*-gnu | dragonfly*)
18764 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18771 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18772 hardcode_libdir_separator_CXX=:
18773 export_dynamic_flag_spec_CXX='${wl}-E'
18774 hardcode_direct_CXX=yes
18775 hardcode_minus_L_CXX=yes # Not in the search PATH,
18776 # but as the default
18777 # location of the library.
18779 case $cc_basename in
18781 # FIXME: insert proper C++ library support
18785 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'
18786 # Commands to make compiler produce verbose output that lists
18787 # what "hidden" libraries, object files and flags are used when
18788 # linking a shared library.
18790 # There doesn't appear to be a way to prevent this compiler from
18791 # explicitly linking system object files so we need to strip them
18792 # from the output so that they don't get included in the library
18794 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'
18797 if test "$GXX" = yes; then
18798 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'
18800 # FIXME: insert proper C++ library support
18807 if test $with_gnu_ld = no; then
18808 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18809 hardcode_libdir_separator_CXX=:
18813 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18816 export_dynamic_flag_spec_CXX='${wl}-E'
18822 hardcode_direct_CXX=no
18823 hardcode_shlibpath_var_CXX=no
18826 hardcode_direct_CXX=yes
18827 hardcode_minus_L_CXX=yes # Not in the search PATH,
18828 # but as the default
18829 # location of the library.
18833 case $cc_basename in
18835 # FIXME: insert proper C++ library support
18841 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18844 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18847 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18850 # Commands to make compiler produce verbose output that lists
18851 # what "hidden" libraries, object files and flags are used when
18852 # linking a shared library.
18854 # There doesn't appear to be a way to prevent this compiler from
18855 # explicitly linking system object files so we need to strip them
18856 # from the output so that they don't get included in the library
18858 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'
18861 if test "$GXX" = yes; then
18862 if test $with_gnu_ld = no; then
18865 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18868 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18871 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'
18876 # FIXME: insert proper C++ library support
18883 hardcode_direct_CXX=no
18884 hardcode_shlibpath_var_CXX=no
18885 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18886 export_dynamic_flag_spec_CXX='${wl}-E'
18887 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18888 # Instead, shared libraries are loaded at an image base (0x10000000 by
18889 # default) and relocated if they conflict, which is a slow very memory
18890 # consuming and fragmenting process. To avoid this, we pick a random,
18891 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18892 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18893 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'
18894 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'
18897 case $cc_basename in
18900 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'
18902 # Archives containing C++ object files must be created using
18903 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18904 # necessary to make sure instantiated templates are included
18906 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18909 if test "$GXX" = yes; then
18910 if test "$with_gnu_ld" = no; then
18911 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'
18913 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'
18916 link_all_deplibs_CXX=yes
18919 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18920 hardcode_libdir_separator_CXX=:
18923 case $cc_basename in
18925 # Kuck and Associates, Inc. (KAI) C++ Compiler
18927 # KCC will only create a shared library if the output file
18928 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18929 # to its proper name (with version) after linking.
18930 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'
18931 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'
18932 # Commands to make compiler produce verbose output that lists
18933 # what "hidden" libraries, object files and flags are used when
18934 # linking a shared library.
18936 # There doesn't appear to be a way to prevent this compiler from
18937 # explicitly linking system object files so we need to strip them
18938 # from the output so that they don't get included in the library
18940 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'
18942 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18943 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18945 # Archives containing C++ object files must be created using
18946 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18947 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18952 # version 8.0 and above of icpc choke on multiply defined symbols
18953 # if we add $predep_objects and $postdep_objects, however 7.1 and
18954 # earlier do not add the objects themselves.
18955 case `$CC -V 2>&1` in
18957 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18958 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'
18960 *) # Version 8.0 or newer
18963 ia64*) tmp_idyn=' -i_dynamic';;
18965 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18966 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'
18969 archive_cmds_need_lc_CXX=no
18970 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18971 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18972 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18975 # Portland Group C++ compiler
18976 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18977 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'
18979 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18980 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18981 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'
18985 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18986 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'
18988 runpath_var=LD_RUN_PATH
18989 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18990 hardcode_libdir_separator_CXX=:
18992 # Commands to make compiler produce verbose output that lists
18993 # what "hidden" libraries, object files and flags are used when
18994 # linking a shared library.
18996 # There doesn't appear to be a way to prevent this compiler from
18997 # explicitly linking system object files so we need to strip them
18998 # from the output so that they don't get included in the library
19000 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'
19005 # FIXME: insert proper C++ library support
19009 # FIXME: insert proper C++ library support
19013 case $cc_basename in
19015 # FIXME: insert proper C++ library support
19019 # FIXME: insert proper C++ library support
19025 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19026 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19028 hardcode_libdir_flag_spec_CXX='-R$libdir'
19029 hardcode_direct_CXX=yes
19030 hardcode_shlibpath_var_CXX=no
19032 # Workaround some broken pre-1.5 toolchains
19033 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19036 # C++ shared libraries are fairly broken
19040 hardcode_direct_CXX=yes
19041 hardcode_shlibpath_var_CXX=no
19042 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19043 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19044 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19045 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19046 export_dynamic_flag_spec_CXX='${wl}-E'
19047 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19049 output_verbose_link_cmd='echo'
19052 case $cc_basename in
19054 # Kuck and Associates, Inc. (KAI) C++ Compiler
19056 # KCC will only create a shared library if the output file
19057 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19058 # to its proper name (with version) after linking.
19059 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'
19061 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19062 hardcode_libdir_separator_CXX=:
19064 # Archives containing C++ object files must be created using
19065 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19066 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19070 # Rational C++ 2.4.1
19071 # FIXME: insert proper C++ library support
19075 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19076 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'
19078 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19079 hardcode_libdir_separator_CXX=:
19081 # Commands to make compiler produce verbose output that lists
19082 # what "hidden" libraries, object files and flags are used when
19083 # linking a shared library.
19085 # There doesn't appear to be a way to prevent this compiler from
19086 # explicitly linking system object files so we need to strip them
19087 # from the output so that they don't get included in the library
19089 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'
19092 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19093 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19094 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'
19096 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19097 hardcode_libdir_separator_CXX=:
19099 # Commands to make compiler produce verbose output that lists
19100 # what "hidden" libraries, object files and flags are used when
19101 # linking a shared library.
19102 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19105 # FIXME: insert proper C++ library support
19112 case $cc_basename in
19114 # Kuck and Associates, Inc. (KAI) C++ Compiler
19116 # KCC will only create a shared library if the output file
19117 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19118 # to its proper name (with version) after linking.
19119 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'
19121 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19122 hardcode_libdir_separator_CXX=:
19124 # Archives containing C++ object files must be created using
19125 # the KAI C++ compiler.
19126 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19129 # Rational C++ 2.4.1
19130 # FIXME: insert proper C++ library support
19134 allow_undefined_flag_CXX=' -expect_unresolved \*'
19135 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'
19136 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19137 echo "-hidden">> $lib.exp~
19138 $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~
19141 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19142 hardcode_libdir_separator_CXX=:
19144 # Commands to make compiler produce verbose output that lists
19145 # what "hidden" libraries, object files and flags are used when
19146 # linking a shared library.
19148 # There doesn't appear to be a way to prevent this compiler from
19149 # explicitly linking system object files so we need to strip them
19150 # from the output so that they don't get included in the library
19152 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'
19155 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19156 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19157 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'
19159 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19160 hardcode_libdir_separator_CXX=:
19162 # Commands to make compiler produce verbose output that lists
19163 # what "hidden" libraries, object files and flags are used when
19164 # linking a shared library.
19165 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19168 # FIXME: insert proper C++ library support
19175 # FIXME: insert proper C++ library support
19179 case $cc_basename in
19182 # FIXME: insert proper C++ library support
19187 # FIXME: insert proper C++ library support
19191 # FIXME: insert proper C++ library support
19197 case $cc_basename in
19199 # Sun C++ 4.2, 5.x and Centerline C++
19200 archive_cmds_need_lc_CXX=yes
19201 no_undefined_flag_CXX=' -zdefs'
19202 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19203 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19204 $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'
19206 hardcode_libdir_flag_spec_CXX='-R$libdir'
19207 hardcode_shlibpath_var_CXX=no
19209 solaris2.[0-5] | solaris2.[0-5].*) ;;
19211 # The C++ compiler is used as linker so we must use $wl
19212 # flag to pass the commands to the underlying system
19213 # linker. We must also pass each convience library through
19214 # to the system linker between allextract/defaultextract.
19215 # The C++ compiler will combine linker options so we
19216 # cannot just pass the convience library names through
19218 # Supported since Solaris 2.6 (maybe 2.5.1?)
19219 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'
19222 link_all_deplibs_CXX=yes
19224 output_verbose_link_cmd='echo'
19226 # Archives containing C++ object files must be created using
19227 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19228 # necessary to make sure instantiated templates are included
19230 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19233 # Green Hills C++ Compiler
19234 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19236 # The C++ compiler must be used to create the archive.
19237 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19240 # GNU C++ compiler with Solaris linker
19241 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19242 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19243 if $CC --version | grep -v '^2\.7' > /dev/null; then
19244 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19245 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19246 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19248 # Commands to make compiler produce verbose output that lists
19249 # what "hidden" libraries, object files and flags are used when
19250 # linking a shared library.
19251 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19253 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19255 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19256 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19257 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19259 # Commands to make compiler produce verbose output that lists
19260 # what "hidden" libraries, object files and flags are used when
19261 # linking a shared library.
19262 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19265 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19270 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19271 no_undefined_flag_CXX='${wl}-z,text'
19272 archive_cmds_need_lc_CXX=no
19273 hardcode_shlibpath_var_CXX=no
19274 runpath_var='LD_RUN_PATH'
19276 case $cc_basename in
19278 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19279 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19282 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19283 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19287 sysv5* | sco3.2v5* | sco5v6*)
19288 # Note: We can NOT use -z defs as we might desire, because we do not
19289 # link with -lc, and that would cause any symbols used from libc to
19290 # always be unresolved, which means just about no library would
19291 # ever link correctly. If we're not using GNU ld we use -z text
19292 # though, which does catch some bad symbols but isn't as heavy-handed
19294 # For security reasons, it is highly recommended that you always
19295 # use absolute paths for naming shared libraries, and exclude the
19296 # DT_RUNPATH tag from executables and libraries. But doing so
19297 # requires that you compile everything twice, which is a pain.
19298 # So that behaviour is only enabled if SCOABSPATH is set to a
19299 # non-empty value in the environment. Most likely only useful for
19300 # creating official distributions of packages.
19301 # This is a hack until libtool officially supports absolute path
19302 # names for shared libraries.
19303 no_undefined_flag_CXX='${wl}-z,text'
19304 allow_undefined_flag_CXX='${wl}-z,nodefs'
19305 archive_cmds_need_lc_CXX=no
19306 hardcode_shlibpath_var_CXX=no
19307 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19308 hardcode_libdir_separator_CXX=':'
19309 link_all_deplibs_CXX=yes
19310 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19311 runpath_var='LD_RUN_PATH'
19313 case $cc_basename in
19315 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19316 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19319 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19320 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19325 case $cc_basename in
19327 # NonStop-UX NCC 3.20
19328 # FIXME: insert proper C++ library support
19332 # FIXME: insert proper C++ library support
19338 # FIXME: insert proper C++ library support
19342 # FIXME: insert proper C++ library support
19346 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19347 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19348 test "$ld_shlibs_CXX" = no && can_build_shared=no
19354 cat > conftest.$ac_ext <<EOF
19358 Foo (void) { a = 0; }
19364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19365 (eval $ac_compile) 2>&5
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; then
19369 # Parse the compiler output and extract the necessary
19370 # objects, libraries and library flags.
19372 # Sentinel used to keep track of whether or not we are before
19373 # the conftest object file.
19374 pre_test_object_deps_done=no
19376 # The `*' in the case matches for architectures that use `case' in
19377 # $output_verbose_cmd can trigger glob expansion during the loop
19378 # eval without this substitution.
19379 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19381 for p in `eval $output_verbose_link_cmd`; do
19385 # Some compilers place space between "-{L,R}" and the path.
19386 # Remove the space.
19387 if test $p = "-L" \
19388 || test $p = "-R"; then
19395 if test "$pre_test_object_deps_done" = no; then
19398 # Internal compiler library paths should come after those
19399 # provided the user. The postdeps already come after the
19400 # user supplied libs so there is no need to process them.
19401 if test -z "$compiler_lib_search_path_CXX"; then
19402 compiler_lib_search_path_CXX="${prev}${p}"
19404 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19407 # The "-l" case would never come before the object being
19408 # linked, so don't bother handling this case.
19411 if test -z "$postdeps_CXX"; then
19412 postdeps_CXX="${prev}${p}"
19414 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19420 # This assumes that the test object file only shows up
19421 # once in the compiler output.
19422 if test "$p" = "conftest.$objext"; then
19423 pre_test_object_deps_done=yes
19427 if test "$pre_test_object_deps_done" = no; then
19428 if test -z "$predep_objects_CXX"; then
19429 predep_objects_CXX="$p"
19431 predep_objects_CXX="$predep_objects_CXX $p"
19434 if test -z "$postdep_objects_CXX"; then
19435 postdep_objects_CXX="$p"
19437 postdep_objects_CXX="$postdep_objects_CXX $p"
19442 *) ;; # Ignore the rest.
19450 echo "libtool.m4: error: problem compiling CXX test program"
19453 $rm -f confest.$objext
19455 # PORTME: override above test on systems where it is broken
19458 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19459 # hack all around it, let's just trust "g++" to DTRT.
19460 predep_objects_CXX=
19461 postdep_objects_CXX=
19466 case $cc_basename in
19468 # Adding this requires a known-good setup of shared libraries for
19469 # Sun compiler versions before 5.6, else PIC objects from an old
19470 # archive will be linked into the output, leading to subtle bugs.
19471 postdeps_CXX='-lCstd -lCrun'
19478 case " $postdeps_CXX " in
19479 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19482 lt_prog_compiler_wl_CXX=
19483 lt_prog_compiler_pic_CXX=
19484 lt_prog_compiler_static_CXX=
19486 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19487 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19489 # C++ specific cases for pic, static, wl, etc.
19490 if test "$GXX" = yes; then
19491 lt_prog_compiler_wl_CXX='-Wl,'
19492 lt_prog_compiler_static_CXX='-static'
19496 # All AIX code is PIC.
19497 if test "$host_cpu" = ia64; then
19498 # AIX 5 now supports IA64 processor
19499 lt_prog_compiler_static_CXX='-Bstatic'
19503 # FIXME: we need at least 68020 code to build shared libraries, but
19504 # adding the `-m68020' flag to GCC prevents building anything better,
19506 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19508 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19509 # PIC is the default for these OSes.
19511 mingw* | os2* | pw32*)
19512 # This hack is so that the source file can tell whether it is being
19513 # built for inclusion in a dll (and should export symbols for example).
19514 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19516 darwin* | rhapsody*)
19517 # PIC is the default on this platform
19518 # Common symbols not allowed in MH_DYLIB files
19519 lt_prog_compiler_pic_CXX='-fno-common'
19522 # DJGPP does not support shared libraries at all
19523 lt_prog_compiler_pic_CXX=
19526 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19527 # Instead, we relocate shared libraries at runtime.
19530 if test -d /usr/nec; then
19531 lt_prog_compiler_pic_CXX=-Kconform_pic
19535 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19536 # not for PA HP-UX.
19541 lt_prog_compiler_pic_CXX='-fPIC'
19546 lt_prog_compiler_pic_CXX='-fPIC'
19552 # All AIX code is PIC.
19553 if test "$host_cpu" = ia64; then
19554 # AIX 5 now supports IA64 processor
19555 lt_prog_compiler_static_CXX='-Bstatic'
19557 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19561 case $cc_basename in
19563 # Green Hills C++ Compiler
19564 # _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"
19569 # PIC is the default on this platform
19570 # Common symbols not allowed in MH_DYLIB files
19571 case $cc_basename in
19573 lt_prog_compiler_pic_CXX='-qnocommon'
19574 lt_prog_compiler_wl_CXX='-Wl,'
19579 case $cc_basename in
19581 lt_prog_compiler_pic_CXX='-KPIC'
19584 # Green Hills C++ Compiler
19585 lt_prog_compiler_pic_CXX='-pic'
19591 freebsd* | kfreebsd*-gnu | dragonfly*)
19592 # FreeBSD uses GNU C++
19594 hpux9* | hpux10* | hpux11*)
19595 case $cc_basename in
19597 lt_prog_compiler_wl_CXX='-Wl,'
19598 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19599 if test "$host_cpu" != ia64; then
19600 lt_prog_compiler_pic_CXX='+Z'
19604 lt_prog_compiler_wl_CXX='-Wl,'
19605 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19611 lt_prog_compiler_pic_CXX='+Z'
19620 # This is c89, which is MS Visual C++ (no shared libs)
19621 # Anyone wants to do a port?
19623 irix5* | irix6* | nonstopux*)
19624 case $cc_basename in
19626 lt_prog_compiler_wl_CXX='-Wl,'
19627 lt_prog_compiler_static_CXX='-non_shared'
19628 # CC pic flag -KPIC is the default.
19635 case $cc_basename in
19638 lt_prog_compiler_wl_CXX='--backend -Wl,'
19639 lt_prog_compiler_pic_CXX='-fPIC'
19643 lt_prog_compiler_wl_CXX='-Wl,'
19644 lt_prog_compiler_pic_CXX='-KPIC'
19645 lt_prog_compiler_static_CXX='-static'
19648 # Portland Group C++ compiler.
19649 lt_prog_compiler_wl_CXX='-Wl,'
19650 lt_prog_compiler_pic_CXX='-fpic'
19651 lt_prog_compiler_static_CXX='-Bstatic'
19655 # Make sure the PIC flag is empty. It appears that all Alpha
19656 # Linux and Compaq Tru64 Unix objects are PIC.
19657 lt_prog_compiler_pic_CXX=
19658 lt_prog_compiler_static_CXX='-non_shared'
19669 case $cc_basename in
19671 lt_prog_compiler_pic_CXX='-W c,exportall'
19679 osf3* | osf4* | osf5*)
19680 case $cc_basename in
19682 lt_prog_compiler_wl_CXX='--backend -Wl,'
19685 # Rational C++ 2.4.1
19686 lt_prog_compiler_pic_CXX='-pic'
19689 # Digital/Compaq C++
19690 lt_prog_compiler_wl_CXX='-Wl,'
19691 # Make sure the PIC flag is empty. It appears that all Alpha
19692 # Linux and Compaq Tru64 Unix objects are PIC.
19693 lt_prog_compiler_pic_CXX=
19694 lt_prog_compiler_static_CXX='-non_shared'
19703 case $cc_basename in
19705 # Sun C++ 4.2, 5.x and Centerline C++
19706 lt_prog_compiler_pic_CXX='-KPIC'
19707 lt_prog_compiler_static_CXX='-Bstatic'
19708 lt_prog_compiler_wl_CXX='-Qoption ld '
19711 # Green Hills C++ Compiler
19712 lt_prog_compiler_pic_CXX='-PIC'
19719 case $cc_basename in
19722 lt_prog_compiler_pic_CXX='-pic'
19723 lt_prog_compiler_static_CXX='-Bstatic'
19727 lt_prog_compiler_pic_CXX='-pic'
19734 case $cc_basename in
19736 # NonStop-UX NCC 3.20
19737 lt_prog_compiler_pic_CXX='-KPIC'
19743 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19744 case $cc_basename in
19746 lt_prog_compiler_wl_CXX='-Wl,'
19747 lt_prog_compiler_pic_CXX='-KPIC'
19748 lt_prog_compiler_static_CXX='-Bstatic'
19755 lt_prog_compiler_can_build_shared_CXX=no
19760 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19761 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19764 # Check to make sure the PIC flag actually works.
19766 if test -n "$lt_prog_compiler_pic_CXX"; then
19768 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19769 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19770 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19771 echo $ECHO_N "(cached) $ECHO_C" >&6
19773 lt_prog_compiler_pic_works_CXX=no
19774 ac_outfile=conftest.$ac_objext
19775 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19776 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19777 # Insert the option either (1) after the last *FLAGS variable, or
19778 # (2) before a word containing "conftest.", or (3) at the end.
19779 # Note that $ac_compile itself does not contain backslashes and begins
19780 # with a dollar sign (not a hyphen), so the echo should work correctly.
19781 # The option is referenced via a variable to avoid confusing sed.
19782 lt_compile=`echo "$ac_compile" | $SED \
19783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19785 -e 's:$: $lt_compiler_flag:'`
19786 (eval echo "\"\$as_me:19786: $lt_compile\"" >&5)
19787 (eval "$lt_compile" 2>conftest.err)
19789 cat conftest.err >&5
19790 echo "$as_me:19790: \$? = $ac_status" >&5
19791 if (exit $ac_status) && test -s "$ac_outfile"; then
19792 # The compiler can only warn and ignore the option if not recognized
19793 # So say no if there are warnings other than the usual output.
19794 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19795 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19796 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19797 lt_prog_compiler_pic_works_CXX=yes
19803 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19804 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19806 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19807 case $lt_prog_compiler_pic_CXX in
19809 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19812 lt_prog_compiler_pic_CXX=
19813 lt_prog_compiler_can_build_shared_CXX=no
19818 # For platforms which do not support PIC, -DPIC is meaningless:
19820 lt_prog_compiler_pic_CXX=
19823 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19828 # Check to make sure the static flag actually works.
19830 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19831 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19832 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19833 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19834 echo $ECHO_N "(cached) $ECHO_C" >&6
19836 lt_prog_compiler_static_works_CXX=no
19837 save_LDFLAGS="$LDFLAGS"
19838 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19839 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19840 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19841 # The linker can only warn and ignore the option if not recognized
19842 # So say no if there are warnings
19843 if test -s conftest.err; then
19844 # Append any errors to the config.log.
19845 cat conftest.err 1>&5
19846 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19847 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19848 if diff conftest.exp conftest.er2 >/dev/null; then
19849 lt_prog_compiler_static_works_CXX=yes
19852 lt_prog_compiler_static_works_CXX=yes
19856 LDFLAGS="$save_LDFLAGS"
19859 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19860 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19862 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19865 lt_prog_compiler_static_CXX=
19869 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19870 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19871 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19872 echo $ECHO_N "(cached) $ECHO_C" >&6
19874 lt_cv_prog_compiler_c_o_CXX=no
19875 $rm -r conftest 2>/dev/null
19879 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19881 lt_compiler_flag="-o out/conftest2.$ac_objext"
19882 # Insert the option either (1) after the last *FLAGS variable, or
19883 # (2) before a word containing "conftest.", or (3) at the end.
19884 # Note that $ac_compile itself does not contain backslashes and begins
19885 # with a dollar sign (not a hyphen), so the echo should work correctly.
19886 lt_compile=`echo "$ac_compile" | $SED \
19887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19889 -e 's:$: $lt_compiler_flag:'`
19890 (eval echo "\"\$as_me:19890: $lt_compile\"" >&5)
19891 (eval "$lt_compile" 2>out/conftest.err)
19893 cat out/conftest.err >&5
19894 echo "$as_me:19894: \$? = $ac_status" >&5
19895 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19897 # The compiler can only warn and ignore the option if not recognized
19898 # So say no if there are warnings
19899 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19900 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19901 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19902 lt_cv_prog_compiler_c_o_CXX=yes
19907 # SGI C++ compiler will create directory out/ii_files/ for
19908 # template instantiation
19909 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19910 $rm out/* && rmdir out
19916 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19917 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19920 hard_links="nottested"
19921 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19922 # do not overwrite the value of need_locks provided by the user
19923 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19924 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19927 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19929 ln conftest.a conftest.b 2>&5 || hard_links=no
19930 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19931 { echo "$as_me:$LINENO: result: $hard_links" >&5
19932 echo "${ECHO_T}$hard_links" >&6; }
19933 if test "$hard_links" = no; then
19934 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19935 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19942 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19943 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19945 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19948 # If we're using GNU nm, then we don't want the "-C" option.
19949 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19950 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19951 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'
19953 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'
19957 export_symbols_cmds_CXX="$ltdll_cmds"
19960 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'
19963 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19967 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19968 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19969 test "$ld_shlibs_CXX" = no && can_build_shared=no
19972 # Do we need to explicitly link libc?
19974 case "x$archive_cmds_need_lc_CXX" in
19976 # Assume -lc should be added
19977 archive_cmds_need_lc_CXX=yes
19979 if test "$enable_shared" = yes && test "$GCC" = yes; then
19980 case $archive_cmds_CXX in
19982 # FIXME: we may have to deal with multi-command sequences.
19985 # Test whether the compiler implicitly links with -lc since on some
19986 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19987 # to ld, don't add -lc before -lgcc.
19988 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19989 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19991 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19994 (eval $ac_compile) 2>&5
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); } 2>conftest.err; then
20000 libobjs=conftest.$ac_objext
20002 wl=$lt_prog_compiler_wl_CXX
20003 pic_flag=$lt_prog_compiler_pic_CXX
20009 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20010 allow_undefined_flag_CXX=
20011 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20012 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); }
20017 archive_cmds_need_lc_CXX=no
20019 archive_cmds_need_lc_CXX=yes
20021 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20023 cat conftest.err 1>&5
20026 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20027 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20034 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20035 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20036 library_names_spec=
20037 libname_spec='lib$name'
20041 postuninstall_cmds=
20045 shlibpath_overrides_runpath=unknown
20047 dynamic_linker="$host_os ld.so"
20048 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20049 if test "$GCC" = yes; then
20050 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20051 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20052 # if the path contains ";" then we assume it to be the separator
20053 # otherwise default to the standard path separator (i.e. ":") - it is
20054 # assumed that no part of a normal pathname contains ";" but that should
20055 # okay in the real world where ";" in dirpaths is itself problematic.
20056 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20058 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20061 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20063 need_lib_prefix=unknown
20064 hardcode_into_libs=no
20066 # when you set need_version to no, make sure it does not cause -set_version
20067 # flags to be left without arguments
20068 need_version=unknown
20073 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20074 shlibpath_var=LIBPATH
20076 # AIX 3 has no versioning support, so we append a major version to the name.
20077 soname_spec='${libname}${release}${shared_ext}$major'
20084 hardcode_into_libs=yes
20085 if test "$host_cpu" = ia64; then
20086 # AIX 5 supports IA64
20087 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20088 shlibpath_var=LD_LIBRARY_PATH
20090 # With GCC up to 2.95.x, collect2 would create an import file
20091 # for dependence libraries. The import file would start with
20092 # the line `#! .'. This would cause the generated library to
20093 # depend on `.', always an invalid library. This was fixed in
20094 # development snapshots of GCC prior to 3.0.
20096 aix4 | aix4.[01] | aix4.[01].*)
20097 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20099 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20102 can_build_shared=no
20106 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20107 # soname into executable. Probably we can add versioning support to
20108 # collect2, so additional links can be useful in future.
20109 if test "$aix_use_runtimelinking" = yes; then
20110 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20111 # instead of lib<name>.a to let people know that these are not
20112 # typical AIX shared libraries.
20113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20115 # We preserve .a as extension for shared libraries through AIX4.2
20116 # and later when we are not doing run time linking.
20117 library_names_spec='${libname}${release}.a $libname.a'
20118 soname_spec='${libname}${release}${shared_ext}$major'
20120 shlibpath_var=LIBPATH
20125 library_names_spec='$libname.ixlibrary $libname.a'
20126 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20127 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'
20131 library_names_spec='${libname}${shared_ext}'
20132 dynamic_linker="$host_os ld.so"
20133 shlibpath_var=LIBRARY_PATH
20139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20140 soname_spec='${libname}${release}${shared_ext}$major'
20141 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20142 shlibpath_var=LD_LIBRARY_PATH
20143 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20144 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20145 # the default ld.so.conf also contains /usr/contrib/lib and
20146 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20147 # libtool to hard-code these into programs
20150 cygwin* | mingw* | pw32*)
20151 version_type=windows
20156 case $GCC,$host_os in
20157 yes,cygwin* | yes,mingw* | yes,pw32*)
20158 library_names_spec='$libname.dll.a'
20159 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20160 postinstall_cmds='base_file=`basename \${file}`~
20161 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20162 dldir=$destdir/`dirname \$dlpath`~
20163 test -d \$dldir || mkdir -p \$dldir~
20164 $install_prog $dir/$dlname \$dldir/$dlname~
20165 chmod a+x \$dldir/$dlname'
20166 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20167 dlpath=$dir/\$dldll~
20169 shlibpath_overrides_runpath=yes
20173 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20174 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20175 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20178 # MinGW DLLs use traditional 'lib' prefix
20179 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20180 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20181 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20182 # It is most probably a Windows format PATH printed by
20183 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20184 # path with ; separators, and with drive letters. We can handle the
20185 # drive letters (cygwin fileutils understands them), so leave them,
20186 # especially as we might pass files found there to a mingw objdump,
20187 # which wouldn't understand a cygwinified path. Ahh.
20188 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20190 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20194 # pw32 DLLs use 'pw' prefix rather than 'lib'
20195 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20201 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20204 dynamic_linker='Win32 ld.exe'
20205 # FIXME: first we should search . and the directory the executable is in
20209 darwin* | rhapsody*)
20210 dynamic_linker="$host_os dyld"
20211 version_type=darwin
20214 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20215 soname_spec='${libname}${release}${major}$shared_ext'
20216 shlibpath_overrides_runpath=yes
20217 shlibpath_var=DYLD_LIBRARY_PATH
20218 shrext_cmds='.dylib'
20219 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20220 if test "$GCC" = yes; then
20221 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"`
20223 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20225 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20233 soname_spec='${libname}${release}${shared_ext}$major'
20234 shlibpath_var=LD_LIBRARY_PATH
20245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20246 soname_spec='${libname}${release}${shared_ext}$major'
20247 shlibpath_var=LD_LIBRARY_PATH
20248 shlibpath_overrides_runpath=no
20249 hardcode_into_libs=yes
20250 dynamic_linker='GNU ld.so'
20253 freebsd* | dragonfly*)
20254 # DragonFly does not have aout. When/if they implement a new
20255 # versioning mechanism, adjust this.
20256 if test -x /usr/bin/objformat; then
20257 objformat=`/usr/bin/objformat`
20260 freebsd[123]*) objformat=aout ;;
20261 *) objformat=elf ;;
20264 version_type=freebsd-$objformat
20265 case $version_type in
20267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20272 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20276 shlibpath_var=LD_LIBRARY_PATH
20279 shlibpath_overrides_runpath=yes
20281 freebsd3.[01]* | freebsdelf3.[01]*)
20282 shlibpath_overrides_runpath=yes
20283 hardcode_into_libs=yes
20285 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20286 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20287 shlibpath_overrides_runpath=no
20288 hardcode_into_libs=yes
20290 freebsd*) # from 4.6 on
20291 shlibpath_overrides_runpath=yes
20292 hardcode_into_libs=yes
20301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20302 soname_spec='${libname}${release}${shared_ext}$major'
20303 shlibpath_var=LD_LIBRARY_PATH
20304 hardcode_into_libs=yes
20307 hpux9* | hpux10* | hpux11*)
20308 # Give a soname corresponding to the major version so that dld.sl refuses to
20309 # link against other versions.
20316 hardcode_into_libs=yes
20317 dynamic_linker="$host_os dld.so"
20318 shlibpath_var=LD_LIBRARY_PATH
20319 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20321 soname_spec='${libname}${release}${shared_ext}$major'
20322 if test "X$HPUX_IA64_MODE" = X32; then
20323 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20325 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20327 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20331 hardcode_into_libs=yes
20332 dynamic_linker="$host_os dld.sl"
20333 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20334 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20336 soname_spec='${libname}${release}${shared_ext}$major'
20337 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20338 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20342 dynamic_linker="$host_os dld.sl"
20343 shlibpath_var=SHLIB_PATH
20344 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20346 soname_spec='${libname}${release}${shared_ext}$major'
20349 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20350 postinstall_cmds='chmod 555 $lib'
20357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20358 soname_spec='${libname}${release}${shared_ext}$major'
20359 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20360 shlibpath_var=LD_LIBRARY_PATH
20361 shlibpath_overrides_runpath=no
20362 hardcode_into_libs=yes
20365 irix5* | irix6* | nonstopux*)
20367 nonstopux*) version_type=nonstopux ;;
20369 if test "$lt_cv_prog_gnu_ld" = yes; then
20377 soname_spec='${libname}${release}${shared_ext}$major'
20378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20380 irix5* | nonstopux*)
20381 libsuff= shlibsuff=
20384 case $LD in # libtool.m4 will add one of these switches to LD
20385 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20386 libsuff= shlibsuff= libmagic=32-bit;;
20387 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20388 libsuff=32 shlibsuff=N32 libmagic=N32;;
20389 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20390 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20391 *) libsuff= shlibsuff= libmagic=never-match;;
20395 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20396 shlibpath_overrides_runpath=no
20397 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20398 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20399 hardcode_into_libs=yes
20402 # No shared lib support for Linux oldld, aout, or coff.
20403 linux*oldld* | linux*aout* | linux*coff*)
20407 # This must be Linux ELF.
20412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20413 soname_spec='${libname}${release}${shared_ext}$major'
20414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20415 shlibpath_var=LD_LIBRARY_PATH
20416 shlibpath_overrides_runpath=no
20417 # This implies no fast_install, which is unacceptable.
20418 # Some rework will be needed to allow for fast_install
20419 # before this can be enabled.
20420 hardcode_into_libs=yes
20422 # Append ld.so.conf contents to the search path
20423 if test -f /etc/ld.so.conf; then
20424 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' ' '`
20425 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20428 # We used to test for /lib/ld.so.1 and disable shared libraries on
20429 # powerpc, because MkLinux only supported shared libraries with the
20430 # GNU dynamic linker. Since this was broken with cross compilers,
20431 # most powerpc-linux boxes support dynamic linking these days and
20432 # people can always --disable-shared, the test was removed, and we
20433 # assume the GNU/Linux dynamic linker is in use.
20434 dynamic_linker='GNU/Linux ld.so'
20441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20442 soname_spec='${libname}${release}${shared_ext}$major'
20443 shlibpath_var=LD_LIBRARY_PATH
20444 shlibpath_overrides_runpath=no
20445 hardcode_into_libs=yes
20446 dynamic_linker='GNU ld.so'
20453 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20456 dynamic_linker='NetBSD (a.out) ld.so'
20458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20459 soname_spec='${libname}${release}${shared_ext}$major'
20460 dynamic_linker='NetBSD ld.elf_so'
20462 shlibpath_var=LD_LIBRARY_PATH
20463 shlibpath_overrides_runpath=yes
20464 hardcode_into_libs=yes
20469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20470 shlibpath_var=LD_LIBRARY_PATH
20471 shlibpath_overrides_runpath=yes
20478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20479 soname_spec='${libname}${release}${shared_ext}$major'
20480 shlibpath_var=LD_LIBRARY_PATH
20481 shlibpath_overrides_runpath=yes
20486 sys_lib_dlsearch_path_spec="/usr/lib"
20488 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20490 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20491 *) need_version=no ;;
20493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20495 shlibpath_var=LD_LIBRARY_PATH
20496 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20498 openbsd2.[89] | openbsd2.[89].*)
20499 shlibpath_overrides_runpath=no
20502 shlibpath_overrides_runpath=yes
20506 shlibpath_overrides_runpath=yes
20511 libname_spec='$name'
20514 library_names_spec='$libname${shared_ext} $libname.a'
20515 dynamic_linker='OS/2 ld.exe'
20516 shlibpath_var=LIBPATH
20519 osf3* | osf4* | osf5*)
20523 soname_spec='${libname}${release}${shared_ext}$major'
20524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20525 shlibpath_var=LD_LIBRARY_PATH
20526 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20527 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20535 soname_spec='${libname}${release}${shared_ext}$major'
20536 shlibpath_var=LD_LIBRARY_PATH
20537 shlibpath_overrides_runpath=yes
20538 hardcode_into_libs=yes
20539 # ldd complains unless libraries are executable
20540 postinstall_cmds='chmod +x $lib'
20545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20546 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20547 shlibpath_var=LD_LIBRARY_PATH
20548 shlibpath_overrides_runpath=yes
20549 if test "$with_gnu_ld" = yes; then
20557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20558 soname_spec='${libname}${release}${shared_ext}$major'
20559 shlibpath_var=LD_LIBRARY_PATH
20560 case $host_vendor in
20562 shlibpath_overrides_runpath=no
20564 export_dynamic_flag_spec='${wl}-Blargedynsym'
20565 runpath_var=LD_RUN_PATH
20573 shlibpath_overrides_runpath=no
20574 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20580 if test -d /usr/nec ;then
20582 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20583 soname_spec='$libname${shared_ext}.$major'
20584 shlibpath_var=LD_LIBRARY_PATH
20588 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20589 version_type=freebsd-elf
20592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20593 soname_spec='${libname}${release}${shared_ext}$major'
20594 shlibpath_var=LD_LIBRARY_PATH
20595 hardcode_into_libs=yes
20596 if test "$with_gnu_ld" = yes; then
20597 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20598 shlibpath_overrides_runpath=no
20600 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20601 shlibpath_overrides_runpath=yes
20604 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20608 sys_lib_dlsearch_path_spec='/usr/lib'
20613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20614 soname_spec='${libname}${release}${shared_ext}$major'
20615 shlibpath_var=LD_LIBRARY_PATH
20622 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20623 echo "${ECHO_T}$dynamic_linker" >&6; }
20624 test "$dynamic_linker" = no && can_build_shared=no
20626 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20627 if test "$GCC" = yes; then
20628 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20631 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20632 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20633 hardcode_action_CXX=
20634 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20635 test -n "$runpath_var_CXX" || \
20636 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20638 # We can hardcode non-existant directories.
20639 if test "$hardcode_direct_CXX" != no &&
20640 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20641 # have to relink, otherwise we might link with an installed library
20642 # when we should be linking with a yet-to-be-installed one
20643 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20644 test "$hardcode_minus_L_CXX" != no; then
20645 # Linking always hardcodes the temporary library directory.
20646 hardcode_action_CXX=relink
20648 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20649 hardcode_action_CXX=immediate
20652 # We cannot hardcode anything, or else we can only hardcode existing
20654 hardcode_action_CXX=unsupported
20656 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20657 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20659 if test "$hardcode_action_CXX" = relink; then
20660 # Fast installation is not supported
20661 enable_fast_install=no
20662 elif test "$shlibpath_overrides_runpath" = yes ||
20663 test "$enable_shared" = no; then
20664 # Fast installation is not necessary
20665 enable_fast_install=needless
20669 # The else clause should only fire when bootstrapping the
20670 # libtool distribution, otherwise you forgot to ship ltmain.sh
20671 # with your package, and you will get complaints that there are
20672 # no rules to generate ltmain.sh.
20673 if test -f "$ltmain"; then
20674 # See if we are running on zsh, and set the options which allow our commands through
20675 # without removal of \ escapes.
20676 if test -n "${ZSH_VERSION+set}" ; then
20677 setopt NO_GLOB_SUBST
20679 # Now quote all the things that may contain metacharacters while being
20680 # careful not to overquote the AC_SUBSTed values. We take copies of the
20681 # variables and quote the copies for generation of the libtool script.
20682 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20684 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20685 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20686 deplibs_check_method reload_flag reload_cmds need_locks \
20687 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20688 lt_cv_sys_global_symbol_to_c_name_address \
20689 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20690 old_postinstall_cmds old_postuninstall_cmds \
20694 lt_prog_compiler_wl_CXX \
20695 lt_prog_compiler_pic_CXX \
20696 lt_prog_compiler_static_CXX \
20697 lt_prog_compiler_no_builtin_flag_CXX \
20698 export_dynamic_flag_spec_CXX \
20699 thread_safe_flag_spec_CXX \
20700 whole_archive_flag_spec_CXX \
20701 enable_shared_with_static_runtimes_CXX \
20702 old_archive_cmds_CXX \
20703 old_archive_from_new_cmds_CXX \
20704 predep_objects_CXX \
20705 postdep_objects_CXX \
20708 compiler_lib_search_path_CXX \
20710 archive_expsym_cmds_CXX \
20711 postinstall_cmds_CXX \
20712 postuninstall_cmds_CXX \
20713 old_archive_from_expsyms_cmds_CXX \
20714 allow_undefined_flag_CXX \
20715 no_undefined_flag_CXX \
20716 export_symbols_cmds_CXX \
20717 hardcode_libdir_flag_spec_CXX \
20718 hardcode_libdir_flag_spec_ld_CXX \
20719 hardcode_libdir_separator_CXX \
20720 hardcode_automatic_CXX \
20722 module_expsym_cmds_CXX \
20723 lt_cv_prog_compiler_c_o_CXX \
20724 exclude_expsyms_CXX \
20725 include_expsyms_CXX; do
20728 old_archive_cmds_CXX | \
20729 old_archive_from_new_cmds_CXX | \
20730 archive_cmds_CXX | \
20731 archive_expsym_cmds_CXX | \
20732 module_cmds_CXX | \
20733 module_expsym_cmds_CXX | \
20734 old_archive_from_expsyms_cmds_CXX | \
20735 export_symbols_cmds_CXX | \
20736 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20737 postinstall_cmds | postuninstall_cmds | \
20738 old_postinstall_cmds | old_postuninstall_cmds | \
20739 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20740 # Double-quote double-evaled strings.
20741 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20744 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20750 *'\$0 --fallback-echo"')
20751 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20757 cat <<__EOF__ >> "$cfgfile"
20758 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20760 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20762 # Shell to use when invoking shell scripts.
20765 # Whether or not to build shared libraries.
20766 build_libtool_libs=$enable_shared
20768 # Whether or not to build static libraries.
20769 build_old_libs=$enable_static
20771 # Whether or not to add -lc for building shared libraries.
20772 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20774 # Whether or not to disallow shared libs when runtime libs are static
20775 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20777 # Whether or not to optimize for fast installation.
20778 fast_install=$enable_fast_install
20781 host_alias=$host_alias
20785 # The build system.
20786 build_alias=$build_alias
20790 # An echo program that does not interpret backslashes.
20795 AR_FLAGS=$lt_AR_FLAGS
20800 # LTCC compiler flags.
20801 LTCFLAGS=$lt_LTCFLAGS
20803 # A language-specific compiler.
20804 CC=$lt_compiler_CXX
20806 # Is the compiler the GNU C compiler?
20812 # The linker used to build libraries.
20815 # Whether we need hard or soft links.
20818 # A BSD-compatible nm program.
20821 # A symbol stripping program
20824 # Used to examine libraries when file_magic_cmd begins "file"
20825 MAGIC_CMD=$MAGIC_CMD
20827 # Used on cygwin: DLL creation program.
20830 # Used on cygwin: object dumper.
20833 # Used on cygwin: assembler.
20836 # The name of the directory that contains temporary libtool files.
20839 # How to create reloadable object files.
20840 reload_flag=$lt_reload_flag
20841 reload_cmds=$lt_reload_cmds
20843 # How to pass a linker flag through the compiler.
20844 wl=$lt_lt_prog_compiler_wl_CXX
20846 # Object file suffix (normally "o").
20847 objext="$ac_objext"
20849 # Old archive suffix (normally "a").
20852 # Shared library suffix (normally ".so").
20853 shrext_cmds='$shrext_cmds'
20855 # Executable file suffix (normally "").
20858 # Additional compiler flags for building library objects.
20859 pic_flag=$lt_lt_prog_compiler_pic_CXX
20862 # What is the maximum length of a command?
20863 max_cmd_len=$lt_cv_sys_max_cmd_len
20865 # Does compiler simultaneously support -c and -o options?
20866 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20868 # Must we lock files when doing compilation?
20869 need_locks=$lt_need_locks
20871 # Do we need the lib prefix for modules?
20872 need_lib_prefix=$need_lib_prefix
20874 # Do we need a version for libraries?
20875 need_version=$need_version
20877 # Whether dlopen is supported.
20878 dlopen_support=$enable_dlopen
20880 # Whether dlopen of programs is supported.
20881 dlopen_self=$enable_dlopen_self
20883 # Whether dlopen of statically linked programs is supported.
20884 dlopen_self_static=$enable_dlopen_self_static
20886 # Compiler flag to prevent dynamic linking.
20887 link_static_flag=$lt_lt_prog_compiler_static_CXX
20889 # Compiler flag to turn off builtin functions.
20890 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20892 # Compiler flag to allow reflexive dlopens.
20893 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20895 # Compiler flag to generate shared objects directly from archives.
20896 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20898 # Compiler flag to generate thread-safe objects.
20899 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20901 # Library versioning type.
20902 version_type=$version_type
20904 # Format of library name prefix.
20905 libname_spec=$lt_libname_spec
20907 # List of archive names. First name is the real one, the rest are links.
20908 # The last name is the one that the linker finds with -lNAME.
20909 library_names_spec=$lt_library_names_spec
20911 # The coded name of the library, if different from the real name.
20912 soname_spec=$lt_soname_spec
20914 # Commands used to build and install an old-style archive.
20916 old_archive_cmds=$lt_old_archive_cmds_CXX
20917 old_postinstall_cmds=$lt_old_postinstall_cmds
20918 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20920 # Create an old-style archive from a shared archive.
20921 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20923 # Create a temporary old-style archive to link instead of a shared archive.
20924 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20926 # Commands used to build and install a shared archive.
20927 archive_cmds=$lt_archive_cmds_CXX
20928 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20929 postinstall_cmds=$lt_postinstall_cmds
20930 postuninstall_cmds=$lt_postuninstall_cmds
20932 # Commands used to build a loadable module (assumed same as above if empty)
20933 module_cmds=$lt_module_cmds_CXX
20934 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20936 # Commands to strip libraries.
20937 old_striplib=$lt_old_striplib
20938 striplib=$lt_striplib
20940 # Dependencies to place before the objects being linked to create a
20942 predep_objects=$lt_predep_objects_CXX
20944 # Dependencies to place after the objects being linked to create a
20946 postdep_objects=$lt_postdep_objects_CXX
20948 # Dependencies to place before the objects being linked to create a
20950 predeps=$lt_predeps_CXX
20952 # Dependencies to place after the objects being linked to create a
20954 postdeps=$lt_postdeps_CXX
20956 # The library search path used internally by the compiler when linking
20957 # a shared library.
20958 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20960 # Method to check whether dependent libraries are shared objects.
20961 deplibs_check_method=$lt_deplibs_check_method
20963 # Command to use when deplibs_check_method == file_magic.
20964 file_magic_cmd=$lt_file_magic_cmd
20966 # Flag that allows shared libraries with undefined symbols to be built.
20967 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20969 # Flag that forces no undefined symbols.
20970 no_undefined_flag=$lt_no_undefined_flag_CXX
20972 # Commands used to finish a libtool library installation in a directory.
20973 finish_cmds=$lt_finish_cmds
20975 # Same as above, but a single script fragment to be evaled but not shown.
20976 finish_eval=$lt_finish_eval
20978 # Take the output of nm and produce a listing of raw symbols and C names.
20979 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20981 # Transform the output of nm in a proper C declaration
20982 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20984 # Transform the output of nm in a C name address pair
20985 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20987 # This is the shared library runtime path variable.
20988 runpath_var=$runpath_var
20990 # This is the shared library path variable.
20991 shlibpath_var=$shlibpath_var
20993 # Is shlibpath searched before the hard-coded library search path?
20994 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20996 # How to hardcode a shared library path into an executable.
20997 hardcode_action=$hardcode_action_CXX
20999 # Whether we should hardcode library paths into libraries.
21000 hardcode_into_libs=$hardcode_into_libs
21002 # Flag to hardcode \$libdir into a binary during linking.
21003 # This must work even if \$libdir does not exist.
21004 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21006 # If ld is used when linking, flag to hardcode \$libdir into
21007 # a binary during linking. This must work even if \$libdir does
21009 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21011 # Whether we need a single -rpath flag with a separated argument.
21012 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21014 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21015 # resulting binary.
21016 hardcode_direct=$hardcode_direct_CXX
21018 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21019 # resulting binary.
21020 hardcode_minus_L=$hardcode_minus_L_CXX
21022 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21023 # the resulting binary.
21024 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21026 # Set to yes if building a shared library automatically hardcodes DIR into the library
21027 # and all subsequent libraries and executables linked against it.
21028 hardcode_automatic=$hardcode_automatic_CXX
21030 # Variables whose values should be saved in libtool wrapper scripts and
21031 # restored at relink time.
21032 variables_saved_for_relink="$variables_saved_for_relink"
21034 # Whether libtool must link a program against all its dependency libraries.
21035 link_all_deplibs=$link_all_deplibs_CXX
21037 # Compile-time system search path for libraries
21038 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21040 # Run-time system search path for libraries
21041 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21043 # Fix the shell variable \$srcfile for the compiler.
21044 fix_srcfile_path="$fix_srcfile_path_CXX"
21046 # Set to yes if exported symbols are required.
21047 always_export_symbols=$always_export_symbols_CXX
21049 # The commands to list exported symbols.
21050 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21052 # The commands to extract the exported symbol list from a shared archive.
21053 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21055 # Symbols that should not be listed in the preloaded symbols.
21056 exclude_expsyms=$lt_exclude_expsyms_CXX
21058 # Symbols that must always be exported.
21059 include_expsyms=$lt_include_expsyms_CXX
21061 # ### END LIBTOOL TAG CONFIG: $tagname
21067 # If there is no Makefile yet, we rely on a make rule to execute
21068 # `config.status --recheck' to rerun these tests and create the
21069 # libtool script then.
21070 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21071 if test -f "$ltmain_in"; then
21072 test -f Makefile && make "$ltmain"
21078 ac_cpp='$CPP $CPPFLAGS'
21079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21087 with_gnu_ldcxx=$with_gnu_ld
21088 with_gnu_ld=$lt_save_with_gnu_ld
21089 lt_cv_path_LDCXX=$lt_cv_path_LD
21090 lt_cv_path_LD=$lt_save_path_LD
21091 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21092 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21100 if test -n "$F77" && test "X$F77" != "Xno"; then
21103 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21104 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21105 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21108 archive_cmds_need_lc_F77=no
21109 allow_undefined_flag_F77=
21110 always_export_symbols_F77=no
21111 archive_expsym_cmds_F77=
21112 export_dynamic_flag_spec_F77=
21113 hardcode_direct_F77=no
21114 hardcode_libdir_flag_spec_F77=
21115 hardcode_libdir_flag_spec_ld_F77=
21116 hardcode_libdir_separator_F77=
21117 hardcode_minus_L_F77=no
21118 hardcode_automatic_F77=no
21120 module_expsym_cmds_F77=
21121 link_all_deplibs_F77=unknown
21122 old_archive_cmds_F77=$old_archive_cmds
21123 no_undefined_flag_F77=
21124 whole_archive_flag_spec_F77=
21125 enable_shared_with_static_runtimes_F77=no
21127 # Source file extension for f77 test sources.
21130 # Object file extension for compiled f77 test sources.
21134 # Code to be used in simple compile tests
21135 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21137 # Code to be used in simple link tests
21138 lt_simple_link_test_code=" program t\n end\n"
21140 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21142 # If no C compiler was specified, use CC.
21145 # If no C compiler flags were specified, use CFLAGS.
21146 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21148 # Allow CC to be a program name with arguments.
21152 # save warnings/boilerplate of simple test code
21153 ac_outfile=conftest.$ac_objext
21154 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21155 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21156 _lt_compiler_boilerplate=`cat conftest.err`
21159 ac_outfile=conftest.$ac_objext
21160 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21161 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21162 _lt_linker_boilerplate=`cat conftest.err`
21166 # Allow CC to be a program name with arguments.
21171 for cc_temp in $compiler""; do
21173 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21174 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21179 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21182 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21183 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21184 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21185 echo "${ECHO_T}$can_build_shared" >&6; }
21187 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21188 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21189 test "$can_build_shared" = "no" && enable_shared=no
21191 # On AIX, shared libraries and static libraries use the same namespace, and
21192 # are all built from PIC.
21195 test "$enable_shared" = yes && enable_static=no
21196 if test -n "$RANLIB"; then
21197 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21198 postinstall_cmds='$RANLIB $lib'
21202 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21203 test "$enable_shared" = yes && enable_static=no
21207 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21208 echo "${ECHO_T}$enable_shared" >&6; }
21210 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21211 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21212 # Make sure either enable_shared or enable_static is yes.
21213 test "$enable_shared" = yes || enable_static=yes
21214 { echo "$as_me:$LINENO: result: $enable_static" >&5
21215 echo "${ECHO_T}$enable_static" >&6; }
21220 lt_prog_compiler_wl_F77=
21221 lt_prog_compiler_pic_F77=
21222 lt_prog_compiler_static_F77=
21224 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21225 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21227 if test "$GCC" = yes; then
21228 lt_prog_compiler_wl_F77='-Wl,'
21229 lt_prog_compiler_static_F77='-static'
21233 # All AIX code is PIC.
21234 if test "$host_cpu" = ia64; then
21235 # AIX 5 now supports IA64 processor
21236 lt_prog_compiler_static_F77='-Bstatic'
21241 # FIXME: we need at least 68020 code to build shared libraries, but
21242 # adding the `-m68020' flag to GCC prevents building anything better,
21244 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21247 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21248 # PIC is the default for these OSes.
21251 mingw* | pw32* | os2*)
21252 # This hack is so that the source file can tell whether it is being
21253 # built for inclusion in a dll (and should export symbols for example).
21254 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21257 darwin* | rhapsody*)
21258 # PIC is the default on this platform
21259 # Common symbols not allowed in MH_DYLIB files
21260 lt_prog_compiler_pic_F77='-fno-common'
21264 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21265 # Instead, we relocate shared libraries at runtime.
21269 # Just because we use GCC doesn't mean we suddenly get shared libraries
21270 # on systems that don't support them.
21271 lt_prog_compiler_can_build_shared_F77=no
21276 if test -d /usr/nec; then
21277 lt_prog_compiler_pic_F77=-Kconform_pic
21282 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21283 # not for PA HP-UX.
21289 lt_prog_compiler_pic_F77='-fPIC'
21295 lt_prog_compiler_pic_F77='-fPIC'
21299 # PORTME Check for flag to pass linker flags through the system compiler.
21302 lt_prog_compiler_wl_F77='-Wl,'
21303 if test "$host_cpu" = ia64; then
21304 # AIX 5 now supports IA64 processor
21305 lt_prog_compiler_static_F77='-Bstatic'
21307 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21311 # PIC is the default on this platform
21312 # Common symbols not allowed in MH_DYLIB files
21313 case $cc_basename in
21315 lt_prog_compiler_pic_F77='-qnocommon'
21316 lt_prog_compiler_wl_F77='-Wl,'
21321 mingw* | pw32* | os2*)
21322 # This hack is so that the source file can tell whether it is being
21323 # built for inclusion in a dll (and should export symbols for example).
21324 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21327 hpux9* | hpux10* | hpux11*)
21328 lt_prog_compiler_wl_F77='-Wl,'
21329 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21330 # not for PA HP-UX.
21336 lt_prog_compiler_pic_F77='+Z'
21339 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21340 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21343 irix5* | irix6* | nonstopux*)
21344 lt_prog_compiler_wl_F77='-Wl,'
21345 # PIC (with -KPIC) is the default.
21346 lt_prog_compiler_static_F77='-non_shared'
21350 lt_prog_compiler_pic_F77='-KPIC'
21351 lt_prog_compiler_static_F77='-Bstatic'
21355 case $cc_basename in
21357 lt_prog_compiler_wl_F77='-Wl,'
21358 lt_prog_compiler_pic_F77='-KPIC'
21359 lt_prog_compiler_static_F77='-static'
21361 pgcc* | pgf77* | pgf90* | pgf95*)
21362 # Portland Group compilers (*not* the Pentium gcc compiler,
21363 # which looks to be a dead project)
21364 lt_prog_compiler_wl_F77='-Wl,'
21365 lt_prog_compiler_pic_F77='-fpic'
21366 lt_prog_compiler_static_F77='-Bstatic'
21369 lt_prog_compiler_wl_F77='-Wl,'
21370 # All Alpha code is PIC.
21371 lt_prog_compiler_static_F77='-non_shared'
21376 osf3* | osf4* | osf5*)
21377 lt_prog_compiler_wl_F77='-Wl,'
21378 # All OSF/1 code is PIC.
21379 lt_prog_compiler_static_F77='-non_shared'
21383 lt_prog_compiler_pic_F77='-KPIC'
21384 lt_prog_compiler_static_F77='-Bstatic'
21385 case $cc_basename in
21386 f77* | f90* | f95*)
21387 lt_prog_compiler_wl_F77='-Qoption ld ';;
21389 lt_prog_compiler_wl_F77='-Wl,';;
21394 lt_prog_compiler_wl_F77='-Qoption ld '
21395 lt_prog_compiler_pic_F77='-PIC'
21396 lt_prog_compiler_static_F77='-Bstatic'
21399 sysv4 | sysv4.2uw2* | sysv4.3*)
21400 lt_prog_compiler_wl_F77='-Wl,'
21401 lt_prog_compiler_pic_F77='-KPIC'
21402 lt_prog_compiler_static_F77='-Bstatic'
21406 if test -d /usr/nec ;then
21407 lt_prog_compiler_pic_F77='-Kconform_pic'
21408 lt_prog_compiler_static_F77='-Bstatic'
21412 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21413 lt_prog_compiler_wl_F77='-Wl,'
21414 lt_prog_compiler_pic_F77='-KPIC'
21415 lt_prog_compiler_static_F77='-Bstatic'
21419 lt_prog_compiler_wl_F77='-Wl,'
21420 lt_prog_compiler_can_build_shared_F77=no
21424 lt_prog_compiler_pic_F77='-pic'
21425 lt_prog_compiler_static_F77='-Bstatic'
21429 lt_prog_compiler_can_build_shared_F77=no
21434 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21435 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21438 # Check to make sure the PIC flag actually works.
21440 if test -n "$lt_prog_compiler_pic_F77"; then
21442 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21443 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21444 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21445 echo $ECHO_N "(cached) $ECHO_C" >&6
21447 lt_prog_compiler_pic_works_F77=no
21448 ac_outfile=conftest.$ac_objext
21449 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21450 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21451 # Insert the option either (1) after the last *FLAGS variable, or
21452 # (2) before a word containing "conftest.", or (3) at the end.
21453 # Note that $ac_compile itself does not contain backslashes and begins
21454 # with a dollar sign (not a hyphen), so the echo should work correctly.
21455 # The option is referenced via a variable to avoid confusing sed.
21456 lt_compile=`echo "$ac_compile" | $SED \
21457 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21459 -e 's:$: $lt_compiler_flag:'`
21460 (eval echo "\"\$as_me:21460: $lt_compile\"" >&5)
21461 (eval "$lt_compile" 2>conftest.err)
21463 cat conftest.err >&5
21464 echo "$as_me:21464: \$? = $ac_status" >&5
21465 if (exit $ac_status) && test -s "$ac_outfile"; then
21466 # The compiler can only warn and ignore the option if not recognized
21467 # So say no if there are warnings other than the usual output.
21468 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21470 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21471 lt_prog_compiler_pic_works_F77=yes
21477 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21478 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21480 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21481 case $lt_prog_compiler_pic_F77 in
21483 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21486 lt_prog_compiler_pic_F77=
21487 lt_prog_compiler_can_build_shared_F77=no
21492 # For platforms which do not support PIC, -DPIC is meaningless:
21494 lt_prog_compiler_pic_F77=
21497 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21502 # Check to make sure the static flag actually works.
21504 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21505 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21506 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21507 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21508 echo $ECHO_N "(cached) $ECHO_C" >&6
21510 lt_prog_compiler_static_works_F77=no
21511 save_LDFLAGS="$LDFLAGS"
21512 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21513 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21514 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21515 # The linker can only warn and ignore the option if not recognized
21516 # So say no if there are warnings
21517 if test -s conftest.err; then
21518 # Append any errors to the config.log.
21519 cat conftest.err 1>&5
21520 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21522 if diff conftest.exp conftest.er2 >/dev/null; then
21523 lt_prog_compiler_static_works_F77=yes
21526 lt_prog_compiler_static_works_F77=yes
21530 LDFLAGS="$save_LDFLAGS"
21533 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21534 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21536 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21539 lt_prog_compiler_static_F77=
21543 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21544 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21545 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21546 echo $ECHO_N "(cached) $ECHO_C" >&6
21548 lt_cv_prog_compiler_c_o_F77=no
21549 $rm -r conftest 2>/dev/null
21553 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21555 lt_compiler_flag="-o out/conftest2.$ac_objext"
21556 # Insert the option either (1) after the last *FLAGS variable, or
21557 # (2) before a word containing "conftest.", or (3) at the end.
21558 # Note that $ac_compile itself does not contain backslashes and begins
21559 # with a dollar sign (not a hyphen), so the echo should work correctly.
21560 lt_compile=`echo "$ac_compile" | $SED \
21561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21563 -e 's:$: $lt_compiler_flag:'`
21564 (eval echo "\"\$as_me:21564: $lt_compile\"" >&5)
21565 (eval "$lt_compile" 2>out/conftest.err)
21567 cat out/conftest.err >&5
21568 echo "$as_me:21568: \$? = $ac_status" >&5
21569 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21571 # The compiler can only warn and ignore the option if not recognized
21572 # So say no if there are warnings
21573 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21574 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21575 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21576 lt_cv_prog_compiler_c_o_F77=yes
21581 # SGI C++ compiler will create directory out/ii_files/ for
21582 # template instantiation
21583 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21584 $rm out/* && rmdir out
21590 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21591 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21594 hard_links="nottested"
21595 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21596 # do not overwrite the value of need_locks provided by the user
21597 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21598 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21601 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21603 ln conftest.a conftest.b 2>&5 || hard_links=no
21604 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21605 { echo "$as_me:$LINENO: result: $hard_links" >&5
21606 echo "${ECHO_T}$hard_links" >&6; }
21607 if test "$hard_links" = no; then
21608 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21609 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21616 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21617 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21620 allow_undefined_flag_F77=
21621 enable_shared_with_static_runtimes_F77=no
21623 archive_expsym_cmds_F77=
21624 old_archive_From_new_cmds_F77=
21625 old_archive_from_expsyms_cmds_F77=
21626 export_dynamic_flag_spec_F77=
21627 whole_archive_flag_spec_F77=
21628 thread_safe_flag_spec_F77=
21629 hardcode_libdir_flag_spec_F77=
21630 hardcode_libdir_flag_spec_ld_F77=
21631 hardcode_libdir_separator_F77=
21632 hardcode_direct_F77=no
21633 hardcode_minus_L_F77=no
21634 hardcode_shlibpath_var_F77=unsupported
21635 link_all_deplibs_F77=unknown
21636 hardcode_automatic_F77=no
21638 module_expsym_cmds_F77=
21639 always_export_symbols_F77=no
21640 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21641 # include_expsyms should be a list of space-separated symbols to be *always*
21642 # included in the symbol list
21643 include_expsyms_F77=
21644 # exclude_expsyms can be an extended regexp of symbols to exclude
21645 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21646 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21647 # as well as any symbol that contains `d'.
21648 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21649 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21650 # platforms (ab)use it in PIC code, but their linkers get confused if
21651 # the symbol is explicitly referenced. Since portable code cannot
21652 # rely on this symbol name, it's probably fine to never include it in
21653 # preloaded symbol tables.
21654 extract_expsyms_cmds=
21655 # Just being paranoid about ensuring that cc_basename is set.
21656 for cc_temp in $compiler""; do
21658 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21659 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21664 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21667 cygwin* | mingw* | pw32*)
21668 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21669 # When not using gcc, we currently assume that we are using
21670 # Microsoft Visual C++.
21671 if test "$GCC" != yes; then
21676 # we just hope/assume this is gcc and not c89 (= MSVC++)
21685 if test "$with_gnu_ld" = yes; then
21686 # If archive_cmds runs LD, not CC, wlarc should be empty
21689 # Set some defaults for GNU ld with shared library support. These
21690 # are reset later if shared libraries are not supported. Putting them
21691 # here allows them to be overridden if necessary.
21692 runpath_var=LD_RUN_PATH
21693 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21694 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21695 # ancient GNU ld didn't support --whole-archive et. al.
21696 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21697 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21699 whole_archive_flag_spec_F77=
21701 supports_anon_versioning=no
21702 case `$LD -v 2>/dev/null` in
21703 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21704 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21705 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21706 *\ 2.11.*) ;; # other 2.11 versions
21707 *) supports_anon_versioning=yes ;;
21710 # See if GNU ld supports shared libraries.
21712 aix3* | aix4* | aix5*)
21713 # On AIX/PPC, the GNU linker is very broken
21714 if test "$host_cpu" != ia64; then
21718 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21719 *** to be unable to reliably create shared libraries on AIX.
21720 *** Therefore, libtool is disabling shared libraries support. If you
21721 *** really care for shared libraries, you may want to modify your PATH
21722 *** so that a non-GNU linker is found, and then restart.
21729 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)'
21730 hardcode_libdir_flag_spec_F77='-L$libdir'
21731 hardcode_minus_L_F77=yes
21733 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21734 # that the semantics of dynamic libraries on AmigaOS, at least up
21735 # to version 4, is to share data among multiple programs linked
21736 # with the same dynamic library. Since this doesn't match the
21737 # behavior of shared libraries on other platforms, we can't use
21743 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21744 allow_undefined_flag_F77=unsupported
21745 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21746 # support --undefined. This deserves some investigation. FIXME
21747 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21753 cygwin* | mingw* | pw32*)
21754 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21755 # as there is no search path for DLLs.
21756 hardcode_libdir_flag_spec_F77='-L$libdir'
21757 allow_undefined_flag_F77=unsupported
21758 always_export_symbols_F77=no
21759 enable_shared_with_static_runtimes_F77=yes
21760 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21762 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21763 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21764 # If the export-symbols file already is a .def file (1st line
21765 # is EXPORTS), use it as is; otherwise, prepend...
21766 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21767 cp $export_symbols $output_objdir/$soname.def;
21769 echo EXPORTS > $output_objdir/$soname.def;
21770 cat $export_symbols >> $output_objdir/$soname.def;
21772 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21779 hardcode_direct_F77=no
21780 hardcode_shlibpath_var_F77=no
21781 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21782 export_dynamic_flag_spec_F77='${wl}-E'
21783 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21784 # Instead, shared libraries are loaded at an image base (0x10000000 by
21785 # default) and relocated if they conflict, which is a slow very memory
21786 # consuming and fragmenting process. To avoid this, we pick a random,
21787 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21788 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21789 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'
21790 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'
21794 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21796 case $cc_basename,$host_cpu in
21797 pgcc*) # Portland Group C compiler
21798 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'
21799 tmp_addflag=' $pic_flag'
21801 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21802 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
21803 tmp_addflag=' $pic_flag -Mnomain' ;;
21804 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21805 tmp_addflag=' -i_dynamic' ;;
21806 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21807 tmp_addflag=' -i_dynamic -nofor_main' ;;
21808 ifc* | ifort*) # Intel Fortran compiler
21809 tmp_addflag=' -nofor_main' ;;
21811 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21813 if test $supports_anon_versioning = yes; then
21814 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21815 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21816 $echo "local: *; };" >> $output_objdir/$libname.ver~
21817 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21825 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21826 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21829 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21830 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21835 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21839 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21840 *** create shared libraries on Solaris systems. Therefore, libtool
21841 *** is disabling shared libraries support. We urge you to upgrade GNU
21842 *** binutils to release 2.9.1 or newer. Another option is to modify
21843 *** your PATH or compiler configuration so that the native linker is
21844 *** used, and then restart.
21847 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21848 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21849 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21855 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21856 case `$LD -v 2>&1` in
21857 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21861 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21862 *** reliably create shared libraries on SCO systems. Therefore, libtool
21863 *** is disabling shared libraries support. We urge you to upgrade GNU
21864 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21865 *** your PATH or compiler configuration so that the native linker is
21866 *** used, and then restart.
21871 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21872 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21873 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21874 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21883 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21885 hardcode_direct_F77=yes
21886 hardcode_shlibpath_var_F77=no
21890 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21891 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21892 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21899 if test "$ld_shlibs_F77" = no; then
21901 hardcode_libdir_flag_spec_F77=
21902 export_dynamic_flag_spec_F77=
21903 whole_archive_flag_spec_F77=
21906 # PORTME fill in a description of your system's linker (not GNU ld)
21909 allow_undefined_flag_F77=unsupported
21910 always_export_symbols_F77=yes
21911 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'
21912 # Note: this linker hardcodes the directories in LIBPATH if there
21913 # are no directories specified by -L.
21914 hardcode_minus_L_F77=yes
21915 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21916 # Neither direct hardcoding nor static linking is supported with a
21918 hardcode_direct_F77=unsupported
21923 if test "$host_cpu" = ia64; then
21924 # On IA64, the linker does run time linking by default, so we don't
21925 # have to do anything special.
21926 aix_use_runtimelinking=no
21927 exp_sym_flag='-Bexport'
21930 # If we're using GNU nm, then we don't want the "-C" option.
21931 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21932 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21933 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'
21935 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'
21937 aix_use_runtimelinking=no
21939 # Test if we are trying to use run time linking or normal
21940 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21941 # need to do runtime linking.
21942 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21943 for ld_flag in $LDFLAGS; do
21944 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21945 aix_use_runtimelinking=yes
21952 exp_sym_flag='-bexport'
21953 no_entry_flag='-bnoentry'
21956 # When large executables or shared objects are built, AIX ld can
21957 # have problems creating the table of contents. If linking a library
21958 # or program results in "error TOC overflow" add -mminimal-toc to
21959 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21960 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21962 archive_cmds_F77=''
21963 hardcode_direct_F77=yes
21964 hardcode_libdir_separator_F77=':'
21965 link_all_deplibs_F77=yes
21967 if test "$GCC" = yes; then
21968 case $host_os in aix4.[012]|aix4.[012].*)
21969 # We only want to do this on AIX 4.2 and lower, the check
21970 # below for broken collect2 doesn't work under 4.3+
21971 collect2name=`${CC} -print-prog-name=collect2`
21972 if test -f "$collect2name" && \
21973 strings "$collect2name" | grep resolve_lib_name >/dev/null
21975 # We have reworked collect2
21976 hardcode_direct_F77=yes
21978 # We have old collect2
21979 hardcode_direct_F77=unsupported
21980 # It fails to find uninstalled libraries when the uninstalled
21981 # path is not listed in the libpath. Setting hardcode_minus_L
21982 # to unsupported forces relinking
21983 hardcode_minus_L_F77=yes
21984 hardcode_libdir_flag_spec_F77='-L$libdir'
21985 hardcode_libdir_separator_F77=
21989 shared_flag='-shared'
21990 if test "$aix_use_runtimelinking" = yes; then
21991 shared_flag="$shared_flag "'${wl}-G'
21995 if test "$host_cpu" = ia64; then
21996 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21997 # chokes on -Wl,-G. The following line is correct:
22000 if test "$aix_use_runtimelinking" = yes; then
22001 shared_flag='${wl}-G'
22003 shared_flag='${wl}-bM:SRE'
22008 # It seems that -bexpall does not export symbols beginning with
22009 # underscore (_), so it is better to generate a list of symbols to export.
22010 always_export_symbols_F77=yes
22011 if test "$aix_use_runtimelinking" = yes; then
22012 # Warning - without using the other runtime loading flags (-brtl),
22013 # -berok will link without error, but may produce a broken library.
22014 allow_undefined_flag_F77='-berok'
22015 # Determine the default libpath from the value encoded in an empty executable.
22016 cat >conftest.$ac_ext <<_ACEOF
22021 rm -f conftest.$ac_objext conftest$ac_exeext
22022 if { (ac_try="$ac_link"
22023 case "(($ac_try" in
22024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22025 *) ac_try_echo=$ac_try;;
22027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22028 (eval "$ac_link") 2>conftest.er1
22030 grep -v '^ *+' conftest.er1 >conftest.err
22032 cat conftest.err >&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); } &&
22035 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22036 { (case "(($ac_try" in
22037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22038 *) ac_try_echo=$ac_try;;
22040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22041 (eval "$ac_try") 2>&5
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); }; } &&
22045 { ac_try='test -s conftest$ac_exeext'
22046 { (case "(($ac_try" in
22047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22048 *) ac_try_echo=$ac_try;;
22050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22051 (eval "$ac_try") 2>&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); }; }; then
22056 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22058 # Check for a 64-bit object if we didn't find anything.
22059 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; }
22062 echo "$as_me: failed program was:" >&5
22063 sed 's/^/| /' conftest.$ac_ext >&5
22068 rm -f core conftest.err conftest.$ac_objext \
22069 conftest$ac_exeext conftest.$ac_ext
22070 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22072 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22073 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"
22075 if test "$host_cpu" = ia64; then
22076 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22077 allow_undefined_flag_F77="-z nodefs"
22078 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"
22080 # Determine the default libpath from the value encoded in an empty executable.
22081 cat >conftest.$ac_ext <<_ACEOF
22086 rm -f conftest.$ac_objext conftest$ac_exeext
22087 if { (ac_try="$ac_link"
22088 case "(($ac_try" in
22089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22090 *) ac_try_echo=$ac_try;;
22092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22093 (eval "$ac_link") 2>conftest.er1
22095 grep -v '^ *+' conftest.er1 >conftest.err
22097 cat conftest.err >&5
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); } &&
22100 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22101 { (case "(($ac_try" in
22102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22103 *) ac_try_echo=$ac_try;;
22105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22106 (eval "$ac_try") 2>&5
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); }; } &&
22110 { ac_try='test -s conftest$ac_exeext'
22111 { (case "(($ac_try" in
22112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22113 *) ac_try_echo=$ac_try;;
22115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22116 (eval "$ac_try") 2>&5
22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); }; }; then
22121 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22123 # Check for a 64-bit object if we didn't find anything.
22124 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; }
22127 echo "$as_me: failed program was:" >&5
22128 sed 's/^/| /' conftest.$ac_ext >&5
22133 rm -f core conftest.err conftest.$ac_objext \
22134 conftest$ac_exeext conftest.$ac_ext
22135 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22137 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22138 # Warning - without using the other run time loading flags,
22139 # -berok will link without error, but may produce a broken library.
22140 no_undefined_flag_F77=' ${wl}-bernotok'
22141 allow_undefined_flag_F77=' ${wl}-berok'
22142 # Exported symbols can be pulled into shared objects from archives
22143 whole_archive_flag_spec_F77='$convenience'
22144 archive_cmds_need_lc_F77=yes
22145 # This is similar to how AIX traditionally builds its shared libraries.
22146 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'
22152 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)'
22153 hardcode_libdir_flag_spec_F77='-L$libdir'
22154 hardcode_minus_L_F77=yes
22155 # see comment about different semantics on the GNU ld section
22160 export_dynamic_flag_spec_F77=-rdynamic
22163 cygwin* | mingw* | pw32*)
22164 # When not using gcc, we currently assume that we are using
22165 # Microsoft Visual C++.
22166 # hardcode_libdir_flag_spec is actually meaningless, as there is
22167 # no search path for DLLs.
22168 hardcode_libdir_flag_spec_F77=' '
22169 allow_undefined_flag_F77=unsupported
22170 # Tell ltmain to make .lib files, not .a files.
22172 # Tell ltmain to make .dll files, not .so files.
22174 # FIXME: Setting linknames here is a bad hack.
22175 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22176 # The linker will automatically build a .lib file if we build a DLL.
22177 old_archive_From_new_cmds_F77='true'
22178 # FIXME: Should let the user specify the lib program.
22179 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22180 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22181 enable_shared_with_static_runtimes_F77=yes
22184 darwin* | rhapsody*)
22186 rhapsody* | darwin1.[012])
22187 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22190 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22191 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22193 case ${MACOSX_DEPLOYMENT_TARGET} in
22195 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22198 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22204 archive_cmds_need_lc_F77=no
22205 hardcode_direct_F77=no
22206 hardcode_automatic_F77=yes
22207 hardcode_shlibpath_var_F77=unsupported
22208 whole_archive_flag_spec_F77=''
22209 link_all_deplibs_F77=yes
22210 if test "$GCC" = yes ; then
22211 output_verbose_link_cmd='echo'
22212 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22213 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22214 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22215 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}'
22216 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}'
22218 case $cc_basename in
22220 output_verbose_link_cmd='echo'
22221 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22222 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22223 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22224 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}'
22225 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}'
22235 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22236 hardcode_libdir_flag_spec_F77='-L$libdir'
22237 hardcode_shlibpath_var_F77=no
22244 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22245 # support. Future versions do this automatically, but an explicit c++rt0.o
22246 # does not break anything, and helps significantly (at the cost of a little
22249 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22250 hardcode_libdir_flag_spec_F77='-R$libdir'
22251 hardcode_direct_F77=yes
22252 hardcode_shlibpath_var_F77=no
22255 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22257 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22258 hardcode_direct_F77=yes
22259 hardcode_minus_L_F77=yes
22260 hardcode_shlibpath_var_F77=no
22263 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22264 freebsd* | kfreebsd*-gnu | dragonfly*)
22265 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22266 hardcode_libdir_flag_spec_F77='-R$libdir'
22267 hardcode_direct_F77=yes
22268 hardcode_shlibpath_var_F77=no
22272 if test "$GCC" = yes; then
22273 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'
22275 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'
22277 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22278 hardcode_libdir_separator_F77=:
22279 hardcode_direct_F77=yes
22281 # hardcode_minus_L: Not really in the search PATH,
22282 # but as the default location of the library.
22283 hardcode_minus_L_F77=yes
22284 export_dynamic_flag_spec_F77='${wl}-E'
22288 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22289 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22291 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22293 if test "$with_gnu_ld" = no; then
22294 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22295 hardcode_libdir_separator_F77=:
22297 hardcode_direct_F77=yes
22298 export_dynamic_flag_spec_F77='${wl}-E'
22300 # hardcode_minus_L: Not really in the search PATH,
22301 # but as the default location of the library.
22302 hardcode_minus_L_F77=yes
22307 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22310 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22313 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22316 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22322 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22325 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22328 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22332 if test "$with_gnu_ld" = no; then
22333 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22334 hardcode_libdir_separator_F77=:
22338 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22339 hardcode_direct_F77=no
22340 hardcode_shlibpath_var_F77=no
22343 hardcode_direct_F77=yes
22344 export_dynamic_flag_spec_F77='${wl}-E'
22346 # hardcode_minus_L: Not really in the search PATH,
22347 # but as the default location of the library.
22348 hardcode_minus_L_F77=yes
22354 irix5* | irix6* | nonstopux*)
22355 if test "$GCC" = yes; then
22356 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'
22358 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'
22359 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22361 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22362 hardcode_libdir_separator_F77=:
22363 link_all_deplibs_F77=yes
22367 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22368 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22370 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22372 hardcode_libdir_flag_spec_F77='-R$libdir'
22373 hardcode_direct_F77=yes
22374 hardcode_shlibpath_var_F77=no
22378 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22379 hardcode_direct_F77=yes
22380 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22381 hardcode_libdir_separator_F77=:
22382 hardcode_shlibpath_var_F77=no
22386 hardcode_direct_F77=yes
22387 hardcode_shlibpath_var_F77=no
22388 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22389 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22390 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22391 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22392 export_dynamic_flag_spec_F77='${wl}-E'
22395 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22396 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22397 hardcode_libdir_flag_spec_F77='-R$libdir'
22400 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22401 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22408 hardcode_libdir_flag_spec_F77='-L$libdir'
22409 hardcode_minus_L_F77=yes
22410 allow_undefined_flag_F77=unsupported
22411 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'
22412 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22416 if test "$GCC" = yes; then
22417 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22418 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'
22420 allow_undefined_flag_F77=' -expect_unresolved \*'
22421 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'
22423 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22424 hardcode_libdir_separator_F77=:
22427 osf4* | osf5*) # as osf3* with the addition of -msym flag
22428 if test "$GCC" = yes; then
22429 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22430 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'
22431 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22433 allow_undefined_flag_F77=' -expect_unresolved \*'
22434 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'
22435 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~
22436 $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'
22438 # Both c and cxx compiler support -rpath directly
22439 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22441 hardcode_libdir_separator_F77=:
22445 no_undefined_flag_F77=' -z text'
22446 if test "$GCC" = yes; then
22448 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22449 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22450 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22453 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22454 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22455 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22457 hardcode_libdir_flag_spec_F77='-R$libdir'
22458 hardcode_shlibpath_var_F77=no
22460 solaris2.[0-5] | solaris2.[0-5].*) ;;
22462 # The compiler driver will combine linker options so we
22463 # cannot just pass the convience library names through
22464 # without $wl, iff we do not link with $LD.
22465 # Luckily, gcc supports the same syntax we need for Sun Studio.
22466 # Supported since Solaris 2.6 (maybe 2.5.1?)
22469 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22471 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' ;;
22474 link_all_deplibs_F77=yes
22478 if test "x$host_vendor" = xsequent; then
22479 # Use $CC to link under sequent, because it throws in some extra .o
22480 # files that make .init and .fini sections work.
22481 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22483 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22485 hardcode_libdir_flag_spec_F77='-L$libdir'
22486 hardcode_direct_F77=yes
22487 hardcode_minus_L_F77=yes
22488 hardcode_shlibpath_var_F77=no
22492 case $host_vendor in
22494 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22495 hardcode_direct_F77=yes # is this really true???
22498 ## LD is ld it makes a PLAMLIB
22499 ## CC just makes a GrossModule.
22500 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22501 reload_cmds_F77='$CC -r -o $output$reload_objs'
22502 hardcode_direct_F77=no
22505 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22506 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22509 runpath_var='LD_RUN_PATH'
22510 hardcode_shlibpath_var_F77=no
22514 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22515 hardcode_shlibpath_var_F77=no
22516 export_dynamic_flag_spec_F77='-Bexport'
22520 if test -d /usr/nec; then
22521 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22522 hardcode_shlibpath_var_F77=no
22523 runpath_var=LD_RUN_PATH
22524 hardcode_runpath_var=yes
22529 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22530 no_undefined_flag_F77='${wl}-z,text'
22531 archive_cmds_need_lc_F77=no
22532 hardcode_shlibpath_var_F77=no
22533 runpath_var='LD_RUN_PATH'
22535 if test "$GCC" = yes; then
22536 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22537 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22539 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22540 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22544 sysv5* | sco3.2v5* | sco5v6*)
22545 # Note: We can NOT use -z defs as we might desire, because we do not
22546 # link with -lc, and that would cause any symbols used from libc to
22547 # always be unresolved, which means just about no library would
22548 # ever link correctly. If we're not using GNU ld we use -z text
22549 # though, which does catch some bad symbols but isn't as heavy-handed
22551 no_undefined_flag_F77='${wl}-z,text'
22552 allow_undefined_flag_F77='${wl}-z,nodefs'
22553 archive_cmds_need_lc_F77=no
22554 hardcode_shlibpath_var_F77=no
22555 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22556 hardcode_libdir_separator_F77=':'
22557 link_all_deplibs_F77=yes
22558 export_dynamic_flag_spec_F77='${wl}-Bexport'
22559 runpath_var='LD_RUN_PATH'
22561 if test "$GCC" = yes; then
22562 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22563 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22565 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22566 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22571 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22572 hardcode_libdir_flag_spec_F77='-L$libdir'
22573 hardcode_shlibpath_var_F77=no
22582 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22583 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22584 test "$ld_shlibs_F77" = no && can_build_shared=no
22587 # Do we need to explicitly link libc?
22589 case "x$archive_cmds_need_lc_F77" in
22591 # Assume -lc should be added
22592 archive_cmds_need_lc_F77=yes
22594 if test "$enable_shared" = yes && test "$GCC" = yes; then
22595 case $archive_cmds_F77 in
22597 # FIXME: we may have to deal with multi-command sequences.
22600 # Test whether the compiler implicitly links with -lc since on some
22601 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22602 # to ld, don't add -lc before -lgcc.
22603 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22604 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22606 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22609 (eval $ac_compile) 2>&5
22611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); } 2>conftest.err; then
22615 libobjs=conftest.$ac_objext
22617 wl=$lt_prog_compiler_wl_F77
22618 pic_flag=$lt_prog_compiler_pic_F77
22624 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22625 allow_undefined_flag_F77=
22626 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22627 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630 (exit $ac_status); }
22632 archive_cmds_need_lc_F77=no
22634 archive_cmds_need_lc_F77=yes
22636 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22638 cat conftest.err 1>&5
22641 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22642 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22649 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22650 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22651 library_names_spec=
22652 libname_spec='lib$name'
22656 postuninstall_cmds=
22660 shlibpath_overrides_runpath=unknown
22662 dynamic_linker="$host_os ld.so"
22663 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22664 if test "$GCC" = yes; then
22665 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22666 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22667 # if the path contains ";" then we assume it to be the separator
22668 # otherwise default to the standard path separator (i.e. ":") - it is
22669 # assumed that no part of a normal pathname contains ";" but that should
22670 # okay in the real world where ";" in dirpaths is itself problematic.
22671 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22673 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22676 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22678 need_lib_prefix=unknown
22679 hardcode_into_libs=no
22681 # when you set need_version to no, make sure it does not cause -set_version
22682 # flags to be left without arguments
22683 need_version=unknown
22688 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22689 shlibpath_var=LIBPATH
22691 # AIX 3 has no versioning support, so we append a major version to the name.
22692 soname_spec='${libname}${release}${shared_ext}$major'
22699 hardcode_into_libs=yes
22700 if test "$host_cpu" = ia64; then
22701 # AIX 5 supports IA64
22702 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22703 shlibpath_var=LD_LIBRARY_PATH
22705 # With GCC up to 2.95.x, collect2 would create an import file
22706 # for dependence libraries. The import file would start with
22707 # the line `#! .'. This would cause the generated library to
22708 # depend on `.', always an invalid library. This was fixed in
22709 # development snapshots of GCC prior to 3.0.
22711 aix4 | aix4.[01] | aix4.[01].*)
22712 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22714 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22717 can_build_shared=no
22721 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22722 # soname into executable. Probably we can add versioning support to
22723 # collect2, so additional links can be useful in future.
22724 if test "$aix_use_runtimelinking" = yes; then
22725 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22726 # instead of lib<name>.a to let people know that these are not
22727 # typical AIX shared libraries.
22728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22730 # We preserve .a as extension for shared libraries through AIX4.2
22731 # and later when we are not doing run time linking.
22732 library_names_spec='${libname}${release}.a $libname.a'
22733 soname_spec='${libname}${release}${shared_ext}$major'
22735 shlibpath_var=LIBPATH
22740 library_names_spec='$libname.ixlibrary $libname.a'
22741 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22742 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'
22746 library_names_spec='${libname}${shared_ext}'
22747 dynamic_linker="$host_os ld.so"
22748 shlibpath_var=LIBRARY_PATH
22754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22755 soname_spec='${libname}${release}${shared_ext}$major'
22756 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22757 shlibpath_var=LD_LIBRARY_PATH
22758 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22759 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22760 # the default ld.so.conf also contains /usr/contrib/lib and
22761 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22762 # libtool to hard-code these into programs
22765 cygwin* | mingw* | pw32*)
22766 version_type=windows
22771 case $GCC,$host_os in
22772 yes,cygwin* | yes,mingw* | yes,pw32*)
22773 library_names_spec='$libname.dll.a'
22774 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22775 postinstall_cmds='base_file=`basename \${file}`~
22776 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22777 dldir=$destdir/`dirname \$dlpath`~
22778 test -d \$dldir || mkdir -p \$dldir~
22779 $install_prog $dir/$dlname \$dldir/$dlname~
22780 chmod a+x \$dldir/$dlname'
22781 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22782 dlpath=$dir/\$dldll~
22784 shlibpath_overrides_runpath=yes
22788 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22789 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22790 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22793 # MinGW DLLs use traditional 'lib' prefix
22794 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22795 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22796 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22797 # It is most probably a Windows format PATH printed by
22798 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22799 # path with ; separators, and with drive letters. We can handle the
22800 # drive letters (cygwin fileutils understands them), so leave them,
22801 # especially as we might pass files found there to a mingw objdump,
22802 # which wouldn't understand a cygwinified path. Ahh.
22803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22805 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22809 # pw32 DLLs use 'pw' prefix rather than 'lib'
22810 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22816 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22819 dynamic_linker='Win32 ld.exe'
22820 # FIXME: first we should search . and the directory the executable is in
22824 darwin* | rhapsody*)
22825 dynamic_linker="$host_os dyld"
22826 version_type=darwin
22829 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22830 soname_spec='${libname}${release}${major}$shared_ext'
22831 shlibpath_overrides_runpath=yes
22832 shlibpath_var=DYLD_LIBRARY_PATH
22833 shrext_cmds='.dylib'
22834 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22835 if test "$GCC" = yes; then
22836 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"`
22838 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22840 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22848 soname_spec='${libname}${release}${shared_ext}$major'
22849 shlibpath_var=LD_LIBRARY_PATH
22860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22861 soname_spec='${libname}${release}${shared_ext}$major'
22862 shlibpath_var=LD_LIBRARY_PATH
22863 shlibpath_overrides_runpath=no
22864 hardcode_into_libs=yes
22865 dynamic_linker='GNU ld.so'
22868 freebsd* | dragonfly*)
22869 # DragonFly does not have aout. When/if they implement a new
22870 # versioning mechanism, adjust this.
22871 if test -x /usr/bin/objformat; then
22872 objformat=`/usr/bin/objformat`
22875 freebsd[123]*) objformat=aout ;;
22876 *) objformat=elf ;;
22879 version_type=freebsd-$objformat
22880 case $version_type in
22882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22887 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22891 shlibpath_var=LD_LIBRARY_PATH
22894 shlibpath_overrides_runpath=yes
22896 freebsd3.[01]* | freebsdelf3.[01]*)
22897 shlibpath_overrides_runpath=yes
22898 hardcode_into_libs=yes
22900 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22901 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22902 shlibpath_overrides_runpath=no
22903 hardcode_into_libs=yes
22905 freebsd*) # from 4.6 on
22906 shlibpath_overrides_runpath=yes
22907 hardcode_into_libs=yes
22916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22917 soname_spec='${libname}${release}${shared_ext}$major'
22918 shlibpath_var=LD_LIBRARY_PATH
22919 hardcode_into_libs=yes
22922 hpux9* | hpux10* | hpux11*)
22923 # Give a soname corresponding to the major version so that dld.sl refuses to
22924 # link against other versions.
22931 hardcode_into_libs=yes
22932 dynamic_linker="$host_os dld.so"
22933 shlibpath_var=LD_LIBRARY_PATH
22934 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22936 soname_spec='${libname}${release}${shared_ext}$major'
22937 if test "X$HPUX_IA64_MODE" = X32; then
22938 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22940 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22942 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22946 hardcode_into_libs=yes
22947 dynamic_linker="$host_os dld.sl"
22948 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22949 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22951 soname_spec='${libname}${release}${shared_ext}$major'
22952 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22953 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22957 dynamic_linker="$host_os dld.sl"
22958 shlibpath_var=SHLIB_PATH
22959 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22961 soname_spec='${libname}${release}${shared_ext}$major'
22964 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22965 postinstall_cmds='chmod 555 $lib'
22972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22973 soname_spec='${libname}${release}${shared_ext}$major'
22974 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22975 shlibpath_var=LD_LIBRARY_PATH
22976 shlibpath_overrides_runpath=no
22977 hardcode_into_libs=yes
22980 irix5* | irix6* | nonstopux*)
22982 nonstopux*) version_type=nonstopux ;;
22984 if test "$lt_cv_prog_gnu_ld" = yes; then
22992 soname_spec='${libname}${release}${shared_ext}$major'
22993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22995 irix5* | nonstopux*)
22996 libsuff= shlibsuff=
22999 case $LD in # libtool.m4 will add one of these switches to LD
23000 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23001 libsuff= shlibsuff= libmagic=32-bit;;
23002 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23003 libsuff=32 shlibsuff=N32 libmagic=N32;;
23004 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23005 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23006 *) libsuff= shlibsuff= libmagic=never-match;;
23010 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23011 shlibpath_overrides_runpath=no
23012 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23013 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23014 hardcode_into_libs=yes
23017 # No shared lib support for Linux oldld, aout, or coff.
23018 linux*oldld* | linux*aout* | linux*coff*)
23022 # This must be Linux ELF.
23027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23028 soname_spec='${libname}${release}${shared_ext}$major'
23029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23030 shlibpath_var=LD_LIBRARY_PATH
23031 shlibpath_overrides_runpath=no
23032 # This implies no fast_install, which is unacceptable.
23033 # Some rework will be needed to allow for fast_install
23034 # before this can be enabled.
23035 hardcode_into_libs=yes
23037 # Append ld.so.conf contents to the search path
23038 if test -f /etc/ld.so.conf; then
23039 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' ' '`
23040 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23043 # We used to test for /lib/ld.so.1 and disable shared libraries on
23044 # powerpc, because MkLinux only supported shared libraries with the
23045 # GNU dynamic linker. Since this was broken with cross compilers,
23046 # most powerpc-linux boxes support dynamic linking these days and
23047 # people can always --disable-shared, the test was removed, and we
23048 # assume the GNU/Linux dynamic linker is in use.
23049 dynamic_linker='GNU/Linux ld.so'
23056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23057 soname_spec='${libname}${release}${shared_ext}$major'
23058 shlibpath_var=LD_LIBRARY_PATH
23059 shlibpath_overrides_runpath=no
23060 hardcode_into_libs=yes
23061 dynamic_linker='GNU ld.so'
23068 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23071 dynamic_linker='NetBSD (a.out) ld.so'
23073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23074 soname_spec='${libname}${release}${shared_ext}$major'
23075 dynamic_linker='NetBSD ld.elf_so'
23077 shlibpath_var=LD_LIBRARY_PATH
23078 shlibpath_overrides_runpath=yes
23079 hardcode_into_libs=yes
23084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23085 shlibpath_var=LD_LIBRARY_PATH
23086 shlibpath_overrides_runpath=yes
23093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23094 soname_spec='${libname}${release}${shared_ext}$major'
23095 shlibpath_var=LD_LIBRARY_PATH
23096 shlibpath_overrides_runpath=yes
23101 sys_lib_dlsearch_path_spec="/usr/lib"
23103 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23105 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23106 *) need_version=no ;;
23108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23110 shlibpath_var=LD_LIBRARY_PATH
23111 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23113 openbsd2.[89] | openbsd2.[89].*)
23114 shlibpath_overrides_runpath=no
23117 shlibpath_overrides_runpath=yes
23121 shlibpath_overrides_runpath=yes
23126 libname_spec='$name'
23129 library_names_spec='$libname${shared_ext} $libname.a'
23130 dynamic_linker='OS/2 ld.exe'
23131 shlibpath_var=LIBPATH
23134 osf3* | osf4* | osf5*)
23138 soname_spec='${libname}${release}${shared_ext}$major'
23139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23140 shlibpath_var=LD_LIBRARY_PATH
23141 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23142 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23150 soname_spec='${libname}${release}${shared_ext}$major'
23151 shlibpath_var=LD_LIBRARY_PATH
23152 shlibpath_overrides_runpath=yes
23153 hardcode_into_libs=yes
23154 # ldd complains unless libraries are executable
23155 postinstall_cmds='chmod +x $lib'
23160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23161 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23162 shlibpath_var=LD_LIBRARY_PATH
23163 shlibpath_overrides_runpath=yes
23164 if test "$with_gnu_ld" = yes; then
23172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23173 soname_spec='${libname}${release}${shared_ext}$major'
23174 shlibpath_var=LD_LIBRARY_PATH
23175 case $host_vendor in
23177 shlibpath_overrides_runpath=no
23179 export_dynamic_flag_spec='${wl}-Blargedynsym'
23180 runpath_var=LD_RUN_PATH
23188 shlibpath_overrides_runpath=no
23189 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23195 if test -d /usr/nec ;then
23197 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23198 soname_spec='$libname${shared_ext}.$major'
23199 shlibpath_var=LD_LIBRARY_PATH
23203 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23204 version_type=freebsd-elf
23207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23208 soname_spec='${libname}${release}${shared_ext}$major'
23209 shlibpath_var=LD_LIBRARY_PATH
23210 hardcode_into_libs=yes
23211 if test "$with_gnu_ld" = yes; then
23212 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23213 shlibpath_overrides_runpath=no
23215 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23216 shlibpath_overrides_runpath=yes
23219 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23223 sys_lib_dlsearch_path_spec='/usr/lib'
23228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23229 soname_spec='${libname}${release}${shared_ext}$major'
23230 shlibpath_var=LD_LIBRARY_PATH
23237 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23238 echo "${ECHO_T}$dynamic_linker" >&6; }
23239 test "$dynamic_linker" = no && can_build_shared=no
23241 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23242 if test "$GCC" = yes; then
23243 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23246 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23247 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23248 hardcode_action_F77=
23249 if test -n "$hardcode_libdir_flag_spec_F77" || \
23250 test -n "$runpath_var_F77" || \
23251 test "X$hardcode_automatic_F77" = "Xyes" ; then
23253 # We can hardcode non-existant directories.
23254 if test "$hardcode_direct_F77" != no &&
23255 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23256 # have to relink, otherwise we might link with an installed library
23257 # when we should be linking with a yet-to-be-installed one
23258 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23259 test "$hardcode_minus_L_F77" != no; then
23260 # Linking always hardcodes the temporary library directory.
23261 hardcode_action_F77=relink
23263 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23264 hardcode_action_F77=immediate
23267 # We cannot hardcode anything, or else we can only hardcode existing
23269 hardcode_action_F77=unsupported
23271 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23272 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23274 if test "$hardcode_action_F77" = relink; then
23275 # Fast installation is not supported
23276 enable_fast_install=no
23277 elif test "$shlibpath_overrides_runpath" = yes ||
23278 test "$enable_shared" = no; then
23279 # Fast installation is not necessary
23280 enable_fast_install=needless
23284 # The else clause should only fire when bootstrapping the
23285 # libtool distribution, otherwise you forgot to ship ltmain.sh
23286 # with your package, and you will get complaints that there are
23287 # no rules to generate ltmain.sh.
23288 if test -f "$ltmain"; then
23289 # See if we are running on zsh, and set the options which allow our commands through
23290 # without removal of \ escapes.
23291 if test -n "${ZSH_VERSION+set}" ; then
23292 setopt NO_GLOB_SUBST
23294 # Now quote all the things that may contain metacharacters while being
23295 # careful not to overquote the AC_SUBSTed values. We take copies of the
23296 # variables and quote the copies for generation of the libtool script.
23297 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23299 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23300 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23301 deplibs_check_method reload_flag reload_cmds need_locks \
23302 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23303 lt_cv_sys_global_symbol_to_c_name_address \
23304 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23305 old_postinstall_cmds old_postuninstall_cmds \
23309 lt_prog_compiler_wl_F77 \
23310 lt_prog_compiler_pic_F77 \
23311 lt_prog_compiler_static_F77 \
23312 lt_prog_compiler_no_builtin_flag_F77 \
23313 export_dynamic_flag_spec_F77 \
23314 thread_safe_flag_spec_F77 \
23315 whole_archive_flag_spec_F77 \
23316 enable_shared_with_static_runtimes_F77 \
23317 old_archive_cmds_F77 \
23318 old_archive_from_new_cmds_F77 \
23319 predep_objects_F77 \
23320 postdep_objects_F77 \
23323 compiler_lib_search_path_F77 \
23325 archive_expsym_cmds_F77 \
23326 postinstall_cmds_F77 \
23327 postuninstall_cmds_F77 \
23328 old_archive_from_expsyms_cmds_F77 \
23329 allow_undefined_flag_F77 \
23330 no_undefined_flag_F77 \
23331 export_symbols_cmds_F77 \
23332 hardcode_libdir_flag_spec_F77 \
23333 hardcode_libdir_flag_spec_ld_F77 \
23334 hardcode_libdir_separator_F77 \
23335 hardcode_automatic_F77 \
23337 module_expsym_cmds_F77 \
23338 lt_cv_prog_compiler_c_o_F77 \
23339 exclude_expsyms_F77 \
23340 include_expsyms_F77; do
23343 old_archive_cmds_F77 | \
23344 old_archive_from_new_cmds_F77 | \
23345 archive_cmds_F77 | \
23346 archive_expsym_cmds_F77 | \
23347 module_cmds_F77 | \
23348 module_expsym_cmds_F77 | \
23349 old_archive_from_expsyms_cmds_F77 | \
23350 export_symbols_cmds_F77 | \
23351 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23352 postinstall_cmds | postuninstall_cmds | \
23353 old_postinstall_cmds | old_postuninstall_cmds | \
23354 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23355 # Double-quote double-evaled strings.
23356 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23359 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23365 *'\$0 --fallback-echo"')
23366 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23372 cat <<__EOF__ >> "$cfgfile"
23373 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23375 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23377 # Shell to use when invoking shell scripts.
23380 # Whether or not to build shared libraries.
23381 build_libtool_libs=$enable_shared
23383 # Whether or not to build static libraries.
23384 build_old_libs=$enable_static
23386 # Whether or not to add -lc for building shared libraries.
23387 build_libtool_need_lc=$archive_cmds_need_lc_F77
23389 # Whether or not to disallow shared libs when runtime libs are static
23390 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23392 # Whether or not to optimize for fast installation.
23393 fast_install=$enable_fast_install
23396 host_alias=$host_alias
23400 # The build system.
23401 build_alias=$build_alias
23405 # An echo program that does not interpret backslashes.
23410 AR_FLAGS=$lt_AR_FLAGS
23415 # LTCC compiler flags.
23416 LTCFLAGS=$lt_LTCFLAGS
23418 # A language-specific compiler.
23419 CC=$lt_compiler_F77
23421 # Is the compiler the GNU C compiler?
23427 # The linker used to build libraries.
23430 # Whether we need hard or soft links.
23433 # A BSD-compatible nm program.
23436 # A symbol stripping program
23439 # Used to examine libraries when file_magic_cmd begins "file"
23440 MAGIC_CMD=$MAGIC_CMD
23442 # Used on cygwin: DLL creation program.
23445 # Used on cygwin: object dumper.
23448 # Used on cygwin: assembler.
23451 # The name of the directory that contains temporary libtool files.
23454 # How to create reloadable object files.
23455 reload_flag=$lt_reload_flag
23456 reload_cmds=$lt_reload_cmds
23458 # How to pass a linker flag through the compiler.
23459 wl=$lt_lt_prog_compiler_wl_F77
23461 # Object file suffix (normally "o").
23462 objext="$ac_objext"
23464 # Old archive suffix (normally "a").
23467 # Shared library suffix (normally ".so").
23468 shrext_cmds='$shrext_cmds'
23470 # Executable file suffix (normally "").
23473 # Additional compiler flags for building library objects.
23474 pic_flag=$lt_lt_prog_compiler_pic_F77
23477 # What is the maximum length of a command?
23478 max_cmd_len=$lt_cv_sys_max_cmd_len
23480 # Does compiler simultaneously support -c and -o options?
23481 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23483 # Must we lock files when doing compilation?
23484 need_locks=$lt_need_locks
23486 # Do we need the lib prefix for modules?
23487 need_lib_prefix=$need_lib_prefix
23489 # Do we need a version for libraries?
23490 need_version=$need_version
23492 # Whether dlopen is supported.
23493 dlopen_support=$enable_dlopen
23495 # Whether dlopen of programs is supported.
23496 dlopen_self=$enable_dlopen_self
23498 # Whether dlopen of statically linked programs is supported.
23499 dlopen_self_static=$enable_dlopen_self_static
23501 # Compiler flag to prevent dynamic linking.
23502 link_static_flag=$lt_lt_prog_compiler_static_F77
23504 # Compiler flag to turn off builtin functions.
23505 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23507 # Compiler flag to allow reflexive dlopens.
23508 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23510 # Compiler flag to generate shared objects directly from archives.
23511 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23513 # Compiler flag to generate thread-safe objects.
23514 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23516 # Library versioning type.
23517 version_type=$version_type
23519 # Format of library name prefix.
23520 libname_spec=$lt_libname_spec
23522 # List of archive names. First name is the real one, the rest are links.
23523 # The last name is the one that the linker finds with -lNAME.
23524 library_names_spec=$lt_library_names_spec
23526 # The coded name of the library, if different from the real name.
23527 soname_spec=$lt_soname_spec
23529 # Commands used to build and install an old-style archive.
23531 old_archive_cmds=$lt_old_archive_cmds_F77
23532 old_postinstall_cmds=$lt_old_postinstall_cmds
23533 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23535 # Create an old-style archive from a shared archive.
23536 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23538 # Create a temporary old-style archive to link instead of a shared archive.
23539 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23541 # Commands used to build and install a shared archive.
23542 archive_cmds=$lt_archive_cmds_F77
23543 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23544 postinstall_cmds=$lt_postinstall_cmds
23545 postuninstall_cmds=$lt_postuninstall_cmds
23547 # Commands used to build a loadable module (assumed same as above if empty)
23548 module_cmds=$lt_module_cmds_F77
23549 module_expsym_cmds=$lt_module_expsym_cmds_F77
23551 # Commands to strip libraries.
23552 old_striplib=$lt_old_striplib
23553 striplib=$lt_striplib
23555 # Dependencies to place before the objects being linked to create a
23557 predep_objects=$lt_predep_objects_F77
23559 # Dependencies to place after the objects being linked to create a
23561 postdep_objects=$lt_postdep_objects_F77
23563 # Dependencies to place before the objects being linked to create a
23565 predeps=$lt_predeps_F77
23567 # Dependencies to place after the objects being linked to create a
23569 postdeps=$lt_postdeps_F77
23571 # The library search path used internally by the compiler when linking
23572 # a shared library.
23573 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23575 # Method to check whether dependent libraries are shared objects.
23576 deplibs_check_method=$lt_deplibs_check_method
23578 # Command to use when deplibs_check_method == file_magic.
23579 file_magic_cmd=$lt_file_magic_cmd
23581 # Flag that allows shared libraries with undefined symbols to be built.
23582 allow_undefined_flag=$lt_allow_undefined_flag_F77
23584 # Flag that forces no undefined symbols.
23585 no_undefined_flag=$lt_no_undefined_flag_F77
23587 # Commands used to finish a libtool library installation in a directory.
23588 finish_cmds=$lt_finish_cmds
23590 # Same as above, but a single script fragment to be evaled but not shown.
23591 finish_eval=$lt_finish_eval
23593 # Take the output of nm and produce a listing of raw symbols and C names.
23594 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23596 # Transform the output of nm in a proper C declaration
23597 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23599 # Transform the output of nm in a C name address pair
23600 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23602 # This is the shared library runtime path variable.
23603 runpath_var=$runpath_var
23605 # This is the shared library path variable.
23606 shlibpath_var=$shlibpath_var
23608 # Is shlibpath searched before the hard-coded library search path?
23609 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23611 # How to hardcode a shared library path into an executable.
23612 hardcode_action=$hardcode_action_F77
23614 # Whether we should hardcode library paths into libraries.
23615 hardcode_into_libs=$hardcode_into_libs
23617 # Flag to hardcode \$libdir into a binary during linking.
23618 # This must work even if \$libdir does not exist.
23619 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23621 # If ld is used when linking, flag to hardcode \$libdir into
23622 # a binary during linking. This must work even if \$libdir does
23624 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23626 # Whether we need a single -rpath flag with a separated argument.
23627 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23629 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23630 # resulting binary.
23631 hardcode_direct=$hardcode_direct_F77
23633 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23634 # resulting binary.
23635 hardcode_minus_L=$hardcode_minus_L_F77
23637 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23638 # the resulting binary.
23639 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23641 # Set to yes if building a shared library automatically hardcodes DIR into the library
23642 # and all subsequent libraries and executables linked against it.
23643 hardcode_automatic=$hardcode_automatic_F77
23645 # Variables whose values should be saved in libtool wrapper scripts and
23646 # restored at relink time.
23647 variables_saved_for_relink="$variables_saved_for_relink"
23649 # Whether libtool must link a program against all its dependency libraries.
23650 link_all_deplibs=$link_all_deplibs_F77
23652 # Compile-time system search path for libraries
23653 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23655 # Run-time system search path for libraries
23656 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23658 # Fix the shell variable \$srcfile for the compiler.
23659 fix_srcfile_path="$fix_srcfile_path_F77"
23661 # Set to yes if exported symbols are required.
23662 always_export_symbols=$always_export_symbols_F77
23664 # The commands to list exported symbols.
23665 export_symbols_cmds=$lt_export_symbols_cmds_F77
23667 # The commands to extract the exported symbol list from a shared archive.
23668 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23670 # Symbols that should not be listed in the preloaded symbols.
23671 exclude_expsyms=$lt_exclude_expsyms_F77
23673 # Symbols that must always be exported.
23674 include_expsyms=$lt_include_expsyms_F77
23676 # ### END LIBTOOL TAG CONFIG: $tagname
23682 # If there is no Makefile yet, we rely on a make rule to execute
23683 # `config.status --recheck' to rerun these tests and create the
23684 # libtool script then.
23685 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23686 if test -f "$ltmain_in"; then
23687 test -f Makefile && make "$ltmain"
23693 ac_cpp='$CPP $CPPFLAGS'
23694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23706 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23708 ac_cpp='$CPP $CPPFLAGS'
23709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23714 # Source file extension for Java test sources.
23717 # Object file extension for compiled Java test sources.
23721 # Code to be used in simple compile tests
23722 lt_simple_compile_test_code="class foo {}\n"
23724 # Code to be used in simple link tests
23725 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23727 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23729 # If no C compiler was specified, use CC.
23732 # If no C compiler flags were specified, use CFLAGS.
23733 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23735 # Allow CC to be a program name with arguments.
23739 # save warnings/boilerplate of simple test code
23740 ac_outfile=conftest.$ac_objext
23741 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23742 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23743 _lt_compiler_boilerplate=`cat conftest.err`
23746 ac_outfile=conftest.$ac_objext
23747 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23748 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23749 _lt_linker_boilerplate=`cat conftest.err`
23753 # Allow CC to be a program name with arguments.
23758 for cc_temp in $compiler""; do
23760 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23761 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23766 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23769 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23770 archive_cmds_need_lc_GCJ=no
23772 old_archive_cmds_GCJ=$old_archive_cmds
23775 lt_prog_compiler_no_builtin_flag_GCJ=
23777 if test "$GCC" = yes; then
23778 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23781 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23782 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23783 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23784 echo $ECHO_N "(cached) $ECHO_C" >&6
23786 lt_cv_prog_compiler_rtti_exceptions=no
23787 ac_outfile=conftest.$ac_objext
23788 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23789 lt_compiler_flag="-fno-rtti -fno-exceptions"
23790 # Insert the option either (1) after the last *FLAGS variable, or
23791 # (2) before a word containing "conftest.", or (3) at the end.
23792 # Note that $ac_compile itself does not contain backslashes and begins
23793 # with a dollar sign (not a hyphen), so the echo should work correctly.
23794 # The option is referenced via a variable to avoid confusing sed.
23795 lt_compile=`echo "$ac_compile" | $SED \
23796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23798 -e 's:$: $lt_compiler_flag:'`
23799 (eval echo "\"\$as_me:23799: $lt_compile\"" >&5)
23800 (eval "$lt_compile" 2>conftest.err)
23802 cat conftest.err >&5
23803 echo "$as_me:23803: \$? = $ac_status" >&5
23804 if (exit $ac_status) && test -s "$ac_outfile"; then
23805 # The compiler can only warn and ignore the option if not recognized
23806 # So say no if there are warnings other than the usual output.
23807 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23809 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23810 lt_cv_prog_compiler_rtti_exceptions=yes
23816 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23817 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23819 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23820 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23827 lt_prog_compiler_wl_GCJ=
23828 lt_prog_compiler_pic_GCJ=
23829 lt_prog_compiler_static_GCJ=
23831 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23832 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23834 if test "$GCC" = yes; then
23835 lt_prog_compiler_wl_GCJ='-Wl,'
23836 lt_prog_compiler_static_GCJ='-static'
23840 # All AIX code is PIC.
23841 if test "$host_cpu" = ia64; then
23842 # AIX 5 now supports IA64 processor
23843 lt_prog_compiler_static_GCJ='-Bstatic'
23848 # FIXME: we need at least 68020 code to build shared libraries, but
23849 # adding the `-m68020' flag to GCC prevents building anything better,
23851 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23854 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23855 # PIC is the default for these OSes.
23858 mingw* | pw32* | os2*)
23859 # This hack is so that the source file can tell whether it is being
23860 # built for inclusion in a dll (and should export symbols for example).
23861 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23864 darwin* | rhapsody*)
23865 # PIC is the default on this platform
23866 # Common symbols not allowed in MH_DYLIB files
23867 lt_prog_compiler_pic_GCJ='-fno-common'
23871 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23872 # Instead, we relocate shared libraries at runtime.
23876 # Just because we use GCC doesn't mean we suddenly get shared libraries
23877 # on systems that don't support them.
23878 lt_prog_compiler_can_build_shared_GCJ=no
23883 if test -d /usr/nec; then
23884 lt_prog_compiler_pic_GCJ=-Kconform_pic
23889 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23890 # not for PA HP-UX.
23896 lt_prog_compiler_pic_GCJ='-fPIC'
23902 lt_prog_compiler_pic_GCJ='-fPIC'
23906 # PORTME Check for flag to pass linker flags through the system compiler.
23909 lt_prog_compiler_wl_GCJ='-Wl,'
23910 if test "$host_cpu" = ia64; then
23911 # AIX 5 now supports IA64 processor
23912 lt_prog_compiler_static_GCJ='-Bstatic'
23914 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23918 # PIC is the default on this platform
23919 # Common symbols not allowed in MH_DYLIB files
23920 case $cc_basename in
23922 lt_prog_compiler_pic_GCJ='-qnocommon'
23923 lt_prog_compiler_wl_GCJ='-Wl,'
23928 mingw* | pw32* | os2*)
23929 # This hack is so that the source file can tell whether it is being
23930 # built for inclusion in a dll (and should export symbols for example).
23931 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23934 hpux9* | hpux10* | hpux11*)
23935 lt_prog_compiler_wl_GCJ='-Wl,'
23936 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23937 # not for PA HP-UX.
23943 lt_prog_compiler_pic_GCJ='+Z'
23946 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23947 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23950 irix5* | irix6* | nonstopux*)
23951 lt_prog_compiler_wl_GCJ='-Wl,'
23952 # PIC (with -KPIC) is the default.
23953 lt_prog_compiler_static_GCJ='-non_shared'
23957 lt_prog_compiler_pic_GCJ='-KPIC'
23958 lt_prog_compiler_static_GCJ='-Bstatic'
23962 case $cc_basename in
23964 lt_prog_compiler_wl_GCJ='-Wl,'
23965 lt_prog_compiler_pic_GCJ='-KPIC'
23966 lt_prog_compiler_static_GCJ='-static'
23968 pgcc* | pgf77* | pgf90* | pgf95*)
23969 # Portland Group compilers (*not* the Pentium gcc compiler,
23970 # which looks to be a dead project)
23971 lt_prog_compiler_wl_GCJ='-Wl,'
23972 lt_prog_compiler_pic_GCJ='-fpic'
23973 lt_prog_compiler_static_GCJ='-Bstatic'
23976 lt_prog_compiler_wl_GCJ='-Wl,'
23977 # All Alpha code is PIC.
23978 lt_prog_compiler_static_GCJ='-non_shared'
23983 osf3* | osf4* | osf5*)
23984 lt_prog_compiler_wl_GCJ='-Wl,'
23985 # All OSF/1 code is PIC.
23986 lt_prog_compiler_static_GCJ='-non_shared'
23990 lt_prog_compiler_pic_GCJ='-KPIC'
23991 lt_prog_compiler_static_GCJ='-Bstatic'
23992 case $cc_basename in
23993 f77* | f90* | f95*)
23994 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23996 lt_prog_compiler_wl_GCJ='-Wl,';;
24001 lt_prog_compiler_wl_GCJ='-Qoption ld '
24002 lt_prog_compiler_pic_GCJ='-PIC'
24003 lt_prog_compiler_static_GCJ='-Bstatic'
24006 sysv4 | sysv4.2uw2* | sysv4.3*)
24007 lt_prog_compiler_wl_GCJ='-Wl,'
24008 lt_prog_compiler_pic_GCJ='-KPIC'
24009 lt_prog_compiler_static_GCJ='-Bstatic'
24013 if test -d /usr/nec ;then
24014 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24015 lt_prog_compiler_static_GCJ='-Bstatic'
24019 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24020 lt_prog_compiler_wl_GCJ='-Wl,'
24021 lt_prog_compiler_pic_GCJ='-KPIC'
24022 lt_prog_compiler_static_GCJ='-Bstatic'
24026 lt_prog_compiler_wl_GCJ='-Wl,'
24027 lt_prog_compiler_can_build_shared_GCJ=no
24031 lt_prog_compiler_pic_GCJ='-pic'
24032 lt_prog_compiler_static_GCJ='-Bstatic'
24036 lt_prog_compiler_can_build_shared_GCJ=no
24041 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24042 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24045 # Check to make sure the PIC flag actually works.
24047 if test -n "$lt_prog_compiler_pic_GCJ"; then
24049 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24050 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24051 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24052 echo $ECHO_N "(cached) $ECHO_C" >&6
24054 lt_prog_compiler_pic_works_GCJ=no
24055 ac_outfile=conftest.$ac_objext
24056 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24057 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24058 # Insert the option either (1) after the last *FLAGS variable, or
24059 # (2) before a word containing "conftest.", or (3) at the end.
24060 # Note that $ac_compile itself does not contain backslashes and begins
24061 # with a dollar sign (not a hyphen), so the echo should work correctly.
24062 # The option is referenced via a variable to avoid confusing sed.
24063 lt_compile=`echo "$ac_compile" | $SED \
24064 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24065 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24066 -e 's:$: $lt_compiler_flag:'`
24067 (eval echo "\"\$as_me:24067: $lt_compile\"" >&5)
24068 (eval "$lt_compile" 2>conftest.err)
24070 cat conftest.err >&5
24071 echo "$as_me:24071: \$? = $ac_status" >&5
24072 if (exit $ac_status) && test -s "$ac_outfile"; then
24073 # The compiler can only warn and ignore the option if not recognized
24074 # So say no if there are warnings other than the usual output.
24075 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24076 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24077 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24078 lt_prog_compiler_pic_works_GCJ=yes
24084 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24085 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24087 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24088 case $lt_prog_compiler_pic_GCJ in
24090 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24093 lt_prog_compiler_pic_GCJ=
24094 lt_prog_compiler_can_build_shared_GCJ=no
24099 # For platforms which do not support PIC, -DPIC is meaningless:
24101 lt_prog_compiler_pic_GCJ=
24104 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24109 # Check to make sure the static flag actually works.
24111 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24112 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24113 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24114 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24115 echo $ECHO_N "(cached) $ECHO_C" >&6
24117 lt_prog_compiler_static_works_GCJ=no
24118 save_LDFLAGS="$LDFLAGS"
24119 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24120 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24121 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24122 # The linker can only warn and ignore the option if not recognized
24123 # So say no if there are warnings
24124 if test -s conftest.err; then
24125 # Append any errors to the config.log.
24126 cat conftest.err 1>&5
24127 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24128 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24129 if diff conftest.exp conftest.er2 >/dev/null; then
24130 lt_prog_compiler_static_works_GCJ=yes
24133 lt_prog_compiler_static_works_GCJ=yes
24137 LDFLAGS="$save_LDFLAGS"
24140 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24141 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24143 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24146 lt_prog_compiler_static_GCJ=
24150 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24151 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24152 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24153 echo $ECHO_N "(cached) $ECHO_C" >&6
24155 lt_cv_prog_compiler_c_o_GCJ=no
24156 $rm -r conftest 2>/dev/null
24160 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24162 lt_compiler_flag="-o out/conftest2.$ac_objext"
24163 # Insert the option either (1) after the last *FLAGS variable, or
24164 # (2) before a word containing "conftest.", or (3) at the end.
24165 # Note that $ac_compile itself does not contain backslashes and begins
24166 # with a dollar sign (not a hyphen), so the echo should work correctly.
24167 lt_compile=`echo "$ac_compile" | $SED \
24168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24170 -e 's:$: $lt_compiler_flag:'`
24171 (eval echo "\"\$as_me:24171: $lt_compile\"" >&5)
24172 (eval "$lt_compile" 2>out/conftest.err)
24174 cat out/conftest.err >&5
24175 echo "$as_me:24175: \$? = $ac_status" >&5
24176 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24178 # The compiler can only warn and ignore the option if not recognized
24179 # So say no if there are warnings
24180 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24181 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24182 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24183 lt_cv_prog_compiler_c_o_GCJ=yes
24188 # SGI C++ compiler will create directory out/ii_files/ for
24189 # template instantiation
24190 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24191 $rm out/* && rmdir out
24197 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24198 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24201 hard_links="nottested"
24202 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24203 # do not overwrite the value of need_locks provided by the user
24204 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24205 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24208 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24210 ln conftest.a conftest.b 2>&5 || hard_links=no
24211 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24212 { echo "$as_me:$LINENO: result: $hard_links" >&5
24213 echo "${ECHO_T}$hard_links" >&6; }
24214 if test "$hard_links" = no; then
24215 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24216 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24223 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24224 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24227 allow_undefined_flag_GCJ=
24228 enable_shared_with_static_runtimes_GCJ=no
24230 archive_expsym_cmds_GCJ=
24231 old_archive_From_new_cmds_GCJ=
24232 old_archive_from_expsyms_cmds_GCJ=
24233 export_dynamic_flag_spec_GCJ=
24234 whole_archive_flag_spec_GCJ=
24235 thread_safe_flag_spec_GCJ=
24236 hardcode_libdir_flag_spec_GCJ=
24237 hardcode_libdir_flag_spec_ld_GCJ=
24238 hardcode_libdir_separator_GCJ=
24239 hardcode_direct_GCJ=no
24240 hardcode_minus_L_GCJ=no
24241 hardcode_shlibpath_var_GCJ=unsupported
24242 link_all_deplibs_GCJ=unknown
24243 hardcode_automatic_GCJ=no
24245 module_expsym_cmds_GCJ=
24246 always_export_symbols_GCJ=no
24247 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24248 # include_expsyms should be a list of space-separated symbols to be *always*
24249 # included in the symbol list
24250 include_expsyms_GCJ=
24251 # exclude_expsyms can be an extended regexp of symbols to exclude
24252 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24253 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24254 # as well as any symbol that contains `d'.
24255 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24256 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24257 # platforms (ab)use it in PIC code, but their linkers get confused if
24258 # the symbol is explicitly referenced. Since portable code cannot
24259 # rely on this symbol name, it's probably fine to never include it in
24260 # preloaded symbol tables.
24261 extract_expsyms_cmds=
24262 # Just being paranoid about ensuring that cc_basename is set.
24263 for cc_temp in $compiler""; do
24265 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24266 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24271 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24274 cygwin* | mingw* | pw32*)
24275 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24276 # When not using gcc, we currently assume that we are using
24277 # Microsoft Visual C++.
24278 if test "$GCC" != yes; then
24283 # we just hope/assume this is gcc and not c89 (= MSVC++)
24292 if test "$with_gnu_ld" = yes; then
24293 # If archive_cmds runs LD, not CC, wlarc should be empty
24296 # Set some defaults for GNU ld with shared library support. These
24297 # are reset later if shared libraries are not supported. Putting them
24298 # here allows them to be overridden if necessary.
24299 runpath_var=LD_RUN_PATH
24300 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24301 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24302 # ancient GNU ld didn't support --whole-archive et. al.
24303 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24304 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24306 whole_archive_flag_spec_GCJ=
24308 supports_anon_versioning=no
24309 case `$LD -v 2>/dev/null` in
24310 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24311 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24312 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24313 *\ 2.11.*) ;; # other 2.11 versions
24314 *) supports_anon_versioning=yes ;;
24317 # See if GNU ld supports shared libraries.
24319 aix3* | aix4* | aix5*)
24320 # On AIX/PPC, the GNU linker is very broken
24321 if test "$host_cpu" != ia64; then
24325 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24326 *** to be unable to reliably create shared libraries on AIX.
24327 *** Therefore, libtool is disabling shared libraries support. If you
24328 *** really care for shared libraries, you may want to modify your PATH
24329 *** so that a non-GNU linker is found, and then restart.
24336 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)'
24337 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24338 hardcode_minus_L_GCJ=yes
24340 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24341 # that the semantics of dynamic libraries on AmigaOS, at least up
24342 # to version 4, is to share data among multiple programs linked
24343 # with the same dynamic library. Since this doesn't match the
24344 # behavior of shared libraries on other platforms, we can't use
24350 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24351 allow_undefined_flag_GCJ=unsupported
24352 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24353 # support --undefined. This deserves some investigation. FIXME
24354 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24360 cygwin* | mingw* | pw32*)
24361 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24362 # as there is no search path for DLLs.
24363 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24364 allow_undefined_flag_GCJ=unsupported
24365 always_export_symbols_GCJ=no
24366 enable_shared_with_static_runtimes_GCJ=yes
24367 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24369 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24370 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24371 # If the export-symbols file already is a .def file (1st line
24372 # is EXPORTS), use it as is; otherwise, prepend...
24373 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24374 cp $export_symbols $output_objdir/$soname.def;
24376 echo EXPORTS > $output_objdir/$soname.def;
24377 cat $export_symbols >> $output_objdir/$soname.def;
24379 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24386 hardcode_direct_GCJ=no
24387 hardcode_shlibpath_var_GCJ=no
24388 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24389 export_dynamic_flag_spec_GCJ='${wl}-E'
24390 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24391 # Instead, shared libraries are loaded at an image base (0x10000000 by
24392 # default) and relocated if they conflict, which is a slow very memory
24393 # consuming and fragmenting process. To avoid this, we pick a random,
24394 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24395 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24396 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'
24397 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'
24401 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24403 case $cc_basename,$host_cpu in
24404 pgcc*) # Portland Group C compiler
24405 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'
24406 tmp_addflag=' $pic_flag'
24408 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24409 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24410 tmp_addflag=' $pic_flag -Mnomain' ;;
24411 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24412 tmp_addflag=' -i_dynamic' ;;
24413 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24414 tmp_addflag=' -i_dynamic -nofor_main' ;;
24415 ifc* | ifort*) # Intel Fortran compiler
24416 tmp_addflag=' -nofor_main' ;;
24418 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24420 if test $supports_anon_versioning = yes; then
24421 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24422 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24423 $echo "local: *; };" >> $output_objdir/$libname.ver~
24424 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24432 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24433 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24436 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24437 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24442 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24446 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24447 *** create shared libraries on Solaris systems. Therefore, libtool
24448 *** is disabling shared libraries support. We urge you to upgrade GNU
24449 *** binutils to release 2.9.1 or newer. Another option is to modify
24450 *** your PATH or compiler configuration so that the native linker is
24451 *** used, and then restart.
24454 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24455 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24456 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24462 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24463 case `$LD -v 2>&1` in
24464 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24468 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24469 *** reliably create shared libraries on SCO systems. Therefore, libtool
24470 *** is disabling shared libraries support. We urge you to upgrade GNU
24471 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24472 *** your PATH or compiler configuration so that the native linker is
24473 *** used, and then restart.
24478 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24479 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24480 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24481 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24490 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24492 hardcode_direct_GCJ=yes
24493 hardcode_shlibpath_var_GCJ=no
24497 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24498 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24499 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24506 if test "$ld_shlibs_GCJ" = no; then
24508 hardcode_libdir_flag_spec_GCJ=
24509 export_dynamic_flag_spec_GCJ=
24510 whole_archive_flag_spec_GCJ=
24513 # PORTME fill in a description of your system's linker (not GNU ld)
24516 allow_undefined_flag_GCJ=unsupported
24517 always_export_symbols_GCJ=yes
24518 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'
24519 # Note: this linker hardcodes the directories in LIBPATH if there
24520 # are no directories specified by -L.
24521 hardcode_minus_L_GCJ=yes
24522 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24523 # Neither direct hardcoding nor static linking is supported with a
24525 hardcode_direct_GCJ=unsupported
24530 if test "$host_cpu" = ia64; then
24531 # On IA64, the linker does run time linking by default, so we don't
24532 # have to do anything special.
24533 aix_use_runtimelinking=no
24534 exp_sym_flag='-Bexport'
24537 # If we're using GNU nm, then we don't want the "-C" option.
24538 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24539 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24540 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'
24542 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'
24544 aix_use_runtimelinking=no
24546 # Test if we are trying to use run time linking or normal
24547 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24548 # need to do runtime linking.
24549 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24550 for ld_flag in $LDFLAGS; do
24551 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24552 aix_use_runtimelinking=yes
24559 exp_sym_flag='-bexport'
24560 no_entry_flag='-bnoentry'
24563 # When large executables or shared objects are built, AIX ld can
24564 # have problems creating the table of contents. If linking a library
24565 # or program results in "error TOC overflow" add -mminimal-toc to
24566 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24567 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24569 archive_cmds_GCJ=''
24570 hardcode_direct_GCJ=yes
24571 hardcode_libdir_separator_GCJ=':'
24572 link_all_deplibs_GCJ=yes
24574 if test "$GCC" = yes; then
24575 case $host_os in aix4.[012]|aix4.[012].*)
24576 # We only want to do this on AIX 4.2 and lower, the check
24577 # below for broken collect2 doesn't work under 4.3+
24578 collect2name=`${CC} -print-prog-name=collect2`
24579 if test -f "$collect2name" && \
24580 strings "$collect2name" | grep resolve_lib_name >/dev/null
24582 # We have reworked collect2
24583 hardcode_direct_GCJ=yes
24585 # We have old collect2
24586 hardcode_direct_GCJ=unsupported
24587 # It fails to find uninstalled libraries when the uninstalled
24588 # path is not listed in the libpath. Setting hardcode_minus_L
24589 # to unsupported forces relinking
24590 hardcode_minus_L_GCJ=yes
24591 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24592 hardcode_libdir_separator_GCJ=
24596 shared_flag='-shared'
24597 if test "$aix_use_runtimelinking" = yes; then
24598 shared_flag="$shared_flag "'${wl}-G'
24602 if test "$host_cpu" = ia64; then
24603 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24604 # chokes on -Wl,-G. The following line is correct:
24607 if test "$aix_use_runtimelinking" = yes; then
24608 shared_flag='${wl}-G'
24610 shared_flag='${wl}-bM:SRE'
24615 # It seems that -bexpall does not export symbols beginning with
24616 # underscore (_), so it is better to generate a list of symbols to export.
24617 always_export_symbols_GCJ=yes
24618 if test "$aix_use_runtimelinking" = yes; then
24619 # Warning - without using the other runtime loading flags (-brtl),
24620 # -berok will link without error, but may produce a broken library.
24621 allow_undefined_flag_GCJ='-berok'
24622 # Determine the default libpath from the value encoded in an empty executable.
24623 cat >conftest.$ac_ext <<_ACEOF
24626 cat confdefs.h >>conftest.$ac_ext
24627 cat >>conftest.$ac_ext <<_ACEOF
24628 /* end confdefs.h. */
24638 rm -f conftest.$ac_objext conftest$ac_exeext
24639 if { (ac_try="$ac_link"
24640 case "(($ac_try" in
24641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24642 *) ac_try_echo=$ac_try;;
24644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24645 (eval "$ac_link") 2>conftest.er1
24647 grep -v '^ *+' conftest.er1 >conftest.err
24649 cat conftest.err >&5
24650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651 (exit $ac_status); } &&
24652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24653 { (case "(($ac_try" in
24654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24655 *) ac_try_echo=$ac_try;;
24657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24658 (eval "$ac_try") 2>&5
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); }; } &&
24662 { ac_try='test -s conftest$ac_exeext'
24663 { (case "(($ac_try" in
24664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24665 *) ac_try_echo=$ac_try;;
24667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24668 (eval "$ac_try") 2>&5
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); }; }; then
24673 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24675 # Check for a 64-bit object if we didn't find anything.
24676 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; }
24679 echo "$as_me: failed program was:" >&5
24680 sed 's/^/| /' conftest.$ac_ext >&5
24685 rm -f core conftest.err conftest.$ac_objext \
24686 conftest$ac_exeext conftest.$ac_ext
24687 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24689 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24690 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"
24692 if test "$host_cpu" = ia64; then
24693 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24694 allow_undefined_flag_GCJ="-z nodefs"
24695 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"
24697 # Determine the default libpath from the value encoded in an empty executable.
24698 cat >conftest.$ac_ext <<_ACEOF
24701 cat confdefs.h >>conftest.$ac_ext
24702 cat >>conftest.$ac_ext <<_ACEOF
24703 /* end confdefs.h. */
24713 rm -f conftest.$ac_objext conftest$ac_exeext
24714 if { (ac_try="$ac_link"
24715 case "(($ac_try" in
24716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24717 *) ac_try_echo=$ac_try;;
24719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24720 (eval "$ac_link") 2>conftest.er1
24722 grep -v '^ *+' conftest.er1 >conftest.err
24724 cat conftest.err >&5
24725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726 (exit $ac_status); } &&
24727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24728 { (case "(($ac_try" in
24729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24730 *) ac_try_echo=$ac_try;;
24732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24733 (eval "$ac_try") 2>&5
24735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736 (exit $ac_status); }; } &&
24737 { ac_try='test -s conftest$ac_exeext'
24738 { (case "(($ac_try" in
24739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24740 *) ac_try_echo=$ac_try;;
24742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24743 (eval "$ac_try") 2>&5
24745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); }; }; then
24748 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24750 # Check for a 64-bit object if we didn't find anything.
24751 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; }
24754 echo "$as_me: failed program was:" >&5
24755 sed 's/^/| /' conftest.$ac_ext >&5
24760 rm -f core conftest.err conftest.$ac_objext \
24761 conftest$ac_exeext conftest.$ac_ext
24762 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24764 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24765 # Warning - without using the other run time loading flags,
24766 # -berok will link without error, but may produce a broken library.
24767 no_undefined_flag_GCJ=' ${wl}-bernotok'
24768 allow_undefined_flag_GCJ=' ${wl}-berok'
24769 # Exported symbols can be pulled into shared objects from archives
24770 whole_archive_flag_spec_GCJ='$convenience'
24771 archive_cmds_need_lc_GCJ=yes
24772 # This is similar to how AIX traditionally builds its shared libraries.
24773 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'
24779 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)'
24780 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24781 hardcode_minus_L_GCJ=yes
24782 # see comment about different semantics on the GNU ld section
24787 export_dynamic_flag_spec_GCJ=-rdynamic
24790 cygwin* | mingw* | pw32*)
24791 # When not using gcc, we currently assume that we are using
24792 # Microsoft Visual C++.
24793 # hardcode_libdir_flag_spec is actually meaningless, as there is
24794 # no search path for DLLs.
24795 hardcode_libdir_flag_spec_GCJ=' '
24796 allow_undefined_flag_GCJ=unsupported
24797 # Tell ltmain to make .lib files, not .a files.
24799 # Tell ltmain to make .dll files, not .so files.
24801 # FIXME: Setting linknames here is a bad hack.
24802 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24803 # The linker will automatically build a .lib file if we build a DLL.
24804 old_archive_From_new_cmds_GCJ='true'
24805 # FIXME: Should let the user specify the lib program.
24806 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24807 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24808 enable_shared_with_static_runtimes_GCJ=yes
24811 darwin* | rhapsody*)
24813 rhapsody* | darwin1.[012])
24814 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24817 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24818 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24820 case ${MACOSX_DEPLOYMENT_TARGET} in
24822 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24825 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24831 archive_cmds_need_lc_GCJ=no
24832 hardcode_direct_GCJ=no
24833 hardcode_automatic_GCJ=yes
24834 hardcode_shlibpath_var_GCJ=unsupported
24835 whole_archive_flag_spec_GCJ=''
24836 link_all_deplibs_GCJ=yes
24837 if test "$GCC" = yes ; then
24838 output_verbose_link_cmd='echo'
24839 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24840 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24841 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24842 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}'
24843 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}'
24845 case $cc_basename in
24847 output_verbose_link_cmd='echo'
24848 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24849 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24850 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24851 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}'
24852 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}'
24862 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24863 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24864 hardcode_shlibpath_var_GCJ=no
24871 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24872 # support. Future versions do this automatically, but an explicit c++rt0.o
24873 # does not break anything, and helps significantly (at the cost of a little
24876 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24877 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24878 hardcode_direct_GCJ=yes
24879 hardcode_shlibpath_var_GCJ=no
24882 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24884 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24885 hardcode_direct_GCJ=yes
24886 hardcode_minus_L_GCJ=yes
24887 hardcode_shlibpath_var_GCJ=no
24890 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24891 freebsd* | kfreebsd*-gnu | dragonfly*)
24892 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24893 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24894 hardcode_direct_GCJ=yes
24895 hardcode_shlibpath_var_GCJ=no
24899 if test "$GCC" = yes; then
24900 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'
24902 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'
24904 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24905 hardcode_libdir_separator_GCJ=:
24906 hardcode_direct_GCJ=yes
24908 # hardcode_minus_L: Not really in the search PATH,
24909 # but as the default location of the library.
24910 hardcode_minus_L_GCJ=yes
24911 export_dynamic_flag_spec_GCJ='${wl}-E'
24915 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24916 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24918 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24920 if test "$with_gnu_ld" = no; then
24921 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24922 hardcode_libdir_separator_GCJ=:
24924 hardcode_direct_GCJ=yes
24925 export_dynamic_flag_spec_GCJ='${wl}-E'
24927 # hardcode_minus_L: Not really in the search PATH,
24928 # but as the default location of the library.
24929 hardcode_minus_L_GCJ=yes
24934 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24937 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24940 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24943 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24949 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24952 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24955 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24959 if test "$with_gnu_ld" = no; then
24960 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24961 hardcode_libdir_separator_GCJ=:
24965 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24966 hardcode_direct_GCJ=no
24967 hardcode_shlibpath_var_GCJ=no
24970 hardcode_direct_GCJ=yes
24971 export_dynamic_flag_spec_GCJ='${wl}-E'
24973 # hardcode_minus_L: Not really in the search PATH,
24974 # but as the default location of the library.
24975 hardcode_minus_L_GCJ=yes
24981 irix5* | irix6* | nonstopux*)
24982 if test "$GCC" = yes; then
24983 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'
24985 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'
24986 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24988 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24989 hardcode_libdir_separator_GCJ=:
24990 link_all_deplibs_GCJ=yes
24994 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24995 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24997 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24999 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25000 hardcode_direct_GCJ=yes
25001 hardcode_shlibpath_var_GCJ=no
25005 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25006 hardcode_direct_GCJ=yes
25007 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25008 hardcode_libdir_separator_GCJ=:
25009 hardcode_shlibpath_var_GCJ=no
25013 hardcode_direct_GCJ=yes
25014 hardcode_shlibpath_var_GCJ=no
25015 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25016 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25017 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25018 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25019 export_dynamic_flag_spec_GCJ='${wl}-E'
25022 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25023 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25024 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25027 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25028 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25035 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25036 hardcode_minus_L_GCJ=yes
25037 allow_undefined_flag_GCJ=unsupported
25038 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'
25039 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25043 if test "$GCC" = yes; then
25044 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25045 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'
25047 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25048 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'
25050 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25051 hardcode_libdir_separator_GCJ=:
25054 osf4* | osf5*) # as osf3* with the addition of -msym flag
25055 if test "$GCC" = yes; then
25056 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25057 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'
25058 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25060 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25061 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'
25062 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~
25063 $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'
25065 # Both c and cxx compiler support -rpath directly
25066 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25068 hardcode_libdir_separator_GCJ=:
25072 no_undefined_flag_GCJ=' -z text'
25073 if test "$GCC" = yes; then
25075 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25076 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25077 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25080 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25081 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25082 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25084 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25085 hardcode_shlibpath_var_GCJ=no
25087 solaris2.[0-5] | solaris2.[0-5].*) ;;
25089 # The compiler driver will combine linker options so we
25090 # cannot just pass the convience library names through
25091 # without $wl, iff we do not link with $LD.
25092 # Luckily, gcc supports the same syntax we need for Sun Studio.
25093 # Supported since Solaris 2.6 (maybe 2.5.1?)
25096 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25098 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' ;;
25101 link_all_deplibs_GCJ=yes
25105 if test "x$host_vendor" = xsequent; then
25106 # Use $CC to link under sequent, because it throws in some extra .o
25107 # files that make .init and .fini sections work.
25108 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25110 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25112 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25113 hardcode_direct_GCJ=yes
25114 hardcode_minus_L_GCJ=yes
25115 hardcode_shlibpath_var_GCJ=no
25119 case $host_vendor in
25121 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25122 hardcode_direct_GCJ=yes # is this really true???
25125 ## LD is ld it makes a PLAMLIB
25126 ## CC just makes a GrossModule.
25127 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25128 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25129 hardcode_direct_GCJ=no
25132 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25133 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25136 runpath_var='LD_RUN_PATH'
25137 hardcode_shlibpath_var_GCJ=no
25141 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25142 hardcode_shlibpath_var_GCJ=no
25143 export_dynamic_flag_spec_GCJ='-Bexport'
25147 if test -d /usr/nec; then
25148 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25149 hardcode_shlibpath_var_GCJ=no
25150 runpath_var=LD_RUN_PATH
25151 hardcode_runpath_var=yes
25156 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25157 no_undefined_flag_GCJ='${wl}-z,text'
25158 archive_cmds_need_lc_GCJ=no
25159 hardcode_shlibpath_var_GCJ=no
25160 runpath_var='LD_RUN_PATH'
25162 if test "$GCC" = yes; then
25163 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25164 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25166 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25167 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25171 sysv5* | sco3.2v5* | sco5v6*)
25172 # Note: We can NOT use -z defs as we might desire, because we do not
25173 # link with -lc, and that would cause any symbols used from libc to
25174 # always be unresolved, which means just about no library would
25175 # ever link correctly. If we're not using GNU ld we use -z text
25176 # though, which does catch some bad symbols but isn't as heavy-handed
25178 no_undefined_flag_GCJ='${wl}-z,text'
25179 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25180 archive_cmds_need_lc_GCJ=no
25181 hardcode_shlibpath_var_GCJ=no
25182 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25183 hardcode_libdir_separator_GCJ=':'
25184 link_all_deplibs_GCJ=yes
25185 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25186 runpath_var='LD_RUN_PATH'
25188 if test "$GCC" = yes; then
25189 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25190 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25192 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25193 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25198 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25199 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25200 hardcode_shlibpath_var_GCJ=no
25209 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25210 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25211 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25214 # Do we need to explicitly link libc?
25216 case "x$archive_cmds_need_lc_GCJ" in
25218 # Assume -lc should be added
25219 archive_cmds_need_lc_GCJ=yes
25221 if test "$enable_shared" = yes && test "$GCC" = yes; then
25222 case $archive_cmds_GCJ in
25224 # FIXME: we may have to deal with multi-command sequences.
25227 # Test whether the compiler implicitly links with -lc since on some
25228 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25229 # to ld, don't add -lc before -lgcc.
25230 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25231 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25233 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25236 (eval $ac_compile) 2>&5
25238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); } 2>conftest.err; then
25242 libobjs=conftest.$ac_objext
25244 wl=$lt_prog_compiler_wl_GCJ
25245 pic_flag=$lt_prog_compiler_pic_GCJ
25251 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25252 allow_undefined_flag_GCJ=
25253 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25254 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257 (exit $ac_status); }
25259 archive_cmds_need_lc_GCJ=no
25261 archive_cmds_need_lc_GCJ=yes
25263 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25265 cat conftest.err 1>&5
25268 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25269 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25276 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25277 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25278 library_names_spec=
25279 libname_spec='lib$name'
25283 postuninstall_cmds=
25287 shlibpath_overrides_runpath=unknown
25289 dynamic_linker="$host_os ld.so"
25290 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25291 if test "$GCC" = yes; then
25292 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25293 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25294 # if the path contains ";" then we assume it to be the separator
25295 # otherwise default to the standard path separator (i.e. ":") - it is
25296 # assumed that no part of a normal pathname contains ";" but that should
25297 # okay in the real world where ";" in dirpaths is itself problematic.
25298 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25300 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25303 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25305 need_lib_prefix=unknown
25306 hardcode_into_libs=no
25308 # when you set need_version to no, make sure it does not cause -set_version
25309 # flags to be left without arguments
25310 need_version=unknown
25315 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25316 shlibpath_var=LIBPATH
25318 # AIX 3 has no versioning support, so we append a major version to the name.
25319 soname_spec='${libname}${release}${shared_ext}$major'
25326 hardcode_into_libs=yes
25327 if test "$host_cpu" = ia64; then
25328 # AIX 5 supports IA64
25329 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25330 shlibpath_var=LD_LIBRARY_PATH
25332 # With GCC up to 2.95.x, collect2 would create an import file
25333 # for dependence libraries. The import file would start with
25334 # the line `#! .'. This would cause the generated library to
25335 # depend on `.', always an invalid library. This was fixed in
25336 # development snapshots of GCC prior to 3.0.
25338 aix4 | aix4.[01] | aix4.[01].*)
25339 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25341 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25344 can_build_shared=no
25348 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25349 # soname into executable. Probably we can add versioning support to
25350 # collect2, so additional links can be useful in future.
25351 if test "$aix_use_runtimelinking" = yes; then
25352 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25353 # instead of lib<name>.a to let people know that these are not
25354 # typical AIX shared libraries.
25355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25357 # We preserve .a as extension for shared libraries through AIX4.2
25358 # and later when we are not doing run time linking.
25359 library_names_spec='${libname}${release}.a $libname.a'
25360 soname_spec='${libname}${release}${shared_ext}$major'
25362 shlibpath_var=LIBPATH
25367 library_names_spec='$libname.ixlibrary $libname.a'
25368 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25369 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'
25373 library_names_spec='${libname}${shared_ext}'
25374 dynamic_linker="$host_os ld.so"
25375 shlibpath_var=LIBRARY_PATH
25381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25382 soname_spec='${libname}${release}${shared_ext}$major'
25383 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25384 shlibpath_var=LD_LIBRARY_PATH
25385 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25386 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25387 # the default ld.so.conf also contains /usr/contrib/lib and
25388 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25389 # libtool to hard-code these into programs
25392 cygwin* | mingw* | pw32*)
25393 version_type=windows
25398 case $GCC,$host_os in
25399 yes,cygwin* | yes,mingw* | yes,pw32*)
25400 library_names_spec='$libname.dll.a'
25401 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25402 postinstall_cmds='base_file=`basename \${file}`~
25403 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25404 dldir=$destdir/`dirname \$dlpath`~
25405 test -d \$dldir || mkdir -p \$dldir~
25406 $install_prog $dir/$dlname \$dldir/$dlname~
25407 chmod a+x \$dldir/$dlname'
25408 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25409 dlpath=$dir/\$dldll~
25411 shlibpath_overrides_runpath=yes
25415 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25416 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25417 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25420 # MinGW DLLs use traditional 'lib' prefix
25421 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25422 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25423 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25424 # It is most probably a Windows format PATH printed by
25425 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25426 # path with ; separators, and with drive letters. We can handle the
25427 # drive letters (cygwin fileutils understands them), so leave them,
25428 # especially as we might pass files found there to a mingw objdump,
25429 # which wouldn't understand a cygwinified path. Ahh.
25430 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25432 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25436 # pw32 DLLs use 'pw' prefix rather than 'lib'
25437 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25443 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25446 dynamic_linker='Win32 ld.exe'
25447 # FIXME: first we should search . and the directory the executable is in
25451 darwin* | rhapsody*)
25452 dynamic_linker="$host_os dyld"
25453 version_type=darwin
25456 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25457 soname_spec='${libname}${release}${major}$shared_ext'
25458 shlibpath_overrides_runpath=yes
25459 shlibpath_var=DYLD_LIBRARY_PATH
25460 shrext_cmds='.dylib'
25461 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25462 if test "$GCC" = yes; then
25463 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"`
25465 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25467 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25475 soname_spec='${libname}${release}${shared_ext}$major'
25476 shlibpath_var=LD_LIBRARY_PATH
25487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25488 soname_spec='${libname}${release}${shared_ext}$major'
25489 shlibpath_var=LD_LIBRARY_PATH
25490 shlibpath_overrides_runpath=no
25491 hardcode_into_libs=yes
25492 dynamic_linker='GNU ld.so'
25495 freebsd* | dragonfly*)
25496 # DragonFly does not have aout. When/if they implement a new
25497 # versioning mechanism, adjust this.
25498 if test -x /usr/bin/objformat; then
25499 objformat=`/usr/bin/objformat`
25502 freebsd[123]*) objformat=aout ;;
25503 *) objformat=elf ;;
25506 version_type=freebsd-$objformat
25507 case $version_type in
25509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25514 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25518 shlibpath_var=LD_LIBRARY_PATH
25521 shlibpath_overrides_runpath=yes
25523 freebsd3.[01]* | freebsdelf3.[01]*)
25524 shlibpath_overrides_runpath=yes
25525 hardcode_into_libs=yes
25527 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25528 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25529 shlibpath_overrides_runpath=no
25530 hardcode_into_libs=yes
25532 freebsd*) # from 4.6 on
25533 shlibpath_overrides_runpath=yes
25534 hardcode_into_libs=yes
25543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25544 soname_spec='${libname}${release}${shared_ext}$major'
25545 shlibpath_var=LD_LIBRARY_PATH
25546 hardcode_into_libs=yes
25549 hpux9* | hpux10* | hpux11*)
25550 # Give a soname corresponding to the major version so that dld.sl refuses to
25551 # link against other versions.
25558 hardcode_into_libs=yes
25559 dynamic_linker="$host_os dld.so"
25560 shlibpath_var=LD_LIBRARY_PATH
25561 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25563 soname_spec='${libname}${release}${shared_ext}$major'
25564 if test "X$HPUX_IA64_MODE" = X32; then
25565 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25567 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25569 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25573 hardcode_into_libs=yes
25574 dynamic_linker="$host_os dld.sl"
25575 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25576 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25578 soname_spec='${libname}${release}${shared_ext}$major'
25579 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25580 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25584 dynamic_linker="$host_os dld.sl"
25585 shlibpath_var=SHLIB_PATH
25586 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25588 soname_spec='${libname}${release}${shared_ext}$major'
25591 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25592 postinstall_cmds='chmod 555 $lib'
25599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25600 soname_spec='${libname}${release}${shared_ext}$major'
25601 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25602 shlibpath_var=LD_LIBRARY_PATH
25603 shlibpath_overrides_runpath=no
25604 hardcode_into_libs=yes
25607 irix5* | irix6* | nonstopux*)
25609 nonstopux*) version_type=nonstopux ;;
25611 if test "$lt_cv_prog_gnu_ld" = yes; then
25619 soname_spec='${libname}${release}${shared_ext}$major'
25620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25622 irix5* | nonstopux*)
25623 libsuff= shlibsuff=
25626 case $LD in # libtool.m4 will add one of these switches to LD
25627 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25628 libsuff= shlibsuff= libmagic=32-bit;;
25629 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25630 libsuff=32 shlibsuff=N32 libmagic=N32;;
25631 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25632 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25633 *) libsuff= shlibsuff= libmagic=never-match;;
25637 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25638 shlibpath_overrides_runpath=no
25639 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25640 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25641 hardcode_into_libs=yes
25644 # No shared lib support for Linux oldld, aout, or coff.
25645 linux*oldld* | linux*aout* | linux*coff*)
25649 # This must be Linux ELF.
25654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25655 soname_spec='${libname}${release}${shared_ext}$major'
25656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25657 shlibpath_var=LD_LIBRARY_PATH
25658 shlibpath_overrides_runpath=no
25659 # This implies no fast_install, which is unacceptable.
25660 # Some rework will be needed to allow for fast_install
25661 # before this can be enabled.
25662 hardcode_into_libs=yes
25664 # Append ld.so.conf contents to the search path
25665 if test -f /etc/ld.so.conf; then
25666 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' ' '`
25667 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25670 # We used to test for /lib/ld.so.1 and disable shared libraries on
25671 # powerpc, because MkLinux only supported shared libraries with the
25672 # GNU dynamic linker. Since this was broken with cross compilers,
25673 # most powerpc-linux boxes support dynamic linking these days and
25674 # people can always --disable-shared, the test was removed, and we
25675 # assume the GNU/Linux dynamic linker is in use.
25676 dynamic_linker='GNU/Linux ld.so'
25683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25684 soname_spec='${libname}${release}${shared_ext}$major'
25685 shlibpath_var=LD_LIBRARY_PATH
25686 shlibpath_overrides_runpath=no
25687 hardcode_into_libs=yes
25688 dynamic_linker='GNU ld.so'
25695 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25698 dynamic_linker='NetBSD (a.out) ld.so'
25700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25701 soname_spec='${libname}${release}${shared_ext}$major'
25702 dynamic_linker='NetBSD ld.elf_so'
25704 shlibpath_var=LD_LIBRARY_PATH
25705 shlibpath_overrides_runpath=yes
25706 hardcode_into_libs=yes
25711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25712 shlibpath_var=LD_LIBRARY_PATH
25713 shlibpath_overrides_runpath=yes
25720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25721 soname_spec='${libname}${release}${shared_ext}$major'
25722 shlibpath_var=LD_LIBRARY_PATH
25723 shlibpath_overrides_runpath=yes
25728 sys_lib_dlsearch_path_spec="/usr/lib"
25730 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25732 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25733 *) need_version=no ;;
25735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25736 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25737 shlibpath_var=LD_LIBRARY_PATH
25738 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25740 openbsd2.[89] | openbsd2.[89].*)
25741 shlibpath_overrides_runpath=no
25744 shlibpath_overrides_runpath=yes
25748 shlibpath_overrides_runpath=yes
25753 libname_spec='$name'
25756 library_names_spec='$libname${shared_ext} $libname.a'
25757 dynamic_linker='OS/2 ld.exe'
25758 shlibpath_var=LIBPATH
25761 osf3* | osf4* | osf5*)
25765 soname_spec='${libname}${release}${shared_ext}$major'
25766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25767 shlibpath_var=LD_LIBRARY_PATH
25768 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25769 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25777 soname_spec='${libname}${release}${shared_ext}$major'
25778 shlibpath_var=LD_LIBRARY_PATH
25779 shlibpath_overrides_runpath=yes
25780 hardcode_into_libs=yes
25781 # ldd complains unless libraries are executable
25782 postinstall_cmds='chmod +x $lib'
25787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25788 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25789 shlibpath_var=LD_LIBRARY_PATH
25790 shlibpath_overrides_runpath=yes
25791 if test "$with_gnu_ld" = yes; then
25799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25800 soname_spec='${libname}${release}${shared_ext}$major'
25801 shlibpath_var=LD_LIBRARY_PATH
25802 case $host_vendor in
25804 shlibpath_overrides_runpath=no
25806 export_dynamic_flag_spec='${wl}-Blargedynsym'
25807 runpath_var=LD_RUN_PATH
25815 shlibpath_overrides_runpath=no
25816 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25822 if test -d /usr/nec ;then
25824 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25825 soname_spec='$libname${shared_ext}.$major'
25826 shlibpath_var=LD_LIBRARY_PATH
25830 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25831 version_type=freebsd-elf
25834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25835 soname_spec='${libname}${release}${shared_ext}$major'
25836 shlibpath_var=LD_LIBRARY_PATH
25837 hardcode_into_libs=yes
25838 if test "$with_gnu_ld" = yes; then
25839 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25840 shlibpath_overrides_runpath=no
25842 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25843 shlibpath_overrides_runpath=yes
25846 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25850 sys_lib_dlsearch_path_spec='/usr/lib'
25855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25856 soname_spec='${libname}${release}${shared_ext}$major'
25857 shlibpath_var=LD_LIBRARY_PATH
25864 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25865 echo "${ECHO_T}$dynamic_linker" >&6; }
25866 test "$dynamic_linker" = no && can_build_shared=no
25868 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25869 if test "$GCC" = yes; then
25870 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25873 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25874 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25875 hardcode_action_GCJ=
25876 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25877 test -n "$runpath_var_GCJ" || \
25878 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25880 # We can hardcode non-existant directories.
25881 if test "$hardcode_direct_GCJ" != no &&
25882 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25883 # have to relink, otherwise we might link with an installed library
25884 # when we should be linking with a yet-to-be-installed one
25885 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25886 test "$hardcode_minus_L_GCJ" != no; then
25887 # Linking always hardcodes the temporary library directory.
25888 hardcode_action_GCJ=relink
25890 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25891 hardcode_action_GCJ=immediate
25894 # We cannot hardcode anything, or else we can only hardcode existing
25896 hardcode_action_GCJ=unsupported
25898 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25899 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25901 if test "$hardcode_action_GCJ" = relink; then
25902 # Fast installation is not supported
25903 enable_fast_install=no
25904 elif test "$shlibpath_overrides_runpath" = yes ||
25905 test "$enable_shared" = no; then
25906 # Fast installation is not necessary
25907 enable_fast_install=needless
25911 # The else clause should only fire when bootstrapping the
25912 # libtool distribution, otherwise you forgot to ship ltmain.sh
25913 # with your package, and you will get complaints that there are
25914 # no rules to generate ltmain.sh.
25915 if test -f "$ltmain"; then
25916 # See if we are running on zsh, and set the options which allow our commands through
25917 # without removal of \ escapes.
25918 if test -n "${ZSH_VERSION+set}" ; then
25919 setopt NO_GLOB_SUBST
25921 # Now quote all the things that may contain metacharacters while being
25922 # careful not to overquote the AC_SUBSTed values. We take copies of the
25923 # variables and quote the copies for generation of the libtool script.
25924 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25926 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25927 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25928 deplibs_check_method reload_flag reload_cmds need_locks \
25929 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25930 lt_cv_sys_global_symbol_to_c_name_address \
25931 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25932 old_postinstall_cmds old_postuninstall_cmds \
25936 lt_prog_compiler_wl_GCJ \
25937 lt_prog_compiler_pic_GCJ \
25938 lt_prog_compiler_static_GCJ \
25939 lt_prog_compiler_no_builtin_flag_GCJ \
25940 export_dynamic_flag_spec_GCJ \
25941 thread_safe_flag_spec_GCJ \
25942 whole_archive_flag_spec_GCJ \
25943 enable_shared_with_static_runtimes_GCJ \
25944 old_archive_cmds_GCJ \
25945 old_archive_from_new_cmds_GCJ \
25946 predep_objects_GCJ \
25947 postdep_objects_GCJ \
25950 compiler_lib_search_path_GCJ \
25952 archive_expsym_cmds_GCJ \
25953 postinstall_cmds_GCJ \
25954 postuninstall_cmds_GCJ \
25955 old_archive_from_expsyms_cmds_GCJ \
25956 allow_undefined_flag_GCJ \
25957 no_undefined_flag_GCJ \
25958 export_symbols_cmds_GCJ \
25959 hardcode_libdir_flag_spec_GCJ \
25960 hardcode_libdir_flag_spec_ld_GCJ \
25961 hardcode_libdir_separator_GCJ \
25962 hardcode_automatic_GCJ \
25964 module_expsym_cmds_GCJ \
25965 lt_cv_prog_compiler_c_o_GCJ \
25966 exclude_expsyms_GCJ \
25967 include_expsyms_GCJ; do
25970 old_archive_cmds_GCJ | \
25971 old_archive_from_new_cmds_GCJ | \
25972 archive_cmds_GCJ | \
25973 archive_expsym_cmds_GCJ | \
25974 module_cmds_GCJ | \
25975 module_expsym_cmds_GCJ | \
25976 old_archive_from_expsyms_cmds_GCJ | \
25977 export_symbols_cmds_GCJ | \
25978 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25979 postinstall_cmds | postuninstall_cmds | \
25980 old_postinstall_cmds | old_postuninstall_cmds | \
25981 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25982 # Double-quote double-evaled strings.
25983 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25986 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25992 *'\$0 --fallback-echo"')
25993 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25999 cat <<__EOF__ >> "$cfgfile"
26000 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26002 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26004 # Shell to use when invoking shell scripts.
26007 # Whether or not to build shared libraries.
26008 build_libtool_libs=$enable_shared
26010 # Whether or not to build static libraries.
26011 build_old_libs=$enable_static
26013 # Whether or not to add -lc for building shared libraries.
26014 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26016 # Whether or not to disallow shared libs when runtime libs are static
26017 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26019 # Whether or not to optimize for fast installation.
26020 fast_install=$enable_fast_install
26023 host_alias=$host_alias
26027 # The build system.
26028 build_alias=$build_alias
26032 # An echo program that does not interpret backslashes.
26037 AR_FLAGS=$lt_AR_FLAGS
26042 # LTCC compiler flags.
26043 LTCFLAGS=$lt_LTCFLAGS
26045 # A language-specific compiler.
26046 CC=$lt_compiler_GCJ
26048 # Is the compiler the GNU C compiler?
26054 # The linker used to build libraries.
26057 # Whether we need hard or soft links.
26060 # A BSD-compatible nm program.
26063 # A symbol stripping program
26066 # Used to examine libraries when file_magic_cmd begins "file"
26067 MAGIC_CMD=$MAGIC_CMD
26069 # Used on cygwin: DLL creation program.
26072 # Used on cygwin: object dumper.
26075 # Used on cygwin: assembler.
26078 # The name of the directory that contains temporary libtool files.
26081 # How to create reloadable object files.
26082 reload_flag=$lt_reload_flag
26083 reload_cmds=$lt_reload_cmds
26085 # How to pass a linker flag through the compiler.
26086 wl=$lt_lt_prog_compiler_wl_GCJ
26088 # Object file suffix (normally "o").
26089 objext="$ac_objext"
26091 # Old archive suffix (normally "a").
26094 # Shared library suffix (normally ".so").
26095 shrext_cmds='$shrext_cmds'
26097 # Executable file suffix (normally "").
26100 # Additional compiler flags for building library objects.
26101 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26104 # What is the maximum length of a command?
26105 max_cmd_len=$lt_cv_sys_max_cmd_len
26107 # Does compiler simultaneously support -c and -o options?
26108 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26110 # Must we lock files when doing compilation?
26111 need_locks=$lt_need_locks
26113 # Do we need the lib prefix for modules?
26114 need_lib_prefix=$need_lib_prefix
26116 # Do we need a version for libraries?
26117 need_version=$need_version
26119 # Whether dlopen is supported.
26120 dlopen_support=$enable_dlopen
26122 # Whether dlopen of programs is supported.
26123 dlopen_self=$enable_dlopen_self
26125 # Whether dlopen of statically linked programs is supported.
26126 dlopen_self_static=$enable_dlopen_self_static
26128 # Compiler flag to prevent dynamic linking.
26129 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26131 # Compiler flag to turn off builtin functions.
26132 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26134 # Compiler flag to allow reflexive dlopens.
26135 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26137 # Compiler flag to generate shared objects directly from archives.
26138 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26140 # Compiler flag to generate thread-safe objects.
26141 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26143 # Library versioning type.
26144 version_type=$version_type
26146 # Format of library name prefix.
26147 libname_spec=$lt_libname_spec
26149 # List of archive names. First name is the real one, the rest are links.
26150 # The last name is the one that the linker finds with -lNAME.
26151 library_names_spec=$lt_library_names_spec
26153 # The coded name of the library, if different from the real name.
26154 soname_spec=$lt_soname_spec
26156 # Commands used to build and install an old-style archive.
26158 old_archive_cmds=$lt_old_archive_cmds_GCJ
26159 old_postinstall_cmds=$lt_old_postinstall_cmds
26160 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26162 # Create an old-style archive from a shared archive.
26163 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26165 # Create a temporary old-style archive to link instead of a shared archive.
26166 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26168 # Commands used to build and install a shared archive.
26169 archive_cmds=$lt_archive_cmds_GCJ
26170 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26171 postinstall_cmds=$lt_postinstall_cmds
26172 postuninstall_cmds=$lt_postuninstall_cmds
26174 # Commands used to build a loadable module (assumed same as above if empty)
26175 module_cmds=$lt_module_cmds_GCJ
26176 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26178 # Commands to strip libraries.
26179 old_striplib=$lt_old_striplib
26180 striplib=$lt_striplib
26182 # Dependencies to place before the objects being linked to create a
26184 predep_objects=$lt_predep_objects_GCJ
26186 # Dependencies to place after the objects being linked to create a
26188 postdep_objects=$lt_postdep_objects_GCJ
26190 # Dependencies to place before the objects being linked to create a
26192 predeps=$lt_predeps_GCJ
26194 # Dependencies to place after the objects being linked to create a
26196 postdeps=$lt_postdeps_GCJ
26198 # The library search path used internally by the compiler when linking
26199 # a shared library.
26200 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26202 # Method to check whether dependent libraries are shared objects.
26203 deplibs_check_method=$lt_deplibs_check_method
26205 # Command to use when deplibs_check_method == file_magic.
26206 file_magic_cmd=$lt_file_magic_cmd
26208 # Flag that allows shared libraries with undefined symbols to be built.
26209 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26211 # Flag that forces no undefined symbols.
26212 no_undefined_flag=$lt_no_undefined_flag_GCJ
26214 # Commands used to finish a libtool library installation in a directory.
26215 finish_cmds=$lt_finish_cmds
26217 # Same as above, but a single script fragment to be evaled but not shown.
26218 finish_eval=$lt_finish_eval
26220 # Take the output of nm and produce a listing of raw symbols and C names.
26221 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26223 # Transform the output of nm in a proper C declaration
26224 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26226 # Transform the output of nm in a C name address pair
26227 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26229 # This is the shared library runtime path variable.
26230 runpath_var=$runpath_var
26232 # This is the shared library path variable.
26233 shlibpath_var=$shlibpath_var
26235 # Is shlibpath searched before the hard-coded library search path?
26236 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26238 # How to hardcode a shared library path into an executable.
26239 hardcode_action=$hardcode_action_GCJ
26241 # Whether we should hardcode library paths into libraries.
26242 hardcode_into_libs=$hardcode_into_libs
26244 # Flag to hardcode \$libdir into a binary during linking.
26245 # This must work even if \$libdir does not exist.
26246 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26248 # If ld is used when linking, flag to hardcode \$libdir into
26249 # a binary during linking. This must work even if \$libdir does
26251 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26253 # Whether we need a single -rpath flag with a separated argument.
26254 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26256 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26257 # resulting binary.
26258 hardcode_direct=$hardcode_direct_GCJ
26260 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26261 # resulting binary.
26262 hardcode_minus_L=$hardcode_minus_L_GCJ
26264 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26265 # the resulting binary.
26266 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26268 # Set to yes if building a shared library automatically hardcodes DIR into the library
26269 # and all subsequent libraries and executables linked against it.
26270 hardcode_automatic=$hardcode_automatic_GCJ
26272 # Variables whose values should be saved in libtool wrapper scripts and
26273 # restored at relink time.
26274 variables_saved_for_relink="$variables_saved_for_relink"
26276 # Whether libtool must link a program against all its dependency libraries.
26277 link_all_deplibs=$link_all_deplibs_GCJ
26279 # Compile-time system search path for libraries
26280 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26282 # Run-time system search path for libraries
26283 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26285 # Fix the shell variable \$srcfile for the compiler.
26286 fix_srcfile_path="$fix_srcfile_path_GCJ"
26288 # Set to yes if exported symbols are required.
26289 always_export_symbols=$always_export_symbols_GCJ
26291 # The commands to list exported symbols.
26292 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26294 # The commands to extract the exported symbol list from a shared archive.
26295 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26297 # Symbols that should not be listed in the preloaded symbols.
26298 exclude_expsyms=$lt_exclude_expsyms_GCJ
26300 # Symbols that must always be exported.
26301 include_expsyms=$lt_include_expsyms_GCJ
26303 # ### END LIBTOOL TAG CONFIG: $tagname
26309 # If there is no Makefile yet, we rely on a make rule to execute
26310 # `config.status --recheck' to rerun these tests and create the
26311 # libtool script then.
26312 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26313 if test -f "$ltmain_in"; then
26314 test -f Makefile && make "$ltmain"
26320 ac_cpp='$CPP $CPPFLAGS'
26321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26334 ac_cpp='$CPP $CPPFLAGS'
26335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26340 # Source file extension for RC test sources.
26343 # Object file extension for compiled RC test sources.
26347 # Code to be used in simple compile tests
26348 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26350 # Code to be used in simple link tests
26351 lt_simple_link_test_code="$lt_simple_compile_test_code"
26353 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26355 # If no C compiler was specified, use CC.
26358 # If no C compiler flags were specified, use CFLAGS.
26359 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26361 # Allow CC to be a program name with arguments.
26365 # save warnings/boilerplate of simple test code
26366 ac_outfile=conftest.$ac_objext
26367 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26368 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26369 _lt_compiler_boilerplate=`cat conftest.err`
26372 ac_outfile=conftest.$ac_objext
26373 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26374 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26375 _lt_linker_boilerplate=`cat conftest.err`
26379 # Allow CC to be a program name with arguments.
26384 for cc_temp in $compiler""; do
26386 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26387 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26392 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26394 lt_cv_prog_compiler_c_o_RC=yes
26396 # The else clause should only fire when bootstrapping the
26397 # libtool distribution, otherwise you forgot to ship ltmain.sh
26398 # with your package, and you will get complaints that there are
26399 # no rules to generate ltmain.sh.
26400 if test -f "$ltmain"; then
26401 # See if we are running on zsh, and set the options which allow our commands through
26402 # without removal of \ escapes.
26403 if test -n "${ZSH_VERSION+set}" ; then
26404 setopt NO_GLOB_SUBST
26406 # Now quote all the things that may contain metacharacters while being
26407 # careful not to overquote the AC_SUBSTed values. We take copies of the
26408 # variables and quote the copies for generation of the libtool script.
26409 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26411 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26412 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26413 deplibs_check_method reload_flag reload_cmds need_locks \
26414 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26415 lt_cv_sys_global_symbol_to_c_name_address \
26416 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26417 old_postinstall_cmds old_postuninstall_cmds \
26421 lt_prog_compiler_wl_RC \
26422 lt_prog_compiler_pic_RC \
26423 lt_prog_compiler_static_RC \
26424 lt_prog_compiler_no_builtin_flag_RC \
26425 export_dynamic_flag_spec_RC \
26426 thread_safe_flag_spec_RC \
26427 whole_archive_flag_spec_RC \
26428 enable_shared_with_static_runtimes_RC \
26429 old_archive_cmds_RC \
26430 old_archive_from_new_cmds_RC \
26431 predep_objects_RC \
26432 postdep_objects_RC \
26435 compiler_lib_search_path_RC \
26437 archive_expsym_cmds_RC \
26438 postinstall_cmds_RC \
26439 postuninstall_cmds_RC \
26440 old_archive_from_expsyms_cmds_RC \
26441 allow_undefined_flag_RC \
26442 no_undefined_flag_RC \
26443 export_symbols_cmds_RC \
26444 hardcode_libdir_flag_spec_RC \
26445 hardcode_libdir_flag_spec_ld_RC \
26446 hardcode_libdir_separator_RC \
26447 hardcode_automatic_RC \
26449 module_expsym_cmds_RC \
26450 lt_cv_prog_compiler_c_o_RC \
26451 exclude_expsyms_RC \
26452 include_expsyms_RC; do
26455 old_archive_cmds_RC | \
26456 old_archive_from_new_cmds_RC | \
26457 archive_cmds_RC | \
26458 archive_expsym_cmds_RC | \
26460 module_expsym_cmds_RC | \
26461 old_archive_from_expsyms_cmds_RC | \
26462 export_symbols_cmds_RC | \
26463 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26464 postinstall_cmds | postuninstall_cmds | \
26465 old_postinstall_cmds | old_postuninstall_cmds | \
26466 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26467 # Double-quote double-evaled strings.
26468 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26471 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26477 *'\$0 --fallback-echo"')
26478 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26484 cat <<__EOF__ >> "$cfgfile"
26485 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26487 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26489 # Shell to use when invoking shell scripts.
26492 # Whether or not to build shared libraries.
26493 build_libtool_libs=$enable_shared
26495 # Whether or not to build static libraries.
26496 build_old_libs=$enable_static
26498 # Whether or not to add -lc for building shared libraries.
26499 build_libtool_need_lc=$archive_cmds_need_lc_RC
26501 # Whether or not to disallow shared libs when runtime libs are static
26502 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26504 # Whether or not to optimize for fast installation.
26505 fast_install=$enable_fast_install
26508 host_alias=$host_alias
26512 # The build system.
26513 build_alias=$build_alias
26517 # An echo program that does not interpret backslashes.
26522 AR_FLAGS=$lt_AR_FLAGS
26527 # LTCC compiler flags.
26528 LTCFLAGS=$lt_LTCFLAGS
26530 # A language-specific compiler.
26533 # Is the compiler the GNU C compiler?
26539 # The linker used to build libraries.
26542 # Whether we need hard or soft links.
26545 # A BSD-compatible nm program.
26548 # A symbol stripping program
26551 # Used to examine libraries when file_magic_cmd begins "file"
26552 MAGIC_CMD=$MAGIC_CMD
26554 # Used on cygwin: DLL creation program.
26557 # Used on cygwin: object dumper.
26560 # Used on cygwin: assembler.
26563 # The name of the directory that contains temporary libtool files.
26566 # How to create reloadable object files.
26567 reload_flag=$lt_reload_flag
26568 reload_cmds=$lt_reload_cmds
26570 # How to pass a linker flag through the compiler.
26571 wl=$lt_lt_prog_compiler_wl_RC
26573 # Object file suffix (normally "o").
26574 objext="$ac_objext"
26576 # Old archive suffix (normally "a").
26579 # Shared library suffix (normally ".so").
26580 shrext_cmds='$shrext_cmds'
26582 # Executable file suffix (normally "").
26585 # Additional compiler flags for building library objects.
26586 pic_flag=$lt_lt_prog_compiler_pic_RC
26589 # What is the maximum length of a command?
26590 max_cmd_len=$lt_cv_sys_max_cmd_len
26592 # Does compiler simultaneously support -c and -o options?
26593 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26595 # Must we lock files when doing compilation?
26596 need_locks=$lt_need_locks
26598 # Do we need the lib prefix for modules?
26599 need_lib_prefix=$need_lib_prefix
26601 # Do we need a version for libraries?
26602 need_version=$need_version
26604 # Whether dlopen is supported.
26605 dlopen_support=$enable_dlopen
26607 # Whether dlopen of programs is supported.
26608 dlopen_self=$enable_dlopen_self
26610 # Whether dlopen of statically linked programs is supported.
26611 dlopen_self_static=$enable_dlopen_self_static
26613 # Compiler flag to prevent dynamic linking.
26614 link_static_flag=$lt_lt_prog_compiler_static_RC
26616 # Compiler flag to turn off builtin functions.
26617 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26619 # Compiler flag to allow reflexive dlopens.
26620 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26622 # Compiler flag to generate shared objects directly from archives.
26623 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26625 # Compiler flag to generate thread-safe objects.
26626 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26628 # Library versioning type.
26629 version_type=$version_type
26631 # Format of library name prefix.
26632 libname_spec=$lt_libname_spec
26634 # List of archive names. First name is the real one, the rest are links.
26635 # The last name is the one that the linker finds with -lNAME.
26636 library_names_spec=$lt_library_names_spec
26638 # The coded name of the library, if different from the real name.
26639 soname_spec=$lt_soname_spec
26641 # Commands used to build and install an old-style archive.
26643 old_archive_cmds=$lt_old_archive_cmds_RC
26644 old_postinstall_cmds=$lt_old_postinstall_cmds
26645 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26647 # Create an old-style archive from a shared archive.
26648 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26650 # Create a temporary old-style archive to link instead of a shared archive.
26651 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26653 # Commands used to build and install a shared archive.
26654 archive_cmds=$lt_archive_cmds_RC
26655 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26656 postinstall_cmds=$lt_postinstall_cmds
26657 postuninstall_cmds=$lt_postuninstall_cmds
26659 # Commands used to build a loadable module (assumed same as above if empty)
26660 module_cmds=$lt_module_cmds_RC
26661 module_expsym_cmds=$lt_module_expsym_cmds_RC
26663 # Commands to strip libraries.
26664 old_striplib=$lt_old_striplib
26665 striplib=$lt_striplib
26667 # Dependencies to place before the objects being linked to create a
26669 predep_objects=$lt_predep_objects_RC
26671 # Dependencies to place after the objects being linked to create a
26673 postdep_objects=$lt_postdep_objects_RC
26675 # Dependencies to place before the objects being linked to create a
26677 predeps=$lt_predeps_RC
26679 # Dependencies to place after the objects being linked to create a
26681 postdeps=$lt_postdeps_RC
26683 # The library search path used internally by the compiler when linking
26684 # a shared library.
26685 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26687 # Method to check whether dependent libraries are shared objects.
26688 deplibs_check_method=$lt_deplibs_check_method
26690 # Command to use when deplibs_check_method == file_magic.
26691 file_magic_cmd=$lt_file_magic_cmd
26693 # Flag that allows shared libraries with undefined symbols to be built.
26694 allow_undefined_flag=$lt_allow_undefined_flag_RC
26696 # Flag that forces no undefined symbols.
26697 no_undefined_flag=$lt_no_undefined_flag_RC
26699 # Commands used to finish a libtool library installation in a directory.
26700 finish_cmds=$lt_finish_cmds
26702 # Same as above, but a single script fragment to be evaled but not shown.
26703 finish_eval=$lt_finish_eval
26705 # Take the output of nm and produce a listing of raw symbols and C names.
26706 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26708 # Transform the output of nm in a proper C declaration
26709 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26711 # Transform the output of nm in a C name address pair
26712 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26714 # This is the shared library runtime path variable.
26715 runpath_var=$runpath_var
26717 # This is the shared library path variable.
26718 shlibpath_var=$shlibpath_var
26720 # Is shlibpath searched before the hard-coded library search path?
26721 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26723 # How to hardcode a shared library path into an executable.
26724 hardcode_action=$hardcode_action_RC
26726 # Whether we should hardcode library paths into libraries.
26727 hardcode_into_libs=$hardcode_into_libs
26729 # Flag to hardcode \$libdir into a binary during linking.
26730 # This must work even if \$libdir does not exist.
26731 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26733 # If ld is used when linking, flag to hardcode \$libdir into
26734 # a binary during linking. This must work even if \$libdir does
26736 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26738 # Whether we need a single -rpath flag with a separated argument.
26739 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26741 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26742 # resulting binary.
26743 hardcode_direct=$hardcode_direct_RC
26745 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26746 # resulting binary.
26747 hardcode_minus_L=$hardcode_minus_L_RC
26749 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26750 # the resulting binary.
26751 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26753 # Set to yes if building a shared library automatically hardcodes DIR into the library
26754 # and all subsequent libraries and executables linked against it.
26755 hardcode_automatic=$hardcode_automatic_RC
26757 # Variables whose values should be saved in libtool wrapper scripts and
26758 # restored at relink time.
26759 variables_saved_for_relink="$variables_saved_for_relink"
26761 # Whether libtool must link a program against all its dependency libraries.
26762 link_all_deplibs=$link_all_deplibs_RC
26764 # Compile-time system search path for libraries
26765 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26767 # Run-time system search path for libraries
26768 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26770 # Fix the shell variable \$srcfile for the compiler.
26771 fix_srcfile_path="$fix_srcfile_path_RC"
26773 # Set to yes if exported symbols are required.
26774 always_export_symbols=$always_export_symbols_RC
26776 # The commands to list exported symbols.
26777 export_symbols_cmds=$lt_export_symbols_cmds_RC
26779 # The commands to extract the exported symbol list from a shared archive.
26780 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26782 # Symbols that should not be listed in the preloaded symbols.
26783 exclude_expsyms=$lt_exclude_expsyms_RC
26785 # Symbols that must always be exported.
26786 include_expsyms=$lt_include_expsyms_RC
26788 # ### END LIBTOOL TAG CONFIG: $tagname
26794 # If there is no Makefile yet, we rely on a make rule to execute
26795 # `config.status --recheck' to rerun these tests and create the
26796 # libtool script then.
26797 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26798 if test -f "$ltmain_in"; then
26799 test -f Makefile && make "$ltmain"
26805 ac_cpp='$CPP $CPPFLAGS'
26806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26815 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26816 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26817 { (exit 1); exit 1; }; }
26821 # Append the new tag name to the list of available tags.
26822 if test -n "$tagname" ; then
26823 available_tags="$available_tags $tagname"
26829 # Now substitute the updated list of available tags.
26830 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26831 mv "${ofile}T" "$ofile"
26835 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26836 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26837 { (exit 1); exit 1; }; }
26843 # This can be used to rebuild libtool when needed
26844 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26846 # Always use our own libtool.
26847 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26849 # Prevent multiple expansion
26871 if test "$lt_cv_dlopen_self" = "yes" ; then
26873 cat >>confdefs.h <<\_ACEOF
26874 #define CAN_DLOPEN_SELF 1
26880 if test "$WITH_LLVMGCCDIR" = "default" ; then
26881 LLVMGCC="llvm-gcc${EXEEXT}"
26882 LLVMGXX="llvm-g++${EXEEXT}"
26883 LLVMGCCCOMMAND="$LLVMGCC"
26884 LLVMGXXCOMMAND="$LLVMGXX"
26885 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26887 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26889 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26890 set dummy $LLVMGCC; ac_word=$2
26891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26893 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26894 echo $ECHO_N "(cached) $ECHO_C" >&6
26898 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26902 for as_dir in $PATH
26905 test -z "$as_dir" && as_dir=.
26906 for ac_exec_ext in '' $ac_executable_extensions; do
26907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26908 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26919 LLVMGCC=$ac_cv_path_LLVMGCC
26920 if test -n "$LLVMGCC"; then
26921 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26922 echo "${ECHO_T}$LLVMGCC" >&6; }
26924 { echo "$as_me:$LINENO: result: no" >&5
26925 echo "${ECHO_T}no" >&6; }
26929 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26930 set dummy $LLVMGXX; ac_word=$2
26931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26933 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26934 echo $ECHO_N "(cached) $ECHO_C" >&6
26938 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26942 for as_dir in $PATH
26945 test -z "$as_dir" && as_dir=.
26946 for ac_exec_ext in '' $ac_executable_extensions; do
26947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26948 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26959 LLVMGXX=$ac_cv_path_LLVMGXX
26960 if test -n "$LLVMGXX"; then
26961 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26962 echo "${ECHO_T}$LLVMGXX" >&6; }
26964 { echo "$as_me:$LINENO: result: no" >&5
26965 echo "${ECHO_T}no" >&6; }
26970 if test -z "$LLVMGCC"; then
26971 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26972 LLVMGCCCOMMAND="$LLVMGCC"
26974 if test -z "$LLVMGXX"; then
26975 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26976 LLVMGXXCOMMAND="$LLVMGXX"
26983 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26985 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26990 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26991 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27004 if test "$GCC" != "yes" && test "$ICC" != "yes"
27006 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27007 echo "$as_me: error: gcc|icc required but not found" >&2;}
27008 { (exit 1); exit 1; }; }
27011 if test "$GXX" != "yes" && test "$IXX" != "yes"
27013 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27014 echo "$as_me: error: g++|icc required but not found" >&2;}
27015 { (exit 1); exit 1; }; }
27018 if test "$GCC" = "yes"
27020 cat >conftest.$ac_ext <<_ACEOF
27021 #if !defined(__GNUC__) || __GNUC__ < 3
27022 #error Unsupported GCC version
27026 rm -f conftest.$ac_objext
27027 if { (ac_try="$ac_compile"
27028 case "(($ac_try" in
27029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27030 *) ac_try_echo=$ac_try;;
27032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27033 (eval "$ac_compile") 2>conftest.er1
27035 grep -v '^ *+' conftest.er1 >conftest.err
27037 cat conftest.err >&5
27038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039 (exit $ac_status); } &&
27040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27041 { (case "(($ac_try" in
27042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27043 *) ac_try_echo=$ac_try;;
27045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27046 (eval "$ac_try") 2>&5
27048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049 (exit $ac_status); }; } &&
27050 { ac_try='test -s conftest.$ac_objext'
27051 { (case "(($ac_try" in
27052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27053 *) ac_try_echo=$ac_try;;
27055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27056 (eval "$ac_try") 2>&5
27058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059 (exit $ac_status); }; }; then
27062 echo "$as_me: failed program was:" >&5
27063 sed 's/^/| /' conftest.$ac_ext >&5
27065 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27066 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27067 { (exit 1); exit 1; }; }
27070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27073 if test -z "$llvm_cv_gnu_make_command"
27075 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27076 echo "$as_me: error: GNU Make required but not found" >&2;}
27077 { (exit 1); exit 1; }; }
27080 { echo "$as_me:$LINENO: result: ok" >&5
27081 echo "${ECHO_T}ok" >&6; }
27085 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27086 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27087 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27088 echo $ECHO_N "(cached) $ECHO_C" >&6
27090 ac_check_lib_save_LIBS=$LIBS
27092 cat >conftest.$ac_ext <<_ACEOF
27095 cat confdefs.h >>conftest.$ac_ext
27096 cat >>conftest.$ac_ext <<_ACEOF
27097 /* end confdefs.h. */
27099 /* Override any GCC internal prototype to avoid an error.
27100 Use char because int might match the return type of a GCC
27101 builtin and then its argument prototype would still apply. */
27109 return elf_begin ();
27114 rm -f conftest.$ac_objext conftest$ac_exeext
27115 if { (ac_try="$ac_link"
27116 case "(($ac_try" in
27117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27118 *) ac_try_echo=$ac_try;;
27120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27121 (eval "$ac_link") 2>conftest.er1
27123 grep -v '^ *+' conftest.er1 >conftest.err
27125 cat conftest.err >&5
27126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27127 (exit $ac_status); } &&
27128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27129 { (case "(($ac_try" in
27130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27131 *) ac_try_echo=$ac_try;;
27133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27134 (eval "$ac_try") 2>&5
27136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137 (exit $ac_status); }; } &&
27138 { ac_try='test -s conftest$ac_exeext'
27139 { (case "(($ac_try" in
27140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27141 *) ac_try_echo=$ac_try;;
27143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27144 (eval "$ac_try") 2>&5
27146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147 (exit $ac_status); }; }; then
27148 ac_cv_lib_elf_elf_begin=yes
27150 echo "$as_me: failed program was:" >&5
27151 sed 's/^/| /' conftest.$ac_ext >&5
27153 ac_cv_lib_elf_elf_begin=no
27156 rm -f core conftest.err conftest.$ac_objext \
27157 conftest$ac_exeext conftest.$ac_ext
27158 LIBS=$ac_check_lib_save_LIBS
27160 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27161 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27162 if test $ac_cv_lib_elf_elf_begin = yes; then
27163 cat >>confdefs.h <<_ACEOF
27164 #define HAVE_LIBELF 1
27172 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27173 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27174 if test "${ac_cv_lib_m_sin+set}" = set; then
27175 echo $ECHO_N "(cached) $ECHO_C" >&6
27177 ac_check_lib_save_LIBS=$LIBS
27179 cat >conftest.$ac_ext <<_ACEOF
27182 cat confdefs.h >>conftest.$ac_ext
27183 cat >>conftest.$ac_ext <<_ACEOF
27184 /* end confdefs.h. */
27186 /* Override any GCC internal prototype to avoid an error.
27187 Use char because int might match the return type of a GCC
27188 builtin and then its argument prototype would still apply. */
27201 rm -f conftest.$ac_objext conftest$ac_exeext
27202 if { (ac_try="$ac_link"
27203 case "(($ac_try" in
27204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27205 *) ac_try_echo=$ac_try;;
27207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27208 (eval "$ac_link") 2>conftest.er1
27210 grep -v '^ *+' conftest.er1 >conftest.err
27212 cat conftest.err >&5
27213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214 (exit $ac_status); } &&
27215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27216 { (case "(($ac_try" in
27217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27218 *) ac_try_echo=$ac_try;;
27220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27221 (eval "$ac_try") 2>&5
27223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224 (exit $ac_status); }; } &&
27225 { ac_try='test -s conftest$ac_exeext'
27226 { (case "(($ac_try" in
27227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27228 *) ac_try_echo=$ac_try;;
27230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27231 (eval "$ac_try") 2>&5
27233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27234 (exit $ac_status); }; }; then
27235 ac_cv_lib_m_sin=yes
27237 echo "$as_me: failed program was:" >&5
27238 sed 's/^/| /' conftest.$ac_ext >&5
27243 rm -f core conftest.err conftest.$ac_objext \
27244 conftest$ac_exeext conftest.$ac_ext
27245 LIBS=$ac_check_lib_save_LIBS
27247 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27248 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27249 if test $ac_cv_lib_m_sin = yes; then
27250 cat >>confdefs.h <<_ACEOF
27251 #define HAVE_LIBM 1
27258 if test "$llvm_cv_os_type" = "MingW" ; then
27260 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27261 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27262 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27263 echo $ECHO_N "(cached) $ECHO_C" >&6
27265 ac_check_lib_save_LIBS=$LIBS
27266 LIBS="-limagehlp $LIBS"
27267 cat >conftest.$ac_ext <<_ACEOF
27270 cat confdefs.h >>conftest.$ac_ext
27271 cat >>conftest.$ac_ext <<_ACEOF
27272 /* end confdefs.h. */
27283 rm -f conftest.$ac_objext conftest$ac_exeext
27284 if { (ac_try="$ac_link"
27285 case "(($ac_try" in
27286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27287 *) ac_try_echo=$ac_try;;
27289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27290 (eval "$ac_link") 2>conftest.er1
27292 grep -v '^ *+' conftest.er1 >conftest.err
27294 cat conftest.err >&5
27295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27296 (exit $ac_status); } &&
27297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27298 { (case "(($ac_try" in
27299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27300 *) ac_try_echo=$ac_try;;
27302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27303 (eval "$ac_try") 2>&5
27305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306 (exit $ac_status); }; } &&
27307 { ac_try='test -s conftest$ac_exeext'
27308 { (case "(($ac_try" in
27309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27310 *) ac_try_echo=$ac_try;;
27312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27313 (eval "$ac_try") 2>&5
27315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316 (exit $ac_status); }; }; then
27317 ac_cv_lib_imagehlp_main=yes
27319 echo "$as_me: failed program was:" >&5
27320 sed 's/^/| /' conftest.$ac_ext >&5
27322 ac_cv_lib_imagehlp_main=no
27325 rm -f core conftest.err conftest.$ac_objext \
27326 conftest$ac_exeext conftest.$ac_ext
27327 LIBS=$ac_check_lib_save_LIBS
27329 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27330 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27331 if test $ac_cv_lib_imagehlp_main = yes; then
27332 cat >>confdefs.h <<_ACEOF
27333 #define HAVE_LIBIMAGEHLP 1
27336 LIBS="-limagehlp $LIBS"
27341 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27342 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27343 if test "${ac_cv_lib_psapi_main+set}" = set; then
27344 echo $ECHO_N "(cached) $ECHO_C" >&6
27346 ac_check_lib_save_LIBS=$LIBS
27347 LIBS="-lpsapi $LIBS"
27348 cat >conftest.$ac_ext <<_ACEOF
27351 cat confdefs.h >>conftest.$ac_ext
27352 cat >>conftest.$ac_ext <<_ACEOF
27353 /* end confdefs.h. */
27364 rm -f conftest.$ac_objext conftest$ac_exeext
27365 if { (ac_try="$ac_link"
27366 case "(($ac_try" in
27367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27368 *) ac_try_echo=$ac_try;;
27370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27371 (eval "$ac_link") 2>conftest.er1
27373 grep -v '^ *+' conftest.er1 >conftest.err
27375 cat conftest.err >&5
27376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377 (exit $ac_status); } &&
27378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27379 { (case "(($ac_try" in
27380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27381 *) ac_try_echo=$ac_try;;
27383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27384 (eval "$ac_try") 2>&5
27386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387 (exit $ac_status); }; } &&
27388 { ac_try='test -s conftest$ac_exeext'
27389 { (case "(($ac_try" in
27390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27391 *) ac_try_echo=$ac_try;;
27393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27394 (eval "$ac_try") 2>&5
27396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397 (exit $ac_status); }; }; then
27398 ac_cv_lib_psapi_main=yes
27400 echo "$as_me: failed program was:" >&5
27401 sed 's/^/| /' conftest.$ac_ext >&5
27403 ac_cv_lib_psapi_main=no
27406 rm -f core conftest.err conftest.$ac_objext \
27407 conftest$ac_exeext conftest.$ac_ext
27408 LIBS=$ac_check_lib_save_LIBS
27410 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27411 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27412 if test $ac_cv_lib_psapi_main = yes; then
27413 cat >>confdefs.h <<_ACEOF
27414 #define HAVE_LIBPSAPI 1
27417 LIBS="-lpsapi $LIBS"
27423 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27424 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27425 if test "${ac_cv_search_dlopen+set}" = set; then
27426 echo $ECHO_N "(cached) $ECHO_C" >&6
27428 ac_func_search_save_LIBS=$LIBS
27429 cat >conftest.$ac_ext <<_ACEOF
27432 cat confdefs.h >>conftest.$ac_ext
27433 cat >>conftest.$ac_ext <<_ACEOF
27434 /* end confdefs.h. */
27436 /* Override any GCC internal prototype to avoid an error.
27437 Use char because int might match the return type of a GCC
27438 builtin and then its argument prototype would still apply. */
27451 for ac_lib in '' dl; do
27452 if test -z "$ac_lib"; then
27453 ac_res="none required"
27456 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27458 rm -f conftest.$ac_objext conftest$ac_exeext
27459 if { (ac_try="$ac_link"
27460 case "(($ac_try" in
27461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27462 *) ac_try_echo=$ac_try;;
27464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27465 (eval "$ac_link") 2>conftest.er1
27467 grep -v '^ *+' conftest.er1 >conftest.err
27469 cat conftest.err >&5
27470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471 (exit $ac_status); } &&
27472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27473 { (case "(($ac_try" in
27474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27475 *) ac_try_echo=$ac_try;;
27477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27478 (eval "$ac_try") 2>&5
27480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27481 (exit $ac_status); }; } &&
27482 { ac_try='test -s conftest$ac_exeext'
27483 { (case "(($ac_try" in
27484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27485 *) ac_try_echo=$ac_try;;
27487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27488 (eval "$ac_try") 2>&5
27490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27491 (exit $ac_status); }; }; then
27492 ac_cv_search_dlopen=$ac_res
27494 echo "$as_me: failed program was:" >&5
27495 sed 's/^/| /' conftest.$ac_ext >&5
27500 rm -f core conftest.err conftest.$ac_objext \
27502 if test "${ac_cv_search_dlopen+set}" = set; then
27506 if test "${ac_cv_search_dlopen+set}" = set; then
27509 ac_cv_search_dlopen=no
27511 rm conftest.$ac_ext
27512 LIBS=$ac_func_search_save_LIBS
27514 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27515 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27516 ac_res=$ac_cv_search_dlopen
27517 if test "$ac_res" != no; then
27518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27520 cat >>confdefs.h <<\_ACEOF
27521 #define HAVE_DLOPEN 1
27525 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27526 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27530 if test "$llvm_cv_enable_libffi" = "yes" ; then
27531 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27532 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27533 if test "${ac_cv_search_ffi_call+set}" = set; then
27534 echo $ECHO_N "(cached) $ECHO_C" >&6
27536 ac_func_search_save_LIBS=$LIBS
27537 cat >conftest.$ac_ext <<_ACEOF
27540 cat confdefs.h >>conftest.$ac_ext
27541 cat >>conftest.$ac_ext <<_ACEOF
27542 /* end confdefs.h. */
27544 /* Override any GCC internal prototype to avoid an error.
27545 Use char because int might match the return type of a GCC
27546 builtin and then its argument prototype would still apply. */
27554 return ffi_call ();
27559 for ac_lib in '' ffi; do
27560 if test -z "$ac_lib"; then
27561 ac_res="none required"
27564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27566 rm -f conftest.$ac_objext conftest$ac_exeext
27567 if { (ac_try="$ac_link"
27568 case "(($ac_try" in
27569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27570 *) ac_try_echo=$ac_try;;
27572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27573 (eval "$ac_link") 2>conftest.er1
27575 grep -v '^ *+' conftest.er1 >conftest.err
27577 cat conftest.err >&5
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); } &&
27580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27581 { (case "(($ac_try" in
27582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27583 *) ac_try_echo=$ac_try;;
27585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27586 (eval "$ac_try") 2>&5
27588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589 (exit $ac_status); }; } &&
27590 { ac_try='test -s conftest$ac_exeext'
27591 { (case "(($ac_try" in
27592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27593 *) ac_try_echo=$ac_try;;
27595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27596 (eval "$ac_try") 2>&5
27598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599 (exit $ac_status); }; }; then
27600 ac_cv_search_ffi_call=$ac_res
27602 echo "$as_me: failed program was:" >&5
27603 sed 's/^/| /' conftest.$ac_ext >&5
27608 rm -f core conftest.err conftest.$ac_objext \
27610 if test "${ac_cv_search_ffi_call+set}" = set; then
27614 if test "${ac_cv_search_ffi_call+set}" = set; then
27617 ac_cv_search_ffi_call=no
27619 rm conftest.$ac_ext
27620 LIBS=$ac_func_search_save_LIBS
27622 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27623 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27624 ac_res=$ac_cv_search_ffi_call
27625 if test "$ac_res" != no; then
27626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27628 cat >>confdefs.h <<\_ACEOF
27629 #define HAVE_FFI_CALL 1
27633 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27634 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27639 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27640 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27641 if test "${ac_cv_search_mallinfo+set}" = set; then
27642 echo $ECHO_N "(cached) $ECHO_C" >&6
27644 ac_func_search_save_LIBS=$LIBS
27645 cat >conftest.$ac_ext <<_ACEOF
27648 cat confdefs.h >>conftest.$ac_ext
27649 cat >>conftest.$ac_ext <<_ACEOF
27650 /* end confdefs.h. */
27652 /* Override any GCC internal prototype to avoid an error.
27653 Use char because int might match the return type of a GCC
27654 builtin and then its argument prototype would still apply. */
27662 return mallinfo ();
27667 for ac_lib in '' malloc; do
27668 if test -z "$ac_lib"; then
27669 ac_res="none required"
27672 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27674 rm -f conftest.$ac_objext conftest$ac_exeext
27675 if { (ac_try="$ac_link"
27676 case "(($ac_try" in
27677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27678 *) ac_try_echo=$ac_try;;
27680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27681 (eval "$ac_link") 2>conftest.er1
27683 grep -v '^ *+' conftest.er1 >conftest.err
27685 cat conftest.err >&5
27686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27687 (exit $ac_status); } &&
27688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27689 { (case "(($ac_try" in
27690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27691 *) ac_try_echo=$ac_try;;
27693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27694 (eval "$ac_try") 2>&5
27696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697 (exit $ac_status); }; } &&
27698 { ac_try='test -s conftest$ac_exeext'
27699 { (case "(($ac_try" in
27700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27701 *) ac_try_echo=$ac_try;;
27703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27704 (eval "$ac_try") 2>&5
27706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27707 (exit $ac_status); }; }; then
27708 ac_cv_search_mallinfo=$ac_res
27710 echo "$as_me: failed program was:" >&5
27711 sed 's/^/| /' conftest.$ac_ext >&5
27716 rm -f core conftest.err conftest.$ac_objext \
27718 if test "${ac_cv_search_mallinfo+set}" = set; then
27722 if test "${ac_cv_search_mallinfo+set}" = set; then
27725 ac_cv_search_mallinfo=no
27727 rm conftest.$ac_ext
27728 LIBS=$ac_func_search_save_LIBS
27730 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27731 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27732 ac_res=$ac_cv_search_mallinfo
27733 if test "$ac_res" != no; then
27734 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27736 cat >>confdefs.h <<\_ACEOF
27737 #define HAVE_MALLINFO 1
27743 if test "$ENABLE_THREADS" -eq 1 ; then
27745 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27746 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27747 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27748 echo $ECHO_N "(cached) $ECHO_C" >&6
27750 ac_check_lib_save_LIBS=$LIBS
27751 LIBS="-lpthread $LIBS"
27752 cat >conftest.$ac_ext <<_ACEOF
27755 cat confdefs.h >>conftest.$ac_ext
27756 cat >>conftest.$ac_ext <<_ACEOF
27757 /* end confdefs.h. */
27759 /* Override any GCC internal prototype to avoid an error.
27760 Use char because int might match the return type of a GCC
27761 builtin and then its argument prototype would still apply. */
27765 char pthread_mutex_init ();
27769 return pthread_mutex_init ();
27774 rm -f conftest.$ac_objext conftest$ac_exeext
27775 if { (ac_try="$ac_link"
27776 case "(($ac_try" in
27777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27778 *) ac_try_echo=$ac_try;;
27780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27781 (eval "$ac_link") 2>conftest.er1
27783 grep -v '^ *+' conftest.er1 >conftest.err
27785 cat conftest.err >&5
27786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787 (exit $ac_status); } &&
27788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27789 { (case "(($ac_try" in
27790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27791 *) ac_try_echo=$ac_try;;
27793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27794 (eval "$ac_try") 2>&5
27796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27797 (exit $ac_status); }; } &&
27798 { ac_try='test -s conftest$ac_exeext'
27799 { (case "(($ac_try" in
27800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27801 *) ac_try_echo=$ac_try;;
27803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27804 (eval "$ac_try") 2>&5
27806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807 (exit $ac_status); }; }; then
27808 ac_cv_lib_pthread_pthread_mutex_init=yes
27810 echo "$as_me: failed program was:" >&5
27811 sed 's/^/| /' conftest.$ac_ext >&5
27813 ac_cv_lib_pthread_pthread_mutex_init=no
27816 rm -f core conftest.err conftest.$ac_objext \
27817 conftest$ac_exeext conftest.$ac_ext
27818 LIBS=$ac_check_lib_save_LIBS
27820 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27821 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27822 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27823 cat >>confdefs.h <<_ACEOF
27824 #define HAVE_LIBPTHREAD 1
27827 LIBS="-lpthread $LIBS"
27831 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27832 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27833 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27834 echo $ECHO_N "(cached) $ECHO_C" >&6
27836 ac_func_search_save_LIBS=$LIBS
27837 cat >conftest.$ac_ext <<_ACEOF
27840 cat confdefs.h >>conftest.$ac_ext
27841 cat >>conftest.$ac_ext <<_ACEOF
27842 /* end confdefs.h. */
27844 /* Override any GCC internal prototype to avoid an error.
27845 Use char because int might match the return type of a GCC
27846 builtin and then its argument prototype would still apply. */
27850 char pthread_mutex_lock ();
27854 return pthread_mutex_lock ();
27859 for ac_lib in '' pthread; do
27860 if test -z "$ac_lib"; then
27861 ac_res="none required"
27864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27866 rm -f conftest.$ac_objext conftest$ac_exeext
27867 if { (ac_try="$ac_link"
27868 case "(($ac_try" in
27869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870 *) ac_try_echo=$ac_try;;
27872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873 (eval "$ac_link") 2>conftest.er1
27875 grep -v '^ *+' conftest.er1 >conftest.err
27877 cat conftest.err >&5
27878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879 (exit $ac_status); } &&
27880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27881 { (case "(($ac_try" in
27882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27883 *) ac_try_echo=$ac_try;;
27885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27886 (eval "$ac_try") 2>&5
27888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27889 (exit $ac_status); }; } &&
27890 { ac_try='test -s conftest$ac_exeext'
27891 { (case "(($ac_try" in
27892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27893 *) ac_try_echo=$ac_try;;
27895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27896 (eval "$ac_try") 2>&5
27898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899 (exit $ac_status); }; }; then
27900 ac_cv_search_pthread_mutex_lock=$ac_res
27902 echo "$as_me: failed program was:" >&5
27903 sed 's/^/| /' conftest.$ac_ext >&5
27908 rm -f core conftest.err conftest.$ac_objext \
27910 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27914 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27917 ac_cv_search_pthread_mutex_lock=no
27919 rm conftest.$ac_ext
27920 LIBS=$ac_func_search_save_LIBS
27922 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27923 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27924 ac_res=$ac_cv_search_pthread_mutex_lock
27925 if test "$ac_res" != no; then
27926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27928 cat >>confdefs.h <<\_ACEOF
27929 #define HAVE_PTHREAD_MUTEX_LOCK 1
27934 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
27935 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
27936 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
27937 echo $ECHO_N "(cached) $ECHO_C" >&6
27939 ac_func_search_save_LIBS=$LIBS
27940 cat >conftest.$ac_ext <<_ACEOF
27943 cat confdefs.h >>conftest.$ac_ext
27944 cat >>conftest.$ac_ext <<_ACEOF
27945 /* end confdefs.h. */
27947 /* Override any GCC internal prototype to avoid an error.
27948 Use char because int might match the return type of a GCC
27949 builtin and then its argument prototype would still apply. */
27953 char pthread_rwlock_init ();
27957 return pthread_rwlock_init ();
27962 for ac_lib in '' pthread; do
27963 if test -z "$ac_lib"; then
27964 ac_res="none required"
27967 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27969 rm -f conftest.$ac_objext conftest$ac_exeext
27970 if { (ac_try="$ac_link"
27971 case "(($ac_try" in
27972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27973 *) ac_try_echo=$ac_try;;
27975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27976 (eval "$ac_link") 2>conftest.er1
27978 grep -v '^ *+' conftest.er1 >conftest.err
27980 cat conftest.err >&5
27981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982 (exit $ac_status); } &&
27983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27984 { (case "(($ac_try" in
27985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27986 *) ac_try_echo=$ac_try;;
27988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27989 (eval "$ac_try") 2>&5
27991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992 (exit $ac_status); }; } &&
27993 { ac_try='test -s conftest$ac_exeext'
27994 { (case "(($ac_try" in
27995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27996 *) ac_try_echo=$ac_try;;
27998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27999 (eval "$ac_try") 2>&5
28001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28002 (exit $ac_status); }; }; then
28003 ac_cv_search_pthread_rwlock_init=$ac_res
28005 echo "$as_me: failed program was:" >&5
28006 sed 's/^/| /' conftest.$ac_ext >&5
28011 rm -f core conftest.err conftest.$ac_objext \
28013 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28017 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28020 ac_cv_search_pthread_rwlock_init=no
28022 rm conftest.$ac_ext
28023 LIBS=$ac_func_search_save_LIBS
28025 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28026 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28027 ac_res=$ac_cv_search_pthread_rwlock_init
28028 if test "$ac_res" != no; then
28029 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28031 cat >>confdefs.h <<\_ACEOF
28032 #define HAVE_PTHREAD_RWLOCK_INIT 1
28037 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28038 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28039 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28040 echo $ECHO_N "(cached) $ECHO_C" >&6
28042 ac_func_search_save_LIBS=$LIBS
28043 cat >conftest.$ac_ext <<_ACEOF
28046 cat confdefs.h >>conftest.$ac_ext
28047 cat >>conftest.$ac_ext <<_ACEOF
28048 /* end confdefs.h. */
28050 /* Override any GCC internal prototype to avoid an error.
28051 Use char because int might match the return type of a GCC
28052 builtin and then its argument prototype would still apply. */
28056 char pthread_getspecific ();
28060 return pthread_getspecific ();
28065 for ac_lib in '' pthread; do
28066 if test -z "$ac_lib"; then
28067 ac_res="none required"
28070 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28072 rm -f conftest.$ac_objext conftest$ac_exeext
28073 if { (ac_try="$ac_link"
28074 case "(($ac_try" in
28075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28076 *) ac_try_echo=$ac_try;;
28078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28079 (eval "$ac_link") 2>conftest.er1
28081 grep -v '^ *+' conftest.er1 >conftest.err
28083 cat conftest.err >&5
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); } &&
28086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28087 { (case "(($ac_try" in
28088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28089 *) ac_try_echo=$ac_try;;
28091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28092 (eval "$ac_try") 2>&5
28094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095 (exit $ac_status); }; } &&
28096 { ac_try='test -s conftest$ac_exeext'
28097 { (case "(($ac_try" in
28098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28099 *) ac_try_echo=$ac_try;;
28101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28102 (eval "$ac_try") 2>&5
28104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105 (exit $ac_status); }; }; then
28106 ac_cv_search_pthread_getspecific=$ac_res
28108 echo "$as_me: failed program was:" >&5
28109 sed 's/^/| /' conftest.$ac_ext >&5
28114 rm -f core conftest.err conftest.$ac_objext \
28116 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28120 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28123 ac_cv_search_pthread_getspecific=no
28125 rm conftest.$ac_ext
28126 LIBS=$ac_func_search_save_LIBS
28128 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28129 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28130 ac_res=$ac_cv_search_pthread_getspecific
28131 if test "$ac_res" != no; then
28132 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28134 cat >>confdefs.h <<\_ACEOF
28135 #define HAVE_PTHREAD_GETSPECIFIC 1
28143 # Check whether --with-udis86 was given.
28144 if test "${with_udis86+set}" = set; then
28145 withval=$with_udis86;
28150 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28153 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28154 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28155 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28156 echo $ECHO_N "(cached) $ECHO_C" >&6
28158 ac_check_lib_save_LIBS=$LIBS
28159 LIBS="-ludis86 $LIBS"
28160 cat >conftest.$ac_ext <<_ACEOF
28163 cat confdefs.h >>conftest.$ac_ext
28164 cat >>conftest.$ac_ext <<_ACEOF
28165 /* end confdefs.h. */
28167 /* Override any GCC internal prototype to avoid an error.
28168 Use char because int might match the return type of a GCC
28169 builtin and then its argument prototype would still apply. */
28182 rm -f conftest.$ac_objext conftest$ac_exeext
28183 if { (ac_try="$ac_link"
28184 case "(($ac_try" in
28185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28186 *) ac_try_echo=$ac_try;;
28188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28189 (eval "$ac_link") 2>conftest.er1
28191 grep -v '^ *+' conftest.er1 >conftest.err
28193 cat conftest.err >&5
28194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195 (exit $ac_status); } &&
28196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28197 { (case "(($ac_try" in
28198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28199 *) ac_try_echo=$ac_try;;
28201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28202 (eval "$ac_try") 2>&5
28204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205 (exit $ac_status); }; } &&
28206 { ac_try='test -s conftest$ac_exeext'
28207 { (case "(($ac_try" in
28208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28209 *) ac_try_echo=$ac_try;;
28211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28212 (eval "$ac_try") 2>&5
28214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28215 (exit $ac_status); }; }; then
28216 ac_cv_lib_udis86_ud_init=yes
28218 echo "$as_me: failed program was:" >&5
28219 sed 's/^/| /' conftest.$ac_ext >&5
28221 ac_cv_lib_udis86_ud_init=no
28224 rm -f core conftest.err conftest.$ac_objext \
28225 conftest$ac_exeext conftest.$ac_ext
28226 LIBS=$ac_check_lib_save_LIBS
28228 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28229 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28230 if test $ac_cv_lib_udis86_ud_init = yes; then
28231 cat >>confdefs.h <<_ACEOF
28232 #define HAVE_LIBUDIS86 1
28235 LIBS="-ludis86 $LIBS"
28239 echo "Error! You need to have libudis86 around."
28251 cat >>confdefs.h <<_ACEOF
28252 #define USE_UDIS86 $USE_UDIS86
28262 ac_header_dirent=no
28263 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28264 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28265 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28266 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28268 echo $ECHO_N "(cached) $ECHO_C" >&6
28270 cat >conftest.$ac_ext <<_ACEOF
28273 cat confdefs.h >>conftest.$ac_ext
28274 cat >>conftest.$ac_ext <<_ACEOF
28275 /* end confdefs.h. */
28276 #include <sys/types.h>
28288 rm -f conftest.$ac_objext
28289 if { (ac_try="$ac_compile"
28290 case "(($ac_try" in
28291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28292 *) ac_try_echo=$ac_try;;
28294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28295 (eval "$ac_compile") 2>conftest.er1
28297 grep -v '^ *+' conftest.er1 >conftest.err
28299 cat conftest.err >&5
28300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301 (exit $ac_status); } &&
28302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28303 { (case "(($ac_try" in
28304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28305 *) ac_try_echo=$ac_try;;
28307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28308 (eval "$ac_try") 2>&5
28310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311 (exit $ac_status); }; } &&
28312 { ac_try='test -s conftest.$ac_objext'
28313 { (case "(($ac_try" in
28314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28315 *) ac_try_echo=$ac_try;;
28317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28318 (eval "$ac_try") 2>&5
28320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321 (exit $ac_status); }; }; then
28322 eval "$as_ac_Header=yes"
28324 echo "$as_me: failed program was:" >&5
28325 sed 's/^/| /' conftest.$ac_ext >&5
28327 eval "$as_ac_Header=no"
28330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28332 ac_res=`eval echo '${'$as_ac_Header'}'`
28333 { echo "$as_me:$LINENO: result: $ac_res" >&5
28334 echo "${ECHO_T}$ac_res" >&6; }
28335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28336 cat >>confdefs.h <<_ACEOF
28337 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28340 ac_header_dirent=$ac_hdr; break
28344 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28345 if test $ac_header_dirent = dirent.h; then
28346 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28347 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28348 if test "${ac_cv_search_opendir+set}" = set; then
28349 echo $ECHO_N "(cached) $ECHO_C" >&6
28351 ac_func_search_save_LIBS=$LIBS
28352 cat >conftest.$ac_ext <<_ACEOF
28355 cat confdefs.h >>conftest.$ac_ext
28356 cat >>conftest.$ac_ext <<_ACEOF
28357 /* end confdefs.h. */
28359 /* Override any GCC internal prototype to avoid an error.
28360 Use char because int might match the return type of a GCC
28361 builtin and then its argument prototype would still apply. */
28374 for ac_lib in '' dir; do
28375 if test -z "$ac_lib"; then
28376 ac_res="none required"
28379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28381 rm -f conftest.$ac_objext conftest$ac_exeext
28382 if { (ac_try="$ac_link"
28383 case "(($ac_try" in
28384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28385 *) ac_try_echo=$ac_try;;
28387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28388 (eval "$ac_link") 2>conftest.er1
28390 grep -v '^ *+' conftest.er1 >conftest.err
28392 cat conftest.err >&5
28393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394 (exit $ac_status); } &&
28395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28396 { (case "(($ac_try" in
28397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28398 *) ac_try_echo=$ac_try;;
28400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28401 (eval "$ac_try") 2>&5
28403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404 (exit $ac_status); }; } &&
28405 { ac_try='test -s conftest$ac_exeext'
28406 { (case "(($ac_try" in
28407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28408 *) ac_try_echo=$ac_try;;
28410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28411 (eval "$ac_try") 2>&5
28413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414 (exit $ac_status); }; }; then
28415 ac_cv_search_opendir=$ac_res
28417 echo "$as_me: failed program was:" >&5
28418 sed 's/^/| /' conftest.$ac_ext >&5
28423 rm -f core conftest.err conftest.$ac_objext \
28425 if test "${ac_cv_search_opendir+set}" = set; then
28429 if test "${ac_cv_search_opendir+set}" = set; then
28432 ac_cv_search_opendir=no
28434 rm conftest.$ac_ext
28435 LIBS=$ac_func_search_save_LIBS
28437 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28438 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28439 ac_res=$ac_cv_search_opendir
28440 if test "$ac_res" != no; then
28441 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28446 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28447 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28448 if test "${ac_cv_search_opendir+set}" = set; then
28449 echo $ECHO_N "(cached) $ECHO_C" >&6
28451 ac_func_search_save_LIBS=$LIBS
28452 cat >conftest.$ac_ext <<_ACEOF
28455 cat confdefs.h >>conftest.$ac_ext
28456 cat >>conftest.$ac_ext <<_ACEOF
28457 /* end confdefs.h. */
28459 /* Override any GCC internal prototype to avoid an error.
28460 Use char because int might match the return type of a GCC
28461 builtin and then its argument prototype would still apply. */
28474 for ac_lib in '' x; do
28475 if test -z "$ac_lib"; then
28476 ac_res="none required"
28479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28481 rm -f conftest.$ac_objext conftest$ac_exeext
28482 if { (ac_try="$ac_link"
28483 case "(($ac_try" in
28484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28485 *) ac_try_echo=$ac_try;;
28487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28488 (eval "$ac_link") 2>conftest.er1
28490 grep -v '^ *+' conftest.er1 >conftest.err
28492 cat conftest.err >&5
28493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28494 (exit $ac_status); } &&
28495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28496 { (case "(($ac_try" in
28497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28498 *) ac_try_echo=$ac_try;;
28500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28501 (eval "$ac_try") 2>&5
28503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504 (exit $ac_status); }; } &&
28505 { ac_try='test -s conftest$ac_exeext'
28506 { (case "(($ac_try" in
28507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28508 *) ac_try_echo=$ac_try;;
28510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28511 (eval "$ac_try") 2>&5
28513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514 (exit $ac_status); }; }; then
28515 ac_cv_search_opendir=$ac_res
28517 echo "$as_me: failed program was:" >&5
28518 sed 's/^/| /' conftest.$ac_ext >&5
28523 rm -f core conftest.err conftest.$ac_objext \
28525 if test "${ac_cv_search_opendir+set}" = set; then
28529 if test "${ac_cv_search_opendir+set}" = set; then
28532 ac_cv_search_opendir=no
28534 rm conftest.$ac_ext
28535 LIBS=$ac_func_search_save_LIBS
28537 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28538 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28539 ac_res=$ac_cv_search_opendir
28540 if test "$ac_res" != no; then
28541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28547 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28548 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28549 if test "${ac_cv_header_mmap_anon+set}" = set; then
28550 echo $ECHO_N "(cached) $ECHO_C" >&6
28553 ac_cpp='$CPP $CPPFLAGS'
28554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28558 cat >conftest.$ac_ext <<_ACEOF
28561 cat confdefs.h >>conftest.$ac_ext
28562 cat >>conftest.$ac_ext <<_ACEOF
28563 /* end confdefs.h. */
28564 #include <sys/mman.h>
28565 #include <unistd.h>
28570 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28575 rm -f conftest.$ac_objext
28576 if { (ac_try="$ac_compile"
28577 case "(($ac_try" in
28578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28579 *) ac_try_echo=$ac_try;;
28581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28582 (eval "$ac_compile") 2>conftest.er1
28584 grep -v '^ *+' conftest.er1 >conftest.err
28586 cat conftest.err >&5
28587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588 (exit $ac_status); } &&
28589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28590 { (case "(($ac_try" in
28591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28592 *) ac_try_echo=$ac_try;;
28594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28595 (eval "$ac_try") 2>&5
28597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598 (exit $ac_status); }; } &&
28599 { ac_try='test -s conftest.$ac_objext'
28600 { (case "(($ac_try" in
28601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28602 *) ac_try_echo=$ac_try;;
28604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28605 (eval "$ac_try") 2>&5
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); }; }; then
28609 ac_cv_header_mmap_anon=yes
28611 echo "$as_me: failed program was:" >&5
28612 sed 's/^/| /' conftest.$ac_ext >&5
28614 ac_cv_header_mmap_anon=no
28617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28619 ac_cpp='$CPP $CPPFLAGS'
28620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28626 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28627 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28628 if test "$ac_cv_header_mmap_anon" = yes; then
28630 cat >>confdefs.h <<\_ACEOF
28631 #define HAVE_MMAP_ANONYMOUS 1
28636 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28637 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28638 if test "${ac_cv_header_stat_broken+set}" = set; then
28639 echo $ECHO_N "(cached) $ECHO_C" >&6
28641 cat >conftest.$ac_ext <<_ACEOF
28644 cat confdefs.h >>conftest.$ac_ext
28645 cat >>conftest.$ac_ext <<_ACEOF
28646 /* end confdefs.h. */
28647 #include <sys/types.h>
28648 #include <sys/stat.h>
28650 #if defined S_ISBLK && defined S_IFDIR
28651 # if S_ISBLK (S_IFDIR)
28656 #if defined S_ISBLK && defined S_IFCHR
28657 # if S_ISBLK (S_IFCHR)
28662 #if defined S_ISLNK && defined S_IFREG
28663 # if S_ISLNK (S_IFREG)
28668 #if defined S_ISSOCK && defined S_IFREG
28669 # if S_ISSOCK (S_IFREG)
28675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28676 $EGREP "You lose" >/dev/null 2>&1; then
28677 ac_cv_header_stat_broken=yes
28679 ac_cv_header_stat_broken=no
28684 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28685 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28686 if test $ac_cv_header_stat_broken = yes; then
28688 cat >>confdefs.h <<\_ACEOF
28689 #define STAT_MACROS_BROKEN 1
28694 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28695 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28696 if test "${ac_cv_header_stdc+set}" = set; then
28697 echo $ECHO_N "(cached) $ECHO_C" >&6
28699 cat >conftest.$ac_ext <<_ACEOF
28702 cat confdefs.h >>conftest.$ac_ext
28703 cat >>conftest.$ac_ext <<_ACEOF
28704 /* end confdefs.h. */
28705 #include <stdlib.h>
28706 #include <stdarg.h>
28707 #include <string.h>
28718 rm -f conftest.$ac_objext
28719 if { (ac_try="$ac_compile"
28720 case "(($ac_try" in
28721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28722 *) ac_try_echo=$ac_try;;
28724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28725 (eval "$ac_compile") 2>conftest.er1
28727 grep -v '^ *+' conftest.er1 >conftest.err
28729 cat conftest.err >&5
28730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28731 (exit $ac_status); } &&
28732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28733 { (case "(($ac_try" in
28734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28735 *) ac_try_echo=$ac_try;;
28737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28738 (eval "$ac_try") 2>&5
28740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28741 (exit $ac_status); }; } &&
28742 { ac_try='test -s conftest.$ac_objext'
28743 { (case "(($ac_try" in
28744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28745 *) ac_try_echo=$ac_try;;
28747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28748 (eval "$ac_try") 2>&5
28750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751 (exit $ac_status); }; }; then
28752 ac_cv_header_stdc=yes
28754 echo "$as_me: failed program was:" >&5
28755 sed 's/^/| /' conftest.$ac_ext >&5
28757 ac_cv_header_stdc=no
28760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28762 if test $ac_cv_header_stdc = yes; then
28763 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28764 cat >conftest.$ac_ext <<_ACEOF
28767 cat confdefs.h >>conftest.$ac_ext
28768 cat >>conftest.$ac_ext <<_ACEOF
28769 /* end confdefs.h. */
28770 #include <string.h>
28773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28774 $EGREP "memchr" >/dev/null 2>&1; then
28777 ac_cv_header_stdc=no
28783 if test $ac_cv_header_stdc = yes; then
28784 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28785 cat >conftest.$ac_ext <<_ACEOF
28788 cat confdefs.h >>conftest.$ac_ext
28789 cat >>conftest.$ac_ext <<_ACEOF
28790 /* end confdefs.h. */
28791 #include <stdlib.h>
28794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28795 $EGREP "free" >/dev/null 2>&1; then
28798 ac_cv_header_stdc=no
28804 if test $ac_cv_header_stdc = yes; then
28805 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28806 if test "$cross_compiling" = yes; then
28809 cat >conftest.$ac_ext <<_ACEOF
28812 cat confdefs.h >>conftest.$ac_ext
28813 cat >>conftest.$ac_ext <<_ACEOF
28814 /* end confdefs.h. */
28816 #include <stdlib.h>
28817 #if ((' ' & 0x0FF) == 0x020)
28818 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28819 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28821 # define ISLOWER(c) \
28822 (('a' <= (c) && (c) <= 'i') \
28823 || ('j' <= (c) && (c) <= 'r') \
28824 || ('s' <= (c) && (c) <= 'z'))
28825 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28828 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28833 for (i = 0; i < 256; i++)
28834 if (XOR (islower (i), ISLOWER (i))
28835 || toupper (i) != TOUPPER (i))
28840 rm -f conftest$ac_exeext
28841 if { (ac_try="$ac_link"
28842 case "(($ac_try" in
28843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28844 *) ac_try_echo=$ac_try;;
28846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28847 (eval "$ac_link") 2>&5
28849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28851 { (case "(($ac_try" in
28852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28853 *) ac_try_echo=$ac_try;;
28855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28856 (eval "$ac_try") 2>&5
28858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859 (exit $ac_status); }; }; then
28862 echo "$as_me: program exited with status $ac_status" >&5
28863 echo "$as_me: failed program was:" >&5
28864 sed 's/^/| /' conftest.$ac_ext >&5
28866 ( exit $ac_status )
28867 ac_cv_header_stdc=no
28869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28875 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28876 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28877 if test $ac_cv_header_stdc = yes; then
28879 cat >>confdefs.h <<\_ACEOF
28880 #define STDC_HEADERS 1
28885 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28886 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28887 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28888 echo $ECHO_N "(cached) $ECHO_C" >&6
28890 cat >conftest.$ac_ext <<_ACEOF
28893 cat confdefs.h >>conftest.$ac_ext
28894 cat >>conftest.$ac_ext <<_ACEOF
28895 /* end confdefs.h. */
28896 #include <sys/types.h>
28897 #include <sys/wait.h>
28898 #ifndef WEXITSTATUS
28899 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28902 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28910 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28915 rm -f conftest.$ac_objext
28916 if { (ac_try="$ac_compile"
28917 case "(($ac_try" in
28918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28919 *) ac_try_echo=$ac_try;;
28921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28922 (eval "$ac_compile") 2>conftest.er1
28924 grep -v '^ *+' conftest.er1 >conftest.err
28926 cat conftest.err >&5
28927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28928 (exit $ac_status); } &&
28929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28930 { (case "(($ac_try" in
28931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28932 *) ac_try_echo=$ac_try;;
28934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28935 (eval "$ac_try") 2>&5
28937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938 (exit $ac_status); }; } &&
28939 { ac_try='test -s conftest.$ac_objext'
28940 { (case "(($ac_try" in
28941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28942 *) ac_try_echo=$ac_try;;
28944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28945 (eval "$ac_try") 2>&5
28947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948 (exit $ac_status); }; }; then
28949 ac_cv_header_sys_wait_h=yes
28951 echo "$as_me: failed program was:" >&5
28952 sed 's/^/| /' conftest.$ac_ext >&5
28954 ac_cv_header_sys_wait_h=no
28957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28959 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28960 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28961 if test $ac_cv_header_sys_wait_h = yes; then
28963 cat >>confdefs.h <<\_ACEOF
28964 #define HAVE_SYS_WAIT_H 1
28969 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28970 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28971 if test "${ac_cv_header_time+set}" = set; then
28972 echo $ECHO_N "(cached) $ECHO_C" >&6
28974 cat >conftest.$ac_ext <<_ACEOF
28977 cat confdefs.h >>conftest.$ac_ext
28978 cat >>conftest.$ac_ext <<_ACEOF
28979 /* end confdefs.h. */
28980 #include <sys/types.h>
28981 #include <sys/time.h>
28987 if ((struct tm *) 0)
28993 rm -f conftest.$ac_objext
28994 if { (ac_try="$ac_compile"
28995 case "(($ac_try" in
28996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28997 *) ac_try_echo=$ac_try;;
28999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29000 (eval "$ac_compile") 2>conftest.er1
29002 grep -v '^ *+' conftest.er1 >conftest.err
29004 cat conftest.err >&5
29005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29006 (exit $ac_status); } &&
29007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29008 { (case "(($ac_try" in
29009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29010 *) ac_try_echo=$ac_try;;
29012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29013 (eval "$ac_try") 2>&5
29015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016 (exit $ac_status); }; } &&
29017 { ac_try='test -s conftest.$ac_objext'
29018 { (case "(($ac_try" in
29019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29020 *) ac_try_echo=$ac_try;;
29022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29023 (eval "$ac_try") 2>&5
29025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29026 (exit $ac_status); }; }; then
29027 ac_cv_header_time=yes
29029 echo "$as_me: failed program was:" >&5
29030 sed 's/^/| /' conftest.$ac_ext >&5
29032 ac_cv_header_time=no
29035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29037 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29038 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29039 if test $ac_cv_header_time = yes; then
29041 cat >>confdefs.h <<\_ACEOF
29042 #define TIME_WITH_SYS_TIME 1
29054 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29061 echo $ECHO_N "(cached) $ECHO_C" >&6
29063 ac_res=`eval echo '${'$as_ac_Header'}'`
29064 { echo "$as_me:$LINENO: result: $ac_res" >&5
29065 echo "${ECHO_T}$ac_res" >&6; }
29067 # Is the header compilable?
29068 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29070 cat >conftest.$ac_ext <<_ACEOF
29073 cat confdefs.h >>conftest.$ac_ext
29074 cat >>conftest.$ac_ext <<_ACEOF
29075 /* end confdefs.h. */
29076 $ac_includes_default
29077 #include <$ac_header>
29079 rm -f conftest.$ac_objext
29080 if { (ac_try="$ac_compile"
29081 case "(($ac_try" in
29082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29083 *) ac_try_echo=$ac_try;;
29085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29086 (eval "$ac_compile") 2>conftest.er1
29088 grep -v '^ *+' conftest.er1 >conftest.err
29090 cat conftest.err >&5
29091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092 (exit $ac_status); } &&
29093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29094 { (case "(($ac_try" in
29095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29096 *) ac_try_echo=$ac_try;;
29098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29099 (eval "$ac_try") 2>&5
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); }; } &&
29103 { ac_try='test -s conftest.$ac_objext'
29104 { (case "(($ac_try" in
29105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29106 *) ac_try_echo=$ac_try;;
29108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29109 (eval "$ac_try") 2>&5
29111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112 (exit $ac_status); }; }; then
29113 ac_header_compiler=yes
29115 echo "$as_me: failed program was:" >&5
29116 sed 's/^/| /' conftest.$ac_ext >&5
29118 ac_header_compiler=no
29121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29122 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29123 echo "${ECHO_T}$ac_header_compiler" >&6; }
29125 # Is the header present?
29126 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29128 cat >conftest.$ac_ext <<_ACEOF
29131 cat confdefs.h >>conftest.$ac_ext
29132 cat >>conftest.$ac_ext <<_ACEOF
29133 /* end confdefs.h. */
29134 #include <$ac_header>
29136 if { (ac_try="$ac_cpp conftest.$ac_ext"
29137 case "(($ac_try" in
29138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29139 *) ac_try_echo=$ac_try;;
29141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29144 grep -v '^ *+' conftest.er1 >conftest.err
29146 cat conftest.err >&5
29147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148 (exit $ac_status); } >/dev/null; then
29149 if test -s conftest.err; then
29150 ac_cpp_err=$ac_c_preproc_warn_flag
29151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29158 if test -z "$ac_cpp_err"; then
29159 ac_header_preproc=yes
29161 echo "$as_me: failed program was:" >&5
29162 sed 's/^/| /' conftest.$ac_ext >&5
29164 ac_header_preproc=no
29167 rm -f conftest.err conftest.$ac_ext
29168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29169 echo "${ECHO_T}$ac_header_preproc" >&6; }
29171 # So? What about this header?
29172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29178 ac_header_preproc=yes
29181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29188 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29194 ## ----------------------------------- ##
29195 ## Report this to llvmbugs@cs.uiuc.edu ##
29196 ## ----------------------------------- ##
29198 ) | sed "s/^/$as_me: WARNING: /" >&2
29201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29204 echo $ECHO_N "(cached) $ECHO_C" >&6
29206 eval "$as_ac_Header=\$ac_header_preproc"
29208 ac_res=`eval echo '${'$as_ac_Header'}'`
29209 { echo "$as_me:$LINENO: result: $ac_res" >&5
29210 echo "${ECHO_T}$ac_res" >&6; }
29213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29214 cat >>confdefs.h <<_ACEOF
29215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29228 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29235 echo $ECHO_N "(cached) $ECHO_C" >&6
29237 ac_res=`eval echo '${'$as_ac_Header'}'`
29238 { echo "$as_me:$LINENO: result: $ac_res" >&5
29239 echo "${ECHO_T}$ac_res" >&6; }
29241 # Is the header compilable?
29242 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29243 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29244 cat >conftest.$ac_ext <<_ACEOF
29247 cat confdefs.h >>conftest.$ac_ext
29248 cat >>conftest.$ac_ext <<_ACEOF
29249 /* end confdefs.h. */
29250 $ac_includes_default
29251 #include <$ac_header>
29253 rm -f conftest.$ac_objext
29254 if { (ac_try="$ac_compile"
29255 case "(($ac_try" in
29256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29257 *) ac_try_echo=$ac_try;;
29259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29260 (eval "$ac_compile") 2>conftest.er1
29262 grep -v '^ *+' conftest.er1 >conftest.err
29264 cat conftest.err >&5
29265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29266 (exit $ac_status); } &&
29267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29268 { (case "(($ac_try" in
29269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29270 *) ac_try_echo=$ac_try;;
29272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29273 (eval "$ac_try") 2>&5
29275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276 (exit $ac_status); }; } &&
29277 { ac_try='test -s conftest.$ac_objext'
29278 { (case "(($ac_try" in
29279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29280 *) ac_try_echo=$ac_try;;
29282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29283 (eval "$ac_try") 2>&5
29285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29286 (exit $ac_status); }; }; then
29287 ac_header_compiler=yes
29289 echo "$as_me: failed program was:" >&5
29290 sed 's/^/| /' conftest.$ac_ext >&5
29292 ac_header_compiler=no
29295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29296 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29297 echo "${ECHO_T}$ac_header_compiler" >&6; }
29299 # Is the header present?
29300 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29302 cat >conftest.$ac_ext <<_ACEOF
29305 cat confdefs.h >>conftest.$ac_ext
29306 cat >>conftest.$ac_ext <<_ACEOF
29307 /* end confdefs.h. */
29308 #include <$ac_header>
29310 if { (ac_try="$ac_cpp conftest.$ac_ext"
29311 case "(($ac_try" in
29312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29313 *) ac_try_echo=$ac_try;;
29315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29318 grep -v '^ *+' conftest.er1 >conftest.err
29320 cat conftest.err >&5
29321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29322 (exit $ac_status); } >/dev/null; then
29323 if test -s conftest.err; then
29324 ac_cpp_err=$ac_c_preproc_warn_flag
29325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29332 if test -z "$ac_cpp_err"; then
29333 ac_header_preproc=yes
29335 echo "$as_me: failed program was:" >&5
29336 sed 's/^/| /' conftest.$ac_ext >&5
29338 ac_header_preproc=no
29341 rm -f conftest.err conftest.$ac_ext
29342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29343 echo "${ECHO_T}$ac_header_preproc" >&6; }
29345 # So? What about this header?
29346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29352 ac_header_preproc=yes
29355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29362 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29368 ## ----------------------------------- ##
29369 ## Report this to llvmbugs@cs.uiuc.edu ##
29370 ## ----------------------------------- ##
29372 ) | sed "s/^/$as_me: WARNING: /" >&2
29375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29378 echo $ECHO_N "(cached) $ECHO_C" >&6
29380 eval "$as_ac_Header=\$ac_header_preproc"
29382 ac_res=`eval echo '${'$as_ac_Header'}'`
29383 { echo "$as_me:$LINENO: result: $ac_res" >&5
29384 echo "${ECHO_T}$ac_res" >&6; }
29387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29388 cat >>confdefs.h <<_ACEOF
29389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29398 for ac_header in utime.h windows.h
29400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29405 echo $ECHO_N "(cached) $ECHO_C" >&6
29407 ac_res=`eval echo '${'$as_ac_Header'}'`
29408 { echo "$as_me:$LINENO: result: $ac_res" >&5
29409 echo "${ECHO_T}$ac_res" >&6; }
29411 # Is the header compilable?
29412 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29414 cat >conftest.$ac_ext <<_ACEOF
29417 cat confdefs.h >>conftest.$ac_ext
29418 cat >>conftest.$ac_ext <<_ACEOF
29419 /* end confdefs.h. */
29420 $ac_includes_default
29421 #include <$ac_header>
29423 rm -f conftest.$ac_objext
29424 if { (ac_try="$ac_compile"
29425 case "(($ac_try" in
29426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29427 *) ac_try_echo=$ac_try;;
29429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29430 (eval "$ac_compile") 2>conftest.er1
29432 grep -v '^ *+' conftest.er1 >conftest.err
29434 cat conftest.err >&5
29435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436 (exit $ac_status); } &&
29437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29438 { (case "(($ac_try" in
29439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29440 *) ac_try_echo=$ac_try;;
29442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29443 (eval "$ac_try") 2>&5
29445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29446 (exit $ac_status); }; } &&
29447 { ac_try='test -s conftest.$ac_objext'
29448 { (case "(($ac_try" in
29449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29450 *) ac_try_echo=$ac_try;;
29452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29453 (eval "$ac_try") 2>&5
29455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456 (exit $ac_status); }; }; then
29457 ac_header_compiler=yes
29459 echo "$as_me: failed program was:" >&5
29460 sed 's/^/| /' conftest.$ac_ext >&5
29462 ac_header_compiler=no
29465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29466 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29467 echo "${ECHO_T}$ac_header_compiler" >&6; }
29469 # Is the header present?
29470 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29472 cat >conftest.$ac_ext <<_ACEOF
29475 cat confdefs.h >>conftest.$ac_ext
29476 cat >>conftest.$ac_ext <<_ACEOF
29477 /* end confdefs.h. */
29478 #include <$ac_header>
29480 if { (ac_try="$ac_cpp conftest.$ac_ext"
29481 case "(($ac_try" in
29482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29483 *) ac_try_echo=$ac_try;;
29485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29488 grep -v '^ *+' conftest.er1 >conftest.err
29490 cat conftest.err >&5
29491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29492 (exit $ac_status); } >/dev/null; then
29493 if test -s conftest.err; then
29494 ac_cpp_err=$ac_c_preproc_warn_flag
29495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29502 if test -z "$ac_cpp_err"; then
29503 ac_header_preproc=yes
29505 echo "$as_me: failed program was:" >&5
29506 sed 's/^/| /' conftest.$ac_ext >&5
29508 ac_header_preproc=no
29511 rm -f conftest.err conftest.$ac_ext
29512 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29513 echo "${ECHO_T}$ac_header_preproc" >&6; }
29515 # So? What about this header?
29516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29522 ac_header_preproc=yes
29525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29530 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29532 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29536 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29538 ## ----------------------------------- ##
29539 ## Report this to llvmbugs@cs.uiuc.edu ##
29540 ## ----------------------------------- ##
29542 ) | sed "s/^/$as_me: WARNING: /" >&2
29545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29548 echo $ECHO_N "(cached) $ECHO_C" >&6
29550 eval "$as_ac_Header=\$ac_header_preproc"
29552 ac_res=`eval echo '${'$as_ac_Header'}'`
29553 { echo "$as_me:$LINENO: result: $ac_res" >&5
29554 echo "${ECHO_T}$ac_res" >&6; }
29557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29558 cat >>confdefs.h <<_ACEOF
29559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29570 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29577 echo $ECHO_N "(cached) $ECHO_C" >&6
29579 ac_res=`eval echo '${'$as_ac_Header'}'`
29580 { echo "$as_me:$LINENO: result: $ac_res" >&5
29581 echo "${ECHO_T}$ac_res" >&6; }
29583 # Is the header compilable?
29584 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29585 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29586 cat >conftest.$ac_ext <<_ACEOF
29589 cat confdefs.h >>conftest.$ac_ext
29590 cat >>conftest.$ac_ext <<_ACEOF
29591 /* end confdefs.h. */
29592 $ac_includes_default
29593 #include <$ac_header>
29595 rm -f conftest.$ac_objext
29596 if { (ac_try="$ac_compile"
29597 case "(($ac_try" in
29598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29599 *) ac_try_echo=$ac_try;;
29601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29602 (eval "$ac_compile") 2>conftest.er1
29604 grep -v '^ *+' conftest.er1 >conftest.err
29606 cat conftest.err >&5
29607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29608 (exit $ac_status); } &&
29609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29610 { (case "(($ac_try" in
29611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29612 *) ac_try_echo=$ac_try;;
29614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29615 (eval "$ac_try") 2>&5
29617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618 (exit $ac_status); }; } &&
29619 { ac_try='test -s conftest.$ac_objext'
29620 { (case "(($ac_try" in
29621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29622 *) ac_try_echo=$ac_try;;
29624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29625 (eval "$ac_try") 2>&5
29627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29628 (exit $ac_status); }; }; then
29629 ac_header_compiler=yes
29631 echo "$as_me: failed program was:" >&5
29632 sed 's/^/| /' conftest.$ac_ext >&5
29634 ac_header_compiler=no
29637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29639 echo "${ECHO_T}$ac_header_compiler" >&6; }
29641 # Is the header present?
29642 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29644 cat >conftest.$ac_ext <<_ACEOF
29647 cat confdefs.h >>conftest.$ac_ext
29648 cat >>conftest.$ac_ext <<_ACEOF
29649 /* end confdefs.h. */
29650 #include <$ac_header>
29652 if { (ac_try="$ac_cpp conftest.$ac_ext"
29653 case "(($ac_try" in
29654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29655 *) ac_try_echo=$ac_try;;
29657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29660 grep -v '^ *+' conftest.er1 >conftest.err
29662 cat conftest.err >&5
29663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29664 (exit $ac_status); } >/dev/null; then
29665 if test -s conftest.err; then
29666 ac_cpp_err=$ac_c_preproc_warn_flag
29667 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29674 if test -z "$ac_cpp_err"; then
29675 ac_header_preproc=yes
29677 echo "$as_me: failed program was:" >&5
29678 sed 's/^/| /' conftest.$ac_ext >&5
29680 ac_header_preproc=no
29683 rm -f conftest.err conftest.$ac_ext
29684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29685 echo "${ECHO_T}$ac_header_preproc" >&6; }
29687 # So? What about this header?
29688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29694 ac_header_preproc=yes
29697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29710 ## ----------------------------------- ##
29711 ## Report this to llvmbugs@cs.uiuc.edu ##
29712 ## ----------------------------------- ##
29714 ) | sed "s/^/$as_me: WARNING: /" >&2
29717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29720 echo $ECHO_N "(cached) $ECHO_C" >&6
29722 eval "$as_ac_Header=\$ac_header_preproc"
29724 ac_res=`eval echo '${'$as_ac_Header'}'`
29725 { echo "$as_me:$LINENO: result: $ac_res" >&5
29726 echo "${ECHO_T}$ac_res" >&6; }
29729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29730 cat >>confdefs.h <<_ACEOF
29731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29742 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
29744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29749 echo $ECHO_N "(cached) $ECHO_C" >&6
29751 ac_res=`eval echo '${'$as_ac_Header'}'`
29752 { echo "$as_me:$LINENO: result: $ac_res" >&5
29753 echo "${ECHO_T}$ac_res" >&6; }
29755 # Is the header compilable?
29756 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29758 cat >conftest.$ac_ext <<_ACEOF
29761 cat confdefs.h >>conftest.$ac_ext
29762 cat >>conftest.$ac_ext <<_ACEOF
29763 /* end confdefs.h. */
29764 $ac_includes_default
29765 #include <$ac_header>
29767 rm -f conftest.$ac_objext
29768 if { (ac_try="$ac_compile"
29769 case "(($ac_try" in
29770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29771 *) ac_try_echo=$ac_try;;
29773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29774 (eval "$ac_compile") 2>conftest.er1
29776 grep -v '^ *+' conftest.er1 >conftest.err
29778 cat conftest.err >&5
29779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29780 (exit $ac_status); } &&
29781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29782 { (case "(($ac_try" in
29783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29784 *) ac_try_echo=$ac_try;;
29786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29787 (eval "$ac_try") 2>&5
29789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29790 (exit $ac_status); }; } &&
29791 { ac_try='test -s conftest.$ac_objext'
29792 { (case "(($ac_try" in
29793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29794 *) ac_try_echo=$ac_try;;
29796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29797 (eval "$ac_try") 2>&5
29799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29800 (exit $ac_status); }; }; then
29801 ac_header_compiler=yes
29803 echo "$as_me: failed program was:" >&5
29804 sed 's/^/| /' conftest.$ac_ext >&5
29806 ac_header_compiler=no
29809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29811 echo "${ECHO_T}$ac_header_compiler" >&6; }
29813 # Is the header present?
29814 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29816 cat >conftest.$ac_ext <<_ACEOF
29819 cat confdefs.h >>conftest.$ac_ext
29820 cat >>conftest.$ac_ext <<_ACEOF
29821 /* end confdefs.h. */
29822 #include <$ac_header>
29824 if { (ac_try="$ac_cpp conftest.$ac_ext"
29825 case "(($ac_try" in
29826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29827 *) ac_try_echo=$ac_try;;
29829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29832 grep -v '^ *+' conftest.er1 >conftest.err
29834 cat conftest.err >&5
29835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29836 (exit $ac_status); } >/dev/null; then
29837 if test -s conftest.err; then
29838 ac_cpp_err=$ac_c_preproc_warn_flag
29839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29846 if test -z "$ac_cpp_err"; then
29847 ac_header_preproc=yes
29849 echo "$as_me: failed program was:" >&5
29850 sed 's/^/| /' conftest.$ac_ext >&5
29852 ac_header_preproc=no
29855 rm -f conftest.err conftest.$ac_ext
29856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29857 echo "${ECHO_T}$ac_header_preproc" >&6; }
29859 # So? What about this header?
29860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29866 ac_header_preproc=yes
29869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29882 ## ----------------------------------- ##
29883 ## Report this to llvmbugs@cs.uiuc.edu ##
29884 ## ----------------------------------- ##
29886 ) | sed "s/^/$as_me: WARNING: /" >&2
29889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29892 echo $ECHO_N "(cached) $ECHO_C" >&6
29894 eval "$as_ac_Header=\$ac_header_preproc"
29896 ac_res=`eval echo '${'$as_ac_Header'}'`
29897 { echo "$as_me:$LINENO: result: $ac_res" >&5
29898 echo "${ECHO_T}$ac_res" >&6; }
29901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29902 cat >>confdefs.h <<_ACEOF
29903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29910 if test "$ENABLE_THREADS" -eq 1 ; then
29912 for ac_header in pthread.h
29914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29919 echo $ECHO_N "(cached) $ECHO_C" >&6
29921 ac_res=`eval echo '${'$as_ac_Header'}'`
29922 { echo "$as_me:$LINENO: result: $ac_res" >&5
29923 echo "${ECHO_T}$ac_res" >&6; }
29925 # Is the header compilable?
29926 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29928 cat >conftest.$ac_ext <<_ACEOF
29931 cat confdefs.h >>conftest.$ac_ext
29932 cat >>conftest.$ac_ext <<_ACEOF
29933 /* end confdefs.h. */
29934 $ac_includes_default
29935 #include <$ac_header>
29937 rm -f conftest.$ac_objext
29938 if { (ac_try="$ac_compile"
29939 case "(($ac_try" in
29940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29941 *) ac_try_echo=$ac_try;;
29943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29944 (eval "$ac_compile") 2>conftest.er1
29946 grep -v '^ *+' conftest.er1 >conftest.err
29948 cat conftest.err >&5
29949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950 (exit $ac_status); } &&
29951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29952 { (case "(($ac_try" in
29953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29954 *) ac_try_echo=$ac_try;;
29956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29957 (eval "$ac_try") 2>&5
29959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29960 (exit $ac_status); }; } &&
29961 { ac_try='test -s conftest.$ac_objext'
29962 { (case "(($ac_try" in
29963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29964 *) ac_try_echo=$ac_try;;
29966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29967 (eval "$ac_try") 2>&5
29969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970 (exit $ac_status); }; }; then
29971 ac_header_compiler=yes
29973 echo "$as_me: failed program was:" >&5
29974 sed 's/^/| /' conftest.$ac_ext >&5
29976 ac_header_compiler=no
29979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29981 echo "${ECHO_T}$ac_header_compiler" >&6; }
29983 # Is the header present?
29984 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29986 cat >conftest.$ac_ext <<_ACEOF
29989 cat confdefs.h >>conftest.$ac_ext
29990 cat >>conftest.$ac_ext <<_ACEOF
29991 /* end confdefs.h. */
29992 #include <$ac_header>
29994 if { (ac_try="$ac_cpp conftest.$ac_ext"
29995 case "(($ac_try" in
29996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29997 *) ac_try_echo=$ac_try;;
29999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30002 grep -v '^ *+' conftest.er1 >conftest.err
30004 cat conftest.err >&5
30005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30006 (exit $ac_status); } >/dev/null; then
30007 if test -s conftest.err; then
30008 ac_cpp_err=$ac_c_preproc_warn_flag
30009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30016 if test -z "$ac_cpp_err"; then
30017 ac_header_preproc=yes
30019 echo "$as_me: failed program was:" >&5
30020 sed 's/^/| /' conftest.$ac_ext >&5
30022 ac_header_preproc=no
30025 rm -f conftest.err conftest.$ac_ext
30026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30027 echo "${ECHO_T}$ac_header_preproc" >&6; }
30029 # So? What about this header?
30030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30036 ac_header_preproc=yes
30039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30046 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30052 ## ----------------------------------- ##
30053 ## Report this to llvmbugs@cs.uiuc.edu ##
30054 ## ----------------------------------- ##
30056 ) | sed "s/^/$as_me: WARNING: /" >&2
30059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30062 echo $ECHO_N "(cached) $ECHO_C" >&6
30064 eval "$as_ac_Header=\$ac_header_preproc"
30066 ac_res=`eval echo '${'$as_ac_Header'}'`
30067 { echo "$as_me:$LINENO: result: $ac_res" >&5
30068 echo "${ECHO_T}$ac_res" >&6; }
30071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30072 cat >>confdefs.h <<_ACEOF
30073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30089 if test "$llvm_cv_enable_libffi" = "yes" ; then
30092 for ac_header in ffi.h ffi/ffi.h
30094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30099 echo $ECHO_N "(cached) $ECHO_C" >&6
30101 ac_res=`eval echo '${'$as_ac_Header'}'`
30102 { echo "$as_me:$LINENO: result: $ac_res" >&5
30103 echo "${ECHO_T}$ac_res" >&6; }
30105 # Is the header compilable?
30106 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30108 cat >conftest.$ac_ext <<_ACEOF
30111 cat confdefs.h >>conftest.$ac_ext
30112 cat >>conftest.$ac_ext <<_ACEOF
30113 /* end confdefs.h. */
30114 $ac_includes_default
30115 #include <$ac_header>
30117 rm -f conftest.$ac_objext
30118 if { (ac_try="$ac_compile"
30119 case "(($ac_try" in
30120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30121 *) ac_try_echo=$ac_try;;
30123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30124 (eval "$ac_compile") 2>conftest.er1
30126 grep -v '^ *+' conftest.er1 >conftest.err
30128 cat conftest.err >&5
30129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30130 (exit $ac_status); } &&
30131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30132 { (case "(($ac_try" in
30133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30134 *) ac_try_echo=$ac_try;;
30136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30137 (eval "$ac_try") 2>&5
30139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30140 (exit $ac_status); }; } &&
30141 { ac_try='test -s conftest.$ac_objext'
30142 { (case "(($ac_try" in
30143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30144 *) ac_try_echo=$ac_try;;
30146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30147 (eval "$ac_try") 2>&5
30149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30150 (exit $ac_status); }; }; then
30151 ac_header_compiler=yes
30153 echo "$as_me: failed program was:" >&5
30154 sed 's/^/| /' conftest.$ac_ext >&5
30156 ac_header_compiler=no
30159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30161 echo "${ECHO_T}$ac_header_compiler" >&6; }
30163 # Is the header present?
30164 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30166 cat >conftest.$ac_ext <<_ACEOF
30169 cat confdefs.h >>conftest.$ac_ext
30170 cat >>conftest.$ac_ext <<_ACEOF
30171 /* end confdefs.h. */
30172 #include <$ac_header>
30174 if { (ac_try="$ac_cpp conftest.$ac_ext"
30175 case "(($ac_try" in
30176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30177 *) ac_try_echo=$ac_try;;
30179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30182 grep -v '^ *+' conftest.er1 >conftest.err
30184 cat conftest.err >&5
30185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30186 (exit $ac_status); } >/dev/null; then
30187 if test -s conftest.err; then
30188 ac_cpp_err=$ac_c_preproc_warn_flag
30189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30196 if test -z "$ac_cpp_err"; then
30197 ac_header_preproc=yes
30199 echo "$as_me: failed program was:" >&5
30200 sed 's/^/| /' conftest.$ac_ext >&5
30202 ac_header_preproc=no
30205 rm -f conftest.err conftest.$ac_ext
30206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30207 echo "${ECHO_T}$ac_header_preproc" >&6; }
30209 # So? What about this header?
30210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30216 ac_header_preproc=yes
30219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30222 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30226 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30232 ## ----------------------------------- ##
30233 ## Report this to llvmbugs@cs.uiuc.edu ##
30234 ## ----------------------------------- ##
30236 ) | sed "s/^/$as_me: WARNING: /" >&2
30239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30242 echo $ECHO_N "(cached) $ECHO_C" >&6
30244 eval "$as_ac_Header=\$ac_header_preproc"
30246 ac_res=`eval echo '${'$as_ac_Header'}'`
30247 { echo "$as_me:$LINENO: result: $ac_res" >&5
30248 echo "${ECHO_T}$ac_res" >&6; }
30251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30252 cat >>confdefs.h <<_ACEOF
30253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30264 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30265 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30266 if test "${ac_cv_huge_val_sanity+set}" = set; then
30267 echo $ECHO_N "(cached) $ECHO_C" >&6
30271 ac_cpp='$CXXCPP $CPPFLAGS'
30272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30277 if test "$cross_compiling" = yes; then
30278 ac_cv_huge_val_sanity=yes
30280 cat >conftest.$ac_ext <<_ACEOF
30283 cat confdefs.h >>conftest.$ac_ext
30284 cat >>conftest.$ac_ext <<_ACEOF
30285 /* end confdefs.h. */
30290 double x = HUGE_VAL; return x != x;
30295 rm -f conftest$ac_exeext
30296 if { (ac_try="$ac_link"
30297 case "(($ac_try" in
30298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30299 *) ac_try_echo=$ac_try;;
30301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30302 (eval "$ac_link") 2>&5
30304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30306 { (case "(($ac_try" in
30307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30308 *) ac_try_echo=$ac_try;;
30310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30311 (eval "$ac_try") 2>&5
30313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314 (exit $ac_status); }; }; then
30315 ac_cv_huge_val_sanity=yes
30317 echo "$as_me: program exited with status $ac_status" >&5
30318 echo "$as_me: failed program was:" >&5
30319 sed 's/^/| /' conftest.$ac_ext >&5
30321 ( exit $ac_status )
30322 ac_cv_huge_val_sanity=no
30324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30329 ac_cpp='$CPP $CPPFLAGS'
30330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30336 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30337 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30338 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30341 { echo "$as_me:$LINENO: checking for pid_t" >&5
30342 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30343 if test "${ac_cv_type_pid_t+set}" = set; then
30344 echo $ECHO_N "(cached) $ECHO_C" >&6
30346 cat >conftest.$ac_ext <<_ACEOF
30349 cat confdefs.h >>conftest.$ac_ext
30350 cat >>conftest.$ac_ext <<_ACEOF
30351 /* end confdefs.h. */
30352 $ac_includes_default
30353 typedef pid_t ac__type_new_;
30357 if ((ac__type_new_ *) 0)
30359 if (sizeof (ac__type_new_))
30365 rm -f conftest.$ac_objext
30366 if { (ac_try="$ac_compile"
30367 case "(($ac_try" in
30368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30369 *) ac_try_echo=$ac_try;;
30371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30372 (eval "$ac_compile") 2>conftest.er1
30374 grep -v '^ *+' conftest.er1 >conftest.err
30376 cat conftest.err >&5
30377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378 (exit $ac_status); } &&
30379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30380 { (case "(($ac_try" in
30381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30382 *) ac_try_echo=$ac_try;;
30384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30385 (eval "$ac_try") 2>&5
30387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30388 (exit $ac_status); }; } &&
30389 { ac_try='test -s conftest.$ac_objext'
30390 { (case "(($ac_try" in
30391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30392 *) ac_try_echo=$ac_try;;
30394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30395 (eval "$ac_try") 2>&5
30397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398 (exit $ac_status); }; }; then
30399 ac_cv_type_pid_t=yes
30401 echo "$as_me: failed program was:" >&5
30402 sed 's/^/| /' conftest.$ac_ext >&5
30404 ac_cv_type_pid_t=no
30407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30409 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30410 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30411 if test $ac_cv_type_pid_t = yes; then
30415 cat >>confdefs.h <<_ACEOF
30421 { echo "$as_me:$LINENO: checking for size_t" >&5
30422 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30423 if test "${ac_cv_type_size_t+set}" = set; then
30424 echo $ECHO_N "(cached) $ECHO_C" >&6
30426 cat >conftest.$ac_ext <<_ACEOF
30429 cat confdefs.h >>conftest.$ac_ext
30430 cat >>conftest.$ac_ext <<_ACEOF
30431 /* end confdefs.h. */
30432 $ac_includes_default
30433 typedef size_t ac__type_new_;
30437 if ((ac__type_new_ *) 0)
30439 if (sizeof (ac__type_new_))
30445 rm -f conftest.$ac_objext
30446 if { (ac_try="$ac_compile"
30447 case "(($ac_try" in
30448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30449 *) ac_try_echo=$ac_try;;
30451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30452 (eval "$ac_compile") 2>conftest.er1
30454 grep -v '^ *+' conftest.er1 >conftest.err
30456 cat conftest.err >&5
30457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30458 (exit $ac_status); } &&
30459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30460 { (case "(($ac_try" in
30461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30462 *) ac_try_echo=$ac_try;;
30464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30465 (eval "$ac_try") 2>&5
30467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30468 (exit $ac_status); }; } &&
30469 { ac_try='test -s conftest.$ac_objext'
30470 { (case "(($ac_try" in
30471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30472 *) ac_try_echo=$ac_try;;
30474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30475 (eval "$ac_try") 2>&5
30477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30478 (exit $ac_status); }; }; then
30479 ac_cv_type_size_t=yes
30481 echo "$as_me: failed program was:" >&5
30482 sed 's/^/| /' conftest.$ac_ext >&5
30484 ac_cv_type_size_t=no
30487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30489 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30490 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30491 if test $ac_cv_type_size_t = yes; then
30495 cat >>confdefs.h <<_ACEOF
30496 #define size_t unsigned int
30501 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30502 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30503 if test "${ac_cv_type_signal+set}" = set; then
30504 echo $ECHO_N "(cached) $ECHO_C" >&6
30506 cat >conftest.$ac_ext <<_ACEOF
30509 cat confdefs.h >>conftest.$ac_ext
30510 cat >>conftest.$ac_ext <<_ACEOF
30511 /* end confdefs.h. */
30512 #include <sys/types.h>
30513 #include <signal.h>
30518 return *(signal (0, 0)) (0) == 1;
30523 rm -f conftest.$ac_objext
30524 if { (ac_try="$ac_compile"
30525 case "(($ac_try" in
30526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30527 *) ac_try_echo=$ac_try;;
30529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30530 (eval "$ac_compile") 2>conftest.er1
30532 grep -v '^ *+' conftest.er1 >conftest.err
30534 cat conftest.err >&5
30535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30536 (exit $ac_status); } &&
30537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30538 { (case "(($ac_try" in
30539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30540 *) ac_try_echo=$ac_try;;
30542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30543 (eval "$ac_try") 2>&5
30545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30546 (exit $ac_status); }; } &&
30547 { ac_try='test -s conftest.$ac_objext'
30548 { (case "(($ac_try" in
30549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30550 *) ac_try_echo=$ac_try;;
30552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30553 (eval "$ac_try") 2>&5
30555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30556 (exit $ac_status); }; }; then
30557 ac_cv_type_signal=int
30559 echo "$as_me: failed program was:" >&5
30560 sed 's/^/| /' conftest.$ac_ext >&5
30562 ac_cv_type_signal=void
30565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30567 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30568 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30570 cat >>confdefs.h <<_ACEOF
30571 #define RETSIGTYPE $ac_cv_type_signal
30575 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30576 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30577 if test "${ac_cv_struct_tm+set}" = set; then
30578 echo $ECHO_N "(cached) $ECHO_C" >&6
30580 cat >conftest.$ac_ext <<_ACEOF
30583 cat confdefs.h >>conftest.$ac_ext
30584 cat >>conftest.$ac_ext <<_ACEOF
30585 /* end confdefs.h. */
30586 #include <sys/types.h>
30592 struct tm *tp; tp->tm_sec;
30597 rm -f conftest.$ac_objext
30598 if { (ac_try="$ac_compile"
30599 case "(($ac_try" in
30600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30601 *) ac_try_echo=$ac_try;;
30603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30604 (eval "$ac_compile") 2>conftest.er1
30606 grep -v '^ *+' conftest.er1 >conftest.err
30608 cat conftest.err >&5
30609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30610 (exit $ac_status); } &&
30611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30612 { (case "(($ac_try" in
30613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30614 *) ac_try_echo=$ac_try;;
30616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30617 (eval "$ac_try") 2>&5
30619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30620 (exit $ac_status); }; } &&
30621 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
30629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30630 (exit $ac_status); }; }; then
30631 ac_cv_struct_tm=time.h
30633 echo "$as_me: failed program was:" >&5
30634 sed 's/^/| /' conftest.$ac_ext >&5
30636 ac_cv_struct_tm=sys/time.h
30639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30641 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30642 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30643 if test $ac_cv_struct_tm = sys/time.h; then
30645 cat >>confdefs.h <<\_ACEOF
30646 #define TM_IN_SYS_TIME 1
30651 { echo "$as_me:$LINENO: checking for int64_t" >&5
30652 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30653 if test "${ac_cv_type_int64_t+set}" = set; then
30654 echo $ECHO_N "(cached) $ECHO_C" >&6
30656 cat >conftest.$ac_ext <<_ACEOF
30659 cat confdefs.h >>conftest.$ac_ext
30660 cat >>conftest.$ac_ext <<_ACEOF
30661 /* end confdefs.h. */
30662 $ac_includes_default
30663 typedef int64_t ac__type_new_;
30667 if ((ac__type_new_ *) 0)
30669 if (sizeof (ac__type_new_))
30675 rm -f conftest.$ac_objext
30676 if { (ac_try="$ac_compile"
30677 case "(($ac_try" in
30678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30679 *) ac_try_echo=$ac_try;;
30681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30682 (eval "$ac_compile") 2>conftest.er1
30684 grep -v '^ *+' conftest.er1 >conftest.err
30686 cat conftest.err >&5
30687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30688 (exit $ac_status); } &&
30689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30690 { (case "(($ac_try" in
30691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30692 *) ac_try_echo=$ac_try;;
30694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30695 (eval "$ac_try") 2>&5
30697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30698 (exit $ac_status); }; } &&
30699 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
30707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30708 (exit $ac_status); }; }; then
30709 ac_cv_type_int64_t=yes
30711 echo "$as_me: failed program was:" >&5
30712 sed 's/^/| /' conftest.$ac_ext >&5
30714 ac_cv_type_int64_t=no
30717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30719 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30720 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30721 if test $ac_cv_type_int64_t = yes; then
30723 cat >>confdefs.h <<_ACEOF
30724 #define HAVE_INT64_T 1
30729 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30730 echo "$as_me: error: Type int64_t required but not found" >&2;}
30731 { (exit 1); exit 1; }; }
30734 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30735 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30736 if test "${ac_cv_type_uint64_t+set}" = set; then
30737 echo $ECHO_N "(cached) $ECHO_C" >&6
30739 cat >conftest.$ac_ext <<_ACEOF
30742 cat confdefs.h >>conftest.$ac_ext
30743 cat >>conftest.$ac_ext <<_ACEOF
30744 /* end confdefs.h. */
30745 $ac_includes_default
30746 typedef uint64_t ac__type_new_;
30750 if ((ac__type_new_ *) 0)
30752 if (sizeof (ac__type_new_))
30758 rm -f conftest.$ac_objext
30759 if { (ac_try="$ac_compile"
30760 case "(($ac_try" in
30761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30762 *) ac_try_echo=$ac_try;;
30764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30765 (eval "$ac_compile") 2>conftest.er1
30767 grep -v '^ *+' conftest.er1 >conftest.err
30769 cat conftest.err >&5
30770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771 (exit $ac_status); } &&
30772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30773 { (case "(($ac_try" in
30774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30775 *) ac_try_echo=$ac_try;;
30777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30778 (eval "$ac_try") 2>&5
30780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30781 (exit $ac_status); }; } &&
30782 { ac_try='test -s conftest.$ac_objext'
30783 { (case "(($ac_try" in
30784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30785 *) ac_try_echo=$ac_try;;
30787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30788 (eval "$ac_try") 2>&5
30790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30791 (exit $ac_status); }; }; then
30792 ac_cv_type_uint64_t=yes
30794 echo "$as_me: failed program was:" >&5
30795 sed 's/^/| /' conftest.$ac_ext >&5
30797 ac_cv_type_uint64_t=no
30800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30802 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30803 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30804 if test $ac_cv_type_uint64_t = yes; then
30806 cat >>confdefs.h <<_ACEOF
30807 #define HAVE_UINT64_T 1
30812 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30813 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30814 if test "${ac_cv_type_u_int64_t+set}" = set; then
30815 echo $ECHO_N "(cached) $ECHO_C" >&6
30817 cat >conftest.$ac_ext <<_ACEOF
30820 cat confdefs.h >>conftest.$ac_ext
30821 cat >>conftest.$ac_ext <<_ACEOF
30822 /* end confdefs.h. */
30823 $ac_includes_default
30824 typedef u_int64_t ac__type_new_;
30828 if ((ac__type_new_ *) 0)
30830 if (sizeof (ac__type_new_))
30836 rm -f conftest.$ac_objext
30837 if { (ac_try="$ac_compile"
30838 case "(($ac_try" in
30839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30840 *) ac_try_echo=$ac_try;;
30842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30843 (eval "$ac_compile") 2>conftest.er1
30845 grep -v '^ *+' conftest.er1 >conftest.err
30847 cat conftest.err >&5
30848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30849 (exit $ac_status); } &&
30850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30851 { (case "(($ac_try" in
30852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30853 *) ac_try_echo=$ac_try;;
30855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30856 (eval "$ac_try") 2>&5
30858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30859 (exit $ac_status); }; } &&
30860 { ac_try='test -s conftest.$ac_objext'
30861 { (case "(($ac_try" in
30862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30863 *) ac_try_echo=$ac_try;;
30865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30866 (eval "$ac_try") 2>&5
30868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30869 (exit $ac_status); }; }; then
30870 ac_cv_type_u_int64_t=yes
30872 echo "$as_me: failed program was:" >&5
30873 sed 's/^/| /' conftest.$ac_ext >&5
30875 ac_cv_type_u_int64_t=no
30878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30880 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30881 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30882 if test $ac_cv_type_u_int64_t = yes; then
30884 cat >>confdefs.h <<_ACEOF
30885 #define HAVE_U_INT64_T 1
30890 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30891 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30892 { (exit 1); exit 1; }; }
30906 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30912 echo $ECHO_N "(cached) $ECHO_C" >&6
30914 cat >conftest.$ac_ext <<_ACEOF
30917 cat confdefs.h >>conftest.$ac_ext
30918 cat >>conftest.$ac_ext <<_ACEOF
30919 /* end confdefs.h. */
30920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30922 #define $ac_func innocuous_$ac_func
30924 /* System header to define __stub macros and hopefully few prototypes,
30925 which can conflict with char $ac_func (); below.
30926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30927 <limits.h> exists even on freestanding compilers. */
30930 # include <limits.h>
30932 # include <assert.h>
30937 /* Override any GCC internal prototype to avoid an error.
30938 Use char because int might match the return type of a GCC
30939 builtin and then its argument prototype would still apply. */
30944 /* The GNU C library defines this for functions which it implements
30945 to always fail with ENOSYS. Some functions are actually named
30946 something starting with __ and the normal name is an alias. */
30947 #if defined __stub_$ac_func || defined __stub___$ac_func
30954 return $ac_func ();
30959 rm -f conftest.$ac_objext conftest$ac_exeext
30960 if { (ac_try="$ac_link"
30961 case "(($ac_try" in
30962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30963 *) ac_try_echo=$ac_try;;
30965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30966 (eval "$ac_link") 2>conftest.er1
30968 grep -v '^ *+' conftest.er1 >conftest.err
30970 cat conftest.err >&5
30971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30972 (exit $ac_status); } &&
30973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30974 { (case "(($ac_try" in
30975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30976 *) ac_try_echo=$ac_try;;
30978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30979 (eval "$ac_try") 2>&5
30981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30982 (exit $ac_status); }; } &&
30983 { ac_try='test -s conftest$ac_exeext'
30984 { (case "(($ac_try" in
30985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30986 *) ac_try_echo=$ac_try;;
30988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30989 (eval "$ac_try") 2>&5
30991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992 (exit $ac_status); }; }; then
30993 eval "$as_ac_var=yes"
30995 echo "$as_me: failed program was:" >&5
30996 sed 's/^/| /' conftest.$ac_ext >&5
30998 eval "$as_ac_var=no"
31001 rm -f core conftest.err conftest.$ac_objext \
31002 conftest$ac_exeext conftest.$ac_ext
31004 ac_res=`eval echo '${'$as_ac_var'}'`
31005 { echo "$as_me:$LINENO: result: $ac_res" >&5
31006 echo "${ECHO_T}$ac_res" >&6; }
31007 if test `eval echo '${'$as_ac_var'}'` = yes; then
31008 cat >>confdefs.h <<_ACEOF
31009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31019 for ac_func in powf fmodf strtof round
31021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31022 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31025 echo $ECHO_N "(cached) $ECHO_C" >&6
31027 cat >conftest.$ac_ext <<_ACEOF
31030 cat confdefs.h >>conftest.$ac_ext
31031 cat >>conftest.$ac_ext <<_ACEOF
31032 /* end confdefs.h. */
31033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31035 #define $ac_func innocuous_$ac_func
31037 /* System header to define __stub macros and hopefully few prototypes,
31038 which can conflict with char $ac_func (); below.
31039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31040 <limits.h> exists even on freestanding compilers. */
31043 # include <limits.h>
31045 # include <assert.h>
31050 /* Override any GCC internal prototype to avoid an error.
31051 Use char because int might match the return type of a GCC
31052 builtin and then its argument prototype would still apply. */
31057 /* The GNU C library defines this for functions which it implements
31058 to always fail with ENOSYS. Some functions are actually named
31059 something starting with __ and the normal name is an alias. */
31060 #if defined __stub_$ac_func || defined __stub___$ac_func
31067 return $ac_func ();
31072 rm -f conftest.$ac_objext conftest$ac_exeext
31073 if { (ac_try="$ac_link"
31074 case "(($ac_try" in
31075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31076 *) ac_try_echo=$ac_try;;
31078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31079 (eval "$ac_link") 2>conftest.er1
31081 grep -v '^ *+' conftest.er1 >conftest.err
31083 cat conftest.err >&5
31084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31085 (exit $ac_status); } &&
31086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31087 { (case "(($ac_try" in
31088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31089 *) ac_try_echo=$ac_try;;
31091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31092 (eval "$ac_try") 2>&5
31094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31095 (exit $ac_status); }; } &&
31096 { ac_try='test -s conftest$ac_exeext'
31097 { (case "(($ac_try" in
31098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31099 *) ac_try_echo=$ac_try;;
31101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31102 (eval "$ac_try") 2>&5
31104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105 (exit $ac_status); }; }; then
31106 eval "$as_ac_var=yes"
31108 echo "$as_me: failed program was:" >&5
31109 sed 's/^/| /' conftest.$ac_ext >&5
31111 eval "$as_ac_var=no"
31114 rm -f core conftest.err conftest.$ac_objext \
31115 conftest$ac_exeext conftest.$ac_ext
31117 ac_res=`eval echo '${'$as_ac_var'}'`
31118 { echo "$as_me:$LINENO: result: $ac_res" >&5
31119 echo "${ECHO_T}$ac_res" >&6; }
31120 if test `eval echo '${'$as_ac_var'}'` = yes; then
31121 cat >>confdefs.h <<_ACEOF
31122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31133 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31136 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31138 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31139 echo $ECHO_N "(cached) $ECHO_C" >&6
31141 cat >conftest.$ac_ext <<_ACEOF
31144 cat confdefs.h >>conftest.$ac_ext
31145 cat >>conftest.$ac_ext <<_ACEOF
31146 /* end confdefs.h. */
31147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31149 #define $ac_func innocuous_$ac_func
31151 /* System header to define __stub macros and hopefully few prototypes,
31152 which can conflict with char $ac_func (); below.
31153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31154 <limits.h> exists even on freestanding compilers. */
31157 # include <limits.h>
31159 # include <assert.h>
31164 /* Override any GCC internal prototype to avoid an error.
31165 Use char because int might match the return type of a GCC
31166 builtin and then its argument prototype would still apply. */
31171 /* The GNU C library defines this for functions which it implements
31172 to always fail with ENOSYS. Some functions are actually named
31173 something starting with __ and the normal name is an alias. */
31174 #if defined __stub_$ac_func || defined __stub___$ac_func
31181 return $ac_func ();
31186 rm -f conftest.$ac_objext conftest$ac_exeext
31187 if { (ac_try="$ac_link"
31188 case "(($ac_try" in
31189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31190 *) ac_try_echo=$ac_try;;
31192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31193 (eval "$ac_link") 2>conftest.er1
31195 grep -v '^ *+' conftest.er1 >conftest.err
31197 cat conftest.err >&5
31198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31199 (exit $ac_status); } &&
31200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31201 { (case "(($ac_try" in
31202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31203 *) ac_try_echo=$ac_try;;
31205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31206 (eval "$ac_try") 2>&5
31208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31209 (exit $ac_status); }; } &&
31210 { ac_try='test -s conftest$ac_exeext'
31211 { (case "(($ac_try" in
31212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31213 *) ac_try_echo=$ac_try;;
31215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31216 (eval "$ac_try") 2>&5
31218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219 (exit $ac_status); }; }; then
31220 eval "$as_ac_var=yes"
31222 echo "$as_me: failed program was:" >&5
31223 sed 's/^/| /' conftest.$ac_ext >&5
31225 eval "$as_ac_var=no"
31228 rm -f core conftest.err conftest.$ac_objext \
31229 conftest$ac_exeext conftest.$ac_ext
31231 ac_res=`eval echo '${'$as_ac_var'}'`
31232 { echo "$as_me:$LINENO: result: $ac_res" >&5
31233 echo "${ECHO_T}$ac_res" >&6; }
31234 if test `eval echo '${'$as_ac_var'}'` = yes; then
31235 cat >>confdefs.h <<_ACEOF
31236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31245 for ac_func in isatty mkdtemp mkstemp
31247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31248 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31250 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31251 echo $ECHO_N "(cached) $ECHO_C" >&6
31253 cat >conftest.$ac_ext <<_ACEOF
31256 cat confdefs.h >>conftest.$ac_ext
31257 cat >>conftest.$ac_ext <<_ACEOF
31258 /* end confdefs.h. */
31259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31261 #define $ac_func innocuous_$ac_func
31263 /* System header to define __stub macros and hopefully few prototypes,
31264 which can conflict with char $ac_func (); below.
31265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31266 <limits.h> exists even on freestanding compilers. */
31269 # include <limits.h>
31271 # include <assert.h>
31276 /* Override any GCC internal prototype to avoid an error.
31277 Use char because int might match the return type of a GCC
31278 builtin and then its argument prototype would still apply. */
31283 /* The GNU C library defines this for functions which it implements
31284 to always fail with ENOSYS. Some functions are actually named
31285 something starting with __ and the normal name is an alias. */
31286 #if defined __stub_$ac_func || defined __stub___$ac_func
31293 return $ac_func ();
31298 rm -f conftest.$ac_objext conftest$ac_exeext
31299 if { (ac_try="$ac_link"
31300 case "(($ac_try" in
31301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31302 *) ac_try_echo=$ac_try;;
31304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31305 (eval "$ac_link") 2>conftest.er1
31307 grep -v '^ *+' conftest.er1 >conftest.err
31309 cat conftest.err >&5
31310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311 (exit $ac_status); } &&
31312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31313 { (case "(($ac_try" in
31314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31315 *) ac_try_echo=$ac_try;;
31317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31318 (eval "$ac_try") 2>&5
31320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31321 (exit $ac_status); }; } &&
31322 { ac_try='test -s conftest$ac_exeext'
31323 { (case "(($ac_try" in
31324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31325 *) ac_try_echo=$ac_try;;
31327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31328 (eval "$ac_try") 2>&5
31330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31331 (exit $ac_status); }; }; then
31332 eval "$as_ac_var=yes"
31334 echo "$as_me: failed program was:" >&5
31335 sed 's/^/| /' conftest.$ac_ext >&5
31337 eval "$as_ac_var=no"
31340 rm -f core conftest.err conftest.$ac_objext \
31341 conftest$ac_exeext conftest.$ac_ext
31343 ac_res=`eval echo '${'$as_ac_var'}'`
31344 { echo "$as_me:$LINENO: result: $ac_res" >&5
31345 echo "${ECHO_T}$ac_res" >&6; }
31346 if test `eval echo '${'$as_ac_var'}'` = yes; then
31347 cat >>confdefs.h <<_ACEOF
31348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31359 for ac_func in mktemp realpath sbrk setrlimit strdup
31361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31362 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31364 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31365 echo $ECHO_N "(cached) $ECHO_C" >&6
31367 cat >conftest.$ac_ext <<_ACEOF
31370 cat confdefs.h >>conftest.$ac_ext
31371 cat >>conftest.$ac_ext <<_ACEOF
31372 /* end confdefs.h. */
31373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31375 #define $ac_func innocuous_$ac_func
31377 /* System header to define __stub macros and hopefully few prototypes,
31378 which can conflict with char $ac_func (); below.
31379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31380 <limits.h> exists even on freestanding compilers. */
31383 # include <limits.h>
31385 # include <assert.h>
31390 /* Override any GCC internal prototype to avoid an error.
31391 Use char because int might match the return type of a GCC
31392 builtin and then its argument prototype would still apply. */
31397 /* The GNU C library defines this for functions which it implements
31398 to always fail with ENOSYS. Some functions are actually named
31399 something starting with __ and the normal name is an alias. */
31400 #if defined __stub_$ac_func || defined __stub___$ac_func
31407 return $ac_func ();
31412 rm -f conftest.$ac_objext conftest$ac_exeext
31413 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
31421 grep -v '^ *+' conftest.er1 >conftest.err
31423 cat conftest.err >&5
31424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31425 (exit $ac_status); } &&
31426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31427 { (case "(($ac_try" in
31428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31429 *) ac_try_echo=$ac_try;;
31431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31432 (eval "$ac_try") 2>&5
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435 (exit $ac_status); }; } &&
31436 { ac_try='test -s conftest$ac_exeext'
31437 { (case "(($ac_try" in
31438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31439 *) ac_try_echo=$ac_try;;
31441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31442 (eval "$ac_try") 2>&5
31444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31445 (exit $ac_status); }; }; then
31446 eval "$as_ac_var=yes"
31448 echo "$as_me: failed program was:" >&5
31449 sed 's/^/| /' conftest.$ac_ext >&5
31451 eval "$as_ac_var=no"
31454 rm -f core conftest.err conftest.$ac_objext \
31455 conftest$ac_exeext conftest.$ac_ext
31457 ac_res=`eval echo '${'$as_ac_var'}'`
31458 { echo "$as_me:$LINENO: result: $ac_res" >&5
31459 echo "${ECHO_T}$ac_res" >&6; }
31460 if test `eval echo '${'$as_ac_var'}'` = yes; then
31461 cat >>confdefs.h <<_ACEOF
31462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31471 for ac_func in strerror strerror_r strerror_s
31473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31474 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31476 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31477 echo $ECHO_N "(cached) $ECHO_C" >&6
31479 cat >conftest.$ac_ext <<_ACEOF
31482 cat confdefs.h >>conftest.$ac_ext
31483 cat >>conftest.$ac_ext <<_ACEOF
31484 /* end confdefs.h. */
31485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31487 #define $ac_func innocuous_$ac_func
31489 /* System header to define __stub macros and hopefully few prototypes,
31490 which can conflict with char $ac_func (); below.
31491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31492 <limits.h> exists even on freestanding compilers. */
31495 # include <limits.h>
31497 # include <assert.h>
31502 /* Override any GCC internal prototype to avoid an error.
31503 Use char because int might match the return type of a GCC
31504 builtin and then its argument prototype would still apply. */
31509 /* The GNU C library defines this for functions which it implements
31510 to always fail with ENOSYS. Some functions are actually named
31511 something starting with __ and the normal name is an alias. */
31512 #if defined __stub_$ac_func || defined __stub___$ac_func
31519 return $ac_func ();
31524 rm -f conftest.$ac_objext conftest$ac_exeext
31525 if { (ac_try="$ac_link"
31526 case "(($ac_try" in
31527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31528 *) ac_try_echo=$ac_try;;
31530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31531 (eval "$ac_link") 2>conftest.er1
31533 grep -v '^ *+' conftest.er1 >conftest.err
31535 cat conftest.err >&5
31536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31537 (exit $ac_status); } &&
31538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31539 { (case "(($ac_try" in
31540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31541 *) ac_try_echo=$ac_try;;
31543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31544 (eval "$ac_try") 2>&5
31546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547 (exit $ac_status); }; } &&
31548 { ac_try='test -s conftest$ac_exeext'
31549 { (case "(($ac_try" in
31550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31551 *) ac_try_echo=$ac_try;;
31553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31554 (eval "$ac_try") 2>&5
31556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557 (exit $ac_status); }; }; then
31558 eval "$as_ac_var=yes"
31560 echo "$as_me: failed program was:" >&5
31561 sed 's/^/| /' conftest.$ac_ext >&5
31563 eval "$as_ac_var=no"
31566 rm -f core conftest.err conftest.$ac_objext \
31567 conftest$ac_exeext conftest.$ac_ext
31569 ac_res=`eval echo '${'$as_ac_var'}'`
31570 { echo "$as_me:$LINENO: result: $ac_res" >&5
31571 echo "${ECHO_T}$ac_res" >&6; }
31572 if test `eval echo '${'$as_ac_var'}'` = yes; then
31573 cat >>confdefs.h <<_ACEOF
31574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31584 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31587 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31590 echo $ECHO_N "(cached) $ECHO_C" >&6
31592 cat >conftest.$ac_ext <<_ACEOF
31595 cat confdefs.h >>conftest.$ac_ext
31596 cat >>conftest.$ac_ext <<_ACEOF
31597 /* end confdefs.h. */
31598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31600 #define $ac_func innocuous_$ac_func
31602 /* System header to define __stub macros and hopefully few prototypes,
31603 which can conflict with char $ac_func (); below.
31604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31605 <limits.h> exists even on freestanding compilers. */
31608 # include <limits.h>
31610 # include <assert.h>
31615 /* Override any GCC internal prototype to avoid an error.
31616 Use char because int might match the return type of a GCC
31617 builtin and then its argument prototype would still apply. */
31622 /* The GNU C library defines this for functions which it implements
31623 to always fail with ENOSYS. Some functions are actually named
31624 something starting with __ and the normal name is an alias. */
31625 #if defined __stub_$ac_func || defined __stub___$ac_func
31632 return $ac_func ();
31637 rm -f conftest.$ac_objext conftest$ac_exeext
31638 if { (ac_try="$ac_link"
31639 case "(($ac_try" in
31640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31641 *) ac_try_echo=$ac_try;;
31643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31644 (eval "$ac_link") 2>conftest.er1
31646 grep -v '^ *+' conftest.er1 >conftest.err
31648 cat conftest.err >&5
31649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31650 (exit $ac_status); } &&
31651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31652 { (case "(($ac_try" in
31653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31654 *) ac_try_echo=$ac_try;;
31656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31657 (eval "$ac_try") 2>&5
31659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660 (exit $ac_status); }; } &&
31661 { ac_try='test -s conftest$ac_exeext'
31662 { (case "(($ac_try" in
31663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31664 *) ac_try_echo=$ac_try;;
31666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31667 (eval "$ac_try") 2>&5
31669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31670 (exit $ac_status); }; }; then
31671 eval "$as_ac_var=yes"
31673 echo "$as_me: failed program was:" >&5
31674 sed 's/^/| /' conftest.$ac_ext >&5
31676 eval "$as_ac_var=no"
31679 rm -f core conftest.err conftest.$ac_objext \
31680 conftest$ac_exeext conftest.$ac_ext
31682 ac_res=`eval echo '${'$as_ac_var'}'`
31683 { echo "$as_me:$LINENO: result: $ac_res" >&5
31684 echo "${ECHO_T}$ac_res" >&6; }
31685 if test `eval echo '${'$as_ac_var'}'` = yes; then
31686 cat >>confdefs.h <<_ACEOF
31687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31697 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31703 echo $ECHO_N "(cached) $ECHO_C" >&6
31705 cat >conftest.$ac_ext <<_ACEOF
31708 cat confdefs.h >>conftest.$ac_ext
31709 cat >>conftest.$ac_ext <<_ACEOF
31710 /* end confdefs.h. */
31711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31713 #define $ac_func innocuous_$ac_func
31715 /* System header to define __stub macros and hopefully few prototypes,
31716 which can conflict with char $ac_func (); below.
31717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31718 <limits.h> exists even on freestanding compilers. */
31721 # include <limits.h>
31723 # include <assert.h>
31728 /* Override any GCC internal prototype to avoid an error.
31729 Use char because int might match the return type of a GCC
31730 builtin and then its argument prototype would still apply. */
31735 /* The GNU C library defines this for functions which it implements
31736 to always fail with ENOSYS. Some functions are actually named
31737 something starting with __ and the normal name is an alias. */
31738 #if defined __stub_$ac_func || defined __stub___$ac_func
31745 return $ac_func ();
31750 rm -f conftest.$ac_objext conftest$ac_exeext
31751 if { (ac_try="$ac_link"
31752 case "(($ac_try" in
31753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31754 *) ac_try_echo=$ac_try;;
31756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31757 (eval "$ac_link") 2>conftest.er1
31759 grep -v '^ *+' conftest.er1 >conftest.err
31761 cat conftest.err >&5
31762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31763 (exit $ac_status); } &&
31764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31765 { (case "(($ac_try" in
31766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31767 *) ac_try_echo=$ac_try;;
31769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31770 (eval "$ac_try") 2>&5
31772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31773 (exit $ac_status); }; } &&
31774 { ac_try='test -s conftest$ac_exeext'
31775 { (case "(($ac_try" in
31776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31777 *) ac_try_echo=$ac_try;;
31779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31780 (eval "$ac_try") 2>&5
31782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31783 (exit $ac_status); }; }; then
31784 eval "$as_ac_var=yes"
31786 echo "$as_me: failed program was:" >&5
31787 sed 's/^/| /' conftest.$ac_ext >&5
31789 eval "$as_ac_var=no"
31792 rm -f core conftest.err conftest.$ac_objext \
31793 conftest$ac_exeext conftest.$ac_ext
31795 ac_res=`eval echo '${'$as_ac_var'}'`
31796 { echo "$as_me:$LINENO: result: $ac_res" >&5
31797 echo "${ECHO_T}$ac_res" >&6; }
31798 if test `eval echo '${'$as_ac_var'}'` = yes; then
31799 cat >>confdefs.h <<_ACEOF
31800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31806 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31807 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31808 if test "${llvm_cv_c_printf_a+set}" = set; then
31809 echo $ECHO_N "(cached) $ECHO_C" >&6
31812 ac_cpp='$CPP $CPPFLAGS'
31813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31817 if test "$cross_compiling" = yes; then
31818 llvmac_cv_c_printf_a=no
31820 cat >conftest.$ac_ext <<_ACEOF
31824 cat confdefs.h >>conftest.$ac_ext
31825 cat >>conftest.$ac_ext <<_ACEOF
31826 /* end confdefs.h. */
31829 #include <stdlib.h>
31835 volatile double A, B;
31839 sprintf(Buffer, "%a", A);
31843 if (A != 0x1.999999999999ap-4)
31850 rm -f conftest$ac_exeext
31851 if { (ac_try="$ac_link"
31852 case "(($ac_try" in
31853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31854 *) ac_try_echo=$ac_try;;
31856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31857 (eval "$ac_link") 2>&5
31859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31861 { (case "(($ac_try" in
31862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31863 *) ac_try_echo=$ac_try;;
31865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31866 (eval "$ac_try") 2>&5
31868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31869 (exit $ac_status); }; }; then
31870 llvm_cv_c_printf_a=yes
31872 echo "$as_me: program exited with status $ac_status" >&5
31873 echo "$as_me: failed program was:" >&5
31874 sed 's/^/| /' conftest.$ac_ext >&5
31876 ( exit $ac_status )
31877 llvmac_cv_c_printf_a=no
31879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31884 ac_cpp='$CPP $CPPFLAGS'
31885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31890 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31891 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31892 if test "$llvm_cv_c_printf_a" = "yes"; then
31894 cat >>confdefs.h <<\_ACEOF
31895 #define HAVE_PRINTF_A 1
31900 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31901 # for constant arguments. Useless!
31902 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31903 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31904 if test "${ac_cv_working_alloca_h+set}" = set; then
31905 echo $ECHO_N "(cached) $ECHO_C" >&6
31907 cat >conftest.$ac_ext <<_ACEOF
31910 cat confdefs.h >>conftest.$ac_ext
31911 cat >>conftest.$ac_ext <<_ACEOF
31912 /* end confdefs.h. */
31913 #include <alloca.h>
31917 char *p = (char *) alloca (2 * sizeof (int));
31923 rm -f conftest.$ac_objext conftest$ac_exeext
31924 if { (ac_try="$ac_link"
31925 case "(($ac_try" in
31926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31927 *) ac_try_echo=$ac_try;;
31929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31930 (eval "$ac_link") 2>conftest.er1
31932 grep -v '^ *+' conftest.er1 >conftest.err
31934 cat conftest.err >&5
31935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936 (exit $ac_status); } &&
31937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31938 { (case "(($ac_try" in
31939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31940 *) ac_try_echo=$ac_try;;
31942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31943 (eval "$ac_try") 2>&5
31945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946 (exit $ac_status); }; } &&
31947 { ac_try='test -s conftest$ac_exeext'
31948 { (case "(($ac_try" in
31949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31950 *) ac_try_echo=$ac_try;;
31952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31953 (eval "$ac_try") 2>&5
31955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31956 (exit $ac_status); }; }; then
31957 ac_cv_working_alloca_h=yes
31959 echo "$as_me: failed program was:" >&5
31960 sed 's/^/| /' conftest.$ac_ext >&5
31962 ac_cv_working_alloca_h=no
31965 rm -f core conftest.err conftest.$ac_objext \
31966 conftest$ac_exeext conftest.$ac_ext
31968 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31969 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31970 if test $ac_cv_working_alloca_h = yes; then
31972 cat >>confdefs.h <<\_ACEOF
31973 #define HAVE_ALLOCA_H 1
31978 { echo "$as_me:$LINENO: checking for alloca" >&5
31979 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31980 if test "${ac_cv_func_alloca_works+set}" = set; then
31981 echo $ECHO_N "(cached) $ECHO_C" >&6
31983 cat >conftest.$ac_ext <<_ACEOF
31986 cat confdefs.h >>conftest.$ac_ext
31987 cat >>conftest.$ac_ext <<_ACEOF
31988 /* end confdefs.h. */
31990 # define alloca __builtin_alloca
31993 # include <malloc.h>
31994 # define alloca _alloca
31997 # include <alloca.h>
32002 # ifndef alloca /* predefined by HP cc +Olibcalls */
32013 char *p = (char *) alloca (1);
32019 rm -f conftest.$ac_objext conftest$ac_exeext
32020 if { (ac_try="$ac_link"
32021 case "(($ac_try" in
32022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32023 *) ac_try_echo=$ac_try;;
32025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32026 (eval "$ac_link") 2>conftest.er1
32028 grep -v '^ *+' conftest.er1 >conftest.err
32030 cat conftest.err >&5
32031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032 (exit $ac_status); } &&
32033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32034 { (case "(($ac_try" in
32035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32036 *) ac_try_echo=$ac_try;;
32038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32039 (eval "$ac_try") 2>&5
32041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32042 (exit $ac_status); }; } &&
32043 { ac_try='test -s conftest$ac_exeext'
32044 { (case "(($ac_try" in
32045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32046 *) ac_try_echo=$ac_try;;
32048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32049 (eval "$ac_try") 2>&5
32051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32052 (exit $ac_status); }; }; then
32053 ac_cv_func_alloca_works=yes
32055 echo "$as_me: failed program was:" >&5
32056 sed 's/^/| /' conftest.$ac_ext >&5
32058 ac_cv_func_alloca_works=no
32061 rm -f core conftest.err conftest.$ac_objext \
32062 conftest$ac_exeext conftest.$ac_ext
32064 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32065 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32067 if test $ac_cv_func_alloca_works = yes; then
32069 cat >>confdefs.h <<\_ACEOF
32070 #define HAVE_ALLOCA 1
32074 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32075 # that cause trouble. Some versions do not even contain alloca or
32076 # contain a buggy version. If you still want to use their alloca,
32077 # use ar to extract alloca.o from them instead of compiling alloca.c.
32079 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32081 cat >>confdefs.h <<\_ACEOF
32086 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32087 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32088 if test "${ac_cv_os_cray+set}" = set; then
32089 echo $ECHO_N "(cached) $ECHO_C" >&6
32091 cat >conftest.$ac_ext <<_ACEOF
32094 cat confdefs.h >>conftest.$ac_ext
32095 cat >>conftest.$ac_ext <<_ACEOF
32096 /* end confdefs.h. */
32097 #if defined CRAY && ! defined CRAY2
32104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32105 $EGREP "webecray" >/dev/null 2>&1; then
32113 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32114 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32115 if test $ac_cv_os_cray = yes; then
32116 for ac_func in _getb67 GETB67 getb67; do
32117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32118 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32120 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32121 echo $ECHO_N "(cached) $ECHO_C" >&6
32123 cat >conftest.$ac_ext <<_ACEOF
32126 cat confdefs.h >>conftest.$ac_ext
32127 cat >>conftest.$ac_ext <<_ACEOF
32128 /* end confdefs.h. */
32129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32131 #define $ac_func innocuous_$ac_func
32133 /* System header to define __stub macros and hopefully few prototypes,
32134 which can conflict with char $ac_func (); below.
32135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32136 <limits.h> exists even on freestanding compilers. */
32139 # include <limits.h>
32141 # include <assert.h>
32146 /* Override any GCC internal prototype to avoid an error.
32147 Use char because int might match the return type of a GCC
32148 builtin and then its argument prototype would still apply. */
32153 /* The GNU C library defines this for functions which it implements
32154 to always fail with ENOSYS. Some functions are actually named
32155 something starting with __ and the normal name is an alias. */
32156 #if defined __stub_$ac_func || defined __stub___$ac_func
32163 return $ac_func ();
32168 rm -f conftest.$ac_objext conftest$ac_exeext
32169 if { (ac_try="$ac_link"
32170 case "(($ac_try" in
32171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32172 *) ac_try_echo=$ac_try;;
32174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32175 (eval "$ac_link") 2>conftest.er1
32177 grep -v '^ *+' conftest.er1 >conftest.err
32179 cat conftest.err >&5
32180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32181 (exit $ac_status); } &&
32182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32183 { (case "(($ac_try" in
32184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32185 *) ac_try_echo=$ac_try;;
32187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32188 (eval "$ac_try") 2>&5
32190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32191 (exit $ac_status); }; } &&
32192 { ac_try='test -s conftest$ac_exeext'
32193 { (case "(($ac_try" in
32194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32195 *) ac_try_echo=$ac_try;;
32197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32198 (eval "$ac_try") 2>&5
32200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32201 (exit $ac_status); }; }; then
32202 eval "$as_ac_var=yes"
32204 echo "$as_me: failed program was:" >&5
32205 sed 's/^/| /' conftest.$ac_ext >&5
32207 eval "$as_ac_var=no"
32210 rm -f core conftest.err conftest.$ac_objext \
32211 conftest$ac_exeext conftest.$ac_ext
32213 ac_res=`eval echo '${'$as_ac_var'}'`
32214 { echo "$as_me:$LINENO: result: $ac_res" >&5
32215 echo "${ECHO_T}$ac_res" >&6; }
32216 if test `eval echo '${'$as_ac_var'}'` = yes; then
32218 cat >>confdefs.h <<_ACEOF
32219 #define CRAY_STACKSEG_END $ac_func
32228 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32229 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32230 if test "${ac_cv_c_stack_direction+set}" = set; then
32231 echo $ECHO_N "(cached) $ECHO_C" >&6
32233 if test "$cross_compiling" = yes; then
32234 ac_cv_c_stack_direction=0
32236 cat >conftest.$ac_ext <<_ACEOF
32239 cat confdefs.h >>conftest.$ac_ext
32240 cat >>conftest.$ac_ext <<_ACEOF
32241 /* end confdefs.h. */
32242 $ac_includes_default
32244 find_stack_direction ()
32246 static char *addr = 0;
32251 return find_stack_direction ();
32254 return (&dummy > addr) ? 1 : -1;
32260 return find_stack_direction () < 0;
32263 rm -f conftest$ac_exeext
32264 if { (ac_try="$ac_link"
32265 case "(($ac_try" in
32266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32267 *) ac_try_echo=$ac_try;;
32269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32270 (eval "$ac_link") 2>&5
32272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32274 { (case "(($ac_try" in
32275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32276 *) ac_try_echo=$ac_try;;
32278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32279 (eval "$ac_try") 2>&5
32281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32282 (exit $ac_status); }; }; then
32283 ac_cv_c_stack_direction=1
32285 echo "$as_me: program exited with status $ac_status" >&5
32286 echo "$as_me: failed program was:" >&5
32287 sed 's/^/| /' conftest.$ac_ext >&5
32289 ( exit $ac_status )
32290 ac_cv_c_stack_direction=-1
32292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32297 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32298 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32300 cat >>confdefs.h <<_ACEOF
32301 #define STACK_DIRECTION $ac_cv_c_stack_direction
32308 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
32309 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
32310 if test "${ac_cv_func_rand48+set}" = set; then
32311 echo $ECHO_N "(cached) $ECHO_C" >&6
32314 ac_cpp='$CXXCPP $CPPFLAGS'
32315 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32316 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32317 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32319 cat >conftest.$ac_ext <<_ACEOF
32322 cat confdefs.h >>conftest.$ac_ext
32323 cat >>conftest.$ac_ext <<_ACEOF
32324 /* end confdefs.h. */
32325 #include <stdlib.h>
32329 srand48(0);lrand48();drand48();
32334 rm -f conftest.$ac_objext
32335 if { (ac_try="$ac_compile"
32336 case "(($ac_try" in
32337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32338 *) ac_try_echo=$ac_try;;
32340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32341 (eval "$ac_compile") 2>conftest.er1
32343 grep -v '^ *+' conftest.er1 >conftest.err
32345 cat conftest.err >&5
32346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32347 (exit $ac_status); } &&
32348 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32349 { (case "(($ac_try" in
32350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32351 *) ac_try_echo=$ac_try;;
32353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32354 (eval "$ac_try") 2>&5
32356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32357 (exit $ac_status); }; } &&
32358 { ac_try='test -s conftest.$ac_objext'
32359 { (case "(($ac_try" in
32360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32361 *) ac_try_echo=$ac_try;;
32363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32364 (eval "$ac_try") 2>&5
32366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367 (exit $ac_status); }; }; then
32368 ac_cv_func_rand48=yes
32370 echo "$as_me: failed program was:" >&5
32371 sed 's/^/| /' conftest.$ac_ext >&5
32373 ac_cv_func_rand48=no
32376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32378 ac_cpp='$CPP $CPPFLAGS'
32379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32384 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32385 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
32387 if test "$ac_cv_func_rand48" = "yes" ; then
32389 cat >>confdefs.h <<\_ACEOF
32390 #define HAVE_RAND48 1
32396 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32397 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
32398 if test "${ac_cv_cxx_namespaces+set}" = set; then
32399 echo $ECHO_N "(cached) $ECHO_C" >&6
32402 ac_cpp='$CXXCPP $CPPFLAGS'
32403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32407 cat >conftest.$ac_ext <<_ACEOF
32410 cat confdefs.h >>conftest.$ac_ext
32411 cat >>conftest.$ac_ext <<_ACEOF
32412 /* end confdefs.h. */
32413 namespace Outer { namespace Inner { int i = 0; }}
32417 using namespace Outer::Inner; return i;
32422 rm -f conftest.$ac_objext
32423 if { (ac_try="$ac_compile"
32424 case "(($ac_try" in
32425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32426 *) ac_try_echo=$ac_try;;
32428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32429 (eval "$ac_compile") 2>conftest.er1
32431 grep -v '^ *+' conftest.er1 >conftest.err
32433 cat conftest.err >&5
32434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32435 (exit $ac_status); } &&
32436 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32437 { (case "(($ac_try" in
32438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32439 *) ac_try_echo=$ac_try;;
32441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32442 (eval "$ac_try") 2>&5
32444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32445 (exit $ac_status); }; } &&
32446 { ac_try='test -s conftest.$ac_objext'
32447 { (case "(($ac_try" in
32448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32449 *) ac_try_echo=$ac_try;;
32451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32452 (eval "$ac_try") 2>&5
32454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32455 (exit $ac_status); }; }; then
32456 ac_cv_cxx_namespaces=yes
32458 echo "$as_me: failed program was:" >&5
32459 sed 's/^/| /' conftest.$ac_ext >&5
32461 ac_cv_cxx_namespaces=no
32464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32466 ac_cpp='$CPP $CPPFLAGS'
32467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32473 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32474 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32475 if test "$ac_cv_cxx_namespaces" = yes; then
32477 cat >>confdefs.h <<\_ACEOF
32478 #define HAVE_NAMESPACES
32483 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32484 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32485 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32486 echo $ECHO_N "(cached) $ECHO_C" >&6
32490 ac_cpp='$CXXCPP $CPPFLAGS'
32491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32495 cat >conftest.$ac_ext <<_ACEOF
32498 cat confdefs.h >>conftest.$ac_ext
32499 cat >>conftest.$ac_ext <<_ACEOF
32500 /* end confdefs.h. */
32501 #include <iterator>
32502 #ifdef HAVE_NAMESPACES
32503 using namespace std;
32508 iterator<int,int,int> t; return 0;
32513 rm -f conftest.$ac_objext
32514 if { (ac_try="$ac_compile"
32515 case "(($ac_try" in
32516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32517 *) ac_try_echo=$ac_try;;
32519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32520 (eval "$ac_compile") 2>conftest.er1
32522 grep -v '^ *+' conftest.er1 >conftest.err
32524 cat conftest.err >&5
32525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32526 (exit $ac_status); } &&
32527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32528 { (case "(($ac_try" in
32529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32530 *) ac_try_echo=$ac_try;;
32532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32533 (eval "$ac_try") 2>&5
32535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536 (exit $ac_status); }; } &&
32537 { ac_try='test -s conftest.$ac_objext'
32538 { (case "(($ac_try" in
32539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32540 *) ac_try_echo=$ac_try;;
32542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32543 (eval "$ac_try") 2>&5
32545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546 (exit $ac_status); }; }; then
32547 ac_cv_cxx_have_std_iterator=yes
32549 echo "$as_me: failed program was:" >&5
32550 sed 's/^/| /' conftest.$ac_ext >&5
32552 ac_cv_cxx_have_std_iterator=no
32555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32557 ac_cpp='$CPP $CPPFLAGS'
32558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32564 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32565 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32566 if test "$ac_cv_cxx_have_std_iterator" = yes
32569 cat >>confdefs.h <<\_ACEOF
32570 #define HAVE_STD_ITERATOR 1
32575 cat >>confdefs.h <<\_ACEOF
32576 #define HAVE_STD_ITERATOR 0
32581 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32582 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32583 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32584 echo $ECHO_N "(cached) $ECHO_C" >&6
32588 ac_cpp='$CXXCPP $CPPFLAGS'
32589 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32590 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32591 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32593 cat >conftest.$ac_ext <<_ACEOF
32596 cat confdefs.h >>conftest.$ac_ext
32597 cat >>conftest.$ac_ext <<_ACEOF
32598 /* end confdefs.h. */
32599 #include <iterator>
32600 #ifdef HAVE_NAMESPACES
32601 using namespace std;
32606 bidirectional_iterator<int,int> t; return 0;
32611 rm -f conftest.$ac_objext
32612 if { (ac_try="$ac_compile"
32613 case "(($ac_try" in
32614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32615 *) ac_try_echo=$ac_try;;
32617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32618 (eval "$ac_compile") 2>conftest.er1
32620 grep -v '^ *+' conftest.er1 >conftest.err
32622 cat conftest.err >&5
32623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624 (exit $ac_status); } &&
32625 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32626 { (case "(($ac_try" in
32627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32628 *) ac_try_echo=$ac_try;;
32630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32631 (eval "$ac_try") 2>&5
32633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32634 (exit $ac_status); }; } &&
32635 { ac_try='test -s conftest.$ac_objext'
32636 { (case "(($ac_try" in
32637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32638 *) ac_try_echo=$ac_try;;
32640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32641 (eval "$ac_try") 2>&5
32643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32644 (exit $ac_status); }; }; then
32645 ac_cv_cxx_have_bi_iterator=yes
32647 echo "$as_me: failed program was:" >&5
32648 sed 's/^/| /' conftest.$ac_ext >&5
32650 ac_cv_cxx_have_bi_iterator=no
32653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32655 ac_cpp='$CPP $CPPFLAGS'
32656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32662 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32663 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32664 if test "$ac_cv_cxx_have_bi_iterator" = yes
32667 cat >>confdefs.h <<\_ACEOF
32668 #define HAVE_BI_ITERATOR 1
32673 cat >>confdefs.h <<\_ACEOF
32674 #define HAVE_BI_ITERATOR 0
32679 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32680 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32681 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32682 echo $ECHO_N "(cached) $ECHO_C" >&6
32686 ac_cpp='$CXXCPP $CPPFLAGS'
32687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32691 cat >conftest.$ac_ext <<_ACEOF
32694 cat confdefs.h >>conftest.$ac_ext
32695 cat >>conftest.$ac_ext <<_ACEOF
32696 /* end confdefs.h. */
32697 #include <iterator>
32698 #ifdef HAVE_NAMESPACES
32699 using namespace std;
32704 forward_iterator<int,int> t; return 0;
32709 rm -f conftest.$ac_objext
32710 if { (ac_try="$ac_compile"
32711 case "(($ac_try" in
32712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32713 *) ac_try_echo=$ac_try;;
32715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32716 (eval "$ac_compile") 2>conftest.er1
32718 grep -v '^ *+' conftest.er1 >conftest.err
32720 cat conftest.err >&5
32721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32722 (exit $ac_status); } &&
32723 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32724 { (case "(($ac_try" in
32725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32726 *) ac_try_echo=$ac_try;;
32728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32729 (eval "$ac_try") 2>&5
32731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32732 (exit $ac_status); }; } &&
32733 { ac_try='test -s conftest.$ac_objext'
32734 { (case "(($ac_try" in
32735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32736 *) ac_try_echo=$ac_try;;
32738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32739 (eval "$ac_try") 2>&5
32741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742 (exit $ac_status); }; }; then
32743 ac_cv_cxx_have_fwd_iterator=yes
32745 echo "$as_me: failed program was:" >&5
32746 sed 's/^/| /' conftest.$ac_ext >&5
32748 ac_cv_cxx_have_fwd_iterator=no
32751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32753 ac_cpp='$CPP $CPPFLAGS'
32754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32760 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32761 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32762 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32765 cat >>confdefs.h <<\_ACEOF
32766 #define HAVE_FWD_ITERATOR 1
32771 cat >>confdefs.h <<\_ACEOF
32772 #define HAVE_FWD_ITERATOR 0
32778 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32779 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32780 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32781 echo $ECHO_N "(cached) $ECHO_C" >&6
32784 ac_cpp='$CXXCPP $CPPFLAGS'
32785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32789 cat >conftest.$ac_ext <<_ACEOF
32792 cat confdefs.h >>conftest.$ac_ext
32793 cat >>conftest.$ac_ext <<_ACEOF
32794 /* end confdefs.h. */
32804 rm -f conftest.$ac_objext
32805 if { (ac_try="$ac_compile"
32806 case "(($ac_try" in
32807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32808 *) ac_try_echo=$ac_try;;
32810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32811 (eval "$ac_compile") 2>conftest.er1
32813 grep -v '^ *+' conftest.er1 >conftest.err
32815 cat conftest.err >&5
32816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32817 (exit $ac_status); } &&
32818 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32819 { (case "(($ac_try" in
32820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32821 *) ac_try_echo=$ac_try;;
32823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32824 (eval "$ac_try") 2>&5
32826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827 (exit $ac_status); }; } &&
32828 { ac_try='test -s conftest.$ac_objext'
32829 { (case "(($ac_try" in
32830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32831 *) ac_try_echo=$ac_try;;
32833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32834 (eval "$ac_try") 2>&5
32836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32837 (exit $ac_status); }; }; then
32838 ac_cv_func_isnan_in_math_h=yes
32840 echo "$as_me: failed program was:" >&5
32841 sed 's/^/| /' conftest.$ac_ext >&5
32843 ac_cv_func_isnan_in_math_h=no
32846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32848 ac_cpp='$CPP $CPPFLAGS'
32849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32854 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32855 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32858 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32860 cat >>confdefs.h <<\_ACEOF
32861 #define HAVE_ISNAN_IN_MATH_H 1
32866 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32867 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32868 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32869 echo $ECHO_N "(cached) $ECHO_C" >&6
32872 ac_cpp='$CXXCPP $CPPFLAGS'
32873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32877 cat >conftest.$ac_ext <<_ACEOF
32880 cat confdefs.h >>conftest.$ac_ext
32881 cat >>conftest.$ac_ext <<_ACEOF
32882 /* end confdefs.h. */
32892 rm -f conftest.$ac_objext
32893 if { (ac_try="$ac_compile"
32894 case "(($ac_try" in
32895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32896 *) ac_try_echo=$ac_try;;
32898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32899 (eval "$ac_compile") 2>conftest.er1
32901 grep -v '^ *+' conftest.er1 >conftest.err
32903 cat conftest.err >&5
32904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32905 (exit $ac_status); } &&
32906 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32907 { (case "(($ac_try" in
32908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32909 *) ac_try_echo=$ac_try;;
32911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32912 (eval "$ac_try") 2>&5
32914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32915 (exit $ac_status); }; } &&
32916 { ac_try='test -s conftest.$ac_objext'
32917 { (case "(($ac_try" in
32918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32919 *) ac_try_echo=$ac_try;;
32921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32922 (eval "$ac_try") 2>&5
32924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32925 (exit $ac_status); }; }; then
32926 ac_cv_func_isnan_in_cmath=yes
32928 echo "$as_me: failed program was:" >&5
32929 sed 's/^/| /' conftest.$ac_ext >&5
32931 ac_cv_func_isnan_in_cmath=no
32934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32936 ac_cpp='$CPP $CPPFLAGS'
32937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32942 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32943 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32945 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32947 cat >>confdefs.h <<\_ACEOF
32948 #define HAVE_ISNAN_IN_CMATH 1
32953 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32954 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32955 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32956 echo $ECHO_N "(cached) $ECHO_C" >&6
32959 ac_cpp='$CXXCPP $CPPFLAGS'
32960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32964 cat >conftest.$ac_ext <<_ACEOF
32967 cat confdefs.h >>conftest.$ac_ext
32968 cat >>conftest.$ac_ext <<_ACEOF
32969 /* end confdefs.h. */
32974 float f; std::isnan(f);
32979 rm -f conftest.$ac_objext
32980 if { (ac_try="$ac_compile"
32981 case "(($ac_try" in
32982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32983 *) ac_try_echo=$ac_try;;
32985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32986 (eval "$ac_compile") 2>conftest.er1
32988 grep -v '^ *+' conftest.er1 >conftest.err
32990 cat conftest.err >&5
32991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32992 (exit $ac_status); } &&
32993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32994 { (case "(($ac_try" in
32995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32996 *) ac_try_echo=$ac_try;;
32998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32999 (eval "$ac_try") 2>&5
33001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33002 (exit $ac_status); }; } &&
33003 { ac_try='test -s conftest.$ac_objext'
33004 { (case "(($ac_try" in
33005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33006 *) ac_try_echo=$ac_try;;
33008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33009 (eval "$ac_try") 2>&5
33011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33012 (exit $ac_status); }; }; then
33013 ac_cv_func_std_isnan_in_cmath=yes
33015 echo "$as_me: failed program was:" >&5
33016 sed 's/^/| /' conftest.$ac_ext >&5
33018 ac_cv_func_std_isnan_in_cmath=no
33021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33023 ac_cpp='$CPP $CPPFLAGS'
33024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33029 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33030 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33032 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33034 cat >>confdefs.h <<\_ACEOF
33035 #define HAVE_STD_ISNAN_IN_CMATH 1
33041 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33042 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33043 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33044 echo $ECHO_N "(cached) $ECHO_C" >&6
33047 ac_cpp='$CXXCPP $CPPFLAGS'
33048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33052 cat >conftest.$ac_ext <<_ACEOF
33055 cat confdefs.h >>conftest.$ac_ext
33056 cat >>conftest.$ac_ext <<_ACEOF
33057 /* end confdefs.h. */
33067 rm -f conftest.$ac_objext
33068 if { (ac_try="$ac_compile"
33069 case "(($ac_try" in
33070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33071 *) ac_try_echo=$ac_try;;
33073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33074 (eval "$ac_compile") 2>conftest.er1
33076 grep -v '^ *+' conftest.er1 >conftest.err
33078 cat conftest.err >&5
33079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33080 (exit $ac_status); } &&
33081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33082 { (case "(($ac_try" in
33083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33084 *) ac_try_echo=$ac_try;;
33086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33087 (eval "$ac_try") 2>&5
33089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33090 (exit $ac_status); }; } &&
33091 { ac_try='test -s conftest.$ac_objext'
33092 { (case "(($ac_try" in
33093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33094 *) ac_try_echo=$ac_try;;
33096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33097 (eval "$ac_try") 2>&5
33099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33100 (exit $ac_status); }; }; then
33101 ac_cv_func_isinf_in_math_h=yes
33103 echo "$as_me: failed program was:" >&5
33104 sed 's/^/| /' conftest.$ac_ext >&5
33106 ac_cv_func_isinf_in_math_h=no
33109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33111 ac_cpp='$CPP $CPPFLAGS'
33112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33117 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33118 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33120 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33122 cat >>confdefs.h <<\_ACEOF
33123 #define HAVE_ISINF_IN_MATH_H 1
33128 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33129 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33130 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33131 echo $ECHO_N "(cached) $ECHO_C" >&6
33134 ac_cpp='$CXXCPP $CPPFLAGS'
33135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33139 cat >conftest.$ac_ext <<_ACEOF
33142 cat confdefs.h >>conftest.$ac_ext
33143 cat >>conftest.$ac_ext <<_ACEOF
33144 /* end confdefs.h. */
33154 rm -f conftest.$ac_objext
33155 if { (ac_try="$ac_compile"
33156 case "(($ac_try" in
33157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33158 *) ac_try_echo=$ac_try;;
33160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33161 (eval "$ac_compile") 2>conftest.er1
33163 grep -v '^ *+' conftest.er1 >conftest.err
33165 cat conftest.err >&5
33166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33167 (exit $ac_status); } &&
33168 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33169 { (case "(($ac_try" in
33170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33171 *) ac_try_echo=$ac_try;;
33173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33174 (eval "$ac_try") 2>&5
33176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33177 (exit $ac_status); }; } &&
33178 { ac_try='test -s conftest.$ac_objext'
33179 { (case "(($ac_try" in
33180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33181 *) ac_try_echo=$ac_try;;
33183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33184 (eval "$ac_try") 2>&5
33186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33187 (exit $ac_status); }; }; then
33188 ac_cv_func_isinf_in_cmath=yes
33190 echo "$as_me: failed program was:" >&5
33191 sed 's/^/| /' conftest.$ac_ext >&5
33193 ac_cv_func_isinf_in_cmath=no
33196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33198 ac_cpp='$CPP $CPPFLAGS'
33199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33204 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33205 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33207 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33209 cat >>confdefs.h <<\_ACEOF
33210 #define HAVE_ISINF_IN_CMATH 1
33215 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33216 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33217 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33218 echo $ECHO_N "(cached) $ECHO_C" >&6
33221 ac_cpp='$CXXCPP $CPPFLAGS'
33222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33226 cat >conftest.$ac_ext <<_ACEOF
33229 cat confdefs.h >>conftest.$ac_ext
33230 cat >>conftest.$ac_ext <<_ACEOF
33231 /* end confdefs.h. */
33236 float f; std::isinf(f)}
33241 rm -f conftest.$ac_objext
33242 if { (ac_try="$ac_compile"
33243 case "(($ac_try" in
33244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33245 *) ac_try_echo=$ac_try;;
33247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33248 (eval "$ac_compile") 2>conftest.er1
33250 grep -v '^ *+' conftest.er1 >conftest.err
33252 cat conftest.err >&5
33253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33254 (exit $ac_status); } &&
33255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33256 { (case "(($ac_try" in
33257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33258 *) ac_try_echo=$ac_try;;
33260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33261 (eval "$ac_try") 2>&5
33263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33264 (exit $ac_status); }; } &&
33265 { ac_try='test -s conftest.$ac_objext'
33266 { (case "(($ac_try" in
33267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33268 *) ac_try_echo=$ac_try;;
33270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33271 (eval "$ac_try") 2>&5
33273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274 (exit $ac_status); }; }; then
33275 ac_cv_func_std_isinf_in_cmath=yes
33277 echo "$as_me: failed program was:" >&5
33278 sed 's/^/| /' conftest.$ac_ext >&5
33280 ac_cv_func_std_isinf_in_cmath=no
33283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33285 ac_cpp='$CPP $CPPFLAGS'
33286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33291 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33292 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33294 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33296 cat >>confdefs.h <<\_ACEOF
33297 #define HAVE_STD_ISINF_IN_CMATH 1
33302 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33303 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33304 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33305 echo $ECHO_N "(cached) $ECHO_C" >&6
33308 ac_cpp='$CXXCPP $CPPFLAGS'
33309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33313 cat >conftest.$ac_ext <<_ACEOF
33316 cat confdefs.h >>conftest.$ac_ext
33317 cat >>conftest.$ac_ext <<_ACEOF
33318 /* end confdefs.h. */
33319 #include <ieeefp.h>
33323 float f; finite(f);
33328 rm -f conftest.$ac_objext
33329 if { (ac_try="$ac_compile"
33330 case "(($ac_try" in
33331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33332 *) ac_try_echo=$ac_try;;
33334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33335 (eval "$ac_compile") 2>conftest.er1
33337 grep -v '^ *+' conftest.er1 >conftest.err
33339 cat conftest.err >&5
33340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33341 (exit $ac_status); } &&
33342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33343 { (case "(($ac_try" in
33344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33345 *) ac_try_echo=$ac_try;;
33347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33348 (eval "$ac_try") 2>&5
33350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33351 (exit $ac_status); }; } &&
33352 { ac_try='test -s conftest.$ac_objext'
33353 { (case "(($ac_try" in
33354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33355 *) ac_try_echo=$ac_try;;
33357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33358 (eval "$ac_try") 2>&5
33360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33361 (exit $ac_status); }; }; then
33362 ac_cv_func_finite_in_ieeefp_h=yes
33364 echo "$as_me: failed program was:" >&5
33365 sed 's/^/| /' conftest.$ac_ext >&5
33367 ac_cv_func_finite_in_ieeefp_h=no
33370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33372 ac_cpp='$CPP $CPPFLAGS'
33373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33378 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33379 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33381 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33383 cat >>confdefs.h <<\_ACEOF
33384 #define HAVE_FINITE_IN_IEEEFP_H 1
33391 if test "$llvm_cv_platform_type" = "Unix" ; then
33394 for ac_header in stdlib.h unistd.h
33396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33401 echo $ECHO_N "(cached) $ECHO_C" >&6
33403 ac_res=`eval echo '${'$as_ac_Header'}'`
33404 { echo "$as_me:$LINENO: result: $ac_res" >&5
33405 echo "${ECHO_T}$ac_res" >&6; }
33407 # Is the header compilable?
33408 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33410 cat >conftest.$ac_ext <<_ACEOF
33413 cat confdefs.h >>conftest.$ac_ext
33414 cat >>conftest.$ac_ext <<_ACEOF
33415 /* end confdefs.h. */
33416 $ac_includes_default
33417 #include <$ac_header>
33419 rm -f conftest.$ac_objext
33420 if { (ac_try="$ac_compile"
33421 case "(($ac_try" in
33422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33423 *) ac_try_echo=$ac_try;;
33425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33426 (eval "$ac_compile") 2>conftest.er1
33428 grep -v '^ *+' conftest.er1 >conftest.err
33430 cat conftest.err >&5
33431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33432 (exit $ac_status); } &&
33433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33434 { (case "(($ac_try" in
33435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33436 *) ac_try_echo=$ac_try;;
33438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33439 (eval "$ac_try") 2>&5
33441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33442 (exit $ac_status); }; } &&
33443 { ac_try='test -s conftest.$ac_objext'
33444 { (case "(($ac_try" in
33445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33446 *) ac_try_echo=$ac_try;;
33448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33449 (eval "$ac_try") 2>&5
33451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33452 (exit $ac_status); }; }; then
33453 ac_header_compiler=yes
33455 echo "$as_me: failed program was:" >&5
33456 sed 's/^/| /' conftest.$ac_ext >&5
33458 ac_header_compiler=no
33461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33462 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33463 echo "${ECHO_T}$ac_header_compiler" >&6; }
33465 # Is the header present?
33466 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33468 cat >conftest.$ac_ext <<_ACEOF
33471 cat confdefs.h >>conftest.$ac_ext
33472 cat >>conftest.$ac_ext <<_ACEOF
33473 /* end confdefs.h. */
33474 #include <$ac_header>
33476 if { (ac_try="$ac_cpp conftest.$ac_ext"
33477 case "(($ac_try" in
33478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33479 *) ac_try_echo=$ac_try;;
33481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33484 grep -v '^ *+' conftest.er1 >conftest.err
33486 cat conftest.err >&5
33487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33488 (exit $ac_status); } >/dev/null; then
33489 if test -s conftest.err; then
33490 ac_cpp_err=$ac_c_preproc_warn_flag
33491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33498 if test -z "$ac_cpp_err"; then
33499 ac_header_preproc=yes
33501 echo "$as_me: failed program was:" >&5
33502 sed 's/^/| /' conftest.$ac_ext >&5
33504 ac_header_preproc=no
33507 rm -f conftest.err conftest.$ac_ext
33508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33509 echo "${ECHO_T}$ac_header_preproc" >&6; }
33511 # So? What about this header?
33512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33518 ac_header_preproc=yes
33521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33528 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33534 ## ----------------------------------- ##
33535 ## Report this to llvmbugs@cs.uiuc.edu ##
33536 ## ----------------------------------- ##
33538 ) | sed "s/^/$as_me: WARNING: /" >&2
33541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33544 echo $ECHO_N "(cached) $ECHO_C" >&6
33546 eval "$as_ac_Header=\$ac_header_preproc"
33548 ac_res=`eval echo '${'$as_ac_Header'}'`
33549 { echo "$as_me:$LINENO: result: $ac_res" >&5
33550 echo "${ECHO_T}$ac_res" >&6; }
33553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33554 cat >>confdefs.h <<_ACEOF
33555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33563 for ac_func in getpagesize
33565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33566 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33569 echo $ECHO_N "(cached) $ECHO_C" >&6
33571 cat >conftest.$ac_ext <<_ACEOF
33574 cat confdefs.h >>conftest.$ac_ext
33575 cat >>conftest.$ac_ext <<_ACEOF
33576 /* end confdefs.h. */
33577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33579 #define $ac_func innocuous_$ac_func
33581 /* System header to define __stub macros and hopefully few prototypes,
33582 which can conflict with char $ac_func (); below.
33583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33584 <limits.h> exists even on freestanding compilers. */
33587 # include <limits.h>
33589 # include <assert.h>
33594 /* Override any GCC internal prototype to avoid an error.
33595 Use char because int might match the return type of a GCC
33596 builtin and then its argument prototype would still apply. */
33601 /* The GNU C library defines this for functions which it implements
33602 to always fail with ENOSYS. Some functions are actually named
33603 something starting with __ and the normal name is an alias. */
33604 #if defined __stub_$ac_func || defined __stub___$ac_func
33611 return $ac_func ();
33616 rm -f conftest.$ac_objext conftest$ac_exeext
33617 if { (ac_try="$ac_link"
33618 case "(($ac_try" in
33619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33620 *) ac_try_echo=$ac_try;;
33622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33623 (eval "$ac_link") 2>conftest.er1
33625 grep -v '^ *+' conftest.er1 >conftest.err
33627 cat conftest.err >&5
33628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33629 (exit $ac_status); } &&
33630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33631 { (case "(($ac_try" in
33632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33633 *) ac_try_echo=$ac_try;;
33635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33636 (eval "$ac_try") 2>&5
33638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33639 (exit $ac_status); }; } &&
33640 { ac_try='test -s conftest$ac_exeext'
33641 { (case "(($ac_try" in
33642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33643 *) ac_try_echo=$ac_try;;
33645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33646 (eval "$ac_try") 2>&5
33648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33649 (exit $ac_status); }; }; then
33650 eval "$as_ac_var=yes"
33652 echo "$as_me: failed program was:" >&5
33653 sed 's/^/| /' conftest.$ac_ext >&5
33655 eval "$as_ac_var=no"
33658 rm -f core conftest.err conftest.$ac_objext \
33659 conftest$ac_exeext conftest.$ac_ext
33661 ac_res=`eval echo '${'$as_ac_var'}'`
33662 { echo "$as_me:$LINENO: result: $ac_res" >&5
33663 echo "${ECHO_T}$ac_res" >&6; }
33664 if test `eval echo '${'$as_ac_var'}'` = yes; then
33665 cat >>confdefs.h <<_ACEOF
33666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33672 { echo "$as_me:$LINENO: checking for working mmap" >&5
33673 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33674 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33675 echo $ECHO_N "(cached) $ECHO_C" >&6
33677 if test "$cross_compiling" = yes; then
33678 ac_cv_func_mmap_fixed_mapped=no
33680 cat >conftest.$ac_ext <<_ACEOF
33683 cat confdefs.h >>conftest.$ac_ext
33684 cat >>conftest.$ac_ext <<_ACEOF
33685 /* end confdefs.h. */
33686 $ac_includes_default
33687 /* malloc might have been renamed as rpl_malloc. */
33690 /* Thanks to Mike Haertel and Jim Avera for this test.
33691 Here is a matrix of mmap possibilities:
33692 mmap private not fixed
33693 mmap private fixed at somewhere currently unmapped
33694 mmap private fixed at somewhere already mapped
33695 mmap shared not fixed
33696 mmap shared fixed at somewhere currently unmapped
33697 mmap shared fixed at somewhere already mapped
33698 For private mappings, we should verify that changes cannot be read()
33699 back from the file, nor mmap's back from the file at a different
33700 address. (There have been systems where private was not correctly
33701 implemented like the infamous i386 svr4.0, and systems where the
33702 VM page cache was not coherent with the file system buffer cache
33703 like early versions of FreeBSD and possibly contemporary NetBSD.)
33704 For shared mappings, we should conversely verify that changes get
33705 propagated back to all the places they're supposed to be.
33707 Grep wants private fixed already mapped.
33708 The main things grep needs to know about mmap are:
33709 * does it exist and is it safe to write into the mmap'd area
33710 * how to use it (BSD variants) */
33713 #include <sys/mman.h>
33715 #if !STDC_HEADERS && !HAVE_STDLIB_H
33719 /* This mess was copied from the GNU getpagesize.h. */
33720 #if !HAVE_GETPAGESIZE
33721 /* Assume that all systems that can run configure have sys/param.h. */
33722 # if !HAVE_SYS_PARAM_H
33723 # define HAVE_SYS_PARAM_H 1
33726 # ifdef _SC_PAGESIZE
33727 # define getpagesize() sysconf(_SC_PAGESIZE)
33728 # else /* no _SC_PAGESIZE */
33729 # if HAVE_SYS_PARAM_H
33730 # include <sys/param.h>
33731 # ifdef EXEC_PAGESIZE
33732 # define getpagesize() EXEC_PAGESIZE
33733 # else /* no EXEC_PAGESIZE */
33735 # define getpagesize() NBPG * CLSIZE
33738 # endif /* no CLSIZE */
33739 # else /* no NBPG */
33741 # define getpagesize() NBPC
33742 # else /* no NBPC */
33744 # define getpagesize() PAGESIZE
33745 # endif /* PAGESIZE */
33746 # endif /* no NBPC */
33747 # endif /* no NBPG */
33748 # endif /* no EXEC_PAGESIZE */
33749 # else /* no HAVE_SYS_PARAM_H */
33750 # define getpagesize() 8192 /* punt totally */
33751 # endif /* no HAVE_SYS_PARAM_H */
33752 # endif /* no _SC_PAGESIZE */
33754 #endif /* no HAVE_GETPAGESIZE */
33759 char *data, *data2, *data3;
33763 pagesize = getpagesize ();
33765 /* First, make a file with some known garbage in it. */
33766 data = (char *) malloc (pagesize);
33769 for (i = 0; i < pagesize; ++i)
33770 *(data + i) = rand ();
33772 fd = creat ("conftest.mmap", 0600);
33775 if (write (fd, data, pagesize) != pagesize)
33779 /* Next, try to mmap the file at a fixed address which already has
33780 something else allocated at it. If we can, also make sure that
33781 we see the same garbage. */
33782 fd = open ("conftest.mmap", O_RDWR);
33785 data2 = (char *) malloc (2 * pagesize);
33788 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33789 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33790 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33792 for (i = 0; i < pagesize; ++i)
33793 if (*(data + i) != *(data2 + i))
33796 /* Finally, make sure that changes to the mapped area do not
33797 percolate back to the file as seen by read(). (This is a bug on
33798 some variants of i386 svr4.0.) */
33799 for (i = 0; i < pagesize; ++i)
33800 *(data2 + i) = *(data2 + i) + 1;
33801 data3 = (char *) malloc (pagesize);
33804 if (read (fd, data3, pagesize) != pagesize)
33806 for (i = 0; i < pagesize; ++i)
33807 if (*(data + i) != *(data3 + i))
33813 rm -f conftest$ac_exeext
33814 if { (ac_try="$ac_link"
33815 case "(($ac_try" in
33816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33817 *) ac_try_echo=$ac_try;;
33819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33820 (eval "$ac_link") 2>&5
33822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33824 { (case "(($ac_try" in
33825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33826 *) ac_try_echo=$ac_try;;
33828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33829 (eval "$ac_try") 2>&5
33831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33832 (exit $ac_status); }; }; then
33833 ac_cv_func_mmap_fixed_mapped=yes
33835 echo "$as_me: program exited with status $ac_status" >&5
33836 echo "$as_me: failed program was:" >&5
33837 sed 's/^/| /' conftest.$ac_ext >&5
33839 ( exit $ac_status )
33840 ac_cv_func_mmap_fixed_mapped=no
33842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33847 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33848 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33849 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33851 cat >>confdefs.h <<\_ACEOF
33852 #define HAVE_MMAP 1
33856 rm -f conftest.mmap
33858 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33859 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33860 if test "${ac_cv_func_mmap_file+set}" = set; then
33861 echo $ECHO_N "(cached) $ECHO_C" >&6
33864 ac_cpp='$CPP $CPPFLAGS'
33865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33869 if test "$cross_compiling" = yes; then
33870 ac_cv_func_mmap_file=no
33872 cat >conftest.$ac_ext <<_ACEOF
33876 cat confdefs.h >>conftest.$ac_ext
33877 cat >>conftest.$ac_ext <<_ACEOF
33878 /* end confdefs.h. */
33880 #include <sys/types.h>
33881 #include <sys/mman.h>
33889 fd = creat ("foo",0777);
33890 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33892 return (fd != (int) MAP_FAILED);
33897 rm -f conftest$ac_exeext
33898 if { (ac_try="$ac_link"
33899 case "(($ac_try" in
33900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33901 *) ac_try_echo=$ac_try;;
33903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33904 (eval "$ac_link") 2>&5
33906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33908 { (case "(($ac_try" in
33909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33910 *) ac_try_echo=$ac_try;;
33912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33913 (eval "$ac_try") 2>&5
33915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33916 (exit $ac_status); }; }; then
33917 ac_cv_func_mmap_file=yes
33919 echo "$as_me: program exited with status $ac_status" >&5
33920 echo "$as_me: failed program was:" >&5
33921 sed 's/^/| /' conftest.$ac_ext >&5
33923 ( exit $ac_status )
33924 ac_cv_func_mmap_file=no
33926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33931 ac_cpp='$CPP $CPPFLAGS'
33932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33938 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33939 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33940 if test "$ac_cv_func_mmap_file" = yes; then
33942 cat >>confdefs.h <<\_ACEOF
33943 #define HAVE_MMAP_FILE
33950 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33951 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33952 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33953 echo $ECHO_N "(cached) $ECHO_C" >&6
33955 if test "$llvm_cv_os_type" = "Interix" ; then
33956 ac_cv_need_dev_zero_for_mmap=yes
33958 ac_cv_need_dev_zero_for_mmap=no
33962 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33963 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33964 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33966 cat >>confdefs.h <<\_ACEOF
33967 #define NEED_DEV_ZERO_FOR_MMAP 1
33972 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33974 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33975 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33977 if test "$ac_cv_func_mmap_file" = "no"
33979 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33980 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33984 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
33985 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
33986 cat >conftest.$ac_ext <<_ACEOF
33989 cat confdefs.h >>conftest.$ac_ext
33990 cat >>conftest.$ac_ext <<_ACEOF
33991 /* end confdefs.h. */
33993 volatile unsigned long val = 1;
33994 __sync_synchronize();
33995 __sync_val_compare_and_swap(&val, 1, 0);
33996 __sync_add_and_fetch(&val, 1);
33997 __sync_sub_and_fetch(&val, 1);
34002 rm -f conftest.$ac_objext conftest$ac_exeext
34003 if { (ac_try="$ac_link"
34004 case "(($ac_try" in
34005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34006 *) ac_try_echo=$ac_try;;
34008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34009 (eval "$ac_link") 2>conftest.er1
34011 grep -v '^ *+' conftest.er1 >conftest.err
34013 cat conftest.err >&5
34014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34015 (exit $ac_status); } &&
34016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34017 { (case "(($ac_try" in
34018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34019 *) ac_try_echo=$ac_try;;
34021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34022 (eval "$ac_try") 2>&5
34024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025 (exit $ac_status); }; } &&
34026 { ac_try='test -s conftest$ac_exeext'
34027 { (case "(($ac_try" in
34028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34029 *) ac_try_echo=$ac_try;;
34031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34032 (eval "$ac_try") 2>&5
34034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34035 (exit $ac_status); }; }; then
34036 { echo "$as_me:$LINENO: result: yes" >&5
34037 echo "${ECHO_T}yes" >&6; }
34039 cat >>confdefs.h <<\_ACEOF
34040 #define LLVM_MULTITHREADED 1
34044 echo "$as_me: failed program was:" >&5
34045 sed 's/^/| /' conftest.$ac_ext >&5
34047 { echo "$as_me:$LINENO: result: no" >&5
34048 echo "${ECHO_T}no" >&6; }
34050 cat >>confdefs.h <<\_ACEOF
34051 #define LLVM_MULTITHREADED 0
34054 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34055 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34058 rm -f core conftest.err conftest.$ac_objext \
34059 conftest$ac_exeext conftest.$ac_ext
34064 for ac_func in __dso_handle
34066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34067 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34070 echo $ECHO_N "(cached) $ECHO_C" >&6
34072 cat >conftest.$ac_ext <<_ACEOF
34075 cat confdefs.h >>conftest.$ac_ext
34076 cat >>conftest.$ac_ext <<_ACEOF
34077 /* end confdefs.h. */
34078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34080 #define $ac_func innocuous_$ac_func
34082 /* System header to define __stub macros and hopefully few prototypes,
34083 which can conflict with char $ac_func (); below.
34084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34085 <limits.h> exists even on freestanding compilers. */
34088 # include <limits.h>
34090 # include <assert.h>
34095 /* Override any GCC internal prototype to avoid an error.
34096 Use char because int might match the return type of a GCC
34097 builtin and then its argument prototype would still apply. */
34102 /* The GNU C library defines this for functions which it implements
34103 to always fail with ENOSYS. Some functions are actually named
34104 something starting with __ and the normal name is an alias. */
34105 #if defined __stub_$ac_func || defined __stub___$ac_func
34112 return $ac_func ();
34117 rm -f conftest.$ac_objext conftest$ac_exeext
34118 if { (ac_try="$ac_link"
34119 case "(($ac_try" in
34120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34121 *) ac_try_echo=$ac_try;;
34123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34124 (eval "$ac_link") 2>conftest.er1
34126 grep -v '^ *+' conftest.er1 >conftest.err
34128 cat conftest.err >&5
34129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34130 (exit $ac_status); } &&
34131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34132 { (case "(($ac_try" in
34133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34134 *) ac_try_echo=$ac_try;;
34136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34137 (eval "$ac_try") 2>&5
34139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34140 (exit $ac_status); }; } &&
34141 { ac_try='test -s conftest$ac_exeext'
34142 { (case "(($ac_try" in
34143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34144 *) ac_try_echo=$ac_try;;
34146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34147 (eval "$ac_try") 2>&5
34149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34150 (exit $ac_status); }; }; then
34151 eval "$as_ac_var=yes"
34153 echo "$as_me: failed program was:" >&5
34154 sed 's/^/| /' conftest.$ac_ext >&5
34156 eval "$as_ac_var=no"
34159 rm -f core conftest.err conftest.$ac_objext \
34160 conftest$ac_exeext conftest.$ac_ext
34162 ac_res=`eval echo '${'$as_ac_var'}'`
34163 { echo "$as_me:$LINENO: result: $ac_res" >&5
34164 echo "${ECHO_T}$ac_res" >&6; }
34165 if test `eval echo '${'$as_ac_var'}'` = yes; then
34166 cat >>confdefs.h <<_ACEOF
34167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34174 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34175 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34176 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34177 echo $ECHO_N "(cached) $ECHO_C" >&6
34179 llvm_cv_llvmgcc_sanity="no"
34180 if test -x "$LLVMGCC" ; then
34181 cp /dev/null conftest.c
34182 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34183 grep 'target datalayout =' > /dev/null 2>&1
34184 if test $? -eq 0 ; then
34185 llvm_cv_llvmgcc_sanity="yes"
34190 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34191 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34193 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34194 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34195 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34196 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34197 LLVMCC1=$llvmcc1path
34199 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34200 LLVMCC1PLUS=$llvmcc1pluspath
34202 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34203 LLVMGCCDIR=$llvmgccdir
34205 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34206 LLVMGCCLIBEXEC=$llvmgcclibexec
34208 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34209 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34210 LLVMGCC_VERSION=$llvmgccversion
34212 LLVMGCC_MAJVERS=$llvmgccmajvers
34214 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34215 LLVMGCC_LANGS=$llvmgcclangs
34217 { echo "$as_me:$LINENO: result: ok" >&5
34218 echo "${ECHO_T}ok" >&6; }
34221 SHLIBEXT=$libltdl_cv_shlibext
34224 # Translate the various configuration directories and other basic
34225 # information into substitutions that will end up in Makefile.config.in
34226 # that these configured values can be used by the makefiles
34227 if test "${prefix}" = "NONE" ; then
34228 prefix="/usr/local"
34230 eval LLVM_PREFIX="${prefix}";
34231 eval LLVM_BINDIR="${prefix}/bin";
34232 eval LLVM_LIBDIR="${prefix}/lib";
34233 eval LLVM_DATADIR="${prefix}/share/llvm";
34234 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34235 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34236 eval LLVM_INCLUDEDIR="${prefix}/include";
34237 eval LLVM_INFODIR="${prefix}/info";
34238 eval LLVM_MANDIR="${prefix}/man";
34239 LLVM_CONFIGTIME=`date`
34251 # Place the various directores into the config.h file as #defines so that we
34252 # can know about the installation paths within LLVM.
34254 cat >>confdefs.h <<_ACEOF
34255 #define LLVM_PREFIX "$LLVM_PREFIX"
34259 cat >>confdefs.h <<_ACEOF
34260 #define LLVM_BINDIR "$LLVM_BINDIR"
34264 cat >>confdefs.h <<_ACEOF
34265 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34269 cat >>confdefs.h <<_ACEOF
34270 #define LLVM_DATADIR "$LLVM_DATADIR"
34274 cat >>confdefs.h <<_ACEOF
34275 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34279 cat >>confdefs.h <<_ACEOF
34280 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34284 cat >>confdefs.h <<_ACEOF
34285 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34289 cat >>confdefs.h <<_ACEOF
34290 #define LLVM_INFODIR "$LLVM_INFODIR"
34294 cat >>confdefs.h <<_ACEOF
34295 #define LLVM_MANDIR "$LLVM_MANDIR"
34299 cat >>confdefs.h <<_ACEOF
34300 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34304 cat >>confdefs.h <<_ACEOF
34305 #define LLVM_HOSTTRIPLE "$host"
34309 # Determine which bindings to build.
34310 if test "$BINDINGS_TO_BUILD" = auto ; then
34311 BINDINGS_TO_BUILD=""
34312 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34313 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34316 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34319 # This isn't really configurey, but it avoids having to repeat the list in
34324 # Do any work necessary to ensure that bindings have what they need.
34325 binding_prereqs_failed=0
34326 for a_binding in $BINDINGS_TO_BUILD ; do
34327 case "$a_binding" in
34329 if test "x$OCAMLC" = x ; then
34330 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34331 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34332 binding_prereqs_failed=1
34334 if test "x$OCAMLDEP" = x ; then
34335 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34336 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34337 binding_prereqs_failed=1
34339 if test "x$OCAMLOPT" = x ; then
34340 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34341 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34343 if test "x$with_ocaml_libdir" != xauto ; then
34344 OCAML_LIBDIR=$with_ocaml_libdir
34347 ocaml_stdlib="`"$OCAMLC" -where`"
34348 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34350 # ocaml stdlib is beneath our prefix; use stdlib
34351 OCAML_LIBDIR=$ocaml_stdlib
34354 # ocaml stdlib is outside our prefix; use libdir/ocaml
34355 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34362 if test "$binding_prereqs_failed" = 1 ; then
34363 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34364 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34365 { (exit 1); exit 1; }; }
34368 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34369 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34370 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34371 echo $ECHO_N "(cached) $ECHO_C" >&6
34374 ac_cpp='$CXXCPP $CPPFLAGS'
34375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34379 oldcxxflags="$CXXFLAGS"
34380 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34381 cat >conftest.$ac_ext <<_ACEOF
34384 cat confdefs.h >>conftest.$ac_ext
34385 cat >>conftest.$ac_ext <<_ACEOF
34386 /* end confdefs.h. */
34396 rm -f conftest.$ac_objext
34397 if { (ac_try="$ac_compile"
34398 case "(($ac_try" in
34399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34400 *) ac_try_echo=$ac_try;;
34402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34403 (eval "$ac_compile") 2>conftest.er1
34405 grep -v '^ *+' conftest.er1 >conftest.err
34407 cat conftest.err >&5
34408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34409 (exit $ac_status); } &&
34410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34411 { (case "(($ac_try" in
34412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34413 *) ac_try_echo=$ac_try;;
34415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34416 (eval "$ac_try") 2>&5
34418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34419 (exit $ac_status); }; } &&
34420 { ac_try='test -s conftest.$ac_objext'
34421 { (case "(($ac_try" in
34422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34423 *) ac_try_echo=$ac_try;;
34425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34426 (eval "$ac_try") 2>&5
34428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34429 (exit $ac_status); }; }; then
34430 llvm_cv_cxx_visibility_inlines_hidden=yes
34432 echo "$as_me: failed program was:" >&5
34433 sed 's/^/| /' conftest.$ac_ext >&5
34435 llvm_cv_cxx_visibility_inlines_hidden=no
34438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34439 CXXFLAGS="$oldcxxflags"
34441 ac_cpp='$CPP $CPPFLAGS'
34442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34448 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34449 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34450 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34451 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34454 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34459 if test "$llvm_cv_link_use_r" = "yes" ; then
34466 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34467 RDYNAMIC="-Wl,-export-dynamic"
34474 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34476 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
34478 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
34480 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34482 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34485 ac_config_files="$ac_config_files Makefile.config"
34488 ac_config_files="$ac_config_files llvm.spec"
34491 ac_config_files="$ac_config_files docs/doxygen.cfg"
34494 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
34497 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34500 ac_config_commands="$ac_config_commands setup"
34502 ac_config_commands="$ac_config_commands Makefile"
34505 ac_config_commands="$ac_config_commands Makefile.common"
34508 ac_config_commands="$ac_config_commands examples/Makefile"
34511 ac_config_commands="$ac_config_commands lib/Makefile"
34514 ac_config_commands="$ac_config_commands runtime/Makefile"
34517 ac_config_commands="$ac_config_commands test/Makefile"
34520 ac_config_commands="$ac_config_commands test/Makefile.tests"
34523 ac_config_commands="$ac_config_commands unittests/Makefile"
34526 ac_config_commands="$ac_config_commands tools/Makefile"
34529 ac_config_commands="$ac_config_commands utils/Makefile"
34532 ac_config_commands="$ac_config_commands projects/Makefile"
34535 ac_config_commands="$ac_config_commands bindings/Makefile"
34538 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34542 cat >confcache <<\_ACEOF
34543 # This file is a shell script that caches the results of configure
34544 # tests run on this system so they can be shared between configure
34545 # scripts and configure runs, see configure's option --config-cache.
34546 # It is not useful on other systems. If it contains results you don't
34547 # want to keep, you may remove or edit it.
34549 # config.status only pays attention to the cache file if you give it
34550 # the --recheck option to rerun configure.
34552 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34553 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34554 # following values.
34558 # The following way of writing the cache mishandles newlines in values,
34559 # but we know of no workaround that is simple, portable, and efficient.
34560 # So, we kill variables containing newlines.
34561 # Ultrix sh set writes to stderr and can't be redirected directly,
34562 # and sets the high bit in the cache file unless we assign to the vars.
34564 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34565 eval ac_val=\$$ac_var
34569 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34570 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34573 _ | IFS | as_nl) ;; #(
34574 *) $as_unset $ac_var ;;
34580 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34581 *${as_nl}ac_space=\ *)
34582 # `set' does not quote correctly, so add quotes (double-quote
34583 # substitution turns \\\\ into \\, and sed turns \\ into \).
34586 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34589 # `set' quotes correctly as required by POSIX, so do not add quotes.
34590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34599 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34601 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34603 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34604 if test -w "$cache_file"; then
34605 test "x$cache_file" != "x/dev/null" &&
34606 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34607 echo "$as_me: updating cache $cache_file" >&6;}
34608 cat confcache >$cache_file
34610 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34611 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34616 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34617 # Let make expand exec_prefix.
34618 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34620 DEFS=-DHAVE_CONFIG_H
34624 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34625 # 1. Remove the extension, and $U if already installed.
34626 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34627 ac_i=`echo "$ac_i" | sed "$ac_script"`
34628 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34629 # will be set to the directory where LIBOBJS objects are built.
34630 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34631 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34633 LIBOBJS=$ac_libobjs
34635 LTLIBOBJS=$ac_ltlibobjs
34638 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34639 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34640 Usually this means the macro was only invoked conditionally." >&5
34641 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34642 Usually this means the macro was only invoked conditionally." >&2;}
34643 { (exit 1); exit 1; }; }
34645 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34646 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34647 Usually this means the macro was only invoked conditionally." >&5
34648 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34649 Usually this means the macro was only invoked conditionally." >&2;}
34650 { (exit 1); exit 1; }; }
34653 : ${CONFIG_STATUS=./config.status}
34654 ac_clean_files_save=$ac_clean_files
34655 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34656 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34657 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34658 cat >$CONFIG_STATUS <<_ACEOF
34660 # Generated by $as_me.
34661 # Run this file to recreate the current configuration.
34662 # Compiler output produced by configure, useful for debugging
34663 # configure, is in config.log if it exists.
34666 ac_cs_recheck=false
34668 SHELL=\${CONFIG_SHELL-$SHELL}
34671 cat >>$CONFIG_STATUS <<\_ACEOF
34672 ## --------------------- ##
34673 ## M4sh Initialization. ##
34674 ## --------------------- ##
34676 # Be Bourne compatible
34677 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34680 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34681 # is contrary to our usage. Disable this feature.
34682 alias -g '${1+"$@"}'='"$@"'
34683 setopt NO_GLOB_SUBST
34685 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34687 BIN_SH=xpg4; export BIN_SH # for Tru64
34688 DUALCASE=1; export DUALCASE # for MKS sh
34692 # Avoid depending upon Character Ranges.
34693 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34694 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34695 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34696 as_cr_digits='0123456789'
34697 as_cr_alnum=$as_cr_Letters$as_cr_digits
34699 # The user is always right.
34700 if test "${PATH_SEPARATOR+set}" != set; then
34701 echo "#! /bin/sh" >conf$$.sh
34702 echo "exit 0" >>conf$$.sh
34704 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34712 # Support unset when possible.
34713 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34721 # We need space, tab and new line, in precisely that order. Quoting is
34722 # there to prevent editors from complaining about space-tab.
34723 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34724 # splitting by setting IFS to empty value.)
34729 # Find who we are. Look in the path if we contain no directory separator.
34731 *[\\/]* ) as_myself=$0 ;;
34732 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34733 for as_dir in $PATH
34736 test -z "$as_dir" && as_dir=.
34737 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34743 # We did not find ourselves, most probably we were run as `sh COMMAND'
34744 # in which case we are not to be found in the path.
34745 if test "x$as_myself" = x; then
34748 if test ! -f "$as_myself"; then
34749 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34750 { (exit 1); exit 1; }
34753 # Work around bugs in pre-3.0 UWIN ksh.
34754 for as_var in ENV MAIL MAILPATH
34755 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34763 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34764 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34765 LC_TELEPHONE LC_TIME
34767 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34768 eval $as_var=C; export $as_var
34770 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34774 # Required to use basename.
34775 if expr a : '\(a\)' >/dev/null 2>&1 &&
34776 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34782 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34783 as_basename=basename
34789 # Name of the executable.
34790 as_me=`$as_basename -- "$0" ||
34791 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34792 X"$0" : 'X\(//\)$' \| \
34793 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34795 sed '/^.*\/\([^/][^/]*\)\/*$/{
34814 as_lineno_1=$LINENO
34815 as_lineno_2=$LINENO
34816 test "x$as_lineno_1" != "x$as_lineno_2" &&
34817 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34819 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34820 # uniformly replaced by the line number. The first 'sed' inserts a
34821 # line-number line after each line using $LINENO; the second 'sed'
34822 # does the real work. The second script uses 'N' to pair each
34823 # line-number line with the line containing $LINENO, and appends
34824 # trailing '-' during substitution so that $LINENO is not a special
34825 # case at line end.
34826 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34827 # scripts with optimization help from Paolo Bonzini. Blame Lee
34828 # E. McMahon (1931-1989) for sed's syntax. :-)
34840 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34843 ' >$as_me.lineno &&
34844 chmod +x "$as_me.lineno" ||
34845 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34846 { (exit 1); exit 1; }; }
34848 # Don't try to exec as it changes $[0], causing all sort of problems
34849 # (the dirname of $[0] is not the place where we might find the
34850 # original and so on. Autoconf is especially sensitive to this).
34851 . "./$as_me.lineno"
34852 # Exit status is that of the last command.
34857 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34863 ECHO_C= ECHO_N= ECHO_T=
34864 case `echo -n x` in
34866 case `echo 'x\c'` in
34867 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34874 if expr a : '\(a\)' >/dev/null 2>&1 &&
34875 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34881 rm -f conf$$ conf$$.exe conf$$.file
34882 if test -d conf$$.dir; then
34883 rm -f conf$$.dir/conf$$.file
34889 if ln -s conf$$.file conf$$ 2>/dev/null; then
34891 # ... but there are two gotchas:
34892 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34893 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34894 # In both cases, we have to default to `cp -p'.
34895 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34897 elif ln conf$$.file conf$$ 2>/dev/null; then
34902 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34903 rmdir conf$$.dir 2>/dev/null
34905 if mkdir -p . 2>/dev/null; then
34908 test -d ./-p && rmdir ./-p
34912 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34913 # systems may use methods other than mode bits to determine executability.
34914 cat >conf$$.file <<_ASEOF
34918 chmod +x conf$$.file
34919 if test -x conf$$.file >/dev/null 2>&1; then
34920 as_executable_p="test -x"
34926 # Sed expression to map a string onto a valid CPP name.
34927 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34929 # Sed expression to map a string onto a valid variable name.
34930 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34935 # Save the log message, to keep $[0] and so on meaningful, and to
34936 # report actual input values of CONFIG_FILES etc. instead of their
34937 # values after options handling.
34939 This file was extended by llvm $as_me 2.6svn, which was
34940 generated by GNU Autoconf 2.60. Invocation command line was
34942 CONFIG_FILES = $CONFIG_FILES
34943 CONFIG_HEADERS = $CONFIG_HEADERS
34944 CONFIG_LINKS = $CONFIG_LINKS
34945 CONFIG_COMMANDS = $CONFIG_COMMANDS
34948 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34953 cat >>$CONFIG_STATUS <<_ACEOF
34954 # Files that config.status was made for.
34955 config_files="$ac_config_files"
34956 config_headers="$ac_config_headers"
34957 config_commands="$ac_config_commands"
34961 cat >>$CONFIG_STATUS <<\_ACEOF
34963 \`$as_me' instantiates files from templates according to the
34964 current configuration.
34966 Usage: $0 [OPTIONS] [FILE]...
34968 -h, --help print this help, then exit
34969 -V, --version print version number, then exit
34970 -q, --quiet do not print progress messages
34971 -d, --debug don't remove temporary files
34972 --recheck update $as_me by reconfiguring in the same conditions
34973 --file=FILE[:TEMPLATE]
34974 instantiate the configuration file FILE
34975 --header=FILE[:TEMPLATE]
34976 instantiate the configuration header FILE
34978 Configuration files:
34981 Configuration headers:
34984 Configuration commands:
34987 Report bugs to <bug-autoconf@gnu.org>."
34990 cat >>$CONFIG_STATUS <<_ACEOF
34992 llvm config.status 2.6svn
34993 configured by $0, generated by GNU Autoconf 2.60,
34994 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34996 Copyright (C) 2006 Free Software Foundation, Inc.
34997 This config.status script is free software; the Free Software Foundation
34998 gives unlimited permission to copy, distribute and modify it."
35005 cat >>$CONFIG_STATUS <<\_ACEOF
35006 # If no file are specified by the user, then we need to provide default
35007 # value. By we need to know if files were specified by the user.
35013 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35014 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35025 # Handling of the options.
35026 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35028 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35029 echo "$ac_cs_version"; exit ;;
35030 --debug | --debu | --deb | --de | --d | -d )
35032 --file | --fil | --fi | --f )
35034 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35035 ac_need_defaults=false;;
35036 --header | --heade | --head | --hea )
35038 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35039 ac_need_defaults=false;;
35041 # Conflict between --help and --header
35042 { echo "$as_me: error: ambiguous option: $1
35043 Try \`$0 --help' for more information." >&2
35044 { (exit 1); exit 1; }; };;
35045 --help | --hel | -h )
35046 echo "$ac_cs_usage"; exit ;;
35047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35048 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35051 # This is an error.
35052 -*) { echo "$as_me: error: unrecognized option: $1
35053 Try \`$0 --help' for more information." >&2
35054 { (exit 1); exit 1; }; } ;;
35056 *) ac_config_targets="$ac_config_targets $1"
35057 ac_need_defaults=false ;;
35063 ac_configure_extra_args=
35065 if $ac_cs_silent; then
35067 ac_configure_extra_args="$ac_configure_extra_args --silent"
35071 cat >>$CONFIG_STATUS <<_ACEOF
35072 if \$ac_cs_recheck; then
35073 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35074 CONFIG_SHELL=$SHELL
35075 export CONFIG_SHELL
35076 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35080 cat >>$CONFIG_STATUS <<\_ACEOF
35084 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35085 ## Running $as_me. ##
35091 cat >>$CONFIG_STATUS <<_ACEOF
35095 llvm_src="${srcdir}"
35099 cat >>$CONFIG_STATUS <<\_ACEOF
35101 # Handling of arguments.
35102 for ac_config_target in $ac_config_targets
35104 case $ac_config_target in
35105 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35106 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35107 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35108 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35109 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35110 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35111 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35112 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35113 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35114 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35115 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35116 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35117 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35118 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35119 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35120 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35121 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35122 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35123 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35124 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35125 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35126 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35127 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35128 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35130 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35131 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35132 { (exit 1); exit 1; }; };;
35137 # If the user did not use the arguments to specify the items to instantiate,
35138 # then the envvar interface is used. Set only those that are not.
35139 # We use the long form for the default assignment because of an extremely
35140 # bizarre bug on SunOS 4.1.3.
35141 if $ac_need_defaults; then
35142 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35143 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35144 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35147 # Have a temporary directory for convenience. Make it in the build tree
35148 # simply because there is no reason against having it here, and in addition,
35149 # creating and moving files from /tmp can sometimes cause problems.
35150 # Hook for its removal unless debugging.
35151 # Note that there is a small window in which the directory will not be cleaned:
35152 # after its creation but before its name has been assigned to `$tmp'.
35156 trap 'exit_status=$?
35157 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35159 trap '{ (exit 1); exit 1; }' 1 2 13 15
35161 # Create a (secure) tmp directory for tmp files.
35164 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35165 test -n "$tmp" && test -d "$tmp"
35168 tmp=./conf$$-$RANDOM
35169 (umask 077 && mkdir "$tmp")
35172 echo "$me: cannot create a temporary directory in ." >&2
35173 { (exit 1); exit 1; }
35177 # Set up the sed scripts for CONFIG_FILES section.
35180 # No need to generate the scripts if there are no CONFIG_FILES.
35181 # This happens for instance when ./config.status config.h
35182 if test -n "$CONFIG_FILES"; then
35189 for ac_last_try in false false false false false :; do
35190 cat >conf$$subs.sed <<_ACEOF
35191 SHELL!$SHELL$ac_delim
35192 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35193 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35194 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35195 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35196 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35197 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35198 exec_prefix!$exec_prefix$ac_delim
35199 prefix!$prefix$ac_delim
35200 program_transform_name!$program_transform_name$ac_delim
35201 bindir!$bindir$ac_delim
35202 sbindir!$sbindir$ac_delim
35203 libexecdir!$libexecdir$ac_delim
35204 datarootdir!$datarootdir$ac_delim
35205 datadir!$datadir$ac_delim
35206 sysconfdir!$sysconfdir$ac_delim
35207 sharedstatedir!$sharedstatedir$ac_delim
35208 localstatedir!$localstatedir$ac_delim
35209 includedir!$includedir$ac_delim
35210 oldincludedir!$oldincludedir$ac_delim
35211 docdir!$docdir$ac_delim
35212 infodir!$infodir$ac_delim
35213 htmldir!$htmldir$ac_delim
35214 dvidir!$dvidir$ac_delim
35215 pdfdir!$pdfdir$ac_delim
35216 psdir!$psdir$ac_delim
35217 libdir!$libdir$ac_delim
35218 localedir!$localedir$ac_delim
35219 mandir!$mandir$ac_delim
35220 DEFS!$DEFS$ac_delim
35221 ECHO_C!$ECHO_C$ac_delim
35222 ECHO_N!$ECHO_N$ac_delim
35223 ECHO_T!$ECHO_T$ac_delim
35224 LIBS!$LIBS$ac_delim
35225 build_alias!$build_alias$ac_delim
35226 host_alias!$host_alias$ac_delim
35227 target_alias!$target_alias$ac_delim
35228 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35229 subdirs!$subdirs$ac_delim
35230 build!$build$ac_delim
35231 build_cpu!$build_cpu$ac_delim
35232 build_vendor!$build_vendor$ac_delim
35233 build_os!$build_os$ac_delim
35234 host!$host$ac_delim
35235 host_cpu!$host_cpu$ac_delim
35236 host_vendor!$host_vendor$ac_delim
35237 host_os!$host_os$ac_delim
35238 target!$target$ac_delim
35239 target_cpu!$target_cpu$ac_delim
35240 target_vendor!$target_vendor$ac_delim
35241 target_os!$target_os$ac_delim
35243 LINKALL!$LINKALL$ac_delim
35244 NOLINKALL!$NOLINKALL$ac_delim
35245 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35246 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35247 ARCH!$ARCH$ac_delim
35248 ENDIAN!$ENDIAN$ac_delim
35250 CFLAGS!$CFLAGS$ac_delim
35251 LDFLAGS!$LDFLAGS$ac_delim
35252 CPPFLAGS!$CPPFLAGS$ac_delim
35253 ac_ct_CC!$ac_ct_CC$ac_delim
35254 EXEEXT!$EXEEXT$ac_delim
35255 OBJEXT!$OBJEXT$ac_delim
35257 GREP!$GREP$ac_delim
35258 EGREP!$EGREP$ac_delim
35259 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35260 BUILD_CC!$BUILD_CC$ac_delim
35261 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35262 BUILD_CXX!$BUILD_CXX$ac_delim
35263 CVSBUILD!$CVSBUILD$ac_delim
35264 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35265 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
35266 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35267 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35268 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35269 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35271 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35272 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35273 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35274 ENABLE_PIC!$ENABLE_PIC$ac_delim
35275 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35276 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
35277 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
35278 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35279 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35280 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
35282 CXXFLAGS!$CXXFLAGS$ac_delim
35283 ac_ct_CXX!$ac_ct_CXX$ac_delim
35285 ifGNUmake!$ifGNUmake$ac_delim
35286 LN_S!$LN_S$ac_delim
35290 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35292 elif $ac_last_try; then
35293 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35294 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35295 { (exit 1); exit 1; }; }
35297 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35301 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35302 if test -n "$ac_eof"; then
35303 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35304 ac_eof=`expr $ac_eof + 1`
35307 cat >>$CONFIG_STATUS <<_ACEOF
35308 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35309 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35312 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35313 s/^/s,@/; s/!/@,|#_!!_#|/
35316 s/'"$ac_delim"'$/,g/; t
35318 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35319 ' >>$CONFIG_STATUS <conf$$subs.sed
35320 rm -f conf$$subs.sed
35321 cat >>$CONFIG_STATUS <<_ACEOF
35327 for ac_last_try in false false false false false :; do
35328 cat >conf$$subs.sed <<_ACEOF
35330 DATE!$DATE$ac_delim
35331 FIND!$FIND$ac_delim
35332 MKDIR!$MKDIR$ac_delim
35334 RANLIB!$RANLIB$ac_delim
35338 BINPWD!$BINPWD$ac_delim
35339 GRAPHVIZ!$GRAPHVIZ$ac_delim
35342 DOTTY!$DOTTY$ac_delim
35343 PERL!$PERL$ac_delim
35344 HAVE_PERL!$HAVE_PERL$ac_delim
35345 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35346 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35347 INSTALL_DATA!$INSTALL_DATA$ac_delim
35348 BZIP2!$BZIP2$ac_delim
35349 DOXYGEN!$DOXYGEN$ac_delim
35350 GROFF!$GROFF$ac_delim
35351 GZIP!$GZIP$ac_delim
35352 POD2HTML!$POD2HTML$ac_delim
35353 POD2MAN!$POD2MAN$ac_delim
35354 RUNTEST!$RUNTEST$ac_delim
35355 TCLSH!$TCLSH$ac_delim
35357 OCAMLC!$OCAMLC$ac_delim
35358 OCAMLOPT!$OCAMLOPT$ac_delim
35359 OCAMLDEP!$OCAMLDEP$ac_delim
35360 OCAMLDOC!$OCAMLDOC$ac_delim
35362 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35363 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35364 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35365 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35366 LIBADD_DL!$LIBADD_DL$ac_delim
35367 ECHO!$ECHO$ac_delim
35369 STRIP!$STRIP$ac_delim
35370 CXXCPP!$CXXCPP$ac_delim
35372 FFLAGS!$FFLAGS$ac_delim
35373 ac_ct_F77!$ac_ct_F77$ac_delim
35374 LIBTOOL!$LIBTOOL$ac_delim
35375 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
35376 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
35377 LLVMGCC!$LLVMGCC$ac_delim
35378 LLVMGXX!$LLVMGXX$ac_delim
35379 USE_UDIS86!$USE_UDIS86$ac_delim
35380 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35381 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35382 ALLOCA!$ALLOCA$ac_delim
35383 MMAP_FILE!$MMAP_FILE$ac_delim
35384 LLVMCC1!$LLVMCC1$ac_delim
35385 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35386 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35387 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35388 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35389 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35390 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35391 SHLIBEXT!$SHLIBEXT$ac_delim
35392 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35393 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35394 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35395 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35396 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35397 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35398 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35399 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35400 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35401 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35402 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35403 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35404 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35405 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35406 RPATH!$RPATH$ac_delim
35407 RDYNAMIC!$RDYNAMIC$ac_delim
35408 LIBOBJS!$LIBOBJS$ac_delim
35409 LTLIBOBJS!$LTLIBOBJS$ac_delim
35412 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then
35414 elif $ac_last_try; then
35415 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35416 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35417 { (exit 1); exit 1; }; }
35419 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35423 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35424 if test -n "$ac_eof"; then
35425 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35426 ac_eof=`expr $ac_eof + 1`
35429 cat >>$CONFIG_STATUS <<_ACEOF
35430 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35431 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35434 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35435 s/^/s,@/; s/!/@,|#_!!_#|/
35438 s/'"$ac_delim"'$/,g/; t
35440 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35441 ' >>$CONFIG_STATUS <conf$$subs.sed
35442 rm -f conf$$subs.sed
35443 cat >>$CONFIG_STATUS <<_ACEOF
35450 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35451 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35452 # trailing colons and then remove the whole line if VPATH becomes empty
35453 # (actually we leave an empty line to preserve line numbers).
35454 if test "x$srcdir" = x.; then
35455 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35456 s/:*\$(srcdir):*/:/
35457 s/:*\${srcdir}:*/:/
35459 s/^\([^=]*=[ ]*\):*/\1/
35465 cat >>$CONFIG_STATUS <<\_ACEOF
35466 fi # test -n "$CONFIG_FILES"
35469 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35472 :[FHLC]) ac_mode=$ac_tag; continue;;
35474 case $ac_mode$ac_tag in
35476 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35477 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35478 { (exit 1); exit 1; }; };;
35479 :[FH]-) ac_tag=-:-;;
35480 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35497 -) ac_f="$tmp/stdin";;
35498 *) # Look for the file first in the build tree, then in the source tree
35499 # (if the path is not absolute). The absolute path cannot be DOS-style,
35500 # because $ac_f cannot contain `:'.
35504 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35506 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35507 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35508 { (exit 1); exit 1; }; };;
35510 ac_file_inputs="$ac_file_inputs $ac_f"
35513 # Let's still pretend it is `configure' which instantiates (i.e., don't
35514 # use $as_me), people would be surprised to read:
35515 # /* config.h. Generated by config.status. */
35516 configure_input="Generated from "`IFS=:
35517 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35518 if test x"$ac_file" != x-; then
35519 configure_input="$ac_file. $configure_input"
35520 { echo "$as_me:$LINENO: creating $ac_file" >&5
35521 echo "$as_me: creating $ac_file" >&6;}
35525 *:-:* | *:-) cat >"$tmp/stdin";;
35530 ac_dir=`$as_dirname -- "$ac_file" ||
35531 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35532 X"$ac_file" : 'X\(//\)[^/]' \| \
35533 X"$ac_file" : 'X\(//\)$' \| \
35534 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35540 /^X\(\/\/\)[^/].*/{
35555 -*) as_dir=./$as_dir;;
35557 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35561 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35562 *) as_qdir=$as_dir;;
35564 as_dirs="'$as_qdir' $as_dirs"
35565 as_dir=`$as_dirname -- "$as_dir" ||
35566 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35567 X"$as_dir" : 'X\(//\)[^/]' \| \
35568 X"$as_dir" : 'X\(//\)$' \| \
35569 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35575 /^X\(\/\/\)[^/].*/{
35588 test -d "$as_dir" && break
35590 test -z "$as_dirs" || eval "mkdir $as_dirs"
35591 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35592 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35593 { (exit 1); exit 1; }; }; }
35597 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35599 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35600 # A ".." for each directory in $ac_dir_suffix.
35601 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35602 case $ac_top_builddir_sub in
35603 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35604 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35607 ac_abs_top_builddir=$ac_pwd
35608 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35609 # for backward compatibility:
35610 ac_top_builddir=$ac_top_build_prefix
35613 .) # We are building in place.
35615 ac_top_srcdir=$ac_top_builddir_sub
35616 ac_abs_top_srcdir=$ac_pwd ;;
35617 [\\/]* | ?:[\\/]* ) # Absolute name.
35618 ac_srcdir=$srcdir$ac_dir_suffix;
35619 ac_top_srcdir=$srcdir
35620 ac_abs_top_srcdir=$srcdir ;;
35621 *) # Relative name.
35622 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35623 ac_top_srcdir=$ac_top_build_prefix$srcdir
35624 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35626 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35636 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35637 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35641 cat >>$CONFIG_STATUS <<\_ACEOF
35642 # If the template does not know about datarootdir, expand it.
35643 # FIXME: This hack should be removed a few years after 2.60.
35644 ac_datarootdir_hack=; ac_datarootdir_seen=
35646 case `sed -n '/datarootdir/ {
35655 ' $ac_file_inputs` in
35656 *datarootdir*) ac_datarootdir_seen=yes;;
35657 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35658 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35659 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35661 cat >>$CONFIG_STATUS <<_ACEOF
35662 ac_datarootdir_hack='
35663 s&@datadir@&$datadir&g
35664 s&@docdir@&$docdir&g
35665 s&@infodir@&$infodir&g
35666 s&@localedir@&$localedir&g
35667 s&@mandir@&$mandir&g
35668 s&\\\${datarootdir}&$datarootdir&g' ;;
35672 # Neutralize VPATH when `$srcdir' = `.'.
35673 # Shell code in configure.ac might set extrasub.
35674 # FIXME: do we really want to maintain this feature?
35675 cat >>$CONFIG_STATUS <<_ACEOF
35679 cat >>$CONFIG_STATUS <<\_ACEOF
35681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35682 s&@configure_input@&$configure_input&;t t
35683 s&@top_builddir@&$ac_top_builddir_sub&;t t
35684 s&@srcdir@&$ac_srcdir&;t t
35685 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35686 s&@top_srcdir@&$ac_top_srcdir&;t t
35687 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35688 s&@builddir@&$ac_builddir&;t t
35689 s&@abs_builddir@&$ac_abs_builddir&;t t
35690 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35691 s&@INSTALL@&$ac_INSTALL&;t t
35692 $ac_datarootdir_hack
35693 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35695 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35696 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35697 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35698 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35699 which seems to be undefined. Please make sure it is defined." >&5
35700 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35701 which seems to be undefined. Please make sure it is defined." >&2;}
35705 -) cat "$tmp/out"; rm -f "$tmp/out";;
35706 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35715 # Transform confdefs.h into a sed script `conftest.defines', that
35716 # substitutes the proper values into config.h.in to produce config.h.
35717 rm -f conftest.defines conftest.tail
35718 # First, append a space to every undef/define line, to ease matching.
35719 echo 's/$/ /' >conftest.defines
35720 # Then, protect against being on the right side of a sed subst, or in
35721 # an unquoted here document, in config.status. If some macros were
35722 # called several times there might be several #defines for the same
35723 # symbol, which is useless. But do not sort them, since the last
35724 # AC_DEFINE must be honored.
35725 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35726 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35727 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35728 # PARAMS is the parameter list in the macro definition--in most cases, it's
35729 # just an empty string.
35730 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35731 ac_dB='\\)[ (].*,\\1define\\2'
35739 s/^[ ]*#[ ]*define[ ][ ]*//
35744 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35745 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35746 ' >>conftest.defines
35748 # Remove the space that was appended to ease matching.
35749 # Then replace #undef with comments. This is necessary, for
35750 # example, in the case of _POSIX_SOURCE, which is predefined and required
35751 # on some systems where configure will not decide to define it.
35752 # (The regexp can be short, since the line contains either #define or #undef.)
35754 s,^[ #]*u.*,/* & */,' >>conftest.defines
35756 # Break up conftest.defines:
35757 ac_max_sed_lines=50
35759 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35760 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35761 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35763 ac_in='$ac_file_inputs'
35764 ac_out='"$tmp/out1"'
35765 ac_nxt='"$tmp/out2"'
35769 # Write a here document:
35770 cat >>$CONFIG_STATUS <<_ACEOF
35771 # First, check the format of the line:
35772 cat >"\$tmp/defines.sed" <<\\CEOF
35773 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35774 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35778 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35780 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35781 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35782 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35783 grep . conftest.tail >/dev/null || break
35784 rm -f conftest.defines
35785 mv conftest.tail conftest.defines
35787 rm -f conftest.defines conftest.tail
35789 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35790 cat >>$CONFIG_STATUS <<\_ACEOF
35791 if test x"$ac_file" != x-; then
35792 echo "/* $configure_input */" >"$tmp/config.h"
35793 cat "$ac_result" >>"$tmp/config.h"
35794 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35795 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35796 echo "$as_me: $ac_file is unchanged" >&6;}
35799 mv "$tmp/config.h" $ac_file
35802 echo "/* $configure_input */"
35808 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35809 echo "$as_me: executing $ac_file commands" >&6;}
35814 case $ac_file$ac_mode in
35815 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35816 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35817 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35818 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35819 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35820 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35821 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35822 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35823 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35824 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35825 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35826 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35827 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35828 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35829 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35830 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35831 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35832 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35833 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35834 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35835 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35836 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35837 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35838 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35839 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35840 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35846 { (exit 0); exit 0; }
35848 chmod +x $CONFIG_STATUS
35849 ac_clean_files=$ac_clean_files_save
35852 # configure is writing to config.log, and then calls config.status.
35853 # config.status does its own redirection, appending to config.log.
35854 # Unfortunately, on DOS this fails, as config.log is still kept open
35855 # by configure, so config.status won't be able to write to it; its
35856 # output is simply discarded. So we exec the FD to /dev/null,
35857 # effectively closing config.log, so it can be properly (re)opened and
35858 # appended to by config.status. When coming back to configure, we
35859 # need to make the FD available again.
35860 if test "$no_create" != yes; then
35862 ac_config_status_args=
35863 test "$silent" = yes &&
35864 ac_config_status_args="$ac_config_status_args --quiet"
35866 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35868 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35869 # would make configure fail if this is the last instruction.
35870 $ac_cs_success || { (exit 1); exit 1; }
35874 # CONFIG_SUBDIRS section.
35876 if test "$no_recursion" != yes; then
35878 # Remove --cache-file and --srcdir arguments so they do not pile up.
35879 ac_sub_configure_args=
35881 eval "set x $ac_configure_args"
35885 if test -n "$ac_prev"; then
35890 -cache-file | --cache-file | --cache-fil | --cache-fi \
35891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35892 ac_prev=cache_file ;;
35893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35897 --config-cache | -C)
35899 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35901 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35903 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35905 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35909 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35911 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35915 # Always prepend --prefix to ensure using the same prefix
35916 # in subdir configurations.
35917 ac_arg="--prefix=$prefix"
35919 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35921 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35924 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35926 # Do not complain, so a configure script can configure whichever
35927 # parts of a large source tree are present.
35928 test -d "$srcdir/$ac_dir" || continue
35930 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35931 echo "$as_me:$LINENO: $ac_msg" >&5
35935 -*) as_dir=./$as_dir;;
35937 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35941 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35942 *) as_qdir=$as_dir;;
35944 as_dirs="'$as_qdir' $as_dirs"
35945 as_dir=`$as_dirname -- "$as_dir" ||
35946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35947 X"$as_dir" : 'X\(//\)[^/]' \| \
35948 X"$as_dir" : 'X\(//\)$' \| \
35949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35955 /^X\(\/\/\)[^/].*/{
35968 test -d "$as_dir" && break
35970 test -z "$as_dirs" || eval "mkdir $as_dirs"
35971 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35972 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35973 { (exit 1); exit 1; }; }; }
35977 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35979 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35980 # A ".." for each directory in $ac_dir_suffix.
35981 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35982 case $ac_top_builddir_sub in
35983 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35984 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35987 ac_abs_top_builddir=$ac_pwd
35988 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35989 # for backward compatibility:
35990 ac_top_builddir=$ac_top_build_prefix
35993 .) # We are building in place.
35995 ac_top_srcdir=$ac_top_builddir_sub
35996 ac_abs_top_srcdir=$ac_pwd ;;
35997 [\\/]* | ?:[\\/]* ) # Absolute name.
35998 ac_srcdir=$srcdir$ac_dir_suffix;
35999 ac_top_srcdir=$srcdir
36000 ac_abs_top_srcdir=$srcdir ;;
36001 *) # Relative name.
36002 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36003 ac_top_srcdir=$ac_top_build_prefix$srcdir
36004 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36006 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36011 # Check for guested configure; otherwise get Cygnus style configure.
36012 if test -f "$ac_srcdir/configure.gnu"; then
36013 ac_sub_configure=$ac_srcdir/configure.gnu
36014 elif test -f "$ac_srcdir/configure"; then
36015 ac_sub_configure=$ac_srcdir/configure
36016 elif test -f "$ac_srcdir/configure.in"; then
36017 # This should be Cygnus configure.
36018 ac_sub_configure=$ac_aux_dir/configure
36020 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36021 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36025 # The recursion is here.
36026 if test -n "$ac_sub_configure"; then
36027 # Make the cache file name correct relative to the subdirectory.
36028 case $cache_file in
36029 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36030 *) # Relative name.
36031 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36034 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36035 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36036 # The eval makes quoting arguments work.
36037 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36038 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36039 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36040 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36041 { (exit 1); exit 1; }; }