2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 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 more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
49 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
66 # We need space, tab and new line, in precisely that order. Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
74 # Find who we are. Look in the path if we contain no directory separator.
76 *[\\/]* ) as_myself=$0 ;;
77 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
81 test -z "$as_dir" && as_dir=.
82 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
93 if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C; export $as_var
115 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 if test "x$CONFIG_SHELL" = x; then
159 if (eval ":") 2>/dev/null; then
165 if test $as_have_required = yes && (eval ":
175 as_func_ret_success () {
178 as_func_ret_failure () {
183 if as_func_success; then
187 echo as_func_success failed.
190 if as_func_failure; then
192 echo as_func_failure succeeded.
195 if as_func_ret_success; then
199 echo as_func_ret_success failed.
202 if as_func_ret_failure; then
204 echo as_func_ret_failure succeeded.
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
211 echo positional parameters were not saved.
214 test \$exitcode = 0) || { (exit 1); exit 1; }
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
229 test -z "$as_dir" && as_dir=.
232 for as_base in sh bash ksh sh5; do
233 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
240 for as_shell in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
252 case `(set -o) 2>/dev/null` in
253 *posix*) set -o posix ;;
262 CONFIG_SHELL=$as_shell
264 if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
273 case `(set -o) 2>/dev/null` in
274 *posix*) set -o posix ;;
290 as_func_ret_success () {
293 as_func_ret_failure () {
298 if as_func_success; then
302 echo as_func_success failed.
305 if as_func_failure; then
307 echo as_func_failure succeeded.
310 if as_func_ret_success; then
314 echo as_func_ret_success failed.
317 if as_func_ret_failure; then
319 echo as_func_ret_failure succeeded.
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
326 echo positional parameters were not saved.
329 test $exitcode = 0) || { (exit 1); exit 1; }
334 test "x$as_lineno_1" != "x$as_lineno_2" &&
335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
346 if test "x$CONFIG_SHELL" != x; then
347 for as_var in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
355 if test $as_have_required = no; then
356 echo This script requires a shell more modern than all the
357 echo shells that I found on your system. Please install a
358 echo modern shell, or manually run the script under such a
359 echo shell if you do have one.
360 { (exit 1); exit 1; }
370 (eval "as_func_return () {
379 as_func_ret_success () {
382 as_func_ret_failure () {
387 if as_func_success; then
391 echo as_func_success failed.
394 if as_func_failure; then
396 echo as_func_failure succeeded.
399 if as_func_ret_success; then
403 echo as_func_ret_success failed.
406 if as_func_ret_failure; then
408 echo as_func_ret_failure succeeded.
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
415 echo positional parameters were not saved.
418 test \$exitcode = 0") || {
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system,
421 echo including any error possibly output before this
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
465 # Exit status is that of the last command.
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
476 ECHO_C= ECHO_N= ECHO_T=
480 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496 rm -f conf$$.dir/conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
510 elif ln conf$$.file conf$$ 2>/dev/null; then
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
518 if mkdir -p . 2>/dev/null; then
521 test -d ./-p && rmdir ./-p
525 if test -x / >/dev/null 2>&1; then
528 if ls -dL / >/dev/null 2>&1; then
535 if test -d "$1"; then
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
546 as_executable_p=$as_test_x
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 # Check that we are running under the correct shell.
558 SHELL=${CONFIG_SHELL-/bin/sh}
562 # Remove one level of quotation (which was required for Make).
563 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
568 if test "X$1" = X--no-reexec; then
569 # Discard the --no-reexec flag, and continue.
571 elif test "X$1" = X--fallback-echo; then
572 # Avoid inline document here, it may be left over
574 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575 # Yippee, $echo works!
578 # Restart under the correct shell.
579 exec $SHELL "$0" --no-reexec ${1+"$@"}
582 if test "X$1" = X--fallback-echo; then
583 # used as fallback echo
591 # The HP-UX ksh and POSIX shell print the target directory to stdout
593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
595 if test -z "$ECHO"; then
596 if test "X${echo_test_string+set}" != Xset; then
597 # find a string as large as possible, as long as the shell can cope with it
598 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
600 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
601 echo_test_string=`eval $cmd` &&
602 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
609 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
614 # The Solaris, AIX, and Digital Unix default echo programs unquote
615 # backslashes. This makes it impossible to quote backslashes using
616 # echo "$something" | sed 's/\\/\\\\/g'
618 # So, first we look for a working echo in the user's PATH.
620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621 for dir in $PATH /usr/ucb; do
623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
633 if test "X$echo" = Xecho; then
634 # We didn't find a better echo, so look for alternatives.
635 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 # This shell has a builtin print -r that does the trick.
640 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
641 test "X$CONFIG_SHELL" != X/bin/ksh; then
642 # If we have ksh, try running configure again with it.
643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644 export ORIGINAL_CONFIG_SHELL
645 CONFIG_SHELL=/bin/ksh
647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
651 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657 test "X$echo_testing_string" = 'X\t' &&
658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
662 SHELL="$CONFIG_SHELL"
664 echo="$CONFIG_SHELL $0 --fallback-echo"
665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666 test "X$echo_testing_string" = 'X\t' &&
667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668 test "X$echo_testing_string" = "X$echo_test_string"; then
669 echo="$CONFIG_SHELL $0 --fallback-echo"
671 # maybe with a smaller string...
674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
682 if test "$prev" != 'sed 50q "$0"'; then
683 echo_test_string=`eval $prev`
684 export echo_test_string
685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
687 # Oops. We lost completely, so just stick with echo.
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
699 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
706 tagnames=${tagnames+${tagnames},}CXX
708 tagnames=${tagnames+${tagnames},}F77
710 exec 7<&0 </dev/null 6>&1
713 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
714 # so uname gets run too.
715 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
720 ac_default_prefix=/usr/local
722 ac_config_libobj_dir=.
728 SHELL=${CONFIG_SHELL-/bin/sh}
730 # Identity of this package.
732 PACKAGE_TARNAME='-llvm-'
733 PACKAGE_VERSION='2.6svn'
734 PACKAGE_STRING='llvm 2.6svn'
735 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
737 ac_unique_file="lib/VMCore/Module.cpp"
738 # Factoring default headers for most tests.
739 ac_includes_default="\
741 #ifdef HAVE_SYS_TYPES_H
742 # include <sys/types.h>
744 #ifdef HAVE_SYS_STAT_H
745 # include <sys/stat.h>
751 # ifdef HAVE_STDLIB_H
756 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
761 #ifdef HAVE_STRINGS_H
762 # include <strings.h>
764 #ifdef HAVE_INTTYPES_H
765 # include <inttypes.h>
783 program_transform_name
850 ENABLE_EXPENSIVE_CHECKS
904 CONVENIENCE_LTDL_TRUE
905 CONVENIENCE_LTDL_FALSE
943 ENABLE_VISIBILITY_INLINES_HIDDEN
949 ac_precious_vars='build_alias
964 ac_subdirs_all='projects/sample
966 projects/llvm-stacker
973 projects/llvm-poolalloc
975 projects/llvm-kernel'
977 # Initialize some variables set by options.
979 ac_init_version=false
980 # The variables have the same names as the options, with
981 # dashes changed to underlines.
989 program_transform_name=s,x,x,
997 # Installation directory options.
998 # These are left unexpanded so users can "make install exec_prefix=/foo"
999 # and all the variables that are supposed to be based on exec_prefix
1000 # by default will actually change.
1001 # Use braces instead of parens because sh, perl, etc. also accept them.
1002 # (The list follows the same order as the GNU Coding Standards.)
1003 bindir='${exec_prefix}/bin'
1004 sbindir='${exec_prefix}/sbin'
1005 libexecdir='${exec_prefix}/libexec'
1006 datarootdir='${prefix}/share'
1007 datadir='${datarootdir}'
1008 sysconfdir='${prefix}/etc'
1009 sharedstatedir='${prefix}/com'
1010 localstatedir='${prefix}/var'
1011 includedir='${prefix}/include'
1012 oldincludedir='/usr/include'
1013 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1014 infodir='${datarootdir}/info'
1019 libdir='${exec_prefix}/lib'
1020 localedir='${datarootdir}/locale'
1021 mandir='${datarootdir}/man'
1027 # If the previous option needs an argument, assign it.
1028 if test -n "$ac_prev"; then
1029 eval $ac_prev=\$ac_option
1035 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1039 # Accept the important Cygnus configure options, so we can diagnose typos.
1041 case $ac_dashdash$ac_option in
1045 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1047 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1048 bindir=$ac_optarg ;;
1050 -build | --build | --buil | --bui | --bu)
1051 ac_prev=build_alias ;;
1052 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1053 build_alias=$ac_optarg ;;
1055 -cache-file | --cache-file | --cache-fil | --cache-fi \
1056 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1057 ac_prev=cache_file ;;
1058 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1059 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1060 cache_file=$ac_optarg ;;
1062 --config-cache | -C)
1063 cache_file=config.cache ;;
1065 -datadir | --datadir | --datadi | --datad)
1067 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1068 datadir=$ac_optarg ;;
1070 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1071 | --dataroo | --dataro | --datar)
1072 ac_prev=datarootdir ;;
1073 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1074 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1075 datarootdir=$ac_optarg ;;
1077 -disable-* | --disable-*)
1078 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1081 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1082 { (exit 1); exit 1; }; }
1083 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1084 eval enable_$ac_feature=no ;;
1086 -docdir | --docdir | --docdi | --doc | --do)
1088 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1089 docdir=$ac_optarg ;;
1091 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1093 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1094 dvidir=$ac_optarg ;;
1096 -enable-* | --enable-*)
1097 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1100 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1101 { (exit 1); exit 1; }; }
1102 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1103 eval enable_$ac_feature=\$ac_optarg ;;
1105 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1106 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1107 | --exec | --exe | --ex)
1108 ac_prev=exec_prefix ;;
1109 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1110 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1111 | --exec=* | --exe=* | --ex=*)
1112 exec_prefix=$ac_optarg ;;
1114 -gas | --gas | --ga | --g)
1115 # Obsolete; use --with-gas.
1118 -help | --help | --hel | --he | -h)
1119 ac_init_help=long ;;
1120 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1121 ac_init_help=recursive ;;
1122 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1123 ac_init_help=short ;;
1125 -host | --host | --hos | --ho)
1126 ac_prev=host_alias ;;
1127 -host=* | --host=* | --hos=* | --ho=*)
1128 host_alias=$ac_optarg ;;
1130 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1132 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1134 htmldir=$ac_optarg ;;
1136 -includedir | --includedir | --includedi | --included | --include \
1137 | --includ | --inclu | --incl | --inc)
1138 ac_prev=includedir ;;
1139 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1140 | --includ=* | --inclu=* | --incl=* | --inc=*)
1141 includedir=$ac_optarg ;;
1143 -infodir | --infodir | --infodi | --infod | --info | --inf)
1145 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1146 infodir=$ac_optarg ;;
1148 -libdir | --libdir | --libdi | --libd)
1150 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1151 libdir=$ac_optarg ;;
1153 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1154 | --libexe | --libex | --libe)
1155 ac_prev=libexecdir ;;
1156 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1157 | --libexe=* | --libex=* | --libe=*)
1158 libexecdir=$ac_optarg ;;
1160 -localedir | --localedir | --localedi | --localed | --locale)
1161 ac_prev=localedir ;;
1162 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1163 localedir=$ac_optarg ;;
1165 -localstatedir | --localstatedir | --localstatedi | --localstated \
1166 | --localstate | --localstat | --localsta | --localst | --locals)
1167 ac_prev=localstatedir ;;
1168 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1169 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1170 localstatedir=$ac_optarg ;;
1172 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1174 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1175 mandir=$ac_optarg ;;
1177 -nfp | --nfp | --nf)
1178 # Obsolete; use --without-fp.
1181 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1182 | --no-cr | --no-c | -n)
1185 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1186 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1189 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1190 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1191 | --oldin | --oldi | --old | --ol | --o)
1192 ac_prev=oldincludedir ;;
1193 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1194 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1195 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1196 oldincludedir=$ac_optarg ;;
1198 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1200 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1201 prefix=$ac_optarg ;;
1203 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1204 | --program-pre | --program-pr | --program-p)
1205 ac_prev=program_prefix ;;
1206 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1207 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1208 program_prefix=$ac_optarg ;;
1210 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1211 | --program-suf | --program-su | --program-s)
1212 ac_prev=program_suffix ;;
1213 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1214 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1215 program_suffix=$ac_optarg ;;
1217 -program-transform-name | --program-transform-name \
1218 | --program-transform-nam | --program-transform-na \
1219 | --program-transform-n | --program-transform- \
1220 | --program-transform | --program-transfor \
1221 | --program-transfo | --program-transf \
1222 | --program-trans | --program-tran \
1223 | --progr-tra | --program-tr | --program-t)
1224 ac_prev=program_transform_name ;;
1225 -program-transform-name=* | --program-transform-name=* \
1226 | --program-transform-nam=* | --program-transform-na=* \
1227 | --program-transform-n=* | --program-transform-=* \
1228 | --program-transform=* | --program-transfor=* \
1229 | --program-transfo=* | --program-transf=* \
1230 | --program-trans=* | --program-tran=* \
1231 | --progr-tra=* | --program-tr=* | --program-t=*)
1232 program_transform_name=$ac_optarg ;;
1234 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1236 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1237 pdfdir=$ac_optarg ;;
1239 -psdir | --psdir | --psdi | --psd | --ps)
1241 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245 | -silent | --silent | --silen | --sile | --sil)
1248 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1250 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1252 sbindir=$ac_optarg ;;
1254 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1255 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1256 | --sharedst | --shareds | --shared | --share | --shar \
1258 ac_prev=sharedstatedir ;;
1259 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1260 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1261 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1263 sharedstatedir=$ac_optarg ;;
1265 -site | --site | --sit)
1267 -site=* | --site=* | --sit=*)
1270 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1272 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1273 srcdir=$ac_optarg ;;
1275 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1276 | --syscon | --sysco | --sysc | --sys | --sy)
1277 ac_prev=sysconfdir ;;
1278 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1279 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1280 sysconfdir=$ac_optarg ;;
1282 -target | --target | --targe | --targ | --tar | --ta | --t)
1283 ac_prev=target_alias ;;
1284 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1285 target_alias=$ac_optarg ;;
1287 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1290 -version | --version | --versio | --versi | --vers | -V)
1291 ac_init_version=: ;;
1294 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1297 { echo "$as_me: error: invalid package name: $ac_package" >&2
1298 { (exit 1); exit 1; }; }
1299 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1300 eval with_$ac_package=\$ac_optarg ;;
1302 -without-* | --without-*)
1303 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1304 # Reject names that are not valid shell variable names.
1305 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1306 { echo "$as_me: error: invalid package name: $ac_package" >&2
1307 { (exit 1); exit 1; }; }
1308 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1309 eval with_$ac_package=no ;;
1312 # Obsolete; use --with-x.
1315 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316 | --x-incl | --x-inc | --x-in | --x-i)
1317 ac_prev=x_includes ;;
1318 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320 x_includes=$ac_optarg ;;
1322 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324 ac_prev=x_libraries ;;
1325 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327 x_libraries=$ac_optarg ;;
1329 -*) { echo "$as_me: error: unrecognized option: $ac_option
1330 Try \`$0 --help' for more information." >&2
1331 { (exit 1); exit 1; }; }
1335 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1336 # Reject names that are not valid shell variable names.
1337 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1338 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1339 { (exit 1); exit 1; }; }
1340 eval $ac_envvar=\$ac_optarg
1341 export $ac_envvar ;;
1344 # FIXME: should be removed in autoconf 3.0.
1345 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1354 if test -n "$ac_prev"; then
1355 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356 { echo "$as_me: error: missing argument to $ac_option" >&2
1357 { (exit 1); exit 1; }; }
1360 # Be sure to have absolute directory names.
1361 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362 datadir sysconfdir sharedstatedir localstatedir includedir \
1363 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364 libdir localedir mandir
1366 eval ac_val=\$$ac_var
1368 [\\/$]* | ?:[\\/]* ) continue;;
1369 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1371 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1372 { (exit 1); exit 1; }; }
1375 # There might be people who depend on the old broken behavior: `$host'
1376 # used to hold the argument of --host etc.
1377 # FIXME: To remove some day.
1380 target=$target_alias
1382 # FIXME: To remove some day.
1383 if test "x$host_alias" != x; then
1384 if test "x$build_alias" = x; then
1385 cross_compiling=maybe
1386 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1387 If a cross compiler is detected then cross compile mode will be used." >&2
1388 elif test "x$build_alias" != "x$host_alias"; then
1394 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1396 test "$silent" = yes && exec 6>/dev/null
1399 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1400 ac_ls_di=`ls -di .` &&
1401 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1402 { echo "$as_me: error: Working directory cannot be determined" >&2
1403 { (exit 1); exit 1; }; }
1404 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1405 { echo "$as_me: error: pwd does not report name of working directory" >&2
1406 { (exit 1); exit 1; }; }
1409 # Find the source files, if location was not specified.
1410 if test -z "$srcdir"; then
1411 ac_srcdir_defaulted=yes
1412 # Try the directory containing this script, then the parent directory.
1413 ac_confdir=`$as_dirname -- "$0" ||
1414 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1415 X"$0" : 'X\(//\)[^/]' \| \
1416 X"$0" : 'X\(//\)$' \| \
1417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1441 ac_srcdir_defaulted=no
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1445 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1446 { (exit 1); exit 1; }; }
1448 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1450 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1451 { (exit 1); exit 1; }; }
1453 # When building in place, set srcdir=.
1454 if test "$ac_abs_confdir" = "$ac_pwd"; then
1457 # Remove unnecessary trailing slashes from srcdir.
1458 # Double slashes in file names in object file debugging info
1459 # mess up M-x gdb in Emacs.
1461 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1463 for ac_var in $ac_precious_vars; do
1464 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1465 eval ac_env_${ac_var}_value=\$${ac_var}
1466 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471 # Report the --help message.
1473 if test "$ac_init_help" = "long"; then
1474 # Omit some internal or obsolete options to make the list less imposing.
1475 # This message is too long to be a string in the A/UX 3.1 sh.
1477 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1479 Usage: $0 [OPTION]... [VAR=VALUE]...
1481 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1482 VAR=VALUE. See below for descriptions of some of the useful variables.
1484 Defaults for the options are specified in brackets.
1487 -h, --help display this help and exit
1488 --help=short display options specific to this package
1489 --help=recursive display the short help of all the included packages
1490 -V, --version display version information and exit
1491 -q, --quiet, --silent do not print \`checking...' messages
1492 --cache-file=FILE cache test results in FILE [disabled]
1493 -C, --config-cache alias for \`--cache-file=config.cache'
1494 -n, --no-create do not create output files
1495 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1497 Installation directories:
1498 --prefix=PREFIX install architecture-independent files in PREFIX
1499 [$ac_default_prefix]
1500 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1503 By default, \`make install' will install all the files in
1504 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1505 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1506 for instance \`--prefix=\$HOME'.
1508 For better control, use the options below.
1510 Fine tuning of the installation directories:
1511 --bindir=DIR user executables [EPREFIX/bin]
1512 --sbindir=DIR system admin executables [EPREFIX/sbin]
1513 --libexecdir=DIR program executables [EPREFIX/libexec]
1514 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1515 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1516 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1517 --libdir=DIR object code libraries [EPREFIX/lib]
1518 --includedir=DIR C header files [PREFIX/include]
1519 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1520 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1521 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1522 --infodir=DIR info documentation [DATAROOTDIR/info]
1523 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1524 --mandir=DIR man documentation [DATAROOTDIR/man]
1525 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1526 --htmldir=DIR html documentation [DOCDIR]
1527 --dvidir=DIR dvi documentation [DOCDIR]
1528 --pdfdir=DIR pdf documentation [DOCDIR]
1529 --psdir=DIR ps documentation [DOCDIR]
1535 --build=BUILD configure for building on BUILD [guessed]
1536 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1537 --target=TARGET configure for building compilers for TARGET [HOST]
1541 if test -n "$ac_init_help"; then
1542 case $ac_init_help in
1543 short | recursive ) echo "Configuration of llvm 2.6svn:";;
1548 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1549 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1553 --enable-expensive-checks
1555 --enable-debug-runtime
1556 --enable-jit Enable Just In Time Compiling (default is YES)
1557 --enable-doxygen Build doxygen documentation (default is NO)
1558 --enable-threads Use threads if available (default is YES)
1559 --enable-pic Build LLVM with Position Independent Code (default
1561 --enable-targets Build specific host targets:
1562 all,host-only,{target-name} (default=all)
1563 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1565 --enable-bindings Build specific language bindings:
1566 all,auto,none,{binding-name} (default=auto)
1567 --enable-ltdl-install install libltdl
1568 --enable-shared[=PKGS] build shared libraries
1570 --enable-static[=PKGS] build static libraries
1572 --enable-fast-install[=PKGS]
1573 optimize for fast installation
1575 --disable-libtool-lock avoid locking (might break parallel builds)
1578 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1579 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1580 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1582 --with-llvmgcc Specify location of llvm-gcc driver (default
1584 --with-llvmgxx Specify location of llvm-g++ driver (default
1586 --with-extra-options Specify addtional options to compile LLVM with
1587 --with-ocaml-libdir Specify install location for ocaml bindings (default
1589 --with-binutils-include Specify path to binutils/include/ containing
1590 plugin-api.h file for gold plugin.
1591 --with-tclinclude directory where tcl headers are
1592 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1593 --with-pic try to use only PIC/non-PIC objects [default=use
1595 --with-tags[=TAGS] include additional configurations [automatic]
1596 --with-udis86=<path> Use udis86 external x86 disassembler library
1598 Some influential environment variables:
1599 CC C compiler command
1600 CFLAGS C compiler flags
1601 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1602 nonstandard directory <lib dir>
1603 LIBS libraries to pass to the linker, e.g. -l<library>
1604 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1605 you have headers in a nonstandard directory <include dir>
1607 CXX C++ compiler command
1608 CXXFLAGS C++ compiler flags
1609 CXXCPP C++ preprocessor
1610 F77 Fortran 77 compiler command
1611 FFLAGS Fortran 77 compiler flags
1613 Use these variables to override the choices made by `configure' or to help
1614 it to find libraries and programs with nonstandard names/locations.
1616 Report bugs to <llvmbugs@cs.uiuc.edu>.
1621 if test "$ac_init_help" = "recursive"; then
1622 # If there are subdirs, report their specific --help.
1623 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1624 test -d "$ac_dir" || continue
1628 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1631 # A ".." for each directory in $ac_dir_suffix.
1632 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1633 case $ac_top_builddir_sub in
1634 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1638 ac_abs_top_builddir=$ac_pwd
1639 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1640 # for backward compatibility:
1641 ac_top_builddir=$ac_top_build_prefix
1644 .) # We are building in place.
1646 ac_top_srcdir=$ac_top_builddir_sub
1647 ac_abs_top_srcdir=$ac_pwd ;;
1648 [\\/]* | ?:[\\/]* ) # Absolute name.
1649 ac_srcdir=$srcdir$ac_dir_suffix;
1650 ac_top_srcdir=$srcdir
1651 ac_abs_top_srcdir=$srcdir ;;
1653 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1654 ac_top_srcdir=$ac_top_build_prefix$srcdir
1655 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1657 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1659 cd "$ac_dir" || { ac_status=$?; continue; }
1660 # Check for guested configure.
1661 if test -f "$ac_srcdir/configure.gnu"; then
1663 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1664 elif test -f "$ac_srcdir/configure"; then
1666 $SHELL "$ac_srcdir/configure" --help=recursive
1668 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1670 cd "$ac_pwd" || { ac_status=$?; break; }
1674 test -n "$ac_init_help" && exit $ac_status
1675 if $ac_init_version; then
1677 llvm configure 2.6svn
1678 generated by GNU Autoconf 2.61
1680 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1681 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1682 This configure script is free software; the Free Software Foundation
1683 gives unlimited permission to copy, distribute and modify it.
1685 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1689 cat >config.log <<_ACEOF
1690 This file contains any messages produced by compilers while
1691 running configure, to aid debugging if configure makes a mistake.
1693 It was created by llvm $as_me 2.6svn, which was
1694 generated by GNU Autoconf 2.61. Invocation command line was
1706 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1707 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1708 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1709 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1710 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1712 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1713 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1715 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1716 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1717 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1718 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1719 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1720 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1721 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 test -z "$as_dir" && as_dir=.
1730 echo "PATH: $as_dir"
1746 # Keep a trace of the command line.
1747 # Strip out --no-create and --no-recursion so they do not pile up.
1748 # Strip out --silent because we don't want to record it for future runs.
1749 # Also quote any args containing shell meta-characters.
1750 # Make two passes to allow for proper duplicate-argument suppression.
1754 ac_must_keep_next=false
1760 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1761 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1762 | -silent | --silent | --silen | --sile | --sil)
1765 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1768 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1770 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1771 if test $ac_must_keep_next = true; then
1772 ac_must_keep_next=false # Got value, back to normal.
1775 *=* | --config-cache | -C | -disable-* | --disable-* \
1776 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1777 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1778 | -with-* | --with-* | -without-* | --without-* | --x)
1779 case "$ac_configure_args0 " in
1780 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1783 -* ) ac_must_keep_next=true ;;
1786 ac_configure_args="$ac_configure_args '$ac_arg'"
1791 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1792 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1794 # When interrupted or exit'd, cleanup temporary files, and complete
1795 # config.log. We remove comments because anyway the quotes in there
1796 # would cause problems or look ugly.
1797 # WARNING: Use '\'' to represent an apostrophe within the trap.
1798 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1799 trap 'exit_status=$?
1800 # Save into config.log some information that might help in debugging.
1805 ## ---------------- ##
1806 ## Cache variables. ##
1807 ## ---------------- ##
1810 # The following way of writing the cache mishandles newlines in values,
1812 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1813 eval ac_val=\$$ac_var
1817 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1818 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1821 _ | IFS | as_nl) ;; #(
1822 *) $as_unset $ac_var ;;
1827 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1828 *${as_nl}ac_space=\ *)
1830 "s/'\''/'\''\\\\'\'''\''/g;
1831 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1834 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1842 ## ----------------- ##
1843 ## Output variables. ##
1844 ## ----------------- ##
1847 for ac_var in $ac_subst_vars
1849 eval ac_val=\$$ac_var
1851 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1853 echo "$ac_var='\''$ac_val'\''"
1857 if test -n "$ac_subst_files"; then
1859 ## ------------------- ##
1860 ## File substitutions. ##
1861 ## ------------------- ##
1864 for ac_var in $ac_subst_files
1866 eval ac_val=\$$ac_var
1868 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1870 echo "$ac_var='\''$ac_val'\''"
1875 if test -s confdefs.h; then
1885 test "$ac_signal" != 0 &&
1886 echo "$as_me: caught signal $ac_signal"
1887 echo "$as_me: exit $exit_status"
1889 rm -f core *.core core.conftest.* &&
1890 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1893 for ac_signal in 1 2 13 15; do
1894 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1898 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1899 rm -f -r conftest* confdefs.h
1901 # Predefined preprocessor variables.
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_NAME "$PACKAGE_NAME"
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1913 cat >>confdefs.h <<_ACEOF
1914 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1918 cat >>confdefs.h <<_ACEOF
1919 #define PACKAGE_STRING "$PACKAGE_STRING"
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1928 # Let the site file select an alternate cache file if it wants to.
1929 # Prefer explicitly selected file to automatically selected ones.
1930 if test -n "$CONFIG_SITE"; then
1931 set x "$CONFIG_SITE"
1932 elif test "x$prefix" != xNONE; then
1933 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1935 set x "$ac_default_prefix/share/config.site" \
1936 "$ac_default_prefix/etc/config.site"
1941 if test -r "$ac_site_file"; then
1942 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1943 echo "$as_me: loading site script $ac_site_file" >&6;}
1944 sed 's/^/| /' "$ac_site_file" >&5
1949 if test -r "$cache_file"; then
1950 # Some versions of bash will fail to source /dev/null (special
1951 # files actually), so we avoid doing that.
1952 if test -f "$cache_file"; then
1953 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1954 echo "$as_me: loading cache $cache_file" >&6;}
1956 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1957 *) . "./$cache_file";;
1961 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1962 echo "$as_me: creating cache $cache_file" >&6;}
1966 # Check that the precious variables saved in the cache have kept the same
1968 ac_cache_corrupted=false
1969 for ac_var in $ac_precious_vars; do
1970 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1971 eval ac_new_set=\$ac_env_${ac_var}_set
1972 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1973 eval ac_new_val=\$ac_env_${ac_var}_value
1974 case $ac_old_set,$ac_new_set in
1976 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1977 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1978 ac_cache_corrupted=: ;;
1980 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1981 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1982 ac_cache_corrupted=: ;;
1985 if test "x$ac_old_val" != "x$ac_new_val"; then
1986 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1987 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1988 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1989 echo "$as_me: former value: $ac_old_val" >&2;}
1990 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1991 echo "$as_me: current value: $ac_new_val" >&2;}
1992 ac_cache_corrupted=:
1995 # Pass precious variables to config.status.
1996 if test "$ac_new_set" = set; then
1998 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1999 *) ac_arg=$ac_var=$ac_new_val ;;
2001 case " $ac_configure_args " in
2002 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2003 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2007 if $ac_cache_corrupted; then
2008 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2009 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2010 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2011 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2012 { (exit 1); exit 1; }; }
2040 ac_cpp='$CPP $CPPFLAGS'
2041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2047 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2056 for ac_dir in autoconf "$srcdir"/autoconf; do
2057 if test -f "$ac_dir/install-sh"; then
2059 ac_install_sh="$ac_aux_dir/install-sh -c"
2061 elif test -f "$ac_dir/install.sh"; then
2063 ac_install_sh="$ac_aux_dir/install.sh -c"
2065 elif test -f "$ac_dir/shtool"; then
2067 ac_install_sh="$ac_aux_dir/shtool install -c"
2071 if test -z "$ac_aux_dir"; then
2072 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2073 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2074 { (exit 1); exit 1; }; }
2077 # These three variables are undocumented and unsupported,
2078 # and are intended to be withdrawn in a future Autoconf release.
2079 # They can cause serious problems if a builder's source tree is in a directory
2080 # whose full name contains unusual characters.
2081 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2082 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2083 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2087 if test ${srcdir} != "." ; then
2088 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2089 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2090 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2091 { (exit 1); exit 1; }; }
2095 for i in `ls ${srcdir}/projects`
2097 if test -d ${srcdir}/projects/${i} ; then
2100 sample) subdirs="$subdirs projects/sample"
2102 privbracket) subdirs="$subdirs projects/privbracket"
2104 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2106 # llvm-test is the old name of the test-suite, kept here for backwards
2108 llvm-test) subdirs="$subdirs projects/llvm-test"
2110 test-suite) subdirs="$subdirs projects/test-suite"
2112 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2114 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2116 llvm-java) subdirs="$subdirs projects/llvm-java"
2118 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2120 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2122 poolalloc) subdirs="$subdirs projects/poolalloc"
2124 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2127 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2128 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2135 # Make sure we can run config.sub.
2136 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2137 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2138 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2139 { (exit 1); exit 1; }; }
2141 { echo "$as_me:$LINENO: checking build system type" >&5
2142 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2143 if test "${ac_cv_build+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 ac_build_alias=$build_alias
2147 test "x$ac_build_alias" = x &&
2148 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2149 test "x$ac_build_alias" = x &&
2150 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2151 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2152 { (exit 1); exit 1; }; }
2153 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2154 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2155 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2156 { (exit 1); exit 1; }; }
2159 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2160 echo "${ECHO_T}$ac_cv_build" >&6; }
2161 case $ac_cv_build in
2163 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2164 echo "$as_me: error: invalid value of canonical build" >&2;}
2165 { (exit 1); exit 1; }; };;
2168 ac_save_IFS=$IFS; IFS='-'
2174 # Remember, the first character of IFS is used to create $*,
2175 # except with old shells:
2178 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2181 { echo "$as_me:$LINENO: checking host system type" >&5
2182 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2183 if test "${ac_cv_host+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 if test "x$host_alias" = x; then
2187 ac_cv_host=$ac_cv_build
2189 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2190 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2191 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2192 { (exit 1); exit 1; }; }
2196 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2197 echo "${ECHO_T}$ac_cv_host" >&6; }
2200 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2201 echo "$as_me: error: invalid value of canonical host" >&2;}
2202 { (exit 1); exit 1; }; };;
2205 ac_save_IFS=$IFS; IFS='-'
2211 # Remember, the first character of IFS is used to create $*,
2212 # except with old shells:
2215 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2218 { echo "$as_me:$LINENO: checking target system type" >&5
2219 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2220 if test "${ac_cv_target+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 if test "x$target_alias" = x; then
2224 ac_cv_target=$ac_cv_host
2226 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2227 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2228 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2229 { (exit 1); exit 1; }; }
2233 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2234 echo "${ECHO_T}$ac_cv_target" >&6; }
2235 case $ac_cv_target in
2237 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2238 echo "$as_me: error: invalid value of canonical target" >&2;}
2239 { (exit 1); exit 1; }; };;
2241 target=$ac_cv_target
2242 ac_save_IFS=$IFS; IFS='-'
2248 # Remember, the first character of IFS is used to create $*,
2249 # except with old shells:
2252 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2255 # The aliases save the names the user supplied, while $host etc.
2256 # will get canonicalized.
2257 test -n "$target_alias" &&
2258 test "$program_prefix$program_suffix$program_transform_name" = \
2260 program_prefix=${target_alias}-
2262 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2263 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2264 if test "${llvm_cv_os_type+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2269 llvm_cv_link_all_option="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2271 llvm_cv_os_type="AIX"
2272 llvm_cv_platform_type="Unix" ;;
2274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276 llvm_cv_os_type="IRIX"
2277 llvm_cv_platform_type="Unix" ;;
2279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="Cygwin"
2282 llvm_cv_platform_type="Unix" ;;
2284 llvm_cv_link_all_option="-Wl,-all_load"
2285 llvm_cv_no_link_all_option="-Wl,-noall_load"
2286 llvm_cv_os_type="Darwin"
2287 llvm_cv_platform_type="Unix" ;;
2289 llvm_cv_link_all_option="-Wl,--whole-archive"
2290 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2291 llvm_cv_os_type="FreeBSD"
2292 llvm_cv_platform_type="Unix" ;;
2294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296 llvm_cv_os_type="OpenBSD"
2297 llvm_cv_platform_type="Unix" ;;
2299 llvm_cv_link_all_option="-Wl,--whole-archive"
2300 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2301 llvm_cv_os_type="NetBSD"
2302 llvm_cv_platform_type="Unix" ;;
2304 llvm_cv_link_all_option="-Wl,--whole-archive"
2305 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2306 llvm_cv_os_type="DragonFly"
2307 llvm_cv_platform_type="Unix" ;;
2309 llvm_cv_link_all_option="-Wl,--whole-archive"
2310 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2311 llvm_cv_os_type="HP-UX"
2312 llvm_cv_platform_type="Unix" ;;
2314 llvm_cv_link_all_option="-Wl,--whole-archive"
2315 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2316 llvm_cv_os_type="Interix"
2317 llvm_cv_platform_type="Unix" ;;
2319 llvm_cv_link_all_option="-Wl,--whole-archive"
2320 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2321 llvm_cv_os_type="Linux"
2322 llvm_cv_platform_type="Unix" ;;
2324 llvm_cv_link_all_option="-Wl,-z,allextract"
2325 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2326 llvm_cv_os_type="SunOS"
2327 llvm_cv_platform_type="Unix" ;;
2329 llvm_cv_link_all_option="-Wl,--whole-archive"
2330 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2331 llvm_cv_os_type="Win32"
2332 llvm_cv_platform_type="Win32" ;;
2334 llvm_cv_link_all_option="-Wl,--whole-archive"
2335 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2336 llvm_cv_os_type="MingW"
2337 llvm_cv_platform_type="Win32" ;;
2339 llvm_cv_link_all_option=""
2340 llvm_cv_no_link_all_option=""
2341 llvm_cv_os_type="Unknown"
2342 llvm_cv_platform_type="Unknown" ;;
2345 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2346 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2348 if test "$llvm_cv_os_type" = "Unknown" ; then
2349 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2350 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2351 { (exit 1); exit 1; }; }
2357 LINKALL=$llvm_cv_link_all_option
2359 NOLINKALL=$llvm_cv_no_link_all_option
2362 case $llvm_cv_platform_type in
2365 cat >>confdefs.h <<\_ACEOF
2366 #define LLVM_ON_UNIX 1
2376 cat >>confdefs.h <<\_ACEOF
2377 #define LLVM_ON_WIN32 1
2387 { echo "$as_me:$LINENO: checking target architecture" >&5
2388 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2389 if test "${llvm_cv_target_arch+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2393 i?86-*) llvm_cv_target_arch="x86" ;;
2394 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2395 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2396 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2397 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2398 ia64-*) llvm_cv_target_arch="IA64" ;;
2399 arm-*) llvm_cv_target_arch="ARM" ;;
2400 mips-*) llvm_cv_target_arch="Mips" ;;
2401 pic16-*) llvm_cv_target_arch="PIC16" ;;
2402 xcore-*) llvm_cv_target_arch="XCore" ;;
2403 *) llvm_cv_target_arch="Unknown" ;;
2406 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2407 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2409 if test "$llvm_cv_target_arch" = "Unknown" ; then
2410 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2411 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2414 ARCH=$llvm_cv_target_arch
2418 ac_cpp='$CPP $CPPFLAGS'
2419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2422 if test -n "$ac_tool_prefix"; then
2423 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2424 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2427 if test "${ac_cv_prog_CC+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 if test -n "$CC"; then
2431 ac_cv_prog_CC="$CC" # Let the user override the test.
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 test -z "$as_dir" && as_dir=.
2438 for ac_exec_ext in '' $ac_executable_extensions; do
2439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2440 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 if test -n "$CC"; then
2452 { echo "$as_me:$LINENO: result: $CC" >&5
2453 echo "${ECHO_T}$CC" >&6; }
2455 { echo "$as_me:$LINENO: result: no" >&5
2456 echo "${ECHO_T}no" >&6; }
2461 if test -z "$ac_cv_prog_CC"; then
2463 # Extract the first word of "gcc", so it can be a program name with args.
2464 set dummy gcc; ac_word=$2
2465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2467 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 if test -n "$ac_ct_CC"; then
2471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 ac_cv_prog_ac_ct_CC="gcc"
2481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2491 if test -n "$ac_ct_CC"; then
2492 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2493 echo "${ECHO_T}$ac_ct_CC" >&6; }
2495 { echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6; }
2499 if test "x$ac_ct_CC" = x; then
2502 case $cross_compiling:$ac_tool_warned in
2504 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2505 whose name does not start with the host triplet. If you think this
2506 configuration is useful to you, please write to autoconf@gnu.org." >&5
2507 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2508 whose name does not start with the host triplet. If you think this
2509 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2510 ac_tool_warned=yes ;;
2518 if test -z "$CC"; then
2519 if test -n "$ac_tool_prefix"; then
2520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2521 set dummy ${ac_tool_prefix}cc; ac_word=$2
2522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_CC+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 if test -n "$CC"; then
2528 ac_cv_prog_CC="$CC" # Let the user override the test.
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_CC="${ac_tool_prefix}cc"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 if test -n "$CC"; then
2549 { echo "$as_me:$LINENO: result: $CC" >&5
2550 echo "${ECHO_T}$CC" >&6; }
2552 { echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6; }
2559 if test -z "$CC"; then
2560 # Extract the first word of "cc", so it can be a program name with args.
2561 set dummy cc; ac_word=$2
2562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2564 if test "${ac_cv_prog_CC+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 if test -n "$CC"; then
2568 ac_cv_prog_CC="$CC" # Let the user override the test.
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2578 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2579 ac_prog_rejected=yes
2583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 if test $ac_prog_rejected = yes; then
2591 # We found a bogon in the path, so make sure we never use it.
2592 set dummy $ac_cv_prog_CC
2594 if test $# != 0; then
2595 # We chose a different compiler from the bogus one.
2596 # However, it has the same basename, so the bogon will be chosen
2597 # first if we set CC to just the basename; use the full file name.
2599 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2605 if test -n "$CC"; then
2606 { echo "$as_me:$LINENO: result: $CC" >&5
2607 echo "${ECHO_T}$CC" >&6; }
2609 { echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6; }
2615 if test -z "$CC"; then
2616 if test -n "$ac_tool_prefix"; then
2617 for ac_prog in cl.exe
2619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2623 if test "${ac_cv_prog_CC+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2636 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 if test -n "$CC"; then
2648 { echo "$as_me:$LINENO: result: $CC" >&5
2649 echo "${ECHO_T}$CC" >&6; }
2651 { echo "$as_me:$LINENO: result: no" >&5
2652 echo "${ECHO_T}no" >&6; }
2656 test -n "$CC" && break
2659 if test -z "$CC"; then
2661 for ac_prog in cl.exe
2663 # Extract the first word of "$ac_prog", so it can be a program name with args.
2664 set dummy $ac_prog; ac_word=$2
2665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2667 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2670 if test -n "$ac_ct_CC"; then
2671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 ac_cv_prog_ac_ct_CC="$ac_prog"
2681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2691 if test -n "$ac_ct_CC"; then
2692 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2693 echo "${ECHO_T}$ac_ct_CC" >&6; }
2695 { echo "$as_me:$LINENO: result: no" >&5
2696 echo "${ECHO_T}no" >&6; }
2700 test -n "$ac_ct_CC" && break
2703 if test "x$ac_ct_CC" = x; then
2706 case $cross_compiling:$ac_tool_warned in
2708 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2709 whose name does not start with the host triplet. If you think this
2710 configuration is useful to you, please write to autoconf@gnu.org." >&5
2711 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2712 whose name does not start with the host triplet. If you think this
2713 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2714 ac_tool_warned=yes ;;
2723 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2724 See \`config.log' for more details." >&5
2725 echo "$as_me: error: no acceptable C compiler found in \$PATH
2726 See \`config.log' for more details." >&2;}
2727 { (exit 1); exit 1; }; }
2729 # Provide some information about the compiler.
2730 echo "$as_me:$LINENO: checking for C compiler version" >&5
2731 ac_compiler=`set X $ac_compile; echo $2`
2732 { (ac_try="$ac_compiler --version >&5"
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compiler --version >&5") 2>&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }
2742 { (ac_try="$ac_compiler -v >&5"
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_compiler -v >&5") 2>&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }
2752 { (ac_try="$ac_compiler -V >&5"
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758 (eval "$ac_compiler -V >&5") 2>&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }
2763 cat >conftest.$ac_ext <<_ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h. */
2778 ac_clean_files_save=$ac_clean_files
2779 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2780 # Try to create an executable without -o first, disregard a.out.
2781 # It will help us diagnose broken compilers, and finding out an intuition
2783 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2784 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2785 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2787 # List of possible output files, starting from the most likely.
2788 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2789 # only as a last resort. b.out is created by i960 compilers.
2790 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2792 # The IRIX 6 linker writes into existing files which may not be
2793 # executable, retaining their permissions. Remove them first so a
2794 # subsequent execution test works.
2796 for ac_file in $ac_files
2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2800 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2805 if { (ac_try="$ac_link_default"
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_link_default") 2>&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; then
2815 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2816 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2817 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2818 # so that the user can short-circuit this test for compilers unknown to
2820 for ac_file in $ac_files ''
2822 test -f "$ac_file" || continue
2824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2827 # We found the default executable, but exeext='' is most
2831 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2833 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2835 # We set ac_cv_exeext here because the later test for it is not
2836 # safe: cross compilers may not add the suffix if given an `-o'
2837 # argument, so we may need to know it at that point already.
2838 # Even if this section looks crufty: it has the advantage of
2845 test "$ac_cv_exeext" = no && ac_cv_exeext=
2851 { echo "$as_me:$LINENO: result: $ac_file" >&5
2852 echo "${ECHO_T}$ac_file" >&6; }
2853 if test -z "$ac_file"; then
2854 echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2857 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2858 See \`config.log' for more details." >&5
2859 echo "$as_me: error: C compiler cannot create executables
2860 See \`config.log' for more details." >&2;}
2861 { (exit 77); exit 77; }; }
2864 ac_exeext=$ac_cv_exeext
2866 # Check that the compiler produces executables we can run. If not, either
2867 # the compiler is broken, or we cross compile.
2868 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2869 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2870 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2871 # If not cross compiling, check that we can run a simple program.
2872 if test "$cross_compiling" != yes; then
2873 if { ac_try='./$ac_file'
2874 { (case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_try") 2>&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2885 if test "$cross_compiling" = maybe; then
2888 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2889 If you meant to cross compile, use \`--host'.
2890 See \`config.log' for more details." >&5
2891 echo "$as_me: error: cannot run C compiled programs.
2892 If you meant to cross compile, use \`--host'.
2893 See \`config.log' for more details." >&2;}
2894 { (exit 1); exit 1; }; }
2898 { echo "$as_me:$LINENO: result: yes" >&5
2899 echo "${ECHO_T}yes" >&6; }
2901 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2902 ac_clean_files=$ac_clean_files_save
2903 # Check that the compiler produces executables we can run. If not, either
2904 # the compiler is broken, or we cross compile.
2905 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2906 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2907 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2908 echo "${ECHO_T}$cross_compiling" >&6; }
2910 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2911 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2912 if { (ac_try="$ac_link"
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_link") 2>&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; then
2922 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2923 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2924 # work properly (i.e., refer to `conftest.exe'), while it won't with
2926 for ac_file in conftest.exe conftest conftest.*; do
2927 test -f "$ac_file" || continue
2929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2930 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2936 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2937 See \`config.log' for more details." >&5
2938 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2939 See \`config.log' for more details." >&2;}
2940 { (exit 1); exit 1; }; }
2943 rm -f conftest$ac_cv_exeext
2944 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2945 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2947 rm -f conftest.$ac_ext
2948 EXEEXT=$ac_cv_exeext
2950 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2951 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2952 if test "${ac_cv_objext+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2955 cat >conftest.$ac_ext <<_ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h. */
2970 rm -f conftest.o conftest.obj
2971 if { (ac_try="$ac_compile"
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_compile") 2>&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; then
2981 for ac_file in conftest.o conftest.obj conftest.*; do
2982 test -f "$ac_file" || continue;
2984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2985 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2990 echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.$ac_ext >&5
2993 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2994 See \`config.log' for more details." >&5
2995 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2996 See \`config.log' for more details." >&2;}
2997 { (exit 1); exit 1; }; }
3000 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3002 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3003 echo "${ECHO_T}$ac_cv_objext" >&6; }
3004 OBJEXT=$ac_cv_objext
3006 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3007 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3008 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3011 cat >conftest.$ac_ext <<_ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3029 rm -f conftest.$ac_objext
3030 if { (ac_try="$ac_compile"
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_compile") 2>conftest.er1
3038 grep -v '^ *+' conftest.er1 >conftest.err
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } && {
3043 test -z "$ac_c_werror_flag" ||
3044 test ! -s conftest.err
3045 } && test -s conftest.$ac_objext; then
3048 echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3058 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3059 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3060 GCC=`test $ac_compiler_gnu = yes && echo yes`
3061 ac_test_CFLAGS=${CFLAGS+set}
3062 ac_save_CFLAGS=$CFLAGS
3063 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3064 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3065 if test "${ac_cv_prog_cc_g+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3068 ac_save_c_werror_flag=$ac_c_werror_flag
3069 ac_c_werror_flag=yes
3072 cat >conftest.$ac_ext <<_ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3087 rm -f conftest.$ac_objext
3088 if { (ac_try="$ac_compile"
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_compile") 2>conftest.er1
3096 grep -v '^ *+' conftest.er1 >conftest.err
3098 cat conftest.err >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } && {
3101 test -z "$ac_c_werror_flag" ||
3102 test ! -s conftest.err
3103 } && test -s conftest.$ac_objext; then
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3110 cat >conftest.$ac_ext <<_ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3134 grep -v '^ *+' conftest.er1 >conftest.err
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } && {
3139 test -z "$ac_c_werror_flag" ||
3140 test ! -s conftest.err
3141 } && test -s conftest.$ac_objext; then
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3147 ac_c_werror_flag=$ac_save_c_werror_flag
3149 cat >conftest.$ac_ext <<_ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h. */
3164 rm -f conftest.$ac_objext
3165 if { (ac_try="$ac_compile"
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3173 grep -v '^ *+' conftest.er1 >conftest.err
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } && {
3178 test -z "$ac_c_werror_flag" ||
3179 test ! -s conftest.err
3180 } && test -s conftest.$ac_objext; then
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 ac_c_werror_flag=$ac_save_c_werror_flag
3198 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3199 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3200 if test "$ac_test_CFLAGS" = set; then
3201 CFLAGS=$ac_save_CFLAGS
3202 elif test $ac_cv_prog_cc_g = yes; then
3203 if test "$GCC" = yes; then
3209 if test "$GCC" = yes; then
3215 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3216 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3217 if test "${ac_cv_prog_cc_c89+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 ac_cv_prog_cc_c89=no
3222 cat >conftest.$ac_ext <<_ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3230 #include <sys/types.h>
3231 #include <sys/stat.h>
3232 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3233 struct buf { int x; };
3234 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3235 static char *e (p, i)
3241 static char *f (char * (*g) (char **, int), char **p, ...)
3246 s = g (p, va_arg (v,int));
3251 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3252 function prototypes and stuff, but not '\xHH' hex character constants.
3253 These don't provoke an error unfortunately, instead are silently treated
3254 as 'x'. The following induces an error, until -std is added to get
3255 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3256 array size at least. It's necessary to write '\x00'==0 to get something
3257 that's true only with -std. */
3258 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3260 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3261 inside strings and character constants. */
3263 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3265 int test (int i, double x);
3266 struct s1 {int (*f) (int a);};
3267 struct s2 {int (*f) (double a);};
3268 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3274 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3279 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3280 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3282 CC="$ac_save_CC $ac_arg"
3283 rm -f conftest.$ac_objext
3284 if { (ac_try="$ac_compile"
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_compile") 2>conftest.er1
3292 grep -v '^ *+' conftest.er1 >conftest.err
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } && {
3297 test -z "$ac_c_werror_flag" ||
3298 test ! -s conftest.err
3299 } && test -s conftest.$ac_objext; then
3300 ac_cv_prog_cc_c89=$ac_arg
3302 echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3308 rm -f core conftest.err conftest.$ac_objext
3309 test "x$ac_cv_prog_cc_c89" != "xno" && break
3311 rm -f conftest.$ac_ext
3316 case "x$ac_cv_prog_cc_c89" in
3318 { echo "$as_me:$LINENO: result: none needed" >&5
3319 echo "${ECHO_T}none needed" >&6; } ;;
3321 { echo "$as_me:$LINENO: result: unsupported" >&5
3322 echo "${ECHO_T}unsupported" >&6; } ;;
3324 CC="$CC $ac_cv_prog_cc_c89"
3325 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3326 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3331 ac_cpp='$CPP $CPPFLAGS'
3332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338 ac_cpp='$CPP $CPPFLAGS'
3339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3343 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3344 # On Suns, sometimes $CPP names a directory.
3345 if test -n "$CPP" && test -d "$CPP"; then
3348 if test -z "$CPP"; then
3349 if test "${ac_cv_prog_CPP+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 # Double quotes because CPP needs to be expanded
3353 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3356 for ac_c_preproc_warn_flag in '' yes
3358 # Use a header file that comes with gcc, so configuring glibc
3359 # with a fresh cross-compiler works.
3360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3361 # <limits.h> exists even on freestanding compilers.
3362 # On the NeXT, cc -E runs the code through the compiler's parser,
3363 # not just through cpp. "Syntax error" is here to catch this case.
3364 cat >conftest.$ac_ext <<_ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h. */
3371 # include <limits.h>
3373 # include <assert.h>
3377 if { (ac_try="$ac_cpp conftest.$ac_ext"
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3385 grep -v '^ *+' conftest.er1 >conftest.err
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } >/dev/null && {
3390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3391 test ! -s conftest.err
3395 echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3398 # Broken: fails on valid input.
3402 rm -f conftest.err conftest.$ac_ext
3404 # OK, works on sane cases. Now check whether nonexistent headers
3405 # can be detected and how.
3406 cat >conftest.$ac_ext <<_ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3412 #include <ac_nonexistent.h>
3414 if { (ac_try="$ac_cpp conftest.$ac_ext"
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3422 grep -v '^ *+' conftest.er1 >conftest.err
3424 cat conftest.err >&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); } >/dev/null && {
3427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3428 test ! -s conftest.err
3430 # Broken: success on invalid input.
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3436 # Passes both tests.
3441 rm -f conftest.err conftest.$ac_ext
3444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3445 rm -f conftest.err conftest.$ac_ext
3446 if $ac_preproc_ok; then
3458 { echo "$as_me:$LINENO: result: $CPP" >&5
3459 echo "${ECHO_T}$CPP" >&6; }
3461 for ac_c_preproc_warn_flag in '' yes
3463 # Use a header file that comes with gcc, so configuring glibc
3464 # with a fresh cross-compiler works.
3465 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3466 # <limits.h> exists even on freestanding compilers.
3467 # On the NeXT, cc -E runs the code through the compiler's parser,
3468 # not just through cpp. "Syntax error" is here to catch this case.
3469 cat >conftest.$ac_ext <<_ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3476 # include <limits.h>
3478 # include <assert.h>
3482 if { (ac_try="$ac_cpp conftest.$ac_ext"
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3490 grep -v '^ *+' conftest.er1 >conftest.err
3492 cat conftest.err >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } >/dev/null && {
3495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3496 test ! -s conftest.err
3500 echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3503 # Broken: fails on valid input.
3507 rm -f conftest.err conftest.$ac_ext
3509 # OK, works on sane cases. Now check whether nonexistent headers
3510 # can be detected and how.
3511 cat >conftest.$ac_ext <<_ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h. */
3517 #include <ac_nonexistent.h>
3519 if { (ac_try="$ac_cpp conftest.$ac_ext"
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } >/dev/null && {
3532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3533 test ! -s conftest.err
3535 # Broken: success on invalid input.
3538 echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3541 # Passes both tests.
3546 rm -f conftest.err conftest.$ac_ext
3549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3550 rm -f conftest.err conftest.$ac_ext
3551 if $ac_preproc_ok; then
3554 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3555 See \`config.log' for more details." >&5
3556 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3557 See \`config.log' for more details." >&2;}
3558 { (exit 1); exit 1; }; }
3562 ac_cpp='$CPP $CPPFLAGS'
3563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3569 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3570 if test "${ac_cv_path_GREP+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 # Extract the first word of "grep ggrep" to use in msg output
3574 if test -z "$GREP"; then
3575 set dummy grep ggrep; ac_prog_name=$2
3576 if test "${ac_cv_path_GREP+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 ac_path_GREP_found=false
3580 # Loop through the user's path and test for each of PROGNAME-LIST
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3585 test -z "$as_dir" && as_dir=.
3586 for ac_prog in grep ggrep; do
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3589 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3590 # Check for GNU ac_path_GREP and select it if it is found.
3591 # Check for GNU $ac_path_GREP
3592 case `"$ac_path_GREP" --version 2>&1` in
3594 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3597 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3600 cat "conftest.in" "conftest.in" >"conftest.tmp"
3601 mv "conftest.tmp" "conftest.in"
3602 cp "conftest.in" "conftest.nl"
3603 echo 'GREP' >> "conftest.nl"
3604 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3605 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3606 ac_count=`expr $ac_count + 1`
3607 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3608 # Best one so far, save it but keep looking for a better one
3609 ac_cv_path_GREP="$ac_path_GREP"
3610 ac_path_GREP_max=$ac_count
3612 # 10*(2^10) chars as input seems more than enough
3613 test $ac_count -gt 10 && break
3615 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3619 $ac_path_GREP_found && break 3
3629 GREP="$ac_cv_path_GREP"
3630 if test -z "$GREP"; then
3631 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3632 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3633 { (exit 1); exit 1; }; }
3637 ac_cv_path_GREP=$GREP
3642 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3643 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3644 GREP="$ac_cv_path_GREP"
3647 { echo "$as_me:$LINENO: checking for egrep" >&5
3648 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3649 if test "${ac_cv_path_EGREP+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3653 then ac_cv_path_EGREP="$GREP -E"
3655 # Extract the first word of "egrep" to use in msg output
3656 if test -z "$EGREP"; then
3657 set dummy egrep; ac_prog_name=$2
3658 if test "${ac_cv_path_EGREP+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 ac_path_EGREP_found=false
3662 # Loop through the user's path and test for each of PROGNAME-LIST
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3667 test -z "$as_dir" && as_dir=.
3668 for ac_prog in egrep; do
3669 for ac_exec_ext in '' $ac_executable_extensions; do
3670 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3671 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3672 # Check for GNU ac_path_EGREP and select it if it is found.
3673 # Check for GNU $ac_path_EGREP
3674 case `"$ac_path_EGREP" --version 2>&1` in
3676 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3679 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3682 cat "conftest.in" "conftest.in" >"conftest.tmp"
3683 mv "conftest.tmp" "conftest.in"
3684 cp "conftest.in" "conftest.nl"
3685 echo 'EGREP' >> "conftest.nl"
3686 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3687 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3688 ac_count=`expr $ac_count + 1`
3689 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3690 # Best one so far, save it but keep looking for a better one
3691 ac_cv_path_EGREP="$ac_path_EGREP"
3692 ac_path_EGREP_max=$ac_count
3694 # 10*(2^10) chars as input seems more than enough
3695 test $ac_count -gt 10 && break
3697 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3701 $ac_path_EGREP_found && break 3
3711 EGREP="$ac_cv_path_EGREP"
3712 if test -z "$EGREP"; then
3713 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3714 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3715 { (exit 1); exit 1; }; }
3719 ac_cv_path_EGREP=$EGREP
3725 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3726 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3727 EGREP="$ac_cv_path_EGREP"
3730 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3731 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3732 if test "${ac_cv_header_stdc+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 cat >conftest.$ac_ext <<_ACEOF
3738 cat confdefs.h >>conftest.$ac_ext
3739 cat >>conftest.$ac_ext <<_ACEOF
3740 /* end confdefs.h. */
3754 rm -f conftest.$ac_objext
3755 if { (ac_try="$ac_compile"
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3761 (eval "$ac_compile") 2>conftest.er1
3763 grep -v '^ *+' conftest.er1 >conftest.err
3765 cat conftest.err >&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } && {
3768 test -z "$ac_c_werror_flag" ||
3769 test ! -s conftest.err
3770 } && test -s conftest.$ac_objext; then
3771 ac_cv_header_stdc=yes
3773 echo "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.$ac_ext >&5
3776 ac_cv_header_stdc=no
3779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781 if test $ac_cv_header_stdc = yes; then
3782 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3783 cat >conftest.$ac_ext <<_ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h. */
3792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3793 $EGREP "memchr" >/dev/null 2>&1; then
3796 ac_cv_header_stdc=no
3802 if test $ac_cv_header_stdc = yes; then
3803 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3804 cat >conftest.$ac_ext <<_ACEOF
3807 cat confdefs.h >>conftest.$ac_ext
3808 cat >>conftest.$ac_ext <<_ACEOF
3809 /* end confdefs.h. */
3813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3814 $EGREP "free" >/dev/null 2>&1; then
3817 ac_cv_header_stdc=no
3823 if test $ac_cv_header_stdc = yes; then
3824 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3825 if test "$cross_compiling" = yes; then
3828 cat >conftest.$ac_ext <<_ACEOF
3831 cat confdefs.h >>conftest.$ac_ext
3832 cat >>conftest.$ac_ext <<_ACEOF
3833 /* end confdefs.h. */
3836 #if ((' ' & 0x0FF) == 0x020)
3837 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3838 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3840 # define ISLOWER(c) \
3841 (('a' <= (c) && (c) <= 'i') \
3842 || ('j' <= (c) && (c) <= 'r') \
3843 || ('s' <= (c) && (c) <= 'z'))
3844 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3847 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3852 for (i = 0; i < 256; i++)
3853 if (XOR (islower (i), ISLOWER (i))
3854 || toupper (i) != TOUPPER (i))
3859 rm -f conftest$ac_exeext
3860 if { (ac_try="$ac_link"
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3866 (eval "$ac_link") 2>&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3870 { (case "(($ac_try" in
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3875 (eval "$ac_try") 2>&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3881 echo "$as_me: program exited with status $ac_status" >&5
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3886 ac_cv_header_stdc=no
3888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3894 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3895 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3896 if test $ac_cv_header_stdc = yes; then
3898 cat >>confdefs.h <<\_ACEOF
3899 #define STDC_HEADERS 1
3904 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3914 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3915 inttypes.h stdint.h unistd.h
3917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 cat >conftest.$ac_ext <<_ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3929 $ac_includes_default
3931 #include <$ac_header>
3933 rm -f conftest.$ac_objext
3934 if { (ac_try="$ac_compile"
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3940 (eval "$ac_compile") 2>conftest.er1
3942 grep -v '^ *+' conftest.er1 >conftest.err
3944 cat conftest.err >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); } && {
3947 test -z "$ac_c_werror_flag" ||
3948 test ! -s conftest.err
3949 } && test -s conftest.$ac_objext; then
3950 eval "$as_ac_Header=yes"
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3955 eval "$as_ac_Header=no"
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960 ac_res=`eval echo '${'$as_ac_Header'}'`
3961 { echo "$as_me:$LINENO: result: $ac_res" >&5
3962 echo "${ECHO_T}$ac_res" >&6; }
3963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3964 cat >>confdefs.h <<_ACEOF
3965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3973 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3974 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3975 if test "${ac_cv_c_bigendian+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 # See if sys/param.h defines the BYTE_ORDER macro.
3979 cat >conftest.$ac_ext <<_ACEOF
3982 cat confdefs.h >>conftest.$ac_ext
3983 cat >>conftest.$ac_ext <<_ACEOF
3984 /* end confdefs.h. */
3985 #include <sys/types.h>
3986 #include <sys/param.h>
3991 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3992 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4000 rm -f conftest.$ac_objext
4001 if { (ac_try="$ac_compile"
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4007 (eval "$ac_compile") 2>conftest.er1
4009 grep -v '^ *+' conftest.er1 >conftest.err
4011 cat conftest.err >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); } && {
4014 test -z "$ac_c_werror_flag" ||
4015 test ! -s conftest.err
4016 } && test -s conftest.$ac_objext; then
4017 # It does; now see whether it defined to BIG_ENDIAN or not.
4018 cat >conftest.$ac_ext <<_ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4024 #include <sys/types.h>
4025 #include <sys/param.h>
4030 #if BYTE_ORDER != BIG_ENDIAN
4038 rm -f conftest.$ac_objext
4039 if { (ac_try="$ac_compile"
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4045 (eval "$ac_compile") 2>conftest.er1
4047 grep -v '^ *+' conftest.er1 >conftest.err
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } && {
4052 test -z "$ac_c_werror_flag" ||
4053 test ! -s conftest.err
4054 } && test -s conftest.$ac_objext; then
4055 ac_cv_c_bigendian=yes
4057 echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4060 ac_cv_c_bigendian=no
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4068 # It does not; compile a test program.
4069 if test "$cross_compiling" = yes; then
4070 # try to guess the endianness by grepping values into an object file
4071 ac_cv_c_bigendian=unknown
4072 cat >conftest.$ac_ext <<_ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4078 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4079 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4080 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4081 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4082 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4083 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4087 _ascii (); _ebcdic ();
4092 rm -f conftest.$ac_objext
4093 if { (ac_try="$ac_compile"
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_compile") 2>conftest.er1
4101 grep -v '^ *+' conftest.er1 >conftest.err
4103 cat conftest.err >&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } && {
4106 test -z "$ac_c_werror_flag" ||
4107 test ! -s conftest.err
4108 } && test -s conftest.$ac_objext; then
4109 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4110 ac_cv_c_bigendian=yes
4112 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4113 if test "$ac_cv_c_bigendian" = unknown; then
4114 ac_cv_c_bigendian=no
4116 # finding both strings is unlikely to happen, but who knows?
4117 ac_cv_c_bigendian=unknown
4121 echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129 cat >conftest.$ac_ext <<_ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4135 $ac_includes_default
4140 /* Are we little or big endian? From Harbison&Steele. */
4144 char c[sizeof (long int)];
4147 return u.c[sizeof (long int) - 1] == 1;
4153 rm -f conftest$ac_exeext
4154 if { (ac_try="$ac_link"
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_link") 2>&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4164 { (case "(($ac_try" in
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169 (eval "$ac_try") 2>&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; }; then
4173 ac_cv_c_bigendian=no
4175 echo "$as_me: program exited with status $ac_status" >&5
4176 echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4180 ac_cv_c_bigendian=yes
4182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4190 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4191 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4192 case $ac_cv_c_bigendian in
4200 { { echo "$as_me:$LINENO: error: unknown endianness
4201 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4202 echo "$as_me: error: unknown endianness
4203 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4204 { (exit 1); exit 1; }; } ;;
4208 if test "$cross_compiling" = yes; then
4209 LLVM_CROSS_COMPILING=1
4212 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4213 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4214 if test "${ac_cv_build_exeext+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4218 ac_cv_build_exeext=.exe
4220 ac_build_prefix=${build_alias}-
4222 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4223 set dummy ${ac_build_prefix}gcc; ac_word=$2
4224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4226 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 if test -n "$BUILD_CC"; then
4230 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 test -z "$as_dir" && as_dir=.
4237 for ac_exec_ext in '' $ac_executable_extensions; do
4238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4239 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4249 BUILD_CC=$ac_cv_prog_BUILD_CC
4250 if test -n "$BUILD_CC"; then
4251 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4252 echo "${ECHO_T}$BUILD_CC" >&6; }
4254 { echo "$as_me:$LINENO: result: no" >&5
4255 echo "${ECHO_T}no" >&6; }
4259 if test -z "$BUILD_CC"; then
4260 # Extract the first word of "gcc", so it can be a program name with args.
4261 set dummy gcc; ac_word=$2
4262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4264 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 if test -n "$BUILD_CC"; then
4268 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4277 ac_cv_prog_BUILD_CC="gcc"
4278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 BUILD_CC=$ac_cv_prog_BUILD_CC
4288 if test -n "$BUILD_CC"; then
4289 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4290 echo "${ECHO_T}$BUILD_CC" >&6; }
4292 { echo "$as_me:$LINENO: result: no" >&5
4293 echo "${ECHO_T}no" >&6; }
4297 if test -z "$BUILD_CC"; then
4298 # Extract the first word of "cc", so it can be a program name with args.
4299 set dummy cc; ac_word=$2
4300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4302 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 if test -n "$BUILD_CC"; then
4306 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4316 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4317 ac_prog_rejected=yes
4320 ac_cv_prog_BUILD_CC="cc"
4321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 if test $ac_prog_rejected = yes; then
4329 # We found a bogon in the path, so make sure we never use it.
4330 set dummy $ac_cv_prog_BUILD_CC
4332 if test $# != 0; then
4333 # We chose a different compiler from the bogus one.
4334 # However, it has the same basename, so the bogon will be chosen
4335 # first if we set BUILD_CC to just the basename; use the full file name.
4337 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4342 BUILD_CC=$ac_cv_prog_BUILD_CC
4343 if test -n "$BUILD_CC"; then
4344 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4345 echo "${ECHO_T}$BUILD_CC" >&6; }
4347 { echo "$as_me:$LINENO: result: no" >&5
4348 echo "${ECHO_T}no" >&6; }
4354 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4355 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4356 { (exit 1); exit 1; }; }
4357 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4359 echo 'int main () { return 0; }' > conftest.$ac_ext
4361 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4362 (eval $ac_build_link) 2>&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; then
4366 for file in conftest.*; do
4368 *.c | *.o | *.obj | *.dSYM) ;;
4369 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4373 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4374 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4375 { (exit 1); exit 1; }; }
4378 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4383 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4384 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4385 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4386 ac_build_exeext=$BUILD_EXEEXT
4388 ac_build_prefix=${build_alias}-
4389 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4390 set dummy ${ac_build_prefix}g++; ac_word=$2
4391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4393 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 if test -n "$BUILD_CXX"; then
4397 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4406 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4417 if test -n "$BUILD_CXX"; then
4418 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4419 echo "${ECHO_T}$BUILD_CXX" >&6; }
4421 { echo "$as_me:$LINENO: result: no" >&5
4422 echo "${ECHO_T}no" >&6; }
4426 if test -z "$BUILD_CXX"; then
4427 # Extract the first word of "g++", so it can be a program name with args.
4428 set dummy g++; ac_word=$2
4429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 if test -n "$BUILD_CXX"; then
4435 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 ac_cv_prog_BUILD_CXX="g++"
4445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4455 if test -n "$BUILD_CXX"; then
4456 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4457 echo "${ECHO_T}$BUILD_CXX" >&6; }
4459 { echo "$as_me:$LINENO: result: no" >&5
4460 echo "${ECHO_T}no" >&6; }
4464 if test -z "$BUILD_CXX"; then
4465 # Extract the first word of "c++", so it can be a program name with args.
4466 set dummy c++; ac_word=$2
4467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 if test -n "$BUILD_CXX"; then
4473 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 test -z "$as_dir" && as_dir=.
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4483 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4484 ac_prog_rejected=yes
4487 ac_cv_prog_BUILD_CXX="c++"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 if test $ac_prog_rejected = yes; then
4496 # We found a bogon in the path, so make sure we never use it.
4497 set dummy $ac_cv_prog_BUILD_CXX
4499 if test $# != 0; then
4500 # We chose a different compiler from the bogus one.
4501 # However, it has the same basename, so the bogon will be chosen
4502 # first if we set BUILD_CXX to just the basename; use the full file name.
4504 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4509 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4510 if test -n "$BUILD_CXX"; then
4511 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4512 echo "${ECHO_T}$BUILD_CXX" >&6; }
4514 { echo "$as_me:$LINENO: result: no" >&5
4515 echo "${ECHO_T}no" >&6; }
4522 LLVM_CROSS_COMPILING=0
4526 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4537 # Check whether --enable-optimized was given.
4538 if test "${enable_optimized+set}" = set; then
4539 enableval=$enable_optimized;
4544 if test ${enableval} = "no" ; then
4548 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4552 # Check whether --enable-profiling was given.
4553 if test "${enable_profiling+set}" = set; then
4554 enableval=$enable_profiling;
4559 if test ${enableval} = "no" ; then
4563 ENABLE_PROFILING=ENABLE_PROFILING=1
4567 # Check whether --enable-assertions was given.
4568 if test "${enable_assertions+set}" = set; then
4569 enableval=$enable_assertions;
4574 if test ${enableval} = "yes" ; then
4578 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4582 # Check whether --enable-expensive-checks was given.
4583 if test "${enable_expensive_checks+set}" = set; then
4584 enableval=$enable_expensive_checks;
4589 if test ${enableval} = "yes" ; then
4590 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4592 EXPENSIVE_CHECKS=yes
4595 ENABLE_EXPENSIVE_CHECKS=
4601 # Check whether --enable-debug-runtime was given.
4602 if test "${enable_debug_runtime+set}" = set; then
4603 enableval=$enable_debug_runtime;
4608 if test ${enableval} = "no" ; then
4612 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4616 # Check whether --enable-jit was given.
4617 if test "${enable_jit+set}" = set; then
4618 enableval=$enable_jit;
4623 if test ${enableval} = "no"
4628 case "$llvm_cv_target_arch" in
4629 x86) TARGET_HAS_JIT=1
4631 Sparc) TARGET_HAS_JIT=0
4633 PowerPC) TARGET_HAS_JIT=1
4635 x86_64) TARGET_HAS_JIT=1
4637 Alpha) TARGET_HAS_JIT=1
4639 IA64) TARGET_HAS_JIT=0
4641 ARM) TARGET_HAS_JIT=0
4643 Mips) TARGET_HAS_JIT=0
4645 PIC16) TARGET_HAS_JIT=0
4647 XCore) TARGET_HAS_JIT=0
4654 # Check whether --enable-doxygen was given.
4655 if test "${enable_doxygen+set}" = set; then
4656 enableval=$enable_doxygen;
4661 case "$enableval" in
4662 yes) ENABLE_DOXYGEN=1
4664 no) ENABLE_DOXYGEN=0
4666 default) ENABLE_DOXYGEN=0
4668 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4669 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4670 { (exit 1); exit 1; }; } ;;
4673 # Check whether --enable-threads was given.
4674 if test "${enable_threads+set}" = set; then
4675 enableval=$enable_threads;
4680 case "$enableval" in
4681 yes) ENABLE_THREADS=1
4683 no) ENABLE_THREADS=0
4685 default) ENABLE_THREADS=1
4687 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4688 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4689 { (exit 1); exit 1; }; } ;;
4692 cat >>confdefs.h <<_ACEOF
4693 #define ENABLE_THREADS $ENABLE_THREADS
4697 # Check whether --enable-pic was given.
4698 if test "${enable_pic+set}" = set; then
4699 enableval=$enable_pic;
4704 case "$enableval" in
4709 default) ENABLE_PIC=1
4711 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4712 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4713 { (exit 1); exit 1; }; } ;;
4716 cat >>confdefs.h <<_ACEOF
4717 #define ENABLE_PIC $ENABLE_PIC
4722 # Check whether --enable-targets was given.
4723 if test "${enable_targets+set}" = set; then
4724 enableval=$enable_targets;
4729 case "$enableval" in
4730 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
4732 case "$llvm_cv_target_arch" in
4733 x86) TARGETS_TO_BUILD="X86" ;;
4734 x86_64) TARGETS_TO_BUILD="X86" ;;
4735 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4736 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4737 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4738 IA64) TARGETS_TO_BUILD="IA64" ;;
4739 ARM) TARGETS_TO_BUILD="ARM" ;;
4740 Mips) TARGETS_TO_BUILD="Mips" ;;
4741 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4742 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4743 XCore) TARGETS_TO_BUILD="XCore" ;;
4744 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4745 echo "$as_me: error: Can not set target to build" >&2;}
4746 { (exit 1); exit 1; }; } ;;
4749 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4751 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4752 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4753 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4754 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4755 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4756 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4757 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4758 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4759 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4760 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4761 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4762 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4763 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4764 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4765 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4766 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4767 { (exit 1); exit 1; }; } ;;
4772 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4775 # Check whether --enable-cbe-printf-a was given.
4776 if test "${enable_cbe_printf_a+set}" = set; then
4777 enableval=$enable_cbe_printf_a;
4782 case "$enableval" in
4783 yes) ENABLE_CBE_PRINTF_A=1
4785 no) ENABLE_CBE_PRINTF_A=0
4787 default) ENABLE_CBE_PRINTF_A=1
4789 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4790 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4791 { (exit 1); exit 1; }; } ;;
4794 cat >>confdefs.h <<_ACEOF
4795 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4800 # Check whether --with-llvmgccdir was given.
4801 if test "${with_llvmgccdir+set}" = set; then
4802 withval=$with_llvmgccdir;
4808 default) WITH_LLVMGCCDIR=default ;;
4809 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4810 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4811 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4812 { (exit 1); exit 1; }; } ;;
4816 # Check whether --with-llvmgcc was given.
4817 if test "${with_llvmgcc+set}" = set; then
4818 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4824 # Check whether --with-llvmgxx was given.
4825 if test "${with_llvmgxx+set}" = set; then
4826 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4831 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4832 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4833 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4834 { (exit 1); exit 1; }; };
4837 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4838 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4839 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4840 { (exit 1); exit 1; }; };
4844 # Check whether --with-extra-options was given.
4845 if test "${with_extra_options+set}" = set; then
4846 withval=$with_extra_options;
4852 default) EXTRA_OPTIONS= ;;
4853 *) EXTRA_OPTIONS=$withval ;;
4855 EXTRA_OPTIONS=$EXTRA_OPTIONS
4858 # Check whether --enable-bindings was given.
4859 if test "${enable_bindings+set}" = set; then
4860 enableval=$enable_bindings;
4865 BINDINGS_TO_BUILD=""
4866 case "$enableval" in
4867 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4868 all ) BINDINGS_TO_BUILD="ocaml" ;;
4869 none | no) BINDINGS_TO_BUILD="" ;;
4870 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4871 case "$a_binding" in
4872 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4873 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4874 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4875 { (exit 1); exit 1; }; } ;;
4882 # Check whether --with-ocaml-libdir was given.
4883 if test "${with_ocaml_libdir+set}" = set; then
4884 withval=$with_ocaml_libdir;
4890 auto) with_ocaml_libdir="$withval" ;;
4891 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4892 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4893 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4894 { (exit 1); exit 1; }; } ;;
4898 # Check whether --with-binutils-include was given.
4899 if test "${with_binutils_include+set}" = set; then
4900 withval=$with_binutils_include;
4906 default) WITH_BINUTILS_INCDIR=default ;;
4907 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
4908 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
4909 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
4910 { (exit 1); exit 1; }; } ;;
4912 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
4913 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
4915 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
4916 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
4917 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
4918 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
4919 { (exit 1); exit 1; }; };
4925 ac_cpp='$CPP $CPPFLAGS'
4926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4929 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4930 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4931 # On Suns, sometimes $CPP names a directory.
4932 if test -n "$CPP" && test -d "$CPP"; then
4935 if test -z "$CPP"; then
4936 if test "${ac_cv_prog_CPP+set}" = set; then
4937 echo $ECHO_N "(cached) $ECHO_C" >&6
4939 # Double quotes because CPP needs to be expanded
4940 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4943 for ac_c_preproc_warn_flag in '' yes
4945 # Use a header file that comes with gcc, so configuring glibc
4946 # with a fresh cross-compiler works.
4947 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4948 # <limits.h> exists even on freestanding compilers.
4949 # On the NeXT, cc -E runs the code through the compiler's parser,
4950 # not just through cpp. "Syntax error" is here to catch this case.
4951 cat >conftest.$ac_ext <<_ACEOF
4954 cat confdefs.h >>conftest.$ac_ext
4955 cat >>conftest.$ac_ext <<_ACEOF
4956 /* end confdefs.h. */
4958 # include <limits.h>
4960 # include <assert.h>
4964 if { (ac_try="$ac_cpp conftest.$ac_ext"
4966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4967 *) ac_try_echo=$ac_try;;
4969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4972 grep -v '^ *+' conftest.er1 >conftest.err
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } >/dev/null && {
4977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4978 test ! -s conftest.err
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4985 # Broken: fails on valid input.
4989 rm -f conftest.err conftest.$ac_ext
4991 # OK, works on sane cases. Now check whether nonexistent headers
4992 # can be detected and how.
4993 cat >conftest.$ac_ext <<_ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
4999 #include <ac_nonexistent.h>
5001 if { (ac_try="$ac_cpp conftest.$ac_ext"
5003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5004 *) ac_try_echo=$ac_try;;
5006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5009 grep -v '^ *+' conftest.er1 >conftest.err
5011 cat conftest.err >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } >/dev/null && {
5014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5015 test ! -s conftest.err
5017 # Broken: success on invalid input.
5020 echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5023 # Passes both tests.
5028 rm -f conftest.err conftest.$ac_ext
5031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5032 rm -f conftest.err conftest.$ac_ext
5033 if $ac_preproc_ok; then
5045 { echo "$as_me:$LINENO: result: $CPP" >&5
5046 echo "${ECHO_T}$CPP" >&6; }
5048 for ac_c_preproc_warn_flag in '' yes
5050 # Use a header file that comes with gcc, so configuring glibc
5051 # with a fresh cross-compiler works.
5052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5053 # <limits.h> exists even on freestanding compilers.
5054 # On the NeXT, cc -E runs the code through the compiler's parser,
5055 # not just through cpp. "Syntax error" is here to catch this case.
5056 cat >conftest.$ac_ext <<_ACEOF
5059 cat confdefs.h >>conftest.$ac_ext
5060 cat >>conftest.$ac_ext <<_ACEOF
5061 /* end confdefs.h. */
5063 # include <limits.h>
5065 # include <assert.h>
5069 if { (ac_try="$ac_cpp conftest.$ac_ext"
5071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072 *) ac_try_echo=$ac_try;;
5074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5077 grep -v '^ *+' conftest.er1 >conftest.err
5079 cat conftest.err >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } >/dev/null && {
5082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5083 test ! -s conftest.err
5087 echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5090 # Broken: fails on valid input.
5094 rm -f conftest.err conftest.$ac_ext
5096 # OK, works on sane cases. Now check whether nonexistent headers
5097 # can be detected and how.
5098 cat >conftest.$ac_ext <<_ACEOF
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h. */
5104 #include <ac_nonexistent.h>
5106 if { (ac_try="$ac_cpp conftest.$ac_ext"
5108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109 *) ac_try_echo=$ac_try;;
5111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5114 grep -v '^ *+' conftest.er1 >conftest.err
5116 cat conftest.err >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } >/dev/null && {
5119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5120 test ! -s conftest.err
5122 # Broken: success on invalid input.
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5128 # Passes both tests.
5133 rm -f conftest.err conftest.$ac_ext
5136 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5137 rm -f conftest.err conftest.$ac_ext
5138 if $ac_preproc_ok; then
5141 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5142 See \`config.log' for more details." >&5
5143 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5144 See \`config.log' for more details." >&2;}
5145 { (exit 1); exit 1; }; }
5149 ac_cpp='$CPP $CPPFLAGS'
5150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5155 ac_cpp='$CPP $CPPFLAGS'
5156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5159 if test -n "$ac_tool_prefix"; then
5162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5163 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5166 if test "${ac_cv_prog_CC+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 if test -n "$CC"; then
5170 ac_cv_prog_CC="$CC" # Let the user override the test.
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5179 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 if test -n "$CC"; then
5191 { echo "$as_me:$LINENO: result: $CC" >&5
5192 echo "${ECHO_T}$CC" >&6; }
5194 { echo "$as_me:$LINENO: result: no" >&5
5195 echo "${ECHO_T}no" >&6; }
5199 test -n "$CC" && break
5202 if test -z "$CC"; then
5206 # Extract the first word of "$ac_prog", so it can be a program name with args.
5207 set dummy $ac_prog; ac_word=$2
5208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 if test -n "$ac_ct_CC"; then
5214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_prog_ac_ct_CC="$ac_prog"
5224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5233 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5234 if test -n "$ac_ct_CC"; then
5235 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5236 echo "${ECHO_T}$ac_ct_CC" >&6; }
5238 { echo "$as_me:$LINENO: result: no" >&5
5239 echo "${ECHO_T}no" >&6; }
5243 test -n "$ac_ct_CC" && break
5246 if test "x$ac_ct_CC" = x; then
5249 case $cross_compiling:$ac_tool_warned in
5251 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5252 whose name does not start with the host triplet. If you think this
5253 configuration is useful to you, please write to autoconf@gnu.org." >&5
5254 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5255 whose name does not start with the host triplet. If you think this
5256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5257 ac_tool_warned=yes ;;
5264 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5265 See \`config.log' for more details." >&5
5266 echo "$as_me: error: no acceptable C compiler found in \$PATH
5267 See \`config.log' for more details." >&2;}
5268 { (exit 1); exit 1; }; }
5270 # Provide some information about the compiler.
5271 echo "$as_me:$LINENO: checking for C compiler version" >&5
5272 ac_compiler=`set X $ac_compile; echo $2`
5273 { (ac_try="$ac_compiler --version >&5"
5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276 *) ac_try_echo=$ac_try;;
5278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279 (eval "$ac_compiler --version >&5") 2>&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }
5283 { (ac_try="$ac_compiler -v >&5"
5285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286 *) ac_try_echo=$ac_try;;
5288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289 (eval "$ac_compiler -v >&5") 2>&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }
5293 { (ac_try="$ac_compiler -V >&5"
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299 (eval "$ac_compiler -V >&5") 2>&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }
5304 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5305 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5306 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5309 cat >conftest.$ac_ext <<_ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h. */
5327 rm -f conftest.$ac_objext
5328 if { (ac_try="$ac_compile"
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_compile") 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); } && {
5341 test -z "$ac_c_werror_flag" ||
5342 test ! -s conftest.err
5343 } && test -s conftest.$ac_objext; then
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5356 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5357 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5358 GCC=`test $ac_compiler_gnu = yes && echo yes`
5359 ac_test_CFLAGS=${CFLAGS+set}
5360 ac_save_CFLAGS=$CFLAGS
5361 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5362 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5363 if test "${ac_cv_prog_cc_g+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 ac_save_c_werror_flag=$ac_c_werror_flag
5367 ac_c_werror_flag=yes
5370 cat >conftest.$ac_ext <<_ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5385 rm -f conftest.$ac_objext
5386 if { (ac_try="$ac_compile"
5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392 (eval "$ac_compile") 2>conftest.er1
5394 grep -v '^ *+' conftest.er1 >conftest.err
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } && {
5399 test -z "$ac_c_werror_flag" ||
5400 test ! -s conftest.err
5401 } && test -s conftest.$ac_objext; then
5404 echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5408 cat >conftest.$ac_ext <<_ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h. */
5423 rm -f conftest.$ac_objext
5424 if { (ac_try="$ac_compile"
5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427 *) ac_try_echo=$ac_try;;
5429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5430 (eval "$ac_compile") 2>conftest.er1
5432 grep -v '^ *+' conftest.er1 >conftest.err
5434 cat conftest.err >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); } && {
5437 test -z "$ac_c_werror_flag" ||
5438 test ! -s conftest.err
5439 } && test -s conftest.$ac_objext; then
5442 echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5445 ac_c_werror_flag=$ac_save_c_werror_flag
5447 cat >conftest.$ac_ext <<_ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5462 rm -f conftest.$ac_objext
5463 if { (ac_try="$ac_compile"
5465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469 (eval "$ac_compile") 2>conftest.er1
5471 grep -v '^ *+' conftest.er1 >conftest.err
5473 cat conftest.err >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } && {
5476 test -z "$ac_c_werror_flag" ||
5477 test ! -s conftest.err
5478 } && test -s conftest.$ac_objext; then
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494 ac_c_werror_flag=$ac_save_c_werror_flag
5496 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5497 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5498 if test "$ac_test_CFLAGS" = set; then
5499 CFLAGS=$ac_save_CFLAGS
5500 elif test $ac_cv_prog_cc_g = yes; then
5501 if test "$GCC" = yes; then
5507 if test "$GCC" = yes; then
5513 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5514 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5515 if test "${ac_cv_prog_cc_c89+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 ac_cv_prog_cc_c89=no
5520 cat >conftest.$ac_ext <<_ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h. */
5528 #include <sys/types.h>
5529 #include <sys/stat.h>
5530 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5531 struct buf { int x; };
5532 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5533 static char *e (p, i)
5539 static char *f (char * (*g) (char **, int), char **p, ...)
5544 s = g (p, va_arg (v,int));
5549 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5550 function prototypes and stuff, but not '\xHH' hex character constants.
5551 These don't provoke an error unfortunately, instead are silently treated
5552 as 'x'. The following induces an error, until -std is added to get
5553 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5554 array size at least. It's necessary to write '\x00'==0 to get something
5555 that's true only with -std. */
5556 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5558 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5559 inside strings and character constants. */
5561 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5563 int test (int i, double x);
5564 struct s1 {int (*f) (int a);};
5565 struct s2 {int (*f) (double a);};
5566 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5572 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5577 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5578 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5580 CC="$ac_save_CC $ac_arg"
5581 rm -f conftest.$ac_objext
5582 if { (ac_try="$ac_compile"
5584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5585 *) ac_try_echo=$ac_try;;
5587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5588 (eval "$ac_compile") 2>conftest.er1
5590 grep -v '^ *+' conftest.er1 >conftest.err
5592 cat conftest.err >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } && {
5595 test -z "$ac_c_werror_flag" ||
5596 test ! -s conftest.err
5597 } && test -s conftest.$ac_objext; then
5598 ac_cv_prog_cc_c89=$ac_arg
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5606 rm -f core conftest.err conftest.$ac_objext
5607 test "x$ac_cv_prog_cc_c89" != "xno" && break
5609 rm -f conftest.$ac_ext
5614 case "x$ac_cv_prog_cc_c89" in
5616 { echo "$as_me:$LINENO: result: none needed" >&5
5617 echo "${ECHO_T}none needed" >&6; } ;;
5619 { echo "$as_me:$LINENO: result: unsupported" >&5
5620 echo "${ECHO_T}unsupported" >&6; } ;;
5622 CC="$CC $ac_cv_prog_cc_c89"
5623 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5624 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5629 ac_cpp='$CPP $CPPFLAGS'
5630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5635 ac_cpp='$CXXCPP $CPPFLAGS'
5636 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5639 if test -z "$CXX"; then
5640 if test -n "$CCC"; then
5643 if test -n "$ac_tool_prefix"; then
5646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5650 if test "${ac_cv_prog_CXX+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 if test -n "$CXX"; then
5654 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 test -z "$as_dir" && as_dir=.
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5663 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5674 if test -n "$CXX"; then
5675 { echo "$as_me:$LINENO: result: $CXX" >&5
5676 echo "${ECHO_T}$CXX" >&6; }
5678 { echo "$as_me:$LINENO: result: no" >&5
5679 echo "${ECHO_T}no" >&6; }
5683 test -n "$CXX" && break
5686 if test -z "$CXX"; then
5690 # Extract the first word of "$ac_prog", so it can be a program name with args.
5691 set dummy $ac_prog; ac_word=$2
5692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5694 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 if test -n "$ac_ct_CXX"; then
5698 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 test -z "$as_dir" && as_dir=.
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5707 ac_cv_prog_ac_ct_CXX="$ac_prog"
5708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5717 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5718 if test -n "$ac_ct_CXX"; then
5719 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5720 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5722 { echo "$as_me:$LINENO: result: no" >&5
5723 echo "${ECHO_T}no" >&6; }
5727 test -n "$ac_ct_CXX" && break
5730 if test "x$ac_ct_CXX" = x; then
5733 case $cross_compiling:$ac_tool_warned in
5735 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5736 whose name does not start with the host triplet. If you think this
5737 configuration is useful to you, please write to autoconf@gnu.org." >&5
5738 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5739 whose name does not start with the host triplet. If you think this
5740 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5741 ac_tool_warned=yes ;;
5749 # Provide some information about the compiler.
5750 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5751 ac_compiler=`set X $ac_compile; echo $2`
5752 { (ac_try="$ac_compiler --version >&5"
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_compiler --version >&5") 2>&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); }
5762 { (ac_try="$ac_compiler -v >&5"
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_compiler -v >&5") 2>&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }
5772 { (ac_try="$ac_compiler -V >&5"
5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_compiler -V >&5") 2>&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }
5783 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5784 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5785 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 cat >conftest.$ac_ext <<_ACEOF
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h. */
5806 rm -f conftest.$ac_objext
5807 if { (ac_try="$ac_compile"
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_compile") 2>conftest.er1
5815 grep -v '^ *+' conftest.er1 >conftest.err
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } && {
5820 test -z "$ac_cxx_werror_flag" ||
5821 test ! -s conftest.err
5822 } && test -s conftest.$ac_objext; then
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5835 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5836 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5837 GXX=`test $ac_compiler_gnu = yes && echo yes`
5838 ac_test_CXXFLAGS=${CXXFLAGS+set}
5839 ac_save_CXXFLAGS=$CXXFLAGS
5840 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5841 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5842 if test "${ac_cv_prog_cxx_g+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5846 ac_cxx_werror_flag=yes
5849 cat >conftest.$ac_ext <<_ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5864 rm -f conftest.$ac_objext
5865 if { (ac_try="$ac_compile"
5867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871 (eval "$ac_compile") 2>conftest.er1
5873 grep -v '^ *+' conftest.er1 >conftest.err
5875 cat conftest.err >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } && {
5878 test -z "$ac_cxx_werror_flag" ||
5879 test ! -s conftest.err
5880 } && test -s conftest.$ac_objext; then
5881 ac_cv_prog_cxx_g=yes
5883 echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5887 cat >conftest.$ac_ext <<_ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5902 rm -f conftest.$ac_objext
5903 if { (ac_try="$ac_compile"
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_compile") 2>conftest.er1
5911 grep -v '^ *+' conftest.er1 >conftest.err
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } && {
5916 test -z "$ac_cxx_werror_flag" ||
5917 test ! -s conftest.err
5918 } && test -s conftest.$ac_objext; then
5921 echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5924 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5926 cat >conftest.$ac_ext <<_ACEOF
5929 cat confdefs.h >>conftest.$ac_ext
5930 cat >>conftest.$ac_ext <<_ACEOF
5931 /* end confdefs.h. */
5941 rm -f conftest.$ac_objext
5942 if { (ac_try="$ac_compile"
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_compile") 2>conftest.er1
5950 grep -v '^ *+' conftest.er1 >conftest.err
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } && {
5955 test -z "$ac_cxx_werror_flag" ||
5956 test ! -s conftest.err
5957 } && test -s conftest.$ac_objext; then
5958 ac_cv_prog_cxx_g=yes
5960 echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5975 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5976 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5977 if test "$ac_test_CXXFLAGS" = set; then
5978 CXXFLAGS=$ac_save_CXXFLAGS
5979 elif test $ac_cv_prog_cxx_g = yes; then
5980 if test "$GXX" = yes; then
5986 if test "$GXX" = yes; then
5993 ac_cpp='$CPP $CPPFLAGS'
5994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5999 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6000 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6001 if test "${lt_cv_path_NM+set}" = set; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6004 if test -n "$NM"; then
6005 # Let the user override the test.
6008 lt_nm_to_check="${ac_tool_prefix}nm"
6009 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6010 lt_nm_to_check="$lt_nm_to_check nm"
6012 for lt_tmp_nm in $lt_nm_to_check; do
6013 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6014 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6016 test -z "$ac_dir" && ac_dir=.
6017 tmp_nm="$ac_dir/$lt_tmp_nm"
6018 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6019 # Check to see if the nm accepts a BSD-compat flag.
6020 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6021 # nm: unknown option "B" ignored
6022 # Tru64's nm complains that /dev/null is an invalid object file
6023 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6024 */dev/null* | *'Invalid file or object type'*)
6025 lt_cv_path_NM="$tmp_nm -B"
6029 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6031 lt_cv_path_NM="$tmp_nm -p"
6035 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6036 continue # so that we can try to find one that supports BSD flags
6045 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6048 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6049 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6054 { echo "$as_me:$LINENO: checking for GNU make" >&5
6055 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6056 if test "${llvm_cv_gnu_make_command+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 llvm_cv_gnu_make_command=''
6060 for a in "$MAKE" make gmake gnumake ; do
6061 if test -z "$a" ; then continue ; fi ;
6062 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6064 llvm_cv_gnu_make_command=$a ;
6069 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6070 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6071 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6075 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6076 echo "${ECHO_T}\"Not found\"" >&6; };
6080 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6081 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6083 if test "$LN_S" = "ln -s"; then
6084 { echo "$as_me:$LINENO: result: yes" >&5
6085 echo "${ECHO_T}yes" >&6; }
6087 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6088 echo "${ECHO_T}no, using $LN_S" >&6; }
6091 # Extract the first word of "cmp", so it can be a program name with args.
6092 set dummy cmp; ac_word=$2
6093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6095 if test "${ac_cv_path_CMP+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6110 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6123 if test -n "$CMP"; then
6124 { echo "$as_me:$LINENO: result: $CMP" >&5
6125 echo "${ECHO_T}$CMP" >&6; }
6127 { echo "$as_me:$LINENO: result: no" >&5
6128 echo "${ECHO_T}no" >&6; }
6132 # Extract the first word of "cp", so it can be a program name with args.
6133 set dummy cp; ac_word=$2
6134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6136 if test "${ac_cv_path_CP+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6151 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6159 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6164 if test -n "$CP"; then
6165 { echo "$as_me:$LINENO: result: $CP" >&5
6166 echo "${ECHO_T}$CP" >&6; }
6168 { echo "$as_me:$LINENO: result: no" >&5
6169 echo "${ECHO_T}no" >&6; }
6173 # Extract the first word of "date", so it can be a program name with args.
6174 set dummy date; ac_word=$2
6175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6177 if test "${ac_cv_path_DATE+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 test -z "$as_dir" && as_dir=.
6190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6192 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6204 DATE=$ac_cv_path_DATE
6205 if test -n "$DATE"; then
6206 { echo "$as_me:$LINENO: result: $DATE" >&5
6207 echo "${ECHO_T}$DATE" >&6; }
6209 { echo "$as_me:$LINENO: result: no" >&5
6210 echo "${ECHO_T}no" >&6; }
6214 # Extract the first word of "find", so it can be a program name with args.
6215 set dummy find; ac_word=$2
6216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6218 if test "${ac_cv_path_FIND+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 test -z "$as_dir" && as_dir=.
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6233 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6245 FIND=$ac_cv_path_FIND
6246 if test -n "$FIND"; then
6247 { echo "$as_me:$LINENO: result: $FIND" >&5
6248 echo "${ECHO_T}$FIND" >&6; }
6250 { echo "$as_me:$LINENO: result: no" >&5
6251 echo "${ECHO_T}no" >&6; }
6255 # Extract the first word of "grep", so it can be a program name with args.
6256 set dummy grep; ac_word=$2
6257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6259 if test "${ac_cv_path_GREP+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 test -z "$as_dir" && as_dir=.
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6274 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6286 GREP=$ac_cv_path_GREP
6287 if test -n "$GREP"; then
6288 { echo "$as_me:$LINENO: result: $GREP" >&5
6289 echo "${ECHO_T}$GREP" >&6; }
6291 { echo "$as_me:$LINENO: result: no" >&5
6292 echo "${ECHO_T}no" >&6; }
6296 # Extract the first word of "mkdir", so it can be a program name with args.
6297 set dummy mkdir; ac_word=$2
6298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6300 if test "${ac_cv_path_MKDIR+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 test -z "$as_dir" && as_dir=.
6313 for ac_exec_ext in '' $ac_executable_extensions; do
6314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6315 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6323 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6327 MKDIR=$ac_cv_path_MKDIR
6328 if test -n "$MKDIR"; then
6329 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6330 echo "${ECHO_T}$MKDIR" >&6; }
6332 { echo "$as_me:$LINENO: result: no" >&5
6333 echo "${ECHO_T}no" >&6; }
6337 # Extract the first word of "mv", so it can be a program name with args.
6338 set dummy mv; ac_word=$2
6339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6341 if test "${ac_cv_path_MV+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6356 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6369 if test -n "$MV"; then
6370 { echo "$as_me:$LINENO: result: $MV" >&5
6371 echo "${ECHO_T}$MV" >&6; }
6373 { echo "$as_me:$LINENO: result: no" >&5
6374 echo "${ECHO_T}no" >&6; }
6378 if test -n "$ac_tool_prefix"; then
6379 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6380 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6383 if test "${ac_cv_prog_RANLIB+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 if test -n "$RANLIB"; then
6387 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6396 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 RANLIB=$ac_cv_prog_RANLIB
6407 if test -n "$RANLIB"; then
6408 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6409 echo "${ECHO_T}$RANLIB" >&6; }
6411 { echo "$as_me:$LINENO: result: no" >&5
6412 echo "${ECHO_T}no" >&6; }
6417 if test -z "$ac_cv_prog_RANLIB"; then
6418 ac_ct_RANLIB=$RANLIB
6419 # Extract the first word of "ranlib", so it can be a program name with args.
6420 set dummy ranlib; ac_word=$2
6421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6423 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 if test -n "$ac_ct_RANLIB"; then
6427 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436 ac_cv_prog_ac_ct_RANLIB="ranlib"
6437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6447 if test -n "$ac_ct_RANLIB"; then
6448 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6449 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6451 { echo "$as_me:$LINENO: result: no" >&5
6452 echo "${ECHO_T}no" >&6; }
6455 if test "x$ac_ct_RANLIB" = x; then
6458 case $cross_compiling:$ac_tool_warned in
6460 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6461 whose name does not start with the host triplet. If you think this
6462 configuration is useful to you, please write to autoconf@gnu.org." >&5
6463 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6464 whose name does not start with the host triplet. If you think this
6465 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6466 ac_tool_warned=yes ;;
6468 RANLIB=$ac_ct_RANLIB
6471 RANLIB="$ac_cv_prog_RANLIB"
6474 # Extract the first word of "rm", so it can be a program name with args.
6475 set dummy rm; ac_word=$2
6476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6478 if test "${ac_cv_path_RM+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6506 if test -n "$RM"; then
6507 { echo "$as_me:$LINENO: result: $RM" >&5
6508 echo "${ECHO_T}$RM" >&6; }
6510 { echo "$as_me:$LINENO: result: no" >&5
6511 echo "${ECHO_T}no" >&6; }
6515 # Extract the first word of "sed", so it can be a program name with args.
6516 set dummy sed; ac_word=$2
6517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6519 if test "${ac_cv_path_SED+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6524 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 test -z "$as_dir" && as_dir=.
6532 for ac_exec_ext in '' $ac_executable_extensions; do
6533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6534 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6542 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6547 if test -n "$SED"; then
6548 { echo "$as_me:$LINENO: result: $SED" >&5
6549 echo "${ECHO_T}$SED" >&6; }
6551 { echo "$as_me:$LINENO: result: no" >&5
6552 echo "${ECHO_T}no" >&6; }
6556 # Extract the first word of "tar", so it can be a program name with args.
6557 set dummy tar; ac_word=$2
6558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6560 if test "${ac_cv_path_TAR+set}" = set; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 test -z "$as_dir" && as_dir=.
6573 for ac_exec_ext in '' $ac_executable_extensions; do
6574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6575 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6588 if test -n "$TAR"; then
6589 { echo "$as_me:$LINENO: result: $TAR" >&5
6590 echo "${ECHO_T}$TAR" >&6; }
6592 { echo "$as_me:$LINENO: result: no" >&5
6593 echo "${ECHO_T}no" >&6; }
6597 # Extract the first word of "pwd", so it can be a program name with args.
6598 set dummy pwd; ac_word=$2
6599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6601 if test "${ac_cv_path_BINPWD+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6606 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 test -z "$as_dir" && as_dir=.
6614 for ac_exec_ext in '' $ac_executable_extensions; do
6615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6616 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6624 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6628 BINPWD=$ac_cv_path_BINPWD
6629 if test -n "$BINPWD"; then
6630 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6631 echo "${ECHO_T}$BINPWD" >&6; }
6633 { echo "$as_me:$LINENO: result: no" >&5
6634 echo "${ECHO_T}no" >&6; }
6639 # Extract the first word of "Graphviz", so it can be a program name with args.
6640 set dummy Graphviz; ac_word=$2
6641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6643 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6658 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6670 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6671 if test -n "$GRAPHVIZ"; then
6672 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6673 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6675 { echo "$as_me:$LINENO: result: no" >&5
6676 echo "${ECHO_T}no" >&6; }
6680 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6682 cat >>confdefs.h <<\_ACEOF
6683 #define HAVE_GRAPHVIZ 1
6686 if test "$llvm_cv_os_type" = "MingW" ; then
6687 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6690 cat >>confdefs.h <<_ACEOF
6691 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6695 # Extract the first word of "dot", so it can be a program name with args.
6696 set dummy dot; ac_word=$2
6697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699 if test "${ac_cv_path_DOT+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
6713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6714 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6727 if test -n "$DOT"; then
6728 { echo "$as_me:$LINENO: result: $DOT" >&5
6729 echo "${ECHO_T}$DOT" >&6; }
6731 { echo "$as_me:$LINENO: result: no" >&5
6732 echo "${ECHO_T}no" >&6; }
6736 if test "$DOT" != "echo dot" ; then
6738 cat >>confdefs.h <<\_ACEOF
6742 if test "$llvm_cv_os_type" = "MingW" ; then
6743 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6746 cat >>confdefs.h <<_ACEOF
6747 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6751 for ac_prog in gv gsview32
6753 # Extract the first word of "$ac_prog", so it can be a program name with args.
6754 set dummy $ac_prog; ac_word=$2
6755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6757 if test "${ac_cv_path_GV+set}" = set; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6762 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6772 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 if test -n "$GV"; then
6785 { echo "$as_me:$LINENO: result: $GV" >&5
6786 echo "${ECHO_T}$GV" >&6; }
6788 { echo "$as_me:$LINENO: result: no" >&5
6789 echo "${ECHO_T}no" >&6; }
6793 test -n "$GV" && break
6795 test -n "$GV" || GV="echo gv"
6797 if test "$GV" != "echo gv" ; then
6799 cat >>confdefs.h <<\_ACEOF
6803 if test "$llvm_cv_os_type" = "MingW" ; then
6804 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6807 cat >>confdefs.h <<_ACEOF
6808 #define LLVM_PATH_GV "$GV${EXEEXT}"
6812 # Extract the first word of "dotty", so it can be a program name with args.
6813 set dummy dotty; ac_word=$2
6814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816 if test "${ac_cv_path_DOTTY+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6843 DOTTY=$ac_cv_path_DOTTY
6844 if test -n "$DOTTY"; then
6845 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6846 echo "${ECHO_T}$DOTTY" >&6; }
6848 { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6853 if test "$DOTTY" != "echo dotty" ; then
6855 cat >>confdefs.h <<\_ACEOF
6856 #define HAVE_DOTTY 1
6859 if test "$llvm_cv_os_type" = "MingW" ; then
6860 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6863 cat >>confdefs.h <<_ACEOF
6864 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6870 # Extract the first word of "perl", so it can be a program name with args.
6871 set dummy perl; ac_word=$2
6872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6874 if test "${ac_cv_path_PERL+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6889 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6901 PERL=$ac_cv_path_PERL
6902 if test -n "$PERL"; then
6903 { echo "$as_me:$LINENO: result: $PERL" >&5
6904 echo "${ECHO_T}$PERL" >&6; }
6906 { echo "$as_me:$LINENO: result: no" >&5
6907 echo "${ECHO_T}no" >&6; }
6911 if test "$PERL" != "none"; then
6912 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6913 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6914 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6915 { echo "$as_me:$LINENO: result: yes" >&5
6916 echo "${ECHO_T}yes" >&6; }
6919 { echo "$as_me:$LINENO: result: not found" >&5
6920 echo "${ECHO_T}not found" >&6; }
6925 if test x"$PERL" = xnone; then
6928 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6929 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6930 { (exit 1); exit 1; }; }
6936 # Find a good install program. We prefer a C program (faster),
6937 # so one script is as good as another. But avoid the broken or
6938 # incompatible versions:
6939 # SysV /etc/install, /usr/sbin/install
6940 # SunOS /usr/etc/install
6941 # IRIX /sbin/install
6943 # AmigaOS /C/install, which installs bootblocks on floppy discs
6944 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6945 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6946 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6947 # OS/2's system install, which has a completely different semantic
6948 # ./install, which can be erroneously created by make from ./install.sh.
6949 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6950 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6951 if test -z "$INSTALL"; then
6952 if test "${ac_cv_path_install+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 test -z "$as_dir" && as_dir=.
6960 # Account for people who put trailing slashes in PATH elements.
6962 ./ | .// | /cC/* | \
6963 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6964 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6967 # OSF1 and SCO ODT 3.0 have their own names for install.
6968 # Don't use installbsd from OSF since it installs stuff as root
6970 for ac_prog in ginstall scoinst install; do
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6973 if test $ac_prog = install &&
6974 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6975 # AIX install. It has an incompatible calling convention.
6977 elif test $ac_prog = install &&
6978 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6979 # program-specific install script used by HP pwplus--don't use.
6982 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6995 if test "${ac_cv_path_install+set}" = set; then
6996 INSTALL=$ac_cv_path_install
6998 # As a last resort, use the slow shell script. Don't cache a
6999 # value for INSTALL within a source directory, because that will
7000 # break other packages using the cache if that directory is
7001 # removed, or if the value is a relative name.
7002 INSTALL=$ac_install_sh
7005 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7006 echo "${ECHO_T}$INSTALL" >&6; }
7008 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7009 # It thinks the first close brace ends the variable substitution.
7010 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7012 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7014 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7017 # Extract the first word of "bzip2", so it can be a program name with args.
7018 set dummy bzip2; ac_word=$2
7019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021 if test "${ac_cv_path_BZIP2+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7036 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 BZIP2=$ac_cv_path_BZIP2
7048 if test -n "$BZIP2"; then
7049 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7050 echo "${ECHO_T}$BZIP2" >&6; }
7052 { echo "$as_me:$LINENO: result: no" >&5
7053 echo "${ECHO_T}no" >&6; }
7057 # Extract the first word of "doxygen", so it can be a program name with args.
7058 set dummy doxygen; ac_word=$2
7059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7061 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7076 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 DOXYGEN=$ac_cv_path_DOXYGEN
7088 if test -n "$DOXYGEN"; then
7089 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7090 echo "${ECHO_T}$DOXYGEN" >&6; }
7092 { echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6; }
7097 # Extract the first word of "groff", so it can be a program name with args.
7098 set dummy groff; ac_word=$2
7099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101 if test "${ac_cv_path_GROFF+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 test -z "$as_dir" && as_dir=.
7114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7116 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 GROFF=$ac_cv_path_GROFF
7128 if test -n "$GROFF"; then
7129 { echo "$as_me:$LINENO: result: $GROFF" >&5
7130 echo "${ECHO_T}$GROFF" >&6; }
7132 { echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6; }
7137 # Extract the first word of "gzip", so it can be a program name with args.
7138 set dummy gzip; ac_word=$2
7139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141 if test "${ac_cv_path_GZIP+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7156 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 GZIP=$ac_cv_path_GZIP
7168 if test -n "$GZIP"; then
7169 { echo "$as_me:$LINENO: result: $GZIP" >&5
7170 echo "${ECHO_T}$GZIP" >&6; }
7172 { echo "$as_me:$LINENO: result: no" >&5
7173 echo "${ECHO_T}no" >&6; }
7177 # Extract the first word of "pod2html", so it can be a program name with args.
7178 set dummy pod2html; ac_word=$2
7179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7181 if test "${ac_cv_path_POD2HTML+set}" = set; then
7182 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7196 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 POD2HTML=$ac_cv_path_POD2HTML
7208 if test -n "$POD2HTML"; then
7209 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7210 echo "${ECHO_T}$POD2HTML" >&6; }
7212 { echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6; }
7217 # Extract the first word of "pod2man", so it can be a program name with args.
7218 set dummy pod2man; ac_word=$2
7219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7221 if test "${ac_cv_path_POD2MAN+set}" = set; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7236 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 POD2MAN=$ac_cv_path_POD2MAN
7248 if test -n "$POD2MAN"; then
7249 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7250 echo "${ECHO_T}$POD2MAN" >&6; }
7252 { echo "$as_me:$LINENO: result: no" >&5
7253 echo "${ECHO_T}no" >&6; }
7257 # Extract the first word of "runtest", so it can be a program name with args.
7258 set dummy runtest; ac_word=$2
7259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7261 if test "${ac_cv_path_RUNTEST+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7276 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 RUNTEST=$ac_cv_path_RUNTEST
7288 if test -n "$RUNTEST"; then
7289 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7290 echo "${ECHO_T}$RUNTEST" >&6; }
7292 { echo "$as_me:$LINENO: result: no" >&5
7293 echo "${ECHO_T}no" >&6; }
7299 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7300 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7302 # Check whether --with-tclinclude was given.
7303 if test "${with_tclinclude+set}" = set; then
7304 withval=$with_tclinclude; with_tclinclude=${withval}
7309 if test "${ac_cv_path_tclsh+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 if test x"${with_tclinclude}" != x ; then
7314 if test -f ${with_tclinclude}/tclsh ; then
7315 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7316 elif test -f ${with_tclinclude}/src/tclsh ; then
7317 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7319 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7320 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7321 { (exit 1); exit 1; }; }
7325 if test x"${ac_cv_path_tclsh}" = x ; then
7326 { echo "$as_me:$LINENO: result: none" >&5
7327 echo "${ECHO_T}none" >&6; }
7328 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
7330 # Extract the first word of "$ac_prog", so it can be a program name with args.
7331 set dummy $ac_prog; ac_word=$2
7332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7334 if test "${ac_cv_path_TCLSH+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 test -z "$as_dir" && as_dir=.
7347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7349 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 TCLSH=$ac_cv_path_TCLSH
7361 if test -n "$TCLSH"; then
7362 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7363 echo "${ECHO_T}$TCLSH" >&6; }
7365 { echo "$as_me:$LINENO: result: no" >&5
7366 echo "${ECHO_T}no" >&6; }
7370 test -n "$TCLSH" && break
7373 if test x"${TCLSH}" = x ; then
7374 ac_cv_path_tclsh='';
7376 ac_cv_path_tclsh="${TCLSH}";
7379 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7380 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7381 TCLSH="${ac_cv_path_tclsh}"
7387 # Extract the first word of "zip", so it can be a program name with args.
7388 set dummy zip; ac_word=$2
7389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7391 if test "${ac_cv_path_ZIP+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7396 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7406 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7418 if test -n "$ZIP"; then
7419 { echo "$as_me:$LINENO: result: $ZIP" >&5
7420 echo "${ECHO_T}$ZIP" >&6; }
7422 { echo "$as_me:$LINENO: result: no" >&5
7423 echo "${ECHO_T}no" >&6; }
7427 for ac_prog in ocamlc
7429 # Extract the first word of "$ac_prog", so it can be a program name with args.
7430 set dummy $ac_prog; ac_word=$2
7431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7433 if test "${ac_cv_path_OCAMLC+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7438 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 test -z "$as_dir" && as_dir=.
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7448 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7459 OCAMLC=$ac_cv_path_OCAMLC
7460 if test -n "$OCAMLC"; then
7461 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7462 echo "${ECHO_T}$OCAMLC" >&6; }
7464 { echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6; }
7469 test -n "$OCAMLC" && break
7472 for ac_prog in ocamlopt
7474 # Extract the first word of "$ac_prog", so it can be a program name with args.
7475 set dummy $ac_prog; ac_word=$2
7476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7478 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7493 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 OCAMLOPT=$ac_cv_path_OCAMLOPT
7505 if test -n "$OCAMLOPT"; then
7506 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7507 echo "${ECHO_T}$OCAMLOPT" >&6; }
7509 { echo "$as_me:$LINENO: result: no" >&5
7510 echo "${ECHO_T}no" >&6; }
7514 test -n "$OCAMLOPT" && break
7517 for ac_prog in ocamldep
7519 # Extract the first word of "$ac_prog", so it can be a program name with args.
7520 set dummy $ac_prog; ac_word=$2
7521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7523 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7538 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7549 OCAMLDEP=$ac_cv_path_OCAMLDEP
7550 if test -n "$OCAMLDEP"; then
7551 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7552 echo "${ECHO_T}$OCAMLDEP" >&6; }
7554 { echo "$as_me:$LINENO: result: no" >&5
7555 echo "${ECHO_T}no" >&6; }
7559 test -n "$OCAMLDEP" && break
7562 for ac_prog in ocamldoc
7564 # Extract the first word of "$ac_prog", so it can be a program name with args.
7565 set dummy $ac_prog; ac_word=$2
7566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7568 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580 test -z "$as_dir" && as_dir=.
7581 for ac_exec_ext in '' $ac_executable_extensions; do
7582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7583 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7594 OCAMLDOC=$ac_cv_path_OCAMLDOC
7595 if test -n "$OCAMLDOC"; then
7596 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7597 echo "${ECHO_T}$OCAMLDOC" >&6; }
7599 { echo "$as_me:$LINENO: result: no" >&5
7600 echo "${ECHO_T}no" >&6; }
7604 test -n "$OCAMLDOC" && break
7607 for ac_prog in gas as
7609 # Extract the first word of "$ac_prog", so it can be a program name with args.
7610 set dummy $ac_prog; ac_word=$2
7611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7613 if test "${ac_cv_path_GAS+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7628 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 if test -n "$GAS"; then
7641 { echo "$as_me:$LINENO: result: $GAS" >&5
7642 echo "${ECHO_T}$GAS" >&6; }
7644 { echo "$as_me:$LINENO: result: no" >&5
7645 echo "${ECHO_T}no" >&6; }
7649 test -n "$GAS" && break
7653 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7654 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7655 if test "${llvm_cv_link_use_r+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7659 ac_cpp='$CPP $CPPFLAGS'
7660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7665 CFLAGS="$CFLAGS -Wl,-R."
7666 cat >conftest.$ac_ext <<_ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h. */
7676 int main() { return 0; }
7681 rm -f conftest.$ac_objext conftest$ac_exeext
7682 if { (ac_try="$ac_link"
7684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685 *) ac_try_echo=$ac_try;;
7687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7688 (eval "$ac_link") 2>conftest.er1
7690 grep -v '^ *+' conftest.er1 >conftest.err
7692 cat conftest.err >&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); } && {
7695 test -z "$ac_c_werror_flag" ||
7696 test ! -s conftest.err
7697 } && test -s conftest$ac_exeext &&
7698 $as_test_x conftest$ac_exeext; then
7699 llvm_cv_link_use_r=yes
7701 echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7704 llvm_cv_link_use_r=no
7707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7708 conftest$ac_exeext conftest.$ac_ext
7711 ac_cpp='$CPP $CPPFLAGS'
7712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7718 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7719 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7720 if test "$llvm_cv_link_use_r" = yes ; then
7722 cat >>confdefs.h <<\_ACEOF
7723 #define HAVE_LINK_R 1
7729 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7730 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7731 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 ac_cpp='$CPP $CPPFLAGS'
7736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7741 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7742 cat >conftest.$ac_ext <<_ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h. */
7752 int main() { return 0; }
7757 rm -f conftest.$ac_objext conftest$ac_exeext
7758 if { (ac_try="$ac_link"
7760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761 *) ac_try_echo=$ac_try;;
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_link") 2>conftest.er1
7766 grep -v '^ *+' conftest.er1 >conftest.err
7768 cat conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } && {
7771 test -z "$ac_c_werror_flag" ||
7772 test ! -s conftest.err
7773 } && test -s conftest$ac_exeext &&
7774 $as_test_x conftest$ac_exeext; then
7775 llvm_cv_link_use_export_dynamic=yes
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.$ac_ext >&5
7780 llvm_cv_link_use_export_dynamic=no
7783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7784 conftest$ac_exeext conftest.$ac_ext
7787 ac_cpp='$CPP $CPPFLAGS'
7788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7794 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7795 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7796 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7798 cat >>confdefs.h <<\_ACEOF
7799 #define HAVE_LINK_EXPORT_DYNAMIC 1
7807 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7808 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7809 if test "${ac_cv_c_const+set}" = set; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7812 cat >conftest.$ac_ext <<_ACEOF
7815 cat confdefs.h >>conftest.$ac_ext
7816 cat >>conftest.$ac_ext <<_ACEOF
7817 /* end confdefs.h. */
7822 /* FIXME: Include the comments suggested by Paul. */
7824 /* Ultrix mips cc rejects this. */
7825 typedef int charset[2];
7827 /* SunOS 4.1.1 cc rejects this. */
7828 char const *const *pcpcc;
7830 /* NEC SVR4.0.2 mips cc rejects this. */
7831 struct point {int x, y;};
7832 static struct point const zero = {0,0};
7833 /* AIX XL C 1.02.0.0 rejects this.
7834 It does not let you subtract one const X* pointer from another in
7835 an arm of an if-expression whose if-part is not a constant
7837 const char *g = "string";
7838 pcpcc = &g + (g ? g-g : 0);
7839 /* HPUX 7.0 cc rejects these. */
7841 ppc = (char**) pcpcc;
7842 pcpcc = (char const *const *) ppc;
7843 { /* SCO 3.2v4 cc rejects this. */
7845 char const *s = 0 ? (char *) 0 : (char const *) 0;
7850 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7852 const int *foo = &x[0];
7855 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7856 typedef const int *iptr;
7860 { /* AIX XL C 1.02.0.0 rejects this saying
7861 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7862 struct s { int j; const int *ap[3]; };
7863 struct s *b; b->j = 5;
7865 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7869 return !cs[0] && !zero.x;
7876 rm -f conftest.$ac_objext
7877 if { (ac_try="$ac_compile"
7879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880 *) ac_try_echo=$ac_try;;
7882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883 (eval "$ac_compile") 2>conftest.er1
7885 grep -v '^ *+' conftest.er1 >conftest.err
7887 cat conftest.err >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } && {
7890 test -z "$ac_c_werror_flag" ||
7891 test ! -s conftest.err
7892 } && test -s conftest.$ac_objext; then
7895 echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7904 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7905 if test $ac_cv_c_const = no; then
7907 cat >>confdefs.h <<\_ACEOF
7919 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7920 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7921 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7922 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7926 cat >conftest.$ac_ext <<_ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7932 #include <sys/types.h>
7944 rm -f conftest.$ac_objext
7945 if { (ac_try="$ac_compile"
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948 *) ac_try_echo=$ac_try;;
7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951 (eval "$ac_compile") 2>conftest.er1
7953 grep -v '^ *+' conftest.er1 >conftest.err
7955 cat conftest.err >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } && {
7958 test -z "$ac_c_werror_flag" ||
7959 test ! -s conftest.err
7960 } && test -s conftest.$ac_objext; then
7961 eval "$as_ac_Header=yes"
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7966 eval "$as_ac_Header=no"
7969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7971 ac_res=`eval echo '${'$as_ac_Header'}'`
7972 { echo "$as_me:$LINENO: result: $ac_res" >&5
7973 echo "${ECHO_T}$ac_res" >&6; }
7974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7975 cat >>confdefs.h <<_ACEOF
7976 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7979 ac_header_dirent=$ac_hdr; break
7983 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7984 if test $ac_header_dirent = dirent.h; then
7985 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7986 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7987 if test "${ac_cv_search_opendir+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
7990 ac_func_search_save_LIBS=$LIBS
7991 cat >conftest.$ac_ext <<_ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
7998 /* Override any GCC internal prototype to avoid an error.
7999 Use char because int might match the return type of a GCC
8000 builtin and then its argument prototype would still apply. */
8013 for ac_lib in '' dir; do
8014 if test -z "$ac_lib"; then
8015 ac_res="none required"
8018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8020 rm -f conftest.$ac_objext conftest$ac_exeext
8021 if { (ac_try="$ac_link"
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027 (eval "$ac_link") 2>conftest.er1
8029 grep -v '^ *+' conftest.er1 >conftest.err
8031 cat conftest.err >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } && {
8034 test -z "$ac_c_werror_flag" ||
8035 test ! -s conftest.err
8036 } && test -s conftest$ac_exeext &&
8037 $as_test_x conftest$ac_exeext; then
8038 ac_cv_search_opendir=$ac_res
8040 echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.$ac_ext >&5
8046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8048 if test "${ac_cv_search_opendir+set}" = set; then
8052 if test "${ac_cv_search_opendir+set}" = set; then
8055 ac_cv_search_opendir=no
8058 LIBS=$ac_func_search_save_LIBS
8060 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8061 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8062 ac_res=$ac_cv_search_opendir
8063 if test "$ac_res" != no; then
8064 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8069 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8070 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8071 if test "${ac_cv_search_opendir+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8074 ac_func_search_save_LIBS=$LIBS
8075 cat >conftest.$ac_ext <<_ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h. */
8082 /* Override any GCC internal prototype to avoid an error.
8083 Use char because int might match the return type of a GCC
8084 builtin and then its argument prototype would still apply. */
8097 for ac_lib in '' x; do
8098 if test -z "$ac_lib"; then
8099 ac_res="none required"
8102 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8104 rm -f conftest.$ac_objext conftest$ac_exeext
8105 if { (ac_try="$ac_link"
8107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108 *) ac_try_echo=$ac_try;;
8110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111 (eval "$ac_link") 2>conftest.er1
8113 grep -v '^ *+' conftest.er1 >conftest.err
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } && {
8118 test -z "$ac_c_werror_flag" ||
8119 test ! -s conftest.err
8120 } && test -s conftest$ac_exeext &&
8121 $as_test_x conftest$ac_exeext; then
8122 ac_cv_search_opendir=$ac_res
8124 echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8132 if test "${ac_cv_search_opendir+set}" = set; then
8136 if test "${ac_cv_search_opendir+set}" = set; then
8139 ac_cv_search_opendir=no
8142 LIBS=$ac_func_search_save_LIBS
8144 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8145 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8146 ac_res=$ac_cv_search_opendir
8147 if test "$ac_res" != no; then
8148 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8155 for ac_header in dlfcn.h
8157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8164 ac_res=`eval echo '${'$as_ac_Header'}'`
8165 { echo "$as_me:$LINENO: result: $ac_res" >&5
8166 echo "${ECHO_T}$ac_res" >&6; }
8168 # Is the header compilable?
8169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8171 cat >conftest.$ac_ext <<_ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8177 $ac_includes_default
8178 #include <$ac_header>
8180 rm -f conftest.$ac_objext
8181 if { (ac_try="$ac_compile"
8183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184 *) ac_try_echo=$ac_try;;
8186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8187 (eval "$ac_compile") 2>conftest.er1
8189 grep -v '^ *+' conftest.er1 >conftest.err
8191 cat conftest.err >&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); } && {
8194 test -z "$ac_c_werror_flag" ||
8195 test ! -s conftest.err
8196 } && test -s conftest.$ac_objext; then
8197 ac_header_compiler=yes
8199 echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8202 ac_header_compiler=no
8205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8207 echo "${ECHO_T}$ac_header_compiler" >&6; }
8209 # Is the header present?
8210 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8212 cat >conftest.$ac_ext <<_ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h. */
8218 #include <$ac_header>
8220 if { (ac_try="$ac_cpp conftest.$ac_ext"
8222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223 *) ac_try_echo=$ac_try;;
8225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8228 grep -v '^ *+' conftest.er1 >conftest.err
8230 cat conftest.err >&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); } >/dev/null && {
8233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8234 test ! -s conftest.err
8236 ac_header_preproc=yes
8238 echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8241 ac_header_preproc=no
8244 rm -f conftest.err conftest.$ac_ext
8245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8246 echo "${ECHO_T}$ac_header_preproc" >&6; }
8248 # So? What about this header?
8249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8255 ac_header_preproc=yes
8258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8261 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8265 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8271 ## ----------------------------------- ##
8272 ## Report this to llvmbugs@cs.uiuc.edu ##
8273 ## ----------------------------------- ##
8275 ) | sed "s/^/$as_me: WARNING: /" >&2
8278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8283 eval "$as_ac_Header=\$ac_header_preproc"
8285 ac_res=`eval echo '${'$as_ac_Header'}'`
8286 { echo "$as_me:$LINENO: result: $ac_res" >&5
8287 echo "${ECHO_T}$ac_res" >&6; }
8290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8291 cat >>confdefs.h <<_ACEOF
8292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8299 # Check whether --enable-ltdl-install was given.
8300 if test "${enable_ltdl_install+set}" = set; then
8301 enableval=$enable_ltdl_install;
8305 if test x"${enable_ltdl_install-no}" != xno; then
8307 INSTALL_LTDL_FALSE='#'
8309 INSTALL_LTDL_TRUE='#'
8313 if test x"${enable_ltdl_convenience-no}" != xno; then
8314 CONVENIENCE_LTDL_TRUE=
8315 CONVENIENCE_LTDL_FALSE='#'
8317 CONVENIENCE_LTDL_TRUE='#'
8318 CONVENIENCE_LTDL_FALSE=
8322 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8323 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8325 libname_spec='lib$name'
8333 shlibpath_overrides_runpath=unknown
8335 dynamic_linker="$host_os ld.so"
8336 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8337 if test "$GCC" = yes; then
8338 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8339 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8340 # if the path contains ";" then we assume it to be the separator
8341 # otherwise default to the standard path separator (i.e. ":") - it is
8342 # assumed that no part of a normal pathname contains ";" but that should
8343 # okay in the real world where ";" in dirpaths is itself problematic.
8344 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8346 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8349 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8351 need_lib_prefix=unknown
8352 hardcode_into_libs=no
8354 # when you set need_version to no, make sure it does not cause -set_version
8355 # flags to be left without arguments
8356 need_version=unknown
8361 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8362 shlibpath_var=LIBPATH
8364 # AIX 3 has no versioning support, so we append a major version to the name.
8365 soname_spec='${libname}${release}${shared_ext}$major'
8372 hardcode_into_libs=yes
8373 if test "$host_cpu" = ia64; then
8374 # AIX 5 supports IA64
8375 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8376 shlibpath_var=LD_LIBRARY_PATH
8378 # With GCC up to 2.95.x, collect2 would create an import file
8379 # for dependence libraries. The import file would start with
8380 # the line `#! .'. This would cause the generated library to
8381 # depend on `.', always an invalid library. This was fixed in
8382 # development snapshots of GCC prior to 3.0.
8384 aix4 | aix4.[01] | aix4.[01].*)
8385 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8387 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8394 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8395 # soname into executable. Probably we can add versioning support to
8396 # collect2, so additional links can be useful in future.
8397 if test "$aix_use_runtimelinking" = yes; then
8398 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8399 # instead of lib<name>.a to let people know that these are not
8400 # typical AIX shared libraries.
8401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8403 # We preserve .a as extension for shared libraries through AIX4.2
8404 # and later when we are not doing run time linking.
8405 library_names_spec='${libname}${release}.a $libname.a'
8406 soname_spec='${libname}${release}${shared_ext}$major'
8408 shlibpath_var=LIBPATH
8413 library_names_spec='$libname.ixlibrary $libname.a'
8414 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8415 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'
8419 library_names_spec='${libname}${shared_ext}'
8420 dynamic_linker="$host_os ld.so"
8421 shlibpath_var=LIBRARY_PATH
8427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8428 soname_spec='${libname}${release}${shared_ext}$major'
8429 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8430 shlibpath_var=LD_LIBRARY_PATH
8431 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8432 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8433 # the default ld.so.conf also contains /usr/contrib/lib and
8434 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8435 # libtool to hard-code these into programs
8438 cygwin* | mingw* | pw32*)
8439 version_type=windows
8444 case $GCC,$host_os in
8445 yes,cygwin* | yes,mingw* | yes,pw32*)
8446 library_names_spec='$libname.dll.a'
8447 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8448 postinstall_cmds='base_file=`basename \${file}`~
8449 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8450 dldir=$destdir/`dirname \$dlpath`~
8451 test -d \$dldir || mkdir -p \$dldir~
8452 $install_prog $dir/$dlname \$dldir/$dlname~
8453 chmod a+x \$dldir/$dlname'
8454 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8455 dlpath=$dir/\$dldll~
8457 shlibpath_overrides_runpath=yes
8461 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8462 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8463 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8466 # MinGW DLLs use traditional 'lib' prefix
8467 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8468 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8469 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8470 # It is most probably a Windows format PATH printed by
8471 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8472 # path with ; separators, and with drive letters. We can handle the
8473 # drive letters (cygwin fileutils understands them), so leave them,
8474 # especially as we might pass files found there to a mingw objdump,
8475 # which wouldn't understand a cygwinified path. Ahh.
8476 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8478 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8482 # pw32 DLLs use 'pw' prefix rather than 'lib'
8483 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8489 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8492 dynamic_linker='Win32 ld.exe'
8493 # FIXME: first we should search . and the directory the executable is in
8497 darwin* | rhapsody*)
8498 dynamic_linker="$host_os dyld"
8502 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8503 soname_spec='${libname}${release}${major}$shared_ext'
8504 shlibpath_overrides_runpath=yes
8505 shlibpath_var=DYLD_LIBRARY_PATH
8506 shrext_cmds='.dylib'
8507 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8508 if test "$GCC" = yes; then
8509 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"`
8511 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8513 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8521 soname_spec='${libname}${release}${shared_ext}$major'
8522 shlibpath_var=LD_LIBRARY_PATH
8533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8534 soname_spec='${libname}${release}${shared_ext}$major'
8535 shlibpath_var=LD_LIBRARY_PATH
8536 shlibpath_overrides_runpath=no
8537 hardcode_into_libs=yes
8538 dynamic_linker='GNU ld.so'
8541 freebsd* | dragonfly*)
8542 # DragonFly does not have aout. When/if they implement a new
8543 # versioning mechanism, adjust this.
8544 if test -x /usr/bin/objformat; then
8545 objformat=`/usr/bin/objformat`
8548 freebsd[123]*) objformat=aout ;;
8552 version_type=freebsd-$objformat
8553 case $version_type in
8555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8560 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8564 shlibpath_var=LD_LIBRARY_PATH
8567 shlibpath_overrides_runpath=yes
8569 freebsd3.[01]* | freebsdelf3.[01]*)
8570 shlibpath_overrides_runpath=yes
8571 hardcode_into_libs=yes
8573 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8574 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8575 shlibpath_overrides_runpath=no
8576 hardcode_into_libs=yes
8578 freebsd*) # from 4.6 on
8579 shlibpath_overrides_runpath=yes
8580 hardcode_into_libs=yes
8589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8590 soname_spec='${libname}${release}${shared_ext}$major'
8591 shlibpath_var=LD_LIBRARY_PATH
8592 hardcode_into_libs=yes
8595 hpux9* | hpux10* | hpux11*)
8596 # Give a soname corresponding to the major version so that dld.sl refuses to
8597 # link against other versions.
8604 hardcode_into_libs=yes
8605 dynamic_linker="$host_os dld.so"
8606 shlibpath_var=LD_LIBRARY_PATH
8607 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8609 soname_spec='${libname}${release}${shared_ext}$major'
8610 if test "X$HPUX_IA64_MODE" = X32; then
8611 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8613 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8615 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8619 hardcode_into_libs=yes
8620 dynamic_linker="$host_os dld.sl"
8621 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8622 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8624 soname_spec='${libname}${release}${shared_ext}$major'
8625 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8626 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8630 dynamic_linker="$host_os dld.sl"
8631 shlibpath_var=SHLIB_PATH
8632 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8634 soname_spec='${libname}${release}${shared_ext}$major'
8637 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8638 postinstall_cmds='chmod 555 $lib'
8645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8646 soname_spec='${libname}${release}${shared_ext}$major'
8647 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8648 shlibpath_var=LD_LIBRARY_PATH
8649 shlibpath_overrides_runpath=no
8650 hardcode_into_libs=yes
8653 irix5* | irix6* | nonstopux*)
8655 nonstopux*) version_type=nonstopux ;;
8657 if test "$lt_cv_prog_gnu_ld" = yes; then
8665 soname_spec='${libname}${release}${shared_ext}$major'
8666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8668 irix5* | nonstopux*)
8672 case $LD in # libtool.m4 will add one of these switches to LD
8673 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8674 libsuff= shlibsuff= libmagic=32-bit;;
8675 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8676 libsuff=32 shlibsuff=N32 libmagic=N32;;
8677 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8678 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8679 *) libsuff= shlibsuff= libmagic=never-match;;
8683 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8684 shlibpath_overrides_runpath=no
8685 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8686 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8687 hardcode_into_libs=yes
8690 # No shared lib support for Linux oldld, aout, or coff.
8691 linux*oldld* | linux*aout* | linux*coff*)
8695 # This must be Linux ELF.
8700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8701 soname_spec='${libname}${release}${shared_ext}$major'
8702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8703 shlibpath_var=LD_LIBRARY_PATH
8704 shlibpath_overrides_runpath=no
8705 # This implies no fast_install, which is unacceptable.
8706 # Some rework will be needed to allow for fast_install
8707 # before this can be enabled.
8708 hardcode_into_libs=yes
8710 # Append ld.so.conf contents to the search path
8711 if test -f /etc/ld.so.conf; then
8712 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' ' '`
8713 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8716 # We used to test for /lib/ld.so.1 and disable shared libraries on
8717 # powerpc, because MkLinux only supported shared libraries with the
8718 # GNU dynamic linker. Since this was broken with cross compilers,
8719 # most powerpc-linux boxes support dynamic linking these days and
8720 # people can always --disable-shared, the test was removed, and we
8721 # assume the GNU/Linux dynamic linker is in use.
8722 dynamic_linker='GNU/Linux ld.so'
8729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8730 soname_spec='${libname}${release}${shared_ext}$major'
8731 shlibpath_var=LD_LIBRARY_PATH
8732 shlibpath_overrides_runpath=no
8733 hardcode_into_libs=yes
8734 dynamic_linker='GNU ld.so'
8741 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8744 dynamic_linker='NetBSD (a.out) ld.so'
8746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8747 soname_spec='${libname}${release}${shared_ext}$major'
8748 dynamic_linker='NetBSD ld.elf_so'
8750 shlibpath_var=LD_LIBRARY_PATH
8751 shlibpath_overrides_runpath=yes
8752 hardcode_into_libs=yes
8757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8758 shlibpath_var=LD_LIBRARY_PATH
8759 shlibpath_overrides_runpath=yes
8766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8767 soname_spec='${libname}${release}${shared_ext}$major'
8768 shlibpath_var=LD_LIBRARY_PATH
8769 shlibpath_overrides_runpath=yes
8774 sys_lib_dlsearch_path_spec="/usr/lib"
8776 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8778 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8779 *) need_version=no ;;
8781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8782 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8783 shlibpath_var=LD_LIBRARY_PATH
8784 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8786 openbsd2.[89] | openbsd2.[89].*)
8787 shlibpath_overrides_runpath=no
8790 shlibpath_overrides_runpath=yes
8794 shlibpath_overrides_runpath=yes
8799 libname_spec='$name'
8802 library_names_spec='$libname${shared_ext} $libname.a'
8803 dynamic_linker='OS/2 ld.exe'
8804 shlibpath_var=LIBPATH
8807 osf3* | osf4* | osf5*)
8811 soname_spec='${libname}${release}${shared_ext}$major'
8812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8813 shlibpath_var=LD_LIBRARY_PATH
8814 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8815 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8823 soname_spec='${libname}${release}${shared_ext}$major'
8824 shlibpath_var=LD_LIBRARY_PATH
8825 shlibpath_overrides_runpath=yes
8826 hardcode_into_libs=yes
8827 # ldd complains unless libraries are executable
8828 postinstall_cmds='chmod +x $lib'
8833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8834 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8835 shlibpath_var=LD_LIBRARY_PATH
8836 shlibpath_overrides_runpath=yes
8837 if test "$with_gnu_ld" = yes; then
8845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8846 soname_spec='${libname}${release}${shared_ext}$major'
8847 shlibpath_var=LD_LIBRARY_PATH
8848 case $host_vendor in
8850 shlibpath_overrides_runpath=no
8852 export_dynamic_flag_spec='${wl}-Blargedynsym'
8853 runpath_var=LD_RUN_PATH
8861 shlibpath_overrides_runpath=no
8862 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8868 if test -d /usr/nec ;then
8870 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8871 soname_spec='$libname${shared_ext}.$major'
8872 shlibpath_var=LD_LIBRARY_PATH
8876 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8877 version_type=freebsd-elf
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8881 soname_spec='${libname}${release}${shared_ext}$major'
8882 shlibpath_var=LD_LIBRARY_PATH
8883 hardcode_into_libs=yes
8884 if test "$with_gnu_ld" = yes; then
8885 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8886 shlibpath_overrides_runpath=no
8888 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8889 shlibpath_overrides_runpath=yes
8892 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8896 sys_lib_dlsearch_path_spec='/usr/lib'
8901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8902 soname_spec='${libname}${release}${shared_ext}$major'
8903 shlibpath_var=LD_LIBRARY_PATH
8910 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8911 echo "${ECHO_T}$dynamic_linker" >&6; }
8912 test "$dynamic_linker" = no && can_build_shared=no
8914 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8915 if test "$GCC" = yes; then
8916 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8920 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
8921 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
8922 if test "${libltdl_cv_shlibext+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8927 eval libltdl_cv_shlibext=$shrext_cmds
8930 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
8931 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
8932 if test -n "$libltdl_cv_shlibext"; then
8934 cat >>confdefs.h <<_ACEOF
8935 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
8941 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
8942 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
8943 if test "${libltdl_cv_shlibpath_var+set}" = set; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8946 libltdl_cv_shlibpath_var="$shlibpath_var"
8948 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
8949 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
8950 if test -n "$libltdl_cv_shlibpath_var"; then
8952 cat >>confdefs.h <<_ACEOF
8953 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
8959 { echo "$as_me:$LINENO: checking for the default library search path" >&5
8960 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
8961 if test "${libltdl_cv_sys_search_path+set}" = set; then
8962 echo $ECHO_N "(cached) $ECHO_C" >&6
8964 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
8966 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
8967 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
8968 if test -n "$libltdl_cv_sys_search_path"; then
8970 for dir in $libltdl_cv_sys_search_path; do
8971 if test -z "$sys_search_path"; then
8972 sys_search_path="$dir"
8974 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
8978 cat >>confdefs.h <<_ACEOF
8979 #define LTDL_SYSSEARCHPATH "$sys_search_path"
8984 { echo "$as_me:$LINENO: checking for objdir" >&5
8985 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8986 if test "${libltdl_cv_objdir+set}" = set; then
8987 echo $ECHO_N "(cached) $ECHO_C" >&6
8989 libltdl_cv_objdir="$objdir"
8990 if test -n "$objdir"; then
8993 rm -f .libs 2>/dev/null
8994 mkdir .libs 2>/dev/null
8995 if test -d .libs; then
8996 libltdl_cv_objdir=.libs
8998 # MS-DOS does not allow filenames that begin with a dot.
8999 libltdl_cv_objdir=_libs
9001 rmdir .libs 2>/dev/null
9005 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9006 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9008 cat >>confdefs.h <<_ACEOF
9009 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9017 # Check for command to grab the raw symbol name followed by C symbol from nm.
9018 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9019 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9020 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9021 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 # These are sane defaults that work on at least a few old systems.
9025 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9027 # Character class describing NM global symbol codes.
9028 symcode='[BCDEGRST]'
9030 # Regexp to match symbols that can be accessed directly from C.
9031 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9033 # Transform an extracted symbol line into a proper C declaration
9034 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9036 # Transform an extracted symbol line into symbol name and symbol address
9037 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'"
9039 # Define system-specific variables.
9044 cygwin* | mingw* | pw32*)
9045 symcode='[ABCDGISTW]'
9047 hpux*) # Its linker distinguishes data from code symbols
9048 if test "$host_cpu" = ia64; then
9049 symcode='[ABCDEGRST]'
9051 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9052 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'"
9055 if test "$host_cpu" = ia64; then
9056 symcode='[ABCDGIRSTW]'
9057 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9058 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'"
9062 symcode='[BCDEGRST]'
9065 symcode='[BCDEGQRST]'
9076 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9084 # Handle CRLF in mingw tool chain
9088 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9092 # If we're using GNU nm, then use its standard symbol codes.
9093 case `$NM -V 2>&1` in
9094 *GNU* | *'with BFD'*)
9095 symcode='[ABCDGIRSTW]' ;;
9098 # Try without a prefix undercore, then with it.
9099 for ac_symprfx in "" "_"; do
9101 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9102 symxfrm="\\1 $ac_symprfx\\2 \\2"
9104 # Write the raw and C identifiers.
9105 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9107 # Check to see that the pipe works correctly.
9111 cat > conftest.$ac_ext <<EOF
9116 void nm_test_func(){}
9120 int main(){nm_test_var='a';nm_test_func();return(0);}
9123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9124 (eval $ac_compile) 2>&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; then
9128 # Now try to grab the symbols.
9130 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9131 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } && test -s "$nlist"; then
9135 # Try sorting and uniquifying the output.
9136 if sort "$nlist" | uniq > "$nlist"T; then
9137 mv -f "$nlist"T "$nlist"
9142 # Make sure that we snagged all the symbols we need.
9143 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9144 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9145 cat <<EOF > conftest.$ac_ext
9151 # Now generate the symbol file.
9152 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9154 cat <<EOF >> conftest.$ac_ext
9155 #if defined (__STDC__) && __STDC__
9156 # define lt_ptr_t void *
9158 # define lt_ptr_t char *
9162 /* The mapping between symbol names and symbols. */
9167 lt_preloaded_symbols[] =
9170 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9171 cat <<\EOF >> conftest.$ac_ext
9179 # Now try linking the two files.
9180 mv conftest.$ac_objext conftstm.$ac_objext
9181 lt_save_LIBS="$LIBS"
9182 lt_save_CFLAGS="$CFLAGS"
9183 LIBS="conftstm.$ac_objext"
9184 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9186 (eval $ac_link) 2>&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9192 LIBS="$lt_save_LIBS"
9193 CFLAGS="$lt_save_CFLAGS"
9195 echo "cannot find nm_test_func in $nlist" >&5
9198 echo "cannot find nm_test_var in $nlist" >&5
9201 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9204 echo "$progname: failed program was:" >&5
9205 cat conftest.$ac_ext >&5
9207 rm -f conftest* conftst*
9209 # Do not use the global_symbol_pipe unless it works.
9210 if test "$pipe_works" = yes; then
9213 lt_cv_sys_global_symbol_pipe=
9219 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9220 lt_cv_sys_global_symbol_to_cdecl=
9222 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9223 { echo "$as_me:$LINENO: result: failed" >&5
9224 echo "${ECHO_T}failed" >&6; }
9226 { echo "$as_me:$LINENO: result: ok" >&5
9227 echo "${ECHO_T}ok" >&6; }
9231 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9232 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9233 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
9236 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9237 libltdl_cv_preloaded_symbols=yes
9239 libltdl_cv_preloaded_symbols=no
9243 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9244 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9245 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9247 cat >>confdefs.h <<\_ACEOF
9248 #define HAVE_PRELOADED_SYMBOLS 1
9256 ac_cpp='$CPP $CPPFLAGS'
9257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9262 { echo "$as_me:$LINENO: checking for shl_load" >&5
9263 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9264 if test "${ac_cv_func_shl_load+set}" = set; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9267 cat >conftest.$ac_ext <<_ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h. */
9273 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9275 #define shl_load innocuous_shl_load
9277 /* System header to define __stub macros and hopefully few prototypes,
9278 which can conflict with char shl_load (); below.
9279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9280 <limits.h> exists even on freestanding compilers. */
9283 # include <limits.h>
9285 # include <assert.h>
9290 /* Override any GCC internal prototype to avoid an error.
9291 Use char because int might match the return type of a GCC
9292 builtin and then its argument prototype would still apply. */
9297 /* The GNU C library defines this for functions which it implements
9298 to always fail with ENOSYS. Some functions are actually named
9299 something starting with __ and the normal name is an alias. */
9300 #if defined __stub_shl_load || defined __stub___shl_load
9312 rm -f conftest.$ac_objext conftest$ac_exeext
9313 if { (ac_try="$ac_link"
9315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9316 *) ac_try_echo=$ac_try;;
9318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9319 (eval "$ac_link") 2>conftest.er1
9321 grep -v '^ *+' conftest.er1 >conftest.err
9323 cat conftest.err >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); } && {
9326 test -z "$ac_c_werror_flag" ||
9327 test ! -s conftest.err
9328 } && test -s conftest$ac_exeext &&
9329 $as_test_x conftest$ac_exeext; then
9330 ac_cv_func_shl_load=yes
9332 echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9335 ac_cv_func_shl_load=no
9338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9339 conftest$ac_exeext conftest.$ac_ext
9341 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9342 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9343 if test $ac_cv_func_shl_load = yes; then
9345 cat >>confdefs.h <<\_ACEOF
9346 #define HAVE_SHL_LOAD 1
9350 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9351 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9352 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9353 echo $ECHO_N "(cached) $ECHO_C" >&6
9355 ac_check_lib_save_LIBS=$LIBS
9357 cat >conftest.$ac_ext <<_ACEOF
9360 cat confdefs.h >>conftest.$ac_ext
9361 cat >>conftest.$ac_ext <<_ACEOF
9362 /* end confdefs.h. */
9364 /* Override any GCC internal prototype to avoid an error.
9365 Use char because int might match the return type of a GCC
9366 builtin and then its argument prototype would still apply. */
9379 rm -f conftest.$ac_objext conftest$ac_exeext
9380 if { (ac_try="$ac_link"
9382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9383 *) ac_try_echo=$ac_try;;
9385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9386 (eval "$ac_link") 2>conftest.er1
9388 grep -v '^ *+' conftest.er1 >conftest.err
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } && {
9393 test -z "$ac_c_werror_flag" ||
9394 test ! -s conftest.err
9395 } && test -s conftest$ac_exeext &&
9396 $as_test_x conftest$ac_exeext; then
9397 ac_cv_lib_dld_shl_load=yes
9399 echo "$as_me: failed program was:" >&5
9400 sed 's/^/| /' conftest.$ac_ext >&5
9402 ac_cv_lib_dld_shl_load=no
9405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9406 conftest$ac_exeext conftest.$ac_ext
9407 LIBS=$ac_check_lib_save_LIBS
9409 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9410 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9411 if test $ac_cv_lib_dld_shl_load = yes; then
9413 cat >>confdefs.h <<\_ACEOF
9414 #define HAVE_SHL_LOAD 1
9417 LIBADD_DL="$LIBADD_DL -ldld"
9419 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9420 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9421 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 ac_check_lib_save_LIBS=$LIBS
9426 cat >conftest.$ac_ext <<_ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9433 /* Override any GCC internal prototype to avoid an error.
9434 Use char because int might match the return type of a GCC
9435 builtin and then its argument prototype would still apply. */
9448 rm -f conftest.$ac_objext conftest$ac_exeext
9449 if { (ac_try="$ac_link"
9451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9452 *) ac_try_echo=$ac_try;;
9454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9455 (eval "$ac_link") 2>conftest.er1
9457 grep -v '^ *+' conftest.er1 >conftest.err
9459 cat conftest.err >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); } && {
9462 test -z "$ac_c_werror_flag" ||
9463 test ! -s conftest.err
9464 } && test -s conftest$ac_exeext &&
9465 $as_test_x conftest$ac_exeext; then
9466 ac_cv_lib_dl_dlopen=yes
9468 echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9471 ac_cv_lib_dl_dlopen=no
9474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9475 conftest$ac_exeext conftest.$ac_ext
9476 LIBS=$ac_check_lib_save_LIBS
9478 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9479 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9480 if test $ac_cv_lib_dl_dlopen = yes; then
9482 cat >>confdefs.h <<\_ACEOF
9483 #define HAVE_LIBDL 1
9486 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9488 cat >conftest.$ac_ext <<_ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h. */
9506 rm -f conftest.$ac_objext conftest$ac_exeext
9507 if { (ac_try="$ac_link"
9509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9510 *) ac_try_echo=$ac_try;;
9512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9513 (eval "$ac_link") 2>conftest.er1
9515 grep -v '^ *+' conftest.er1 >conftest.err
9517 cat conftest.err >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); } && {
9520 test -z "$ac_c_werror_flag" ||
9521 test ! -s conftest.err
9522 } && test -s conftest$ac_exeext &&
9523 $as_test_x conftest$ac_exeext; then
9525 cat >>confdefs.h <<\_ACEOF
9526 #define HAVE_LIBDL 1
9528 libltdl_cv_func_dlopen="yes"
9530 echo "$as_me: failed program was:" >&5
9531 sed 's/^/| /' conftest.$ac_ext >&5
9533 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9534 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9535 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9538 ac_check_lib_save_LIBS=$LIBS
9540 cat >conftest.$ac_ext <<_ACEOF
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
9545 /* end confdefs.h. */
9547 /* Override any GCC internal prototype to avoid an error.
9548 Use char because int might match the return type of a GCC
9549 builtin and then its argument prototype would still apply. */
9562 rm -f conftest.$ac_objext conftest$ac_exeext
9563 if { (ac_try="$ac_link"
9565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566 *) ac_try_echo=$ac_try;;
9568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9569 (eval "$ac_link") 2>conftest.er1
9571 grep -v '^ *+' conftest.er1 >conftest.err
9573 cat conftest.err >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); } && {
9576 test -z "$ac_c_werror_flag" ||
9577 test ! -s conftest.err
9578 } && test -s conftest$ac_exeext &&
9579 $as_test_x conftest$ac_exeext; then
9580 ac_cv_lib_svld_dlopen=yes
9582 echo "$as_me: failed program was:" >&5
9583 sed 's/^/| /' conftest.$ac_ext >&5
9585 ac_cv_lib_svld_dlopen=no
9588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9589 conftest$ac_exeext conftest.$ac_ext
9590 LIBS=$ac_check_lib_save_LIBS
9592 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9593 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9594 if test $ac_cv_lib_svld_dlopen = yes; then
9596 cat >>confdefs.h <<\_ACEOF
9597 #define HAVE_LIBDL 1
9600 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9602 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9603 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9604 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9605 echo $ECHO_N "(cached) $ECHO_C" >&6
9607 ac_check_lib_save_LIBS=$LIBS
9609 cat >conftest.$ac_ext <<_ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h. */
9616 /* Override any GCC internal prototype to avoid an error.
9617 Use char because int might match the return type of a GCC
9618 builtin and then its argument prototype would still apply. */
9631 rm -f conftest.$ac_objext conftest$ac_exeext
9632 if { (ac_try="$ac_link"
9634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9635 *) ac_try_echo=$ac_try;;
9637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638 (eval "$ac_link") 2>conftest.er1
9640 grep -v '^ *+' conftest.er1 >conftest.err
9642 cat conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } && {
9645 test -z "$ac_c_werror_flag" ||
9646 test ! -s conftest.err
9647 } && test -s conftest$ac_exeext &&
9648 $as_test_x conftest$ac_exeext; then
9649 ac_cv_lib_dld_dld_link=yes
9651 echo "$as_me: failed program was:" >&5
9652 sed 's/^/| /' conftest.$ac_ext >&5
9654 ac_cv_lib_dld_dld_link=no
9657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9658 conftest$ac_exeext conftest.$ac_ext
9659 LIBS=$ac_check_lib_save_LIBS
9661 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9662 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9663 if test $ac_cv_lib_dld_dld_link = yes; then
9665 cat >>confdefs.h <<\_ACEOF
9669 LIBADD_DL="$LIBADD_DL -ldld"
9671 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9672 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9673 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9676 cat >conftest.$ac_ext <<_ACEOF
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h. */
9682 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9684 #define _dyld_func_lookup innocuous__dyld_func_lookup
9686 /* System header to define __stub macros and hopefully few prototypes,
9687 which can conflict with char _dyld_func_lookup (); below.
9688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9689 <limits.h> exists even on freestanding compilers. */
9692 # include <limits.h>
9694 # include <assert.h>
9697 #undef _dyld_func_lookup
9699 /* Override any GCC internal prototype to avoid an error.
9700 Use char because int might match the return type of a GCC
9701 builtin and then its argument prototype would still apply. */
9705 char _dyld_func_lookup ();
9706 /* The GNU C library defines this for functions which it implements
9707 to always fail with ENOSYS. Some functions are actually named
9708 something starting with __ and the normal name is an alias. */
9709 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9716 return _dyld_func_lookup ();
9721 rm -f conftest.$ac_objext conftest$ac_exeext
9722 if { (ac_try="$ac_link"
9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_link") 2>conftest.er1
9730 grep -v '^ *+' conftest.er1 >conftest.err
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } && {
9735 test -z "$ac_c_werror_flag" ||
9736 test ! -s conftest.err
9737 } && test -s conftest$ac_exeext &&
9738 $as_test_x conftest$ac_exeext; then
9739 ac_cv_func__dyld_func_lookup=yes
9741 echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9744 ac_cv_func__dyld_func_lookup=no
9747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9748 conftest$ac_exeext conftest.$ac_ext
9750 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9751 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
9752 if test $ac_cv_func__dyld_func_lookup = yes; then
9754 cat >>confdefs.h <<\_ACEOF
9769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9770 conftest$ac_exeext conftest.$ac_ext
9781 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9783 lt_save_LIBS="$LIBS"
9784 LIBS="$LIBS $LIBADD_DL"
9786 for ac_func in dlerror
9788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9789 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9794 cat >conftest.$ac_ext <<_ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h. */
9800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9802 #define $ac_func innocuous_$ac_func
9804 /* System header to define __stub macros and hopefully few prototypes,
9805 which can conflict with char $ac_func (); below.
9806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9807 <limits.h> exists even on freestanding compilers. */
9810 # include <limits.h>
9812 # include <assert.h>
9817 /* Override any GCC internal prototype to avoid an error.
9818 Use char because int might match the return type of a GCC
9819 builtin and then its argument prototype would still apply. */
9824 /* The GNU C library defines this for functions which it implements
9825 to always fail with ENOSYS. Some functions are actually named
9826 something starting with __ and the normal name is an alias. */
9827 #if defined __stub_$ac_func || defined __stub___$ac_func
9839 rm -f conftest.$ac_objext conftest$ac_exeext
9840 if { (ac_try="$ac_link"
9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843 *) ac_try_echo=$ac_try;;
9845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846 (eval "$ac_link") 2>conftest.er1
9848 grep -v '^ *+' conftest.er1 >conftest.err
9850 cat conftest.err >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } && {
9853 test -z "$ac_c_werror_flag" ||
9854 test ! -s conftest.err
9855 } && test -s conftest$ac_exeext &&
9856 $as_test_x conftest$ac_exeext; then
9857 eval "$as_ac_var=yes"
9859 echo "$as_me: failed program was:" >&5
9860 sed 's/^/| /' conftest.$ac_ext >&5
9862 eval "$as_ac_var=no"
9865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9866 conftest$ac_exeext conftest.$ac_ext
9868 ac_res=`eval echo '${'$as_ac_var'}'`
9869 { echo "$as_me:$LINENO: result: $ac_res" >&5
9870 echo "${ECHO_T}$ac_res" >&6; }
9871 if test `eval echo '${'$as_ac_var'}'` = yes; then
9872 cat >>confdefs.h <<_ACEOF
9873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9879 LIBS="$lt_save_LIBS"
9882 ac_cpp='$CPP $CPPFLAGS'
9883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9889 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
9890 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
9891 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
9892 echo $ECHO_N "(cached) $ECHO_C" >&6
9894 ac_cv_sys_symbol_underscore=no
9895 cat > conftest.$ac_ext <<EOF
9896 void nm_test_func(){}
9897 int main(){nm_test_func;return 0;}
9899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9900 (eval $ac_compile) 2>&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); }; then
9904 # Now try to grab the symbols.
9905 ac_nlist=conftest.nm
9906 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
9907 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } && test -s "$ac_nlist"; then
9911 # See whether the symbols have a leading underscore.
9912 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
9913 ac_cv_sys_symbol_underscore=yes
9915 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
9918 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
9922 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
9925 echo "configure: failed program was:" >&5
9931 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
9932 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
9935 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
9936 if test x"$libltdl_cv_func_dlopen" = xyes ||
9937 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
9938 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
9939 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
9940 if test "${libltdl_cv_need_uscore+set}" = set; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
9943 libltdl_cv_need_uscore=unknown
9945 LIBS="$LIBS $LIBADD_DL"
9946 if test "$cross_compiling" = yes; then :
9947 libltdl_cv_need_uscore=cross
9949 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9950 lt_status=$lt_dlunknown
9951 cat > conftest.$ac_ext <<EOF
9952 #line 9952 "configure"
9953 #include "confdefs.h"
9962 # define LT_DLGLOBAL RTLD_GLOBAL
9965 # define LT_DLGLOBAL DL_GLOBAL
9967 # define LT_DLGLOBAL 0
9971 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9972 find out it does not work in some platform. */
9973 #ifndef LT_DLLAZY_OR_NOW
9975 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9978 # define LT_DLLAZY_OR_NOW DL_LAZY
9981 # define LT_DLLAZY_OR_NOW RTLD_NOW
9984 # define LT_DLLAZY_OR_NOW DL_NOW
9986 # define LT_DLLAZY_OR_NOW 0
9994 extern "C" void exit (int);
9997 void fnord() { int i=42;}
10000 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10001 int status = $lt_dlunknown;
10005 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10006 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10007 /* dlclose (self); */
10015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10016 (eval $ac_link) 2>&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10020 (./conftest; exit; ) >&5 2>/dev/null
10022 case x$lt_status in
10023 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10024 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10025 x$lt_dlunknown|x*) ;;
10028 # compilation failed
10037 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10038 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10042 if test x"$libltdl_cv_need_uscore" = xyes; then
10044 cat >>confdefs.h <<\_ACEOF
10045 #define NEED_USCORE 1
10051 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10052 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10053 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10056 # PORTME does your system automatically load deplibs for dlopen?
10057 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10058 # For now, we just catch OSes we know something about -- in the
10059 # future, we'll try test this programmatically.
10060 libltdl_cv_sys_dlopen_deplibs=unknown
10062 aix3*|aix4.1.*|aix4.2.*)
10063 # Unknown whether this is true for these versions of AIX, but
10064 # we want this `case' here to explicitly catch those versions.
10065 libltdl_cv_sys_dlopen_deplibs=unknown
10068 libltdl_cv_sys_dlopen_deplibs=yes
10071 # Assuming the user has installed a libdl from somewhere, this is true
10072 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10073 libltdl_cv_sys_dlopen_deplibs=yes
10075 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10076 # GNU and its variants, using gnu ld.so (Glibc)
10077 libltdl_cv_sys_dlopen_deplibs=yes
10080 libltdl_cv_sys_dlopen_deplibs=yes
10083 libltdl_cv_sys_dlopen_deplibs=yes
10085 irix[12345]*|irix6.[01]*)
10086 # Catch all versions of IRIX before 6.2, and indicate that we don't
10087 # know how it worked for any of those versions.
10088 libltdl_cv_sys_dlopen_deplibs=unknown
10091 # The case above catches anything before 6.2, and it's known that
10092 # at 6.2 and later dlopen does load deplibs.
10093 libltdl_cv_sys_dlopen_deplibs=yes
10096 libltdl_cv_sys_dlopen_deplibs=yes
10099 libltdl_cv_sys_dlopen_deplibs=yes
10102 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10103 # it did *not* use an RPATH in a shared library to find objects the
10104 # library depends on, so we explictly say `no'.
10105 libltdl_cv_sys_dlopen_deplibs=no
10107 osf5.0|osf5.0a|osf5.1)
10108 # dlopen *does* load deplibs and with the right loader patch applied
10109 # it even uses RPATH in a shared library to search for shared objects
10110 # that the library depends on, but there's no easy way to know if that
10111 # patch is installed. Since this is the case, all we can really
10112 # say is unknown -- it depends on the patch being installed. If
10113 # it is, this changes to `yes'. Without it, it would be `no'.
10114 libltdl_cv_sys_dlopen_deplibs=unknown
10117 # the two cases above should catch all versions of osf <= 5.1. Read
10118 # the comments above for what we know about them.
10119 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10120 # is used to find them so we can finally say `yes'.
10121 libltdl_cv_sys_dlopen_deplibs=yes
10124 libltdl_cv_sys_dlopen_deplibs=yes
10126 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10127 libltdl_cv_sys_dlopen_deplibs=yes
10132 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10133 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10134 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10136 cat >>confdefs.h <<\_ACEOF
10137 #define LTDL_DLOPEN_DEPLIBS 1
10143 for ac_header in argz.h
10145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10152 ac_res=`eval echo '${'$as_ac_Header'}'`
10153 { echo "$as_me:$LINENO: result: $ac_res" >&5
10154 echo "${ECHO_T}$ac_res" >&6; }
10156 # Is the header compilable?
10157 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10159 cat >conftest.$ac_ext <<_ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10165 $ac_includes_default
10166 #include <$ac_header>
10168 rm -f conftest.$ac_objext
10169 if { (ac_try="$ac_compile"
10170 case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_compile") 2>conftest.er1
10177 grep -v '^ *+' conftest.er1 >conftest.err
10179 cat conftest.err >&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } && {
10182 test -z "$ac_c_werror_flag" ||
10183 test ! -s conftest.err
10184 } && test -s conftest.$ac_objext; then
10185 ac_header_compiler=yes
10187 echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10190 ac_header_compiler=no
10193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10194 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10195 echo "${ECHO_T}$ac_header_compiler" >&6; }
10197 # Is the header present?
10198 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10200 cat >conftest.$ac_ext <<_ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10206 #include <$ac_header>
10208 if { (ac_try="$ac_cpp conftest.$ac_ext"
10209 case "(($ac_try" in
10210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211 *) ac_try_echo=$ac_try;;
10213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10216 grep -v '^ *+' conftest.er1 >conftest.err
10218 cat conftest.err >&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } >/dev/null && {
10221 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10222 test ! -s conftest.err
10224 ac_header_preproc=yes
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10229 ac_header_preproc=no
10232 rm -f conftest.err conftest.$ac_ext
10233 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10234 echo "${ECHO_T}$ac_header_preproc" >&6; }
10236 # So? What about this header?
10237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10243 ac_header_preproc=yes
10246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10250 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10252 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10253 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10256 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10259 ## ----------------------------------- ##
10260 ## Report this to llvmbugs@cs.uiuc.edu ##
10261 ## ----------------------------------- ##
10263 ) | sed "s/^/$as_me: WARNING: /" >&2
10266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10271 eval "$as_ac_Header=\$ac_header_preproc"
10273 ac_res=`eval echo '${'$as_ac_Header'}'`
10274 { echo "$as_me:$LINENO: result: $ac_res" >&5
10275 echo "${ECHO_T}$ac_res" >&6; }
10278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10279 cat >>confdefs.h <<_ACEOF
10280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10288 { echo "$as_me:$LINENO: checking for error_t" >&5
10289 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10290 if test "${ac_cv_type_error_t+set}" = set; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10293 cat >conftest.$ac_ext <<_ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h. */
10303 typedef error_t ac__type_new_;
10307 if ((ac__type_new_ *) 0)
10309 if (sizeof (ac__type_new_))
10315 rm -f conftest.$ac_objext
10316 if { (ac_try="$ac_compile"
10317 case "(($ac_try" in
10318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10319 *) ac_try_echo=$ac_try;;
10321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10322 (eval "$ac_compile") 2>conftest.er1
10324 grep -v '^ *+' conftest.er1 >conftest.err
10326 cat conftest.err >&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); } && {
10329 test -z "$ac_c_werror_flag" ||
10330 test ! -s conftest.err
10331 } && test -s conftest.$ac_objext; then
10332 ac_cv_type_error_t=yes
10334 echo "$as_me: failed program was:" >&5
10335 sed 's/^/| /' conftest.$ac_ext >&5
10337 ac_cv_type_error_t=no
10340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10342 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10343 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10344 if test $ac_cv_type_error_t = yes; then
10346 cat >>confdefs.h <<_ACEOF
10347 #define HAVE_ERROR_T 1
10353 cat >>confdefs.h <<\_ACEOF
10354 #define error_t int
10365 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10368 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10370 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10373 cat >conftest.$ac_ext <<_ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h. */
10379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10381 #define $ac_func innocuous_$ac_func
10383 /* System header to define __stub macros and hopefully few prototypes,
10384 which can conflict with char $ac_func (); below.
10385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10386 <limits.h> exists even on freestanding compilers. */
10389 # include <limits.h>
10391 # include <assert.h>
10396 /* Override any GCC internal prototype to avoid an error.
10397 Use char because int might match the return type of a GCC
10398 builtin and then its argument prototype would still apply. */
10403 /* The GNU C library defines this for functions which it implements
10404 to always fail with ENOSYS. Some functions are actually named
10405 something starting with __ and the normal name is an alias. */
10406 #if defined __stub_$ac_func || defined __stub___$ac_func
10413 return $ac_func ();
10418 rm -f conftest.$ac_objext conftest$ac_exeext
10419 if { (ac_try="$ac_link"
10420 case "(($ac_try" in
10421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10422 *) ac_try_echo=$ac_try;;
10424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10425 (eval "$ac_link") 2>conftest.er1
10427 grep -v '^ *+' conftest.er1 >conftest.err
10429 cat conftest.err >&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } && {
10432 test -z "$ac_c_werror_flag" ||
10433 test ! -s conftest.err
10434 } && test -s conftest$ac_exeext &&
10435 $as_test_x conftest$ac_exeext; then
10436 eval "$as_ac_var=yes"
10438 echo "$as_me: failed program was:" >&5
10439 sed 's/^/| /' conftest.$ac_ext >&5
10441 eval "$as_ac_var=no"
10444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10445 conftest$ac_exeext conftest.$ac_ext
10447 ac_res=`eval echo '${'$as_ac_var'}'`
10448 { echo "$as_me:$LINENO: result: $ac_res" >&5
10449 echo "${ECHO_T}$ac_res" >&6; }
10450 if test `eval echo '${'$as_ac_var'}'` = yes; then
10451 cat >>confdefs.h <<_ACEOF
10452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10485 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10493 echo $ECHO_N "(cached) $ECHO_C" >&6
10495 ac_res=`eval echo '${'$as_ac_Header'}'`
10496 { echo "$as_me:$LINENO: result: $ac_res" >&5
10497 echo "${ECHO_T}$ac_res" >&6; }
10499 # Is the header compilable?
10500 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10502 cat >conftest.$ac_ext <<_ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h. */
10508 $ac_includes_default
10509 #include <$ac_header>
10511 rm -f conftest.$ac_objext
10512 if { (ac_try="$ac_compile"
10513 case "(($ac_try" in
10514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10515 *) ac_try_echo=$ac_try;;
10517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518 (eval "$ac_compile") 2>conftest.er1
10520 grep -v '^ *+' conftest.er1 >conftest.err
10522 cat conftest.err >&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } && {
10525 test -z "$ac_c_werror_flag" ||
10526 test ! -s conftest.err
10527 } && test -s conftest.$ac_objext; then
10528 ac_header_compiler=yes
10530 echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10533 ac_header_compiler=no
10536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10537 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10538 echo "${ECHO_T}$ac_header_compiler" >&6; }
10540 # Is the header present?
10541 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10543 cat >conftest.$ac_ext <<_ACEOF
10546 cat confdefs.h >>conftest.$ac_ext
10547 cat >>conftest.$ac_ext <<_ACEOF
10548 /* end confdefs.h. */
10549 #include <$ac_header>
10551 if { (ac_try="$ac_cpp conftest.$ac_ext"
10552 case "(($ac_try" in
10553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10554 *) ac_try_echo=$ac_try;;
10556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10559 grep -v '^ *+' conftest.er1 >conftest.err
10561 cat conftest.err >&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } >/dev/null && {
10564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10565 test ! -s conftest.err
10567 ac_header_preproc=yes
10569 echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10572 ac_header_preproc=no
10575 rm -f conftest.err conftest.$ac_ext
10576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10577 echo "${ECHO_T}$ac_header_preproc" >&6; }
10579 # So? What about this header?
10580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10586 ac_header_preproc=yes
10589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10596 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10602 ## ----------------------------------- ##
10603 ## Report this to llvmbugs@cs.uiuc.edu ##
10604 ## ----------------------------------- ##
10606 ) | sed "s/^/$as_me: WARNING: /" >&2
10609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10612 echo $ECHO_N "(cached) $ECHO_C" >&6
10614 eval "$as_ac_Header=\$ac_header_preproc"
10616 ac_res=`eval echo '${'$as_ac_Header'}'`
10617 { echo "$as_me:$LINENO: result: $ac_res" >&5
10618 echo "${ECHO_T}$ac_res" >&6; }
10621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10622 cat >>confdefs.h <<_ACEOF
10623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10634 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 ac_res=`eval echo '${'$as_ac_Header'}'`
10644 { echo "$as_me:$LINENO: result: $ac_res" >&5
10645 echo "${ECHO_T}$ac_res" >&6; }
10647 # Is the header compilable?
10648 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10650 cat >conftest.$ac_ext <<_ACEOF
10653 cat confdefs.h >>conftest.$ac_ext
10654 cat >>conftest.$ac_ext <<_ACEOF
10655 /* end confdefs.h. */
10656 $ac_includes_default
10657 #include <$ac_header>
10659 rm -f conftest.$ac_objext
10660 if { (ac_try="$ac_compile"
10661 case "(($ac_try" in
10662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10663 *) ac_try_echo=$ac_try;;
10665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10666 (eval "$ac_compile") 2>conftest.er1
10668 grep -v '^ *+' conftest.er1 >conftest.err
10670 cat conftest.err >&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } && {
10673 test -z "$ac_c_werror_flag" ||
10674 test ! -s conftest.err
10675 } && test -s conftest.$ac_objext; then
10676 ac_header_compiler=yes
10678 echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.$ac_ext >&5
10681 ac_header_compiler=no
10684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10685 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10686 echo "${ECHO_T}$ac_header_compiler" >&6; }
10688 # Is the header present?
10689 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10691 cat >conftest.$ac_ext <<_ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h. */
10697 #include <$ac_header>
10699 if { (ac_try="$ac_cpp conftest.$ac_ext"
10700 case "(($ac_try" in
10701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10702 *) ac_try_echo=$ac_try;;
10704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10707 grep -v '^ *+' conftest.er1 >conftest.err
10709 cat conftest.err >&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } >/dev/null && {
10712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10713 test ! -s conftest.err
10715 ac_header_preproc=yes
10717 echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10720 ac_header_preproc=no
10723 rm -f conftest.err conftest.$ac_ext
10724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10725 echo "${ECHO_T}$ac_header_preproc" >&6; }
10727 # So? What about this header?
10728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10734 ac_header_preproc=yes
10737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10744 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10750 ## ----------------------------------- ##
10751 ## Report this to llvmbugs@cs.uiuc.edu ##
10752 ## ----------------------------------- ##
10754 ) | sed "s/^/$as_me: WARNING: /" >&2
10757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
10762 eval "$as_ac_Header=\$ac_header_preproc"
10764 ac_res=`eval echo '${'$as_ac_Header'}'`
10765 { echo "$as_me:$LINENO: result: $ac_res" >&5
10766 echo "${ECHO_T}$ac_res" >&6; }
10769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10770 cat >>confdefs.h <<_ACEOF
10771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10780 for ac_header in string.h strings.h
10782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10789 ac_res=`eval echo '${'$as_ac_Header'}'`
10790 { echo "$as_me:$LINENO: result: $ac_res" >&5
10791 echo "${ECHO_T}$ac_res" >&6; }
10793 # Is the header compilable?
10794 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10796 cat >conftest.$ac_ext <<_ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h. */
10802 $ac_includes_default
10803 #include <$ac_header>
10805 rm -f conftest.$ac_objext
10806 if { (ac_try="$ac_compile"
10807 case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_compile") 2>conftest.er1
10814 grep -v '^ *+' conftest.er1 >conftest.err
10816 cat conftest.err >&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } && {
10819 test -z "$ac_c_werror_flag" ||
10820 test ! -s conftest.err
10821 } && test -s conftest.$ac_objext; then
10822 ac_header_compiler=yes
10824 echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10827 ac_header_compiler=no
10830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10832 echo "${ECHO_T}$ac_header_compiler" >&6; }
10834 # Is the header present?
10835 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10837 cat >conftest.$ac_ext <<_ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10843 #include <$ac_header>
10845 if { (ac_try="$ac_cpp conftest.$ac_ext"
10846 case "(($ac_try" in
10847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10848 *) ac_try_echo=$ac_try;;
10850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10853 grep -v '^ *+' conftest.er1 >conftest.err
10855 cat conftest.err >&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } >/dev/null && {
10858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10859 test ! -s conftest.err
10861 ac_header_preproc=yes
10863 echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10866 ac_header_preproc=no
10869 rm -f conftest.err conftest.$ac_ext
10870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10871 echo "${ECHO_T}$ac_header_preproc" >&6; }
10873 # So? What about this header?
10874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10880 ac_header_preproc=yes
10883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10890 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10896 ## ----------------------------------- ##
10897 ## Report this to llvmbugs@cs.uiuc.edu ##
10898 ## ----------------------------------- ##
10900 ) | sed "s/^/$as_me: WARNING: /" >&2
10903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10908 eval "$as_ac_Header=\$ac_header_preproc"
10910 ac_res=`eval echo '${'$as_ac_Header'}'`
10911 { echo "$as_me:$LINENO: result: $ac_res" >&5
10912 echo "${ECHO_T}$ac_res" >&6; }
10915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10916 cat >>confdefs.h <<_ACEOF
10917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10927 for ac_func in strchr index
10929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10930 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
10935 cat >conftest.$ac_ext <<_ACEOF
10938 cat confdefs.h >>conftest.$ac_ext
10939 cat >>conftest.$ac_ext <<_ACEOF
10940 /* end confdefs.h. */
10941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10943 #define $ac_func innocuous_$ac_func
10945 /* System header to define __stub macros and hopefully few prototypes,
10946 which can conflict with char $ac_func (); below.
10947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10948 <limits.h> exists even on freestanding compilers. */
10951 # include <limits.h>
10953 # include <assert.h>
10958 /* Override any GCC internal prototype to avoid an error.
10959 Use char because int might match the return type of a GCC
10960 builtin and then its argument prototype would still apply. */
10965 /* The GNU C library defines this for functions which it implements
10966 to always fail with ENOSYS. Some functions are actually named
10967 something starting with __ and the normal name is an alias. */
10968 #if defined __stub_$ac_func || defined __stub___$ac_func
10975 return $ac_func ();
10980 rm -f conftest.$ac_objext conftest$ac_exeext
10981 if { (ac_try="$ac_link"
10982 case "(($ac_try" in
10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984 *) ac_try_echo=$ac_try;;
10986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10987 (eval "$ac_link") 2>conftest.er1
10989 grep -v '^ *+' conftest.er1 >conftest.err
10991 cat conftest.err >&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } && {
10994 test -z "$ac_c_werror_flag" ||
10995 test ! -s conftest.err
10996 } && test -s conftest$ac_exeext &&
10997 $as_test_x conftest$ac_exeext; then
10998 eval "$as_ac_var=yes"
11000 echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11003 eval "$as_ac_var=no"
11006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11007 conftest$ac_exeext conftest.$ac_ext
11009 ac_res=`eval echo '${'$as_ac_var'}'`
11010 { echo "$as_me:$LINENO: result: $ac_res" >&5
11011 echo "${ECHO_T}$ac_res" >&6; }
11012 if test `eval echo '${'$as_ac_var'}'` = yes; then
11013 cat >>confdefs.h <<_ACEOF
11014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11022 for ac_func in strrchr rindex
11024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11025 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11027 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11030 cat >conftest.$ac_ext <<_ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h. */
11036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11038 #define $ac_func innocuous_$ac_func
11040 /* System header to define __stub macros and hopefully few prototypes,
11041 which can conflict with char $ac_func (); below.
11042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11043 <limits.h> exists even on freestanding compilers. */
11046 # include <limits.h>
11048 # include <assert.h>
11053 /* Override any GCC internal prototype to avoid an error.
11054 Use char because int might match the return type of a GCC
11055 builtin and then its argument prototype would still apply. */
11060 /* The GNU C library defines this for functions which it implements
11061 to always fail with ENOSYS. Some functions are actually named
11062 something starting with __ and the normal name is an alias. */
11063 #if defined __stub_$ac_func || defined __stub___$ac_func
11070 return $ac_func ();
11075 rm -f conftest.$ac_objext conftest$ac_exeext
11076 if { (ac_try="$ac_link"
11077 case "(($ac_try" in
11078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11079 *) ac_try_echo=$ac_try;;
11081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11082 (eval "$ac_link") 2>conftest.er1
11084 grep -v '^ *+' conftest.er1 >conftest.err
11086 cat conftest.err >&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); } && {
11089 test -z "$ac_c_werror_flag" ||
11090 test ! -s conftest.err
11091 } && test -s conftest$ac_exeext &&
11092 $as_test_x conftest$ac_exeext; then
11093 eval "$as_ac_var=yes"
11095 echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.$ac_ext >&5
11098 eval "$as_ac_var=no"
11101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11102 conftest$ac_exeext conftest.$ac_ext
11104 ac_res=`eval echo '${'$as_ac_var'}'`
11105 { echo "$as_me:$LINENO: result: $ac_res" >&5
11106 echo "${ECHO_T}$ac_res" >&6; }
11107 if test `eval echo '${'$as_ac_var'}'` = yes; then
11108 cat >>confdefs.h <<_ACEOF
11109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11117 for ac_func in memcpy bcopy
11119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11125 cat >conftest.$ac_ext <<_ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h. */
11131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11133 #define $ac_func innocuous_$ac_func
11135 /* System header to define __stub macros and hopefully few prototypes,
11136 which can conflict with char $ac_func (); below.
11137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11138 <limits.h> exists even on freestanding compilers. */
11141 # include <limits.h>
11143 # include <assert.h>
11148 /* Override any GCC internal prototype to avoid an error.
11149 Use char because int might match the return type of a GCC
11150 builtin and then its argument prototype would still apply. */
11155 /* The GNU C library defines this for functions which it implements
11156 to always fail with ENOSYS. Some functions are actually named
11157 something starting with __ and the normal name is an alias. */
11158 #if defined __stub_$ac_func || defined __stub___$ac_func
11165 return $ac_func ();
11170 rm -f conftest.$ac_objext conftest$ac_exeext
11171 if { (ac_try="$ac_link"
11172 case "(($ac_try" in
11173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174 *) ac_try_echo=$ac_try;;
11176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177 (eval "$ac_link") 2>conftest.er1
11179 grep -v '^ *+' conftest.er1 >conftest.err
11181 cat conftest.err >&5
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); } && {
11184 test -z "$ac_c_werror_flag" ||
11185 test ! -s conftest.err
11186 } && test -s conftest$ac_exeext &&
11187 $as_test_x conftest$ac_exeext; then
11188 eval "$as_ac_var=yes"
11190 echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11193 eval "$as_ac_var=no"
11196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11197 conftest$ac_exeext conftest.$ac_ext
11199 ac_res=`eval echo '${'$as_ac_var'}'`
11200 { echo "$as_me:$LINENO: result: $ac_res" >&5
11201 echo "${ECHO_T}$ac_res" >&6; }
11202 if test `eval echo '${'$as_ac_var'}'` = yes; then
11203 cat >>confdefs.h <<_ACEOF
11204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11212 for ac_func in memmove strcmp
11214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11220 cat >conftest.$ac_ext <<_ACEOF
11223 cat confdefs.h >>conftest.$ac_ext
11224 cat >>conftest.$ac_ext <<_ACEOF
11225 /* end confdefs.h. */
11226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11228 #define $ac_func innocuous_$ac_func
11230 /* System header to define __stub macros and hopefully few prototypes,
11231 which can conflict with char $ac_func (); below.
11232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11233 <limits.h> exists even on freestanding compilers. */
11236 # include <limits.h>
11238 # include <assert.h>
11243 /* Override any GCC internal prototype to avoid an error.
11244 Use char because int might match the return type of a GCC
11245 builtin and then its argument prototype would still apply. */
11250 /* The GNU C library defines this for functions which it implements
11251 to always fail with ENOSYS. Some functions are actually named
11252 something starting with __ and the normal name is an alias. */
11253 #if defined __stub_$ac_func || defined __stub___$ac_func
11260 return $ac_func ();
11265 rm -f conftest.$ac_objext conftest$ac_exeext
11266 if { (ac_try="$ac_link"
11267 case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_link") 2>conftest.er1
11274 grep -v '^ *+' conftest.er1 >conftest.err
11276 cat conftest.err >&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); } && {
11279 test -z "$ac_c_werror_flag" ||
11280 test ! -s conftest.err
11281 } && test -s conftest$ac_exeext &&
11282 $as_test_x conftest$ac_exeext; then
11283 eval "$as_ac_var=yes"
11285 echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11288 eval "$as_ac_var=no"
11291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11292 conftest$ac_exeext conftest.$ac_ext
11294 ac_res=`eval echo '${'$as_ac_var'}'`
11295 { echo "$as_me:$LINENO: result: $ac_res" >&5
11296 echo "${ECHO_T}$ac_res" >&6; }
11297 if test `eval echo '${'$as_ac_var'}'` = yes; then
11298 cat >>confdefs.h <<_ACEOF
11299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11308 for ac_func in closedir opendir readdir
11310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11311 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11316 cat >conftest.$ac_ext <<_ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h. */
11322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11324 #define $ac_func innocuous_$ac_func
11326 /* System header to define __stub macros and hopefully few prototypes,
11327 which can conflict with char $ac_func (); below.
11328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11329 <limits.h> exists even on freestanding compilers. */
11332 # include <limits.h>
11334 # include <assert.h>
11339 /* Override any GCC internal prototype to avoid an error.
11340 Use char because int might match the return type of a GCC
11341 builtin and then its argument prototype would still apply. */
11346 /* The GNU C library defines this for functions which it implements
11347 to always fail with ENOSYS. Some functions are actually named
11348 something starting with __ and the normal name is an alias. */
11349 #if defined __stub_$ac_func || defined __stub___$ac_func
11356 return $ac_func ();
11361 rm -f conftest.$ac_objext conftest$ac_exeext
11362 if { (ac_try="$ac_link"
11363 case "(($ac_try" in
11364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365 *) ac_try_echo=$ac_try;;
11367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11368 (eval "$ac_link") 2>conftest.er1
11370 grep -v '^ *+' conftest.er1 >conftest.err
11372 cat conftest.err >&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } && {
11375 test -z "$ac_c_werror_flag" ||
11376 test ! -s conftest.err
11377 } && test -s conftest$ac_exeext &&
11378 $as_test_x conftest$ac_exeext; then
11379 eval "$as_ac_var=yes"
11381 echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11384 eval "$as_ac_var=no"
11387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11388 conftest$ac_exeext conftest.$ac_ext
11390 ac_res=`eval echo '${'$as_ac_var'}'`
11391 { echo "$as_me:$LINENO: result: $ac_res" >&5
11392 echo "${ECHO_T}$ac_res" >&6; }
11393 if test `eval echo '${'$as_ac_var'}'` = yes; then
11394 cat >>confdefs.h <<_ACEOF
11395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11402 # Check whether --enable-shared was given.
11403 if test "${enable_shared+set}" = set; then
11404 enableval=$enable_shared; p=${PACKAGE-default}
11406 yes) enable_shared=yes ;;
11407 no) enable_shared=no ;;
11410 # Look at the argument we got. We use all the common list separators.
11411 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11412 for pkg in $enableval; do
11414 if test "X$pkg" = "X$p"; then
11426 # Check whether --enable-static was given.
11427 if test "${enable_static+set}" = set; then
11428 enableval=$enable_static; p=${PACKAGE-default}
11430 yes) enable_static=yes ;;
11431 no) enable_static=no ;;
11434 # Look at the argument we got. We use all the common list separators.
11435 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11436 for pkg in $enableval; do
11438 if test "X$pkg" = "X$p"; then
11450 # Check whether --enable-fast-install was given.
11451 if test "${enable_fast_install+set}" = set; then
11452 enableval=$enable_fast_install; p=${PACKAGE-default}
11454 yes) enable_fast_install=yes ;;
11455 no) enable_fast_install=no ;;
11457 enable_fast_install=no
11458 # Look at the argument we got. We use all the common list separators.
11459 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11460 for pkg in $enableval; do
11462 if test "X$pkg" = "X$p"; then
11463 enable_fast_install=yes
11470 enable_fast_install=yes
11474 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11475 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
11476 if test "${lt_cv_path_SED+set}" = set; then
11477 echo $ECHO_N "(cached) $ECHO_C" >&6
11479 # Loop through the user's path and test for sed and gsed.
11480 # Then use that list of sed's as ones to test for truncation.
11481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11482 for as_dir in $PATH
11485 test -z "$as_dir" && as_dir=.
11486 for lt_ac_prog in sed gsed; do
11487 for ac_exec_ext in '' $ac_executable_extensions; do
11488 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11489 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11496 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
11497 # along with /bin/sed that truncates output.
11498 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11499 test ! -f $lt_ac_sed && continue
11500 cat /dev/null > conftest.in
11502 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11503 # Check for GNU sed and select it if it is found.
11504 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11505 lt_cv_path_SED=$lt_ac_sed
11509 cat conftest.in conftest.in >conftest.tmp
11510 mv conftest.tmp conftest.in
11511 cp conftest.in conftest.nl
11513 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11514 cmp -s conftest.out conftest.nl || break
11515 # 10000 chars as input seems more than enough
11516 test $lt_ac_count -gt 10 && break
11517 lt_ac_count=`expr $lt_ac_count + 1`
11518 if test $lt_ac_count -gt $lt_ac_max; then
11519 lt_ac_max=$lt_ac_count
11520 lt_cv_path_SED=$lt_ac_sed
11527 SED=$lt_cv_path_SED
11528 { echo "$as_me:$LINENO: result: $SED" >&5
11529 echo "${ECHO_T}$SED" >&6; }
11532 # Check whether --with-gnu-ld was given.
11533 if test "${with_gnu_ld+set}" = set; then
11534 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11540 if test "$GCC" = yes; then
11541 # Check if gcc -print-prog-name=ld gives a path.
11542 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11543 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11546 # gcc leaves a trailing carriage return which upsets mingw
11547 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11549 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11552 # Accept absolute paths.
11554 re_direlt='/[^/][^/]*/\.\./'
11555 # Canonicalize the pathname of ld
11556 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11557 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11558 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11560 test -z "$LD" && LD="$ac_prog"
11563 # If it fails, then pretend we aren't using GCC.
11567 # If it is relative, then search for the first ld in PATH.
11568 with_gnu_ld=unknown
11571 elif test "$with_gnu_ld" = yes; then
11572 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11573 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11575 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11576 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11578 if test "${lt_cv_path_LD+set}" = set; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11581 if test -z "$LD"; then
11582 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11583 for ac_dir in $PATH; do
11585 test -z "$ac_dir" && ac_dir=.
11586 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11587 lt_cv_path_LD="$ac_dir/$ac_prog"
11588 # Check to see if the program is GNU ld. I'd rather use --version,
11589 # but apparently some variants of GNU ld only accept -v.
11590 # Break only if it was the GNU/non-GNU ld that we prefer.
11591 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11592 *GNU* | *'with BFD'*)
11593 test "$with_gnu_ld" != no && break
11596 test "$with_gnu_ld" != yes && break
11603 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11607 LD="$lt_cv_path_LD"
11608 if test -n "$LD"; then
11609 { echo "$as_me:$LINENO: result: $LD" >&5
11610 echo "${ECHO_T}$LD" >&6; }
11612 { echo "$as_me:$LINENO: result: no" >&5
11613 echo "${ECHO_T}no" >&6; }
11615 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11616 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11617 { (exit 1); exit 1; }; }
11618 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11619 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11620 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11623 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11624 case `$LD -v 2>&1 </dev/null` in
11625 *GNU* | *'with BFD'*)
11626 lt_cv_prog_gnu_ld=yes
11629 lt_cv_prog_gnu_ld=no
11633 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11634 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11635 with_gnu_ld=$lt_cv_prog_gnu_ld
11638 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11639 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
11640 if test "${lt_cv_ld_reload_flag+set}" = set; then
11641 echo $ECHO_N "(cached) $ECHO_C" >&6
11643 lt_cv_ld_reload_flag='-r'
11645 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11646 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
11647 reload_flag=$lt_cv_ld_reload_flag
11648 case $reload_flag in
11650 *) reload_flag=" $reload_flag" ;;
11652 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11655 if test "$GCC" = yes; then
11656 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
11658 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11663 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
11664 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
11665 if test "${lt_cv_deplibs_check_method+set}" = set; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11668 lt_cv_file_magic_cmd='$MAGIC_CMD'
11669 lt_cv_file_magic_test_file=
11670 lt_cv_deplibs_check_method='unknown'
11671 # Need to set the preceding variable on all platforms that support
11672 # interlibrary dependencies.
11673 # 'none' -- dependencies not supported.
11674 # `unknown' -- same as none, but documents that we really don't know.
11675 # 'pass_all' -- all dependencies passed with no checks.
11676 # 'test_compile' -- check by making test program.
11677 # 'file_magic [[regex]]' -- check by looking for files in library path
11678 # which responds to the $file_magic_cmd with a given extended regex.
11679 # If you have `file' or equivalent on your system and you're not sure
11680 # whether `pass_all' will *always* work, you probably want this one.
11684 lt_cv_deplibs_check_method=pass_all
11688 lt_cv_deplibs_check_method=pass_all
11692 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11693 lt_cv_file_magic_cmd='/usr/bin/file -L'
11694 lt_cv_file_magic_test_file=/shlib/libc.so
11698 # func_win32_libid is a shell function defined in ltmain.sh
11699 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11700 lt_cv_file_magic_cmd='func_win32_libid'
11704 # Base MSYS/MinGW do not provide the 'file' command needed by
11705 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
11706 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11707 lt_cv_file_magic_cmd='$OBJDUMP -f'
11710 darwin* | rhapsody*)
11711 lt_cv_deplibs_check_method=pass_all
11714 freebsd* | kfreebsd*-gnu | dragonfly*)
11715 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11718 # Not sure whether the presence of OpenBSD here was a mistake.
11719 # Let's accept both of them until this is cleared up.
11720 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11721 lt_cv_file_magic_cmd=/usr/bin/file
11722 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11726 lt_cv_deplibs_check_method=pass_all
11731 lt_cv_deplibs_check_method=pass_all
11734 hpux10.20* | hpux11*)
11735 lt_cv_file_magic_cmd=/usr/bin/file
11738 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11739 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11742 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]'
11743 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11746 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11747 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11753 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11754 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11757 irix5* | irix6* | nonstopux*)
11759 *-32|*"-32 ") libmagic=32-bit;;
11760 *-n32|*"-n32 ") libmagic=N32;;
11761 *-64|*"-64 ") libmagic=64-bit;;
11762 *) libmagic=never-match;;
11764 lt_cv_deplibs_check_method=pass_all
11767 # This must be Linux ELF.
11769 lt_cv_deplibs_check_method=pass_all
11773 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11781 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11782 lt_cv_file_magic_cmd=/usr/bin/file
11783 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11787 lt_cv_deplibs_check_method=unknown
11791 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11792 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11798 osf3* | osf4* | osf5*)
11799 lt_cv_deplibs_check_method=pass_all
11803 lt_cv_deplibs_check_method=pass_all
11807 case $host_vendor in
11809 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]'
11810 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11813 lt_cv_deplibs_check_method=pass_all
11816 lt_cv_file_magic_cmd='/bin/file'
11817 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11820 lt_cv_file_magic_cmd='/bin/file'
11821 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11822 lt_cv_file_magic_test_file=/lib/libc.so
11825 lt_cv_deplibs_check_method=pass_all
11828 lt_cv_deplibs_check_method=pass_all
11833 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11834 lt_cv_deplibs_check_method=pass_all
11839 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
11840 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
11841 file_magic_cmd=$lt_cv_file_magic_cmd
11842 deplibs_check_method=$lt_cv_deplibs_check_method
11843 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11847 # If no C compiler was specified, use CC.
11850 # If no C compiler flags were specified, use CFLAGS.
11851 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11853 # Allow CC to be a program name with arguments.
11856 # Check whether --enable-libtool-lock was given.
11857 if test "${enable_libtool_lock+set}" = set; then
11858 enableval=$enable_libtool_lock;
11861 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11863 # Some flags need to be propagated to the compiler or linker for good
11867 # Find out which ABI we are using.
11868 echo 'int i;' > conftest.$ac_ext
11869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11870 (eval $ac_compile) 2>&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; then
11874 case `/usr/bin/file conftest.$ac_objext` in
11876 HPUX_IA64_MODE="32"
11879 HPUX_IA64_MODE="64"
11886 # Find out which ABI we are using.
11887 echo '#line 11887 "configure"' > conftest.$ac_ext
11888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11889 (eval $ac_compile) 2>&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; then
11893 if test "$lt_cv_prog_gnu_ld" = yes; then
11894 case `/usr/bin/file conftest.$ac_objext` in
11896 LD="${LD-ld} -melf32bsmip"
11899 LD="${LD-ld} -melf32bmipn32"
11902 LD="${LD-ld} -melf64bmip"
11906 case `/usr/bin/file conftest.$ac_objext` in
11922 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
11923 # Find out which ABI we are using.
11924 echo 'int i;' > conftest.$ac_ext
11925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11926 (eval $ac_compile) 2>&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; then
11930 case `/usr/bin/file conftest.o` in
11934 LD="${LD-ld} -m elf_i386"
11936 ppc64-*linux*|powerpc64-*linux*)
11937 LD="${LD-ld} -m elf32ppclinux"
11940 LD="${LD-ld} -m elf_s390"
11943 LD="${LD-ld} -m elf32_sparc"
11950 LD="${LD-ld} -m elf_x86_64"
11952 ppc*-*linux*|powerpc*-*linux*)
11953 LD="${LD-ld} -m elf64ppc"
11956 LD="${LD-ld} -m elf64_s390"
11959 LD="${LD-ld} -m elf64_sparc"
11969 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11970 SAVE_CFLAGS="$CFLAGS"
11971 CFLAGS="$CFLAGS -belf"
11972 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11973 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
11974 if test "${lt_cv_cc_needs_belf+set}" = set; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11978 ac_cpp='$CPP $CPPFLAGS'
11979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11983 cat >conftest.$ac_ext <<_ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h. */
11998 rm -f conftest.$ac_objext conftest$ac_exeext
11999 if { (ac_try="$ac_link"
12000 case "(($ac_try" in
12001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12002 *) ac_try_echo=$ac_try;;
12004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12005 (eval "$ac_link") 2>conftest.er1
12007 grep -v '^ *+' conftest.er1 >conftest.err
12009 cat conftest.err >&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } && {
12012 test -z "$ac_c_werror_flag" ||
12013 test ! -s conftest.err
12014 } && test -s conftest$ac_exeext &&
12015 $as_test_x conftest$ac_exeext; then
12016 lt_cv_cc_needs_belf=yes
12018 echo "$as_me: failed program was:" >&5
12019 sed 's/^/| /' conftest.$ac_ext >&5
12021 lt_cv_cc_needs_belf=no
12024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12025 conftest$ac_exeext conftest.$ac_ext
12027 ac_cpp='$CPP $CPPFLAGS'
12028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12033 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12034 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12035 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12036 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12037 CFLAGS="$SAVE_CFLAGS"
12041 # Find out which ABI we are using.
12042 echo 'int i;' > conftest.$ac_ext
12043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12044 (eval $ac_compile) 2>&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; then
12048 case `/usr/bin/file conftest.o` in
12050 case $lt_cv_prog_gnu_ld in
12051 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12052 *) LD="${LD-ld} -64" ;;
12063 need_locks="$enable_libtool_lock"
12068 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12069 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12070 (test "X$CXX" != "Xg++"))) ; then
12072 ac_cpp='$CXXCPP $CPPFLAGS'
12073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12076 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12077 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12078 if test -z "$CXXCPP"; then
12079 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12080 echo $ECHO_N "(cached) $ECHO_C" >&6
12082 # Double quotes because CXXCPP needs to be expanded
12083 for CXXCPP in "$CXX -E" "/lib/cpp"
12085 ac_preproc_ok=false
12086 for ac_cxx_preproc_warn_flag in '' yes
12088 # Use a header file that comes with gcc, so configuring glibc
12089 # with a fresh cross-compiler works.
12090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12091 # <limits.h> exists even on freestanding compilers.
12092 # On the NeXT, cc -E runs the code through the compiler's parser,
12093 # not just through cpp. "Syntax error" is here to catch this case.
12094 cat >conftest.$ac_ext <<_ACEOF
12097 cat confdefs.h >>conftest.$ac_ext
12098 cat >>conftest.$ac_ext <<_ACEOF
12099 /* end confdefs.h. */
12101 # include <limits.h>
12103 # include <assert.h>
12107 if { (ac_try="$ac_cpp conftest.$ac_ext"
12108 case "(($ac_try" in
12109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110 *) ac_try_echo=$ac_try;;
12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12115 grep -v '^ *+' conftest.er1 >conftest.err
12117 cat conftest.err >&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } >/dev/null && {
12120 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12121 test ! -s conftest.err
12125 echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.$ac_ext >&5
12128 # Broken: fails on valid input.
12132 rm -f conftest.err conftest.$ac_ext
12134 # OK, works on sane cases. Now check whether nonexistent headers
12135 # can be detected and how.
12136 cat >conftest.$ac_ext <<_ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12142 #include <ac_nonexistent.h>
12144 if { (ac_try="$ac_cpp conftest.$ac_ext"
12145 case "(($ac_try" in
12146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12147 *) ac_try_echo=$ac_try;;
12149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12152 grep -v '^ *+' conftest.er1 >conftest.err
12154 cat conftest.err >&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); } >/dev/null && {
12157 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12158 test ! -s conftest.err
12160 # Broken: success on invalid input.
12163 echo "$as_me: failed program was:" >&5
12164 sed 's/^/| /' conftest.$ac_ext >&5
12166 # Passes both tests.
12171 rm -f conftest.err conftest.$ac_ext
12174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12175 rm -f conftest.err conftest.$ac_ext
12176 if $ac_preproc_ok; then
12181 ac_cv_prog_CXXCPP=$CXXCPP
12184 CXXCPP=$ac_cv_prog_CXXCPP
12186 ac_cv_prog_CXXCPP=$CXXCPP
12188 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12189 echo "${ECHO_T}$CXXCPP" >&6; }
12190 ac_preproc_ok=false
12191 for ac_cxx_preproc_warn_flag in '' yes
12193 # Use a header file that comes with gcc, so configuring glibc
12194 # with a fresh cross-compiler works.
12195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12196 # <limits.h> exists even on freestanding compilers.
12197 # On the NeXT, cc -E runs the code through the compiler's parser,
12198 # not just through cpp. "Syntax error" is here to catch this case.
12199 cat >conftest.$ac_ext <<_ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h. */
12206 # include <limits.h>
12208 # include <assert.h>
12212 if { (ac_try="$ac_cpp conftest.$ac_ext"
12213 case "(($ac_try" in
12214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12215 *) ac_try_echo=$ac_try;;
12217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12220 grep -v '^ *+' conftest.er1 >conftest.err
12222 cat conftest.err >&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); } >/dev/null && {
12225 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12226 test ! -s conftest.err
12230 echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12233 # Broken: fails on valid input.
12237 rm -f conftest.err conftest.$ac_ext
12239 # OK, works on sane cases. Now check whether nonexistent headers
12240 # can be detected and how.
12241 cat >conftest.$ac_ext <<_ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12247 #include <ac_nonexistent.h>
12249 if { (ac_try="$ac_cpp conftest.$ac_ext"
12250 case "(($ac_try" in
12251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 *) ac_try_echo=$ac_try;;
12254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12257 grep -v '^ *+' conftest.er1 >conftest.err
12259 cat conftest.err >&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); } >/dev/null && {
12262 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12263 test ! -s conftest.err
12265 # Broken: success on invalid input.
12268 echo "$as_me: failed program was:" >&5
12269 sed 's/^/| /' conftest.$ac_ext >&5
12271 # Passes both tests.
12276 rm -f conftest.err conftest.$ac_ext
12279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12280 rm -f conftest.err conftest.$ac_ext
12281 if $ac_preproc_ok; then
12284 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12285 See \`config.log' for more details." >&5
12286 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12287 See \`config.log' for more details." >&2;}
12288 { (exit 1); exit 1; }; }
12292 ac_cpp='$CXXCPP $CPPFLAGS'
12293 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12294 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12295 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12301 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12302 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12303 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12304 if test -n "$ac_tool_prefix"; then
12305 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
12307 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12308 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12311 if test "${ac_cv_prog_F77+set}" = set; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
12314 if test -n "$F77"; then
12315 ac_cv_prog_F77="$F77" # Let the user override the test.
12317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12318 for as_dir in $PATH
12321 test -z "$as_dir" && as_dir=.
12322 for ac_exec_ext in '' $ac_executable_extensions; do
12323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12324 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12334 F77=$ac_cv_prog_F77
12335 if test -n "$F77"; then
12336 { echo "$as_me:$LINENO: result: $F77" >&5
12337 echo "${ECHO_T}$F77" >&6; }
12339 { echo "$as_me:$LINENO: result: no" >&5
12340 echo "${ECHO_T}no" >&6; }
12344 test -n "$F77" && break
12347 if test -z "$F77"; then
12349 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
12351 # Extract the first word of "$ac_prog", so it can be a program name with args.
12352 set dummy $ac_prog; ac_word=$2
12353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12355 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12356 echo $ECHO_N "(cached) $ECHO_C" >&6
12358 if test -n "$ac_ct_F77"; then
12359 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362 for as_dir in $PATH
12365 test -z "$as_dir" && as_dir=.
12366 for ac_exec_ext in '' $ac_executable_extensions; do
12367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12368 ac_cv_prog_ac_ct_F77="$ac_prog"
12369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12378 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12379 if test -n "$ac_ct_F77"; then
12380 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12381 echo "${ECHO_T}$ac_ct_F77" >&6; }
12383 { echo "$as_me:$LINENO: result: no" >&5
12384 echo "${ECHO_T}no" >&6; }
12388 test -n "$ac_ct_F77" && break
12391 if test "x$ac_ct_F77" = x; then
12394 case $cross_compiling:$ac_tool_warned in
12396 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12397 whose name does not start with the host triplet. If you think this
12398 configuration is useful to you, please write to autoconf@gnu.org." >&5
12399 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12400 whose name does not start with the host triplet. If you think this
12401 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12402 ac_tool_warned=yes ;;
12409 # Provide some information about the compiler.
12410 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
12411 ac_compiler=`set X $ac_compile; echo $2`
12412 { (ac_try="$ac_compiler --version >&5"
12413 case "(($ac_try" in
12414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415 *) ac_try_echo=$ac_try;;
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418 (eval "$ac_compiler --version >&5") 2>&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }
12422 { (ac_try="$ac_compiler -v >&5"
12423 case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_compiler -v >&5") 2>&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }
12432 { (ac_try="$ac_compiler -V >&5"
12433 case "(($ac_try" in
12434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435 *) ac_try_echo=$ac_try;;
12437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12438 (eval "$ac_compiler -V >&5") 2>&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }
12444 # If we don't use `.F' as extension, the preprocessor is not run on the
12445 # input file. (Note that this only needs to work for GNU compilers.)
12446 ac_save_ext=$ac_ext
12448 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12449 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
12450 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12451 echo $ECHO_N "(cached) $ECHO_C" >&6
12453 cat >conftest.$ac_ext <<_ACEOF
12461 rm -f conftest.$ac_objext
12462 if { (ac_try="$ac_compile"
12463 case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468 (eval "$ac_compile") 2>conftest.er1
12470 grep -v '^ *+' conftest.er1 >conftest.err
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } && {
12475 test -z "$ac_f77_werror_flag" ||
12476 test ! -s conftest.err
12477 } && test -s conftest.$ac_objext; then
12478 ac_compiler_gnu=yes
12480 echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.$ac_ext >&5
12486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12487 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12490 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12491 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
12492 ac_ext=$ac_save_ext
12493 ac_test_FFLAGS=${FFLAGS+set}
12494 ac_save_FFLAGS=$FFLAGS
12496 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12497 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
12498 if test "${ac_cv_prog_f77_g+set}" = set; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
12502 cat >conftest.$ac_ext <<_ACEOF
12507 rm -f conftest.$ac_objext
12508 if { (ac_try="$ac_compile"
12509 case "(($ac_try" in
12510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12511 *) ac_try_echo=$ac_try;;
12513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12514 (eval "$ac_compile") 2>conftest.er1
12516 grep -v '^ *+' conftest.er1 >conftest.err
12518 cat conftest.err >&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); } && {
12521 test -z "$ac_f77_werror_flag" ||
12522 test ! -s conftest.err
12523 } && test -s conftest.$ac_objext; then
12524 ac_cv_prog_f77_g=yes
12526 echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12529 ac_cv_prog_f77_g=no
12532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12535 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12536 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
12537 if test "$ac_test_FFLAGS" = set; then
12538 FFLAGS=$ac_save_FFLAGS
12539 elif test $ac_cv_prog_f77_g = yes; then
12540 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12546 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12553 G77=`test $ac_compiler_gnu = yes && echo yes`
12555 ac_cpp='$CPP $CPPFLAGS'
12556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12562 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12564 # find the maximum length of command line arguments
12565 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12566 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
12567 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12568 echo $ECHO_N "(cached) $ECHO_C" >&6
12575 # On DJGPP, this test can blow up pretty badly due to problems in libc
12576 # (any single argument exceeding 2000 bytes causes a buffer overrun
12577 # during glob expansion). Even if it were fixed, the result of this
12578 # check would be larger than it should be.
12579 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12583 # Under GNU Hurd, this test is not required because there is
12584 # no limit to the length of command line arguments.
12585 # Libtool will interpret -1 as no limit whatsoever
12586 lt_cv_sys_max_cmd_len=-1;
12590 # On Win9x/ME, this test blows up -- it succeeds, but takes
12591 # about 5 minutes as the teststring grows exponentially.
12592 # Worse, since 9x/ME are not pre-emptively multitasking,
12593 # you end up with a "frozen" computer, even though with patience
12594 # the test eventually succeeds (with a max line length of 256k).
12595 # Instead, let's just punt: use the minimum linelength reported by
12596 # all of the supported platforms: 8192 (on NT/2K/XP).
12597 lt_cv_sys_max_cmd_len=8192;
12601 # On AmigaOS with pdksh, this test takes hours, literally.
12602 # So we just punt and use a minimum line length of 8192.
12603 lt_cv_sys_max_cmd_len=8192;
12606 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12607 # This has been around since 386BSD, at least. Likely further.
12608 if test -x /sbin/sysctl; then
12609 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12610 elif test -x /usr/sbin/sysctl; then
12611 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12613 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12615 # And add a safety zone
12616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12617 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12621 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12622 lt_cv_sys_max_cmd_len=196608
12626 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12627 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12628 # nice to cause kernel panics so lets avoid the loop below.
12629 # First set a reasonable default.
12630 lt_cv_sys_max_cmd_len=16384
12632 if test -x /sbin/sysconfig; then
12633 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12634 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12639 lt_cv_sys_max_cmd_len=102400
12641 sysv5* | sco5v6* | sysv4.2uw2*)
12642 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12643 if test -n "$kargmax"; then
12644 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12646 lt_cv_sys_max_cmd_len=32768
12650 # If test is not a shell built-in, we'll probably end up computing a
12651 # maximum length that is only half of the actual maximum length, but
12653 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12654 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12655 = "XX$teststring") >/dev/null 2>&1 &&
12656 new_result=`expr "X$teststring" : ".*" 2>&1` &&
12657 lt_cv_sys_max_cmd_len=$new_result &&
12658 test $i != 17 # 1/2 MB should be enough
12661 teststring=$teststring$teststring
12664 # Add a significant safety factor because C++ compilers can tack on massive
12665 # amounts of additional arguments before passing them to the linker.
12666 # It appears as though 1/2 is a usable value.
12667 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12673 if test -n $lt_cv_sys_max_cmd_len ; then
12674 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12675 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
12677 { echo "$as_me:$LINENO: result: none" >&5
12678 echo "${ECHO_T}none" >&6; }
12684 # Check for command to grab the raw symbol name followed by C symbol from nm.
12685 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12686 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
12687 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12688 echo $ECHO_N "(cached) $ECHO_C" >&6
12691 # These are sane defaults that work on at least a few old systems.
12692 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12694 # Character class describing NM global symbol codes.
12695 symcode='[BCDEGRST]'
12697 # Regexp to match symbols that can be accessed directly from C.
12698 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12700 # Transform an extracted symbol line into a proper C declaration
12701 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12703 # Transform an extracted symbol line into symbol name and symbol address
12704 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'"
12706 # Define system-specific variables.
12711 cygwin* | mingw* | pw32*)
12712 symcode='[ABCDGISTW]'
12714 hpux*) # Its linker distinguishes data from code symbols
12715 if test "$host_cpu" = ia64; then
12716 symcode='[ABCDEGRST]'
12718 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12719 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'"
12722 if test "$host_cpu" = ia64; then
12723 symcode='[ABCDGIRSTW]'
12724 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12725 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'"
12728 irix* | nonstopux*)
12729 symcode='[BCDEGRST]'
12732 symcode='[BCDEGQRST]'
12743 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12751 # Handle CRLF in mingw tool chain
12755 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12759 # If we're using GNU nm, then use its standard symbol codes.
12760 case `$NM -V 2>&1` in
12761 *GNU* | *'with BFD'*)
12762 symcode='[ABCDGIRSTW]' ;;
12765 # Try without a prefix undercore, then with it.
12766 for ac_symprfx in "" "_"; do
12768 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12769 symxfrm="\\1 $ac_symprfx\\2 \\2"
12771 # Write the raw and C identifiers.
12772 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12774 # Check to see that the pipe works correctly.
12778 cat > conftest.$ac_ext <<EOF
12783 void nm_test_func(){}
12787 int main(){nm_test_var='a';nm_test_func();return(0);}
12790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12791 (eval $ac_compile) 2>&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; then
12795 # Now try to grab the symbols.
12797 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12798 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } && test -s "$nlist"; then
12802 # Try sorting and uniquifying the output.
12803 if sort "$nlist" | uniq > "$nlist"T; then
12804 mv -f "$nlist"T "$nlist"
12809 # Make sure that we snagged all the symbols we need.
12810 if grep ' nm_test_var$' "$nlist" >/dev/null; then
12811 if grep ' nm_test_func$' "$nlist" >/dev/null; then
12812 cat <<EOF > conftest.$ac_ext
12818 # Now generate the symbol file.
12819 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12821 cat <<EOF >> conftest.$ac_ext
12822 #if defined (__STDC__) && __STDC__
12823 # define lt_ptr_t void *
12825 # define lt_ptr_t char *
12829 /* The mapping between symbol names and symbols. */
12834 lt_preloaded_symbols[] =
12837 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12838 cat <<\EOF >> conftest.$ac_ext
12846 # Now try linking the two files.
12847 mv conftest.$ac_objext conftstm.$ac_objext
12848 lt_save_LIBS="$LIBS"
12849 lt_save_CFLAGS="$CFLAGS"
12850 LIBS="conftstm.$ac_objext"
12851 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12853 (eval $ac_link) 2>&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } && test -s conftest${ac_exeext}; then
12859 LIBS="$lt_save_LIBS"
12860 CFLAGS="$lt_save_CFLAGS"
12862 echo "cannot find nm_test_func in $nlist" >&5
12865 echo "cannot find nm_test_var in $nlist" >&5
12868 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12871 echo "$progname: failed program was:" >&5
12872 cat conftest.$ac_ext >&5
12874 rm -f conftest* conftst*
12876 # Do not use the global_symbol_pipe unless it works.
12877 if test "$pipe_works" = yes; then
12880 lt_cv_sys_global_symbol_pipe=
12886 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12887 lt_cv_sys_global_symbol_to_cdecl=
12889 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12890 { echo "$as_me:$LINENO: result: failed" >&5
12891 echo "${ECHO_T}failed" >&6; }
12893 { echo "$as_me:$LINENO: result: ok" >&5
12894 echo "${ECHO_T}ok" >&6; }
12897 { echo "$as_me:$LINENO: checking for objdir" >&5
12898 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
12899 if test "${lt_cv_objdir+set}" = set; then
12900 echo $ECHO_N "(cached) $ECHO_C" >&6
12902 rm -f .libs 2>/dev/null
12903 mkdir .libs 2>/dev/null
12904 if test -d .libs; then
12907 # MS-DOS does not allow filenames that begin with a dot.
12910 rmdir .libs 2>/dev/null
12912 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12913 echo "${ECHO_T}$lt_cv_objdir" >&6; }
12914 objdir=$lt_cv_objdir
12922 # AIX sometimes has problems with the GCC collect2 program. For some
12923 # reason, if we set the COLLECT_NAMES environment variable, the problems
12924 # vanish in a puff of smoke.
12925 if test "X${COLLECT_NAMES+set}" != Xset; then
12927 export COLLECT_NAMES
12932 # Sed substitution that helps us do robust quoting. It backslashifies
12933 # metacharacters that are still active within double-quoted strings.
12934 Xsed='sed -e 1s/^X//'
12935 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
12937 # Same as above, but do not quote variable references.
12938 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
12940 # Sed substitution to delay expansion of an escaped shell variable in a
12941 # double_quote_subst'ed string.
12942 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12944 # Sed substitution to avoid accidental globbing in evaled expressions
12945 no_glob_subst='s/\*/\\\*/g'
12950 # Global variables:
12951 default_ofile=mklib
12952 can_build_shared=yes
12954 # All known linkers require a `.a' archive for static linking (except MSVC,
12955 # which needs '.lib').
12957 ltmain="$ac_aux_dir/ltmain.sh"
12958 ofile="$default_ofile"
12959 with_gnu_ld="$lt_cv_prog_gnu_ld"
12961 if test -n "$ac_tool_prefix"; then
12962 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12963 set dummy ${ac_tool_prefix}ar; ac_word=$2
12964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12966 if test "${ac_cv_prog_AR+set}" = set; then
12967 echo $ECHO_N "(cached) $ECHO_C" >&6
12969 if test -n "$AR"; then
12970 ac_cv_prog_AR="$AR" # Let the user override the test.
12972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12973 for as_dir in $PATH
12976 test -z "$as_dir" && as_dir=.
12977 for ac_exec_ext in '' $ac_executable_extensions; do
12978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12979 ac_cv_prog_AR="${ac_tool_prefix}ar"
12980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12990 if test -n "$AR"; then
12991 { echo "$as_me:$LINENO: result: $AR" >&5
12992 echo "${ECHO_T}$AR" >&6; }
12994 { echo "$as_me:$LINENO: result: no" >&5
12995 echo "${ECHO_T}no" >&6; }
13000 if test -z "$ac_cv_prog_AR"; then
13002 # Extract the first word of "ar", so it can be a program name with args.
13003 set dummy ar; ac_word=$2
13004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13006 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13007 echo $ECHO_N "(cached) $ECHO_C" >&6
13009 if test -n "$ac_ct_AR"; then
13010 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13013 for as_dir in $PATH
13016 test -z "$as_dir" && as_dir=.
13017 for ac_exec_ext in '' $ac_executable_extensions; do
13018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13019 ac_cv_prog_ac_ct_AR="ar"
13020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13029 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13030 if test -n "$ac_ct_AR"; then
13031 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13032 echo "${ECHO_T}$ac_ct_AR" >&6; }
13034 { echo "$as_me:$LINENO: result: no" >&5
13035 echo "${ECHO_T}no" >&6; }
13038 if test "x$ac_ct_AR" = x; then
13041 case $cross_compiling:$ac_tool_warned in
13043 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13044 whose name does not start with the host triplet. If you think this
13045 configuration is useful to you, please write to autoconf@gnu.org." >&5
13046 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13047 whose name does not start with the host triplet. If you think this
13048 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13049 ac_tool_warned=yes ;;
13054 AR="$ac_cv_prog_AR"
13057 if test -n "$ac_tool_prefix"; then
13058 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13059 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13062 if test "${ac_cv_prog_RANLIB+set}" = set; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13065 if test -n "$RANLIB"; then
13066 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13069 for as_dir in $PATH
13072 test -z "$as_dir" && as_dir=.
13073 for ac_exec_ext in '' $ac_executable_extensions; do
13074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13075 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13085 RANLIB=$ac_cv_prog_RANLIB
13086 if test -n "$RANLIB"; then
13087 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13088 echo "${ECHO_T}$RANLIB" >&6; }
13090 { echo "$as_me:$LINENO: result: no" >&5
13091 echo "${ECHO_T}no" >&6; }
13096 if test -z "$ac_cv_prog_RANLIB"; then
13097 ac_ct_RANLIB=$RANLIB
13098 # Extract the first word of "ranlib", so it can be a program name with args.
13099 set dummy ranlib; ac_word=$2
13100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13102 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13103 echo $ECHO_N "(cached) $ECHO_C" >&6
13105 if test -n "$ac_ct_RANLIB"; then
13106 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13109 for as_dir in $PATH
13112 test -z "$as_dir" && as_dir=.
13113 for ac_exec_ext in '' $ac_executable_extensions; do
13114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13115 ac_cv_prog_ac_ct_RANLIB="ranlib"
13116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13125 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13126 if test -n "$ac_ct_RANLIB"; then
13127 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13128 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13130 { echo "$as_me:$LINENO: result: no" >&5
13131 echo "${ECHO_T}no" >&6; }
13134 if test "x$ac_ct_RANLIB" = x; then
13137 case $cross_compiling:$ac_tool_warned in
13139 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13140 whose name does not start with the host triplet. If you think this
13141 configuration is useful to you, please write to autoconf@gnu.org." >&5
13142 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13143 whose name does not start with the host triplet. If you think this
13144 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13145 ac_tool_warned=yes ;;
13147 RANLIB=$ac_ct_RANLIB
13150 RANLIB="$ac_cv_prog_RANLIB"
13153 if test -n "$ac_tool_prefix"; then
13154 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13155 set dummy ${ac_tool_prefix}strip; ac_word=$2
13156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13158 if test "${ac_cv_prog_STRIP+set}" = set; then
13159 echo $ECHO_N "(cached) $ECHO_C" >&6
13161 if test -n "$STRIP"; then
13162 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165 for as_dir in $PATH
13168 test -z "$as_dir" && as_dir=.
13169 for ac_exec_ext in '' $ac_executable_extensions; do
13170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13171 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13181 STRIP=$ac_cv_prog_STRIP
13182 if test -n "$STRIP"; then
13183 { echo "$as_me:$LINENO: result: $STRIP" >&5
13184 echo "${ECHO_T}$STRIP" >&6; }
13186 { echo "$as_me:$LINENO: result: no" >&5
13187 echo "${ECHO_T}no" >&6; }
13192 if test -z "$ac_cv_prog_STRIP"; then
13194 # Extract the first word of "strip", so it can be a program name with args.
13195 set dummy strip; ac_word=$2
13196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13198 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13199 echo $ECHO_N "(cached) $ECHO_C" >&6
13201 if test -n "$ac_ct_STRIP"; then
13202 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205 for as_dir in $PATH
13208 test -z "$as_dir" && as_dir=.
13209 for ac_exec_ext in '' $ac_executable_extensions; do
13210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13211 ac_cv_prog_ac_ct_STRIP="strip"
13212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13221 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13222 if test -n "$ac_ct_STRIP"; then
13223 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13224 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13226 { echo "$as_me:$LINENO: result: no" >&5
13227 echo "${ECHO_T}no" >&6; }
13230 if test "x$ac_ct_STRIP" = x; then
13233 case $cross_compiling:$ac_tool_warned in
13235 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13236 whose name does not start with the host triplet. If you think this
13237 configuration is useful to you, please write to autoconf@gnu.org." >&5
13238 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13239 whose name does not start with the host triplet. If you think this
13240 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13241 ac_tool_warned=yes ;;
13246 STRIP="$ac_cv_prog_STRIP"
13251 old_CFLAGS="$CFLAGS"
13253 # Set sane defaults for various variables
13254 test -z "$AR" && AR=ar
13255 test -z "$AR_FLAGS" && AR_FLAGS=cru
13256 test -z "$AS" && AS=as
13257 test -z "$CC" && CC=cc
13258 test -z "$LTCC" && LTCC=$CC
13259 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13260 test -z "$DLLTOOL" && DLLTOOL=dlltool
13261 test -z "$LD" && LD=ld
13262 test -z "$LN_S" && LN_S="ln -s"
13263 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13264 test -z "$NM" && NM=nm
13265 test -z "$SED" && SED=sed
13266 test -z "$OBJDUMP" && OBJDUMP=objdump
13267 test -z "$RANLIB" && RANLIB=:
13268 test -z "$STRIP" && STRIP=:
13269 test -z "$ac_objext" && ac_objext=o
13271 # Determine commands to create old-style static archives.
13272 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13273 old_postinstall_cmds='chmod 644 $oldlib'
13274 old_postuninstall_cmds=
13276 if test -n "$RANLIB"; then
13279 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13282 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13285 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13288 for cc_temp in $compiler""; do
13290 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13291 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13296 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13299 # Only perform the check for file, if the check method requires it
13300 case $deplibs_check_method in
13302 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13303 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13304 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13305 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13306 echo $ECHO_N "(cached) $ECHO_C" >&6
13310 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13313 lt_save_MAGIC_CMD="$MAGIC_CMD"
13314 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13315 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13316 for ac_dir in $ac_dummy; do
13318 test -z "$ac_dir" && ac_dir=.
13319 if test -f $ac_dir/${ac_tool_prefix}file; then
13320 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13321 if test -n "$file_magic_test_file"; then
13322 case $deplibs_check_method in
13324 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13325 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13326 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13327 $EGREP "$file_magic_regex" > /dev/null; then
13332 *** Warning: the command libtool uses to detect shared libraries,
13333 *** $file_magic_cmd, produces output that libtool cannot recognize.
13334 *** The result is that libtool may fail to recognize shared libraries
13335 *** as such. This will affect the creation of libtool libraries that
13336 *** depend on shared libraries, but programs linked with such libtool
13337 *** libraries will work regardless of this problem. Nevertheless, you
13338 *** may want to report the problem to your system manager and/or to
13339 *** bug-libtool@gnu.org
13349 MAGIC_CMD="$lt_save_MAGIC_CMD"
13354 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13355 if test -n "$MAGIC_CMD"; then
13356 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13357 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13359 { echo "$as_me:$LINENO: result: no" >&5
13360 echo "${ECHO_T}no" >&6; }
13363 if test -z "$lt_cv_path_MAGIC_CMD"; then
13364 if test -n "$ac_tool_prefix"; then
13365 { echo "$as_me:$LINENO: checking for file" >&5
13366 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
13367 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13372 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13375 lt_save_MAGIC_CMD="$MAGIC_CMD"
13376 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13377 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13378 for ac_dir in $ac_dummy; do
13380 test -z "$ac_dir" && ac_dir=.
13381 if test -f $ac_dir/file; then
13382 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13383 if test -n "$file_magic_test_file"; then
13384 case $deplibs_check_method in
13386 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13387 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13388 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13389 $EGREP "$file_magic_regex" > /dev/null; then
13394 *** Warning: the command libtool uses to detect shared libraries,
13395 *** $file_magic_cmd, produces output that libtool cannot recognize.
13396 *** The result is that libtool may fail to recognize shared libraries
13397 *** as such. This will affect the creation of libtool libraries that
13398 *** depend on shared libraries, but programs linked with such libtool
13399 *** libraries will work regardless of this problem. Nevertheless, you
13400 *** may want to report the problem to your system manager and/or to
13401 *** bug-libtool@gnu.org
13411 MAGIC_CMD="$lt_save_MAGIC_CMD"
13416 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13417 if test -n "$MAGIC_CMD"; then
13418 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13419 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13421 { echo "$as_me:$LINENO: result: no" >&5
13422 echo "${ECHO_T}no" >&6; }
13435 enable_win32_dll=no
13437 # Check whether --enable-libtool-lock was given.
13438 if test "${enable_libtool_lock+set}" = set; then
13439 enableval=$enable_libtool_lock;
13442 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13445 # Check whether --with-pic was given.
13446 if test "${with_pic+set}" = set; then
13447 withval=$with_pic; pic_mode="$withval"
13452 test -z "$pic_mode" && pic_mode=default
13454 # Use C for the default configuration in the libtool script
13458 ac_cpp='$CPP $CPPFLAGS'
13459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13464 # Source file extension for C test sources.
13467 # Object file extension for compiled C test sources.
13471 # Code to be used in simple compile tests
13472 lt_simple_compile_test_code="int some_variable = 0;\n"
13474 # Code to be used in simple link tests
13475 lt_simple_link_test_code='int main(){return(0);}\n'
13478 # If no C compiler was specified, use CC.
13481 # If no C compiler flags were specified, use CFLAGS.
13482 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13484 # Allow CC to be a program name with arguments.
13488 # save warnings/boilerplate of simple test code
13489 ac_outfile=conftest.$ac_objext
13490 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13491 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13492 _lt_compiler_boilerplate=`cat conftest.err`
13495 ac_outfile=conftest.$ac_objext
13496 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13497 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13498 _lt_linker_boilerplate=`cat conftest.err`
13503 lt_prog_compiler_no_builtin_flag=
13505 if test "$GCC" = yes; then
13506 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13509 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13510 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
13511 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13512 echo $ECHO_N "(cached) $ECHO_C" >&6
13514 lt_cv_prog_compiler_rtti_exceptions=no
13515 ac_outfile=conftest.$ac_objext
13516 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13517 lt_compiler_flag="-fno-rtti -fno-exceptions"
13518 # Insert the option either (1) after the last *FLAGS variable, or
13519 # (2) before a word containing "conftest.", or (3) at the end.
13520 # Note that $ac_compile itself does not contain backslashes and begins
13521 # with a dollar sign (not a hyphen), so the echo should work correctly.
13522 # The option is referenced via a variable to avoid confusing sed.
13523 lt_compile=`echo "$ac_compile" | $SED \
13524 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13525 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13526 -e 's:$: $lt_compiler_flag:'`
13527 (eval echo "\"\$as_me:13527: $lt_compile\"" >&5)
13528 (eval "$lt_compile" 2>conftest.err)
13530 cat conftest.err >&5
13531 echo "$as_me:13531: \$? = $ac_status" >&5
13532 if (exit $ac_status) && test -s "$ac_outfile"; then
13533 # The compiler can only warn and ignore the option if not recognized
13534 # So say no if there are warnings other than the usual output.
13535 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13536 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13537 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13538 lt_cv_prog_compiler_rtti_exceptions=yes
13544 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13545 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13547 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13548 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13555 lt_prog_compiler_wl=
13556 lt_prog_compiler_pic=
13557 lt_prog_compiler_static=
13559 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13560 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13562 if test "$GCC" = yes; then
13563 lt_prog_compiler_wl='-Wl,'
13564 lt_prog_compiler_static='-static'
13568 # All AIX code is PIC.
13569 if test "$host_cpu" = ia64; then
13570 # AIX 5 now supports IA64 processor
13571 lt_prog_compiler_static='-Bstatic'
13576 # FIXME: we need at least 68020 code to build shared libraries, but
13577 # adding the `-m68020' flag to GCC prevents building anything better,
13579 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13582 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13583 # PIC is the default for these OSes.
13586 mingw* | pw32* | os2*)
13587 # This hack is so that the source file can tell whether it is being
13588 # built for inclusion in a dll (and should export symbols for example).
13589 lt_prog_compiler_pic='-DDLL_EXPORT'
13592 darwin* | rhapsody*)
13593 # PIC is the default on this platform
13594 # Common symbols not allowed in MH_DYLIB files
13595 lt_prog_compiler_pic='-fno-common'
13599 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13600 # Instead, we relocate shared libraries at runtime.
13604 # Just because we use GCC doesn't mean we suddenly get shared libraries
13605 # on systems that don't support them.
13606 lt_prog_compiler_can_build_shared=no
13611 if test -d /usr/nec; then
13612 lt_prog_compiler_pic=-Kconform_pic
13617 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13618 # not for PA HP-UX.
13624 lt_prog_compiler_pic='-fPIC'
13630 lt_prog_compiler_pic='-fPIC'
13634 # PORTME Check for flag to pass linker flags through the system compiler.
13637 lt_prog_compiler_wl='-Wl,'
13638 if test "$host_cpu" = ia64; then
13639 # AIX 5 now supports IA64 processor
13640 lt_prog_compiler_static='-Bstatic'
13642 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13646 # PIC is the default on this platform
13647 # Common symbols not allowed in MH_DYLIB files
13648 case $cc_basename in
13650 lt_prog_compiler_pic='-qnocommon'
13651 lt_prog_compiler_wl='-Wl,'
13656 mingw* | pw32* | os2*)
13657 # This hack is so that the source file can tell whether it is being
13658 # built for inclusion in a dll (and should export symbols for example).
13659 lt_prog_compiler_pic='-DDLL_EXPORT'
13662 hpux9* | hpux10* | hpux11*)
13663 lt_prog_compiler_wl='-Wl,'
13664 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13665 # not for PA HP-UX.
13671 lt_prog_compiler_pic='+Z'
13674 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13675 lt_prog_compiler_static='${wl}-a ${wl}archive'
13678 irix5* | irix6* | nonstopux*)
13679 lt_prog_compiler_wl='-Wl,'
13680 # PIC (with -KPIC) is the default.
13681 lt_prog_compiler_static='-non_shared'
13685 lt_prog_compiler_pic='-KPIC'
13686 lt_prog_compiler_static='-Bstatic'
13690 case $cc_basename in
13692 lt_prog_compiler_wl='-Wl,'
13693 lt_prog_compiler_pic='-KPIC'
13694 lt_prog_compiler_static='-static'
13696 pgcc* | pgf77* | pgf90* | pgf95*)
13697 # Portland Group compilers (*not* the Pentium gcc compiler,
13698 # which looks to be a dead project)
13699 lt_prog_compiler_wl='-Wl,'
13700 lt_prog_compiler_pic='-fpic'
13701 lt_prog_compiler_static='-Bstatic'
13704 lt_prog_compiler_wl='-Wl,'
13705 # All Alpha code is PIC.
13706 lt_prog_compiler_static='-non_shared'
13711 osf3* | osf4* | osf5*)
13712 lt_prog_compiler_wl='-Wl,'
13713 # All OSF/1 code is PIC.
13714 lt_prog_compiler_static='-non_shared'
13718 lt_prog_compiler_pic='-KPIC'
13719 lt_prog_compiler_static='-Bstatic'
13720 case $cc_basename in
13721 f77* | f90* | f95*)
13722 lt_prog_compiler_wl='-Qoption ld ';;
13724 lt_prog_compiler_wl='-Wl,';;
13729 lt_prog_compiler_wl='-Qoption ld '
13730 lt_prog_compiler_pic='-PIC'
13731 lt_prog_compiler_static='-Bstatic'
13734 sysv4 | sysv4.2uw2* | sysv4.3*)
13735 lt_prog_compiler_wl='-Wl,'
13736 lt_prog_compiler_pic='-KPIC'
13737 lt_prog_compiler_static='-Bstatic'
13741 if test -d /usr/nec ;then
13742 lt_prog_compiler_pic='-Kconform_pic'
13743 lt_prog_compiler_static='-Bstatic'
13747 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13748 lt_prog_compiler_wl='-Wl,'
13749 lt_prog_compiler_pic='-KPIC'
13750 lt_prog_compiler_static='-Bstatic'
13754 lt_prog_compiler_wl='-Wl,'
13755 lt_prog_compiler_can_build_shared=no
13759 lt_prog_compiler_pic='-pic'
13760 lt_prog_compiler_static='-Bstatic'
13764 lt_prog_compiler_can_build_shared=no
13769 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13770 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
13773 # Check to make sure the PIC flag actually works.
13775 if test -n "$lt_prog_compiler_pic"; then
13777 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13778 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
13779 if test "${lt_prog_compiler_pic_works+set}" = set; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13782 lt_prog_compiler_pic_works=no
13783 ac_outfile=conftest.$ac_objext
13784 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13785 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13786 # Insert the option either (1) after the last *FLAGS variable, or
13787 # (2) before a word containing "conftest.", or (3) at the end.
13788 # Note that $ac_compile itself does not contain backslashes and begins
13789 # with a dollar sign (not a hyphen), so the echo should work correctly.
13790 # The option is referenced via a variable to avoid confusing sed.
13791 lt_compile=`echo "$ac_compile" | $SED \
13792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13794 -e 's:$: $lt_compiler_flag:'`
13795 (eval echo "\"\$as_me:13795: $lt_compile\"" >&5)
13796 (eval "$lt_compile" 2>conftest.err)
13798 cat conftest.err >&5
13799 echo "$as_me:13799: \$? = $ac_status" >&5
13800 if (exit $ac_status) && test -s "$ac_outfile"; then
13801 # The compiler can only warn and ignore the option if not recognized
13802 # So say no if there are warnings other than the usual output.
13803 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13805 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13806 lt_prog_compiler_pic_works=yes
13812 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13813 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
13815 if test x"$lt_prog_compiler_pic_works" = xyes; then
13816 case $lt_prog_compiler_pic in
13818 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13821 lt_prog_compiler_pic=
13822 lt_prog_compiler_can_build_shared=no
13827 # For platforms which do not support PIC, -DPIC is meaningless:
13829 lt_prog_compiler_pic=
13832 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13837 # Check to make sure the static flag actually works.
13839 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13840 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13841 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13842 if test "${lt_prog_compiler_static_works+set}" = set; then
13843 echo $ECHO_N "(cached) $ECHO_C" >&6
13845 lt_prog_compiler_static_works=no
13846 save_LDFLAGS="$LDFLAGS"
13847 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13848 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13849 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13850 # The linker can only warn and ignore the option if not recognized
13851 # So say no if there are warnings
13852 if test -s conftest.err; then
13853 # Append any errors to the config.log.
13854 cat conftest.err 1>&5
13855 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13857 if diff conftest.exp conftest.er2 >/dev/null; then
13858 lt_prog_compiler_static_works=yes
13861 lt_prog_compiler_static_works=yes
13865 LDFLAGS="$save_LDFLAGS"
13868 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
13869 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
13871 if test x"$lt_prog_compiler_static_works" = xyes; then
13874 lt_prog_compiler_static=
13878 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13879 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13880 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
13883 lt_cv_prog_compiler_c_o=no
13884 $rm -r conftest 2>/dev/null
13888 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13890 lt_compiler_flag="-o out/conftest2.$ac_objext"
13891 # Insert the option either (1) after the last *FLAGS variable, or
13892 # (2) before a word containing "conftest.", or (3) at the end.
13893 # Note that $ac_compile itself does not contain backslashes and begins
13894 # with a dollar sign (not a hyphen), so the echo should work correctly.
13895 lt_compile=`echo "$ac_compile" | $SED \
13896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13898 -e 's:$: $lt_compiler_flag:'`
13899 (eval echo "\"\$as_me:13899: $lt_compile\"" >&5)
13900 (eval "$lt_compile" 2>out/conftest.err)
13902 cat out/conftest.err >&5
13903 echo "$as_me:13903: \$? = $ac_status" >&5
13904 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13906 # The compiler can only warn and ignore the option if not recognized
13907 # So say no if there are warnings
13908 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13909 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13910 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13911 lt_cv_prog_compiler_c_o=yes
13916 # SGI C++ compiler will create directory out/ii_files/ for
13917 # template instantiation
13918 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13919 $rm out/* && rmdir out
13925 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13926 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
13929 hard_links="nottested"
13930 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13931 # do not overwrite the value of need_locks provided by the user
13932 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13933 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13936 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13938 ln conftest.a conftest.b 2>&5 || hard_links=no
13939 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13940 { echo "$as_me:$LINENO: result: $hard_links" >&5
13941 echo "${ECHO_T}$hard_links" >&6; }
13942 if test "$hard_links" = no; then
13943 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13944 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13951 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13952 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13955 allow_undefined_flag=
13956 enable_shared_with_static_runtimes=no
13958 archive_expsym_cmds=
13959 old_archive_From_new_cmds=
13960 old_archive_from_expsyms_cmds=
13961 export_dynamic_flag_spec=
13962 whole_archive_flag_spec=
13963 thread_safe_flag_spec=
13964 hardcode_libdir_flag_spec=
13965 hardcode_libdir_flag_spec_ld=
13966 hardcode_libdir_separator=
13968 hardcode_minus_L=no
13969 hardcode_shlibpath_var=unsupported
13970 link_all_deplibs=unknown
13971 hardcode_automatic=no
13973 module_expsym_cmds=
13974 always_export_symbols=no
13975 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13976 # include_expsyms should be a list of space-separated symbols to be *always*
13977 # included in the symbol list
13979 # exclude_expsyms can be an extended regexp of symbols to exclude
13980 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13981 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13982 # as well as any symbol that contains `d'.
13983 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
13984 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13985 # platforms (ab)use it in PIC code, but their linkers get confused if
13986 # the symbol is explicitly referenced. Since portable code cannot
13987 # rely on this symbol name, it's probably fine to never include it in
13988 # preloaded symbol tables.
13989 extract_expsyms_cmds=
13990 # Just being paranoid about ensuring that cc_basename is set.
13991 for cc_temp in $compiler""; do
13993 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13994 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13999 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14002 cygwin* | mingw* | pw32*)
14003 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14004 # When not using gcc, we currently assume that we are using
14005 # Microsoft Visual C++.
14006 if test "$GCC" != yes; then
14011 # we just hope/assume this is gcc and not c89 (= MSVC++)
14020 if test "$with_gnu_ld" = yes; then
14021 # If archive_cmds runs LD, not CC, wlarc should be empty
14024 # Set some defaults for GNU ld with shared library support. These
14025 # are reset later if shared libraries are not supported. Putting them
14026 # here allows them to be overridden if necessary.
14027 runpath_var=LD_RUN_PATH
14028 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14029 export_dynamic_flag_spec='${wl}--export-dynamic'
14030 # ancient GNU ld didn't support --whole-archive et. al.
14031 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14032 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14034 whole_archive_flag_spec=
14036 supports_anon_versioning=no
14037 case `$LD -v 2>/dev/null` in
14038 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14039 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14040 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14041 *\ 2.11.*) ;; # other 2.11 versions
14042 *) supports_anon_versioning=yes ;;
14045 # See if GNU ld supports shared libraries.
14047 aix3* | aix4* | aix5*)
14048 # On AIX/PPC, the GNU linker is very broken
14049 if test "$host_cpu" != ia64; then
14053 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14054 *** to be unable to reliably create shared libraries on AIX.
14055 *** Therefore, libtool is disabling shared libraries support. If you
14056 *** really care for shared libraries, you may want to modify your PATH
14057 *** so that a non-GNU linker is found, and then restart.
14064 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)'
14065 hardcode_libdir_flag_spec='-L$libdir'
14066 hardcode_minus_L=yes
14068 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14069 # that the semantics of dynamic libraries on AmigaOS, at least up
14070 # to version 4, is to share data among multiple programs linked
14071 # with the same dynamic library. Since this doesn't match the
14072 # behavior of shared libraries on other platforms, we can't use
14078 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14079 allow_undefined_flag=unsupported
14080 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14081 # support --undefined. This deserves some investigation. FIXME
14082 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14088 cygwin* | mingw* | pw32*)
14089 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14090 # as there is no search path for DLLs.
14091 hardcode_libdir_flag_spec='-L$libdir'
14092 allow_undefined_flag=unsupported
14093 always_export_symbols=no
14094 enable_shared_with_static_runtimes=yes
14095 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14097 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14098 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14099 # If the export-symbols file already is a .def file (1st line
14100 # is EXPORTS), use it as is; otherwise, prepend...
14101 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14102 cp $export_symbols $output_objdir/$soname.def;
14104 echo EXPORTS > $output_objdir/$soname.def;
14105 cat $export_symbols >> $output_objdir/$soname.def;
14107 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14115 hardcode_shlibpath_var=no
14116 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14117 export_dynamic_flag_spec='${wl}-E'
14118 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14119 # Instead, shared libraries are loaded at an image base (0x10000000 by
14120 # default) and relocated if they conflict, which is a slow very memory
14121 # consuming and fragmenting process. To avoid this, we pick a random,
14122 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14123 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14124 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14125 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'
14129 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14131 case $cc_basename,$host_cpu in
14132 pgcc*) # Portland Group C compiler
14133 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'
14134 tmp_addflag=' $pic_flag'
14136 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14137 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'
14138 tmp_addflag=' $pic_flag -Mnomain' ;;
14139 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14140 tmp_addflag=' -i_dynamic' ;;
14141 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14142 tmp_addflag=' -i_dynamic -nofor_main' ;;
14143 ifc* | ifort*) # Intel Fortran compiler
14144 tmp_addflag=' -nofor_main' ;;
14146 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14148 if test $supports_anon_versioning = yes; then
14149 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14150 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14151 $echo "local: *; };" >> $output_objdir/$libname.ver~
14152 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14160 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14161 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14164 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14165 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14170 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14174 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14175 *** create shared libraries on Solaris systems. Therefore, libtool
14176 *** is disabling shared libraries support. We urge you to upgrade GNU
14177 *** binutils to release 2.9.1 or newer. Another option is to modify
14178 *** your PATH or compiler configuration so that the native linker is
14179 *** used, and then restart.
14182 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14184 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14190 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14191 case `$LD -v 2>&1` in
14192 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14196 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14197 *** reliably create shared libraries on SCO systems. Therefore, libtool
14198 *** is disabling shared libraries support. We urge you to upgrade GNU
14199 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14200 *** your PATH or compiler configuration so that the native linker is
14201 *** used, and then restart.
14206 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14207 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14209 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14218 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14220 hardcode_direct=yes
14221 hardcode_shlibpath_var=no
14225 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14227 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14234 if test "$ld_shlibs" = no; then
14236 hardcode_libdir_flag_spec=
14237 export_dynamic_flag_spec=
14238 whole_archive_flag_spec=
14241 # PORTME fill in a description of your system's linker (not GNU ld)
14244 allow_undefined_flag=unsupported
14245 always_export_symbols=yes
14246 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'
14247 # Note: this linker hardcodes the directories in LIBPATH if there
14248 # are no directories specified by -L.
14249 hardcode_minus_L=yes
14250 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14251 # Neither direct hardcoding nor static linking is supported with a
14253 hardcode_direct=unsupported
14258 if test "$host_cpu" = ia64; then
14259 # On IA64, the linker does run time linking by default, so we don't
14260 # have to do anything special.
14261 aix_use_runtimelinking=no
14262 exp_sym_flag='-Bexport'
14265 # If we're using GNU nm, then we don't want the "-C" option.
14266 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14267 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14268 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'
14270 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'
14272 aix_use_runtimelinking=no
14274 # Test if we are trying to use run time linking or normal
14275 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14276 # need to do runtime linking.
14277 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14278 for ld_flag in $LDFLAGS; do
14279 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14280 aix_use_runtimelinking=yes
14287 exp_sym_flag='-bexport'
14288 no_entry_flag='-bnoentry'
14291 # When large executables or shared objects are built, AIX ld can
14292 # have problems creating the table of contents. If linking a library
14293 # or program results in "error TOC overflow" add -mminimal-toc to
14294 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14295 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14298 hardcode_direct=yes
14299 hardcode_libdir_separator=':'
14300 link_all_deplibs=yes
14302 if test "$GCC" = yes; then
14303 case $host_os in aix4.[012]|aix4.[012].*)
14304 # We only want to do this on AIX 4.2 and lower, the check
14305 # below for broken collect2 doesn't work under 4.3+
14306 collect2name=`${CC} -print-prog-name=collect2`
14307 if test -f "$collect2name" && \
14308 strings "$collect2name" | grep resolve_lib_name >/dev/null
14310 # We have reworked collect2
14311 hardcode_direct=yes
14313 # We have old collect2
14314 hardcode_direct=unsupported
14315 # It fails to find uninstalled libraries when the uninstalled
14316 # path is not listed in the libpath. Setting hardcode_minus_L
14317 # to unsupported forces relinking
14318 hardcode_minus_L=yes
14319 hardcode_libdir_flag_spec='-L$libdir'
14320 hardcode_libdir_separator=
14324 shared_flag='-shared'
14325 if test "$aix_use_runtimelinking" = yes; then
14326 shared_flag="$shared_flag "'${wl}-G'
14330 if test "$host_cpu" = ia64; then
14331 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14332 # chokes on -Wl,-G. The following line is correct:
14335 if test "$aix_use_runtimelinking" = yes; then
14336 shared_flag='${wl}-G'
14338 shared_flag='${wl}-bM:SRE'
14343 # It seems that -bexpall does not export symbols beginning with
14344 # underscore (_), so it is better to generate a list of symbols to export.
14345 always_export_symbols=yes
14346 if test "$aix_use_runtimelinking" = yes; then
14347 # Warning - without using the other runtime loading flags (-brtl),
14348 # -berok will link without error, but may produce a broken library.
14349 allow_undefined_flag='-berok'
14350 # Determine the default libpath from the value encoded in an empty executable.
14351 cat >conftest.$ac_ext <<_ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h. */
14366 rm -f conftest.$ac_objext conftest$ac_exeext
14367 if { (ac_try="$ac_link"
14368 case "(($ac_try" in
14369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370 *) ac_try_echo=$ac_try;;
14372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373 (eval "$ac_link") 2>conftest.er1
14375 grep -v '^ *+' conftest.er1 >conftest.err
14377 cat conftest.err >&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); } && {
14380 test -z "$ac_c_werror_flag" ||
14381 test ! -s conftest.err
14382 } && test -s conftest$ac_exeext &&
14383 $as_test_x conftest$ac_exeext; then
14385 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14387 # Check for a 64-bit object if we didn't find anything.
14388 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; }
14391 echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14398 conftest$ac_exeext conftest.$ac_ext
14399 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14401 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14402 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"
14404 if test "$host_cpu" = ia64; then
14405 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14406 allow_undefined_flag="-z nodefs"
14407 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"
14409 # Determine the default libpath from the value encoded in an empty executable.
14410 cat >conftest.$ac_ext <<_ACEOF
14413 cat confdefs.h >>conftest.$ac_ext
14414 cat >>conftest.$ac_ext <<_ACEOF
14415 /* end confdefs.h. */
14425 rm -f conftest.$ac_objext conftest$ac_exeext
14426 if { (ac_try="$ac_link"
14427 case "(($ac_try" in
14428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14429 *) ac_try_echo=$ac_try;;
14431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14432 (eval "$ac_link") 2>conftest.er1
14434 grep -v '^ *+' conftest.er1 >conftest.err
14436 cat conftest.err >&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); } && {
14439 test -z "$ac_c_werror_flag" ||
14440 test ! -s conftest.err
14441 } && test -s conftest$ac_exeext &&
14442 $as_test_x conftest$ac_exeext; then
14444 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14446 # Check for a 64-bit object if we didn't find anything.
14447 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; }
14450 echo "$as_me: failed program was:" >&5
14451 sed 's/^/| /' conftest.$ac_ext >&5
14456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14457 conftest$ac_exeext conftest.$ac_ext
14458 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14460 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14461 # Warning - without using the other run time loading flags,
14462 # -berok will link without error, but may produce a broken library.
14463 no_undefined_flag=' ${wl}-bernotok'
14464 allow_undefined_flag=' ${wl}-berok'
14465 # Exported symbols can be pulled into shared objects from archives
14466 whole_archive_flag_spec='$convenience'
14467 archive_cmds_need_lc=yes
14468 # This is similar to how AIX traditionally builds its shared libraries.
14469 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'
14475 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)'
14476 hardcode_libdir_flag_spec='-L$libdir'
14477 hardcode_minus_L=yes
14478 # see comment about different semantics on the GNU ld section
14483 export_dynamic_flag_spec=-rdynamic
14486 cygwin* | mingw* | pw32*)
14487 # When not using gcc, we currently assume that we are using
14488 # Microsoft Visual C++.
14489 # hardcode_libdir_flag_spec is actually meaningless, as there is
14490 # no search path for DLLs.
14491 hardcode_libdir_flag_spec=' '
14492 allow_undefined_flag=unsupported
14493 # Tell ltmain to make .lib files, not .a files.
14495 # Tell ltmain to make .dll files, not .so files.
14497 # FIXME: Setting linknames here is a bad hack.
14498 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14499 # The linker will automatically build a .lib file if we build a DLL.
14500 old_archive_From_new_cmds='true'
14501 # FIXME: Should let the user specify the lib program.
14502 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14503 fix_srcfile_path='`cygpath -w "$srcfile"`'
14504 enable_shared_with_static_runtimes=yes
14507 darwin* | rhapsody*)
14509 rhapsody* | darwin1.[012])
14510 allow_undefined_flag='${wl}-undefined ${wl}suppress'
14513 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14514 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14516 case ${MACOSX_DEPLOYMENT_TARGET} in
14518 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14521 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
14527 archive_cmds_need_lc=no
14529 hardcode_automatic=yes
14530 hardcode_shlibpath_var=unsupported
14531 whole_archive_flag_spec=''
14532 link_all_deplibs=yes
14533 if test "$GCC" = yes ; then
14534 output_verbose_link_cmd='echo'
14535 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14536 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14537 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14538 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}'
14539 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}'
14541 case $cc_basename in
14543 output_verbose_link_cmd='echo'
14544 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14545 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14546 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14547 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}'
14548 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}'
14558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14559 hardcode_libdir_flag_spec='-L$libdir'
14560 hardcode_shlibpath_var=no
14567 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14568 # support. Future versions do this automatically, but an explicit c++rt0.o
14569 # does not break anything, and helps significantly (at the cost of a little
14572 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14573 hardcode_libdir_flag_spec='-R$libdir'
14574 hardcode_direct=yes
14575 hardcode_shlibpath_var=no
14578 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14580 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14581 hardcode_direct=yes
14582 hardcode_minus_L=yes
14583 hardcode_shlibpath_var=no
14586 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14587 freebsd* | kfreebsd*-gnu | dragonfly*)
14588 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14589 hardcode_libdir_flag_spec='-R$libdir'
14590 hardcode_direct=yes
14591 hardcode_shlibpath_var=no
14595 if test "$GCC" = yes; then
14596 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'
14598 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'
14600 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14601 hardcode_libdir_separator=:
14602 hardcode_direct=yes
14604 # hardcode_minus_L: Not really in the search PATH,
14605 # but as the default location of the library.
14606 hardcode_minus_L=yes
14607 export_dynamic_flag_spec='${wl}-E'
14611 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14612 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14614 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14616 if test "$with_gnu_ld" = no; then
14617 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14618 hardcode_libdir_separator=:
14620 hardcode_direct=yes
14621 export_dynamic_flag_spec='${wl}-E'
14623 # hardcode_minus_L: Not really in the search PATH,
14624 # but as the default location of the library.
14625 hardcode_minus_L=yes
14630 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14633 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14636 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14639 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14645 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14648 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14651 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14655 if test "$with_gnu_ld" = no; then
14656 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14657 hardcode_libdir_separator=:
14661 hardcode_libdir_flag_spec_ld='+b $libdir'
14663 hardcode_shlibpath_var=no
14666 hardcode_direct=yes
14667 export_dynamic_flag_spec='${wl}-E'
14669 # hardcode_minus_L: Not really in the search PATH,
14670 # but as the default location of the library.
14671 hardcode_minus_L=yes
14677 irix5* | irix6* | nonstopux*)
14678 if test "$GCC" = yes; then
14679 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'
14681 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'
14682 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14685 hardcode_libdir_separator=:
14686 link_all_deplibs=yes
14690 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14691 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14693 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14695 hardcode_libdir_flag_spec='-R$libdir'
14696 hardcode_direct=yes
14697 hardcode_shlibpath_var=no
14701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14702 hardcode_direct=yes
14703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14704 hardcode_libdir_separator=:
14705 hardcode_shlibpath_var=no
14709 hardcode_direct=yes
14710 hardcode_shlibpath_var=no
14711 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14712 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14713 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14714 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14715 export_dynamic_flag_spec='${wl}-E'
14718 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14719 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14720 hardcode_libdir_flag_spec='-R$libdir'
14723 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14724 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14731 hardcode_libdir_flag_spec='-L$libdir'
14732 hardcode_minus_L=yes
14733 allow_undefined_flag=unsupported
14734 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'
14735 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14739 if test "$GCC" = yes; then
14740 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14741 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'
14743 allow_undefined_flag=' -expect_unresolved \*'
14744 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'
14746 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14747 hardcode_libdir_separator=:
14750 osf4* | osf5*) # as osf3* with the addition of -msym flag
14751 if test "$GCC" = yes; then
14752 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14753 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'
14754 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14756 allow_undefined_flag=' -expect_unresolved \*'
14757 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'
14758 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14759 $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'
14761 # Both c and cxx compiler support -rpath directly
14762 hardcode_libdir_flag_spec='-rpath $libdir'
14764 hardcode_libdir_separator=:
14768 no_undefined_flag=' -z text'
14769 if test "$GCC" = yes; then
14771 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14772 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14773 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14776 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14777 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14778 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14780 hardcode_libdir_flag_spec='-R$libdir'
14781 hardcode_shlibpath_var=no
14783 solaris2.[0-5] | solaris2.[0-5].*) ;;
14785 # The compiler driver will combine linker options so we
14786 # cannot just pass the convience library names through
14787 # without $wl, iff we do not link with $LD.
14788 # Luckily, gcc supports the same syntax we need for Sun Studio.
14789 # Supported since Solaris 2.6 (maybe 2.5.1?)
14792 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14794 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' ;;
14797 link_all_deplibs=yes
14801 if test "x$host_vendor" = xsequent; then
14802 # Use $CC to link under sequent, because it throws in some extra .o
14803 # files that make .init and .fini sections work.
14804 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14806 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14808 hardcode_libdir_flag_spec='-L$libdir'
14809 hardcode_direct=yes
14810 hardcode_minus_L=yes
14811 hardcode_shlibpath_var=no
14815 case $host_vendor in
14817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14818 hardcode_direct=yes # is this really true???
14821 ## LD is ld it makes a PLAMLIB
14822 ## CC just makes a GrossModule.
14823 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14824 reload_cmds='$CC -r -o $output$reload_objs'
14828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14829 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14832 runpath_var='LD_RUN_PATH'
14833 hardcode_shlibpath_var=no
14837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14838 hardcode_shlibpath_var=no
14839 export_dynamic_flag_spec='-Bexport'
14843 if test -d /usr/nec; then
14844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14845 hardcode_shlibpath_var=no
14846 runpath_var=LD_RUN_PATH
14847 hardcode_runpath_var=yes
14852 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14853 no_undefined_flag='${wl}-z,text'
14854 archive_cmds_need_lc=no
14855 hardcode_shlibpath_var=no
14856 runpath_var='LD_RUN_PATH'
14858 if test "$GCC" = yes; then
14859 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14860 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14862 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14863 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14867 sysv5* | sco3.2v5* | sco5v6*)
14868 # Note: We can NOT use -z defs as we might desire, because we do not
14869 # link with -lc, and that would cause any symbols used from libc to
14870 # always be unresolved, which means just about no library would
14871 # ever link correctly. If we're not using GNU ld we use -z text
14872 # though, which does catch some bad symbols but isn't as heavy-handed
14874 no_undefined_flag='${wl}-z,text'
14875 allow_undefined_flag='${wl}-z,nodefs'
14876 archive_cmds_need_lc=no
14877 hardcode_shlibpath_var=no
14878 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14879 hardcode_libdir_separator=':'
14880 link_all_deplibs=yes
14881 export_dynamic_flag_spec='${wl}-Bexport'
14882 runpath_var='LD_RUN_PATH'
14884 if test "$GCC" = yes; then
14885 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14886 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14888 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14889 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14895 hardcode_libdir_flag_spec='-L$libdir'
14896 hardcode_shlibpath_var=no
14905 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14906 echo "${ECHO_T}$ld_shlibs" >&6; }
14907 test "$ld_shlibs" = no && can_build_shared=no
14910 # Do we need to explicitly link libc?
14912 case "x$archive_cmds_need_lc" in
14914 # Assume -lc should be added
14915 archive_cmds_need_lc=yes
14917 if test "$enable_shared" = yes && test "$GCC" = yes; then
14918 case $archive_cmds in
14920 # FIXME: we may have to deal with multi-command sequences.
14923 # Test whether the compiler implicitly links with -lc since on some
14924 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14925 # to ld, don't add -lc before -lgcc.
14926 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14927 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14929 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14932 (eval $ac_compile) 2>&5
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); } 2>conftest.err; then
14938 libobjs=conftest.$ac_objext
14940 wl=$lt_prog_compiler_wl
14941 pic_flag=$lt_prog_compiler_pic
14947 lt_save_allow_undefined_flag=$allow_undefined_flag
14948 allow_undefined_flag=
14949 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14950 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }
14955 archive_cmds_need_lc=no
14957 archive_cmds_need_lc=yes
14959 allow_undefined_flag=$lt_save_allow_undefined_flag
14961 cat conftest.err 1>&5
14964 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14965 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
14972 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14973 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14974 library_names_spec=
14975 libname_spec='lib$name'
14979 postuninstall_cmds=
14983 shlibpath_overrides_runpath=unknown
14985 dynamic_linker="$host_os ld.so"
14986 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14987 if test "$GCC" = yes; then
14988 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14989 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14990 # if the path contains ";" then we assume it to be the separator
14991 # otherwise default to the standard path separator (i.e. ":") - it is
14992 # assumed that no part of a normal pathname contains ";" but that should
14993 # okay in the real world where ";" in dirpaths is itself problematic.
14994 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14996 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14999 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15001 need_lib_prefix=unknown
15002 hardcode_into_libs=no
15004 # when you set need_version to no, make sure it does not cause -set_version
15005 # flags to be left without arguments
15006 need_version=unknown
15011 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15012 shlibpath_var=LIBPATH
15014 # AIX 3 has no versioning support, so we append a major version to the name.
15015 soname_spec='${libname}${release}${shared_ext}$major'
15022 hardcode_into_libs=yes
15023 if test "$host_cpu" = ia64; then
15024 # AIX 5 supports IA64
15025 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15026 shlibpath_var=LD_LIBRARY_PATH
15028 # With GCC up to 2.95.x, collect2 would create an import file
15029 # for dependence libraries. The import file would start with
15030 # the line `#! .'. This would cause the generated library to
15031 # depend on `.', always an invalid library. This was fixed in
15032 # development snapshots of GCC prior to 3.0.
15034 aix4 | aix4.[01] | aix4.[01].*)
15035 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15037 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15040 can_build_shared=no
15044 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15045 # soname into executable. Probably we can add versioning support to
15046 # collect2, so additional links can be useful in future.
15047 if test "$aix_use_runtimelinking" = yes; then
15048 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15049 # instead of lib<name>.a to let people know that these are not
15050 # typical AIX shared libraries.
15051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15053 # We preserve .a as extension for shared libraries through AIX4.2
15054 # and later when we are not doing run time linking.
15055 library_names_spec='${libname}${release}.a $libname.a'
15056 soname_spec='${libname}${release}${shared_ext}$major'
15058 shlibpath_var=LIBPATH
15063 library_names_spec='$libname.ixlibrary $libname.a'
15064 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15065 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'
15069 library_names_spec='${libname}${shared_ext}'
15070 dynamic_linker="$host_os ld.so"
15071 shlibpath_var=LIBRARY_PATH
15077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15078 soname_spec='${libname}${release}${shared_ext}$major'
15079 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15080 shlibpath_var=LD_LIBRARY_PATH
15081 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15082 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15083 # the default ld.so.conf also contains /usr/contrib/lib and
15084 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15085 # libtool to hard-code these into programs
15088 cygwin* | mingw* | pw32*)
15089 version_type=windows
15094 case $GCC,$host_os in
15095 yes,cygwin* | yes,mingw* | yes,pw32*)
15096 library_names_spec='$libname.dll.a'
15097 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15098 postinstall_cmds='base_file=`basename \${file}`~
15099 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15100 dldir=$destdir/`dirname \$dlpath`~
15101 test -d \$dldir || mkdir -p \$dldir~
15102 $install_prog $dir/$dlname \$dldir/$dlname~
15103 chmod a+x \$dldir/$dlname'
15104 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15105 dlpath=$dir/\$dldll~
15107 shlibpath_overrides_runpath=yes
15111 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15112 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15113 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15116 # MinGW DLLs use traditional 'lib' prefix
15117 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15118 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15119 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15120 # It is most probably a Windows format PATH printed by
15121 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15122 # path with ; separators, and with drive letters. We can handle the
15123 # drive letters (cygwin fileutils understands them), so leave them,
15124 # especially as we might pass files found there to a mingw objdump,
15125 # which wouldn't understand a cygwinified path. Ahh.
15126 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15128 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15132 # pw32 DLLs use 'pw' prefix rather than 'lib'
15133 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15139 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15142 dynamic_linker='Win32 ld.exe'
15143 # FIXME: first we should search . and the directory the executable is in
15147 darwin* | rhapsody*)
15148 dynamic_linker="$host_os dyld"
15149 version_type=darwin
15152 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15153 soname_spec='${libname}${release}${major}$shared_ext'
15154 shlibpath_overrides_runpath=yes
15155 shlibpath_var=DYLD_LIBRARY_PATH
15156 shrext_cmds='.dylib'
15157 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15158 if test "$GCC" = yes; then
15159 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"`
15161 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15163 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15171 soname_spec='${libname}${release}${shared_ext}$major'
15172 shlibpath_var=LD_LIBRARY_PATH
15183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15184 soname_spec='${libname}${release}${shared_ext}$major'
15185 shlibpath_var=LD_LIBRARY_PATH
15186 shlibpath_overrides_runpath=no
15187 hardcode_into_libs=yes
15188 dynamic_linker='GNU ld.so'
15191 freebsd* | dragonfly*)
15192 # DragonFly does not have aout. When/if they implement a new
15193 # versioning mechanism, adjust this.
15194 if test -x /usr/bin/objformat; then
15195 objformat=`/usr/bin/objformat`
15198 freebsd[123]*) objformat=aout ;;
15199 *) objformat=elf ;;
15202 version_type=freebsd-$objformat
15203 case $version_type in
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15210 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15214 shlibpath_var=LD_LIBRARY_PATH
15217 shlibpath_overrides_runpath=yes
15219 freebsd3.[01]* | freebsdelf3.[01]*)
15220 shlibpath_overrides_runpath=yes
15221 hardcode_into_libs=yes
15223 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15224 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15225 shlibpath_overrides_runpath=no
15226 hardcode_into_libs=yes
15228 freebsd*) # from 4.6 on
15229 shlibpath_overrides_runpath=yes
15230 hardcode_into_libs=yes
15239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15240 soname_spec='${libname}${release}${shared_ext}$major'
15241 shlibpath_var=LD_LIBRARY_PATH
15242 hardcode_into_libs=yes
15245 hpux9* | hpux10* | hpux11*)
15246 # Give a soname corresponding to the major version so that dld.sl refuses to
15247 # link against other versions.
15254 hardcode_into_libs=yes
15255 dynamic_linker="$host_os dld.so"
15256 shlibpath_var=LD_LIBRARY_PATH
15257 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15259 soname_spec='${libname}${release}${shared_ext}$major'
15260 if test "X$HPUX_IA64_MODE" = X32; then
15261 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15263 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15265 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15269 hardcode_into_libs=yes
15270 dynamic_linker="$host_os dld.sl"
15271 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15274 soname_spec='${libname}${release}${shared_ext}$major'
15275 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15280 dynamic_linker="$host_os dld.sl"
15281 shlibpath_var=SHLIB_PATH
15282 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15284 soname_spec='${libname}${release}${shared_ext}$major'
15287 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15288 postinstall_cmds='chmod 555 $lib'
15295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15296 soname_spec='${libname}${release}${shared_ext}$major'
15297 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15298 shlibpath_var=LD_LIBRARY_PATH
15299 shlibpath_overrides_runpath=no
15300 hardcode_into_libs=yes
15303 irix5* | irix6* | nonstopux*)
15305 nonstopux*) version_type=nonstopux ;;
15307 if test "$lt_cv_prog_gnu_ld" = yes; then
15315 soname_spec='${libname}${release}${shared_ext}$major'
15316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15318 irix5* | nonstopux*)
15319 libsuff= shlibsuff=
15322 case $LD in # libtool.m4 will add one of these switches to LD
15323 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15324 libsuff= shlibsuff= libmagic=32-bit;;
15325 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15326 libsuff=32 shlibsuff=N32 libmagic=N32;;
15327 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15328 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15329 *) libsuff= shlibsuff= libmagic=never-match;;
15333 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15334 shlibpath_overrides_runpath=no
15335 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15336 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15337 hardcode_into_libs=yes
15340 # No shared lib support for Linux oldld, aout, or coff.
15341 linux*oldld* | linux*aout* | linux*coff*)
15345 # This must be Linux ELF.
15350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15351 soname_spec='${libname}${release}${shared_ext}$major'
15352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15353 shlibpath_var=LD_LIBRARY_PATH
15354 shlibpath_overrides_runpath=no
15355 # This implies no fast_install, which is unacceptable.
15356 # Some rework will be needed to allow for fast_install
15357 # before this can be enabled.
15358 hardcode_into_libs=yes
15360 # Append ld.so.conf contents to the search path
15361 if test -f /etc/ld.so.conf; then
15362 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' ' '`
15363 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15366 # We used to test for /lib/ld.so.1 and disable shared libraries on
15367 # powerpc, because MkLinux only supported shared libraries with the
15368 # GNU dynamic linker. Since this was broken with cross compilers,
15369 # most powerpc-linux boxes support dynamic linking these days and
15370 # people can always --disable-shared, the test was removed, and we
15371 # assume the GNU/Linux dynamic linker is in use.
15372 dynamic_linker='GNU/Linux ld.so'
15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15380 soname_spec='${libname}${release}${shared_ext}$major'
15381 shlibpath_var=LD_LIBRARY_PATH
15382 shlibpath_overrides_runpath=no
15383 hardcode_into_libs=yes
15384 dynamic_linker='GNU ld.so'
15391 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15394 dynamic_linker='NetBSD (a.out) ld.so'
15396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15397 soname_spec='${libname}${release}${shared_ext}$major'
15398 dynamic_linker='NetBSD ld.elf_so'
15400 shlibpath_var=LD_LIBRARY_PATH
15401 shlibpath_overrides_runpath=yes
15402 hardcode_into_libs=yes
15407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15408 shlibpath_var=LD_LIBRARY_PATH
15409 shlibpath_overrides_runpath=yes
15416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15417 soname_spec='${libname}${release}${shared_ext}$major'
15418 shlibpath_var=LD_LIBRARY_PATH
15419 shlibpath_overrides_runpath=yes
15424 sys_lib_dlsearch_path_spec="/usr/lib"
15426 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15428 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15429 *) need_version=no ;;
15431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15433 shlibpath_var=LD_LIBRARY_PATH
15434 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15436 openbsd2.[89] | openbsd2.[89].*)
15437 shlibpath_overrides_runpath=no
15440 shlibpath_overrides_runpath=yes
15444 shlibpath_overrides_runpath=yes
15449 libname_spec='$name'
15452 library_names_spec='$libname${shared_ext} $libname.a'
15453 dynamic_linker='OS/2 ld.exe'
15454 shlibpath_var=LIBPATH
15457 osf3* | osf4* | osf5*)
15461 soname_spec='${libname}${release}${shared_ext}$major'
15462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15463 shlibpath_var=LD_LIBRARY_PATH
15464 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15465 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15473 soname_spec='${libname}${release}${shared_ext}$major'
15474 shlibpath_var=LD_LIBRARY_PATH
15475 shlibpath_overrides_runpath=yes
15476 hardcode_into_libs=yes
15477 # ldd complains unless libraries are executable
15478 postinstall_cmds='chmod +x $lib'
15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15484 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15485 shlibpath_var=LD_LIBRARY_PATH
15486 shlibpath_overrides_runpath=yes
15487 if test "$with_gnu_ld" = yes; then
15495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15496 soname_spec='${libname}${release}${shared_ext}$major'
15497 shlibpath_var=LD_LIBRARY_PATH
15498 case $host_vendor in
15500 shlibpath_overrides_runpath=no
15502 export_dynamic_flag_spec='${wl}-Blargedynsym'
15503 runpath_var=LD_RUN_PATH
15511 shlibpath_overrides_runpath=no
15512 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15518 if test -d /usr/nec ;then
15520 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15521 soname_spec='$libname${shared_ext}.$major'
15522 shlibpath_var=LD_LIBRARY_PATH
15526 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15527 version_type=freebsd-elf
15530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15531 soname_spec='${libname}${release}${shared_ext}$major'
15532 shlibpath_var=LD_LIBRARY_PATH
15533 hardcode_into_libs=yes
15534 if test "$with_gnu_ld" = yes; then
15535 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15536 shlibpath_overrides_runpath=no
15538 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15539 shlibpath_overrides_runpath=yes
15542 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15546 sys_lib_dlsearch_path_spec='/usr/lib'
15551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15552 soname_spec='${libname}${release}${shared_ext}$major'
15553 shlibpath_var=LD_LIBRARY_PATH
15560 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15561 echo "${ECHO_T}$dynamic_linker" >&6; }
15562 test "$dynamic_linker" = no && can_build_shared=no
15564 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15565 if test "$GCC" = yes; then
15566 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15569 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15570 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15572 if test -n "$hardcode_libdir_flag_spec" || \
15573 test -n "$runpath_var" || \
15574 test "X$hardcode_automatic" = "Xyes" ; then
15576 # We can hardcode non-existant directories.
15577 if test "$hardcode_direct" != no &&
15578 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15579 # have to relink, otherwise we might link with an installed library
15580 # when we should be linking with a yet-to-be-installed one
15581 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15582 test "$hardcode_minus_L" != no; then
15583 # Linking always hardcodes the temporary library directory.
15584 hardcode_action=relink
15586 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15587 hardcode_action=immediate
15590 # We cannot hardcode anything, or else we can only hardcode existing
15592 hardcode_action=unsupported
15594 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
15595 echo "${ECHO_T}$hardcode_action" >&6; }
15597 if test "$hardcode_action" = relink; then
15598 # Fast installation is not supported
15599 enable_fast_install=no
15600 elif test "$shlibpath_overrides_runpath" = yes ||
15601 test "$enable_shared" = no; then
15602 # Fast installation is not necessary
15603 enable_fast_install=needless
15608 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15609 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15610 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15611 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15612 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15613 { echo "$as_me:$LINENO: result: yes" >&5
15614 echo "${ECHO_T}yes" >&6; }
15616 # FIXME - insert some real tests, host_os isn't really good enough
15619 if test -n "$STRIP" ; then
15620 striplib="$STRIP -x"
15621 { echo "$as_me:$LINENO: result: yes" >&5
15622 echo "${ECHO_T}yes" >&6; }
15624 { echo "$as_me:$LINENO: result: no" >&5
15625 echo "${ECHO_T}no" >&6; }
15629 { echo "$as_me:$LINENO: result: no" >&5
15630 echo "${ECHO_T}no" >&6; }
15635 if test "x$enable_dlopen" != xyes; then
15636 enable_dlopen=unknown
15637 enable_dlopen_self=unknown
15638 enable_dlopen_self_static=unknown
15645 lt_cv_dlopen="load_add_on"
15647 lt_cv_dlopen_self=yes
15651 lt_cv_dlopen="LoadLibrary"
15656 lt_cv_dlopen="dlopen"
15661 # if libdl is installed we need to link against it
15662 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15663 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15664 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15665 echo $ECHO_N "(cached) $ECHO_C" >&6
15667 ac_check_lib_save_LIBS=$LIBS
15669 cat >conftest.$ac_ext <<_ACEOF
15672 cat confdefs.h >>conftest.$ac_ext
15673 cat >>conftest.$ac_ext <<_ACEOF
15674 /* end confdefs.h. */
15676 /* Override any GCC internal prototype to avoid an error.
15677 Use char because int might match the return type of a GCC
15678 builtin and then its argument prototype would still apply. */
15691 rm -f conftest.$ac_objext conftest$ac_exeext
15692 if { (ac_try="$ac_link"
15693 case "(($ac_try" in
15694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15695 *) ac_try_echo=$ac_try;;
15697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15698 (eval "$ac_link") 2>conftest.er1
15700 grep -v '^ *+' conftest.er1 >conftest.err
15702 cat conftest.err >&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); } && {
15705 test -z "$ac_c_werror_flag" ||
15706 test ! -s conftest.err
15707 } && test -s conftest$ac_exeext &&
15708 $as_test_x conftest$ac_exeext; then
15709 ac_cv_lib_dl_dlopen=yes
15711 echo "$as_me: failed program was:" >&5
15712 sed 's/^/| /' conftest.$ac_ext >&5
15714 ac_cv_lib_dl_dlopen=no
15717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15718 conftest$ac_exeext conftest.$ac_ext
15719 LIBS=$ac_check_lib_save_LIBS
15721 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15722 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15723 if test $ac_cv_lib_dl_dlopen = yes; then
15724 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15727 lt_cv_dlopen="dyld"
15729 lt_cv_dlopen_self=yes
15736 { echo "$as_me:$LINENO: checking for shl_load" >&5
15737 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
15738 if test "${ac_cv_func_shl_load+set}" = set; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15741 cat >conftest.$ac_ext <<_ACEOF
15744 cat confdefs.h >>conftest.$ac_ext
15745 cat >>conftest.$ac_ext <<_ACEOF
15746 /* end confdefs.h. */
15747 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15749 #define shl_load innocuous_shl_load
15751 /* System header to define __stub macros and hopefully few prototypes,
15752 which can conflict with char shl_load (); below.
15753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15754 <limits.h> exists even on freestanding compilers. */
15757 # include <limits.h>
15759 # include <assert.h>
15764 /* Override any GCC internal prototype to avoid an error.
15765 Use char because int might match the return type of a GCC
15766 builtin and then its argument prototype would still apply. */
15771 /* The GNU C library defines this for functions which it implements
15772 to always fail with ENOSYS. Some functions are actually named
15773 something starting with __ and the normal name is an alias. */
15774 #if defined __stub_shl_load || defined __stub___shl_load
15781 return shl_load ();
15786 rm -f conftest.$ac_objext conftest$ac_exeext
15787 if { (ac_try="$ac_link"
15788 case "(($ac_try" in
15789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790 *) ac_try_echo=$ac_try;;
15792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15793 (eval "$ac_link") 2>conftest.er1
15795 grep -v '^ *+' conftest.er1 >conftest.err
15797 cat conftest.err >&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); } && {
15800 test -z "$ac_c_werror_flag" ||
15801 test ! -s conftest.err
15802 } && test -s conftest$ac_exeext &&
15803 $as_test_x conftest$ac_exeext; then
15804 ac_cv_func_shl_load=yes
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15809 ac_cv_func_shl_load=no
15812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15813 conftest$ac_exeext conftest.$ac_ext
15815 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15816 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
15817 if test $ac_cv_func_shl_load = yes; then
15818 lt_cv_dlopen="shl_load"
15820 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15821 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15822 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15823 echo $ECHO_N "(cached) $ECHO_C" >&6
15825 ac_check_lib_save_LIBS=$LIBS
15827 cat >conftest.$ac_ext <<_ACEOF
15830 cat confdefs.h >>conftest.$ac_ext
15831 cat >>conftest.$ac_ext <<_ACEOF
15832 /* end confdefs.h. */
15834 /* Override any GCC internal prototype to avoid an error.
15835 Use char because int might match the return type of a GCC
15836 builtin and then its argument prototype would still apply. */
15844 return shl_load ();
15849 rm -f conftest.$ac_objext conftest$ac_exeext
15850 if { (ac_try="$ac_link"
15851 case "(($ac_try" in
15852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15853 *) ac_try_echo=$ac_try;;
15855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15856 (eval "$ac_link") 2>conftest.er1
15858 grep -v '^ *+' conftest.er1 >conftest.err
15860 cat conftest.err >&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); } && {
15863 test -z "$ac_c_werror_flag" ||
15864 test ! -s conftest.err
15865 } && test -s conftest$ac_exeext &&
15866 $as_test_x conftest$ac_exeext; then
15867 ac_cv_lib_dld_shl_load=yes
15869 echo "$as_me: failed program was:" >&5
15870 sed 's/^/| /' conftest.$ac_ext >&5
15872 ac_cv_lib_dld_shl_load=no
15875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15876 conftest$ac_exeext conftest.$ac_ext
15877 LIBS=$ac_check_lib_save_LIBS
15879 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15880 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15881 if test $ac_cv_lib_dld_shl_load = yes; then
15882 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15884 { echo "$as_me:$LINENO: checking for dlopen" >&5
15885 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
15886 if test "${ac_cv_func_dlopen+set}" = set; then
15887 echo $ECHO_N "(cached) $ECHO_C" >&6
15889 cat >conftest.$ac_ext <<_ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15897 #define dlopen innocuous_dlopen
15899 /* System header to define __stub macros and hopefully few prototypes,
15900 which can conflict with char dlopen (); below.
15901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15902 <limits.h> exists even on freestanding compilers. */
15905 # include <limits.h>
15907 # include <assert.h>
15912 /* Override any GCC internal prototype to avoid an error.
15913 Use char because int might match the return type of a GCC
15914 builtin and then its argument prototype would still apply. */
15919 /* The GNU C library defines this for functions which it implements
15920 to always fail with ENOSYS. Some functions are actually named
15921 something starting with __ and the normal name is an alias. */
15922 #if defined __stub_dlopen || defined __stub___dlopen
15934 rm -f conftest.$ac_objext conftest$ac_exeext
15935 if { (ac_try="$ac_link"
15936 case "(($ac_try" in
15937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938 *) ac_try_echo=$ac_try;;
15940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15941 (eval "$ac_link") 2>conftest.er1
15943 grep -v '^ *+' conftest.er1 >conftest.err
15945 cat conftest.err >&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } && {
15948 test -z "$ac_c_werror_flag" ||
15949 test ! -s conftest.err
15950 } && test -s conftest$ac_exeext &&
15951 $as_test_x conftest$ac_exeext; then
15952 ac_cv_func_dlopen=yes
15954 echo "$as_me: failed program was:" >&5
15955 sed 's/^/| /' conftest.$ac_ext >&5
15957 ac_cv_func_dlopen=no
15960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15961 conftest$ac_exeext conftest.$ac_ext
15963 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15964 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
15965 if test $ac_cv_func_dlopen = yes; then
15966 lt_cv_dlopen="dlopen"
15968 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15969 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15970 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15971 echo $ECHO_N "(cached) $ECHO_C" >&6
15973 ac_check_lib_save_LIBS=$LIBS
15975 cat >conftest.$ac_ext <<_ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15982 /* Override any GCC internal prototype to avoid an error.
15983 Use char because int might match the return type of a GCC
15984 builtin and then its argument prototype would still apply. */
15997 rm -f conftest.$ac_objext conftest$ac_exeext
15998 if { (ac_try="$ac_link"
15999 case "(($ac_try" in
16000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16001 *) ac_try_echo=$ac_try;;
16003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16004 (eval "$ac_link") 2>conftest.er1
16006 grep -v '^ *+' conftest.er1 >conftest.err
16008 cat conftest.err >&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); } && {
16011 test -z "$ac_c_werror_flag" ||
16012 test ! -s conftest.err
16013 } && test -s conftest$ac_exeext &&
16014 $as_test_x conftest$ac_exeext; then
16015 ac_cv_lib_dl_dlopen=yes
16017 echo "$as_me: failed program was:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16020 ac_cv_lib_dl_dlopen=no
16023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16024 conftest$ac_exeext conftest.$ac_ext
16025 LIBS=$ac_check_lib_save_LIBS
16027 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16028 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16029 if test $ac_cv_lib_dl_dlopen = yes; then
16030 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16032 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16033 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16034 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16035 echo $ECHO_N "(cached) $ECHO_C" >&6
16037 ac_check_lib_save_LIBS=$LIBS
16038 LIBS="-lsvld $LIBS"
16039 cat >conftest.$ac_ext <<_ACEOF
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h. */
16046 /* Override any GCC internal prototype to avoid an error.
16047 Use char because int might match the return type of a GCC
16048 builtin and then its argument prototype would still apply. */
16061 rm -f conftest.$ac_objext conftest$ac_exeext
16062 if { (ac_try="$ac_link"
16063 case "(($ac_try" in
16064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065 *) ac_try_echo=$ac_try;;
16067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16068 (eval "$ac_link") 2>conftest.er1
16070 grep -v '^ *+' conftest.er1 >conftest.err
16072 cat conftest.err >&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } && {
16075 test -z "$ac_c_werror_flag" ||
16076 test ! -s conftest.err
16077 } && test -s conftest$ac_exeext &&
16078 $as_test_x conftest$ac_exeext; then
16079 ac_cv_lib_svld_dlopen=yes
16081 echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16084 ac_cv_lib_svld_dlopen=no
16087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16088 conftest$ac_exeext conftest.$ac_ext
16089 LIBS=$ac_check_lib_save_LIBS
16091 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16092 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16093 if test $ac_cv_lib_svld_dlopen = yes; then
16094 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16096 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16097 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16098 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16099 echo $ECHO_N "(cached) $ECHO_C" >&6
16101 ac_check_lib_save_LIBS=$LIBS
16103 cat >conftest.$ac_ext <<_ACEOF
16106 cat confdefs.h >>conftest.$ac_ext
16107 cat >>conftest.$ac_ext <<_ACEOF
16108 /* end confdefs.h. */
16110 /* Override any GCC internal prototype to avoid an error.
16111 Use char because int might match the return type of a GCC
16112 builtin and then its argument prototype would still apply. */
16120 return dld_link ();
16125 rm -f conftest.$ac_objext conftest$ac_exeext
16126 if { (ac_try="$ac_link"
16127 case "(($ac_try" in
16128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16129 *) ac_try_echo=$ac_try;;
16131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16132 (eval "$ac_link") 2>conftest.er1
16134 grep -v '^ *+' conftest.er1 >conftest.err
16136 cat conftest.err >&5
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); } && {
16139 test -z "$ac_c_werror_flag" ||
16140 test ! -s conftest.err
16141 } && test -s conftest$ac_exeext &&
16142 $as_test_x conftest$ac_exeext; then
16143 ac_cv_lib_dld_dld_link=yes
16145 echo "$as_me: failed program was:" >&5
16146 sed 's/^/| /' conftest.$ac_ext >&5
16148 ac_cv_lib_dld_dld_link=no
16151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16152 conftest$ac_exeext conftest.$ac_ext
16153 LIBS=$ac_check_lib_save_LIBS
16155 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16156 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16157 if test $ac_cv_lib_dld_dld_link = yes; then
16158 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16179 if test "x$lt_cv_dlopen" != xno; then
16185 case $lt_cv_dlopen in
16187 save_CPPFLAGS="$CPPFLAGS"
16188 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16190 save_LDFLAGS="$LDFLAGS"
16191 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16194 LIBS="$lt_cv_dlopen_libs $LIBS"
16196 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16197 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16198 if test "${lt_cv_dlopen_self+set}" = set; then
16199 echo $ECHO_N "(cached) $ECHO_C" >&6
16201 if test "$cross_compiling" = yes; then :
16202 lt_cv_dlopen_self=cross
16204 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16205 lt_status=$lt_dlunknown
16206 cat > conftest.$ac_ext <<EOF
16207 #line 16207 "configure"
16208 #include "confdefs.h"
16217 # define LT_DLGLOBAL RTLD_GLOBAL
16220 # define LT_DLGLOBAL DL_GLOBAL
16222 # define LT_DLGLOBAL 0
16226 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16227 find out it does not work in some platform. */
16228 #ifndef LT_DLLAZY_OR_NOW
16230 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16233 # define LT_DLLAZY_OR_NOW DL_LAZY
16236 # define LT_DLLAZY_OR_NOW RTLD_NOW
16239 # define LT_DLLAZY_OR_NOW DL_NOW
16241 # define LT_DLLAZY_OR_NOW 0
16249 extern "C" void exit (int);
16252 void fnord() { int i=42;}
16255 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16256 int status = $lt_dlunknown;
16260 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16261 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16262 /* dlclose (self); */
16270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16271 (eval $ac_link) 2>&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16275 (./conftest; exit; ) >&5 2>/dev/null
16277 case x$lt_status in
16278 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16279 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16280 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16283 # compilation failed
16284 lt_cv_dlopen_self=no
16291 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16292 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
16294 if test "x$lt_cv_dlopen_self" = xyes; then
16295 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16296 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16297 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
16298 if test "${lt_cv_dlopen_self_static+set}" = set; then
16299 echo $ECHO_N "(cached) $ECHO_C" >&6
16301 if test "$cross_compiling" = yes; then :
16302 lt_cv_dlopen_self_static=cross
16304 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16305 lt_status=$lt_dlunknown
16306 cat > conftest.$ac_ext <<EOF
16307 #line 16307 "configure"
16308 #include "confdefs.h"
16317 # define LT_DLGLOBAL RTLD_GLOBAL
16320 # define LT_DLGLOBAL DL_GLOBAL
16322 # define LT_DLGLOBAL 0
16326 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16327 find out it does not work in some platform. */
16328 #ifndef LT_DLLAZY_OR_NOW
16330 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16333 # define LT_DLLAZY_OR_NOW DL_LAZY
16336 # define LT_DLLAZY_OR_NOW RTLD_NOW
16339 # define LT_DLLAZY_OR_NOW DL_NOW
16341 # define LT_DLLAZY_OR_NOW 0
16349 extern "C" void exit (int);
16352 void fnord() { int i=42;}
16355 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16356 int status = $lt_dlunknown;
16360 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16361 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16362 /* dlclose (self); */
16370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16371 (eval $ac_link) 2>&5
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16375 (./conftest; exit; ) >&5 2>/dev/null
16377 case x$lt_status in
16378 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16379 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16380 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16383 # compilation failed
16384 lt_cv_dlopen_self_static=no
16391 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16392 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
16395 CPPFLAGS="$save_CPPFLAGS"
16396 LDFLAGS="$save_LDFLAGS"
16401 case $lt_cv_dlopen_self in
16402 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16403 *) enable_dlopen_self=unknown ;;
16406 case $lt_cv_dlopen_self_static in
16407 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16408 *) enable_dlopen_self_static=unknown ;;
16413 # Report which library types will actually be built
16414 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16415 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16416 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
16417 echo "${ECHO_T}$can_build_shared" >&6; }
16419 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16420 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
16421 test "$can_build_shared" = "no" && enable_shared=no
16423 # On AIX, shared libraries and static libraries use the same namespace, and
16424 # are all built from PIC.
16427 test "$enable_shared" = yes && enable_static=no
16428 if test -n "$RANLIB"; then
16429 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16430 postinstall_cmds='$RANLIB $lib'
16435 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16436 test "$enable_shared" = yes && enable_static=no
16440 { echo "$as_me:$LINENO: result: $enable_shared" >&5
16441 echo "${ECHO_T}$enable_shared" >&6; }
16443 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16444 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
16445 # Make sure either enable_shared or enable_static is yes.
16446 test "$enable_shared" = yes || enable_static=yes
16447 { echo "$as_me:$LINENO: result: $enable_static" >&5
16448 echo "${ECHO_T}$enable_static" >&6; }
16450 # The else clause should only fire when bootstrapping the
16451 # libtool distribution, otherwise you forgot to ship ltmain.sh
16452 # with your package, and you will get complaints that there are
16453 # no rules to generate ltmain.sh.
16454 if test -f "$ltmain"; then
16455 # See if we are running on zsh, and set the options which allow our commands through
16456 # without removal of \ escapes.
16457 if test -n "${ZSH_VERSION+set}" ; then
16458 setopt NO_GLOB_SUBST
16460 # Now quote all the things that may contain metacharacters while being
16461 # careful not to overquote the AC_SUBSTed values. We take copies of the
16462 # variables and quote the copies for generation of the libtool script.
16463 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16465 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16466 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16467 deplibs_check_method reload_flag reload_cmds need_locks \
16468 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16469 lt_cv_sys_global_symbol_to_c_name_address \
16470 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16471 old_postinstall_cmds old_postuninstall_cmds \
16475 lt_prog_compiler_wl \
16476 lt_prog_compiler_pic \
16477 lt_prog_compiler_static \
16478 lt_prog_compiler_no_builtin_flag \
16479 export_dynamic_flag_spec \
16480 thread_safe_flag_spec \
16481 whole_archive_flag_spec \
16482 enable_shared_with_static_runtimes \
16484 old_archive_from_new_cmds \
16489 compiler_lib_search_path \
16491 archive_expsym_cmds \
16493 postuninstall_cmds \
16494 old_archive_from_expsyms_cmds \
16495 allow_undefined_flag \
16496 no_undefined_flag \
16497 export_symbols_cmds \
16498 hardcode_libdir_flag_spec \
16499 hardcode_libdir_flag_spec_ld \
16500 hardcode_libdir_separator \
16501 hardcode_automatic \
16503 module_expsym_cmds \
16504 lt_cv_prog_compiler_c_o \
16506 include_expsyms; do
16509 old_archive_cmds | \
16510 old_archive_from_new_cmds | \
16512 archive_expsym_cmds | \
16514 module_expsym_cmds | \
16515 old_archive_from_expsyms_cmds | \
16516 export_symbols_cmds | \
16517 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16518 postinstall_cmds | postuninstall_cmds | \
16519 old_postinstall_cmds | old_postuninstall_cmds | \
16520 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16521 # Double-quote double-evaled strings.
16522 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16525 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16531 *'\$0 --fallback-echo"')
16532 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16536 cfgfile="${ofile}T"
16537 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16539 { echo "$as_me:$LINENO: creating $ofile" >&5
16540 echo "$as_me: creating $ofile" >&6;}
16542 cat <<__EOF__ >> "$cfgfile"
16545 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16546 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16547 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16549 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16550 # Free Software Foundation, Inc.
16552 # This file is part of GNU Libtool:
16553 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16555 # This program is free software; you can redistribute it and/or modify
16556 # it under the terms of the GNU General Public License as published by
16557 # the Free Software Foundation; either version 2 of the License, or
16558 # (at your option) any later version.
16560 # This program is distributed in the hope that it will be useful, but
16561 # WITHOUT ANY WARRANTY; without even the implied warranty of
16562 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16563 # General Public License for more details.
16565 # You should have received a copy of the GNU General Public License
16566 # along with this program; if not, write to the Free Software
16567 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16569 # As a special exception to the GNU General Public License, if you
16570 # distribute this file as part of a program that contains a
16571 # configuration script generated by Autoconf, you may include it under
16572 # the same distribution terms that you use for the rest of that program.
16574 # A sed program that does not truncate output.
16577 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16578 Xsed="$SED -e 1s/^X//"
16580 # The HP-UX ksh and POSIX shell print the target directory to stdout
16581 # if CDPATH is set.
16582 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16584 # The names of the tagged configurations supported by this script.
16587 # ### BEGIN LIBTOOL CONFIG
16589 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16591 # Shell to use when invoking shell scripts.
16594 # Whether or not to build shared libraries.
16595 build_libtool_libs=$enable_shared
16597 # Whether or not to build static libraries.
16598 build_old_libs=$enable_static
16600 # Whether or not to add -lc for building shared libraries.
16601 build_libtool_need_lc=$archive_cmds_need_lc
16603 # Whether or not to disallow shared libs when runtime libs are static
16604 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16606 # Whether or not to optimize for fast installation.
16607 fast_install=$enable_fast_install
16610 host_alias=$host_alias
16614 # The build system.
16615 build_alias=$build_alias
16619 # An echo program that does not interpret backslashes.
16624 AR_FLAGS=$lt_AR_FLAGS
16629 # LTCC compiler flags.
16630 LTCFLAGS=$lt_LTCFLAGS
16632 # A language-specific compiler.
16635 # Is the compiler the GNU C compiler?
16641 # The linker used to build libraries.
16644 # Whether we need hard or soft links.
16647 # A BSD-compatible nm program.
16650 # A symbol stripping program
16653 # Used to examine libraries when file_magic_cmd begins "file"
16654 MAGIC_CMD=$MAGIC_CMD
16656 # Used on cygwin: DLL creation program.
16659 # Used on cygwin: object dumper.
16662 # Used on cygwin: assembler.
16665 # The name of the directory that contains temporary libtool files.
16668 # How to create reloadable object files.
16669 reload_flag=$lt_reload_flag
16670 reload_cmds=$lt_reload_cmds
16672 # How to pass a linker flag through the compiler.
16673 wl=$lt_lt_prog_compiler_wl
16675 # Object file suffix (normally "o").
16676 objext="$ac_objext"
16678 # Old archive suffix (normally "a").
16681 # Shared library suffix (normally ".so").
16682 shrext_cmds='$shrext_cmds'
16684 # Executable file suffix (normally "").
16687 # Additional compiler flags for building library objects.
16688 pic_flag=$lt_lt_prog_compiler_pic
16691 # What is the maximum length of a command?
16692 max_cmd_len=$lt_cv_sys_max_cmd_len
16694 # Does compiler simultaneously support -c and -o options?
16695 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16697 # Must we lock files when doing compilation?
16698 need_locks=$lt_need_locks
16700 # Do we need the lib prefix for modules?
16701 need_lib_prefix=$need_lib_prefix
16703 # Do we need a version for libraries?
16704 need_version=$need_version
16706 # Whether dlopen is supported.
16707 dlopen_support=$enable_dlopen
16709 # Whether dlopen of programs is supported.
16710 dlopen_self=$enable_dlopen_self
16712 # Whether dlopen of statically linked programs is supported.
16713 dlopen_self_static=$enable_dlopen_self_static
16715 # Compiler flag to prevent dynamic linking.
16716 link_static_flag=$lt_lt_prog_compiler_static
16718 # Compiler flag to turn off builtin functions.
16719 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16721 # Compiler flag to allow reflexive dlopens.
16722 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16724 # Compiler flag to generate shared objects directly from archives.
16725 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16727 # Compiler flag to generate thread-safe objects.
16728 thread_safe_flag_spec=$lt_thread_safe_flag_spec
16730 # Library versioning type.
16731 version_type=$version_type
16733 # Format of library name prefix.
16734 libname_spec=$lt_libname_spec
16736 # List of archive names. First name is the real one, the rest are links.
16737 # The last name is the one that the linker finds with -lNAME.
16738 library_names_spec=$lt_library_names_spec
16740 # The coded name of the library, if different from the real name.
16741 soname_spec=$lt_soname_spec
16743 # Commands used to build and install an old-style archive.
16745 old_archive_cmds=$lt_old_archive_cmds
16746 old_postinstall_cmds=$lt_old_postinstall_cmds
16747 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16749 # Create an old-style archive from a shared archive.
16750 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16752 # Create a temporary old-style archive to link instead of a shared archive.
16753 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16755 # Commands used to build and install a shared archive.
16756 archive_cmds=$lt_archive_cmds
16757 archive_expsym_cmds=$lt_archive_expsym_cmds
16758 postinstall_cmds=$lt_postinstall_cmds
16759 postuninstall_cmds=$lt_postuninstall_cmds
16761 # Commands used to build a loadable module (assumed same as above if empty)
16762 module_cmds=$lt_module_cmds
16763 module_expsym_cmds=$lt_module_expsym_cmds
16765 # Commands to strip libraries.
16766 old_striplib=$lt_old_striplib
16767 striplib=$lt_striplib
16769 # Dependencies to place before the objects being linked to create a
16771 predep_objects=$lt_predep_objects
16773 # Dependencies to place after the objects being linked to create a
16775 postdep_objects=$lt_postdep_objects
16777 # Dependencies to place before the objects being linked to create a
16779 predeps=$lt_predeps
16781 # Dependencies to place after the objects being linked to create a
16783 postdeps=$lt_postdeps
16785 # The library search path used internally by the compiler when linking
16786 # a shared library.
16787 compiler_lib_search_path=$lt_compiler_lib_search_path
16789 # Method to check whether dependent libraries are shared objects.
16790 deplibs_check_method=$lt_deplibs_check_method
16792 # Command to use when deplibs_check_method == file_magic.
16793 file_magic_cmd=$lt_file_magic_cmd
16795 # Flag that allows shared libraries with undefined symbols to be built.
16796 allow_undefined_flag=$lt_allow_undefined_flag
16798 # Flag that forces no undefined symbols.
16799 no_undefined_flag=$lt_no_undefined_flag
16801 # Commands used to finish a libtool library installation in a directory.
16802 finish_cmds=$lt_finish_cmds
16804 # Same as above, but a single script fragment to be evaled but not shown.
16805 finish_eval=$lt_finish_eval
16807 # Take the output of nm and produce a listing of raw symbols and C names.
16808 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16810 # Transform the output of nm in a proper C declaration
16811 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16813 # Transform the output of nm in a C name address pair
16814 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16816 # This is the shared library runtime path variable.
16817 runpath_var=$runpath_var
16819 # This is the shared library path variable.
16820 shlibpath_var=$shlibpath_var
16822 # Is shlibpath searched before the hard-coded library search path?
16823 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16825 # How to hardcode a shared library path into an executable.
16826 hardcode_action=$hardcode_action
16828 # Whether we should hardcode library paths into libraries.
16829 hardcode_into_libs=$hardcode_into_libs
16831 # Flag to hardcode \$libdir into a binary during linking.
16832 # This must work even if \$libdir does not exist.
16833 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16835 # If ld is used when linking, flag to hardcode \$libdir into
16836 # a binary during linking. This must work even if \$libdir does
16838 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16840 # Whether we need a single -rpath flag with a separated argument.
16841 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16843 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16844 # resulting binary.
16845 hardcode_direct=$hardcode_direct
16847 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16848 # resulting binary.
16849 hardcode_minus_L=$hardcode_minus_L
16851 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16852 # the resulting binary.
16853 hardcode_shlibpath_var=$hardcode_shlibpath_var
16855 # Set to yes if building a shared library automatically hardcodes DIR into the library
16856 # and all subsequent libraries and executables linked against it.
16857 hardcode_automatic=$hardcode_automatic
16859 # Variables whose values should be saved in libtool wrapper scripts and
16860 # restored at relink time.
16861 variables_saved_for_relink="$variables_saved_for_relink"
16863 # Whether libtool must link a program against all its dependency libraries.
16864 link_all_deplibs=$link_all_deplibs
16866 # Compile-time system search path for libraries
16867 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16869 # Run-time system search path for libraries
16870 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16872 # Fix the shell variable \$srcfile for the compiler.
16873 fix_srcfile_path="$fix_srcfile_path"
16875 # Set to yes if exported symbols are required.
16876 always_export_symbols=$always_export_symbols
16878 # The commands to list exported symbols.
16879 export_symbols_cmds=$lt_export_symbols_cmds
16881 # The commands to extract the exported symbol list from a shared archive.
16882 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16884 # Symbols that should not be listed in the preloaded symbols.
16885 exclude_expsyms=$lt_exclude_expsyms
16887 # Symbols that must always be exported.
16888 include_expsyms=$lt_include_expsyms
16890 # ### END LIBTOOL CONFIG
16897 cat <<\EOF >> "$cfgfile"
16899 # AIX sometimes has problems with the GCC collect2 program. For some
16900 # reason, if we set the COLLECT_NAMES environment variable, the problems
16901 # vanish in a puff of smoke.
16902 if test "X${COLLECT_NAMES+set}" != Xset; then
16904 export COLLECT_NAMES
16910 # We use sed instead of cat because bash on DJGPP gets confused if
16911 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16912 # text mode, it properly converts lines to CR/LF. This bash problem
16913 # is reportedly fixed, but why not run on old versions too?
16914 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
16916 mv -f "$cfgfile" "$ofile" || \
16917 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16921 # If there is no Makefile yet, we rely on a make rule to execute
16922 # `config.status --recheck' to rerun these tests and create the
16923 # libtool script then.
16924 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16925 if test -f "$ltmain_in"; then
16926 test -f Makefile && make "$ltmain"
16932 ac_cpp='$CPP $CPPFLAGS'
16933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16940 # Check whether --with-tags was given.
16941 if test "${with_tags+set}" = set; then
16942 withval=$with_tags; tagnames="$withval"
16946 if test -f "$ltmain" && test -n "$tagnames"; then
16947 if test ! -f "${ofile}"; then
16948 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
16949 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
16952 if test -z "$LTCC"; then
16953 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16954 if test -z "$LTCC"; then
16955 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
16956 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
16958 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
16959 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
16962 if test -z "$LTCFLAGS"; then
16963 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
16966 # Extract list of available tagged configurations in $ofile.
16967 # Note that this assumes the entire list is on one line.
16968 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16970 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16971 for tagname in $tagnames; do
16973 # Check whether tagname contains only valid characters
16974 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
16976 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
16977 echo "$as_me: error: invalid tag name: $tagname" >&2;}
16978 { (exit 1); exit 1; }; }
16982 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16984 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
16985 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
16986 { (exit 1); exit 1; }; }
16989 # Update the list of available tags.
16990 if test -n "$tagname"; then
16991 echo appending configuration tag \"$tagname\" to $ofile
16995 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16996 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16997 (test "X$CXX" != "Xg++"))) ; then
16999 ac_cpp='$CXXCPP $CPPFLAGS'
17000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17007 archive_cmds_need_lc_CXX=no
17008 allow_undefined_flag_CXX=
17009 always_export_symbols_CXX=no
17010 archive_expsym_cmds_CXX=
17011 export_dynamic_flag_spec_CXX=
17012 hardcode_direct_CXX=no
17013 hardcode_libdir_flag_spec_CXX=
17014 hardcode_libdir_flag_spec_ld_CXX=
17015 hardcode_libdir_separator_CXX=
17016 hardcode_minus_L_CXX=no
17017 hardcode_shlibpath_var_CXX=unsupported
17018 hardcode_automatic_CXX=no
17020 module_expsym_cmds_CXX=
17021 link_all_deplibs_CXX=unknown
17022 old_archive_cmds_CXX=$old_archive_cmds
17023 no_undefined_flag_CXX=
17024 whole_archive_flag_spec_CXX=
17025 enable_shared_with_static_runtimes_CXX=no
17027 # Dependencies to place before and after the object being linked:
17028 predep_objects_CXX=
17029 postdep_objects_CXX=
17032 compiler_lib_search_path_CXX=
17034 # Source file extension for C++ test sources.
17037 # Object file extension for compiled C++ test sources.
17041 # Code to be used in simple compile tests
17042 lt_simple_compile_test_code="int some_variable = 0;\n"
17044 # Code to be used in simple link tests
17045 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17047 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17049 # If no C compiler was specified, use CC.
17052 # If no C compiler flags were specified, use CFLAGS.
17053 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17055 # Allow CC to be a program name with arguments.
17059 # save warnings/boilerplate of simple test code
17060 ac_outfile=conftest.$ac_objext
17061 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17062 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17063 _lt_compiler_boilerplate=`cat conftest.err`
17066 ac_outfile=conftest.$ac_objext
17067 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17068 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17069 _lt_linker_boilerplate=`cat conftest.err`
17073 # Allow CC to be a program name with arguments.
17078 lt_save_with_gnu_ld=$with_gnu_ld
17079 lt_save_path_LD=$lt_cv_path_LD
17080 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17081 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17083 $as_unset lt_cv_prog_gnu_ld
17085 if test -n "${lt_cv_path_LDCXX+set}"; then
17086 lt_cv_path_LD=$lt_cv_path_LDCXX
17088 $as_unset lt_cv_path_LD
17090 test -z "${LDCXX+set}" || LD=$LDCXX
17094 for cc_temp in $compiler""; do
17096 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17097 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17102 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17105 # We don't want -fno-exception wen compiling C++ code, so set the
17106 # no_builtin_flag separately
17107 if test "$GXX" = yes; then
17108 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17110 lt_prog_compiler_no_builtin_flag_CXX=
17113 if test "$GXX" = yes; then
17114 # Set up default GNU C++ configuration
17117 # Check whether --with-gnu-ld was given.
17118 if test "${with_gnu_ld+set}" = set; then
17119 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17125 if test "$GCC" = yes; then
17126 # Check if gcc -print-prog-name=ld gives a path.
17127 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17128 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17131 # gcc leaves a trailing carriage return which upsets mingw
17132 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17134 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17137 # Accept absolute paths.
17139 re_direlt='/[^/][^/]*/\.\./'
17140 # Canonicalize the pathname of ld
17141 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17142 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17143 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17145 test -z "$LD" && LD="$ac_prog"
17148 # If it fails, then pretend we aren't using GCC.
17152 # If it is relative, then search for the first ld in PATH.
17153 with_gnu_ld=unknown
17156 elif test "$with_gnu_ld" = yes; then
17157 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17158 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17160 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17161 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17163 if test "${lt_cv_path_LD+set}" = set; then
17164 echo $ECHO_N "(cached) $ECHO_C" >&6
17166 if test -z "$LD"; then
17167 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17168 for ac_dir in $PATH; do
17170 test -z "$ac_dir" && ac_dir=.
17171 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17172 lt_cv_path_LD="$ac_dir/$ac_prog"
17173 # Check to see if the program is GNU ld. I'd rather use --version,
17174 # but apparently some variants of GNU ld only accept -v.
17175 # Break only if it was the GNU/non-GNU ld that we prefer.
17176 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17177 *GNU* | *'with BFD'*)
17178 test "$with_gnu_ld" != no && break
17181 test "$with_gnu_ld" != yes && break
17188 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17192 LD="$lt_cv_path_LD"
17193 if test -n "$LD"; then
17194 { echo "$as_me:$LINENO: result: $LD" >&5
17195 echo "${ECHO_T}$LD" >&6; }
17197 { echo "$as_me:$LINENO: result: no" >&5
17198 echo "${ECHO_T}no" >&6; }
17200 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17201 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17202 { (exit 1); exit 1; }; }
17203 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17204 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17205 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17206 echo $ECHO_N "(cached) $ECHO_C" >&6
17208 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17209 case `$LD -v 2>&1 </dev/null` in
17210 *GNU* | *'with BFD'*)
17211 lt_cv_prog_gnu_ld=yes
17214 lt_cv_prog_gnu_ld=no
17218 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17219 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
17220 with_gnu_ld=$lt_cv_prog_gnu_ld
17224 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17225 # archiving commands below assume that GNU ld is being used.
17226 if test "$with_gnu_ld" = yes; then
17227 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17228 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'
17230 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17231 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17233 # If archive_cmds runs LD, not CC, wlarc should be empty
17234 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17235 # investigate it a little bit more. (MM)
17238 # ancient GNU ld didn't support --whole-archive et. al.
17239 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17240 grep 'no-whole-archive' > /dev/null; then
17241 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17243 whole_archive_flag_spec_CXX=
17249 # A generic and very simple default shared library creation
17250 # command for GNU C++ for the case where it uses the native
17251 # linker, instead of GNU ld. If possible, this setting should
17252 # overridden to take advantage of the native linker features on
17253 # the platform it is being used on.
17254 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17257 # Commands to make compiler produce verbose output that lists
17258 # what "hidden" libraries, object files and flags are used when
17259 # linking a shared library.
17260 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17268 # PORTME: fill in a description of your system's C++ link characteristics
17269 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17270 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17274 # FIXME: insert proper C++ library support
17278 if test "$host_cpu" = ia64; then
17279 # On IA64, the linker does run time linking by default, so we don't
17280 # have to do anything special.
17281 aix_use_runtimelinking=no
17282 exp_sym_flag='-Bexport'
17285 aix_use_runtimelinking=no
17287 # Test if we are trying to use run time linking or normal
17288 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17289 # need to do runtime linking.
17290 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17291 for ld_flag in $LDFLAGS; do
17294 aix_use_runtimelinking=yes
17302 exp_sym_flag='-bexport'
17303 no_entry_flag='-bnoentry'
17306 # When large executables or shared objects are built, AIX ld can
17307 # have problems creating the table of contents. If linking a library
17308 # or program results in "error TOC overflow" add -mminimal-toc to
17309 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17310 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17312 archive_cmds_CXX=''
17313 hardcode_direct_CXX=yes
17314 hardcode_libdir_separator_CXX=':'
17315 link_all_deplibs_CXX=yes
17317 if test "$GXX" = yes; then
17318 case $host_os in aix4.[012]|aix4.[012].*)
17319 # We only want to do this on AIX 4.2 and lower, the check
17320 # below for broken collect2 doesn't work under 4.3+
17321 collect2name=`${CC} -print-prog-name=collect2`
17322 if test -f "$collect2name" && \
17323 strings "$collect2name" | grep resolve_lib_name >/dev/null
17325 # We have reworked collect2
17326 hardcode_direct_CXX=yes
17328 # We have old collect2
17329 hardcode_direct_CXX=unsupported
17330 # It fails to find uninstalled libraries when the uninstalled
17331 # path is not listed in the libpath. Setting hardcode_minus_L
17332 # to unsupported forces relinking
17333 hardcode_minus_L_CXX=yes
17334 hardcode_libdir_flag_spec_CXX='-L$libdir'
17335 hardcode_libdir_separator_CXX=
17339 shared_flag='-shared'
17340 if test "$aix_use_runtimelinking" = yes; then
17341 shared_flag="$shared_flag "'${wl}-G'
17345 if test "$host_cpu" = ia64; then
17346 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17347 # chokes on -Wl,-G. The following line is correct:
17350 if test "$aix_use_runtimelinking" = yes; then
17351 shared_flag='${wl}-G'
17353 shared_flag='${wl}-bM:SRE'
17358 # It seems that -bexpall does not export symbols beginning with
17359 # underscore (_), so it is better to generate a list of symbols to export.
17360 always_export_symbols_CXX=yes
17361 if test "$aix_use_runtimelinking" = yes; then
17362 # Warning - without using the other runtime loading flags (-brtl),
17363 # -berok will link without error, but may produce a broken library.
17364 allow_undefined_flag_CXX='-berok'
17365 # Determine the default libpath from the value encoded in an empty executable.
17366 cat >conftest.$ac_ext <<_ACEOF
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h. */
17381 rm -f conftest.$ac_objext conftest$ac_exeext
17382 if { (ac_try="$ac_link"
17383 case "(($ac_try" in
17384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17385 *) ac_try_echo=$ac_try;;
17387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17388 (eval "$ac_link") 2>conftest.er1
17390 grep -v '^ *+' conftest.er1 >conftest.err
17392 cat conftest.err >&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } && {
17395 test -z "$ac_cxx_werror_flag" ||
17396 test ! -s conftest.err
17397 } && test -s conftest$ac_exeext &&
17398 $as_test_x conftest$ac_exeext; then
17400 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17402 # Check for a 64-bit object if we didn't find anything.
17403 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; }
17406 echo "$as_me: failed program was:" >&5
17407 sed 's/^/| /' conftest.$ac_ext >&5
17412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17413 conftest$ac_exeext conftest.$ac_ext
17414 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17416 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17418 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"
17420 if test "$host_cpu" = ia64; then
17421 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17422 allow_undefined_flag_CXX="-z nodefs"
17423 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"
17425 # Determine the default libpath from the value encoded in an empty executable.
17426 cat >conftest.$ac_ext <<_ACEOF
17429 cat confdefs.h >>conftest.$ac_ext
17430 cat >>conftest.$ac_ext <<_ACEOF
17431 /* end confdefs.h. */
17441 rm -f conftest.$ac_objext conftest$ac_exeext
17442 if { (ac_try="$ac_link"
17443 case "(($ac_try" in
17444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445 *) ac_try_echo=$ac_try;;
17447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448 (eval "$ac_link") 2>conftest.er1
17450 grep -v '^ *+' conftest.er1 >conftest.err
17452 cat conftest.err >&5
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); } && {
17455 test -z "$ac_cxx_werror_flag" ||
17456 test ! -s conftest.err
17457 } && test -s conftest$ac_exeext &&
17458 $as_test_x conftest$ac_exeext; then
17460 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17462 # Check for a 64-bit object if we didn't find anything.
17463 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; }
17466 echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17473 conftest$ac_exeext conftest.$ac_ext
17474 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17476 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17477 # Warning - without using the other run time loading flags,
17478 # -berok will link without error, but may produce a broken library.
17479 no_undefined_flag_CXX=' ${wl}-bernotok'
17480 allow_undefined_flag_CXX=' ${wl}-berok'
17481 # Exported symbols can be pulled into shared objects from archives
17482 whole_archive_flag_spec_CXX='$convenience'
17483 archive_cmds_need_lc_CXX=yes
17484 # This is similar to how AIX traditionally builds its shared libraries.
17485 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'
17491 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17492 allow_undefined_flag_CXX=unsupported
17493 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17494 # support --undefined. This deserves some investigation. FIXME
17495 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17502 case $cc_basename in
17504 # FIXME: insert proper C++ library support
17510 cygwin* | mingw* | pw32*)
17511 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17512 # as there is no search path for DLLs.
17513 hardcode_libdir_flag_spec_CXX='-L$libdir'
17514 allow_undefined_flag_CXX=unsupported
17515 always_export_symbols_CXX=no
17516 enable_shared_with_static_runtimes_CXX=yes
17518 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17519 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'
17520 # If the export-symbols file already is a .def file (1st line
17521 # is EXPORTS), use it as is; otherwise, prepend...
17522 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17523 cp $export_symbols $output_objdir/$soname.def;
17525 echo EXPORTS > $output_objdir/$soname.def;
17526 cat $export_symbols >> $output_objdir/$soname.def;
17528 $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'
17533 darwin* | rhapsody*)
17535 rhapsody* | darwin1.[012])
17536 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
17539 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17540 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17542 case ${MACOSX_DEPLOYMENT_TARGET} in
17544 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17547 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
17553 archive_cmds_need_lc_CXX=no
17554 hardcode_direct_CXX=no
17555 hardcode_automatic_CXX=yes
17556 hardcode_shlibpath_var_CXX=unsupported
17557 whole_archive_flag_spec_CXX=''
17558 link_all_deplibs_CXX=yes
17560 if test "$GXX" = yes ; then
17561 lt_int_apple_cc_single_mod=no
17562 output_verbose_link_cmd='echo'
17563 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
17564 lt_int_apple_cc_single_mod=yes
17566 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17567 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17569 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'
17571 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17572 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17573 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17574 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}'
17576 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}'
17578 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}'
17580 case $cc_basename in
17582 output_verbose_link_cmd='echo'
17583 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'
17584 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17585 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17586 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}'
17587 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}'
17597 case $cc_basename in
17599 # FIXME: insert proper C++ library support
17603 # Green Hills C++ Compiler
17604 # FIXME: insert proper C++ library support
17608 # FIXME: insert proper C++ library support
17614 # C++ shared libraries reported to be fairly broken before switch to ELF
17618 archive_cmds_need_lc_CXX=no
17620 freebsd* | kfreebsd*-gnu | dragonfly*)
17621 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17628 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17629 hardcode_libdir_separator_CXX=:
17630 export_dynamic_flag_spec_CXX='${wl}-E'
17631 hardcode_direct_CXX=yes
17632 hardcode_minus_L_CXX=yes # Not in the search PATH,
17633 # but as the default
17634 # location of the library.
17636 case $cc_basename in
17638 # FIXME: insert proper C++ library support
17642 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'
17643 # Commands to make compiler produce verbose output that lists
17644 # what "hidden" libraries, object files and flags are used when
17645 # linking a shared library.
17647 # There doesn't appear to be a way to prevent this compiler from
17648 # explicitly linking system object files so we need to strip them
17649 # from the output so that they don't get included in the library
17651 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'
17654 if test "$GXX" = yes; then
17655 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'
17657 # FIXME: insert proper C++ library support
17664 if test $with_gnu_ld = no; then
17665 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17666 hardcode_libdir_separator_CXX=:
17670 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
17673 export_dynamic_flag_spec_CXX='${wl}-E'
17679 hardcode_direct_CXX=no
17680 hardcode_shlibpath_var_CXX=no
17683 hardcode_direct_CXX=yes
17684 hardcode_minus_L_CXX=yes # Not in the search PATH,
17685 # but as the default
17686 # location of the library.
17690 case $cc_basename in
17692 # FIXME: insert proper C++ library support
17698 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17701 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17704 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17707 # Commands to make compiler produce verbose output that lists
17708 # what "hidden" libraries, object files and flags are used when
17709 # linking a shared library.
17711 # There doesn't appear to be a way to prevent this compiler from
17712 # explicitly linking system object files so we need to strip them
17713 # from the output so that they don't get included in the library
17715 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'
17718 if test "$GXX" = yes; then
17719 if test $with_gnu_ld = no; then
17722 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17725 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17728 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'
17733 # FIXME: insert proper C++ library support
17740 hardcode_direct_CXX=no
17741 hardcode_shlibpath_var_CXX=no
17742 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17743 export_dynamic_flag_spec_CXX='${wl}-E'
17744 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17745 # Instead, shared libraries are loaded at an image base (0x10000000 by
17746 # default) and relocated if they conflict, which is a slow very memory
17747 # consuming and fragmenting process. To avoid this, we pick a random,
17748 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17749 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17750 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'
17751 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'
17754 case $cc_basename in
17757 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'
17759 # Archives containing C++ object files must be created using
17760 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17761 # necessary to make sure instantiated templates are included
17763 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17766 if test "$GXX" = yes; then
17767 if test "$with_gnu_ld" = no; then
17768 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'
17770 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'
17773 link_all_deplibs_CXX=yes
17776 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17777 hardcode_libdir_separator_CXX=:
17780 case $cc_basename in
17782 # Kuck and Associates, Inc. (KAI) C++ Compiler
17784 # KCC will only create a shared library if the output file
17785 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17786 # to its proper name (with version) after linking.
17787 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'
17788 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'
17789 # Commands to make compiler produce verbose output that lists
17790 # what "hidden" libraries, object files and flags are used when
17791 # linking a shared library.
17793 # There doesn't appear to be a way to prevent this compiler from
17794 # explicitly linking system object files so we need to strip them
17795 # from the output so that they don't get included in the library
17797 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'
17799 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17800 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17802 # Archives containing C++ object files must be created using
17803 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17804 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17809 # version 8.0 and above of icpc choke on multiply defined symbols
17810 # if we add $predep_objects and $postdep_objects, however 7.1 and
17811 # earlier do not add the objects themselves.
17812 case `$CC -V 2>&1` in
17814 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17815 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'
17817 *) # Version 8.0 or newer
17820 ia64*) tmp_idyn=' -i_dynamic';;
17822 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17823 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'
17826 archive_cmds_need_lc_CXX=no
17827 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17828 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17829 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17832 # Portland Group C++ compiler
17833 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17834 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'
17836 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17837 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17838 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'
17842 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17843 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'
17845 runpath_var=LD_RUN_PATH
17846 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17847 hardcode_libdir_separator_CXX=:
17849 # Commands to make compiler produce verbose output that lists
17850 # what "hidden" libraries, object files and flags are used when
17851 # linking a shared library.
17853 # There doesn't appear to be a way to prevent this compiler from
17854 # explicitly linking system object files so we need to strip them
17855 # from the output so that they don't get included in the library
17857 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'
17862 # FIXME: insert proper C++ library support
17866 # FIXME: insert proper C++ library support
17870 case $cc_basename in
17872 # FIXME: insert proper C++ library support
17876 # FIXME: insert proper C++ library support
17882 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17883 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17885 hardcode_libdir_flag_spec_CXX='-R$libdir'
17886 hardcode_direct_CXX=yes
17887 hardcode_shlibpath_var_CXX=no
17889 # Workaround some broken pre-1.5 toolchains
17890 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17893 # C++ shared libraries are fairly broken
17897 hardcode_direct_CXX=yes
17898 hardcode_shlibpath_var_CXX=no
17899 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17900 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17901 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17902 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17903 export_dynamic_flag_spec_CXX='${wl}-E'
17904 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17906 output_verbose_link_cmd='echo'
17909 case $cc_basename in
17911 # Kuck and Associates, Inc. (KAI) C++ Compiler
17913 # KCC will only create a shared library if the output file
17914 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17915 # to its proper name (with version) after linking.
17916 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'
17918 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17919 hardcode_libdir_separator_CXX=:
17921 # Archives containing C++ object files must be created using
17922 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17923 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17927 # Rational C++ 2.4.1
17928 # FIXME: insert proper C++ library support
17932 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17933 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'
17935 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17936 hardcode_libdir_separator_CXX=:
17938 # Commands to make compiler produce verbose output that lists
17939 # what "hidden" libraries, object files and flags are used when
17940 # linking a shared library.
17942 # There doesn't appear to be a way to prevent this compiler from
17943 # explicitly linking system object files so we need to strip them
17944 # from the output so that they don't get included in the library
17946 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'
17949 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17950 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17951 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'
17953 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17954 hardcode_libdir_separator_CXX=:
17956 # Commands to make compiler produce verbose output that lists
17957 # what "hidden" libraries, object files and flags are used when
17958 # linking a shared library.
17959 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17962 # FIXME: insert proper C++ library support
17969 case $cc_basename in
17971 # Kuck and Associates, Inc. (KAI) C++ Compiler
17973 # KCC will only create a shared library if the output file
17974 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17975 # to its proper name (with version) after linking.
17976 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'
17978 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17979 hardcode_libdir_separator_CXX=:
17981 # Archives containing C++ object files must be created using
17982 # the KAI C++ compiler.
17983 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
17986 # Rational C++ 2.4.1
17987 # FIXME: insert proper C++ library support
17991 allow_undefined_flag_CXX=' -expect_unresolved \*'
17992 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'
17993 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17994 echo "-hidden">> $lib.exp~
17995 $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~
17998 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17999 hardcode_libdir_separator_CXX=:
18001 # Commands to make compiler produce verbose output that lists
18002 # what "hidden" libraries, object files and flags are used when
18003 # linking a shared library.
18005 # There doesn't appear to be a way to prevent this compiler from
18006 # explicitly linking system object files so we need to strip them
18007 # from the output so that they don't get included in the library
18009 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'
18012 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18013 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18014 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'
18016 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18017 hardcode_libdir_separator_CXX=:
18019 # Commands to make compiler produce verbose output that lists
18020 # what "hidden" libraries, object files and flags are used when
18021 # linking a shared library.
18022 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18025 # FIXME: insert proper C++ library support
18032 # FIXME: insert proper C++ library support
18036 case $cc_basename in
18039 # FIXME: insert proper C++ library support
18044 # FIXME: insert proper C++ library support
18048 # FIXME: insert proper C++ library support
18054 case $cc_basename in
18056 # Sun C++ 4.2, 5.x and Centerline C++
18057 archive_cmds_need_lc_CXX=yes
18058 no_undefined_flag_CXX=' -zdefs'
18059 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18060 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18061 $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'
18063 hardcode_libdir_flag_spec_CXX='-R$libdir'
18064 hardcode_shlibpath_var_CXX=no
18066 solaris2.[0-5] | solaris2.[0-5].*) ;;
18068 # The C++ compiler is used as linker so we must use $wl
18069 # flag to pass the commands to the underlying system
18070 # linker. We must also pass each convience library through
18071 # to the system linker between allextract/defaultextract.
18072 # The C++ compiler will combine linker options so we
18073 # cannot just pass the convience library names through
18075 # Supported since Solaris 2.6 (maybe 2.5.1?)
18076 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'
18079 link_all_deplibs_CXX=yes
18081 output_verbose_link_cmd='echo'
18083 # Archives containing C++ object files must be created using
18084 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18085 # necessary to make sure instantiated templates are included
18087 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18090 # Green Hills C++ Compiler
18091 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18093 # The C++ compiler must be used to create the archive.
18094 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18097 # GNU C++ compiler with Solaris linker
18098 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18099 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18100 if $CC --version | grep -v '^2\.7' > /dev/null; then
18101 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18102 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18103 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18105 # Commands to make compiler produce verbose output that lists
18106 # what "hidden" libraries, object files and flags are used when
18107 # linking a shared library.
18108 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18110 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18112 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18113 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18114 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18116 # Commands to make compiler produce verbose output that lists
18117 # what "hidden" libraries, object files and flags are used when
18118 # linking a shared library.
18119 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18122 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18127 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18128 no_undefined_flag_CXX='${wl}-z,text'
18129 archive_cmds_need_lc_CXX=no
18130 hardcode_shlibpath_var_CXX=no
18131 runpath_var='LD_RUN_PATH'
18133 case $cc_basename in
18135 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18136 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18139 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18140 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18144 sysv5* | sco3.2v5* | sco5v6*)
18145 # Note: We can NOT use -z defs as we might desire, because we do not
18146 # link with -lc, and that would cause any symbols used from libc to
18147 # always be unresolved, which means just about no library would
18148 # ever link correctly. If we're not using GNU ld we use -z text
18149 # though, which does catch some bad symbols but isn't as heavy-handed
18151 # For security reasons, it is highly recommended that you always
18152 # use absolute paths for naming shared libraries, and exclude the
18153 # DT_RUNPATH tag from executables and libraries. But doing so
18154 # requires that you compile everything twice, which is a pain.
18155 # So that behaviour is only enabled if SCOABSPATH is set to a
18156 # non-empty value in the environment. Most likely only useful for
18157 # creating official distributions of packages.
18158 # This is a hack until libtool officially supports absolute path
18159 # names for shared libraries.
18160 no_undefined_flag_CXX='${wl}-z,text'
18161 allow_undefined_flag_CXX='${wl}-z,nodefs'
18162 archive_cmds_need_lc_CXX=no
18163 hardcode_shlibpath_var_CXX=no
18164 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18165 hardcode_libdir_separator_CXX=':'
18166 link_all_deplibs_CXX=yes
18167 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18168 runpath_var='LD_RUN_PATH'
18170 case $cc_basename in
18172 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18173 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18176 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18177 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18182 case $cc_basename in
18184 # NonStop-UX NCC 3.20
18185 # FIXME: insert proper C++ library support
18189 # FIXME: insert proper C++ library support
18195 # FIXME: insert proper C++ library support
18199 # FIXME: insert proper C++ library support
18203 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18204 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18205 test "$ld_shlibs_CXX" = no && can_build_shared=no
18211 cat > conftest.$ac_ext <<EOF
18215 Foo (void) { a = 0; }
18221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18222 (eval $ac_compile) 2>&5
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); }; then
18226 # Parse the compiler output and extract the necessary
18227 # objects, libraries and library flags.
18229 # Sentinel used to keep track of whether or not we are before
18230 # the conftest object file.
18231 pre_test_object_deps_done=no
18233 # The `*' in the case matches for architectures that use `case' in
18234 # $output_verbose_cmd can trigger glob expansion during the loop
18235 # eval without this substitution.
18236 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
18238 for p in `eval $output_verbose_link_cmd`; do
18242 # Some compilers place space between "-{L,R}" and the path.
18243 # Remove the space.
18244 if test $p = "-L" \
18245 || test $p = "-R"; then
18252 if test "$pre_test_object_deps_done" = no; then
18255 # Internal compiler library paths should come after those
18256 # provided the user. The postdeps already come after the
18257 # user supplied libs so there is no need to process them.
18258 if test -z "$compiler_lib_search_path_CXX"; then
18259 compiler_lib_search_path_CXX="${prev}${p}"
18261 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18264 # The "-l" case would never come before the object being
18265 # linked, so don't bother handling this case.
18268 if test -z "$postdeps_CXX"; then
18269 postdeps_CXX="${prev}${p}"
18271 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18277 # This assumes that the test object file only shows up
18278 # once in the compiler output.
18279 if test "$p" = "conftest.$objext"; then
18280 pre_test_object_deps_done=yes
18284 if test "$pre_test_object_deps_done" = no; then
18285 if test -z "$predep_objects_CXX"; then
18286 predep_objects_CXX="$p"
18288 predep_objects_CXX="$predep_objects_CXX $p"
18291 if test -z "$postdep_objects_CXX"; then
18292 postdep_objects_CXX="$p"
18294 postdep_objects_CXX="$postdep_objects_CXX $p"
18299 *) ;; # Ignore the rest.
18307 echo "libtool.m4: error: problem compiling CXX test program"
18310 $rm -f confest.$objext
18312 # PORTME: override above test on systems where it is broken
18315 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18316 # hack all around it, let's just trust "g++" to DTRT.
18317 predep_objects_CXX=
18318 postdep_objects_CXX=
18323 case $cc_basename in
18325 # Adding this requires a known-good setup of shared libraries for
18326 # Sun compiler versions before 5.6, else PIC objects from an old
18327 # archive will be linked into the output, leading to subtle bugs.
18328 postdeps_CXX='-lCstd -lCrun'
18335 case " $postdeps_CXX " in
18336 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18339 lt_prog_compiler_wl_CXX=
18340 lt_prog_compiler_pic_CXX=
18341 lt_prog_compiler_static_CXX=
18343 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18344 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18346 # C++ specific cases for pic, static, wl, etc.
18347 if test "$GXX" = yes; then
18348 lt_prog_compiler_wl_CXX='-Wl,'
18349 lt_prog_compiler_static_CXX='-static'
18353 # All AIX code is PIC.
18354 if test "$host_cpu" = ia64; then
18355 # AIX 5 now supports IA64 processor
18356 lt_prog_compiler_static_CXX='-Bstatic'
18360 # FIXME: we need at least 68020 code to build shared libraries, but
18361 # adding the `-m68020' flag to GCC prevents building anything better,
18363 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18365 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18366 # PIC is the default for these OSes.
18368 mingw* | os2* | pw32*)
18369 # This hack is so that the source file can tell whether it is being
18370 # built for inclusion in a dll (and should export symbols for example).
18371 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18373 darwin* | rhapsody*)
18374 # PIC is the default on this platform
18375 # Common symbols not allowed in MH_DYLIB files
18376 lt_prog_compiler_pic_CXX='-fno-common'
18379 # DJGPP does not support shared libraries at all
18380 lt_prog_compiler_pic_CXX=
18383 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18384 # Instead, we relocate shared libraries at runtime.
18387 if test -d /usr/nec; then
18388 lt_prog_compiler_pic_CXX=-Kconform_pic
18392 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18393 # not for PA HP-UX.
18398 lt_prog_compiler_pic_CXX='-fPIC'
18403 lt_prog_compiler_pic_CXX='-fPIC'
18409 # All AIX code is PIC.
18410 if test "$host_cpu" = ia64; then
18411 # AIX 5 now supports IA64 processor
18412 lt_prog_compiler_static_CXX='-Bstatic'
18414 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18418 case $cc_basename in
18420 # Green Hills C++ Compiler
18421 # _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"
18426 # PIC is the default on this platform
18427 # Common symbols not allowed in MH_DYLIB files
18428 case $cc_basename in
18430 lt_prog_compiler_pic_CXX='-qnocommon'
18431 lt_prog_compiler_wl_CXX='-Wl,'
18436 case $cc_basename in
18438 lt_prog_compiler_pic_CXX='-KPIC'
18441 # Green Hills C++ Compiler
18442 lt_prog_compiler_pic_CXX='-pic'
18448 freebsd* | kfreebsd*-gnu | dragonfly*)
18449 # FreeBSD uses GNU C++
18451 hpux9* | hpux10* | hpux11*)
18452 case $cc_basename in
18454 lt_prog_compiler_wl_CXX='-Wl,'
18455 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18456 if test "$host_cpu" != ia64; then
18457 lt_prog_compiler_pic_CXX='+Z'
18461 lt_prog_compiler_wl_CXX='-Wl,'
18462 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18468 lt_prog_compiler_pic_CXX='+Z'
18477 # This is c89, which is MS Visual C++ (no shared libs)
18478 # Anyone wants to do a port?
18480 irix5* | irix6* | nonstopux*)
18481 case $cc_basename in
18483 lt_prog_compiler_wl_CXX='-Wl,'
18484 lt_prog_compiler_static_CXX='-non_shared'
18485 # CC pic flag -KPIC is the default.
18492 case $cc_basename in
18495 lt_prog_compiler_wl_CXX='--backend -Wl,'
18496 lt_prog_compiler_pic_CXX='-fPIC'
18500 lt_prog_compiler_wl_CXX='-Wl,'
18501 lt_prog_compiler_pic_CXX='-KPIC'
18502 lt_prog_compiler_static_CXX='-static'
18505 # Portland Group C++ compiler.
18506 lt_prog_compiler_wl_CXX='-Wl,'
18507 lt_prog_compiler_pic_CXX='-fpic'
18508 lt_prog_compiler_static_CXX='-Bstatic'
18512 # Make sure the PIC flag is empty. It appears that all Alpha
18513 # Linux and Compaq Tru64 Unix objects are PIC.
18514 lt_prog_compiler_pic_CXX=
18515 lt_prog_compiler_static_CXX='-non_shared'
18526 case $cc_basename in
18528 lt_prog_compiler_pic_CXX='-W c,exportall'
18536 osf3* | osf4* | osf5*)
18537 case $cc_basename in
18539 lt_prog_compiler_wl_CXX='--backend -Wl,'
18542 # Rational C++ 2.4.1
18543 lt_prog_compiler_pic_CXX='-pic'
18546 # Digital/Compaq C++
18547 lt_prog_compiler_wl_CXX='-Wl,'
18548 # Make sure the PIC flag is empty. It appears that all Alpha
18549 # Linux and Compaq Tru64 Unix objects are PIC.
18550 lt_prog_compiler_pic_CXX=
18551 lt_prog_compiler_static_CXX='-non_shared'
18560 case $cc_basename in
18562 # Sun C++ 4.2, 5.x and Centerline C++
18563 lt_prog_compiler_pic_CXX='-KPIC'
18564 lt_prog_compiler_static_CXX='-Bstatic'
18565 lt_prog_compiler_wl_CXX='-Qoption ld '
18568 # Green Hills C++ Compiler
18569 lt_prog_compiler_pic_CXX='-PIC'
18576 case $cc_basename in
18579 lt_prog_compiler_pic_CXX='-pic'
18580 lt_prog_compiler_static_CXX='-Bstatic'
18584 lt_prog_compiler_pic_CXX='-pic'
18591 case $cc_basename in
18593 # NonStop-UX NCC 3.20
18594 lt_prog_compiler_pic_CXX='-KPIC'
18600 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18601 case $cc_basename in
18603 lt_prog_compiler_wl_CXX='-Wl,'
18604 lt_prog_compiler_pic_CXX='-KPIC'
18605 lt_prog_compiler_static_CXX='-Bstatic'
18612 lt_prog_compiler_can_build_shared_CXX=no
18617 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18618 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
18621 # Check to make sure the PIC flag actually works.
18623 if test -n "$lt_prog_compiler_pic_CXX"; then
18625 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18626 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
18627 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18628 echo $ECHO_N "(cached) $ECHO_C" >&6
18630 lt_prog_compiler_pic_works_CXX=no
18631 ac_outfile=conftest.$ac_objext
18632 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18633 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18634 # Insert the option either (1) after the last *FLAGS variable, or
18635 # (2) before a word containing "conftest.", or (3) at the end.
18636 # Note that $ac_compile itself does not contain backslashes and begins
18637 # with a dollar sign (not a hyphen), so the echo should work correctly.
18638 # The option is referenced via a variable to avoid confusing sed.
18639 lt_compile=`echo "$ac_compile" | $SED \
18640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18642 -e 's:$: $lt_compiler_flag:'`
18643 (eval echo "\"\$as_me:18643: $lt_compile\"" >&5)
18644 (eval "$lt_compile" 2>conftest.err)
18646 cat conftest.err >&5
18647 echo "$as_me:18647: \$? = $ac_status" >&5
18648 if (exit $ac_status) && test -s "$ac_outfile"; then
18649 # The compiler can only warn and ignore the option if not recognized
18650 # So say no if there are warnings other than the usual output.
18651 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18653 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18654 lt_prog_compiler_pic_works_CXX=yes
18660 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18661 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
18663 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18664 case $lt_prog_compiler_pic_CXX in
18666 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18669 lt_prog_compiler_pic_CXX=
18670 lt_prog_compiler_can_build_shared_CXX=no
18675 # For platforms which do not support PIC, -DPIC is meaningless:
18677 lt_prog_compiler_pic_CXX=
18680 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18685 # Check to make sure the static flag actually works.
18687 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18688 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18689 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18690 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
18691 echo $ECHO_N "(cached) $ECHO_C" >&6
18693 lt_prog_compiler_static_works_CXX=no
18694 save_LDFLAGS="$LDFLAGS"
18695 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18696 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18697 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18698 # The linker can only warn and ignore the option if not recognized
18699 # So say no if there are warnings
18700 if test -s conftest.err; then
18701 # Append any errors to the config.log.
18702 cat conftest.err 1>&5
18703 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18705 if diff conftest.exp conftest.er2 >/dev/null; then
18706 lt_prog_compiler_static_works_CXX=yes
18709 lt_prog_compiler_static_works_CXX=yes
18713 LDFLAGS="$save_LDFLAGS"
18716 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
18717 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
18719 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
18722 lt_prog_compiler_static_CXX=
18726 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18727 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18728 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18729 echo $ECHO_N "(cached) $ECHO_C" >&6
18731 lt_cv_prog_compiler_c_o_CXX=no
18732 $rm -r conftest 2>/dev/null
18736 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18738 lt_compiler_flag="-o out/conftest2.$ac_objext"
18739 # Insert the option either (1) after the last *FLAGS variable, or
18740 # (2) before a word containing "conftest.", or (3) at the end.
18741 # Note that $ac_compile itself does not contain backslashes and begins
18742 # with a dollar sign (not a hyphen), so the echo should work correctly.
18743 lt_compile=`echo "$ac_compile" | $SED \
18744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18746 -e 's:$: $lt_compiler_flag:'`
18747 (eval echo "\"\$as_me:18747: $lt_compile\"" >&5)
18748 (eval "$lt_compile" 2>out/conftest.err)
18750 cat out/conftest.err >&5
18751 echo "$as_me:18751: \$? = $ac_status" >&5
18752 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18754 # The compiler can only warn and ignore the option if not recognized
18755 # So say no if there are warnings
18756 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18757 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18758 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18759 lt_cv_prog_compiler_c_o_CXX=yes
18764 # SGI C++ compiler will create directory out/ii_files/ for
18765 # template instantiation
18766 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18767 $rm out/* && rmdir out
18773 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18774 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
18777 hard_links="nottested"
18778 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18779 # do not overwrite the value of need_locks provided by the user
18780 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18781 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18784 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18786 ln conftest.a conftest.b 2>&5 || hard_links=no
18787 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18788 { echo "$as_me:$LINENO: result: $hard_links" >&5
18789 echo "${ECHO_T}$hard_links" >&6; }
18790 if test "$hard_links" = no; then
18791 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18792 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18799 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18800 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18802 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18805 # If we're using GNU nm, then we don't want the "-C" option.
18806 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18807 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18808 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'
18810 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'
18814 export_symbols_cmds_CXX="$ltdll_cmds"
18817 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'
18820 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18824 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18825 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18826 test "$ld_shlibs_CXX" = no && can_build_shared=no
18829 # Do we need to explicitly link libc?
18831 case "x$archive_cmds_need_lc_CXX" in
18833 # Assume -lc should be added
18834 archive_cmds_need_lc_CXX=yes
18836 if test "$enable_shared" = yes && test "$GCC" = yes; then
18837 case $archive_cmds_CXX in
18839 # FIXME: we may have to deal with multi-command sequences.
18842 # Test whether the compiler implicitly links with -lc since on some
18843 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18844 # to ld, don't add -lc before -lgcc.
18845 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18846 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18848 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18851 (eval $ac_compile) 2>&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); } 2>conftest.err; then
18857 libobjs=conftest.$ac_objext
18859 wl=$lt_prog_compiler_wl_CXX
18860 pic_flag=$lt_prog_compiler_pic_CXX
18866 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18867 allow_undefined_flag_CXX=
18868 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18869 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); }
18874 archive_cmds_need_lc_CXX=no
18876 archive_cmds_need_lc_CXX=yes
18878 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18880 cat conftest.err 1>&5
18883 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
18884 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
18891 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18892 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18893 library_names_spec=
18894 libname_spec='lib$name'
18898 postuninstall_cmds=
18902 shlibpath_overrides_runpath=unknown
18904 dynamic_linker="$host_os ld.so"
18905 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18906 if test "$GCC" = yes; then
18907 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18908 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18909 # if the path contains ";" then we assume it to be the separator
18910 # otherwise default to the standard path separator (i.e. ":") - it is
18911 # assumed that no part of a normal pathname contains ";" but that should
18912 # okay in the real world where ";" in dirpaths is itself problematic.
18913 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18915 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18918 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18920 need_lib_prefix=unknown
18921 hardcode_into_libs=no
18923 # when you set need_version to no, make sure it does not cause -set_version
18924 # flags to be left without arguments
18925 need_version=unknown
18930 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18931 shlibpath_var=LIBPATH
18933 # AIX 3 has no versioning support, so we append a major version to the name.
18934 soname_spec='${libname}${release}${shared_ext}$major'
18941 hardcode_into_libs=yes
18942 if test "$host_cpu" = ia64; then
18943 # AIX 5 supports IA64
18944 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18945 shlibpath_var=LD_LIBRARY_PATH
18947 # With GCC up to 2.95.x, collect2 would create an import file
18948 # for dependence libraries. The import file would start with
18949 # the line `#! .'. This would cause the generated library to
18950 # depend on `.', always an invalid library. This was fixed in
18951 # development snapshots of GCC prior to 3.0.
18953 aix4 | aix4.[01] | aix4.[01].*)
18954 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18956 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18959 can_build_shared=no
18963 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18964 # soname into executable. Probably we can add versioning support to
18965 # collect2, so additional links can be useful in future.
18966 if test "$aix_use_runtimelinking" = yes; then
18967 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18968 # instead of lib<name>.a to let people know that these are not
18969 # typical AIX shared libraries.
18970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18972 # We preserve .a as extension for shared libraries through AIX4.2
18973 # and later when we are not doing run time linking.
18974 library_names_spec='${libname}${release}.a $libname.a'
18975 soname_spec='${libname}${release}${shared_ext}$major'
18977 shlibpath_var=LIBPATH
18982 library_names_spec='$libname.ixlibrary $libname.a'
18983 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18984 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'
18988 library_names_spec='${libname}${shared_ext}'
18989 dynamic_linker="$host_os ld.so"
18990 shlibpath_var=LIBRARY_PATH
18996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18997 soname_spec='${libname}${release}${shared_ext}$major'
18998 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18999 shlibpath_var=LD_LIBRARY_PATH
19000 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19001 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19002 # the default ld.so.conf also contains /usr/contrib/lib and
19003 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19004 # libtool to hard-code these into programs
19007 cygwin* | mingw* | pw32*)
19008 version_type=windows
19013 case $GCC,$host_os in
19014 yes,cygwin* | yes,mingw* | yes,pw32*)
19015 library_names_spec='$libname.dll.a'
19016 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19017 postinstall_cmds='base_file=`basename \${file}`~
19018 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19019 dldir=$destdir/`dirname \$dlpath`~
19020 test -d \$dldir || mkdir -p \$dldir~
19021 $install_prog $dir/$dlname \$dldir/$dlname~
19022 chmod a+x \$dldir/$dlname'
19023 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19024 dlpath=$dir/\$dldll~
19026 shlibpath_overrides_runpath=yes
19030 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19031 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19032 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19035 # MinGW DLLs use traditional 'lib' prefix
19036 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19037 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19038 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19039 # It is most probably a Windows format PATH printed by
19040 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19041 # path with ; separators, and with drive letters. We can handle the
19042 # drive letters (cygwin fileutils understands them), so leave them,
19043 # especially as we might pass files found there to a mingw objdump,
19044 # which wouldn't understand a cygwinified path. Ahh.
19045 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19047 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19051 # pw32 DLLs use 'pw' prefix rather than 'lib'
19052 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19058 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19061 dynamic_linker='Win32 ld.exe'
19062 # FIXME: first we should search . and the directory the executable is in
19066 darwin* | rhapsody*)
19067 dynamic_linker="$host_os dyld"
19068 version_type=darwin
19071 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19072 soname_spec='${libname}${release}${major}$shared_ext'
19073 shlibpath_overrides_runpath=yes
19074 shlibpath_var=DYLD_LIBRARY_PATH
19075 shrext_cmds='.dylib'
19076 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19077 if test "$GCC" = yes; then
19078 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"`
19080 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19082 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19090 soname_spec='${libname}${release}${shared_ext}$major'
19091 shlibpath_var=LD_LIBRARY_PATH
19102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19103 soname_spec='${libname}${release}${shared_ext}$major'
19104 shlibpath_var=LD_LIBRARY_PATH
19105 shlibpath_overrides_runpath=no
19106 hardcode_into_libs=yes
19107 dynamic_linker='GNU ld.so'
19110 freebsd* | dragonfly*)
19111 # DragonFly does not have aout. When/if they implement a new
19112 # versioning mechanism, adjust this.
19113 if test -x /usr/bin/objformat; then
19114 objformat=`/usr/bin/objformat`
19117 freebsd[123]*) objformat=aout ;;
19118 *) objformat=elf ;;
19121 version_type=freebsd-$objformat
19122 case $version_type in
19124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19133 shlibpath_var=LD_LIBRARY_PATH
19136 shlibpath_overrides_runpath=yes
19138 freebsd3.[01]* | freebsdelf3.[01]*)
19139 shlibpath_overrides_runpath=yes
19140 hardcode_into_libs=yes
19142 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19143 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19144 shlibpath_overrides_runpath=no
19145 hardcode_into_libs=yes
19147 freebsd*) # from 4.6 on
19148 shlibpath_overrides_runpath=yes
19149 hardcode_into_libs=yes
19158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19159 soname_spec='${libname}${release}${shared_ext}$major'
19160 shlibpath_var=LD_LIBRARY_PATH
19161 hardcode_into_libs=yes
19164 hpux9* | hpux10* | hpux11*)
19165 # Give a soname corresponding to the major version so that dld.sl refuses to
19166 # link against other versions.
19173 hardcode_into_libs=yes
19174 dynamic_linker="$host_os dld.so"
19175 shlibpath_var=LD_LIBRARY_PATH
19176 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19178 soname_spec='${libname}${release}${shared_ext}$major'
19179 if test "X$HPUX_IA64_MODE" = X32; then
19180 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19182 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19184 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19188 hardcode_into_libs=yes
19189 dynamic_linker="$host_os dld.sl"
19190 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19191 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19193 soname_spec='${libname}${release}${shared_ext}$major'
19194 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19195 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19199 dynamic_linker="$host_os dld.sl"
19200 shlibpath_var=SHLIB_PATH
19201 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19203 soname_spec='${libname}${release}${shared_ext}$major'
19206 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19207 postinstall_cmds='chmod 555 $lib'
19214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19215 soname_spec='${libname}${release}${shared_ext}$major'
19216 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19217 shlibpath_var=LD_LIBRARY_PATH
19218 shlibpath_overrides_runpath=no
19219 hardcode_into_libs=yes
19222 irix5* | irix6* | nonstopux*)
19224 nonstopux*) version_type=nonstopux ;;
19226 if test "$lt_cv_prog_gnu_ld" = yes; then
19234 soname_spec='${libname}${release}${shared_ext}$major'
19235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19237 irix5* | nonstopux*)
19238 libsuff= shlibsuff=
19241 case $LD in # libtool.m4 will add one of these switches to LD
19242 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19243 libsuff= shlibsuff= libmagic=32-bit;;
19244 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19245 libsuff=32 shlibsuff=N32 libmagic=N32;;
19246 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19247 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19248 *) libsuff= shlibsuff= libmagic=never-match;;
19252 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19253 shlibpath_overrides_runpath=no
19254 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19255 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19256 hardcode_into_libs=yes
19259 # No shared lib support for Linux oldld, aout, or coff.
19260 linux*oldld* | linux*aout* | linux*coff*)
19264 # This must be Linux ELF.
19269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19270 soname_spec='${libname}${release}${shared_ext}$major'
19271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19272 shlibpath_var=LD_LIBRARY_PATH
19273 shlibpath_overrides_runpath=no
19274 # This implies no fast_install, which is unacceptable.
19275 # Some rework will be needed to allow for fast_install
19276 # before this can be enabled.
19277 hardcode_into_libs=yes
19279 # Append ld.so.conf contents to the search path
19280 if test -f /etc/ld.so.conf; then
19281 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' ' '`
19282 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19285 # We used to test for /lib/ld.so.1 and disable shared libraries on
19286 # powerpc, because MkLinux only supported shared libraries with the
19287 # GNU dynamic linker. Since this was broken with cross compilers,
19288 # most powerpc-linux boxes support dynamic linking these days and
19289 # people can always --disable-shared, the test was removed, and we
19290 # assume the GNU/Linux dynamic linker is in use.
19291 dynamic_linker='GNU/Linux ld.so'
19298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19299 soname_spec='${libname}${release}${shared_ext}$major'
19300 shlibpath_var=LD_LIBRARY_PATH
19301 shlibpath_overrides_runpath=no
19302 hardcode_into_libs=yes
19303 dynamic_linker='GNU ld.so'
19310 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19313 dynamic_linker='NetBSD (a.out) ld.so'
19315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19316 soname_spec='${libname}${release}${shared_ext}$major'
19317 dynamic_linker='NetBSD ld.elf_so'
19319 shlibpath_var=LD_LIBRARY_PATH
19320 shlibpath_overrides_runpath=yes
19321 hardcode_into_libs=yes
19326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19327 shlibpath_var=LD_LIBRARY_PATH
19328 shlibpath_overrides_runpath=yes
19335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19336 soname_spec='${libname}${release}${shared_ext}$major'
19337 shlibpath_var=LD_LIBRARY_PATH
19338 shlibpath_overrides_runpath=yes
19343 sys_lib_dlsearch_path_spec="/usr/lib"
19345 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19347 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19348 *) need_version=no ;;
19350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19352 shlibpath_var=LD_LIBRARY_PATH
19353 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19355 openbsd2.[89] | openbsd2.[89].*)
19356 shlibpath_overrides_runpath=no
19359 shlibpath_overrides_runpath=yes
19363 shlibpath_overrides_runpath=yes
19368 libname_spec='$name'
19371 library_names_spec='$libname${shared_ext} $libname.a'
19372 dynamic_linker='OS/2 ld.exe'
19373 shlibpath_var=LIBPATH
19376 osf3* | osf4* | osf5*)
19380 soname_spec='${libname}${release}${shared_ext}$major'
19381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19382 shlibpath_var=LD_LIBRARY_PATH
19383 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19384 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19392 soname_spec='${libname}${release}${shared_ext}$major'
19393 shlibpath_var=LD_LIBRARY_PATH
19394 shlibpath_overrides_runpath=yes
19395 hardcode_into_libs=yes
19396 # ldd complains unless libraries are executable
19397 postinstall_cmds='chmod +x $lib'
19402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19403 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19404 shlibpath_var=LD_LIBRARY_PATH
19405 shlibpath_overrides_runpath=yes
19406 if test "$with_gnu_ld" = yes; then
19414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19415 soname_spec='${libname}${release}${shared_ext}$major'
19416 shlibpath_var=LD_LIBRARY_PATH
19417 case $host_vendor in
19419 shlibpath_overrides_runpath=no
19421 export_dynamic_flag_spec='${wl}-Blargedynsym'
19422 runpath_var=LD_RUN_PATH
19430 shlibpath_overrides_runpath=no
19431 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19437 if test -d /usr/nec ;then
19439 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19440 soname_spec='$libname${shared_ext}.$major'
19441 shlibpath_var=LD_LIBRARY_PATH
19445 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19446 version_type=freebsd-elf
19449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19450 soname_spec='${libname}${release}${shared_ext}$major'
19451 shlibpath_var=LD_LIBRARY_PATH
19452 hardcode_into_libs=yes
19453 if test "$with_gnu_ld" = yes; then
19454 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19455 shlibpath_overrides_runpath=no
19457 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19458 shlibpath_overrides_runpath=yes
19461 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19465 sys_lib_dlsearch_path_spec='/usr/lib'
19470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19471 soname_spec='${libname}${release}${shared_ext}$major'
19472 shlibpath_var=LD_LIBRARY_PATH
19479 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19480 echo "${ECHO_T}$dynamic_linker" >&6; }
19481 test "$dynamic_linker" = no && can_build_shared=no
19483 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19484 if test "$GCC" = yes; then
19485 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19488 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19489 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19490 hardcode_action_CXX=
19491 if test -n "$hardcode_libdir_flag_spec_CXX" || \
19492 test -n "$runpath_var_CXX" || \
19493 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19495 # We can hardcode non-existant directories.
19496 if test "$hardcode_direct_CXX" != no &&
19497 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19498 # have to relink, otherwise we might link with an installed library
19499 # when we should be linking with a yet-to-be-installed one
19500 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19501 test "$hardcode_minus_L_CXX" != no; then
19502 # Linking always hardcodes the temporary library directory.
19503 hardcode_action_CXX=relink
19505 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19506 hardcode_action_CXX=immediate
19509 # We cannot hardcode anything, or else we can only hardcode existing
19511 hardcode_action_CXX=unsupported
19513 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19514 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
19516 if test "$hardcode_action_CXX" = relink; then
19517 # Fast installation is not supported
19518 enable_fast_install=no
19519 elif test "$shlibpath_overrides_runpath" = yes ||
19520 test "$enable_shared" = no; then
19521 # Fast installation is not necessary
19522 enable_fast_install=needless
19526 # The else clause should only fire when bootstrapping the
19527 # libtool distribution, otherwise you forgot to ship ltmain.sh
19528 # with your package, and you will get complaints that there are
19529 # no rules to generate ltmain.sh.
19530 if test -f "$ltmain"; then
19531 # See if we are running on zsh, and set the options which allow our commands through
19532 # without removal of \ escapes.
19533 if test -n "${ZSH_VERSION+set}" ; then
19534 setopt NO_GLOB_SUBST
19536 # Now quote all the things that may contain metacharacters while being
19537 # careful not to overquote the AC_SUBSTed values. We take copies of the
19538 # variables and quote the copies for generation of the libtool script.
19539 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19541 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19542 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19543 deplibs_check_method reload_flag reload_cmds need_locks \
19544 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19545 lt_cv_sys_global_symbol_to_c_name_address \
19546 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19547 old_postinstall_cmds old_postuninstall_cmds \
19551 lt_prog_compiler_wl_CXX \
19552 lt_prog_compiler_pic_CXX \
19553 lt_prog_compiler_static_CXX \
19554 lt_prog_compiler_no_builtin_flag_CXX \
19555 export_dynamic_flag_spec_CXX \
19556 thread_safe_flag_spec_CXX \
19557 whole_archive_flag_spec_CXX \
19558 enable_shared_with_static_runtimes_CXX \
19559 old_archive_cmds_CXX \
19560 old_archive_from_new_cmds_CXX \
19561 predep_objects_CXX \
19562 postdep_objects_CXX \
19565 compiler_lib_search_path_CXX \
19567 archive_expsym_cmds_CXX \
19568 postinstall_cmds_CXX \
19569 postuninstall_cmds_CXX \
19570 old_archive_from_expsyms_cmds_CXX \
19571 allow_undefined_flag_CXX \
19572 no_undefined_flag_CXX \
19573 export_symbols_cmds_CXX \
19574 hardcode_libdir_flag_spec_CXX \
19575 hardcode_libdir_flag_spec_ld_CXX \
19576 hardcode_libdir_separator_CXX \
19577 hardcode_automatic_CXX \
19579 module_expsym_cmds_CXX \
19580 lt_cv_prog_compiler_c_o_CXX \
19581 exclude_expsyms_CXX \
19582 include_expsyms_CXX; do
19585 old_archive_cmds_CXX | \
19586 old_archive_from_new_cmds_CXX | \
19587 archive_cmds_CXX | \
19588 archive_expsym_cmds_CXX | \
19589 module_cmds_CXX | \
19590 module_expsym_cmds_CXX | \
19591 old_archive_from_expsyms_cmds_CXX | \
19592 export_symbols_cmds_CXX | \
19593 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19594 postinstall_cmds | postuninstall_cmds | \
19595 old_postinstall_cmds | old_postuninstall_cmds | \
19596 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19597 # Double-quote double-evaled strings.
19598 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19601 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19607 *'\$0 --fallback-echo"')
19608 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19614 cat <<__EOF__ >> "$cfgfile"
19615 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19617 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19619 # Shell to use when invoking shell scripts.
19622 # Whether or not to build shared libraries.
19623 build_libtool_libs=$enable_shared
19625 # Whether or not to build static libraries.
19626 build_old_libs=$enable_static
19628 # Whether or not to add -lc for building shared libraries.
19629 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19631 # Whether or not to disallow shared libs when runtime libs are static
19632 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19634 # Whether or not to optimize for fast installation.
19635 fast_install=$enable_fast_install
19638 host_alias=$host_alias
19642 # The build system.
19643 build_alias=$build_alias
19647 # An echo program that does not interpret backslashes.
19652 AR_FLAGS=$lt_AR_FLAGS
19657 # LTCC compiler flags.
19658 LTCFLAGS=$lt_LTCFLAGS
19660 # A language-specific compiler.
19661 CC=$lt_compiler_CXX
19663 # Is the compiler the GNU C compiler?
19669 # The linker used to build libraries.
19672 # Whether we need hard or soft links.
19675 # A BSD-compatible nm program.
19678 # A symbol stripping program
19681 # Used to examine libraries when file_magic_cmd begins "file"
19682 MAGIC_CMD=$MAGIC_CMD
19684 # Used on cygwin: DLL creation program.
19687 # Used on cygwin: object dumper.
19690 # Used on cygwin: assembler.
19693 # The name of the directory that contains temporary libtool files.
19696 # How to create reloadable object files.
19697 reload_flag=$lt_reload_flag
19698 reload_cmds=$lt_reload_cmds
19700 # How to pass a linker flag through the compiler.
19701 wl=$lt_lt_prog_compiler_wl_CXX
19703 # Object file suffix (normally "o").
19704 objext="$ac_objext"
19706 # Old archive suffix (normally "a").
19709 # Shared library suffix (normally ".so").
19710 shrext_cmds='$shrext_cmds'
19712 # Executable file suffix (normally "").
19715 # Additional compiler flags for building library objects.
19716 pic_flag=$lt_lt_prog_compiler_pic_CXX
19719 # What is the maximum length of a command?
19720 max_cmd_len=$lt_cv_sys_max_cmd_len
19722 # Does compiler simultaneously support -c and -o options?
19723 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19725 # Must we lock files when doing compilation?
19726 need_locks=$lt_need_locks
19728 # Do we need the lib prefix for modules?
19729 need_lib_prefix=$need_lib_prefix
19731 # Do we need a version for libraries?
19732 need_version=$need_version
19734 # Whether dlopen is supported.
19735 dlopen_support=$enable_dlopen
19737 # Whether dlopen of programs is supported.
19738 dlopen_self=$enable_dlopen_self
19740 # Whether dlopen of statically linked programs is supported.
19741 dlopen_self_static=$enable_dlopen_self_static
19743 # Compiler flag to prevent dynamic linking.
19744 link_static_flag=$lt_lt_prog_compiler_static_CXX
19746 # Compiler flag to turn off builtin functions.
19747 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19749 # Compiler flag to allow reflexive dlopens.
19750 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19752 # Compiler flag to generate shared objects directly from archives.
19753 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19755 # Compiler flag to generate thread-safe objects.
19756 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19758 # Library versioning type.
19759 version_type=$version_type
19761 # Format of library name prefix.
19762 libname_spec=$lt_libname_spec
19764 # List of archive names. First name is the real one, the rest are links.
19765 # The last name is the one that the linker finds with -lNAME.
19766 library_names_spec=$lt_library_names_spec
19768 # The coded name of the library, if different from the real name.
19769 soname_spec=$lt_soname_spec
19771 # Commands used to build and install an old-style archive.
19773 old_archive_cmds=$lt_old_archive_cmds_CXX
19774 old_postinstall_cmds=$lt_old_postinstall_cmds
19775 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19777 # Create an old-style archive from a shared archive.
19778 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19780 # Create a temporary old-style archive to link instead of a shared archive.
19781 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19783 # Commands used to build and install a shared archive.
19784 archive_cmds=$lt_archive_cmds_CXX
19785 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19786 postinstall_cmds=$lt_postinstall_cmds
19787 postuninstall_cmds=$lt_postuninstall_cmds
19789 # Commands used to build a loadable module (assumed same as above if empty)
19790 module_cmds=$lt_module_cmds_CXX
19791 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19793 # Commands to strip libraries.
19794 old_striplib=$lt_old_striplib
19795 striplib=$lt_striplib
19797 # Dependencies to place before the objects being linked to create a
19799 predep_objects=$lt_predep_objects_CXX
19801 # Dependencies to place after the objects being linked to create a
19803 postdep_objects=$lt_postdep_objects_CXX
19805 # Dependencies to place before the objects being linked to create a
19807 predeps=$lt_predeps_CXX
19809 # Dependencies to place after the objects being linked to create a
19811 postdeps=$lt_postdeps_CXX
19813 # The library search path used internally by the compiler when linking
19814 # a shared library.
19815 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19817 # Method to check whether dependent libraries are shared objects.
19818 deplibs_check_method=$lt_deplibs_check_method
19820 # Command to use when deplibs_check_method == file_magic.
19821 file_magic_cmd=$lt_file_magic_cmd
19823 # Flag that allows shared libraries with undefined symbols to be built.
19824 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19826 # Flag that forces no undefined symbols.
19827 no_undefined_flag=$lt_no_undefined_flag_CXX
19829 # Commands used to finish a libtool library installation in a directory.
19830 finish_cmds=$lt_finish_cmds
19832 # Same as above, but a single script fragment to be evaled but not shown.
19833 finish_eval=$lt_finish_eval
19835 # Take the output of nm and produce a listing of raw symbols and C names.
19836 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19838 # Transform the output of nm in a proper C declaration
19839 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19841 # Transform the output of nm in a C name address pair
19842 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19844 # This is the shared library runtime path variable.
19845 runpath_var=$runpath_var
19847 # This is the shared library path variable.
19848 shlibpath_var=$shlibpath_var
19850 # Is shlibpath searched before the hard-coded library search path?
19851 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19853 # How to hardcode a shared library path into an executable.
19854 hardcode_action=$hardcode_action_CXX
19856 # Whether we should hardcode library paths into libraries.
19857 hardcode_into_libs=$hardcode_into_libs
19859 # Flag to hardcode \$libdir into a binary during linking.
19860 # This must work even if \$libdir does not exist.
19861 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19863 # If ld is used when linking, flag to hardcode \$libdir into
19864 # a binary during linking. This must work even if \$libdir does
19866 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19868 # Whether we need a single -rpath flag with a separated argument.
19869 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19871 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19872 # resulting binary.
19873 hardcode_direct=$hardcode_direct_CXX
19875 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19876 # resulting binary.
19877 hardcode_minus_L=$hardcode_minus_L_CXX
19879 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19880 # the resulting binary.
19881 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19883 # Set to yes if building a shared library automatically hardcodes DIR into the library
19884 # and all subsequent libraries and executables linked against it.
19885 hardcode_automatic=$hardcode_automatic_CXX
19887 # Variables whose values should be saved in libtool wrapper scripts and
19888 # restored at relink time.
19889 variables_saved_for_relink="$variables_saved_for_relink"
19891 # Whether libtool must link a program against all its dependency libraries.
19892 link_all_deplibs=$link_all_deplibs_CXX
19894 # Compile-time system search path for libraries
19895 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19897 # Run-time system search path for libraries
19898 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19900 # Fix the shell variable \$srcfile for the compiler.
19901 fix_srcfile_path="$fix_srcfile_path_CXX"
19903 # Set to yes if exported symbols are required.
19904 always_export_symbols=$always_export_symbols_CXX
19906 # The commands to list exported symbols.
19907 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19909 # The commands to extract the exported symbol list from a shared archive.
19910 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19912 # Symbols that should not be listed in the preloaded symbols.
19913 exclude_expsyms=$lt_exclude_expsyms_CXX
19915 # Symbols that must always be exported.
19916 include_expsyms=$lt_include_expsyms_CXX
19918 # ### END LIBTOOL TAG CONFIG: $tagname
19924 # If there is no Makefile yet, we rely on a make rule to execute
19925 # `config.status --recheck' to rerun these tests and create the
19926 # libtool script then.
19927 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19928 if test -f "$ltmain_in"; then
19929 test -f Makefile && make "$ltmain"
19935 ac_cpp='$CPP $CPPFLAGS'
19936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19944 with_gnu_ldcxx=$with_gnu_ld
19945 with_gnu_ld=$lt_save_with_gnu_ld
19946 lt_cv_path_LDCXX=$lt_cv_path_LD
19947 lt_cv_path_LD=$lt_save_path_LD
19948 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19949 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19957 if test -n "$F77" && test "X$F77" != "Xno"; then
19960 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19961 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19962 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19965 archive_cmds_need_lc_F77=no
19966 allow_undefined_flag_F77=
19967 always_export_symbols_F77=no
19968 archive_expsym_cmds_F77=
19969 export_dynamic_flag_spec_F77=
19970 hardcode_direct_F77=no
19971 hardcode_libdir_flag_spec_F77=
19972 hardcode_libdir_flag_spec_ld_F77=
19973 hardcode_libdir_separator_F77=
19974 hardcode_minus_L_F77=no
19975 hardcode_automatic_F77=no
19977 module_expsym_cmds_F77=
19978 link_all_deplibs_F77=unknown
19979 old_archive_cmds_F77=$old_archive_cmds
19980 no_undefined_flag_F77=
19981 whole_archive_flag_spec_F77=
19982 enable_shared_with_static_runtimes_F77=no
19984 # Source file extension for f77 test sources.
19987 # Object file extension for compiled f77 test sources.
19991 # Code to be used in simple compile tests
19992 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
19994 # Code to be used in simple link tests
19995 lt_simple_link_test_code=" program t\n end\n"
19997 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19999 # If no C compiler was specified, use CC.
20002 # If no C compiler flags were specified, use CFLAGS.
20003 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20005 # Allow CC to be a program name with arguments.
20009 # save warnings/boilerplate of simple test code
20010 ac_outfile=conftest.$ac_objext
20011 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20012 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20013 _lt_compiler_boilerplate=`cat conftest.err`
20016 ac_outfile=conftest.$ac_objext
20017 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20018 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20019 _lt_linker_boilerplate=`cat conftest.err`
20023 # Allow CC to be a program name with arguments.
20028 for cc_temp in $compiler""; do
20030 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20031 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20036 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20039 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20040 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20041 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20042 echo "${ECHO_T}$can_build_shared" >&6; }
20044 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20045 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20046 test "$can_build_shared" = "no" && enable_shared=no
20048 # On AIX, shared libraries and static libraries use the same namespace, and
20049 # are all built from PIC.
20052 test "$enable_shared" = yes && enable_static=no
20053 if test -n "$RANLIB"; then
20054 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20055 postinstall_cmds='$RANLIB $lib'
20059 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20060 test "$enable_shared" = yes && enable_static=no
20064 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20065 echo "${ECHO_T}$enable_shared" >&6; }
20067 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20068 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20069 # Make sure either enable_shared or enable_static is yes.
20070 test "$enable_shared" = yes || enable_static=yes
20071 { echo "$as_me:$LINENO: result: $enable_static" >&5
20072 echo "${ECHO_T}$enable_static" >&6; }
20077 lt_prog_compiler_wl_F77=
20078 lt_prog_compiler_pic_F77=
20079 lt_prog_compiler_static_F77=
20081 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20082 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20084 if test "$GCC" = yes; then
20085 lt_prog_compiler_wl_F77='-Wl,'
20086 lt_prog_compiler_static_F77='-static'
20090 # All AIX code is PIC.
20091 if test "$host_cpu" = ia64; then
20092 # AIX 5 now supports IA64 processor
20093 lt_prog_compiler_static_F77='-Bstatic'
20098 # FIXME: we need at least 68020 code to build shared libraries, but
20099 # adding the `-m68020' flag to GCC prevents building anything better,
20101 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20104 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20105 # PIC is the default for these OSes.
20108 mingw* | pw32* | os2*)
20109 # This hack is so that the source file can tell whether it is being
20110 # built for inclusion in a dll (and should export symbols for example).
20111 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20114 darwin* | rhapsody*)
20115 # PIC is the default on this platform
20116 # Common symbols not allowed in MH_DYLIB files
20117 lt_prog_compiler_pic_F77='-fno-common'
20121 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20122 # Instead, we relocate shared libraries at runtime.
20126 # Just because we use GCC doesn't mean we suddenly get shared libraries
20127 # on systems that don't support them.
20128 lt_prog_compiler_can_build_shared_F77=no
20133 if test -d /usr/nec; then
20134 lt_prog_compiler_pic_F77=-Kconform_pic
20139 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20140 # not for PA HP-UX.
20146 lt_prog_compiler_pic_F77='-fPIC'
20152 lt_prog_compiler_pic_F77='-fPIC'
20156 # PORTME Check for flag to pass linker flags through the system compiler.
20159 lt_prog_compiler_wl_F77='-Wl,'
20160 if test "$host_cpu" = ia64; then
20161 # AIX 5 now supports IA64 processor
20162 lt_prog_compiler_static_F77='-Bstatic'
20164 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20168 # PIC is the default on this platform
20169 # Common symbols not allowed in MH_DYLIB files
20170 case $cc_basename in
20172 lt_prog_compiler_pic_F77='-qnocommon'
20173 lt_prog_compiler_wl_F77='-Wl,'
20178 mingw* | pw32* | os2*)
20179 # This hack is so that the source file can tell whether it is being
20180 # built for inclusion in a dll (and should export symbols for example).
20181 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20184 hpux9* | hpux10* | hpux11*)
20185 lt_prog_compiler_wl_F77='-Wl,'
20186 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20187 # not for PA HP-UX.
20193 lt_prog_compiler_pic_F77='+Z'
20196 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20197 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20200 irix5* | irix6* | nonstopux*)
20201 lt_prog_compiler_wl_F77='-Wl,'
20202 # PIC (with -KPIC) is the default.
20203 lt_prog_compiler_static_F77='-non_shared'
20207 lt_prog_compiler_pic_F77='-KPIC'
20208 lt_prog_compiler_static_F77='-Bstatic'
20212 case $cc_basename in
20214 lt_prog_compiler_wl_F77='-Wl,'
20215 lt_prog_compiler_pic_F77='-KPIC'
20216 lt_prog_compiler_static_F77='-static'
20218 pgcc* | pgf77* | pgf90* | pgf95*)
20219 # Portland Group compilers (*not* the Pentium gcc compiler,
20220 # which looks to be a dead project)
20221 lt_prog_compiler_wl_F77='-Wl,'
20222 lt_prog_compiler_pic_F77='-fpic'
20223 lt_prog_compiler_static_F77='-Bstatic'
20226 lt_prog_compiler_wl_F77='-Wl,'
20227 # All Alpha code is PIC.
20228 lt_prog_compiler_static_F77='-non_shared'
20233 osf3* | osf4* | osf5*)
20234 lt_prog_compiler_wl_F77='-Wl,'
20235 # All OSF/1 code is PIC.
20236 lt_prog_compiler_static_F77='-non_shared'
20240 lt_prog_compiler_pic_F77='-KPIC'
20241 lt_prog_compiler_static_F77='-Bstatic'
20242 case $cc_basename in
20243 f77* | f90* | f95*)
20244 lt_prog_compiler_wl_F77='-Qoption ld ';;
20246 lt_prog_compiler_wl_F77='-Wl,';;
20251 lt_prog_compiler_wl_F77='-Qoption ld '
20252 lt_prog_compiler_pic_F77='-PIC'
20253 lt_prog_compiler_static_F77='-Bstatic'
20256 sysv4 | sysv4.2uw2* | sysv4.3*)
20257 lt_prog_compiler_wl_F77='-Wl,'
20258 lt_prog_compiler_pic_F77='-KPIC'
20259 lt_prog_compiler_static_F77='-Bstatic'
20263 if test -d /usr/nec ;then
20264 lt_prog_compiler_pic_F77='-Kconform_pic'
20265 lt_prog_compiler_static_F77='-Bstatic'
20269 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20270 lt_prog_compiler_wl_F77='-Wl,'
20271 lt_prog_compiler_pic_F77='-KPIC'
20272 lt_prog_compiler_static_F77='-Bstatic'
20276 lt_prog_compiler_wl_F77='-Wl,'
20277 lt_prog_compiler_can_build_shared_F77=no
20281 lt_prog_compiler_pic_F77='-pic'
20282 lt_prog_compiler_static_F77='-Bstatic'
20286 lt_prog_compiler_can_build_shared_F77=no
20291 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20292 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
20295 # Check to make sure the PIC flag actually works.
20297 if test -n "$lt_prog_compiler_pic_F77"; then
20299 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20300 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
20301 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20302 echo $ECHO_N "(cached) $ECHO_C" >&6
20304 lt_prog_compiler_pic_works_F77=no
20305 ac_outfile=conftest.$ac_objext
20306 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20307 lt_compiler_flag="$lt_prog_compiler_pic_F77"
20308 # Insert the option either (1) after the last *FLAGS variable, or
20309 # (2) before a word containing "conftest.", or (3) at the end.
20310 # Note that $ac_compile itself does not contain backslashes and begins
20311 # with a dollar sign (not a hyphen), so the echo should work correctly.
20312 # The option is referenced via a variable to avoid confusing sed.
20313 lt_compile=`echo "$ac_compile" | $SED \
20314 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20316 -e 's:$: $lt_compiler_flag:'`
20317 (eval echo "\"\$as_me:20317: $lt_compile\"" >&5)
20318 (eval "$lt_compile" 2>conftest.err)
20320 cat conftest.err >&5
20321 echo "$as_me:20321: \$? = $ac_status" >&5
20322 if (exit $ac_status) && test -s "$ac_outfile"; then
20323 # The compiler can only warn and ignore the option if not recognized
20324 # So say no if there are warnings other than the usual output.
20325 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20327 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20328 lt_prog_compiler_pic_works_F77=yes
20334 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20335 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
20337 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20338 case $lt_prog_compiler_pic_F77 in
20340 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20343 lt_prog_compiler_pic_F77=
20344 lt_prog_compiler_can_build_shared_F77=no
20349 # For platforms which do not support PIC, -DPIC is meaningless:
20351 lt_prog_compiler_pic_F77=
20354 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20359 # Check to make sure the static flag actually works.
20361 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
20362 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20363 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20364 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
20365 echo $ECHO_N "(cached) $ECHO_C" >&6
20367 lt_prog_compiler_static_works_F77=no
20368 save_LDFLAGS="$LDFLAGS"
20369 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20370 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20371 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20372 # The linker can only warn and ignore the option if not recognized
20373 # So say no if there are warnings
20374 if test -s conftest.err; then
20375 # Append any errors to the config.log.
20376 cat conftest.err 1>&5
20377 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20379 if diff conftest.exp conftest.er2 >/dev/null; then
20380 lt_prog_compiler_static_works_F77=yes
20383 lt_prog_compiler_static_works_F77=yes
20387 LDFLAGS="$save_LDFLAGS"
20390 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
20391 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
20393 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
20396 lt_prog_compiler_static_F77=
20400 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20401 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20402 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20403 echo $ECHO_N "(cached) $ECHO_C" >&6
20405 lt_cv_prog_compiler_c_o_F77=no
20406 $rm -r conftest 2>/dev/null
20410 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20412 lt_compiler_flag="-o out/conftest2.$ac_objext"
20413 # Insert the option either (1) after the last *FLAGS variable, or
20414 # (2) before a word containing "conftest.", or (3) at the end.
20415 # Note that $ac_compile itself does not contain backslashes and begins
20416 # with a dollar sign (not a hyphen), so the echo should work correctly.
20417 lt_compile=`echo "$ac_compile" | $SED \
20418 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20420 -e 's:$: $lt_compiler_flag:'`
20421 (eval echo "\"\$as_me:20421: $lt_compile\"" >&5)
20422 (eval "$lt_compile" 2>out/conftest.err)
20424 cat out/conftest.err >&5
20425 echo "$as_me:20425: \$? = $ac_status" >&5
20426 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20428 # The compiler can only warn and ignore the option if not recognized
20429 # So say no if there are warnings
20430 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20431 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20432 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20433 lt_cv_prog_compiler_c_o_F77=yes
20438 # SGI C++ compiler will create directory out/ii_files/ for
20439 # template instantiation
20440 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20441 $rm out/* && rmdir out
20447 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20448 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
20451 hard_links="nottested"
20452 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20453 # do not overwrite the value of need_locks provided by the user
20454 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20455 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20460 ln conftest.a conftest.b 2>&5 || hard_links=no
20461 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20462 { echo "$as_me:$LINENO: result: $hard_links" >&5
20463 echo "${ECHO_T}$hard_links" >&6; }
20464 if test "$hard_links" = no; then
20465 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20466 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20473 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20474 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20477 allow_undefined_flag_F77=
20478 enable_shared_with_static_runtimes_F77=no
20480 archive_expsym_cmds_F77=
20481 old_archive_From_new_cmds_F77=
20482 old_archive_from_expsyms_cmds_F77=
20483 export_dynamic_flag_spec_F77=
20484 whole_archive_flag_spec_F77=
20485 thread_safe_flag_spec_F77=
20486 hardcode_libdir_flag_spec_F77=
20487 hardcode_libdir_flag_spec_ld_F77=
20488 hardcode_libdir_separator_F77=
20489 hardcode_direct_F77=no
20490 hardcode_minus_L_F77=no
20491 hardcode_shlibpath_var_F77=unsupported
20492 link_all_deplibs_F77=unknown
20493 hardcode_automatic_F77=no
20495 module_expsym_cmds_F77=
20496 always_export_symbols_F77=no
20497 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20498 # include_expsyms should be a list of space-separated symbols to be *always*
20499 # included in the symbol list
20500 include_expsyms_F77=
20501 # exclude_expsyms can be an extended regexp of symbols to exclude
20502 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20503 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20504 # as well as any symbol that contains `d'.
20505 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20506 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20507 # platforms (ab)use it in PIC code, but their linkers get confused if
20508 # the symbol is explicitly referenced. Since portable code cannot
20509 # rely on this symbol name, it's probably fine to never include it in
20510 # preloaded symbol tables.
20511 extract_expsyms_cmds=
20512 # Just being paranoid about ensuring that cc_basename is set.
20513 for cc_temp in $compiler""; do
20515 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20516 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20521 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20524 cygwin* | mingw* | pw32*)
20525 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20526 # When not using gcc, we currently assume that we are using
20527 # Microsoft Visual C++.
20528 if test "$GCC" != yes; then
20533 # we just hope/assume this is gcc and not c89 (= MSVC++)
20542 if test "$with_gnu_ld" = yes; then
20543 # If archive_cmds runs LD, not CC, wlarc should be empty
20546 # Set some defaults for GNU ld with shared library support. These
20547 # are reset later if shared libraries are not supported. Putting them
20548 # here allows them to be overridden if necessary.
20549 runpath_var=LD_RUN_PATH
20550 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20551 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20552 # ancient GNU ld didn't support --whole-archive et. al.
20553 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20554 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20556 whole_archive_flag_spec_F77=
20558 supports_anon_versioning=no
20559 case `$LD -v 2>/dev/null` in
20560 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20561 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20562 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20563 *\ 2.11.*) ;; # other 2.11 versions
20564 *) supports_anon_versioning=yes ;;
20567 # See if GNU ld supports shared libraries.
20569 aix3* | aix4* | aix5*)
20570 # On AIX/PPC, the GNU linker is very broken
20571 if test "$host_cpu" != ia64; then
20575 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20576 *** to be unable to reliably create shared libraries on AIX.
20577 *** Therefore, libtool is disabling shared libraries support. If you
20578 *** really care for shared libraries, you may want to modify your PATH
20579 *** so that a non-GNU linker is found, and then restart.
20586 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)'
20587 hardcode_libdir_flag_spec_F77='-L$libdir'
20588 hardcode_minus_L_F77=yes
20590 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20591 # that the semantics of dynamic libraries on AmigaOS, at least up
20592 # to version 4, is to share data among multiple programs linked
20593 # with the same dynamic library. Since this doesn't match the
20594 # behavior of shared libraries on other platforms, we can't use
20600 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20601 allow_undefined_flag_F77=unsupported
20602 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20603 # support --undefined. This deserves some investigation. FIXME
20604 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20610 cygwin* | mingw* | pw32*)
20611 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20612 # as there is no search path for DLLs.
20613 hardcode_libdir_flag_spec_F77='-L$libdir'
20614 allow_undefined_flag_F77=unsupported
20615 always_export_symbols_F77=no
20616 enable_shared_with_static_runtimes_F77=yes
20617 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20619 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20620 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20621 # If the export-symbols file already is a .def file (1st line
20622 # is EXPORTS), use it as is; otherwise, prepend...
20623 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20624 cp $export_symbols $output_objdir/$soname.def;
20626 echo EXPORTS > $output_objdir/$soname.def;
20627 cat $export_symbols >> $output_objdir/$soname.def;
20629 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20636 hardcode_direct_F77=no
20637 hardcode_shlibpath_var_F77=no
20638 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20639 export_dynamic_flag_spec_F77='${wl}-E'
20640 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20641 # Instead, shared libraries are loaded at an image base (0x10000000 by
20642 # default) and relocated if they conflict, which is a slow very memory
20643 # consuming and fragmenting process. To avoid this, we pick a random,
20644 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20645 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20646 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'
20647 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'
20651 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20653 case $cc_basename,$host_cpu in
20654 pgcc*) # Portland Group C compiler
20655 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'
20656 tmp_addflag=' $pic_flag'
20658 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
20659 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'
20660 tmp_addflag=' $pic_flag -Mnomain' ;;
20661 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20662 tmp_addflag=' -i_dynamic' ;;
20663 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20664 tmp_addflag=' -i_dynamic -nofor_main' ;;
20665 ifc* | ifort*) # Intel Fortran compiler
20666 tmp_addflag=' -nofor_main' ;;
20668 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20670 if test $supports_anon_versioning = yes; then
20671 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20672 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20673 $echo "local: *; };" >> $output_objdir/$libname.ver~
20674 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20682 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20683 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20686 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20687 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20692 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20696 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20697 *** create shared libraries on Solaris systems. Therefore, libtool
20698 *** is disabling shared libraries support. We urge you to upgrade GNU
20699 *** binutils to release 2.9.1 or newer. Another option is to modify
20700 *** your PATH or compiler configuration so that the native linker is
20701 *** used, and then restart.
20704 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20705 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20706 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20712 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20713 case `$LD -v 2>&1` in
20714 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20718 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20719 *** reliably create shared libraries on SCO systems. Therefore, libtool
20720 *** is disabling shared libraries support. We urge you to upgrade GNU
20721 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20722 *** your PATH or compiler configuration so that the native linker is
20723 *** used, and then restart.
20728 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20729 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20730 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20731 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20740 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20742 hardcode_direct_F77=yes
20743 hardcode_shlibpath_var_F77=no
20747 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20748 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20749 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20756 if test "$ld_shlibs_F77" = no; then
20758 hardcode_libdir_flag_spec_F77=
20759 export_dynamic_flag_spec_F77=
20760 whole_archive_flag_spec_F77=
20763 # PORTME fill in a description of your system's linker (not GNU ld)
20766 allow_undefined_flag_F77=unsupported
20767 always_export_symbols_F77=yes
20768 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'
20769 # Note: this linker hardcodes the directories in LIBPATH if there
20770 # are no directories specified by -L.
20771 hardcode_minus_L_F77=yes
20772 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20773 # Neither direct hardcoding nor static linking is supported with a
20775 hardcode_direct_F77=unsupported
20780 if test "$host_cpu" = ia64; then
20781 # On IA64, the linker does run time linking by default, so we don't
20782 # have to do anything special.
20783 aix_use_runtimelinking=no
20784 exp_sym_flag='-Bexport'
20787 # If we're using GNU nm, then we don't want the "-C" option.
20788 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20789 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20790 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'
20792 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'
20794 aix_use_runtimelinking=no
20796 # Test if we are trying to use run time linking or normal
20797 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20798 # need to do runtime linking.
20799 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20800 for ld_flag in $LDFLAGS; do
20801 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20802 aix_use_runtimelinking=yes
20809 exp_sym_flag='-bexport'
20810 no_entry_flag='-bnoentry'
20813 # When large executables or shared objects are built, AIX ld can
20814 # have problems creating the table of contents. If linking a library
20815 # or program results in "error TOC overflow" add -mminimal-toc to
20816 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20817 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20819 archive_cmds_F77=''
20820 hardcode_direct_F77=yes
20821 hardcode_libdir_separator_F77=':'
20822 link_all_deplibs_F77=yes
20824 if test "$GCC" = yes; then
20825 case $host_os in aix4.[012]|aix4.[012].*)
20826 # We only want to do this on AIX 4.2 and lower, the check
20827 # below for broken collect2 doesn't work under 4.3+
20828 collect2name=`${CC} -print-prog-name=collect2`
20829 if test -f "$collect2name" && \
20830 strings "$collect2name" | grep resolve_lib_name >/dev/null
20832 # We have reworked collect2
20833 hardcode_direct_F77=yes
20835 # We have old collect2
20836 hardcode_direct_F77=unsupported
20837 # It fails to find uninstalled libraries when the uninstalled
20838 # path is not listed in the libpath. Setting hardcode_minus_L
20839 # to unsupported forces relinking
20840 hardcode_minus_L_F77=yes
20841 hardcode_libdir_flag_spec_F77='-L$libdir'
20842 hardcode_libdir_separator_F77=
20846 shared_flag='-shared'
20847 if test "$aix_use_runtimelinking" = yes; then
20848 shared_flag="$shared_flag "'${wl}-G'
20852 if test "$host_cpu" = ia64; then
20853 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20854 # chokes on -Wl,-G. The following line is correct:
20857 if test "$aix_use_runtimelinking" = yes; then
20858 shared_flag='${wl}-G'
20860 shared_flag='${wl}-bM:SRE'
20865 # It seems that -bexpall does not export symbols beginning with
20866 # underscore (_), so it is better to generate a list of symbols to export.
20867 always_export_symbols_F77=yes
20868 if test "$aix_use_runtimelinking" = yes; then
20869 # Warning - without using the other runtime loading flags (-brtl),
20870 # -berok will link without error, but may produce a broken library.
20871 allow_undefined_flag_F77='-berok'
20872 # Determine the default libpath from the value encoded in an empty executable.
20873 cat >conftest.$ac_ext <<_ACEOF
20878 rm -f conftest.$ac_objext conftest$ac_exeext
20879 if { (ac_try="$ac_link"
20880 case "(($ac_try" in
20881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20882 *) ac_try_echo=$ac_try;;
20884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20885 (eval "$ac_link") 2>conftest.er1
20887 grep -v '^ *+' conftest.er1 >conftest.err
20889 cat conftest.err >&5
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); } && {
20892 test -z "$ac_f77_werror_flag" ||
20893 test ! -s conftest.err
20894 } && test -s conftest$ac_exeext &&
20895 $as_test_x conftest$ac_exeext; then
20897 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20899 # Check for a 64-bit object if we didn't find anything.
20900 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; }
20903 echo "$as_me: failed program was:" >&5
20904 sed 's/^/| /' conftest.$ac_ext >&5
20909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20910 conftest$ac_exeext conftest.$ac_ext
20911 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20913 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20914 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"
20916 if test "$host_cpu" = ia64; then
20917 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20918 allow_undefined_flag_F77="-z nodefs"
20919 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"
20921 # Determine the default libpath from the value encoded in an empty executable.
20922 cat >conftest.$ac_ext <<_ACEOF
20927 rm -f conftest.$ac_objext conftest$ac_exeext
20928 if { (ac_try="$ac_link"
20929 case "(($ac_try" in
20930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20931 *) ac_try_echo=$ac_try;;
20933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20934 (eval "$ac_link") 2>conftest.er1
20936 grep -v '^ *+' conftest.er1 >conftest.err
20938 cat conftest.err >&5
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); } && {
20941 test -z "$ac_f77_werror_flag" ||
20942 test ! -s conftest.err
20943 } && test -s conftest$ac_exeext &&
20944 $as_test_x conftest$ac_exeext; then
20946 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20948 # Check for a 64-bit object if we didn't find anything.
20949 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; }
20952 echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.$ac_ext >&5
20958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20959 conftest$ac_exeext conftest.$ac_ext
20960 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20962 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20963 # Warning - without using the other run time loading flags,
20964 # -berok will link without error, but may produce a broken library.
20965 no_undefined_flag_F77=' ${wl}-bernotok'
20966 allow_undefined_flag_F77=' ${wl}-berok'
20967 # Exported symbols can be pulled into shared objects from archives
20968 whole_archive_flag_spec_F77='$convenience'
20969 archive_cmds_need_lc_F77=yes
20970 # This is similar to how AIX traditionally builds its shared libraries.
20971 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'
20977 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)'
20978 hardcode_libdir_flag_spec_F77='-L$libdir'
20979 hardcode_minus_L_F77=yes
20980 # see comment about different semantics on the GNU ld section
20985 export_dynamic_flag_spec_F77=-rdynamic
20988 cygwin* | mingw* | pw32*)
20989 # When not using gcc, we currently assume that we are using
20990 # Microsoft Visual C++.
20991 # hardcode_libdir_flag_spec is actually meaningless, as there is
20992 # no search path for DLLs.
20993 hardcode_libdir_flag_spec_F77=' '
20994 allow_undefined_flag_F77=unsupported
20995 # Tell ltmain to make .lib files, not .a files.
20997 # Tell ltmain to make .dll files, not .so files.
20999 # FIXME: Setting linknames here is a bad hack.
21000 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21001 # The linker will automatically build a .lib file if we build a DLL.
21002 old_archive_From_new_cmds_F77='true'
21003 # FIXME: Should let the user specify the lib program.
21004 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21005 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21006 enable_shared_with_static_runtimes_F77=yes
21009 darwin* | rhapsody*)
21011 rhapsody* | darwin1.[012])
21012 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21015 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21016 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21018 case ${MACOSX_DEPLOYMENT_TARGET} in
21020 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21023 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21029 archive_cmds_need_lc_F77=no
21030 hardcode_direct_F77=no
21031 hardcode_automatic_F77=yes
21032 hardcode_shlibpath_var_F77=unsupported
21033 whole_archive_flag_spec_F77=''
21034 link_all_deplibs_F77=yes
21035 if test "$GCC" = yes ; then
21036 output_verbose_link_cmd='echo'
21037 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21038 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21039 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21040 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}'
21041 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}'
21043 case $cc_basename in
21045 output_verbose_link_cmd='echo'
21046 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21047 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21048 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21049 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}'
21050 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}'
21060 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21061 hardcode_libdir_flag_spec_F77='-L$libdir'
21062 hardcode_shlibpath_var_F77=no
21069 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21070 # support. Future versions do this automatically, but an explicit c++rt0.o
21071 # does not break anything, and helps significantly (at the cost of a little
21074 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21075 hardcode_libdir_flag_spec_F77='-R$libdir'
21076 hardcode_direct_F77=yes
21077 hardcode_shlibpath_var_F77=no
21080 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21082 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21083 hardcode_direct_F77=yes
21084 hardcode_minus_L_F77=yes
21085 hardcode_shlibpath_var_F77=no
21088 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21089 freebsd* | kfreebsd*-gnu | dragonfly*)
21090 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21091 hardcode_libdir_flag_spec_F77='-R$libdir'
21092 hardcode_direct_F77=yes
21093 hardcode_shlibpath_var_F77=no
21097 if test "$GCC" = yes; then
21098 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'
21100 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'
21102 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21103 hardcode_libdir_separator_F77=:
21104 hardcode_direct_F77=yes
21106 # hardcode_minus_L: Not really in the search PATH,
21107 # but as the default location of the library.
21108 hardcode_minus_L_F77=yes
21109 export_dynamic_flag_spec_F77='${wl}-E'
21113 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21114 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21116 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21118 if test "$with_gnu_ld" = no; then
21119 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21120 hardcode_libdir_separator_F77=:
21122 hardcode_direct_F77=yes
21123 export_dynamic_flag_spec_F77='${wl}-E'
21125 # hardcode_minus_L: Not really in the search PATH,
21126 # but as the default location of the library.
21127 hardcode_minus_L_F77=yes
21132 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21135 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21138 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21141 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21147 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21150 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21153 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21157 if test "$with_gnu_ld" = no; then
21158 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21159 hardcode_libdir_separator_F77=:
21163 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21164 hardcode_direct_F77=no
21165 hardcode_shlibpath_var_F77=no
21168 hardcode_direct_F77=yes
21169 export_dynamic_flag_spec_F77='${wl}-E'
21171 # hardcode_minus_L: Not really in the search PATH,
21172 # but as the default location of the library.
21173 hardcode_minus_L_F77=yes
21179 irix5* | irix6* | nonstopux*)
21180 if test "$GCC" = yes; then
21181 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'
21183 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'
21184 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21186 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21187 hardcode_libdir_separator_F77=:
21188 link_all_deplibs_F77=yes
21192 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21193 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21195 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21197 hardcode_libdir_flag_spec_F77='-R$libdir'
21198 hardcode_direct_F77=yes
21199 hardcode_shlibpath_var_F77=no
21203 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21204 hardcode_direct_F77=yes
21205 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21206 hardcode_libdir_separator_F77=:
21207 hardcode_shlibpath_var_F77=no
21211 hardcode_direct_F77=yes
21212 hardcode_shlibpath_var_F77=no
21213 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21214 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21215 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21216 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21217 export_dynamic_flag_spec_F77='${wl}-E'
21220 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21221 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21222 hardcode_libdir_flag_spec_F77='-R$libdir'
21225 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21226 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21233 hardcode_libdir_flag_spec_F77='-L$libdir'
21234 hardcode_minus_L_F77=yes
21235 allow_undefined_flag_F77=unsupported
21236 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'
21237 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21241 if test "$GCC" = yes; then
21242 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21243 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'
21245 allow_undefined_flag_F77=' -expect_unresolved \*'
21246 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'
21248 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21249 hardcode_libdir_separator_F77=:
21252 osf4* | osf5*) # as osf3* with the addition of -msym flag
21253 if test "$GCC" = yes; then
21254 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21255 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'
21256 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21258 allow_undefined_flag_F77=' -expect_unresolved \*'
21259 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'
21260 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~
21261 $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'
21263 # Both c and cxx compiler support -rpath directly
21264 hardcode_libdir_flag_spec_F77='-rpath $libdir'
21266 hardcode_libdir_separator_F77=:
21270 no_undefined_flag_F77=' -z text'
21271 if test "$GCC" = yes; then
21273 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21274 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21275 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21278 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21279 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21280 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21282 hardcode_libdir_flag_spec_F77='-R$libdir'
21283 hardcode_shlibpath_var_F77=no
21285 solaris2.[0-5] | solaris2.[0-5].*) ;;
21287 # The compiler driver will combine linker options so we
21288 # cannot just pass the convience library names through
21289 # without $wl, iff we do not link with $LD.
21290 # Luckily, gcc supports the same syntax we need for Sun Studio.
21291 # Supported since Solaris 2.6 (maybe 2.5.1?)
21294 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21296 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' ;;
21299 link_all_deplibs_F77=yes
21303 if test "x$host_vendor" = xsequent; then
21304 # Use $CC to link under sequent, because it throws in some extra .o
21305 # files that make .init and .fini sections work.
21306 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21308 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21310 hardcode_libdir_flag_spec_F77='-L$libdir'
21311 hardcode_direct_F77=yes
21312 hardcode_minus_L_F77=yes
21313 hardcode_shlibpath_var_F77=no
21317 case $host_vendor in
21319 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21320 hardcode_direct_F77=yes # is this really true???
21323 ## LD is ld it makes a PLAMLIB
21324 ## CC just makes a GrossModule.
21325 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21326 reload_cmds_F77='$CC -r -o $output$reload_objs'
21327 hardcode_direct_F77=no
21330 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21331 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21334 runpath_var='LD_RUN_PATH'
21335 hardcode_shlibpath_var_F77=no
21339 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21340 hardcode_shlibpath_var_F77=no
21341 export_dynamic_flag_spec_F77='-Bexport'
21345 if test -d /usr/nec; then
21346 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21347 hardcode_shlibpath_var_F77=no
21348 runpath_var=LD_RUN_PATH
21349 hardcode_runpath_var=yes
21354 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
21355 no_undefined_flag_F77='${wl}-z,text'
21356 archive_cmds_need_lc_F77=no
21357 hardcode_shlibpath_var_F77=no
21358 runpath_var='LD_RUN_PATH'
21360 if test "$GCC" = yes; then
21361 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21362 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21364 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21365 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21369 sysv5* | sco3.2v5* | sco5v6*)
21370 # Note: We can NOT use -z defs as we might desire, because we do not
21371 # link with -lc, and that would cause any symbols used from libc to
21372 # always be unresolved, which means just about no library would
21373 # ever link correctly. If we're not using GNU ld we use -z text
21374 # though, which does catch some bad symbols but isn't as heavy-handed
21376 no_undefined_flag_F77='${wl}-z,text'
21377 allow_undefined_flag_F77='${wl}-z,nodefs'
21378 archive_cmds_need_lc_F77=no
21379 hardcode_shlibpath_var_F77=no
21380 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21381 hardcode_libdir_separator_F77=':'
21382 link_all_deplibs_F77=yes
21383 export_dynamic_flag_spec_F77='${wl}-Bexport'
21384 runpath_var='LD_RUN_PATH'
21386 if test "$GCC" = yes; then
21387 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21388 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21390 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21391 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21396 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21397 hardcode_libdir_flag_spec_F77='-L$libdir'
21398 hardcode_shlibpath_var_F77=no
21407 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21408 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
21409 test "$ld_shlibs_F77" = no && can_build_shared=no
21412 # Do we need to explicitly link libc?
21414 case "x$archive_cmds_need_lc_F77" in
21416 # Assume -lc should be added
21417 archive_cmds_need_lc_F77=yes
21419 if test "$enable_shared" = yes && test "$GCC" = yes; then
21420 case $archive_cmds_F77 in
21422 # FIXME: we may have to deal with multi-command sequences.
21425 # Test whether the compiler implicitly links with -lc since on some
21426 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21427 # to ld, don't add -lc before -lgcc.
21428 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21429 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
21431 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21434 (eval $ac_compile) 2>&5
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); } 2>conftest.err; then
21440 libobjs=conftest.$ac_objext
21442 wl=$lt_prog_compiler_wl_F77
21443 pic_flag=$lt_prog_compiler_pic_F77
21449 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21450 allow_undefined_flag_F77=
21451 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21452 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); }
21457 archive_cmds_need_lc_F77=no
21459 archive_cmds_need_lc_F77=yes
21461 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21463 cat conftest.err 1>&5
21466 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21467 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
21474 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21475 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
21476 library_names_spec=
21477 libname_spec='lib$name'
21481 postuninstall_cmds=
21485 shlibpath_overrides_runpath=unknown
21487 dynamic_linker="$host_os ld.so"
21488 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21489 if test "$GCC" = yes; then
21490 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21491 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21492 # if the path contains ";" then we assume it to be the separator
21493 # otherwise default to the standard path separator (i.e. ":") - it is
21494 # assumed that no part of a normal pathname contains ";" but that should
21495 # okay in the real world where ";" in dirpaths is itself problematic.
21496 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21498 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21501 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21503 need_lib_prefix=unknown
21504 hardcode_into_libs=no
21506 # when you set need_version to no, make sure it does not cause -set_version
21507 # flags to be left without arguments
21508 need_version=unknown
21513 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21514 shlibpath_var=LIBPATH
21516 # AIX 3 has no versioning support, so we append a major version to the name.
21517 soname_spec='${libname}${release}${shared_ext}$major'
21524 hardcode_into_libs=yes
21525 if test "$host_cpu" = ia64; then
21526 # AIX 5 supports IA64
21527 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21528 shlibpath_var=LD_LIBRARY_PATH
21530 # With GCC up to 2.95.x, collect2 would create an import file
21531 # for dependence libraries. The import file would start with
21532 # the line `#! .'. This would cause the generated library to
21533 # depend on `.', always an invalid library. This was fixed in
21534 # development snapshots of GCC prior to 3.0.
21536 aix4 | aix4.[01] | aix4.[01].*)
21537 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21539 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21542 can_build_shared=no
21546 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21547 # soname into executable. Probably we can add versioning support to
21548 # collect2, so additional links can be useful in future.
21549 if test "$aix_use_runtimelinking" = yes; then
21550 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21551 # instead of lib<name>.a to let people know that these are not
21552 # typical AIX shared libraries.
21553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21555 # We preserve .a as extension for shared libraries through AIX4.2
21556 # and later when we are not doing run time linking.
21557 library_names_spec='${libname}${release}.a $libname.a'
21558 soname_spec='${libname}${release}${shared_ext}$major'
21560 shlibpath_var=LIBPATH
21565 library_names_spec='$libname.ixlibrary $libname.a'
21566 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21567 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'
21571 library_names_spec='${libname}${shared_ext}'
21572 dynamic_linker="$host_os ld.so"
21573 shlibpath_var=LIBRARY_PATH
21579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21580 soname_spec='${libname}${release}${shared_ext}$major'
21581 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21582 shlibpath_var=LD_LIBRARY_PATH
21583 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21584 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21585 # the default ld.so.conf also contains /usr/contrib/lib and
21586 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21587 # libtool to hard-code these into programs
21590 cygwin* | mingw* | pw32*)
21591 version_type=windows
21596 case $GCC,$host_os in
21597 yes,cygwin* | yes,mingw* | yes,pw32*)
21598 library_names_spec='$libname.dll.a'
21599 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21600 postinstall_cmds='base_file=`basename \${file}`~
21601 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21602 dldir=$destdir/`dirname \$dlpath`~
21603 test -d \$dldir || mkdir -p \$dldir~
21604 $install_prog $dir/$dlname \$dldir/$dlname~
21605 chmod a+x \$dldir/$dlname'
21606 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21607 dlpath=$dir/\$dldll~
21609 shlibpath_overrides_runpath=yes
21613 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21614 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21615 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21618 # MinGW DLLs use traditional 'lib' prefix
21619 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21620 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21621 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21622 # It is most probably a Windows format PATH printed by
21623 # mingw gcc, but we are running on Cygwin. Gcc prints its search
21624 # path with ; separators, and with drive letters. We can handle the
21625 # drive letters (cygwin fileutils understands them), so leave them,
21626 # especially as we might pass files found there to a mingw objdump,
21627 # which wouldn't understand a cygwinified path. Ahh.
21628 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21630 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21634 # pw32 DLLs use 'pw' prefix rather than 'lib'
21635 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21641 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21644 dynamic_linker='Win32 ld.exe'
21645 # FIXME: first we should search . and the directory the executable is in
21649 darwin* | rhapsody*)
21650 dynamic_linker="$host_os dyld"
21651 version_type=darwin
21654 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21655 soname_spec='${libname}${release}${major}$shared_ext'
21656 shlibpath_overrides_runpath=yes
21657 shlibpath_var=DYLD_LIBRARY_PATH
21658 shrext_cmds='.dylib'
21659 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21660 if test "$GCC" = yes; then
21661 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"`
21663 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21665 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21673 soname_spec='${libname}${release}${shared_ext}$major'
21674 shlibpath_var=LD_LIBRARY_PATH
21685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21686 soname_spec='${libname}${release}${shared_ext}$major'
21687 shlibpath_var=LD_LIBRARY_PATH
21688 shlibpath_overrides_runpath=no
21689 hardcode_into_libs=yes
21690 dynamic_linker='GNU ld.so'
21693 freebsd* | dragonfly*)
21694 # DragonFly does not have aout. When/if they implement a new
21695 # versioning mechanism, adjust this.
21696 if test -x /usr/bin/objformat; then
21697 objformat=`/usr/bin/objformat`
21700 freebsd[123]*) objformat=aout ;;
21701 *) objformat=elf ;;
21704 version_type=freebsd-$objformat
21705 case $version_type in
21707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21712 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21716 shlibpath_var=LD_LIBRARY_PATH
21719 shlibpath_overrides_runpath=yes
21721 freebsd3.[01]* | freebsdelf3.[01]*)
21722 shlibpath_overrides_runpath=yes
21723 hardcode_into_libs=yes
21725 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21726 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21727 shlibpath_overrides_runpath=no
21728 hardcode_into_libs=yes
21730 freebsd*) # from 4.6 on
21731 shlibpath_overrides_runpath=yes
21732 hardcode_into_libs=yes
21741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21742 soname_spec='${libname}${release}${shared_ext}$major'
21743 shlibpath_var=LD_LIBRARY_PATH
21744 hardcode_into_libs=yes
21747 hpux9* | hpux10* | hpux11*)
21748 # Give a soname corresponding to the major version so that dld.sl refuses to
21749 # link against other versions.
21756 hardcode_into_libs=yes
21757 dynamic_linker="$host_os dld.so"
21758 shlibpath_var=LD_LIBRARY_PATH
21759 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21761 soname_spec='${libname}${release}${shared_ext}$major'
21762 if test "X$HPUX_IA64_MODE" = X32; then
21763 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21765 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21767 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21771 hardcode_into_libs=yes
21772 dynamic_linker="$host_os dld.sl"
21773 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21774 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21776 soname_spec='${libname}${release}${shared_ext}$major'
21777 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21778 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21782 dynamic_linker="$host_os dld.sl"
21783 shlibpath_var=SHLIB_PATH
21784 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21786 soname_spec='${libname}${release}${shared_ext}$major'
21789 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21790 postinstall_cmds='chmod 555 $lib'
21797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21798 soname_spec='${libname}${release}${shared_ext}$major'
21799 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21800 shlibpath_var=LD_LIBRARY_PATH
21801 shlibpath_overrides_runpath=no
21802 hardcode_into_libs=yes
21805 irix5* | irix6* | nonstopux*)
21807 nonstopux*) version_type=nonstopux ;;
21809 if test "$lt_cv_prog_gnu_ld" = yes; then
21817 soname_spec='${libname}${release}${shared_ext}$major'
21818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21820 irix5* | nonstopux*)
21821 libsuff= shlibsuff=
21824 case $LD in # libtool.m4 will add one of these switches to LD
21825 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21826 libsuff= shlibsuff= libmagic=32-bit;;
21827 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21828 libsuff=32 shlibsuff=N32 libmagic=N32;;
21829 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21830 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21831 *) libsuff= shlibsuff= libmagic=never-match;;
21835 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21836 shlibpath_overrides_runpath=no
21837 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21838 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21839 hardcode_into_libs=yes
21842 # No shared lib support for Linux oldld, aout, or coff.
21843 linux*oldld* | linux*aout* | linux*coff*)
21847 # This must be Linux ELF.
21852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21853 soname_spec='${libname}${release}${shared_ext}$major'
21854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21855 shlibpath_var=LD_LIBRARY_PATH
21856 shlibpath_overrides_runpath=no
21857 # This implies no fast_install, which is unacceptable.
21858 # Some rework will be needed to allow for fast_install
21859 # before this can be enabled.
21860 hardcode_into_libs=yes
21862 # Append ld.so.conf contents to the search path
21863 if test -f /etc/ld.so.conf; then
21864 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' ' '`
21865 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21868 # We used to test for /lib/ld.so.1 and disable shared libraries on
21869 # powerpc, because MkLinux only supported shared libraries with the
21870 # GNU dynamic linker. Since this was broken with cross compilers,
21871 # most powerpc-linux boxes support dynamic linking these days and
21872 # people can always --disable-shared, the test was removed, and we
21873 # assume the GNU/Linux dynamic linker is in use.
21874 dynamic_linker='GNU/Linux ld.so'
21881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21882 soname_spec='${libname}${release}${shared_ext}$major'
21883 shlibpath_var=LD_LIBRARY_PATH
21884 shlibpath_overrides_runpath=no
21885 hardcode_into_libs=yes
21886 dynamic_linker='GNU ld.so'
21893 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21896 dynamic_linker='NetBSD (a.out) ld.so'
21898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21899 soname_spec='${libname}${release}${shared_ext}$major'
21900 dynamic_linker='NetBSD ld.elf_so'
21902 shlibpath_var=LD_LIBRARY_PATH
21903 shlibpath_overrides_runpath=yes
21904 hardcode_into_libs=yes
21909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21910 shlibpath_var=LD_LIBRARY_PATH
21911 shlibpath_overrides_runpath=yes
21918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21919 soname_spec='${libname}${release}${shared_ext}$major'
21920 shlibpath_var=LD_LIBRARY_PATH
21921 shlibpath_overrides_runpath=yes
21926 sys_lib_dlsearch_path_spec="/usr/lib"
21928 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21930 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21931 *) need_version=no ;;
21933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21935 shlibpath_var=LD_LIBRARY_PATH
21936 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21938 openbsd2.[89] | openbsd2.[89].*)
21939 shlibpath_overrides_runpath=no
21942 shlibpath_overrides_runpath=yes
21946 shlibpath_overrides_runpath=yes
21951 libname_spec='$name'
21954 library_names_spec='$libname${shared_ext} $libname.a'
21955 dynamic_linker='OS/2 ld.exe'
21956 shlibpath_var=LIBPATH
21959 osf3* | osf4* | osf5*)
21963 soname_spec='${libname}${release}${shared_ext}$major'
21964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21965 shlibpath_var=LD_LIBRARY_PATH
21966 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21967 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21975 soname_spec='${libname}${release}${shared_ext}$major'
21976 shlibpath_var=LD_LIBRARY_PATH
21977 shlibpath_overrides_runpath=yes
21978 hardcode_into_libs=yes
21979 # ldd complains unless libraries are executable
21980 postinstall_cmds='chmod +x $lib'
21985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21986 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21987 shlibpath_var=LD_LIBRARY_PATH
21988 shlibpath_overrides_runpath=yes
21989 if test "$with_gnu_ld" = yes; then
21997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21998 soname_spec='${libname}${release}${shared_ext}$major'
21999 shlibpath_var=LD_LIBRARY_PATH
22000 case $host_vendor in
22002 shlibpath_overrides_runpath=no
22004 export_dynamic_flag_spec='${wl}-Blargedynsym'
22005 runpath_var=LD_RUN_PATH
22013 shlibpath_overrides_runpath=no
22014 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22020 if test -d /usr/nec ;then
22022 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22023 soname_spec='$libname${shared_ext}.$major'
22024 shlibpath_var=LD_LIBRARY_PATH
22028 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22029 version_type=freebsd-elf
22032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22033 soname_spec='${libname}${release}${shared_ext}$major'
22034 shlibpath_var=LD_LIBRARY_PATH
22035 hardcode_into_libs=yes
22036 if test "$with_gnu_ld" = yes; then
22037 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22038 shlibpath_overrides_runpath=no
22040 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22041 shlibpath_overrides_runpath=yes
22044 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22048 sys_lib_dlsearch_path_spec='/usr/lib'
22053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22054 soname_spec='${libname}${release}${shared_ext}$major'
22055 shlibpath_var=LD_LIBRARY_PATH
22062 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22063 echo "${ECHO_T}$dynamic_linker" >&6; }
22064 test "$dynamic_linker" = no && can_build_shared=no
22066 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22067 if test "$GCC" = yes; then
22068 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22071 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22072 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22073 hardcode_action_F77=
22074 if test -n "$hardcode_libdir_flag_spec_F77" || \
22075 test -n "$runpath_var_F77" || \
22076 test "X$hardcode_automatic_F77" = "Xyes" ; then
22078 # We can hardcode non-existant directories.
22079 if test "$hardcode_direct_F77" != no &&
22080 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22081 # have to relink, otherwise we might link with an installed library
22082 # when we should be linking with a yet-to-be-installed one
22083 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22084 test "$hardcode_minus_L_F77" != no; then
22085 # Linking always hardcodes the temporary library directory.
22086 hardcode_action_F77=relink
22088 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22089 hardcode_action_F77=immediate
22092 # We cannot hardcode anything, or else we can only hardcode existing
22094 hardcode_action_F77=unsupported
22096 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22097 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22099 if test "$hardcode_action_F77" = relink; then
22100 # Fast installation is not supported
22101 enable_fast_install=no
22102 elif test "$shlibpath_overrides_runpath" = yes ||
22103 test "$enable_shared" = no; then
22104 # Fast installation is not necessary
22105 enable_fast_install=needless
22109 # The else clause should only fire when bootstrapping the
22110 # libtool distribution, otherwise you forgot to ship ltmain.sh
22111 # with your package, and you will get complaints that there are
22112 # no rules to generate ltmain.sh.
22113 if test -f "$ltmain"; then
22114 # See if we are running on zsh, and set the options which allow our commands through
22115 # without removal of \ escapes.
22116 if test -n "${ZSH_VERSION+set}" ; then
22117 setopt NO_GLOB_SUBST
22119 # Now quote all the things that may contain metacharacters while being
22120 # careful not to overquote the AC_SUBSTed values. We take copies of the
22121 # variables and quote the copies for generation of the libtool script.
22122 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22124 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22125 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22126 deplibs_check_method reload_flag reload_cmds need_locks \
22127 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22128 lt_cv_sys_global_symbol_to_c_name_address \
22129 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22130 old_postinstall_cmds old_postuninstall_cmds \
22134 lt_prog_compiler_wl_F77 \
22135 lt_prog_compiler_pic_F77 \
22136 lt_prog_compiler_static_F77 \
22137 lt_prog_compiler_no_builtin_flag_F77 \
22138 export_dynamic_flag_spec_F77 \
22139 thread_safe_flag_spec_F77 \
22140 whole_archive_flag_spec_F77 \
22141 enable_shared_with_static_runtimes_F77 \
22142 old_archive_cmds_F77 \
22143 old_archive_from_new_cmds_F77 \
22144 predep_objects_F77 \
22145 postdep_objects_F77 \
22148 compiler_lib_search_path_F77 \
22150 archive_expsym_cmds_F77 \
22151 postinstall_cmds_F77 \
22152 postuninstall_cmds_F77 \
22153 old_archive_from_expsyms_cmds_F77 \
22154 allow_undefined_flag_F77 \
22155 no_undefined_flag_F77 \
22156 export_symbols_cmds_F77 \
22157 hardcode_libdir_flag_spec_F77 \
22158 hardcode_libdir_flag_spec_ld_F77 \
22159 hardcode_libdir_separator_F77 \
22160 hardcode_automatic_F77 \
22162 module_expsym_cmds_F77 \
22163 lt_cv_prog_compiler_c_o_F77 \
22164 exclude_expsyms_F77 \
22165 include_expsyms_F77; do
22168 old_archive_cmds_F77 | \
22169 old_archive_from_new_cmds_F77 | \
22170 archive_cmds_F77 | \
22171 archive_expsym_cmds_F77 | \
22172 module_cmds_F77 | \
22173 module_expsym_cmds_F77 | \
22174 old_archive_from_expsyms_cmds_F77 | \
22175 export_symbols_cmds_F77 | \
22176 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22177 postinstall_cmds | postuninstall_cmds | \
22178 old_postinstall_cmds | old_postuninstall_cmds | \
22179 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22180 # Double-quote double-evaled strings.
22181 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22184 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22190 *'\$0 --fallback-echo"')
22191 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22197 cat <<__EOF__ >> "$cfgfile"
22198 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22200 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22202 # Shell to use when invoking shell scripts.
22205 # Whether or not to build shared libraries.
22206 build_libtool_libs=$enable_shared
22208 # Whether or not to build static libraries.
22209 build_old_libs=$enable_static
22211 # Whether or not to add -lc for building shared libraries.
22212 build_libtool_need_lc=$archive_cmds_need_lc_F77
22214 # Whether or not to disallow shared libs when runtime libs are static
22215 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22217 # Whether or not to optimize for fast installation.
22218 fast_install=$enable_fast_install
22221 host_alias=$host_alias
22225 # The build system.
22226 build_alias=$build_alias
22230 # An echo program that does not interpret backslashes.
22235 AR_FLAGS=$lt_AR_FLAGS
22240 # LTCC compiler flags.
22241 LTCFLAGS=$lt_LTCFLAGS
22243 # A language-specific compiler.
22244 CC=$lt_compiler_F77
22246 # Is the compiler the GNU C compiler?
22252 # The linker used to build libraries.
22255 # Whether we need hard or soft links.
22258 # A BSD-compatible nm program.
22261 # A symbol stripping program
22264 # Used to examine libraries when file_magic_cmd begins "file"
22265 MAGIC_CMD=$MAGIC_CMD
22267 # Used on cygwin: DLL creation program.
22270 # Used on cygwin: object dumper.
22273 # Used on cygwin: assembler.
22276 # The name of the directory that contains temporary libtool files.
22279 # How to create reloadable object files.
22280 reload_flag=$lt_reload_flag
22281 reload_cmds=$lt_reload_cmds
22283 # How to pass a linker flag through the compiler.
22284 wl=$lt_lt_prog_compiler_wl_F77
22286 # Object file suffix (normally "o").
22287 objext="$ac_objext"
22289 # Old archive suffix (normally "a").
22292 # Shared library suffix (normally ".so").
22293 shrext_cmds='$shrext_cmds'
22295 # Executable file suffix (normally "").
22298 # Additional compiler flags for building library objects.
22299 pic_flag=$lt_lt_prog_compiler_pic_F77
22302 # What is the maximum length of a command?
22303 max_cmd_len=$lt_cv_sys_max_cmd_len
22305 # Does compiler simultaneously support -c and -o options?
22306 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22308 # Must we lock files when doing compilation?
22309 need_locks=$lt_need_locks
22311 # Do we need the lib prefix for modules?
22312 need_lib_prefix=$need_lib_prefix
22314 # Do we need a version for libraries?
22315 need_version=$need_version
22317 # Whether dlopen is supported.
22318 dlopen_support=$enable_dlopen
22320 # Whether dlopen of programs is supported.
22321 dlopen_self=$enable_dlopen_self
22323 # Whether dlopen of statically linked programs is supported.
22324 dlopen_self_static=$enable_dlopen_self_static
22326 # Compiler flag to prevent dynamic linking.
22327 link_static_flag=$lt_lt_prog_compiler_static_F77
22329 # Compiler flag to turn off builtin functions.
22330 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22332 # Compiler flag to allow reflexive dlopens.
22333 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22335 # Compiler flag to generate shared objects directly from archives.
22336 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22338 # Compiler flag to generate thread-safe objects.
22339 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22341 # Library versioning type.
22342 version_type=$version_type
22344 # Format of library name prefix.
22345 libname_spec=$lt_libname_spec
22347 # List of archive names. First name is the real one, the rest are links.
22348 # The last name is the one that the linker finds with -lNAME.
22349 library_names_spec=$lt_library_names_spec
22351 # The coded name of the library, if different from the real name.
22352 soname_spec=$lt_soname_spec
22354 # Commands used to build and install an old-style archive.
22356 old_archive_cmds=$lt_old_archive_cmds_F77
22357 old_postinstall_cmds=$lt_old_postinstall_cmds
22358 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22360 # Create an old-style archive from a shared archive.
22361 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22363 # Create a temporary old-style archive to link instead of a shared archive.
22364 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22366 # Commands used to build and install a shared archive.
22367 archive_cmds=$lt_archive_cmds_F77
22368 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22369 postinstall_cmds=$lt_postinstall_cmds
22370 postuninstall_cmds=$lt_postuninstall_cmds
22372 # Commands used to build a loadable module (assumed same as above if empty)
22373 module_cmds=$lt_module_cmds_F77
22374 module_expsym_cmds=$lt_module_expsym_cmds_F77
22376 # Commands to strip libraries.
22377 old_striplib=$lt_old_striplib
22378 striplib=$lt_striplib
22380 # Dependencies to place before the objects being linked to create a
22382 predep_objects=$lt_predep_objects_F77
22384 # Dependencies to place after the objects being linked to create a
22386 postdep_objects=$lt_postdep_objects_F77
22388 # Dependencies to place before the objects being linked to create a
22390 predeps=$lt_predeps_F77
22392 # Dependencies to place after the objects being linked to create a
22394 postdeps=$lt_postdeps_F77
22396 # The library search path used internally by the compiler when linking
22397 # a shared library.
22398 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22400 # Method to check whether dependent libraries are shared objects.
22401 deplibs_check_method=$lt_deplibs_check_method
22403 # Command to use when deplibs_check_method == file_magic.
22404 file_magic_cmd=$lt_file_magic_cmd
22406 # Flag that allows shared libraries with undefined symbols to be built.
22407 allow_undefined_flag=$lt_allow_undefined_flag_F77
22409 # Flag that forces no undefined symbols.
22410 no_undefined_flag=$lt_no_undefined_flag_F77
22412 # Commands used to finish a libtool library installation in a directory.
22413 finish_cmds=$lt_finish_cmds
22415 # Same as above, but a single script fragment to be evaled but not shown.
22416 finish_eval=$lt_finish_eval
22418 # Take the output of nm and produce a listing of raw symbols and C names.
22419 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22421 # Transform the output of nm in a proper C declaration
22422 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22424 # Transform the output of nm in a C name address pair
22425 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22427 # This is the shared library runtime path variable.
22428 runpath_var=$runpath_var
22430 # This is the shared library path variable.
22431 shlibpath_var=$shlibpath_var
22433 # Is shlibpath searched before the hard-coded library search path?
22434 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22436 # How to hardcode a shared library path into an executable.
22437 hardcode_action=$hardcode_action_F77
22439 # Whether we should hardcode library paths into libraries.
22440 hardcode_into_libs=$hardcode_into_libs
22442 # Flag to hardcode \$libdir into a binary during linking.
22443 # This must work even if \$libdir does not exist.
22444 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22446 # If ld is used when linking, flag to hardcode \$libdir into
22447 # a binary during linking. This must work even if \$libdir does
22449 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22451 # Whether we need a single -rpath flag with a separated argument.
22452 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22454 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22455 # resulting binary.
22456 hardcode_direct=$hardcode_direct_F77
22458 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22459 # resulting binary.
22460 hardcode_minus_L=$hardcode_minus_L_F77
22462 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22463 # the resulting binary.
22464 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22466 # Set to yes if building a shared library automatically hardcodes DIR into the library
22467 # and all subsequent libraries and executables linked against it.
22468 hardcode_automatic=$hardcode_automatic_F77
22470 # Variables whose values should be saved in libtool wrapper scripts and
22471 # restored at relink time.
22472 variables_saved_for_relink="$variables_saved_for_relink"
22474 # Whether libtool must link a program against all its dependency libraries.
22475 link_all_deplibs=$link_all_deplibs_F77
22477 # Compile-time system search path for libraries
22478 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22480 # Run-time system search path for libraries
22481 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22483 # Fix the shell variable \$srcfile for the compiler.
22484 fix_srcfile_path="$fix_srcfile_path_F77"
22486 # Set to yes if exported symbols are required.
22487 always_export_symbols=$always_export_symbols_F77
22489 # The commands to list exported symbols.
22490 export_symbols_cmds=$lt_export_symbols_cmds_F77
22492 # The commands to extract the exported symbol list from a shared archive.
22493 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22495 # Symbols that should not be listed in the preloaded symbols.
22496 exclude_expsyms=$lt_exclude_expsyms_F77
22498 # Symbols that must always be exported.
22499 include_expsyms=$lt_include_expsyms_F77
22501 # ### END LIBTOOL TAG CONFIG: $tagname
22507 # If there is no Makefile yet, we rely on a make rule to execute
22508 # `config.status --recheck' to rerun these tests and create the
22509 # libtool script then.
22510 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22511 if test -f "$ltmain_in"; then
22512 test -f Makefile && make "$ltmain"
22518 ac_cpp='$CPP $CPPFLAGS'
22519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22531 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22533 ac_cpp='$CPP $CPPFLAGS'
22534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22539 # Source file extension for Java test sources.
22542 # Object file extension for compiled Java test sources.
22546 # Code to be used in simple compile tests
22547 lt_simple_compile_test_code="class foo {}\n"
22549 # Code to be used in simple link tests
22550 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
22552 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22554 # If no C compiler was specified, use CC.
22557 # If no C compiler flags were specified, use CFLAGS.
22558 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22560 # Allow CC to be a program name with arguments.
22564 # save warnings/boilerplate of simple test code
22565 ac_outfile=conftest.$ac_objext
22566 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22567 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22568 _lt_compiler_boilerplate=`cat conftest.err`
22571 ac_outfile=conftest.$ac_objext
22572 printf "$lt_simple_link_test_code" >conftest.$ac_ext
22573 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22574 _lt_linker_boilerplate=`cat conftest.err`
22578 # Allow CC to be a program name with arguments.
22583 for cc_temp in $compiler""; do
22585 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22586 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22591 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22594 # GCJ did not exist at the time GCC didn't implicitly link libc in.
22595 archive_cmds_need_lc_GCJ=no
22597 old_archive_cmds_GCJ=$old_archive_cmds
22600 lt_prog_compiler_no_builtin_flag_GCJ=
22602 if test "$GCC" = yes; then
22603 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22606 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22607 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
22608 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22609 echo $ECHO_N "(cached) $ECHO_C" >&6
22611 lt_cv_prog_compiler_rtti_exceptions=no
22612 ac_outfile=conftest.$ac_objext
22613 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22614 lt_compiler_flag="-fno-rtti -fno-exceptions"
22615 # Insert the option either (1) after the last *FLAGS variable, or
22616 # (2) before a word containing "conftest.", or (3) at the end.
22617 # Note that $ac_compile itself does not contain backslashes and begins
22618 # with a dollar sign (not a hyphen), so the echo should work correctly.
22619 # The option is referenced via a variable to avoid confusing sed.
22620 lt_compile=`echo "$ac_compile" | $SED \
22621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22623 -e 's:$: $lt_compiler_flag:'`
22624 (eval echo "\"\$as_me:22624: $lt_compile\"" >&5)
22625 (eval "$lt_compile" 2>conftest.err)
22627 cat conftest.err >&5
22628 echo "$as_me:22628: \$? = $ac_status" >&5
22629 if (exit $ac_status) && test -s "$ac_outfile"; then
22630 # The compiler can only warn and ignore the option if not recognized
22631 # So say no if there are warnings other than the usual output.
22632 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22634 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22635 lt_cv_prog_compiler_rtti_exceptions=yes
22641 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22642 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
22644 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22645 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22652 lt_prog_compiler_wl_GCJ=
22653 lt_prog_compiler_pic_GCJ=
22654 lt_prog_compiler_static_GCJ=
22656 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22657 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
22659 if test "$GCC" = yes; then
22660 lt_prog_compiler_wl_GCJ='-Wl,'
22661 lt_prog_compiler_static_GCJ='-static'
22665 # All AIX code is PIC.
22666 if test "$host_cpu" = ia64; then
22667 # AIX 5 now supports IA64 processor
22668 lt_prog_compiler_static_GCJ='-Bstatic'
22673 # FIXME: we need at least 68020 code to build shared libraries, but
22674 # adding the `-m68020' flag to GCC prevents building anything better,
22676 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22679 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22680 # PIC is the default for these OSes.
22683 mingw* | pw32* | os2*)
22684 # This hack is so that the source file can tell whether it is being
22685 # built for inclusion in a dll (and should export symbols for example).
22686 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22689 darwin* | rhapsody*)
22690 # PIC is the default on this platform
22691 # Common symbols not allowed in MH_DYLIB files
22692 lt_prog_compiler_pic_GCJ='-fno-common'
22696 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22697 # Instead, we relocate shared libraries at runtime.
22701 # Just because we use GCC doesn't mean we suddenly get shared libraries
22702 # on systems that don't support them.
22703 lt_prog_compiler_can_build_shared_GCJ=no
22708 if test -d /usr/nec; then
22709 lt_prog_compiler_pic_GCJ=-Kconform_pic
22714 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22715 # not for PA HP-UX.
22721 lt_prog_compiler_pic_GCJ='-fPIC'
22727 lt_prog_compiler_pic_GCJ='-fPIC'
22731 # PORTME Check for flag to pass linker flags through the system compiler.
22734 lt_prog_compiler_wl_GCJ='-Wl,'
22735 if test "$host_cpu" = ia64; then
22736 # AIX 5 now supports IA64 processor
22737 lt_prog_compiler_static_GCJ='-Bstatic'
22739 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22743 # PIC is the default on this platform
22744 # Common symbols not allowed in MH_DYLIB files
22745 case $cc_basename in
22747 lt_prog_compiler_pic_GCJ='-qnocommon'
22748 lt_prog_compiler_wl_GCJ='-Wl,'
22753 mingw* | pw32* | os2*)
22754 # This hack is so that the source file can tell whether it is being
22755 # built for inclusion in a dll (and should export symbols for example).
22756 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22759 hpux9* | hpux10* | hpux11*)
22760 lt_prog_compiler_wl_GCJ='-Wl,'
22761 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22762 # not for PA HP-UX.
22768 lt_prog_compiler_pic_GCJ='+Z'
22771 # Is there a better lt_prog_compiler_static that works with the bundled CC?
22772 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22775 irix5* | irix6* | nonstopux*)
22776 lt_prog_compiler_wl_GCJ='-Wl,'
22777 # PIC (with -KPIC) is the default.
22778 lt_prog_compiler_static_GCJ='-non_shared'
22782 lt_prog_compiler_pic_GCJ='-KPIC'
22783 lt_prog_compiler_static_GCJ='-Bstatic'
22787 case $cc_basename in
22789 lt_prog_compiler_wl_GCJ='-Wl,'
22790 lt_prog_compiler_pic_GCJ='-KPIC'
22791 lt_prog_compiler_static_GCJ='-static'
22793 pgcc* | pgf77* | pgf90* | pgf95*)
22794 # Portland Group compilers (*not* the Pentium gcc compiler,
22795 # which looks to be a dead project)
22796 lt_prog_compiler_wl_GCJ='-Wl,'
22797 lt_prog_compiler_pic_GCJ='-fpic'
22798 lt_prog_compiler_static_GCJ='-Bstatic'
22801 lt_prog_compiler_wl_GCJ='-Wl,'
22802 # All Alpha code is PIC.
22803 lt_prog_compiler_static_GCJ='-non_shared'
22808 osf3* | osf4* | osf5*)
22809 lt_prog_compiler_wl_GCJ='-Wl,'
22810 # All OSF/1 code is PIC.
22811 lt_prog_compiler_static_GCJ='-non_shared'
22815 lt_prog_compiler_pic_GCJ='-KPIC'
22816 lt_prog_compiler_static_GCJ='-Bstatic'
22817 case $cc_basename in
22818 f77* | f90* | f95*)
22819 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
22821 lt_prog_compiler_wl_GCJ='-Wl,';;
22826 lt_prog_compiler_wl_GCJ='-Qoption ld '
22827 lt_prog_compiler_pic_GCJ='-PIC'
22828 lt_prog_compiler_static_GCJ='-Bstatic'
22831 sysv4 | sysv4.2uw2* | sysv4.3*)
22832 lt_prog_compiler_wl_GCJ='-Wl,'
22833 lt_prog_compiler_pic_GCJ='-KPIC'
22834 lt_prog_compiler_static_GCJ='-Bstatic'
22838 if test -d /usr/nec ;then
22839 lt_prog_compiler_pic_GCJ='-Kconform_pic'
22840 lt_prog_compiler_static_GCJ='-Bstatic'
22844 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22845 lt_prog_compiler_wl_GCJ='-Wl,'
22846 lt_prog_compiler_pic_GCJ='-KPIC'
22847 lt_prog_compiler_static_GCJ='-Bstatic'
22851 lt_prog_compiler_wl_GCJ='-Wl,'
22852 lt_prog_compiler_can_build_shared_GCJ=no
22856 lt_prog_compiler_pic_GCJ='-pic'
22857 lt_prog_compiler_static_GCJ='-Bstatic'
22861 lt_prog_compiler_can_build_shared_GCJ=no
22866 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22867 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
22870 # Check to make sure the PIC flag actually works.
22872 if test -n "$lt_prog_compiler_pic_GCJ"; then
22874 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22875 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
22876 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22877 echo $ECHO_N "(cached) $ECHO_C" >&6
22879 lt_prog_compiler_pic_works_GCJ=no
22880 ac_outfile=conftest.$ac_objext
22881 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22882 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22883 # Insert the option either (1) after the last *FLAGS variable, or
22884 # (2) before a word containing "conftest.", or (3) at the end.
22885 # Note that $ac_compile itself does not contain backslashes and begins
22886 # with a dollar sign (not a hyphen), so the echo should work correctly.
22887 # The option is referenced via a variable to avoid confusing sed.
22888 lt_compile=`echo "$ac_compile" | $SED \
22889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22891 -e 's:$: $lt_compiler_flag:'`
22892 (eval echo "\"\$as_me:22892: $lt_compile\"" >&5)
22893 (eval "$lt_compile" 2>conftest.err)
22895 cat conftest.err >&5
22896 echo "$as_me:22896: \$? = $ac_status" >&5
22897 if (exit $ac_status) && test -s "$ac_outfile"; then
22898 # The compiler can only warn and ignore the option if not recognized
22899 # So say no if there are warnings other than the usual output.
22900 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22901 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22902 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22903 lt_prog_compiler_pic_works_GCJ=yes
22909 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22910 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
22912 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22913 case $lt_prog_compiler_pic_GCJ in
22915 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22918 lt_prog_compiler_pic_GCJ=
22919 lt_prog_compiler_can_build_shared_GCJ=no
22924 # For platforms which do not support PIC, -DPIC is meaningless:
22926 lt_prog_compiler_pic_GCJ=
22929 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22934 # Check to make sure the static flag actually works.
22936 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
22937 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22938 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
22939 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
22940 echo $ECHO_N "(cached) $ECHO_C" >&6
22942 lt_prog_compiler_static_works_GCJ=no
22943 save_LDFLAGS="$LDFLAGS"
22944 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22945 printf "$lt_simple_link_test_code" > conftest.$ac_ext
22946 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22947 # The linker can only warn and ignore the option if not recognized
22948 # So say no if there are warnings
22949 if test -s conftest.err; then
22950 # Append any errors to the config.log.
22951 cat conftest.err 1>&5
22952 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22954 if diff conftest.exp conftest.er2 >/dev/null; then
22955 lt_prog_compiler_static_works_GCJ=yes
22958 lt_prog_compiler_static_works_GCJ=yes
22962 LDFLAGS="$save_LDFLAGS"
22965 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
22966 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
22968 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
22971 lt_prog_compiler_static_GCJ=
22975 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22976 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
22977 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22978 echo $ECHO_N "(cached) $ECHO_C" >&6
22980 lt_cv_prog_compiler_c_o_GCJ=no
22981 $rm -r conftest 2>/dev/null
22985 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22987 lt_compiler_flag="-o out/conftest2.$ac_objext"
22988 # Insert the option either (1) after the last *FLAGS variable, or
22989 # (2) before a word containing "conftest.", or (3) at the end.
22990 # Note that $ac_compile itself does not contain backslashes and begins
22991 # with a dollar sign (not a hyphen), so the echo should work correctly.
22992 lt_compile=`echo "$ac_compile" | $SED \
22993 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22994 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22995 -e 's:$: $lt_compiler_flag:'`
22996 (eval echo "\"\$as_me:22996: $lt_compile\"" >&5)
22997 (eval "$lt_compile" 2>out/conftest.err)
22999 cat out/conftest.err >&5
23000 echo "$as_me:23000: \$? = $ac_status" >&5
23001 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23003 # The compiler can only warn and ignore the option if not recognized
23004 # So say no if there are warnings
23005 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23006 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23007 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23008 lt_cv_prog_compiler_c_o_GCJ=yes
23013 # SGI C++ compiler will create directory out/ii_files/ for
23014 # template instantiation
23015 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23016 $rm out/* && rmdir out
23022 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23023 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23026 hard_links="nottested"
23027 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23028 # do not overwrite the value of need_locks provided by the user
23029 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23030 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23033 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23035 ln conftest.a conftest.b 2>&5 || hard_links=no
23036 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23037 { echo "$as_me:$LINENO: result: $hard_links" >&5
23038 echo "${ECHO_T}$hard_links" >&6; }
23039 if test "$hard_links" = no; then
23040 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23041 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23048 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23049 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23052 allow_undefined_flag_GCJ=
23053 enable_shared_with_static_runtimes_GCJ=no
23055 archive_expsym_cmds_GCJ=
23056 old_archive_From_new_cmds_GCJ=
23057 old_archive_from_expsyms_cmds_GCJ=
23058 export_dynamic_flag_spec_GCJ=
23059 whole_archive_flag_spec_GCJ=
23060 thread_safe_flag_spec_GCJ=
23061 hardcode_libdir_flag_spec_GCJ=
23062 hardcode_libdir_flag_spec_ld_GCJ=
23063 hardcode_libdir_separator_GCJ=
23064 hardcode_direct_GCJ=no
23065 hardcode_minus_L_GCJ=no
23066 hardcode_shlibpath_var_GCJ=unsupported
23067 link_all_deplibs_GCJ=unknown
23068 hardcode_automatic_GCJ=no
23070 module_expsym_cmds_GCJ=
23071 always_export_symbols_GCJ=no
23072 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23073 # include_expsyms should be a list of space-separated symbols to be *always*
23074 # included in the symbol list
23075 include_expsyms_GCJ=
23076 # exclude_expsyms can be an extended regexp of symbols to exclude
23077 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23078 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23079 # as well as any symbol that contains `d'.
23080 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23081 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23082 # platforms (ab)use it in PIC code, but their linkers get confused if
23083 # the symbol is explicitly referenced. Since portable code cannot
23084 # rely on this symbol name, it's probably fine to never include it in
23085 # preloaded symbol tables.
23086 extract_expsyms_cmds=
23087 # Just being paranoid about ensuring that cc_basename is set.
23088 for cc_temp in $compiler""; do
23090 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23091 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23096 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23099 cygwin* | mingw* | pw32*)
23100 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23101 # When not using gcc, we currently assume that we are using
23102 # Microsoft Visual C++.
23103 if test "$GCC" != yes; then
23108 # we just hope/assume this is gcc and not c89 (= MSVC++)
23117 if test "$with_gnu_ld" = yes; then
23118 # If archive_cmds runs LD, not CC, wlarc should be empty
23121 # Set some defaults for GNU ld with shared library support. These
23122 # are reset later if shared libraries are not supported. Putting them
23123 # here allows them to be overridden if necessary.
23124 runpath_var=LD_RUN_PATH
23125 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23126 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23127 # ancient GNU ld didn't support --whole-archive et. al.
23128 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23129 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23131 whole_archive_flag_spec_GCJ=
23133 supports_anon_versioning=no
23134 case `$LD -v 2>/dev/null` in
23135 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23136 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23137 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23138 *\ 2.11.*) ;; # other 2.11 versions
23139 *) supports_anon_versioning=yes ;;
23142 # See if GNU ld supports shared libraries.
23144 aix3* | aix4* | aix5*)
23145 # On AIX/PPC, the GNU linker is very broken
23146 if test "$host_cpu" != ia64; then
23150 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23151 *** to be unable to reliably create shared libraries on AIX.
23152 *** Therefore, libtool is disabling shared libraries support. If you
23153 *** really care for shared libraries, you may want to modify your PATH
23154 *** so that a non-GNU linker is found, and then restart.
23161 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)'
23162 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23163 hardcode_minus_L_GCJ=yes
23165 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23166 # that the semantics of dynamic libraries on AmigaOS, at least up
23167 # to version 4, is to share data among multiple programs linked
23168 # with the same dynamic library. Since this doesn't match the
23169 # behavior of shared libraries on other platforms, we can't use
23175 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23176 allow_undefined_flag_GCJ=unsupported
23177 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23178 # support --undefined. This deserves some investigation. FIXME
23179 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23185 cygwin* | mingw* | pw32*)
23186 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23187 # as there is no search path for DLLs.
23188 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23189 allow_undefined_flag_GCJ=unsupported
23190 always_export_symbols_GCJ=no
23191 enable_shared_with_static_runtimes_GCJ=yes
23192 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
23194 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
23195 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23196 # If the export-symbols file already is a .def file (1st line
23197 # is EXPORTS), use it as is; otherwise, prepend...
23198 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23199 cp $export_symbols $output_objdir/$soname.def;
23201 echo EXPORTS > $output_objdir/$soname.def;
23202 cat $export_symbols >> $output_objdir/$soname.def;
23204 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23211 hardcode_direct_GCJ=no
23212 hardcode_shlibpath_var_GCJ=no
23213 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23214 export_dynamic_flag_spec_GCJ='${wl}-E'
23215 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23216 # Instead, shared libraries are loaded at an image base (0x10000000 by
23217 # default) and relocated if they conflict, which is a slow very memory
23218 # consuming and fragmenting process. To avoid this, we pick a random,
23219 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23220 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
23221 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'
23222 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'
23226 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23228 case $cc_basename,$host_cpu in
23229 pgcc*) # Portland Group C compiler
23230 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'
23231 tmp_addflag=' $pic_flag'
23233 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
23234 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'
23235 tmp_addflag=' $pic_flag -Mnomain' ;;
23236 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
23237 tmp_addflag=' -i_dynamic' ;;
23238 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
23239 tmp_addflag=' -i_dynamic -nofor_main' ;;
23240 ifc* | ifort*) # Intel Fortran compiler
23241 tmp_addflag=' -nofor_main' ;;
23243 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23245 if test $supports_anon_versioning = yes; then
23246 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23247 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23248 $echo "local: *; };" >> $output_objdir/$libname.ver~
23249 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23257 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23258 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23261 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23262 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23267 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23271 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
23272 *** create shared libraries on Solaris systems. Therefore, libtool
23273 *** is disabling shared libraries support. We urge you to upgrade GNU
23274 *** binutils to release 2.9.1 or newer. Another option is to modify
23275 *** your PATH or compiler configuration so that the native linker is
23276 *** used, and then restart.
23279 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23280 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23281 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23287 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23288 case `$LD -v 2>&1` in
23289 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23293 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23294 *** reliably create shared libraries on SCO systems. Therefore, libtool
23295 *** is disabling shared libraries support. We urge you to upgrade GNU
23296 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
23297 *** your PATH or compiler configuration so that the native linker is
23298 *** used, and then restart.
23303 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23304 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23305 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23306 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23315 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23317 hardcode_direct_GCJ=yes
23318 hardcode_shlibpath_var_GCJ=no
23322 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23323 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23324 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23331 if test "$ld_shlibs_GCJ" = no; then
23333 hardcode_libdir_flag_spec_GCJ=
23334 export_dynamic_flag_spec_GCJ=
23335 whole_archive_flag_spec_GCJ=
23338 # PORTME fill in a description of your system's linker (not GNU ld)
23341 allow_undefined_flag_GCJ=unsupported
23342 always_export_symbols_GCJ=yes
23343 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'
23344 # Note: this linker hardcodes the directories in LIBPATH if there
23345 # are no directories specified by -L.
23346 hardcode_minus_L_GCJ=yes
23347 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23348 # Neither direct hardcoding nor static linking is supported with a
23350 hardcode_direct_GCJ=unsupported
23355 if test "$host_cpu" = ia64; then
23356 # On IA64, the linker does run time linking by default, so we don't
23357 # have to do anything special.
23358 aix_use_runtimelinking=no
23359 exp_sym_flag='-Bexport'
23362 # If we're using GNU nm, then we don't want the "-C" option.
23363 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23364 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23365 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'
23367 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'
23369 aix_use_runtimelinking=no
23371 # Test if we are trying to use run time linking or normal
23372 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23373 # need to do runtime linking.
23374 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23375 for ld_flag in $LDFLAGS; do
23376 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23377 aix_use_runtimelinking=yes
23384 exp_sym_flag='-bexport'
23385 no_entry_flag='-bnoentry'
23388 # When large executables or shared objects are built, AIX ld can
23389 # have problems creating the table of contents. If linking a library
23390 # or program results in "error TOC overflow" add -mminimal-toc to
23391 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
23392 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23394 archive_cmds_GCJ=''
23395 hardcode_direct_GCJ=yes
23396 hardcode_libdir_separator_GCJ=':'
23397 link_all_deplibs_GCJ=yes
23399 if test "$GCC" = yes; then
23400 case $host_os in aix4.[012]|aix4.[012].*)
23401 # We only want to do this on AIX 4.2 and lower, the check
23402 # below for broken collect2 doesn't work under 4.3+
23403 collect2name=`${CC} -print-prog-name=collect2`
23404 if test -f "$collect2name" && \
23405 strings "$collect2name" | grep resolve_lib_name >/dev/null
23407 # We have reworked collect2
23408 hardcode_direct_GCJ=yes
23410 # We have old collect2
23411 hardcode_direct_GCJ=unsupported
23412 # It fails to find uninstalled libraries when the uninstalled
23413 # path is not listed in the libpath. Setting hardcode_minus_L
23414 # to unsupported forces relinking
23415 hardcode_minus_L_GCJ=yes
23416 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23417 hardcode_libdir_separator_GCJ=
23421 shared_flag='-shared'
23422 if test "$aix_use_runtimelinking" = yes; then
23423 shared_flag="$shared_flag "'${wl}-G'
23427 if test "$host_cpu" = ia64; then
23428 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23429 # chokes on -Wl,-G. The following line is correct:
23432 if test "$aix_use_runtimelinking" = yes; then
23433 shared_flag='${wl}-G'
23435 shared_flag='${wl}-bM:SRE'
23440 # It seems that -bexpall does not export symbols beginning with
23441 # underscore (_), so it is better to generate a list of symbols to export.
23442 always_export_symbols_GCJ=yes
23443 if test "$aix_use_runtimelinking" = yes; then
23444 # Warning - without using the other runtime loading flags (-brtl),
23445 # -berok will link without error, but may produce a broken library.
23446 allow_undefined_flag_GCJ='-berok'
23447 # Determine the default libpath from the value encoded in an empty executable.
23448 cat >conftest.$ac_ext <<_ACEOF
23451 cat confdefs.h >>conftest.$ac_ext
23452 cat >>conftest.$ac_ext <<_ACEOF
23453 /* end confdefs.h. */
23463 rm -f conftest.$ac_objext conftest$ac_exeext
23464 if { (ac_try="$ac_link"
23465 case "(($ac_try" in
23466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23467 *) ac_try_echo=$ac_try;;
23469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23470 (eval "$ac_link") 2>conftest.er1
23472 grep -v '^ *+' conftest.er1 >conftest.err
23474 cat conftest.err >&5
23475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476 (exit $ac_status); } && {
23477 test -z "$ac_c_werror_flag" ||
23478 test ! -s conftest.err
23479 } && test -s conftest$ac_exeext &&
23480 $as_test_x conftest$ac_exeext; then
23482 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23484 # Check for a 64-bit object if we didn't find anything.
23485 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; }
23488 echo "$as_me: failed program was:" >&5
23489 sed 's/^/| /' conftest.$ac_ext >&5
23494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23495 conftest$ac_exeext conftest.$ac_ext
23496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23498 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23499 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"
23501 if test "$host_cpu" = ia64; then
23502 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23503 allow_undefined_flag_GCJ="-z nodefs"
23504 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"
23506 # Determine the default libpath from the value encoded in an empty executable.
23507 cat >conftest.$ac_ext <<_ACEOF
23510 cat confdefs.h >>conftest.$ac_ext
23511 cat >>conftest.$ac_ext <<_ACEOF
23512 /* end confdefs.h. */
23522 rm -f conftest.$ac_objext conftest$ac_exeext
23523 if { (ac_try="$ac_link"
23524 case "(($ac_try" in
23525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23526 *) ac_try_echo=$ac_try;;
23528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23529 (eval "$ac_link") 2>conftest.er1
23531 grep -v '^ *+' conftest.er1 >conftest.err
23533 cat conftest.err >&5
23534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535 (exit $ac_status); } && {
23536 test -z "$ac_c_werror_flag" ||
23537 test ! -s conftest.err
23538 } && test -s conftest$ac_exeext &&
23539 $as_test_x conftest$ac_exeext; then
23541 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23543 # Check for a 64-bit object if we didn't find anything.
23544 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; }
23547 echo "$as_me: failed program was:" >&5
23548 sed 's/^/| /' conftest.$ac_ext >&5
23553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23554 conftest$ac_exeext conftest.$ac_ext
23555 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23557 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23558 # Warning - without using the other run time loading flags,
23559 # -berok will link without error, but may produce a broken library.
23560 no_undefined_flag_GCJ=' ${wl}-bernotok'
23561 allow_undefined_flag_GCJ=' ${wl}-berok'
23562 # Exported symbols can be pulled into shared objects from archives
23563 whole_archive_flag_spec_GCJ='$convenience'
23564 archive_cmds_need_lc_GCJ=yes
23565 # This is similar to how AIX traditionally builds its shared libraries.
23566 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'
23572 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)'
23573 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23574 hardcode_minus_L_GCJ=yes
23575 # see comment about different semantics on the GNU ld section
23580 export_dynamic_flag_spec_GCJ=-rdynamic
23583 cygwin* | mingw* | pw32*)
23584 # When not using gcc, we currently assume that we are using
23585 # Microsoft Visual C++.
23586 # hardcode_libdir_flag_spec is actually meaningless, as there is
23587 # no search path for DLLs.
23588 hardcode_libdir_flag_spec_GCJ=' '
23589 allow_undefined_flag_GCJ=unsupported
23590 # Tell ltmain to make .lib files, not .a files.
23592 # Tell ltmain to make .dll files, not .so files.
23594 # FIXME: Setting linknames here is a bad hack.
23595 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23596 # The linker will automatically build a .lib file if we build a DLL.
23597 old_archive_From_new_cmds_GCJ='true'
23598 # FIXME: Should let the user specify the lib program.
23599 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
23600 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
23601 enable_shared_with_static_runtimes_GCJ=yes
23604 darwin* | rhapsody*)
23606 rhapsody* | darwin1.[012])
23607 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23610 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23611 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23613 case ${MACOSX_DEPLOYMENT_TARGET} in
23615 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23618 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23624 archive_cmds_need_lc_GCJ=no
23625 hardcode_direct_GCJ=no
23626 hardcode_automatic_GCJ=yes
23627 hardcode_shlibpath_var_GCJ=unsupported
23628 whole_archive_flag_spec_GCJ=''
23629 link_all_deplibs_GCJ=yes
23630 if test "$GCC" = yes ; then
23631 output_verbose_link_cmd='echo'
23632 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23633 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23634 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23635 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}'
23636 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}'
23638 case $cc_basename in
23640 output_verbose_link_cmd='echo'
23641 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23642 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23643 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23644 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}'
23645 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}'
23655 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23656 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23657 hardcode_shlibpath_var_GCJ=no
23664 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23665 # support. Future versions do this automatically, but an explicit c++rt0.o
23666 # does not break anything, and helps significantly (at the cost of a little
23669 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23670 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23671 hardcode_direct_GCJ=yes
23672 hardcode_shlibpath_var_GCJ=no
23675 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23677 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23678 hardcode_direct_GCJ=yes
23679 hardcode_minus_L_GCJ=yes
23680 hardcode_shlibpath_var_GCJ=no
23683 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23684 freebsd* | kfreebsd*-gnu | dragonfly*)
23685 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23686 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23687 hardcode_direct_GCJ=yes
23688 hardcode_shlibpath_var_GCJ=no
23692 if test "$GCC" = yes; then
23693 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'
23695 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'
23697 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23698 hardcode_libdir_separator_GCJ=:
23699 hardcode_direct_GCJ=yes
23701 # hardcode_minus_L: Not really in the search PATH,
23702 # but as the default location of the library.
23703 hardcode_minus_L_GCJ=yes
23704 export_dynamic_flag_spec_GCJ='${wl}-E'
23708 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23709 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23711 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23713 if test "$with_gnu_ld" = no; then
23714 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23715 hardcode_libdir_separator_GCJ=:
23717 hardcode_direct_GCJ=yes
23718 export_dynamic_flag_spec_GCJ='${wl}-E'
23720 # hardcode_minus_L: Not really in the search PATH,
23721 # but as the default location of the library.
23722 hardcode_minus_L_GCJ=yes
23727 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23730 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23733 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23736 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23742 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23745 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23748 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23752 if test "$with_gnu_ld" = no; then
23753 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23754 hardcode_libdir_separator_GCJ=:
23758 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23759 hardcode_direct_GCJ=no
23760 hardcode_shlibpath_var_GCJ=no
23763 hardcode_direct_GCJ=yes
23764 export_dynamic_flag_spec_GCJ='${wl}-E'
23766 # hardcode_minus_L: Not really in the search PATH,
23767 # but as the default location of the library.
23768 hardcode_minus_L_GCJ=yes
23774 irix5* | irix6* | nonstopux*)
23775 if test "$GCC" = yes; then
23776 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'
23778 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'
23779 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23781 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23782 hardcode_libdir_separator_GCJ=:
23783 link_all_deplibs_GCJ=yes
23787 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23788 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23790 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23792 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23793 hardcode_direct_GCJ=yes
23794 hardcode_shlibpath_var_GCJ=no
23798 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23799 hardcode_direct_GCJ=yes
23800 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23801 hardcode_libdir_separator_GCJ=:
23802 hardcode_shlibpath_var_GCJ=no
23806 hardcode_direct_GCJ=yes
23807 hardcode_shlibpath_var_GCJ=no
23808 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23809 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23810 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23811 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23812 export_dynamic_flag_spec_GCJ='${wl}-E'
23815 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23816 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23817 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23820 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23821 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23828 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23829 hardcode_minus_L_GCJ=yes
23830 allow_undefined_flag_GCJ=unsupported
23831 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'
23832 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23836 if test "$GCC" = yes; then
23837 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23838 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'
23840 allow_undefined_flag_GCJ=' -expect_unresolved \*'
23841 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'
23843 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23844 hardcode_libdir_separator_GCJ=:
23847 osf4* | osf5*) # as osf3* with the addition of -msym flag
23848 if test "$GCC" = yes; then
23849 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23850 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'
23851 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23853 allow_undefined_flag_GCJ=' -expect_unresolved \*'
23854 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'
23855 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~
23856 $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'
23858 # Both c and cxx compiler support -rpath directly
23859 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
23861 hardcode_libdir_separator_GCJ=:
23865 no_undefined_flag_GCJ=' -z text'
23866 if test "$GCC" = yes; then
23868 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23869 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23870 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23873 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23874 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23875 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23877 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23878 hardcode_shlibpath_var_GCJ=no
23880 solaris2.[0-5] | solaris2.[0-5].*) ;;
23882 # The compiler driver will combine linker options so we
23883 # cannot just pass the convience library names through
23884 # without $wl, iff we do not link with $LD.
23885 # Luckily, gcc supports the same syntax we need for Sun Studio.
23886 # Supported since Solaris 2.6 (maybe 2.5.1?)
23889 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23891 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' ;;
23894 link_all_deplibs_GCJ=yes
23898 if test "x$host_vendor" = xsequent; then
23899 # Use $CC to link under sequent, because it throws in some extra .o
23900 # files that make .init and .fini sections work.
23901 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23903 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23905 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23906 hardcode_direct_GCJ=yes
23907 hardcode_minus_L_GCJ=yes
23908 hardcode_shlibpath_var_GCJ=no
23912 case $host_vendor in
23914 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23915 hardcode_direct_GCJ=yes # is this really true???
23918 ## LD is ld it makes a PLAMLIB
23919 ## CC just makes a GrossModule.
23920 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23921 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
23922 hardcode_direct_GCJ=no
23925 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23926 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
23929 runpath_var='LD_RUN_PATH'
23930 hardcode_shlibpath_var_GCJ=no
23934 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23935 hardcode_shlibpath_var_GCJ=no
23936 export_dynamic_flag_spec_GCJ='-Bexport'
23940 if test -d /usr/nec; then
23941 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23942 hardcode_shlibpath_var_GCJ=no
23943 runpath_var=LD_RUN_PATH
23944 hardcode_runpath_var=yes
23949 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
23950 no_undefined_flag_GCJ='${wl}-z,text'
23951 archive_cmds_need_lc_GCJ=no
23952 hardcode_shlibpath_var_GCJ=no
23953 runpath_var='LD_RUN_PATH'
23955 if test "$GCC" = yes; then
23956 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23957 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23959 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23960 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23964 sysv5* | sco3.2v5* | sco5v6*)
23965 # Note: We can NOT use -z defs as we might desire, because we do not
23966 # link with -lc, and that would cause any symbols used from libc to
23967 # always be unresolved, which means just about no library would
23968 # ever link correctly. If we're not using GNU ld we use -z text
23969 # though, which does catch some bad symbols but isn't as heavy-handed
23971 no_undefined_flag_GCJ='${wl}-z,text'
23972 allow_undefined_flag_GCJ='${wl}-z,nodefs'
23973 archive_cmds_need_lc_GCJ=no
23974 hardcode_shlibpath_var_GCJ=no
23975 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23976 hardcode_libdir_separator_GCJ=':'
23977 link_all_deplibs_GCJ=yes
23978 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
23979 runpath_var='LD_RUN_PATH'
23981 if test "$GCC" = yes; then
23982 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23983 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23985 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23986 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23991 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23992 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23993 hardcode_shlibpath_var_GCJ=no
24002 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24003 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24004 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24007 # Do we need to explicitly link libc?
24009 case "x$archive_cmds_need_lc_GCJ" in
24011 # Assume -lc should be added
24012 archive_cmds_need_lc_GCJ=yes
24014 if test "$enable_shared" = yes && test "$GCC" = yes; then
24015 case $archive_cmds_GCJ in
24017 # FIXME: we may have to deal with multi-command sequences.
24020 # Test whether the compiler implicitly links with -lc since on some
24021 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24022 # to ld, don't add -lc before -lgcc.
24023 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24024 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24026 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24029 (eval $ac_compile) 2>&5
24031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24032 (exit $ac_status); } 2>conftest.err; then
24035 libobjs=conftest.$ac_objext
24037 wl=$lt_prog_compiler_wl_GCJ
24038 pic_flag=$lt_prog_compiler_pic_GCJ
24044 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24045 allow_undefined_flag_GCJ=
24046 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24047 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050 (exit $ac_status); }
24052 archive_cmds_need_lc_GCJ=no
24054 archive_cmds_need_lc_GCJ=yes
24056 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24058 cat conftest.err 1>&5
24061 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24062 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24069 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24070 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24071 library_names_spec=
24072 libname_spec='lib$name'
24076 postuninstall_cmds=
24080 shlibpath_overrides_runpath=unknown
24082 dynamic_linker="$host_os ld.so"
24083 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24084 if test "$GCC" = yes; then
24085 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24086 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24087 # if the path contains ";" then we assume it to be the separator
24088 # otherwise default to the standard path separator (i.e. ":") - it is
24089 # assumed that no part of a normal pathname contains ";" but that should
24090 # okay in the real world where ";" in dirpaths is itself problematic.
24091 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24093 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24096 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24098 need_lib_prefix=unknown
24099 hardcode_into_libs=no
24101 # when you set need_version to no, make sure it does not cause -set_version
24102 # flags to be left without arguments
24103 need_version=unknown
24108 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24109 shlibpath_var=LIBPATH
24111 # AIX 3 has no versioning support, so we append a major version to the name.
24112 soname_spec='${libname}${release}${shared_ext}$major'
24119 hardcode_into_libs=yes
24120 if test "$host_cpu" = ia64; then
24121 # AIX 5 supports IA64
24122 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24123 shlibpath_var=LD_LIBRARY_PATH
24125 # With GCC up to 2.95.x, collect2 would create an import file
24126 # for dependence libraries. The import file would start with
24127 # the line `#! .'. This would cause the generated library to
24128 # depend on `.', always an invalid library. This was fixed in
24129 # development snapshots of GCC prior to 3.0.
24131 aix4 | aix4.[01] | aix4.[01].*)
24132 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24134 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24137 can_build_shared=no
24141 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24142 # soname into executable. Probably we can add versioning support to
24143 # collect2, so additional links can be useful in future.
24144 if test "$aix_use_runtimelinking" = yes; then
24145 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24146 # instead of lib<name>.a to let people know that these are not
24147 # typical AIX shared libraries.
24148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24150 # We preserve .a as extension for shared libraries through AIX4.2
24151 # and later when we are not doing run time linking.
24152 library_names_spec='${libname}${release}.a $libname.a'
24153 soname_spec='${libname}${release}${shared_ext}$major'
24155 shlibpath_var=LIBPATH
24160 library_names_spec='$libname.ixlibrary $libname.a'
24161 # Create ${libname}_ixlibrary.a entries in /sys/libs.
24162 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'
24166 library_names_spec='${libname}${shared_ext}'
24167 dynamic_linker="$host_os ld.so"
24168 shlibpath_var=LIBRARY_PATH
24174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24175 soname_spec='${libname}${release}${shared_ext}$major'
24176 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24177 shlibpath_var=LD_LIBRARY_PATH
24178 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24179 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24180 # the default ld.so.conf also contains /usr/contrib/lib and
24181 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24182 # libtool to hard-code these into programs
24185 cygwin* | mingw* | pw32*)
24186 version_type=windows
24191 case $GCC,$host_os in
24192 yes,cygwin* | yes,mingw* | yes,pw32*)
24193 library_names_spec='$libname.dll.a'
24194 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24195 postinstall_cmds='base_file=`basename \${file}`~
24196 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24197 dldir=$destdir/`dirname \$dlpath`~
24198 test -d \$dldir || mkdir -p \$dldir~
24199 $install_prog $dir/$dlname \$dldir/$dlname~
24200 chmod a+x \$dldir/$dlname'
24201 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24202 dlpath=$dir/\$dldll~
24204 shlibpath_overrides_runpath=yes
24208 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24209 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24210 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
24213 # MinGW DLLs use traditional 'lib' prefix
24214 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24215 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24216 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24217 # It is most probably a Windows format PATH printed by
24218 # mingw gcc, but we are running on Cygwin. Gcc prints its search
24219 # path with ; separators, and with drive letters. We can handle the
24220 # drive letters (cygwin fileutils understands them), so leave them,
24221 # especially as we might pass files found there to a mingw objdump,
24222 # which wouldn't understand a cygwinified path. Ahh.
24223 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24225 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24229 # pw32 DLLs use 'pw' prefix rather than 'lib'
24230 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24236 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24239 dynamic_linker='Win32 ld.exe'
24240 # FIXME: first we should search . and the directory the executable is in
24244 darwin* | rhapsody*)
24245 dynamic_linker="$host_os dyld"
24246 version_type=darwin
24249 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24250 soname_spec='${libname}${release}${major}$shared_ext'
24251 shlibpath_overrides_runpath=yes
24252 shlibpath_var=DYLD_LIBRARY_PATH
24253 shrext_cmds='.dylib'
24254 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
24255 if test "$GCC" = yes; then
24256 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"`
24258 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
24260 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24268 soname_spec='${libname}${release}${shared_ext}$major'
24269 shlibpath_var=LD_LIBRARY_PATH
24280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24281 soname_spec='${libname}${release}${shared_ext}$major'
24282 shlibpath_var=LD_LIBRARY_PATH
24283 shlibpath_overrides_runpath=no
24284 hardcode_into_libs=yes
24285 dynamic_linker='GNU ld.so'
24288 freebsd* | dragonfly*)
24289 # DragonFly does not have aout. When/if they implement a new
24290 # versioning mechanism, adjust this.
24291 if test -x /usr/bin/objformat; then
24292 objformat=`/usr/bin/objformat`
24295 freebsd[123]*) objformat=aout ;;
24296 *) objformat=elf ;;
24299 version_type=freebsd-$objformat
24300 case $version_type in
24302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24307 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24311 shlibpath_var=LD_LIBRARY_PATH
24314 shlibpath_overrides_runpath=yes
24316 freebsd3.[01]* | freebsdelf3.[01]*)
24317 shlibpath_overrides_runpath=yes
24318 hardcode_into_libs=yes
24320 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24321 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24322 shlibpath_overrides_runpath=no
24323 hardcode_into_libs=yes
24325 freebsd*) # from 4.6 on
24326 shlibpath_overrides_runpath=yes
24327 hardcode_into_libs=yes
24336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24337 soname_spec='${libname}${release}${shared_ext}$major'
24338 shlibpath_var=LD_LIBRARY_PATH
24339 hardcode_into_libs=yes
24342 hpux9* | hpux10* | hpux11*)
24343 # Give a soname corresponding to the major version so that dld.sl refuses to
24344 # link against other versions.
24351 hardcode_into_libs=yes
24352 dynamic_linker="$host_os dld.so"
24353 shlibpath_var=LD_LIBRARY_PATH
24354 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24356 soname_spec='${libname}${release}${shared_ext}$major'
24357 if test "X$HPUX_IA64_MODE" = X32; then
24358 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24360 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24362 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24366 hardcode_into_libs=yes
24367 dynamic_linker="$host_os dld.sl"
24368 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24369 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24371 soname_spec='${libname}${release}${shared_ext}$major'
24372 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24373 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24377 dynamic_linker="$host_os dld.sl"
24378 shlibpath_var=SHLIB_PATH
24379 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24381 soname_spec='${libname}${release}${shared_ext}$major'
24384 # HP-UX runs *really* slowly unless shared libraries are mode 555.
24385 postinstall_cmds='chmod 555 $lib'
24392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24393 soname_spec='${libname}${release}${shared_ext}$major'
24394 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24395 shlibpath_var=LD_LIBRARY_PATH
24396 shlibpath_overrides_runpath=no
24397 hardcode_into_libs=yes
24400 irix5* | irix6* | nonstopux*)
24402 nonstopux*) version_type=nonstopux ;;
24404 if test "$lt_cv_prog_gnu_ld" = yes; then
24412 soname_spec='${libname}${release}${shared_ext}$major'
24413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24415 irix5* | nonstopux*)
24416 libsuff= shlibsuff=
24419 case $LD in # libtool.m4 will add one of these switches to LD
24420 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24421 libsuff= shlibsuff= libmagic=32-bit;;
24422 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24423 libsuff=32 shlibsuff=N32 libmagic=N32;;
24424 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24425 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24426 *) libsuff= shlibsuff= libmagic=never-match;;
24430 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24431 shlibpath_overrides_runpath=no
24432 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24433 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24434 hardcode_into_libs=yes
24437 # No shared lib support for Linux oldld, aout, or coff.
24438 linux*oldld* | linux*aout* | linux*coff*)
24442 # This must be Linux ELF.
24447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24448 soname_spec='${libname}${release}${shared_ext}$major'
24449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24450 shlibpath_var=LD_LIBRARY_PATH
24451 shlibpath_overrides_runpath=no
24452 # This implies no fast_install, which is unacceptable.
24453 # Some rework will be needed to allow for fast_install
24454 # before this can be enabled.
24455 hardcode_into_libs=yes
24457 # Append ld.so.conf contents to the search path
24458 if test -f /etc/ld.so.conf; then
24459 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' ' '`
24460 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24463 # We used to test for /lib/ld.so.1 and disable shared libraries on
24464 # powerpc, because MkLinux only supported shared libraries with the
24465 # GNU dynamic linker. Since this was broken with cross compilers,
24466 # most powerpc-linux boxes support dynamic linking these days and
24467 # people can always --disable-shared, the test was removed, and we
24468 # assume the GNU/Linux dynamic linker is in use.
24469 dynamic_linker='GNU/Linux ld.so'
24476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24477 soname_spec='${libname}${release}${shared_ext}$major'
24478 shlibpath_var=LD_LIBRARY_PATH
24479 shlibpath_overrides_runpath=no
24480 hardcode_into_libs=yes
24481 dynamic_linker='GNU ld.so'
24488 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24491 dynamic_linker='NetBSD (a.out) ld.so'
24493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24494 soname_spec='${libname}${release}${shared_ext}$major'
24495 dynamic_linker='NetBSD ld.elf_so'
24497 shlibpath_var=LD_LIBRARY_PATH
24498 shlibpath_overrides_runpath=yes
24499 hardcode_into_libs=yes
24504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24505 shlibpath_var=LD_LIBRARY_PATH
24506 shlibpath_overrides_runpath=yes
24513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24514 soname_spec='${libname}${release}${shared_ext}$major'
24515 shlibpath_var=LD_LIBRARY_PATH
24516 shlibpath_overrides_runpath=yes
24521 sys_lib_dlsearch_path_spec="/usr/lib"
24523 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24525 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24526 *) need_version=no ;;
24528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24530 shlibpath_var=LD_LIBRARY_PATH
24531 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24533 openbsd2.[89] | openbsd2.[89].*)
24534 shlibpath_overrides_runpath=no
24537 shlibpath_overrides_runpath=yes
24541 shlibpath_overrides_runpath=yes
24546 libname_spec='$name'
24549 library_names_spec='$libname${shared_ext} $libname.a'
24550 dynamic_linker='OS/2 ld.exe'
24551 shlibpath_var=LIBPATH
24554 osf3* | osf4* | osf5*)
24558 soname_spec='${libname}${release}${shared_ext}$major'
24559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24560 shlibpath_var=LD_LIBRARY_PATH
24561 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24562 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24570 soname_spec='${libname}${release}${shared_ext}$major'
24571 shlibpath_var=LD_LIBRARY_PATH
24572 shlibpath_overrides_runpath=yes
24573 hardcode_into_libs=yes
24574 # ldd complains unless libraries are executable
24575 postinstall_cmds='chmod +x $lib'
24580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24581 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24582 shlibpath_var=LD_LIBRARY_PATH
24583 shlibpath_overrides_runpath=yes
24584 if test "$with_gnu_ld" = yes; then
24592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24593 soname_spec='${libname}${release}${shared_ext}$major'
24594 shlibpath_var=LD_LIBRARY_PATH
24595 case $host_vendor in
24597 shlibpath_overrides_runpath=no
24599 export_dynamic_flag_spec='${wl}-Blargedynsym'
24600 runpath_var=LD_RUN_PATH
24608 shlibpath_overrides_runpath=no
24609 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24615 if test -d /usr/nec ;then
24617 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24618 soname_spec='$libname${shared_ext}.$major'
24619 shlibpath_var=LD_LIBRARY_PATH
24623 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24624 version_type=freebsd-elf
24627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24628 soname_spec='${libname}${release}${shared_ext}$major'
24629 shlibpath_var=LD_LIBRARY_PATH
24630 hardcode_into_libs=yes
24631 if test "$with_gnu_ld" = yes; then
24632 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24633 shlibpath_overrides_runpath=no
24635 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24636 shlibpath_overrides_runpath=yes
24639 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24643 sys_lib_dlsearch_path_spec='/usr/lib'
24648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24649 soname_spec='${libname}${release}${shared_ext}$major'
24650 shlibpath_var=LD_LIBRARY_PATH
24657 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24658 echo "${ECHO_T}$dynamic_linker" >&6; }
24659 test "$dynamic_linker" = no && can_build_shared=no
24661 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24662 if test "$GCC" = yes; then
24663 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24666 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24667 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
24668 hardcode_action_GCJ=
24669 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24670 test -n "$runpath_var_GCJ" || \
24671 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24673 # We can hardcode non-existant directories.
24674 if test "$hardcode_direct_GCJ" != no &&
24675 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24676 # have to relink, otherwise we might link with an installed library
24677 # when we should be linking with a yet-to-be-installed one
24678 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24679 test "$hardcode_minus_L_GCJ" != no; then
24680 # Linking always hardcodes the temporary library directory.
24681 hardcode_action_GCJ=relink
24683 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24684 hardcode_action_GCJ=immediate
24687 # We cannot hardcode anything, or else we can only hardcode existing
24689 hardcode_action_GCJ=unsupported
24691 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24692 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
24694 if test "$hardcode_action_GCJ" = relink; then
24695 # Fast installation is not supported
24696 enable_fast_install=no
24697 elif test "$shlibpath_overrides_runpath" = yes ||
24698 test "$enable_shared" = no; then
24699 # Fast installation is not necessary
24700 enable_fast_install=needless
24704 # The else clause should only fire when bootstrapping the
24705 # libtool distribution, otherwise you forgot to ship ltmain.sh
24706 # with your package, and you will get complaints that there are
24707 # no rules to generate ltmain.sh.
24708 if test -f "$ltmain"; then
24709 # See if we are running on zsh, and set the options which allow our commands through
24710 # without removal of \ escapes.
24711 if test -n "${ZSH_VERSION+set}" ; then
24712 setopt NO_GLOB_SUBST
24714 # Now quote all the things that may contain metacharacters while being
24715 # careful not to overquote the AC_SUBSTed values. We take copies of the
24716 # variables and quote the copies for generation of the libtool script.
24717 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
24719 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24720 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24721 deplibs_check_method reload_flag reload_cmds need_locks \
24722 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24723 lt_cv_sys_global_symbol_to_c_name_address \
24724 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24725 old_postinstall_cmds old_postuninstall_cmds \
24729 lt_prog_compiler_wl_GCJ \
24730 lt_prog_compiler_pic_GCJ \
24731 lt_prog_compiler_static_GCJ \
24732 lt_prog_compiler_no_builtin_flag_GCJ \
24733 export_dynamic_flag_spec_GCJ \
24734 thread_safe_flag_spec_GCJ \
24735 whole_archive_flag_spec_GCJ \
24736 enable_shared_with_static_runtimes_GCJ \
24737 old_archive_cmds_GCJ \
24738 old_archive_from_new_cmds_GCJ \
24739 predep_objects_GCJ \
24740 postdep_objects_GCJ \
24743 compiler_lib_search_path_GCJ \
24745 archive_expsym_cmds_GCJ \
24746 postinstall_cmds_GCJ \
24747 postuninstall_cmds_GCJ \
24748 old_archive_from_expsyms_cmds_GCJ \
24749 allow_undefined_flag_GCJ \
24750 no_undefined_flag_GCJ \
24751 export_symbols_cmds_GCJ \
24752 hardcode_libdir_flag_spec_GCJ \
24753 hardcode_libdir_flag_spec_ld_GCJ \
24754 hardcode_libdir_separator_GCJ \
24755 hardcode_automatic_GCJ \
24757 module_expsym_cmds_GCJ \
24758 lt_cv_prog_compiler_c_o_GCJ \
24759 exclude_expsyms_GCJ \
24760 include_expsyms_GCJ; do
24763 old_archive_cmds_GCJ | \
24764 old_archive_from_new_cmds_GCJ | \
24765 archive_cmds_GCJ | \
24766 archive_expsym_cmds_GCJ | \
24767 module_cmds_GCJ | \
24768 module_expsym_cmds_GCJ | \
24769 old_archive_from_expsyms_cmds_GCJ | \
24770 export_symbols_cmds_GCJ | \
24771 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24772 postinstall_cmds | postuninstall_cmds | \
24773 old_postinstall_cmds | old_postuninstall_cmds | \
24774 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24775 # Double-quote double-evaled strings.
24776 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24779 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24785 *'\$0 --fallback-echo"')
24786 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24792 cat <<__EOF__ >> "$cfgfile"
24793 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24795 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24797 # Shell to use when invoking shell scripts.
24800 # Whether or not to build shared libraries.
24801 build_libtool_libs=$enable_shared
24803 # Whether or not to build static libraries.
24804 build_old_libs=$enable_static
24806 # Whether or not to add -lc for building shared libraries.
24807 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24809 # Whether or not to disallow shared libs when runtime libs are static
24810 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24812 # Whether or not to optimize for fast installation.
24813 fast_install=$enable_fast_install
24816 host_alias=$host_alias
24820 # The build system.
24821 build_alias=$build_alias
24825 # An echo program that does not interpret backslashes.
24830 AR_FLAGS=$lt_AR_FLAGS
24835 # LTCC compiler flags.
24836 LTCFLAGS=$lt_LTCFLAGS
24838 # A language-specific compiler.
24839 CC=$lt_compiler_GCJ
24841 # Is the compiler the GNU C compiler?
24847 # The linker used to build libraries.
24850 # Whether we need hard or soft links.
24853 # A BSD-compatible nm program.
24856 # A symbol stripping program
24859 # Used to examine libraries when file_magic_cmd begins "file"
24860 MAGIC_CMD=$MAGIC_CMD
24862 # Used on cygwin: DLL creation program.
24865 # Used on cygwin: object dumper.
24868 # Used on cygwin: assembler.
24871 # The name of the directory that contains temporary libtool files.
24874 # How to create reloadable object files.
24875 reload_flag=$lt_reload_flag
24876 reload_cmds=$lt_reload_cmds
24878 # How to pass a linker flag through the compiler.
24879 wl=$lt_lt_prog_compiler_wl_GCJ
24881 # Object file suffix (normally "o").
24882 objext="$ac_objext"
24884 # Old archive suffix (normally "a").
24887 # Shared library suffix (normally ".so").
24888 shrext_cmds='$shrext_cmds'
24890 # Executable file suffix (normally "").
24893 # Additional compiler flags for building library objects.
24894 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24897 # What is the maximum length of a command?
24898 max_cmd_len=$lt_cv_sys_max_cmd_len
24900 # Does compiler simultaneously support -c and -o options?
24901 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24903 # Must we lock files when doing compilation?
24904 need_locks=$lt_need_locks
24906 # Do we need the lib prefix for modules?
24907 need_lib_prefix=$need_lib_prefix
24909 # Do we need a version for libraries?
24910 need_version=$need_version
24912 # Whether dlopen is supported.
24913 dlopen_support=$enable_dlopen
24915 # Whether dlopen of programs is supported.
24916 dlopen_self=$enable_dlopen_self
24918 # Whether dlopen of statically linked programs is supported.
24919 dlopen_self_static=$enable_dlopen_self_static
24921 # Compiler flag to prevent dynamic linking.
24922 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24924 # Compiler flag to turn off builtin functions.
24925 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24927 # Compiler flag to allow reflexive dlopens.
24928 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24930 # Compiler flag to generate shared objects directly from archives.
24931 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24933 # Compiler flag to generate thread-safe objects.
24934 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24936 # Library versioning type.
24937 version_type=$version_type
24939 # Format of library name prefix.
24940 libname_spec=$lt_libname_spec
24942 # List of archive names. First name is the real one, the rest are links.
24943 # The last name is the one that the linker finds with -lNAME.
24944 library_names_spec=$lt_library_names_spec
24946 # The coded name of the library, if different from the real name.
24947 soname_spec=$lt_soname_spec
24949 # Commands used to build and install an old-style archive.
24951 old_archive_cmds=$lt_old_archive_cmds_GCJ
24952 old_postinstall_cmds=$lt_old_postinstall_cmds
24953 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24955 # Create an old-style archive from a shared archive.
24956 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24958 # Create a temporary old-style archive to link instead of a shared archive.
24959 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24961 # Commands used to build and install a shared archive.
24962 archive_cmds=$lt_archive_cmds_GCJ
24963 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24964 postinstall_cmds=$lt_postinstall_cmds
24965 postuninstall_cmds=$lt_postuninstall_cmds
24967 # Commands used to build a loadable module (assumed same as above if empty)
24968 module_cmds=$lt_module_cmds_GCJ
24969 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24971 # Commands to strip libraries.
24972 old_striplib=$lt_old_striplib
24973 striplib=$lt_striplib
24975 # Dependencies to place before the objects being linked to create a
24977 predep_objects=$lt_predep_objects_GCJ
24979 # Dependencies to place after the objects being linked to create a
24981 postdep_objects=$lt_postdep_objects_GCJ
24983 # Dependencies to place before the objects being linked to create a
24985 predeps=$lt_predeps_GCJ
24987 # Dependencies to place after the objects being linked to create a
24989 postdeps=$lt_postdeps_GCJ
24991 # The library search path used internally by the compiler when linking
24992 # a shared library.
24993 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24995 # Method to check whether dependent libraries are shared objects.
24996 deplibs_check_method=$lt_deplibs_check_method
24998 # Command to use when deplibs_check_method == file_magic.
24999 file_magic_cmd=$lt_file_magic_cmd
25001 # Flag that allows shared libraries with undefined symbols to be built.
25002 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25004 # Flag that forces no undefined symbols.
25005 no_undefined_flag=$lt_no_undefined_flag_GCJ
25007 # Commands used to finish a libtool library installation in a directory.
25008 finish_cmds=$lt_finish_cmds
25010 # Same as above, but a single script fragment to be evaled but not shown.
25011 finish_eval=$lt_finish_eval
25013 # Take the output of nm and produce a listing of raw symbols and C names.
25014 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25016 # Transform the output of nm in a proper C declaration
25017 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25019 # Transform the output of nm in a C name address pair
25020 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25022 # This is the shared library runtime path variable.
25023 runpath_var=$runpath_var
25025 # This is the shared library path variable.
25026 shlibpath_var=$shlibpath_var
25028 # Is shlibpath searched before the hard-coded library search path?
25029 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25031 # How to hardcode a shared library path into an executable.
25032 hardcode_action=$hardcode_action_GCJ
25034 # Whether we should hardcode library paths into libraries.
25035 hardcode_into_libs=$hardcode_into_libs
25037 # Flag to hardcode \$libdir into a binary during linking.
25038 # This must work even if \$libdir does not exist.
25039 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25041 # If ld is used when linking, flag to hardcode \$libdir into
25042 # a binary during linking. This must work even if \$libdir does
25044 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25046 # Whether we need a single -rpath flag with a separated argument.
25047 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25049 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25050 # resulting binary.
25051 hardcode_direct=$hardcode_direct_GCJ
25053 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25054 # resulting binary.
25055 hardcode_minus_L=$hardcode_minus_L_GCJ
25057 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25058 # the resulting binary.
25059 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25061 # Set to yes if building a shared library automatically hardcodes DIR into the library
25062 # and all subsequent libraries and executables linked against it.
25063 hardcode_automatic=$hardcode_automatic_GCJ
25065 # Variables whose values should be saved in libtool wrapper scripts and
25066 # restored at relink time.
25067 variables_saved_for_relink="$variables_saved_for_relink"
25069 # Whether libtool must link a program against all its dependency libraries.
25070 link_all_deplibs=$link_all_deplibs_GCJ
25072 # Compile-time system search path for libraries
25073 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25075 # Run-time system search path for libraries
25076 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25078 # Fix the shell variable \$srcfile for the compiler.
25079 fix_srcfile_path="$fix_srcfile_path_GCJ"
25081 # Set to yes if exported symbols are required.
25082 always_export_symbols=$always_export_symbols_GCJ
25084 # The commands to list exported symbols.
25085 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25087 # The commands to extract the exported symbol list from a shared archive.
25088 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25090 # Symbols that should not be listed in the preloaded symbols.
25091 exclude_expsyms=$lt_exclude_expsyms_GCJ
25093 # Symbols that must always be exported.
25094 include_expsyms=$lt_include_expsyms_GCJ
25096 # ### END LIBTOOL TAG CONFIG: $tagname
25102 # If there is no Makefile yet, we rely on a make rule to execute
25103 # `config.status --recheck' to rerun these tests and create the
25104 # libtool script then.
25105 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25106 if test -f "$ltmain_in"; then
25107 test -f Makefile && make "$ltmain"
25113 ac_cpp='$CPP $CPPFLAGS'
25114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25127 ac_cpp='$CPP $CPPFLAGS'
25128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25133 # Source file extension for RC test sources.
25136 # Object file extension for compiled RC test sources.
25140 # Code to be used in simple compile tests
25141 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25143 # Code to be used in simple link tests
25144 lt_simple_link_test_code="$lt_simple_compile_test_code"
25146 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25148 # If no C compiler was specified, use CC.
25151 # If no C compiler flags were specified, use CFLAGS.
25152 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25154 # Allow CC to be a program name with arguments.
25158 # save warnings/boilerplate of simple test code
25159 ac_outfile=conftest.$ac_objext
25160 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25161 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25162 _lt_compiler_boilerplate=`cat conftest.err`
25165 ac_outfile=conftest.$ac_objext
25166 printf "$lt_simple_link_test_code" >conftest.$ac_ext
25167 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25168 _lt_linker_boilerplate=`cat conftest.err`
25172 # Allow CC to be a program name with arguments.
25177 for cc_temp in $compiler""; do
25179 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25180 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25185 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25187 lt_cv_prog_compiler_c_o_RC=yes
25189 # The else clause should only fire when bootstrapping the
25190 # libtool distribution, otherwise you forgot to ship ltmain.sh
25191 # with your package, and you will get complaints that there are
25192 # no rules to generate ltmain.sh.
25193 if test -f "$ltmain"; then
25194 # See if we are running on zsh, and set the options which allow our commands through
25195 # without removal of \ escapes.
25196 if test -n "${ZSH_VERSION+set}" ; then
25197 setopt NO_GLOB_SUBST
25199 # Now quote all the things that may contain metacharacters while being
25200 # careful not to overquote the AC_SUBSTed values. We take copies of the
25201 # variables and quote the copies for generation of the libtool script.
25202 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25204 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25205 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25206 deplibs_check_method reload_flag reload_cmds need_locks \
25207 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25208 lt_cv_sys_global_symbol_to_c_name_address \
25209 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25210 old_postinstall_cmds old_postuninstall_cmds \
25214 lt_prog_compiler_wl_RC \
25215 lt_prog_compiler_pic_RC \
25216 lt_prog_compiler_static_RC \
25217 lt_prog_compiler_no_builtin_flag_RC \
25218 export_dynamic_flag_spec_RC \
25219 thread_safe_flag_spec_RC \
25220 whole_archive_flag_spec_RC \
25221 enable_shared_with_static_runtimes_RC \
25222 old_archive_cmds_RC \
25223 old_archive_from_new_cmds_RC \
25224 predep_objects_RC \
25225 postdep_objects_RC \
25228 compiler_lib_search_path_RC \
25230 archive_expsym_cmds_RC \
25231 postinstall_cmds_RC \
25232 postuninstall_cmds_RC \
25233 old_archive_from_expsyms_cmds_RC \
25234 allow_undefined_flag_RC \
25235 no_undefined_flag_RC \
25236 export_symbols_cmds_RC \
25237 hardcode_libdir_flag_spec_RC \
25238 hardcode_libdir_flag_spec_ld_RC \
25239 hardcode_libdir_separator_RC \
25240 hardcode_automatic_RC \
25242 module_expsym_cmds_RC \
25243 lt_cv_prog_compiler_c_o_RC \
25244 exclude_expsyms_RC \
25245 include_expsyms_RC; do
25248 old_archive_cmds_RC | \
25249 old_archive_from_new_cmds_RC | \
25250 archive_cmds_RC | \
25251 archive_expsym_cmds_RC | \
25253 module_expsym_cmds_RC | \
25254 old_archive_from_expsyms_cmds_RC | \
25255 export_symbols_cmds_RC | \
25256 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25257 postinstall_cmds | postuninstall_cmds | \
25258 old_postinstall_cmds | old_postuninstall_cmds | \
25259 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25260 # Double-quote double-evaled strings.
25261 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25264 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25270 *'\$0 --fallback-echo"')
25271 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25277 cat <<__EOF__ >> "$cfgfile"
25278 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25280 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25282 # Shell to use when invoking shell scripts.
25285 # Whether or not to build shared libraries.
25286 build_libtool_libs=$enable_shared
25288 # Whether or not to build static libraries.
25289 build_old_libs=$enable_static
25291 # Whether or not to add -lc for building shared libraries.
25292 build_libtool_need_lc=$archive_cmds_need_lc_RC
25294 # Whether or not to disallow shared libs when runtime libs are static
25295 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25297 # Whether or not to optimize for fast installation.
25298 fast_install=$enable_fast_install
25301 host_alias=$host_alias
25305 # The build system.
25306 build_alias=$build_alias
25310 # An echo program that does not interpret backslashes.
25315 AR_FLAGS=$lt_AR_FLAGS
25320 # LTCC compiler flags.
25321 LTCFLAGS=$lt_LTCFLAGS
25323 # A language-specific compiler.
25326 # Is the compiler the GNU C compiler?
25332 # The linker used to build libraries.
25335 # Whether we need hard or soft links.
25338 # A BSD-compatible nm program.
25341 # A symbol stripping program
25344 # Used to examine libraries when file_magic_cmd begins "file"
25345 MAGIC_CMD=$MAGIC_CMD
25347 # Used on cygwin: DLL creation program.
25350 # Used on cygwin: object dumper.
25353 # Used on cygwin: assembler.
25356 # The name of the directory that contains temporary libtool files.
25359 # How to create reloadable object files.
25360 reload_flag=$lt_reload_flag
25361 reload_cmds=$lt_reload_cmds
25363 # How to pass a linker flag through the compiler.
25364 wl=$lt_lt_prog_compiler_wl_RC
25366 # Object file suffix (normally "o").
25367 objext="$ac_objext"
25369 # Old archive suffix (normally "a").
25372 # Shared library suffix (normally ".so").
25373 shrext_cmds='$shrext_cmds'
25375 # Executable file suffix (normally "").
25378 # Additional compiler flags for building library objects.
25379 pic_flag=$lt_lt_prog_compiler_pic_RC
25382 # What is the maximum length of a command?
25383 max_cmd_len=$lt_cv_sys_max_cmd_len
25385 # Does compiler simultaneously support -c and -o options?
25386 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25388 # Must we lock files when doing compilation?
25389 need_locks=$lt_need_locks
25391 # Do we need the lib prefix for modules?
25392 need_lib_prefix=$need_lib_prefix
25394 # Do we need a version for libraries?
25395 need_version=$need_version
25397 # Whether dlopen is supported.
25398 dlopen_support=$enable_dlopen
25400 # Whether dlopen of programs is supported.
25401 dlopen_self=$enable_dlopen_self
25403 # Whether dlopen of statically linked programs is supported.
25404 dlopen_self_static=$enable_dlopen_self_static
25406 # Compiler flag to prevent dynamic linking.
25407 link_static_flag=$lt_lt_prog_compiler_static_RC
25409 # Compiler flag to turn off builtin functions.
25410 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25412 # Compiler flag to allow reflexive dlopens.
25413 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25415 # Compiler flag to generate shared objects directly from archives.
25416 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25418 # Compiler flag to generate thread-safe objects.
25419 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25421 # Library versioning type.
25422 version_type=$version_type
25424 # Format of library name prefix.
25425 libname_spec=$lt_libname_spec
25427 # List of archive names. First name is the real one, the rest are links.
25428 # The last name is the one that the linker finds with -lNAME.
25429 library_names_spec=$lt_library_names_spec
25431 # The coded name of the library, if different from the real name.
25432 soname_spec=$lt_soname_spec
25434 # Commands used to build and install an old-style archive.
25436 old_archive_cmds=$lt_old_archive_cmds_RC
25437 old_postinstall_cmds=$lt_old_postinstall_cmds
25438 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25440 # Create an old-style archive from a shared archive.
25441 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25443 # Create a temporary old-style archive to link instead of a shared archive.
25444 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25446 # Commands used to build and install a shared archive.
25447 archive_cmds=$lt_archive_cmds_RC
25448 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25449 postinstall_cmds=$lt_postinstall_cmds
25450 postuninstall_cmds=$lt_postuninstall_cmds
25452 # Commands used to build a loadable module (assumed same as above if empty)
25453 module_cmds=$lt_module_cmds_RC
25454 module_expsym_cmds=$lt_module_expsym_cmds_RC
25456 # Commands to strip libraries.
25457 old_striplib=$lt_old_striplib
25458 striplib=$lt_striplib
25460 # Dependencies to place before the objects being linked to create a
25462 predep_objects=$lt_predep_objects_RC
25464 # Dependencies to place after the objects being linked to create a
25466 postdep_objects=$lt_postdep_objects_RC
25468 # Dependencies to place before the objects being linked to create a
25470 predeps=$lt_predeps_RC
25472 # Dependencies to place after the objects being linked to create a
25474 postdeps=$lt_postdeps_RC
25476 # The library search path used internally by the compiler when linking
25477 # a shared library.
25478 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25480 # Method to check whether dependent libraries are shared objects.
25481 deplibs_check_method=$lt_deplibs_check_method
25483 # Command to use when deplibs_check_method == file_magic.
25484 file_magic_cmd=$lt_file_magic_cmd
25486 # Flag that allows shared libraries with undefined symbols to be built.
25487 allow_undefined_flag=$lt_allow_undefined_flag_RC
25489 # Flag that forces no undefined symbols.
25490 no_undefined_flag=$lt_no_undefined_flag_RC
25492 # Commands used to finish a libtool library installation in a directory.
25493 finish_cmds=$lt_finish_cmds
25495 # Same as above, but a single script fragment to be evaled but not shown.
25496 finish_eval=$lt_finish_eval
25498 # Take the output of nm and produce a listing of raw symbols and C names.
25499 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25501 # Transform the output of nm in a proper C declaration
25502 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25504 # Transform the output of nm in a C name address pair
25505 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25507 # This is the shared library runtime path variable.
25508 runpath_var=$runpath_var
25510 # This is the shared library path variable.
25511 shlibpath_var=$shlibpath_var
25513 # Is shlibpath searched before the hard-coded library search path?
25514 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25516 # How to hardcode a shared library path into an executable.
25517 hardcode_action=$hardcode_action_RC
25519 # Whether we should hardcode library paths into libraries.
25520 hardcode_into_libs=$hardcode_into_libs
25522 # Flag to hardcode \$libdir into a binary during linking.
25523 # This must work even if \$libdir does not exist.
25524 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25526 # If ld is used when linking, flag to hardcode \$libdir into
25527 # a binary during linking. This must work even if \$libdir does
25529 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25531 # Whether we need a single -rpath flag with a separated argument.
25532 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25534 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25535 # resulting binary.
25536 hardcode_direct=$hardcode_direct_RC
25538 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25539 # resulting binary.
25540 hardcode_minus_L=$hardcode_minus_L_RC
25542 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25543 # the resulting binary.
25544 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25546 # Set to yes if building a shared library automatically hardcodes DIR into the library
25547 # and all subsequent libraries and executables linked against it.
25548 hardcode_automatic=$hardcode_automatic_RC
25550 # Variables whose values should be saved in libtool wrapper scripts and
25551 # restored at relink time.
25552 variables_saved_for_relink="$variables_saved_for_relink"
25554 # Whether libtool must link a program against all its dependency libraries.
25555 link_all_deplibs=$link_all_deplibs_RC
25557 # Compile-time system search path for libraries
25558 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25560 # Run-time system search path for libraries
25561 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25563 # Fix the shell variable \$srcfile for the compiler.
25564 fix_srcfile_path="$fix_srcfile_path_RC"
25566 # Set to yes if exported symbols are required.
25567 always_export_symbols=$always_export_symbols_RC
25569 # The commands to list exported symbols.
25570 export_symbols_cmds=$lt_export_symbols_cmds_RC
25572 # The commands to extract the exported symbol list from a shared archive.
25573 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25575 # Symbols that should not be listed in the preloaded symbols.
25576 exclude_expsyms=$lt_exclude_expsyms_RC
25578 # Symbols that must always be exported.
25579 include_expsyms=$lt_include_expsyms_RC
25581 # ### END LIBTOOL TAG CONFIG: $tagname
25587 # If there is no Makefile yet, we rely on a make rule to execute
25588 # `config.status --recheck' to rerun these tests and create the
25589 # libtool script then.
25590 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25591 if test -f "$ltmain_in"; then
25592 test -f Makefile && make "$ltmain"
25598 ac_cpp='$CPP $CPPFLAGS'
25599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25608 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25609 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25610 { (exit 1); exit 1; }; }
25614 # Append the new tag name to the list of available tags.
25615 if test -n "$tagname" ; then
25616 available_tags="$available_tags $tagname"
25622 # Now substitute the updated list of available tags.
25623 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25624 mv "${ofile}T" "$ofile"
25628 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25629 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25630 { (exit 1); exit 1; }; }
25636 # This can be used to rebuild libtool when needed
25637 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25639 # Always use our own libtool.
25640 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
25642 # Prevent multiple expansion
25664 if test "$lt_cv_dlopen_self" = "yes" ; then
25666 cat >>confdefs.h <<\_ACEOF
25667 #define CAN_DLOPEN_SELF 1
25672 if test "$WITH_LLVMGCCDIR" = "default" ; then
25673 LLVMGCC="llvm-gcc${EXEEXT}"
25674 LLVMGXX="llvm-g++${EXEEXT}"
25675 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25676 set dummy $LLVMGCC; ac_word=$2
25677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25679 if test "${ac_cv_path_LLVMGCC+set}" = set; then
25680 echo $ECHO_N "(cached) $ECHO_C" >&6
25684 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25688 for as_dir in $PATH
25691 test -z "$as_dir" && as_dir=.
25692 for ac_exec_ext in '' $ac_executable_extensions; do
25693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25694 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25705 LLVMGCC=$ac_cv_path_LLVMGCC
25706 if test -n "$LLVMGCC"; then
25707 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25708 echo "${ECHO_T}$LLVMGCC" >&6; }
25710 { echo "$as_me:$LINENO: result: no" >&5
25711 echo "${ECHO_T}no" >&6; }
25715 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25716 set dummy $LLVMGXX; ac_word=$2
25717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25719 if test "${ac_cv_path_LLVMGXX+set}" = set; then
25720 echo $ECHO_N "(cached) $ECHO_C" >&6
25724 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25728 for as_dir in $PATH
25731 test -z "$as_dir" && as_dir=.
25732 for ac_exec_ext in '' $ac_executable_extensions; do
25733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25734 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25745 LLVMGXX=$ac_cv_path_LLVMGXX
25746 if test -n "$LLVMGXX"; then
25747 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25748 echo "${ECHO_T}$LLVMGXX" >&6; }
25750 { echo "$as_me:$LINENO: result: no" >&5
25751 echo "${ECHO_T}no" >&6; }
25756 if test -z "$LLVMGCC"; then
25757 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25759 if test -z "$LLVMGXX"; then
25760 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25768 { echo "$as_me:$LINENO: checking tool compatibility" >&5
25769 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
25782 if test "$GCC" != "yes" && test "$ICC" != "yes"
25784 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25785 echo "$as_me: error: gcc|icc required but not found" >&2;}
25786 { (exit 1); exit 1; }; }
25789 if test "$GXX" != "yes" && test "$IXX" != "yes"
25791 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25792 echo "$as_me: error: g++|icc required but not found" >&2;}
25793 { (exit 1); exit 1; }; }
25796 if test "$GCC" = "yes"
25798 cat >conftest.$ac_ext <<_ACEOF
25799 #if !defined(__GNUC__) || __GNUC__ < 3
25800 #error Unsupported GCC version
25804 rm -f conftest.$ac_objext
25805 if { (ac_try="$ac_compile"
25806 case "(($ac_try" in
25807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25808 *) ac_try_echo=$ac_try;;
25810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25811 (eval "$ac_compile") 2>conftest.er1
25813 grep -v '^ *+' conftest.er1 >conftest.err
25815 cat conftest.err >&5
25816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817 (exit $ac_status); } && {
25818 test -z "$ac_c_werror_flag" ||
25819 test ! -s conftest.err
25820 } && test -s conftest.$ac_objext; then
25823 echo "$as_me: failed program was:" >&5
25824 sed 's/^/| /' conftest.$ac_ext >&5
25826 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
25827 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25828 { (exit 1); exit 1; }; }
25831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25834 if test -z "$llvm_cv_gnu_make_command"
25836 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25837 echo "$as_me: error: GNU Make required but not found" >&2;}
25838 { (exit 1); exit 1; }; }
25841 { echo "$as_me:$LINENO: result: ok" >&5
25842 echo "${ECHO_T}ok" >&6; }
25846 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25847 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
25848 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25849 echo $ECHO_N "(cached) $ECHO_C" >&6
25851 ac_check_lib_save_LIBS=$LIBS
25853 cat >conftest.$ac_ext <<_ACEOF
25856 cat confdefs.h >>conftest.$ac_ext
25857 cat >>conftest.$ac_ext <<_ACEOF
25858 /* end confdefs.h. */
25860 /* Override any GCC internal prototype to avoid an error.
25861 Use char because int might match the return type of a GCC
25862 builtin and then its argument prototype would still apply. */
25870 return elf_begin ();
25875 rm -f conftest.$ac_objext conftest$ac_exeext
25876 if { (ac_try="$ac_link"
25877 case "(($ac_try" in
25878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25879 *) ac_try_echo=$ac_try;;
25881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25882 (eval "$ac_link") 2>conftest.er1
25884 grep -v '^ *+' conftest.er1 >conftest.err
25886 cat conftest.err >&5
25887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888 (exit $ac_status); } && {
25889 test -z "$ac_c_werror_flag" ||
25890 test ! -s conftest.err
25891 } && test -s conftest$ac_exeext &&
25892 $as_test_x conftest$ac_exeext; then
25893 ac_cv_lib_elf_elf_begin=yes
25895 echo "$as_me: failed program was:" >&5
25896 sed 's/^/| /' conftest.$ac_ext >&5
25898 ac_cv_lib_elf_elf_begin=no
25901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25902 conftest$ac_exeext conftest.$ac_ext
25903 LIBS=$ac_check_lib_save_LIBS
25905 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25906 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
25907 if test $ac_cv_lib_elf_elf_begin = yes; then
25908 cat >>confdefs.h <<_ACEOF
25909 #define HAVE_LIBELF 1
25917 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
25918 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
25919 if test "${ac_cv_lib_m_sin+set}" = set; then
25920 echo $ECHO_N "(cached) $ECHO_C" >&6
25922 ac_check_lib_save_LIBS=$LIBS
25924 cat >conftest.$ac_ext <<_ACEOF
25927 cat confdefs.h >>conftest.$ac_ext
25928 cat >>conftest.$ac_ext <<_ACEOF
25929 /* end confdefs.h. */
25931 /* Override any GCC internal prototype to avoid an error.
25932 Use char because int might match the return type of a GCC
25933 builtin and then its argument prototype would still apply. */
25946 rm -f conftest.$ac_objext conftest$ac_exeext
25947 if { (ac_try="$ac_link"
25948 case "(($ac_try" in
25949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25950 *) ac_try_echo=$ac_try;;
25952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25953 (eval "$ac_link") 2>conftest.er1
25955 grep -v '^ *+' conftest.er1 >conftest.err
25957 cat conftest.err >&5
25958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959 (exit $ac_status); } && {
25960 test -z "$ac_c_werror_flag" ||
25961 test ! -s conftest.err
25962 } && test -s conftest$ac_exeext &&
25963 $as_test_x conftest$ac_exeext; then
25964 ac_cv_lib_m_sin=yes
25966 echo "$as_me: failed program was:" >&5
25967 sed 's/^/| /' conftest.$ac_ext >&5
25972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25973 conftest$ac_exeext conftest.$ac_ext
25974 LIBS=$ac_check_lib_save_LIBS
25976 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25977 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
25978 if test $ac_cv_lib_m_sin = yes; then
25979 cat >>confdefs.h <<_ACEOF
25980 #define HAVE_LIBM 1
25987 if test "$llvm_cv_os_type" = "MingW" ; then
25989 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25990 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
25991 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
25992 echo $ECHO_N "(cached) $ECHO_C" >&6
25994 ac_check_lib_save_LIBS=$LIBS
25995 LIBS="-limagehlp $LIBS"
25996 cat >conftest.$ac_ext <<_ACEOF
25999 cat confdefs.h >>conftest.$ac_ext
26000 cat >>conftest.$ac_ext <<_ACEOF
26001 /* end confdefs.h. */
26012 rm -f conftest.$ac_objext conftest$ac_exeext
26013 if { (ac_try="$ac_link"
26014 case "(($ac_try" in
26015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26016 *) ac_try_echo=$ac_try;;
26018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26019 (eval "$ac_link") 2>conftest.er1
26021 grep -v '^ *+' conftest.er1 >conftest.err
26023 cat conftest.err >&5
26024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025 (exit $ac_status); } && {
26026 test -z "$ac_c_werror_flag" ||
26027 test ! -s conftest.err
26028 } && test -s conftest$ac_exeext &&
26029 $as_test_x conftest$ac_exeext; then
26030 ac_cv_lib_imagehlp_main=yes
26032 echo "$as_me: failed program was:" >&5
26033 sed 's/^/| /' conftest.$ac_ext >&5
26035 ac_cv_lib_imagehlp_main=no
26038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26039 conftest$ac_exeext conftest.$ac_ext
26040 LIBS=$ac_check_lib_save_LIBS
26042 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26043 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26044 if test $ac_cv_lib_imagehlp_main = yes; then
26045 cat >>confdefs.h <<_ACEOF
26046 #define HAVE_LIBIMAGEHLP 1
26049 LIBS="-limagehlp $LIBS"
26054 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26055 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
26056 if test "${ac_cv_lib_psapi_main+set}" = set; then
26057 echo $ECHO_N "(cached) $ECHO_C" >&6
26059 ac_check_lib_save_LIBS=$LIBS
26060 LIBS="-lpsapi $LIBS"
26061 cat >conftest.$ac_ext <<_ACEOF
26064 cat confdefs.h >>conftest.$ac_ext
26065 cat >>conftest.$ac_ext <<_ACEOF
26066 /* end confdefs.h. */
26077 rm -f conftest.$ac_objext conftest$ac_exeext
26078 if { (ac_try="$ac_link"
26079 case "(($ac_try" in
26080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26081 *) ac_try_echo=$ac_try;;
26083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26084 (eval "$ac_link") 2>conftest.er1
26086 grep -v '^ *+' conftest.er1 >conftest.err
26088 cat conftest.err >&5
26089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090 (exit $ac_status); } && {
26091 test -z "$ac_c_werror_flag" ||
26092 test ! -s conftest.err
26093 } && test -s conftest$ac_exeext &&
26094 $as_test_x conftest$ac_exeext; then
26095 ac_cv_lib_psapi_main=yes
26097 echo "$as_me: failed program was:" >&5
26098 sed 's/^/| /' conftest.$ac_ext >&5
26100 ac_cv_lib_psapi_main=no
26103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26104 conftest$ac_exeext conftest.$ac_ext
26105 LIBS=$ac_check_lib_save_LIBS
26107 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
26108 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
26109 if test $ac_cv_lib_psapi_main = yes; then
26110 cat >>confdefs.h <<_ACEOF
26111 #define HAVE_LIBPSAPI 1
26114 LIBS="-lpsapi $LIBS"
26120 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
26121 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
26122 if test "${ac_cv_search_dlopen+set}" = set; then
26123 echo $ECHO_N "(cached) $ECHO_C" >&6
26125 ac_func_search_save_LIBS=$LIBS
26126 cat >conftest.$ac_ext <<_ACEOF
26129 cat confdefs.h >>conftest.$ac_ext
26130 cat >>conftest.$ac_ext <<_ACEOF
26131 /* end confdefs.h. */
26133 /* Override any GCC internal prototype to avoid an error.
26134 Use char because int might match the return type of a GCC
26135 builtin and then its argument prototype would still apply. */
26148 for ac_lib in '' dl; do
26149 if test -z "$ac_lib"; then
26150 ac_res="none required"
26153 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26155 rm -f conftest.$ac_objext conftest$ac_exeext
26156 if { (ac_try="$ac_link"
26157 case "(($ac_try" in
26158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26159 *) ac_try_echo=$ac_try;;
26161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26162 (eval "$ac_link") 2>conftest.er1
26164 grep -v '^ *+' conftest.er1 >conftest.err
26166 cat conftest.err >&5
26167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26168 (exit $ac_status); } && {
26169 test -z "$ac_c_werror_flag" ||
26170 test ! -s conftest.err
26171 } && test -s conftest$ac_exeext &&
26172 $as_test_x conftest$ac_exeext; then
26173 ac_cv_search_dlopen=$ac_res
26175 echo "$as_me: failed program was:" >&5
26176 sed 's/^/| /' conftest.$ac_ext >&5
26181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26183 if test "${ac_cv_search_dlopen+set}" = set; then
26187 if test "${ac_cv_search_dlopen+set}" = set; then
26190 ac_cv_search_dlopen=no
26192 rm conftest.$ac_ext
26193 LIBS=$ac_func_search_save_LIBS
26195 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
26196 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
26197 ac_res=$ac_cv_search_dlopen
26198 if test "$ac_res" != no; then
26199 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26201 cat >>confdefs.h <<\_ACEOF
26202 #define HAVE_DLOPEN 1
26206 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
26207 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
26211 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
26212 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
26213 if test "${ac_cv_search_ffi_call+set}" = set; then
26214 echo $ECHO_N "(cached) $ECHO_C" >&6
26216 ac_func_search_save_LIBS=$LIBS
26217 cat >conftest.$ac_ext <<_ACEOF
26220 cat confdefs.h >>conftest.$ac_ext
26221 cat >>conftest.$ac_ext <<_ACEOF
26222 /* end confdefs.h. */
26224 /* Override any GCC internal prototype to avoid an error.
26225 Use char because int might match the return type of a GCC
26226 builtin and then its argument prototype would still apply. */
26234 return ffi_call ();
26239 for ac_lib in '' ffi; do
26240 if test -z "$ac_lib"; then
26241 ac_res="none required"
26244 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26246 rm -f conftest.$ac_objext conftest$ac_exeext
26247 if { (ac_try="$ac_link"
26248 case "(($ac_try" in
26249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26250 *) ac_try_echo=$ac_try;;
26252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26253 (eval "$ac_link") 2>conftest.er1
26255 grep -v '^ *+' conftest.er1 >conftest.err
26257 cat conftest.err >&5
26258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259 (exit $ac_status); } && {
26260 test -z "$ac_c_werror_flag" ||
26261 test ! -s conftest.err
26262 } && test -s conftest$ac_exeext &&
26263 $as_test_x conftest$ac_exeext; then
26264 ac_cv_search_ffi_call=$ac_res
26266 echo "$as_me: failed program was:" >&5
26267 sed 's/^/| /' conftest.$ac_ext >&5
26272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26274 if test "${ac_cv_search_ffi_call+set}" = set; then
26278 if test "${ac_cv_search_ffi_call+set}" = set; then
26281 ac_cv_search_ffi_call=no
26283 rm conftest.$ac_ext
26284 LIBS=$ac_func_search_save_LIBS
26286 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
26287 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
26288 ac_res=$ac_cv_search_ffi_call
26289 if test "$ac_res" != no; then
26290 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26292 cat >>confdefs.h <<\_ACEOF
26293 #define HAVE_FFI_CALL 1
26297 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
26298 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
26302 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
26303 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
26304 if test "${ac_cv_search_mallinfo+set}" = set; then
26305 echo $ECHO_N "(cached) $ECHO_C" >&6
26307 ac_func_search_save_LIBS=$LIBS
26308 cat >conftest.$ac_ext <<_ACEOF
26311 cat confdefs.h >>conftest.$ac_ext
26312 cat >>conftest.$ac_ext <<_ACEOF
26313 /* end confdefs.h. */
26315 /* Override any GCC internal prototype to avoid an error.
26316 Use char because int might match the return type of a GCC
26317 builtin and then its argument prototype would still apply. */
26325 return mallinfo ();
26330 for ac_lib in '' malloc; do
26331 if test -z "$ac_lib"; then
26332 ac_res="none required"
26335 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26337 rm -f conftest.$ac_objext conftest$ac_exeext
26338 if { (ac_try="$ac_link"
26339 case "(($ac_try" in
26340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26341 *) ac_try_echo=$ac_try;;
26343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26344 (eval "$ac_link") 2>conftest.er1
26346 grep -v '^ *+' conftest.er1 >conftest.err
26348 cat conftest.err >&5
26349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350 (exit $ac_status); } && {
26351 test -z "$ac_c_werror_flag" ||
26352 test ! -s conftest.err
26353 } && test -s conftest$ac_exeext &&
26354 $as_test_x conftest$ac_exeext; then
26355 ac_cv_search_mallinfo=$ac_res
26357 echo "$as_me: failed program was:" >&5
26358 sed 's/^/| /' conftest.$ac_ext >&5
26363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26365 if test "${ac_cv_search_mallinfo+set}" = set; then
26369 if test "${ac_cv_search_mallinfo+set}" = set; then
26372 ac_cv_search_mallinfo=no
26374 rm conftest.$ac_ext
26375 LIBS=$ac_func_search_save_LIBS
26377 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
26378 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
26379 ac_res=$ac_cv_search_mallinfo
26380 if test "$ac_res" != no; then
26381 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26383 cat >>confdefs.h <<\_ACEOF
26384 #define HAVE_MALLINFO 1
26390 if test "$ENABLE_THREADS" -eq 1 ; then
26392 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
26393 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
26394 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
26395 echo $ECHO_N "(cached) $ECHO_C" >&6
26397 ac_check_lib_save_LIBS=$LIBS
26398 LIBS="-lpthread $LIBS"
26399 cat >conftest.$ac_ext <<_ACEOF
26402 cat confdefs.h >>conftest.$ac_ext
26403 cat >>conftest.$ac_ext <<_ACEOF
26404 /* end confdefs.h. */
26406 /* Override any GCC internal prototype to avoid an error.
26407 Use char because int might match the return type of a GCC
26408 builtin and then its argument prototype would still apply. */
26412 char pthread_mutex_init ();
26416 return pthread_mutex_init ();
26421 rm -f conftest.$ac_objext conftest$ac_exeext
26422 if { (ac_try="$ac_link"
26423 case "(($ac_try" in
26424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26425 *) ac_try_echo=$ac_try;;
26427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26428 (eval "$ac_link") 2>conftest.er1
26430 grep -v '^ *+' conftest.er1 >conftest.err
26432 cat conftest.err >&5
26433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434 (exit $ac_status); } && {
26435 test -z "$ac_c_werror_flag" ||
26436 test ! -s conftest.err
26437 } && test -s conftest$ac_exeext &&
26438 $as_test_x conftest$ac_exeext; then
26439 ac_cv_lib_pthread_pthread_mutex_init=yes
26441 echo "$as_me: failed program was:" >&5
26442 sed 's/^/| /' conftest.$ac_ext >&5
26444 ac_cv_lib_pthread_pthread_mutex_init=no
26447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26448 conftest$ac_exeext conftest.$ac_ext
26449 LIBS=$ac_check_lib_save_LIBS
26451 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26452 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
26453 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26454 cat >>confdefs.h <<_ACEOF
26455 #define HAVE_LIBPTHREAD 1
26458 LIBS="-lpthread $LIBS"
26462 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26463 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
26464 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26465 echo $ECHO_N "(cached) $ECHO_C" >&6
26467 ac_func_search_save_LIBS=$LIBS
26468 cat >conftest.$ac_ext <<_ACEOF
26471 cat confdefs.h >>conftest.$ac_ext
26472 cat >>conftest.$ac_ext <<_ACEOF
26473 /* end confdefs.h. */
26475 /* Override any GCC internal prototype to avoid an error.
26476 Use char because int might match the return type of a GCC
26477 builtin and then its argument prototype would still apply. */
26481 char pthread_mutex_lock ();
26485 return pthread_mutex_lock ();
26490 for ac_lib in '' pthread; do
26491 if test -z "$ac_lib"; then
26492 ac_res="none required"
26495 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26497 rm -f conftest.$ac_objext conftest$ac_exeext
26498 if { (ac_try="$ac_link"
26499 case "(($ac_try" in
26500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26501 *) ac_try_echo=$ac_try;;
26503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26504 (eval "$ac_link") 2>conftest.er1
26506 grep -v '^ *+' conftest.er1 >conftest.err
26508 cat conftest.err >&5
26509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510 (exit $ac_status); } && {
26511 test -z "$ac_c_werror_flag" ||
26512 test ! -s conftest.err
26513 } && test -s conftest$ac_exeext &&
26514 $as_test_x conftest$ac_exeext; then
26515 ac_cv_search_pthread_mutex_lock=$ac_res
26517 echo "$as_me: failed program was:" >&5
26518 sed 's/^/| /' conftest.$ac_ext >&5
26523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26525 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26529 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26532 ac_cv_search_pthread_mutex_lock=no
26534 rm conftest.$ac_ext
26535 LIBS=$ac_func_search_save_LIBS
26537 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26538 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
26539 ac_res=$ac_cv_search_pthread_mutex_lock
26540 if test "$ac_res" != no; then
26541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26543 cat >>confdefs.h <<\_ACEOF
26544 #define HAVE_PTHREAD_MUTEX_LOCK 1
26552 # Check whether --with-udis86 was given.
26553 if test "${with_udis86+set}" = set; then
26554 withval=$with_udis86;
26559 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
26562 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
26563 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
26564 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
26565 echo $ECHO_N "(cached) $ECHO_C" >&6
26567 ac_check_lib_save_LIBS=$LIBS
26568 LIBS="-ludis86 $LIBS"
26569 cat >conftest.$ac_ext <<_ACEOF
26572 cat confdefs.h >>conftest.$ac_ext
26573 cat >>conftest.$ac_ext <<_ACEOF
26574 /* end confdefs.h. */
26576 /* Override any GCC internal prototype to avoid an error.
26577 Use char because int might match the return type of a GCC
26578 builtin and then its argument prototype would still apply. */
26591 rm -f conftest.$ac_objext conftest$ac_exeext
26592 if { (ac_try="$ac_link"
26593 case "(($ac_try" in
26594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26595 *) ac_try_echo=$ac_try;;
26597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26598 (eval "$ac_link") 2>conftest.er1
26600 grep -v '^ *+' conftest.er1 >conftest.err
26602 cat conftest.err >&5
26603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26604 (exit $ac_status); } && {
26605 test -z "$ac_c_werror_flag" ||
26606 test ! -s conftest.err
26607 } && test -s conftest$ac_exeext &&
26608 $as_test_x conftest$ac_exeext; then
26609 ac_cv_lib_udis86_ud_init=yes
26611 echo "$as_me: failed program was:" >&5
26612 sed 's/^/| /' conftest.$ac_ext >&5
26614 ac_cv_lib_udis86_ud_init=no
26617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26618 conftest$ac_exeext conftest.$ac_ext
26619 LIBS=$ac_check_lib_save_LIBS
26621 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
26622 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
26623 if test $ac_cv_lib_udis86_ud_init = yes; then
26624 cat >>confdefs.h <<_ACEOF
26625 #define HAVE_LIBUDIS86 1
26628 LIBS="-ludis86 $LIBS"
26632 echo "Error! You need to have libudis86 around."
26644 cat >>confdefs.h <<_ACEOF
26645 #define USE_UDIS86 $USE_UDIS86
26655 ac_header_dirent=no
26656 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26657 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26658 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26659 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
26660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26661 echo $ECHO_N "(cached) $ECHO_C" >&6
26663 cat >conftest.$ac_ext <<_ACEOF
26666 cat confdefs.h >>conftest.$ac_ext
26667 cat >>conftest.$ac_ext <<_ACEOF
26668 /* end confdefs.h. */
26669 #include <sys/types.h>
26681 rm -f conftest.$ac_objext
26682 if { (ac_try="$ac_compile"
26683 case "(($ac_try" in
26684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26685 *) ac_try_echo=$ac_try;;
26687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26688 (eval "$ac_compile") 2>conftest.er1
26690 grep -v '^ *+' conftest.er1 >conftest.err
26692 cat conftest.err >&5
26693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694 (exit $ac_status); } && {
26695 test -z "$ac_c_werror_flag" ||
26696 test ! -s conftest.err
26697 } && test -s conftest.$ac_objext; then
26698 eval "$as_ac_Header=yes"
26700 echo "$as_me: failed program was:" >&5
26701 sed 's/^/| /' conftest.$ac_ext >&5
26703 eval "$as_ac_Header=no"
26706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26708 ac_res=`eval echo '${'$as_ac_Header'}'`
26709 { echo "$as_me:$LINENO: result: $ac_res" >&5
26710 echo "${ECHO_T}$ac_res" >&6; }
26711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26712 cat >>confdefs.h <<_ACEOF
26713 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26716 ac_header_dirent=$ac_hdr; break
26720 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26721 if test $ac_header_dirent = dirent.h; then
26722 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26723 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26724 if test "${ac_cv_search_opendir+set}" = set; then
26725 echo $ECHO_N "(cached) $ECHO_C" >&6
26727 ac_func_search_save_LIBS=$LIBS
26728 cat >conftest.$ac_ext <<_ACEOF
26731 cat confdefs.h >>conftest.$ac_ext
26732 cat >>conftest.$ac_ext <<_ACEOF
26733 /* end confdefs.h. */
26735 /* Override any GCC internal prototype to avoid an error.
26736 Use char because int might match the return type of a GCC
26737 builtin and then its argument prototype would still apply. */
26750 for ac_lib in '' dir; do
26751 if test -z "$ac_lib"; then
26752 ac_res="none required"
26755 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26757 rm -f conftest.$ac_objext conftest$ac_exeext
26758 if { (ac_try="$ac_link"
26759 case "(($ac_try" in
26760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26761 *) ac_try_echo=$ac_try;;
26763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26764 (eval "$ac_link") 2>conftest.er1
26766 grep -v '^ *+' conftest.er1 >conftest.err
26768 cat conftest.err >&5
26769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770 (exit $ac_status); } && {
26771 test -z "$ac_c_werror_flag" ||
26772 test ! -s conftest.err
26773 } && test -s conftest$ac_exeext &&
26774 $as_test_x conftest$ac_exeext; then
26775 ac_cv_search_opendir=$ac_res
26777 echo "$as_me: failed program was:" >&5
26778 sed 's/^/| /' conftest.$ac_ext >&5
26783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26785 if test "${ac_cv_search_opendir+set}" = set; then
26789 if test "${ac_cv_search_opendir+set}" = set; then
26792 ac_cv_search_opendir=no
26794 rm conftest.$ac_ext
26795 LIBS=$ac_func_search_save_LIBS
26797 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26798 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26799 ac_res=$ac_cv_search_opendir
26800 if test "$ac_res" != no; then
26801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26806 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26807 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26808 if test "${ac_cv_search_opendir+set}" = set; then
26809 echo $ECHO_N "(cached) $ECHO_C" >&6
26811 ac_func_search_save_LIBS=$LIBS
26812 cat >conftest.$ac_ext <<_ACEOF
26815 cat confdefs.h >>conftest.$ac_ext
26816 cat >>conftest.$ac_ext <<_ACEOF
26817 /* end confdefs.h. */
26819 /* Override any GCC internal prototype to avoid an error.
26820 Use char because int might match the return type of a GCC
26821 builtin and then its argument prototype would still apply. */
26834 for ac_lib in '' x; do
26835 if test -z "$ac_lib"; then
26836 ac_res="none required"
26839 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26841 rm -f conftest.$ac_objext conftest$ac_exeext
26842 if { (ac_try="$ac_link"
26843 case "(($ac_try" in
26844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26845 *) ac_try_echo=$ac_try;;
26847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26848 (eval "$ac_link") 2>conftest.er1
26850 grep -v '^ *+' conftest.er1 >conftest.err
26852 cat conftest.err >&5
26853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854 (exit $ac_status); } && {
26855 test -z "$ac_c_werror_flag" ||
26856 test ! -s conftest.err
26857 } && test -s conftest$ac_exeext &&
26858 $as_test_x conftest$ac_exeext; then
26859 ac_cv_search_opendir=$ac_res
26861 echo "$as_me: failed program was:" >&5
26862 sed 's/^/| /' conftest.$ac_ext >&5
26867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26869 if test "${ac_cv_search_opendir+set}" = set; then
26873 if test "${ac_cv_search_opendir+set}" = set; then
26876 ac_cv_search_opendir=no
26878 rm conftest.$ac_ext
26879 LIBS=$ac_func_search_save_LIBS
26881 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26882 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26883 ac_res=$ac_cv_search_opendir
26884 if test "$ac_res" != no; then
26885 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26891 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26892 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
26893 if test "${ac_cv_header_mmap_anon+set}" = set; then
26894 echo $ECHO_N "(cached) $ECHO_C" >&6
26897 ac_cpp='$CPP $CPPFLAGS'
26898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26902 cat >conftest.$ac_ext <<_ACEOF
26905 cat confdefs.h >>conftest.$ac_ext
26906 cat >>conftest.$ac_ext <<_ACEOF
26907 /* end confdefs.h. */
26908 #include <sys/mman.h>
26909 #include <unistd.h>
26914 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26919 rm -f conftest.$ac_objext
26920 if { (ac_try="$ac_compile"
26921 case "(($ac_try" in
26922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26923 *) ac_try_echo=$ac_try;;
26925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26926 (eval "$ac_compile") 2>conftest.er1
26928 grep -v '^ *+' conftest.er1 >conftest.err
26930 cat conftest.err >&5
26931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932 (exit $ac_status); } && {
26933 test -z "$ac_c_werror_flag" ||
26934 test ! -s conftest.err
26935 } && test -s conftest.$ac_objext; then
26936 ac_cv_header_mmap_anon=yes
26938 echo "$as_me: failed program was:" >&5
26939 sed 's/^/| /' conftest.$ac_ext >&5
26941 ac_cv_header_mmap_anon=no
26944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26946 ac_cpp='$CPP $CPPFLAGS'
26947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26953 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26954 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
26955 if test "$ac_cv_header_mmap_anon" = yes; then
26957 cat >>confdefs.h <<\_ACEOF
26958 #define HAVE_MMAP_ANONYMOUS 1
26963 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26964 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
26965 if test "${ac_cv_header_stat_broken+set}" = set; then
26966 echo $ECHO_N "(cached) $ECHO_C" >&6
26968 cat >conftest.$ac_ext <<_ACEOF
26971 cat confdefs.h >>conftest.$ac_ext
26972 cat >>conftest.$ac_ext <<_ACEOF
26973 /* end confdefs.h. */
26974 #include <sys/types.h>
26975 #include <sys/stat.h>
26977 #if defined S_ISBLK && defined S_IFDIR
26978 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26981 #if defined S_ISBLK && defined S_IFCHR
26982 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26985 #if defined S_ISLNK && defined S_IFREG
26986 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26989 #if defined S_ISSOCK && defined S_IFREG
26990 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26994 rm -f conftest.$ac_objext
26995 if { (ac_try="$ac_compile"
26996 case "(($ac_try" in
26997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26998 *) ac_try_echo=$ac_try;;
27000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27001 (eval "$ac_compile") 2>conftest.er1
27003 grep -v '^ *+' conftest.er1 >conftest.err
27005 cat conftest.err >&5
27006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007 (exit $ac_status); } && {
27008 test -z "$ac_c_werror_flag" ||
27009 test ! -s conftest.err
27010 } && test -s conftest.$ac_objext; then
27011 ac_cv_header_stat_broken=no
27013 echo "$as_me: failed program was:" >&5
27014 sed 's/^/| /' conftest.$ac_ext >&5
27016 ac_cv_header_stat_broken=yes
27019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27021 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27022 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
27023 if test $ac_cv_header_stat_broken = yes; then
27025 cat >>confdefs.h <<\_ACEOF
27026 #define STAT_MACROS_BROKEN 1
27031 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27032 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
27033 if test "${ac_cv_header_stdc+set}" = set; then
27034 echo $ECHO_N "(cached) $ECHO_C" >&6
27036 cat >conftest.$ac_ext <<_ACEOF
27039 cat confdefs.h >>conftest.$ac_ext
27040 cat >>conftest.$ac_ext <<_ACEOF
27041 /* end confdefs.h. */
27042 #include <stdlib.h>
27043 #include <stdarg.h>
27044 #include <string.h>
27055 rm -f conftest.$ac_objext
27056 if { (ac_try="$ac_compile"
27057 case "(($ac_try" in
27058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27059 *) ac_try_echo=$ac_try;;
27061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27062 (eval "$ac_compile") 2>conftest.er1
27064 grep -v '^ *+' conftest.er1 >conftest.err
27066 cat conftest.err >&5
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); } && {
27069 test -z "$ac_c_werror_flag" ||
27070 test ! -s conftest.err
27071 } && test -s conftest.$ac_objext; then
27072 ac_cv_header_stdc=yes
27074 echo "$as_me: failed program was:" >&5
27075 sed 's/^/| /' conftest.$ac_ext >&5
27077 ac_cv_header_stdc=no
27080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27082 if test $ac_cv_header_stdc = yes; then
27083 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27084 cat >conftest.$ac_ext <<_ACEOF
27087 cat confdefs.h >>conftest.$ac_ext
27088 cat >>conftest.$ac_ext <<_ACEOF
27089 /* end confdefs.h. */
27090 #include <string.h>
27093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27094 $EGREP "memchr" >/dev/null 2>&1; then
27097 ac_cv_header_stdc=no
27103 if test $ac_cv_header_stdc = yes; then
27104 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27105 cat >conftest.$ac_ext <<_ACEOF
27108 cat confdefs.h >>conftest.$ac_ext
27109 cat >>conftest.$ac_ext <<_ACEOF
27110 /* end confdefs.h. */
27111 #include <stdlib.h>
27114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27115 $EGREP "free" >/dev/null 2>&1; then
27118 ac_cv_header_stdc=no
27124 if test $ac_cv_header_stdc = yes; then
27125 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27126 if test "$cross_compiling" = yes; then
27129 cat >conftest.$ac_ext <<_ACEOF
27132 cat confdefs.h >>conftest.$ac_ext
27133 cat >>conftest.$ac_ext <<_ACEOF
27134 /* end confdefs.h. */
27136 #include <stdlib.h>
27137 #if ((' ' & 0x0FF) == 0x020)
27138 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27139 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27141 # define ISLOWER(c) \
27142 (('a' <= (c) && (c) <= 'i') \
27143 || ('j' <= (c) && (c) <= 'r') \
27144 || ('s' <= (c) && (c) <= 'z'))
27145 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27148 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27153 for (i = 0; i < 256; i++)
27154 if (XOR (islower (i), ISLOWER (i))
27155 || toupper (i) != TOUPPER (i))
27160 rm -f conftest$ac_exeext
27161 if { (ac_try="$ac_link"
27162 case "(($ac_try" in
27163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27164 *) ac_try_echo=$ac_try;;
27166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27167 (eval "$ac_link") 2>&5
27169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27171 { (case "(($ac_try" in
27172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27173 *) ac_try_echo=$ac_try;;
27175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27176 (eval "$ac_try") 2>&5
27178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179 (exit $ac_status); }; }; then
27182 echo "$as_me: program exited with status $ac_status" >&5
27183 echo "$as_me: failed program was:" >&5
27184 sed 's/^/| /' conftest.$ac_ext >&5
27186 ( exit $ac_status )
27187 ac_cv_header_stdc=no
27189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27195 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27196 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
27197 if test $ac_cv_header_stdc = yes; then
27199 cat >>confdefs.h <<\_ACEOF
27200 #define STDC_HEADERS 1
27205 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
27206 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
27207 if test "${ac_cv_header_sys_wait_h+set}" = set; then
27208 echo $ECHO_N "(cached) $ECHO_C" >&6
27210 cat >conftest.$ac_ext <<_ACEOF
27213 cat confdefs.h >>conftest.$ac_ext
27214 cat >>conftest.$ac_ext <<_ACEOF
27215 /* end confdefs.h. */
27216 #include <sys/types.h>
27217 #include <sys/wait.h>
27218 #ifndef WEXITSTATUS
27219 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
27222 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
27230 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
27235 rm -f conftest.$ac_objext
27236 if { (ac_try="$ac_compile"
27237 case "(($ac_try" in
27238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27239 *) ac_try_echo=$ac_try;;
27241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27242 (eval "$ac_compile") 2>conftest.er1
27244 grep -v '^ *+' conftest.er1 >conftest.err
27246 cat conftest.err >&5
27247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248 (exit $ac_status); } && {
27249 test -z "$ac_c_werror_flag" ||
27250 test ! -s conftest.err
27251 } && test -s conftest.$ac_objext; then
27252 ac_cv_header_sys_wait_h=yes
27254 echo "$as_me: failed program was:" >&5
27255 sed 's/^/| /' conftest.$ac_ext >&5
27257 ac_cv_header_sys_wait_h=no
27260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27262 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
27263 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
27264 if test $ac_cv_header_sys_wait_h = yes; then
27266 cat >>confdefs.h <<\_ACEOF
27267 #define HAVE_SYS_WAIT_H 1
27272 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27273 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
27274 if test "${ac_cv_header_time+set}" = set; then
27275 echo $ECHO_N "(cached) $ECHO_C" >&6
27277 cat >conftest.$ac_ext <<_ACEOF
27280 cat confdefs.h >>conftest.$ac_ext
27281 cat >>conftest.$ac_ext <<_ACEOF
27282 /* end confdefs.h. */
27283 #include <sys/types.h>
27284 #include <sys/time.h>
27290 if ((struct tm *) 0)
27296 rm -f conftest.$ac_objext
27297 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27305 grep -v '^ *+' conftest.er1 >conftest.err
27307 cat conftest.err >&5
27308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27309 (exit $ac_status); } && {
27310 test -z "$ac_c_werror_flag" ||
27311 test ! -s conftest.err
27312 } && test -s conftest.$ac_objext; then
27313 ac_cv_header_time=yes
27315 echo "$as_me: failed program was:" >&5
27316 sed 's/^/| /' conftest.$ac_ext >&5
27318 ac_cv_header_time=no
27321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27323 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27324 echo "${ECHO_T}$ac_cv_header_time" >&6; }
27325 if test $ac_cv_header_time = yes; then
27327 cat >>confdefs.h <<\_ACEOF
27328 #define TIME_WITH_SYS_TIME 1
27340 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
27342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27347 echo $ECHO_N "(cached) $ECHO_C" >&6
27349 ac_res=`eval echo '${'$as_ac_Header'}'`
27350 { echo "$as_me:$LINENO: result: $ac_res" >&5
27351 echo "${ECHO_T}$ac_res" >&6; }
27353 # Is the header compilable?
27354 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27356 cat >conftest.$ac_ext <<_ACEOF
27359 cat confdefs.h >>conftest.$ac_ext
27360 cat >>conftest.$ac_ext <<_ACEOF
27361 /* end confdefs.h. */
27362 $ac_includes_default
27363 #include <$ac_header>
27365 rm -f conftest.$ac_objext
27366 if { (ac_try="$ac_compile"
27367 case "(($ac_try" in
27368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27369 *) ac_try_echo=$ac_try;;
27371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27372 (eval "$ac_compile") 2>conftest.er1
27374 grep -v '^ *+' conftest.er1 >conftest.err
27376 cat conftest.err >&5
27377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378 (exit $ac_status); } && {
27379 test -z "$ac_c_werror_flag" ||
27380 test ! -s conftest.err
27381 } && test -s conftest.$ac_objext; then
27382 ac_header_compiler=yes
27384 echo "$as_me: failed program was:" >&5
27385 sed 's/^/| /' conftest.$ac_ext >&5
27387 ac_header_compiler=no
27390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27391 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27392 echo "${ECHO_T}$ac_header_compiler" >&6; }
27394 # Is the header present?
27395 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27397 cat >conftest.$ac_ext <<_ACEOF
27400 cat confdefs.h >>conftest.$ac_ext
27401 cat >>conftest.$ac_ext <<_ACEOF
27402 /* end confdefs.h. */
27403 #include <$ac_header>
27405 if { (ac_try="$ac_cpp conftest.$ac_ext"
27406 case "(($ac_try" in
27407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27408 *) ac_try_echo=$ac_try;;
27410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27413 grep -v '^ *+' conftest.er1 >conftest.err
27415 cat conftest.err >&5
27416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417 (exit $ac_status); } >/dev/null && {
27418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27419 test ! -s conftest.err
27421 ac_header_preproc=yes
27423 echo "$as_me: failed program was:" >&5
27424 sed 's/^/| /' conftest.$ac_ext >&5
27426 ac_header_preproc=no
27429 rm -f conftest.err conftest.$ac_ext
27430 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27431 echo "${ECHO_T}$ac_header_preproc" >&6; }
27433 # So? What about this header?
27434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27440 ac_header_preproc=yes
27443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27446 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27450 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27456 ## ----------------------------------- ##
27457 ## Report this to llvmbugs@cs.uiuc.edu ##
27458 ## ----------------------------------- ##
27460 ) | sed "s/^/$as_me: WARNING: /" >&2
27463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27466 echo $ECHO_N "(cached) $ECHO_C" >&6
27468 eval "$as_ac_Header=\$ac_header_preproc"
27470 ac_res=`eval echo '${'$as_ac_Header'}'`
27471 { echo "$as_me:$LINENO: result: $ac_res" >&5
27472 echo "${ECHO_T}$ac_res" >&6; }
27475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27476 cat >>confdefs.h <<_ACEOF
27477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27490 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
27492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27497 echo $ECHO_N "(cached) $ECHO_C" >&6
27499 ac_res=`eval echo '${'$as_ac_Header'}'`
27500 { echo "$as_me:$LINENO: result: $ac_res" >&5
27501 echo "${ECHO_T}$ac_res" >&6; }
27503 # Is the header compilable?
27504 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27506 cat >conftest.$ac_ext <<_ACEOF
27509 cat confdefs.h >>conftest.$ac_ext
27510 cat >>conftest.$ac_ext <<_ACEOF
27511 /* end confdefs.h. */
27512 $ac_includes_default
27513 #include <$ac_header>
27515 rm -f conftest.$ac_objext
27516 if { (ac_try="$ac_compile"
27517 case "(($ac_try" in
27518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27519 *) ac_try_echo=$ac_try;;
27521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27522 (eval "$ac_compile") 2>conftest.er1
27524 grep -v '^ *+' conftest.er1 >conftest.err
27526 cat conftest.err >&5
27527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528 (exit $ac_status); } && {
27529 test -z "$ac_c_werror_flag" ||
27530 test ! -s conftest.err
27531 } && test -s conftest.$ac_objext; then
27532 ac_header_compiler=yes
27534 echo "$as_me: failed program was:" >&5
27535 sed 's/^/| /' conftest.$ac_ext >&5
27537 ac_header_compiler=no
27540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27542 echo "${ECHO_T}$ac_header_compiler" >&6; }
27544 # Is the header present?
27545 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27547 cat >conftest.$ac_ext <<_ACEOF
27550 cat confdefs.h >>conftest.$ac_ext
27551 cat >>conftest.$ac_ext <<_ACEOF
27552 /* end confdefs.h. */
27553 #include <$ac_header>
27555 if { (ac_try="$ac_cpp conftest.$ac_ext"
27556 case "(($ac_try" in
27557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27558 *) ac_try_echo=$ac_try;;
27560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27563 grep -v '^ *+' conftest.er1 >conftest.err
27565 cat conftest.err >&5
27566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27567 (exit $ac_status); } >/dev/null && {
27568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27569 test ! -s conftest.err
27571 ac_header_preproc=yes
27573 echo "$as_me: failed program was:" >&5
27574 sed 's/^/| /' conftest.$ac_ext >&5
27576 ac_header_preproc=no
27579 rm -f conftest.err conftest.$ac_ext
27580 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27581 echo "${ECHO_T}$ac_header_preproc" >&6; }
27583 # So? What about this header?
27584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27590 ac_header_preproc=yes
27593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27600 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27606 ## ----------------------------------- ##
27607 ## Report this to llvmbugs@cs.uiuc.edu ##
27608 ## ----------------------------------- ##
27610 ) | sed "s/^/$as_me: WARNING: /" >&2
27613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27616 echo $ECHO_N "(cached) $ECHO_C" >&6
27618 eval "$as_ac_Header=\$ac_header_preproc"
27620 ac_res=`eval echo '${'$as_ac_Header'}'`
27621 { echo "$as_me:$LINENO: result: $ac_res" >&5
27622 echo "${ECHO_T}$ac_res" >&6; }
27625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27626 cat >>confdefs.h <<_ACEOF
27627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27635 for ac_header in windows.h
27637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27642 echo $ECHO_N "(cached) $ECHO_C" >&6
27644 ac_res=`eval echo '${'$as_ac_Header'}'`
27645 { echo "$as_me:$LINENO: result: $ac_res" >&5
27646 echo "${ECHO_T}$ac_res" >&6; }
27648 # Is the header compilable?
27649 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27650 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27651 cat >conftest.$ac_ext <<_ACEOF
27654 cat confdefs.h >>conftest.$ac_ext
27655 cat >>conftest.$ac_ext <<_ACEOF
27656 /* end confdefs.h. */
27657 $ac_includes_default
27658 #include <$ac_header>
27660 rm -f conftest.$ac_objext
27661 if { (ac_try="$ac_compile"
27662 case "(($ac_try" in
27663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27664 *) ac_try_echo=$ac_try;;
27666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27667 (eval "$ac_compile") 2>conftest.er1
27669 grep -v '^ *+' conftest.er1 >conftest.err
27671 cat conftest.err >&5
27672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673 (exit $ac_status); } && {
27674 test -z "$ac_c_werror_flag" ||
27675 test ! -s conftest.err
27676 } && test -s conftest.$ac_objext; then
27677 ac_header_compiler=yes
27679 echo "$as_me: failed program was:" >&5
27680 sed 's/^/| /' conftest.$ac_ext >&5
27682 ac_header_compiler=no
27685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27686 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27687 echo "${ECHO_T}$ac_header_compiler" >&6; }
27689 # Is the header present?
27690 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27692 cat >conftest.$ac_ext <<_ACEOF
27695 cat confdefs.h >>conftest.$ac_ext
27696 cat >>conftest.$ac_ext <<_ACEOF
27697 /* end confdefs.h. */
27698 #include <$ac_header>
27700 if { (ac_try="$ac_cpp conftest.$ac_ext"
27701 case "(($ac_try" in
27702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27703 *) ac_try_echo=$ac_try;;
27705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27708 grep -v '^ *+' conftest.er1 >conftest.err
27710 cat conftest.err >&5
27711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712 (exit $ac_status); } >/dev/null && {
27713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27714 test ! -s conftest.err
27716 ac_header_preproc=yes
27718 echo "$as_me: failed program was:" >&5
27719 sed 's/^/| /' conftest.$ac_ext >&5
27721 ac_header_preproc=no
27724 rm -f conftest.err conftest.$ac_ext
27725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27726 echo "${ECHO_T}$ac_header_preproc" >&6; }
27728 # So? What about this header?
27729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27735 ac_header_preproc=yes
27738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27741 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27745 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27751 ## ----------------------------------- ##
27752 ## Report this to llvmbugs@cs.uiuc.edu ##
27753 ## ----------------------------------- ##
27755 ) | sed "s/^/$as_me: WARNING: /" >&2
27758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27761 echo $ECHO_N "(cached) $ECHO_C" >&6
27763 eval "$as_ac_Header=\$ac_header_preproc"
27765 ac_res=`eval echo '${'$as_ac_Header'}'`
27766 { echo "$as_me:$LINENO: result: $ac_res" >&5
27767 echo "${ECHO_T}$ac_res" >&6; }
27770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27771 cat >>confdefs.h <<_ACEOF
27772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27783 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
27785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27790 echo $ECHO_N "(cached) $ECHO_C" >&6
27792 ac_res=`eval echo '${'$as_ac_Header'}'`
27793 { echo "$as_me:$LINENO: result: $ac_res" >&5
27794 echo "${ECHO_T}$ac_res" >&6; }
27796 # Is the header compilable?
27797 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27799 cat >conftest.$ac_ext <<_ACEOF
27802 cat confdefs.h >>conftest.$ac_ext
27803 cat >>conftest.$ac_ext <<_ACEOF
27804 /* end confdefs.h. */
27805 $ac_includes_default
27806 #include <$ac_header>
27808 rm -f conftest.$ac_objext
27809 if { (ac_try="$ac_compile"
27810 case "(($ac_try" in
27811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27812 *) ac_try_echo=$ac_try;;
27814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27815 (eval "$ac_compile") 2>conftest.er1
27817 grep -v '^ *+' conftest.er1 >conftest.err
27819 cat conftest.err >&5
27820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821 (exit $ac_status); } && {
27822 test -z "$ac_c_werror_flag" ||
27823 test ! -s conftest.err
27824 } && test -s conftest.$ac_objext; then
27825 ac_header_compiler=yes
27827 echo "$as_me: failed program was:" >&5
27828 sed 's/^/| /' conftest.$ac_ext >&5
27830 ac_header_compiler=no
27833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27834 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27835 echo "${ECHO_T}$ac_header_compiler" >&6; }
27837 # Is the header present?
27838 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27840 cat >conftest.$ac_ext <<_ACEOF
27843 cat confdefs.h >>conftest.$ac_ext
27844 cat >>conftest.$ac_ext <<_ACEOF
27845 /* end confdefs.h. */
27846 #include <$ac_header>
27848 if { (ac_try="$ac_cpp conftest.$ac_ext"
27849 case "(($ac_try" in
27850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27851 *) ac_try_echo=$ac_try;;
27853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27856 grep -v '^ *+' conftest.er1 >conftest.err
27858 cat conftest.err >&5
27859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27860 (exit $ac_status); } >/dev/null && {
27861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27862 test ! -s conftest.err
27864 ac_header_preproc=yes
27866 echo "$as_me: failed program was:" >&5
27867 sed 's/^/| /' conftest.$ac_ext >&5
27869 ac_header_preproc=no
27872 rm -f conftest.err conftest.$ac_ext
27873 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27874 echo "${ECHO_T}$ac_header_preproc" >&6; }
27876 # So? What about this header?
27877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27882 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27883 ac_header_preproc=yes
27886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27889 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27890 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27891 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27892 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27893 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27896 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27897 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27899 ## ----------------------------------- ##
27900 ## Report this to llvmbugs@cs.uiuc.edu ##
27901 ## ----------------------------------- ##
27903 ) | sed "s/^/$as_me: WARNING: /" >&2
27906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27909 echo $ECHO_N "(cached) $ECHO_C" >&6
27911 eval "$as_ac_Header=\$ac_header_preproc"
27913 ac_res=`eval echo '${'$as_ac_Header'}'`
27914 { echo "$as_me:$LINENO: result: $ac_res" >&5
27915 echo "${ECHO_T}$ac_res" >&6; }
27918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27919 cat >>confdefs.h <<_ACEOF
27920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27930 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
27932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27937 echo $ECHO_N "(cached) $ECHO_C" >&6
27939 ac_res=`eval echo '${'$as_ac_Header'}'`
27940 { echo "$as_me:$LINENO: result: $ac_res" >&5
27941 echo "${ECHO_T}$ac_res" >&6; }
27943 # Is the header compilable?
27944 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27945 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27946 cat >conftest.$ac_ext <<_ACEOF
27949 cat confdefs.h >>conftest.$ac_ext
27950 cat >>conftest.$ac_ext <<_ACEOF
27951 /* end confdefs.h. */
27952 $ac_includes_default
27953 #include <$ac_header>
27955 rm -f conftest.$ac_objext
27956 if { (ac_try="$ac_compile"
27957 case "(($ac_try" in
27958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27959 *) ac_try_echo=$ac_try;;
27961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27962 (eval "$ac_compile") 2>conftest.er1
27964 grep -v '^ *+' conftest.er1 >conftest.err
27966 cat conftest.err >&5
27967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968 (exit $ac_status); } && {
27969 test -z "$ac_c_werror_flag" ||
27970 test ! -s conftest.err
27971 } && test -s conftest.$ac_objext; then
27972 ac_header_compiler=yes
27974 echo "$as_me: failed program was:" >&5
27975 sed 's/^/| /' conftest.$ac_ext >&5
27977 ac_header_compiler=no
27980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27981 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27982 echo "${ECHO_T}$ac_header_compiler" >&6; }
27984 # Is the header present?
27985 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27987 cat >conftest.$ac_ext <<_ACEOF
27990 cat confdefs.h >>conftest.$ac_ext
27991 cat >>conftest.$ac_ext <<_ACEOF
27992 /* end confdefs.h. */
27993 #include <$ac_header>
27995 if { (ac_try="$ac_cpp conftest.$ac_ext"
27996 case "(($ac_try" in
27997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27998 *) ac_try_echo=$ac_try;;
28000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28003 grep -v '^ *+' conftest.er1 >conftest.err
28005 cat conftest.err >&5
28006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28007 (exit $ac_status); } >/dev/null && {
28008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28009 test ! -s conftest.err
28011 ac_header_preproc=yes
28013 echo "$as_me: failed program was:" >&5
28014 sed 's/^/| /' conftest.$ac_ext >&5
28016 ac_header_preproc=no
28019 rm -f conftest.err conftest.$ac_ext
28020 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28021 echo "${ECHO_T}$ac_header_preproc" >&6; }
28023 # So? What about this header?
28024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28030 ac_header_preproc=yes
28033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28036 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28040 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28046 ## ----------------------------------- ##
28047 ## Report this to llvmbugs@cs.uiuc.edu ##
28048 ## ----------------------------------- ##
28050 ) | sed "s/^/$as_me: WARNING: /" >&2
28053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28056 echo $ECHO_N "(cached) $ECHO_C" >&6
28058 eval "$as_ac_Header=\$ac_header_preproc"
28060 ac_res=`eval echo '${'$as_ac_Header'}'`
28061 { echo "$as_me:$LINENO: result: $ac_res" >&5
28062 echo "${ECHO_T}$ac_res" >&6; }
28065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28066 cat >>confdefs.h <<_ACEOF
28067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28074 if test "$ENABLE_THREADS" -eq 1 ; then
28076 for ac_header in pthread.h
28078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28083 echo $ECHO_N "(cached) $ECHO_C" >&6
28085 ac_res=`eval echo '${'$as_ac_Header'}'`
28086 { echo "$as_me:$LINENO: result: $ac_res" >&5
28087 echo "${ECHO_T}$ac_res" >&6; }
28089 # Is the header compilable?
28090 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28092 cat >conftest.$ac_ext <<_ACEOF
28095 cat confdefs.h >>conftest.$ac_ext
28096 cat >>conftest.$ac_ext <<_ACEOF
28097 /* end confdefs.h. */
28098 $ac_includes_default
28099 #include <$ac_header>
28101 rm -f conftest.$ac_objext
28102 if { (ac_try="$ac_compile"
28103 case "(($ac_try" in
28104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28105 *) ac_try_echo=$ac_try;;
28107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28108 (eval "$ac_compile") 2>conftest.er1
28110 grep -v '^ *+' conftest.er1 >conftest.err
28112 cat conftest.err >&5
28113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114 (exit $ac_status); } && {
28115 test -z "$ac_c_werror_flag" ||
28116 test ! -s conftest.err
28117 } && test -s conftest.$ac_objext; then
28118 ac_header_compiler=yes
28120 echo "$as_me: failed program was:" >&5
28121 sed 's/^/| /' conftest.$ac_ext >&5
28123 ac_header_compiler=no
28126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28127 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28128 echo "${ECHO_T}$ac_header_compiler" >&6; }
28130 # Is the header present?
28131 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28133 cat >conftest.$ac_ext <<_ACEOF
28136 cat confdefs.h >>conftest.$ac_ext
28137 cat >>conftest.$ac_ext <<_ACEOF
28138 /* end confdefs.h. */
28139 #include <$ac_header>
28141 if { (ac_try="$ac_cpp conftest.$ac_ext"
28142 case "(($ac_try" in
28143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28144 *) ac_try_echo=$ac_try;;
28146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28149 grep -v '^ *+' conftest.er1 >conftest.err
28151 cat conftest.err >&5
28152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28153 (exit $ac_status); } >/dev/null && {
28154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28155 test ! -s conftest.err
28157 ac_header_preproc=yes
28159 echo "$as_me: failed program was:" >&5
28160 sed 's/^/| /' conftest.$ac_ext >&5
28162 ac_header_preproc=no
28165 rm -f conftest.err conftest.$ac_ext
28166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28167 echo "${ECHO_T}$ac_header_preproc" >&6; }
28169 # So? What about this header?
28170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28176 ac_header_preproc=yes
28179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28192 ## ----------------------------------- ##
28193 ## Report this to llvmbugs@cs.uiuc.edu ##
28194 ## ----------------------------------- ##
28196 ) | sed "s/^/$as_me: WARNING: /" >&2
28199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28202 echo $ECHO_N "(cached) $ECHO_C" >&6
28204 eval "$as_ac_Header=\$ac_header_preproc"
28206 ac_res=`eval echo '${'$as_ac_Header'}'`
28207 { echo "$as_me:$LINENO: result: $ac_res" >&5
28208 echo "${ECHO_T}$ac_res" >&6; }
28211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28212 cat >>confdefs.h <<_ACEOF
28213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28231 for ac_header in ffi.h ffi/ffi.h
28233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28238 echo $ECHO_N "(cached) $ECHO_C" >&6
28240 ac_res=`eval echo '${'$as_ac_Header'}'`
28241 { echo "$as_me:$LINENO: result: $ac_res" >&5
28242 echo "${ECHO_T}$ac_res" >&6; }
28244 # Is the header compilable?
28245 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28247 cat >conftest.$ac_ext <<_ACEOF
28250 cat confdefs.h >>conftest.$ac_ext
28251 cat >>conftest.$ac_ext <<_ACEOF
28252 /* end confdefs.h. */
28253 $ac_includes_default
28254 #include <$ac_header>
28256 rm -f conftest.$ac_objext
28257 if { (ac_try="$ac_compile"
28258 case "(($ac_try" in
28259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28260 *) ac_try_echo=$ac_try;;
28262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28263 (eval "$ac_compile") 2>conftest.er1
28265 grep -v '^ *+' conftest.er1 >conftest.err
28267 cat conftest.err >&5
28268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269 (exit $ac_status); } && {
28270 test -z "$ac_c_werror_flag" ||
28271 test ! -s conftest.err
28272 } && test -s conftest.$ac_objext; then
28273 ac_header_compiler=yes
28275 echo "$as_me: failed program was:" >&5
28276 sed 's/^/| /' conftest.$ac_ext >&5
28278 ac_header_compiler=no
28281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28282 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28283 echo "${ECHO_T}$ac_header_compiler" >&6; }
28285 # Is the header present?
28286 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28288 cat >conftest.$ac_ext <<_ACEOF
28291 cat confdefs.h >>conftest.$ac_ext
28292 cat >>conftest.$ac_ext <<_ACEOF
28293 /* end confdefs.h. */
28294 #include <$ac_header>
28296 if { (ac_try="$ac_cpp conftest.$ac_ext"
28297 case "(($ac_try" in
28298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28299 *) ac_try_echo=$ac_try;;
28301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28304 grep -v '^ *+' conftest.er1 >conftest.err
28306 cat conftest.err >&5
28307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308 (exit $ac_status); } >/dev/null && {
28309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28310 test ! -s conftest.err
28312 ac_header_preproc=yes
28314 echo "$as_me: failed program was:" >&5
28315 sed 's/^/| /' conftest.$ac_ext >&5
28317 ac_header_preproc=no
28320 rm -f conftest.err conftest.$ac_ext
28321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28322 echo "${ECHO_T}$ac_header_preproc" >&6; }
28324 # So? What about this header?
28325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28331 ac_header_preproc=yes
28334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28341 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28347 ## ----------------------------------- ##
28348 ## Report this to llvmbugs@cs.uiuc.edu ##
28349 ## ----------------------------------- ##
28351 ) | sed "s/^/$as_me: WARNING: /" >&2
28354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28357 echo $ECHO_N "(cached) $ECHO_C" >&6
28359 eval "$as_ac_Header=\$ac_header_preproc"
28361 ac_res=`eval echo '${'$as_ac_Header'}'`
28362 { echo "$as_me:$LINENO: result: $ac_res" >&5
28363 echo "${ECHO_T}$ac_res" >&6; }
28366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28367 cat >>confdefs.h <<_ACEOF
28368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28378 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
28379 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
28380 if test "${ac_cv_huge_val_sanity+set}" = set; then
28381 echo $ECHO_N "(cached) $ECHO_C" >&6
28385 ac_cpp='$CXXCPP $CPPFLAGS'
28386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28391 if test "$cross_compiling" = yes; then
28392 ac_cv_huge_val_sanity=yes
28394 cat >conftest.$ac_ext <<_ACEOF
28397 cat confdefs.h >>conftest.$ac_ext
28398 cat >>conftest.$ac_ext <<_ACEOF
28399 /* end confdefs.h. */
28404 double x = HUGE_VAL; return x != x;
28409 rm -f conftest$ac_exeext
28410 if { (ac_try="$ac_link"
28411 case "(($ac_try" in
28412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28413 *) ac_try_echo=$ac_try;;
28415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28416 (eval "$ac_link") 2>&5
28418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28420 { (case "(($ac_try" in
28421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28422 *) ac_try_echo=$ac_try;;
28424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28425 (eval "$ac_try") 2>&5
28427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428 (exit $ac_status); }; }; then
28429 ac_cv_huge_val_sanity=yes
28431 echo "$as_me: program exited with status $ac_status" >&5
28432 echo "$as_me: failed program was:" >&5
28433 sed 's/^/| /' conftest.$ac_ext >&5
28435 ( exit $ac_status )
28436 ac_cv_huge_val_sanity=no
28438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28443 ac_cpp='$CPP $CPPFLAGS'
28444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28450 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
28451 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
28452 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
28455 { echo "$as_me:$LINENO: checking for pid_t" >&5
28456 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
28457 if test "${ac_cv_type_pid_t+set}" = set; then
28458 echo $ECHO_N "(cached) $ECHO_C" >&6
28460 cat >conftest.$ac_ext <<_ACEOF
28463 cat confdefs.h >>conftest.$ac_ext
28464 cat >>conftest.$ac_ext <<_ACEOF
28465 /* end confdefs.h. */
28466 $ac_includes_default
28467 typedef pid_t ac__type_new_;
28471 if ((ac__type_new_ *) 0)
28473 if (sizeof (ac__type_new_))
28479 rm -f conftest.$ac_objext
28480 if { (ac_try="$ac_compile"
28481 case "(($ac_try" in
28482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28483 *) ac_try_echo=$ac_try;;
28485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28486 (eval "$ac_compile") 2>conftest.er1
28488 grep -v '^ *+' conftest.er1 >conftest.err
28490 cat conftest.err >&5
28491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28492 (exit $ac_status); } && {
28493 test -z "$ac_c_werror_flag" ||
28494 test ! -s conftest.err
28495 } && test -s conftest.$ac_objext; then
28496 ac_cv_type_pid_t=yes
28498 echo "$as_me: failed program was:" >&5
28499 sed 's/^/| /' conftest.$ac_ext >&5
28501 ac_cv_type_pid_t=no
28504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28506 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28507 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
28508 if test $ac_cv_type_pid_t = yes; then
28512 cat >>confdefs.h <<_ACEOF
28518 { echo "$as_me:$LINENO: checking for size_t" >&5
28519 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28520 if test "${ac_cv_type_size_t+set}" = set; then
28521 echo $ECHO_N "(cached) $ECHO_C" >&6
28523 cat >conftest.$ac_ext <<_ACEOF
28526 cat confdefs.h >>conftest.$ac_ext
28527 cat >>conftest.$ac_ext <<_ACEOF
28528 /* end confdefs.h. */
28529 $ac_includes_default
28530 typedef size_t ac__type_new_;
28534 if ((ac__type_new_ *) 0)
28536 if (sizeof (ac__type_new_))
28542 rm -f conftest.$ac_objext
28543 if { (ac_try="$ac_compile"
28544 case "(($ac_try" in
28545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28546 *) ac_try_echo=$ac_try;;
28548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28549 (eval "$ac_compile") 2>conftest.er1
28551 grep -v '^ *+' conftest.er1 >conftest.err
28553 cat conftest.err >&5
28554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28555 (exit $ac_status); } && {
28556 test -z "$ac_c_werror_flag" ||
28557 test ! -s conftest.err
28558 } && test -s conftest.$ac_objext; then
28559 ac_cv_type_size_t=yes
28561 echo "$as_me: failed program was:" >&5
28562 sed 's/^/| /' conftest.$ac_ext >&5
28564 ac_cv_type_size_t=no
28567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28569 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28570 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
28571 if test $ac_cv_type_size_t = yes; then
28575 cat >>confdefs.h <<_ACEOF
28576 #define size_t unsigned int
28581 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28582 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
28583 if test "${ac_cv_type_signal+set}" = set; then
28584 echo $ECHO_N "(cached) $ECHO_C" >&6
28586 cat >conftest.$ac_ext <<_ACEOF
28589 cat confdefs.h >>conftest.$ac_ext
28590 cat >>conftest.$ac_ext <<_ACEOF
28591 /* end confdefs.h. */
28592 #include <sys/types.h>
28593 #include <signal.h>
28598 return *(signal (0, 0)) (0) == 1;
28603 rm -f conftest.$ac_objext
28604 if { (ac_try="$ac_compile"
28605 case "(($ac_try" in
28606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28607 *) ac_try_echo=$ac_try;;
28609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28610 (eval "$ac_compile") 2>conftest.er1
28612 grep -v '^ *+' conftest.er1 >conftest.err
28614 cat conftest.err >&5
28615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616 (exit $ac_status); } && {
28617 test -z "$ac_c_werror_flag" ||
28618 test ! -s conftest.err
28619 } && test -s conftest.$ac_objext; then
28620 ac_cv_type_signal=int
28622 echo "$as_me: failed program was:" >&5
28623 sed 's/^/| /' conftest.$ac_ext >&5
28625 ac_cv_type_signal=void
28628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28630 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
28631 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
28633 cat >>confdefs.h <<_ACEOF
28634 #define RETSIGTYPE $ac_cv_type_signal
28638 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28639 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
28640 if test "${ac_cv_struct_tm+set}" = set; then
28641 echo $ECHO_N "(cached) $ECHO_C" >&6
28643 cat >conftest.$ac_ext <<_ACEOF
28646 cat confdefs.h >>conftest.$ac_ext
28647 cat >>conftest.$ac_ext <<_ACEOF
28648 /* end confdefs.h. */
28649 #include <sys/types.h>
28656 int *p = &tm.tm_sec;
28662 rm -f conftest.$ac_objext
28663 if { (ac_try="$ac_compile"
28664 case "(($ac_try" in
28665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28666 *) ac_try_echo=$ac_try;;
28668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28669 (eval "$ac_compile") 2>conftest.er1
28671 grep -v '^ *+' conftest.er1 >conftest.err
28673 cat conftest.err >&5
28674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675 (exit $ac_status); } && {
28676 test -z "$ac_c_werror_flag" ||
28677 test ! -s conftest.err
28678 } && test -s conftest.$ac_objext; then
28679 ac_cv_struct_tm=time.h
28681 echo "$as_me: failed program was:" >&5
28682 sed 's/^/| /' conftest.$ac_ext >&5
28684 ac_cv_struct_tm=sys/time.h
28687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28689 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28690 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
28691 if test $ac_cv_struct_tm = sys/time.h; then
28693 cat >>confdefs.h <<\_ACEOF
28694 #define TM_IN_SYS_TIME 1
28699 { echo "$as_me:$LINENO: checking for int64_t" >&5
28700 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
28701 if test "${ac_cv_type_int64_t+set}" = set; then
28702 echo $ECHO_N "(cached) $ECHO_C" >&6
28704 cat >conftest.$ac_ext <<_ACEOF
28707 cat confdefs.h >>conftest.$ac_ext
28708 cat >>conftest.$ac_ext <<_ACEOF
28709 /* end confdefs.h. */
28710 $ac_includes_default
28711 typedef int64_t ac__type_new_;
28715 if ((ac__type_new_ *) 0)
28717 if (sizeof (ac__type_new_))
28723 rm -f conftest.$ac_objext
28724 if { (ac_try="$ac_compile"
28725 case "(($ac_try" in
28726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28727 *) ac_try_echo=$ac_try;;
28729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28730 (eval "$ac_compile") 2>conftest.er1
28732 grep -v '^ *+' conftest.er1 >conftest.err
28734 cat conftest.err >&5
28735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736 (exit $ac_status); } && {
28737 test -z "$ac_c_werror_flag" ||
28738 test ! -s conftest.err
28739 } && test -s conftest.$ac_objext; then
28740 ac_cv_type_int64_t=yes
28742 echo "$as_me: failed program was:" >&5
28743 sed 's/^/| /' conftest.$ac_ext >&5
28745 ac_cv_type_int64_t=no
28748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28750 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28751 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
28752 if test $ac_cv_type_int64_t = yes; then
28754 cat >>confdefs.h <<_ACEOF
28755 #define HAVE_INT64_T 1
28760 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
28761 echo "$as_me: error: Type int64_t required but not found" >&2;}
28762 { (exit 1); exit 1; }; }
28765 { echo "$as_me:$LINENO: checking for uint64_t" >&5
28766 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
28767 if test "${ac_cv_type_uint64_t+set}" = set; then
28768 echo $ECHO_N "(cached) $ECHO_C" >&6
28770 cat >conftest.$ac_ext <<_ACEOF
28773 cat confdefs.h >>conftest.$ac_ext
28774 cat >>conftest.$ac_ext <<_ACEOF
28775 /* end confdefs.h. */
28776 $ac_includes_default
28777 typedef uint64_t ac__type_new_;
28781 if ((ac__type_new_ *) 0)
28783 if (sizeof (ac__type_new_))
28789 rm -f conftest.$ac_objext
28790 if { (ac_try="$ac_compile"
28791 case "(($ac_try" in
28792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28793 *) ac_try_echo=$ac_try;;
28795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28796 (eval "$ac_compile") 2>conftest.er1
28798 grep -v '^ *+' conftest.er1 >conftest.err
28800 cat conftest.err >&5
28801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28802 (exit $ac_status); } && {
28803 test -z "$ac_c_werror_flag" ||
28804 test ! -s conftest.err
28805 } && test -s conftest.$ac_objext; then
28806 ac_cv_type_uint64_t=yes
28808 echo "$as_me: failed program was:" >&5
28809 sed 's/^/| /' conftest.$ac_ext >&5
28811 ac_cv_type_uint64_t=no
28814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28816 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28817 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
28818 if test $ac_cv_type_uint64_t = yes; then
28820 cat >>confdefs.h <<_ACEOF
28821 #define HAVE_UINT64_T 1
28826 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
28827 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
28828 if test "${ac_cv_type_u_int64_t+set}" = set; then
28829 echo $ECHO_N "(cached) $ECHO_C" >&6
28831 cat >conftest.$ac_ext <<_ACEOF
28834 cat confdefs.h >>conftest.$ac_ext
28835 cat >>conftest.$ac_ext <<_ACEOF
28836 /* end confdefs.h. */
28837 $ac_includes_default
28838 typedef u_int64_t ac__type_new_;
28842 if ((ac__type_new_ *) 0)
28844 if (sizeof (ac__type_new_))
28850 rm -f conftest.$ac_objext
28851 if { (ac_try="$ac_compile"
28852 case "(($ac_try" in
28853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28854 *) ac_try_echo=$ac_try;;
28856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28857 (eval "$ac_compile") 2>conftest.er1
28859 grep -v '^ *+' conftest.er1 >conftest.err
28861 cat conftest.err >&5
28862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863 (exit $ac_status); } && {
28864 test -z "$ac_c_werror_flag" ||
28865 test ! -s conftest.err
28866 } && test -s conftest.$ac_objext; then
28867 ac_cv_type_u_int64_t=yes
28869 echo "$as_me: failed program was:" >&5
28870 sed 's/^/| /' conftest.$ac_ext >&5
28872 ac_cv_type_u_int64_t=no
28875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28877 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28878 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
28879 if test $ac_cv_type_u_int64_t = yes; then
28881 cat >>confdefs.h <<_ACEOF
28882 #define HAVE_U_INT64_T 1
28887 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28888 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28889 { (exit 1); exit 1; }; }
28903 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
28905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28906 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28908 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28909 echo $ECHO_N "(cached) $ECHO_C" >&6
28911 cat >conftest.$ac_ext <<_ACEOF
28914 cat confdefs.h >>conftest.$ac_ext
28915 cat >>conftest.$ac_ext <<_ACEOF
28916 /* end confdefs.h. */
28917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28919 #define $ac_func innocuous_$ac_func
28921 /* System header to define __stub macros and hopefully few prototypes,
28922 which can conflict with char $ac_func (); below.
28923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28924 <limits.h> exists even on freestanding compilers. */
28927 # include <limits.h>
28929 # include <assert.h>
28934 /* Override any GCC internal prototype to avoid an error.
28935 Use char because int might match the return type of a GCC
28936 builtin and then its argument prototype would still apply. */
28941 /* The GNU C library defines this for functions which it implements
28942 to always fail with ENOSYS. Some functions are actually named
28943 something starting with __ and the normal name is an alias. */
28944 #if defined __stub_$ac_func || defined __stub___$ac_func
28951 return $ac_func ();
28956 rm -f conftest.$ac_objext conftest$ac_exeext
28957 if { (ac_try="$ac_link"
28958 case "(($ac_try" in
28959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28960 *) ac_try_echo=$ac_try;;
28962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28963 (eval "$ac_link") 2>conftest.er1
28965 grep -v '^ *+' conftest.er1 >conftest.err
28967 cat conftest.err >&5
28968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969 (exit $ac_status); } && {
28970 test -z "$ac_c_werror_flag" ||
28971 test ! -s conftest.err
28972 } && test -s conftest$ac_exeext &&
28973 $as_test_x conftest$ac_exeext; then
28974 eval "$as_ac_var=yes"
28976 echo "$as_me: failed program was:" >&5
28977 sed 's/^/| /' conftest.$ac_ext >&5
28979 eval "$as_ac_var=no"
28982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28983 conftest$ac_exeext conftest.$ac_ext
28985 ac_res=`eval echo '${'$as_ac_var'}'`
28986 { echo "$as_me:$LINENO: result: $ac_res" >&5
28987 echo "${ECHO_T}$ac_res" >&6; }
28988 if test `eval echo '${'$as_ac_var'}'` = yes; then
28989 cat >>confdefs.h <<_ACEOF
28990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29000 for ac_func in powf fmodf strtof round
29002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29003 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29005 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29006 echo $ECHO_N "(cached) $ECHO_C" >&6
29008 cat >conftest.$ac_ext <<_ACEOF
29011 cat confdefs.h >>conftest.$ac_ext
29012 cat >>conftest.$ac_ext <<_ACEOF
29013 /* end confdefs.h. */
29014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29016 #define $ac_func innocuous_$ac_func
29018 /* System header to define __stub macros and hopefully few prototypes,
29019 which can conflict with char $ac_func (); below.
29020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29021 <limits.h> exists even on freestanding compilers. */
29024 # include <limits.h>
29026 # include <assert.h>
29031 /* Override any GCC internal prototype to avoid an error.
29032 Use char because int might match the return type of a GCC
29033 builtin and then its argument prototype would still apply. */
29038 /* The GNU C library defines this for functions which it implements
29039 to always fail with ENOSYS. Some functions are actually named
29040 something starting with __ and the normal name is an alias. */
29041 #if defined __stub_$ac_func || defined __stub___$ac_func
29048 return $ac_func ();
29053 rm -f conftest.$ac_objext conftest$ac_exeext
29054 if { (ac_try="$ac_link"
29055 case "(($ac_try" in
29056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29057 *) ac_try_echo=$ac_try;;
29059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29060 (eval "$ac_link") 2>conftest.er1
29062 grep -v '^ *+' conftest.er1 >conftest.err
29064 cat conftest.err >&5
29065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066 (exit $ac_status); } && {
29067 test -z "$ac_c_werror_flag" ||
29068 test ! -s conftest.err
29069 } && test -s conftest$ac_exeext &&
29070 $as_test_x conftest$ac_exeext; then
29071 eval "$as_ac_var=yes"
29073 echo "$as_me: failed program was:" >&5
29074 sed 's/^/| /' conftest.$ac_ext >&5
29076 eval "$as_ac_var=no"
29079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29080 conftest$ac_exeext conftest.$ac_ext
29082 ac_res=`eval echo '${'$as_ac_var'}'`
29083 { echo "$as_me:$LINENO: result: $ac_res" >&5
29084 echo "${ECHO_T}$ac_res" >&6; }
29085 if test `eval echo '${'$as_ac_var'}'` = yes; then
29086 cat >>confdefs.h <<_ACEOF
29087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29098 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
29100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29101 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29104 echo $ECHO_N "(cached) $ECHO_C" >&6
29106 cat >conftest.$ac_ext <<_ACEOF
29109 cat confdefs.h >>conftest.$ac_ext
29110 cat >>conftest.$ac_ext <<_ACEOF
29111 /* end confdefs.h. */
29112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29114 #define $ac_func innocuous_$ac_func
29116 /* System header to define __stub macros and hopefully few prototypes,
29117 which can conflict with char $ac_func (); below.
29118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29119 <limits.h> exists even on freestanding compilers. */
29122 # include <limits.h>
29124 # include <assert.h>
29129 /* Override any GCC internal prototype to avoid an error.
29130 Use char because int might match the return type of a GCC
29131 builtin and then its argument prototype would still apply. */
29136 /* The GNU C library defines this for functions which it implements
29137 to always fail with ENOSYS. Some functions are actually named
29138 something starting with __ and the normal name is an alias. */
29139 #if defined __stub_$ac_func || defined __stub___$ac_func
29146 return $ac_func ();
29151 rm -f conftest.$ac_objext conftest$ac_exeext
29152 if { (ac_try="$ac_link"
29153 case "(($ac_try" in
29154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29155 *) ac_try_echo=$ac_try;;
29157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29158 (eval "$ac_link") 2>conftest.er1
29160 grep -v '^ *+' conftest.er1 >conftest.err
29162 cat conftest.err >&5
29163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29164 (exit $ac_status); } && {
29165 test -z "$ac_c_werror_flag" ||
29166 test ! -s conftest.err
29167 } && test -s conftest$ac_exeext &&
29168 $as_test_x conftest$ac_exeext; then
29169 eval "$as_ac_var=yes"
29171 echo "$as_me: failed program was:" >&5
29172 sed 's/^/| /' conftest.$ac_ext >&5
29174 eval "$as_ac_var=no"
29177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29178 conftest$ac_exeext conftest.$ac_ext
29180 ac_res=`eval echo '${'$as_ac_var'}'`
29181 { echo "$as_me:$LINENO: result: $ac_res" >&5
29182 echo "${ECHO_T}$ac_res" >&6; }
29183 if test `eval echo '${'$as_ac_var'}'` = yes; then
29184 cat >>confdefs.h <<_ACEOF
29185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29194 for ac_func in isatty mkdtemp mkstemp
29196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29197 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29199 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29200 echo $ECHO_N "(cached) $ECHO_C" >&6
29202 cat >conftest.$ac_ext <<_ACEOF
29205 cat confdefs.h >>conftest.$ac_ext
29206 cat >>conftest.$ac_ext <<_ACEOF
29207 /* end confdefs.h. */
29208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29210 #define $ac_func innocuous_$ac_func
29212 /* System header to define __stub macros and hopefully few prototypes,
29213 which can conflict with char $ac_func (); below.
29214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29215 <limits.h> exists even on freestanding compilers. */
29218 # include <limits.h>
29220 # include <assert.h>
29225 /* Override any GCC internal prototype to avoid an error.
29226 Use char because int might match the return type of a GCC
29227 builtin and then its argument prototype would still apply. */
29232 /* The GNU C library defines this for functions which it implements
29233 to always fail with ENOSYS. Some functions are actually named
29234 something starting with __ and the normal name is an alias. */
29235 #if defined __stub_$ac_func || defined __stub___$ac_func
29242 return $ac_func ();
29247 rm -f conftest.$ac_objext conftest$ac_exeext
29248 if { (ac_try="$ac_link"
29249 case "(($ac_try" in
29250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29251 *) ac_try_echo=$ac_try;;
29253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29254 (eval "$ac_link") 2>conftest.er1
29256 grep -v '^ *+' conftest.er1 >conftest.err
29258 cat conftest.err >&5
29259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29260 (exit $ac_status); } && {
29261 test -z "$ac_c_werror_flag" ||
29262 test ! -s conftest.err
29263 } && test -s conftest$ac_exeext &&
29264 $as_test_x conftest$ac_exeext; then
29265 eval "$as_ac_var=yes"
29267 echo "$as_me: failed program was:" >&5
29268 sed 's/^/| /' conftest.$ac_ext >&5
29270 eval "$as_ac_var=no"
29273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29274 conftest$ac_exeext conftest.$ac_ext
29276 ac_res=`eval echo '${'$as_ac_var'}'`
29277 { echo "$as_me:$LINENO: result: $ac_res" >&5
29278 echo "${ECHO_T}$ac_res" >&6; }
29279 if test `eval echo '${'$as_ac_var'}'` = yes; then
29280 cat >>confdefs.h <<_ACEOF
29281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29294 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
29296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29297 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29299 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29300 echo $ECHO_N "(cached) $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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29310 #define $ac_func innocuous_$ac_func
29312 /* System header to define __stub macros and hopefully few prototypes,
29313 which can conflict with char $ac_func (); below.
29314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29315 <limits.h> exists even on freestanding compilers. */
29318 # include <limits.h>
29320 # include <assert.h>
29325 /* Override any GCC internal prototype to avoid an error.
29326 Use char because int might match the return type of a GCC
29327 builtin and then its argument prototype would still apply. */
29332 /* The GNU C library defines this for functions which it implements
29333 to always fail with ENOSYS. Some functions are actually named
29334 something starting with __ and the normal name is an alias. */
29335 #if defined __stub_$ac_func || defined __stub___$ac_func
29342 return $ac_func ();
29347 rm -f conftest.$ac_objext conftest$ac_exeext
29348 if { (ac_try="$ac_link"
29349 case "(($ac_try" in
29350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29351 *) ac_try_echo=$ac_try;;
29353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29354 (eval "$ac_link") 2>conftest.er1
29356 grep -v '^ *+' conftest.er1 >conftest.err
29358 cat conftest.err >&5
29359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29360 (exit $ac_status); } && {
29361 test -z "$ac_c_werror_flag" ||
29362 test ! -s conftest.err
29363 } && test -s conftest$ac_exeext &&
29364 $as_test_x conftest$ac_exeext; then
29365 eval "$as_ac_var=yes"
29367 echo "$as_me: failed program was:" >&5
29368 sed 's/^/| /' conftest.$ac_ext >&5
29370 eval "$as_ac_var=no"
29373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29374 conftest$ac_exeext conftest.$ac_ext
29376 ac_res=`eval echo '${'$as_ac_var'}'`
29377 { echo "$as_me:$LINENO: result: $ac_res" >&5
29378 echo "${ECHO_T}$ac_res" >&6; }
29379 if test `eval echo '${'$as_ac_var'}'` = yes; then
29380 cat >>confdefs.h <<_ACEOF
29381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29391 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
29393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29394 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29396 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29397 echo $ECHO_N "(cached) $ECHO_C" >&6
29399 cat >conftest.$ac_ext <<_ACEOF
29402 cat confdefs.h >>conftest.$ac_ext
29403 cat >>conftest.$ac_ext <<_ACEOF
29404 /* end confdefs.h. */
29405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29407 #define $ac_func innocuous_$ac_func
29409 /* System header to define __stub macros and hopefully few prototypes,
29410 which can conflict with char $ac_func (); below.
29411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29412 <limits.h> exists even on freestanding compilers. */
29415 # include <limits.h>
29417 # include <assert.h>
29422 /* Override any GCC internal prototype to avoid an error.
29423 Use char because int might match the return type of a GCC
29424 builtin and then its argument prototype would still apply. */
29429 /* The GNU C library defines this for functions which it implements
29430 to always fail with ENOSYS. Some functions are actually named
29431 something starting with __ and the normal name is an alias. */
29432 #if defined __stub_$ac_func || defined __stub___$ac_func
29439 return $ac_func ();
29444 rm -f conftest.$ac_objext conftest$ac_exeext
29445 if { (ac_try="$ac_link"
29446 case "(($ac_try" in
29447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29448 *) ac_try_echo=$ac_try;;
29450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29451 (eval "$ac_link") 2>conftest.er1
29453 grep -v '^ *+' conftest.er1 >conftest.err
29455 cat conftest.err >&5
29456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29457 (exit $ac_status); } && {
29458 test -z "$ac_c_werror_flag" ||
29459 test ! -s conftest.err
29460 } && test -s conftest$ac_exeext &&
29461 $as_test_x conftest$ac_exeext; then
29462 eval "$as_ac_var=yes"
29464 echo "$as_me: failed program was:" >&5
29465 sed 's/^/| /' conftest.$ac_ext >&5
29467 eval "$as_ac_var=no"
29470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29471 conftest$ac_exeext conftest.$ac_ext
29473 ac_res=`eval echo '${'$as_ac_var'}'`
29474 { echo "$as_me:$LINENO: result: $ac_res" >&5
29475 echo "${ECHO_T}$ac_res" >&6; }
29476 if test `eval echo '${'$as_ac_var'}'` = yes; then
29477 cat >>confdefs.h <<_ACEOF
29478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29488 for ac_func in setjmp longjmp sigsetjmp siglongjmp
29490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29491 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29494 echo $ECHO_N "(cached) $ECHO_C" >&6
29496 cat >conftest.$ac_ext <<_ACEOF
29499 cat confdefs.h >>conftest.$ac_ext
29500 cat >>conftest.$ac_ext <<_ACEOF
29501 /* end confdefs.h. */
29502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29504 #define $ac_func innocuous_$ac_func
29506 /* System header to define __stub macros and hopefully few prototypes,
29507 which can conflict with char $ac_func (); below.
29508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29509 <limits.h> exists even on freestanding compilers. */
29512 # include <limits.h>
29514 # include <assert.h>
29519 /* Override any GCC internal prototype to avoid an error.
29520 Use char because int might match the return type of a GCC
29521 builtin and then its argument prototype would still apply. */
29526 /* The GNU C library defines this for functions which it implements
29527 to always fail with ENOSYS. Some functions are actually named
29528 something starting with __ and the normal name is an alias. */
29529 #if defined __stub_$ac_func || defined __stub___$ac_func
29536 return $ac_func ();
29541 rm -f conftest.$ac_objext conftest$ac_exeext
29542 if { (ac_try="$ac_link"
29543 case "(($ac_try" in
29544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29545 *) ac_try_echo=$ac_try;;
29547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29548 (eval "$ac_link") 2>conftest.er1
29550 grep -v '^ *+' conftest.er1 >conftest.err
29552 cat conftest.err >&5
29553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554 (exit $ac_status); } && {
29555 test -z "$ac_c_werror_flag" ||
29556 test ! -s conftest.err
29557 } && test -s conftest$ac_exeext &&
29558 $as_test_x conftest$ac_exeext; then
29559 eval "$as_ac_var=yes"
29561 echo "$as_me: failed program was:" >&5
29562 sed 's/^/| /' conftest.$ac_ext >&5
29564 eval "$as_ac_var=no"
29567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29568 conftest$ac_exeext conftest.$ac_ext
29570 ac_res=`eval echo '${'$as_ac_var'}'`
29571 { echo "$as_me:$LINENO: result: $ac_res" >&5
29572 echo "${ECHO_T}$ac_res" >&6; }
29573 if test `eval echo '${'$as_ac_var'}'` = yes; then
29574 cat >>confdefs.h <<_ACEOF
29575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29581 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
29582 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
29583 if test "${llvm_cv_c_printf_a+set}" = set; then
29584 echo $ECHO_N "(cached) $ECHO_C" >&6
29587 ac_cpp='$CPP $CPPFLAGS'
29588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29592 if test "$cross_compiling" = yes; then
29593 llvmac_cv_c_printf_a=no
29595 cat >conftest.$ac_ext <<_ACEOF
29599 cat confdefs.h >>conftest.$ac_ext
29600 cat >>conftest.$ac_ext <<_ACEOF
29601 /* end confdefs.h. */
29604 #include <stdlib.h>
29610 volatile double A, B;
29614 sprintf(Buffer, "%a", A);
29618 if (A != 0x1.999999999999ap-4)
29625 rm -f conftest$ac_exeext
29626 if { (ac_try="$ac_link"
29627 case "(($ac_try" in
29628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29629 *) ac_try_echo=$ac_try;;
29631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29632 (eval "$ac_link") 2>&5
29634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29636 { (case "(($ac_try" in
29637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29638 *) ac_try_echo=$ac_try;;
29640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29641 (eval "$ac_try") 2>&5
29643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); }; }; then
29645 llvm_cv_c_printf_a=yes
29647 echo "$as_me: program exited with status $ac_status" >&5
29648 echo "$as_me: failed program was:" >&5
29649 sed 's/^/| /' conftest.$ac_ext >&5
29651 ( exit $ac_status )
29652 llvmac_cv_c_printf_a=no
29654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29659 ac_cpp='$CPP $CPPFLAGS'
29660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29665 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
29666 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
29667 if test "$llvm_cv_c_printf_a" = "yes"; then
29669 cat >>confdefs.h <<\_ACEOF
29670 #define HAVE_PRINTF_A 1
29675 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29676 # for constant arguments. Useless!
29677 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
29678 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
29679 if test "${ac_cv_working_alloca_h+set}" = set; then
29680 echo $ECHO_N "(cached) $ECHO_C" >&6
29682 cat >conftest.$ac_ext <<_ACEOF
29685 cat confdefs.h >>conftest.$ac_ext
29686 cat >>conftest.$ac_ext <<_ACEOF
29687 /* end confdefs.h. */
29688 #include <alloca.h>
29692 char *p = (char *) alloca (2 * sizeof (int));
29698 rm -f conftest.$ac_objext conftest$ac_exeext
29699 if { (ac_try="$ac_link"
29700 case "(($ac_try" in
29701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29702 *) ac_try_echo=$ac_try;;
29704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29705 (eval "$ac_link") 2>conftest.er1
29707 grep -v '^ *+' conftest.er1 >conftest.err
29709 cat conftest.err >&5
29710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29711 (exit $ac_status); } && {
29712 test -z "$ac_c_werror_flag" ||
29713 test ! -s conftest.err
29714 } && test -s conftest$ac_exeext &&
29715 $as_test_x conftest$ac_exeext; then
29716 ac_cv_working_alloca_h=yes
29718 echo "$as_me: failed program was:" >&5
29719 sed 's/^/| /' conftest.$ac_ext >&5
29721 ac_cv_working_alloca_h=no
29724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29725 conftest$ac_exeext conftest.$ac_ext
29727 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
29728 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
29729 if test $ac_cv_working_alloca_h = yes; then
29731 cat >>confdefs.h <<\_ACEOF
29732 #define HAVE_ALLOCA_H 1
29737 { echo "$as_me:$LINENO: checking for alloca" >&5
29738 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
29739 if test "${ac_cv_func_alloca_works+set}" = set; then
29740 echo $ECHO_N "(cached) $ECHO_C" >&6
29742 cat >conftest.$ac_ext <<_ACEOF
29745 cat confdefs.h >>conftest.$ac_ext
29746 cat >>conftest.$ac_ext <<_ACEOF
29747 /* end confdefs.h. */
29749 # define alloca __builtin_alloca
29752 # include <malloc.h>
29753 # define alloca _alloca
29755 # ifdef HAVE_ALLOCA_H
29756 # include <alloca.h>
29761 # ifndef alloca /* predefined by HP cc +Olibcalls */
29772 char *p = (char *) alloca (1);
29778 rm -f conftest.$ac_objext conftest$ac_exeext
29779 if { (ac_try="$ac_link"
29780 case "(($ac_try" in
29781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29782 *) ac_try_echo=$ac_try;;
29784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29785 (eval "$ac_link") 2>conftest.er1
29787 grep -v '^ *+' conftest.er1 >conftest.err
29789 cat conftest.err >&5
29790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791 (exit $ac_status); } && {
29792 test -z "$ac_c_werror_flag" ||
29793 test ! -s conftest.err
29794 } && test -s conftest$ac_exeext &&
29795 $as_test_x conftest$ac_exeext; then
29796 ac_cv_func_alloca_works=yes
29798 echo "$as_me: failed program was:" >&5
29799 sed 's/^/| /' conftest.$ac_ext >&5
29801 ac_cv_func_alloca_works=no
29804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29805 conftest$ac_exeext conftest.$ac_ext
29807 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
29808 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
29810 if test $ac_cv_func_alloca_works = yes; then
29812 cat >>confdefs.h <<\_ACEOF
29813 #define HAVE_ALLOCA 1
29817 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29818 # that cause trouble. Some versions do not even contain alloca or
29819 # contain a buggy version. If you still want to use their alloca,
29820 # use ar to extract alloca.o from them instead of compiling alloca.c.
29822 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
29824 cat >>confdefs.h <<\_ACEOF
29829 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
29830 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
29831 if test "${ac_cv_os_cray+set}" = set; then
29832 echo $ECHO_N "(cached) $ECHO_C" >&6
29834 cat >conftest.$ac_ext <<_ACEOF
29837 cat confdefs.h >>conftest.$ac_ext
29838 cat >>conftest.$ac_ext <<_ACEOF
29839 /* end confdefs.h. */
29840 #if defined CRAY && ! defined CRAY2
29847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29848 $EGREP "webecray" >/dev/null 2>&1; then
29856 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
29857 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
29858 if test $ac_cv_os_cray = yes; then
29859 for ac_func in _getb67 GETB67 getb67; do
29860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29861 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29863 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29864 echo $ECHO_N "(cached) $ECHO_C" >&6
29866 cat >conftest.$ac_ext <<_ACEOF
29869 cat confdefs.h >>conftest.$ac_ext
29870 cat >>conftest.$ac_ext <<_ACEOF
29871 /* end confdefs.h. */
29872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29874 #define $ac_func innocuous_$ac_func
29876 /* System header to define __stub macros and hopefully few prototypes,
29877 which can conflict with char $ac_func (); below.
29878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29879 <limits.h> exists even on freestanding compilers. */
29882 # include <limits.h>
29884 # include <assert.h>
29889 /* Override any GCC internal prototype to avoid an error.
29890 Use char because int might match the return type of a GCC
29891 builtin and then its argument prototype would still apply. */
29896 /* The GNU C library defines this for functions which it implements
29897 to always fail with ENOSYS. Some functions are actually named
29898 something starting with __ and the normal name is an alias. */
29899 #if defined __stub_$ac_func || defined __stub___$ac_func
29906 return $ac_func ();
29911 rm -f conftest.$ac_objext conftest$ac_exeext
29912 if { (ac_try="$ac_link"
29913 case "(($ac_try" in
29914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29915 *) ac_try_echo=$ac_try;;
29917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29918 (eval "$ac_link") 2>conftest.er1
29920 grep -v '^ *+' conftest.er1 >conftest.err
29922 cat conftest.err >&5
29923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29924 (exit $ac_status); } && {
29925 test -z "$ac_c_werror_flag" ||
29926 test ! -s conftest.err
29927 } && test -s conftest$ac_exeext &&
29928 $as_test_x conftest$ac_exeext; then
29929 eval "$as_ac_var=yes"
29931 echo "$as_me: failed program was:" >&5
29932 sed 's/^/| /' conftest.$ac_ext >&5
29934 eval "$as_ac_var=no"
29937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29938 conftest$ac_exeext conftest.$ac_ext
29940 ac_res=`eval echo '${'$as_ac_var'}'`
29941 { echo "$as_me:$LINENO: result: $ac_res" >&5
29942 echo "${ECHO_T}$ac_res" >&6; }
29943 if test `eval echo '${'$as_ac_var'}'` = yes; then
29945 cat >>confdefs.h <<_ACEOF
29946 #define CRAY_STACKSEG_END $ac_func
29955 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29956 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
29957 if test "${ac_cv_c_stack_direction+set}" = set; then
29958 echo $ECHO_N "(cached) $ECHO_C" >&6
29960 if test "$cross_compiling" = yes; then
29961 ac_cv_c_stack_direction=0
29963 cat >conftest.$ac_ext <<_ACEOF
29966 cat confdefs.h >>conftest.$ac_ext
29967 cat >>conftest.$ac_ext <<_ACEOF
29968 /* end confdefs.h. */
29969 $ac_includes_default
29971 find_stack_direction ()
29973 static char *addr = 0;
29978 return find_stack_direction ();
29981 return (&dummy > addr) ? 1 : -1;
29987 return find_stack_direction () < 0;
29990 rm -f conftest$ac_exeext
29991 if { (ac_try="$ac_link"
29992 case "(($ac_try" in
29993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29994 *) ac_try_echo=$ac_try;;
29996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29997 (eval "$ac_link") 2>&5
29999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30001 { (case "(($ac_try" in
30002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30003 *) ac_try_echo=$ac_try;;
30005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30006 (eval "$ac_try") 2>&5
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); }; }; then
30010 ac_cv_c_stack_direction=1
30012 echo "$as_me: program exited with status $ac_status" >&5
30013 echo "$as_me: failed program was:" >&5
30014 sed 's/^/| /' conftest.$ac_ext >&5
30016 ( exit $ac_status )
30017 ac_cv_c_stack_direction=-1
30019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30024 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30025 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
30027 cat >>confdefs.h <<_ACEOF
30028 #define STACK_DIRECTION $ac_cv_c_stack_direction
30035 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30036 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
30037 if test "${ac_cv_func_rand48+set}" = set; then
30038 echo $ECHO_N "(cached) $ECHO_C" >&6
30041 ac_cpp='$CXXCPP $CPPFLAGS'
30042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30046 cat >conftest.$ac_ext <<_ACEOF
30049 cat confdefs.h >>conftest.$ac_ext
30050 cat >>conftest.$ac_ext <<_ACEOF
30051 /* end confdefs.h. */
30052 #include <stdlib.h>
30056 srand48(0);lrand48();drand48();
30061 rm -f conftest.$ac_objext
30062 if { (ac_try="$ac_compile"
30063 case "(($ac_try" in
30064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30065 *) ac_try_echo=$ac_try;;
30067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30068 (eval "$ac_compile") 2>conftest.er1
30070 grep -v '^ *+' conftest.er1 >conftest.err
30072 cat conftest.err >&5
30073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074 (exit $ac_status); } && {
30075 test -z "$ac_cxx_werror_flag" ||
30076 test ! -s conftest.err
30077 } && test -s conftest.$ac_objext; then
30078 ac_cv_func_rand48=yes
30080 echo "$as_me: failed program was:" >&5
30081 sed 's/^/| /' conftest.$ac_ext >&5
30083 ac_cv_func_rand48=no
30086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30088 ac_cpp='$CPP $CPPFLAGS'
30089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30094 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
30095 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
30097 if test "$ac_cv_func_rand48" = "yes" ; then
30099 cat >>confdefs.h <<\_ACEOF
30100 #define HAVE_RAND48 1
30106 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
30107 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
30108 if test "${ac_cv_cxx_namespaces+set}" = set; then
30109 echo $ECHO_N "(cached) $ECHO_C" >&6
30112 ac_cpp='$CXXCPP $CPPFLAGS'
30113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30117 cat >conftest.$ac_ext <<_ACEOF
30120 cat confdefs.h >>conftest.$ac_ext
30121 cat >>conftest.$ac_ext <<_ACEOF
30122 /* end confdefs.h. */
30123 namespace Outer { namespace Inner { int i = 0; }}
30127 using namespace Outer::Inner; return i;
30132 rm -f conftest.$ac_objext
30133 if { (ac_try="$ac_compile"
30134 case "(($ac_try" in
30135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30136 *) ac_try_echo=$ac_try;;
30138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30139 (eval "$ac_compile") 2>conftest.er1
30141 grep -v '^ *+' conftest.er1 >conftest.err
30143 cat conftest.err >&5
30144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30145 (exit $ac_status); } && {
30146 test -z "$ac_cxx_werror_flag" ||
30147 test ! -s conftest.err
30148 } && test -s conftest.$ac_objext; then
30149 ac_cv_cxx_namespaces=yes
30151 echo "$as_me: failed program was:" >&5
30152 sed 's/^/| /' conftest.$ac_ext >&5
30154 ac_cv_cxx_namespaces=no
30157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30159 ac_cpp='$CPP $CPPFLAGS'
30160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30166 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
30167 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
30168 if test "$ac_cv_cxx_namespaces" = yes; then
30170 cat >>confdefs.h <<\_ACEOF
30171 #define HAVE_NAMESPACES
30176 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
30177 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
30178 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
30179 echo $ECHO_N "(cached) $ECHO_C" >&6
30183 ac_cpp='$CXXCPP $CPPFLAGS'
30184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30188 cat >conftest.$ac_ext <<_ACEOF
30191 cat confdefs.h >>conftest.$ac_ext
30192 cat >>conftest.$ac_ext <<_ACEOF
30193 /* end confdefs.h. */
30194 #include <iterator>
30195 #ifdef HAVE_NAMESPACES
30196 using namespace std;
30201 iterator<int,int,int> t; return 0;
30206 rm -f conftest.$ac_objext
30207 if { (ac_try="$ac_compile"
30208 case "(($ac_try" in
30209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30210 *) ac_try_echo=$ac_try;;
30212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30213 (eval "$ac_compile") 2>conftest.er1
30215 grep -v '^ *+' conftest.er1 >conftest.err
30217 cat conftest.err >&5
30218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30219 (exit $ac_status); } && {
30220 test -z "$ac_cxx_werror_flag" ||
30221 test ! -s conftest.err
30222 } && test -s conftest.$ac_objext; then
30223 ac_cv_cxx_have_std_iterator=yes
30225 echo "$as_me: failed program was:" >&5
30226 sed 's/^/| /' conftest.$ac_ext >&5
30228 ac_cv_cxx_have_std_iterator=no
30231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30233 ac_cpp='$CPP $CPPFLAGS'
30234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30240 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
30241 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
30242 if test "$ac_cv_cxx_have_std_iterator" = yes
30245 cat >>confdefs.h <<\_ACEOF
30246 #define HAVE_STD_ITERATOR 1
30251 cat >>confdefs.h <<\_ACEOF
30252 #define HAVE_STD_ITERATOR 0
30257 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
30258 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
30259 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
30260 echo $ECHO_N "(cached) $ECHO_C" >&6
30264 ac_cpp='$CXXCPP $CPPFLAGS'
30265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30269 cat >conftest.$ac_ext <<_ACEOF
30272 cat confdefs.h >>conftest.$ac_ext
30273 cat >>conftest.$ac_ext <<_ACEOF
30274 /* end confdefs.h. */
30275 #include <iterator>
30276 #ifdef HAVE_NAMESPACES
30277 using namespace std;
30282 bidirectional_iterator<int,int> t; return 0;
30287 rm -f conftest.$ac_objext
30288 if { (ac_try="$ac_compile"
30289 case "(($ac_try" in
30290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30291 *) ac_try_echo=$ac_try;;
30293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30294 (eval "$ac_compile") 2>conftest.er1
30296 grep -v '^ *+' conftest.er1 >conftest.err
30298 cat conftest.err >&5
30299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30300 (exit $ac_status); } && {
30301 test -z "$ac_cxx_werror_flag" ||
30302 test ! -s conftest.err
30303 } && test -s conftest.$ac_objext; then
30304 ac_cv_cxx_have_bi_iterator=yes
30306 echo "$as_me: failed program was:" >&5
30307 sed 's/^/| /' conftest.$ac_ext >&5
30309 ac_cv_cxx_have_bi_iterator=no
30312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30314 ac_cpp='$CPP $CPPFLAGS'
30315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30321 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
30322 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
30323 if test "$ac_cv_cxx_have_bi_iterator" = yes
30326 cat >>confdefs.h <<\_ACEOF
30327 #define HAVE_BI_ITERATOR 1
30332 cat >>confdefs.h <<\_ACEOF
30333 #define HAVE_BI_ITERATOR 0
30338 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
30339 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
30340 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
30341 echo $ECHO_N "(cached) $ECHO_C" >&6
30345 ac_cpp='$CXXCPP $CPPFLAGS'
30346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30350 cat >conftest.$ac_ext <<_ACEOF
30353 cat confdefs.h >>conftest.$ac_ext
30354 cat >>conftest.$ac_ext <<_ACEOF
30355 /* end confdefs.h. */
30356 #include <iterator>
30357 #ifdef HAVE_NAMESPACES
30358 using namespace std;
30363 forward_iterator<int,int> t; return 0;
30368 rm -f conftest.$ac_objext
30369 if { (ac_try="$ac_compile"
30370 case "(($ac_try" in
30371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30372 *) ac_try_echo=$ac_try;;
30374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30375 (eval "$ac_compile") 2>conftest.er1
30377 grep -v '^ *+' conftest.er1 >conftest.err
30379 cat conftest.err >&5
30380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30381 (exit $ac_status); } && {
30382 test -z "$ac_cxx_werror_flag" ||
30383 test ! -s conftest.err
30384 } && test -s conftest.$ac_objext; then
30385 ac_cv_cxx_have_fwd_iterator=yes
30387 echo "$as_me: failed program was:" >&5
30388 sed 's/^/| /' conftest.$ac_ext >&5
30390 ac_cv_cxx_have_fwd_iterator=no
30393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30395 ac_cpp='$CPP $CPPFLAGS'
30396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30402 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
30403 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
30404 if test "$ac_cv_cxx_have_fwd_iterator" = yes
30407 cat >>confdefs.h <<\_ACEOF
30408 #define HAVE_FWD_ITERATOR 1
30413 cat >>confdefs.h <<\_ACEOF
30414 #define HAVE_FWD_ITERATOR 0
30420 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
30421 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
30422 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
30423 echo $ECHO_N "(cached) $ECHO_C" >&6
30426 ac_cpp='$CXXCPP $CPPFLAGS'
30427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30431 cat >conftest.$ac_ext <<_ACEOF
30434 cat confdefs.h >>conftest.$ac_ext
30435 cat >>conftest.$ac_ext <<_ACEOF
30436 /* end confdefs.h. */
30446 rm -f conftest.$ac_objext
30447 if { (ac_try="$ac_compile"
30448 case "(($ac_try" in
30449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30450 *) ac_try_echo=$ac_try;;
30452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30453 (eval "$ac_compile") 2>conftest.er1
30455 grep -v '^ *+' conftest.er1 >conftest.err
30457 cat conftest.err >&5
30458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30459 (exit $ac_status); } && {
30460 test -z "$ac_cxx_werror_flag" ||
30461 test ! -s conftest.err
30462 } && test -s conftest.$ac_objext; then
30463 ac_cv_func_isnan_in_math_h=yes
30465 echo "$as_me: failed program was:" >&5
30466 sed 's/^/| /' conftest.$ac_ext >&5
30468 ac_cv_func_isnan_in_math_h=no
30471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30473 ac_cpp='$CPP $CPPFLAGS'
30474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30479 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
30480 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
30483 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
30485 cat >>confdefs.h <<\_ACEOF
30486 #define HAVE_ISNAN_IN_MATH_H 1
30491 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
30492 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
30493 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
30494 echo $ECHO_N "(cached) $ECHO_C" >&6
30497 ac_cpp='$CXXCPP $CPPFLAGS'
30498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30502 cat >conftest.$ac_ext <<_ACEOF
30505 cat confdefs.h >>conftest.$ac_ext
30506 cat >>conftest.$ac_ext <<_ACEOF
30507 /* end confdefs.h. */
30517 rm -f conftest.$ac_objext
30518 if { (ac_try="$ac_compile"
30519 case "(($ac_try" in
30520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30521 *) ac_try_echo=$ac_try;;
30523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30524 (eval "$ac_compile") 2>conftest.er1
30526 grep -v '^ *+' conftest.er1 >conftest.err
30528 cat conftest.err >&5
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); } && {
30531 test -z "$ac_cxx_werror_flag" ||
30532 test ! -s conftest.err
30533 } && test -s conftest.$ac_objext; then
30534 ac_cv_func_isnan_in_cmath=yes
30536 echo "$as_me: failed program was:" >&5
30537 sed 's/^/| /' conftest.$ac_ext >&5
30539 ac_cv_func_isnan_in_cmath=no
30542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30544 ac_cpp='$CPP $CPPFLAGS'
30545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30550 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30551 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
30553 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
30555 cat >>confdefs.h <<\_ACEOF
30556 #define HAVE_ISNAN_IN_CMATH 1
30561 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30562 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
30563 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30564 echo $ECHO_N "(cached) $ECHO_C" >&6
30567 ac_cpp='$CXXCPP $CPPFLAGS'
30568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30572 cat >conftest.$ac_ext <<_ACEOF
30575 cat confdefs.h >>conftest.$ac_ext
30576 cat >>conftest.$ac_ext <<_ACEOF
30577 /* end confdefs.h. */
30582 float f; std::isnan(f);
30587 rm -f conftest.$ac_objext
30588 if { (ac_try="$ac_compile"
30589 case "(($ac_try" in
30590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30591 *) ac_try_echo=$ac_try;;
30593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30594 (eval "$ac_compile") 2>conftest.er1
30596 grep -v '^ *+' conftest.er1 >conftest.err
30598 cat conftest.err >&5
30599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30600 (exit $ac_status); } && {
30601 test -z "$ac_cxx_werror_flag" ||
30602 test ! -s conftest.err
30603 } && test -s conftest.$ac_objext; then
30604 ac_cv_func_std_isnan_in_cmath=yes
30606 echo "$as_me: failed program was:" >&5
30607 sed 's/^/| /' conftest.$ac_ext >&5
30609 ac_cv_func_std_isnan_in_cmath=no
30612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30614 ac_cpp='$CPP $CPPFLAGS'
30615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30620 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30621 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
30623 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
30625 cat >>confdefs.h <<\_ACEOF
30626 #define HAVE_STD_ISNAN_IN_CMATH 1
30632 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30633 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
30634 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30635 echo $ECHO_N "(cached) $ECHO_C" >&6
30638 ac_cpp='$CXXCPP $CPPFLAGS'
30639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30643 cat >conftest.$ac_ext <<_ACEOF
30646 cat confdefs.h >>conftest.$ac_ext
30647 cat >>conftest.$ac_ext <<_ACEOF
30648 /* end confdefs.h. */
30658 rm -f conftest.$ac_objext
30659 if { (ac_try="$ac_compile"
30660 case "(($ac_try" in
30661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30662 *) ac_try_echo=$ac_try;;
30664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30665 (eval "$ac_compile") 2>conftest.er1
30667 grep -v '^ *+' conftest.er1 >conftest.err
30669 cat conftest.err >&5
30670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30671 (exit $ac_status); } && {
30672 test -z "$ac_cxx_werror_flag" ||
30673 test ! -s conftest.err
30674 } && test -s conftest.$ac_objext; then
30675 ac_cv_func_isinf_in_math_h=yes
30677 echo "$as_me: failed program was:" >&5
30678 sed 's/^/| /' conftest.$ac_ext >&5
30680 ac_cv_func_isinf_in_math_h=no
30683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30685 ac_cpp='$CPP $CPPFLAGS'
30686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30691 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30692 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
30694 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
30696 cat >>confdefs.h <<\_ACEOF
30697 #define HAVE_ISINF_IN_MATH_H 1
30702 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30703 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
30704 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30705 echo $ECHO_N "(cached) $ECHO_C" >&6
30708 ac_cpp='$CXXCPP $CPPFLAGS'
30709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30713 cat >conftest.$ac_ext <<_ACEOF
30716 cat confdefs.h >>conftest.$ac_ext
30717 cat >>conftest.$ac_ext <<_ACEOF
30718 /* end confdefs.h. */
30728 rm -f conftest.$ac_objext
30729 if { (ac_try="$ac_compile"
30730 case "(($ac_try" in
30731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30732 *) ac_try_echo=$ac_try;;
30734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30735 (eval "$ac_compile") 2>conftest.er1
30737 grep -v '^ *+' conftest.er1 >conftest.err
30739 cat conftest.err >&5
30740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30741 (exit $ac_status); } && {
30742 test -z "$ac_cxx_werror_flag" ||
30743 test ! -s conftest.err
30744 } && test -s conftest.$ac_objext; then
30745 ac_cv_func_isinf_in_cmath=yes
30747 echo "$as_me: failed program was:" >&5
30748 sed 's/^/| /' conftest.$ac_ext >&5
30750 ac_cv_func_isinf_in_cmath=no
30753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30755 ac_cpp='$CPP $CPPFLAGS'
30756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30761 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30762 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
30764 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
30766 cat >>confdefs.h <<\_ACEOF
30767 #define HAVE_ISINF_IN_CMATH 1
30772 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30773 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
30774 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30775 echo $ECHO_N "(cached) $ECHO_C" >&6
30778 ac_cpp='$CXXCPP $CPPFLAGS'
30779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30783 cat >conftest.$ac_ext <<_ACEOF
30786 cat confdefs.h >>conftest.$ac_ext
30787 cat >>conftest.$ac_ext <<_ACEOF
30788 /* end confdefs.h. */
30793 float f; std::isinf(f)}
30798 rm -f conftest.$ac_objext
30799 if { (ac_try="$ac_compile"
30800 case "(($ac_try" in
30801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30802 *) ac_try_echo=$ac_try;;
30804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30805 (eval "$ac_compile") 2>conftest.er1
30807 grep -v '^ *+' conftest.er1 >conftest.err
30809 cat conftest.err >&5
30810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811 (exit $ac_status); } && {
30812 test -z "$ac_cxx_werror_flag" ||
30813 test ! -s conftest.err
30814 } && test -s conftest.$ac_objext; then
30815 ac_cv_func_std_isinf_in_cmath=yes
30817 echo "$as_me: failed program was:" >&5
30818 sed 's/^/| /' conftest.$ac_ext >&5
30820 ac_cv_func_std_isinf_in_cmath=no
30823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30825 ac_cpp='$CPP $CPPFLAGS'
30826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30831 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
30832 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
30834 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
30836 cat >>confdefs.h <<\_ACEOF
30837 #define HAVE_STD_ISINF_IN_CMATH 1
30842 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
30843 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
30844 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
30845 echo $ECHO_N "(cached) $ECHO_C" >&6
30848 ac_cpp='$CXXCPP $CPPFLAGS'
30849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30853 cat >conftest.$ac_ext <<_ACEOF
30856 cat confdefs.h >>conftest.$ac_ext
30857 cat >>conftest.$ac_ext <<_ACEOF
30858 /* end confdefs.h. */
30859 #include <ieeefp.h>
30863 float f; finite(f);
30868 rm -f conftest.$ac_objext
30869 if { (ac_try="$ac_compile"
30870 case "(($ac_try" in
30871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30872 *) ac_try_echo=$ac_try;;
30874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30875 (eval "$ac_compile") 2>conftest.er1
30877 grep -v '^ *+' conftest.er1 >conftest.err
30879 cat conftest.err >&5
30880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30881 (exit $ac_status); } && {
30882 test -z "$ac_cxx_werror_flag" ||
30883 test ! -s conftest.err
30884 } && test -s conftest.$ac_objext; then
30885 ac_cv_func_finite_in_ieeefp_h=yes
30887 echo "$as_me: failed program was:" >&5
30888 sed 's/^/| /' conftest.$ac_ext >&5
30890 ac_cv_func_finite_in_ieeefp_h=no
30893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30895 ac_cpp='$CPP $CPPFLAGS'
30896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30901 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30902 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
30904 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30906 cat >>confdefs.h <<\_ACEOF
30907 #define HAVE_FINITE_IN_IEEEFP_H 1
30914 if test "$llvm_cv_platform_type" = "Unix" ; then
30917 for ac_header in stdlib.h unistd.h
30919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30924 echo $ECHO_N "(cached) $ECHO_C" >&6
30926 ac_res=`eval echo '${'$as_ac_Header'}'`
30927 { echo "$as_me:$LINENO: result: $ac_res" >&5
30928 echo "${ECHO_T}$ac_res" >&6; }
30930 # Is the header compilable?
30931 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30933 cat >conftest.$ac_ext <<_ACEOF
30936 cat confdefs.h >>conftest.$ac_ext
30937 cat >>conftest.$ac_ext <<_ACEOF
30938 /* end confdefs.h. */
30939 $ac_includes_default
30940 #include <$ac_header>
30942 rm -f conftest.$ac_objext
30943 if { (ac_try="$ac_compile"
30944 case "(($ac_try" in
30945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30946 *) ac_try_echo=$ac_try;;
30948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30949 (eval "$ac_compile") 2>conftest.er1
30951 grep -v '^ *+' conftest.er1 >conftest.err
30953 cat conftest.err >&5
30954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30955 (exit $ac_status); } && {
30956 test -z "$ac_c_werror_flag" ||
30957 test ! -s conftest.err
30958 } && test -s conftest.$ac_objext; then
30959 ac_header_compiler=yes
30961 echo "$as_me: failed program was:" >&5
30962 sed 's/^/| /' conftest.$ac_ext >&5
30964 ac_header_compiler=no
30967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30968 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30969 echo "${ECHO_T}$ac_header_compiler" >&6; }
30971 # Is the header present?
30972 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30974 cat >conftest.$ac_ext <<_ACEOF
30977 cat confdefs.h >>conftest.$ac_ext
30978 cat >>conftest.$ac_ext <<_ACEOF
30979 /* end confdefs.h. */
30980 #include <$ac_header>
30982 if { (ac_try="$ac_cpp conftest.$ac_ext"
30983 case "(($ac_try" in
30984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30985 *) ac_try_echo=$ac_try;;
30987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30990 grep -v '^ *+' conftest.er1 >conftest.err
30992 cat conftest.err >&5
30993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30994 (exit $ac_status); } >/dev/null && {
30995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30996 test ! -s conftest.err
30998 ac_header_preproc=yes
31000 echo "$as_me: failed program was:" >&5
31001 sed 's/^/| /' conftest.$ac_ext >&5
31003 ac_header_preproc=no
31006 rm -f conftest.err conftest.$ac_ext
31007 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31008 echo "${ECHO_T}$ac_header_preproc" >&6; }
31010 # So? What about this header?
31011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31017 ac_header_preproc=yes
31020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31023 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31024 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31026 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31027 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31030 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31033 ## ----------------------------------- ##
31034 ## Report this to llvmbugs@cs.uiuc.edu ##
31035 ## ----------------------------------- ##
31037 ) | sed "s/^/$as_me: WARNING: /" >&2
31040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31043 echo $ECHO_N "(cached) $ECHO_C" >&6
31045 eval "$as_ac_Header=\$ac_header_preproc"
31047 ac_res=`eval echo '${'$as_ac_Header'}'`
31048 { echo "$as_me:$LINENO: result: $ac_res" >&5
31049 echo "${ECHO_T}$ac_res" >&6; }
31052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31053 cat >>confdefs.h <<_ACEOF
31054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31062 for ac_func in getpagesize
31064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31065 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31067 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31068 echo $ECHO_N "(cached) $ECHO_C" >&6
31070 cat >conftest.$ac_ext <<_ACEOF
31073 cat confdefs.h >>conftest.$ac_ext
31074 cat >>conftest.$ac_ext <<_ACEOF
31075 /* end confdefs.h. */
31076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31078 #define $ac_func innocuous_$ac_func
31080 /* System header to define __stub macros and hopefully few prototypes,
31081 which can conflict with char $ac_func (); below.
31082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31083 <limits.h> exists even on freestanding compilers. */
31086 # include <limits.h>
31088 # include <assert.h>
31093 /* Override any GCC internal prototype to avoid an error.
31094 Use char because int might match the return type of a GCC
31095 builtin and then its argument prototype would still apply. */
31100 /* The GNU C library defines this for functions which it implements
31101 to always fail with ENOSYS. Some functions are actually named
31102 something starting with __ and the normal name is an alias. */
31103 #if defined __stub_$ac_func || defined __stub___$ac_func
31110 return $ac_func ();
31115 rm -f conftest.$ac_objext conftest$ac_exeext
31116 if { (ac_try="$ac_link"
31117 case "(($ac_try" in
31118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31119 *) ac_try_echo=$ac_try;;
31121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31122 (eval "$ac_link") 2>conftest.er1
31124 grep -v '^ *+' conftest.er1 >conftest.err
31126 cat conftest.err >&5
31127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31128 (exit $ac_status); } && {
31129 test -z "$ac_c_werror_flag" ||
31130 test ! -s conftest.err
31131 } && test -s conftest$ac_exeext &&
31132 $as_test_x conftest$ac_exeext; then
31133 eval "$as_ac_var=yes"
31135 echo "$as_me: failed program was:" >&5
31136 sed 's/^/| /' conftest.$ac_ext >&5
31138 eval "$as_ac_var=no"
31141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31142 conftest$ac_exeext conftest.$ac_ext
31144 ac_res=`eval echo '${'$as_ac_var'}'`
31145 { echo "$as_me:$LINENO: result: $ac_res" >&5
31146 echo "${ECHO_T}$ac_res" >&6; }
31147 if test `eval echo '${'$as_ac_var'}'` = yes; then
31148 cat >>confdefs.h <<_ACEOF
31149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31155 { echo "$as_me:$LINENO: checking for working mmap" >&5
31156 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
31157 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
31158 echo $ECHO_N "(cached) $ECHO_C" >&6
31160 if test "$cross_compiling" = yes; then
31161 ac_cv_func_mmap_fixed_mapped=no
31163 cat >conftest.$ac_ext <<_ACEOF
31166 cat confdefs.h >>conftest.$ac_ext
31167 cat >>conftest.$ac_ext <<_ACEOF
31168 /* end confdefs.h. */
31169 $ac_includes_default
31170 /* malloc might have been renamed as rpl_malloc. */
31173 /* Thanks to Mike Haertel and Jim Avera for this test.
31174 Here is a matrix of mmap possibilities:
31175 mmap private not fixed
31176 mmap private fixed at somewhere currently unmapped
31177 mmap private fixed at somewhere already mapped
31178 mmap shared not fixed
31179 mmap shared fixed at somewhere currently unmapped
31180 mmap shared fixed at somewhere already mapped
31181 For private mappings, we should verify that changes cannot be read()
31182 back from the file, nor mmap's back from the file at a different
31183 address. (There have been systems where private was not correctly
31184 implemented like the infamous i386 svr4.0, and systems where the
31185 VM page cache was not coherent with the file system buffer cache
31186 like early versions of FreeBSD and possibly contemporary NetBSD.)
31187 For shared mappings, we should conversely verify that changes get
31188 propagated back to all the places they're supposed to be.
31190 Grep wants private fixed already mapped.
31191 The main things grep needs to know about mmap are:
31192 * does it exist and is it safe to write into the mmap'd area
31193 * how to use it (BSD variants) */
31196 #include <sys/mman.h>
31198 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
31202 /* This mess was copied from the GNU getpagesize.h. */
31203 #ifndef HAVE_GETPAGESIZE
31204 /* Assume that all systems that can run configure have sys/param.h. */
31205 # ifndef HAVE_SYS_PARAM_H
31206 # define HAVE_SYS_PARAM_H 1
31209 # ifdef _SC_PAGESIZE
31210 # define getpagesize() sysconf(_SC_PAGESIZE)
31211 # else /* no _SC_PAGESIZE */
31212 # ifdef HAVE_SYS_PARAM_H
31213 # include <sys/param.h>
31214 # ifdef EXEC_PAGESIZE
31215 # define getpagesize() EXEC_PAGESIZE
31216 # else /* no EXEC_PAGESIZE */
31218 # define getpagesize() NBPG * CLSIZE
31221 # endif /* no CLSIZE */
31222 # else /* no NBPG */
31224 # define getpagesize() NBPC
31225 # else /* no NBPC */
31227 # define getpagesize() PAGESIZE
31228 # endif /* PAGESIZE */
31229 # endif /* no NBPC */
31230 # endif /* no NBPG */
31231 # endif /* no EXEC_PAGESIZE */
31232 # else /* no HAVE_SYS_PARAM_H */
31233 # define getpagesize() 8192 /* punt totally */
31234 # endif /* no HAVE_SYS_PARAM_H */
31235 # endif /* no _SC_PAGESIZE */
31237 #endif /* no HAVE_GETPAGESIZE */
31242 char *data, *data2, *data3;
31246 pagesize = getpagesize ();
31248 /* First, make a file with some known garbage in it. */
31249 data = (char *) malloc (pagesize);
31252 for (i = 0; i < pagesize; ++i)
31253 *(data + i) = rand ();
31255 fd = creat ("conftest.mmap", 0600);
31258 if (write (fd, data, pagesize) != pagesize)
31262 /* Next, try to mmap the file at a fixed address which already has
31263 something else allocated at it. If we can, also make sure that
31264 we see the same garbage. */
31265 fd = open ("conftest.mmap", O_RDWR);
31268 data2 = (char *) malloc (2 * pagesize);
31271 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
31272 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
31273 MAP_PRIVATE | MAP_FIXED, fd, 0L))
31275 for (i = 0; i < pagesize; ++i)
31276 if (*(data + i) != *(data2 + i))
31279 /* Finally, make sure that changes to the mapped area do not
31280 percolate back to the file as seen by read(). (This is a bug on
31281 some variants of i386 svr4.0.) */
31282 for (i = 0; i < pagesize; ++i)
31283 *(data2 + i) = *(data2 + i) + 1;
31284 data3 = (char *) malloc (pagesize);
31287 if (read (fd, data3, pagesize) != pagesize)
31289 for (i = 0; i < pagesize; ++i)
31290 if (*(data + i) != *(data3 + i))
31296 rm -f conftest$ac_exeext
31297 if { (ac_try="$ac_link"
31298 case "(($ac_try" in
31299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31300 *) ac_try_echo=$ac_try;;
31302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31303 (eval "$ac_link") 2>&5
31305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31307 { (case "(($ac_try" in
31308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31309 *) ac_try_echo=$ac_try;;
31311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31312 (eval "$ac_try") 2>&5
31314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31315 (exit $ac_status); }; }; then
31316 ac_cv_func_mmap_fixed_mapped=yes
31318 echo "$as_me: program exited with status $ac_status" >&5
31319 echo "$as_me: failed program was:" >&5
31320 sed 's/^/| /' conftest.$ac_ext >&5
31322 ( exit $ac_status )
31323 ac_cv_func_mmap_fixed_mapped=no
31325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31330 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31331 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
31332 if test $ac_cv_func_mmap_fixed_mapped = yes; then
31334 cat >>confdefs.h <<\_ACEOF
31335 #define HAVE_MMAP 1
31339 rm -f conftest.mmap
31341 { echo "$as_me:$LINENO: checking for mmap of files" >&5
31342 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
31343 if test "${ac_cv_func_mmap_file+set}" = set; then
31344 echo $ECHO_N "(cached) $ECHO_C" >&6
31347 ac_cpp='$CPP $CPPFLAGS'
31348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31352 if test "$cross_compiling" = yes; then
31353 ac_cv_func_mmap_file=no
31355 cat >conftest.$ac_ext <<_ACEOF
31359 cat confdefs.h >>conftest.$ac_ext
31360 cat >>conftest.$ac_ext <<_ACEOF
31361 /* end confdefs.h. */
31363 #include <sys/types.h>
31364 #include <sys/mman.h>
31372 fd = creat ("foo",0777);
31373 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
31375 return (fd != (int) MAP_FAILED);
31380 rm -f conftest$ac_exeext
31381 if { (ac_try="$ac_link"
31382 case "(($ac_try" in
31383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31384 *) ac_try_echo=$ac_try;;
31386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31387 (eval "$ac_link") 2>&5
31389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31391 { (case "(($ac_try" in
31392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31393 *) ac_try_echo=$ac_try;;
31395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31396 (eval "$ac_try") 2>&5
31398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399 (exit $ac_status); }; }; then
31400 ac_cv_func_mmap_file=yes
31402 echo "$as_me: program exited with status $ac_status" >&5
31403 echo "$as_me: failed program was:" >&5
31404 sed 's/^/| /' conftest.$ac_ext >&5
31406 ( exit $ac_status )
31407 ac_cv_func_mmap_file=no
31409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31414 ac_cpp='$CPP $CPPFLAGS'
31415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31421 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
31422 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
31423 if test "$ac_cv_func_mmap_file" = yes; then
31425 cat >>confdefs.h <<\_ACEOF
31426 #define HAVE_MMAP_FILE
31433 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
31434 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
31435 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
31436 echo $ECHO_N "(cached) $ECHO_C" >&6
31438 if test "$llvm_cv_os_type" = "Interix" ; then
31439 ac_cv_need_dev_zero_for_mmap=yes
31441 ac_cv_need_dev_zero_for_mmap=no
31445 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
31446 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
31447 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
31449 cat >>confdefs.h <<\_ACEOF
31450 #define NEED_DEV_ZERO_FOR_MMAP 1
31455 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31457 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31458 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
31460 if test "$ac_cv_func_mmap_file" = "no"
31462 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31463 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
31469 for ac_func in __dso_handle
31471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31475 echo $ECHO_N "(cached) $ECHO_C" >&6
31477 cat >conftest.$ac_ext <<_ACEOF
31480 cat confdefs.h >>conftest.$ac_ext
31481 cat >>conftest.$ac_ext <<_ACEOF
31482 /* end confdefs.h. */
31483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31485 #define $ac_func innocuous_$ac_func
31487 /* System header to define __stub macros and hopefully few prototypes,
31488 which can conflict with char $ac_func (); below.
31489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31490 <limits.h> exists even on freestanding compilers. */
31493 # include <limits.h>
31495 # include <assert.h>
31500 /* Override any GCC internal prototype to avoid an error.
31501 Use char because int might match the return type of a GCC
31502 builtin and then its argument prototype would still apply. */
31507 /* The GNU C library defines this for functions which it implements
31508 to always fail with ENOSYS. Some functions are actually named
31509 something starting with __ and the normal name is an alias. */
31510 #if defined __stub_$ac_func || defined __stub___$ac_func
31517 return $ac_func ();
31522 rm -f conftest.$ac_objext conftest$ac_exeext
31523 if { (ac_try="$ac_link"
31524 case "(($ac_try" in
31525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31526 *) ac_try_echo=$ac_try;;
31528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31529 (eval "$ac_link") 2>conftest.er1
31531 grep -v '^ *+' conftest.er1 >conftest.err
31533 cat conftest.err >&5
31534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31535 (exit $ac_status); } && {
31536 test -z "$ac_c_werror_flag" ||
31537 test ! -s conftest.err
31538 } && test -s conftest$ac_exeext &&
31539 $as_test_x conftest$ac_exeext; then
31540 eval "$as_ac_var=yes"
31542 echo "$as_me: failed program was:" >&5
31543 sed 's/^/| /' conftest.$ac_ext >&5
31545 eval "$as_ac_var=no"
31548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31549 conftest$ac_exeext conftest.$ac_ext
31551 ac_res=`eval echo '${'$as_ac_var'}'`
31552 { echo "$as_me:$LINENO: result: $ac_res" >&5
31553 echo "${ECHO_T}$ac_res" >&6; }
31554 if test `eval echo '${'$as_ac_var'}'` = yes; then
31555 cat >>confdefs.h <<_ACEOF
31556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31563 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31564 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
31565 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31566 echo $ECHO_N "(cached) $ECHO_C" >&6
31568 llvm_cv_llvmgcc_sanity="no"
31569 if test -x "$LLVMGCC" ; then
31570 cp /dev/null conftest.c
31571 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
31572 grep 'target datalayout =' > /dev/null 2>&1
31573 if test $? -eq 0 ; then
31574 llvm_cv_llvmgcc_sanity="yes"
31579 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31580 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
31582 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
31583 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
31584 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
31585 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
31586 LLVMCC1=$llvmcc1path
31588 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
31589 LLVMCC1PLUS=$llvmcc1pluspath
31591 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31592 LLVMGCCDIR=$llvmgccdir
31594 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
31595 LLVMGCCLIBEXEC=$llvmgcclibexec
31597 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
31598 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31599 LLVMGCC_VERSION=$llvmgccversion
31601 LLVMGCC_MAJVERS=$llvmgccmajvers
31603 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
31604 LLVMGCC_LANGS=$llvmgcclangs
31606 { echo "$as_me:$LINENO: result: ok" >&5
31607 echo "${ECHO_T}ok" >&6; }
31610 SHLIBEXT=$libltdl_cv_shlibext
31613 # Translate the various configuration directories and other basic
31614 # information into substitutions that will end up in Makefile.config.in
31615 # that these configured values can be used by the makefiles
31616 if test "${prefix}" = "NONE" ; then
31617 prefix="/usr/local"
31619 eval LLVM_PREFIX="${prefix}";
31620 eval LLVM_BINDIR="${prefix}/bin";
31621 eval LLVM_LIBDIR="${prefix}/lib";
31622 eval LLVM_DATADIR="${prefix}/share/llvm";
31623 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31624 eval LLVM_ETCDIR="${prefix}/etc/llvm";
31625 eval LLVM_INCLUDEDIR="${prefix}/include";
31626 eval LLVM_INFODIR="${prefix}/info";
31627 eval LLVM_MANDIR="${prefix}/man";
31628 LLVM_CONFIGTIME=`date`
31640 # Place the various directores into the config.h file as #defines so that we
31641 # can know about the installation paths within LLVM.
31643 cat >>confdefs.h <<_ACEOF
31644 #define LLVM_PREFIX "$LLVM_PREFIX"
31648 cat >>confdefs.h <<_ACEOF
31649 #define LLVM_BINDIR "$LLVM_BINDIR"
31653 cat >>confdefs.h <<_ACEOF
31654 #define LLVM_LIBDIR "$LLVM_LIBDIR"
31658 cat >>confdefs.h <<_ACEOF
31659 #define LLVM_DATADIR "$LLVM_DATADIR"
31663 cat >>confdefs.h <<_ACEOF
31664 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
31668 cat >>confdefs.h <<_ACEOF
31669 #define LLVM_ETCDIR "$LLVM_ETCDIR"
31673 cat >>confdefs.h <<_ACEOF
31674 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31678 cat >>confdefs.h <<_ACEOF
31679 #define LLVM_INFODIR "$LLVM_INFODIR"
31683 cat >>confdefs.h <<_ACEOF
31684 #define LLVM_MANDIR "$LLVM_MANDIR"
31688 cat >>confdefs.h <<_ACEOF
31689 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31693 cat >>confdefs.h <<_ACEOF
31694 #define LLVM_HOSTTRIPLE "$host"
31698 # Determine which bindings to build.
31699 if test "$BINDINGS_TO_BUILD" = auto ; then
31700 BINDINGS_TO_BUILD=""
31701 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
31702 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
31705 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
31708 # This isn't really configurey, but it avoids having to repeat the list in
31713 # Do any work necessary to ensure that bindings have what they need.
31714 binding_prereqs_failed=0
31715 for a_binding in $BINDINGS_TO_BUILD ; do
31716 case "$a_binding" in
31718 if test "x$OCAMLC" = x ; then
31719 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
31720 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
31721 binding_prereqs_failed=1
31723 if test "x$OCAMLDEP" = x ; then
31724 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
31725 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
31726 binding_prereqs_failed=1
31728 if test "x$OCAMLOPT" = x ; then
31729 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
31730 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
31732 if test "x$with_ocaml_libdir" != xauto ; then
31733 OCAML_LIBDIR=$with_ocaml_libdir
31736 ocaml_stdlib="`"$OCAMLC" -where`"
31737 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
31739 # ocaml stdlib is beneath our prefix; use stdlib
31740 OCAML_LIBDIR=$ocaml_stdlib
31743 # ocaml stdlib is outside our prefix; use libdir/ocaml
31744 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
31751 if test "$binding_prereqs_failed" = 1 ; then
31752 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
31753 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
31754 { (exit 1); exit 1; }; }
31757 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
31758 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
31759 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
31760 echo $ECHO_N "(cached) $ECHO_C" >&6
31763 ac_cpp='$CXXCPP $CPPFLAGS'
31764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31768 oldcxxflags="$CXXFLAGS"
31769 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
31770 cat >conftest.$ac_ext <<_ACEOF
31773 cat confdefs.h >>conftest.$ac_ext
31774 cat >>conftest.$ac_ext <<_ACEOF
31775 /* end confdefs.h. */
31785 rm -f conftest.$ac_objext
31786 if { (ac_try="$ac_compile"
31787 case "(($ac_try" in
31788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31789 *) ac_try_echo=$ac_try;;
31791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31792 (eval "$ac_compile") 2>conftest.er1
31794 grep -v '^ *+' conftest.er1 >conftest.err
31796 cat conftest.err >&5
31797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31798 (exit $ac_status); } && {
31799 test -z "$ac_cxx_werror_flag" ||
31800 test ! -s conftest.err
31801 } && test -s conftest.$ac_objext; then
31802 llvm_cv_cxx_visibility_inlines_hidden=yes
31804 echo "$as_me: failed program was:" >&5
31805 sed 's/^/| /' conftest.$ac_ext >&5
31807 llvm_cv_cxx_visibility_inlines_hidden=no
31810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31811 CXXFLAGS="$oldcxxflags"
31813 ac_cpp='$CPP $CPPFLAGS'
31814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31820 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
31821 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
31822 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
31823 ENABLE_VISIBILITY_INLINES_HIDDEN=1
31826 ENABLE_VISIBILITY_INLINES_HIDDEN=0
31831 if test "$llvm_cv_link_use_r" = "yes" ; then
31838 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
31839 RDYNAMIC="-Wl,-export-dynamic"
31846 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31848 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31850 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
31853 ac_config_files="$ac_config_files Makefile.config"
31856 ac_config_files="$ac_config_files llvm.spec"
31859 ac_config_files="$ac_config_files docs/doxygen.cfg"
31862 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
31865 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
31868 ac_config_commands="$ac_config_commands setup"
31870 ac_config_commands="$ac_config_commands Makefile"
31873 ac_config_commands="$ac_config_commands Makefile.common"
31876 ac_config_commands="$ac_config_commands examples/Makefile"
31879 ac_config_commands="$ac_config_commands lib/Makefile"
31882 ac_config_commands="$ac_config_commands runtime/Makefile"
31885 ac_config_commands="$ac_config_commands test/Makefile"
31888 ac_config_commands="$ac_config_commands test/Makefile.tests"
31891 ac_config_commands="$ac_config_commands unittests/Makefile"
31894 ac_config_commands="$ac_config_commands tools/Makefile"
31897 ac_config_commands="$ac_config_commands utils/Makefile"
31900 ac_config_commands="$ac_config_commands projects/Makefile"
31903 ac_config_commands="$ac_config_commands bindings/Makefile"
31906 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
31910 cat >confcache <<\_ACEOF
31911 # This file is a shell script that caches the results of configure
31912 # tests run on this system so they can be shared between configure
31913 # scripts and configure runs, see configure's option --config-cache.
31914 # It is not useful on other systems. If it contains results you don't
31915 # want to keep, you may remove or edit it.
31917 # config.status only pays attention to the cache file if you give it
31918 # the --recheck option to rerun configure.
31920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31922 # following values.
31926 # The following way of writing the cache mishandles newlines in values,
31927 # but we know of no workaround that is simple, portable, and efficient.
31928 # So, we kill variables containing newlines.
31929 # Ultrix sh set writes to stderr and can't be redirected directly,
31930 # and sets the high bit in the cache file unless we assign to the vars.
31932 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31933 eval ac_val=\$$ac_var
31937 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
31938 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
31941 _ | IFS | as_nl) ;; #(
31942 *) $as_unset $ac_var ;;
31948 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31949 *${as_nl}ac_space=\ *)
31950 # `set' does not quote correctly, so add quotes (double-quote
31951 # substitution turns \\\\ into \\, and sed turns \\ into \).
31954 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31957 # `set' quotes correctly as required by POSIX, so do not add quotes.
31958 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31967 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31969 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31971 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31972 if test -w "$cache_file"; then
31973 test "x$cache_file" != "x/dev/null" &&
31974 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
31975 echo "$as_me: updating cache $cache_file" >&6;}
31976 cat confcache >$cache_file
31978 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
31979 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31984 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31985 # Let make expand exec_prefix.
31986 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31988 DEFS=-DHAVE_CONFIG_H
31992 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31993 # 1. Remove the extension, and $U if already installed.
31994 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31995 ac_i=`echo "$ac_i" | sed "$ac_script"`
31996 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31997 # will be set to the directory where LIBOBJS objects are built.
31998 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31999 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32001 LIBOBJS=$ac_libobjs
32003 LTLIBOBJS=$ac_ltlibobjs
32006 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32007 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
32008 Usually this means the macro was only invoked conditionally." >&5
32009 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
32010 Usually this means the macro was only invoked conditionally." >&2;}
32011 { (exit 1); exit 1; }; }
32013 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32014 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32015 Usually this means the macro was only invoked conditionally." >&5
32016 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32017 Usually this means the macro was only invoked conditionally." >&2;}
32018 { (exit 1); exit 1; }; }
32021 : ${CONFIG_STATUS=./config.status}
32022 ac_clean_files_save=$ac_clean_files
32023 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32024 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32025 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32026 cat >$CONFIG_STATUS <<_ACEOF
32028 # Generated by $as_me.
32029 # Run this file to recreate the current configuration.
32030 # Compiler output produced by configure, useful for debugging
32031 # configure, is in config.log if it exists.
32034 ac_cs_recheck=false
32036 SHELL=\${CONFIG_SHELL-$SHELL}
32039 cat >>$CONFIG_STATUS <<\_ACEOF
32040 ## --------------------- ##
32041 ## M4sh Initialization. ##
32042 ## --------------------- ##
32044 # Be more Bourne compatible
32045 DUALCASE=1; export DUALCASE # for MKS sh
32046 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32049 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32050 # is contrary to our usage. Disable this feature.
32051 alias -g '${1+"$@"}'='"$@"'
32052 setopt NO_GLOB_SUBST
32054 case `(set -o) 2>/dev/null` in
32055 *posix*) set -o posix ;;
32064 # Avoid depending upon Character Ranges.
32065 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32066 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32067 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32068 as_cr_digits='0123456789'
32069 as_cr_alnum=$as_cr_Letters$as_cr_digits
32071 # The user is always right.
32072 if test "${PATH_SEPARATOR+set}" != set; then
32073 echo "#! /bin/sh" >conf$$.sh
32074 echo "exit 0" >>conf$$.sh
32076 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32084 # Support unset when possible.
32085 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32093 # We need space, tab and new line, in precisely that order. Quoting is
32094 # there to prevent editors from complaining about space-tab.
32095 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32096 # splitting by setting IFS to empty value.)
32101 # Find who we are. Look in the path if we contain no directory separator.
32103 *[\\/]* ) as_myself=$0 ;;
32104 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32105 for as_dir in $PATH
32108 test -z "$as_dir" && as_dir=.
32109 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32115 # We did not find ourselves, most probably we were run as `sh COMMAND'
32116 # in which case we are not to be found in the path.
32117 if test "x$as_myself" = x; then
32120 if test ! -f "$as_myself"; then
32121 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32122 { (exit 1); exit 1; }
32125 # Work around bugs in pre-3.0 UWIN ksh.
32126 for as_var in ENV MAIL MAILPATH
32127 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32135 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32136 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32137 LC_TELEPHONE LC_TIME
32139 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32140 eval $as_var=C; export $as_var
32142 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32146 # Required to use basename.
32147 if expr a : '\(a\)' >/dev/null 2>&1 &&
32148 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32154 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32155 as_basename=basename
32161 # Name of the executable.
32162 as_me=`$as_basename -- "$0" ||
32163 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32164 X"$0" : 'X\(//\)$' \| \
32165 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32167 sed '/^.*\/\([^/][^/]*\)\/*$/{
32186 as_lineno_1=$LINENO
32187 as_lineno_2=$LINENO
32188 test "x$as_lineno_1" != "x$as_lineno_2" &&
32189 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32191 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32192 # uniformly replaced by the line number. The first 'sed' inserts a
32193 # line-number line after each line using $LINENO; the second 'sed'
32194 # does the real work. The second script uses 'N' to pair each
32195 # line-number line with the line containing $LINENO, and appends
32196 # trailing '-' during substitution so that $LINENO is not a special
32197 # case at line end.
32198 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32199 # scripts with optimization help from Paolo Bonzini. Blame Lee
32200 # E. McMahon (1931-1989) for sed's syntax. :-)
32212 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32215 ' >$as_me.lineno &&
32216 chmod +x "$as_me.lineno" ||
32217 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32218 { (exit 1); exit 1; }; }
32220 # Don't try to exec as it changes $[0], causing all sort of problems
32221 # (the dirname of $[0] is not the place where we might find the
32222 # original and so on. Autoconf is especially sensitive to this).
32223 . "./$as_me.lineno"
32224 # Exit status is that of the last command.
32229 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32235 ECHO_C= ECHO_N= ECHO_T=
32236 case `echo -n x` in
32238 case `echo 'x\c'` in
32239 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32246 if expr a : '\(a\)' >/dev/null 2>&1 &&
32247 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32253 rm -f conf$$ conf$$.exe conf$$.file
32254 if test -d conf$$.dir; then
32255 rm -f conf$$.dir/conf$$.file
32261 if ln -s conf$$.file conf$$ 2>/dev/null; then
32263 # ... but there are two gotchas:
32264 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32265 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32266 # In both cases, we have to default to `cp -p'.
32267 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32269 elif ln conf$$.file conf$$ 2>/dev/null; then
32274 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32275 rmdir conf$$.dir 2>/dev/null
32277 if mkdir -p . 2>/dev/null; then
32280 test -d ./-p && rmdir ./-p
32284 if test -x / >/dev/null 2>&1; then
32285 as_test_x='test -x'
32287 if ls -dL / >/dev/null 2>&1; then
32294 if test -d "$1"; then
32300 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32301 ???[sx]*):;;*)false;;esac;fi
32305 as_executable_p=$as_test_x
32307 # Sed expression to map a string onto a valid CPP name.
32308 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32310 # Sed expression to map a string onto a valid variable name.
32311 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32316 # Save the log message, to keep $[0] and so on meaningful, and to
32317 # report actual input values of CONFIG_FILES etc. instead of their
32318 # values after options handling.
32320 This file was extended by llvm $as_me 2.6svn, which was
32321 generated by GNU Autoconf 2.61. Invocation command line was
32323 CONFIG_FILES = $CONFIG_FILES
32324 CONFIG_HEADERS = $CONFIG_HEADERS
32325 CONFIG_LINKS = $CONFIG_LINKS
32326 CONFIG_COMMANDS = $CONFIG_COMMANDS
32329 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32334 cat >>$CONFIG_STATUS <<_ACEOF
32335 # Files that config.status was made for.
32336 config_files="$ac_config_files"
32337 config_headers="$ac_config_headers"
32338 config_commands="$ac_config_commands"
32342 cat >>$CONFIG_STATUS <<\_ACEOF
32344 \`$as_me' instantiates files from templates according to the
32345 current configuration.
32347 Usage: $0 [OPTIONS] [FILE]...
32349 -h, --help print this help, then exit
32350 -V, --version print version number and configuration settings, then exit
32351 -q, --quiet do not print progress messages
32352 -d, --debug don't remove temporary files
32353 --recheck update $as_me by reconfiguring in the same conditions
32354 --file=FILE[:TEMPLATE]
32355 instantiate the configuration file FILE
32356 --header=FILE[:TEMPLATE]
32357 instantiate the configuration header FILE
32359 Configuration files:
32362 Configuration headers:
32365 Configuration commands:
32368 Report bugs to <bug-autoconf@gnu.org>."
32371 cat >>$CONFIG_STATUS <<_ACEOF
32373 llvm config.status 2.6svn
32374 configured by $0, generated by GNU Autoconf 2.61,
32375 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32377 Copyright (C) 2006 Free Software Foundation, Inc.
32378 This config.status script is free software; the Free Software Foundation
32379 gives unlimited permission to copy, distribute and modify it."
32386 cat >>$CONFIG_STATUS <<\_ACEOF
32387 # If no file are specified by the user, then we need to provide default
32388 # value. By we need to know if files were specified by the user.
32394 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32395 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32406 # Handling of the options.
32407 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32409 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32410 echo "$ac_cs_version"; exit ;;
32411 --debug | --debu | --deb | --de | --d | -d )
32413 --file | --fil | --fi | --f )
32415 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32416 ac_need_defaults=false;;
32417 --header | --heade | --head | --hea )
32419 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32420 ac_need_defaults=false;;
32422 # Conflict between --help and --header
32423 { echo "$as_me: error: ambiguous option: $1
32424 Try \`$0 --help' for more information." >&2
32425 { (exit 1); exit 1; }; };;
32426 --help | --hel | -h )
32427 echo "$ac_cs_usage"; exit ;;
32428 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32429 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32432 # This is an error.
32433 -*) { echo "$as_me: error: unrecognized option: $1
32434 Try \`$0 --help' for more information." >&2
32435 { (exit 1); exit 1; }; } ;;
32437 *) ac_config_targets="$ac_config_targets $1"
32438 ac_need_defaults=false ;;
32444 ac_configure_extra_args=
32446 if $ac_cs_silent; then
32448 ac_configure_extra_args="$ac_configure_extra_args --silent"
32452 cat >>$CONFIG_STATUS <<_ACEOF
32453 if \$ac_cs_recheck; then
32454 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32455 CONFIG_SHELL=$SHELL
32456 export CONFIG_SHELL
32457 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32461 cat >>$CONFIG_STATUS <<\_ACEOF
32465 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32466 ## Running $as_me. ##
32472 cat >>$CONFIG_STATUS <<_ACEOF
32476 llvm_src="${srcdir}"
32480 cat >>$CONFIG_STATUS <<\_ACEOF
32482 # Handling of arguments.
32483 for ac_config_target in $ac_config_targets
32485 case $ac_config_target in
32486 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
32487 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
32488 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
32489 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
32490 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
32491 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
32492 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
32493 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
32494 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
32495 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
32496 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
32497 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
32498 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
32499 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
32500 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
32501 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
32502 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
32503 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
32504 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
32505 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
32506 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
32507 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
32509 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32510 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32511 { (exit 1); exit 1; }; };;
32516 # If the user did not use the arguments to specify the items to instantiate,
32517 # then the envvar interface is used. Set only those that are not.
32518 # We use the long form for the default assignment because of an extremely
32519 # bizarre bug on SunOS 4.1.3.
32520 if $ac_need_defaults; then
32521 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32522 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32523 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32526 # Have a temporary directory for convenience. Make it in the build tree
32527 # simply because there is no reason against having it here, and in addition,
32528 # creating and moving files from /tmp can sometimes cause problems.
32529 # Hook for its removal unless debugging.
32530 # Note that there is a small window in which the directory will not be cleaned:
32531 # after its creation but before its name has been assigned to `$tmp'.
32535 trap 'exit_status=$?
32536 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32538 trap '{ (exit 1); exit 1; }' 1 2 13 15
32540 # Create a (secure) tmp directory for tmp files.
32543 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32544 test -n "$tmp" && test -d "$tmp"
32547 tmp=./conf$$-$RANDOM
32548 (umask 077 && mkdir "$tmp")
32551 echo "$me: cannot create a temporary directory in ." >&2
32552 { (exit 1); exit 1; }
32556 # Set up the sed scripts for CONFIG_FILES section.
32559 # No need to generate the scripts if there are no CONFIG_FILES.
32560 # This happens for instance when ./config.status config.h
32561 if test -n "$CONFIG_FILES"; then
32568 for ac_last_try in false false false false false :; do
32569 cat >conf$$subs.sed <<_ACEOF
32570 SHELL!$SHELL$ac_delim
32571 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32572 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32573 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32574 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32575 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32576 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32577 exec_prefix!$exec_prefix$ac_delim
32578 prefix!$prefix$ac_delim
32579 program_transform_name!$program_transform_name$ac_delim
32580 bindir!$bindir$ac_delim
32581 sbindir!$sbindir$ac_delim
32582 libexecdir!$libexecdir$ac_delim
32583 datarootdir!$datarootdir$ac_delim
32584 datadir!$datadir$ac_delim
32585 sysconfdir!$sysconfdir$ac_delim
32586 sharedstatedir!$sharedstatedir$ac_delim
32587 localstatedir!$localstatedir$ac_delim
32588 includedir!$includedir$ac_delim
32589 oldincludedir!$oldincludedir$ac_delim
32590 docdir!$docdir$ac_delim
32591 infodir!$infodir$ac_delim
32592 htmldir!$htmldir$ac_delim
32593 dvidir!$dvidir$ac_delim
32594 pdfdir!$pdfdir$ac_delim
32595 psdir!$psdir$ac_delim
32596 libdir!$libdir$ac_delim
32597 localedir!$localedir$ac_delim
32598 mandir!$mandir$ac_delim
32599 DEFS!$DEFS$ac_delim
32600 ECHO_C!$ECHO_C$ac_delim
32601 ECHO_N!$ECHO_N$ac_delim
32602 ECHO_T!$ECHO_T$ac_delim
32603 LIBS!$LIBS$ac_delim
32604 build_alias!$build_alias$ac_delim
32605 host_alias!$host_alias$ac_delim
32606 target_alias!$target_alias$ac_delim
32607 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
32608 subdirs!$subdirs$ac_delim
32609 build!$build$ac_delim
32610 build_cpu!$build_cpu$ac_delim
32611 build_vendor!$build_vendor$ac_delim
32612 build_os!$build_os$ac_delim
32613 host!$host$ac_delim
32614 host_cpu!$host_cpu$ac_delim
32615 host_vendor!$host_vendor$ac_delim
32616 host_os!$host_os$ac_delim
32617 target!$target$ac_delim
32618 target_cpu!$target_cpu$ac_delim
32619 target_vendor!$target_vendor$ac_delim
32620 target_os!$target_os$ac_delim
32622 LINKALL!$LINKALL$ac_delim
32623 NOLINKALL!$NOLINKALL$ac_delim
32624 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
32625 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
32626 ARCH!$ARCH$ac_delim
32627 ENDIAN!$ENDIAN$ac_delim
32629 CFLAGS!$CFLAGS$ac_delim
32630 LDFLAGS!$LDFLAGS$ac_delim
32631 CPPFLAGS!$CPPFLAGS$ac_delim
32632 ac_ct_CC!$ac_ct_CC$ac_delim
32633 EXEEXT!$EXEEXT$ac_delim
32634 OBJEXT!$OBJEXT$ac_delim
32636 GREP!$GREP$ac_delim
32637 EGREP!$EGREP$ac_delim
32638 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
32639 BUILD_CC!$BUILD_CC$ac_delim
32640 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
32641 BUILD_CXX!$BUILD_CXX$ac_delim
32642 CVSBUILD!$CVSBUILD$ac_delim
32643 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
32644 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
32645 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
32646 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
32647 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
32648 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
32650 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
32651 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
32652 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
32653 ENABLE_PIC!$ENABLE_PIC$ac_delim
32654 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
32655 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
32656 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
32657 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
32659 CXXFLAGS!$CXXFLAGS$ac_delim
32660 ac_ct_CXX!$ac_ct_CXX$ac_delim
32662 ifGNUmake!$ifGNUmake$ac_delim
32663 LN_S!$LN_S$ac_delim
32666 DATE!$DATE$ac_delim
32669 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32671 elif $ac_last_try; then
32672 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32673 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32674 { (exit 1); exit 1; }; }
32676 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32680 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32681 if test -n "$ac_eof"; then
32682 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32683 ac_eof=`expr $ac_eof + 1`
32686 cat >>$CONFIG_STATUS <<_ACEOF
32687 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32688 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32691 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32692 s/^/s,@/; s/!/@,|#_!!_#|/
32695 s/'"$ac_delim"'$/,g/; t
32697 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32698 ' >>$CONFIG_STATUS <conf$$subs.sed
32699 rm -f conf$$subs.sed
32700 cat >>$CONFIG_STATUS <<_ACEOF
32706 for ac_last_try in false false false false false :; do
32707 cat >conf$$subs.sed <<_ACEOF
32708 FIND!$FIND$ac_delim
32709 MKDIR!$MKDIR$ac_delim
32711 RANLIB!$RANLIB$ac_delim
32715 BINPWD!$BINPWD$ac_delim
32716 GRAPHVIZ!$GRAPHVIZ$ac_delim
32719 DOTTY!$DOTTY$ac_delim
32720 PERL!$PERL$ac_delim
32721 HAVE_PERL!$HAVE_PERL$ac_delim
32722 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32723 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32724 INSTALL_DATA!$INSTALL_DATA$ac_delim
32725 BZIP2!$BZIP2$ac_delim
32726 DOXYGEN!$DOXYGEN$ac_delim
32727 GROFF!$GROFF$ac_delim
32728 GZIP!$GZIP$ac_delim
32729 POD2HTML!$POD2HTML$ac_delim
32730 POD2MAN!$POD2MAN$ac_delim
32731 RUNTEST!$RUNTEST$ac_delim
32732 TCLSH!$TCLSH$ac_delim
32734 OCAMLC!$OCAMLC$ac_delim
32735 OCAMLOPT!$OCAMLOPT$ac_delim
32736 OCAMLDEP!$OCAMLDEP$ac_delim
32737 OCAMLDOC!$OCAMLDOC$ac_delim
32739 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
32740 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
32741 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
32742 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
32743 LIBADD_DL!$LIBADD_DL$ac_delim
32744 ECHO!$ECHO$ac_delim
32746 STRIP!$STRIP$ac_delim
32747 CXXCPP!$CXXCPP$ac_delim
32749 FFLAGS!$FFLAGS$ac_delim
32750 ac_ct_F77!$ac_ct_F77$ac_delim
32751 LIBTOOL!$LIBTOOL$ac_delim
32752 LLVMGCC!$LLVMGCC$ac_delim
32753 LLVMGXX!$LLVMGXX$ac_delim
32754 USE_UDIS86!$USE_UDIS86$ac_delim
32755 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
32756 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
32757 ALLOCA!$ALLOCA$ac_delim
32758 MMAP_FILE!$MMAP_FILE$ac_delim
32759 LLVMCC1!$LLVMCC1$ac_delim
32760 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
32761 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
32762 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
32763 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
32764 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
32765 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
32766 SHLIBEXT!$SHLIBEXT$ac_delim
32767 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
32768 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
32769 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
32770 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
32771 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
32772 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
32773 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
32774 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
32775 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
32776 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
32777 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
32778 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
32779 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
32780 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
32781 RPATH!$RPATH$ac_delim
32782 RDYNAMIC!$RDYNAMIC$ac_delim
32783 LIBOBJS!$LIBOBJS$ac_delim
32784 LTLIBOBJS!$LTLIBOBJS$ac_delim
32787 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
32789 elif $ac_last_try; then
32790 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32791 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32792 { (exit 1); exit 1; }; }
32794 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32798 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32799 if test -n "$ac_eof"; then
32800 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32801 ac_eof=`expr $ac_eof + 1`
32804 cat >>$CONFIG_STATUS <<_ACEOF
32805 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32806 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32809 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32810 s/^/s,@/; s/!/@,|#_!!_#|/
32813 s/'"$ac_delim"'$/,g/; t
32815 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32816 ' >>$CONFIG_STATUS <conf$$subs.sed
32817 rm -f conf$$subs.sed
32818 cat >>$CONFIG_STATUS <<_ACEOF
32825 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32826 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32827 # trailing colons and then remove the whole line if VPATH becomes empty
32828 # (actually we leave an empty line to preserve line numbers).
32829 if test "x$srcdir" = x.; then
32830 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32831 s/:*\$(srcdir):*/:/
32832 s/:*\${srcdir}:*/:/
32834 s/^\([^=]*=[ ]*\):*/\1/
32840 cat >>$CONFIG_STATUS <<\_ACEOF
32841 fi # test -n "$CONFIG_FILES"
32844 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
32847 :[FHLC]) ac_mode=$ac_tag; continue;;
32849 case $ac_mode$ac_tag in
32851 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
32852 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
32853 { (exit 1); exit 1; }; };;
32854 :[FH]-) ac_tag=-:-;;
32855 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32872 -) ac_f="$tmp/stdin";;
32873 *) # Look for the file first in the build tree, then in the source tree
32874 # (if the path is not absolute). The absolute path cannot be DOS-style,
32875 # because $ac_f cannot contain `:'.
32879 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32881 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
32882 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
32883 { (exit 1); exit 1; }; };;
32885 ac_file_inputs="$ac_file_inputs $ac_f"
32888 # Let's still pretend it is `configure' which instantiates (i.e., don't
32889 # use $as_me), people would be surprised to read:
32890 # /* config.h. Generated by config.status. */
32891 configure_input="Generated from "`IFS=:
32892 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
32893 if test x"$ac_file" != x-; then
32894 configure_input="$ac_file. $configure_input"
32895 { echo "$as_me:$LINENO: creating $ac_file" >&5
32896 echo "$as_me: creating $ac_file" >&6;}
32900 *:-:* | *:-) cat >"$tmp/stdin";;
32905 ac_dir=`$as_dirname -- "$ac_file" ||
32906 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32907 X"$ac_file" : 'X\(//\)[^/]' \| \
32908 X"$ac_file" : 'X\(//\)$' \| \
32909 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32915 /^X\(\/\/\)[^/].*/{
32930 -*) as_dir=./$as_dir;;
32932 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32936 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
32937 *) as_qdir=$as_dir;;
32939 as_dirs="'$as_qdir' $as_dirs"
32940 as_dir=`$as_dirname -- "$as_dir" ||
32941 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32942 X"$as_dir" : 'X\(//\)[^/]' \| \
32943 X"$as_dir" : 'X\(//\)$' \| \
32944 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32950 /^X\(\/\/\)[^/].*/{
32963 test -d "$as_dir" && break
32965 test -z "$as_dirs" || eval "mkdir $as_dirs"
32966 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32967 echo "$as_me: error: cannot create directory $as_dir" >&2;}
32968 { (exit 1); exit 1; }; }; }
32972 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32974 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32975 # A ".." for each directory in $ac_dir_suffix.
32976 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
32977 case $ac_top_builddir_sub in
32978 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32979 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32982 ac_abs_top_builddir=$ac_pwd
32983 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32984 # for backward compatibility:
32985 ac_top_builddir=$ac_top_build_prefix
32988 .) # We are building in place.
32990 ac_top_srcdir=$ac_top_builddir_sub
32991 ac_abs_top_srcdir=$ac_pwd ;;
32992 [\\/]* | ?:[\\/]* ) # Absolute name.
32993 ac_srcdir=$srcdir$ac_dir_suffix;
32994 ac_top_srcdir=$srcdir
32995 ac_abs_top_srcdir=$srcdir ;;
32996 *) # Relative name.
32997 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32998 ac_top_srcdir=$ac_top_build_prefix$srcdir
32999 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33001 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33011 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33012 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33016 cat >>$CONFIG_STATUS <<\_ACEOF
33017 # If the template does not know about datarootdir, expand it.
33018 # FIXME: This hack should be removed a few years after 2.60.
33019 ac_datarootdir_hack=; ac_datarootdir_seen=
33021 case `sed -n '/datarootdir/ {
33030 ' $ac_file_inputs` in
33031 *datarootdir*) ac_datarootdir_seen=yes;;
33032 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33033 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33034 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33036 cat >>$CONFIG_STATUS <<_ACEOF
33037 ac_datarootdir_hack='
33038 s&@datadir@&$datadir&g
33039 s&@docdir@&$docdir&g
33040 s&@infodir@&$infodir&g
33041 s&@localedir@&$localedir&g
33042 s&@mandir@&$mandir&g
33043 s&\\\${datarootdir}&$datarootdir&g' ;;
33047 # Neutralize VPATH when `$srcdir' = `.'.
33048 # Shell code in configure.ac might set extrasub.
33049 # FIXME: do we really want to maintain this feature?
33050 cat >>$CONFIG_STATUS <<_ACEOF
33054 cat >>$CONFIG_STATUS <<\_ACEOF
33056 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33057 s&@configure_input@&$configure_input&;t t
33058 s&@top_builddir@&$ac_top_builddir_sub&;t t
33059 s&@srcdir@&$ac_srcdir&;t t
33060 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33061 s&@top_srcdir@&$ac_top_srcdir&;t t
33062 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33063 s&@builddir@&$ac_builddir&;t t
33064 s&@abs_builddir@&$ac_abs_builddir&;t t
33065 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33066 s&@INSTALL@&$ac_INSTALL&;t t
33067 $ac_datarootdir_hack
33068 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
33070 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33071 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33072 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33073 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33074 which seems to be undefined. Please make sure it is defined." >&5
33075 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33076 which seems to be undefined. Please make sure it is defined." >&2;}
33080 -) cat "$tmp/out"; rm -f "$tmp/out";;
33081 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33090 # Transform confdefs.h into a sed script `conftest.defines', that
33091 # substitutes the proper values into config.h.in to produce config.h.
33092 rm -f conftest.defines conftest.tail
33093 # First, append a space to every undef/define line, to ease matching.
33094 echo 's/$/ /' >conftest.defines
33095 # Then, protect against being on the right side of a sed subst, or in
33096 # an unquoted here document, in config.status. If some macros were
33097 # called several times there might be several #defines for the same
33098 # symbol, which is useless. But do not sort them, since the last
33099 # AC_DEFINE must be honored.
33100 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33101 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33102 # NAME is the cpp macro being defined, VALUE is the value it is being given.
33103 # PARAMS is the parameter list in the macro definition--in most cases, it's
33104 # just an empty string.
33105 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
33106 ac_dB='\\)[ (].*,\\1define\\2'
33114 s/^[ ]*#[ ]*define[ ][ ]*//
33119 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33120 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33121 ' >>conftest.defines
33123 # Remove the space that was appended to ease matching.
33124 # Then replace #undef with comments. This is necessary, for
33125 # example, in the case of _POSIX_SOURCE, which is predefined and required
33126 # on some systems where configure will not decide to define it.
33127 # (The regexp can be short, since the line contains either #define or #undef.)
33129 s,^[ #]*u.*,/* & */,' >>conftest.defines
33131 # Break up conftest.defines:
33132 ac_max_sed_lines=50
33134 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33135 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33136 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33138 ac_in='$ac_file_inputs'
33139 ac_out='"$tmp/out1"'
33140 ac_nxt='"$tmp/out2"'
33144 # Write a here document:
33145 cat >>$CONFIG_STATUS <<_ACEOF
33146 # First, check the format of the line:
33147 cat >"\$tmp/defines.sed" <<\\CEOF
33148 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
33149 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
33153 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33155 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33156 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33157 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33158 grep . conftest.tail >/dev/null || break
33159 rm -f conftest.defines
33160 mv conftest.tail conftest.defines
33162 rm -f conftest.defines conftest.tail
33164 echo "ac_result=$ac_in" >>$CONFIG_STATUS
33165 cat >>$CONFIG_STATUS <<\_ACEOF
33166 if test x"$ac_file" != x-; then
33167 echo "/* $configure_input */" >"$tmp/config.h"
33168 cat "$ac_result" >>"$tmp/config.h"
33169 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33170 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33171 echo "$as_me: $ac_file is unchanged" >&6;}
33174 mv "$tmp/config.h" $ac_file
33177 echo "/* $configure_input */"
33183 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33184 echo "$as_me: executing $ac_file commands" >&6;}
33189 case $ac_file$ac_mode in
33190 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
33191 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
33192 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
33193 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
33194 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
33195 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
33196 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
33197 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
33198 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
33199 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
33200 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
33201 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
33202 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
33203 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
33204 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
33205 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
33206 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
33207 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
33208 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
33209 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
33210 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
33211 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
33212 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
33213 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
33214 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
33215 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
33221 { (exit 0); exit 0; }
33223 chmod +x $CONFIG_STATUS
33224 ac_clean_files=$ac_clean_files_save
33227 # configure is writing to config.log, and then calls config.status.
33228 # config.status does its own redirection, appending to config.log.
33229 # Unfortunately, on DOS this fails, as config.log is still kept open
33230 # by configure, so config.status won't be able to write to it; its
33231 # output is simply discarded. So we exec the FD to /dev/null,
33232 # effectively closing config.log, so it can be properly (re)opened and
33233 # appended to by config.status. When coming back to configure, we
33234 # need to make the FD available again.
33235 if test "$no_create" != yes; then
33237 ac_config_status_args=
33238 test "$silent" = yes &&
33239 ac_config_status_args="$ac_config_status_args --quiet"
33241 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33243 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33244 # would make configure fail if this is the last instruction.
33245 $ac_cs_success || { (exit 1); exit 1; }
33249 # CONFIG_SUBDIRS section.
33251 if test "$no_recursion" != yes; then
33253 # Remove --cache-file and --srcdir arguments so they do not pile up.
33254 ac_sub_configure_args=
33256 eval "set x $ac_configure_args"
33260 if test -n "$ac_prev"; then
33265 -cache-file | --cache-file | --cache-fil | --cache-fi \
33266 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33267 ac_prev=cache_file ;;
33268 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33269 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33272 --config-cache | -C)
33274 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33276 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33278 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33280 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33284 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33286 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
33290 # Always prepend --prefix to ensure using the same prefix
33291 # in subdir configurations.
33292 ac_arg="--prefix=$prefix"
33294 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33296 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33299 if test "$silent" = yes; then
33300 ac_sub_configure_args="--silent $ac_sub_configure_args"
33304 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33306 # Do not complain, so a configure script can configure whichever
33307 # parts of a large source tree are present.
33308 test -d "$srcdir/$ac_dir" || continue
33310 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33311 echo "$as_me:$LINENO: $ac_msg" >&5
33315 -*) as_dir=./$as_dir;;
33317 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33321 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33322 *) as_qdir=$as_dir;;
33324 as_dirs="'$as_qdir' $as_dirs"
33325 as_dir=`$as_dirname -- "$as_dir" ||
33326 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33327 X"$as_dir" : 'X\(//\)[^/]' \| \
33328 X"$as_dir" : 'X\(//\)$' \| \
33329 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33335 /^X\(\/\/\)[^/].*/{
33348 test -d "$as_dir" && break
33350 test -z "$as_dirs" || eval "mkdir $as_dirs"
33351 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33352 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33353 { (exit 1); exit 1; }; }; }
33357 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33359 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33360 # A ".." for each directory in $ac_dir_suffix.
33361 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33362 case $ac_top_builddir_sub in
33363 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33364 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33367 ac_abs_top_builddir=$ac_pwd
33368 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33369 # for backward compatibility:
33370 ac_top_builddir=$ac_top_build_prefix
33373 .) # We are building in place.
33375 ac_top_srcdir=$ac_top_builddir_sub
33376 ac_abs_top_srcdir=$ac_pwd ;;
33377 [\\/]* | ?:[\\/]* ) # Absolute name.
33378 ac_srcdir=$srcdir$ac_dir_suffix;
33379 ac_top_srcdir=$srcdir
33380 ac_abs_top_srcdir=$srcdir ;;
33381 *) # Relative name.
33382 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33383 ac_top_srcdir=$ac_top_build_prefix$srcdir
33384 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33386 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33391 # Check for guested configure; otherwise get Cygnus style configure.
33392 if test -f "$ac_srcdir/configure.gnu"; then
33393 ac_sub_configure=$ac_srcdir/configure.gnu
33394 elif test -f "$ac_srcdir/configure"; then
33395 ac_sub_configure=$ac_srcdir/configure
33396 elif test -f "$ac_srcdir/configure.in"; then
33397 # This should be Cygnus configure.
33398 ac_sub_configure=$ac_aux_dir/configure
33400 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
33401 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33405 # The recursion is here.
33406 if test -n "$ac_sub_configure"; then
33407 # Make the cache file name correct relative to the subdirectory.
33408 case $cache_file in
33409 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
33410 *) # Relative name.
33411 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
33414 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
33415 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33416 # The eval makes quoting arguments work.
33417 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33418 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
33419 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
33420 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
33421 { (exit 1); exit 1; }; }