2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for llvm 2.2svn.
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-2007 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.2svn'
734 PACKAGE_STRING='llvm 2.2svn'
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
848 ENABLE_EXPENSIVE_CHECKS
906 CONVENIENCE_LTDL_TRUE
907 CONVENIENCE_LTDL_FALSE
948 ac_precious_vars='build_alias
965 ac_subdirs_all='projects/sample
967 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.2svn 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.2svn:";;
1548 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1549 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1552 --enable-expensive-checks
1554 --enable-debug-runtime
1555 --enable-jit Enable Just In Time Compiling (default is YES)
1556 --enable-doxygen Build doxygen documentation (default is NO)
1557 --enable-threads Use threads if available (default is YES)
1558 --enable-pic Build LLVM with Position Independent Code (default
1560 --enable-targets Build specific host targets:
1561 all,host-only,{target-name} (default=all)
1562 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1564 --enable-bindings Build specific language bindings:
1565 all,auto,none,{binding-name} (default=auto)
1566 --enable-ltdl-install install libltdl
1567 --enable-shared[=PKGS] build shared libraries
1569 --enable-static[=PKGS] build static libraries
1571 --enable-fast-install[=PKGS]
1572 optimize for fast installation
1574 --disable-libtool-lock avoid locking (might break parallel builds)
1577 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1578 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1579 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1581 --with-llvmgcc Specify location of llvm-gcc driver (default
1583 --with-llvmgxx Specify location of llvm-g++ driver (default
1585 --with-extra-options Specify addtional options to compile LLVM with
1586 --with-ocaml-libdir Specify install location for ocaml bindings (default
1588 --with-tclinclude directory where tcl headers are
1589 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1590 --with-pic try to use only PIC/non-PIC objects [default=use
1592 --with-tags[=TAGS] include additional configurations [automatic]
1593 --with-udis86=<path> Use udis86 external x86 disassembler library
1595 Some influential environment variables:
1596 CC C compiler command
1597 CFLAGS C compiler flags
1598 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1599 nonstandard directory <lib dir>
1600 LIBS libraries to pass to the linker, e.g. -l<library>
1601 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1602 you have headers in a nonstandard directory <include dir>
1604 CXX C++ compiler command
1605 CXXFLAGS C++ compiler flags
1606 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1607 the first program found out of: `bison -y', `byacc', `yacc'.
1608 YFLAGS The list of arguments that will be passed by default to $YACC.
1609 This script will default YFLAGS to the empty string to avoid a
1610 default value of `-d' given by some make applications.
1611 CXXCPP C++ preprocessor
1612 F77 Fortran 77 compiler command
1613 FFLAGS Fortran 77 compiler flags
1615 Use these variables to override the choices made by `configure' or to help
1616 it to find libraries and programs with nonstandard names/locations.
1618 Report bugs to <llvmbugs@cs.uiuc.edu>.
1623 if test "$ac_init_help" = "recursive"; then
1624 # If there are subdirs, report their specific --help.
1625 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1626 test -d "$ac_dir" || continue
1630 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1633 # A ".." for each directory in $ac_dir_suffix.
1634 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1635 case $ac_top_builddir_sub in
1636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1640 ac_abs_top_builddir=$ac_pwd
1641 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642 # for backward compatibility:
1643 ac_top_builddir=$ac_top_build_prefix
1646 .) # We are building in place.
1648 ac_top_srcdir=$ac_top_builddir_sub
1649 ac_abs_top_srcdir=$ac_pwd ;;
1650 [\\/]* | ?:[\\/]* ) # Absolute name.
1651 ac_srcdir=$srcdir$ac_dir_suffix;
1652 ac_top_srcdir=$srcdir
1653 ac_abs_top_srcdir=$srcdir ;;
1655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656 ac_top_srcdir=$ac_top_build_prefix$srcdir
1657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1659 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1661 cd "$ac_dir" || { ac_status=$?; continue; }
1662 # Check for guested configure.
1663 if test -f "$ac_srcdir/configure.gnu"; then
1665 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666 elif test -f "$ac_srcdir/configure"; then
1668 $SHELL "$ac_srcdir/configure" --help=recursive
1670 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1672 cd "$ac_pwd" || { ac_status=$?; break; }
1676 test -n "$ac_init_help" && exit $ac_status
1677 if $ac_init_version; then
1679 llvm configure 2.2svn
1680 generated by GNU Autoconf 2.61
1682 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1683 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1684 This configure script is free software; the Free Software Foundation
1685 gives unlimited permission to copy, distribute and modify it.
1687 Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1691 cat >config.log <<_ACEOF
1692 This file contains any messages produced by compilers while
1693 running configure, to aid debugging if configure makes a mistake.
1695 It was created by llvm $as_me 2.2svn, which was
1696 generated by GNU Autoconf 2.61. Invocation command line was
1708 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1709 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1710 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1711 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1712 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1714 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1715 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1717 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1718 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1719 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1720 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1721 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1722 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1723 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 test -z "$as_dir" && as_dir=.
1732 echo "PATH: $as_dir"
1748 # Keep a trace of the command line.
1749 # Strip out --no-create and --no-recursion so they do not pile up.
1750 # Strip out --silent because we don't want to record it for future runs.
1751 # Also quote any args containing shell meta-characters.
1752 # Make two passes to allow for proper duplicate-argument suppression.
1756 ac_must_keep_next=false
1762 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1763 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1764 | -silent | --silent | --silen | --sile | --sil)
1767 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1770 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1772 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1773 if test $ac_must_keep_next = true; then
1774 ac_must_keep_next=false # Got value, back to normal.
1777 *=* | --config-cache | -C | -disable-* | --disable-* \
1778 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1779 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1780 | -with-* | --with-* | -without-* | --without-* | --x)
1781 case "$ac_configure_args0 " in
1782 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1785 -* ) ac_must_keep_next=true ;;
1788 ac_configure_args="$ac_configure_args '$ac_arg'"
1793 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1794 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1796 # When interrupted or exit'd, cleanup temporary files, and complete
1797 # config.log. We remove comments because anyway the quotes in there
1798 # would cause problems or look ugly.
1799 # WARNING: Use '\'' to represent an apostrophe within the trap.
1800 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1801 trap 'exit_status=$?
1802 # Save into config.log some information that might help in debugging.
1807 ## ---------------- ##
1808 ## Cache variables. ##
1809 ## ---------------- ##
1812 # The following way of writing the cache mishandles newlines in values,
1814 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1815 eval ac_val=\$$ac_var
1819 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1820 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1823 _ | IFS | as_nl) ;; #(
1824 *) $as_unset $ac_var ;;
1829 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1830 *${as_nl}ac_space=\ *)
1832 "s/'\''/'\''\\\\'\'''\''/g;
1833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1836 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1844 ## ----------------- ##
1845 ## Output variables. ##
1846 ## ----------------- ##
1849 for ac_var in $ac_subst_vars
1851 eval ac_val=\$$ac_var
1853 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1855 echo "$ac_var='\''$ac_val'\''"
1859 if test -n "$ac_subst_files"; then
1861 ## ------------------- ##
1862 ## File substitutions. ##
1863 ## ------------------- ##
1866 for ac_var in $ac_subst_files
1868 eval ac_val=\$$ac_var
1870 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1872 echo "$ac_var='\''$ac_val'\''"
1877 if test -s confdefs.h; then
1887 test "$ac_signal" != 0 &&
1888 echo "$as_me: caught signal $ac_signal"
1889 echo "$as_me: exit $exit_status"
1891 rm -f core *.core core.conftest.* &&
1892 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1895 for ac_signal in 1 2 13 15; do
1896 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1900 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1901 rm -f -r conftest* confdefs.h
1903 # Predefined preprocessor variables.
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_NAME "$PACKAGE_NAME"
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_STRING "$PACKAGE_STRING"
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1930 # Let the site file select an alternate cache file if it wants to.
1931 # Prefer explicitly selected file to automatically selected ones.
1932 if test -n "$CONFIG_SITE"; then
1933 set x "$CONFIG_SITE"
1934 elif test "x$prefix" != xNONE; then
1935 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1937 set x "$ac_default_prefix/share/config.site" \
1938 "$ac_default_prefix/etc/config.site"
1943 if test -r "$ac_site_file"; then
1944 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1945 echo "$as_me: loading site script $ac_site_file" >&6;}
1946 sed 's/^/| /' "$ac_site_file" >&5
1951 if test -r "$cache_file"; then
1952 # Some versions of bash will fail to source /dev/null (special
1953 # files actually), so we avoid doing that.
1954 if test -f "$cache_file"; then
1955 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1956 echo "$as_me: loading cache $cache_file" >&6;}
1958 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1959 *) . "./$cache_file";;
1963 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1964 echo "$as_me: creating cache $cache_file" >&6;}
1968 # Check that the precious variables saved in the cache have kept the same
1970 ac_cache_corrupted=false
1971 for ac_var in $ac_precious_vars; do
1972 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1973 eval ac_new_set=\$ac_env_${ac_var}_set
1974 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1975 eval ac_new_val=\$ac_env_${ac_var}_value
1976 case $ac_old_set,$ac_new_set in
1978 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1979 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1980 ac_cache_corrupted=: ;;
1982 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1983 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1984 ac_cache_corrupted=: ;;
1987 if test "x$ac_old_val" != "x$ac_new_val"; then
1988 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1989 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1990 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1991 echo "$as_me: former value: $ac_old_val" >&2;}
1992 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1993 echo "$as_me: current value: $ac_new_val" >&2;}
1994 ac_cache_corrupted=:
1997 # Pass precious variables to config.status.
1998 if test "$ac_new_set" = set; then
2000 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2001 *) ac_arg=$ac_var=$ac_new_val ;;
2003 case " $ac_configure_args " in
2004 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2005 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2009 if $ac_cache_corrupted; then
2010 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2011 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2012 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2013 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2014 { (exit 1); exit 1; }; }
2042 ac_cpp='$CPP $CPPFLAGS'
2043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2049 LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2058 for ac_dir in autoconf "$srcdir"/autoconf; do
2059 if test -f "$ac_dir/install-sh"; then
2061 ac_install_sh="$ac_aux_dir/install-sh -c"
2063 elif test -f "$ac_dir/install.sh"; then
2065 ac_install_sh="$ac_aux_dir/install.sh -c"
2067 elif test -f "$ac_dir/shtool"; then
2069 ac_install_sh="$ac_aux_dir/shtool install -c"
2073 if test -z "$ac_aux_dir"; then
2074 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2075 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2076 { (exit 1); exit 1; }; }
2079 # These three variables are undocumented and unsupported,
2080 # and are intended to be withdrawn in a future Autoconf release.
2081 # They can cause serious problems if a builder's source tree is in a directory
2082 # whose full name contains unusual characters.
2083 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2084 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2085 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2089 if test ${srcdir} != "." ; then
2090 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2091 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2092 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2093 { (exit 1); exit 1; }; }
2097 for i in `ls ${srcdir}/projects`
2099 if test -d ${srcdir}/projects/${i} ; then
2102 sample) subdirs="$subdirs projects/sample"
2104 privbracket) subdirs="$subdirs projects/privbracket"
2106 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2108 llvm-test) subdirs="$subdirs projects/llvm-test"
2110 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2112 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2114 llvm-java) subdirs="$subdirs projects/llvm-java"
2116 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2118 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2120 poolalloc) subdirs="$subdirs projects/poolalloc"
2122 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2125 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2126 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2133 # Make sure we can run config.sub.
2134 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2135 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2136 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2137 { (exit 1); exit 1; }; }
2139 { echo "$as_me:$LINENO: checking build system type" >&5
2140 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2141 if test "${ac_cv_build+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 ac_build_alias=$build_alias
2145 test "x$ac_build_alias" = x &&
2146 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2147 test "x$ac_build_alias" = x &&
2148 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2149 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2150 { (exit 1); exit 1; }; }
2151 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2152 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2153 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2154 { (exit 1); exit 1; }; }
2157 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2158 echo "${ECHO_T}$ac_cv_build" >&6; }
2159 case $ac_cv_build in
2161 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2162 echo "$as_me: error: invalid value of canonical build" >&2;}
2163 { (exit 1); exit 1; }; };;
2166 ac_save_IFS=$IFS; IFS='-'
2172 # Remember, the first character of IFS is used to create $*,
2173 # except with old shells:
2176 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2179 { echo "$as_me:$LINENO: checking host system type" >&5
2180 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2181 if test "${ac_cv_host+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 if test "x$host_alias" = x; then
2185 ac_cv_host=$ac_cv_build
2187 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2188 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2189 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2190 { (exit 1); exit 1; }; }
2194 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2195 echo "${ECHO_T}$ac_cv_host" >&6; }
2198 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2199 echo "$as_me: error: invalid value of canonical host" >&2;}
2200 { (exit 1); exit 1; }; };;
2203 ac_save_IFS=$IFS; IFS='-'
2209 # Remember, the first character of IFS is used to create $*,
2210 # except with old shells:
2213 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2216 { echo "$as_me:$LINENO: checking target system type" >&5
2217 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2218 if test "${ac_cv_target+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 if test "x$target_alias" = x; then
2222 ac_cv_target=$ac_cv_host
2224 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2225 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2226 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2227 { (exit 1); exit 1; }; }
2231 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2232 echo "${ECHO_T}$ac_cv_target" >&6; }
2233 case $ac_cv_target in
2235 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2236 echo "$as_me: error: invalid value of canonical target" >&2;}
2237 { (exit 1); exit 1; }; };;
2239 target=$ac_cv_target
2240 ac_save_IFS=$IFS; IFS='-'
2246 # Remember, the first character of IFS is used to create $*,
2247 # except with old shells:
2250 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2253 # The aliases save the names the user supplied, while $host etc.
2254 # will get canonicalized.
2255 test -n "$target_alias" &&
2256 test "$program_prefix$program_suffix$program_transform_name" = \
2258 program_prefix=${target_alias}-
2260 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2261 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2262 if test "${llvm_cv_os_type+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 llvm_cv_link_all_option="-Wl,--whole-archive"
2268 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2269 llvm_cv_os_type="AIX"
2270 llvm_cv_platform_type="Unix" ;;
2272 llvm_cv_link_all_option="-Wl,--whole-archive"
2273 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2274 llvm_cv_os_type="IRIX"
2275 llvm_cv_platform_type="Unix" ;;
2277 llvm_cv_link_all_option="-Wl,--whole-archive"
2278 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2279 llvm_cv_os_type="Cygwin"
2280 llvm_cv_platform_type="Unix" ;;
2282 llvm_cv_link_all_option="-Wl,-all_load"
2283 llvm_cv_link_all_option="-Wl,-noall_load"
2284 llvm_cv_os_type="Darwin"
2285 llvm_cv_platform_type="Unix" ;;
2287 llvm_cv_link_all_option="-Wl,--whole-archive"
2288 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2289 llvm_cv_os_type="FreeBSD"
2290 llvm_cv_platform_type="Unix" ;;
2292 llvm_cv_link_all_option="-Wl,--whole-archive"
2293 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2294 llvm_cv_os_type="OpenBSD"
2295 llvm_cv_platform_type="Unix" ;;
2297 llvm_cv_link_all_option="-Wl,--whole-archive"
2298 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2299 llvm_cv_os_type="NetBSD"
2300 llvm_cv_platform_type="Unix" ;;
2302 llvm_cv_link_all_option="-Wl,--whole-archive"
2303 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2304 llvm_cv_os_type="HP-UX"
2305 llvm_cv_platform_type="Unix" ;;
2307 llvm_cv_link_all_option="-Wl,--whole-archive"
2308 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2309 llvm_cv_os_type="Interix"
2310 llvm_cv_platform_type="Unix" ;;
2312 llvm_cv_link_all_option="-Wl,--whole-archive"
2313 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2314 llvm_cv_os_type="Linux"
2315 llvm_cv_platform_type="Unix" ;;
2317 llvm_cv_link_all_option="-Wl,-z,allextract"
2318 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2319 llvm_cv_os_type="SunOS"
2320 llvm_cv_platform_type="Unix" ;;
2322 llvm_cv_link_all_option="-Wl,--whole-archive"
2323 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2324 llvm_cv_os_type="Win32"
2325 llvm_cv_platform_type="Win32" ;;
2327 llvm_cv_link_all_option="-Wl,--whole-archive"
2328 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2329 llvm_cv_os_type="MingW"
2330 llvm_cv_platform_type="Win32" ;;
2332 llvm_cv_link_all_option=""
2333 llvm_cv_no_link_all_option=""
2334 llvm_cv_os_type="Unknown"
2335 llvm_cv_platform_type="Unknown" ;;
2338 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2339 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2341 if test "$llvm_cv_os_type" = "Unknown" ; then
2342 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2343 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2344 { (exit 1); exit 1; }; }
2350 LINKALL=$llvm_cv_link_all_option
2352 NOLINKALL=$llvm_cv_no_link_all_option
2355 case $llvm_cv_platform_type in
2358 cat >>confdefs.h <<\_ACEOF
2359 #define LLVM_ON_UNIX 1
2369 cat >>confdefs.h <<\_ACEOF
2370 #define LLVM_ON_WIN32 1
2380 { echo "$as_me:$LINENO: checking target architecture" >&5
2381 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2382 if test "${llvm_cv_target_arch+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 i?86-*) llvm_cv_target_arch="x86" ;;
2387 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2388 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2389 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2390 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2391 ia64-*) llvm_cv_target_arch="IA64" ;;
2392 arm-*) llvm_cv_target_arch="ARM" ;;
2393 mips-*) llvm_cv_target_arch="Mips" ;;
2394 *) llvm_cv_target_arch="Unknown" ;;
2397 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2398 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2400 if test "$llvm_cv_target_arch" = "Unknown" ; then
2401 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2402 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2405 ARCH=$llvm_cv_target_arch
2409 ac_cpp='$CPP $CPPFLAGS'
2410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2413 if test -n "$ac_tool_prefix"; then
2414 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2415 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2418 if test "${ac_cv_prog_CC+set}" = set; then
2419 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 if test -n "$CC"; then
2422 ac_cv_prog_CC="$CC" # Let the user override the test.
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2431 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 if test -n "$CC"; then
2443 { echo "$as_me:$LINENO: result: $CC" >&5
2444 echo "${ECHO_T}$CC" >&6; }
2446 { echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6; }
2452 if test -z "$ac_cv_prog_CC"; then
2454 # Extract the first word of "gcc", so it can be a program name with args.
2455 set dummy gcc; ac_word=$2
2456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2458 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 if test -n "$ac_ct_CC"; then
2462 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 test -z "$as_dir" && as_dir=.
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471 ac_cv_prog_ac_ct_CC="gcc"
2472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2482 if test -n "$ac_ct_CC"; then
2483 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2484 echo "${ECHO_T}$ac_ct_CC" >&6; }
2486 { echo "$as_me:$LINENO: result: no" >&5
2487 echo "${ECHO_T}no" >&6; }
2490 if test "x$ac_ct_CC" = x; then
2493 case $cross_compiling:$ac_tool_warned in
2495 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2496 whose name does not start with the host triplet. If you think this
2497 configuration is useful to you, please write to autoconf@gnu.org." >&5
2498 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2499 whose name does not start with the host triplet. If you think this
2500 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2501 ac_tool_warned=yes ;;
2509 if test -z "$CC"; then
2510 if test -n "$ac_tool_prefix"; then
2511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2512 set dummy ${ac_tool_prefix}cc; ac_word=$2
2513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2515 if test "${ac_cv_prog_CC+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 if test -n "$CC"; then
2519 ac_cv_prog_CC="$CC" # Let the user override the test.
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528 ac_cv_prog_CC="${ac_tool_prefix}cc"
2529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 if test -n "$CC"; then
2540 { echo "$as_me:$LINENO: result: $CC" >&5
2541 echo "${ECHO_T}$CC" >&6; }
2543 { echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6; }
2550 if test -z "$CC"; then
2551 # Extract the first word of "cc", so it can be a program name with args.
2552 set dummy cc; ac_word=$2
2553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2555 if test "${ac_cv_prog_CC+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 if test -n "$CC"; then
2559 ac_cv_prog_CC="$CC" # Let the user override the test.
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2570 ac_prog_rejected=yes
2574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 if test $ac_prog_rejected = yes; then
2582 # We found a bogon in the path, so make sure we never use it.
2583 set dummy $ac_cv_prog_CC
2585 if test $# != 0; then
2586 # We chose a different compiler from the bogus one.
2587 # However, it has the same basename, so the bogon will be chosen
2588 # first if we set CC to just the basename; use the full file name.
2590 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2596 if test -n "$CC"; then
2597 { echo "$as_me:$LINENO: result: $CC" >&5
2598 echo "${ECHO_T}$CC" >&6; }
2600 { echo "$as_me:$LINENO: result: no" >&5
2601 echo "${ECHO_T}no" >&6; }
2606 if test -z "$CC"; then
2607 if test -n "$ac_tool_prefix"; then
2608 for ac_prog in cl.exe
2610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2611 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2614 if test "${ac_cv_prog_CC+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 if test -n "$CC"; then
2618 ac_cv_prog_CC="$CC" # Let the user override the test.
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 if test -n "$CC"; then
2639 { echo "$as_me:$LINENO: result: $CC" >&5
2640 echo "${ECHO_T}$CC" >&6; }
2642 { echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6; }
2647 test -n "$CC" && break
2650 if test -z "$CC"; then
2652 for ac_prog in cl.exe
2654 # Extract the first word of "$ac_prog", so it can be a program name with args.
2655 set dummy $ac_prog; ac_word=$2
2656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2658 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2661 if test -n "$ac_ct_CC"; then
2662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671 ac_cv_prog_ac_ct_CC="$ac_prog"
2672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2682 if test -n "$ac_ct_CC"; then
2683 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2684 echo "${ECHO_T}$ac_ct_CC" >&6; }
2686 { echo "$as_me:$LINENO: result: no" >&5
2687 echo "${ECHO_T}no" >&6; }
2691 test -n "$ac_ct_CC" && break
2694 if test "x$ac_ct_CC" = x; then
2697 case $cross_compiling:$ac_tool_warned in
2699 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2700 whose name does not start with the host triplet. If you think this
2701 configuration is useful to you, please write to autoconf@gnu.org." >&5
2702 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2703 whose name does not start with the host triplet. If you think this
2704 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2705 ac_tool_warned=yes ;;
2714 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2715 See \`config.log' for more details." >&5
2716 echo "$as_me: error: no acceptable C compiler found in \$PATH
2717 See \`config.log' for more details." >&2;}
2718 { (exit 1); exit 1; }; }
2720 # Provide some information about the compiler.
2721 echo "$as_me:$LINENO: checking for C compiler version" >&5
2722 ac_compiler=`set X $ac_compile; echo $2`
2723 { (ac_try="$ac_compiler --version >&5"
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_compiler --version >&5") 2>&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }
2733 { (ac_try="$ac_compiler -v >&5"
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739 (eval "$ac_compiler -v >&5") 2>&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }
2743 { (ac_try="$ac_compiler -V >&5"
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749 (eval "$ac_compiler -V >&5") 2>&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }
2754 cat >conftest.$ac_ext <<_ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2769 ac_clean_files_save=$ac_clean_files
2770 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2771 # Try to create an executable without -o first, disregard a.out.
2772 # It will help us diagnose broken compilers, and finding out an intuition
2774 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2775 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2776 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2778 # List of possible output files, starting from the most likely.
2779 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2780 # only as a last resort. b.out is created by i960 compilers.
2781 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2783 # The IRIX 6 linker writes into existing files which may not be
2784 # executable, retaining their permissions. Remove them first so a
2785 # subsequent execution test works.
2787 for ac_file in $ac_files
2790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2791 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2796 if { (ac_try="$ac_link_default"
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802 (eval "$ac_link_default") 2>&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; then
2806 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2807 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2808 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2809 # so that the user can short-circuit this test for compilers unknown to
2811 for ac_file in $ac_files ''
2813 test -f "$ac_file" || continue
2815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2818 # We found the default executable, but exeext='' is most
2822 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2824 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2826 # We set ac_cv_exeext here because the later test for it is not
2827 # safe: cross compilers may not add the suffix if given an `-o'
2828 # argument, so we may need to know it at that point already.
2829 # Even if this section looks crufty: it has the advantage of
2836 test "$ac_cv_exeext" = no && ac_cv_exeext=
2842 { echo "$as_me:$LINENO: result: $ac_file" >&5
2843 echo "${ECHO_T}$ac_file" >&6; }
2844 if test -z "$ac_file"; then
2845 echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2848 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2849 See \`config.log' for more details." >&5
2850 echo "$as_me: error: C compiler cannot create executables
2851 See \`config.log' for more details." >&2;}
2852 { (exit 77); exit 77; }; }
2855 ac_exeext=$ac_cv_exeext
2857 # Check that the compiler produces executables we can run. If not, either
2858 # the compiler is broken, or we cross compile.
2859 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2860 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2861 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2862 # If not cross compiling, check that we can run a simple program.
2863 if test "$cross_compiling" != yes; then
2864 if { ac_try='./$ac_file'
2865 { (case "(($ac_try" in
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2870 (eval "$ac_try") 2>&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
2876 if test "$cross_compiling" = maybe; then
2879 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2880 If you meant to cross compile, use \`--host'.
2881 See \`config.log' for more details." >&5
2882 echo "$as_me: error: cannot run C compiled programs.
2883 If you meant to cross compile, use \`--host'.
2884 See \`config.log' for more details." >&2;}
2885 { (exit 1); exit 1; }; }
2889 { echo "$as_me:$LINENO: result: yes" >&5
2890 echo "${ECHO_T}yes" >&6; }
2892 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2893 ac_clean_files=$ac_clean_files_save
2894 # Check that the compiler produces executables we can run. If not, either
2895 # the compiler is broken, or we cross compile.
2896 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2897 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2898 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2899 echo "${ECHO_T}$cross_compiling" >&6; }
2901 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2902 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2903 if { (ac_try="$ac_link"
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_link") 2>&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; then
2913 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2914 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2915 # work properly (i.e., refer to `conftest.exe'), while it won't with
2917 for ac_file in conftest.exe conftest conftest.*; do
2918 test -f "$ac_file" || continue
2920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2921 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2927 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2928 See \`config.log' for more details." >&5
2929 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2930 See \`config.log' for more details." >&2;}
2931 { (exit 1); exit 1; }; }
2934 rm -f conftest$ac_cv_exeext
2935 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2936 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2938 rm -f conftest.$ac_ext
2939 EXEEXT=$ac_cv_exeext
2941 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2942 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2943 if test "${ac_cv_objext+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 cat >conftest.$ac_ext <<_ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2961 rm -f conftest.o conftest.obj
2962 if { (ac_try="$ac_compile"
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968 (eval "$ac_compile") 2>&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; then
2972 for ac_file in conftest.o conftest.obj conftest.*; do
2973 test -f "$ac_file" || continue;
2975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2976 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2981 echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2984 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2985 See \`config.log' for more details." >&5
2986 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2987 See \`config.log' for more details." >&2;}
2988 { (exit 1); exit 1; }; }
2991 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2993 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2994 echo "${ECHO_T}$ac_cv_objext" >&6; }
2995 OBJEXT=$ac_cv_objext
2997 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2998 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2999 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 cat >conftest.$ac_ext <<_ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3020 rm -f conftest.$ac_objext
3021 if { (ac_try="$ac_compile"
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_compile") 2>conftest.er1
3029 grep -v '^ *+' conftest.er1 >conftest.err
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } && {
3034 test -z "$ac_c_werror_flag" ||
3035 test ! -s conftest.err
3036 } && test -s conftest.$ac_objext; then
3039 echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3046 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3049 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3050 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3051 GCC=`test $ac_compiler_gnu = yes && echo yes`
3052 ac_test_CFLAGS=${CFLAGS+set}
3053 ac_save_CFLAGS=$CFLAGS
3054 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3055 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3056 if test "${ac_cv_prog_cc_g+set}" = set; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3059 ac_save_c_werror_flag=$ac_c_werror_flag
3060 ac_c_werror_flag=yes
3063 cat >conftest.$ac_ext <<_ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3078 rm -f conftest.$ac_objext
3079 if { (ac_try="$ac_compile"
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085 (eval "$ac_compile") 2>conftest.er1
3087 grep -v '^ *+' conftest.er1 >conftest.err
3089 cat conftest.err >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } && {
3092 test -z "$ac_c_werror_flag" ||
3093 test ! -s conftest.err
3094 } && test -s conftest.$ac_objext; then
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3101 cat >conftest.$ac_ext <<_ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3116 rm -f conftest.$ac_objext
3117 if { (ac_try="$ac_compile"
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_compile") 2>conftest.er1
3125 grep -v '^ *+' conftest.er1 >conftest.err
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } && {
3130 test -z "$ac_c_werror_flag" ||
3131 test ! -s conftest.err
3132 } && test -s conftest.$ac_objext; then
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3138 ac_c_werror_flag=$ac_save_c_werror_flag
3140 cat >conftest.$ac_ext <<_ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3155 rm -f conftest.$ac_objext
3156 if { (ac_try="$ac_compile"
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_compile") 2>conftest.er1
3164 grep -v '^ *+' conftest.er1 >conftest.err
3166 cat conftest.err >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); } && {
3169 test -z "$ac_c_werror_flag" ||
3170 test ! -s conftest.err
3171 } && test -s conftest.$ac_objext; then
3174 echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 ac_c_werror_flag=$ac_save_c_werror_flag
3189 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3190 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3191 if test "$ac_test_CFLAGS" = set; then
3192 CFLAGS=$ac_save_CFLAGS
3193 elif test $ac_cv_prog_cc_g = yes; then
3194 if test "$GCC" = yes; then
3200 if test "$GCC" = yes; then
3206 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3207 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3208 if test "${ac_cv_prog_cc_c89+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 ac_cv_prog_cc_c89=no
3213 cat >conftest.$ac_ext <<_ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3221 #include <sys/types.h>
3222 #include <sys/stat.h>
3223 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3224 struct buf { int x; };
3225 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3226 static char *e (p, i)
3232 static char *f (char * (*g) (char **, int), char **p, ...)
3237 s = g (p, va_arg (v,int));
3242 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3243 function prototypes and stuff, but not '\xHH' hex character constants.
3244 These don't provoke an error unfortunately, instead are silently treated
3245 as 'x'. The following induces an error, until -std is added to get
3246 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3247 array size at least. It's necessary to write '\x00'==0 to get something
3248 that's true only with -std. */
3249 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3251 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3252 inside strings and character constants. */
3254 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3256 int test (int i, double x);
3257 struct s1 {int (*f) (int a);};
3258 struct s2 {int (*f) (double a);};
3259 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3265 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3270 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3271 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3273 CC="$ac_save_CC $ac_arg"
3274 rm -f conftest.$ac_objext
3275 if { (ac_try="$ac_compile"
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281 (eval "$ac_compile") 2>conftest.er1
3283 grep -v '^ *+' conftest.er1 >conftest.err
3285 cat conftest.err >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); } && {
3288 test -z "$ac_c_werror_flag" ||
3289 test ! -s conftest.err
3290 } && test -s conftest.$ac_objext; then
3291 ac_cv_prog_cc_c89=$ac_arg
3293 echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3299 rm -f core conftest.err conftest.$ac_objext
3300 test "x$ac_cv_prog_cc_c89" != "xno" && break
3302 rm -f conftest.$ac_ext
3307 case "x$ac_cv_prog_cc_c89" in
3309 { echo "$as_me:$LINENO: result: none needed" >&5
3310 echo "${ECHO_T}none needed" >&6; } ;;
3312 { echo "$as_me:$LINENO: result: unsupported" >&5
3313 echo "${ECHO_T}unsupported" >&6; } ;;
3315 CC="$CC $ac_cv_prog_cc_c89"
3316 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3317 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3322 ac_cpp='$CPP $CPPFLAGS'
3323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3329 ac_cpp='$CPP $CPPFLAGS'
3330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3333 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3334 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3335 # On Suns, sometimes $CPP names a directory.
3336 if test -n "$CPP" && test -d "$CPP"; then
3339 if test -z "$CPP"; then
3340 if test "${ac_cv_prog_CPP+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 # Double quotes because CPP needs to be expanded
3344 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3347 for ac_c_preproc_warn_flag in '' yes
3349 # Use a header file that comes with gcc, so configuring glibc
3350 # with a fresh cross-compiler works.
3351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3352 # <limits.h> exists even on freestanding compilers.
3353 # On the NeXT, cc -E runs the code through the compiler's parser,
3354 # not just through cpp. "Syntax error" is here to catch this case.
3355 cat >conftest.$ac_ext <<_ACEOF
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h. */
3362 # include <limits.h>
3364 # include <assert.h>
3368 if { (ac_try="$ac_cpp conftest.$ac_ext"
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3376 grep -v '^ *+' conftest.er1 >conftest.err
3378 cat conftest.err >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } >/dev/null && {
3381 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3382 test ! -s conftest.err
3386 echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3389 # Broken: fails on valid input.
3393 rm -f conftest.err conftest.$ac_ext
3395 # OK, works on sane cases. Now check whether nonexistent headers
3396 # can be detected and how.
3397 cat >conftest.$ac_ext <<_ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h. */
3403 #include <ac_nonexistent.h>
3405 if { (ac_try="$ac_cpp conftest.$ac_ext"
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3413 grep -v '^ *+' conftest.er1 >conftest.err
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } >/dev/null && {
3418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3419 test ! -s conftest.err
3421 # Broken: success on invalid input.
3424 echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3427 # Passes both tests.
3432 rm -f conftest.err conftest.$ac_ext
3435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3436 rm -f conftest.err conftest.$ac_ext
3437 if $ac_preproc_ok; then
3449 { echo "$as_me:$LINENO: result: $CPP" >&5
3450 echo "${ECHO_T}$CPP" >&6; }
3452 for ac_c_preproc_warn_flag in '' yes
3454 # Use a header file that comes with gcc, so configuring glibc
3455 # with a fresh cross-compiler works.
3456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3457 # <limits.h> exists even on freestanding compilers.
3458 # On the NeXT, cc -E runs the code through the compiler's parser,
3459 # not just through cpp. "Syntax error" is here to catch this case.
3460 cat >conftest.$ac_ext <<_ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3467 # include <limits.h>
3469 # include <assert.h>
3473 if { (ac_try="$ac_cpp conftest.$ac_ext"
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3481 grep -v '^ *+' conftest.er1 >conftest.err
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } >/dev/null && {
3486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3487 test ! -s conftest.err
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3494 # Broken: fails on valid input.
3498 rm -f conftest.err conftest.$ac_ext
3500 # OK, works on sane cases. Now check whether nonexistent headers
3501 # can be detected and how.
3502 cat >conftest.$ac_ext <<_ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3508 #include <ac_nonexistent.h>
3510 if { (ac_try="$ac_cpp conftest.$ac_ext"
3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513 *) ac_try_echo=$ac_try;;
3515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3518 grep -v '^ *+' conftest.er1 >conftest.err
3520 cat conftest.err >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); } >/dev/null && {
3523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3524 test ! -s conftest.err
3526 # Broken: success on invalid input.
3529 echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3532 # Passes both tests.
3537 rm -f conftest.err conftest.$ac_ext
3540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3541 rm -f conftest.err conftest.$ac_ext
3542 if $ac_preproc_ok; then
3545 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3546 See \`config.log' for more details." >&5
3547 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3548 See \`config.log' for more details." >&2;}
3549 { (exit 1); exit 1; }; }
3553 ac_cpp='$CPP $CPPFLAGS'
3554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3559 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3560 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3561 if test "${ac_cv_path_GREP+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3564 # Extract the first word of "grep ggrep" to use in msg output
3565 if test -z "$GREP"; then
3566 set dummy grep ggrep; ac_prog_name=$2
3567 if test "${ac_cv_path_GREP+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 ac_path_GREP_found=false
3571 # Loop through the user's path and test for each of PROGNAME-LIST
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3576 test -z "$as_dir" && as_dir=.
3577 for ac_prog in grep ggrep; do
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3580 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3581 # Check for GNU ac_path_GREP and select it if it is found.
3582 # Check for GNU $ac_path_GREP
3583 case `"$ac_path_GREP" --version 2>&1` in
3585 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3588 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3591 cat "conftest.in" "conftest.in" >"conftest.tmp"
3592 mv "conftest.tmp" "conftest.in"
3593 cp "conftest.in" "conftest.nl"
3594 echo 'GREP' >> "conftest.nl"
3595 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3597 ac_count=`expr $ac_count + 1`
3598 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3599 # Best one so far, save it but keep looking for a better one
3600 ac_cv_path_GREP="$ac_path_GREP"
3601 ac_path_GREP_max=$ac_count
3603 # 10*(2^10) chars as input seems more than enough
3604 test $ac_count -gt 10 && break
3606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3610 $ac_path_GREP_found && break 3
3620 GREP="$ac_cv_path_GREP"
3621 if test -z "$GREP"; then
3622 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3623 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3624 { (exit 1); exit 1; }; }
3628 ac_cv_path_GREP=$GREP
3633 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3634 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3635 GREP="$ac_cv_path_GREP"
3638 { echo "$as_me:$LINENO: checking for egrep" >&5
3639 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3640 if test "${ac_cv_path_EGREP+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3644 then ac_cv_path_EGREP="$GREP -E"
3646 # Extract the first word of "egrep" to use in msg output
3647 if test -z "$EGREP"; then
3648 set dummy egrep; ac_prog_name=$2
3649 if test "${ac_cv_path_EGREP+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 ac_path_EGREP_found=false
3653 # Loop through the user's path and test for each of PROGNAME-LIST
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3658 test -z "$as_dir" && as_dir=.
3659 for ac_prog in egrep; do
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3662 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3663 # Check for GNU ac_path_EGREP and select it if it is found.
3664 # Check for GNU $ac_path_EGREP
3665 case `"$ac_path_EGREP" --version 2>&1` in
3667 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3670 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3673 cat "conftest.in" "conftest.in" >"conftest.tmp"
3674 mv "conftest.tmp" "conftest.in"
3675 cp "conftest.in" "conftest.nl"
3676 echo 'EGREP' >> "conftest.nl"
3677 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3678 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3679 ac_count=`expr $ac_count + 1`
3680 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3681 # Best one so far, save it but keep looking for a better one
3682 ac_cv_path_EGREP="$ac_path_EGREP"
3683 ac_path_EGREP_max=$ac_count
3685 # 10*(2^10) chars as input seems more than enough
3686 test $ac_count -gt 10 && break
3688 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3692 $ac_path_EGREP_found && break 3
3702 EGREP="$ac_cv_path_EGREP"
3703 if test -z "$EGREP"; then
3704 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3705 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3706 { (exit 1); exit 1; }; }
3710 ac_cv_path_EGREP=$EGREP
3716 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3717 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3718 EGREP="$ac_cv_path_EGREP"
3721 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3722 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3723 if test "${ac_cv_header_stdc+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 cat >conftest.$ac_ext <<_ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h. */
3745 rm -f conftest.$ac_objext
3746 if { (ac_try="$ac_compile"
3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749 *) ac_try_echo=$ac_try;;
3751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3752 (eval "$ac_compile") 2>conftest.er1
3754 grep -v '^ *+' conftest.er1 >conftest.err
3756 cat conftest.err >&5
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); } && {
3759 test -z "$ac_c_werror_flag" ||
3760 test ! -s conftest.err
3761 } && test -s conftest.$ac_objext; then
3762 ac_cv_header_stdc=yes
3764 echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3767 ac_cv_header_stdc=no
3770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772 if test $ac_cv_header_stdc = yes; then
3773 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3774 cat >conftest.$ac_ext <<_ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h. */
3783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3784 $EGREP "memchr" >/dev/null 2>&1; then
3787 ac_cv_header_stdc=no
3793 if test $ac_cv_header_stdc = yes; then
3794 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3795 cat >conftest.$ac_ext <<_ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h. */
3804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3805 $EGREP "free" >/dev/null 2>&1; then
3808 ac_cv_header_stdc=no
3814 if test $ac_cv_header_stdc = yes; then
3815 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3816 if test "$cross_compiling" = yes; then
3819 cat >conftest.$ac_ext <<_ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3827 #if ((' ' & 0x0FF) == 0x020)
3828 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3829 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3831 # define ISLOWER(c) \
3832 (('a' <= (c) && (c) <= 'i') \
3833 || ('j' <= (c) && (c) <= 'r') \
3834 || ('s' <= (c) && (c) <= 'z'))
3835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3843 for (i = 0; i < 256; i++)
3844 if (XOR (islower (i), ISLOWER (i))
3845 || toupper (i) != TOUPPER (i))
3850 rm -f conftest$ac_exeext
3851 if { (ac_try="$ac_link"
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_link") 2>&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3861 { (case "(($ac_try" in
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_try") 2>&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }; }; then
3872 echo "$as_me: program exited with status $ac_status" >&5
3873 echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3877 ac_cv_header_stdc=no
3879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3885 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3886 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3887 if test $ac_cv_header_stdc = yes; then
3889 cat >>confdefs.h <<\_ACEOF
3890 #define STDC_HEADERS 1
3895 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3905 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3906 inttypes.h stdint.h unistd.h
3908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 cat >conftest.$ac_ext <<_ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3920 $ac_includes_default
3922 #include <$ac_header>
3924 rm -f conftest.$ac_objext
3925 if { (ac_try="$ac_compile"
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931 (eval "$ac_compile") 2>conftest.er1
3933 grep -v '^ *+' conftest.er1 >conftest.err
3935 cat conftest.err >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } && {
3938 test -z "$ac_c_werror_flag" ||
3939 test ! -s conftest.err
3940 } && test -s conftest.$ac_objext; then
3941 eval "$as_ac_Header=yes"
3943 echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3946 eval "$as_ac_Header=no"
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3951 ac_res=`eval echo '${'$as_ac_Header'}'`
3952 { echo "$as_me:$LINENO: result: $ac_res" >&5
3953 echo "${ECHO_T}$ac_res" >&6; }
3954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3955 cat >>confdefs.h <<_ACEOF
3956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3964 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3965 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3966 if test "${ac_cv_c_bigendian+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 # See if sys/param.h defines the BYTE_ORDER macro.
3970 cat >conftest.$ac_ext <<_ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h. */
3976 #include <sys/types.h>
3977 #include <sys/param.h>
3982 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3983 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3991 rm -f conftest.$ac_objext
3992 if { (ac_try="$ac_compile"
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3998 (eval "$ac_compile") 2>conftest.er1
4000 grep -v '^ *+' conftest.er1 >conftest.err
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } && {
4005 test -z "$ac_c_werror_flag" ||
4006 test ! -s conftest.err
4007 } && test -s conftest.$ac_objext; then
4008 # It does; now see whether it defined to BIG_ENDIAN or not.
4009 cat >conftest.$ac_ext <<_ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4015 #include <sys/types.h>
4016 #include <sys/param.h>
4021 #if BYTE_ORDER != BIG_ENDIAN
4029 rm -f conftest.$ac_objext
4030 if { (ac_try="$ac_compile"
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_compile") 2>conftest.er1
4038 grep -v '^ *+' conftest.er1 >conftest.err
4040 cat conftest.err >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } && {
4043 test -z "$ac_c_werror_flag" ||
4044 test ! -s conftest.err
4045 } && test -s conftest.$ac_objext; then
4046 ac_cv_c_bigendian=yes
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4051 ac_cv_c_bigendian=no
4054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4059 # It does not; compile a test program.
4060 if test "$cross_compiling" = yes; then
4061 # try to guess the endianness by grepping values into an object file
4062 ac_cv_c_bigendian=unknown
4063 cat >conftest.$ac_ext <<_ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4069 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4070 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4071 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4072 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4073 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4074 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4078 _ascii (); _ebcdic ();
4083 rm -f conftest.$ac_objext
4084 if { (ac_try="$ac_compile"
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090 (eval "$ac_compile") 2>conftest.er1
4092 grep -v '^ *+' conftest.er1 >conftest.err
4094 cat conftest.err >&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } && {
4097 test -z "$ac_c_werror_flag" ||
4098 test ! -s conftest.err
4099 } && test -s conftest.$ac_objext; then
4100 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4101 ac_cv_c_bigendian=yes
4103 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4104 if test "$ac_cv_c_bigendian" = unknown; then
4105 ac_cv_c_bigendian=no
4107 # finding both strings is unlikely to happen, but who knows?
4108 ac_cv_c_bigendian=unknown
4112 echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120 cat >conftest.$ac_ext <<_ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4126 $ac_includes_default
4131 /* Are we little or big endian? From Harbison&Steele. */
4135 char c[sizeof (long int)];
4138 return u.c[sizeof (long int) - 1] == 1;
4144 rm -f conftest$ac_exeext
4145 if { (ac_try="$ac_link"
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_link") 2>&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4155 { (case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_try") 2>&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
4164 ac_cv_c_bigendian=no
4166 echo "$as_me: program exited with status $ac_status" >&5
4167 echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4171 ac_cv_c_bigendian=yes
4173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4182 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4183 case $ac_cv_c_bigendian in
4188 cat >>confdefs.h <<\_ACEOF
4196 cat >>confdefs.h <<\_ACEOF
4201 { { echo "$as_me:$LINENO: error: unknown endianness
4202 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4203 echo "$as_me: error: unknown endianness
4204 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4205 { (exit 1); exit 1; }; } ;;
4209 if test "$cross_compiling" = yes; then
4210 LLVM_CROSS_COMPILING=1
4213 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4214 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4215 if test "${ac_cv_build_exeext+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4219 ac_cv_build_exeext=.exe
4221 ac_build_prefix=${build_alias}-
4223 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4224 set dummy ${ac_build_prefix}gcc; ac_word=$2
4225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4227 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 if test -n "$BUILD_CC"; then
4231 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4240 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 BUILD_CC=$ac_cv_prog_BUILD_CC
4251 if test -n "$BUILD_CC"; then
4252 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4253 echo "${ECHO_T}$BUILD_CC" >&6; }
4255 { echo "$as_me:$LINENO: result: no" >&5
4256 echo "${ECHO_T}no" >&6; }
4260 if test -z "$BUILD_CC"; then
4261 # Extract the first word of "gcc", so it can be a program name with args.
4262 set dummy gcc; ac_word=$2
4263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4265 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 if test -n "$BUILD_CC"; then
4269 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4278 ac_cv_prog_BUILD_CC="gcc"
4279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4288 BUILD_CC=$ac_cv_prog_BUILD_CC
4289 if test -n "$BUILD_CC"; then
4290 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4291 echo "${ECHO_T}$BUILD_CC" >&6; }
4293 { echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6; }
4298 if test -z "$BUILD_CC"; then
4299 # Extract the first word of "cc", so it can be a program name with args.
4300 set dummy cc; ac_word=$2
4301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4303 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 if test -n "$BUILD_CC"; then
4307 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4317 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4318 ac_prog_rejected=yes
4321 ac_cv_prog_BUILD_CC="cc"
4322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 if test $ac_prog_rejected = yes; then
4330 # We found a bogon in the path, so make sure we never use it.
4331 set dummy $ac_cv_prog_BUILD_CC
4333 if test $# != 0; then
4334 # We chose a different compiler from the bogus one.
4335 # However, it has the same basename, so the bogon will be chosen
4336 # first if we set BUILD_CC to just the basename; use the full file name.
4338 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4343 BUILD_CC=$ac_cv_prog_BUILD_CC
4344 if test -n "$BUILD_CC"; then
4345 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4346 echo "${ECHO_T}$BUILD_CC" >&6; }
4348 { echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6; }
4355 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4356 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4357 { (exit 1); exit 1; }; }
4358 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4360 echo 'int main () { return 0; }' > conftest.$ac_ext
4362 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4363 (eval $ac_build_link) 2>&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; then
4367 for file in conftest.*; do
4369 *.c | *.o | *.obj) ;;
4370 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4374 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4375 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4376 { (exit 1); exit 1; }; }
4379 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4384 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4385 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4386 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4387 ac_build_exeext=$BUILD_EXEEXT
4390 LLVM_CROSS_COMPILING=0
4394 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4405 # Check whether --enable-optimized was given.
4406 if test "${enable_optimized+set}" = set; then
4407 enableval=$enable_optimized;
4412 if test ${enableval} = "no" ; then
4416 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4420 # Check whether --enable-assertions was given.
4421 if test "${enable_assertions+set}" = set; then
4422 enableval=$enable_assertions;
4427 if test ${enableval} = "yes" ; then
4431 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4435 # Check whether --enable-expensive-checks was given.
4436 if test "${enable_expensive_checks+set}" = set; then
4437 enableval=$enable_expensive_checks;
4442 if test ${enableval} = "yes" ; then
4443 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4445 EXPENSIVE_CHECKS=yes
4448 ENABLE_EXPENSIVE_CHECKS=
4454 # Check whether --enable-debug-runtime was given.
4455 if test "${enable_debug_runtime+set}" = set; then
4456 enableval=$enable_debug_runtime;
4461 if test ${enableval} = "no" ; then
4465 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4469 # Check whether --enable-jit was given.
4470 if test "${enable_jit+set}" = set; then
4471 enableval=$enable_jit;
4476 if test ${enableval} = "no"
4481 case "$llvm_cv_target_arch" in
4482 x86) TARGET_HAS_JIT=1
4484 Sparc) TARGET_HAS_JIT=0
4486 PowerPC) TARGET_HAS_JIT=1
4488 x86_64) TARGET_HAS_JIT=1
4490 Alpha) TARGET_HAS_JIT=1
4492 IA64) TARGET_HAS_JIT=0
4494 ARM) TARGET_HAS_JIT=0
4496 Mips) TARGET_HAS_JIT=0
4503 # Check whether --enable-doxygen was given.
4504 if test "${enable_doxygen+set}" = set; then
4505 enableval=$enable_doxygen;
4510 case "$enableval" in
4511 yes) ENABLE_DOXYGEN=1
4513 no) ENABLE_DOXYGEN=0
4515 default) ENABLE_DOXYGEN=0
4517 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4518 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4519 { (exit 1); exit 1; }; } ;;
4522 # Check whether --enable-threads was given.
4523 if test "${enable_threads+set}" = set; then
4524 enableval=$enable_threads;
4529 case "$enableval" in
4530 yes) ENABLE_THREADS=1
4532 no) ENABLE_THREADS=0
4534 default) ENABLE_THREADS=1
4536 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4537 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4538 { (exit 1); exit 1; }; } ;;
4541 cat >>confdefs.h <<_ACEOF
4542 #define ENABLE_THREADS $ENABLE_THREADS
4546 # Check whether --enable-pic was given.
4547 if test "${enable_pic+set}" = set; then
4548 enableval=$enable_pic;
4553 case "$enableval" in
4558 default) ENABLE_PIC=0
4560 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4561 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4562 { (exit 1); exit 1; }; } ;;
4565 cat >>confdefs.h <<_ACEOF
4566 #define ENABLE_PIC $ENABLE_PIC
4571 # Check whether --enable-targets was given.
4572 if test "${enable_targets+set}" = set; then
4573 enableval=$enable_targets;
4578 case "$enableval" in
4579 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU" ;;
4581 case "$llvm_cv_target_arch" in
4582 x86) TARGETS_TO_BUILD="X86" ;;
4583 x86_64) TARGETS_TO_BUILD="X86" ;;
4584 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4585 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4586 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4587 IA64) TARGETS_TO_BUILD="IA64" ;;
4588 ARM) TARGETS_TO_BUILD="ARM" ;;
4589 Mips) TARGETS_TO_BUILD="Mips" ;;
4590 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4591 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4592 echo "$as_me: error: Can not set target to build" >&2;}
4593 { (exit 1); exit 1; }; } ;;
4596 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4598 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4599 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4600 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4601 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4602 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4603 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4604 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4605 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4606 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4607 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4608 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4609 { (exit 1); exit 1; }; } ;;
4614 TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4615 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4618 # Check whether --enable-cbe-printf-a was given.
4619 if test "${enable_cbe_printf_a+set}" = set; then
4620 enableval=$enable_cbe_printf_a;
4625 case "$enableval" in
4626 yes) ENABLE_CBE_PRINTF_A=1
4628 no) ENABLE_CBE_PRINTF_A=0
4630 default) ENABLE_CBE_PRINTF_A=1
4632 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4633 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4634 { (exit 1); exit 1; }; } ;;
4637 cat >>confdefs.h <<_ACEOF
4638 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4643 # Check whether --with-llvmgccdir was given.
4644 if test "${with_llvmgccdir+set}" = set; then
4645 withval=$with_llvmgccdir;
4651 default) WITH_LLVMGCCDIR=default ;;
4652 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4653 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4654 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4655 { (exit 1); exit 1; }; } ;;
4659 # Check whether --with-llvmgcc was given.
4660 if test "${with_llvmgcc+set}" = set; then
4661 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4667 # Check whether --with-llvmgxx was given.
4668 if test "${with_llvmgxx+set}" = set; then
4669 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4674 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4675 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4676 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4677 { (exit 1); exit 1; }; };
4680 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4681 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4682 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4683 { (exit 1); exit 1; }; };
4687 # Check whether --with-extra-options was given.
4688 if test "${with_extra_options+set}" = set; then
4689 withval=$with_extra_options;
4695 default) EXTRA_OPTIONS= ;;
4696 *) EXTRA_OPTIONS=$withval ;;
4698 EXTRA_OPTIONS=$EXTRA_OPTIONS
4701 # Check whether --enable-bindings was given.
4702 if test "${enable_bindings+set}" = set; then
4703 enableval=$enable_bindings;
4708 BINDINGS_TO_BUILD=""
4709 case "$enableval" in
4710 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4711 all ) BINDINGS_TO_BUILD="ocaml" ;;
4712 none | no) BINDINGS_TO_BUILD="" ;;
4713 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4714 case "$a_binding" in
4715 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4716 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4717 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4718 { (exit 1); exit 1; }; } ;;
4725 # Check whether --with-ocaml-libdir was given.
4726 if test "${with_ocaml_libdir+set}" = set; then
4727 withval=$with_ocaml_libdir;
4733 auto) with_ocaml_libdir="$withval" ;;
4734 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4735 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4736 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4737 { (exit 1); exit 1; }; } ;;
4742 ac_cpp='$CPP $CPPFLAGS'
4743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4746 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4747 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4748 # On Suns, sometimes $CPP names a directory.
4749 if test -n "$CPP" && test -d "$CPP"; then
4752 if test -z "$CPP"; then
4753 if test "${ac_cv_prog_CPP+set}" = set; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4756 # Double quotes because CPP needs to be expanded
4757 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4760 for ac_c_preproc_warn_flag in '' yes
4762 # Use a header file that comes with gcc, so configuring glibc
4763 # with a fresh cross-compiler works.
4764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4765 # <limits.h> exists even on freestanding compilers.
4766 # On the NeXT, cc -E runs the code through the compiler's parser,
4767 # not just through cpp. "Syntax error" is here to catch this case.
4768 cat >conftest.$ac_ext <<_ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h. */
4775 # include <limits.h>
4777 # include <assert.h>
4781 if { (ac_try="$ac_cpp conftest.$ac_ext"
4783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784 *) ac_try_echo=$ac_try;;
4786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4789 grep -v '^ *+' conftest.er1 >conftest.err
4791 cat conftest.err >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); } >/dev/null && {
4794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4795 test ! -s conftest.err
4799 echo "$as_me: failed program was:" >&5
4800 sed 's/^/| /' conftest.$ac_ext >&5
4802 # Broken: fails on valid input.
4806 rm -f conftest.err conftest.$ac_ext
4808 # OK, works on sane cases. Now check whether nonexistent headers
4809 # can be detected and how.
4810 cat >conftest.$ac_ext <<_ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4816 #include <ac_nonexistent.h>
4818 if { (ac_try="$ac_cpp conftest.$ac_ext"
4820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4821 *) ac_try_echo=$ac_try;;
4823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4826 grep -v '^ *+' conftest.er1 >conftest.err
4828 cat conftest.err >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } >/dev/null && {
4831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4832 test ! -s conftest.err
4834 # Broken: success on invalid input.
4837 echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4840 # Passes both tests.
4845 rm -f conftest.err conftest.$ac_ext
4848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4849 rm -f conftest.err conftest.$ac_ext
4850 if $ac_preproc_ok; then
4862 { echo "$as_me:$LINENO: result: $CPP" >&5
4863 echo "${ECHO_T}$CPP" >&6; }
4865 for ac_c_preproc_warn_flag in '' yes
4867 # Use a header file that comes with gcc, so configuring glibc
4868 # with a fresh cross-compiler works.
4869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4870 # <limits.h> exists even on freestanding compilers.
4871 # On the NeXT, cc -E runs the code through the compiler's parser,
4872 # not just through cpp. "Syntax error" is here to catch this case.
4873 cat >conftest.$ac_ext <<_ACEOF
4876 cat confdefs.h >>conftest.$ac_ext
4877 cat >>conftest.$ac_ext <<_ACEOF
4878 /* end confdefs.h. */
4880 # include <limits.h>
4882 # include <assert.h>
4886 if { (ac_try="$ac_cpp conftest.$ac_ext"
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4894 grep -v '^ *+' conftest.er1 >conftest.err
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } >/dev/null && {
4899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4900 test ! -s conftest.err
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4907 # Broken: fails on valid input.
4911 rm -f conftest.err conftest.$ac_ext
4913 # OK, works on sane cases. Now check whether nonexistent headers
4914 # can be detected and how.
4915 cat >conftest.$ac_ext <<_ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4921 #include <ac_nonexistent.h>
4923 if { (ac_try="$ac_cpp conftest.$ac_ext"
4925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4926 *) ac_try_echo=$ac_try;;
4928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4931 grep -v '^ *+' conftest.er1 >conftest.err
4933 cat conftest.err >&5
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); } >/dev/null && {
4936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4937 test ! -s conftest.err
4939 # Broken: success on invalid input.
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4945 # Passes both tests.
4950 rm -f conftest.err conftest.$ac_ext
4953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4954 rm -f conftest.err conftest.$ac_ext
4955 if $ac_preproc_ok; then
4958 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4959 See \`config.log' for more details." >&5
4960 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4961 See \`config.log' for more details." >&2;}
4962 { (exit 1); exit 1; }; }
4966 ac_cpp='$CPP $CPPFLAGS'
4967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4972 ac_cpp='$CPP $CPPFLAGS'
4973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4976 if test -n "$ac_tool_prefix"; then
4979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4983 if test "${ac_cv_prog_CC+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 if test -n "$CC"; then
4987 ac_cv_prog_CC="$CC" # Let the user override the test.
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4996 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 if test -n "$CC"; then
5008 { echo "$as_me:$LINENO: result: $CC" >&5
5009 echo "${ECHO_T}$CC" >&6; }
5011 { echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6; }
5016 test -n "$CC" && break
5019 if test -z "$CC"; then
5023 # Extract the first word of "$ac_prog", so it can be a program name with args.
5024 set dummy $ac_prog; ac_word=$2
5025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 if test -n "$ac_ct_CC"; then
5031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040 ac_cv_prog_ac_ct_CC="$ac_prog"
5041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5051 if test -n "$ac_ct_CC"; then
5052 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5053 echo "${ECHO_T}$ac_ct_CC" >&6; }
5055 { echo "$as_me:$LINENO: result: no" >&5
5056 echo "${ECHO_T}no" >&6; }
5060 test -n "$ac_ct_CC" && break
5063 if test "x$ac_ct_CC" = x; then
5066 case $cross_compiling:$ac_tool_warned in
5068 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5069 whose name does not start with the host triplet. If you think this
5070 configuration is useful to you, please write to autoconf@gnu.org." >&5
5071 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5072 whose name does not start with the host triplet. If you think this
5073 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5074 ac_tool_warned=yes ;;
5081 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5082 See \`config.log' for more details." >&5
5083 echo "$as_me: error: no acceptable C compiler found in \$PATH
5084 See \`config.log' for more details." >&2;}
5085 { (exit 1); exit 1; }; }
5087 # Provide some information about the compiler.
5088 echo "$as_me:$LINENO: checking for C compiler version" >&5
5089 ac_compiler=`set X $ac_compile; echo $2`
5090 { (ac_try="$ac_compiler --version >&5"
5092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093 *) ac_try_echo=$ac_try;;
5095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5096 (eval "$ac_compiler --version >&5") 2>&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }
5100 { (ac_try="$ac_compiler -v >&5"
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106 (eval "$ac_compiler -v >&5") 2>&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }
5110 { (ac_try="$ac_compiler -V >&5"
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116 (eval "$ac_compiler -V >&5") 2>&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }
5121 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5122 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5123 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 cat >conftest.$ac_ext <<_ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h. */
5144 rm -f conftest.$ac_objext
5145 if { (ac_try="$ac_compile"
5147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148 *) ac_try_echo=$ac_try;;
5150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151 (eval "$ac_compile") 2>conftest.er1
5153 grep -v '^ *+' conftest.er1 >conftest.err
5155 cat conftest.err >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } && {
5158 test -z "$ac_c_werror_flag" ||
5159 test ! -s conftest.err
5160 } && test -s conftest.$ac_objext; then
5163 echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5173 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5174 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5175 GCC=`test $ac_compiler_gnu = yes && echo yes`
5176 ac_test_CFLAGS=${CFLAGS+set}
5177 ac_save_CFLAGS=$CFLAGS
5178 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5179 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5180 if test "${ac_cv_prog_cc_g+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 ac_save_c_werror_flag=$ac_c_werror_flag
5184 ac_c_werror_flag=yes
5187 cat >conftest.$ac_ext <<_ACEOF
5190 cat confdefs.h >>conftest.$ac_ext
5191 cat >>conftest.$ac_ext <<_ACEOF
5192 /* end confdefs.h. */
5202 rm -f conftest.$ac_objext
5203 if { (ac_try="$ac_compile"
5205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206 *) ac_try_echo=$ac_try;;
5208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5209 (eval "$ac_compile") 2>conftest.er1
5211 grep -v '^ *+' conftest.er1 >conftest.err
5213 cat conftest.err >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } && {
5216 test -z "$ac_c_werror_flag" ||
5217 test ! -s conftest.err
5218 } && test -s conftest.$ac_objext; then
5221 echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5225 cat >conftest.$ac_ext <<_ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5240 rm -f conftest.$ac_objext
5241 if { (ac_try="$ac_compile"
5243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5244 *) ac_try_echo=$ac_try;;
5246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5247 (eval "$ac_compile") 2>conftest.er1
5249 grep -v '^ *+' conftest.er1 >conftest.err
5251 cat conftest.err >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } && {
5254 test -z "$ac_c_werror_flag" ||
5255 test ! -s conftest.err
5256 } && test -s conftest.$ac_objext; then
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5262 ac_c_werror_flag=$ac_save_c_werror_flag
5264 cat >conftest.$ac_ext <<_ACEOF
5267 cat confdefs.h >>conftest.$ac_ext
5268 cat >>conftest.$ac_ext <<_ACEOF
5269 /* end confdefs.h. */
5279 rm -f conftest.$ac_objext
5280 if { (ac_try="$ac_compile"
5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283 *) ac_try_echo=$ac_try;;
5285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286 (eval "$ac_compile") 2>conftest.er1
5288 grep -v '^ *+' conftest.er1 >conftest.err
5290 cat conftest.err >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } && {
5293 test -z "$ac_c_werror_flag" ||
5294 test ! -s conftest.err
5295 } && test -s conftest.$ac_objext; then
5298 echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311 ac_c_werror_flag=$ac_save_c_werror_flag
5313 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5314 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5315 if test "$ac_test_CFLAGS" = set; then
5316 CFLAGS=$ac_save_CFLAGS
5317 elif test $ac_cv_prog_cc_g = yes; then
5318 if test "$GCC" = yes; then
5324 if test "$GCC" = yes; then
5330 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5331 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5332 if test "${ac_cv_prog_cc_c89+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 ac_cv_prog_cc_c89=no
5337 cat >conftest.$ac_ext <<_ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5345 #include <sys/types.h>
5346 #include <sys/stat.h>
5347 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5348 struct buf { int x; };
5349 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5350 static char *e (p, i)
5356 static char *f (char * (*g) (char **, int), char **p, ...)
5361 s = g (p, va_arg (v,int));
5366 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5367 function prototypes and stuff, but not '\xHH' hex character constants.
5368 These don't provoke an error unfortunately, instead are silently treated
5369 as 'x'. The following induces an error, until -std is added to get
5370 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5371 array size at least. It's necessary to write '\x00'==0 to get something
5372 that's true only with -std. */
5373 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5375 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5376 inside strings and character constants. */
5378 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5380 int test (int i, double x);
5381 struct s1 {int (*f) (int a);};
5382 struct s2 {int (*f) (double a);};
5383 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5389 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5394 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5395 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5397 CC="$ac_save_CC $ac_arg"
5398 rm -f conftest.$ac_objext
5399 if { (ac_try="$ac_compile"
5401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402 *) ac_try_echo=$ac_try;;
5404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405 (eval "$ac_compile") 2>conftest.er1
5407 grep -v '^ *+' conftest.er1 >conftest.err
5409 cat conftest.err >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } && {
5412 test -z "$ac_c_werror_flag" ||
5413 test ! -s conftest.err
5414 } && test -s conftest.$ac_objext; then
5415 ac_cv_prog_cc_c89=$ac_arg
5417 echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5423 rm -f core conftest.err conftest.$ac_objext
5424 test "x$ac_cv_prog_cc_c89" != "xno" && break
5426 rm -f conftest.$ac_ext
5431 case "x$ac_cv_prog_cc_c89" in
5433 { echo "$as_me:$LINENO: result: none needed" >&5
5434 echo "${ECHO_T}none needed" >&6; } ;;
5436 { echo "$as_me:$LINENO: result: unsupported" >&5
5437 echo "${ECHO_T}unsupported" >&6; } ;;
5439 CC="$CC $ac_cv_prog_cc_c89"
5440 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5441 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5446 ac_cpp='$CPP $CPPFLAGS'
5447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5452 ac_cpp='$CXXCPP $CPPFLAGS'
5453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5456 if test -z "$CXX"; then
5457 if test -n "$CCC"; then
5460 if test -n "$ac_tool_prefix"; then
5463 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5464 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5467 if test "${ac_cv_prog_CXX+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5470 if test -n "$CXX"; then
5471 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 test -z "$as_dir" && as_dir=.
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 if test -n "$CXX"; then
5492 { echo "$as_me:$LINENO: result: $CXX" >&5
5493 echo "${ECHO_T}$CXX" >&6; }
5495 { echo "$as_me:$LINENO: result: no" >&5
5496 echo "${ECHO_T}no" >&6; }
5500 test -n "$CXX" && break
5503 if test -z "$CXX"; then
5507 # Extract the first word of "$ac_prog", so it can be a program name with args.
5508 set dummy $ac_prog; ac_word=$2
5509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5511 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 if test -n "$ac_ct_CXX"; then
5515 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 test -z "$as_dir" && as_dir=.
5522 for ac_exec_ext in '' $ac_executable_extensions; do
5523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5524 ac_cv_prog_ac_ct_CXX="$ac_prog"
5525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5535 if test -n "$ac_ct_CXX"; then
5536 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5537 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5539 { echo "$as_me:$LINENO: result: no" >&5
5540 echo "${ECHO_T}no" >&6; }
5544 test -n "$ac_ct_CXX" && break
5547 if test "x$ac_ct_CXX" = x; then
5550 case $cross_compiling:$ac_tool_warned in
5552 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5553 whose name does not start with the host triplet. If you think this
5554 configuration is useful to you, please write to autoconf@gnu.org." >&5
5555 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5556 whose name does not start with the host triplet. If you think this
5557 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5558 ac_tool_warned=yes ;;
5566 # Provide some information about the compiler.
5567 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5568 ac_compiler=`set X $ac_compile; echo $2`
5569 { (ac_try="$ac_compiler --version >&5"
5571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572 *) ac_try_echo=$ac_try;;
5574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575 (eval "$ac_compiler --version >&5") 2>&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }
5579 { (ac_try="$ac_compiler -v >&5"
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585 (eval "$ac_compiler -v >&5") 2>&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }
5589 { (ac_try="$ac_compiler -V >&5"
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5595 (eval "$ac_compiler -V >&5") 2>&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }
5600 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5601 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5602 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5605 cat >conftest.$ac_ext <<_ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h. */
5623 rm -f conftest.$ac_objext
5624 if { (ac_try="$ac_compile"
5626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5627 *) ac_try_echo=$ac_try;;
5629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5630 (eval "$ac_compile") 2>conftest.er1
5632 grep -v '^ *+' conftest.er1 >conftest.err
5634 cat conftest.err >&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } && {
5637 test -z "$ac_cxx_werror_flag" ||
5638 test ! -s conftest.err
5639 } && test -s conftest.$ac_objext; then
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5652 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5653 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5654 GXX=`test $ac_compiler_gnu = yes && echo yes`
5655 ac_test_CXXFLAGS=${CXXFLAGS+set}
5656 ac_save_CXXFLAGS=$CXXFLAGS
5657 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5658 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5659 if test "${ac_cv_prog_cxx_g+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5662 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5663 ac_cxx_werror_flag=yes
5666 cat >conftest.$ac_ext <<_ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5681 rm -f conftest.$ac_objext
5682 if { (ac_try="$ac_compile"
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688 (eval "$ac_compile") 2>conftest.er1
5690 grep -v '^ *+' conftest.er1 >conftest.err
5692 cat conftest.err >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } && {
5695 test -z "$ac_cxx_werror_flag" ||
5696 test ! -s conftest.err
5697 } && test -s conftest.$ac_objext; then
5698 ac_cv_prog_cxx_g=yes
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5704 cat >conftest.$ac_ext <<_ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5719 rm -f conftest.$ac_objext
5720 if { (ac_try="$ac_compile"
5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_compile") 2>conftest.er1
5728 grep -v '^ *+' conftest.er1 >conftest.err
5730 cat conftest.err >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } && {
5733 test -z "$ac_cxx_werror_flag" ||
5734 test ! -s conftest.err
5735 } && test -s conftest.$ac_objext; then
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5741 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5743 cat >conftest.$ac_ext <<_ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5758 rm -f conftest.$ac_objext
5759 if { (ac_try="$ac_compile"
5761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762 *) ac_try_echo=$ac_try;;
5764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765 (eval "$ac_compile") 2>conftest.er1
5767 grep -v '^ *+' conftest.er1 >conftest.err
5769 cat conftest.err >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } && {
5772 test -z "$ac_cxx_werror_flag" ||
5773 test ! -s conftest.err
5774 } && test -s conftest.$ac_objext; then
5775 ac_cv_prog_cxx_g=yes
5777 echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5790 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5792 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5793 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5794 if test "$ac_test_CXXFLAGS" = set; then
5795 CXXFLAGS=$ac_save_CXXFLAGS
5796 elif test $ac_cv_prog_cxx_g = yes; then
5797 if test "$GXX" = yes; then
5803 if test "$GXX" = yes; then
5810 ac_cpp='$CPP $CPPFLAGS'
5811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5815 { echo "$as_me:$LINENO: checking " >&5
5816 echo $ECHO_N "checking ... $ECHO_C" >&6; }
5817 if test "${ac_cv_has_flex+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5820 for ac_prog in flex lex
5822 # Extract the first word of "$ac_prog", so it can be a program name with args.
5823 set dummy $ac_prog; ac_word=$2
5824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5826 if test "${ac_cv_prog_LEX+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 if test -n "$LEX"; then
5830 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5839 ac_cv_prog_LEX="$ac_prog"
5840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 if test -n "$LEX"; then
5851 { echo "$as_me:$LINENO: result: $LEX" >&5
5852 echo "${ECHO_T}$LEX" >&6; }
5854 { echo "$as_me:$LINENO: result: no" >&5
5855 echo "${ECHO_T}no" >&6; }
5859 test -n "$LEX" && break
5861 test -n "$LEX" || LEX=":"
5863 if test "x$LEX" != "x:"; then
5864 cat >conftest.l <<_ACEOF
5870 e { yyless (input () != 0); }
5871 f { unput (yytext[0]); }
5872 . { BEGIN INITIAL; }
5874 #ifdef YYTEXT_POINTER
5875 extern char *yytext;
5880 return ! yylex () + ! yywrap ();
5883 { (ac_try="$LEX conftest.l"
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889 (eval "$LEX conftest.l") 2>&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }
5893 { echo "$as_me:$LINENO: checking lex output file root" >&5
5894 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
5895 if test "${ac_cv_prog_lex_root+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 if test -f lex.yy.c; then
5900 ac_cv_prog_lex_root=lex.yy
5901 elif test -f lexyy.c; then
5902 ac_cv_prog_lex_root=lexyy
5904 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5905 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5906 { (exit 1); exit 1; }; }
5909 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5910 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
5911 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5913 if test -z "${LEXLIB+set}"; then
5914 { echo "$as_me:$LINENO: checking lex library" >&5
5915 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
5916 if test "${ac_cv_lib_lex+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 ac_cv_lib_lex='none needed'
5922 for ac_lib in '' -lfl -ll; do
5923 LIBS="$ac_lib $ac_save_LIBS"
5924 cat >conftest.$ac_ext <<_ACEOF
5925 `cat $LEX_OUTPUT_ROOT.c`
5927 rm -f conftest.$ac_objext conftest$ac_exeext
5928 if { (ac_try="$ac_link"
5930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931 *) ac_try_echo=$ac_try;;
5933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934 (eval "$ac_link") 2>conftest.er1
5936 grep -v '^ *+' conftest.er1 >conftest.err
5938 cat conftest.err >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } && {
5941 test -z "$ac_c_werror_flag" ||
5942 test ! -s conftest.err
5943 } && test -s conftest$ac_exeext &&
5944 $as_test_x conftest$ac_exeext; then
5945 ac_cv_lib_lex=$ac_lib
5947 echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5954 conftest$ac_exeext conftest.$ac_ext
5955 test "$ac_cv_lib_lex" != 'none needed' && break
5960 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
5961 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
5962 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5966 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5967 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
5968 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 # POSIX says lex can declare yytext either as a pointer or an array; the
5972 # default is implementation-dependent. Figure out which it is, since
5973 # not all implementations provide the %pointer and %array declarations.
5974 ac_cv_prog_lex_yytext_pointer=no
5976 LIBS="$LEXLIB $ac_save_LIBS"
5977 cat >conftest.$ac_ext <<_ACEOF
5978 #define YYTEXT_POINTER 1
5979 `cat $LEX_OUTPUT_ROOT.c`
5981 rm -f conftest.$ac_objext conftest$ac_exeext
5982 if { (ac_try="$ac_link"
5984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985 *) ac_try_echo=$ac_try;;
5987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988 (eval "$ac_link") 2>conftest.er1
5990 grep -v '^ *+' conftest.er1 >conftest.err
5992 cat conftest.err >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } && {
5995 test -z "$ac_c_werror_flag" ||
5996 test ! -s conftest.err
5997 } && test -s conftest$ac_exeext &&
5998 $as_test_x conftest$ac_exeext; then
5999 ac_cv_prog_lex_yytext_pointer=yes
6001 echo "$as_me: failed program was:" >&5
6002 sed 's/^/| /' conftest.$ac_ext >&5
6007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6008 conftest$ac_exeext conftest.$ac_ext
6012 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6013 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6014 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6016 cat >>confdefs.h <<\_ACEOF
6017 #define YYTEXT_POINTER 1
6021 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6026 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6027 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6028 if test "$LEX" != "flex"; then
6029 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6030 echo "$as_me: error: flex not found but required" >&2;}
6031 { (exit 1); exit 1; }; }
6037 { echo "$as_me:$LINENO: checking " >&5
6038 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6039 if test "${llvm_cv_has_bison+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 for ac_prog in 'bison -y' byacc
6044 # Extract the first word of "$ac_prog", so it can be a program name with args.
6045 set dummy $ac_prog; ac_word=$2
6046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6048 if test "${ac_cv_prog_YACC+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 if test -n "$YACC"; then
6052 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 test -z "$as_dir" && as_dir=.
6059 for ac_exec_ext in '' $ac_executable_extensions; do
6060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6061 ac_cv_prog_YACC="$ac_prog"
6062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 YACC=$ac_cv_prog_YACC
6072 if test -n "$YACC"; then
6073 { echo "$as_me:$LINENO: result: $YACC" >&5
6074 echo "${ECHO_T}$YACC" >&6; }
6076 { echo "$as_me:$LINENO: result: no" >&5
6077 echo "${ECHO_T}no" >&6; }
6081 test -n "$YACC" && break
6083 test -n "$YACC" || YACC="yacc"
6086 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6087 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6088 if test "$YACC" != "bison -y"; then
6090 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6091 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6097 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6098 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6099 if test "${lt_cv_path_NM+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 if test -n "$NM"; then
6103 # Let the user override the test.
6106 lt_nm_to_check="${ac_tool_prefix}nm"
6107 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6108 lt_nm_to_check="$lt_nm_to_check nm"
6110 for lt_tmp_nm in $lt_nm_to_check; do
6111 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6112 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6114 test -z "$ac_dir" && ac_dir=.
6115 tmp_nm="$ac_dir/$lt_tmp_nm"
6116 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6117 # Check to see if the nm accepts a BSD-compat flag.
6118 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6119 # nm: unknown option "B" ignored
6120 # Tru64's nm complains that /dev/null is an invalid object file
6121 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6122 */dev/null* | *'Invalid file or object type'*)
6123 lt_cv_path_NM="$tmp_nm -B"
6127 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6129 lt_cv_path_NM="$tmp_nm -p"
6133 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6134 continue # so that we can try to find one that supports BSD flags
6143 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6146 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6147 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6152 { echo "$as_me:$LINENO: checking for GNU make" >&5
6153 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6154 if test "${llvm_cv_gnu_make_command+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 llvm_cv_gnu_make_command=''
6158 for a in "$MAKE" make gmake gnumake ; do
6159 if test -z "$a" ; then continue ; fi ;
6160 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6162 llvm_cv_gnu_make_command=$a ;
6167 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6168 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6169 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6173 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6174 echo "${ECHO_T}\"Not found\"" >&6; };
6178 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6179 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6181 if test "$LN_S" = "ln -s"; then
6182 { echo "$as_me:$LINENO: result: yes" >&5
6183 echo "${ECHO_T}yes" >&6; }
6185 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6186 echo "${ECHO_T}no, using $LN_S" >&6; }
6189 # Extract the first word of "cmp", so it can be a program name with args.
6190 set dummy cmp; ac_word=$2
6191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6193 if test "${ac_cv_path_CMP+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6221 if test -n "$CMP"; then
6222 { echo "$as_me:$LINENO: result: $CMP" >&5
6223 echo "${ECHO_T}$CMP" >&6; }
6225 { echo "$as_me:$LINENO: result: no" >&5
6226 echo "${ECHO_T}no" >&6; }
6230 # Extract the first word of "cp", so it can be a program name with args.
6231 set dummy cp; ac_word=$2
6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234 if test "${ac_cv_path_CP+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6249 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6262 if test -n "$CP"; then
6263 { echo "$as_me:$LINENO: result: $CP" >&5
6264 echo "${ECHO_T}$CP" >&6; }
6266 { echo "$as_me:$LINENO: result: no" >&5
6267 echo "${ECHO_T}no" >&6; }
6271 # Extract the first word of "date", so it can be a program name with args.
6272 set dummy date; ac_word=$2
6273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275 if test "${ac_cv_path_DATE+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6290 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6302 DATE=$ac_cv_path_DATE
6303 if test -n "$DATE"; then
6304 { echo "$as_me:$LINENO: result: $DATE" >&5
6305 echo "${ECHO_T}$DATE" >&6; }
6307 { echo "$as_me:$LINENO: result: no" >&5
6308 echo "${ECHO_T}no" >&6; }
6312 # Extract the first word of "find", so it can be a program name with args.
6313 set dummy find; ac_word=$2
6314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6316 if test "${ac_cv_path_FIND+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6343 FIND=$ac_cv_path_FIND
6344 if test -n "$FIND"; then
6345 { echo "$as_me:$LINENO: result: $FIND" >&5
6346 echo "${ECHO_T}$FIND" >&6; }
6348 { echo "$as_me:$LINENO: result: no" >&5
6349 echo "${ECHO_T}no" >&6; }
6353 # Extract the first word of "grep", so it can be a program name with args.
6354 set dummy grep; ac_word=$2
6355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357 if test "${ac_cv_path_GREP+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 test -z "$as_dir" && as_dir=.
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6372 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6384 GREP=$ac_cv_path_GREP
6385 if test -n "$GREP"; then
6386 { echo "$as_me:$LINENO: result: $GREP" >&5
6387 echo "${ECHO_T}$GREP" >&6; }
6389 { echo "$as_me:$LINENO: result: no" >&5
6390 echo "${ECHO_T}no" >&6; }
6394 # Extract the first word of "mkdir", so it can be a program name with args.
6395 set dummy mkdir; ac_word=$2
6396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6398 if test "${ac_cv_path_MKDIR+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6413 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6425 MKDIR=$ac_cv_path_MKDIR
6426 if test -n "$MKDIR"; then
6427 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6428 echo "${ECHO_T}$MKDIR" >&6; }
6430 { echo "$as_me:$LINENO: result: no" >&5
6431 echo "${ECHO_T}no" >&6; }
6435 # Extract the first word of "mv", so it can be a program name with args.
6436 set dummy mv; ac_word=$2
6437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6439 if test "${ac_cv_path_MV+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6444 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6454 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6467 if test -n "$MV"; then
6468 { echo "$as_me:$LINENO: result: $MV" >&5
6469 echo "${ECHO_T}$MV" >&6; }
6471 { echo "$as_me:$LINENO: result: no" >&5
6472 echo "${ECHO_T}no" >&6; }
6476 if test -n "$ac_tool_prefix"; then
6477 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6478 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6481 if test "${ac_cv_prog_RANLIB+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 if test -n "$RANLIB"; then
6485 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 test -z "$as_dir" && as_dir=.
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6494 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 RANLIB=$ac_cv_prog_RANLIB
6505 if test -n "$RANLIB"; then
6506 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6507 echo "${ECHO_T}$RANLIB" >&6; }
6509 { echo "$as_me:$LINENO: result: no" >&5
6510 echo "${ECHO_T}no" >&6; }
6515 if test -z "$ac_cv_prog_RANLIB"; then
6516 ac_ct_RANLIB=$RANLIB
6517 # Extract the first word of "ranlib", so it can be a program name with args.
6518 set dummy ranlib; ac_word=$2
6519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6521 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6524 if test -n "$ac_ct_RANLIB"; then
6525 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
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_prog_ac_ct_RANLIB="ranlib"
6535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6545 if test -n "$ac_ct_RANLIB"; then
6546 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6547 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6549 { echo "$as_me:$LINENO: result: no" >&5
6550 echo "${ECHO_T}no" >&6; }
6553 if test "x$ac_ct_RANLIB" = x; then
6556 case $cross_compiling:$ac_tool_warned in
6558 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6559 whose name does not start with the host triplet. If you think this
6560 configuration is useful to you, please write to autoconf@gnu.org." >&5
6561 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6562 whose name does not start with the host triplet. If you think this
6563 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6564 ac_tool_warned=yes ;;
6566 RANLIB=$ac_ct_RANLIB
6569 RANLIB="$ac_cv_prog_RANLIB"
6572 # Extract the first word of "rm", so it can be a program name with args.
6573 set dummy rm; ac_word=$2
6574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6576 if test "${ac_cv_path_RM+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6591 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6604 if test -n "$RM"; then
6605 { echo "$as_me:$LINENO: result: $RM" >&5
6606 echo "${ECHO_T}$RM" >&6; }
6608 { echo "$as_me:$LINENO: result: no" >&5
6609 echo "${ECHO_T}no" >&6; }
6613 # Extract the first word of "sed", so it can be a program name with args.
6614 set dummy sed; ac_word=$2
6615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6617 if test "${ac_cv_path_SED+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6632 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6645 if test -n "$SED"; then
6646 { echo "$as_me:$LINENO: result: $SED" >&5
6647 echo "${ECHO_T}$SED" >&6; }
6649 { echo "$as_me:$LINENO: result: no" >&5
6650 echo "${ECHO_T}no" >&6; }
6654 # Extract the first word of "tar", so it can be a program name with args.
6655 set dummy tar; ac_word=$2
6656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6658 if test "${ac_cv_path_TAR+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6686 if test -n "$TAR"; then
6687 { echo "$as_me:$LINENO: result: $TAR" >&5
6688 echo "${ECHO_T}$TAR" >&6; }
6690 { echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6; }
6695 # Extract the first word of "pwd", so it can be a program name with args.
6696 set dummy pwd; 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_BINPWD+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 ac_cv_path_BINPWD="$BINPWD" # 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_BINPWD="$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_BINPWD" && ac_cv_path_BINPWD="pwd"
6726 BINPWD=$ac_cv_path_BINPWD
6727 if test -n "$BINPWD"; then
6728 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6729 echo "${ECHO_T}$BINPWD" >&6; }
6731 { echo "$as_me:$LINENO: result: no" >&5
6732 echo "${ECHO_T}no" >&6; }
6737 # Extract the first word of "Graphviz", so it can be a program name with args.
6738 set dummy Graphviz; ac_word=$2
6739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6741 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6756 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6768 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6769 if test -n "$GRAPHVIZ"; then
6770 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6771 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6773 { echo "$as_me:$LINENO: result: no" >&5
6774 echo "${ECHO_T}no" >&6; }
6778 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6780 cat >>confdefs.h <<\_ACEOF
6781 #define HAVE_GRAPHVIZ 1
6784 if test "$llvm_cv_os_type" = "MingW" ; then
6785 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6788 cat >>confdefs.h <<_ACEOF
6789 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6793 # Extract the first word of "dot", so it can be a program name with args.
6794 set dummy dot; ac_word=$2
6795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6797 if test "${ac_cv_path_DOT+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6802 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
6811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6812 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6825 if test -n "$DOT"; then
6826 { echo "$as_me:$LINENO: result: $DOT" >&5
6827 echo "${ECHO_T}$DOT" >&6; }
6829 { echo "$as_me:$LINENO: result: no" >&5
6830 echo "${ECHO_T}no" >&6; }
6834 if test "$DOT" != "echo dot" ; then
6836 cat >>confdefs.h <<\_ACEOF
6840 if test "$llvm_cv_os_type" = "MingW" ; then
6841 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6844 cat >>confdefs.h <<_ACEOF
6845 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6849 for ac_prog in gv gsview32
6851 # Extract the first word of "$ac_prog", so it can be a program name with args.
6852 set dummy $ac_prog; ac_word=$2
6853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6855 if test "${ac_cv_path_GV+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6870 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 if test -n "$GV"; then
6883 { echo "$as_me:$LINENO: result: $GV" >&5
6884 echo "${ECHO_T}$GV" >&6; }
6886 { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6891 test -n "$GV" && break
6893 test -n "$GV" || GV="echo gv"
6895 if test "$GV" != "echo gv" ; then
6897 cat >>confdefs.h <<\_ACEOF
6901 if test "$llvm_cv_os_type" = "MingW" ; then
6902 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6905 cat >>confdefs.h <<_ACEOF
6906 #define LLVM_PATH_GV "$GV${EXEEXT}"
6910 # Extract the first word of "dotty", so it can be a program name with args.
6911 set dummy dotty; ac_word=$2
6912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6914 if test "${ac_cv_path_DOTTY+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6929 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6937 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6941 DOTTY=$ac_cv_path_DOTTY
6942 if test -n "$DOTTY"; then
6943 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6944 echo "${ECHO_T}$DOTTY" >&6; }
6946 { echo "$as_me:$LINENO: result: no" >&5
6947 echo "${ECHO_T}no" >&6; }
6951 if test "$DOTTY" != "echo dotty" ; then
6953 cat >>confdefs.h <<\_ACEOF
6954 #define HAVE_DOTTY 1
6957 if test "$llvm_cv_os_type" = "MingW" ; then
6958 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6961 cat >>confdefs.h <<_ACEOF
6962 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6968 # Extract the first word of "perl", so it can be a program name with args.
6969 set dummy perl; ac_word=$2
6970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6972 if test "${ac_cv_path_PERL+set}" = set; then
6973 echo $ECHO_N "(cached) $ECHO_C" >&6
6977 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 test -z "$as_dir" && as_dir=.
6985 for ac_exec_ext in '' $ac_executable_extensions; do
6986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6987 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6999 PERL=$ac_cv_path_PERL
7000 if test -n "$PERL"; then
7001 { echo "$as_me:$LINENO: result: $PERL" >&5
7002 echo "${ECHO_T}$PERL" >&6; }
7004 { echo "$as_me:$LINENO: result: no" >&5
7005 echo "${ECHO_T}no" >&6; }
7009 if test "$PERL" != "none"; then
7010 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7011 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7012 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7013 { echo "$as_me:$LINENO: result: yes" >&5
7014 echo "${ECHO_T}yes" >&6; }
7017 { echo "$as_me:$LINENO: result: not found" >&5
7018 echo "${ECHO_T}not found" >&6; }
7023 if test x"$PERL" = xnone; then
7026 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7027 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7028 { (exit 1); exit 1; }; }
7034 # Find a good install program. We prefer a C program (faster),
7035 # so one script is as good as another. But avoid the broken or
7036 # incompatible versions:
7037 # SysV /etc/install, /usr/sbin/install
7038 # SunOS /usr/etc/install
7039 # IRIX /sbin/install
7041 # AmigaOS /C/install, which installs bootblocks on floppy discs
7042 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7043 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7044 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7045 # OS/2's system install, which has a completely different semantic
7046 # ./install, which can be erroneously created by make from ./install.sh.
7047 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7048 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7049 if test -z "$INSTALL"; then
7050 if test "${ac_cv_path_install+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 test -z "$as_dir" && as_dir=.
7058 # Account for people who put trailing slashes in PATH elements.
7060 ./ | .// | /cC/* | \
7061 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7062 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7065 # OSF1 and SCO ODT 3.0 have their own names for install.
7066 # Don't use installbsd from OSF since it installs stuff as root
7068 for ac_prog in ginstall scoinst install; do
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7071 if test $ac_prog = install &&
7072 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7073 # AIX install. It has an incompatible calling convention.
7075 elif test $ac_prog = install &&
7076 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7077 # program-specific install script used by HP pwplus--don't use.
7080 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7093 if test "${ac_cv_path_install+set}" = set; then
7094 INSTALL=$ac_cv_path_install
7096 # As a last resort, use the slow shell script. Don't cache a
7097 # value for INSTALL within a source directory, because that will
7098 # break other packages using the cache if that directory is
7099 # removed, or if the value is a relative name.
7100 INSTALL=$ac_install_sh
7103 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7104 echo "${ECHO_T}$INSTALL" >&6; }
7106 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7107 # It thinks the first close brace ends the variable substitution.
7108 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7110 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7112 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7115 # Extract the first word of "bzip2", so it can be a program name with args.
7116 set dummy bzip2; ac_word=$2
7117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7119 if test "${ac_cv_path_BZIP2+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7142 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7146 BZIP2=$ac_cv_path_BZIP2
7147 if test -n "$BZIP2"; then
7148 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7149 echo "${ECHO_T}$BZIP2" >&6; }
7151 { echo "$as_me:$LINENO: result: no" >&5
7152 echo "${ECHO_T}no" >&6; }
7156 # Extract the first word of "doxygen", so it can be a program name with args.
7157 set dummy doxygen; ac_word=$2
7158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7160 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 test -z "$as_dir" && as_dir=.
7173 for ac_exec_ext in '' $ac_executable_extensions; do
7174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7175 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7187 DOXYGEN=$ac_cv_path_DOXYGEN
7188 if test -n "$DOXYGEN"; then
7189 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7190 echo "${ECHO_T}$DOXYGEN" >&6; }
7192 { echo "$as_me:$LINENO: result: no" >&5
7193 echo "${ECHO_T}no" >&6; }
7197 # Extract the first word of "groff", so it can be a program name with args.
7198 set dummy groff; ac_word=$2
7199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7201 if test "${ac_cv_path_GROFF+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
7215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7216 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7228 GROFF=$ac_cv_path_GROFF
7229 if test -n "$GROFF"; then
7230 { echo "$as_me:$LINENO: result: $GROFF" >&5
7231 echo "${ECHO_T}$GROFF" >&6; }
7233 { echo "$as_me:$LINENO: result: no" >&5
7234 echo "${ECHO_T}no" >&6; }
7238 # Extract the first word of "gzip", so it can be a program name with args.
7239 set dummy gzip; ac_word=$2
7240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7242 if test "${ac_cv_path_GZIP+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7257 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7265 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7269 GZIP=$ac_cv_path_GZIP
7270 if test -n "$GZIP"; then
7271 { echo "$as_me:$LINENO: result: $GZIP" >&5
7272 echo "${ECHO_T}$GZIP" >&6; }
7274 { echo "$as_me:$LINENO: result: no" >&5
7275 echo "${ECHO_T}no" >&6; }
7279 # Extract the first word of "pod2html", so it can be a program name with args.
7280 set dummy pod2html; ac_word=$2
7281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7283 if test "${ac_cv_path_POD2HTML+set}" = set; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7288 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 test -z "$as_dir" && as_dir=.
7296 for ac_exec_ext in '' $ac_executable_extensions; do
7297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7298 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7306 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7310 POD2HTML=$ac_cv_path_POD2HTML
7311 if test -n "$POD2HTML"; then
7312 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7313 echo "${ECHO_T}$POD2HTML" >&6; }
7315 { echo "$as_me:$LINENO: result: no" >&5
7316 echo "${ECHO_T}no" >&6; }
7320 # Extract the first word of "pod2man", so it can be a program name with args.
7321 set dummy pod2man; ac_word=$2
7322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7324 if test "${ac_cv_path_POD2MAN+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 test -z "$as_dir" && as_dir=.
7337 for ac_exec_ext in '' $ac_executable_extensions; do
7338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7339 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7351 POD2MAN=$ac_cv_path_POD2MAN
7352 if test -n "$POD2MAN"; then
7353 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7354 echo "${ECHO_T}$POD2MAN" >&6; }
7356 { echo "$as_me:$LINENO: result: no" >&5
7357 echo "${ECHO_T}no" >&6; }
7361 # Extract the first word of "runtest", so it can be a program name with args.
7362 set dummy runtest; ac_word=$2
7363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7365 if test "${ac_cv_path_RUNTEST+set}" = set; then
7366 echo $ECHO_N "(cached) $ECHO_C" >&6
7370 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377 test -z "$as_dir" && as_dir=.
7378 for ac_exec_ext in '' $ac_executable_extensions; do
7379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7380 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7388 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7392 RUNTEST=$ac_cv_path_RUNTEST
7393 if test -n "$RUNTEST"; then
7394 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7395 echo "${ECHO_T}$RUNTEST" >&6; }
7397 { echo "$as_me:$LINENO: result: no" >&5
7398 echo "${ECHO_T}no" >&6; }
7404 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7405 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7407 # Check whether --with-tclinclude was given.
7408 if test "${with_tclinclude+set}" = set; then
7409 withval=$with_tclinclude; with_tclinclude=${withval}
7414 if test "${ac_cv_path_tclsh+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 if test x"${with_tclinclude}" != x ; then
7419 if test -f ${with_tclinclude}/tclsh ; then
7420 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7421 elif test -f ${with_tclinclude}/src/tclsh ; then
7422 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7424 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7425 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7426 { (exit 1); exit 1; }; }
7430 if test x"${ac_cv_path_tclsh}" = x ; then
7431 { echo "$as_me:$LINENO: result: none" >&5
7432 echo "${ECHO_T}none" >&6; }
7433 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
7435 # Extract the first word of "$ac_prog", so it can be a program name with args.
7436 set dummy $ac_prog; ac_word=$2
7437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7439 if test "${ac_cv_path_TCLSH+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 test -z "$as_dir" && as_dir=.
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7454 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 TCLSH=$ac_cv_path_TCLSH
7466 if test -n "$TCLSH"; then
7467 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7468 echo "${ECHO_T}$TCLSH" >&6; }
7470 { echo "$as_me:$LINENO: result: no" >&5
7471 echo "${ECHO_T}no" >&6; }
7475 test -n "$TCLSH" && break
7478 if test x"${TCLSH}" = x ; then
7479 ac_cv_path_tclsh='';
7481 ac_cv_path_tclsh="${TCLSH}";
7484 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7485 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7486 TCLSH="${ac_cv_path_tclsh}"
7492 # Extract the first word of "zip", so it can be a program name with args.
7493 set dummy zip; ac_word=$2
7494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7496 if test "${ac_cv_path_ZIP+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7511 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7524 if test -n "$ZIP"; then
7525 { echo "$as_me:$LINENO: result: $ZIP" >&5
7526 echo "${ECHO_T}$ZIP" >&6; }
7528 { echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6; }
7533 # Extract the first word of "ocamlc", so it can be a program name with args.
7534 set dummy ocamlc; ac_word=$2
7535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7537 if test "${ac_cv_path_OCAMLC+set}" = set; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7552 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
7564 OCAMLC=$ac_cv_path_OCAMLC
7565 if test -n "$OCAMLC"; then
7566 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7567 echo "${ECHO_T}$OCAMLC" >&6; }
7569 { echo "$as_me:$LINENO: result: no" >&5
7570 echo "${ECHO_T}no" >&6; }
7574 # Extract the first word of "ocamlopt", so it can be a program name with args.
7575 set dummy ocamlopt; ac_word=$2
7576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7578 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7583 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7593 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
7605 OCAMLOPT=$ac_cv_path_OCAMLOPT
7606 if test -n "$OCAMLOPT"; then
7607 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7608 echo "${ECHO_T}$OCAMLOPT" >&6; }
7610 { echo "$as_me:$LINENO: result: no" >&5
7611 echo "${ECHO_T}no" >&6; }
7615 # Extract the first word of "ocamldep", so it can be a program name with args.
7616 set dummy ocamldep; ac_word=$2
7617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7619 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
7624 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7634 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7642 test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found""
7646 OCAMLDEP=$ac_cv_path_OCAMLDEP
7647 if test -n "$OCAMLDEP"; then
7648 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7649 echo "${ECHO_T}$OCAMLDEP" >&6; }
7651 { echo "$as_me:$LINENO: result: no" >&5
7652 echo "${ECHO_T}no" >&6; }
7657 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7658 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7659 if test "${llvm_cv_link_use_r+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 ac_cpp='$CPP $CPPFLAGS'
7664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7669 CFLAGS="$CFLAGS -Wl,-R."
7670 cat >conftest.$ac_ext <<_ACEOF
7673 cat confdefs.h >>conftest.$ac_ext
7674 cat >>conftest.$ac_ext <<_ACEOF
7675 /* end confdefs.h. */
7680 int main() { return 0; }
7685 rm -f conftest.$ac_objext conftest$ac_exeext
7686 if { (ac_try="$ac_link"
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_link") 2>conftest.er1
7694 grep -v '^ *+' conftest.er1 >conftest.err
7696 cat conftest.err >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } && {
7699 test -z "$ac_c_werror_flag" ||
7700 test ! -s conftest.err
7701 } && test -s conftest$ac_exeext &&
7702 $as_test_x conftest$ac_exeext; then
7703 llvm_cv_link_use_r=yes
7705 echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7708 llvm_cv_link_use_r=no
7711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7712 conftest$ac_exeext conftest.$ac_ext
7715 ac_cpp='$CPP $CPPFLAGS'
7716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7722 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7723 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7724 if test "$llvm_cv_link_use_r" = yes ; then
7726 cat >>confdefs.h <<\_ACEOF
7727 #define HAVE_LINK_R 1
7735 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7736 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7737 if test "${ac_cv_c_const+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 cat >conftest.$ac_ext <<_ACEOF
7743 cat confdefs.h >>conftest.$ac_ext
7744 cat >>conftest.$ac_ext <<_ACEOF
7745 /* end confdefs.h. */
7750 /* FIXME: Include the comments suggested by Paul. */
7752 /* Ultrix mips cc rejects this. */
7753 typedef int charset[2];
7755 /* SunOS 4.1.1 cc rejects this. */
7756 char const *const *pcpcc;
7758 /* NEC SVR4.0.2 mips cc rejects this. */
7759 struct point {int x, y;};
7760 static struct point const zero = {0,0};
7761 /* AIX XL C 1.02.0.0 rejects this.
7762 It does not let you subtract one const X* pointer from another in
7763 an arm of an if-expression whose if-part is not a constant
7765 const char *g = "string";
7766 pcpcc = &g + (g ? g-g : 0);
7767 /* HPUX 7.0 cc rejects these. */
7769 ppc = (char**) pcpcc;
7770 pcpcc = (char const *const *) ppc;
7771 { /* SCO 3.2v4 cc rejects this. */
7773 char const *s = 0 ? (char *) 0 : (char const *) 0;
7778 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7780 const int *foo = &x[0];
7783 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7784 typedef const int *iptr;
7788 { /* AIX XL C 1.02.0.0 rejects this saying
7789 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7790 struct s { int j; const int *ap[3]; };
7791 struct s *b; b->j = 5;
7793 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7797 return !cs[0] && !zero.x;
7804 rm -f conftest.$ac_objext
7805 if { (ac_try="$ac_compile"
7807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808 *) ac_try_echo=$ac_try;;
7810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7811 (eval "$ac_compile") 2>conftest.er1
7813 grep -v '^ *+' conftest.er1 >conftest.err
7815 cat conftest.err >&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); } && {
7818 test -z "$ac_c_werror_flag" ||
7819 test ! -s conftest.err
7820 } && test -s conftest.$ac_objext; then
7823 echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.$ac_ext >&5
7829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7831 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7832 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7833 if test $ac_cv_c_const = no; then
7835 cat >>confdefs.h <<\_ACEOF
7847 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7848 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7849 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7850 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
7854 cat >conftest.$ac_ext <<_ACEOF
7857 cat confdefs.h >>conftest.$ac_ext
7858 cat >>conftest.$ac_ext <<_ACEOF
7859 /* end confdefs.h. */
7860 #include <sys/types.h>
7872 rm -f conftest.$ac_objext
7873 if { (ac_try="$ac_compile"
7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879 (eval "$ac_compile") 2>conftest.er1
7881 grep -v '^ *+' conftest.er1 >conftest.err
7883 cat conftest.err >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } && {
7886 test -z "$ac_c_werror_flag" ||
7887 test ! -s conftest.err
7888 } && test -s conftest.$ac_objext; then
7889 eval "$as_ac_Header=yes"
7891 echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.$ac_ext >&5
7894 eval "$as_ac_Header=no"
7897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7899 ac_res=`eval echo '${'$as_ac_Header'}'`
7900 { echo "$as_me:$LINENO: result: $ac_res" >&5
7901 echo "${ECHO_T}$ac_res" >&6; }
7902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7903 cat >>confdefs.h <<_ACEOF
7904 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7907 ac_header_dirent=$ac_hdr; break
7911 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7912 if test $ac_header_dirent = dirent.h; then
7913 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7914 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7915 if test "${ac_cv_search_opendir+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 ac_func_search_save_LIBS=$LIBS
7919 cat >conftest.$ac_ext <<_ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7926 /* Override any GCC internal prototype to avoid an error.
7927 Use char because int might match the return type of a GCC
7928 builtin and then its argument prototype would still apply. */
7941 for ac_lib in '' dir; do
7942 if test -z "$ac_lib"; then
7943 ac_res="none required"
7946 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7948 rm -f conftest.$ac_objext conftest$ac_exeext
7949 if { (ac_try="$ac_link"
7951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7952 *) ac_try_echo=$ac_try;;
7954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7955 (eval "$ac_link") 2>conftest.er1
7957 grep -v '^ *+' conftest.er1 >conftest.err
7959 cat conftest.err >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } && {
7962 test -z "$ac_c_werror_flag" ||
7963 test ! -s conftest.err
7964 } && test -s conftest$ac_exeext &&
7965 $as_test_x conftest$ac_exeext; then
7966 ac_cv_search_opendir=$ac_res
7968 echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7976 if test "${ac_cv_search_opendir+set}" = set; then
7980 if test "${ac_cv_search_opendir+set}" = set; then
7983 ac_cv_search_opendir=no
7986 LIBS=$ac_func_search_save_LIBS
7988 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7989 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7990 ac_res=$ac_cv_search_opendir
7991 if test "$ac_res" != no; then
7992 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7997 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7998 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7999 if test "${ac_cv_search_opendir+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8002 ac_func_search_save_LIBS=$LIBS
8003 cat >conftest.$ac_ext <<_ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h. */
8010 /* Override any GCC internal prototype to avoid an error.
8011 Use char because int might match the return type of a GCC
8012 builtin and then its argument prototype would still apply. */
8025 for ac_lib in '' x; do
8026 if test -z "$ac_lib"; then
8027 ac_res="none required"
8030 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8032 rm -f conftest.$ac_objext conftest$ac_exeext
8033 if { (ac_try="$ac_link"
8035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8036 *) ac_try_echo=$ac_try;;
8038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8039 (eval "$ac_link") 2>conftest.er1
8041 grep -v '^ *+' conftest.er1 >conftest.err
8043 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } && {
8046 test -z "$ac_c_werror_flag" ||
8047 test ! -s conftest.err
8048 } && test -s conftest$ac_exeext &&
8049 $as_test_x conftest$ac_exeext; then
8050 ac_cv_search_opendir=$ac_res
8052 echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8060 if test "${ac_cv_search_opendir+set}" = set; then
8064 if test "${ac_cv_search_opendir+set}" = set; then
8067 ac_cv_search_opendir=no
8070 LIBS=$ac_func_search_save_LIBS
8072 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8073 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8074 ac_res=$ac_cv_search_opendir
8075 if test "$ac_res" != no; then
8076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8083 for ac_header in dlfcn.h
8085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8092 ac_res=`eval echo '${'$as_ac_Header'}'`
8093 { echo "$as_me:$LINENO: result: $ac_res" >&5
8094 echo "${ECHO_T}$ac_res" >&6; }
8096 # Is the header compilable?
8097 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8099 cat >conftest.$ac_ext <<_ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h. */
8105 $ac_includes_default
8106 #include <$ac_header>
8108 rm -f conftest.$ac_objext
8109 if { (ac_try="$ac_compile"
8111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8112 *) ac_try_echo=$ac_try;;
8114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8115 (eval "$ac_compile") 2>conftest.er1
8117 grep -v '^ *+' conftest.er1 >conftest.err
8119 cat conftest.err >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } && {
8122 test -z "$ac_c_werror_flag" ||
8123 test ! -s conftest.err
8124 } && test -s conftest.$ac_objext; then
8125 ac_header_compiler=yes
8127 echo "$as_me: failed program was:" >&5
8128 sed 's/^/| /' conftest.$ac_ext >&5
8130 ac_header_compiler=no
8133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8134 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8135 echo "${ECHO_T}$ac_header_compiler" >&6; }
8137 # Is the header present?
8138 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8140 cat >conftest.$ac_ext <<_ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h. */
8146 #include <$ac_header>
8148 if { (ac_try="$ac_cpp conftest.$ac_ext"
8150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8151 *) ac_try_echo=$ac_try;;
8153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8156 grep -v '^ *+' conftest.er1 >conftest.err
8158 cat conftest.err >&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } >/dev/null && {
8161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8162 test ! -s conftest.err
8164 ac_header_preproc=yes
8166 echo "$as_me: failed program was:" >&5
8167 sed 's/^/| /' conftest.$ac_ext >&5
8169 ac_header_preproc=no
8172 rm -f conftest.err conftest.$ac_ext
8173 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8174 echo "${ECHO_T}$ac_header_preproc" >&6; }
8176 # So? What about this header?
8177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8182 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8183 ac_header_preproc=yes
8186 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8188 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8189 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8190 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8191 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8192 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8193 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8196 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8197 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8199 ## ----------------------------------- ##
8200 ## Report this to llvmbugs@cs.uiuc.edu ##
8201 ## ----------------------------------- ##
8203 ) | sed "s/^/$as_me: WARNING: /" >&2
8206 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8211 eval "$as_ac_Header=\$ac_header_preproc"
8213 ac_res=`eval echo '${'$as_ac_Header'}'`
8214 { echo "$as_me:$LINENO: result: $ac_res" >&5
8215 echo "${ECHO_T}$ac_res" >&6; }
8218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8219 cat >>confdefs.h <<_ACEOF
8220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8227 # Check whether --enable-ltdl-install was given.
8228 if test "${enable_ltdl_install+set}" = set; then
8229 enableval=$enable_ltdl_install;
8235 if test x"${enable_ltdl_install-no}" != xno; then
8237 INSTALL_LTDL_FALSE='#'
8239 INSTALL_LTDL_TRUE='#'
8245 if test x"${enable_ltdl_convenience-no}" != xno; then
8246 CONVENIENCE_LTDL_TRUE=
8247 CONVENIENCE_LTDL_FALSE='#'
8249 CONVENIENCE_LTDL_TRUE='#'
8250 CONVENIENCE_LTDL_FALSE=
8254 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8255 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8257 libname_spec='lib$name'
8265 shlibpath_overrides_runpath=unknown
8267 dynamic_linker="$host_os ld.so"
8268 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8269 if test "$GCC" = yes; then
8270 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8271 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8272 # if the path contains ";" then we assume it to be the separator
8273 # otherwise default to the standard path separator (i.e. ":") - it is
8274 # assumed that no part of a normal pathname contains ";" but that should
8275 # okay in the real world where ";" in dirpaths is itself problematic.
8276 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8278 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8281 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8283 need_lib_prefix=unknown
8284 hardcode_into_libs=no
8286 # when you set need_version to no, make sure it does not cause -set_version
8287 # flags to be left without arguments
8288 need_version=unknown
8293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8294 shlibpath_var=LIBPATH
8296 # AIX 3 has no versioning support, so we append a major version to the name.
8297 soname_spec='${libname}${release}${shared_ext}$major'
8304 hardcode_into_libs=yes
8305 if test "$host_cpu" = ia64; then
8306 # AIX 5 supports IA64
8307 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8308 shlibpath_var=LD_LIBRARY_PATH
8310 # With GCC up to 2.95.x, collect2 would create an import file
8311 # for dependence libraries. The import file would start with
8312 # the line `#! .'. This would cause the generated library to
8313 # depend on `.', always an invalid library. This was fixed in
8314 # development snapshots of GCC prior to 3.0.
8316 aix4 | aix4.[01] | aix4.[01].*)
8317 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8319 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8326 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8327 # soname into executable. Probably we can add versioning support to
8328 # collect2, so additional links can be useful in future.
8329 if test "$aix_use_runtimelinking" = yes; then
8330 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8331 # instead of lib<name>.a to let people know that these are not
8332 # typical AIX shared libraries.
8333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8335 # We preserve .a as extension for shared libraries through AIX4.2
8336 # and later when we are not doing run time linking.
8337 library_names_spec='${libname}${release}.a $libname.a'
8338 soname_spec='${libname}${release}${shared_ext}$major'
8340 shlibpath_var=LIBPATH
8345 library_names_spec='$libname.ixlibrary $libname.a'
8346 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8347 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'
8351 library_names_spec='${libname}${shared_ext}'
8352 dynamic_linker="$host_os ld.so"
8353 shlibpath_var=LIBRARY_PATH
8359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8360 soname_spec='${libname}${release}${shared_ext}$major'
8361 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8362 shlibpath_var=LD_LIBRARY_PATH
8363 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8364 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8365 # the default ld.so.conf also contains /usr/contrib/lib and
8366 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8367 # libtool to hard-code these into programs
8370 cygwin* | mingw* | pw32*)
8371 version_type=windows
8376 case $GCC,$host_os in
8377 yes,cygwin* | yes,mingw* | yes,pw32*)
8378 library_names_spec='$libname.dll.a'
8379 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8380 postinstall_cmds='base_file=`basename \${file}`~
8381 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8382 dldir=$destdir/`dirname \$dlpath`~
8383 test -d \$dldir || mkdir -p \$dldir~
8384 $install_prog $dir/$dlname \$dldir/$dlname~
8385 chmod a+x \$dldir/$dlname'
8386 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8387 dlpath=$dir/\$dldll~
8389 shlibpath_overrides_runpath=yes
8393 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8394 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8395 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8398 # MinGW DLLs use traditional 'lib' prefix
8399 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8400 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8401 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8402 # It is most probably a Windows format PATH printed by
8403 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8404 # path with ; separators, and with drive letters. We can handle the
8405 # drive letters (cygwin fileutils understands them), so leave them,
8406 # especially as we might pass files found there to a mingw objdump,
8407 # which wouldn't understand a cygwinified path. Ahh.
8408 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8410 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8414 # pw32 DLLs use 'pw' prefix rather than 'lib'
8415 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8421 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8424 dynamic_linker='Win32 ld.exe'
8425 # FIXME: first we should search . and the directory the executable is in
8429 darwin* | rhapsody*)
8430 dynamic_linker="$host_os dyld"
8434 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8435 soname_spec='${libname}${release}${major}$shared_ext'
8436 shlibpath_overrides_runpath=yes
8437 shlibpath_var=DYLD_LIBRARY_PATH
8438 shrext_cmds='.dylib'
8439 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8440 if test "$GCC" = yes; then
8441 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"`
8443 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8445 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8453 soname_spec='${libname}${release}${shared_ext}$major'
8454 shlibpath_var=LD_LIBRARY_PATH
8465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8466 soname_spec='${libname}${release}${shared_ext}$major'
8467 shlibpath_var=LD_LIBRARY_PATH
8468 shlibpath_overrides_runpath=no
8469 hardcode_into_libs=yes
8470 dynamic_linker='GNU ld.so'
8473 freebsd* | dragonfly*)
8474 # DragonFly does not have aout. When/if they implement a new
8475 # versioning mechanism, adjust this.
8476 if test -x /usr/bin/objformat; then
8477 objformat=`/usr/bin/objformat`
8480 freebsd[123]*) objformat=aout ;;
8484 version_type=freebsd-$objformat
8485 case $version_type in
8487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8492 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8496 shlibpath_var=LD_LIBRARY_PATH
8499 shlibpath_overrides_runpath=yes
8501 freebsd3.[01]* | freebsdelf3.[01]*)
8502 shlibpath_overrides_runpath=yes
8503 hardcode_into_libs=yes
8505 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8506 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8507 shlibpath_overrides_runpath=no
8508 hardcode_into_libs=yes
8510 freebsd*) # from 4.6 on
8511 shlibpath_overrides_runpath=yes
8512 hardcode_into_libs=yes
8521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8522 soname_spec='${libname}${release}${shared_ext}$major'
8523 shlibpath_var=LD_LIBRARY_PATH
8524 hardcode_into_libs=yes
8527 hpux9* | hpux10* | hpux11*)
8528 # Give a soname corresponding to the major version so that dld.sl refuses to
8529 # link against other versions.
8536 hardcode_into_libs=yes
8537 dynamic_linker="$host_os dld.so"
8538 shlibpath_var=LD_LIBRARY_PATH
8539 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8541 soname_spec='${libname}${release}${shared_ext}$major'
8542 if test "X$HPUX_IA64_MODE" = X32; then
8543 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8545 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8547 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8551 hardcode_into_libs=yes
8552 dynamic_linker="$host_os dld.sl"
8553 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8554 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8556 soname_spec='${libname}${release}${shared_ext}$major'
8557 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8558 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8562 dynamic_linker="$host_os dld.sl"
8563 shlibpath_var=SHLIB_PATH
8564 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8566 soname_spec='${libname}${release}${shared_ext}$major'
8569 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8570 postinstall_cmds='chmod 555 $lib'
8577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8578 soname_spec='${libname}${release}${shared_ext}$major'
8579 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8580 shlibpath_var=LD_LIBRARY_PATH
8581 shlibpath_overrides_runpath=no
8582 hardcode_into_libs=yes
8585 irix5* | irix6* | nonstopux*)
8587 nonstopux*) version_type=nonstopux ;;
8589 if test "$lt_cv_prog_gnu_ld" = yes; then
8597 soname_spec='${libname}${release}${shared_ext}$major'
8598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8600 irix5* | nonstopux*)
8604 case $LD in # libtool.m4 will add one of these switches to LD
8605 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8606 libsuff= shlibsuff= libmagic=32-bit;;
8607 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8608 libsuff=32 shlibsuff=N32 libmagic=N32;;
8609 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8610 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8611 *) libsuff= shlibsuff= libmagic=never-match;;
8615 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8616 shlibpath_overrides_runpath=no
8617 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8618 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8619 hardcode_into_libs=yes
8622 # No shared lib support for Linux oldld, aout, or coff.
8623 linux*oldld* | linux*aout* | linux*coff*)
8627 # This must be Linux ELF.
8632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8633 soname_spec='${libname}${release}${shared_ext}$major'
8634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8635 shlibpath_var=LD_LIBRARY_PATH
8636 shlibpath_overrides_runpath=no
8637 # This implies no fast_install, which is unacceptable.
8638 # Some rework will be needed to allow for fast_install
8639 # before this can be enabled.
8640 hardcode_into_libs=yes
8642 # Append ld.so.conf contents to the search path
8643 if test -f /etc/ld.so.conf; then
8644 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' ' '`
8645 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8648 # We used to test for /lib/ld.so.1 and disable shared libraries on
8649 # powerpc, because MkLinux only supported shared libraries with the
8650 # GNU dynamic linker. Since this was broken with cross compilers,
8651 # most powerpc-linux boxes support dynamic linking these days and
8652 # people can always --disable-shared, the test was removed, and we
8653 # assume the GNU/Linux dynamic linker is in use.
8654 dynamic_linker='GNU/Linux ld.so'
8661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8662 soname_spec='${libname}${release}${shared_ext}$major'
8663 shlibpath_var=LD_LIBRARY_PATH
8664 shlibpath_overrides_runpath=no
8665 hardcode_into_libs=yes
8666 dynamic_linker='GNU ld.so'
8673 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8675 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8676 dynamic_linker='NetBSD (a.out) ld.so'
8678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8679 soname_spec='${libname}${release}${shared_ext}$major'
8680 dynamic_linker='NetBSD ld.elf_so'
8682 shlibpath_var=LD_LIBRARY_PATH
8683 shlibpath_overrides_runpath=yes
8684 hardcode_into_libs=yes
8689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8690 shlibpath_var=LD_LIBRARY_PATH
8691 shlibpath_overrides_runpath=yes
8698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8699 soname_spec='${libname}${release}${shared_ext}$major'
8700 shlibpath_var=LD_LIBRARY_PATH
8701 shlibpath_overrides_runpath=yes
8706 sys_lib_dlsearch_path_spec="/usr/lib"
8708 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8710 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8711 *) need_version=no ;;
8713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8715 shlibpath_var=LD_LIBRARY_PATH
8716 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8718 openbsd2.[89] | openbsd2.[89].*)
8719 shlibpath_overrides_runpath=no
8722 shlibpath_overrides_runpath=yes
8726 shlibpath_overrides_runpath=yes
8731 libname_spec='$name'
8734 library_names_spec='$libname${shared_ext} $libname.a'
8735 dynamic_linker='OS/2 ld.exe'
8736 shlibpath_var=LIBPATH
8739 osf3* | osf4* | osf5*)
8743 soname_spec='${libname}${release}${shared_ext}$major'
8744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8745 shlibpath_var=LD_LIBRARY_PATH
8746 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8747 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8755 soname_spec='${libname}${release}${shared_ext}$major'
8756 shlibpath_var=LD_LIBRARY_PATH
8757 shlibpath_overrides_runpath=yes
8758 hardcode_into_libs=yes
8759 # ldd complains unless libraries are executable
8760 postinstall_cmds='chmod +x $lib'
8765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8766 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8767 shlibpath_var=LD_LIBRARY_PATH
8768 shlibpath_overrides_runpath=yes
8769 if test "$with_gnu_ld" = yes; then
8777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8778 soname_spec='${libname}${release}${shared_ext}$major'
8779 shlibpath_var=LD_LIBRARY_PATH
8780 case $host_vendor in
8782 shlibpath_overrides_runpath=no
8784 export_dynamic_flag_spec='${wl}-Blargedynsym'
8785 runpath_var=LD_RUN_PATH
8793 shlibpath_overrides_runpath=no
8794 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8800 if test -d /usr/nec ;then
8802 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8803 soname_spec='$libname${shared_ext}.$major'
8804 shlibpath_var=LD_LIBRARY_PATH
8808 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8809 version_type=freebsd-elf
8812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8813 soname_spec='${libname}${release}${shared_ext}$major'
8814 shlibpath_var=LD_LIBRARY_PATH
8815 hardcode_into_libs=yes
8816 if test "$with_gnu_ld" = yes; then
8817 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8818 shlibpath_overrides_runpath=no
8820 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8821 shlibpath_overrides_runpath=yes
8824 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8828 sys_lib_dlsearch_path_spec='/usr/lib'
8833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8834 soname_spec='${libname}${release}${shared_ext}$major'
8835 shlibpath_var=LD_LIBRARY_PATH
8842 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8843 echo "${ECHO_T}$dynamic_linker" >&6; }
8844 test "$dynamic_linker" = no && can_build_shared=no
8846 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8847 if test "$GCC" = yes; then
8848 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8852 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
8853 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
8854 if test "${libltdl_cv_shlibext+set}" = set; then
8855 echo $ECHO_N "(cached) $ECHO_C" >&6
8859 eval libltdl_cv_shlibext=$shrext_cmds
8862 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
8863 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
8864 if test -n "$libltdl_cv_shlibext"; then
8866 cat >>confdefs.h <<_ACEOF
8867 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
8873 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
8874 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
8875 if test "${libltdl_cv_shlibpath_var+set}" = set; then
8876 echo $ECHO_N "(cached) $ECHO_C" >&6
8878 libltdl_cv_shlibpath_var="$shlibpath_var"
8880 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
8881 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
8882 if test -n "$libltdl_cv_shlibpath_var"; then
8884 cat >>confdefs.h <<_ACEOF
8885 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
8891 { echo "$as_me:$LINENO: checking for the default library search path" >&5
8892 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
8893 if test "${libltdl_cv_sys_search_path+set}" = set; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8896 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
8898 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
8899 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
8900 if test -n "$libltdl_cv_sys_search_path"; then
8902 for dir in $libltdl_cv_sys_search_path; do
8903 if test -z "$sys_search_path"; then
8904 sys_search_path="$dir"
8906 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
8910 cat >>confdefs.h <<_ACEOF
8911 #define LTDL_SYSSEARCHPATH "$sys_search_path"
8916 { echo "$as_me:$LINENO: checking for objdir" >&5
8917 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8918 if test "${libltdl_cv_objdir+set}" = set; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8921 libltdl_cv_objdir="$objdir"
8922 if test -n "$objdir"; then
8925 rm -f .libs 2>/dev/null
8926 mkdir .libs 2>/dev/null
8927 if test -d .libs; then
8928 libltdl_cv_objdir=.libs
8930 # MS-DOS does not allow filenames that begin with a dot.
8931 libltdl_cv_objdir=_libs
8933 rmdir .libs 2>/dev/null
8937 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
8938 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
8940 cat >>confdefs.h <<_ACEOF
8941 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
8949 # Check for command to grab the raw symbol name followed by C symbol from nm.
8950 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8951 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8952 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8956 # These are sane defaults that work on at least a few old systems.
8957 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8959 # Character class describing NM global symbol codes.
8960 symcode='[BCDEGRST]'
8962 # Regexp to match symbols that can be accessed directly from C.
8963 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8965 # Transform an extracted symbol line into a proper C declaration
8966 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8968 # Transform an extracted symbol line into symbol name and symbol address
8969 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'"
8971 # Define system-specific variables.
8976 cygwin* | mingw* | pw32*)
8977 symcode='[ABCDGISTW]'
8979 hpux*) # Its linker distinguishes data from code symbols
8980 if test "$host_cpu" = ia64; then
8981 symcode='[ABCDEGRST]'
8983 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8984 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'"
8987 if test "$host_cpu" = ia64; then
8988 symcode='[ABCDGIRSTW]'
8989 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8990 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'"
8994 symcode='[BCDEGRST]'
8997 symcode='[BCDEGQRST]'
9008 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9016 # Handle CRLF in mingw tool chain
9020 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9024 # If we're using GNU nm, then use its standard symbol codes.
9025 case `$NM -V 2>&1` in
9026 *GNU* | *'with BFD'*)
9027 symcode='[ABCDGIRSTW]' ;;
9030 # Try without a prefix undercore, then with it.
9031 for ac_symprfx in "" "_"; do
9033 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9034 symxfrm="\\1 $ac_symprfx\\2 \\2"
9036 # Write the raw and C identifiers.
9037 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9039 # Check to see that the pipe works correctly.
9043 cat > conftest.$ac_ext <<EOF
9048 void nm_test_func(){}
9052 int main(){nm_test_var='a';nm_test_func();return(0);}
9055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9056 (eval $ac_compile) 2>&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; then
9060 # Now try to grab the symbols.
9062 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9063 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); } && test -s "$nlist"; then
9067 # Try sorting and uniquifying the output.
9068 if sort "$nlist" | uniq > "$nlist"T; then
9069 mv -f "$nlist"T "$nlist"
9074 # Make sure that we snagged all the symbols we need.
9075 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9076 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9077 cat <<EOF > conftest.$ac_ext
9083 # Now generate the symbol file.
9084 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9086 cat <<EOF >> conftest.$ac_ext
9087 #if defined (__STDC__) && __STDC__
9088 # define lt_ptr_t void *
9090 # define lt_ptr_t char *
9094 /* The mapping between symbol names and symbols. */
9099 lt_preloaded_symbols[] =
9102 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9103 cat <<\EOF >> conftest.$ac_ext
9111 # Now try linking the two files.
9112 mv conftest.$ac_objext conftstm.$ac_objext
9113 lt_save_LIBS="$LIBS"
9114 lt_save_CFLAGS="$CFLAGS"
9115 LIBS="conftstm.$ac_objext"
9116 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9118 (eval $ac_link) 2>&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9124 LIBS="$lt_save_LIBS"
9125 CFLAGS="$lt_save_CFLAGS"
9127 echo "cannot find nm_test_func in $nlist" >&5
9130 echo "cannot find nm_test_var in $nlist" >&5
9133 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9136 echo "$progname: failed program was:" >&5
9137 cat conftest.$ac_ext >&5
9139 rm -f conftest* conftst*
9141 # Do not use the global_symbol_pipe unless it works.
9142 if test "$pipe_works" = yes; then
9145 lt_cv_sys_global_symbol_pipe=
9151 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9152 lt_cv_sys_global_symbol_to_cdecl=
9154 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9155 { echo "$as_me:$LINENO: result: failed" >&5
9156 echo "${ECHO_T}failed" >&6; }
9158 { echo "$as_me:$LINENO: result: ok" >&5
9159 echo "${ECHO_T}ok" >&6; }
9163 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9164 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9165 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9166 echo $ECHO_N "(cached) $ECHO_C" >&6
9168 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9169 libltdl_cv_preloaded_symbols=yes
9171 libltdl_cv_preloaded_symbols=no
9175 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9176 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9177 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9179 cat >>confdefs.h <<\_ACEOF
9180 #define HAVE_PRELOADED_SYMBOLS 1
9188 ac_cpp='$CPP $CPPFLAGS'
9189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9194 { echo "$as_me:$LINENO: checking for shl_load" >&5
9195 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9196 if test "${ac_cv_func_shl_load+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 cat >conftest.$ac_ext <<_ACEOF
9202 cat confdefs.h >>conftest.$ac_ext
9203 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h. */
9205 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9207 #define shl_load innocuous_shl_load
9209 /* System header to define __stub macros and hopefully few prototypes,
9210 which can conflict with char shl_load (); below.
9211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9212 <limits.h> exists even on freestanding compilers. */
9215 # include <limits.h>
9217 # include <assert.h>
9222 /* Override any GCC internal prototype to avoid an error.
9223 Use char because int might match the return type of a GCC
9224 builtin and then its argument prototype would still apply. */
9229 /* The GNU C library defines this for functions which it implements
9230 to always fail with ENOSYS. Some functions are actually named
9231 something starting with __ and the normal name is an alias. */
9232 #if defined __stub_shl_load || defined __stub___shl_load
9244 rm -f conftest.$ac_objext conftest$ac_exeext
9245 if { (ac_try="$ac_link"
9247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9248 *) ac_try_echo=$ac_try;;
9250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9251 (eval "$ac_link") 2>conftest.er1
9253 grep -v '^ *+' conftest.er1 >conftest.err
9255 cat conftest.err >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } && {
9258 test -z "$ac_c_werror_flag" ||
9259 test ! -s conftest.err
9260 } && test -s conftest$ac_exeext &&
9261 $as_test_x conftest$ac_exeext; then
9262 ac_cv_func_shl_load=yes
9264 echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9267 ac_cv_func_shl_load=no
9270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9271 conftest$ac_exeext conftest.$ac_ext
9273 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9274 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9275 if test $ac_cv_func_shl_load = yes; then
9277 cat >>confdefs.h <<\_ACEOF
9278 #define HAVE_SHL_LOAD 1
9282 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9283 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9284 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9287 ac_check_lib_save_LIBS=$LIBS
9289 cat >conftest.$ac_ext <<_ACEOF
9292 cat confdefs.h >>conftest.$ac_ext
9293 cat >>conftest.$ac_ext <<_ACEOF
9294 /* end confdefs.h. */
9296 /* Override any GCC internal prototype to avoid an error.
9297 Use char because int might match the return type of a GCC
9298 builtin and then its argument prototype would still apply. */
9311 rm -f conftest.$ac_objext conftest$ac_exeext
9312 if { (ac_try="$ac_link"
9314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9315 *) ac_try_echo=$ac_try;;
9317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9318 (eval "$ac_link") 2>conftest.er1
9320 grep -v '^ *+' conftest.er1 >conftest.err
9322 cat conftest.err >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); } && {
9325 test -z "$ac_c_werror_flag" ||
9326 test ! -s conftest.err
9327 } && test -s conftest$ac_exeext &&
9328 $as_test_x conftest$ac_exeext; then
9329 ac_cv_lib_dld_shl_load=yes
9331 echo "$as_me: failed program was:" >&5
9332 sed 's/^/| /' conftest.$ac_ext >&5
9334 ac_cv_lib_dld_shl_load=no
9337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9338 conftest$ac_exeext conftest.$ac_ext
9339 LIBS=$ac_check_lib_save_LIBS
9341 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9342 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9343 if test $ac_cv_lib_dld_shl_load = yes; then
9345 cat >>confdefs.h <<\_ACEOF
9346 #define HAVE_SHL_LOAD 1
9349 LIBADD_DL="$LIBADD_DL -ldld"
9351 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9352 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9353 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
9356 ac_check_lib_save_LIBS=$LIBS
9358 cat >conftest.$ac_ext <<_ACEOF
9361 cat confdefs.h >>conftest.$ac_ext
9362 cat >>conftest.$ac_ext <<_ACEOF
9363 /* end confdefs.h. */
9365 /* Override any GCC internal prototype to avoid an error.
9366 Use char because int might match the return type of a GCC
9367 builtin and then its argument prototype would still apply. */
9380 rm -f conftest.$ac_objext conftest$ac_exeext
9381 if { (ac_try="$ac_link"
9383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9384 *) ac_try_echo=$ac_try;;
9386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387 (eval "$ac_link") 2>conftest.er1
9389 grep -v '^ *+' conftest.er1 >conftest.err
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } && {
9394 test -z "$ac_c_werror_flag" ||
9395 test ! -s conftest.err
9396 } && test -s conftest$ac_exeext &&
9397 $as_test_x conftest$ac_exeext; then
9398 ac_cv_lib_dl_dlopen=yes
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9403 ac_cv_lib_dl_dlopen=no
9406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9407 conftest$ac_exeext conftest.$ac_ext
9408 LIBS=$ac_check_lib_save_LIBS
9410 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9411 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9412 if test $ac_cv_lib_dl_dlopen = yes; then
9414 cat >>confdefs.h <<\_ACEOF
9415 #define HAVE_LIBDL 1
9418 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9420 cat >conftest.$ac_ext <<_ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h. */
9438 rm -f conftest.$ac_objext conftest$ac_exeext
9439 if { (ac_try="$ac_link"
9441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9442 *) ac_try_echo=$ac_try;;
9444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9445 (eval "$ac_link") 2>conftest.er1
9447 grep -v '^ *+' conftest.er1 >conftest.err
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } && {
9452 test -z "$ac_c_werror_flag" ||
9453 test ! -s conftest.err
9454 } && test -s conftest$ac_exeext &&
9455 $as_test_x conftest$ac_exeext; then
9457 cat >>confdefs.h <<\_ACEOF
9458 #define HAVE_LIBDL 1
9460 libltdl_cv_func_dlopen="yes"
9462 echo "$as_me: failed program was:" >&5
9463 sed 's/^/| /' conftest.$ac_ext >&5
9465 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9466 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9467 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9468 echo $ECHO_N "(cached) $ECHO_C" >&6
9470 ac_check_lib_save_LIBS=$LIBS
9472 cat >conftest.$ac_ext <<_ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h. */
9479 /* Override any GCC internal prototype to avoid an error.
9480 Use char because int might match the return type of a GCC
9481 builtin and then its argument prototype would still apply. */
9494 rm -f conftest.$ac_objext conftest$ac_exeext
9495 if { (ac_try="$ac_link"
9497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498 *) ac_try_echo=$ac_try;;
9500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9501 (eval "$ac_link") 2>conftest.er1
9503 grep -v '^ *+' conftest.er1 >conftest.err
9505 cat conftest.err >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } && {
9508 test -z "$ac_c_werror_flag" ||
9509 test ! -s conftest.err
9510 } && test -s conftest$ac_exeext &&
9511 $as_test_x conftest$ac_exeext; then
9512 ac_cv_lib_svld_dlopen=yes
9514 echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9517 ac_cv_lib_svld_dlopen=no
9520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9521 conftest$ac_exeext conftest.$ac_ext
9522 LIBS=$ac_check_lib_save_LIBS
9524 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9525 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9526 if test $ac_cv_lib_svld_dlopen = yes; then
9528 cat >>confdefs.h <<\_ACEOF
9529 #define HAVE_LIBDL 1
9532 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9534 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9535 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9536 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9539 ac_check_lib_save_LIBS=$LIBS
9541 cat >conftest.$ac_ext <<_ACEOF
9544 cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h. */
9548 /* Override any GCC internal prototype to avoid an error.
9549 Use char because int might match the return type of a GCC
9550 builtin and then its argument prototype would still apply. */
9563 rm -f conftest.$ac_objext conftest$ac_exeext
9564 if { (ac_try="$ac_link"
9566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9567 *) ac_try_echo=$ac_try;;
9569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9570 (eval "$ac_link") 2>conftest.er1
9572 grep -v '^ *+' conftest.er1 >conftest.err
9574 cat conftest.err >&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); } && {
9577 test -z "$ac_c_werror_flag" ||
9578 test ! -s conftest.err
9579 } && test -s conftest$ac_exeext &&
9580 $as_test_x conftest$ac_exeext; then
9581 ac_cv_lib_dld_dld_link=yes
9583 echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.$ac_ext >&5
9586 ac_cv_lib_dld_dld_link=no
9589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9590 conftest$ac_exeext conftest.$ac_ext
9591 LIBS=$ac_check_lib_save_LIBS
9593 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9594 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9595 if test $ac_cv_lib_dld_dld_link = yes; then
9597 cat >>confdefs.h <<\_ACEOF
9601 LIBADD_DL="$LIBADD_DL -ldld"
9603 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9604 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9605 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9606 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 cat >conftest.$ac_ext <<_ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h. */
9614 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9616 #define _dyld_func_lookup innocuous__dyld_func_lookup
9618 /* System header to define __stub macros and hopefully few prototypes,
9619 which can conflict with char _dyld_func_lookup (); below.
9620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9621 <limits.h> exists even on freestanding compilers. */
9624 # include <limits.h>
9626 # include <assert.h>
9629 #undef _dyld_func_lookup
9631 /* Override any GCC internal prototype to avoid an error.
9632 Use char because int might match the return type of a GCC
9633 builtin and then its argument prototype would still apply. */
9637 char _dyld_func_lookup ();
9638 /* The GNU C library defines this for functions which it implements
9639 to always fail with ENOSYS. Some functions are actually named
9640 something starting with __ and the normal name is an alias. */
9641 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9648 return _dyld_func_lookup ();
9653 rm -f conftest.$ac_objext conftest$ac_exeext
9654 if { (ac_try="$ac_link"
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660 (eval "$ac_link") 2>conftest.er1
9662 grep -v '^ *+' conftest.er1 >conftest.err
9664 cat conftest.err >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } && {
9667 test -z "$ac_c_werror_flag" ||
9668 test ! -s conftest.err
9669 } && test -s conftest$ac_exeext &&
9670 $as_test_x conftest$ac_exeext; then
9671 ac_cv_func__dyld_func_lookup=yes
9673 echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.$ac_ext >&5
9676 ac_cv_func__dyld_func_lookup=no
9679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9680 conftest$ac_exeext conftest.$ac_ext
9682 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9683 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
9684 if test $ac_cv_func__dyld_func_lookup = yes; then
9686 cat >>confdefs.h <<\_ACEOF
9701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9702 conftest$ac_exeext conftest.$ac_ext
9713 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9715 lt_save_LIBS="$LIBS"
9716 LIBS="$LIBS $LIBADD_DL"
9718 for ac_func in dlerror
9720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9721 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 cat >conftest.$ac_ext <<_ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9734 #define $ac_func innocuous_$ac_func
9736 /* System header to define __stub macros and hopefully few prototypes,
9737 which can conflict with char $ac_func (); below.
9738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9739 <limits.h> exists even on freestanding compilers. */
9742 # include <limits.h>
9744 # include <assert.h>
9749 /* Override any GCC internal prototype to avoid an error.
9750 Use char because int might match the return type of a GCC
9751 builtin and then its argument prototype would still apply. */
9756 /* The GNU C library defines this for functions which it implements
9757 to always fail with ENOSYS. Some functions are actually named
9758 something starting with __ and the normal name is an alias. */
9759 #if defined __stub_$ac_func || defined __stub___$ac_func
9771 rm -f conftest.$ac_objext conftest$ac_exeext
9772 if { (ac_try="$ac_link"
9774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775 *) ac_try_echo=$ac_try;;
9777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778 (eval "$ac_link") 2>conftest.er1
9780 grep -v '^ *+' conftest.er1 >conftest.err
9782 cat conftest.err >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } && {
9785 test -z "$ac_c_werror_flag" ||
9786 test ! -s conftest.err
9787 } && test -s conftest$ac_exeext &&
9788 $as_test_x conftest$ac_exeext; then
9789 eval "$as_ac_var=yes"
9791 echo "$as_me: failed program was:" >&5
9792 sed 's/^/| /' conftest.$ac_ext >&5
9794 eval "$as_ac_var=no"
9797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9798 conftest$ac_exeext conftest.$ac_ext
9800 ac_res=`eval echo '${'$as_ac_var'}'`
9801 { echo "$as_me:$LINENO: result: $ac_res" >&5
9802 echo "${ECHO_T}$ac_res" >&6; }
9803 if test `eval echo '${'$as_ac_var'}'` = yes; then
9804 cat >>confdefs.h <<_ACEOF
9805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9811 LIBS="$lt_save_LIBS"
9814 ac_cpp='$CPP $CPPFLAGS'
9815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9821 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
9822 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
9823 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
9824 echo $ECHO_N "(cached) $ECHO_C" >&6
9826 ac_cv_sys_symbol_underscore=no
9827 cat > conftest.$ac_ext <<EOF
9828 void nm_test_func(){}
9829 int main(){nm_test_func;return 0;}
9831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9832 (eval $ac_compile) 2>&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; then
9836 # Now try to grab the symbols.
9837 ac_nlist=conftest.nm
9838 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
9839 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } && test -s "$ac_nlist"; then
9843 # See whether the symbols have a leading underscore.
9844 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
9845 ac_cv_sys_symbol_underscore=yes
9847 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
9850 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
9854 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
9857 echo "configure: failed program was:" >&5
9863 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
9864 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
9867 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
9868 if test x"$libltdl_cv_func_dlopen" = xyes ||
9869 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
9870 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
9871 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
9872 if test "${libltdl_cv_need_uscore+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9875 libltdl_cv_need_uscore=unknown
9877 LIBS="$LIBS $LIBADD_DL"
9878 if test "$cross_compiling" = yes; then :
9879 libltdl_cv_need_uscore=cross
9881 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9882 lt_status=$lt_dlunknown
9883 cat > conftest.$ac_ext <<EOF
9884 #line 9884 "configure"
9885 #include "confdefs.h"
9894 # define LT_DLGLOBAL RTLD_GLOBAL
9897 # define LT_DLGLOBAL DL_GLOBAL
9899 # define LT_DLGLOBAL 0
9903 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9904 find out it does not work in some platform. */
9905 #ifndef LT_DLLAZY_OR_NOW
9907 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9910 # define LT_DLLAZY_OR_NOW DL_LAZY
9913 # define LT_DLLAZY_OR_NOW RTLD_NOW
9916 # define LT_DLLAZY_OR_NOW DL_NOW
9918 # define LT_DLLAZY_OR_NOW 0
9926 extern "C" void exit (int);
9929 void fnord() { int i=42;}
9932 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9933 int status = $lt_dlunknown;
9937 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9938 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9939 /* dlclose (self); */
9947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9948 (eval $ac_link) 2>&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9952 (./conftest; exit; ) >&5 2>/dev/null
9955 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
9956 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
9957 x$lt_dlunknown|x*) ;;
9960 # compilation failed
9969 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
9970 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
9974 if test x"$libltdl_cv_need_uscore" = xyes; then
9976 cat >>confdefs.h <<\_ACEOF
9977 #define NEED_USCORE 1
9983 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
9984 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
9985 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9988 # PORTME does your system automatically load deplibs for dlopen?
9989 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
9990 # For now, we just catch OSes we know something about -- in the
9991 # future, we'll try test this programmatically.
9992 libltdl_cv_sys_dlopen_deplibs=unknown
9994 aix3*|aix4.1.*|aix4.2.*)
9995 # Unknown whether this is true for these versions of AIX, but
9996 # we want this `case' here to explicitly catch those versions.
9997 libltdl_cv_sys_dlopen_deplibs=unknown
10000 libltdl_cv_sys_dlopen_deplibs=yes
10003 # Assuming the user has installed a libdl from somewhere, this is true
10004 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10005 libltdl_cv_sys_dlopen_deplibs=yes
10007 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10008 # GNU and its variants, using gnu ld.so (Glibc)
10009 libltdl_cv_sys_dlopen_deplibs=yes
10012 libltdl_cv_sys_dlopen_deplibs=yes
10015 libltdl_cv_sys_dlopen_deplibs=yes
10017 irix[12345]*|irix6.[01]*)
10018 # Catch all versions of IRIX before 6.2, and indicate that we don't
10019 # know how it worked for any of those versions.
10020 libltdl_cv_sys_dlopen_deplibs=unknown
10023 # The case above catches anything before 6.2, and it's known that
10024 # at 6.2 and later dlopen does load deplibs.
10025 libltdl_cv_sys_dlopen_deplibs=yes
10028 libltdl_cv_sys_dlopen_deplibs=yes
10031 libltdl_cv_sys_dlopen_deplibs=yes
10034 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10035 # it did *not* use an RPATH in a shared library to find objects the
10036 # library depends on, so we explictly say `no'.
10037 libltdl_cv_sys_dlopen_deplibs=no
10039 osf5.0|osf5.0a|osf5.1)
10040 # dlopen *does* load deplibs and with the right loader patch applied
10041 # it even uses RPATH in a shared library to search for shared objects
10042 # that the library depends on, but there's no easy way to know if that
10043 # patch is installed. Since this is the case, all we can really
10044 # say is unknown -- it depends on the patch being installed. If
10045 # it is, this changes to `yes'. Without it, it would be `no'.
10046 libltdl_cv_sys_dlopen_deplibs=unknown
10049 # the two cases above should catch all versions of osf <= 5.1. Read
10050 # the comments above for what we know about them.
10051 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10052 # is used to find them so we can finally say `yes'.
10053 libltdl_cv_sys_dlopen_deplibs=yes
10056 libltdl_cv_sys_dlopen_deplibs=yes
10058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10059 libltdl_cv_sys_dlopen_deplibs=yes
10064 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10065 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10066 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10068 cat >>confdefs.h <<\_ACEOF
10069 #define LTDL_DLOPEN_DEPLIBS 1
10075 for ac_header in argz.h
10077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10079 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10084 ac_res=`eval echo '${'$as_ac_Header'}'`
10085 { echo "$as_me:$LINENO: result: $ac_res" >&5
10086 echo "${ECHO_T}$ac_res" >&6; }
10088 # Is the header compilable?
10089 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10091 cat >conftest.$ac_ext <<_ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h. */
10097 $ac_includes_default
10098 #include <$ac_header>
10100 rm -f conftest.$ac_objext
10101 if { (ac_try="$ac_compile"
10102 case "(($ac_try" in
10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107 (eval "$ac_compile") 2>conftest.er1
10109 grep -v '^ *+' conftest.er1 >conftest.err
10111 cat conftest.err >&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } && {
10114 test -z "$ac_c_werror_flag" ||
10115 test ! -s conftest.err
10116 } && test -s conftest.$ac_objext; then
10117 ac_header_compiler=yes
10119 echo "$as_me: failed program was:" >&5
10120 sed 's/^/| /' conftest.$ac_ext >&5
10122 ac_header_compiler=no
10125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10126 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10127 echo "${ECHO_T}$ac_header_compiler" >&6; }
10129 # Is the header present?
10130 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10132 cat >conftest.$ac_ext <<_ACEOF
10135 cat confdefs.h >>conftest.$ac_ext
10136 cat >>conftest.$ac_ext <<_ACEOF
10137 /* end confdefs.h. */
10138 #include <$ac_header>
10140 if { (ac_try="$ac_cpp conftest.$ac_ext"
10141 case "(($ac_try" in
10142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143 *) ac_try_echo=$ac_try;;
10145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10148 grep -v '^ *+' conftest.er1 >conftest.err
10150 cat conftest.err >&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); } >/dev/null && {
10153 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10154 test ! -s conftest.err
10156 ac_header_preproc=yes
10158 echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10161 ac_header_preproc=no
10164 rm -f conftest.err conftest.$ac_ext
10165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10166 echo "${ECHO_T}$ac_header_preproc" >&6; }
10168 # So? What about this header?
10169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10175 ac_header_preproc=yes
10178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10181 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10182 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10184 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10185 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10188 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10191 ## ----------------------------------- ##
10192 ## Report this to llvmbugs@cs.uiuc.edu ##
10193 ## ----------------------------------- ##
10195 ) | sed "s/^/$as_me: WARNING: /" >&2
10198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10203 eval "$as_ac_Header=\$ac_header_preproc"
10205 ac_res=`eval echo '${'$as_ac_Header'}'`
10206 { echo "$as_me:$LINENO: result: $ac_res" >&5
10207 echo "${ECHO_T}$ac_res" >&6; }
10210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10211 cat >>confdefs.h <<_ACEOF
10212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10220 { echo "$as_me:$LINENO: checking for error_t" >&5
10221 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10222 if test "${ac_cv_type_error_t+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10225 cat >conftest.$ac_ext <<_ACEOF
10228 cat confdefs.h >>conftest.$ac_ext
10229 cat >>conftest.$ac_ext <<_ACEOF
10230 /* end confdefs.h. */
10235 typedef error_t ac__type_new_;
10239 if ((ac__type_new_ *) 0)
10241 if (sizeof (ac__type_new_))
10247 rm -f conftest.$ac_objext
10248 if { (ac_try="$ac_compile"
10249 case "(($ac_try" in
10250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251 *) ac_try_echo=$ac_try;;
10253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10254 (eval "$ac_compile") 2>conftest.er1
10256 grep -v '^ *+' conftest.er1 >conftest.err
10258 cat conftest.err >&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } && {
10261 test -z "$ac_c_werror_flag" ||
10262 test ! -s conftest.err
10263 } && test -s conftest.$ac_objext; then
10264 ac_cv_type_error_t=yes
10266 echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10269 ac_cv_type_error_t=no
10272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10274 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10275 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10276 if test $ac_cv_type_error_t = yes; then
10278 cat >>confdefs.h <<_ACEOF
10279 #define HAVE_ERROR_T 1
10285 cat >>confdefs.h <<\_ACEOF
10286 #define error_t int
10297 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10300 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10302 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 cat >conftest.$ac_ext <<_ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h. */
10311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10313 #define $ac_func innocuous_$ac_func
10315 /* System header to define __stub macros and hopefully few prototypes,
10316 which can conflict with char $ac_func (); below.
10317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10318 <limits.h> exists even on freestanding compilers. */
10321 # include <limits.h>
10323 # include <assert.h>
10328 /* Override any GCC internal prototype to avoid an error.
10329 Use char because int might match the return type of a GCC
10330 builtin and then its argument prototype would still apply. */
10335 /* The GNU C library defines this for functions which it implements
10336 to always fail with ENOSYS. Some functions are actually named
10337 something starting with __ and the normal name is an alias. */
10338 #if defined __stub_$ac_func || defined __stub___$ac_func
10345 return $ac_func ();
10350 rm -f conftest.$ac_objext conftest$ac_exeext
10351 if { (ac_try="$ac_link"
10352 case "(($ac_try" in
10353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354 *) ac_try_echo=$ac_try;;
10356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357 (eval "$ac_link") 2>conftest.er1
10359 grep -v '^ *+' conftest.er1 >conftest.err
10361 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } && {
10364 test -z "$ac_c_werror_flag" ||
10365 test ! -s conftest.err
10366 } && test -s conftest$ac_exeext &&
10367 $as_test_x conftest$ac_exeext; then
10368 eval "$as_ac_var=yes"
10370 echo "$as_me: failed program was:" >&5
10371 sed 's/^/| /' conftest.$ac_ext >&5
10373 eval "$as_ac_var=no"
10376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10377 conftest$ac_exeext conftest.$ac_ext
10379 ac_res=`eval echo '${'$as_ac_var'}'`
10380 { echo "$as_me:$LINENO: result: $ac_res" >&5
10381 echo "${ECHO_T}$ac_res" >&6; }
10382 if test `eval echo '${'$as_ac_var'}'` = yes; then
10383 cat >>confdefs.h <<_ACEOF
10384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10417 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10427 ac_res=`eval echo '${'$as_ac_Header'}'`
10428 { echo "$as_me:$LINENO: result: $ac_res" >&5
10429 echo "${ECHO_T}$ac_res" >&6; }
10431 # Is the header compilable?
10432 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10434 cat >conftest.$ac_ext <<_ACEOF
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h. */
10440 $ac_includes_default
10441 #include <$ac_header>
10443 rm -f conftest.$ac_objext
10444 if { (ac_try="$ac_compile"
10445 case "(($ac_try" in
10446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447 *) ac_try_echo=$ac_try;;
10449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450 (eval "$ac_compile") 2>conftest.er1
10452 grep -v '^ *+' conftest.er1 >conftest.err
10454 cat conftest.err >&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); } && {
10457 test -z "$ac_c_werror_flag" ||
10458 test ! -s conftest.err
10459 } && test -s conftest.$ac_objext; then
10460 ac_header_compiler=yes
10462 echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.$ac_ext >&5
10465 ac_header_compiler=no
10468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10469 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10470 echo "${ECHO_T}$ac_header_compiler" >&6; }
10472 # Is the header present?
10473 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10475 cat >conftest.$ac_ext <<_ACEOF
10478 cat confdefs.h >>conftest.$ac_ext
10479 cat >>conftest.$ac_ext <<_ACEOF
10480 /* end confdefs.h. */
10481 #include <$ac_header>
10483 if { (ac_try="$ac_cpp conftest.$ac_ext"
10484 case "(($ac_try" in
10485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10486 *) ac_try_echo=$ac_try;;
10488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10491 grep -v '^ *+' conftest.er1 >conftest.err
10493 cat conftest.err >&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } >/dev/null && {
10496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10497 test ! -s conftest.err
10499 ac_header_preproc=yes
10501 echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.$ac_ext >&5
10504 ac_header_preproc=no
10507 rm -f conftest.err conftest.$ac_ext
10508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10509 echo "${ECHO_T}$ac_header_preproc" >&6; }
10511 # So? What about this header?
10512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10518 ac_header_preproc=yes
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10528 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10534 ## ----------------------------------- ##
10535 ## Report this to llvmbugs@cs.uiuc.edu ##
10536 ## ----------------------------------- ##
10538 ) | sed "s/^/$as_me: WARNING: /" >&2
10541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10544 echo $ECHO_N "(cached) $ECHO_C" >&6
10546 eval "$as_ac_Header=\$ac_header_preproc"
10548 ac_res=`eval echo '${'$as_ac_Header'}'`
10549 { echo "$as_me:$LINENO: result: $ac_res" >&5
10550 echo "${ECHO_T}$ac_res" >&6; }
10553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10554 cat >>confdefs.h <<_ACEOF
10555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10566 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 ac_res=`eval echo '${'$as_ac_Header'}'`
10576 { echo "$as_me:$LINENO: result: $ac_res" >&5
10577 echo "${ECHO_T}$ac_res" >&6; }
10579 # Is the header compilable?
10580 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10582 cat >conftest.$ac_ext <<_ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10588 $ac_includes_default
10589 #include <$ac_header>
10591 rm -f conftest.$ac_objext
10592 if { (ac_try="$ac_compile"
10593 case "(($ac_try" in
10594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595 *) ac_try_echo=$ac_try;;
10597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598 (eval "$ac_compile") 2>conftest.er1
10600 grep -v '^ *+' conftest.er1 >conftest.err
10602 cat conftest.err >&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } && {
10605 test -z "$ac_c_werror_flag" ||
10606 test ! -s conftest.err
10607 } && test -s conftest.$ac_objext; then
10608 ac_header_compiler=yes
10610 echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10613 ac_header_compiler=no
10616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10617 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10618 echo "${ECHO_T}$ac_header_compiler" >&6; }
10620 # Is the header present?
10621 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10623 cat >conftest.$ac_ext <<_ACEOF
10626 cat confdefs.h >>conftest.$ac_ext
10627 cat >>conftest.$ac_ext <<_ACEOF
10628 /* end confdefs.h. */
10629 #include <$ac_header>
10631 if { (ac_try="$ac_cpp conftest.$ac_ext"
10632 case "(($ac_try" in
10633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634 *) ac_try_echo=$ac_try;;
10636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10639 grep -v '^ *+' conftest.er1 >conftest.err
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } >/dev/null && {
10644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10645 test ! -s conftest.err
10647 ac_header_preproc=yes
10649 echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10652 ac_header_preproc=no
10655 rm -f conftest.err conftest.$ac_ext
10656 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10657 echo "${ECHO_T}$ac_header_preproc" >&6; }
10659 # So? What about this header?
10660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10663 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10665 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10666 ac_header_preproc=yes
10669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10672 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10673 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10674 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10675 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10676 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10678 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10679 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10680 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10682 ## ----------------------------------- ##
10683 ## Report this to llvmbugs@cs.uiuc.edu ##
10684 ## ----------------------------------- ##
10686 ) | sed "s/^/$as_me: WARNING: /" >&2
10689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10694 eval "$as_ac_Header=\$ac_header_preproc"
10696 ac_res=`eval echo '${'$as_ac_Header'}'`
10697 { echo "$as_me:$LINENO: result: $ac_res" >&5
10698 echo "${ECHO_T}$ac_res" >&6; }
10701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10702 cat >>confdefs.h <<_ACEOF
10703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10712 for ac_header in string.h strings.h
10714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10719 echo $ECHO_N "(cached) $ECHO_C" >&6
10721 ac_res=`eval echo '${'$as_ac_Header'}'`
10722 { echo "$as_me:$LINENO: result: $ac_res" >&5
10723 echo "${ECHO_T}$ac_res" >&6; }
10725 # Is the header compilable?
10726 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10728 cat >conftest.$ac_ext <<_ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h. */
10734 $ac_includes_default
10735 #include <$ac_header>
10737 rm -f conftest.$ac_objext
10738 if { (ac_try="$ac_compile"
10739 case "(($ac_try" in
10740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741 *) ac_try_echo=$ac_try;;
10743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10744 (eval "$ac_compile") 2>conftest.er1
10746 grep -v '^ *+' conftest.er1 >conftest.err
10748 cat conftest.err >&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } && {
10751 test -z "$ac_c_werror_flag" ||
10752 test ! -s conftest.err
10753 } && test -s conftest.$ac_objext; then
10754 ac_header_compiler=yes
10756 echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10759 ac_header_compiler=no
10762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10764 echo "${ECHO_T}$ac_header_compiler" >&6; }
10766 # Is the header present?
10767 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10769 cat >conftest.$ac_ext <<_ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10775 #include <$ac_header>
10777 if { (ac_try="$ac_cpp conftest.$ac_ext"
10778 case "(($ac_try" in
10779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780 *) ac_try_echo=$ac_try;;
10782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10785 grep -v '^ *+' conftest.er1 >conftest.err
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } >/dev/null && {
10790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10791 test ! -s conftest.err
10793 ac_header_preproc=yes
10795 echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10798 ac_header_preproc=no
10801 rm -f conftest.err conftest.$ac_ext
10802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10803 echo "${ECHO_T}$ac_header_preproc" >&6; }
10805 # So? What about this header?
10806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10812 ac_header_preproc=yes
10815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10828 ## ----------------------------------- ##
10829 ## Report this to llvmbugs@cs.uiuc.edu ##
10830 ## ----------------------------------- ##
10832 ) | sed "s/^/$as_me: WARNING: /" >&2
10835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10838 echo $ECHO_N "(cached) $ECHO_C" >&6
10840 eval "$as_ac_Header=\$ac_header_preproc"
10842 ac_res=`eval echo '${'$as_ac_Header'}'`
10843 { echo "$as_me:$LINENO: result: $ac_res" >&5
10844 echo "${ECHO_T}$ac_res" >&6; }
10847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10848 cat >>confdefs.h <<_ACEOF
10849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10859 for ac_func in strchr index
10861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10862 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10865 echo $ECHO_N "(cached) $ECHO_C" >&6
10867 cat >conftest.$ac_ext <<_ACEOF
10870 cat confdefs.h >>conftest.$ac_ext
10871 cat >>conftest.$ac_ext <<_ACEOF
10872 /* end confdefs.h. */
10873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10875 #define $ac_func innocuous_$ac_func
10877 /* System header to define __stub macros and hopefully few prototypes,
10878 which can conflict with char $ac_func (); below.
10879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10880 <limits.h> exists even on freestanding compilers. */
10883 # include <limits.h>
10885 # include <assert.h>
10890 /* Override any GCC internal prototype to avoid an error.
10891 Use char because int might match the return type of a GCC
10892 builtin and then its argument prototype would still apply. */
10897 /* The GNU C library defines this for functions which it implements
10898 to always fail with ENOSYS. Some functions are actually named
10899 something starting with __ and the normal name is an alias. */
10900 #if defined __stub_$ac_func || defined __stub___$ac_func
10907 return $ac_func ();
10912 rm -f conftest.$ac_objext conftest$ac_exeext
10913 if { (ac_try="$ac_link"
10914 case "(($ac_try" in
10915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10916 *) ac_try_echo=$ac_try;;
10918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10919 (eval "$ac_link") 2>conftest.er1
10921 grep -v '^ *+' conftest.er1 >conftest.err
10923 cat conftest.err >&5
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); } && {
10926 test -z "$ac_c_werror_flag" ||
10927 test ! -s conftest.err
10928 } && test -s conftest$ac_exeext &&
10929 $as_test_x conftest$ac_exeext; then
10930 eval "$as_ac_var=yes"
10932 echo "$as_me: failed program was:" >&5
10933 sed 's/^/| /' conftest.$ac_ext >&5
10935 eval "$as_ac_var=no"
10938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10939 conftest$ac_exeext conftest.$ac_ext
10941 ac_res=`eval echo '${'$as_ac_var'}'`
10942 { echo "$as_me:$LINENO: result: $ac_res" >&5
10943 echo "${ECHO_T}$ac_res" >&6; }
10944 if test `eval echo '${'$as_ac_var'}'` = yes; then
10945 cat >>confdefs.h <<_ACEOF
10946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10954 for ac_func in strrchr rindex
10956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10962 cat >conftest.$ac_ext <<_ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10970 #define $ac_func innocuous_$ac_func
10972 /* System header to define __stub macros and hopefully few prototypes,
10973 which can conflict with char $ac_func (); below.
10974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10975 <limits.h> exists even on freestanding compilers. */
10978 # include <limits.h>
10980 # include <assert.h>
10985 /* Override any GCC internal prototype to avoid an error.
10986 Use char because int might match the return type of a GCC
10987 builtin and then its argument prototype would still apply. */
10992 /* The GNU C library defines this for functions which it implements
10993 to always fail with ENOSYS. Some functions are actually named
10994 something starting with __ and the normal name is an alias. */
10995 #if defined __stub_$ac_func || defined __stub___$ac_func
11002 return $ac_func ();
11007 rm -f conftest.$ac_objext conftest$ac_exeext
11008 if { (ac_try="$ac_link"
11009 case "(($ac_try" in
11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011 *) ac_try_echo=$ac_try;;
11013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014 (eval "$ac_link") 2>conftest.er1
11016 grep -v '^ *+' conftest.er1 >conftest.err
11018 cat conftest.err >&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } && {
11021 test -z "$ac_c_werror_flag" ||
11022 test ! -s conftest.err
11023 } && test -s conftest$ac_exeext &&
11024 $as_test_x conftest$ac_exeext; then
11025 eval "$as_ac_var=yes"
11027 echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11030 eval "$as_ac_var=no"
11033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11034 conftest$ac_exeext conftest.$ac_ext
11036 ac_res=`eval echo '${'$as_ac_var'}'`
11037 { echo "$as_me:$LINENO: result: $ac_res" >&5
11038 echo "${ECHO_T}$ac_res" >&6; }
11039 if test `eval echo '${'$as_ac_var'}'` = yes; then
11040 cat >>confdefs.h <<_ACEOF
11041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11049 for ac_func in memcpy bcopy
11051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11055 echo $ECHO_N "(cached) $ECHO_C" >&6
11057 cat >conftest.$ac_ext <<_ACEOF
11060 cat confdefs.h >>conftest.$ac_ext
11061 cat >>conftest.$ac_ext <<_ACEOF
11062 /* end confdefs.h. */
11063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11065 #define $ac_func innocuous_$ac_func
11067 /* System header to define __stub macros and hopefully few prototypes,
11068 which can conflict with char $ac_func (); below.
11069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11070 <limits.h> exists even on freestanding compilers. */
11073 # include <limits.h>
11075 # include <assert.h>
11080 /* Override any GCC internal prototype to avoid an error.
11081 Use char because int might match the return type of a GCC
11082 builtin and then its argument prototype would still apply. */
11087 /* The GNU C library defines this for functions which it implements
11088 to always fail with ENOSYS. Some functions are actually named
11089 something starting with __ and the normal name is an alias. */
11090 #if defined __stub_$ac_func || defined __stub___$ac_func
11097 return $ac_func ();
11102 rm -f conftest.$ac_objext conftest$ac_exeext
11103 if { (ac_try="$ac_link"
11104 case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109 (eval "$ac_link") 2>conftest.er1
11111 grep -v '^ *+' conftest.er1 >conftest.err
11113 cat conftest.err >&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); } && {
11116 test -z "$ac_c_werror_flag" ||
11117 test ! -s conftest.err
11118 } && test -s conftest$ac_exeext &&
11119 $as_test_x conftest$ac_exeext; then
11120 eval "$as_ac_var=yes"
11122 echo "$as_me: failed program was:" >&5
11123 sed 's/^/| /' conftest.$ac_ext >&5
11125 eval "$as_ac_var=no"
11128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11129 conftest$ac_exeext conftest.$ac_ext
11131 ac_res=`eval echo '${'$as_ac_var'}'`
11132 { echo "$as_me:$LINENO: result: $ac_res" >&5
11133 echo "${ECHO_T}$ac_res" >&6; }
11134 if test `eval echo '${'$as_ac_var'}'` = yes; then
11135 cat >>confdefs.h <<_ACEOF
11136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11144 for ac_func in memmove strcmp
11146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11147 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11149 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11152 cat >conftest.$ac_ext <<_ACEOF
11155 cat confdefs.h >>conftest.$ac_ext
11156 cat >>conftest.$ac_ext <<_ACEOF
11157 /* end confdefs.h. */
11158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11160 #define $ac_func innocuous_$ac_func
11162 /* System header to define __stub macros and hopefully few prototypes,
11163 which can conflict with char $ac_func (); below.
11164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11165 <limits.h> exists even on freestanding compilers. */
11168 # include <limits.h>
11170 # include <assert.h>
11175 /* Override any GCC internal prototype to avoid an error.
11176 Use char because int might match the return type of a GCC
11177 builtin and then its argument prototype would still apply. */
11182 /* The GNU C library defines this for functions which it implements
11183 to always fail with ENOSYS. Some functions are actually named
11184 something starting with __ and the normal name is an alias. */
11185 #if defined __stub_$ac_func || defined __stub___$ac_func
11192 return $ac_func ();
11197 rm -f conftest.$ac_objext conftest$ac_exeext
11198 if { (ac_try="$ac_link"
11199 case "(($ac_try" in
11200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201 *) ac_try_echo=$ac_try;;
11203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11204 (eval "$ac_link") 2>conftest.er1
11206 grep -v '^ *+' conftest.er1 >conftest.err
11208 cat conftest.err >&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } && {
11211 test -z "$ac_c_werror_flag" ||
11212 test ! -s conftest.err
11213 } && test -s conftest$ac_exeext &&
11214 $as_test_x conftest$ac_exeext; then
11215 eval "$as_ac_var=yes"
11217 echo "$as_me: failed program was:" >&5
11218 sed 's/^/| /' conftest.$ac_ext >&5
11220 eval "$as_ac_var=no"
11223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11224 conftest$ac_exeext conftest.$ac_ext
11226 ac_res=`eval echo '${'$as_ac_var'}'`
11227 { echo "$as_me:$LINENO: result: $ac_res" >&5
11228 echo "${ECHO_T}$ac_res" >&6; }
11229 if test `eval echo '${'$as_ac_var'}'` = yes; then
11230 cat >>confdefs.h <<_ACEOF
11231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11240 for ac_func in closedir opendir readdir
11242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
11248 cat >conftest.$ac_ext <<_ACEOF
11251 cat confdefs.h >>conftest.$ac_ext
11252 cat >>conftest.$ac_ext <<_ACEOF
11253 /* end confdefs.h. */
11254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11256 #define $ac_func innocuous_$ac_func
11258 /* System header to define __stub macros and hopefully few prototypes,
11259 which can conflict with char $ac_func (); below.
11260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11261 <limits.h> exists even on freestanding compilers. */
11264 # include <limits.h>
11266 # include <assert.h>
11271 /* Override any GCC internal prototype to avoid an error.
11272 Use char because int might match the return type of a GCC
11273 builtin and then its argument prototype would still apply. */
11278 /* The GNU C library defines this for functions which it implements
11279 to always fail with ENOSYS. Some functions are actually named
11280 something starting with __ and the normal name is an alias. */
11281 #if defined __stub_$ac_func || defined __stub___$ac_func
11288 return $ac_func ();
11293 rm -f conftest.$ac_objext conftest$ac_exeext
11294 if { (ac_try="$ac_link"
11295 case "(($ac_try" in
11296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297 *) ac_try_echo=$ac_try;;
11299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11300 (eval "$ac_link") 2>conftest.er1
11302 grep -v '^ *+' conftest.er1 >conftest.err
11304 cat conftest.err >&5
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); } && {
11307 test -z "$ac_c_werror_flag" ||
11308 test ! -s conftest.err
11309 } && test -s conftest$ac_exeext &&
11310 $as_test_x conftest$ac_exeext; then
11311 eval "$as_ac_var=yes"
11313 echo "$as_me: failed program was:" >&5
11314 sed 's/^/| /' conftest.$ac_ext >&5
11316 eval "$as_ac_var=no"
11319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11320 conftest$ac_exeext conftest.$ac_ext
11322 ac_res=`eval echo '${'$as_ac_var'}'`
11323 { echo "$as_me:$LINENO: result: $ac_res" >&5
11324 echo "${ECHO_T}$ac_res" >&6; }
11325 if test `eval echo '${'$as_ac_var'}'` = yes; then
11326 cat >>confdefs.h <<_ACEOF
11327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11334 # Check whether --enable-shared was given.
11335 if test "${enable_shared+set}" = set; then
11336 enableval=$enable_shared; p=${PACKAGE-default}
11338 yes) enable_shared=yes ;;
11339 no) enable_shared=no ;;
11342 # Look at the argument we got. We use all the common list separators.
11343 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11344 for pkg in $enableval; do
11346 if test "X$pkg" = "X$p"; then
11358 # Check whether --enable-static was given.
11359 if test "${enable_static+set}" = set; then
11360 enableval=$enable_static; p=${PACKAGE-default}
11362 yes) enable_static=yes ;;
11363 no) enable_static=no ;;
11366 # Look at the argument we got. We use all the common list separators.
11367 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11368 for pkg in $enableval; do
11370 if test "X$pkg" = "X$p"; then
11382 # Check whether --enable-fast-install was given.
11383 if test "${enable_fast_install+set}" = set; then
11384 enableval=$enable_fast_install; p=${PACKAGE-default}
11386 yes) enable_fast_install=yes ;;
11387 no) enable_fast_install=no ;;
11389 enable_fast_install=no
11390 # Look at the argument we got. We use all the common list separators.
11391 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11392 for pkg in $enableval; do
11394 if test "X$pkg" = "X$p"; then
11395 enable_fast_install=yes
11402 enable_fast_install=yes
11406 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11407 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
11408 if test "${lt_cv_path_SED+set}" = set; then
11409 echo $ECHO_N "(cached) $ECHO_C" >&6
11411 # Loop through the user's path and test for sed and gsed.
11412 # Then use that list of sed's as ones to test for truncation.
11413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11414 for as_dir in $PATH
11417 test -z "$as_dir" && as_dir=.
11418 for lt_ac_prog in sed gsed; do
11419 for ac_exec_ext in '' $ac_executable_extensions; do
11420 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11421 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11428 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
11429 # along with /bin/sed that truncates output.
11430 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11431 test ! -f $lt_ac_sed && continue
11432 cat /dev/null > conftest.in
11434 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11435 # Check for GNU sed and select it if it is found.
11436 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11437 lt_cv_path_SED=$lt_ac_sed
11441 cat conftest.in conftest.in >conftest.tmp
11442 mv conftest.tmp conftest.in
11443 cp conftest.in conftest.nl
11445 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11446 cmp -s conftest.out conftest.nl || break
11447 # 10000 chars as input seems more than enough
11448 test $lt_ac_count -gt 10 && break
11449 lt_ac_count=`expr $lt_ac_count + 1`
11450 if test $lt_ac_count -gt $lt_ac_max; then
11451 lt_ac_max=$lt_ac_count
11452 lt_cv_path_SED=$lt_ac_sed
11459 SED=$lt_cv_path_SED
11460 { echo "$as_me:$LINENO: result: $SED" >&5
11461 echo "${ECHO_T}$SED" >&6; }
11464 # Check whether --with-gnu-ld was given.
11465 if test "${with_gnu_ld+set}" = set; then
11466 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11472 if test "$GCC" = yes; then
11473 # Check if gcc -print-prog-name=ld gives a path.
11474 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11475 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11478 # gcc leaves a trailing carriage return which upsets mingw
11479 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11481 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11484 # Accept absolute paths.
11486 re_direlt='/[^/][^/]*/\.\./'
11487 # Canonicalize the pathname of ld
11488 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11489 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11490 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11492 test -z "$LD" && LD="$ac_prog"
11495 # If it fails, then pretend we aren't using GCC.
11499 # If it is relative, then search for the first ld in PATH.
11500 with_gnu_ld=unknown
11503 elif test "$with_gnu_ld" = yes; then
11504 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11505 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11507 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11508 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11510 if test "${lt_cv_path_LD+set}" = set; then
11511 echo $ECHO_N "(cached) $ECHO_C" >&6
11513 if test -z "$LD"; then
11514 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11515 for ac_dir in $PATH; do
11517 test -z "$ac_dir" && ac_dir=.
11518 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11519 lt_cv_path_LD="$ac_dir/$ac_prog"
11520 # Check to see if the program is GNU ld. I'd rather use --version,
11521 # but apparently some variants of GNU ld only accept -v.
11522 # Break only if it was the GNU/non-GNU ld that we prefer.
11523 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11524 *GNU* | *'with BFD'*)
11525 test "$with_gnu_ld" != no && break
11528 test "$with_gnu_ld" != yes && break
11535 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11539 LD="$lt_cv_path_LD"
11540 if test -n "$LD"; then
11541 { echo "$as_me:$LINENO: result: $LD" >&5
11542 echo "${ECHO_T}$LD" >&6; }
11544 { echo "$as_me:$LINENO: result: no" >&5
11545 echo "${ECHO_T}no" >&6; }
11547 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11548 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11549 { (exit 1); exit 1; }; }
11550 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11551 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11552 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11555 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11556 case `$LD -v 2>&1 </dev/null` in
11557 *GNU* | *'with BFD'*)
11558 lt_cv_prog_gnu_ld=yes
11561 lt_cv_prog_gnu_ld=no
11565 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11566 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11567 with_gnu_ld=$lt_cv_prog_gnu_ld
11570 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11571 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
11572 if test "${lt_cv_ld_reload_flag+set}" = set; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 lt_cv_ld_reload_flag='-r'
11577 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11578 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
11579 reload_flag=$lt_cv_ld_reload_flag
11580 case $reload_flag in
11582 *) reload_flag=" $reload_flag" ;;
11584 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11587 if test "$GCC" = yes; then
11588 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
11590 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11595 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
11596 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
11597 if test "${lt_cv_deplibs_check_method+set}" = set; then
11598 echo $ECHO_N "(cached) $ECHO_C" >&6
11600 lt_cv_file_magic_cmd='$MAGIC_CMD'
11601 lt_cv_file_magic_test_file=
11602 lt_cv_deplibs_check_method='unknown'
11603 # Need to set the preceding variable on all platforms that support
11604 # interlibrary dependencies.
11605 # 'none' -- dependencies not supported.
11606 # `unknown' -- same as none, but documents that we really don't know.
11607 # 'pass_all' -- all dependencies passed with no checks.
11608 # 'test_compile' -- check by making test program.
11609 # 'file_magic [[regex]]' -- check by looking for files in library path
11610 # which responds to the $file_magic_cmd with a given extended regex.
11611 # If you have `file' or equivalent on your system and you're not sure
11612 # whether `pass_all' will *always* work, you probably want this one.
11616 lt_cv_deplibs_check_method=pass_all
11620 lt_cv_deplibs_check_method=pass_all
11624 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11625 lt_cv_file_magic_cmd='/usr/bin/file -L'
11626 lt_cv_file_magic_test_file=/shlib/libc.so
11630 # func_win32_libid is a shell function defined in ltmain.sh
11631 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11632 lt_cv_file_magic_cmd='func_win32_libid'
11636 # Base MSYS/MinGW do not provide the 'file' command needed by
11637 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
11638 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11639 lt_cv_file_magic_cmd='$OBJDUMP -f'
11642 darwin* | rhapsody*)
11643 lt_cv_deplibs_check_method=pass_all
11646 freebsd* | kfreebsd*-gnu | dragonfly*)
11647 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11650 # Not sure whether the presence of OpenBSD here was a mistake.
11651 # Let's accept both of them until this is cleared up.
11652 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11653 lt_cv_file_magic_cmd=/usr/bin/file
11654 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11658 lt_cv_deplibs_check_method=pass_all
11663 lt_cv_deplibs_check_method=pass_all
11666 hpux10.20* | hpux11*)
11667 lt_cv_file_magic_cmd=/usr/bin/file
11670 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11671 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11674 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]'
11675 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11678 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11679 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11685 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11686 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11689 irix5* | irix6* | nonstopux*)
11691 *-32|*"-32 ") libmagic=32-bit;;
11692 *-n32|*"-n32 ") libmagic=N32;;
11693 *-64|*"-64 ") libmagic=64-bit;;
11694 *) libmagic=never-match;;
11696 lt_cv_deplibs_check_method=pass_all
11699 # This must be Linux ELF.
11701 lt_cv_deplibs_check_method=pass_all
11705 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11706 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11708 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11713 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11714 lt_cv_file_magic_cmd=/usr/bin/file
11715 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11719 lt_cv_deplibs_check_method=unknown
11723 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11724 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11726 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11730 osf3* | osf4* | osf5*)
11731 lt_cv_deplibs_check_method=pass_all
11735 lt_cv_deplibs_check_method=pass_all
11739 case $host_vendor in
11741 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]'
11742 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11745 lt_cv_deplibs_check_method=pass_all
11748 lt_cv_file_magic_cmd='/bin/file'
11749 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11752 lt_cv_file_magic_cmd='/bin/file'
11753 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11754 lt_cv_file_magic_test_file=/lib/libc.so
11757 lt_cv_deplibs_check_method=pass_all
11760 lt_cv_deplibs_check_method=pass_all
11765 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11766 lt_cv_deplibs_check_method=pass_all
11771 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
11772 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
11773 file_magic_cmd=$lt_cv_file_magic_cmd
11774 deplibs_check_method=$lt_cv_deplibs_check_method
11775 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11779 # If no C compiler was specified, use CC.
11782 # If no C compiler flags were specified, use CFLAGS.
11783 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11785 # Allow CC to be a program name with arguments.
11788 # Check whether --enable-libtool-lock was given.
11789 if test "${enable_libtool_lock+set}" = set; then
11790 enableval=$enable_libtool_lock;
11793 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11795 # Some flags need to be propagated to the compiler or linker for good
11799 # Find out which ABI we are using.
11800 echo 'int i;' > conftest.$ac_ext
11801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11802 (eval $ac_compile) 2>&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); }; then
11806 case `/usr/bin/file conftest.$ac_objext` in
11808 HPUX_IA64_MODE="32"
11811 HPUX_IA64_MODE="64"
11818 # Find out which ABI we are using.
11819 echo '#line 11819 "configure"' > conftest.$ac_ext
11820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11821 (eval $ac_compile) 2>&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; then
11825 if test "$lt_cv_prog_gnu_ld" = yes; then
11826 case `/usr/bin/file conftest.$ac_objext` in
11828 LD="${LD-ld} -melf32bsmip"
11831 LD="${LD-ld} -melf32bmipn32"
11834 LD="${LD-ld} -melf64bmip"
11838 case `/usr/bin/file conftest.$ac_objext` in
11854 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
11855 # Find out which ABI we are using.
11856 echo 'int i;' > conftest.$ac_ext
11857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11858 (eval $ac_compile) 2>&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; then
11862 case `/usr/bin/file conftest.o` in
11866 LD="${LD-ld} -m elf_i386"
11868 ppc64-*linux*|powerpc64-*linux*)
11869 LD="${LD-ld} -m elf32ppclinux"
11872 LD="${LD-ld} -m elf_s390"
11875 LD="${LD-ld} -m elf32_sparc"
11882 LD="${LD-ld} -m elf_x86_64"
11884 ppc*-*linux*|powerpc*-*linux*)
11885 LD="${LD-ld} -m elf64ppc"
11888 LD="${LD-ld} -m elf64_s390"
11891 LD="${LD-ld} -m elf64_sparc"
11901 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11902 SAVE_CFLAGS="$CFLAGS"
11903 CFLAGS="$CFLAGS -belf"
11904 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11905 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
11906 if test "${lt_cv_cc_needs_belf+set}" = set; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11910 ac_cpp='$CPP $CPPFLAGS'
11911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11915 cat >conftest.$ac_ext <<_ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h. */
11930 rm -f conftest.$ac_objext conftest$ac_exeext
11931 if { (ac_try="$ac_link"
11932 case "(($ac_try" in
11933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934 *) ac_try_echo=$ac_try;;
11936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11937 (eval "$ac_link") 2>conftest.er1
11939 grep -v '^ *+' conftest.er1 >conftest.err
11941 cat conftest.err >&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); } && {
11944 test -z "$ac_c_werror_flag" ||
11945 test ! -s conftest.err
11946 } && test -s conftest$ac_exeext &&
11947 $as_test_x conftest$ac_exeext; then
11948 lt_cv_cc_needs_belf=yes
11950 echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11953 lt_cv_cc_needs_belf=no
11956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11957 conftest$ac_exeext conftest.$ac_ext
11959 ac_cpp='$CPP $CPPFLAGS'
11960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11965 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
11966 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
11967 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11968 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11969 CFLAGS="$SAVE_CFLAGS"
11973 # Find out which ABI we are using.
11974 echo 'int i;' > conftest.$ac_ext
11975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11976 (eval $ac_compile) 2>&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; then
11980 case `/usr/bin/file conftest.o` in
11982 case $lt_cv_prog_gnu_ld in
11983 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11984 *) LD="${LD-ld} -64" ;;
11995 need_locks="$enable_libtool_lock"
12000 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12001 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12002 (test "X$CXX" != "Xg++"))) ; then
12004 ac_cpp='$CXXCPP $CPPFLAGS'
12005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12008 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12009 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12010 if test -z "$CXXCPP"; then
12011 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12012 echo $ECHO_N "(cached) $ECHO_C" >&6
12014 # Double quotes because CXXCPP needs to be expanded
12015 for CXXCPP in "$CXX -E" "/lib/cpp"
12017 ac_preproc_ok=false
12018 for ac_cxx_preproc_warn_flag in '' yes
12020 # Use a header file that comes with gcc, so configuring glibc
12021 # with a fresh cross-compiler works.
12022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12023 # <limits.h> exists even on freestanding compilers.
12024 # On the NeXT, cc -E runs the code through the compiler's parser,
12025 # not just through cpp. "Syntax error" is here to catch this case.
12026 cat >conftest.$ac_ext <<_ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12033 # include <limits.h>
12035 # include <assert.h>
12039 if { (ac_try="$ac_cpp conftest.$ac_ext"
12040 case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12047 grep -v '^ *+' conftest.er1 >conftest.err
12049 cat conftest.err >&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } >/dev/null && {
12052 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12053 test ! -s conftest.err
12057 echo "$as_me: failed program was:" >&5
12058 sed 's/^/| /' conftest.$ac_ext >&5
12060 # Broken: fails on valid input.
12064 rm -f conftest.err conftest.$ac_ext
12066 # OK, works on sane cases. Now check whether nonexistent headers
12067 # can be detected and how.
12068 cat >conftest.$ac_ext <<_ACEOF
12071 cat confdefs.h >>conftest.$ac_ext
12072 cat >>conftest.$ac_ext <<_ACEOF
12073 /* end confdefs.h. */
12074 #include <ac_nonexistent.h>
12076 if { (ac_try="$ac_cpp conftest.$ac_ext"
12077 case "(($ac_try" in
12078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079 *) ac_try_echo=$ac_try;;
12081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12084 grep -v '^ *+' conftest.er1 >conftest.err
12086 cat conftest.err >&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); } >/dev/null && {
12089 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12090 test ! -s conftest.err
12092 # Broken: success on invalid input.
12095 echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12098 # Passes both tests.
12103 rm -f conftest.err conftest.$ac_ext
12106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12107 rm -f conftest.err conftest.$ac_ext
12108 if $ac_preproc_ok; then
12113 ac_cv_prog_CXXCPP=$CXXCPP
12116 CXXCPP=$ac_cv_prog_CXXCPP
12118 ac_cv_prog_CXXCPP=$CXXCPP
12120 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12121 echo "${ECHO_T}$CXXCPP" >&6; }
12122 ac_preproc_ok=false
12123 for ac_cxx_preproc_warn_flag in '' yes
12125 # Use a header file that comes with gcc, so configuring glibc
12126 # with a fresh cross-compiler works.
12127 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12128 # <limits.h> exists even on freestanding compilers.
12129 # On the NeXT, cc -E runs the code through the compiler's parser,
12130 # not just through cpp. "Syntax error" is here to catch this case.
12131 cat >conftest.$ac_ext <<_ACEOF
12134 cat confdefs.h >>conftest.$ac_ext
12135 cat >>conftest.$ac_ext <<_ACEOF
12136 /* end confdefs.h. */
12138 # include <limits.h>
12140 # include <assert.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
12162 echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12165 # Broken: fails on valid input.
12169 rm -f conftest.err conftest.$ac_ext
12171 # OK, works on sane cases. Now check whether nonexistent headers
12172 # can be detected and how.
12173 cat >conftest.$ac_ext <<_ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h. */
12179 #include <ac_nonexistent.h>
12181 if { (ac_try="$ac_cpp conftest.$ac_ext"
12182 case "(($ac_try" in
12183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12189 grep -v '^ *+' conftest.er1 >conftest.err
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } >/dev/null && {
12194 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12195 test ! -s conftest.err
12197 # Broken: success on invalid input.
12200 echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.$ac_ext >&5
12203 # Passes both tests.
12208 rm -f conftest.err conftest.$ac_ext
12211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12212 rm -f conftest.err conftest.$ac_ext
12213 if $ac_preproc_ok; then
12216 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12217 See \`config.log' for more details." >&5
12218 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12219 See \`config.log' for more details." >&2;}
12220 { (exit 1); exit 1; }; }
12224 ac_cpp='$CXXCPP $CPPFLAGS'
12225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12233 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12234 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12235 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12236 if test -n "$ac_tool_prefix"; then
12237 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
12239 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12240 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12243 if test "${ac_cv_prog_F77+set}" = set; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
12246 if test -n "$F77"; then
12247 ac_cv_prog_F77="$F77" # Let the user override the test.
12249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12250 for as_dir in $PATH
12253 test -z "$as_dir" && as_dir=.
12254 for ac_exec_ext in '' $ac_executable_extensions; do
12255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12256 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12266 F77=$ac_cv_prog_F77
12267 if test -n "$F77"; then
12268 { echo "$as_me:$LINENO: result: $F77" >&5
12269 echo "${ECHO_T}$F77" >&6; }
12271 { echo "$as_me:$LINENO: result: no" >&5
12272 echo "${ECHO_T}no" >&6; }
12276 test -n "$F77" && break
12279 if test -z "$F77"; then
12281 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
12283 # Extract the first word of "$ac_prog", so it can be a program name with args.
12284 set dummy $ac_prog; ac_word=$2
12285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12287 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 if test -n "$ac_ct_F77"; then
12291 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12294 for as_dir in $PATH
12297 test -z "$as_dir" && as_dir=.
12298 for ac_exec_ext in '' $ac_executable_extensions; do
12299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12300 ac_cv_prog_ac_ct_F77="$ac_prog"
12301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12310 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12311 if test -n "$ac_ct_F77"; then
12312 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12313 echo "${ECHO_T}$ac_ct_F77" >&6; }
12315 { echo "$as_me:$LINENO: result: no" >&5
12316 echo "${ECHO_T}no" >&6; }
12320 test -n "$ac_ct_F77" && break
12323 if test "x$ac_ct_F77" = x; then
12326 case $cross_compiling:$ac_tool_warned in
12328 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12329 whose name does not start with the host triplet. If you think this
12330 configuration is useful to you, please write to autoconf@gnu.org." >&5
12331 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12332 whose name does not start with the host triplet. If you think this
12333 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12334 ac_tool_warned=yes ;;
12341 # Provide some information about the compiler.
12342 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
12343 ac_compiler=`set X $ac_compile; echo $2`
12344 { (ac_try="$ac_compiler --version >&5"
12345 case "(($ac_try" in
12346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347 *) ac_try_echo=$ac_try;;
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350 (eval "$ac_compiler --version >&5") 2>&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }
12354 { (ac_try="$ac_compiler -v >&5"
12355 case "(($ac_try" in
12356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357 *) ac_try_echo=$ac_try;;
12359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360 (eval "$ac_compiler -v >&5") 2>&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }
12364 { (ac_try="$ac_compiler -V >&5"
12365 case "(($ac_try" in
12366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12367 *) ac_try_echo=$ac_try;;
12369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12370 (eval "$ac_compiler -V >&5") 2>&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }
12376 # If we don't use `.F' as extension, the preprocessor is not run on the
12377 # input file. (Note that this only needs to work for GNU compilers.)
12378 ac_save_ext=$ac_ext
12380 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12381 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
12382 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12385 cat >conftest.$ac_ext <<_ACEOF
12393 rm -f conftest.$ac_objext
12394 if { (ac_try="$ac_compile"
12395 case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12400 (eval "$ac_compile") 2>conftest.er1
12402 grep -v '^ *+' conftest.er1 >conftest.err
12404 cat conftest.err >&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); } && {
12407 test -z "$ac_f77_werror_flag" ||
12408 test ! -s conftest.err
12409 } && test -s conftest.$ac_objext; then
12410 ac_compiler_gnu=yes
12412 echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12419 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12422 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12423 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
12424 ac_ext=$ac_save_ext
12425 ac_test_FFLAGS=${FFLAGS+set}
12426 ac_save_FFLAGS=$FFLAGS
12428 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12429 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
12430 if test "${ac_cv_prog_f77_g+set}" = set; then
12431 echo $ECHO_N "(cached) $ECHO_C" >&6
12434 cat >conftest.$ac_ext <<_ACEOF
12439 rm -f conftest.$ac_objext
12440 if { (ac_try="$ac_compile"
12441 case "(($ac_try" in
12442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12443 *) ac_try_echo=$ac_try;;
12445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12446 (eval "$ac_compile") 2>conftest.er1
12448 grep -v '^ *+' conftest.er1 >conftest.err
12450 cat conftest.err >&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); } && {
12453 test -z "$ac_f77_werror_flag" ||
12454 test ! -s conftest.err
12455 } && test -s conftest.$ac_objext; then
12456 ac_cv_prog_f77_g=yes
12458 echo "$as_me: failed program was:" >&5
12459 sed 's/^/| /' conftest.$ac_ext >&5
12461 ac_cv_prog_f77_g=no
12464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12467 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12468 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
12469 if test "$ac_test_FFLAGS" = set; then
12470 FFLAGS=$ac_save_FFLAGS
12471 elif test $ac_cv_prog_f77_g = yes; then
12472 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12478 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12485 G77=`test $ac_compiler_gnu = yes && echo yes`
12487 ac_cpp='$CPP $CPPFLAGS'
12488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12494 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12496 # find the maximum length of command line arguments
12497 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12498 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
12499 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12500 echo $ECHO_N "(cached) $ECHO_C" >&6
12507 # On DJGPP, this test can blow up pretty badly due to problems in libc
12508 # (any single argument exceeding 2000 bytes causes a buffer overrun
12509 # during glob expansion). Even if it were fixed, the result of this
12510 # check would be larger than it should be.
12511 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12515 # Under GNU Hurd, this test is not required because there is
12516 # no limit to the length of command line arguments.
12517 # Libtool will interpret -1 as no limit whatsoever
12518 lt_cv_sys_max_cmd_len=-1;
12522 # On Win9x/ME, this test blows up -- it succeeds, but takes
12523 # about 5 minutes as the teststring grows exponentially.
12524 # Worse, since 9x/ME are not pre-emptively multitasking,
12525 # you end up with a "frozen" computer, even though with patience
12526 # the test eventually succeeds (with a max line length of 256k).
12527 # Instead, let's just punt: use the minimum linelength reported by
12528 # all of the supported platforms: 8192 (on NT/2K/XP).
12529 lt_cv_sys_max_cmd_len=8192;
12533 # On AmigaOS with pdksh, this test takes hours, literally.
12534 # So we just punt and use a minimum line length of 8192.
12535 lt_cv_sys_max_cmd_len=8192;
12538 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12539 # This has been around since 386BSD, at least. Likely further.
12540 if test -x /sbin/sysctl; then
12541 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12542 elif test -x /usr/sbin/sysctl; then
12543 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12545 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12547 # And add a safety zone
12548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12553 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12554 lt_cv_sys_max_cmd_len=196608
12558 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12559 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12560 # nice to cause kernel panics so lets avoid the loop below.
12561 # First set a reasonable default.
12562 lt_cv_sys_max_cmd_len=16384
12564 if test -x /sbin/sysconfig; then
12565 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12566 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12571 lt_cv_sys_max_cmd_len=102400
12573 sysv5* | sco5v6* | sysv4.2uw2*)
12574 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12575 if test -n "$kargmax"; then
12576 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12578 lt_cv_sys_max_cmd_len=32768
12582 # If test is not a shell built-in, we'll probably end up computing a
12583 # maximum length that is only half of the actual maximum length, but
12585 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12586 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12587 = "XX$teststring") >/dev/null 2>&1 &&
12588 new_result=`expr "X$teststring" : ".*" 2>&1` &&
12589 lt_cv_sys_max_cmd_len=$new_result &&
12590 test $i != 17 # 1/2 MB should be enough
12593 teststring=$teststring$teststring
12596 # Add a significant safety factor because C++ compilers can tack on massive
12597 # amounts of additional arguments before passing them to the linker.
12598 # It appears as though 1/2 is a usable value.
12599 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12605 if test -n $lt_cv_sys_max_cmd_len ; then
12606 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12607 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
12609 { echo "$as_me:$LINENO: result: none" >&5
12610 echo "${ECHO_T}none" >&6; }
12616 # Check for command to grab the raw symbol name followed by C symbol from nm.
12617 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12618 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
12619 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12623 # These are sane defaults that work on at least a few old systems.
12624 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12626 # Character class describing NM global symbol codes.
12627 symcode='[BCDEGRST]'
12629 # Regexp to match symbols that can be accessed directly from C.
12630 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12632 # Transform an extracted symbol line into a proper C declaration
12633 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12635 # Transform an extracted symbol line into symbol name and symbol address
12636 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'"
12638 # Define system-specific variables.
12643 cygwin* | mingw* | pw32*)
12644 symcode='[ABCDGISTW]'
12646 hpux*) # Its linker distinguishes data from code symbols
12647 if test "$host_cpu" = ia64; then
12648 symcode='[ABCDEGRST]'
12650 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12651 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'"
12654 if test "$host_cpu" = ia64; then
12655 symcode='[ABCDGIRSTW]'
12656 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12657 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'"
12660 irix* | nonstopux*)
12661 symcode='[BCDEGRST]'
12664 symcode='[BCDEGQRST]'
12675 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12683 # Handle CRLF in mingw tool chain
12687 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12691 # If we're using GNU nm, then use its standard symbol codes.
12692 case `$NM -V 2>&1` in
12693 *GNU* | *'with BFD'*)
12694 symcode='[ABCDGIRSTW]' ;;
12697 # Try without a prefix undercore, then with it.
12698 for ac_symprfx in "" "_"; do
12700 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12701 symxfrm="\\1 $ac_symprfx\\2 \\2"
12703 # Write the raw and C identifiers.
12704 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12706 # Check to see that the pipe works correctly.
12710 cat > conftest.$ac_ext <<EOF
12715 void nm_test_func(){}
12719 int main(){nm_test_var='a';nm_test_func();return(0);}
12722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12723 (eval $ac_compile) 2>&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; then
12727 # Now try to grab the symbols.
12729 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12730 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); } && test -s "$nlist"; then
12734 # Try sorting and uniquifying the output.
12735 if sort "$nlist" | uniq > "$nlist"T; then
12736 mv -f "$nlist"T "$nlist"
12741 # Make sure that we snagged all the symbols we need.
12742 if grep ' nm_test_var$' "$nlist" >/dev/null; then
12743 if grep ' nm_test_func$' "$nlist" >/dev/null; then
12744 cat <<EOF > conftest.$ac_ext
12750 # Now generate the symbol file.
12751 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12753 cat <<EOF >> conftest.$ac_ext
12754 #if defined (__STDC__) && __STDC__
12755 # define lt_ptr_t void *
12757 # define lt_ptr_t char *
12761 /* The mapping between symbol names and symbols. */
12766 lt_preloaded_symbols[] =
12769 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12770 cat <<\EOF >> conftest.$ac_ext
12778 # Now try linking the two files.
12779 mv conftest.$ac_objext conftstm.$ac_objext
12780 lt_save_LIBS="$LIBS"
12781 lt_save_CFLAGS="$CFLAGS"
12782 LIBS="conftstm.$ac_objext"
12783 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12785 (eval $ac_link) 2>&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } && test -s conftest${ac_exeext}; then
12791 LIBS="$lt_save_LIBS"
12792 CFLAGS="$lt_save_CFLAGS"
12794 echo "cannot find nm_test_func in $nlist" >&5
12797 echo "cannot find nm_test_var in $nlist" >&5
12800 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12803 echo "$progname: failed program was:" >&5
12804 cat conftest.$ac_ext >&5
12806 rm -f conftest* conftst*
12808 # Do not use the global_symbol_pipe unless it works.
12809 if test "$pipe_works" = yes; then
12812 lt_cv_sys_global_symbol_pipe=
12818 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12819 lt_cv_sys_global_symbol_to_cdecl=
12821 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12822 { echo "$as_me:$LINENO: result: failed" >&5
12823 echo "${ECHO_T}failed" >&6; }
12825 { echo "$as_me:$LINENO: result: ok" >&5
12826 echo "${ECHO_T}ok" >&6; }
12829 { echo "$as_me:$LINENO: checking for objdir" >&5
12830 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
12831 if test "${lt_cv_objdir+set}" = set; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12834 rm -f .libs 2>/dev/null
12835 mkdir .libs 2>/dev/null
12836 if test -d .libs; then
12839 # MS-DOS does not allow filenames that begin with a dot.
12842 rmdir .libs 2>/dev/null
12844 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12845 echo "${ECHO_T}$lt_cv_objdir" >&6; }
12846 objdir=$lt_cv_objdir
12854 # AIX sometimes has problems with the GCC collect2 program. For some
12855 # reason, if we set the COLLECT_NAMES environment variable, the problems
12856 # vanish in a puff of smoke.
12857 if test "X${COLLECT_NAMES+set}" != Xset; then
12859 export COLLECT_NAMES
12864 # Sed substitution that helps us do robust quoting. It backslashifies
12865 # metacharacters that are still active within double-quoted strings.
12866 Xsed='sed -e 1s/^X//'
12867 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
12869 # Same as above, but do not quote variable references.
12870 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
12872 # Sed substitution to delay expansion of an escaped shell variable in a
12873 # double_quote_subst'ed string.
12874 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12876 # Sed substitution to avoid accidental globbing in evaled expressions
12877 no_glob_subst='s/\*/\\\*/g'
12882 # Global variables:
12883 default_ofile=mklib
12884 can_build_shared=yes
12886 # All known linkers require a `.a' archive for static linking (except MSVC,
12887 # which needs '.lib').
12889 ltmain="$ac_aux_dir/ltmain.sh"
12890 ofile="$default_ofile"
12891 with_gnu_ld="$lt_cv_prog_gnu_ld"
12893 if test -n "$ac_tool_prefix"; then
12894 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12895 set dummy ${ac_tool_prefix}ar; ac_word=$2
12896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12898 if test "${ac_cv_prog_AR+set}" = set; then
12899 echo $ECHO_N "(cached) $ECHO_C" >&6
12901 if test -n "$AR"; then
12902 ac_cv_prog_AR="$AR" # Let the user override the test.
12904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12905 for as_dir in $PATH
12908 test -z "$as_dir" && as_dir=.
12909 for ac_exec_ext in '' $ac_executable_extensions; do
12910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12911 ac_cv_prog_AR="${ac_tool_prefix}ar"
12912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12922 if test -n "$AR"; then
12923 { echo "$as_me:$LINENO: result: $AR" >&5
12924 echo "${ECHO_T}$AR" >&6; }
12926 { echo "$as_me:$LINENO: result: no" >&5
12927 echo "${ECHO_T}no" >&6; }
12932 if test -z "$ac_cv_prog_AR"; then
12934 # Extract the first word of "ar", so it can be a program name with args.
12935 set dummy ar; ac_word=$2
12936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12938 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12939 echo $ECHO_N "(cached) $ECHO_C" >&6
12941 if test -n "$ac_ct_AR"; then
12942 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12945 for as_dir in $PATH
12948 test -z "$as_dir" && as_dir=.
12949 for ac_exec_ext in '' $ac_executable_extensions; do
12950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12951 ac_cv_prog_ac_ct_AR="ar"
12952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12961 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12962 if test -n "$ac_ct_AR"; then
12963 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12964 echo "${ECHO_T}$ac_ct_AR" >&6; }
12966 { echo "$as_me:$LINENO: result: no" >&5
12967 echo "${ECHO_T}no" >&6; }
12970 if test "x$ac_ct_AR" = x; then
12973 case $cross_compiling:$ac_tool_warned in
12975 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12976 whose name does not start with the host triplet. If you think this
12977 configuration is useful to you, please write to autoconf@gnu.org." >&5
12978 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12979 whose name does not start with the host triplet. If you think this
12980 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12981 ac_tool_warned=yes ;;
12986 AR="$ac_cv_prog_AR"
12989 if test -n "$ac_tool_prefix"; then
12990 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12991 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12994 if test "${ac_cv_prog_RANLIB+set}" = set; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12997 if test -n "$RANLIB"; then
12998 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13001 for as_dir in $PATH
13004 test -z "$as_dir" && as_dir=.
13005 for ac_exec_ext in '' $ac_executable_extensions; do
13006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13007 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13017 RANLIB=$ac_cv_prog_RANLIB
13018 if test -n "$RANLIB"; then
13019 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13020 echo "${ECHO_T}$RANLIB" >&6; }
13022 { echo "$as_me:$LINENO: result: no" >&5
13023 echo "${ECHO_T}no" >&6; }
13028 if test -z "$ac_cv_prog_RANLIB"; then
13029 ac_ct_RANLIB=$RANLIB
13030 # Extract the first word of "ranlib", so it can be a program name with args.
13031 set dummy ranlib; ac_word=$2
13032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13034 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13035 echo $ECHO_N "(cached) $ECHO_C" >&6
13037 if test -n "$ac_ct_RANLIB"; then
13038 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13041 for as_dir in $PATH
13044 test -z "$as_dir" && as_dir=.
13045 for ac_exec_ext in '' $ac_executable_extensions; do
13046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13047 ac_cv_prog_ac_ct_RANLIB="ranlib"
13048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13057 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13058 if test -n "$ac_ct_RANLIB"; then
13059 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13060 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13062 { echo "$as_me:$LINENO: result: no" >&5
13063 echo "${ECHO_T}no" >&6; }
13066 if test "x$ac_ct_RANLIB" = x; then
13069 case $cross_compiling:$ac_tool_warned in
13071 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13072 whose name does not start with the host triplet. If you think this
13073 configuration is useful to you, please write to autoconf@gnu.org." >&5
13074 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13075 whose name does not start with the host triplet. If you think this
13076 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13077 ac_tool_warned=yes ;;
13079 RANLIB=$ac_ct_RANLIB
13082 RANLIB="$ac_cv_prog_RANLIB"
13085 if test -n "$ac_tool_prefix"; then
13086 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13087 set dummy ${ac_tool_prefix}strip; ac_word=$2
13088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13090 if test "${ac_cv_prog_STRIP+set}" = set; then
13091 echo $ECHO_N "(cached) $ECHO_C" >&6
13093 if test -n "$STRIP"; then
13094 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13097 for as_dir in $PATH
13100 test -z "$as_dir" && as_dir=.
13101 for ac_exec_ext in '' $ac_executable_extensions; do
13102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13103 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13113 STRIP=$ac_cv_prog_STRIP
13114 if test -n "$STRIP"; then
13115 { echo "$as_me:$LINENO: result: $STRIP" >&5
13116 echo "${ECHO_T}$STRIP" >&6; }
13118 { echo "$as_me:$LINENO: result: no" >&5
13119 echo "${ECHO_T}no" >&6; }
13124 if test -z "$ac_cv_prog_STRIP"; then
13126 # Extract the first word of "strip", so it can be a program name with args.
13127 set dummy strip; ac_word=$2
13128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13130 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13131 echo $ECHO_N "(cached) $ECHO_C" >&6
13133 if test -n "$ac_ct_STRIP"; then
13134 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13137 for as_dir in $PATH
13140 test -z "$as_dir" && as_dir=.
13141 for ac_exec_ext in '' $ac_executable_extensions; do
13142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13143 ac_cv_prog_ac_ct_STRIP="strip"
13144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13153 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13154 if test -n "$ac_ct_STRIP"; then
13155 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13156 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13158 { echo "$as_me:$LINENO: result: no" >&5
13159 echo "${ECHO_T}no" >&6; }
13162 if test "x$ac_ct_STRIP" = x; then
13165 case $cross_compiling:$ac_tool_warned in
13167 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13168 whose name does not start with the host triplet. If you think this
13169 configuration is useful to you, please write to autoconf@gnu.org." >&5
13170 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13171 whose name does not start with the host triplet. If you think this
13172 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13173 ac_tool_warned=yes ;;
13178 STRIP="$ac_cv_prog_STRIP"
13183 old_CFLAGS="$CFLAGS"
13185 # Set sane defaults for various variables
13186 test -z "$AR" && AR=ar
13187 test -z "$AR_FLAGS" && AR_FLAGS=cru
13188 test -z "$AS" && AS=as
13189 test -z "$CC" && CC=cc
13190 test -z "$LTCC" && LTCC=$CC
13191 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13192 test -z "$DLLTOOL" && DLLTOOL=dlltool
13193 test -z "$LD" && LD=ld
13194 test -z "$LN_S" && LN_S="ln -s"
13195 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13196 test -z "$NM" && NM=nm
13197 test -z "$SED" && SED=sed
13198 test -z "$OBJDUMP" && OBJDUMP=objdump
13199 test -z "$RANLIB" && RANLIB=:
13200 test -z "$STRIP" && STRIP=:
13201 test -z "$ac_objext" && ac_objext=o
13203 # Determine commands to create old-style static archives.
13204 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13205 old_postinstall_cmds='chmod 644 $oldlib'
13206 old_postuninstall_cmds=
13208 if test -n "$RANLIB"; then
13211 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13214 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13217 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13220 for cc_temp in $compiler""; do
13222 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13223 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13228 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13231 # Only perform the check for file, if the check method requires it
13232 case $deplibs_check_method in
13234 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13235 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13236 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13237 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
13242 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13245 lt_save_MAGIC_CMD="$MAGIC_CMD"
13246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13247 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13248 for ac_dir in $ac_dummy; do
13250 test -z "$ac_dir" && ac_dir=.
13251 if test -f $ac_dir/${ac_tool_prefix}file; then
13252 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13253 if test -n "$file_magic_test_file"; then
13254 case $deplibs_check_method in
13256 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13257 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13258 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13259 $EGREP "$file_magic_regex" > /dev/null; then
13264 *** Warning: the command libtool uses to detect shared libraries,
13265 *** $file_magic_cmd, produces output that libtool cannot recognize.
13266 *** The result is that libtool may fail to recognize shared libraries
13267 *** as such. This will affect the creation of libtool libraries that
13268 *** depend on shared libraries, but programs linked with such libtool
13269 *** libraries will work regardless of this problem. Nevertheless, you
13270 *** may want to report the problem to your system manager and/or to
13271 *** bug-libtool@gnu.org
13281 MAGIC_CMD="$lt_save_MAGIC_CMD"
13286 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13287 if test -n "$MAGIC_CMD"; then
13288 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13289 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13291 { echo "$as_me:$LINENO: result: no" >&5
13292 echo "${ECHO_T}no" >&6; }
13295 if test -z "$lt_cv_path_MAGIC_CMD"; then
13296 if test -n "$ac_tool_prefix"; then
13297 { echo "$as_me:$LINENO: checking for file" >&5
13298 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
13299 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13300 echo $ECHO_N "(cached) $ECHO_C" >&6
13304 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13307 lt_save_MAGIC_CMD="$MAGIC_CMD"
13308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13309 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13310 for ac_dir in $ac_dummy; do
13312 test -z "$ac_dir" && ac_dir=.
13313 if test -f $ac_dir/file; then
13314 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13315 if test -n "$file_magic_test_file"; then
13316 case $deplibs_check_method in
13318 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13319 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13320 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13321 $EGREP "$file_magic_regex" > /dev/null; then
13326 *** Warning: the command libtool uses to detect shared libraries,
13327 *** $file_magic_cmd, produces output that libtool cannot recognize.
13328 *** The result is that libtool may fail to recognize shared libraries
13329 *** as such. This will affect the creation of libtool libraries that
13330 *** depend on shared libraries, but programs linked with such libtool
13331 *** libraries will work regardless of this problem. Nevertheless, you
13332 *** may want to report the problem to your system manager and/or to
13333 *** bug-libtool@gnu.org
13343 MAGIC_CMD="$lt_save_MAGIC_CMD"
13348 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13349 if test -n "$MAGIC_CMD"; then
13350 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13351 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13353 { echo "$as_me:$LINENO: result: no" >&5
13354 echo "${ECHO_T}no" >&6; }
13367 enable_win32_dll=no
13369 # Check whether --enable-libtool-lock was given.
13370 if test "${enable_libtool_lock+set}" = set; then
13371 enableval=$enable_libtool_lock;
13374 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13377 # Check whether --with-pic was given.
13378 if test "${with_pic+set}" = set; then
13379 withval=$with_pic; pic_mode="$withval"
13384 test -z "$pic_mode" && pic_mode=default
13386 # Use C for the default configuration in the libtool script
13390 ac_cpp='$CPP $CPPFLAGS'
13391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13396 # Source file extension for C test sources.
13399 # Object file extension for compiled C test sources.
13403 # Code to be used in simple compile tests
13404 lt_simple_compile_test_code="int some_variable = 0;\n"
13406 # Code to be used in simple link tests
13407 lt_simple_link_test_code='int main(){return(0);}\n'
13410 # If no C compiler was specified, use CC.
13413 # If no C compiler flags were specified, use CFLAGS.
13414 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13416 # Allow CC to be a program name with arguments.
13420 # save warnings/boilerplate of simple test code
13421 ac_outfile=conftest.$ac_objext
13422 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13423 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13424 _lt_compiler_boilerplate=`cat conftest.err`
13427 ac_outfile=conftest.$ac_objext
13428 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13429 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13430 _lt_linker_boilerplate=`cat conftest.err`
13435 lt_prog_compiler_no_builtin_flag=
13437 if test "$GCC" = yes; then
13438 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13441 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13442 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
13443 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13446 lt_cv_prog_compiler_rtti_exceptions=no
13447 ac_outfile=conftest.$ac_objext
13448 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13449 lt_compiler_flag="-fno-rtti -fno-exceptions"
13450 # Insert the option either (1) after the last *FLAGS variable, or
13451 # (2) before a word containing "conftest.", or (3) at the end.
13452 # Note that $ac_compile itself does not contain backslashes and begins
13453 # with a dollar sign (not a hyphen), so the echo should work correctly.
13454 # The option is referenced via a variable to avoid confusing sed.
13455 lt_compile=`echo "$ac_compile" | $SED \
13456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13458 -e 's:$: $lt_compiler_flag:'`
13459 (eval echo "\"\$as_me:13459: $lt_compile\"" >&5)
13460 (eval "$lt_compile" 2>conftest.err)
13462 cat conftest.err >&5
13463 echo "$as_me:13463: \$? = $ac_status" >&5
13464 if (exit $ac_status) && test -s "$ac_outfile"; then
13465 # The compiler can only warn and ignore the option if not recognized
13466 # So say no if there are warnings other than the usual output.
13467 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13469 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13470 lt_cv_prog_compiler_rtti_exceptions=yes
13476 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13477 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13479 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13480 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13487 lt_prog_compiler_wl=
13488 lt_prog_compiler_pic=
13489 lt_prog_compiler_static=
13491 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13492 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13494 if test "$GCC" = yes; then
13495 lt_prog_compiler_wl='-Wl,'
13496 lt_prog_compiler_static='-static'
13500 # All AIX code is PIC.
13501 if test "$host_cpu" = ia64; then
13502 # AIX 5 now supports IA64 processor
13503 lt_prog_compiler_static='-Bstatic'
13508 # FIXME: we need at least 68020 code to build shared libraries, but
13509 # adding the `-m68020' flag to GCC prevents building anything better,
13511 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13514 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13515 # PIC is the default for these OSes.
13518 mingw* | pw32* | os2*)
13519 # This hack is so that the source file can tell whether it is being
13520 # built for inclusion in a dll (and should export symbols for example).
13521 lt_prog_compiler_pic='-DDLL_EXPORT'
13524 darwin* | rhapsody*)
13525 # PIC is the default on this platform
13526 # Common symbols not allowed in MH_DYLIB files
13527 lt_prog_compiler_pic='-fno-common'
13531 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13532 # Instead, we relocate shared libraries at runtime.
13536 # Just because we use GCC doesn't mean we suddenly get shared libraries
13537 # on systems that don't support them.
13538 lt_prog_compiler_can_build_shared=no
13543 if test -d /usr/nec; then
13544 lt_prog_compiler_pic=-Kconform_pic
13549 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13550 # not for PA HP-UX.
13556 lt_prog_compiler_pic='-fPIC'
13562 lt_prog_compiler_pic='-fPIC'
13566 # PORTME Check for flag to pass linker flags through the system compiler.
13569 lt_prog_compiler_wl='-Wl,'
13570 if test "$host_cpu" = ia64; then
13571 # AIX 5 now supports IA64 processor
13572 lt_prog_compiler_static='-Bstatic'
13574 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13578 # PIC is the default on this platform
13579 # Common symbols not allowed in MH_DYLIB files
13580 case $cc_basename in
13582 lt_prog_compiler_pic='-qnocommon'
13583 lt_prog_compiler_wl='-Wl,'
13588 mingw* | pw32* | os2*)
13589 # This hack is so that the source file can tell whether it is being
13590 # built for inclusion in a dll (and should export symbols for example).
13591 lt_prog_compiler_pic='-DDLL_EXPORT'
13594 hpux9* | hpux10* | hpux11*)
13595 lt_prog_compiler_wl='-Wl,'
13596 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13597 # not for PA HP-UX.
13603 lt_prog_compiler_pic='+Z'
13606 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13607 lt_prog_compiler_static='${wl}-a ${wl}archive'
13610 irix5* | irix6* | nonstopux*)
13611 lt_prog_compiler_wl='-Wl,'
13612 # PIC (with -KPIC) is the default.
13613 lt_prog_compiler_static='-non_shared'
13617 lt_prog_compiler_pic='-KPIC'
13618 lt_prog_compiler_static='-Bstatic'
13622 case $cc_basename in
13624 lt_prog_compiler_wl='-Wl,'
13625 lt_prog_compiler_pic='-KPIC'
13626 lt_prog_compiler_static='-static'
13628 pgcc* | pgf77* | pgf90* | pgf95*)
13629 # Portland Group compilers (*not* the Pentium gcc compiler,
13630 # which looks to be a dead project)
13631 lt_prog_compiler_wl='-Wl,'
13632 lt_prog_compiler_pic='-fpic'
13633 lt_prog_compiler_static='-Bstatic'
13636 lt_prog_compiler_wl='-Wl,'
13637 # All Alpha code is PIC.
13638 lt_prog_compiler_static='-non_shared'
13643 osf3* | osf4* | osf5*)
13644 lt_prog_compiler_wl='-Wl,'
13645 # All OSF/1 code is PIC.
13646 lt_prog_compiler_static='-non_shared'
13650 lt_prog_compiler_pic='-KPIC'
13651 lt_prog_compiler_static='-Bstatic'
13652 case $cc_basename in
13653 f77* | f90* | f95*)
13654 lt_prog_compiler_wl='-Qoption ld ';;
13656 lt_prog_compiler_wl='-Wl,';;
13661 lt_prog_compiler_wl='-Qoption ld '
13662 lt_prog_compiler_pic='-PIC'
13663 lt_prog_compiler_static='-Bstatic'
13666 sysv4 | sysv4.2uw2* | sysv4.3*)
13667 lt_prog_compiler_wl='-Wl,'
13668 lt_prog_compiler_pic='-KPIC'
13669 lt_prog_compiler_static='-Bstatic'
13673 if test -d /usr/nec ;then
13674 lt_prog_compiler_pic='-Kconform_pic'
13675 lt_prog_compiler_static='-Bstatic'
13679 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13680 lt_prog_compiler_wl='-Wl,'
13681 lt_prog_compiler_pic='-KPIC'
13682 lt_prog_compiler_static='-Bstatic'
13686 lt_prog_compiler_wl='-Wl,'
13687 lt_prog_compiler_can_build_shared=no
13691 lt_prog_compiler_pic='-pic'
13692 lt_prog_compiler_static='-Bstatic'
13696 lt_prog_compiler_can_build_shared=no
13701 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13702 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
13705 # Check to make sure the PIC flag actually works.
13707 if test -n "$lt_prog_compiler_pic"; then
13709 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13710 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
13711 if test "${lt_prog_compiler_pic_works+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13714 lt_prog_compiler_pic_works=no
13715 ac_outfile=conftest.$ac_objext
13716 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13717 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13718 # Insert the option either (1) after the last *FLAGS variable, or
13719 # (2) before a word containing "conftest.", or (3) at the end.
13720 # Note that $ac_compile itself does not contain backslashes and begins
13721 # with a dollar sign (not a hyphen), so the echo should work correctly.
13722 # The option is referenced via a variable to avoid confusing sed.
13723 lt_compile=`echo "$ac_compile" | $SED \
13724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13726 -e 's:$: $lt_compiler_flag:'`
13727 (eval echo "\"\$as_me:13727: $lt_compile\"" >&5)
13728 (eval "$lt_compile" 2>conftest.err)
13730 cat conftest.err >&5
13731 echo "$as_me:13731: \$? = $ac_status" >&5
13732 if (exit $ac_status) && test -s "$ac_outfile"; then
13733 # The compiler can only warn and ignore the option if not recognized
13734 # So say no if there are warnings other than the usual output.
13735 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13737 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13738 lt_prog_compiler_pic_works=yes
13744 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13745 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
13747 if test x"$lt_prog_compiler_pic_works" = xyes; then
13748 case $lt_prog_compiler_pic in
13750 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13753 lt_prog_compiler_pic=
13754 lt_prog_compiler_can_build_shared=no
13759 # For platforms which do not support PIC, -DPIC is meaningless:
13761 lt_prog_compiler_pic=
13764 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13769 # Check to make sure the static flag actually works.
13771 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13772 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13773 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13774 if test "${lt_prog_compiler_static_works+set}" = set; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13777 lt_prog_compiler_static_works=no
13778 save_LDFLAGS="$LDFLAGS"
13779 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13780 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13781 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13782 # The linker can only warn and ignore the option if not recognized
13783 # So say no if there are warnings
13784 if test -s conftest.err; then
13785 # Append any errors to the config.log.
13786 cat conftest.err 1>&5
13787 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13789 if diff conftest.exp conftest.er2 >/dev/null; then
13790 lt_prog_compiler_static_works=yes
13793 lt_prog_compiler_static_works=yes
13797 LDFLAGS="$save_LDFLAGS"
13800 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
13801 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
13803 if test x"$lt_prog_compiler_static_works" = xyes; then
13806 lt_prog_compiler_static=
13810 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13811 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13812 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13813 echo $ECHO_N "(cached) $ECHO_C" >&6
13815 lt_cv_prog_compiler_c_o=no
13816 $rm -r conftest 2>/dev/null
13820 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13822 lt_compiler_flag="-o out/conftest2.$ac_objext"
13823 # Insert the option either (1) after the last *FLAGS variable, or
13824 # (2) before a word containing "conftest.", or (3) at the end.
13825 # Note that $ac_compile itself does not contain backslashes and begins
13826 # with a dollar sign (not a hyphen), so the echo should work correctly.
13827 lt_compile=`echo "$ac_compile" | $SED \
13828 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13830 -e 's:$: $lt_compiler_flag:'`
13831 (eval echo "\"\$as_me:13831: $lt_compile\"" >&5)
13832 (eval "$lt_compile" 2>out/conftest.err)
13834 cat out/conftest.err >&5
13835 echo "$as_me:13835: \$? = $ac_status" >&5
13836 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13838 # The compiler can only warn and ignore the option if not recognized
13839 # So say no if there are warnings
13840 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13841 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13842 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13843 lt_cv_prog_compiler_c_o=yes
13848 # SGI C++ compiler will create directory out/ii_files/ for
13849 # template instantiation
13850 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13851 $rm out/* && rmdir out
13857 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13858 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
13861 hard_links="nottested"
13862 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13863 # do not overwrite the value of need_locks provided by the user
13864 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13865 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13868 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13870 ln conftest.a conftest.b 2>&5 || hard_links=no
13871 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13872 { echo "$as_me:$LINENO: result: $hard_links" >&5
13873 echo "${ECHO_T}$hard_links" >&6; }
13874 if test "$hard_links" = no; then
13875 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13876 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13883 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13884 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13887 allow_undefined_flag=
13888 enable_shared_with_static_runtimes=no
13890 archive_expsym_cmds=
13891 old_archive_From_new_cmds=
13892 old_archive_from_expsyms_cmds=
13893 export_dynamic_flag_spec=
13894 whole_archive_flag_spec=
13895 thread_safe_flag_spec=
13896 hardcode_libdir_flag_spec=
13897 hardcode_libdir_flag_spec_ld=
13898 hardcode_libdir_separator=
13900 hardcode_minus_L=no
13901 hardcode_shlibpath_var=unsupported
13902 link_all_deplibs=unknown
13903 hardcode_automatic=no
13905 module_expsym_cmds=
13906 always_export_symbols=no
13907 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13908 # include_expsyms should be a list of space-separated symbols to be *always*
13909 # included in the symbol list
13911 # exclude_expsyms can be an extended regexp of symbols to exclude
13912 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13913 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13914 # as well as any symbol that contains `d'.
13915 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
13916 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13917 # platforms (ab)use it in PIC code, but their linkers get confused if
13918 # the symbol is explicitly referenced. Since portable code cannot
13919 # rely on this symbol name, it's probably fine to never include it in
13920 # preloaded symbol tables.
13921 extract_expsyms_cmds=
13922 # Just being paranoid about ensuring that cc_basename is set.
13923 for cc_temp in $compiler""; do
13925 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13926 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13931 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13934 cygwin* | mingw* | pw32*)
13935 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13936 # When not using gcc, we currently assume that we are using
13937 # Microsoft Visual C++.
13938 if test "$GCC" != yes; then
13943 # we just hope/assume this is gcc and not c89 (= MSVC++)
13952 if test "$with_gnu_ld" = yes; then
13953 # If archive_cmds runs LD, not CC, wlarc should be empty
13956 # Set some defaults for GNU ld with shared library support. These
13957 # are reset later if shared libraries are not supported. Putting them
13958 # here allows them to be overridden if necessary.
13959 runpath_var=LD_RUN_PATH
13960 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
13961 export_dynamic_flag_spec='${wl}--export-dynamic'
13962 # ancient GNU ld didn't support --whole-archive et. al.
13963 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13964 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13966 whole_archive_flag_spec=
13968 supports_anon_versioning=no
13969 case `$LD -v 2>/dev/null` in
13970 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13971 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13972 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13973 *\ 2.11.*) ;; # other 2.11 versions
13974 *) supports_anon_versioning=yes ;;
13977 # See if GNU ld supports shared libraries.
13979 aix3* | aix4* | aix5*)
13980 # On AIX/PPC, the GNU linker is very broken
13981 if test "$host_cpu" != ia64; then
13985 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13986 *** to be unable to reliably create shared libraries on AIX.
13987 *** Therefore, libtool is disabling shared libraries support. If you
13988 *** really care for shared libraries, you may want to modify your PATH
13989 *** so that a non-GNU linker is found, and then restart.
13996 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)'
13997 hardcode_libdir_flag_spec='-L$libdir'
13998 hardcode_minus_L=yes
14000 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14001 # that the semantics of dynamic libraries on AmigaOS, at least up
14002 # to version 4, is to share data among multiple programs linked
14003 # with the same dynamic library. Since this doesn't match the
14004 # behavior of shared libraries on other platforms, we can't use
14010 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14011 allow_undefined_flag=unsupported
14012 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14013 # support --undefined. This deserves some investigation. FIXME
14014 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14020 cygwin* | mingw* | pw32*)
14021 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14022 # as there is no search path for DLLs.
14023 hardcode_libdir_flag_spec='-L$libdir'
14024 allow_undefined_flag=unsupported
14025 always_export_symbols=no
14026 enable_shared_with_static_runtimes=yes
14027 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14029 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14031 # If the export-symbols file already is a .def file (1st line
14032 # is EXPORTS), use it as is; otherwise, prepend...
14033 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14034 cp $export_symbols $output_objdir/$soname.def;
14036 echo EXPORTS > $output_objdir/$soname.def;
14037 cat $export_symbols >> $output_objdir/$soname.def;
14039 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14047 hardcode_shlibpath_var=no
14048 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14049 export_dynamic_flag_spec='${wl}-E'
14050 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14051 # Instead, shared libraries are loaded at an image base (0x10000000 by
14052 # default) and relocated if they conflict, which is a slow very memory
14053 # consuming and fragmenting process. To avoid this, we pick a random,
14054 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14055 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14056 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14057 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'
14061 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14063 case $cc_basename,$host_cpu in
14064 pgcc*) # Portland Group C compiler
14065 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'
14066 tmp_addflag=' $pic_flag'
14068 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14069 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'
14070 tmp_addflag=' $pic_flag -Mnomain' ;;
14071 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14072 tmp_addflag=' -i_dynamic' ;;
14073 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14074 tmp_addflag=' -i_dynamic -nofor_main' ;;
14075 ifc* | ifort*) # Intel Fortran compiler
14076 tmp_addflag=' -nofor_main' ;;
14078 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14080 if test $supports_anon_versioning = yes; then
14081 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14082 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14083 $echo "local: *; };" >> $output_objdir/$libname.ver~
14084 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14092 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14093 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14097 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14102 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14106 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14107 *** create shared libraries on Solaris systems. Therefore, libtool
14108 *** is disabling shared libraries support. We urge you to upgrade GNU
14109 *** binutils to release 2.9.1 or newer. Another option is to modify
14110 *** your PATH or compiler configuration so that the native linker is
14111 *** used, and then restart.
14114 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14116 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14122 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14123 case `$LD -v 2>&1` in
14124 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14128 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14129 *** reliably create shared libraries on SCO systems. Therefore, libtool
14130 *** is disabling shared libraries support. We urge you to upgrade GNU
14131 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14132 *** your PATH or compiler configuration so that the native linker is
14133 *** used, and then restart.
14138 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14139 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14140 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14141 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14150 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14152 hardcode_direct=yes
14153 hardcode_shlibpath_var=no
14157 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14159 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14166 if test "$ld_shlibs" = no; then
14168 hardcode_libdir_flag_spec=
14169 export_dynamic_flag_spec=
14170 whole_archive_flag_spec=
14173 # PORTME fill in a description of your system's linker (not GNU ld)
14176 allow_undefined_flag=unsupported
14177 always_export_symbols=yes
14178 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'
14179 # Note: this linker hardcodes the directories in LIBPATH if there
14180 # are no directories specified by -L.
14181 hardcode_minus_L=yes
14182 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14183 # Neither direct hardcoding nor static linking is supported with a
14185 hardcode_direct=unsupported
14190 if test "$host_cpu" = ia64; then
14191 # On IA64, the linker does run time linking by default, so we don't
14192 # have to do anything special.
14193 aix_use_runtimelinking=no
14194 exp_sym_flag='-Bexport'
14197 # If we're using GNU nm, then we don't want the "-C" option.
14198 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14199 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14200 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'
14202 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'
14204 aix_use_runtimelinking=no
14206 # Test if we are trying to use run time linking or normal
14207 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14208 # need to do runtime linking.
14209 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14210 for ld_flag in $LDFLAGS; do
14211 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14212 aix_use_runtimelinking=yes
14219 exp_sym_flag='-bexport'
14220 no_entry_flag='-bnoentry'
14223 # When large executables or shared objects are built, AIX ld can
14224 # have problems creating the table of contents. If linking a library
14225 # or program results in "error TOC overflow" add -mminimal-toc to
14226 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14227 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14230 hardcode_direct=yes
14231 hardcode_libdir_separator=':'
14232 link_all_deplibs=yes
14234 if test "$GCC" = yes; then
14235 case $host_os in aix4.[012]|aix4.[012].*)
14236 # We only want to do this on AIX 4.2 and lower, the check
14237 # below for broken collect2 doesn't work under 4.3+
14238 collect2name=`${CC} -print-prog-name=collect2`
14239 if test -f "$collect2name" && \
14240 strings "$collect2name" | grep resolve_lib_name >/dev/null
14242 # We have reworked collect2
14243 hardcode_direct=yes
14245 # We have old collect2
14246 hardcode_direct=unsupported
14247 # It fails to find uninstalled libraries when the uninstalled
14248 # path is not listed in the libpath. Setting hardcode_minus_L
14249 # to unsupported forces relinking
14250 hardcode_minus_L=yes
14251 hardcode_libdir_flag_spec='-L$libdir'
14252 hardcode_libdir_separator=
14256 shared_flag='-shared'
14257 if test "$aix_use_runtimelinking" = yes; then
14258 shared_flag="$shared_flag "'${wl}-G'
14262 if test "$host_cpu" = ia64; then
14263 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14264 # chokes on -Wl,-G. The following line is correct:
14267 if test "$aix_use_runtimelinking" = yes; then
14268 shared_flag='${wl}-G'
14270 shared_flag='${wl}-bM:SRE'
14275 # It seems that -bexpall does not export symbols beginning with
14276 # underscore (_), so it is better to generate a list of symbols to export.
14277 always_export_symbols=yes
14278 if test "$aix_use_runtimelinking" = yes; then
14279 # Warning - without using the other runtime loading flags (-brtl),
14280 # -berok will link without error, but may produce a broken library.
14281 allow_undefined_flag='-berok'
14282 # Determine the default libpath from the value encoded in an empty executable.
14283 cat >conftest.$ac_ext <<_ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h. */
14298 rm -f conftest.$ac_objext conftest$ac_exeext
14299 if { (ac_try="$ac_link"
14300 case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305 (eval "$ac_link") 2>conftest.er1
14307 grep -v '^ *+' conftest.er1 >conftest.err
14309 cat conftest.err >&5
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); } && {
14312 test -z "$ac_c_werror_flag" ||
14313 test ! -s conftest.err
14314 } && test -s conftest$ac_exeext &&
14315 $as_test_x conftest$ac_exeext; then
14317 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14319 # Check for a 64-bit object if we didn't find anything.
14320 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; }
14323 echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.$ac_ext >&5
14329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14330 conftest$ac_exeext conftest.$ac_ext
14331 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14333 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14334 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"
14336 if test "$host_cpu" = ia64; then
14337 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14338 allow_undefined_flag="-z nodefs"
14339 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"
14341 # Determine the default libpath from the value encoded in an empty executable.
14342 cat >conftest.$ac_ext <<_ACEOF
14345 cat confdefs.h >>conftest.$ac_ext
14346 cat >>conftest.$ac_ext <<_ACEOF
14347 /* end confdefs.h. */
14357 rm -f conftest.$ac_objext conftest$ac_exeext
14358 if { (ac_try="$ac_link"
14359 case "(($ac_try" in
14360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361 *) ac_try_echo=$ac_try;;
14363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14364 (eval "$ac_link") 2>conftest.er1
14366 grep -v '^ *+' conftest.er1 >conftest.err
14368 cat conftest.err >&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } && {
14371 test -z "$ac_c_werror_flag" ||
14372 test ! -s conftest.err
14373 } && test -s conftest$ac_exeext &&
14374 $as_test_x conftest$ac_exeext; then
14376 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14378 # Check for a 64-bit object if we didn't find anything.
14379 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; }
14382 echo "$as_me: failed program was:" >&5
14383 sed 's/^/| /' conftest.$ac_ext >&5
14388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14389 conftest$ac_exeext conftest.$ac_ext
14390 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14392 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14393 # Warning - without using the other run time loading flags,
14394 # -berok will link without error, but may produce a broken library.
14395 no_undefined_flag=' ${wl}-bernotok'
14396 allow_undefined_flag=' ${wl}-berok'
14397 # Exported symbols can be pulled into shared objects from archives
14398 whole_archive_flag_spec='$convenience'
14399 archive_cmds_need_lc=yes
14400 # This is similar to how AIX traditionally builds its shared libraries.
14401 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'
14407 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)'
14408 hardcode_libdir_flag_spec='-L$libdir'
14409 hardcode_minus_L=yes
14410 # see comment about different semantics on the GNU ld section
14415 export_dynamic_flag_spec=-rdynamic
14418 cygwin* | mingw* | pw32*)
14419 # When not using gcc, we currently assume that we are using
14420 # Microsoft Visual C++.
14421 # hardcode_libdir_flag_spec is actually meaningless, as there is
14422 # no search path for DLLs.
14423 hardcode_libdir_flag_spec=' '
14424 allow_undefined_flag=unsupported
14425 # Tell ltmain to make .lib files, not .a files.
14427 # Tell ltmain to make .dll files, not .so files.
14429 # FIXME: Setting linknames here is a bad hack.
14430 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14431 # The linker will automatically build a .lib file if we build a DLL.
14432 old_archive_From_new_cmds='true'
14433 # FIXME: Should let the user specify the lib program.
14434 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14435 fix_srcfile_path='`cygpath -w "$srcfile"`'
14436 enable_shared_with_static_runtimes=yes
14439 darwin* | rhapsody*)
14441 rhapsody* | darwin1.[012])
14442 allow_undefined_flag='${wl}-undefined ${wl}suppress'
14445 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14446 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14448 case ${MACOSX_DEPLOYMENT_TARGET} in
14450 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14453 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
14459 archive_cmds_need_lc=no
14461 hardcode_automatic=yes
14462 hardcode_shlibpath_var=unsupported
14463 whole_archive_flag_spec=''
14464 link_all_deplibs=yes
14465 if test "$GCC" = yes ; then
14466 output_verbose_link_cmd='echo'
14467 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14468 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14469 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14470 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}'
14471 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}'
14473 case $cc_basename in
14475 output_verbose_link_cmd='echo'
14476 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14477 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14478 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14479 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}'
14480 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}'
14490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14491 hardcode_libdir_flag_spec='-L$libdir'
14492 hardcode_shlibpath_var=no
14499 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14500 # support. Future versions do this automatically, but an explicit c++rt0.o
14501 # does not break anything, and helps significantly (at the cost of a little
14504 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14505 hardcode_libdir_flag_spec='-R$libdir'
14506 hardcode_direct=yes
14507 hardcode_shlibpath_var=no
14510 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14512 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14513 hardcode_direct=yes
14514 hardcode_minus_L=yes
14515 hardcode_shlibpath_var=no
14518 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14519 freebsd* | kfreebsd*-gnu | dragonfly*)
14520 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14521 hardcode_libdir_flag_spec='-R$libdir'
14522 hardcode_direct=yes
14523 hardcode_shlibpath_var=no
14527 if test "$GCC" = yes; then
14528 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'
14530 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'
14532 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14533 hardcode_libdir_separator=:
14534 hardcode_direct=yes
14536 # hardcode_minus_L: Not really in the search PATH,
14537 # but as the default location of the library.
14538 hardcode_minus_L=yes
14539 export_dynamic_flag_spec='${wl}-E'
14543 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14544 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14546 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14548 if test "$with_gnu_ld" = no; then
14549 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14550 hardcode_libdir_separator=:
14552 hardcode_direct=yes
14553 export_dynamic_flag_spec='${wl}-E'
14555 # hardcode_minus_L: Not really in the search PATH,
14556 # but as the default location of the library.
14557 hardcode_minus_L=yes
14562 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14565 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14568 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14571 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14577 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14580 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14583 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14587 if test "$with_gnu_ld" = no; then
14588 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14589 hardcode_libdir_separator=:
14593 hardcode_libdir_flag_spec_ld='+b $libdir'
14595 hardcode_shlibpath_var=no
14598 hardcode_direct=yes
14599 export_dynamic_flag_spec='${wl}-E'
14601 # hardcode_minus_L: Not really in the search PATH,
14602 # but as the default location of the library.
14603 hardcode_minus_L=yes
14609 irix5* | irix6* | nonstopux*)
14610 if test "$GCC" = yes; then
14611 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'
14613 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'
14614 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14617 hardcode_libdir_separator=:
14618 link_all_deplibs=yes
14622 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14625 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14627 hardcode_libdir_flag_spec='-R$libdir'
14628 hardcode_direct=yes
14629 hardcode_shlibpath_var=no
14633 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14634 hardcode_direct=yes
14635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14636 hardcode_libdir_separator=:
14637 hardcode_shlibpath_var=no
14641 hardcode_direct=yes
14642 hardcode_shlibpath_var=no
14643 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14644 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14645 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14646 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14647 export_dynamic_flag_spec='${wl}-E'
14650 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14651 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14652 hardcode_libdir_flag_spec='-R$libdir'
14655 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14656 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14663 hardcode_libdir_flag_spec='-L$libdir'
14664 hardcode_minus_L=yes
14665 allow_undefined_flag=unsupported
14666 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'
14667 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14671 if test "$GCC" = yes; then
14672 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14673 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'
14675 allow_undefined_flag=' -expect_unresolved \*'
14676 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'
14678 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14679 hardcode_libdir_separator=:
14682 osf4* | osf5*) # as osf3* with the addition of -msym flag
14683 if test "$GCC" = yes; then
14684 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14685 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'
14686 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14688 allow_undefined_flag=' -expect_unresolved \*'
14689 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'
14690 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14691 $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'
14693 # Both c and cxx compiler support -rpath directly
14694 hardcode_libdir_flag_spec='-rpath $libdir'
14696 hardcode_libdir_separator=:
14700 no_undefined_flag=' -z text'
14701 if test "$GCC" = yes; then
14703 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14704 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14705 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14708 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14709 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14710 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14712 hardcode_libdir_flag_spec='-R$libdir'
14713 hardcode_shlibpath_var=no
14715 solaris2.[0-5] | solaris2.[0-5].*) ;;
14717 # The compiler driver will combine linker options so we
14718 # cannot just pass the convience library names through
14719 # without $wl, iff we do not link with $LD.
14720 # Luckily, gcc supports the same syntax we need for Sun Studio.
14721 # Supported since Solaris 2.6 (maybe 2.5.1?)
14724 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14726 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' ;;
14729 link_all_deplibs=yes
14733 if test "x$host_vendor" = xsequent; then
14734 # Use $CC to link under sequent, because it throws in some extra .o
14735 # files that make .init and .fini sections work.
14736 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14738 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14740 hardcode_libdir_flag_spec='-L$libdir'
14741 hardcode_direct=yes
14742 hardcode_minus_L=yes
14743 hardcode_shlibpath_var=no
14747 case $host_vendor in
14749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14750 hardcode_direct=yes # is this really true???
14753 ## LD is ld it makes a PLAMLIB
14754 ## CC just makes a GrossModule.
14755 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14756 reload_cmds='$CC -r -o $output$reload_objs'
14760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14761 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14764 runpath_var='LD_RUN_PATH'
14765 hardcode_shlibpath_var=no
14769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14770 hardcode_shlibpath_var=no
14771 export_dynamic_flag_spec='-Bexport'
14775 if test -d /usr/nec; then
14776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14777 hardcode_shlibpath_var=no
14778 runpath_var=LD_RUN_PATH
14779 hardcode_runpath_var=yes
14784 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14785 no_undefined_flag='${wl}-z,text'
14786 archive_cmds_need_lc=no
14787 hardcode_shlibpath_var=no
14788 runpath_var='LD_RUN_PATH'
14790 if test "$GCC" = yes; then
14791 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14792 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14794 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14795 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14799 sysv5* | sco3.2v5* | sco5v6*)
14800 # Note: We can NOT use -z defs as we might desire, because we do not
14801 # link with -lc, and that would cause any symbols used from libc to
14802 # always be unresolved, which means just about no library would
14803 # ever link correctly. If we're not using GNU ld we use -z text
14804 # though, which does catch some bad symbols but isn't as heavy-handed
14806 no_undefined_flag='${wl}-z,text'
14807 allow_undefined_flag='${wl}-z,nodefs'
14808 archive_cmds_need_lc=no
14809 hardcode_shlibpath_var=no
14810 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14811 hardcode_libdir_separator=':'
14812 link_all_deplibs=yes
14813 export_dynamic_flag_spec='${wl}-Bexport'
14814 runpath_var='LD_RUN_PATH'
14816 if test "$GCC" = yes; then
14817 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14818 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14820 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14821 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14827 hardcode_libdir_flag_spec='-L$libdir'
14828 hardcode_shlibpath_var=no
14837 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14838 echo "${ECHO_T}$ld_shlibs" >&6; }
14839 test "$ld_shlibs" = no && can_build_shared=no
14842 # Do we need to explicitly link libc?
14844 case "x$archive_cmds_need_lc" in
14846 # Assume -lc should be added
14847 archive_cmds_need_lc=yes
14849 if test "$enable_shared" = yes && test "$GCC" = yes; then
14850 case $archive_cmds in
14852 # FIXME: we may have to deal with multi-command sequences.
14855 # Test whether the compiler implicitly links with -lc since on some
14856 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14857 # to ld, don't add -lc before -lgcc.
14858 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14859 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14861 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14864 (eval $ac_compile) 2>&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } 2>conftest.err; then
14870 libobjs=conftest.$ac_objext
14872 wl=$lt_prog_compiler_wl
14873 pic_flag=$lt_prog_compiler_pic
14879 lt_save_allow_undefined_flag=$allow_undefined_flag
14880 allow_undefined_flag=
14881 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14882 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }
14887 archive_cmds_need_lc=no
14889 archive_cmds_need_lc=yes
14891 allow_undefined_flag=$lt_save_allow_undefined_flag
14893 cat conftest.err 1>&5
14896 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14897 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
14904 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14905 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14906 library_names_spec=
14907 libname_spec='lib$name'
14911 postuninstall_cmds=
14915 shlibpath_overrides_runpath=unknown
14917 dynamic_linker="$host_os ld.so"
14918 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14919 if test "$GCC" = yes; then
14920 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14921 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14922 # if the path contains ";" then we assume it to be the separator
14923 # otherwise default to the standard path separator (i.e. ":") - it is
14924 # assumed that no part of a normal pathname contains ";" but that should
14925 # okay in the real world where ";" in dirpaths is itself problematic.
14926 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14928 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14931 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14933 need_lib_prefix=unknown
14934 hardcode_into_libs=no
14936 # when you set need_version to no, make sure it does not cause -set_version
14937 # flags to be left without arguments
14938 need_version=unknown
14943 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14944 shlibpath_var=LIBPATH
14946 # AIX 3 has no versioning support, so we append a major version to the name.
14947 soname_spec='${libname}${release}${shared_ext}$major'
14954 hardcode_into_libs=yes
14955 if test "$host_cpu" = ia64; then
14956 # AIX 5 supports IA64
14957 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14958 shlibpath_var=LD_LIBRARY_PATH
14960 # With GCC up to 2.95.x, collect2 would create an import file
14961 # for dependence libraries. The import file would start with
14962 # the line `#! .'. This would cause the generated library to
14963 # depend on `.', always an invalid library. This was fixed in
14964 # development snapshots of GCC prior to 3.0.
14966 aix4 | aix4.[01] | aix4.[01].*)
14967 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14969 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14972 can_build_shared=no
14976 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14977 # soname into executable. Probably we can add versioning support to
14978 # collect2, so additional links can be useful in future.
14979 if test "$aix_use_runtimelinking" = yes; then
14980 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14981 # instead of lib<name>.a to let people know that these are not
14982 # typical AIX shared libraries.
14983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14985 # We preserve .a as extension for shared libraries through AIX4.2
14986 # and later when we are not doing run time linking.
14987 library_names_spec='${libname}${release}.a $libname.a'
14988 soname_spec='${libname}${release}${shared_ext}$major'
14990 shlibpath_var=LIBPATH
14995 library_names_spec='$libname.ixlibrary $libname.a'
14996 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14997 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'
15001 library_names_spec='${libname}${shared_ext}'
15002 dynamic_linker="$host_os ld.so"
15003 shlibpath_var=LIBRARY_PATH
15009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15010 soname_spec='${libname}${release}${shared_ext}$major'
15011 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15012 shlibpath_var=LD_LIBRARY_PATH
15013 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15014 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15015 # the default ld.so.conf also contains /usr/contrib/lib and
15016 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15017 # libtool to hard-code these into programs
15020 cygwin* | mingw* | pw32*)
15021 version_type=windows
15026 case $GCC,$host_os in
15027 yes,cygwin* | yes,mingw* | yes,pw32*)
15028 library_names_spec='$libname.dll.a'
15029 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15030 postinstall_cmds='base_file=`basename \${file}`~
15031 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15032 dldir=$destdir/`dirname \$dlpath`~
15033 test -d \$dldir || mkdir -p \$dldir~
15034 $install_prog $dir/$dlname \$dldir/$dlname~
15035 chmod a+x \$dldir/$dlname'
15036 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15037 dlpath=$dir/\$dldll~
15039 shlibpath_overrides_runpath=yes
15043 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15044 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15045 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15048 # MinGW DLLs use traditional 'lib' prefix
15049 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15050 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15051 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15052 # It is most probably a Windows format PATH printed by
15053 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15054 # path with ; separators, and with drive letters. We can handle the
15055 # drive letters (cygwin fileutils understands them), so leave them,
15056 # especially as we might pass files found there to a mingw objdump,
15057 # which wouldn't understand a cygwinified path. Ahh.
15058 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15060 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15064 # pw32 DLLs use 'pw' prefix rather than 'lib'
15065 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15071 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15074 dynamic_linker='Win32 ld.exe'
15075 # FIXME: first we should search . and the directory the executable is in
15079 darwin* | rhapsody*)
15080 dynamic_linker="$host_os dyld"
15081 version_type=darwin
15084 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15085 soname_spec='${libname}${release}${major}$shared_ext'
15086 shlibpath_overrides_runpath=yes
15087 shlibpath_var=DYLD_LIBRARY_PATH
15088 shrext_cmds='.dylib'
15089 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15090 if test "$GCC" = yes; then
15091 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"`
15093 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15095 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15103 soname_spec='${libname}${release}${shared_ext}$major'
15104 shlibpath_var=LD_LIBRARY_PATH
15115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15116 soname_spec='${libname}${release}${shared_ext}$major'
15117 shlibpath_var=LD_LIBRARY_PATH
15118 shlibpath_overrides_runpath=no
15119 hardcode_into_libs=yes
15120 dynamic_linker='GNU ld.so'
15123 freebsd* | dragonfly*)
15124 # DragonFly does not have aout. When/if they implement a new
15125 # versioning mechanism, adjust this.
15126 if test -x /usr/bin/objformat; then
15127 objformat=`/usr/bin/objformat`
15130 freebsd[123]*) objformat=aout ;;
15131 *) objformat=elf ;;
15134 version_type=freebsd-$objformat
15135 case $version_type in
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15142 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15146 shlibpath_var=LD_LIBRARY_PATH
15149 shlibpath_overrides_runpath=yes
15151 freebsd3.[01]* | freebsdelf3.[01]*)
15152 shlibpath_overrides_runpath=yes
15153 hardcode_into_libs=yes
15155 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15156 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15157 shlibpath_overrides_runpath=no
15158 hardcode_into_libs=yes
15160 freebsd*) # from 4.6 on
15161 shlibpath_overrides_runpath=yes
15162 hardcode_into_libs=yes
15171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15172 soname_spec='${libname}${release}${shared_ext}$major'
15173 shlibpath_var=LD_LIBRARY_PATH
15174 hardcode_into_libs=yes
15177 hpux9* | hpux10* | hpux11*)
15178 # Give a soname corresponding to the major version so that dld.sl refuses to
15179 # link against other versions.
15186 hardcode_into_libs=yes
15187 dynamic_linker="$host_os dld.so"
15188 shlibpath_var=LD_LIBRARY_PATH
15189 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15191 soname_spec='${libname}${release}${shared_ext}$major'
15192 if test "X$HPUX_IA64_MODE" = X32; then
15193 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15195 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15197 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15201 hardcode_into_libs=yes
15202 dynamic_linker="$host_os dld.sl"
15203 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15204 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15206 soname_spec='${libname}${release}${shared_ext}$major'
15207 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15208 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15212 dynamic_linker="$host_os dld.sl"
15213 shlibpath_var=SHLIB_PATH
15214 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15216 soname_spec='${libname}${release}${shared_ext}$major'
15219 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15220 postinstall_cmds='chmod 555 $lib'
15227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15228 soname_spec='${libname}${release}${shared_ext}$major'
15229 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15230 shlibpath_var=LD_LIBRARY_PATH
15231 shlibpath_overrides_runpath=no
15232 hardcode_into_libs=yes
15235 irix5* | irix6* | nonstopux*)
15237 nonstopux*) version_type=nonstopux ;;
15239 if test "$lt_cv_prog_gnu_ld" = yes; then
15247 soname_spec='${libname}${release}${shared_ext}$major'
15248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15250 irix5* | nonstopux*)
15251 libsuff= shlibsuff=
15254 case $LD in # libtool.m4 will add one of these switches to LD
15255 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15256 libsuff= shlibsuff= libmagic=32-bit;;
15257 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15258 libsuff=32 shlibsuff=N32 libmagic=N32;;
15259 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15260 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15261 *) libsuff= shlibsuff= libmagic=never-match;;
15265 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15266 shlibpath_overrides_runpath=no
15267 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15268 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15269 hardcode_into_libs=yes
15272 # No shared lib support for Linux oldld, aout, or coff.
15273 linux*oldld* | linux*aout* | linux*coff*)
15277 # This must be Linux ELF.
15282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15283 soname_spec='${libname}${release}${shared_ext}$major'
15284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15285 shlibpath_var=LD_LIBRARY_PATH
15286 shlibpath_overrides_runpath=no
15287 # This implies no fast_install, which is unacceptable.
15288 # Some rework will be needed to allow for fast_install
15289 # before this can be enabled.
15290 hardcode_into_libs=yes
15292 # Append ld.so.conf contents to the search path
15293 if test -f /etc/ld.so.conf; then
15294 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' ' '`
15295 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15298 # We used to test for /lib/ld.so.1 and disable shared libraries on
15299 # powerpc, because MkLinux only supported shared libraries with the
15300 # GNU dynamic linker. Since this was broken with cross compilers,
15301 # most powerpc-linux boxes support dynamic linking these days and
15302 # people can always --disable-shared, the test was removed, and we
15303 # assume the GNU/Linux dynamic linker is in use.
15304 dynamic_linker='GNU/Linux ld.so'
15311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15312 soname_spec='${libname}${release}${shared_ext}$major'
15313 shlibpath_var=LD_LIBRARY_PATH
15314 shlibpath_overrides_runpath=no
15315 hardcode_into_libs=yes
15316 dynamic_linker='GNU ld.so'
15323 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15326 dynamic_linker='NetBSD (a.out) ld.so'
15328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15329 soname_spec='${libname}${release}${shared_ext}$major'
15330 dynamic_linker='NetBSD ld.elf_so'
15332 shlibpath_var=LD_LIBRARY_PATH
15333 shlibpath_overrides_runpath=yes
15334 hardcode_into_libs=yes
15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15340 shlibpath_var=LD_LIBRARY_PATH
15341 shlibpath_overrides_runpath=yes
15348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15349 soname_spec='${libname}${release}${shared_ext}$major'
15350 shlibpath_var=LD_LIBRARY_PATH
15351 shlibpath_overrides_runpath=yes
15356 sys_lib_dlsearch_path_spec="/usr/lib"
15358 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15360 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15361 *) need_version=no ;;
15363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15365 shlibpath_var=LD_LIBRARY_PATH
15366 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15368 openbsd2.[89] | openbsd2.[89].*)
15369 shlibpath_overrides_runpath=no
15372 shlibpath_overrides_runpath=yes
15376 shlibpath_overrides_runpath=yes
15381 libname_spec='$name'
15384 library_names_spec='$libname${shared_ext} $libname.a'
15385 dynamic_linker='OS/2 ld.exe'
15386 shlibpath_var=LIBPATH
15389 osf3* | osf4* | osf5*)
15393 soname_spec='${libname}${release}${shared_ext}$major'
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395 shlibpath_var=LD_LIBRARY_PATH
15396 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15397 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15405 soname_spec='${libname}${release}${shared_ext}$major'
15406 shlibpath_var=LD_LIBRARY_PATH
15407 shlibpath_overrides_runpath=yes
15408 hardcode_into_libs=yes
15409 # ldd complains unless libraries are executable
15410 postinstall_cmds='chmod +x $lib'
15415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15416 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15417 shlibpath_var=LD_LIBRARY_PATH
15418 shlibpath_overrides_runpath=yes
15419 if test "$with_gnu_ld" = yes; then
15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15428 soname_spec='${libname}${release}${shared_ext}$major'
15429 shlibpath_var=LD_LIBRARY_PATH
15430 case $host_vendor in
15432 shlibpath_overrides_runpath=no
15434 export_dynamic_flag_spec='${wl}-Blargedynsym'
15435 runpath_var=LD_RUN_PATH
15443 shlibpath_overrides_runpath=no
15444 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15450 if test -d /usr/nec ;then
15452 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15453 soname_spec='$libname${shared_ext}.$major'
15454 shlibpath_var=LD_LIBRARY_PATH
15458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15459 version_type=freebsd-elf
15462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15463 soname_spec='${libname}${release}${shared_ext}$major'
15464 shlibpath_var=LD_LIBRARY_PATH
15465 hardcode_into_libs=yes
15466 if test "$with_gnu_ld" = yes; then
15467 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15468 shlibpath_overrides_runpath=no
15470 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15471 shlibpath_overrides_runpath=yes
15474 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15478 sys_lib_dlsearch_path_spec='/usr/lib'
15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15484 soname_spec='${libname}${release}${shared_ext}$major'
15485 shlibpath_var=LD_LIBRARY_PATH
15492 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15493 echo "${ECHO_T}$dynamic_linker" >&6; }
15494 test "$dynamic_linker" = no && can_build_shared=no
15496 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15497 if test "$GCC" = yes; then
15498 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15501 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15502 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15504 if test -n "$hardcode_libdir_flag_spec" || \
15505 test -n "$runpath_var" || \
15506 test "X$hardcode_automatic" = "Xyes" ; then
15508 # We can hardcode non-existant directories.
15509 if test "$hardcode_direct" != no &&
15510 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15511 # have to relink, otherwise we might link with an installed library
15512 # when we should be linking with a yet-to-be-installed one
15513 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15514 test "$hardcode_minus_L" != no; then
15515 # Linking always hardcodes the temporary library directory.
15516 hardcode_action=relink
15518 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15519 hardcode_action=immediate
15522 # We cannot hardcode anything, or else we can only hardcode existing
15524 hardcode_action=unsupported
15526 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
15527 echo "${ECHO_T}$hardcode_action" >&6; }
15529 if test "$hardcode_action" = relink; then
15530 # Fast installation is not supported
15531 enable_fast_install=no
15532 elif test "$shlibpath_overrides_runpath" = yes ||
15533 test "$enable_shared" = no; then
15534 # Fast installation is not necessary
15535 enable_fast_install=needless
15540 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15541 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15542 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15543 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15544 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15545 { echo "$as_me:$LINENO: result: yes" >&5
15546 echo "${ECHO_T}yes" >&6; }
15548 # FIXME - insert some real tests, host_os isn't really good enough
15551 if test -n "$STRIP" ; then
15552 striplib="$STRIP -x"
15553 { echo "$as_me:$LINENO: result: yes" >&5
15554 echo "${ECHO_T}yes" >&6; }
15556 { echo "$as_me:$LINENO: result: no" >&5
15557 echo "${ECHO_T}no" >&6; }
15561 { echo "$as_me:$LINENO: result: no" >&5
15562 echo "${ECHO_T}no" >&6; }
15567 if test "x$enable_dlopen" != xyes; then
15568 enable_dlopen=unknown
15569 enable_dlopen_self=unknown
15570 enable_dlopen_self_static=unknown
15577 lt_cv_dlopen="load_add_on"
15579 lt_cv_dlopen_self=yes
15583 lt_cv_dlopen="LoadLibrary"
15588 lt_cv_dlopen="dlopen"
15593 # if libdl is installed we need to link against it
15594 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15595 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15596 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15597 echo $ECHO_N "(cached) $ECHO_C" >&6
15599 ac_check_lib_save_LIBS=$LIBS
15601 cat >conftest.$ac_ext <<_ACEOF
15604 cat confdefs.h >>conftest.$ac_ext
15605 cat >>conftest.$ac_ext <<_ACEOF
15606 /* end confdefs.h. */
15608 /* Override any GCC internal prototype to avoid an error.
15609 Use char because int might match the return type of a GCC
15610 builtin and then its argument prototype would still apply. */
15623 rm -f conftest.$ac_objext conftest$ac_exeext
15624 if { (ac_try="$ac_link"
15625 case "(($ac_try" in
15626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627 *) ac_try_echo=$ac_try;;
15629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630 (eval "$ac_link") 2>conftest.er1
15632 grep -v '^ *+' conftest.er1 >conftest.err
15634 cat conftest.err >&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); } && {
15637 test -z "$ac_c_werror_flag" ||
15638 test ! -s conftest.err
15639 } && test -s conftest$ac_exeext &&
15640 $as_test_x conftest$ac_exeext; then
15641 ac_cv_lib_dl_dlopen=yes
15643 echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15646 ac_cv_lib_dl_dlopen=no
15649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15650 conftest$ac_exeext conftest.$ac_ext
15651 LIBS=$ac_check_lib_save_LIBS
15653 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15654 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15655 if test $ac_cv_lib_dl_dlopen = yes; then
15656 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15659 lt_cv_dlopen="dyld"
15661 lt_cv_dlopen_self=yes
15668 { echo "$as_me:$LINENO: checking for shl_load" >&5
15669 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
15670 if test "${ac_cv_func_shl_load+set}" = set; then
15671 echo $ECHO_N "(cached) $ECHO_C" >&6
15673 cat >conftest.$ac_ext <<_ACEOF
15676 cat confdefs.h >>conftest.$ac_ext
15677 cat >>conftest.$ac_ext <<_ACEOF
15678 /* end confdefs.h. */
15679 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15681 #define shl_load innocuous_shl_load
15683 /* System header to define __stub macros and hopefully few prototypes,
15684 which can conflict with char shl_load (); below.
15685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15686 <limits.h> exists even on freestanding compilers. */
15689 # include <limits.h>
15691 # include <assert.h>
15696 /* Override any GCC internal prototype to avoid an error.
15697 Use char because int might match the return type of a GCC
15698 builtin and then its argument prototype would still apply. */
15703 /* The GNU C library defines this for functions which it implements
15704 to always fail with ENOSYS. Some functions are actually named
15705 something starting with __ and the normal name is an alias. */
15706 #if defined __stub_shl_load || defined __stub___shl_load
15713 return shl_load ();
15718 rm -f conftest.$ac_objext conftest$ac_exeext
15719 if { (ac_try="$ac_link"
15720 case "(($ac_try" in
15721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722 *) ac_try_echo=$ac_try;;
15724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725 (eval "$ac_link") 2>conftest.er1
15727 grep -v '^ *+' conftest.er1 >conftest.err
15729 cat conftest.err >&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } && {
15732 test -z "$ac_c_werror_flag" ||
15733 test ! -s conftest.err
15734 } && test -s conftest$ac_exeext &&
15735 $as_test_x conftest$ac_exeext; then
15736 ac_cv_func_shl_load=yes
15738 echo "$as_me: failed program was:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15741 ac_cv_func_shl_load=no
15744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15745 conftest$ac_exeext conftest.$ac_ext
15747 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15748 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
15749 if test $ac_cv_func_shl_load = yes; then
15750 lt_cv_dlopen="shl_load"
15752 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15753 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15754 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15755 echo $ECHO_N "(cached) $ECHO_C" >&6
15757 ac_check_lib_save_LIBS=$LIBS
15759 cat >conftest.$ac_ext <<_ACEOF
15762 cat confdefs.h >>conftest.$ac_ext
15763 cat >>conftest.$ac_ext <<_ACEOF
15764 /* end confdefs.h. */
15766 /* Override any GCC internal prototype to avoid an error.
15767 Use char because int might match the return type of a GCC
15768 builtin and then its argument prototype would still apply. */
15776 return shl_load ();
15781 rm -f conftest.$ac_objext conftest$ac_exeext
15782 if { (ac_try="$ac_link"
15783 case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788 (eval "$ac_link") 2>conftest.er1
15790 grep -v '^ *+' conftest.er1 >conftest.err
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } && {
15795 test -z "$ac_c_werror_flag" ||
15796 test ! -s conftest.err
15797 } && test -s conftest$ac_exeext &&
15798 $as_test_x conftest$ac_exeext; then
15799 ac_cv_lib_dld_shl_load=yes
15801 echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15804 ac_cv_lib_dld_shl_load=no
15807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15808 conftest$ac_exeext conftest.$ac_ext
15809 LIBS=$ac_check_lib_save_LIBS
15811 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15812 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15813 if test $ac_cv_lib_dld_shl_load = yes; then
15814 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15816 { echo "$as_me:$LINENO: checking for dlopen" >&5
15817 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
15818 if test "${ac_cv_func_dlopen+set}" = set; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15821 cat >conftest.$ac_ext <<_ACEOF
15824 cat confdefs.h >>conftest.$ac_ext
15825 cat >>conftest.$ac_ext <<_ACEOF
15826 /* end confdefs.h. */
15827 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15829 #define dlopen innocuous_dlopen
15831 /* System header to define __stub macros and hopefully few prototypes,
15832 which can conflict with char dlopen (); below.
15833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15834 <limits.h> exists even on freestanding compilers. */
15837 # include <limits.h>
15839 # include <assert.h>
15844 /* Override any GCC internal prototype to avoid an error.
15845 Use char because int might match the return type of a GCC
15846 builtin and then its argument prototype would still apply. */
15851 /* The GNU C library defines this for functions which it implements
15852 to always fail with ENOSYS. Some functions are actually named
15853 something starting with __ and the normal name is an alias. */
15854 #if defined __stub_dlopen || defined __stub___dlopen
15866 rm -f conftest.$ac_objext conftest$ac_exeext
15867 if { (ac_try="$ac_link"
15868 case "(($ac_try" in
15869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870 *) ac_try_echo=$ac_try;;
15872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15873 (eval "$ac_link") 2>conftest.er1
15875 grep -v '^ *+' conftest.er1 >conftest.err
15877 cat conftest.err >&5
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); } && {
15880 test -z "$ac_c_werror_flag" ||
15881 test ! -s conftest.err
15882 } && test -s conftest$ac_exeext &&
15883 $as_test_x conftest$ac_exeext; then
15884 ac_cv_func_dlopen=yes
15886 echo "$as_me: failed program was:" >&5
15887 sed 's/^/| /' conftest.$ac_ext >&5
15889 ac_cv_func_dlopen=no
15892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15893 conftest$ac_exeext conftest.$ac_ext
15895 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15896 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
15897 if test $ac_cv_func_dlopen = yes; then
15898 lt_cv_dlopen="dlopen"
15900 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15901 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15902 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15903 echo $ECHO_N "(cached) $ECHO_C" >&6
15905 ac_check_lib_save_LIBS=$LIBS
15907 cat >conftest.$ac_ext <<_ACEOF
15910 cat confdefs.h >>conftest.$ac_ext
15911 cat >>conftest.$ac_ext <<_ACEOF
15912 /* end confdefs.h. */
15914 /* Override any GCC internal prototype to avoid an error.
15915 Use char because int might match the return type of a GCC
15916 builtin and then its argument prototype would still apply. */
15929 rm -f conftest.$ac_objext conftest$ac_exeext
15930 if { (ac_try="$ac_link"
15931 case "(($ac_try" in
15932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933 *) ac_try_echo=$ac_try;;
15935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15936 (eval "$ac_link") 2>conftest.er1
15938 grep -v '^ *+' conftest.er1 >conftest.err
15940 cat conftest.err >&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } && {
15943 test -z "$ac_c_werror_flag" ||
15944 test ! -s conftest.err
15945 } && test -s conftest$ac_exeext &&
15946 $as_test_x conftest$ac_exeext; then
15947 ac_cv_lib_dl_dlopen=yes
15949 echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15952 ac_cv_lib_dl_dlopen=no
15955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15956 conftest$ac_exeext conftest.$ac_ext
15957 LIBS=$ac_check_lib_save_LIBS
15959 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15960 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15961 if test $ac_cv_lib_dl_dlopen = yes; then
15962 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15964 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15965 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
15966 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15967 echo $ECHO_N "(cached) $ECHO_C" >&6
15969 ac_check_lib_save_LIBS=$LIBS
15970 LIBS="-lsvld $LIBS"
15971 cat >conftest.$ac_ext <<_ACEOF
15974 cat confdefs.h >>conftest.$ac_ext
15975 cat >>conftest.$ac_ext <<_ACEOF
15976 /* end confdefs.h. */
15978 /* Override any GCC internal prototype to avoid an error.
15979 Use char because int might match the return type of a GCC
15980 builtin and then its argument prototype would still apply. */
15993 rm -f conftest.$ac_objext conftest$ac_exeext
15994 if { (ac_try="$ac_link"
15995 case "(($ac_try" in
15996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997 *) ac_try_echo=$ac_try;;
15999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000 (eval "$ac_link") 2>conftest.er1
16002 grep -v '^ *+' conftest.er1 >conftest.err
16004 cat conftest.err >&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } && {
16007 test -z "$ac_c_werror_flag" ||
16008 test ! -s conftest.err
16009 } && test -s conftest$ac_exeext &&
16010 $as_test_x conftest$ac_exeext; then
16011 ac_cv_lib_svld_dlopen=yes
16013 echo "$as_me: failed program was:" >&5
16014 sed 's/^/| /' conftest.$ac_ext >&5
16016 ac_cv_lib_svld_dlopen=no
16019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16020 conftest$ac_exeext conftest.$ac_ext
16021 LIBS=$ac_check_lib_save_LIBS
16023 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16024 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16025 if test $ac_cv_lib_svld_dlopen = yes; then
16026 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16028 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16029 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16030 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16031 echo $ECHO_N "(cached) $ECHO_C" >&6
16033 ac_check_lib_save_LIBS=$LIBS
16035 cat >conftest.$ac_ext <<_ACEOF
16038 cat confdefs.h >>conftest.$ac_ext
16039 cat >>conftest.$ac_ext <<_ACEOF
16040 /* end confdefs.h. */
16042 /* Override any GCC internal prototype to avoid an error.
16043 Use char because int might match the return type of a GCC
16044 builtin and then its argument prototype would still apply. */
16052 return dld_link ();
16057 rm -f conftest.$ac_objext conftest$ac_exeext
16058 if { (ac_try="$ac_link"
16059 case "(($ac_try" in
16060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061 *) ac_try_echo=$ac_try;;
16063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064 (eval "$ac_link") 2>conftest.er1
16066 grep -v '^ *+' conftest.er1 >conftest.err
16068 cat conftest.err >&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } && {
16071 test -z "$ac_c_werror_flag" ||
16072 test ! -s conftest.err
16073 } && test -s conftest$ac_exeext &&
16074 $as_test_x conftest$ac_exeext; then
16075 ac_cv_lib_dld_dld_link=yes
16077 echo "$as_me: failed program was:" >&5
16078 sed 's/^/| /' conftest.$ac_ext >&5
16080 ac_cv_lib_dld_dld_link=no
16083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16084 conftest$ac_exeext conftest.$ac_ext
16085 LIBS=$ac_check_lib_save_LIBS
16087 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16088 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16089 if test $ac_cv_lib_dld_dld_link = yes; then
16090 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16111 if test "x$lt_cv_dlopen" != xno; then
16117 case $lt_cv_dlopen in
16119 save_CPPFLAGS="$CPPFLAGS"
16120 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16122 save_LDFLAGS="$LDFLAGS"
16123 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16126 LIBS="$lt_cv_dlopen_libs $LIBS"
16128 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16129 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16130 if test "${lt_cv_dlopen_self+set}" = set; then
16131 echo $ECHO_N "(cached) $ECHO_C" >&6
16133 if test "$cross_compiling" = yes; then :
16134 lt_cv_dlopen_self=cross
16136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16137 lt_status=$lt_dlunknown
16138 cat > conftest.$ac_ext <<EOF
16139 #line 16139 "configure"
16140 #include "confdefs.h"
16149 # define LT_DLGLOBAL RTLD_GLOBAL
16152 # define LT_DLGLOBAL DL_GLOBAL
16154 # define LT_DLGLOBAL 0
16158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16159 find out it does not work in some platform. */
16160 #ifndef LT_DLLAZY_OR_NOW
16162 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16165 # define LT_DLLAZY_OR_NOW DL_LAZY
16168 # define LT_DLLAZY_OR_NOW RTLD_NOW
16171 # define LT_DLLAZY_OR_NOW DL_NOW
16173 # define LT_DLLAZY_OR_NOW 0
16181 extern "C" void exit (int);
16184 void fnord() { int i=42;}
16187 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16188 int status = $lt_dlunknown;
16192 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16193 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16194 /* dlclose (self); */
16202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16203 (eval $ac_link) 2>&5
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16207 (./conftest; exit; ) >&5 2>/dev/null
16209 case x$lt_status in
16210 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16211 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16212 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16215 # compilation failed
16216 lt_cv_dlopen_self=no
16223 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16224 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
16226 if test "x$lt_cv_dlopen_self" = xyes; then
16227 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16228 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16229 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
16230 if test "${lt_cv_dlopen_self_static+set}" = set; then
16231 echo $ECHO_N "(cached) $ECHO_C" >&6
16233 if test "$cross_compiling" = yes; then :
16234 lt_cv_dlopen_self_static=cross
16236 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16237 lt_status=$lt_dlunknown
16238 cat > conftest.$ac_ext <<EOF
16239 #line 16239 "configure"
16240 #include "confdefs.h"
16249 # define LT_DLGLOBAL RTLD_GLOBAL
16252 # define LT_DLGLOBAL DL_GLOBAL
16254 # define LT_DLGLOBAL 0
16258 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16259 find out it does not work in some platform. */
16260 #ifndef LT_DLLAZY_OR_NOW
16262 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16265 # define LT_DLLAZY_OR_NOW DL_LAZY
16268 # define LT_DLLAZY_OR_NOW RTLD_NOW
16271 # define LT_DLLAZY_OR_NOW DL_NOW
16273 # define LT_DLLAZY_OR_NOW 0
16281 extern "C" void exit (int);
16284 void fnord() { int i=42;}
16287 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16288 int status = $lt_dlunknown;
16292 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16293 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16294 /* dlclose (self); */
16302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16303 (eval $ac_link) 2>&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16307 (./conftest; exit; ) >&5 2>/dev/null
16309 case x$lt_status in
16310 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16311 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16312 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16315 # compilation failed
16316 lt_cv_dlopen_self_static=no
16323 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16324 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
16327 CPPFLAGS="$save_CPPFLAGS"
16328 LDFLAGS="$save_LDFLAGS"
16333 case $lt_cv_dlopen_self in
16334 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16335 *) enable_dlopen_self=unknown ;;
16338 case $lt_cv_dlopen_self_static in
16339 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16340 *) enable_dlopen_self_static=unknown ;;
16345 # Report which library types will actually be built
16346 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16347 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16348 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
16349 echo "${ECHO_T}$can_build_shared" >&6; }
16351 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16352 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
16353 test "$can_build_shared" = "no" && enable_shared=no
16355 # On AIX, shared libraries and static libraries use the same namespace, and
16356 # are all built from PIC.
16359 test "$enable_shared" = yes && enable_static=no
16360 if test -n "$RANLIB"; then
16361 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16362 postinstall_cmds='$RANLIB $lib'
16367 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16368 test "$enable_shared" = yes && enable_static=no
16372 { echo "$as_me:$LINENO: result: $enable_shared" >&5
16373 echo "${ECHO_T}$enable_shared" >&6; }
16375 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16376 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
16377 # Make sure either enable_shared or enable_static is yes.
16378 test "$enable_shared" = yes || enable_static=yes
16379 { echo "$as_me:$LINENO: result: $enable_static" >&5
16380 echo "${ECHO_T}$enable_static" >&6; }
16382 # The else clause should only fire when bootstrapping the
16383 # libtool distribution, otherwise you forgot to ship ltmain.sh
16384 # with your package, and you will get complaints that there are
16385 # no rules to generate ltmain.sh.
16386 if test -f "$ltmain"; then
16387 # See if we are running on zsh, and set the options which allow our commands through
16388 # without removal of \ escapes.
16389 if test -n "${ZSH_VERSION+set}" ; then
16390 setopt NO_GLOB_SUBST
16392 # Now quote all the things that may contain metacharacters while being
16393 # careful not to overquote the AC_SUBSTed values. We take copies of the
16394 # variables and quote the copies for generation of the libtool script.
16395 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16397 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16398 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16399 deplibs_check_method reload_flag reload_cmds need_locks \
16400 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16401 lt_cv_sys_global_symbol_to_c_name_address \
16402 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16403 old_postinstall_cmds old_postuninstall_cmds \
16407 lt_prog_compiler_wl \
16408 lt_prog_compiler_pic \
16409 lt_prog_compiler_static \
16410 lt_prog_compiler_no_builtin_flag \
16411 export_dynamic_flag_spec \
16412 thread_safe_flag_spec \
16413 whole_archive_flag_spec \
16414 enable_shared_with_static_runtimes \
16416 old_archive_from_new_cmds \
16421 compiler_lib_search_path \
16423 archive_expsym_cmds \
16425 postuninstall_cmds \
16426 old_archive_from_expsyms_cmds \
16427 allow_undefined_flag \
16428 no_undefined_flag \
16429 export_symbols_cmds \
16430 hardcode_libdir_flag_spec \
16431 hardcode_libdir_flag_spec_ld \
16432 hardcode_libdir_separator \
16433 hardcode_automatic \
16435 module_expsym_cmds \
16436 lt_cv_prog_compiler_c_o \
16438 include_expsyms; do
16441 old_archive_cmds | \
16442 old_archive_from_new_cmds | \
16444 archive_expsym_cmds | \
16446 module_expsym_cmds | \
16447 old_archive_from_expsyms_cmds | \
16448 export_symbols_cmds | \
16449 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16450 postinstall_cmds | postuninstall_cmds | \
16451 old_postinstall_cmds | old_postuninstall_cmds | \
16452 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16453 # Double-quote double-evaled strings.
16454 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16457 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16463 *'\$0 --fallback-echo"')
16464 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16468 cfgfile="${ofile}T"
16469 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16471 { echo "$as_me:$LINENO: creating $ofile" >&5
16472 echo "$as_me: creating $ofile" >&6;}
16474 cat <<__EOF__ >> "$cfgfile"
16477 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16478 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16479 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16481 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16482 # Free Software Foundation, Inc.
16484 # This file is part of GNU Libtool:
16485 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16487 # This program is free software; you can redistribute it and/or modify
16488 # it under the terms of the GNU General Public License as published by
16489 # the Free Software Foundation; either version 2 of the License, or
16490 # (at your option) any later version.
16492 # This program is distributed in the hope that it will be useful, but
16493 # WITHOUT ANY WARRANTY; without even the implied warranty of
16494 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16495 # General Public License for more details.
16497 # You should have received a copy of the GNU General Public License
16498 # along with this program; if not, write to the Free Software
16499 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16501 # As a special exception to the GNU General Public License, if you
16502 # distribute this file as part of a program that contains a
16503 # configuration script generated by Autoconf, you may include it under
16504 # the same distribution terms that you use for the rest of that program.
16506 # A sed program that does not truncate output.
16509 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16510 Xsed="$SED -e 1s/^X//"
16512 # The HP-UX ksh and POSIX shell print the target directory to stdout
16513 # if CDPATH is set.
16514 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16516 # The names of the tagged configurations supported by this script.
16519 # ### BEGIN LIBTOOL CONFIG
16521 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16523 # Shell to use when invoking shell scripts.
16526 # Whether or not to build shared libraries.
16527 build_libtool_libs=$enable_shared
16529 # Whether or not to build static libraries.
16530 build_old_libs=$enable_static
16532 # Whether or not to add -lc for building shared libraries.
16533 build_libtool_need_lc=$archive_cmds_need_lc
16535 # Whether or not to disallow shared libs when runtime libs are static
16536 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16538 # Whether or not to optimize for fast installation.
16539 fast_install=$enable_fast_install
16542 host_alias=$host_alias
16546 # The build system.
16547 build_alias=$build_alias
16551 # An echo program that does not interpret backslashes.
16556 AR_FLAGS=$lt_AR_FLAGS
16561 # LTCC compiler flags.
16562 LTCFLAGS=$lt_LTCFLAGS
16564 # A language-specific compiler.
16567 # Is the compiler the GNU C compiler?
16573 # The linker used to build libraries.
16576 # Whether we need hard or soft links.
16579 # A BSD-compatible nm program.
16582 # A symbol stripping program
16585 # Used to examine libraries when file_magic_cmd begins "file"
16586 MAGIC_CMD=$MAGIC_CMD
16588 # Used on cygwin: DLL creation program.
16591 # Used on cygwin: object dumper.
16594 # Used on cygwin: assembler.
16597 # The name of the directory that contains temporary libtool files.
16600 # How to create reloadable object files.
16601 reload_flag=$lt_reload_flag
16602 reload_cmds=$lt_reload_cmds
16604 # How to pass a linker flag through the compiler.
16605 wl=$lt_lt_prog_compiler_wl
16607 # Object file suffix (normally "o").
16608 objext="$ac_objext"
16610 # Old archive suffix (normally "a").
16613 # Shared library suffix (normally ".so").
16614 shrext_cmds='$shrext_cmds'
16616 # Executable file suffix (normally "").
16619 # Additional compiler flags for building library objects.
16620 pic_flag=$lt_lt_prog_compiler_pic
16623 # What is the maximum length of a command?
16624 max_cmd_len=$lt_cv_sys_max_cmd_len
16626 # Does compiler simultaneously support -c and -o options?
16627 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16629 # Must we lock files when doing compilation?
16630 need_locks=$lt_need_locks
16632 # Do we need the lib prefix for modules?
16633 need_lib_prefix=$need_lib_prefix
16635 # Do we need a version for libraries?
16636 need_version=$need_version
16638 # Whether dlopen is supported.
16639 dlopen_support=$enable_dlopen
16641 # Whether dlopen of programs is supported.
16642 dlopen_self=$enable_dlopen_self
16644 # Whether dlopen of statically linked programs is supported.
16645 dlopen_self_static=$enable_dlopen_self_static
16647 # Compiler flag to prevent dynamic linking.
16648 link_static_flag=$lt_lt_prog_compiler_static
16650 # Compiler flag to turn off builtin functions.
16651 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16653 # Compiler flag to allow reflexive dlopens.
16654 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16656 # Compiler flag to generate shared objects directly from archives.
16657 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16659 # Compiler flag to generate thread-safe objects.
16660 thread_safe_flag_spec=$lt_thread_safe_flag_spec
16662 # Library versioning type.
16663 version_type=$version_type
16665 # Format of library name prefix.
16666 libname_spec=$lt_libname_spec
16668 # List of archive names. First name is the real one, the rest are links.
16669 # The last name is the one that the linker finds with -lNAME.
16670 library_names_spec=$lt_library_names_spec
16672 # The coded name of the library, if different from the real name.
16673 soname_spec=$lt_soname_spec
16675 # Commands used to build and install an old-style archive.
16677 old_archive_cmds=$lt_old_archive_cmds
16678 old_postinstall_cmds=$lt_old_postinstall_cmds
16679 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16681 # Create an old-style archive from a shared archive.
16682 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16684 # Create a temporary old-style archive to link instead of a shared archive.
16685 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16687 # Commands used to build and install a shared archive.
16688 archive_cmds=$lt_archive_cmds
16689 archive_expsym_cmds=$lt_archive_expsym_cmds
16690 postinstall_cmds=$lt_postinstall_cmds
16691 postuninstall_cmds=$lt_postuninstall_cmds
16693 # Commands used to build a loadable module (assumed same as above if empty)
16694 module_cmds=$lt_module_cmds
16695 module_expsym_cmds=$lt_module_expsym_cmds
16697 # Commands to strip libraries.
16698 old_striplib=$lt_old_striplib
16699 striplib=$lt_striplib
16701 # Dependencies to place before the objects being linked to create a
16703 predep_objects=$lt_predep_objects
16705 # Dependencies to place after the objects being linked to create a
16707 postdep_objects=$lt_postdep_objects
16709 # Dependencies to place before the objects being linked to create a
16711 predeps=$lt_predeps
16713 # Dependencies to place after the objects being linked to create a
16715 postdeps=$lt_postdeps
16717 # The library search path used internally by the compiler when linking
16718 # a shared library.
16719 compiler_lib_search_path=$lt_compiler_lib_search_path
16721 # Method to check whether dependent libraries are shared objects.
16722 deplibs_check_method=$lt_deplibs_check_method
16724 # Command to use when deplibs_check_method == file_magic.
16725 file_magic_cmd=$lt_file_magic_cmd
16727 # Flag that allows shared libraries with undefined symbols to be built.
16728 allow_undefined_flag=$lt_allow_undefined_flag
16730 # Flag that forces no undefined symbols.
16731 no_undefined_flag=$lt_no_undefined_flag
16733 # Commands used to finish a libtool library installation in a directory.
16734 finish_cmds=$lt_finish_cmds
16736 # Same as above, but a single script fragment to be evaled but not shown.
16737 finish_eval=$lt_finish_eval
16739 # Take the output of nm and produce a listing of raw symbols and C names.
16740 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16742 # Transform the output of nm in a proper C declaration
16743 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16745 # Transform the output of nm in a C name address pair
16746 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16748 # This is the shared library runtime path variable.
16749 runpath_var=$runpath_var
16751 # This is the shared library path variable.
16752 shlibpath_var=$shlibpath_var
16754 # Is shlibpath searched before the hard-coded library search path?
16755 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16757 # How to hardcode a shared library path into an executable.
16758 hardcode_action=$hardcode_action
16760 # Whether we should hardcode library paths into libraries.
16761 hardcode_into_libs=$hardcode_into_libs
16763 # Flag to hardcode \$libdir into a binary during linking.
16764 # This must work even if \$libdir does not exist.
16765 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16767 # If ld is used when linking, flag to hardcode \$libdir into
16768 # a binary during linking. This must work even if \$libdir does
16770 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16772 # Whether we need a single -rpath flag with a separated argument.
16773 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16775 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16776 # resulting binary.
16777 hardcode_direct=$hardcode_direct
16779 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16780 # resulting binary.
16781 hardcode_minus_L=$hardcode_minus_L
16783 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16784 # the resulting binary.
16785 hardcode_shlibpath_var=$hardcode_shlibpath_var
16787 # Set to yes if building a shared library automatically hardcodes DIR into the library
16788 # and all subsequent libraries and executables linked against it.
16789 hardcode_automatic=$hardcode_automatic
16791 # Variables whose values should be saved in libtool wrapper scripts and
16792 # restored at relink time.
16793 variables_saved_for_relink="$variables_saved_for_relink"
16795 # Whether libtool must link a program against all its dependency libraries.
16796 link_all_deplibs=$link_all_deplibs
16798 # Compile-time system search path for libraries
16799 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16801 # Run-time system search path for libraries
16802 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16804 # Fix the shell variable \$srcfile for the compiler.
16805 fix_srcfile_path="$fix_srcfile_path"
16807 # Set to yes if exported symbols are required.
16808 always_export_symbols=$always_export_symbols
16810 # The commands to list exported symbols.
16811 export_symbols_cmds=$lt_export_symbols_cmds
16813 # The commands to extract the exported symbol list from a shared archive.
16814 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16816 # Symbols that should not be listed in the preloaded symbols.
16817 exclude_expsyms=$lt_exclude_expsyms
16819 # Symbols that must always be exported.
16820 include_expsyms=$lt_include_expsyms
16822 # ### END LIBTOOL CONFIG
16829 cat <<\EOF >> "$cfgfile"
16831 # AIX sometimes has problems with the GCC collect2 program. For some
16832 # reason, if we set the COLLECT_NAMES environment variable, the problems
16833 # vanish in a puff of smoke.
16834 if test "X${COLLECT_NAMES+set}" != Xset; then
16836 export COLLECT_NAMES
16842 # We use sed instead of cat because bash on DJGPP gets confused if
16843 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16844 # text mode, it properly converts lines to CR/LF. This bash problem
16845 # is reportedly fixed, but why not run on old versions too?
16846 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
16848 mv -f "$cfgfile" "$ofile" || \
16849 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16853 # If there is no Makefile yet, we rely on a make rule to execute
16854 # `config.status --recheck' to rerun these tests and create the
16855 # libtool script then.
16856 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16857 if test -f "$ltmain_in"; then
16858 test -f Makefile && make "$ltmain"
16864 ac_cpp='$CPP $CPPFLAGS'
16865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16872 # Check whether --with-tags was given.
16873 if test "${with_tags+set}" = set; then
16874 withval=$with_tags; tagnames="$withval"
16878 if test -f "$ltmain" && test -n "$tagnames"; then
16879 if test ! -f "${ofile}"; then
16880 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
16881 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
16884 if test -z "$LTCC"; then
16885 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16886 if test -z "$LTCC"; then
16887 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
16888 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
16890 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
16891 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
16894 if test -z "$LTCFLAGS"; then
16895 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
16898 # Extract list of available tagged configurations in $ofile.
16899 # Note that this assumes the entire list is on one line.
16900 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16902 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16903 for tagname in $tagnames; do
16905 # Check whether tagname contains only valid characters
16906 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
16908 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
16909 echo "$as_me: error: invalid tag name: $tagname" >&2;}
16910 { (exit 1); exit 1; }; }
16914 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16916 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
16917 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
16918 { (exit 1); exit 1; }; }
16921 # Update the list of available tags.
16922 if test -n "$tagname"; then
16923 echo appending configuration tag \"$tagname\" to $ofile
16927 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16928 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16929 (test "X$CXX" != "Xg++"))) ; then
16931 ac_cpp='$CXXCPP $CPPFLAGS'
16932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16939 archive_cmds_need_lc_CXX=no
16940 allow_undefined_flag_CXX=
16941 always_export_symbols_CXX=no
16942 archive_expsym_cmds_CXX=
16943 export_dynamic_flag_spec_CXX=
16944 hardcode_direct_CXX=no
16945 hardcode_libdir_flag_spec_CXX=
16946 hardcode_libdir_flag_spec_ld_CXX=
16947 hardcode_libdir_separator_CXX=
16948 hardcode_minus_L_CXX=no
16949 hardcode_shlibpath_var_CXX=unsupported
16950 hardcode_automatic_CXX=no
16952 module_expsym_cmds_CXX=
16953 link_all_deplibs_CXX=unknown
16954 old_archive_cmds_CXX=$old_archive_cmds
16955 no_undefined_flag_CXX=
16956 whole_archive_flag_spec_CXX=
16957 enable_shared_with_static_runtimes_CXX=no
16959 # Dependencies to place before and after the object being linked:
16960 predep_objects_CXX=
16961 postdep_objects_CXX=
16964 compiler_lib_search_path_CXX=
16966 # Source file extension for C++ test sources.
16969 # Object file extension for compiled C++ test sources.
16973 # Code to be used in simple compile tests
16974 lt_simple_compile_test_code="int some_variable = 0;\n"
16976 # Code to be used in simple link tests
16977 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
16979 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16981 # If no C compiler was specified, use CC.
16984 # If no C compiler flags were specified, use CFLAGS.
16985 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16987 # Allow CC to be a program name with arguments.
16991 # save warnings/boilerplate of simple test code
16992 ac_outfile=conftest.$ac_objext
16993 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16994 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16995 _lt_compiler_boilerplate=`cat conftest.err`
16998 ac_outfile=conftest.$ac_objext
16999 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17000 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17001 _lt_linker_boilerplate=`cat conftest.err`
17005 # Allow CC to be a program name with arguments.
17010 lt_save_with_gnu_ld=$with_gnu_ld
17011 lt_save_path_LD=$lt_cv_path_LD
17012 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17013 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17015 $as_unset lt_cv_prog_gnu_ld
17017 if test -n "${lt_cv_path_LDCXX+set}"; then
17018 lt_cv_path_LD=$lt_cv_path_LDCXX
17020 $as_unset lt_cv_path_LD
17022 test -z "${LDCXX+set}" || LD=$LDCXX
17026 for cc_temp in $compiler""; do
17028 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17029 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17034 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17037 # We don't want -fno-exception wen compiling C++ code, so set the
17038 # no_builtin_flag separately
17039 if test "$GXX" = yes; then
17040 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17042 lt_prog_compiler_no_builtin_flag_CXX=
17045 if test "$GXX" = yes; then
17046 # Set up default GNU C++ configuration
17049 # Check whether --with-gnu-ld was given.
17050 if test "${with_gnu_ld+set}" = set; then
17051 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17057 if test "$GCC" = yes; then
17058 # Check if gcc -print-prog-name=ld gives a path.
17059 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17060 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17063 # gcc leaves a trailing carriage return which upsets mingw
17064 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17066 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17069 # Accept absolute paths.
17071 re_direlt='/[^/][^/]*/\.\./'
17072 # Canonicalize the pathname of ld
17073 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17074 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17075 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17077 test -z "$LD" && LD="$ac_prog"
17080 # If it fails, then pretend we aren't using GCC.
17084 # If it is relative, then search for the first ld in PATH.
17085 with_gnu_ld=unknown
17088 elif test "$with_gnu_ld" = yes; then
17089 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17090 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17092 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17093 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17095 if test "${lt_cv_path_LD+set}" = set; then
17096 echo $ECHO_N "(cached) $ECHO_C" >&6
17098 if test -z "$LD"; then
17099 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17100 for ac_dir in $PATH; do
17102 test -z "$ac_dir" && ac_dir=.
17103 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17104 lt_cv_path_LD="$ac_dir/$ac_prog"
17105 # Check to see if the program is GNU ld. I'd rather use --version,
17106 # but apparently some variants of GNU ld only accept -v.
17107 # Break only if it was the GNU/non-GNU ld that we prefer.
17108 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17109 *GNU* | *'with BFD'*)
17110 test "$with_gnu_ld" != no && break
17113 test "$with_gnu_ld" != yes && break
17120 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17124 LD="$lt_cv_path_LD"
17125 if test -n "$LD"; then
17126 { echo "$as_me:$LINENO: result: $LD" >&5
17127 echo "${ECHO_T}$LD" >&6; }
17129 { echo "$as_me:$LINENO: result: no" >&5
17130 echo "${ECHO_T}no" >&6; }
17132 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17133 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17134 { (exit 1); exit 1; }; }
17135 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17136 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17137 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17138 echo $ECHO_N "(cached) $ECHO_C" >&6
17140 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17141 case `$LD -v 2>&1 </dev/null` in
17142 *GNU* | *'with BFD'*)
17143 lt_cv_prog_gnu_ld=yes
17146 lt_cv_prog_gnu_ld=no
17150 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17151 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
17152 with_gnu_ld=$lt_cv_prog_gnu_ld
17156 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17157 # archiving commands below assume that GNU ld is being used.
17158 if test "$with_gnu_ld" = yes; then
17159 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17160 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'
17162 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17163 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17165 # If archive_cmds runs LD, not CC, wlarc should be empty
17166 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17167 # investigate it a little bit more. (MM)
17170 # ancient GNU ld didn't support --whole-archive et. al.
17171 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17172 grep 'no-whole-archive' > /dev/null; then
17173 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17175 whole_archive_flag_spec_CXX=
17181 # A generic and very simple default shared library creation
17182 # command for GNU C++ for the case where it uses the native
17183 # linker, instead of GNU ld. If possible, this setting should
17184 # overridden to take advantage of the native linker features on
17185 # the platform it is being used on.
17186 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17189 # Commands to make compiler produce verbose output that lists
17190 # what "hidden" libraries, object files and flags are used when
17191 # linking a shared library.
17192 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17200 # PORTME: fill in a description of your system's C++ link characteristics
17201 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17202 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17206 # FIXME: insert proper C++ library support
17210 if test "$host_cpu" = ia64; then
17211 # On IA64, the linker does run time linking by default, so we don't
17212 # have to do anything special.
17213 aix_use_runtimelinking=no
17214 exp_sym_flag='-Bexport'
17217 aix_use_runtimelinking=no
17219 # Test if we are trying to use run time linking or normal
17220 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17221 # need to do runtime linking.
17222 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17223 for ld_flag in $LDFLAGS; do
17226 aix_use_runtimelinking=yes
17234 exp_sym_flag='-bexport'
17235 no_entry_flag='-bnoentry'
17238 # When large executables or shared objects are built, AIX ld can
17239 # have problems creating the table of contents. If linking a library
17240 # or program results in "error TOC overflow" add -mminimal-toc to
17241 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17242 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17244 archive_cmds_CXX=''
17245 hardcode_direct_CXX=yes
17246 hardcode_libdir_separator_CXX=':'
17247 link_all_deplibs_CXX=yes
17249 if test "$GXX" = yes; then
17250 case $host_os in aix4.[012]|aix4.[012].*)
17251 # We only want to do this on AIX 4.2 and lower, the check
17252 # below for broken collect2 doesn't work under 4.3+
17253 collect2name=`${CC} -print-prog-name=collect2`
17254 if test -f "$collect2name" && \
17255 strings "$collect2name" | grep resolve_lib_name >/dev/null
17257 # We have reworked collect2
17258 hardcode_direct_CXX=yes
17260 # We have old collect2
17261 hardcode_direct_CXX=unsupported
17262 # It fails to find uninstalled libraries when the uninstalled
17263 # path is not listed in the libpath. Setting hardcode_minus_L
17264 # to unsupported forces relinking
17265 hardcode_minus_L_CXX=yes
17266 hardcode_libdir_flag_spec_CXX='-L$libdir'
17267 hardcode_libdir_separator_CXX=
17271 shared_flag='-shared'
17272 if test "$aix_use_runtimelinking" = yes; then
17273 shared_flag="$shared_flag "'${wl}-G'
17277 if test "$host_cpu" = ia64; then
17278 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17279 # chokes on -Wl,-G. The following line is correct:
17282 if test "$aix_use_runtimelinking" = yes; then
17283 shared_flag='${wl}-G'
17285 shared_flag='${wl}-bM:SRE'
17290 # It seems that -bexpall does not export symbols beginning with
17291 # underscore (_), so it is better to generate a list of symbols to export.
17292 always_export_symbols_CXX=yes
17293 if test "$aix_use_runtimelinking" = yes; then
17294 # Warning - without using the other runtime loading flags (-brtl),
17295 # -berok will link without error, but may produce a broken library.
17296 allow_undefined_flag_CXX='-berok'
17297 # Determine the default libpath from the value encoded in an empty executable.
17298 cat >conftest.$ac_ext <<_ACEOF
17301 cat confdefs.h >>conftest.$ac_ext
17302 cat >>conftest.$ac_ext <<_ACEOF
17303 /* end confdefs.h. */
17313 rm -f conftest.$ac_objext conftest$ac_exeext
17314 if { (ac_try="$ac_link"
17315 case "(($ac_try" in
17316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17317 *) ac_try_echo=$ac_try;;
17319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17320 (eval "$ac_link") 2>conftest.er1
17322 grep -v '^ *+' conftest.er1 >conftest.err
17324 cat conftest.err >&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); } && {
17327 test -z "$ac_cxx_werror_flag" ||
17328 test ! -s conftest.err
17329 } && test -s conftest$ac_exeext &&
17330 $as_test_x conftest$ac_exeext; then
17332 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17334 # Check for a 64-bit object if we didn't find anything.
17335 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; }
17338 echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17345 conftest$ac_exeext conftest.$ac_ext
17346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17348 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17350 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"
17352 if test "$host_cpu" = ia64; then
17353 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17354 allow_undefined_flag_CXX="-z nodefs"
17355 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"
17357 # Determine the default libpath from the value encoded in an empty executable.
17358 cat >conftest.$ac_ext <<_ACEOF
17361 cat confdefs.h >>conftest.$ac_ext
17362 cat >>conftest.$ac_ext <<_ACEOF
17363 /* end confdefs.h. */
17373 rm -f conftest.$ac_objext conftest$ac_exeext
17374 if { (ac_try="$ac_link"
17375 case "(($ac_try" in
17376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377 *) ac_try_echo=$ac_try;;
17379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380 (eval "$ac_link") 2>conftest.er1
17382 grep -v '^ *+' conftest.er1 >conftest.err
17384 cat conftest.err >&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); } && {
17387 test -z "$ac_cxx_werror_flag" ||
17388 test ! -s conftest.err
17389 } && test -s conftest$ac_exeext &&
17390 $as_test_x conftest$ac_exeext; then
17392 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17394 # Check for a 64-bit object if we didn't find anything.
17395 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; }
17398 echo "$as_me: failed program was:" >&5
17399 sed 's/^/| /' conftest.$ac_ext >&5
17404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17405 conftest$ac_exeext conftest.$ac_ext
17406 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17408 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17409 # Warning - without using the other run time loading flags,
17410 # -berok will link without error, but may produce a broken library.
17411 no_undefined_flag_CXX=' ${wl}-bernotok'
17412 allow_undefined_flag_CXX=' ${wl}-berok'
17413 # Exported symbols can be pulled into shared objects from archives
17414 whole_archive_flag_spec_CXX='$convenience'
17415 archive_cmds_need_lc_CXX=yes
17416 # This is similar to how AIX traditionally builds its shared libraries.
17417 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'
17423 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17424 allow_undefined_flag_CXX=unsupported
17425 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17426 # support --undefined. This deserves some investigation. FIXME
17427 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17434 case $cc_basename in
17436 # FIXME: insert proper C++ library support
17442 cygwin* | mingw* | pw32*)
17443 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17444 # as there is no search path for DLLs.
17445 hardcode_libdir_flag_spec_CXX='-L$libdir'
17446 allow_undefined_flag_CXX=unsupported
17447 always_export_symbols_CXX=no
17448 enable_shared_with_static_runtimes_CXX=yes
17450 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17451 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'
17452 # If the export-symbols file already is a .def file (1st line
17453 # is EXPORTS), use it as is; otherwise, prepend...
17454 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17455 cp $export_symbols $output_objdir/$soname.def;
17457 echo EXPORTS > $output_objdir/$soname.def;
17458 cat $export_symbols >> $output_objdir/$soname.def;
17460 $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'
17465 darwin* | rhapsody*)
17467 rhapsody* | darwin1.[012])
17468 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
17471 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17472 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17474 case ${MACOSX_DEPLOYMENT_TARGET} in
17476 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17479 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
17485 archive_cmds_need_lc_CXX=no
17486 hardcode_direct_CXX=no
17487 hardcode_automatic_CXX=yes
17488 hardcode_shlibpath_var_CXX=unsupported
17489 whole_archive_flag_spec_CXX=''
17490 link_all_deplibs_CXX=yes
17492 if test "$GXX" = yes ; then
17493 lt_int_apple_cc_single_mod=no
17494 output_verbose_link_cmd='echo'
17495 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
17496 lt_int_apple_cc_single_mod=yes
17498 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17499 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17501 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'
17503 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17504 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17505 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17506 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}'
17508 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}'
17510 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}'
17512 case $cc_basename in
17514 output_verbose_link_cmd='echo'
17515 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'
17516 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17517 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17518 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}'
17519 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}'
17529 case $cc_basename in
17531 # FIXME: insert proper C++ library support
17535 # Green Hills C++ Compiler
17536 # FIXME: insert proper C++ library support
17540 # FIXME: insert proper C++ library support
17546 # C++ shared libraries reported to be fairly broken before switch to ELF
17550 archive_cmds_need_lc_CXX=no
17552 freebsd* | kfreebsd*-gnu | dragonfly*)
17553 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17560 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17561 hardcode_libdir_separator_CXX=:
17562 export_dynamic_flag_spec_CXX='${wl}-E'
17563 hardcode_direct_CXX=yes
17564 hardcode_minus_L_CXX=yes # Not in the search PATH,
17565 # but as the default
17566 # location of the library.
17568 case $cc_basename in
17570 # FIXME: insert proper C++ library support
17574 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'
17575 # Commands to make compiler produce verbose output that lists
17576 # what "hidden" libraries, object files and flags are used when
17577 # linking a shared library.
17579 # There doesn't appear to be a way to prevent this compiler from
17580 # explicitly linking system object files so we need to strip them
17581 # from the output so that they don't get included in the library
17583 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'
17586 if test "$GXX" = yes; then
17587 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'
17589 # FIXME: insert proper C++ library support
17596 if test $with_gnu_ld = no; then
17597 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17598 hardcode_libdir_separator_CXX=:
17602 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
17605 export_dynamic_flag_spec_CXX='${wl}-E'
17611 hardcode_direct_CXX=no
17612 hardcode_shlibpath_var_CXX=no
17615 hardcode_direct_CXX=yes
17616 hardcode_minus_L_CXX=yes # Not in the search PATH,
17617 # but as the default
17618 # location of the library.
17622 case $cc_basename in
17624 # FIXME: insert proper C++ library support
17630 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17633 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17636 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17639 # Commands to make compiler produce verbose output that lists
17640 # what "hidden" libraries, object files and flags are used when
17641 # linking a shared library.
17643 # There doesn't appear to be a way to prevent this compiler from
17644 # explicitly linking system object files so we need to strip them
17645 # from the output so that they don't get included in the library
17647 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'
17650 if test "$GXX" = yes; then
17651 if test $with_gnu_ld = no; then
17654 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17657 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17660 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'
17665 # FIXME: insert proper C++ library support
17672 hardcode_direct_CXX=no
17673 hardcode_shlibpath_var_CXX=no
17674 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17675 export_dynamic_flag_spec_CXX='${wl}-E'
17676 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17677 # Instead, shared libraries are loaded at an image base (0x10000000 by
17678 # default) and relocated if they conflict, which is a slow very memory
17679 # consuming and fragmenting process. To avoid this, we pick a random,
17680 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17681 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17682 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'
17683 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'
17686 case $cc_basename in
17689 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'
17691 # Archives containing C++ object files must be created using
17692 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17693 # necessary to make sure instantiated templates are included
17695 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17698 if test "$GXX" = yes; then
17699 if test "$with_gnu_ld" = no; then
17700 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'
17702 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'
17705 link_all_deplibs_CXX=yes
17708 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17709 hardcode_libdir_separator_CXX=:
17712 case $cc_basename in
17714 # Kuck and Associates, Inc. (KAI) C++ Compiler
17716 # KCC will only create a shared library if the output file
17717 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17718 # to its proper name (with version) after linking.
17719 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'
17720 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'
17721 # Commands to make compiler produce verbose output that lists
17722 # what "hidden" libraries, object files and flags are used when
17723 # linking a shared library.
17725 # There doesn't appear to be a way to prevent this compiler from
17726 # explicitly linking system object files so we need to strip them
17727 # from the output so that they don't get included in the library
17729 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'
17731 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17732 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17734 # Archives containing C++ object files must be created using
17735 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17736 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17741 # version 8.0 and above of icpc choke on multiply defined symbols
17742 # if we add $predep_objects and $postdep_objects, however 7.1 and
17743 # earlier do not add the objects themselves.
17744 case `$CC -V 2>&1` in
17746 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17747 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'
17749 *) # Version 8.0 or newer
17752 ia64*) tmp_idyn=' -i_dynamic';;
17754 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17755 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'
17758 archive_cmds_need_lc_CXX=no
17759 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17760 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17761 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17764 # Portland Group C++ compiler
17765 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17766 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'
17768 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17769 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17770 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'
17774 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17775 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'
17777 runpath_var=LD_RUN_PATH
17778 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17779 hardcode_libdir_separator_CXX=:
17781 # Commands to make compiler produce verbose output that lists
17782 # what "hidden" libraries, object files and flags are used when
17783 # linking a shared library.
17785 # There doesn't appear to be a way to prevent this compiler from
17786 # explicitly linking system object files so we need to strip them
17787 # from the output so that they don't get included in the library
17789 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'
17794 # FIXME: insert proper C++ library support
17798 # FIXME: insert proper C++ library support
17802 case $cc_basename in
17804 # FIXME: insert proper C++ library support
17808 # FIXME: insert proper C++ library support
17814 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17815 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17817 hardcode_libdir_flag_spec_CXX='-R$libdir'
17818 hardcode_direct_CXX=yes
17819 hardcode_shlibpath_var_CXX=no
17821 # Workaround some broken pre-1.5 toolchains
17822 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17825 # C++ shared libraries are fairly broken
17829 hardcode_direct_CXX=yes
17830 hardcode_shlibpath_var_CXX=no
17831 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17832 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17833 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17834 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17835 export_dynamic_flag_spec_CXX='${wl}-E'
17836 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17838 output_verbose_link_cmd='echo'
17841 case $cc_basename in
17843 # Kuck and Associates, Inc. (KAI) C++ Compiler
17845 # KCC will only create a shared library if the output file
17846 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17847 # to its proper name (with version) after linking.
17848 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'
17850 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17851 hardcode_libdir_separator_CXX=:
17853 # Archives containing C++ object files must be created using
17854 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17855 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17859 # Rational C++ 2.4.1
17860 # FIXME: insert proper C++ library support
17864 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17865 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'
17867 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17868 hardcode_libdir_separator_CXX=:
17870 # Commands to make compiler produce verbose output that lists
17871 # what "hidden" libraries, object files and flags are used when
17872 # linking a shared library.
17874 # There doesn't appear to be a way to prevent this compiler from
17875 # explicitly linking system object files so we need to strip them
17876 # from the output so that they don't get included in the library
17878 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'
17881 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17882 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17883 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'
17885 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17886 hardcode_libdir_separator_CXX=:
17888 # Commands to make compiler produce verbose output that lists
17889 # what "hidden" libraries, object files and flags are used when
17890 # linking a shared library.
17891 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17894 # FIXME: insert proper C++ library support
17901 case $cc_basename in
17903 # Kuck and Associates, Inc. (KAI) C++ Compiler
17905 # KCC will only create a shared library if the output file
17906 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17907 # to its proper name (with version) after linking.
17908 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'
17910 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17911 hardcode_libdir_separator_CXX=:
17913 # Archives containing C++ object files must be created using
17914 # the KAI C++ compiler.
17915 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
17918 # Rational C++ 2.4.1
17919 # FIXME: insert proper C++ library support
17923 allow_undefined_flag_CXX=' -expect_unresolved \*'
17924 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'
17925 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17926 echo "-hidden">> $lib.exp~
17927 $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~
17930 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17931 hardcode_libdir_separator_CXX=:
17933 # Commands to make compiler produce verbose output that lists
17934 # what "hidden" libraries, object files and flags are used when
17935 # linking a shared library.
17937 # There doesn't appear to be a way to prevent this compiler from
17938 # explicitly linking system object files so we need to strip them
17939 # from the output so that they don't get included in the library
17941 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'
17944 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17945 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17946 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'
17948 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17949 hardcode_libdir_separator_CXX=:
17951 # Commands to make compiler produce verbose output that lists
17952 # what "hidden" libraries, object files and flags are used when
17953 # linking a shared library.
17954 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17957 # FIXME: insert proper C++ library support
17964 # FIXME: insert proper C++ library support
17968 case $cc_basename in
17971 # FIXME: insert proper C++ library support
17976 # FIXME: insert proper C++ library support
17980 # FIXME: insert proper C++ library support
17986 case $cc_basename in
17988 # Sun C++ 4.2, 5.x and Centerline C++
17989 archive_cmds_need_lc_CXX=yes
17990 no_undefined_flag_CXX=' -zdefs'
17991 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17992 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17993 $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'
17995 hardcode_libdir_flag_spec_CXX='-R$libdir'
17996 hardcode_shlibpath_var_CXX=no
17998 solaris2.[0-5] | solaris2.[0-5].*) ;;
18000 # The C++ compiler is used as linker so we must use $wl
18001 # flag to pass the commands to the underlying system
18002 # linker. We must also pass each convience library through
18003 # to the system linker between allextract/defaultextract.
18004 # The C++ compiler will combine linker options so we
18005 # cannot just pass the convience library names through
18007 # Supported since Solaris 2.6 (maybe 2.5.1?)
18008 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'
18011 link_all_deplibs_CXX=yes
18013 output_verbose_link_cmd='echo'
18015 # Archives containing C++ object files must be created using
18016 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18017 # necessary to make sure instantiated templates are included
18019 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18022 # Green Hills C++ Compiler
18023 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18025 # The C++ compiler must be used to create the archive.
18026 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18029 # GNU C++ compiler with Solaris linker
18030 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18031 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18032 if $CC --version | grep -v '^2\.7' > /dev/null; then
18033 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18034 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18035 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18037 # Commands to make compiler produce verbose output that lists
18038 # what "hidden" libraries, object files and flags are used when
18039 # linking a shared library.
18040 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18042 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18044 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18045 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18046 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18048 # Commands to make compiler produce verbose output that lists
18049 # what "hidden" libraries, object files and flags are used when
18050 # linking a shared library.
18051 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18054 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18059 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18060 no_undefined_flag_CXX='${wl}-z,text'
18061 archive_cmds_need_lc_CXX=no
18062 hardcode_shlibpath_var_CXX=no
18063 runpath_var='LD_RUN_PATH'
18065 case $cc_basename in
18067 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18068 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18071 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18072 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18076 sysv5* | sco3.2v5* | sco5v6*)
18077 # Note: We can NOT use -z defs as we might desire, because we do not
18078 # link with -lc, and that would cause any symbols used from libc to
18079 # always be unresolved, which means just about no library would
18080 # ever link correctly. If we're not using GNU ld we use -z text
18081 # though, which does catch some bad symbols but isn't as heavy-handed
18083 # For security reasons, it is highly recommended that you always
18084 # use absolute paths for naming shared libraries, and exclude the
18085 # DT_RUNPATH tag from executables and libraries. But doing so
18086 # requires that you compile everything twice, which is a pain.
18087 # So that behaviour is only enabled if SCOABSPATH is set to a
18088 # non-empty value in the environment. Most likely only useful for
18089 # creating official distributions of packages.
18090 # This is a hack until libtool officially supports absolute path
18091 # names for shared libraries.
18092 no_undefined_flag_CXX='${wl}-z,text'
18093 allow_undefined_flag_CXX='${wl}-z,nodefs'
18094 archive_cmds_need_lc_CXX=no
18095 hardcode_shlibpath_var_CXX=no
18096 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18097 hardcode_libdir_separator_CXX=':'
18098 link_all_deplibs_CXX=yes
18099 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18100 runpath_var='LD_RUN_PATH'
18102 case $cc_basename in
18104 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18105 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18108 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18109 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18114 case $cc_basename in
18116 # NonStop-UX NCC 3.20
18117 # FIXME: insert proper C++ library support
18121 # FIXME: insert proper C++ library support
18127 # FIXME: insert proper C++ library support
18131 # FIXME: insert proper C++ library support
18135 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18136 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18137 test "$ld_shlibs_CXX" = no && can_build_shared=no
18143 cat > conftest.$ac_ext <<EOF
18147 Foo (void) { a = 0; }
18153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18154 (eval $ac_compile) 2>&5
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); }; then
18158 # Parse the compiler output and extract the necessary
18159 # objects, libraries and library flags.
18161 # Sentinel used to keep track of whether or not we are before
18162 # the conftest object file.
18163 pre_test_object_deps_done=no
18165 # The `*' in the case matches for architectures that use `case' in
18166 # $output_verbose_cmd can trigger glob expansion during the loop
18167 # eval without this substitution.
18168 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
18170 for p in `eval $output_verbose_link_cmd`; do
18174 # Some compilers place space between "-{L,R}" and the path.
18175 # Remove the space.
18176 if test $p = "-L" \
18177 || test $p = "-R"; then
18184 if test "$pre_test_object_deps_done" = no; then
18187 # Internal compiler library paths should come after those
18188 # provided the user. The postdeps already come after the
18189 # user supplied libs so there is no need to process them.
18190 if test -z "$compiler_lib_search_path_CXX"; then
18191 compiler_lib_search_path_CXX="${prev}${p}"
18193 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18196 # The "-l" case would never come before the object being
18197 # linked, so don't bother handling this case.
18200 if test -z "$postdeps_CXX"; then
18201 postdeps_CXX="${prev}${p}"
18203 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18209 # This assumes that the test object file only shows up
18210 # once in the compiler output.
18211 if test "$p" = "conftest.$objext"; then
18212 pre_test_object_deps_done=yes
18216 if test "$pre_test_object_deps_done" = no; then
18217 if test -z "$predep_objects_CXX"; then
18218 predep_objects_CXX="$p"
18220 predep_objects_CXX="$predep_objects_CXX $p"
18223 if test -z "$postdep_objects_CXX"; then
18224 postdep_objects_CXX="$p"
18226 postdep_objects_CXX="$postdep_objects_CXX $p"
18231 *) ;; # Ignore the rest.
18239 echo "libtool.m4: error: problem compiling CXX test program"
18242 $rm -f confest.$objext
18244 # PORTME: override above test on systems where it is broken
18247 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18248 # hack all around it, let's just trust "g++" to DTRT.
18249 predep_objects_CXX=
18250 postdep_objects_CXX=
18255 case $cc_basename in
18257 # Adding this requires a known-good setup of shared libraries for
18258 # Sun compiler versions before 5.6, else PIC objects from an old
18259 # archive will be linked into the output, leading to subtle bugs.
18260 postdeps_CXX='-lCstd -lCrun'
18267 case " $postdeps_CXX " in
18268 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18271 lt_prog_compiler_wl_CXX=
18272 lt_prog_compiler_pic_CXX=
18273 lt_prog_compiler_static_CXX=
18275 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18276 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18278 # C++ specific cases for pic, static, wl, etc.
18279 if test "$GXX" = yes; then
18280 lt_prog_compiler_wl_CXX='-Wl,'
18281 lt_prog_compiler_static_CXX='-static'
18285 # All AIX code is PIC.
18286 if test "$host_cpu" = ia64; then
18287 # AIX 5 now supports IA64 processor
18288 lt_prog_compiler_static_CXX='-Bstatic'
18292 # FIXME: we need at least 68020 code to build shared libraries, but
18293 # adding the `-m68020' flag to GCC prevents building anything better,
18295 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18297 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18298 # PIC is the default for these OSes.
18300 mingw* | os2* | pw32*)
18301 # This hack is so that the source file can tell whether it is being
18302 # built for inclusion in a dll (and should export symbols for example).
18303 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18305 darwin* | rhapsody*)
18306 # PIC is the default on this platform
18307 # Common symbols not allowed in MH_DYLIB files
18308 lt_prog_compiler_pic_CXX='-fno-common'
18311 # DJGPP does not support shared libraries at all
18312 lt_prog_compiler_pic_CXX=
18315 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18316 # Instead, we relocate shared libraries at runtime.
18319 if test -d /usr/nec; then
18320 lt_prog_compiler_pic_CXX=-Kconform_pic
18324 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18325 # not for PA HP-UX.
18330 lt_prog_compiler_pic_CXX='-fPIC'
18335 lt_prog_compiler_pic_CXX='-fPIC'
18341 # All AIX code is PIC.
18342 if test "$host_cpu" = ia64; then
18343 # AIX 5 now supports IA64 processor
18344 lt_prog_compiler_static_CXX='-Bstatic'
18346 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18350 case $cc_basename in
18352 # Green Hills C++ Compiler
18353 # _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"
18358 # PIC is the default on this platform
18359 # Common symbols not allowed in MH_DYLIB files
18360 case $cc_basename in
18362 lt_prog_compiler_pic_CXX='-qnocommon'
18363 lt_prog_compiler_wl_CXX='-Wl,'
18368 case $cc_basename in
18370 lt_prog_compiler_pic_CXX='-KPIC'
18373 # Green Hills C++ Compiler
18374 lt_prog_compiler_pic_CXX='-pic'
18380 freebsd* | kfreebsd*-gnu | dragonfly*)
18381 # FreeBSD uses GNU C++
18383 hpux9* | hpux10* | hpux11*)
18384 case $cc_basename in
18386 lt_prog_compiler_wl_CXX='-Wl,'
18387 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18388 if test "$host_cpu" != ia64; then
18389 lt_prog_compiler_pic_CXX='+Z'
18393 lt_prog_compiler_wl_CXX='-Wl,'
18394 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18400 lt_prog_compiler_pic_CXX='+Z'
18409 # This is c89, which is MS Visual C++ (no shared libs)
18410 # Anyone wants to do a port?
18412 irix5* | irix6* | nonstopux*)
18413 case $cc_basename in
18415 lt_prog_compiler_wl_CXX='-Wl,'
18416 lt_prog_compiler_static_CXX='-non_shared'
18417 # CC pic flag -KPIC is the default.
18424 case $cc_basename in
18427 lt_prog_compiler_wl_CXX='--backend -Wl,'
18428 lt_prog_compiler_pic_CXX='-fPIC'
18432 lt_prog_compiler_wl_CXX='-Wl,'
18433 lt_prog_compiler_pic_CXX='-KPIC'
18434 lt_prog_compiler_static_CXX='-static'
18437 # Portland Group C++ compiler.
18438 lt_prog_compiler_wl_CXX='-Wl,'
18439 lt_prog_compiler_pic_CXX='-fpic'
18440 lt_prog_compiler_static_CXX='-Bstatic'
18444 # Make sure the PIC flag is empty. It appears that all Alpha
18445 # Linux and Compaq Tru64 Unix objects are PIC.
18446 lt_prog_compiler_pic_CXX=
18447 lt_prog_compiler_static_CXX='-non_shared'
18458 case $cc_basename in
18460 lt_prog_compiler_pic_CXX='-W c,exportall'
18468 osf3* | osf4* | osf5*)
18469 case $cc_basename in
18471 lt_prog_compiler_wl_CXX='--backend -Wl,'
18474 # Rational C++ 2.4.1
18475 lt_prog_compiler_pic_CXX='-pic'
18478 # Digital/Compaq C++
18479 lt_prog_compiler_wl_CXX='-Wl,'
18480 # Make sure the PIC flag is empty. It appears that all Alpha
18481 # Linux and Compaq Tru64 Unix objects are PIC.
18482 lt_prog_compiler_pic_CXX=
18483 lt_prog_compiler_static_CXX='-non_shared'
18492 case $cc_basename in
18494 # Sun C++ 4.2, 5.x and Centerline C++
18495 lt_prog_compiler_pic_CXX='-KPIC'
18496 lt_prog_compiler_static_CXX='-Bstatic'
18497 lt_prog_compiler_wl_CXX='-Qoption ld '
18500 # Green Hills C++ Compiler
18501 lt_prog_compiler_pic_CXX='-PIC'
18508 case $cc_basename in
18511 lt_prog_compiler_pic_CXX='-pic'
18512 lt_prog_compiler_static_CXX='-Bstatic'
18516 lt_prog_compiler_pic_CXX='-pic'
18523 case $cc_basename in
18525 # NonStop-UX NCC 3.20
18526 lt_prog_compiler_pic_CXX='-KPIC'
18532 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18533 case $cc_basename in
18535 lt_prog_compiler_wl_CXX='-Wl,'
18536 lt_prog_compiler_pic_CXX='-KPIC'
18537 lt_prog_compiler_static_CXX='-Bstatic'
18544 lt_prog_compiler_can_build_shared_CXX=no
18549 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18550 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
18553 # Check to make sure the PIC flag actually works.
18555 if test -n "$lt_prog_compiler_pic_CXX"; then
18557 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18558 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
18559 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18560 echo $ECHO_N "(cached) $ECHO_C" >&6
18562 lt_prog_compiler_pic_works_CXX=no
18563 ac_outfile=conftest.$ac_objext
18564 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18565 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18566 # Insert the option either (1) after the last *FLAGS variable, or
18567 # (2) before a word containing "conftest.", or (3) at the end.
18568 # Note that $ac_compile itself does not contain backslashes and begins
18569 # with a dollar sign (not a hyphen), so the echo should work correctly.
18570 # The option is referenced via a variable to avoid confusing sed.
18571 lt_compile=`echo "$ac_compile" | $SED \
18572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18574 -e 's:$: $lt_compiler_flag:'`
18575 (eval echo "\"\$as_me:18575: $lt_compile\"" >&5)
18576 (eval "$lt_compile" 2>conftest.err)
18578 cat conftest.err >&5
18579 echo "$as_me:18579: \$? = $ac_status" >&5
18580 if (exit $ac_status) && test -s "$ac_outfile"; then
18581 # The compiler can only warn and ignore the option if not recognized
18582 # So say no if there are warnings other than the usual output.
18583 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18584 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18585 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18586 lt_prog_compiler_pic_works_CXX=yes
18592 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18593 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
18595 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18596 case $lt_prog_compiler_pic_CXX in
18598 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18601 lt_prog_compiler_pic_CXX=
18602 lt_prog_compiler_can_build_shared_CXX=no
18607 # For platforms which do not support PIC, -DPIC is meaningless:
18609 lt_prog_compiler_pic_CXX=
18612 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18617 # Check to make sure the static flag actually works.
18619 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18620 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18621 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18622 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
18623 echo $ECHO_N "(cached) $ECHO_C" >&6
18625 lt_prog_compiler_static_works_CXX=no
18626 save_LDFLAGS="$LDFLAGS"
18627 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18628 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18629 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18630 # The linker can only warn and ignore the option if not recognized
18631 # So say no if there are warnings
18632 if test -s conftest.err; then
18633 # Append any errors to the config.log.
18634 cat conftest.err 1>&5
18635 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18637 if diff conftest.exp conftest.er2 >/dev/null; then
18638 lt_prog_compiler_static_works_CXX=yes
18641 lt_prog_compiler_static_works_CXX=yes
18645 LDFLAGS="$save_LDFLAGS"
18648 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
18649 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
18651 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
18654 lt_prog_compiler_static_CXX=
18658 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18659 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18660 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18661 echo $ECHO_N "(cached) $ECHO_C" >&6
18663 lt_cv_prog_compiler_c_o_CXX=no
18664 $rm -r conftest 2>/dev/null
18668 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18670 lt_compiler_flag="-o out/conftest2.$ac_objext"
18671 # Insert the option either (1) after the last *FLAGS variable, or
18672 # (2) before a word containing "conftest.", or (3) at the end.
18673 # Note that $ac_compile itself does not contain backslashes and begins
18674 # with a dollar sign (not a hyphen), so the echo should work correctly.
18675 lt_compile=`echo "$ac_compile" | $SED \
18676 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18677 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18678 -e 's:$: $lt_compiler_flag:'`
18679 (eval echo "\"\$as_me:18679: $lt_compile\"" >&5)
18680 (eval "$lt_compile" 2>out/conftest.err)
18682 cat out/conftest.err >&5
18683 echo "$as_me:18683: \$? = $ac_status" >&5
18684 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18686 # The compiler can only warn and ignore the option if not recognized
18687 # So say no if there are warnings
18688 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18689 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18690 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18691 lt_cv_prog_compiler_c_o_CXX=yes
18696 # SGI C++ compiler will create directory out/ii_files/ for
18697 # template instantiation
18698 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18699 $rm out/* && rmdir out
18705 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18706 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
18709 hard_links="nottested"
18710 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18711 # do not overwrite the value of need_locks provided by the user
18712 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18713 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18716 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18718 ln conftest.a conftest.b 2>&5 || hard_links=no
18719 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18720 { echo "$as_me:$LINENO: result: $hard_links" >&5
18721 echo "${ECHO_T}$hard_links" >&6; }
18722 if test "$hard_links" = no; then
18723 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18724 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18731 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18732 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18734 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18737 # If we're using GNU nm, then we don't want the "-C" option.
18738 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18739 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18740 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'
18742 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'
18746 export_symbols_cmds_CXX="$ltdll_cmds"
18749 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'
18752 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18756 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18757 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18758 test "$ld_shlibs_CXX" = no && can_build_shared=no
18761 # Do we need to explicitly link libc?
18763 case "x$archive_cmds_need_lc_CXX" in
18765 # Assume -lc should be added
18766 archive_cmds_need_lc_CXX=yes
18768 if test "$enable_shared" = yes && test "$GCC" = yes; then
18769 case $archive_cmds_CXX in
18771 # FIXME: we may have to deal with multi-command sequences.
18774 # Test whether the compiler implicitly links with -lc since on some
18775 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18776 # to ld, don't add -lc before -lgcc.
18777 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18778 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18780 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18783 (eval $ac_compile) 2>&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); } 2>conftest.err; then
18789 libobjs=conftest.$ac_objext
18791 wl=$lt_prog_compiler_wl_CXX
18792 pic_flag=$lt_prog_compiler_pic_CXX
18798 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18799 allow_undefined_flag_CXX=
18800 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18801 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); }
18806 archive_cmds_need_lc_CXX=no
18808 archive_cmds_need_lc_CXX=yes
18810 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18812 cat conftest.err 1>&5
18815 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
18816 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
18823 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18824 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18825 library_names_spec=
18826 libname_spec='lib$name'
18830 postuninstall_cmds=
18834 shlibpath_overrides_runpath=unknown
18836 dynamic_linker="$host_os ld.so"
18837 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18838 if test "$GCC" = yes; then
18839 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18840 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18841 # if the path contains ";" then we assume it to be the separator
18842 # otherwise default to the standard path separator (i.e. ":") - it is
18843 # assumed that no part of a normal pathname contains ";" but that should
18844 # okay in the real world where ";" in dirpaths is itself problematic.
18845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18850 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18852 need_lib_prefix=unknown
18853 hardcode_into_libs=no
18855 # when you set need_version to no, make sure it does not cause -set_version
18856 # flags to be left without arguments
18857 need_version=unknown
18862 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18863 shlibpath_var=LIBPATH
18865 # AIX 3 has no versioning support, so we append a major version to the name.
18866 soname_spec='${libname}${release}${shared_ext}$major'
18873 hardcode_into_libs=yes
18874 if test "$host_cpu" = ia64; then
18875 # AIX 5 supports IA64
18876 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18877 shlibpath_var=LD_LIBRARY_PATH
18879 # With GCC up to 2.95.x, collect2 would create an import file
18880 # for dependence libraries. The import file would start with
18881 # the line `#! .'. This would cause the generated library to
18882 # depend on `.', always an invalid library. This was fixed in
18883 # development snapshots of GCC prior to 3.0.
18885 aix4 | aix4.[01] | aix4.[01].*)
18886 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18888 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18891 can_build_shared=no
18895 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18896 # soname into executable. Probably we can add versioning support to
18897 # collect2, so additional links can be useful in future.
18898 if test "$aix_use_runtimelinking" = yes; then
18899 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18900 # instead of lib<name>.a to let people know that these are not
18901 # typical AIX shared libraries.
18902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18904 # We preserve .a as extension for shared libraries through AIX4.2
18905 # and later when we are not doing run time linking.
18906 library_names_spec='${libname}${release}.a $libname.a'
18907 soname_spec='${libname}${release}${shared_ext}$major'
18909 shlibpath_var=LIBPATH
18914 library_names_spec='$libname.ixlibrary $libname.a'
18915 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18916 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'
18920 library_names_spec='${libname}${shared_ext}'
18921 dynamic_linker="$host_os ld.so"
18922 shlibpath_var=LIBRARY_PATH
18928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18929 soname_spec='${libname}${release}${shared_ext}$major'
18930 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18931 shlibpath_var=LD_LIBRARY_PATH
18932 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18933 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18934 # the default ld.so.conf also contains /usr/contrib/lib and
18935 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18936 # libtool to hard-code these into programs
18939 cygwin* | mingw* | pw32*)
18940 version_type=windows
18945 case $GCC,$host_os in
18946 yes,cygwin* | yes,mingw* | yes,pw32*)
18947 library_names_spec='$libname.dll.a'
18948 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18949 postinstall_cmds='base_file=`basename \${file}`~
18950 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18951 dldir=$destdir/`dirname \$dlpath`~
18952 test -d \$dldir || mkdir -p \$dldir~
18953 $install_prog $dir/$dlname \$dldir/$dlname~
18954 chmod a+x \$dldir/$dlname'
18955 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18956 dlpath=$dir/\$dldll~
18958 shlibpath_overrides_runpath=yes
18962 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18963 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18964 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18967 # MinGW DLLs use traditional 'lib' prefix
18968 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18969 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18970 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18971 # It is most probably a Windows format PATH printed by
18972 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18973 # path with ; separators, and with drive letters. We can handle the
18974 # drive letters (cygwin fileutils understands them), so leave them,
18975 # especially as we might pass files found there to a mingw objdump,
18976 # which wouldn't understand a cygwinified path. Ahh.
18977 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18979 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18983 # pw32 DLLs use 'pw' prefix rather than 'lib'
18984 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18990 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18993 dynamic_linker='Win32 ld.exe'
18994 # FIXME: first we should search . and the directory the executable is in
18998 darwin* | rhapsody*)
18999 dynamic_linker="$host_os dyld"
19000 version_type=darwin
19003 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19004 soname_spec='${libname}${release}${major}$shared_ext'
19005 shlibpath_overrides_runpath=yes
19006 shlibpath_var=DYLD_LIBRARY_PATH
19007 shrext_cmds='.dylib'
19008 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19009 if test "$GCC" = yes; then
19010 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"`
19012 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19014 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19022 soname_spec='${libname}${release}${shared_ext}$major'
19023 shlibpath_var=LD_LIBRARY_PATH
19034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19035 soname_spec='${libname}${release}${shared_ext}$major'
19036 shlibpath_var=LD_LIBRARY_PATH
19037 shlibpath_overrides_runpath=no
19038 hardcode_into_libs=yes
19039 dynamic_linker='GNU ld.so'
19042 freebsd* | dragonfly*)
19043 # DragonFly does not have aout. When/if they implement a new
19044 # versioning mechanism, adjust this.
19045 if test -x /usr/bin/objformat; then
19046 objformat=`/usr/bin/objformat`
19049 freebsd[123]*) objformat=aout ;;
19050 *) objformat=elf ;;
19053 version_type=freebsd-$objformat
19054 case $version_type in
19056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19061 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19065 shlibpath_var=LD_LIBRARY_PATH
19068 shlibpath_overrides_runpath=yes
19070 freebsd3.[01]* | freebsdelf3.[01]*)
19071 shlibpath_overrides_runpath=yes
19072 hardcode_into_libs=yes
19074 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19075 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19076 shlibpath_overrides_runpath=no
19077 hardcode_into_libs=yes
19079 freebsd*) # from 4.6 on
19080 shlibpath_overrides_runpath=yes
19081 hardcode_into_libs=yes
19090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19091 soname_spec='${libname}${release}${shared_ext}$major'
19092 shlibpath_var=LD_LIBRARY_PATH
19093 hardcode_into_libs=yes
19096 hpux9* | hpux10* | hpux11*)
19097 # Give a soname corresponding to the major version so that dld.sl refuses to
19098 # link against other versions.
19105 hardcode_into_libs=yes
19106 dynamic_linker="$host_os dld.so"
19107 shlibpath_var=LD_LIBRARY_PATH
19108 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19110 soname_spec='${libname}${release}${shared_ext}$major'
19111 if test "X$HPUX_IA64_MODE" = X32; then
19112 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19114 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19116 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19120 hardcode_into_libs=yes
19121 dynamic_linker="$host_os dld.sl"
19122 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19123 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19125 soname_spec='${libname}${release}${shared_ext}$major'
19126 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19127 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19131 dynamic_linker="$host_os dld.sl"
19132 shlibpath_var=SHLIB_PATH
19133 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19135 soname_spec='${libname}${release}${shared_ext}$major'
19138 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19139 postinstall_cmds='chmod 555 $lib'
19146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19147 soname_spec='${libname}${release}${shared_ext}$major'
19148 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19149 shlibpath_var=LD_LIBRARY_PATH
19150 shlibpath_overrides_runpath=no
19151 hardcode_into_libs=yes
19154 irix5* | irix6* | nonstopux*)
19156 nonstopux*) version_type=nonstopux ;;
19158 if test "$lt_cv_prog_gnu_ld" = yes; then
19166 soname_spec='${libname}${release}${shared_ext}$major'
19167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19169 irix5* | nonstopux*)
19170 libsuff= shlibsuff=
19173 case $LD in # libtool.m4 will add one of these switches to LD
19174 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19175 libsuff= shlibsuff= libmagic=32-bit;;
19176 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19177 libsuff=32 shlibsuff=N32 libmagic=N32;;
19178 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19179 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19180 *) libsuff= shlibsuff= libmagic=never-match;;
19184 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19185 shlibpath_overrides_runpath=no
19186 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19187 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19188 hardcode_into_libs=yes
19191 # No shared lib support for Linux oldld, aout, or coff.
19192 linux*oldld* | linux*aout* | linux*coff*)
19196 # This must be Linux ELF.
19201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19202 soname_spec='${libname}${release}${shared_ext}$major'
19203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19204 shlibpath_var=LD_LIBRARY_PATH
19205 shlibpath_overrides_runpath=no
19206 # This implies no fast_install, which is unacceptable.
19207 # Some rework will be needed to allow for fast_install
19208 # before this can be enabled.
19209 hardcode_into_libs=yes
19211 # Append ld.so.conf contents to the search path
19212 if test -f /etc/ld.so.conf; then
19213 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' ' '`
19214 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19217 # We used to test for /lib/ld.so.1 and disable shared libraries on
19218 # powerpc, because MkLinux only supported shared libraries with the
19219 # GNU dynamic linker. Since this was broken with cross compilers,
19220 # most powerpc-linux boxes support dynamic linking these days and
19221 # people can always --disable-shared, the test was removed, and we
19222 # assume the GNU/Linux dynamic linker is in use.
19223 dynamic_linker='GNU/Linux ld.so'
19230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19231 soname_spec='${libname}${release}${shared_ext}$major'
19232 shlibpath_var=LD_LIBRARY_PATH
19233 shlibpath_overrides_runpath=no
19234 hardcode_into_libs=yes
19235 dynamic_linker='GNU ld.so'
19242 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19245 dynamic_linker='NetBSD (a.out) ld.so'
19247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19248 soname_spec='${libname}${release}${shared_ext}$major'
19249 dynamic_linker='NetBSD ld.elf_so'
19251 shlibpath_var=LD_LIBRARY_PATH
19252 shlibpath_overrides_runpath=yes
19253 hardcode_into_libs=yes
19258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19259 shlibpath_var=LD_LIBRARY_PATH
19260 shlibpath_overrides_runpath=yes
19267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19268 soname_spec='${libname}${release}${shared_ext}$major'
19269 shlibpath_var=LD_LIBRARY_PATH
19270 shlibpath_overrides_runpath=yes
19275 sys_lib_dlsearch_path_spec="/usr/lib"
19277 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19279 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19280 *) need_version=no ;;
19282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19283 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19284 shlibpath_var=LD_LIBRARY_PATH
19285 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19287 openbsd2.[89] | openbsd2.[89].*)
19288 shlibpath_overrides_runpath=no
19291 shlibpath_overrides_runpath=yes
19295 shlibpath_overrides_runpath=yes
19300 libname_spec='$name'
19303 library_names_spec='$libname${shared_ext} $libname.a'
19304 dynamic_linker='OS/2 ld.exe'
19305 shlibpath_var=LIBPATH
19308 osf3* | osf4* | osf5*)
19312 soname_spec='${libname}${release}${shared_ext}$major'
19313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19314 shlibpath_var=LD_LIBRARY_PATH
19315 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19316 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19324 soname_spec='${libname}${release}${shared_ext}$major'
19325 shlibpath_var=LD_LIBRARY_PATH
19326 shlibpath_overrides_runpath=yes
19327 hardcode_into_libs=yes
19328 # ldd complains unless libraries are executable
19329 postinstall_cmds='chmod +x $lib'
19334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19335 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19336 shlibpath_var=LD_LIBRARY_PATH
19337 shlibpath_overrides_runpath=yes
19338 if test "$with_gnu_ld" = yes; then
19346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19347 soname_spec='${libname}${release}${shared_ext}$major'
19348 shlibpath_var=LD_LIBRARY_PATH
19349 case $host_vendor in
19351 shlibpath_overrides_runpath=no
19353 export_dynamic_flag_spec='${wl}-Blargedynsym'
19354 runpath_var=LD_RUN_PATH
19362 shlibpath_overrides_runpath=no
19363 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19369 if test -d /usr/nec ;then
19371 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19372 soname_spec='$libname${shared_ext}.$major'
19373 shlibpath_var=LD_LIBRARY_PATH
19377 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19378 version_type=freebsd-elf
19381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19382 soname_spec='${libname}${release}${shared_ext}$major'
19383 shlibpath_var=LD_LIBRARY_PATH
19384 hardcode_into_libs=yes
19385 if test "$with_gnu_ld" = yes; then
19386 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19387 shlibpath_overrides_runpath=no
19389 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19390 shlibpath_overrides_runpath=yes
19393 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19397 sys_lib_dlsearch_path_spec='/usr/lib'
19402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19403 soname_spec='${libname}${release}${shared_ext}$major'
19404 shlibpath_var=LD_LIBRARY_PATH
19411 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19412 echo "${ECHO_T}$dynamic_linker" >&6; }
19413 test "$dynamic_linker" = no && can_build_shared=no
19415 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19416 if test "$GCC" = yes; then
19417 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19420 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19421 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19422 hardcode_action_CXX=
19423 if test -n "$hardcode_libdir_flag_spec_CXX" || \
19424 test -n "$runpath_var_CXX" || \
19425 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19427 # We can hardcode non-existant directories.
19428 if test "$hardcode_direct_CXX" != no &&
19429 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19430 # have to relink, otherwise we might link with an installed library
19431 # when we should be linking with a yet-to-be-installed one
19432 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19433 test "$hardcode_minus_L_CXX" != no; then
19434 # Linking always hardcodes the temporary library directory.
19435 hardcode_action_CXX=relink
19437 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19438 hardcode_action_CXX=immediate
19441 # We cannot hardcode anything, or else we can only hardcode existing
19443 hardcode_action_CXX=unsupported
19445 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19446 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
19448 if test "$hardcode_action_CXX" = relink; then
19449 # Fast installation is not supported
19450 enable_fast_install=no
19451 elif test "$shlibpath_overrides_runpath" = yes ||
19452 test "$enable_shared" = no; then
19453 # Fast installation is not necessary
19454 enable_fast_install=needless
19458 # The else clause should only fire when bootstrapping the
19459 # libtool distribution, otherwise you forgot to ship ltmain.sh
19460 # with your package, and you will get complaints that there are
19461 # no rules to generate ltmain.sh.
19462 if test -f "$ltmain"; then
19463 # See if we are running on zsh, and set the options which allow our commands through
19464 # without removal of \ escapes.
19465 if test -n "${ZSH_VERSION+set}" ; then
19466 setopt NO_GLOB_SUBST
19468 # Now quote all the things that may contain metacharacters while being
19469 # careful not to overquote the AC_SUBSTed values. We take copies of the
19470 # variables and quote the copies for generation of the libtool script.
19471 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19473 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19474 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19475 deplibs_check_method reload_flag reload_cmds need_locks \
19476 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19477 lt_cv_sys_global_symbol_to_c_name_address \
19478 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19479 old_postinstall_cmds old_postuninstall_cmds \
19483 lt_prog_compiler_wl_CXX \
19484 lt_prog_compiler_pic_CXX \
19485 lt_prog_compiler_static_CXX \
19486 lt_prog_compiler_no_builtin_flag_CXX \
19487 export_dynamic_flag_spec_CXX \
19488 thread_safe_flag_spec_CXX \
19489 whole_archive_flag_spec_CXX \
19490 enable_shared_with_static_runtimes_CXX \
19491 old_archive_cmds_CXX \
19492 old_archive_from_new_cmds_CXX \
19493 predep_objects_CXX \
19494 postdep_objects_CXX \
19497 compiler_lib_search_path_CXX \
19499 archive_expsym_cmds_CXX \
19500 postinstall_cmds_CXX \
19501 postuninstall_cmds_CXX \
19502 old_archive_from_expsyms_cmds_CXX \
19503 allow_undefined_flag_CXX \
19504 no_undefined_flag_CXX \
19505 export_symbols_cmds_CXX \
19506 hardcode_libdir_flag_spec_CXX \
19507 hardcode_libdir_flag_spec_ld_CXX \
19508 hardcode_libdir_separator_CXX \
19509 hardcode_automatic_CXX \
19511 module_expsym_cmds_CXX \
19512 lt_cv_prog_compiler_c_o_CXX \
19513 exclude_expsyms_CXX \
19514 include_expsyms_CXX; do
19517 old_archive_cmds_CXX | \
19518 old_archive_from_new_cmds_CXX | \
19519 archive_cmds_CXX | \
19520 archive_expsym_cmds_CXX | \
19521 module_cmds_CXX | \
19522 module_expsym_cmds_CXX | \
19523 old_archive_from_expsyms_cmds_CXX | \
19524 export_symbols_cmds_CXX | \
19525 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19526 postinstall_cmds | postuninstall_cmds | \
19527 old_postinstall_cmds | old_postuninstall_cmds | \
19528 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19529 # Double-quote double-evaled strings.
19530 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19533 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19539 *'\$0 --fallback-echo"')
19540 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19546 cat <<__EOF__ >> "$cfgfile"
19547 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19549 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19551 # Shell to use when invoking shell scripts.
19554 # Whether or not to build shared libraries.
19555 build_libtool_libs=$enable_shared
19557 # Whether or not to build static libraries.
19558 build_old_libs=$enable_static
19560 # Whether or not to add -lc for building shared libraries.
19561 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19563 # Whether or not to disallow shared libs when runtime libs are static
19564 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19566 # Whether or not to optimize for fast installation.
19567 fast_install=$enable_fast_install
19570 host_alias=$host_alias
19574 # The build system.
19575 build_alias=$build_alias
19579 # An echo program that does not interpret backslashes.
19584 AR_FLAGS=$lt_AR_FLAGS
19589 # LTCC compiler flags.
19590 LTCFLAGS=$lt_LTCFLAGS
19592 # A language-specific compiler.
19593 CC=$lt_compiler_CXX
19595 # Is the compiler the GNU C compiler?
19601 # The linker used to build libraries.
19604 # Whether we need hard or soft links.
19607 # A BSD-compatible nm program.
19610 # A symbol stripping program
19613 # Used to examine libraries when file_magic_cmd begins "file"
19614 MAGIC_CMD=$MAGIC_CMD
19616 # Used on cygwin: DLL creation program.
19619 # Used on cygwin: object dumper.
19622 # Used on cygwin: assembler.
19625 # The name of the directory that contains temporary libtool files.
19628 # How to create reloadable object files.
19629 reload_flag=$lt_reload_flag
19630 reload_cmds=$lt_reload_cmds
19632 # How to pass a linker flag through the compiler.
19633 wl=$lt_lt_prog_compiler_wl_CXX
19635 # Object file suffix (normally "o").
19636 objext="$ac_objext"
19638 # Old archive suffix (normally "a").
19641 # Shared library suffix (normally ".so").
19642 shrext_cmds='$shrext_cmds'
19644 # Executable file suffix (normally "").
19647 # Additional compiler flags for building library objects.
19648 pic_flag=$lt_lt_prog_compiler_pic_CXX
19651 # What is the maximum length of a command?
19652 max_cmd_len=$lt_cv_sys_max_cmd_len
19654 # Does compiler simultaneously support -c and -o options?
19655 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19657 # Must we lock files when doing compilation?
19658 need_locks=$lt_need_locks
19660 # Do we need the lib prefix for modules?
19661 need_lib_prefix=$need_lib_prefix
19663 # Do we need a version for libraries?
19664 need_version=$need_version
19666 # Whether dlopen is supported.
19667 dlopen_support=$enable_dlopen
19669 # Whether dlopen of programs is supported.
19670 dlopen_self=$enable_dlopen_self
19672 # Whether dlopen of statically linked programs is supported.
19673 dlopen_self_static=$enable_dlopen_self_static
19675 # Compiler flag to prevent dynamic linking.
19676 link_static_flag=$lt_lt_prog_compiler_static_CXX
19678 # Compiler flag to turn off builtin functions.
19679 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19681 # Compiler flag to allow reflexive dlopens.
19682 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19684 # Compiler flag to generate shared objects directly from archives.
19685 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19687 # Compiler flag to generate thread-safe objects.
19688 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19690 # Library versioning type.
19691 version_type=$version_type
19693 # Format of library name prefix.
19694 libname_spec=$lt_libname_spec
19696 # List of archive names. First name is the real one, the rest are links.
19697 # The last name is the one that the linker finds with -lNAME.
19698 library_names_spec=$lt_library_names_spec
19700 # The coded name of the library, if different from the real name.
19701 soname_spec=$lt_soname_spec
19703 # Commands used to build and install an old-style archive.
19705 old_archive_cmds=$lt_old_archive_cmds_CXX
19706 old_postinstall_cmds=$lt_old_postinstall_cmds
19707 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19709 # Create an old-style archive from a shared archive.
19710 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19712 # Create a temporary old-style archive to link instead of a shared archive.
19713 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19715 # Commands used to build and install a shared archive.
19716 archive_cmds=$lt_archive_cmds_CXX
19717 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19718 postinstall_cmds=$lt_postinstall_cmds
19719 postuninstall_cmds=$lt_postuninstall_cmds
19721 # Commands used to build a loadable module (assumed same as above if empty)
19722 module_cmds=$lt_module_cmds_CXX
19723 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19725 # Commands to strip libraries.
19726 old_striplib=$lt_old_striplib
19727 striplib=$lt_striplib
19729 # Dependencies to place before the objects being linked to create a
19731 predep_objects=$lt_predep_objects_CXX
19733 # Dependencies to place after the objects being linked to create a
19735 postdep_objects=$lt_postdep_objects_CXX
19737 # Dependencies to place before the objects being linked to create a
19739 predeps=$lt_predeps_CXX
19741 # Dependencies to place after the objects being linked to create a
19743 postdeps=$lt_postdeps_CXX
19745 # The library search path used internally by the compiler when linking
19746 # a shared library.
19747 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19749 # Method to check whether dependent libraries are shared objects.
19750 deplibs_check_method=$lt_deplibs_check_method
19752 # Command to use when deplibs_check_method == file_magic.
19753 file_magic_cmd=$lt_file_magic_cmd
19755 # Flag that allows shared libraries with undefined symbols to be built.
19756 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19758 # Flag that forces no undefined symbols.
19759 no_undefined_flag=$lt_no_undefined_flag_CXX
19761 # Commands used to finish a libtool library installation in a directory.
19762 finish_cmds=$lt_finish_cmds
19764 # Same as above, but a single script fragment to be evaled but not shown.
19765 finish_eval=$lt_finish_eval
19767 # Take the output of nm and produce a listing of raw symbols and C names.
19768 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19770 # Transform the output of nm in a proper C declaration
19771 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19773 # Transform the output of nm in a C name address pair
19774 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19776 # This is the shared library runtime path variable.
19777 runpath_var=$runpath_var
19779 # This is the shared library path variable.
19780 shlibpath_var=$shlibpath_var
19782 # Is shlibpath searched before the hard-coded library search path?
19783 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19785 # How to hardcode a shared library path into an executable.
19786 hardcode_action=$hardcode_action_CXX
19788 # Whether we should hardcode library paths into libraries.
19789 hardcode_into_libs=$hardcode_into_libs
19791 # Flag to hardcode \$libdir into a binary during linking.
19792 # This must work even if \$libdir does not exist.
19793 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19795 # If ld is used when linking, flag to hardcode \$libdir into
19796 # a binary during linking. This must work even if \$libdir does
19798 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19800 # Whether we need a single -rpath flag with a separated argument.
19801 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19803 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19804 # resulting binary.
19805 hardcode_direct=$hardcode_direct_CXX
19807 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19808 # resulting binary.
19809 hardcode_minus_L=$hardcode_minus_L_CXX
19811 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19812 # the resulting binary.
19813 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19815 # Set to yes if building a shared library automatically hardcodes DIR into the library
19816 # and all subsequent libraries and executables linked against it.
19817 hardcode_automatic=$hardcode_automatic_CXX
19819 # Variables whose values should be saved in libtool wrapper scripts and
19820 # restored at relink time.
19821 variables_saved_for_relink="$variables_saved_for_relink"
19823 # Whether libtool must link a program against all its dependency libraries.
19824 link_all_deplibs=$link_all_deplibs_CXX
19826 # Compile-time system search path for libraries
19827 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19829 # Run-time system search path for libraries
19830 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19832 # Fix the shell variable \$srcfile for the compiler.
19833 fix_srcfile_path="$fix_srcfile_path_CXX"
19835 # Set to yes if exported symbols are required.
19836 always_export_symbols=$always_export_symbols_CXX
19838 # The commands to list exported symbols.
19839 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19841 # The commands to extract the exported symbol list from a shared archive.
19842 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19844 # Symbols that should not be listed in the preloaded symbols.
19845 exclude_expsyms=$lt_exclude_expsyms_CXX
19847 # Symbols that must always be exported.
19848 include_expsyms=$lt_include_expsyms_CXX
19850 # ### END LIBTOOL TAG CONFIG: $tagname
19856 # If there is no Makefile yet, we rely on a make rule to execute
19857 # `config.status --recheck' to rerun these tests and create the
19858 # libtool script then.
19859 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19860 if test -f "$ltmain_in"; then
19861 test -f Makefile && make "$ltmain"
19867 ac_cpp='$CPP $CPPFLAGS'
19868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19876 with_gnu_ldcxx=$with_gnu_ld
19877 with_gnu_ld=$lt_save_with_gnu_ld
19878 lt_cv_path_LDCXX=$lt_cv_path_LD
19879 lt_cv_path_LD=$lt_save_path_LD
19880 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19881 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19889 if test -n "$F77" && test "X$F77" != "Xno"; then
19892 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19893 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19894 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19897 archive_cmds_need_lc_F77=no
19898 allow_undefined_flag_F77=
19899 always_export_symbols_F77=no
19900 archive_expsym_cmds_F77=
19901 export_dynamic_flag_spec_F77=
19902 hardcode_direct_F77=no
19903 hardcode_libdir_flag_spec_F77=
19904 hardcode_libdir_flag_spec_ld_F77=
19905 hardcode_libdir_separator_F77=
19906 hardcode_minus_L_F77=no
19907 hardcode_automatic_F77=no
19909 module_expsym_cmds_F77=
19910 link_all_deplibs_F77=unknown
19911 old_archive_cmds_F77=$old_archive_cmds
19912 no_undefined_flag_F77=
19913 whole_archive_flag_spec_F77=
19914 enable_shared_with_static_runtimes_F77=no
19916 # Source file extension for f77 test sources.
19919 # Object file extension for compiled f77 test sources.
19923 # Code to be used in simple compile tests
19924 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
19926 # Code to be used in simple link tests
19927 lt_simple_link_test_code=" program t\n end\n"
19929 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19931 # If no C compiler was specified, use CC.
19934 # If no C compiler flags were specified, use CFLAGS.
19935 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19937 # Allow CC to be a program name with arguments.
19941 # save warnings/boilerplate of simple test code
19942 ac_outfile=conftest.$ac_objext
19943 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19944 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19945 _lt_compiler_boilerplate=`cat conftest.err`
19948 ac_outfile=conftest.$ac_objext
19949 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19950 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19951 _lt_linker_boilerplate=`cat conftest.err`
19955 # Allow CC to be a program name with arguments.
19960 for cc_temp in $compiler""; do
19962 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19963 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19968 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19971 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19972 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
19973 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
19974 echo "${ECHO_T}$can_build_shared" >&6; }
19976 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19977 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
19978 test "$can_build_shared" = "no" && enable_shared=no
19980 # On AIX, shared libraries and static libraries use the same namespace, and
19981 # are all built from PIC.
19984 test "$enable_shared" = yes && enable_static=no
19985 if test -n "$RANLIB"; then
19986 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19987 postinstall_cmds='$RANLIB $lib'
19991 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19992 test "$enable_shared" = yes && enable_static=no
19996 { echo "$as_me:$LINENO: result: $enable_shared" >&5
19997 echo "${ECHO_T}$enable_shared" >&6; }
19999 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20000 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20001 # Make sure either enable_shared or enable_static is yes.
20002 test "$enable_shared" = yes || enable_static=yes
20003 { echo "$as_me:$LINENO: result: $enable_static" >&5
20004 echo "${ECHO_T}$enable_static" >&6; }
20009 lt_prog_compiler_wl_F77=
20010 lt_prog_compiler_pic_F77=
20011 lt_prog_compiler_static_F77=
20013 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20014 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20016 if test "$GCC" = yes; then
20017 lt_prog_compiler_wl_F77='-Wl,'
20018 lt_prog_compiler_static_F77='-static'
20022 # All AIX code is PIC.
20023 if test "$host_cpu" = ia64; then
20024 # AIX 5 now supports IA64 processor
20025 lt_prog_compiler_static_F77='-Bstatic'
20030 # FIXME: we need at least 68020 code to build shared libraries, but
20031 # adding the `-m68020' flag to GCC prevents building anything better,
20033 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20036 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20037 # PIC is the default for these OSes.
20040 mingw* | pw32* | os2*)
20041 # This hack is so that the source file can tell whether it is being
20042 # built for inclusion in a dll (and should export symbols for example).
20043 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20046 darwin* | rhapsody*)
20047 # PIC is the default on this platform
20048 # Common symbols not allowed in MH_DYLIB files
20049 lt_prog_compiler_pic_F77='-fno-common'
20053 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20054 # Instead, we relocate shared libraries at runtime.
20058 # Just because we use GCC doesn't mean we suddenly get shared libraries
20059 # on systems that don't support them.
20060 lt_prog_compiler_can_build_shared_F77=no
20065 if test -d /usr/nec; then
20066 lt_prog_compiler_pic_F77=-Kconform_pic
20071 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20072 # not for PA HP-UX.
20078 lt_prog_compiler_pic_F77='-fPIC'
20084 lt_prog_compiler_pic_F77='-fPIC'
20088 # PORTME Check for flag to pass linker flags through the system compiler.
20091 lt_prog_compiler_wl_F77='-Wl,'
20092 if test "$host_cpu" = ia64; then
20093 # AIX 5 now supports IA64 processor
20094 lt_prog_compiler_static_F77='-Bstatic'
20096 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20100 # PIC is the default on this platform
20101 # Common symbols not allowed in MH_DYLIB files
20102 case $cc_basename in
20104 lt_prog_compiler_pic_F77='-qnocommon'
20105 lt_prog_compiler_wl_F77='-Wl,'
20110 mingw* | pw32* | os2*)
20111 # This hack is so that the source file can tell whether it is being
20112 # built for inclusion in a dll (and should export symbols for example).
20113 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20116 hpux9* | hpux10* | hpux11*)
20117 lt_prog_compiler_wl_F77='-Wl,'
20118 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20119 # not for PA HP-UX.
20125 lt_prog_compiler_pic_F77='+Z'
20128 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20129 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20132 irix5* | irix6* | nonstopux*)
20133 lt_prog_compiler_wl_F77='-Wl,'
20134 # PIC (with -KPIC) is the default.
20135 lt_prog_compiler_static_F77='-non_shared'
20139 lt_prog_compiler_pic_F77='-KPIC'
20140 lt_prog_compiler_static_F77='-Bstatic'
20144 case $cc_basename in
20146 lt_prog_compiler_wl_F77='-Wl,'
20147 lt_prog_compiler_pic_F77='-KPIC'
20148 lt_prog_compiler_static_F77='-static'
20150 pgcc* | pgf77* | pgf90* | pgf95*)
20151 # Portland Group compilers (*not* the Pentium gcc compiler,
20152 # which looks to be a dead project)
20153 lt_prog_compiler_wl_F77='-Wl,'
20154 lt_prog_compiler_pic_F77='-fpic'
20155 lt_prog_compiler_static_F77='-Bstatic'
20158 lt_prog_compiler_wl_F77='-Wl,'
20159 # All Alpha code is PIC.
20160 lt_prog_compiler_static_F77='-non_shared'
20165 osf3* | osf4* | osf5*)
20166 lt_prog_compiler_wl_F77='-Wl,'
20167 # All OSF/1 code is PIC.
20168 lt_prog_compiler_static_F77='-non_shared'
20172 lt_prog_compiler_pic_F77='-KPIC'
20173 lt_prog_compiler_static_F77='-Bstatic'
20174 case $cc_basename in
20175 f77* | f90* | f95*)
20176 lt_prog_compiler_wl_F77='-Qoption ld ';;
20178 lt_prog_compiler_wl_F77='-Wl,';;
20183 lt_prog_compiler_wl_F77='-Qoption ld '
20184 lt_prog_compiler_pic_F77='-PIC'
20185 lt_prog_compiler_static_F77='-Bstatic'
20188 sysv4 | sysv4.2uw2* | sysv4.3*)
20189 lt_prog_compiler_wl_F77='-Wl,'
20190 lt_prog_compiler_pic_F77='-KPIC'
20191 lt_prog_compiler_static_F77='-Bstatic'
20195 if test -d /usr/nec ;then
20196 lt_prog_compiler_pic_F77='-Kconform_pic'
20197 lt_prog_compiler_static_F77='-Bstatic'
20201 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20202 lt_prog_compiler_wl_F77='-Wl,'
20203 lt_prog_compiler_pic_F77='-KPIC'
20204 lt_prog_compiler_static_F77='-Bstatic'
20208 lt_prog_compiler_wl_F77='-Wl,'
20209 lt_prog_compiler_can_build_shared_F77=no
20213 lt_prog_compiler_pic_F77='-pic'
20214 lt_prog_compiler_static_F77='-Bstatic'
20218 lt_prog_compiler_can_build_shared_F77=no
20223 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20224 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
20227 # Check to make sure the PIC flag actually works.
20229 if test -n "$lt_prog_compiler_pic_F77"; then
20231 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20232 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
20233 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20234 echo $ECHO_N "(cached) $ECHO_C" >&6
20236 lt_prog_compiler_pic_works_F77=no
20237 ac_outfile=conftest.$ac_objext
20238 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20239 lt_compiler_flag="$lt_prog_compiler_pic_F77"
20240 # Insert the option either (1) after the last *FLAGS variable, or
20241 # (2) before a word containing "conftest.", or (3) at the end.
20242 # Note that $ac_compile itself does not contain backslashes and begins
20243 # with a dollar sign (not a hyphen), so the echo should work correctly.
20244 # The option is referenced via a variable to avoid confusing sed.
20245 lt_compile=`echo "$ac_compile" | $SED \
20246 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20248 -e 's:$: $lt_compiler_flag:'`
20249 (eval echo "\"\$as_me:20249: $lt_compile\"" >&5)
20250 (eval "$lt_compile" 2>conftest.err)
20252 cat conftest.err >&5
20253 echo "$as_me:20253: \$? = $ac_status" >&5
20254 if (exit $ac_status) && test -s "$ac_outfile"; then
20255 # The compiler can only warn and ignore the option if not recognized
20256 # So say no if there are warnings other than the usual output.
20257 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20258 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20259 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20260 lt_prog_compiler_pic_works_F77=yes
20266 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20267 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
20269 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20270 case $lt_prog_compiler_pic_F77 in
20272 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20275 lt_prog_compiler_pic_F77=
20276 lt_prog_compiler_can_build_shared_F77=no
20281 # For platforms which do not support PIC, -DPIC is meaningless:
20283 lt_prog_compiler_pic_F77=
20286 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20291 # Check to make sure the static flag actually works.
20293 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
20294 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20295 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20296 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
20297 echo $ECHO_N "(cached) $ECHO_C" >&6
20299 lt_prog_compiler_static_works_F77=no
20300 save_LDFLAGS="$LDFLAGS"
20301 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20302 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20303 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20304 # The linker can only warn and ignore the option if not recognized
20305 # So say no if there are warnings
20306 if test -s conftest.err; then
20307 # Append any errors to the config.log.
20308 cat conftest.err 1>&5
20309 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20310 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20311 if diff conftest.exp conftest.er2 >/dev/null; then
20312 lt_prog_compiler_static_works_F77=yes
20315 lt_prog_compiler_static_works_F77=yes
20319 LDFLAGS="$save_LDFLAGS"
20322 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
20323 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
20325 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
20328 lt_prog_compiler_static_F77=
20332 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20333 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20334 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20335 echo $ECHO_N "(cached) $ECHO_C" >&6
20337 lt_cv_prog_compiler_c_o_F77=no
20338 $rm -r conftest 2>/dev/null
20342 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20344 lt_compiler_flag="-o out/conftest2.$ac_objext"
20345 # Insert the option either (1) after the last *FLAGS variable, or
20346 # (2) before a word containing "conftest.", or (3) at the end.
20347 # Note that $ac_compile itself does not contain backslashes and begins
20348 # with a dollar sign (not a hyphen), so the echo should work correctly.
20349 lt_compile=`echo "$ac_compile" | $SED \
20350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20352 -e 's:$: $lt_compiler_flag:'`
20353 (eval echo "\"\$as_me:20353: $lt_compile\"" >&5)
20354 (eval "$lt_compile" 2>out/conftest.err)
20356 cat out/conftest.err >&5
20357 echo "$as_me:20357: \$? = $ac_status" >&5
20358 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20360 # The compiler can only warn and ignore the option if not recognized
20361 # So say no if there are warnings
20362 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20363 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20364 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20365 lt_cv_prog_compiler_c_o_F77=yes
20370 # SGI C++ compiler will create directory out/ii_files/ for
20371 # template instantiation
20372 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20373 $rm out/* && rmdir out
20379 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20380 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
20383 hard_links="nottested"
20384 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20385 # do not overwrite the value of need_locks provided by the user
20386 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20387 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20390 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20392 ln conftest.a conftest.b 2>&5 || hard_links=no
20393 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20394 { echo "$as_me:$LINENO: result: $hard_links" >&5
20395 echo "${ECHO_T}$hard_links" >&6; }
20396 if test "$hard_links" = no; then
20397 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20398 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20405 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20406 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20409 allow_undefined_flag_F77=
20410 enable_shared_with_static_runtimes_F77=no
20412 archive_expsym_cmds_F77=
20413 old_archive_From_new_cmds_F77=
20414 old_archive_from_expsyms_cmds_F77=
20415 export_dynamic_flag_spec_F77=
20416 whole_archive_flag_spec_F77=
20417 thread_safe_flag_spec_F77=
20418 hardcode_libdir_flag_spec_F77=
20419 hardcode_libdir_flag_spec_ld_F77=
20420 hardcode_libdir_separator_F77=
20421 hardcode_direct_F77=no
20422 hardcode_minus_L_F77=no
20423 hardcode_shlibpath_var_F77=unsupported
20424 link_all_deplibs_F77=unknown
20425 hardcode_automatic_F77=no
20427 module_expsym_cmds_F77=
20428 always_export_symbols_F77=no
20429 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20430 # include_expsyms should be a list of space-separated symbols to be *always*
20431 # included in the symbol list
20432 include_expsyms_F77=
20433 # exclude_expsyms can be an extended regexp of symbols to exclude
20434 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20435 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20436 # as well as any symbol that contains `d'.
20437 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20438 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20439 # platforms (ab)use it in PIC code, but their linkers get confused if
20440 # the symbol is explicitly referenced. Since portable code cannot
20441 # rely on this symbol name, it's probably fine to never include it in
20442 # preloaded symbol tables.
20443 extract_expsyms_cmds=
20444 # Just being paranoid about ensuring that cc_basename is set.
20445 for cc_temp in $compiler""; do
20447 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20448 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20453 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20456 cygwin* | mingw* | pw32*)
20457 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20458 # When not using gcc, we currently assume that we are using
20459 # Microsoft Visual C++.
20460 if test "$GCC" != yes; then
20465 # we just hope/assume this is gcc and not c89 (= MSVC++)
20474 if test "$with_gnu_ld" = yes; then
20475 # If archive_cmds runs LD, not CC, wlarc should be empty
20478 # Set some defaults for GNU ld with shared library support. These
20479 # are reset later if shared libraries are not supported. Putting them
20480 # here allows them to be overridden if necessary.
20481 runpath_var=LD_RUN_PATH
20482 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20483 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20484 # ancient GNU ld didn't support --whole-archive et. al.
20485 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20486 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20488 whole_archive_flag_spec_F77=
20490 supports_anon_versioning=no
20491 case `$LD -v 2>/dev/null` in
20492 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20493 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20494 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20495 *\ 2.11.*) ;; # other 2.11 versions
20496 *) supports_anon_versioning=yes ;;
20499 # See if GNU ld supports shared libraries.
20501 aix3* | aix4* | aix5*)
20502 # On AIX/PPC, the GNU linker is very broken
20503 if test "$host_cpu" != ia64; then
20507 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20508 *** to be unable to reliably create shared libraries on AIX.
20509 *** Therefore, libtool is disabling shared libraries support. If you
20510 *** really care for shared libraries, you may want to modify your PATH
20511 *** so that a non-GNU linker is found, and then restart.
20518 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)'
20519 hardcode_libdir_flag_spec_F77='-L$libdir'
20520 hardcode_minus_L_F77=yes
20522 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20523 # that the semantics of dynamic libraries on AmigaOS, at least up
20524 # to version 4, is to share data among multiple programs linked
20525 # with the same dynamic library. Since this doesn't match the
20526 # behavior of shared libraries on other platforms, we can't use
20532 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20533 allow_undefined_flag_F77=unsupported
20534 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20535 # support --undefined. This deserves some investigation. FIXME
20536 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20542 cygwin* | mingw* | pw32*)
20543 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20544 # as there is no search path for DLLs.
20545 hardcode_libdir_flag_spec_F77='-L$libdir'
20546 allow_undefined_flag_F77=unsupported
20547 always_export_symbols_F77=no
20548 enable_shared_with_static_runtimes_F77=yes
20549 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20551 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20552 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20553 # If the export-symbols file already is a .def file (1st line
20554 # is EXPORTS), use it as is; otherwise, prepend...
20555 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20556 cp $export_symbols $output_objdir/$soname.def;
20558 echo EXPORTS > $output_objdir/$soname.def;
20559 cat $export_symbols >> $output_objdir/$soname.def;
20561 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20568 hardcode_direct_F77=no
20569 hardcode_shlibpath_var_F77=no
20570 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20571 export_dynamic_flag_spec_F77='${wl}-E'
20572 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20573 # Instead, shared libraries are loaded at an image base (0x10000000 by
20574 # default) and relocated if they conflict, which is a slow very memory
20575 # consuming and fragmenting process. To avoid this, we pick a random,
20576 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20577 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20578 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'
20579 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'
20583 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20585 case $cc_basename,$host_cpu in
20586 pgcc*) # Portland Group C compiler
20587 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'
20588 tmp_addflag=' $pic_flag'
20590 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
20591 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'
20592 tmp_addflag=' $pic_flag -Mnomain' ;;
20593 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20594 tmp_addflag=' -i_dynamic' ;;
20595 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20596 tmp_addflag=' -i_dynamic -nofor_main' ;;
20597 ifc* | ifort*) # Intel Fortran compiler
20598 tmp_addflag=' -nofor_main' ;;
20600 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20602 if test $supports_anon_versioning = yes; then
20603 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20604 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20605 $echo "local: *; };" >> $output_objdir/$libname.ver~
20606 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20614 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20615 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20618 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20619 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20624 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20628 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20629 *** create shared libraries on Solaris systems. Therefore, libtool
20630 *** is disabling shared libraries support. We urge you to upgrade GNU
20631 *** binutils to release 2.9.1 or newer. Another option is to modify
20632 *** your PATH or compiler configuration so that the native linker is
20633 *** used, and then restart.
20636 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20637 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20638 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20644 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20645 case `$LD -v 2>&1` in
20646 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20650 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20651 *** reliably create shared libraries on SCO systems. Therefore, libtool
20652 *** is disabling shared libraries support. We urge you to upgrade GNU
20653 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20654 *** your PATH or compiler configuration so that the native linker is
20655 *** used, and then restart.
20660 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20661 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20662 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20663 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20672 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20674 hardcode_direct_F77=yes
20675 hardcode_shlibpath_var_F77=no
20679 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20680 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20681 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20688 if test "$ld_shlibs_F77" = no; then
20690 hardcode_libdir_flag_spec_F77=
20691 export_dynamic_flag_spec_F77=
20692 whole_archive_flag_spec_F77=
20695 # PORTME fill in a description of your system's linker (not GNU ld)
20698 allow_undefined_flag_F77=unsupported
20699 always_export_symbols_F77=yes
20700 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'
20701 # Note: this linker hardcodes the directories in LIBPATH if there
20702 # are no directories specified by -L.
20703 hardcode_minus_L_F77=yes
20704 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20705 # Neither direct hardcoding nor static linking is supported with a
20707 hardcode_direct_F77=unsupported
20712 if test "$host_cpu" = ia64; then
20713 # On IA64, the linker does run time linking by default, so we don't
20714 # have to do anything special.
20715 aix_use_runtimelinking=no
20716 exp_sym_flag='-Bexport'
20719 # If we're using GNU nm, then we don't want the "-C" option.
20720 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20721 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20722 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'
20724 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'
20726 aix_use_runtimelinking=no
20728 # Test if we are trying to use run time linking or normal
20729 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20730 # need to do runtime linking.
20731 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20732 for ld_flag in $LDFLAGS; do
20733 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20734 aix_use_runtimelinking=yes
20741 exp_sym_flag='-bexport'
20742 no_entry_flag='-bnoentry'
20745 # When large executables or shared objects are built, AIX ld can
20746 # have problems creating the table of contents. If linking a library
20747 # or program results in "error TOC overflow" add -mminimal-toc to
20748 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20749 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20751 archive_cmds_F77=''
20752 hardcode_direct_F77=yes
20753 hardcode_libdir_separator_F77=':'
20754 link_all_deplibs_F77=yes
20756 if test "$GCC" = yes; then
20757 case $host_os in aix4.[012]|aix4.[012].*)
20758 # We only want to do this on AIX 4.2 and lower, the check
20759 # below for broken collect2 doesn't work under 4.3+
20760 collect2name=`${CC} -print-prog-name=collect2`
20761 if test -f "$collect2name" && \
20762 strings "$collect2name" | grep resolve_lib_name >/dev/null
20764 # We have reworked collect2
20765 hardcode_direct_F77=yes
20767 # We have old collect2
20768 hardcode_direct_F77=unsupported
20769 # It fails to find uninstalled libraries when the uninstalled
20770 # path is not listed in the libpath. Setting hardcode_minus_L
20771 # to unsupported forces relinking
20772 hardcode_minus_L_F77=yes
20773 hardcode_libdir_flag_spec_F77='-L$libdir'
20774 hardcode_libdir_separator_F77=
20778 shared_flag='-shared'
20779 if test "$aix_use_runtimelinking" = yes; then
20780 shared_flag="$shared_flag "'${wl}-G'
20784 if test "$host_cpu" = ia64; then
20785 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20786 # chokes on -Wl,-G. The following line is correct:
20789 if test "$aix_use_runtimelinking" = yes; then
20790 shared_flag='${wl}-G'
20792 shared_flag='${wl}-bM:SRE'
20797 # It seems that -bexpall does not export symbols beginning with
20798 # underscore (_), so it is better to generate a list of symbols to export.
20799 always_export_symbols_F77=yes
20800 if test "$aix_use_runtimelinking" = yes; then
20801 # Warning - without using the other runtime loading flags (-brtl),
20802 # -berok will link without error, but may produce a broken library.
20803 allow_undefined_flag_F77='-berok'
20804 # Determine the default libpath from the value encoded in an empty executable.
20805 cat >conftest.$ac_ext <<_ACEOF
20810 rm -f conftest.$ac_objext conftest$ac_exeext
20811 if { (ac_try="$ac_link"
20812 case "(($ac_try" in
20813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20814 *) ac_try_echo=$ac_try;;
20816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20817 (eval "$ac_link") 2>conftest.er1
20819 grep -v '^ *+' conftest.er1 >conftest.err
20821 cat conftest.err >&5
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); } && {
20824 test -z "$ac_f77_werror_flag" ||
20825 test ! -s conftest.err
20826 } && test -s conftest$ac_exeext &&
20827 $as_test_x conftest$ac_exeext; then
20829 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20831 # Check for a 64-bit object if we didn't find anything.
20832 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; }
20835 echo "$as_me: failed program was:" >&5
20836 sed 's/^/| /' conftest.$ac_ext >&5
20841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20842 conftest$ac_exeext conftest.$ac_ext
20843 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20845 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20846 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"
20848 if test "$host_cpu" = ia64; then
20849 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20850 allow_undefined_flag_F77="-z nodefs"
20851 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"
20853 # Determine the default libpath from the value encoded in an empty executable.
20854 cat >conftest.$ac_ext <<_ACEOF
20859 rm -f conftest.$ac_objext conftest$ac_exeext
20860 if { (ac_try="$ac_link"
20861 case "(($ac_try" in
20862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863 *) ac_try_echo=$ac_try;;
20865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866 (eval "$ac_link") 2>conftest.er1
20868 grep -v '^ *+' conftest.er1 >conftest.err
20870 cat conftest.err >&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } && {
20873 test -z "$ac_f77_werror_flag" ||
20874 test ! -s conftest.err
20875 } && test -s conftest$ac_exeext &&
20876 $as_test_x conftest$ac_exeext; then
20878 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20880 # Check for a 64-bit object if we didn't find anything.
20881 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; }
20884 echo "$as_me: failed program was:" >&5
20885 sed 's/^/| /' conftest.$ac_ext >&5
20890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20891 conftest$ac_exeext conftest.$ac_ext
20892 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20894 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20895 # Warning - without using the other run time loading flags,
20896 # -berok will link without error, but may produce a broken library.
20897 no_undefined_flag_F77=' ${wl}-bernotok'
20898 allow_undefined_flag_F77=' ${wl}-berok'
20899 # Exported symbols can be pulled into shared objects from archives
20900 whole_archive_flag_spec_F77='$convenience'
20901 archive_cmds_need_lc_F77=yes
20902 # This is similar to how AIX traditionally builds its shared libraries.
20903 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'
20909 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)'
20910 hardcode_libdir_flag_spec_F77='-L$libdir'
20911 hardcode_minus_L_F77=yes
20912 # see comment about different semantics on the GNU ld section
20917 export_dynamic_flag_spec_F77=-rdynamic
20920 cygwin* | mingw* | pw32*)
20921 # When not using gcc, we currently assume that we are using
20922 # Microsoft Visual C++.
20923 # hardcode_libdir_flag_spec is actually meaningless, as there is
20924 # no search path for DLLs.
20925 hardcode_libdir_flag_spec_F77=' '
20926 allow_undefined_flag_F77=unsupported
20927 # Tell ltmain to make .lib files, not .a files.
20929 # Tell ltmain to make .dll files, not .so files.
20931 # FIXME: Setting linknames here is a bad hack.
20932 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20933 # The linker will automatically build a .lib file if we build a DLL.
20934 old_archive_From_new_cmds_F77='true'
20935 # FIXME: Should let the user specify the lib program.
20936 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
20937 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
20938 enable_shared_with_static_runtimes_F77=yes
20941 darwin* | rhapsody*)
20943 rhapsody* | darwin1.[012])
20944 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
20947 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20948 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20950 case ${MACOSX_DEPLOYMENT_TARGET} in
20952 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20955 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
20961 archive_cmds_need_lc_F77=no
20962 hardcode_direct_F77=no
20963 hardcode_automatic_F77=yes
20964 hardcode_shlibpath_var_F77=unsupported
20965 whole_archive_flag_spec_F77=''
20966 link_all_deplibs_F77=yes
20967 if test "$GCC" = yes ; then
20968 output_verbose_link_cmd='echo'
20969 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20970 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20971 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20972 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}'
20973 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}'
20975 case $cc_basename in
20977 output_verbose_link_cmd='echo'
20978 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20979 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20980 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20981 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}'
20982 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}'
20992 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20993 hardcode_libdir_flag_spec_F77='-L$libdir'
20994 hardcode_shlibpath_var_F77=no
21001 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21002 # support. Future versions do this automatically, but an explicit c++rt0.o
21003 # does not break anything, and helps significantly (at the cost of a little
21006 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21007 hardcode_libdir_flag_spec_F77='-R$libdir'
21008 hardcode_direct_F77=yes
21009 hardcode_shlibpath_var_F77=no
21012 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21014 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21015 hardcode_direct_F77=yes
21016 hardcode_minus_L_F77=yes
21017 hardcode_shlibpath_var_F77=no
21020 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21021 freebsd* | kfreebsd*-gnu | dragonfly*)
21022 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21023 hardcode_libdir_flag_spec_F77='-R$libdir'
21024 hardcode_direct_F77=yes
21025 hardcode_shlibpath_var_F77=no
21029 if test "$GCC" = yes; then
21030 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'
21032 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'
21034 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21035 hardcode_libdir_separator_F77=:
21036 hardcode_direct_F77=yes
21038 # hardcode_minus_L: Not really in the search PATH,
21039 # but as the default location of the library.
21040 hardcode_minus_L_F77=yes
21041 export_dynamic_flag_spec_F77='${wl}-E'
21045 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21046 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21048 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21050 if test "$with_gnu_ld" = no; then
21051 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21052 hardcode_libdir_separator_F77=:
21054 hardcode_direct_F77=yes
21055 export_dynamic_flag_spec_F77='${wl}-E'
21057 # hardcode_minus_L: Not really in the search PATH,
21058 # but as the default location of the library.
21059 hardcode_minus_L_F77=yes
21064 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21067 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21070 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21073 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21079 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21082 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21085 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21089 if test "$with_gnu_ld" = no; then
21090 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21091 hardcode_libdir_separator_F77=:
21095 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21096 hardcode_direct_F77=no
21097 hardcode_shlibpath_var_F77=no
21100 hardcode_direct_F77=yes
21101 export_dynamic_flag_spec_F77='${wl}-E'
21103 # hardcode_minus_L: Not really in the search PATH,
21104 # but as the default location of the library.
21105 hardcode_minus_L_F77=yes
21111 irix5* | irix6* | nonstopux*)
21112 if test "$GCC" = yes; then
21113 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'
21115 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'
21116 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21118 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21119 hardcode_libdir_separator_F77=:
21120 link_all_deplibs_F77=yes
21124 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21125 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21127 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21129 hardcode_libdir_flag_spec_F77='-R$libdir'
21130 hardcode_direct_F77=yes
21131 hardcode_shlibpath_var_F77=no
21135 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21136 hardcode_direct_F77=yes
21137 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21138 hardcode_libdir_separator_F77=:
21139 hardcode_shlibpath_var_F77=no
21143 hardcode_direct_F77=yes
21144 hardcode_shlibpath_var_F77=no
21145 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21146 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21147 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21148 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21149 export_dynamic_flag_spec_F77='${wl}-E'
21152 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21153 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21154 hardcode_libdir_flag_spec_F77='-R$libdir'
21157 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21158 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21165 hardcode_libdir_flag_spec_F77='-L$libdir'
21166 hardcode_minus_L_F77=yes
21167 allow_undefined_flag_F77=unsupported
21168 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'
21169 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21173 if test "$GCC" = yes; then
21174 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21175 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'
21177 allow_undefined_flag_F77=' -expect_unresolved \*'
21178 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'
21180 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21181 hardcode_libdir_separator_F77=:
21184 osf4* | osf5*) # as osf3* with the addition of -msym flag
21185 if test "$GCC" = yes; then
21186 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21187 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'
21188 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21190 allow_undefined_flag_F77=' -expect_unresolved \*'
21191 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'
21192 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~
21193 $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'
21195 # Both c and cxx compiler support -rpath directly
21196 hardcode_libdir_flag_spec_F77='-rpath $libdir'
21198 hardcode_libdir_separator_F77=:
21202 no_undefined_flag_F77=' -z text'
21203 if test "$GCC" = yes; then
21205 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21206 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21207 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21210 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21211 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21212 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21214 hardcode_libdir_flag_spec_F77='-R$libdir'
21215 hardcode_shlibpath_var_F77=no
21217 solaris2.[0-5] | solaris2.[0-5].*) ;;
21219 # The compiler driver will combine linker options so we
21220 # cannot just pass the convience library names through
21221 # without $wl, iff we do not link with $LD.
21222 # Luckily, gcc supports the same syntax we need for Sun Studio.
21223 # Supported since Solaris 2.6 (maybe 2.5.1?)
21226 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21228 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' ;;
21231 link_all_deplibs_F77=yes
21235 if test "x$host_vendor" = xsequent; then
21236 # Use $CC to link under sequent, because it throws in some extra .o
21237 # files that make .init and .fini sections work.
21238 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21240 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21242 hardcode_libdir_flag_spec_F77='-L$libdir'
21243 hardcode_direct_F77=yes
21244 hardcode_minus_L_F77=yes
21245 hardcode_shlibpath_var_F77=no
21249 case $host_vendor in
21251 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21252 hardcode_direct_F77=yes # is this really true???
21255 ## LD is ld it makes a PLAMLIB
21256 ## CC just makes a GrossModule.
21257 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21258 reload_cmds_F77='$CC -r -o $output$reload_objs'
21259 hardcode_direct_F77=no
21262 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21263 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21266 runpath_var='LD_RUN_PATH'
21267 hardcode_shlibpath_var_F77=no
21271 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21272 hardcode_shlibpath_var_F77=no
21273 export_dynamic_flag_spec_F77='-Bexport'
21277 if test -d /usr/nec; then
21278 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21279 hardcode_shlibpath_var_F77=no
21280 runpath_var=LD_RUN_PATH
21281 hardcode_runpath_var=yes
21286 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
21287 no_undefined_flag_F77='${wl}-z,text'
21288 archive_cmds_need_lc_F77=no
21289 hardcode_shlibpath_var_F77=no
21290 runpath_var='LD_RUN_PATH'
21292 if test "$GCC" = yes; then
21293 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21294 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21296 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21297 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21301 sysv5* | sco3.2v5* | sco5v6*)
21302 # Note: We can NOT use -z defs as we might desire, because we do not
21303 # link with -lc, and that would cause any symbols used from libc to
21304 # always be unresolved, which means just about no library would
21305 # ever link correctly. If we're not using GNU ld we use -z text
21306 # though, which does catch some bad symbols but isn't as heavy-handed
21308 no_undefined_flag_F77='${wl}-z,text'
21309 allow_undefined_flag_F77='${wl}-z,nodefs'
21310 archive_cmds_need_lc_F77=no
21311 hardcode_shlibpath_var_F77=no
21312 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21313 hardcode_libdir_separator_F77=':'
21314 link_all_deplibs_F77=yes
21315 export_dynamic_flag_spec_F77='${wl}-Bexport'
21316 runpath_var='LD_RUN_PATH'
21318 if test "$GCC" = yes; then
21319 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21320 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21322 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21323 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21328 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21329 hardcode_libdir_flag_spec_F77='-L$libdir'
21330 hardcode_shlibpath_var_F77=no
21339 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21340 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
21341 test "$ld_shlibs_F77" = no && can_build_shared=no
21344 # Do we need to explicitly link libc?
21346 case "x$archive_cmds_need_lc_F77" in
21348 # Assume -lc should be added
21349 archive_cmds_need_lc_F77=yes
21351 if test "$enable_shared" = yes && test "$GCC" = yes; then
21352 case $archive_cmds_F77 in
21354 # FIXME: we may have to deal with multi-command sequences.
21357 # Test whether the compiler implicitly links with -lc since on some
21358 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21359 # to ld, don't add -lc before -lgcc.
21360 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21361 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
21363 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21366 (eval $ac_compile) 2>&5
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); } 2>conftest.err; then
21372 libobjs=conftest.$ac_objext
21374 wl=$lt_prog_compiler_wl_F77
21375 pic_flag=$lt_prog_compiler_pic_F77
21381 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21382 allow_undefined_flag_F77=
21383 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21384 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); }
21389 archive_cmds_need_lc_F77=no
21391 archive_cmds_need_lc_F77=yes
21393 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21395 cat conftest.err 1>&5
21398 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21399 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
21406 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21407 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
21408 library_names_spec=
21409 libname_spec='lib$name'
21413 postuninstall_cmds=
21417 shlibpath_overrides_runpath=unknown
21419 dynamic_linker="$host_os ld.so"
21420 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21421 if test "$GCC" = yes; then
21422 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21423 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21424 # if the path contains ";" then we assume it to be the separator
21425 # otherwise default to the standard path separator (i.e. ":") - it is
21426 # assumed that no part of a normal pathname contains ";" but that should
21427 # okay in the real world where ";" in dirpaths is itself problematic.
21428 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21430 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21433 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21435 need_lib_prefix=unknown
21436 hardcode_into_libs=no
21438 # when you set need_version to no, make sure it does not cause -set_version
21439 # flags to be left without arguments
21440 need_version=unknown
21445 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21446 shlibpath_var=LIBPATH
21448 # AIX 3 has no versioning support, so we append a major version to the name.
21449 soname_spec='${libname}${release}${shared_ext}$major'
21456 hardcode_into_libs=yes
21457 if test "$host_cpu" = ia64; then
21458 # AIX 5 supports IA64
21459 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21460 shlibpath_var=LD_LIBRARY_PATH
21462 # With GCC up to 2.95.x, collect2 would create an import file
21463 # for dependence libraries. The import file would start with
21464 # the line `#! .'. This would cause the generated library to
21465 # depend on `.', always an invalid library. This was fixed in
21466 # development snapshots of GCC prior to 3.0.
21468 aix4 | aix4.[01] | aix4.[01].*)
21469 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21471 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21474 can_build_shared=no
21478 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21479 # soname into executable. Probably we can add versioning support to
21480 # collect2, so additional links can be useful in future.
21481 if test "$aix_use_runtimelinking" = yes; then
21482 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21483 # instead of lib<name>.a to let people know that these are not
21484 # typical AIX shared libraries.
21485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21487 # We preserve .a as extension for shared libraries through AIX4.2
21488 # and later when we are not doing run time linking.
21489 library_names_spec='${libname}${release}.a $libname.a'
21490 soname_spec='${libname}${release}${shared_ext}$major'
21492 shlibpath_var=LIBPATH
21497 library_names_spec='$libname.ixlibrary $libname.a'
21498 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21499 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'
21503 library_names_spec='${libname}${shared_ext}'
21504 dynamic_linker="$host_os ld.so"
21505 shlibpath_var=LIBRARY_PATH
21511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21512 soname_spec='${libname}${release}${shared_ext}$major'
21513 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21514 shlibpath_var=LD_LIBRARY_PATH
21515 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21516 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21517 # the default ld.so.conf also contains /usr/contrib/lib and
21518 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21519 # libtool to hard-code these into programs
21522 cygwin* | mingw* | pw32*)
21523 version_type=windows
21528 case $GCC,$host_os in
21529 yes,cygwin* | yes,mingw* | yes,pw32*)
21530 library_names_spec='$libname.dll.a'
21531 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21532 postinstall_cmds='base_file=`basename \${file}`~
21533 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21534 dldir=$destdir/`dirname \$dlpath`~
21535 test -d \$dldir || mkdir -p \$dldir~
21536 $install_prog $dir/$dlname \$dldir/$dlname~
21537 chmod a+x \$dldir/$dlname'
21538 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21539 dlpath=$dir/\$dldll~
21541 shlibpath_overrides_runpath=yes
21545 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21546 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21547 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21550 # MinGW DLLs use traditional 'lib' prefix
21551 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21552 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21553 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21554 # It is most probably a Windows format PATH printed by
21555 # mingw gcc, but we are running on Cygwin. Gcc prints its search
21556 # path with ; separators, and with drive letters. We can handle the
21557 # drive letters (cygwin fileutils understands them), so leave them,
21558 # especially as we might pass files found there to a mingw objdump,
21559 # which wouldn't understand a cygwinified path. Ahh.
21560 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21562 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21566 # pw32 DLLs use 'pw' prefix rather than 'lib'
21567 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21573 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21576 dynamic_linker='Win32 ld.exe'
21577 # FIXME: first we should search . and the directory the executable is in
21581 darwin* | rhapsody*)
21582 dynamic_linker="$host_os dyld"
21583 version_type=darwin
21586 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21587 soname_spec='${libname}${release}${major}$shared_ext'
21588 shlibpath_overrides_runpath=yes
21589 shlibpath_var=DYLD_LIBRARY_PATH
21590 shrext_cmds='.dylib'
21591 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21592 if test "$GCC" = yes; then
21593 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"`
21595 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21597 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21605 soname_spec='${libname}${release}${shared_ext}$major'
21606 shlibpath_var=LD_LIBRARY_PATH
21617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21618 soname_spec='${libname}${release}${shared_ext}$major'
21619 shlibpath_var=LD_LIBRARY_PATH
21620 shlibpath_overrides_runpath=no
21621 hardcode_into_libs=yes
21622 dynamic_linker='GNU ld.so'
21625 freebsd* | dragonfly*)
21626 # DragonFly does not have aout. When/if they implement a new
21627 # versioning mechanism, adjust this.
21628 if test -x /usr/bin/objformat; then
21629 objformat=`/usr/bin/objformat`
21632 freebsd[123]*) objformat=aout ;;
21633 *) objformat=elf ;;
21636 version_type=freebsd-$objformat
21637 case $version_type in
21639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21644 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21648 shlibpath_var=LD_LIBRARY_PATH
21651 shlibpath_overrides_runpath=yes
21653 freebsd3.[01]* | freebsdelf3.[01]*)
21654 shlibpath_overrides_runpath=yes
21655 hardcode_into_libs=yes
21657 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21658 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21659 shlibpath_overrides_runpath=no
21660 hardcode_into_libs=yes
21662 freebsd*) # from 4.6 on
21663 shlibpath_overrides_runpath=yes
21664 hardcode_into_libs=yes
21673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21674 soname_spec='${libname}${release}${shared_ext}$major'
21675 shlibpath_var=LD_LIBRARY_PATH
21676 hardcode_into_libs=yes
21679 hpux9* | hpux10* | hpux11*)
21680 # Give a soname corresponding to the major version so that dld.sl refuses to
21681 # link against other versions.
21688 hardcode_into_libs=yes
21689 dynamic_linker="$host_os dld.so"
21690 shlibpath_var=LD_LIBRARY_PATH
21691 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21693 soname_spec='${libname}${release}${shared_ext}$major'
21694 if test "X$HPUX_IA64_MODE" = X32; then
21695 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21697 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21699 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21703 hardcode_into_libs=yes
21704 dynamic_linker="$host_os dld.sl"
21705 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21706 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21708 soname_spec='${libname}${release}${shared_ext}$major'
21709 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21710 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21714 dynamic_linker="$host_os dld.sl"
21715 shlibpath_var=SHLIB_PATH
21716 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21718 soname_spec='${libname}${release}${shared_ext}$major'
21721 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21722 postinstall_cmds='chmod 555 $lib'
21729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21730 soname_spec='${libname}${release}${shared_ext}$major'
21731 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21732 shlibpath_var=LD_LIBRARY_PATH
21733 shlibpath_overrides_runpath=no
21734 hardcode_into_libs=yes
21737 irix5* | irix6* | nonstopux*)
21739 nonstopux*) version_type=nonstopux ;;
21741 if test "$lt_cv_prog_gnu_ld" = yes; then
21749 soname_spec='${libname}${release}${shared_ext}$major'
21750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21752 irix5* | nonstopux*)
21753 libsuff= shlibsuff=
21756 case $LD in # libtool.m4 will add one of these switches to LD
21757 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21758 libsuff= shlibsuff= libmagic=32-bit;;
21759 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21760 libsuff=32 shlibsuff=N32 libmagic=N32;;
21761 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21762 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21763 *) libsuff= shlibsuff= libmagic=never-match;;
21767 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21768 shlibpath_overrides_runpath=no
21769 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21770 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21771 hardcode_into_libs=yes
21774 # No shared lib support for Linux oldld, aout, or coff.
21775 linux*oldld* | linux*aout* | linux*coff*)
21779 # This must be Linux ELF.
21784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21785 soname_spec='${libname}${release}${shared_ext}$major'
21786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21787 shlibpath_var=LD_LIBRARY_PATH
21788 shlibpath_overrides_runpath=no
21789 # This implies no fast_install, which is unacceptable.
21790 # Some rework will be needed to allow for fast_install
21791 # before this can be enabled.
21792 hardcode_into_libs=yes
21794 # Append ld.so.conf contents to the search path
21795 if test -f /etc/ld.so.conf; then
21796 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' ' '`
21797 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21800 # We used to test for /lib/ld.so.1 and disable shared libraries on
21801 # powerpc, because MkLinux only supported shared libraries with the
21802 # GNU dynamic linker. Since this was broken with cross compilers,
21803 # most powerpc-linux boxes support dynamic linking these days and
21804 # people can always --disable-shared, the test was removed, and we
21805 # assume the GNU/Linux dynamic linker is in use.
21806 dynamic_linker='GNU/Linux ld.so'
21813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21814 soname_spec='${libname}${release}${shared_ext}$major'
21815 shlibpath_var=LD_LIBRARY_PATH
21816 shlibpath_overrides_runpath=no
21817 hardcode_into_libs=yes
21818 dynamic_linker='GNU ld.so'
21825 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21828 dynamic_linker='NetBSD (a.out) ld.so'
21830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21831 soname_spec='${libname}${release}${shared_ext}$major'
21832 dynamic_linker='NetBSD ld.elf_so'
21834 shlibpath_var=LD_LIBRARY_PATH
21835 shlibpath_overrides_runpath=yes
21836 hardcode_into_libs=yes
21841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21842 shlibpath_var=LD_LIBRARY_PATH
21843 shlibpath_overrides_runpath=yes
21850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21851 soname_spec='${libname}${release}${shared_ext}$major'
21852 shlibpath_var=LD_LIBRARY_PATH
21853 shlibpath_overrides_runpath=yes
21858 sys_lib_dlsearch_path_spec="/usr/lib"
21860 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21862 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21863 *) need_version=no ;;
21865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21867 shlibpath_var=LD_LIBRARY_PATH
21868 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21870 openbsd2.[89] | openbsd2.[89].*)
21871 shlibpath_overrides_runpath=no
21874 shlibpath_overrides_runpath=yes
21878 shlibpath_overrides_runpath=yes
21883 libname_spec='$name'
21886 library_names_spec='$libname${shared_ext} $libname.a'
21887 dynamic_linker='OS/2 ld.exe'
21888 shlibpath_var=LIBPATH
21891 osf3* | osf4* | osf5*)
21895 soname_spec='${libname}${release}${shared_ext}$major'
21896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21897 shlibpath_var=LD_LIBRARY_PATH
21898 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21899 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21907 soname_spec='${libname}${release}${shared_ext}$major'
21908 shlibpath_var=LD_LIBRARY_PATH
21909 shlibpath_overrides_runpath=yes
21910 hardcode_into_libs=yes
21911 # ldd complains unless libraries are executable
21912 postinstall_cmds='chmod +x $lib'
21917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21918 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21919 shlibpath_var=LD_LIBRARY_PATH
21920 shlibpath_overrides_runpath=yes
21921 if test "$with_gnu_ld" = yes; then
21929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21930 soname_spec='${libname}${release}${shared_ext}$major'
21931 shlibpath_var=LD_LIBRARY_PATH
21932 case $host_vendor in
21934 shlibpath_overrides_runpath=no
21936 export_dynamic_flag_spec='${wl}-Blargedynsym'
21937 runpath_var=LD_RUN_PATH
21945 shlibpath_overrides_runpath=no
21946 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21952 if test -d /usr/nec ;then
21954 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21955 soname_spec='$libname${shared_ext}.$major'
21956 shlibpath_var=LD_LIBRARY_PATH
21960 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21961 version_type=freebsd-elf
21964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21965 soname_spec='${libname}${release}${shared_ext}$major'
21966 shlibpath_var=LD_LIBRARY_PATH
21967 hardcode_into_libs=yes
21968 if test "$with_gnu_ld" = yes; then
21969 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21970 shlibpath_overrides_runpath=no
21972 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21973 shlibpath_overrides_runpath=yes
21976 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21980 sys_lib_dlsearch_path_spec='/usr/lib'
21985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21986 soname_spec='${libname}${release}${shared_ext}$major'
21987 shlibpath_var=LD_LIBRARY_PATH
21994 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21995 echo "${ECHO_T}$dynamic_linker" >&6; }
21996 test "$dynamic_linker" = no && can_build_shared=no
21998 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21999 if test "$GCC" = yes; then
22000 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22003 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22004 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22005 hardcode_action_F77=
22006 if test -n "$hardcode_libdir_flag_spec_F77" || \
22007 test -n "$runpath_var_F77" || \
22008 test "X$hardcode_automatic_F77" = "Xyes" ; then
22010 # We can hardcode non-existant directories.
22011 if test "$hardcode_direct_F77" != no &&
22012 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22013 # have to relink, otherwise we might link with an installed library
22014 # when we should be linking with a yet-to-be-installed one
22015 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22016 test "$hardcode_minus_L_F77" != no; then
22017 # Linking always hardcodes the temporary library directory.
22018 hardcode_action_F77=relink
22020 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22021 hardcode_action_F77=immediate
22024 # We cannot hardcode anything, or else we can only hardcode existing
22026 hardcode_action_F77=unsupported
22028 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22029 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22031 if test "$hardcode_action_F77" = relink; then
22032 # Fast installation is not supported
22033 enable_fast_install=no
22034 elif test "$shlibpath_overrides_runpath" = yes ||
22035 test "$enable_shared" = no; then
22036 # Fast installation is not necessary
22037 enable_fast_install=needless
22041 # The else clause should only fire when bootstrapping the
22042 # libtool distribution, otherwise you forgot to ship ltmain.sh
22043 # with your package, and you will get complaints that there are
22044 # no rules to generate ltmain.sh.
22045 if test -f "$ltmain"; then
22046 # See if we are running on zsh, and set the options which allow our commands through
22047 # without removal of \ escapes.
22048 if test -n "${ZSH_VERSION+set}" ; then
22049 setopt NO_GLOB_SUBST
22051 # Now quote all the things that may contain metacharacters while being
22052 # careful not to overquote the AC_SUBSTed values. We take copies of the
22053 # variables and quote the copies for generation of the libtool script.
22054 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22056 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22057 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22058 deplibs_check_method reload_flag reload_cmds need_locks \
22059 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22060 lt_cv_sys_global_symbol_to_c_name_address \
22061 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22062 old_postinstall_cmds old_postuninstall_cmds \
22066 lt_prog_compiler_wl_F77 \
22067 lt_prog_compiler_pic_F77 \
22068 lt_prog_compiler_static_F77 \
22069 lt_prog_compiler_no_builtin_flag_F77 \
22070 export_dynamic_flag_spec_F77 \
22071 thread_safe_flag_spec_F77 \
22072 whole_archive_flag_spec_F77 \
22073 enable_shared_with_static_runtimes_F77 \
22074 old_archive_cmds_F77 \
22075 old_archive_from_new_cmds_F77 \
22076 predep_objects_F77 \
22077 postdep_objects_F77 \
22080 compiler_lib_search_path_F77 \
22082 archive_expsym_cmds_F77 \
22083 postinstall_cmds_F77 \
22084 postuninstall_cmds_F77 \
22085 old_archive_from_expsyms_cmds_F77 \
22086 allow_undefined_flag_F77 \
22087 no_undefined_flag_F77 \
22088 export_symbols_cmds_F77 \
22089 hardcode_libdir_flag_spec_F77 \
22090 hardcode_libdir_flag_spec_ld_F77 \
22091 hardcode_libdir_separator_F77 \
22092 hardcode_automatic_F77 \
22094 module_expsym_cmds_F77 \
22095 lt_cv_prog_compiler_c_o_F77 \
22096 exclude_expsyms_F77 \
22097 include_expsyms_F77; do
22100 old_archive_cmds_F77 | \
22101 old_archive_from_new_cmds_F77 | \
22102 archive_cmds_F77 | \
22103 archive_expsym_cmds_F77 | \
22104 module_cmds_F77 | \
22105 module_expsym_cmds_F77 | \
22106 old_archive_from_expsyms_cmds_F77 | \
22107 export_symbols_cmds_F77 | \
22108 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22109 postinstall_cmds | postuninstall_cmds | \
22110 old_postinstall_cmds | old_postuninstall_cmds | \
22111 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22112 # Double-quote double-evaled strings.
22113 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22116 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22122 *'\$0 --fallback-echo"')
22123 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22129 cat <<__EOF__ >> "$cfgfile"
22130 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22132 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22134 # Shell to use when invoking shell scripts.
22137 # Whether or not to build shared libraries.
22138 build_libtool_libs=$enable_shared
22140 # Whether or not to build static libraries.
22141 build_old_libs=$enable_static
22143 # Whether or not to add -lc for building shared libraries.
22144 build_libtool_need_lc=$archive_cmds_need_lc_F77
22146 # Whether or not to disallow shared libs when runtime libs are static
22147 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22149 # Whether or not to optimize for fast installation.
22150 fast_install=$enable_fast_install
22153 host_alias=$host_alias
22157 # The build system.
22158 build_alias=$build_alias
22162 # An echo program that does not interpret backslashes.
22167 AR_FLAGS=$lt_AR_FLAGS
22172 # LTCC compiler flags.
22173 LTCFLAGS=$lt_LTCFLAGS
22175 # A language-specific compiler.
22176 CC=$lt_compiler_F77
22178 # Is the compiler the GNU C compiler?
22184 # The linker used to build libraries.
22187 # Whether we need hard or soft links.
22190 # A BSD-compatible nm program.
22193 # A symbol stripping program
22196 # Used to examine libraries when file_magic_cmd begins "file"
22197 MAGIC_CMD=$MAGIC_CMD
22199 # Used on cygwin: DLL creation program.
22202 # Used on cygwin: object dumper.
22205 # Used on cygwin: assembler.
22208 # The name of the directory that contains temporary libtool files.
22211 # How to create reloadable object files.
22212 reload_flag=$lt_reload_flag
22213 reload_cmds=$lt_reload_cmds
22215 # How to pass a linker flag through the compiler.
22216 wl=$lt_lt_prog_compiler_wl_F77
22218 # Object file suffix (normally "o").
22219 objext="$ac_objext"
22221 # Old archive suffix (normally "a").
22224 # Shared library suffix (normally ".so").
22225 shrext_cmds='$shrext_cmds'
22227 # Executable file suffix (normally "").
22230 # Additional compiler flags for building library objects.
22231 pic_flag=$lt_lt_prog_compiler_pic_F77
22234 # What is the maximum length of a command?
22235 max_cmd_len=$lt_cv_sys_max_cmd_len
22237 # Does compiler simultaneously support -c and -o options?
22238 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22240 # Must we lock files when doing compilation?
22241 need_locks=$lt_need_locks
22243 # Do we need the lib prefix for modules?
22244 need_lib_prefix=$need_lib_prefix
22246 # Do we need a version for libraries?
22247 need_version=$need_version
22249 # Whether dlopen is supported.
22250 dlopen_support=$enable_dlopen
22252 # Whether dlopen of programs is supported.
22253 dlopen_self=$enable_dlopen_self
22255 # Whether dlopen of statically linked programs is supported.
22256 dlopen_self_static=$enable_dlopen_self_static
22258 # Compiler flag to prevent dynamic linking.
22259 link_static_flag=$lt_lt_prog_compiler_static_F77
22261 # Compiler flag to turn off builtin functions.
22262 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22264 # Compiler flag to allow reflexive dlopens.
22265 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22267 # Compiler flag to generate shared objects directly from archives.
22268 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22270 # Compiler flag to generate thread-safe objects.
22271 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22273 # Library versioning type.
22274 version_type=$version_type
22276 # Format of library name prefix.
22277 libname_spec=$lt_libname_spec
22279 # List of archive names. First name is the real one, the rest are links.
22280 # The last name is the one that the linker finds with -lNAME.
22281 library_names_spec=$lt_library_names_spec
22283 # The coded name of the library, if different from the real name.
22284 soname_spec=$lt_soname_spec
22286 # Commands used to build and install an old-style archive.
22288 old_archive_cmds=$lt_old_archive_cmds_F77
22289 old_postinstall_cmds=$lt_old_postinstall_cmds
22290 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22292 # Create an old-style archive from a shared archive.
22293 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22295 # Create a temporary old-style archive to link instead of a shared archive.
22296 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22298 # Commands used to build and install a shared archive.
22299 archive_cmds=$lt_archive_cmds_F77
22300 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22301 postinstall_cmds=$lt_postinstall_cmds
22302 postuninstall_cmds=$lt_postuninstall_cmds
22304 # Commands used to build a loadable module (assumed same as above if empty)
22305 module_cmds=$lt_module_cmds_F77
22306 module_expsym_cmds=$lt_module_expsym_cmds_F77
22308 # Commands to strip libraries.
22309 old_striplib=$lt_old_striplib
22310 striplib=$lt_striplib
22312 # Dependencies to place before the objects being linked to create a
22314 predep_objects=$lt_predep_objects_F77
22316 # Dependencies to place after the objects being linked to create a
22318 postdep_objects=$lt_postdep_objects_F77
22320 # Dependencies to place before the objects being linked to create a
22322 predeps=$lt_predeps_F77
22324 # Dependencies to place after the objects being linked to create a
22326 postdeps=$lt_postdeps_F77
22328 # The library search path used internally by the compiler when linking
22329 # a shared library.
22330 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22332 # Method to check whether dependent libraries are shared objects.
22333 deplibs_check_method=$lt_deplibs_check_method
22335 # Command to use when deplibs_check_method == file_magic.
22336 file_magic_cmd=$lt_file_magic_cmd
22338 # Flag that allows shared libraries with undefined symbols to be built.
22339 allow_undefined_flag=$lt_allow_undefined_flag_F77
22341 # Flag that forces no undefined symbols.
22342 no_undefined_flag=$lt_no_undefined_flag_F77
22344 # Commands used to finish a libtool library installation in a directory.
22345 finish_cmds=$lt_finish_cmds
22347 # Same as above, but a single script fragment to be evaled but not shown.
22348 finish_eval=$lt_finish_eval
22350 # Take the output of nm and produce a listing of raw symbols and C names.
22351 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22353 # Transform the output of nm in a proper C declaration
22354 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22356 # Transform the output of nm in a C name address pair
22357 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22359 # This is the shared library runtime path variable.
22360 runpath_var=$runpath_var
22362 # This is the shared library path variable.
22363 shlibpath_var=$shlibpath_var
22365 # Is shlibpath searched before the hard-coded library search path?
22366 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22368 # How to hardcode a shared library path into an executable.
22369 hardcode_action=$hardcode_action_F77
22371 # Whether we should hardcode library paths into libraries.
22372 hardcode_into_libs=$hardcode_into_libs
22374 # Flag to hardcode \$libdir into a binary during linking.
22375 # This must work even if \$libdir does not exist.
22376 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22378 # If ld is used when linking, flag to hardcode \$libdir into
22379 # a binary during linking. This must work even if \$libdir does
22381 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22383 # Whether we need a single -rpath flag with a separated argument.
22384 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22386 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22387 # resulting binary.
22388 hardcode_direct=$hardcode_direct_F77
22390 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22391 # resulting binary.
22392 hardcode_minus_L=$hardcode_minus_L_F77
22394 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22395 # the resulting binary.
22396 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22398 # Set to yes if building a shared library automatically hardcodes DIR into the library
22399 # and all subsequent libraries and executables linked against it.
22400 hardcode_automatic=$hardcode_automatic_F77
22402 # Variables whose values should be saved in libtool wrapper scripts and
22403 # restored at relink time.
22404 variables_saved_for_relink="$variables_saved_for_relink"
22406 # Whether libtool must link a program against all its dependency libraries.
22407 link_all_deplibs=$link_all_deplibs_F77
22409 # Compile-time system search path for libraries
22410 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22412 # Run-time system search path for libraries
22413 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22415 # Fix the shell variable \$srcfile for the compiler.
22416 fix_srcfile_path="$fix_srcfile_path_F77"
22418 # Set to yes if exported symbols are required.
22419 always_export_symbols=$always_export_symbols_F77
22421 # The commands to list exported symbols.
22422 export_symbols_cmds=$lt_export_symbols_cmds_F77
22424 # The commands to extract the exported symbol list from a shared archive.
22425 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22427 # Symbols that should not be listed in the preloaded symbols.
22428 exclude_expsyms=$lt_exclude_expsyms_F77
22430 # Symbols that must always be exported.
22431 include_expsyms=$lt_include_expsyms_F77
22433 # ### END LIBTOOL TAG CONFIG: $tagname
22439 # If there is no Makefile yet, we rely on a make rule to execute
22440 # `config.status --recheck' to rerun these tests and create the
22441 # libtool script then.
22442 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22443 if test -f "$ltmain_in"; then
22444 test -f Makefile && make "$ltmain"
22450 ac_cpp='$CPP $CPPFLAGS'
22451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22463 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22465 ac_cpp='$CPP $CPPFLAGS'
22466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22471 # Source file extension for Java test sources.
22474 # Object file extension for compiled Java test sources.
22478 # Code to be used in simple compile tests
22479 lt_simple_compile_test_code="class foo {}\n"
22481 # Code to be used in simple link tests
22482 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
22484 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22486 # If no C compiler was specified, use CC.
22489 # If no C compiler flags were specified, use CFLAGS.
22490 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22492 # Allow CC to be a program name with arguments.
22496 # save warnings/boilerplate of simple test code
22497 ac_outfile=conftest.$ac_objext
22498 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22499 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22500 _lt_compiler_boilerplate=`cat conftest.err`
22503 ac_outfile=conftest.$ac_objext
22504 printf "$lt_simple_link_test_code" >conftest.$ac_ext
22505 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22506 _lt_linker_boilerplate=`cat conftest.err`
22510 # Allow CC to be a program name with arguments.
22515 for cc_temp in $compiler""; do
22517 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22518 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22523 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22526 # GCJ did not exist at the time GCC didn't implicitly link libc in.
22527 archive_cmds_need_lc_GCJ=no
22529 old_archive_cmds_GCJ=$old_archive_cmds
22532 lt_prog_compiler_no_builtin_flag_GCJ=
22534 if test "$GCC" = yes; then
22535 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22538 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22539 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
22540 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22541 echo $ECHO_N "(cached) $ECHO_C" >&6
22543 lt_cv_prog_compiler_rtti_exceptions=no
22544 ac_outfile=conftest.$ac_objext
22545 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22546 lt_compiler_flag="-fno-rtti -fno-exceptions"
22547 # Insert the option either (1) after the last *FLAGS variable, or
22548 # (2) before a word containing "conftest.", or (3) at the end.
22549 # Note that $ac_compile itself does not contain backslashes and begins
22550 # with a dollar sign (not a hyphen), so the echo should work correctly.
22551 # The option is referenced via a variable to avoid confusing sed.
22552 lt_compile=`echo "$ac_compile" | $SED \
22553 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22555 -e 's:$: $lt_compiler_flag:'`
22556 (eval echo "\"\$as_me:22556: $lt_compile\"" >&5)
22557 (eval "$lt_compile" 2>conftest.err)
22559 cat conftest.err >&5
22560 echo "$as_me:22560: \$? = $ac_status" >&5
22561 if (exit $ac_status) && test -s "$ac_outfile"; then
22562 # The compiler can only warn and ignore the option if not recognized
22563 # So say no if there are warnings other than the usual output.
22564 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22565 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22566 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22567 lt_cv_prog_compiler_rtti_exceptions=yes
22573 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22574 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
22576 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22577 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22584 lt_prog_compiler_wl_GCJ=
22585 lt_prog_compiler_pic_GCJ=
22586 lt_prog_compiler_static_GCJ=
22588 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22589 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
22591 if test "$GCC" = yes; then
22592 lt_prog_compiler_wl_GCJ='-Wl,'
22593 lt_prog_compiler_static_GCJ='-static'
22597 # All AIX code is PIC.
22598 if test "$host_cpu" = ia64; then
22599 # AIX 5 now supports IA64 processor
22600 lt_prog_compiler_static_GCJ='-Bstatic'
22605 # FIXME: we need at least 68020 code to build shared libraries, but
22606 # adding the `-m68020' flag to GCC prevents building anything better,
22608 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22611 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22612 # PIC is the default for these OSes.
22615 mingw* | pw32* | os2*)
22616 # This hack is so that the source file can tell whether it is being
22617 # built for inclusion in a dll (and should export symbols for example).
22618 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22621 darwin* | rhapsody*)
22622 # PIC is the default on this platform
22623 # Common symbols not allowed in MH_DYLIB files
22624 lt_prog_compiler_pic_GCJ='-fno-common'
22628 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22629 # Instead, we relocate shared libraries at runtime.
22633 # Just because we use GCC doesn't mean we suddenly get shared libraries
22634 # on systems that don't support them.
22635 lt_prog_compiler_can_build_shared_GCJ=no
22640 if test -d /usr/nec; then
22641 lt_prog_compiler_pic_GCJ=-Kconform_pic
22646 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22647 # not for PA HP-UX.
22653 lt_prog_compiler_pic_GCJ='-fPIC'
22659 lt_prog_compiler_pic_GCJ='-fPIC'
22663 # PORTME Check for flag to pass linker flags through the system compiler.
22666 lt_prog_compiler_wl_GCJ='-Wl,'
22667 if test "$host_cpu" = ia64; then
22668 # AIX 5 now supports IA64 processor
22669 lt_prog_compiler_static_GCJ='-Bstatic'
22671 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22675 # PIC is the default on this platform
22676 # Common symbols not allowed in MH_DYLIB files
22677 case $cc_basename in
22679 lt_prog_compiler_pic_GCJ='-qnocommon'
22680 lt_prog_compiler_wl_GCJ='-Wl,'
22685 mingw* | pw32* | os2*)
22686 # This hack is so that the source file can tell whether it is being
22687 # built for inclusion in a dll (and should export symbols for example).
22688 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22691 hpux9* | hpux10* | hpux11*)
22692 lt_prog_compiler_wl_GCJ='-Wl,'
22693 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22694 # not for PA HP-UX.
22700 lt_prog_compiler_pic_GCJ='+Z'
22703 # Is there a better lt_prog_compiler_static that works with the bundled CC?
22704 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22707 irix5* | irix6* | nonstopux*)
22708 lt_prog_compiler_wl_GCJ='-Wl,'
22709 # PIC (with -KPIC) is the default.
22710 lt_prog_compiler_static_GCJ='-non_shared'
22714 lt_prog_compiler_pic_GCJ='-KPIC'
22715 lt_prog_compiler_static_GCJ='-Bstatic'
22719 case $cc_basename in
22721 lt_prog_compiler_wl_GCJ='-Wl,'
22722 lt_prog_compiler_pic_GCJ='-KPIC'
22723 lt_prog_compiler_static_GCJ='-static'
22725 pgcc* | pgf77* | pgf90* | pgf95*)
22726 # Portland Group compilers (*not* the Pentium gcc compiler,
22727 # which looks to be a dead project)
22728 lt_prog_compiler_wl_GCJ='-Wl,'
22729 lt_prog_compiler_pic_GCJ='-fpic'
22730 lt_prog_compiler_static_GCJ='-Bstatic'
22733 lt_prog_compiler_wl_GCJ='-Wl,'
22734 # All Alpha code is PIC.
22735 lt_prog_compiler_static_GCJ='-non_shared'
22740 osf3* | osf4* | osf5*)
22741 lt_prog_compiler_wl_GCJ='-Wl,'
22742 # All OSF/1 code is PIC.
22743 lt_prog_compiler_static_GCJ='-non_shared'
22747 lt_prog_compiler_pic_GCJ='-KPIC'
22748 lt_prog_compiler_static_GCJ='-Bstatic'
22749 case $cc_basename in
22750 f77* | f90* | f95*)
22751 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
22753 lt_prog_compiler_wl_GCJ='-Wl,';;
22758 lt_prog_compiler_wl_GCJ='-Qoption ld '
22759 lt_prog_compiler_pic_GCJ='-PIC'
22760 lt_prog_compiler_static_GCJ='-Bstatic'
22763 sysv4 | sysv4.2uw2* | sysv4.3*)
22764 lt_prog_compiler_wl_GCJ='-Wl,'
22765 lt_prog_compiler_pic_GCJ='-KPIC'
22766 lt_prog_compiler_static_GCJ='-Bstatic'
22770 if test -d /usr/nec ;then
22771 lt_prog_compiler_pic_GCJ='-Kconform_pic'
22772 lt_prog_compiler_static_GCJ='-Bstatic'
22776 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22777 lt_prog_compiler_wl_GCJ='-Wl,'
22778 lt_prog_compiler_pic_GCJ='-KPIC'
22779 lt_prog_compiler_static_GCJ='-Bstatic'
22783 lt_prog_compiler_wl_GCJ='-Wl,'
22784 lt_prog_compiler_can_build_shared_GCJ=no
22788 lt_prog_compiler_pic_GCJ='-pic'
22789 lt_prog_compiler_static_GCJ='-Bstatic'
22793 lt_prog_compiler_can_build_shared_GCJ=no
22798 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22799 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
22802 # Check to make sure the PIC flag actually works.
22804 if test -n "$lt_prog_compiler_pic_GCJ"; then
22806 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22807 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
22808 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22809 echo $ECHO_N "(cached) $ECHO_C" >&6
22811 lt_prog_compiler_pic_works_GCJ=no
22812 ac_outfile=conftest.$ac_objext
22813 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22814 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22815 # Insert the option either (1) after the last *FLAGS variable, or
22816 # (2) before a word containing "conftest.", or (3) at the end.
22817 # Note that $ac_compile itself does not contain backslashes and begins
22818 # with a dollar sign (not a hyphen), so the echo should work correctly.
22819 # The option is referenced via a variable to avoid confusing sed.
22820 lt_compile=`echo "$ac_compile" | $SED \
22821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22823 -e 's:$: $lt_compiler_flag:'`
22824 (eval echo "\"\$as_me:22824: $lt_compile\"" >&5)
22825 (eval "$lt_compile" 2>conftest.err)
22827 cat conftest.err >&5
22828 echo "$as_me:22828: \$? = $ac_status" >&5
22829 if (exit $ac_status) && test -s "$ac_outfile"; then
22830 # The compiler can only warn and ignore the option if not recognized
22831 # So say no if there are warnings other than the usual output.
22832 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22834 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22835 lt_prog_compiler_pic_works_GCJ=yes
22841 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22842 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
22844 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22845 case $lt_prog_compiler_pic_GCJ in
22847 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22850 lt_prog_compiler_pic_GCJ=
22851 lt_prog_compiler_can_build_shared_GCJ=no
22856 # For platforms which do not support PIC, -DPIC is meaningless:
22858 lt_prog_compiler_pic_GCJ=
22861 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22866 # Check to make sure the static flag actually works.
22868 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
22869 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22870 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
22871 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
22872 echo $ECHO_N "(cached) $ECHO_C" >&6
22874 lt_prog_compiler_static_works_GCJ=no
22875 save_LDFLAGS="$LDFLAGS"
22876 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22877 printf "$lt_simple_link_test_code" > conftest.$ac_ext
22878 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22879 # The linker can only warn and ignore the option if not recognized
22880 # So say no if there are warnings
22881 if test -s conftest.err; then
22882 # Append any errors to the config.log.
22883 cat conftest.err 1>&5
22884 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22886 if diff conftest.exp conftest.er2 >/dev/null; then
22887 lt_prog_compiler_static_works_GCJ=yes
22890 lt_prog_compiler_static_works_GCJ=yes
22894 LDFLAGS="$save_LDFLAGS"
22897 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
22898 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
22900 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
22903 lt_prog_compiler_static_GCJ=
22907 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22908 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
22909 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22910 echo $ECHO_N "(cached) $ECHO_C" >&6
22912 lt_cv_prog_compiler_c_o_GCJ=no
22913 $rm -r conftest 2>/dev/null
22917 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22919 lt_compiler_flag="-o out/conftest2.$ac_objext"
22920 # Insert the option either (1) after the last *FLAGS variable, or
22921 # (2) before a word containing "conftest.", or (3) at the end.
22922 # Note that $ac_compile itself does not contain backslashes and begins
22923 # with a dollar sign (not a hyphen), so the echo should work correctly.
22924 lt_compile=`echo "$ac_compile" | $SED \
22925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22927 -e 's:$: $lt_compiler_flag:'`
22928 (eval echo "\"\$as_me:22928: $lt_compile\"" >&5)
22929 (eval "$lt_compile" 2>out/conftest.err)
22931 cat out/conftest.err >&5
22932 echo "$as_me:22932: \$? = $ac_status" >&5
22933 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22935 # The compiler can only warn and ignore the option if not recognized
22936 # So say no if there are warnings
22937 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22938 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22939 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22940 lt_cv_prog_compiler_c_o_GCJ=yes
22945 # SGI C++ compiler will create directory out/ii_files/ for
22946 # template instantiation
22947 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22948 $rm out/* && rmdir out
22954 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
22955 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
22958 hard_links="nottested"
22959 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
22960 # do not overwrite the value of need_locks provided by the user
22961 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22962 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
22965 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22967 ln conftest.a conftest.b 2>&5 || hard_links=no
22968 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22969 { echo "$as_me:$LINENO: result: $hard_links" >&5
22970 echo "${ECHO_T}$hard_links" >&6; }
22971 if test "$hard_links" = no; then
22972 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22973 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22980 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22981 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
22984 allow_undefined_flag_GCJ=
22985 enable_shared_with_static_runtimes_GCJ=no
22987 archive_expsym_cmds_GCJ=
22988 old_archive_From_new_cmds_GCJ=
22989 old_archive_from_expsyms_cmds_GCJ=
22990 export_dynamic_flag_spec_GCJ=
22991 whole_archive_flag_spec_GCJ=
22992 thread_safe_flag_spec_GCJ=
22993 hardcode_libdir_flag_spec_GCJ=
22994 hardcode_libdir_flag_spec_ld_GCJ=
22995 hardcode_libdir_separator_GCJ=
22996 hardcode_direct_GCJ=no
22997 hardcode_minus_L_GCJ=no
22998 hardcode_shlibpath_var_GCJ=unsupported
22999 link_all_deplibs_GCJ=unknown
23000 hardcode_automatic_GCJ=no
23002 module_expsym_cmds_GCJ=
23003 always_export_symbols_GCJ=no
23004 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23005 # include_expsyms should be a list of space-separated symbols to be *always*
23006 # included in the symbol list
23007 include_expsyms_GCJ=
23008 # exclude_expsyms can be an extended regexp of symbols to exclude
23009 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23010 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23011 # as well as any symbol that contains `d'.
23012 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23013 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23014 # platforms (ab)use it in PIC code, but their linkers get confused if
23015 # the symbol is explicitly referenced. Since portable code cannot
23016 # rely on this symbol name, it's probably fine to never include it in
23017 # preloaded symbol tables.
23018 extract_expsyms_cmds=
23019 # Just being paranoid about ensuring that cc_basename is set.
23020 for cc_temp in $compiler""; do
23022 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23023 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23028 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23031 cygwin* | mingw* | pw32*)
23032 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23033 # When not using gcc, we currently assume that we are using
23034 # Microsoft Visual C++.
23035 if test "$GCC" != yes; then
23040 # we just hope/assume this is gcc and not c89 (= MSVC++)
23049 if test "$with_gnu_ld" = yes; then
23050 # If archive_cmds runs LD, not CC, wlarc should be empty
23053 # Set some defaults for GNU ld with shared library support. These
23054 # are reset later if shared libraries are not supported. Putting them
23055 # here allows them to be overridden if necessary.
23056 runpath_var=LD_RUN_PATH
23057 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23058 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23059 # ancient GNU ld didn't support --whole-archive et. al.
23060 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23061 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23063 whole_archive_flag_spec_GCJ=
23065 supports_anon_versioning=no
23066 case `$LD -v 2>/dev/null` in
23067 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23068 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23069 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23070 *\ 2.11.*) ;; # other 2.11 versions
23071 *) supports_anon_versioning=yes ;;
23074 # See if GNU ld supports shared libraries.
23076 aix3* | aix4* | aix5*)
23077 # On AIX/PPC, the GNU linker is very broken
23078 if test "$host_cpu" != ia64; then
23082 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23083 *** to be unable to reliably create shared libraries on AIX.
23084 *** Therefore, libtool is disabling shared libraries support. If you
23085 *** really care for shared libraries, you may want to modify your PATH
23086 *** so that a non-GNU linker is found, and then restart.
23093 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)'
23094 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23095 hardcode_minus_L_GCJ=yes
23097 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23098 # that the semantics of dynamic libraries on AmigaOS, at least up
23099 # to version 4, is to share data among multiple programs linked
23100 # with the same dynamic library. Since this doesn't match the
23101 # behavior of shared libraries on other platforms, we can't use
23107 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23108 allow_undefined_flag_GCJ=unsupported
23109 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23110 # support --undefined. This deserves some investigation. FIXME
23111 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23117 cygwin* | mingw* | pw32*)
23118 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23119 # as there is no search path for DLLs.
23120 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23121 allow_undefined_flag_GCJ=unsupported
23122 always_export_symbols_GCJ=no
23123 enable_shared_with_static_runtimes_GCJ=yes
23124 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
23126 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
23127 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23128 # If the export-symbols file already is a .def file (1st line
23129 # is EXPORTS), use it as is; otherwise, prepend...
23130 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23131 cp $export_symbols $output_objdir/$soname.def;
23133 echo EXPORTS > $output_objdir/$soname.def;
23134 cat $export_symbols >> $output_objdir/$soname.def;
23136 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23143 hardcode_direct_GCJ=no
23144 hardcode_shlibpath_var_GCJ=no
23145 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23146 export_dynamic_flag_spec_GCJ='${wl}-E'
23147 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23148 # Instead, shared libraries are loaded at an image base (0x10000000 by
23149 # default) and relocated if they conflict, which is a slow very memory
23150 # consuming and fragmenting process. To avoid this, we pick a random,
23151 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23152 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
23153 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'
23154 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'
23158 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23160 case $cc_basename,$host_cpu in
23161 pgcc*) # Portland Group C compiler
23162 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'
23163 tmp_addflag=' $pic_flag'
23165 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
23166 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'
23167 tmp_addflag=' $pic_flag -Mnomain' ;;
23168 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
23169 tmp_addflag=' -i_dynamic' ;;
23170 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
23171 tmp_addflag=' -i_dynamic -nofor_main' ;;
23172 ifc* | ifort*) # Intel Fortran compiler
23173 tmp_addflag=' -nofor_main' ;;
23175 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23177 if test $supports_anon_versioning = yes; then
23178 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23179 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23180 $echo "local: *; };" >> $output_objdir/$libname.ver~
23181 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23189 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23190 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23193 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23194 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23199 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23203 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
23204 *** create shared libraries on Solaris systems. Therefore, libtool
23205 *** is disabling shared libraries support. We urge you to upgrade GNU
23206 *** binutils to release 2.9.1 or newer. Another option is to modify
23207 *** your PATH or compiler configuration so that the native linker is
23208 *** used, and then restart.
23211 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23212 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23213 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23219 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23220 case `$LD -v 2>&1` in
23221 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23225 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23226 *** reliably create shared libraries on SCO systems. Therefore, libtool
23227 *** is disabling shared libraries support. We urge you to upgrade GNU
23228 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
23229 *** your PATH or compiler configuration so that the native linker is
23230 *** used, and then restart.
23235 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23236 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23237 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23238 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23247 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23249 hardcode_direct_GCJ=yes
23250 hardcode_shlibpath_var_GCJ=no
23254 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23255 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23256 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23263 if test "$ld_shlibs_GCJ" = no; then
23265 hardcode_libdir_flag_spec_GCJ=
23266 export_dynamic_flag_spec_GCJ=
23267 whole_archive_flag_spec_GCJ=
23270 # PORTME fill in a description of your system's linker (not GNU ld)
23273 allow_undefined_flag_GCJ=unsupported
23274 always_export_symbols_GCJ=yes
23275 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'
23276 # Note: this linker hardcodes the directories in LIBPATH if there
23277 # are no directories specified by -L.
23278 hardcode_minus_L_GCJ=yes
23279 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23280 # Neither direct hardcoding nor static linking is supported with a
23282 hardcode_direct_GCJ=unsupported
23287 if test "$host_cpu" = ia64; then
23288 # On IA64, the linker does run time linking by default, so we don't
23289 # have to do anything special.
23290 aix_use_runtimelinking=no
23291 exp_sym_flag='-Bexport'
23294 # If we're using GNU nm, then we don't want the "-C" option.
23295 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23296 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23297 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'
23299 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'
23301 aix_use_runtimelinking=no
23303 # Test if we are trying to use run time linking or normal
23304 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23305 # need to do runtime linking.
23306 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23307 for ld_flag in $LDFLAGS; do
23308 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23309 aix_use_runtimelinking=yes
23316 exp_sym_flag='-bexport'
23317 no_entry_flag='-bnoentry'
23320 # When large executables or shared objects are built, AIX ld can
23321 # have problems creating the table of contents. If linking a library
23322 # or program results in "error TOC overflow" add -mminimal-toc to
23323 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
23324 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23326 archive_cmds_GCJ=''
23327 hardcode_direct_GCJ=yes
23328 hardcode_libdir_separator_GCJ=':'
23329 link_all_deplibs_GCJ=yes
23331 if test "$GCC" = yes; then
23332 case $host_os in aix4.[012]|aix4.[012].*)
23333 # We only want to do this on AIX 4.2 and lower, the check
23334 # below for broken collect2 doesn't work under 4.3+
23335 collect2name=`${CC} -print-prog-name=collect2`
23336 if test -f "$collect2name" && \
23337 strings "$collect2name" | grep resolve_lib_name >/dev/null
23339 # We have reworked collect2
23340 hardcode_direct_GCJ=yes
23342 # We have old collect2
23343 hardcode_direct_GCJ=unsupported
23344 # It fails to find uninstalled libraries when the uninstalled
23345 # path is not listed in the libpath. Setting hardcode_minus_L
23346 # to unsupported forces relinking
23347 hardcode_minus_L_GCJ=yes
23348 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23349 hardcode_libdir_separator_GCJ=
23353 shared_flag='-shared'
23354 if test "$aix_use_runtimelinking" = yes; then
23355 shared_flag="$shared_flag "'${wl}-G'
23359 if test "$host_cpu" = ia64; then
23360 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23361 # chokes on -Wl,-G. The following line is correct:
23364 if test "$aix_use_runtimelinking" = yes; then
23365 shared_flag='${wl}-G'
23367 shared_flag='${wl}-bM:SRE'
23372 # It seems that -bexpall does not export symbols beginning with
23373 # underscore (_), so it is better to generate a list of symbols to export.
23374 always_export_symbols_GCJ=yes
23375 if test "$aix_use_runtimelinking" = yes; then
23376 # Warning - without using the other runtime loading flags (-brtl),
23377 # -berok will link without error, but may produce a broken library.
23378 allow_undefined_flag_GCJ='-berok'
23379 # Determine the default libpath from the value encoded in an empty executable.
23380 cat >conftest.$ac_ext <<_ACEOF
23383 cat confdefs.h >>conftest.$ac_ext
23384 cat >>conftest.$ac_ext <<_ACEOF
23385 /* end confdefs.h. */
23395 rm -f conftest.$ac_objext conftest$ac_exeext
23396 if { (ac_try="$ac_link"
23397 case "(($ac_try" in
23398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23399 *) ac_try_echo=$ac_try;;
23401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23402 (eval "$ac_link") 2>conftest.er1
23404 grep -v '^ *+' conftest.er1 >conftest.err
23406 cat conftest.err >&5
23407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408 (exit $ac_status); } && {
23409 test -z "$ac_c_werror_flag" ||
23410 test ! -s conftest.err
23411 } && test -s conftest$ac_exeext &&
23412 $as_test_x conftest$ac_exeext; then
23414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23416 # Check for a 64-bit object if we didn't find anything.
23417 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; }
23420 echo "$as_me: failed program was:" >&5
23421 sed 's/^/| /' conftest.$ac_ext >&5
23426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23427 conftest$ac_exeext conftest.$ac_ext
23428 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23430 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23431 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"
23433 if test "$host_cpu" = ia64; then
23434 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23435 allow_undefined_flag_GCJ="-z nodefs"
23436 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"
23438 # Determine the default libpath from the value encoded in an empty executable.
23439 cat >conftest.$ac_ext <<_ACEOF
23442 cat confdefs.h >>conftest.$ac_ext
23443 cat >>conftest.$ac_ext <<_ACEOF
23444 /* end confdefs.h. */
23454 rm -f conftest.$ac_objext conftest$ac_exeext
23455 if { (ac_try="$ac_link"
23456 case "(($ac_try" in
23457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23458 *) ac_try_echo=$ac_try;;
23460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23461 (eval "$ac_link") 2>conftest.er1
23463 grep -v '^ *+' conftest.er1 >conftest.err
23465 cat conftest.err >&5
23466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467 (exit $ac_status); } && {
23468 test -z "$ac_c_werror_flag" ||
23469 test ! -s conftest.err
23470 } && test -s conftest$ac_exeext &&
23471 $as_test_x conftest$ac_exeext; then
23473 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23475 # Check for a 64-bit object if we didn't find anything.
23476 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; }
23479 echo "$as_me: failed program was:" >&5
23480 sed 's/^/| /' conftest.$ac_ext >&5
23485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23486 conftest$ac_exeext conftest.$ac_ext
23487 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23489 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23490 # Warning - without using the other run time loading flags,
23491 # -berok will link without error, but may produce a broken library.
23492 no_undefined_flag_GCJ=' ${wl}-bernotok'
23493 allow_undefined_flag_GCJ=' ${wl}-berok'
23494 # Exported symbols can be pulled into shared objects from archives
23495 whole_archive_flag_spec_GCJ='$convenience'
23496 archive_cmds_need_lc_GCJ=yes
23497 # This is similar to how AIX traditionally builds its shared libraries.
23498 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'
23504 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)'
23505 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23506 hardcode_minus_L_GCJ=yes
23507 # see comment about different semantics on the GNU ld section
23512 export_dynamic_flag_spec_GCJ=-rdynamic
23515 cygwin* | mingw* | pw32*)
23516 # When not using gcc, we currently assume that we are using
23517 # Microsoft Visual C++.
23518 # hardcode_libdir_flag_spec is actually meaningless, as there is
23519 # no search path for DLLs.
23520 hardcode_libdir_flag_spec_GCJ=' '
23521 allow_undefined_flag_GCJ=unsupported
23522 # Tell ltmain to make .lib files, not .a files.
23524 # Tell ltmain to make .dll files, not .so files.
23526 # FIXME: Setting linknames here is a bad hack.
23527 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23528 # The linker will automatically build a .lib file if we build a DLL.
23529 old_archive_From_new_cmds_GCJ='true'
23530 # FIXME: Should let the user specify the lib program.
23531 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
23532 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
23533 enable_shared_with_static_runtimes_GCJ=yes
23536 darwin* | rhapsody*)
23538 rhapsody* | darwin1.[012])
23539 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23542 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23543 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23545 case ${MACOSX_DEPLOYMENT_TARGET} in
23547 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23550 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23556 archive_cmds_need_lc_GCJ=no
23557 hardcode_direct_GCJ=no
23558 hardcode_automatic_GCJ=yes
23559 hardcode_shlibpath_var_GCJ=unsupported
23560 whole_archive_flag_spec_GCJ=''
23561 link_all_deplibs_GCJ=yes
23562 if test "$GCC" = yes ; then
23563 output_verbose_link_cmd='echo'
23564 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23565 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23566 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23567 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}'
23568 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}'
23570 case $cc_basename in
23572 output_verbose_link_cmd='echo'
23573 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23574 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23575 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23576 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}'
23577 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}'
23587 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23588 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23589 hardcode_shlibpath_var_GCJ=no
23596 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23597 # support. Future versions do this automatically, but an explicit c++rt0.o
23598 # does not break anything, and helps significantly (at the cost of a little
23601 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23602 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23603 hardcode_direct_GCJ=yes
23604 hardcode_shlibpath_var_GCJ=no
23607 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23609 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23610 hardcode_direct_GCJ=yes
23611 hardcode_minus_L_GCJ=yes
23612 hardcode_shlibpath_var_GCJ=no
23615 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23616 freebsd* | kfreebsd*-gnu | dragonfly*)
23617 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23618 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23619 hardcode_direct_GCJ=yes
23620 hardcode_shlibpath_var_GCJ=no
23624 if test "$GCC" = yes; then
23625 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'
23627 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'
23629 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23630 hardcode_libdir_separator_GCJ=:
23631 hardcode_direct_GCJ=yes
23633 # hardcode_minus_L: Not really in the search PATH,
23634 # but as the default location of the library.
23635 hardcode_minus_L_GCJ=yes
23636 export_dynamic_flag_spec_GCJ='${wl}-E'
23640 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23641 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23643 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23645 if test "$with_gnu_ld" = no; then
23646 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23647 hardcode_libdir_separator_GCJ=:
23649 hardcode_direct_GCJ=yes
23650 export_dynamic_flag_spec_GCJ='${wl}-E'
23652 # hardcode_minus_L: Not really in the search PATH,
23653 # but as the default location of the library.
23654 hardcode_minus_L_GCJ=yes
23659 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23662 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23665 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23668 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23674 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23677 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23680 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23684 if test "$with_gnu_ld" = no; then
23685 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23686 hardcode_libdir_separator_GCJ=:
23690 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23691 hardcode_direct_GCJ=no
23692 hardcode_shlibpath_var_GCJ=no
23695 hardcode_direct_GCJ=yes
23696 export_dynamic_flag_spec_GCJ='${wl}-E'
23698 # hardcode_minus_L: Not really in the search PATH,
23699 # but as the default location of the library.
23700 hardcode_minus_L_GCJ=yes
23706 irix5* | irix6* | nonstopux*)
23707 if test "$GCC" = yes; then
23708 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'
23710 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'
23711 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23713 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23714 hardcode_libdir_separator_GCJ=:
23715 link_all_deplibs_GCJ=yes
23719 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23720 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23722 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23724 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23725 hardcode_direct_GCJ=yes
23726 hardcode_shlibpath_var_GCJ=no
23730 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23731 hardcode_direct_GCJ=yes
23732 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23733 hardcode_libdir_separator_GCJ=:
23734 hardcode_shlibpath_var_GCJ=no
23738 hardcode_direct_GCJ=yes
23739 hardcode_shlibpath_var_GCJ=no
23740 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23741 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23742 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23743 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23744 export_dynamic_flag_spec_GCJ='${wl}-E'
23747 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23748 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23749 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23752 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23753 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23760 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23761 hardcode_minus_L_GCJ=yes
23762 allow_undefined_flag_GCJ=unsupported
23763 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'
23764 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23768 if test "$GCC" = yes; then
23769 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23770 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'
23772 allow_undefined_flag_GCJ=' -expect_unresolved \*'
23773 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'
23775 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23776 hardcode_libdir_separator_GCJ=:
23779 osf4* | osf5*) # as osf3* with the addition of -msym flag
23780 if test "$GCC" = yes; then
23781 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23782 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'
23783 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23785 allow_undefined_flag_GCJ=' -expect_unresolved \*'
23786 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'
23787 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~
23788 $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'
23790 # Both c and cxx compiler support -rpath directly
23791 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
23793 hardcode_libdir_separator_GCJ=:
23797 no_undefined_flag_GCJ=' -z text'
23798 if test "$GCC" = yes; then
23800 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23801 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23802 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23805 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23806 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23807 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23809 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23810 hardcode_shlibpath_var_GCJ=no
23812 solaris2.[0-5] | solaris2.[0-5].*) ;;
23814 # The compiler driver will combine linker options so we
23815 # cannot just pass the convience library names through
23816 # without $wl, iff we do not link with $LD.
23817 # Luckily, gcc supports the same syntax we need for Sun Studio.
23818 # Supported since Solaris 2.6 (maybe 2.5.1?)
23821 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23823 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' ;;
23826 link_all_deplibs_GCJ=yes
23830 if test "x$host_vendor" = xsequent; then
23831 # Use $CC to link under sequent, because it throws in some extra .o
23832 # files that make .init and .fini sections work.
23833 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23835 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23837 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23838 hardcode_direct_GCJ=yes
23839 hardcode_minus_L_GCJ=yes
23840 hardcode_shlibpath_var_GCJ=no
23844 case $host_vendor in
23846 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23847 hardcode_direct_GCJ=yes # is this really true???
23850 ## LD is ld it makes a PLAMLIB
23851 ## CC just makes a GrossModule.
23852 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23853 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
23854 hardcode_direct_GCJ=no
23857 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23858 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
23861 runpath_var='LD_RUN_PATH'
23862 hardcode_shlibpath_var_GCJ=no
23866 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23867 hardcode_shlibpath_var_GCJ=no
23868 export_dynamic_flag_spec_GCJ='-Bexport'
23872 if test -d /usr/nec; then
23873 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23874 hardcode_shlibpath_var_GCJ=no
23875 runpath_var=LD_RUN_PATH
23876 hardcode_runpath_var=yes
23881 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
23882 no_undefined_flag_GCJ='${wl}-z,text'
23883 archive_cmds_need_lc_GCJ=no
23884 hardcode_shlibpath_var_GCJ=no
23885 runpath_var='LD_RUN_PATH'
23887 if test "$GCC" = yes; then
23888 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23889 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23891 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23892 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23896 sysv5* | sco3.2v5* | sco5v6*)
23897 # Note: We can NOT use -z defs as we might desire, because we do not
23898 # link with -lc, and that would cause any symbols used from libc to
23899 # always be unresolved, which means just about no library would
23900 # ever link correctly. If we're not using GNU ld we use -z text
23901 # though, which does catch some bad symbols but isn't as heavy-handed
23903 no_undefined_flag_GCJ='${wl}-z,text'
23904 allow_undefined_flag_GCJ='${wl}-z,nodefs'
23905 archive_cmds_need_lc_GCJ=no
23906 hardcode_shlibpath_var_GCJ=no
23907 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23908 hardcode_libdir_separator_GCJ=':'
23909 link_all_deplibs_GCJ=yes
23910 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
23911 runpath_var='LD_RUN_PATH'
23913 if test "$GCC" = yes; then
23914 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23915 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23917 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23918 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23923 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23924 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23925 hardcode_shlibpath_var_GCJ=no
23934 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
23935 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
23936 test "$ld_shlibs_GCJ" = no && can_build_shared=no
23939 # Do we need to explicitly link libc?
23941 case "x$archive_cmds_need_lc_GCJ" in
23943 # Assume -lc should be added
23944 archive_cmds_need_lc_GCJ=yes
23946 if test "$enable_shared" = yes && test "$GCC" = yes; then
23947 case $archive_cmds_GCJ in
23949 # FIXME: we may have to deal with multi-command sequences.
23952 # Test whether the compiler implicitly links with -lc since on some
23953 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23954 # to ld, don't add -lc before -lgcc.
23955 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23956 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
23958 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23961 (eval $ac_compile) 2>&5
23963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964 (exit $ac_status); } 2>conftest.err; then
23967 libobjs=conftest.$ac_objext
23969 wl=$lt_prog_compiler_wl_GCJ
23970 pic_flag=$lt_prog_compiler_pic_GCJ
23976 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
23977 allow_undefined_flag_GCJ=
23978 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23979 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982 (exit $ac_status); }
23984 archive_cmds_need_lc_GCJ=no
23986 archive_cmds_need_lc_GCJ=yes
23988 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
23990 cat conftest.err 1>&5
23993 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
23994 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24001 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24002 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24003 library_names_spec=
24004 libname_spec='lib$name'
24008 postuninstall_cmds=
24012 shlibpath_overrides_runpath=unknown
24014 dynamic_linker="$host_os ld.so"
24015 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24016 if test "$GCC" = yes; then
24017 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24018 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24019 # if the path contains ";" then we assume it to be the separator
24020 # otherwise default to the standard path separator (i.e. ":") - it is
24021 # assumed that no part of a normal pathname contains ";" but that should
24022 # okay in the real world where ";" in dirpaths is itself problematic.
24023 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24025 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24028 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24030 need_lib_prefix=unknown
24031 hardcode_into_libs=no
24033 # when you set need_version to no, make sure it does not cause -set_version
24034 # flags to be left without arguments
24035 need_version=unknown
24040 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24041 shlibpath_var=LIBPATH
24043 # AIX 3 has no versioning support, so we append a major version to the name.
24044 soname_spec='${libname}${release}${shared_ext}$major'
24051 hardcode_into_libs=yes
24052 if test "$host_cpu" = ia64; then
24053 # AIX 5 supports IA64
24054 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24055 shlibpath_var=LD_LIBRARY_PATH
24057 # With GCC up to 2.95.x, collect2 would create an import file
24058 # for dependence libraries. The import file would start with
24059 # the line `#! .'. This would cause the generated library to
24060 # depend on `.', always an invalid library. This was fixed in
24061 # development snapshots of GCC prior to 3.0.
24063 aix4 | aix4.[01] | aix4.[01].*)
24064 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24066 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24069 can_build_shared=no
24073 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24074 # soname into executable. Probably we can add versioning support to
24075 # collect2, so additional links can be useful in future.
24076 if test "$aix_use_runtimelinking" = yes; then
24077 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24078 # instead of lib<name>.a to let people know that these are not
24079 # typical AIX shared libraries.
24080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24082 # We preserve .a as extension for shared libraries through AIX4.2
24083 # and later when we are not doing run time linking.
24084 library_names_spec='${libname}${release}.a $libname.a'
24085 soname_spec='${libname}${release}${shared_ext}$major'
24087 shlibpath_var=LIBPATH
24092 library_names_spec='$libname.ixlibrary $libname.a'
24093 # Create ${libname}_ixlibrary.a entries in /sys/libs.
24094 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'
24098 library_names_spec='${libname}${shared_ext}'
24099 dynamic_linker="$host_os ld.so"
24100 shlibpath_var=LIBRARY_PATH
24106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24107 soname_spec='${libname}${release}${shared_ext}$major'
24108 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24109 shlibpath_var=LD_LIBRARY_PATH
24110 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24111 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24112 # the default ld.so.conf also contains /usr/contrib/lib and
24113 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24114 # libtool to hard-code these into programs
24117 cygwin* | mingw* | pw32*)
24118 version_type=windows
24123 case $GCC,$host_os in
24124 yes,cygwin* | yes,mingw* | yes,pw32*)
24125 library_names_spec='$libname.dll.a'
24126 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24127 postinstall_cmds='base_file=`basename \${file}`~
24128 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24129 dldir=$destdir/`dirname \$dlpath`~
24130 test -d \$dldir || mkdir -p \$dldir~
24131 $install_prog $dir/$dlname \$dldir/$dlname~
24132 chmod a+x \$dldir/$dlname'
24133 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24134 dlpath=$dir/\$dldll~
24136 shlibpath_overrides_runpath=yes
24140 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24141 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24142 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
24145 # MinGW DLLs use traditional 'lib' prefix
24146 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24147 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24148 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24149 # It is most probably a Windows format PATH printed by
24150 # mingw gcc, but we are running on Cygwin. Gcc prints its search
24151 # path with ; separators, and with drive letters. We can handle the
24152 # drive letters (cygwin fileutils understands them), so leave them,
24153 # especially as we might pass files found there to a mingw objdump,
24154 # which wouldn't understand a cygwinified path. Ahh.
24155 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24157 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24161 # pw32 DLLs use 'pw' prefix rather than 'lib'
24162 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24168 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24171 dynamic_linker='Win32 ld.exe'
24172 # FIXME: first we should search . and the directory the executable is in
24176 darwin* | rhapsody*)
24177 dynamic_linker="$host_os dyld"
24178 version_type=darwin
24181 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24182 soname_spec='${libname}${release}${major}$shared_ext'
24183 shlibpath_overrides_runpath=yes
24184 shlibpath_var=DYLD_LIBRARY_PATH
24185 shrext_cmds='.dylib'
24186 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
24187 if test "$GCC" = yes; then
24188 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"`
24190 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
24192 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24200 soname_spec='${libname}${release}${shared_ext}$major'
24201 shlibpath_var=LD_LIBRARY_PATH
24212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24213 soname_spec='${libname}${release}${shared_ext}$major'
24214 shlibpath_var=LD_LIBRARY_PATH
24215 shlibpath_overrides_runpath=no
24216 hardcode_into_libs=yes
24217 dynamic_linker='GNU ld.so'
24220 freebsd* | dragonfly*)
24221 # DragonFly does not have aout. When/if they implement a new
24222 # versioning mechanism, adjust this.
24223 if test -x /usr/bin/objformat; then
24224 objformat=`/usr/bin/objformat`
24227 freebsd[123]*) objformat=aout ;;
24228 *) objformat=elf ;;
24231 version_type=freebsd-$objformat
24232 case $version_type in
24234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24239 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24243 shlibpath_var=LD_LIBRARY_PATH
24246 shlibpath_overrides_runpath=yes
24248 freebsd3.[01]* | freebsdelf3.[01]*)
24249 shlibpath_overrides_runpath=yes
24250 hardcode_into_libs=yes
24252 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24253 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24254 shlibpath_overrides_runpath=no
24255 hardcode_into_libs=yes
24257 freebsd*) # from 4.6 on
24258 shlibpath_overrides_runpath=yes
24259 hardcode_into_libs=yes
24268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24269 soname_spec='${libname}${release}${shared_ext}$major'
24270 shlibpath_var=LD_LIBRARY_PATH
24271 hardcode_into_libs=yes
24274 hpux9* | hpux10* | hpux11*)
24275 # Give a soname corresponding to the major version so that dld.sl refuses to
24276 # link against other versions.
24283 hardcode_into_libs=yes
24284 dynamic_linker="$host_os dld.so"
24285 shlibpath_var=LD_LIBRARY_PATH
24286 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24288 soname_spec='${libname}${release}${shared_ext}$major'
24289 if test "X$HPUX_IA64_MODE" = X32; then
24290 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24292 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24294 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24298 hardcode_into_libs=yes
24299 dynamic_linker="$host_os dld.sl"
24300 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24301 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24303 soname_spec='${libname}${release}${shared_ext}$major'
24304 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24305 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24309 dynamic_linker="$host_os dld.sl"
24310 shlibpath_var=SHLIB_PATH
24311 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24313 soname_spec='${libname}${release}${shared_ext}$major'
24316 # HP-UX runs *really* slowly unless shared libraries are mode 555.
24317 postinstall_cmds='chmod 555 $lib'
24324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24325 soname_spec='${libname}${release}${shared_ext}$major'
24326 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24327 shlibpath_var=LD_LIBRARY_PATH
24328 shlibpath_overrides_runpath=no
24329 hardcode_into_libs=yes
24332 irix5* | irix6* | nonstopux*)
24334 nonstopux*) version_type=nonstopux ;;
24336 if test "$lt_cv_prog_gnu_ld" = yes; then
24344 soname_spec='${libname}${release}${shared_ext}$major'
24345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24347 irix5* | nonstopux*)
24348 libsuff= shlibsuff=
24351 case $LD in # libtool.m4 will add one of these switches to LD
24352 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24353 libsuff= shlibsuff= libmagic=32-bit;;
24354 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24355 libsuff=32 shlibsuff=N32 libmagic=N32;;
24356 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24357 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24358 *) libsuff= shlibsuff= libmagic=never-match;;
24362 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24363 shlibpath_overrides_runpath=no
24364 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24365 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24366 hardcode_into_libs=yes
24369 # No shared lib support for Linux oldld, aout, or coff.
24370 linux*oldld* | linux*aout* | linux*coff*)
24374 # This must be Linux ELF.
24379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24380 soname_spec='${libname}${release}${shared_ext}$major'
24381 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24382 shlibpath_var=LD_LIBRARY_PATH
24383 shlibpath_overrides_runpath=no
24384 # This implies no fast_install, which is unacceptable.
24385 # Some rework will be needed to allow for fast_install
24386 # before this can be enabled.
24387 hardcode_into_libs=yes
24389 # Append ld.so.conf contents to the search path
24390 if test -f /etc/ld.so.conf; then
24391 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' ' '`
24392 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24395 # We used to test for /lib/ld.so.1 and disable shared libraries on
24396 # powerpc, because MkLinux only supported shared libraries with the
24397 # GNU dynamic linker. Since this was broken with cross compilers,
24398 # most powerpc-linux boxes support dynamic linking these days and
24399 # people can always --disable-shared, the test was removed, and we
24400 # assume the GNU/Linux dynamic linker is in use.
24401 dynamic_linker='GNU/Linux ld.so'
24408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24409 soname_spec='${libname}${release}${shared_ext}$major'
24410 shlibpath_var=LD_LIBRARY_PATH
24411 shlibpath_overrides_runpath=no
24412 hardcode_into_libs=yes
24413 dynamic_linker='GNU ld.so'
24420 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24423 dynamic_linker='NetBSD (a.out) ld.so'
24425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24426 soname_spec='${libname}${release}${shared_ext}$major'
24427 dynamic_linker='NetBSD ld.elf_so'
24429 shlibpath_var=LD_LIBRARY_PATH
24430 shlibpath_overrides_runpath=yes
24431 hardcode_into_libs=yes
24436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24437 shlibpath_var=LD_LIBRARY_PATH
24438 shlibpath_overrides_runpath=yes
24445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24446 soname_spec='${libname}${release}${shared_ext}$major'
24447 shlibpath_var=LD_LIBRARY_PATH
24448 shlibpath_overrides_runpath=yes
24453 sys_lib_dlsearch_path_spec="/usr/lib"
24455 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24457 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24458 *) need_version=no ;;
24460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24462 shlibpath_var=LD_LIBRARY_PATH
24463 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24465 openbsd2.[89] | openbsd2.[89].*)
24466 shlibpath_overrides_runpath=no
24469 shlibpath_overrides_runpath=yes
24473 shlibpath_overrides_runpath=yes
24478 libname_spec='$name'
24481 library_names_spec='$libname${shared_ext} $libname.a'
24482 dynamic_linker='OS/2 ld.exe'
24483 shlibpath_var=LIBPATH
24486 osf3* | osf4* | osf5*)
24490 soname_spec='${libname}${release}${shared_ext}$major'
24491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24492 shlibpath_var=LD_LIBRARY_PATH
24493 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24494 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24502 soname_spec='${libname}${release}${shared_ext}$major'
24503 shlibpath_var=LD_LIBRARY_PATH
24504 shlibpath_overrides_runpath=yes
24505 hardcode_into_libs=yes
24506 # ldd complains unless libraries are executable
24507 postinstall_cmds='chmod +x $lib'
24512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24513 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24514 shlibpath_var=LD_LIBRARY_PATH
24515 shlibpath_overrides_runpath=yes
24516 if test "$with_gnu_ld" = yes; then
24524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24525 soname_spec='${libname}${release}${shared_ext}$major'
24526 shlibpath_var=LD_LIBRARY_PATH
24527 case $host_vendor in
24529 shlibpath_overrides_runpath=no
24531 export_dynamic_flag_spec='${wl}-Blargedynsym'
24532 runpath_var=LD_RUN_PATH
24540 shlibpath_overrides_runpath=no
24541 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24547 if test -d /usr/nec ;then
24549 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24550 soname_spec='$libname${shared_ext}.$major'
24551 shlibpath_var=LD_LIBRARY_PATH
24555 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24556 version_type=freebsd-elf
24559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24560 soname_spec='${libname}${release}${shared_ext}$major'
24561 shlibpath_var=LD_LIBRARY_PATH
24562 hardcode_into_libs=yes
24563 if test "$with_gnu_ld" = yes; then
24564 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24565 shlibpath_overrides_runpath=no
24567 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24568 shlibpath_overrides_runpath=yes
24571 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24575 sys_lib_dlsearch_path_spec='/usr/lib'
24580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24581 soname_spec='${libname}${release}${shared_ext}$major'
24582 shlibpath_var=LD_LIBRARY_PATH
24589 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24590 echo "${ECHO_T}$dynamic_linker" >&6; }
24591 test "$dynamic_linker" = no && can_build_shared=no
24593 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24594 if test "$GCC" = yes; then
24595 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24598 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24599 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
24600 hardcode_action_GCJ=
24601 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24602 test -n "$runpath_var_GCJ" || \
24603 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24605 # We can hardcode non-existant directories.
24606 if test "$hardcode_direct_GCJ" != no &&
24607 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24608 # have to relink, otherwise we might link with an installed library
24609 # when we should be linking with a yet-to-be-installed one
24610 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24611 test "$hardcode_minus_L_GCJ" != no; then
24612 # Linking always hardcodes the temporary library directory.
24613 hardcode_action_GCJ=relink
24615 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24616 hardcode_action_GCJ=immediate
24619 # We cannot hardcode anything, or else we can only hardcode existing
24621 hardcode_action_GCJ=unsupported
24623 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24624 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
24626 if test "$hardcode_action_GCJ" = relink; then
24627 # Fast installation is not supported
24628 enable_fast_install=no
24629 elif test "$shlibpath_overrides_runpath" = yes ||
24630 test "$enable_shared" = no; then
24631 # Fast installation is not necessary
24632 enable_fast_install=needless
24636 # The else clause should only fire when bootstrapping the
24637 # libtool distribution, otherwise you forgot to ship ltmain.sh
24638 # with your package, and you will get complaints that there are
24639 # no rules to generate ltmain.sh.
24640 if test -f "$ltmain"; then
24641 # See if we are running on zsh, and set the options which allow our commands through
24642 # without removal of \ escapes.
24643 if test -n "${ZSH_VERSION+set}" ; then
24644 setopt NO_GLOB_SUBST
24646 # Now quote all the things that may contain metacharacters while being
24647 # careful not to overquote the AC_SUBSTed values. We take copies of the
24648 # variables and quote the copies for generation of the libtool script.
24649 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
24651 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24652 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24653 deplibs_check_method reload_flag reload_cmds need_locks \
24654 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24655 lt_cv_sys_global_symbol_to_c_name_address \
24656 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24657 old_postinstall_cmds old_postuninstall_cmds \
24661 lt_prog_compiler_wl_GCJ \
24662 lt_prog_compiler_pic_GCJ \
24663 lt_prog_compiler_static_GCJ \
24664 lt_prog_compiler_no_builtin_flag_GCJ \
24665 export_dynamic_flag_spec_GCJ \
24666 thread_safe_flag_spec_GCJ \
24667 whole_archive_flag_spec_GCJ \
24668 enable_shared_with_static_runtimes_GCJ \
24669 old_archive_cmds_GCJ \
24670 old_archive_from_new_cmds_GCJ \
24671 predep_objects_GCJ \
24672 postdep_objects_GCJ \
24675 compiler_lib_search_path_GCJ \
24677 archive_expsym_cmds_GCJ \
24678 postinstall_cmds_GCJ \
24679 postuninstall_cmds_GCJ \
24680 old_archive_from_expsyms_cmds_GCJ \
24681 allow_undefined_flag_GCJ \
24682 no_undefined_flag_GCJ \
24683 export_symbols_cmds_GCJ \
24684 hardcode_libdir_flag_spec_GCJ \
24685 hardcode_libdir_flag_spec_ld_GCJ \
24686 hardcode_libdir_separator_GCJ \
24687 hardcode_automatic_GCJ \
24689 module_expsym_cmds_GCJ \
24690 lt_cv_prog_compiler_c_o_GCJ \
24691 exclude_expsyms_GCJ \
24692 include_expsyms_GCJ; do
24695 old_archive_cmds_GCJ | \
24696 old_archive_from_new_cmds_GCJ | \
24697 archive_cmds_GCJ | \
24698 archive_expsym_cmds_GCJ | \
24699 module_cmds_GCJ | \
24700 module_expsym_cmds_GCJ | \
24701 old_archive_from_expsyms_cmds_GCJ | \
24702 export_symbols_cmds_GCJ | \
24703 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24704 postinstall_cmds | postuninstall_cmds | \
24705 old_postinstall_cmds | old_postuninstall_cmds | \
24706 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24707 # Double-quote double-evaled strings.
24708 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24711 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24717 *'\$0 --fallback-echo"')
24718 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24724 cat <<__EOF__ >> "$cfgfile"
24725 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24727 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24729 # Shell to use when invoking shell scripts.
24732 # Whether or not to build shared libraries.
24733 build_libtool_libs=$enable_shared
24735 # Whether or not to build static libraries.
24736 build_old_libs=$enable_static
24738 # Whether or not to add -lc for building shared libraries.
24739 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24741 # Whether or not to disallow shared libs when runtime libs are static
24742 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24744 # Whether or not to optimize for fast installation.
24745 fast_install=$enable_fast_install
24748 host_alias=$host_alias
24752 # The build system.
24753 build_alias=$build_alias
24757 # An echo program that does not interpret backslashes.
24762 AR_FLAGS=$lt_AR_FLAGS
24767 # LTCC compiler flags.
24768 LTCFLAGS=$lt_LTCFLAGS
24770 # A language-specific compiler.
24771 CC=$lt_compiler_GCJ
24773 # Is the compiler the GNU C compiler?
24779 # The linker used to build libraries.
24782 # Whether we need hard or soft links.
24785 # A BSD-compatible nm program.
24788 # A symbol stripping program
24791 # Used to examine libraries when file_magic_cmd begins "file"
24792 MAGIC_CMD=$MAGIC_CMD
24794 # Used on cygwin: DLL creation program.
24797 # Used on cygwin: object dumper.
24800 # Used on cygwin: assembler.
24803 # The name of the directory that contains temporary libtool files.
24806 # How to create reloadable object files.
24807 reload_flag=$lt_reload_flag
24808 reload_cmds=$lt_reload_cmds
24810 # How to pass a linker flag through the compiler.
24811 wl=$lt_lt_prog_compiler_wl_GCJ
24813 # Object file suffix (normally "o").
24814 objext="$ac_objext"
24816 # Old archive suffix (normally "a").
24819 # Shared library suffix (normally ".so").
24820 shrext_cmds='$shrext_cmds'
24822 # Executable file suffix (normally "").
24825 # Additional compiler flags for building library objects.
24826 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24829 # What is the maximum length of a command?
24830 max_cmd_len=$lt_cv_sys_max_cmd_len
24832 # Does compiler simultaneously support -c and -o options?
24833 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24835 # Must we lock files when doing compilation?
24836 need_locks=$lt_need_locks
24838 # Do we need the lib prefix for modules?
24839 need_lib_prefix=$need_lib_prefix
24841 # Do we need a version for libraries?
24842 need_version=$need_version
24844 # Whether dlopen is supported.
24845 dlopen_support=$enable_dlopen
24847 # Whether dlopen of programs is supported.
24848 dlopen_self=$enable_dlopen_self
24850 # Whether dlopen of statically linked programs is supported.
24851 dlopen_self_static=$enable_dlopen_self_static
24853 # Compiler flag to prevent dynamic linking.
24854 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24856 # Compiler flag to turn off builtin functions.
24857 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24859 # Compiler flag to allow reflexive dlopens.
24860 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24862 # Compiler flag to generate shared objects directly from archives.
24863 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24865 # Compiler flag to generate thread-safe objects.
24866 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24868 # Library versioning type.
24869 version_type=$version_type
24871 # Format of library name prefix.
24872 libname_spec=$lt_libname_spec
24874 # List of archive names. First name is the real one, the rest are links.
24875 # The last name is the one that the linker finds with -lNAME.
24876 library_names_spec=$lt_library_names_spec
24878 # The coded name of the library, if different from the real name.
24879 soname_spec=$lt_soname_spec
24881 # Commands used to build and install an old-style archive.
24883 old_archive_cmds=$lt_old_archive_cmds_GCJ
24884 old_postinstall_cmds=$lt_old_postinstall_cmds
24885 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24887 # Create an old-style archive from a shared archive.
24888 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24890 # Create a temporary old-style archive to link instead of a shared archive.
24891 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24893 # Commands used to build and install a shared archive.
24894 archive_cmds=$lt_archive_cmds_GCJ
24895 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24896 postinstall_cmds=$lt_postinstall_cmds
24897 postuninstall_cmds=$lt_postuninstall_cmds
24899 # Commands used to build a loadable module (assumed same as above if empty)
24900 module_cmds=$lt_module_cmds_GCJ
24901 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24903 # Commands to strip libraries.
24904 old_striplib=$lt_old_striplib
24905 striplib=$lt_striplib
24907 # Dependencies to place before the objects being linked to create a
24909 predep_objects=$lt_predep_objects_GCJ
24911 # Dependencies to place after the objects being linked to create a
24913 postdep_objects=$lt_postdep_objects_GCJ
24915 # Dependencies to place before the objects being linked to create a
24917 predeps=$lt_predeps_GCJ
24919 # Dependencies to place after the objects being linked to create a
24921 postdeps=$lt_postdeps_GCJ
24923 # The library search path used internally by the compiler when linking
24924 # a shared library.
24925 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24927 # Method to check whether dependent libraries are shared objects.
24928 deplibs_check_method=$lt_deplibs_check_method
24930 # Command to use when deplibs_check_method == file_magic.
24931 file_magic_cmd=$lt_file_magic_cmd
24933 # Flag that allows shared libraries with undefined symbols to be built.
24934 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24936 # Flag that forces no undefined symbols.
24937 no_undefined_flag=$lt_no_undefined_flag_GCJ
24939 # Commands used to finish a libtool library installation in a directory.
24940 finish_cmds=$lt_finish_cmds
24942 # Same as above, but a single script fragment to be evaled but not shown.
24943 finish_eval=$lt_finish_eval
24945 # Take the output of nm and produce a listing of raw symbols and C names.
24946 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24948 # Transform the output of nm in a proper C declaration
24949 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24951 # Transform the output of nm in a C name address pair
24952 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24954 # This is the shared library runtime path variable.
24955 runpath_var=$runpath_var
24957 # This is the shared library path variable.
24958 shlibpath_var=$shlibpath_var
24960 # Is shlibpath searched before the hard-coded library search path?
24961 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24963 # How to hardcode a shared library path into an executable.
24964 hardcode_action=$hardcode_action_GCJ
24966 # Whether we should hardcode library paths into libraries.
24967 hardcode_into_libs=$hardcode_into_libs
24969 # Flag to hardcode \$libdir into a binary during linking.
24970 # This must work even if \$libdir does not exist.
24971 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24973 # If ld is used when linking, flag to hardcode \$libdir into
24974 # a binary during linking. This must work even if \$libdir does
24976 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24978 # Whether we need a single -rpath flag with a separated argument.
24979 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24981 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24982 # resulting binary.
24983 hardcode_direct=$hardcode_direct_GCJ
24985 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24986 # resulting binary.
24987 hardcode_minus_L=$hardcode_minus_L_GCJ
24989 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24990 # the resulting binary.
24991 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24993 # Set to yes if building a shared library automatically hardcodes DIR into the library
24994 # and all subsequent libraries and executables linked against it.
24995 hardcode_automatic=$hardcode_automatic_GCJ
24997 # Variables whose values should be saved in libtool wrapper scripts and
24998 # restored at relink time.
24999 variables_saved_for_relink="$variables_saved_for_relink"
25001 # Whether libtool must link a program against all its dependency libraries.
25002 link_all_deplibs=$link_all_deplibs_GCJ
25004 # Compile-time system search path for libraries
25005 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25007 # Run-time system search path for libraries
25008 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25010 # Fix the shell variable \$srcfile for the compiler.
25011 fix_srcfile_path="$fix_srcfile_path_GCJ"
25013 # Set to yes if exported symbols are required.
25014 always_export_symbols=$always_export_symbols_GCJ
25016 # The commands to list exported symbols.
25017 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25019 # The commands to extract the exported symbol list from a shared archive.
25020 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25022 # Symbols that should not be listed in the preloaded symbols.
25023 exclude_expsyms=$lt_exclude_expsyms_GCJ
25025 # Symbols that must always be exported.
25026 include_expsyms=$lt_include_expsyms_GCJ
25028 # ### END LIBTOOL TAG CONFIG: $tagname
25034 # If there is no Makefile yet, we rely on a make rule to execute
25035 # `config.status --recheck' to rerun these tests and create the
25036 # libtool script then.
25037 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25038 if test -f "$ltmain_in"; then
25039 test -f Makefile && make "$ltmain"
25045 ac_cpp='$CPP $CPPFLAGS'
25046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25059 ac_cpp='$CPP $CPPFLAGS'
25060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25065 # Source file extension for RC test sources.
25068 # Object file extension for compiled RC test sources.
25072 # Code to be used in simple compile tests
25073 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25075 # Code to be used in simple link tests
25076 lt_simple_link_test_code="$lt_simple_compile_test_code"
25078 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25080 # If no C compiler was specified, use CC.
25083 # If no C compiler flags were specified, use CFLAGS.
25084 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25086 # Allow CC to be a program name with arguments.
25090 # save warnings/boilerplate of simple test code
25091 ac_outfile=conftest.$ac_objext
25092 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25093 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25094 _lt_compiler_boilerplate=`cat conftest.err`
25097 ac_outfile=conftest.$ac_objext
25098 printf "$lt_simple_link_test_code" >conftest.$ac_ext
25099 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25100 _lt_linker_boilerplate=`cat conftest.err`
25104 # Allow CC to be a program name with arguments.
25109 for cc_temp in $compiler""; do
25111 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25112 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25117 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25119 lt_cv_prog_compiler_c_o_RC=yes
25121 # The else clause should only fire when bootstrapping the
25122 # libtool distribution, otherwise you forgot to ship ltmain.sh
25123 # with your package, and you will get complaints that there are
25124 # no rules to generate ltmain.sh.
25125 if test -f "$ltmain"; then
25126 # See if we are running on zsh, and set the options which allow our commands through
25127 # without removal of \ escapes.
25128 if test -n "${ZSH_VERSION+set}" ; then
25129 setopt NO_GLOB_SUBST
25131 # Now quote all the things that may contain metacharacters while being
25132 # careful not to overquote the AC_SUBSTed values. We take copies of the
25133 # variables and quote the copies for generation of the libtool script.
25134 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25136 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25137 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25138 deplibs_check_method reload_flag reload_cmds need_locks \
25139 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25140 lt_cv_sys_global_symbol_to_c_name_address \
25141 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25142 old_postinstall_cmds old_postuninstall_cmds \
25146 lt_prog_compiler_wl_RC \
25147 lt_prog_compiler_pic_RC \
25148 lt_prog_compiler_static_RC \
25149 lt_prog_compiler_no_builtin_flag_RC \
25150 export_dynamic_flag_spec_RC \
25151 thread_safe_flag_spec_RC \
25152 whole_archive_flag_spec_RC \
25153 enable_shared_with_static_runtimes_RC \
25154 old_archive_cmds_RC \
25155 old_archive_from_new_cmds_RC \
25156 predep_objects_RC \
25157 postdep_objects_RC \
25160 compiler_lib_search_path_RC \
25162 archive_expsym_cmds_RC \
25163 postinstall_cmds_RC \
25164 postuninstall_cmds_RC \
25165 old_archive_from_expsyms_cmds_RC \
25166 allow_undefined_flag_RC \
25167 no_undefined_flag_RC \
25168 export_symbols_cmds_RC \
25169 hardcode_libdir_flag_spec_RC \
25170 hardcode_libdir_flag_spec_ld_RC \
25171 hardcode_libdir_separator_RC \
25172 hardcode_automatic_RC \
25174 module_expsym_cmds_RC \
25175 lt_cv_prog_compiler_c_o_RC \
25176 exclude_expsyms_RC \
25177 include_expsyms_RC; do
25180 old_archive_cmds_RC | \
25181 old_archive_from_new_cmds_RC | \
25182 archive_cmds_RC | \
25183 archive_expsym_cmds_RC | \
25185 module_expsym_cmds_RC | \
25186 old_archive_from_expsyms_cmds_RC | \
25187 export_symbols_cmds_RC | \
25188 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25189 postinstall_cmds | postuninstall_cmds | \
25190 old_postinstall_cmds | old_postuninstall_cmds | \
25191 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25192 # Double-quote double-evaled strings.
25193 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25196 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25202 *'\$0 --fallback-echo"')
25203 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25209 cat <<__EOF__ >> "$cfgfile"
25210 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25212 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25214 # Shell to use when invoking shell scripts.
25217 # Whether or not to build shared libraries.
25218 build_libtool_libs=$enable_shared
25220 # Whether or not to build static libraries.
25221 build_old_libs=$enable_static
25223 # Whether or not to add -lc for building shared libraries.
25224 build_libtool_need_lc=$archive_cmds_need_lc_RC
25226 # Whether or not to disallow shared libs when runtime libs are static
25227 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25229 # Whether or not to optimize for fast installation.
25230 fast_install=$enable_fast_install
25233 host_alias=$host_alias
25237 # The build system.
25238 build_alias=$build_alias
25242 # An echo program that does not interpret backslashes.
25247 AR_FLAGS=$lt_AR_FLAGS
25252 # LTCC compiler flags.
25253 LTCFLAGS=$lt_LTCFLAGS
25255 # A language-specific compiler.
25258 # Is the compiler the GNU C compiler?
25264 # The linker used to build libraries.
25267 # Whether we need hard or soft links.
25270 # A BSD-compatible nm program.
25273 # A symbol stripping program
25276 # Used to examine libraries when file_magic_cmd begins "file"
25277 MAGIC_CMD=$MAGIC_CMD
25279 # Used on cygwin: DLL creation program.
25282 # Used on cygwin: object dumper.
25285 # Used on cygwin: assembler.
25288 # The name of the directory that contains temporary libtool files.
25291 # How to create reloadable object files.
25292 reload_flag=$lt_reload_flag
25293 reload_cmds=$lt_reload_cmds
25295 # How to pass a linker flag through the compiler.
25296 wl=$lt_lt_prog_compiler_wl_RC
25298 # Object file suffix (normally "o").
25299 objext="$ac_objext"
25301 # Old archive suffix (normally "a").
25304 # Shared library suffix (normally ".so").
25305 shrext_cmds='$shrext_cmds'
25307 # Executable file suffix (normally "").
25310 # Additional compiler flags for building library objects.
25311 pic_flag=$lt_lt_prog_compiler_pic_RC
25314 # What is the maximum length of a command?
25315 max_cmd_len=$lt_cv_sys_max_cmd_len
25317 # Does compiler simultaneously support -c and -o options?
25318 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25320 # Must we lock files when doing compilation?
25321 need_locks=$lt_need_locks
25323 # Do we need the lib prefix for modules?
25324 need_lib_prefix=$need_lib_prefix
25326 # Do we need a version for libraries?
25327 need_version=$need_version
25329 # Whether dlopen is supported.
25330 dlopen_support=$enable_dlopen
25332 # Whether dlopen of programs is supported.
25333 dlopen_self=$enable_dlopen_self
25335 # Whether dlopen of statically linked programs is supported.
25336 dlopen_self_static=$enable_dlopen_self_static
25338 # Compiler flag to prevent dynamic linking.
25339 link_static_flag=$lt_lt_prog_compiler_static_RC
25341 # Compiler flag to turn off builtin functions.
25342 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25344 # Compiler flag to allow reflexive dlopens.
25345 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25347 # Compiler flag to generate shared objects directly from archives.
25348 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25350 # Compiler flag to generate thread-safe objects.
25351 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25353 # Library versioning type.
25354 version_type=$version_type
25356 # Format of library name prefix.
25357 libname_spec=$lt_libname_spec
25359 # List of archive names. First name is the real one, the rest are links.
25360 # The last name is the one that the linker finds with -lNAME.
25361 library_names_spec=$lt_library_names_spec
25363 # The coded name of the library, if different from the real name.
25364 soname_spec=$lt_soname_spec
25366 # Commands used to build and install an old-style archive.
25368 old_archive_cmds=$lt_old_archive_cmds_RC
25369 old_postinstall_cmds=$lt_old_postinstall_cmds
25370 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25372 # Create an old-style archive from a shared archive.
25373 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25375 # Create a temporary old-style archive to link instead of a shared archive.
25376 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25378 # Commands used to build and install a shared archive.
25379 archive_cmds=$lt_archive_cmds_RC
25380 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25381 postinstall_cmds=$lt_postinstall_cmds
25382 postuninstall_cmds=$lt_postuninstall_cmds
25384 # Commands used to build a loadable module (assumed same as above if empty)
25385 module_cmds=$lt_module_cmds_RC
25386 module_expsym_cmds=$lt_module_expsym_cmds_RC
25388 # Commands to strip libraries.
25389 old_striplib=$lt_old_striplib
25390 striplib=$lt_striplib
25392 # Dependencies to place before the objects being linked to create a
25394 predep_objects=$lt_predep_objects_RC
25396 # Dependencies to place after the objects being linked to create a
25398 postdep_objects=$lt_postdep_objects_RC
25400 # Dependencies to place before the objects being linked to create a
25402 predeps=$lt_predeps_RC
25404 # Dependencies to place after the objects being linked to create a
25406 postdeps=$lt_postdeps_RC
25408 # The library search path used internally by the compiler when linking
25409 # a shared library.
25410 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25412 # Method to check whether dependent libraries are shared objects.
25413 deplibs_check_method=$lt_deplibs_check_method
25415 # Command to use when deplibs_check_method == file_magic.
25416 file_magic_cmd=$lt_file_magic_cmd
25418 # Flag that allows shared libraries with undefined symbols to be built.
25419 allow_undefined_flag=$lt_allow_undefined_flag_RC
25421 # Flag that forces no undefined symbols.
25422 no_undefined_flag=$lt_no_undefined_flag_RC
25424 # Commands used to finish a libtool library installation in a directory.
25425 finish_cmds=$lt_finish_cmds
25427 # Same as above, but a single script fragment to be evaled but not shown.
25428 finish_eval=$lt_finish_eval
25430 # Take the output of nm and produce a listing of raw symbols and C names.
25431 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25433 # Transform the output of nm in a proper C declaration
25434 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25436 # Transform the output of nm in a C name address pair
25437 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25439 # This is the shared library runtime path variable.
25440 runpath_var=$runpath_var
25442 # This is the shared library path variable.
25443 shlibpath_var=$shlibpath_var
25445 # Is shlibpath searched before the hard-coded library search path?
25446 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25448 # How to hardcode a shared library path into an executable.
25449 hardcode_action=$hardcode_action_RC
25451 # Whether we should hardcode library paths into libraries.
25452 hardcode_into_libs=$hardcode_into_libs
25454 # Flag to hardcode \$libdir into a binary during linking.
25455 # This must work even if \$libdir does not exist.
25456 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25458 # If ld is used when linking, flag to hardcode \$libdir into
25459 # a binary during linking. This must work even if \$libdir does
25461 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25463 # Whether we need a single -rpath flag with a separated argument.
25464 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25466 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25467 # resulting binary.
25468 hardcode_direct=$hardcode_direct_RC
25470 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25471 # resulting binary.
25472 hardcode_minus_L=$hardcode_minus_L_RC
25474 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25475 # the resulting binary.
25476 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25478 # Set to yes if building a shared library automatically hardcodes DIR into the library
25479 # and all subsequent libraries and executables linked against it.
25480 hardcode_automatic=$hardcode_automatic_RC
25482 # Variables whose values should be saved in libtool wrapper scripts and
25483 # restored at relink time.
25484 variables_saved_for_relink="$variables_saved_for_relink"
25486 # Whether libtool must link a program against all its dependency libraries.
25487 link_all_deplibs=$link_all_deplibs_RC
25489 # Compile-time system search path for libraries
25490 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25492 # Run-time system search path for libraries
25493 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25495 # Fix the shell variable \$srcfile for the compiler.
25496 fix_srcfile_path="$fix_srcfile_path_RC"
25498 # Set to yes if exported symbols are required.
25499 always_export_symbols=$always_export_symbols_RC
25501 # The commands to list exported symbols.
25502 export_symbols_cmds=$lt_export_symbols_cmds_RC
25504 # The commands to extract the exported symbol list from a shared archive.
25505 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25507 # Symbols that should not be listed in the preloaded symbols.
25508 exclude_expsyms=$lt_exclude_expsyms_RC
25510 # Symbols that must always be exported.
25511 include_expsyms=$lt_include_expsyms_RC
25513 # ### END LIBTOOL TAG CONFIG: $tagname
25519 # If there is no Makefile yet, we rely on a make rule to execute
25520 # `config.status --recheck' to rerun these tests and create the
25521 # libtool script then.
25522 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25523 if test -f "$ltmain_in"; then
25524 test -f Makefile && make "$ltmain"
25530 ac_cpp='$CPP $CPPFLAGS'
25531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25540 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25541 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25542 { (exit 1); exit 1; }; }
25546 # Append the new tag name to the list of available tags.
25547 if test -n "$tagname" ; then
25548 available_tags="$available_tags $tagname"
25554 # Now substitute the updated list of available tags.
25555 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25556 mv "${ofile}T" "$ofile"
25560 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25561 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25562 { (exit 1); exit 1; }; }
25568 # This can be used to rebuild libtool when needed
25569 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25571 # Always use our own libtool.
25572 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
25574 # Prevent multiple expansion
25596 if test "$lt_cv_dlopen_self" = "yes" ; then
25598 cat >>confdefs.h <<\_ACEOF
25599 #define CAN_DLOPEN_SELF 1
25604 if test "$WITH_LLVMGCCDIR" = "default" ; then
25605 LLVMGCC="llvm-gcc${EXEEXT}"
25606 LLVMGXX="llvm-g++${EXEEXT}"
25607 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25608 set dummy $LLVMGCC; ac_word=$2
25609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25611 if test "${ac_cv_path_LLVMGCC+set}" = set; then
25612 echo $ECHO_N "(cached) $ECHO_C" >&6
25616 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25620 for as_dir in $PATH
25623 test -z "$as_dir" && as_dir=.
25624 for ac_exec_ext in '' $ac_executable_extensions; do
25625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25626 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25637 LLVMGCC=$ac_cv_path_LLVMGCC
25638 if test -n "$LLVMGCC"; then
25639 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25640 echo "${ECHO_T}$LLVMGCC" >&6; }
25642 { echo "$as_me:$LINENO: result: no" >&5
25643 echo "${ECHO_T}no" >&6; }
25647 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25648 set dummy $LLVMGXX; ac_word=$2
25649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25651 if test "${ac_cv_path_LLVMGXX+set}" = set; then
25652 echo $ECHO_N "(cached) $ECHO_C" >&6
25656 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25660 for as_dir in $PATH
25663 test -z "$as_dir" && as_dir=.
25664 for ac_exec_ext in '' $ac_executable_extensions; do
25665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25666 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25677 LLVMGXX=$ac_cv_path_LLVMGXX
25678 if test -n "$LLVMGXX"; then
25679 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25680 echo "${ECHO_T}$LLVMGXX" >&6; }
25682 { echo "$as_me:$LINENO: result: no" >&5
25683 echo "${ECHO_T}no" >&6; }
25688 if test -z "$LLVMGCC"; then
25689 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25691 if test -z "$LLVMGXX"; then
25692 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25700 { echo "$as_me:$LINENO: checking tool compatibility" >&5
25701 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
25714 if test "$GCC" != "yes" && test "$ICC" != "yes"
25716 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25717 echo "$as_me: error: gcc|icc required but not found" >&2;}
25718 { (exit 1); exit 1; }; }
25721 if test "$GXX" != "yes" && test "$IXX" != "yes"
25723 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25724 echo "$as_me: error: g++|icc required but not found" >&2;}
25725 { (exit 1); exit 1; }; }
25728 if test "$GCC" = "yes"
25730 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
25731 if test "$gccmajor" -lt "3"
25733 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
25734 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25735 { (exit 1); exit 1; }; }
25739 if test -z "$llvm_cv_gnu_make_command"
25741 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25742 echo "$as_me: error: GNU Make required but not found" >&2;}
25743 { (exit 1); exit 1; }; }
25746 { echo "$as_me:$LINENO: result: ok" >&5
25747 echo "${ECHO_T}ok" >&6; }
25751 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25752 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
25753 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25754 echo $ECHO_N "(cached) $ECHO_C" >&6
25756 ac_check_lib_save_LIBS=$LIBS
25758 cat >conftest.$ac_ext <<_ACEOF
25761 cat confdefs.h >>conftest.$ac_ext
25762 cat >>conftest.$ac_ext <<_ACEOF
25763 /* end confdefs.h. */
25765 /* Override any GCC internal prototype to avoid an error.
25766 Use char because int might match the return type of a GCC
25767 builtin and then its argument prototype would still apply. */
25775 return elf_begin ();
25780 rm -f conftest.$ac_objext conftest$ac_exeext
25781 if { (ac_try="$ac_link"
25782 case "(($ac_try" in
25783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25784 *) ac_try_echo=$ac_try;;
25786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25787 (eval "$ac_link") 2>conftest.er1
25789 grep -v '^ *+' conftest.er1 >conftest.err
25791 cat conftest.err >&5
25792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25793 (exit $ac_status); } && {
25794 test -z "$ac_c_werror_flag" ||
25795 test ! -s conftest.err
25796 } && test -s conftest$ac_exeext &&
25797 $as_test_x conftest$ac_exeext; then
25798 ac_cv_lib_elf_elf_begin=yes
25800 echo "$as_me: failed program was:" >&5
25801 sed 's/^/| /' conftest.$ac_ext >&5
25803 ac_cv_lib_elf_elf_begin=no
25806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25807 conftest$ac_exeext conftest.$ac_ext
25808 LIBS=$ac_check_lib_save_LIBS
25810 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25811 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
25812 if test $ac_cv_lib_elf_elf_begin = yes; then
25813 cat >>confdefs.h <<_ACEOF
25814 #define HAVE_LIBELF 1
25822 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
25823 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
25824 if test "${ac_cv_lib_m_sin+set}" = set; then
25825 echo $ECHO_N "(cached) $ECHO_C" >&6
25827 ac_check_lib_save_LIBS=$LIBS
25829 cat >conftest.$ac_ext <<_ACEOF
25832 cat confdefs.h >>conftest.$ac_ext
25833 cat >>conftest.$ac_ext <<_ACEOF
25834 /* end confdefs.h. */
25836 /* Override any GCC internal prototype to avoid an error.
25837 Use char because int might match the return type of a GCC
25838 builtin and then its argument prototype would still apply. */
25851 rm -f conftest.$ac_objext conftest$ac_exeext
25852 if { (ac_try="$ac_link"
25853 case "(($ac_try" in
25854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25855 *) ac_try_echo=$ac_try;;
25857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25858 (eval "$ac_link") 2>conftest.er1
25860 grep -v '^ *+' conftest.er1 >conftest.err
25862 cat conftest.err >&5
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); } && {
25865 test -z "$ac_c_werror_flag" ||
25866 test ! -s conftest.err
25867 } && test -s conftest$ac_exeext &&
25868 $as_test_x conftest$ac_exeext; then
25869 ac_cv_lib_m_sin=yes
25871 echo "$as_me: failed program was:" >&5
25872 sed 's/^/| /' conftest.$ac_ext >&5
25877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25878 conftest$ac_exeext conftest.$ac_ext
25879 LIBS=$ac_check_lib_save_LIBS
25881 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25882 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
25883 if test $ac_cv_lib_m_sin = yes; then
25884 cat >>confdefs.h <<_ACEOF
25885 #define HAVE_LIBM 1
25892 if test "$llvm_cv_os_type" = "MingW" ; then
25894 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25895 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
25896 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
25897 echo $ECHO_N "(cached) $ECHO_C" >&6
25899 ac_check_lib_save_LIBS=$LIBS
25900 LIBS="-limagehlp $LIBS"
25901 cat >conftest.$ac_ext <<_ACEOF
25904 cat confdefs.h >>conftest.$ac_ext
25905 cat >>conftest.$ac_ext <<_ACEOF
25906 /* end confdefs.h. */
25917 rm -f conftest.$ac_objext conftest$ac_exeext
25918 if { (ac_try="$ac_link"
25919 case "(($ac_try" in
25920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25921 *) ac_try_echo=$ac_try;;
25923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25924 (eval "$ac_link") 2>conftest.er1
25926 grep -v '^ *+' conftest.er1 >conftest.err
25928 cat conftest.err >&5
25929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930 (exit $ac_status); } && {
25931 test -z "$ac_c_werror_flag" ||
25932 test ! -s conftest.err
25933 } && test -s conftest$ac_exeext &&
25934 $as_test_x conftest$ac_exeext; then
25935 ac_cv_lib_imagehlp_main=yes
25937 echo "$as_me: failed program was:" >&5
25938 sed 's/^/| /' conftest.$ac_ext >&5
25940 ac_cv_lib_imagehlp_main=no
25943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25944 conftest$ac_exeext conftest.$ac_ext
25945 LIBS=$ac_check_lib_save_LIBS
25947 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25948 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
25949 if test $ac_cv_lib_imagehlp_main = yes; then
25950 cat >>confdefs.h <<_ACEOF
25951 #define HAVE_LIBIMAGEHLP 1
25954 LIBS="-limagehlp $LIBS"
25959 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25960 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
25961 if test "${ac_cv_lib_psapi_main+set}" = set; then
25962 echo $ECHO_N "(cached) $ECHO_C" >&6
25964 ac_check_lib_save_LIBS=$LIBS
25965 LIBS="-lpsapi $LIBS"
25966 cat >conftest.$ac_ext <<_ACEOF
25969 cat confdefs.h >>conftest.$ac_ext
25970 cat >>conftest.$ac_ext <<_ACEOF
25971 /* end confdefs.h. */
25982 rm -f conftest.$ac_objext conftest$ac_exeext
25983 if { (ac_try="$ac_link"
25984 case "(($ac_try" in
25985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25986 *) ac_try_echo=$ac_try;;
25988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25989 (eval "$ac_link") 2>conftest.er1
25991 grep -v '^ *+' conftest.er1 >conftest.err
25993 cat conftest.err >&5
25994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995 (exit $ac_status); } && {
25996 test -z "$ac_c_werror_flag" ||
25997 test ! -s conftest.err
25998 } && test -s conftest$ac_exeext &&
25999 $as_test_x conftest$ac_exeext; then
26000 ac_cv_lib_psapi_main=yes
26002 echo "$as_me: failed program was:" >&5
26003 sed 's/^/| /' conftest.$ac_ext >&5
26005 ac_cv_lib_psapi_main=no
26008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26009 conftest$ac_exeext conftest.$ac_ext
26010 LIBS=$ac_check_lib_save_LIBS
26012 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
26013 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
26014 if test $ac_cv_lib_psapi_main = yes; then
26015 cat >>confdefs.h <<_ACEOF
26016 #define HAVE_LIBPSAPI 1
26019 LIBS="-lpsapi $LIBS"
26025 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
26026 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
26027 if test "${ac_cv_search_lt_dlopen+set}" = set; then
26028 echo $ECHO_N "(cached) $ECHO_C" >&6
26030 ac_func_search_save_LIBS=$LIBS
26031 cat >conftest.$ac_ext <<_ACEOF
26034 cat confdefs.h >>conftest.$ac_ext
26035 cat >>conftest.$ac_ext <<_ACEOF
26036 /* end confdefs.h. */
26038 /* Override any GCC internal prototype to avoid an error.
26039 Use char because int might match the return type of a GCC
26040 builtin and then its argument prototype would still apply. */
26048 return lt_dlopen ();
26053 for ac_lib in '' ltdl; do
26054 if test -z "$ac_lib"; then
26055 ac_res="none required"
26058 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26060 rm -f conftest.$ac_objext conftest$ac_exeext
26061 if { (ac_try="$ac_link"
26062 case "(($ac_try" in
26063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26064 *) ac_try_echo=$ac_try;;
26066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26067 (eval "$ac_link") 2>conftest.er1
26069 grep -v '^ *+' conftest.er1 >conftest.err
26071 cat conftest.err >&5
26072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073 (exit $ac_status); } && {
26074 test -z "$ac_c_werror_flag" ||
26075 test ! -s conftest.err
26076 } && test -s conftest$ac_exeext &&
26077 $as_test_x conftest$ac_exeext; then
26078 ac_cv_search_lt_dlopen=$ac_res
26080 echo "$as_me: failed program was:" >&5
26081 sed 's/^/| /' conftest.$ac_ext >&5
26086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26088 if test "${ac_cv_search_lt_dlopen+set}" = set; then
26092 if test "${ac_cv_search_lt_dlopen+set}" = set; then
26095 ac_cv_search_lt_dlopen=no
26097 rm conftest.$ac_ext
26098 LIBS=$ac_func_search_save_LIBS
26100 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
26101 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
26102 ac_res=$ac_cv_search_lt_dlopen
26103 if test "$ac_res" != no; then
26104 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26106 cat >>confdefs.h <<\_ACEOF
26107 #define HAVE_LT_DLOPEN 1
26111 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
26112 not be available" >&5
26113 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
26114 not be available" >&2;}
26118 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
26119 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
26120 if test "${ac_cv_search_dlopen+set}" = set; then
26121 echo $ECHO_N "(cached) $ECHO_C" >&6
26123 ac_func_search_save_LIBS=$LIBS
26124 cat >conftest.$ac_ext <<_ACEOF
26127 cat confdefs.h >>conftest.$ac_ext
26128 cat >>conftest.$ac_ext <<_ACEOF
26129 /* end confdefs.h. */
26131 /* Override any GCC internal prototype to avoid an error.
26132 Use char because int might match the return type of a GCC
26133 builtin and then its argument prototype would still apply. */
26146 for ac_lib in '' dl; do
26147 if test -z "$ac_lib"; then
26148 ac_res="none required"
26151 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26153 rm -f conftest.$ac_objext conftest$ac_exeext
26154 if { (ac_try="$ac_link"
26155 case "(($ac_try" in
26156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26157 *) ac_try_echo=$ac_try;;
26159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26160 (eval "$ac_link") 2>conftest.er1
26162 grep -v '^ *+' conftest.er1 >conftest.err
26164 cat conftest.err >&5
26165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166 (exit $ac_status); } && {
26167 test -z "$ac_c_werror_flag" ||
26168 test ! -s conftest.err
26169 } && test -s conftest$ac_exeext &&
26170 $as_test_x conftest$ac_exeext; then
26171 ac_cv_search_dlopen=$ac_res
26173 echo "$as_me: failed program was:" >&5
26174 sed 's/^/| /' conftest.$ac_ext >&5
26179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26181 if test "${ac_cv_search_dlopen+set}" = set; then
26185 if test "${ac_cv_search_dlopen+set}" = set; then
26188 ac_cv_search_dlopen=no
26190 rm conftest.$ac_ext
26191 LIBS=$ac_func_search_save_LIBS
26193 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
26194 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
26195 ac_res=$ac_cv_search_dlopen
26196 if test "$ac_res" != no; then
26197 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26199 cat >>confdefs.h <<\_ACEOF
26200 #define HAVE_DLOPEN 1
26204 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
26205 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
26209 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
26210 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
26211 if test "${ac_cv_search_mallinfo+set}" = set; then
26212 echo $ECHO_N "(cached) $ECHO_C" >&6
26214 ac_func_search_save_LIBS=$LIBS
26215 cat >conftest.$ac_ext <<_ACEOF
26218 cat confdefs.h >>conftest.$ac_ext
26219 cat >>conftest.$ac_ext <<_ACEOF
26220 /* end confdefs.h. */
26222 /* Override any GCC internal prototype to avoid an error.
26223 Use char because int might match the return type of a GCC
26224 builtin and then its argument prototype would still apply. */
26232 return mallinfo ();
26237 for ac_lib in '' malloc; do
26238 if test -z "$ac_lib"; then
26239 ac_res="none required"
26242 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26244 rm -f conftest.$ac_objext conftest$ac_exeext
26245 if { (ac_try="$ac_link"
26246 case "(($ac_try" in
26247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26248 *) ac_try_echo=$ac_try;;
26250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26251 (eval "$ac_link") 2>conftest.er1
26253 grep -v '^ *+' conftest.er1 >conftest.err
26255 cat conftest.err >&5
26256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257 (exit $ac_status); } && {
26258 test -z "$ac_c_werror_flag" ||
26259 test ! -s conftest.err
26260 } && test -s conftest$ac_exeext &&
26261 $as_test_x conftest$ac_exeext; then
26262 ac_cv_search_mallinfo=$ac_res
26264 echo "$as_me: failed program was:" >&5
26265 sed 's/^/| /' conftest.$ac_ext >&5
26270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26272 if test "${ac_cv_search_mallinfo+set}" = set; then
26276 if test "${ac_cv_search_mallinfo+set}" = set; then
26279 ac_cv_search_mallinfo=no
26281 rm conftest.$ac_ext
26282 LIBS=$ac_func_search_save_LIBS
26284 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
26285 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
26286 ac_res=$ac_cv_search_mallinfo
26287 if test "$ac_res" != no; then
26288 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26290 cat >>confdefs.h <<\_ACEOF
26291 #define HAVE_MALLINFO 1
26297 if test "$ENABLE_THREADS" -eq 1 ; then
26299 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
26300 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
26301 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
26302 echo $ECHO_N "(cached) $ECHO_C" >&6
26304 ac_check_lib_save_LIBS=$LIBS
26305 LIBS="-lpthread $LIBS"
26306 cat >conftest.$ac_ext <<_ACEOF
26309 cat confdefs.h >>conftest.$ac_ext
26310 cat >>conftest.$ac_ext <<_ACEOF
26311 /* end confdefs.h. */
26313 /* Override any GCC internal prototype to avoid an error.
26314 Use char because int might match the return type of a GCC
26315 builtin and then its argument prototype would still apply. */
26319 char pthread_mutex_init ();
26323 return pthread_mutex_init ();
26328 rm -f conftest.$ac_objext conftest$ac_exeext
26329 if { (ac_try="$ac_link"
26330 case "(($ac_try" in
26331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26332 *) ac_try_echo=$ac_try;;
26334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26335 (eval "$ac_link") 2>conftest.er1
26337 grep -v '^ *+' conftest.er1 >conftest.err
26339 cat conftest.err >&5
26340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341 (exit $ac_status); } && {
26342 test -z "$ac_c_werror_flag" ||
26343 test ! -s conftest.err
26344 } && test -s conftest$ac_exeext &&
26345 $as_test_x conftest$ac_exeext; then
26346 ac_cv_lib_pthread_pthread_mutex_init=yes
26348 echo "$as_me: failed program was:" >&5
26349 sed 's/^/| /' conftest.$ac_ext >&5
26351 ac_cv_lib_pthread_pthread_mutex_init=no
26354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26355 conftest$ac_exeext conftest.$ac_ext
26356 LIBS=$ac_check_lib_save_LIBS
26358 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26359 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
26360 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26361 cat >>confdefs.h <<_ACEOF
26362 #define HAVE_LIBPTHREAD 1
26365 LIBS="-lpthread $LIBS"
26369 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26370 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
26371 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26372 echo $ECHO_N "(cached) $ECHO_C" >&6
26374 ac_func_search_save_LIBS=$LIBS
26375 cat >conftest.$ac_ext <<_ACEOF
26378 cat confdefs.h >>conftest.$ac_ext
26379 cat >>conftest.$ac_ext <<_ACEOF
26380 /* end confdefs.h. */
26382 /* Override any GCC internal prototype to avoid an error.
26383 Use char because int might match the return type of a GCC
26384 builtin and then its argument prototype would still apply. */
26388 char pthread_mutex_lock ();
26392 return pthread_mutex_lock ();
26397 for ac_lib in '' pthread; do
26398 if test -z "$ac_lib"; then
26399 ac_res="none required"
26402 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26404 rm -f conftest.$ac_objext conftest$ac_exeext
26405 if { (ac_try="$ac_link"
26406 case "(($ac_try" in
26407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26408 *) ac_try_echo=$ac_try;;
26410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26411 (eval "$ac_link") 2>conftest.er1
26413 grep -v '^ *+' conftest.er1 >conftest.err
26415 cat conftest.err >&5
26416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417 (exit $ac_status); } && {
26418 test -z "$ac_c_werror_flag" ||
26419 test ! -s conftest.err
26420 } && test -s conftest$ac_exeext &&
26421 $as_test_x conftest$ac_exeext; then
26422 ac_cv_search_pthread_mutex_lock=$ac_res
26424 echo "$as_me: failed program was:" >&5
26425 sed 's/^/| /' conftest.$ac_ext >&5
26430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26432 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26436 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26439 ac_cv_search_pthread_mutex_lock=no
26441 rm conftest.$ac_ext
26442 LIBS=$ac_func_search_save_LIBS
26444 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26445 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
26446 ac_res=$ac_cv_search_pthread_mutex_lock
26447 if test "$ac_res" != no; then
26448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26450 cat >>confdefs.h <<\_ACEOF
26451 #define HAVE_PTHREAD_MUTEX_LOCK 1
26459 # Check whether --with-udis86 was given.
26460 if test "${with_udis86+set}" = set; then
26461 withval=$with_udis86;
26466 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
26469 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
26470 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
26471 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
26472 echo $ECHO_N "(cached) $ECHO_C" >&6
26474 ac_check_lib_save_LIBS=$LIBS
26475 LIBS="-ludis86 $LIBS"
26476 cat >conftest.$ac_ext <<_ACEOF
26479 cat confdefs.h >>conftest.$ac_ext
26480 cat >>conftest.$ac_ext <<_ACEOF
26481 /* end confdefs.h. */
26483 /* Override any GCC internal prototype to avoid an error.
26484 Use char because int might match the return type of a GCC
26485 builtin and then its argument prototype would still apply. */
26498 rm -f conftest.$ac_objext conftest$ac_exeext
26499 if { (ac_try="$ac_link"
26500 case "(($ac_try" in
26501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26502 *) ac_try_echo=$ac_try;;
26504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26505 (eval "$ac_link") 2>conftest.er1
26507 grep -v '^ *+' conftest.er1 >conftest.err
26509 cat conftest.err >&5
26510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26511 (exit $ac_status); } && {
26512 test -z "$ac_c_werror_flag" ||
26513 test ! -s conftest.err
26514 } && test -s conftest$ac_exeext &&
26515 $as_test_x conftest$ac_exeext; then
26516 ac_cv_lib_udis86_ud_init=yes
26518 echo "$as_me: failed program was:" >&5
26519 sed 's/^/| /' conftest.$ac_ext >&5
26521 ac_cv_lib_udis86_ud_init=no
26524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26525 conftest$ac_exeext conftest.$ac_ext
26526 LIBS=$ac_check_lib_save_LIBS
26528 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
26529 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
26530 if test $ac_cv_lib_udis86_ud_init = yes; then
26531 cat >>confdefs.h <<_ACEOF
26532 #define HAVE_LIBUDIS86 1
26535 LIBS="-ludis86 $LIBS"
26539 echo "Error! You need to have libudis86 around."
26551 cat >>confdefs.h <<_ACEOF
26552 #define USE_UDIS86 $USE_UDIS86
26562 ac_header_dirent=no
26563 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26564 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26565 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26566 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
26567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26568 echo $ECHO_N "(cached) $ECHO_C" >&6
26570 cat >conftest.$ac_ext <<_ACEOF
26573 cat confdefs.h >>conftest.$ac_ext
26574 cat >>conftest.$ac_ext <<_ACEOF
26575 /* end confdefs.h. */
26576 #include <sys/types.h>
26588 rm -f conftest.$ac_objext
26589 if { (ac_try="$ac_compile"
26590 case "(($ac_try" in
26591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26592 *) ac_try_echo=$ac_try;;
26594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26595 (eval "$ac_compile") 2>conftest.er1
26597 grep -v '^ *+' conftest.er1 >conftest.err
26599 cat conftest.err >&5
26600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601 (exit $ac_status); } && {
26602 test -z "$ac_c_werror_flag" ||
26603 test ! -s conftest.err
26604 } && test -s conftest.$ac_objext; then
26605 eval "$as_ac_Header=yes"
26607 echo "$as_me: failed program was:" >&5
26608 sed 's/^/| /' conftest.$ac_ext >&5
26610 eval "$as_ac_Header=no"
26613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26615 ac_res=`eval echo '${'$as_ac_Header'}'`
26616 { echo "$as_me:$LINENO: result: $ac_res" >&5
26617 echo "${ECHO_T}$ac_res" >&6; }
26618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26619 cat >>confdefs.h <<_ACEOF
26620 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26623 ac_header_dirent=$ac_hdr; break
26627 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26628 if test $ac_header_dirent = dirent.h; then
26629 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26630 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26631 if test "${ac_cv_search_opendir+set}" = set; then
26632 echo $ECHO_N "(cached) $ECHO_C" >&6
26634 ac_func_search_save_LIBS=$LIBS
26635 cat >conftest.$ac_ext <<_ACEOF
26638 cat confdefs.h >>conftest.$ac_ext
26639 cat >>conftest.$ac_ext <<_ACEOF
26640 /* end confdefs.h. */
26642 /* Override any GCC internal prototype to avoid an error.
26643 Use char because int might match the return type of a GCC
26644 builtin and then its argument prototype would still apply. */
26657 for ac_lib in '' dir; do
26658 if test -z "$ac_lib"; then
26659 ac_res="none required"
26662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26664 rm -f conftest.$ac_objext conftest$ac_exeext
26665 if { (ac_try="$ac_link"
26666 case "(($ac_try" in
26667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26668 *) ac_try_echo=$ac_try;;
26670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26671 (eval "$ac_link") 2>conftest.er1
26673 grep -v '^ *+' conftest.er1 >conftest.err
26675 cat conftest.err >&5
26676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26677 (exit $ac_status); } && {
26678 test -z "$ac_c_werror_flag" ||
26679 test ! -s conftest.err
26680 } && test -s conftest$ac_exeext &&
26681 $as_test_x conftest$ac_exeext; then
26682 ac_cv_search_opendir=$ac_res
26684 echo "$as_me: failed program was:" >&5
26685 sed 's/^/| /' conftest.$ac_ext >&5
26690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26692 if test "${ac_cv_search_opendir+set}" = set; then
26696 if test "${ac_cv_search_opendir+set}" = set; then
26699 ac_cv_search_opendir=no
26701 rm conftest.$ac_ext
26702 LIBS=$ac_func_search_save_LIBS
26704 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26705 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26706 ac_res=$ac_cv_search_opendir
26707 if test "$ac_res" != no; then
26708 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26713 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26714 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26715 if test "${ac_cv_search_opendir+set}" = set; then
26716 echo $ECHO_N "(cached) $ECHO_C" >&6
26718 ac_func_search_save_LIBS=$LIBS
26719 cat >conftest.$ac_ext <<_ACEOF
26722 cat confdefs.h >>conftest.$ac_ext
26723 cat >>conftest.$ac_ext <<_ACEOF
26724 /* end confdefs.h. */
26726 /* Override any GCC internal prototype to avoid an error.
26727 Use char because int might match the return type of a GCC
26728 builtin and then its argument prototype would still apply. */
26741 for ac_lib in '' x; do
26742 if test -z "$ac_lib"; then
26743 ac_res="none required"
26746 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26748 rm -f conftest.$ac_objext conftest$ac_exeext
26749 if { (ac_try="$ac_link"
26750 case "(($ac_try" in
26751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26752 *) ac_try_echo=$ac_try;;
26754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26755 (eval "$ac_link") 2>conftest.er1
26757 grep -v '^ *+' conftest.er1 >conftest.err
26759 cat conftest.err >&5
26760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761 (exit $ac_status); } && {
26762 test -z "$ac_c_werror_flag" ||
26763 test ! -s conftest.err
26764 } && test -s conftest$ac_exeext &&
26765 $as_test_x conftest$ac_exeext; then
26766 ac_cv_search_opendir=$ac_res
26768 echo "$as_me: failed program was:" >&5
26769 sed 's/^/| /' conftest.$ac_ext >&5
26774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26776 if test "${ac_cv_search_opendir+set}" = set; then
26780 if test "${ac_cv_search_opendir+set}" = set; then
26783 ac_cv_search_opendir=no
26785 rm conftest.$ac_ext
26786 LIBS=$ac_func_search_save_LIBS
26788 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26789 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26790 ac_res=$ac_cv_search_opendir
26791 if test "$ac_res" != no; then
26792 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26798 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26799 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
26800 if test "${ac_cv_header_mmap_anon+set}" = set; then
26801 echo $ECHO_N "(cached) $ECHO_C" >&6
26804 ac_cpp='$CPP $CPPFLAGS'
26805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26809 cat >conftest.$ac_ext <<_ACEOF
26812 cat confdefs.h >>conftest.$ac_ext
26813 cat >>conftest.$ac_ext <<_ACEOF
26814 /* end confdefs.h. */
26815 #include <sys/mman.h>
26816 #include <unistd.h>
26821 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26826 rm -f conftest.$ac_objext
26827 if { (ac_try="$ac_compile"
26828 case "(($ac_try" in
26829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26830 *) ac_try_echo=$ac_try;;
26832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26833 (eval "$ac_compile") 2>conftest.er1
26835 grep -v '^ *+' conftest.er1 >conftest.err
26837 cat conftest.err >&5
26838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839 (exit $ac_status); } && {
26840 test -z "$ac_c_werror_flag" ||
26841 test ! -s conftest.err
26842 } && test -s conftest.$ac_objext; then
26843 ac_cv_header_mmap_anon=yes
26845 echo "$as_me: failed program was:" >&5
26846 sed 's/^/| /' conftest.$ac_ext >&5
26848 ac_cv_header_mmap_anon=no
26851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26853 ac_cpp='$CPP $CPPFLAGS'
26854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26860 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26861 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
26862 if test "$ac_cv_header_mmap_anon" = yes; then
26864 cat >>confdefs.h <<\_ACEOF
26865 #define HAVE_MMAP_ANONYMOUS 1
26870 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26871 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
26872 if test "${ac_cv_header_stat_broken+set}" = set; then
26873 echo $ECHO_N "(cached) $ECHO_C" >&6
26875 cat >conftest.$ac_ext <<_ACEOF
26878 cat confdefs.h >>conftest.$ac_ext
26879 cat >>conftest.$ac_ext <<_ACEOF
26880 /* end confdefs.h. */
26881 #include <sys/types.h>
26882 #include <sys/stat.h>
26884 #if defined S_ISBLK && defined S_IFDIR
26885 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26888 #if defined S_ISBLK && defined S_IFCHR
26889 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26892 #if defined S_ISLNK && defined S_IFREG
26893 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26896 #if defined S_ISSOCK && defined S_IFREG
26897 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26901 rm -f conftest.$ac_objext
26902 if { (ac_try="$ac_compile"
26903 case "(($ac_try" in
26904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26905 *) ac_try_echo=$ac_try;;
26907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26908 (eval "$ac_compile") 2>conftest.er1
26910 grep -v '^ *+' conftest.er1 >conftest.err
26912 cat conftest.err >&5
26913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914 (exit $ac_status); } && {
26915 test -z "$ac_c_werror_flag" ||
26916 test ! -s conftest.err
26917 } && test -s conftest.$ac_objext; then
26918 ac_cv_header_stat_broken=no
26920 echo "$as_me: failed program was:" >&5
26921 sed 's/^/| /' conftest.$ac_ext >&5
26923 ac_cv_header_stat_broken=yes
26926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26928 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26929 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
26930 if test $ac_cv_header_stat_broken = yes; then
26932 cat >>confdefs.h <<\_ACEOF
26933 #define STAT_MACROS_BROKEN 1
26938 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26939 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
26940 if test "${ac_cv_header_stdc+set}" = set; then
26941 echo $ECHO_N "(cached) $ECHO_C" >&6
26943 cat >conftest.$ac_ext <<_ACEOF
26946 cat confdefs.h >>conftest.$ac_ext
26947 cat >>conftest.$ac_ext <<_ACEOF
26948 /* end confdefs.h. */
26949 #include <stdlib.h>
26950 #include <stdarg.h>
26951 #include <string.h>
26962 rm -f conftest.$ac_objext
26963 if { (ac_try="$ac_compile"
26964 case "(($ac_try" in
26965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26966 *) ac_try_echo=$ac_try;;
26968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26969 (eval "$ac_compile") 2>conftest.er1
26971 grep -v '^ *+' conftest.er1 >conftest.err
26973 cat conftest.err >&5
26974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975 (exit $ac_status); } && {
26976 test -z "$ac_c_werror_flag" ||
26977 test ! -s conftest.err
26978 } && test -s conftest.$ac_objext; then
26979 ac_cv_header_stdc=yes
26981 echo "$as_me: failed program was:" >&5
26982 sed 's/^/| /' conftest.$ac_ext >&5
26984 ac_cv_header_stdc=no
26987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26989 if test $ac_cv_header_stdc = yes; then
26990 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26991 cat >conftest.$ac_ext <<_ACEOF
26994 cat confdefs.h >>conftest.$ac_ext
26995 cat >>conftest.$ac_ext <<_ACEOF
26996 /* end confdefs.h. */
26997 #include <string.h>
27000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27001 $EGREP "memchr" >/dev/null 2>&1; then
27004 ac_cv_header_stdc=no
27010 if test $ac_cv_header_stdc = yes; then
27011 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27012 cat >conftest.$ac_ext <<_ACEOF
27015 cat confdefs.h >>conftest.$ac_ext
27016 cat >>conftest.$ac_ext <<_ACEOF
27017 /* end confdefs.h. */
27018 #include <stdlib.h>
27021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27022 $EGREP "free" >/dev/null 2>&1; then
27025 ac_cv_header_stdc=no
27031 if test $ac_cv_header_stdc = yes; then
27032 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27033 if test "$cross_compiling" = yes; then
27036 cat >conftest.$ac_ext <<_ACEOF
27039 cat confdefs.h >>conftest.$ac_ext
27040 cat >>conftest.$ac_ext <<_ACEOF
27041 /* end confdefs.h. */
27043 #include <stdlib.h>
27044 #if ((' ' & 0x0FF) == 0x020)
27045 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27046 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27048 # define ISLOWER(c) \
27049 (('a' <= (c) && (c) <= 'i') \
27050 || ('j' <= (c) && (c) <= 'r') \
27051 || ('s' <= (c) && (c) <= 'z'))
27052 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27055 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27060 for (i = 0; i < 256; i++)
27061 if (XOR (islower (i), ISLOWER (i))
27062 || toupper (i) != TOUPPER (i))
27067 rm -f conftest$ac_exeext
27068 if { (ac_try="$ac_link"
27069 case "(($ac_try" in
27070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27071 *) ac_try_echo=$ac_try;;
27073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27074 (eval "$ac_link") 2>&5
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27078 { (case "(($ac_try" in
27079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27080 *) ac_try_echo=$ac_try;;
27082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27083 (eval "$ac_try") 2>&5
27085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086 (exit $ac_status); }; }; then
27089 echo "$as_me: program exited with status $ac_status" >&5
27090 echo "$as_me: failed program was:" >&5
27091 sed 's/^/| /' conftest.$ac_ext >&5
27093 ( exit $ac_status )
27094 ac_cv_header_stdc=no
27096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27102 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27103 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
27104 if test $ac_cv_header_stdc = yes; then
27106 cat >>confdefs.h <<\_ACEOF
27107 #define STDC_HEADERS 1
27112 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
27113 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
27114 if test "${ac_cv_header_sys_wait_h+set}" = set; then
27115 echo $ECHO_N "(cached) $ECHO_C" >&6
27117 cat >conftest.$ac_ext <<_ACEOF
27120 cat confdefs.h >>conftest.$ac_ext
27121 cat >>conftest.$ac_ext <<_ACEOF
27122 /* end confdefs.h. */
27123 #include <sys/types.h>
27124 #include <sys/wait.h>
27125 #ifndef WEXITSTATUS
27126 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
27129 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
27137 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
27142 rm -f conftest.$ac_objext
27143 if { (ac_try="$ac_compile"
27144 case "(($ac_try" in
27145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27146 *) ac_try_echo=$ac_try;;
27148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27149 (eval "$ac_compile") 2>conftest.er1
27151 grep -v '^ *+' conftest.er1 >conftest.err
27153 cat conftest.err >&5
27154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155 (exit $ac_status); } && {
27156 test -z "$ac_c_werror_flag" ||
27157 test ! -s conftest.err
27158 } && test -s conftest.$ac_objext; then
27159 ac_cv_header_sys_wait_h=yes
27161 echo "$as_me: failed program was:" >&5
27162 sed 's/^/| /' conftest.$ac_ext >&5
27164 ac_cv_header_sys_wait_h=no
27167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27169 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
27170 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
27171 if test $ac_cv_header_sys_wait_h = yes; then
27173 cat >>confdefs.h <<\_ACEOF
27174 #define HAVE_SYS_WAIT_H 1
27179 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27180 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
27181 if test "${ac_cv_header_time+set}" = set; then
27182 echo $ECHO_N "(cached) $ECHO_C" >&6
27184 cat >conftest.$ac_ext <<_ACEOF
27187 cat confdefs.h >>conftest.$ac_ext
27188 cat >>conftest.$ac_ext <<_ACEOF
27189 /* end confdefs.h. */
27190 #include <sys/types.h>
27191 #include <sys/time.h>
27197 if ((struct tm *) 0)
27203 rm -f conftest.$ac_objext
27204 if { (ac_try="$ac_compile"
27205 case "(($ac_try" in
27206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27207 *) ac_try_echo=$ac_try;;
27209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27210 (eval "$ac_compile") 2>conftest.er1
27212 grep -v '^ *+' conftest.er1 >conftest.err
27214 cat conftest.err >&5
27215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216 (exit $ac_status); } && {
27217 test -z "$ac_c_werror_flag" ||
27218 test ! -s conftest.err
27219 } && test -s conftest.$ac_objext; then
27220 ac_cv_header_time=yes
27222 echo "$as_me: failed program was:" >&5
27223 sed 's/^/| /' conftest.$ac_ext >&5
27225 ac_cv_header_time=no
27228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27230 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27231 echo "${ECHO_T}$ac_cv_header_time" >&6; }
27232 if test $ac_cv_header_time = yes; then
27234 cat >>confdefs.h <<\_ACEOF
27235 #define TIME_WITH_SYS_TIME 1
27247 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
27249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27254 echo $ECHO_N "(cached) $ECHO_C" >&6
27256 ac_res=`eval echo '${'$as_ac_Header'}'`
27257 { echo "$as_me:$LINENO: result: $ac_res" >&5
27258 echo "${ECHO_T}$ac_res" >&6; }
27260 # Is the header compilable?
27261 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27263 cat >conftest.$ac_ext <<_ACEOF
27266 cat confdefs.h >>conftest.$ac_ext
27267 cat >>conftest.$ac_ext <<_ACEOF
27268 /* end confdefs.h. */
27269 $ac_includes_default
27270 #include <$ac_header>
27272 rm -f conftest.$ac_objext
27273 if { (ac_try="$ac_compile"
27274 case "(($ac_try" in
27275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27276 *) ac_try_echo=$ac_try;;
27278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27279 (eval "$ac_compile") 2>conftest.er1
27281 grep -v '^ *+' conftest.er1 >conftest.err
27283 cat conftest.err >&5
27284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27285 (exit $ac_status); } && {
27286 test -z "$ac_c_werror_flag" ||
27287 test ! -s conftest.err
27288 } && test -s conftest.$ac_objext; then
27289 ac_header_compiler=yes
27291 echo "$as_me: failed program was:" >&5
27292 sed 's/^/| /' conftest.$ac_ext >&5
27294 ac_header_compiler=no
27297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27298 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27299 echo "${ECHO_T}$ac_header_compiler" >&6; }
27301 # Is the header present?
27302 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27304 cat >conftest.$ac_ext <<_ACEOF
27307 cat confdefs.h >>conftest.$ac_ext
27308 cat >>conftest.$ac_ext <<_ACEOF
27309 /* end confdefs.h. */
27310 #include <$ac_header>
27312 if { (ac_try="$ac_cpp conftest.$ac_ext"
27313 case "(($ac_try" in
27314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27315 *) ac_try_echo=$ac_try;;
27317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27320 grep -v '^ *+' conftest.er1 >conftest.err
27322 cat conftest.err >&5
27323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324 (exit $ac_status); } >/dev/null && {
27325 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27326 test ! -s conftest.err
27328 ac_header_preproc=yes
27330 echo "$as_me: failed program was:" >&5
27331 sed 's/^/| /' conftest.$ac_ext >&5
27333 ac_header_preproc=no
27336 rm -f conftest.err conftest.$ac_ext
27337 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27338 echo "${ECHO_T}$ac_header_preproc" >&6; }
27340 # So? What about this header?
27341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27347 ac_header_preproc=yes
27350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27357 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27363 ## ----------------------------------- ##
27364 ## Report this to llvmbugs@cs.uiuc.edu ##
27365 ## ----------------------------------- ##
27367 ) | sed "s/^/$as_me: WARNING: /" >&2
27370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27373 echo $ECHO_N "(cached) $ECHO_C" >&6
27375 eval "$as_ac_Header=\$ac_header_preproc"
27377 ac_res=`eval echo '${'$as_ac_Header'}'`
27378 { echo "$as_me:$LINENO: result: $ac_res" >&5
27379 echo "${ECHO_T}$ac_res" >&6; }
27382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27383 cat >>confdefs.h <<_ACEOF
27384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27397 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
27399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27404 echo $ECHO_N "(cached) $ECHO_C" >&6
27406 ac_res=`eval echo '${'$as_ac_Header'}'`
27407 { echo "$as_me:$LINENO: result: $ac_res" >&5
27408 echo "${ECHO_T}$ac_res" >&6; }
27410 # Is the header compilable?
27411 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27413 cat >conftest.$ac_ext <<_ACEOF
27416 cat confdefs.h >>conftest.$ac_ext
27417 cat >>conftest.$ac_ext <<_ACEOF
27418 /* end confdefs.h. */
27419 $ac_includes_default
27420 #include <$ac_header>
27422 rm -f conftest.$ac_objext
27423 if { (ac_try="$ac_compile"
27424 case "(($ac_try" in
27425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27426 *) ac_try_echo=$ac_try;;
27428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27429 (eval "$ac_compile") 2>conftest.er1
27431 grep -v '^ *+' conftest.er1 >conftest.err
27433 cat conftest.err >&5
27434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27435 (exit $ac_status); } && {
27436 test -z "$ac_c_werror_flag" ||
27437 test ! -s conftest.err
27438 } && test -s conftest.$ac_objext; then
27439 ac_header_compiler=yes
27441 echo "$as_me: failed program was:" >&5
27442 sed 's/^/| /' conftest.$ac_ext >&5
27444 ac_header_compiler=no
27447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27448 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27449 echo "${ECHO_T}$ac_header_compiler" >&6; }
27451 # Is the header present?
27452 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27454 cat >conftest.$ac_ext <<_ACEOF
27457 cat confdefs.h >>conftest.$ac_ext
27458 cat >>conftest.$ac_ext <<_ACEOF
27459 /* end confdefs.h. */
27460 #include <$ac_header>
27462 if { (ac_try="$ac_cpp conftest.$ac_ext"
27463 case "(($ac_try" in
27464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27465 *) ac_try_echo=$ac_try;;
27467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27470 grep -v '^ *+' conftest.er1 >conftest.err
27472 cat conftest.err >&5
27473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474 (exit $ac_status); } >/dev/null && {
27475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27476 test ! -s conftest.err
27478 ac_header_preproc=yes
27480 echo "$as_me: failed program was:" >&5
27481 sed 's/^/| /' conftest.$ac_ext >&5
27483 ac_header_preproc=no
27486 rm -f conftest.err conftest.$ac_ext
27487 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27488 echo "${ECHO_T}$ac_header_preproc" >&6; }
27490 # So? What about this header?
27491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27497 ac_header_preproc=yes
27500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27503 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27507 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27513 ## ----------------------------------- ##
27514 ## Report this to llvmbugs@cs.uiuc.edu ##
27515 ## ----------------------------------- ##
27517 ) | sed "s/^/$as_me: WARNING: /" >&2
27520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27523 echo $ECHO_N "(cached) $ECHO_C" >&6
27525 eval "$as_ac_Header=\$ac_header_preproc"
27527 ac_res=`eval echo '${'$as_ac_Header'}'`
27528 { echo "$as_me:$LINENO: result: $ac_res" >&5
27529 echo "${ECHO_T}$ac_res" >&6; }
27532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27533 cat >>confdefs.h <<_ACEOF
27534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27542 for ac_header in windows.h
27544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27549 echo $ECHO_N "(cached) $ECHO_C" >&6
27551 ac_res=`eval echo '${'$as_ac_Header'}'`
27552 { echo "$as_me:$LINENO: result: $ac_res" >&5
27553 echo "${ECHO_T}$ac_res" >&6; }
27555 # Is the header compilable?
27556 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27558 cat >conftest.$ac_ext <<_ACEOF
27561 cat confdefs.h >>conftest.$ac_ext
27562 cat >>conftest.$ac_ext <<_ACEOF
27563 /* end confdefs.h. */
27564 $ac_includes_default
27565 #include <$ac_header>
27567 rm -f conftest.$ac_objext
27568 if { (ac_try="$ac_compile"
27569 case "(($ac_try" in
27570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27571 *) ac_try_echo=$ac_try;;
27573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27574 (eval "$ac_compile") 2>conftest.er1
27576 grep -v '^ *+' conftest.er1 >conftest.err
27578 cat conftest.err >&5
27579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580 (exit $ac_status); } && {
27581 test -z "$ac_c_werror_flag" ||
27582 test ! -s conftest.err
27583 } && test -s conftest.$ac_objext; then
27584 ac_header_compiler=yes
27586 echo "$as_me: failed program was:" >&5
27587 sed 's/^/| /' conftest.$ac_ext >&5
27589 ac_header_compiler=no
27592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27594 echo "${ECHO_T}$ac_header_compiler" >&6; }
27596 # Is the header present?
27597 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27598 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27599 cat >conftest.$ac_ext <<_ACEOF
27602 cat confdefs.h >>conftest.$ac_ext
27603 cat >>conftest.$ac_ext <<_ACEOF
27604 /* end confdefs.h. */
27605 #include <$ac_header>
27607 if { (ac_try="$ac_cpp conftest.$ac_ext"
27608 case "(($ac_try" in
27609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27610 *) ac_try_echo=$ac_try;;
27612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27615 grep -v '^ *+' conftest.er1 >conftest.err
27617 cat conftest.err >&5
27618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619 (exit $ac_status); } >/dev/null && {
27620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27621 test ! -s conftest.err
27623 ac_header_preproc=yes
27625 echo "$as_me: failed program was:" >&5
27626 sed 's/^/| /' conftest.$ac_ext >&5
27628 ac_header_preproc=no
27631 rm -f conftest.err conftest.$ac_ext
27632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27633 echo "${ECHO_T}$ac_header_preproc" >&6; }
27635 # So? What about this header?
27636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27642 ac_header_preproc=yes
27645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27652 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27658 ## ----------------------------------- ##
27659 ## Report this to llvmbugs@cs.uiuc.edu ##
27660 ## ----------------------------------- ##
27662 ) | sed "s/^/$as_me: WARNING: /" >&2
27665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27668 echo $ECHO_N "(cached) $ECHO_C" >&6
27670 eval "$as_ac_Header=\$ac_header_preproc"
27672 ac_res=`eval echo '${'$as_ac_Header'}'`
27673 { echo "$as_me:$LINENO: result: $ac_res" >&5
27674 echo "${ECHO_T}$ac_res" >&6; }
27677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27678 cat >>confdefs.h <<_ACEOF
27679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27690 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
27692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27697 echo $ECHO_N "(cached) $ECHO_C" >&6
27699 ac_res=`eval echo '${'$as_ac_Header'}'`
27700 { echo "$as_me:$LINENO: result: $ac_res" >&5
27701 echo "${ECHO_T}$ac_res" >&6; }
27703 # Is the header compilable?
27704 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27706 cat >conftest.$ac_ext <<_ACEOF
27709 cat confdefs.h >>conftest.$ac_ext
27710 cat >>conftest.$ac_ext <<_ACEOF
27711 /* end confdefs.h. */
27712 $ac_includes_default
27713 #include <$ac_header>
27715 rm -f conftest.$ac_objext
27716 if { (ac_try="$ac_compile"
27717 case "(($ac_try" in
27718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27719 *) ac_try_echo=$ac_try;;
27721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27722 (eval "$ac_compile") 2>conftest.er1
27724 grep -v '^ *+' conftest.er1 >conftest.err
27726 cat conftest.err >&5
27727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728 (exit $ac_status); } && {
27729 test -z "$ac_c_werror_flag" ||
27730 test ! -s conftest.err
27731 } && test -s conftest.$ac_objext; then
27732 ac_header_compiler=yes
27734 echo "$as_me: failed program was:" >&5
27735 sed 's/^/| /' conftest.$ac_ext >&5
27737 ac_header_compiler=no
27740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27742 echo "${ECHO_T}$ac_header_compiler" >&6; }
27744 # Is the header present?
27745 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27747 cat >conftest.$ac_ext <<_ACEOF
27750 cat confdefs.h >>conftest.$ac_ext
27751 cat >>conftest.$ac_ext <<_ACEOF
27752 /* end confdefs.h. */
27753 #include <$ac_header>
27755 if { (ac_try="$ac_cpp conftest.$ac_ext"
27756 case "(($ac_try" in
27757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27758 *) ac_try_echo=$ac_try;;
27760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27763 grep -v '^ *+' conftest.er1 >conftest.err
27765 cat conftest.err >&5
27766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767 (exit $ac_status); } >/dev/null && {
27768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27769 test ! -s conftest.err
27771 ac_header_preproc=yes
27773 echo "$as_me: failed program was:" >&5
27774 sed 's/^/| /' conftest.$ac_ext >&5
27776 ac_header_preproc=no
27779 rm -f conftest.err conftest.$ac_ext
27780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27781 echo "${ECHO_T}$ac_header_preproc" >&6; }
27783 # So? What about this header?
27784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27790 ac_header_preproc=yes
27793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27806 ## ----------------------------------- ##
27807 ## Report this to llvmbugs@cs.uiuc.edu ##
27808 ## ----------------------------------- ##
27810 ) | sed "s/^/$as_me: WARNING: /" >&2
27813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27816 echo $ECHO_N "(cached) $ECHO_C" >&6
27818 eval "$as_ac_Header=\$ac_header_preproc"
27820 ac_res=`eval echo '${'$as_ac_Header'}'`
27821 { echo "$as_me:$LINENO: result: $ac_res" >&5
27822 echo "${ECHO_T}$ac_res" >&6; }
27825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27826 cat >>confdefs.h <<_ACEOF
27827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27837 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
27839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27844 echo $ECHO_N "(cached) $ECHO_C" >&6
27846 ac_res=`eval echo '${'$as_ac_Header'}'`
27847 { echo "$as_me:$LINENO: result: $ac_res" >&5
27848 echo "${ECHO_T}$ac_res" >&6; }
27850 # Is the header compilable?
27851 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27853 cat >conftest.$ac_ext <<_ACEOF
27856 cat confdefs.h >>conftest.$ac_ext
27857 cat >>conftest.$ac_ext <<_ACEOF
27858 /* end confdefs.h. */
27859 $ac_includes_default
27860 #include <$ac_header>
27862 rm -f conftest.$ac_objext
27863 if { (ac_try="$ac_compile"
27864 case "(($ac_try" in
27865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27866 *) ac_try_echo=$ac_try;;
27868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27869 (eval "$ac_compile") 2>conftest.er1
27871 grep -v '^ *+' conftest.er1 >conftest.err
27873 cat conftest.err >&5
27874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875 (exit $ac_status); } && {
27876 test -z "$ac_c_werror_flag" ||
27877 test ! -s conftest.err
27878 } && test -s conftest.$ac_objext; then
27879 ac_header_compiler=yes
27881 echo "$as_me: failed program was:" >&5
27882 sed 's/^/| /' conftest.$ac_ext >&5
27884 ac_header_compiler=no
27887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27888 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27889 echo "${ECHO_T}$ac_header_compiler" >&6; }
27891 # Is the header present?
27892 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27894 cat >conftest.$ac_ext <<_ACEOF
27897 cat confdefs.h >>conftest.$ac_ext
27898 cat >>conftest.$ac_ext <<_ACEOF
27899 /* end confdefs.h. */
27900 #include <$ac_header>
27902 if { (ac_try="$ac_cpp conftest.$ac_ext"
27903 case "(($ac_try" in
27904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27905 *) ac_try_echo=$ac_try;;
27907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27910 grep -v '^ *+' conftest.er1 >conftest.err
27912 cat conftest.err >&5
27913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27914 (exit $ac_status); } >/dev/null && {
27915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27916 test ! -s conftest.err
27918 ac_header_preproc=yes
27920 echo "$as_me: failed program was:" >&5
27921 sed 's/^/| /' conftest.$ac_ext >&5
27923 ac_header_preproc=no
27926 rm -f conftest.err conftest.$ac_ext
27927 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27928 echo "${ECHO_T}$ac_header_preproc" >&6; }
27930 # So? What about this header?
27931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27937 ac_header_preproc=yes
27940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27943 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27947 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27953 ## ----------------------------------- ##
27954 ## Report this to llvmbugs@cs.uiuc.edu ##
27955 ## ----------------------------------- ##
27957 ) | sed "s/^/$as_me: WARNING: /" >&2
27960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27963 echo $ECHO_N "(cached) $ECHO_C" >&6
27965 eval "$as_ac_Header=\$ac_header_preproc"
27967 ac_res=`eval echo '${'$as_ac_Header'}'`
27968 { echo "$as_me:$LINENO: result: $ac_res" >&5
27969 echo "${ECHO_T}$ac_res" >&6; }
27972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27973 cat >>confdefs.h <<_ACEOF
27974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27981 if test "$ENABLE_THREADS" -eq 1 ; then
27983 for ac_header in pthread.h
27985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27990 echo $ECHO_N "(cached) $ECHO_C" >&6
27992 ac_res=`eval echo '${'$as_ac_Header'}'`
27993 { echo "$as_me:$LINENO: result: $ac_res" >&5
27994 echo "${ECHO_T}$ac_res" >&6; }
27996 # Is the header compilable?
27997 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27999 cat >conftest.$ac_ext <<_ACEOF
28002 cat confdefs.h >>conftest.$ac_ext
28003 cat >>conftest.$ac_ext <<_ACEOF
28004 /* end confdefs.h. */
28005 $ac_includes_default
28006 #include <$ac_header>
28008 rm -f conftest.$ac_objext
28009 if { (ac_try="$ac_compile"
28010 case "(($ac_try" in
28011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28012 *) ac_try_echo=$ac_try;;
28014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28015 (eval "$ac_compile") 2>conftest.er1
28017 grep -v '^ *+' conftest.er1 >conftest.err
28019 cat conftest.err >&5
28020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28021 (exit $ac_status); } && {
28022 test -z "$ac_c_werror_flag" ||
28023 test ! -s conftest.err
28024 } && test -s conftest.$ac_objext; then
28025 ac_header_compiler=yes
28027 echo "$as_me: failed program was:" >&5
28028 sed 's/^/| /' conftest.$ac_ext >&5
28030 ac_header_compiler=no
28033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28035 echo "${ECHO_T}$ac_header_compiler" >&6; }
28037 # Is the header present?
28038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28040 cat >conftest.$ac_ext <<_ACEOF
28043 cat confdefs.h >>conftest.$ac_ext
28044 cat >>conftest.$ac_ext <<_ACEOF
28045 /* end confdefs.h. */
28046 #include <$ac_header>
28048 if { (ac_try="$ac_cpp conftest.$ac_ext"
28049 case "(($ac_try" in
28050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28051 *) ac_try_echo=$ac_try;;
28053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28056 grep -v '^ *+' conftest.er1 >conftest.err
28058 cat conftest.err >&5
28059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28060 (exit $ac_status); } >/dev/null && {
28061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28062 test ! -s conftest.err
28064 ac_header_preproc=yes
28066 echo "$as_me: failed program was:" >&5
28067 sed 's/^/| /' conftest.$ac_ext >&5
28069 ac_header_preproc=no
28072 rm -f conftest.err conftest.$ac_ext
28073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28074 echo "${ECHO_T}$ac_header_preproc" >&6; }
28076 # So? What about this header?
28077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28083 ac_header_preproc=yes
28086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28089 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28093 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28099 ## ----------------------------------- ##
28100 ## Report this to llvmbugs@cs.uiuc.edu ##
28101 ## ----------------------------------- ##
28103 ) | sed "s/^/$as_me: WARNING: /" >&2
28106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28109 echo $ECHO_N "(cached) $ECHO_C" >&6
28111 eval "$as_ac_Header=\$ac_header_preproc"
28113 ac_res=`eval echo '${'$as_ac_Header'}'`
28114 { echo "$as_me:$LINENO: result: $ac_res" >&5
28115 echo "${ECHO_T}$ac_res" >&6; }
28118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28119 cat >>confdefs.h <<_ACEOF
28120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28138 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
28139 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
28140 if test "${ac_cv_huge_val_sanity+set}" = set; then
28141 echo $ECHO_N "(cached) $ECHO_C" >&6
28145 ac_cpp='$CXXCPP $CPPFLAGS'
28146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28151 if test "$cross_compiling" = yes; then
28152 ac_cv_huge_val_sanity=yes
28154 cat >conftest.$ac_ext <<_ACEOF
28157 cat confdefs.h >>conftest.$ac_ext
28158 cat >>conftest.$ac_ext <<_ACEOF
28159 /* end confdefs.h. */
28164 double x = HUGE_VAL; return x != x;
28169 rm -f conftest$ac_exeext
28170 if { (ac_try="$ac_link"
28171 case "(($ac_try" in
28172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173 *) ac_try_echo=$ac_try;;
28175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176 (eval "$ac_link") 2>&5
28178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28180 { (case "(($ac_try" in
28181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28182 *) ac_try_echo=$ac_try;;
28184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28185 (eval "$ac_try") 2>&5
28187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28188 (exit $ac_status); }; }; then
28189 ac_cv_huge_val_sanity=yes
28191 echo "$as_me: program exited with status $ac_status" >&5
28192 echo "$as_me: failed program was:" >&5
28193 sed 's/^/| /' conftest.$ac_ext >&5
28195 ( exit $ac_status )
28196 ac_cv_huge_val_sanity=no
28198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28203 ac_cpp='$CPP $CPPFLAGS'
28204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28210 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
28211 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
28212 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
28215 { echo "$as_me:$LINENO: checking for pid_t" >&5
28216 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
28217 if test "${ac_cv_type_pid_t+set}" = set; then
28218 echo $ECHO_N "(cached) $ECHO_C" >&6
28220 cat >conftest.$ac_ext <<_ACEOF
28223 cat confdefs.h >>conftest.$ac_ext
28224 cat >>conftest.$ac_ext <<_ACEOF
28225 /* end confdefs.h. */
28226 $ac_includes_default
28227 typedef pid_t ac__type_new_;
28231 if ((ac__type_new_ *) 0)
28233 if (sizeof (ac__type_new_))
28239 rm -f conftest.$ac_objext
28240 if { (ac_try="$ac_compile"
28241 case "(($ac_try" in
28242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28243 *) ac_try_echo=$ac_try;;
28245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28246 (eval "$ac_compile") 2>conftest.er1
28248 grep -v '^ *+' conftest.er1 >conftest.err
28250 cat conftest.err >&5
28251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252 (exit $ac_status); } && {
28253 test -z "$ac_c_werror_flag" ||
28254 test ! -s conftest.err
28255 } && test -s conftest.$ac_objext; then
28256 ac_cv_type_pid_t=yes
28258 echo "$as_me: failed program was:" >&5
28259 sed 's/^/| /' conftest.$ac_ext >&5
28261 ac_cv_type_pid_t=no
28264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28266 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28267 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
28268 if test $ac_cv_type_pid_t = yes; then
28272 cat >>confdefs.h <<_ACEOF
28278 { echo "$as_me:$LINENO: checking for size_t" >&5
28279 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28280 if test "${ac_cv_type_size_t+set}" = set; then
28281 echo $ECHO_N "(cached) $ECHO_C" >&6
28283 cat >conftest.$ac_ext <<_ACEOF
28286 cat confdefs.h >>conftest.$ac_ext
28287 cat >>conftest.$ac_ext <<_ACEOF
28288 /* end confdefs.h. */
28289 $ac_includes_default
28290 typedef size_t ac__type_new_;
28294 if ((ac__type_new_ *) 0)
28296 if (sizeof (ac__type_new_))
28302 rm -f conftest.$ac_objext
28303 if { (ac_try="$ac_compile"
28304 case "(($ac_try" in
28305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28306 *) ac_try_echo=$ac_try;;
28308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28309 (eval "$ac_compile") 2>conftest.er1
28311 grep -v '^ *+' conftest.er1 >conftest.err
28313 cat conftest.err >&5
28314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28315 (exit $ac_status); } && {
28316 test -z "$ac_c_werror_flag" ||
28317 test ! -s conftest.err
28318 } && test -s conftest.$ac_objext; then
28319 ac_cv_type_size_t=yes
28321 echo "$as_me: failed program was:" >&5
28322 sed 's/^/| /' conftest.$ac_ext >&5
28324 ac_cv_type_size_t=no
28327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28329 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28330 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
28331 if test $ac_cv_type_size_t = yes; then
28335 cat >>confdefs.h <<_ACEOF
28336 #define size_t unsigned int
28341 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28342 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
28343 if test "${ac_cv_type_signal+set}" = set; then
28344 echo $ECHO_N "(cached) $ECHO_C" >&6
28346 cat >conftest.$ac_ext <<_ACEOF
28349 cat confdefs.h >>conftest.$ac_ext
28350 cat >>conftest.$ac_ext <<_ACEOF
28351 /* end confdefs.h. */
28352 #include <sys/types.h>
28353 #include <signal.h>
28358 return *(signal (0, 0)) (0) == 1;
28363 rm -f conftest.$ac_objext
28364 if { (ac_try="$ac_compile"
28365 case "(($ac_try" in
28366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28367 *) ac_try_echo=$ac_try;;
28369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28370 (eval "$ac_compile") 2>conftest.er1
28372 grep -v '^ *+' conftest.er1 >conftest.err
28374 cat conftest.err >&5
28375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376 (exit $ac_status); } && {
28377 test -z "$ac_c_werror_flag" ||
28378 test ! -s conftest.err
28379 } && test -s conftest.$ac_objext; then
28380 ac_cv_type_signal=int
28382 echo "$as_me: failed program was:" >&5
28383 sed 's/^/| /' conftest.$ac_ext >&5
28385 ac_cv_type_signal=void
28388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28390 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
28391 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
28393 cat >>confdefs.h <<_ACEOF
28394 #define RETSIGTYPE $ac_cv_type_signal
28398 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28399 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
28400 if test "${ac_cv_struct_tm+set}" = set; then
28401 echo $ECHO_N "(cached) $ECHO_C" >&6
28403 cat >conftest.$ac_ext <<_ACEOF
28406 cat confdefs.h >>conftest.$ac_ext
28407 cat >>conftest.$ac_ext <<_ACEOF
28408 /* end confdefs.h. */
28409 #include <sys/types.h>
28416 int *p = &tm.tm_sec;
28422 rm -f conftest.$ac_objext
28423 if { (ac_try="$ac_compile"
28424 case "(($ac_try" in
28425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28426 *) ac_try_echo=$ac_try;;
28428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28429 (eval "$ac_compile") 2>conftest.er1
28431 grep -v '^ *+' conftest.er1 >conftest.err
28433 cat conftest.err >&5
28434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435 (exit $ac_status); } && {
28436 test -z "$ac_c_werror_flag" ||
28437 test ! -s conftest.err
28438 } && test -s conftest.$ac_objext; then
28439 ac_cv_struct_tm=time.h
28441 echo "$as_me: failed program was:" >&5
28442 sed 's/^/| /' conftest.$ac_ext >&5
28444 ac_cv_struct_tm=sys/time.h
28447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28449 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28450 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
28451 if test $ac_cv_struct_tm = sys/time.h; then
28453 cat >>confdefs.h <<\_ACEOF
28454 #define TM_IN_SYS_TIME 1
28459 { echo "$as_me:$LINENO: checking for int64_t" >&5
28460 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
28461 if test "${ac_cv_type_int64_t+set}" = set; then
28462 echo $ECHO_N "(cached) $ECHO_C" >&6
28464 cat >conftest.$ac_ext <<_ACEOF
28467 cat confdefs.h >>conftest.$ac_ext
28468 cat >>conftest.$ac_ext <<_ACEOF
28469 /* end confdefs.h. */
28470 $ac_includes_default
28471 typedef int64_t ac__type_new_;
28475 if ((ac__type_new_ *) 0)
28477 if (sizeof (ac__type_new_))
28483 rm -f conftest.$ac_objext
28484 if { (ac_try="$ac_compile"
28485 case "(($ac_try" in
28486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28487 *) ac_try_echo=$ac_try;;
28489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28490 (eval "$ac_compile") 2>conftest.er1
28492 grep -v '^ *+' conftest.er1 >conftest.err
28494 cat conftest.err >&5
28495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28496 (exit $ac_status); } && {
28497 test -z "$ac_c_werror_flag" ||
28498 test ! -s conftest.err
28499 } && test -s conftest.$ac_objext; then
28500 ac_cv_type_int64_t=yes
28502 echo "$as_me: failed program was:" >&5
28503 sed 's/^/| /' conftest.$ac_ext >&5
28505 ac_cv_type_int64_t=no
28508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28510 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28511 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
28512 if test $ac_cv_type_int64_t = yes; then
28514 cat >>confdefs.h <<_ACEOF
28515 #define HAVE_INT64_T 1
28520 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
28521 echo "$as_me: error: Type int64_t required but not found" >&2;}
28522 { (exit 1); exit 1; }; }
28525 { echo "$as_me:$LINENO: checking for uint64_t" >&5
28526 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
28527 if test "${ac_cv_type_uint64_t+set}" = set; then
28528 echo $ECHO_N "(cached) $ECHO_C" >&6
28530 cat >conftest.$ac_ext <<_ACEOF
28533 cat confdefs.h >>conftest.$ac_ext
28534 cat >>conftest.$ac_ext <<_ACEOF
28535 /* end confdefs.h. */
28536 $ac_includes_default
28537 typedef uint64_t ac__type_new_;
28541 if ((ac__type_new_ *) 0)
28543 if (sizeof (ac__type_new_))
28549 rm -f conftest.$ac_objext
28550 if { (ac_try="$ac_compile"
28551 case "(($ac_try" in
28552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28553 *) ac_try_echo=$ac_try;;
28555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28556 (eval "$ac_compile") 2>conftest.er1
28558 grep -v '^ *+' conftest.er1 >conftest.err
28560 cat conftest.err >&5
28561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562 (exit $ac_status); } && {
28563 test -z "$ac_c_werror_flag" ||
28564 test ! -s conftest.err
28565 } && test -s conftest.$ac_objext; then
28566 ac_cv_type_uint64_t=yes
28568 echo "$as_me: failed program was:" >&5
28569 sed 's/^/| /' conftest.$ac_ext >&5
28571 ac_cv_type_uint64_t=no
28574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28576 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28577 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
28578 if test $ac_cv_type_uint64_t = yes; then
28580 cat >>confdefs.h <<_ACEOF
28581 #define HAVE_UINT64_T 1
28586 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
28587 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
28588 if test "${ac_cv_type_u_int64_t+set}" = set; then
28589 echo $ECHO_N "(cached) $ECHO_C" >&6
28591 cat >conftest.$ac_ext <<_ACEOF
28594 cat confdefs.h >>conftest.$ac_ext
28595 cat >>conftest.$ac_ext <<_ACEOF
28596 /* end confdefs.h. */
28597 $ac_includes_default
28598 typedef u_int64_t ac__type_new_;
28602 if ((ac__type_new_ *) 0)
28604 if (sizeof (ac__type_new_))
28610 rm -f conftest.$ac_objext
28611 if { (ac_try="$ac_compile"
28612 case "(($ac_try" in
28613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28614 *) ac_try_echo=$ac_try;;
28616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28617 (eval "$ac_compile") 2>conftest.er1
28619 grep -v '^ *+' conftest.er1 >conftest.err
28621 cat conftest.err >&5
28622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623 (exit $ac_status); } && {
28624 test -z "$ac_c_werror_flag" ||
28625 test ! -s conftest.err
28626 } && test -s conftest.$ac_objext; then
28627 ac_cv_type_u_int64_t=yes
28629 echo "$as_me: failed program was:" >&5
28630 sed 's/^/| /' conftest.$ac_ext >&5
28632 ac_cv_type_u_int64_t=no
28635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28637 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28638 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
28639 if test $ac_cv_type_u_int64_t = yes; then
28641 cat >>confdefs.h <<_ACEOF
28642 #define HAVE_U_INT64_T 1
28647 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28648 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28649 { (exit 1); exit 1; }; }
28663 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
28665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28666 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28668 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28669 echo $ECHO_N "(cached) $ECHO_C" >&6
28671 cat >conftest.$ac_ext <<_ACEOF
28674 cat confdefs.h >>conftest.$ac_ext
28675 cat >>conftest.$ac_ext <<_ACEOF
28676 /* end confdefs.h. */
28677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28679 #define $ac_func innocuous_$ac_func
28681 /* System header to define __stub macros and hopefully few prototypes,
28682 which can conflict with char $ac_func (); below.
28683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28684 <limits.h> exists even on freestanding compilers. */
28687 # include <limits.h>
28689 # include <assert.h>
28694 /* Override any GCC internal prototype to avoid an error.
28695 Use char because int might match the return type of a GCC
28696 builtin and then its argument prototype would still apply. */
28701 /* The GNU C library defines this for functions which it implements
28702 to always fail with ENOSYS. Some functions are actually named
28703 something starting with __ and the normal name is an alias. */
28704 #if defined __stub_$ac_func || defined __stub___$ac_func
28711 return $ac_func ();
28716 rm -f conftest.$ac_objext conftest$ac_exeext
28717 if { (ac_try="$ac_link"
28718 case "(($ac_try" in
28719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28720 *) ac_try_echo=$ac_try;;
28722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28723 (eval "$ac_link") 2>conftest.er1
28725 grep -v '^ *+' conftest.er1 >conftest.err
28727 cat conftest.err >&5
28728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729 (exit $ac_status); } && {
28730 test -z "$ac_c_werror_flag" ||
28731 test ! -s conftest.err
28732 } && test -s conftest$ac_exeext &&
28733 $as_test_x conftest$ac_exeext; then
28734 eval "$as_ac_var=yes"
28736 echo "$as_me: failed program was:" >&5
28737 sed 's/^/| /' conftest.$ac_ext >&5
28739 eval "$as_ac_var=no"
28742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28743 conftest$ac_exeext conftest.$ac_ext
28745 ac_res=`eval echo '${'$as_ac_var'}'`
28746 { echo "$as_me:$LINENO: result: $ac_res" >&5
28747 echo "${ECHO_T}$ac_res" >&6; }
28748 if test `eval echo '${'$as_ac_var'}'` = yes; then
28749 cat >>confdefs.h <<_ACEOF
28750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28760 for ac_func in powf fmodf strtof round
28762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28763 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28765 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28766 echo $ECHO_N "(cached) $ECHO_C" >&6
28768 cat >conftest.$ac_ext <<_ACEOF
28771 cat confdefs.h >>conftest.$ac_ext
28772 cat >>conftest.$ac_ext <<_ACEOF
28773 /* end confdefs.h. */
28774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28776 #define $ac_func innocuous_$ac_func
28778 /* System header to define __stub macros and hopefully few prototypes,
28779 which can conflict with char $ac_func (); below.
28780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28781 <limits.h> exists even on freestanding compilers. */
28784 # include <limits.h>
28786 # include <assert.h>
28791 /* Override any GCC internal prototype to avoid an error.
28792 Use char because int might match the return type of a GCC
28793 builtin and then its argument prototype would still apply. */
28798 /* The GNU C library defines this for functions which it implements
28799 to always fail with ENOSYS. Some functions are actually named
28800 something starting with __ and the normal name is an alias. */
28801 #if defined __stub_$ac_func || defined __stub___$ac_func
28808 return $ac_func ();
28813 rm -f conftest.$ac_objext conftest$ac_exeext
28814 if { (ac_try="$ac_link"
28815 case "(($ac_try" in
28816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28817 *) ac_try_echo=$ac_try;;
28819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28820 (eval "$ac_link") 2>conftest.er1
28822 grep -v '^ *+' conftest.er1 >conftest.err
28824 cat conftest.err >&5
28825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28826 (exit $ac_status); } && {
28827 test -z "$ac_c_werror_flag" ||
28828 test ! -s conftest.err
28829 } && test -s conftest$ac_exeext &&
28830 $as_test_x conftest$ac_exeext; then
28831 eval "$as_ac_var=yes"
28833 echo "$as_me: failed program was:" >&5
28834 sed 's/^/| /' conftest.$ac_ext >&5
28836 eval "$as_ac_var=no"
28839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28840 conftest$ac_exeext conftest.$ac_ext
28842 ac_res=`eval echo '${'$as_ac_var'}'`
28843 { echo "$as_me:$LINENO: result: $ac_res" >&5
28844 echo "${ECHO_T}$ac_res" >&6; }
28845 if test `eval echo '${'$as_ac_var'}'` = yes; then
28846 cat >>confdefs.h <<_ACEOF
28847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28858 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
28860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28861 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28863 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28864 echo $ECHO_N "(cached) $ECHO_C" >&6
28866 cat >conftest.$ac_ext <<_ACEOF
28869 cat confdefs.h >>conftest.$ac_ext
28870 cat >>conftest.$ac_ext <<_ACEOF
28871 /* end confdefs.h. */
28872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28874 #define $ac_func innocuous_$ac_func
28876 /* System header to define __stub macros and hopefully few prototypes,
28877 which can conflict with char $ac_func (); below.
28878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28879 <limits.h> exists even on freestanding compilers. */
28882 # include <limits.h>
28884 # include <assert.h>
28889 /* Override any GCC internal prototype to avoid an error.
28890 Use char because int might match the return type of a GCC
28891 builtin and then its argument prototype would still apply. */
28896 /* The GNU C library defines this for functions which it implements
28897 to always fail with ENOSYS. Some functions are actually named
28898 something starting with __ and the normal name is an alias. */
28899 #if defined __stub_$ac_func || defined __stub___$ac_func
28906 return $ac_func ();
28911 rm -f conftest.$ac_objext conftest$ac_exeext
28912 if { (ac_try="$ac_link"
28913 case "(($ac_try" in
28914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28915 *) ac_try_echo=$ac_try;;
28917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28918 (eval "$ac_link") 2>conftest.er1
28920 grep -v '^ *+' conftest.er1 >conftest.err
28922 cat conftest.err >&5
28923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28924 (exit $ac_status); } && {
28925 test -z "$ac_c_werror_flag" ||
28926 test ! -s conftest.err
28927 } && test -s conftest$ac_exeext &&
28928 $as_test_x conftest$ac_exeext; then
28929 eval "$as_ac_var=yes"
28931 echo "$as_me: failed program was:" >&5
28932 sed 's/^/| /' conftest.$ac_ext >&5
28934 eval "$as_ac_var=no"
28937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28938 conftest$ac_exeext conftest.$ac_ext
28940 ac_res=`eval echo '${'$as_ac_var'}'`
28941 { echo "$as_me:$LINENO: result: $ac_res" >&5
28942 echo "${ECHO_T}$ac_res" >&6; }
28943 if test `eval echo '${'$as_ac_var'}'` = yes; then
28944 cat >>confdefs.h <<_ACEOF
28945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28954 for ac_func in isatty mkdtemp mkstemp
28956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28960 echo $ECHO_N "(cached) $ECHO_C" >&6
28962 cat >conftest.$ac_ext <<_ACEOF
28965 cat confdefs.h >>conftest.$ac_ext
28966 cat >>conftest.$ac_ext <<_ACEOF
28967 /* end confdefs.h. */
28968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28970 #define $ac_func innocuous_$ac_func
28972 /* System header to define __stub macros and hopefully few prototypes,
28973 which can conflict with char $ac_func (); below.
28974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28975 <limits.h> exists even on freestanding compilers. */
28978 # include <limits.h>
28980 # include <assert.h>
28985 /* Override any GCC internal prototype to avoid an error.
28986 Use char because int might match the return type of a GCC
28987 builtin and then its argument prototype would still apply. */
28992 /* The GNU C library defines this for functions which it implements
28993 to always fail with ENOSYS. Some functions are actually named
28994 something starting with __ and the normal name is an alias. */
28995 #if defined __stub_$ac_func || defined __stub___$ac_func
29002 return $ac_func ();
29007 rm -f conftest.$ac_objext conftest$ac_exeext
29008 if { (ac_try="$ac_link"
29009 case "(($ac_try" in
29010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29011 *) ac_try_echo=$ac_try;;
29013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29014 (eval "$ac_link") 2>conftest.er1
29016 grep -v '^ *+' conftest.er1 >conftest.err
29018 cat conftest.err >&5
29019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29020 (exit $ac_status); } && {
29021 test -z "$ac_c_werror_flag" ||
29022 test ! -s conftest.err
29023 } && test -s conftest$ac_exeext &&
29024 $as_test_x conftest$ac_exeext; then
29025 eval "$as_ac_var=yes"
29027 echo "$as_me: failed program was:" >&5
29028 sed 's/^/| /' conftest.$ac_ext >&5
29030 eval "$as_ac_var=no"
29033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29034 conftest$ac_exeext conftest.$ac_ext
29036 ac_res=`eval echo '${'$as_ac_var'}'`
29037 { echo "$as_me:$LINENO: result: $ac_res" >&5
29038 echo "${ECHO_T}$ac_res" >&6; }
29039 if test `eval echo '${'$as_ac_var'}'` = yes; then
29040 cat >>confdefs.h <<_ACEOF
29041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29054 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
29056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29057 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29059 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29060 echo $ECHO_N "(cached) $ECHO_C" >&6
29062 cat >conftest.$ac_ext <<_ACEOF
29065 cat confdefs.h >>conftest.$ac_ext
29066 cat >>conftest.$ac_ext <<_ACEOF
29067 /* end confdefs.h. */
29068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29070 #define $ac_func innocuous_$ac_func
29072 /* System header to define __stub macros and hopefully few prototypes,
29073 which can conflict with char $ac_func (); below.
29074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29075 <limits.h> exists even on freestanding compilers. */
29078 # include <limits.h>
29080 # include <assert.h>
29085 /* Override any GCC internal prototype to avoid an error.
29086 Use char because int might match the return type of a GCC
29087 builtin and then its argument prototype would still apply. */
29092 /* The GNU C library defines this for functions which it implements
29093 to always fail with ENOSYS. Some functions are actually named
29094 something starting with __ and the normal name is an alias. */
29095 #if defined __stub_$ac_func || defined __stub___$ac_func
29102 return $ac_func ();
29107 rm -f conftest.$ac_objext conftest$ac_exeext
29108 if { (ac_try="$ac_link"
29109 case "(($ac_try" in
29110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29111 *) ac_try_echo=$ac_try;;
29113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29114 (eval "$ac_link") 2>conftest.er1
29116 grep -v '^ *+' conftest.er1 >conftest.err
29118 cat conftest.err >&5
29119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120 (exit $ac_status); } && {
29121 test -z "$ac_c_werror_flag" ||
29122 test ! -s conftest.err
29123 } && test -s conftest$ac_exeext &&
29124 $as_test_x conftest$ac_exeext; then
29125 eval "$as_ac_var=yes"
29127 echo "$as_me: failed program was:" >&5
29128 sed 's/^/| /' conftest.$ac_ext >&5
29130 eval "$as_ac_var=no"
29133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29134 conftest$ac_exeext conftest.$ac_ext
29136 ac_res=`eval echo '${'$as_ac_var'}'`
29137 { echo "$as_me:$LINENO: result: $ac_res" >&5
29138 echo "${ECHO_T}$ac_res" >&6; }
29139 if test `eval echo '${'$as_ac_var'}'` = yes; then
29140 cat >>confdefs.h <<_ACEOF
29141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29151 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
29153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29154 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29157 echo $ECHO_N "(cached) $ECHO_C" >&6
29159 cat >conftest.$ac_ext <<_ACEOF
29162 cat confdefs.h >>conftest.$ac_ext
29163 cat >>conftest.$ac_ext <<_ACEOF
29164 /* end confdefs.h. */
29165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29167 #define $ac_func innocuous_$ac_func
29169 /* System header to define __stub macros and hopefully few prototypes,
29170 which can conflict with char $ac_func (); below.
29171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29172 <limits.h> exists even on freestanding compilers. */
29175 # include <limits.h>
29177 # include <assert.h>
29182 /* Override any GCC internal prototype to avoid an error.
29183 Use char because int might match the return type of a GCC
29184 builtin and then its argument prototype would still apply. */
29189 /* The GNU C library defines this for functions which it implements
29190 to always fail with ENOSYS. Some functions are actually named
29191 something starting with __ and the normal name is an alias. */
29192 #if defined __stub_$ac_func || defined __stub___$ac_func
29199 return $ac_func ();
29204 rm -f conftest.$ac_objext conftest$ac_exeext
29205 if { (ac_try="$ac_link"
29206 case "(($ac_try" in
29207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29208 *) ac_try_echo=$ac_try;;
29210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29211 (eval "$ac_link") 2>conftest.er1
29213 grep -v '^ *+' conftest.er1 >conftest.err
29215 cat conftest.err >&5
29216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217 (exit $ac_status); } && {
29218 test -z "$ac_c_werror_flag" ||
29219 test ! -s conftest.err
29220 } && test -s conftest$ac_exeext &&
29221 $as_test_x conftest$ac_exeext; then
29222 eval "$as_ac_var=yes"
29224 echo "$as_me: failed program was:" >&5
29225 sed 's/^/| /' conftest.$ac_ext >&5
29227 eval "$as_ac_var=no"
29230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29231 conftest$ac_exeext conftest.$ac_ext
29233 ac_res=`eval echo '${'$as_ac_var'}'`
29234 { echo "$as_me:$LINENO: result: $ac_res" >&5
29235 echo "${ECHO_T}$ac_res" >&6; }
29236 if test `eval echo '${'$as_ac_var'}'` = yes; then
29237 cat >>confdefs.h <<_ACEOF
29238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29248 for ac_func in setjmp longjmp sigsetjmp siglongjmp
29250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29251 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29254 echo $ECHO_N "(cached) $ECHO_C" >&6
29256 cat >conftest.$ac_ext <<_ACEOF
29259 cat confdefs.h >>conftest.$ac_ext
29260 cat >>conftest.$ac_ext <<_ACEOF
29261 /* end confdefs.h. */
29262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29264 #define $ac_func innocuous_$ac_func
29266 /* System header to define __stub macros and hopefully few prototypes,
29267 which can conflict with char $ac_func (); below.
29268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29269 <limits.h> exists even on freestanding compilers. */
29272 # include <limits.h>
29274 # include <assert.h>
29279 /* Override any GCC internal prototype to avoid an error.
29280 Use char because int might match the return type of a GCC
29281 builtin and then its argument prototype would still apply. */
29286 /* The GNU C library defines this for functions which it implements
29287 to always fail with ENOSYS. Some functions are actually named
29288 something starting with __ and the normal name is an alias. */
29289 #if defined __stub_$ac_func || defined __stub___$ac_func
29296 return $ac_func ();
29301 rm -f conftest.$ac_objext conftest$ac_exeext
29302 if { (ac_try="$ac_link"
29303 case "(($ac_try" in
29304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29305 *) ac_try_echo=$ac_try;;
29307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29308 (eval "$ac_link") 2>conftest.er1
29310 grep -v '^ *+' conftest.er1 >conftest.err
29312 cat conftest.err >&5
29313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314 (exit $ac_status); } && {
29315 test -z "$ac_c_werror_flag" ||
29316 test ! -s conftest.err
29317 } && test -s conftest$ac_exeext &&
29318 $as_test_x conftest$ac_exeext; then
29319 eval "$as_ac_var=yes"
29321 echo "$as_me: failed program was:" >&5
29322 sed 's/^/| /' conftest.$ac_ext >&5
29324 eval "$as_ac_var=no"
29327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29328 conftest$ac_exeext conftest.$ac_ext
29330 ac_res=`eval echo '${'$as_ac_var'}'`
29331 { echo "$as_me:$LINENO: result: $ac_res" >&5
29332 echo "${ECHO_T}$ac_res" >&6; }
29333 if test `eval echo '${'$as_ac_var'}'` = yes; then
29334 cat >>confdefs.h <<_ACEOF
29335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29341 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
29342 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
29343 if test "${llvm_cv_c_printf_a+set}" = set; then
29344 echo $ECHO_N "(cached) $ECHO_C" >&6
29347 ac_cpp='$CPP $CPPFLAGS'
29348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29352 if test "$cross_compiling" = yes; then
29353 llvmac_cv_c_printf_a=no
29355 cat >conftest.$ac_ext <<_ACEOF
29359 cat confdefs.h >>conftest.$ac_ext
29360 cat >>conftest.$ac_ext <<_ACEOF
29361 /* end confdefs.h. */
29364 #include <stdlib.h>
29370 volatile double A, B;
29374 sprintf(Buffer, "%a", A);
29378 if (A != 0x1.999999999999ap-4)
29385 rm -f conftest$ac_exeext
29386 if { (ac_try="$ac_link"
29387 case "(($ac_try" in
29388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29389 *) ac_try_echo=$ac_try;;
29391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29392 (eval "$ac_link") 2>&5
29394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29396 { (case "(($ac_try" in
29397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29398 *) ac_try_echo=$ac_try;;
29400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29401 (eval "$ac_try") 2>&5
29403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29404 (exit $ac_status); }; }; then
29405 llvm_cv_c_printf_a=yes
29407 echo "$as_me: program exited with status $ac_status" >&5
29408 echo "$as_me: failed program was:" >&5
29409 sed 's/^/| /' conftest.$ac_ext >&5
29411 ( exit $ac_status )
29412 llvmac_cv_c_printf_a=no
29414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29419 ac_cpp='$CPP $CPPFLAGS'
29420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29425 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
29426 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
29427 if test "$llvm_cv_c_printf_a" = "yes"; then
29429 cat >>confdefs.h <<\_ACEOF
29430 #define HAVE_PRINTF_A 1
29435 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29436 # for constant arguments. Useless!
29437 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
29438 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
29439 if test "${ac_cv_working_alloca_h+set}" = set; then
29440 echo $ECHO_N "(cached) $ECHO_C" >&6
29442 cat >conftest.$ac_ext <<_ACEOF
29445 cat confdefs.h >>conftest.$ac_ext
29446 cat >>conftest.$ac_ext <<_ACEOF
29447 /* end confdefs.h. */
29448 #include <alloca.h>
29452 char *p = (char *) alloca (2 * sizeof (int));
29458 rm -f conftest.$ac_objext conftest$ac_exeext
29459 if { (ac_try="$ac_link"
29460 case "(($ac_try" in
29461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29462 *) ac_try_echo=$ac_try;;
29464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29465 (eval "$ac_link") 2>conftest.er1
29467 grep -v '^ *+' conftest.er1 >conftest.err
29469 cat conftest.err >&5
29470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471 (exit $ac_status); } && {
29472 test -z "$ac_c_werror_flag" ||
29473 test ! -s conftest.err
29474 } && test -s conftest$ac_exeext &&
29475 $as_test_x conftest$ac_exeext; then
29476 ac_cv_working_alloca_h=yes
29478 echo "$as_me: failed program was:" >&5
29479 sed 's/^/| /' conftest.$ac_ext >&5
29481 ac_cv_working_alloca_h=no
29484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29485 conftest$ac_exeext conftest.$ac_ext
29487 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
29488 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
29489 if test $ac_cv_working_alloca_h = yes; then
29491 cat >>confdefs.h <<\_ACEOF
29492 #define HAVE_ALLOCA_H 1
29497 { echo "$as_me:$LINENO: checking for alloca" >&5
29498 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
29499 if test "${ac_cv_func_alloca_works+set}" = set; then
29500 echo $ECHO_N "(cached) $ECHO_C" >&6
29502 cat >conftest.$ac_ext <<_ACEOF
29505 cat confdefs.h >>conftest.$ac_ext
29506 cat >>conftest.$ac_ext <<_ACEOF
29507 /* end confdefs.h. */
29509 # define alloca __builtin_alloca
29512 # include <malloc.h>
29513 # define alloca _alloca
29515 # ifdef HAVE_ALLOCA_H
29516 # include <alloca.h>
29521 # ifndef alloca /* predefined by HP cc +Olibcalls */
29532 char *p = (char *) alloca (1);
29538 rm -f conftest.$ac_objext conftest$ac_exeext
29539 if { (ac_try="$ac_link"
29540 case "(($ac_try" in
29541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29542 *) ac_try_echo=$ac_try;;
29544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29545 (eval "$ac_link") 2>conftest.er1
29547 grep -v '^ *+' conftest.er1 >conftest.err
29549 cat conftest.err >&5
29550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551 (exit $ac_status); } && {
29552 test -z "$ac_c_werror_flag" ||
29553 test ! -s conftest.err
29554 } && test -s conftest$ac_exeext &&
29555 $as_test_x conftest$ac_exeext; then
29556 ac_cv_func_alloca_works=yes
29558 echo "$as_me: failed program was:" >&5
29559 sed 's/^/| /' conftest.$ac_ext >&5
29561 ac_cv_func_alloca_works=no
29564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29565 conftest$ac_exeext conftest.$ac_ext
29567 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
29568 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
29570 if test $ac_cv_func_alloca_works = yes; then
29572 cat >>confdefs.h <<\_ACEOF
29573 #define HAVE_ALLOCA 1
29577 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29578 # that cause trouble. Some versions do not even contain alloca or
29579 # contain a buggy version. If you still want to use their alloca,
29580 # use ar to extract alloca.o from them instead of compiling alloca.c.
29582 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
29584 cat >>confdefs.h <<\_ACEOF
29589 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
29590 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
29591 if test "${ac_cv_os_cray+set}" = set; then
29592 echo $ECHO_N "(cached) $ECHO_C" >&6
29594 cat >conftest.$ac_ext <<_ACEOF
29597 cat confdefs.h >>conftest.$ac_ext
29598 cat >>conftest.$ac_ext <<_ACEOF
29599 /* end confdefs.h. */
29600 #if defined CRAY && ! defined CRAY2
29607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29608 $EGREP "webecray" >/dev/null 2>&1; then
29616 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
29617 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
29618 if test $ac_cv_os_cray = yes; then
29619 for ac_func in _getb67 GETB67 getb67; do
29620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29621 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29623 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29624 echo $ECHO_N "(cached) $ECHO_C" >&6
29626 cat >conftest.$ac_ext <<_ACEOF
29629 cat confdefs.h >>conftest.$ac_ext
29630 cat >>conftest.$ac_ext <<_ACEOF
29631 /* end confdefs.h. */
29632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29634 #define $ac_func innocuous_$ac_func
29636 /* System header to define __stub macros and hopefully few prototypes,
29637 which can conflict with char $ac_func (); below.
29638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29639 <limits.h> exists even on freestanding compilers. */
29642 # include <limits.h>
29644 # include <assert.h>
29649 /* Override any GCC internal prototype to avoid an error.
29650 Use char because int might match the return type of a GCC
29651 builtin and then its argument prototype would still apply. */
29656 /* The GNU C library defines this for functions which it implements
29657 to always fail with ENOSYS. Some functions are actually named
29658 something starting with __ and the normal name is an alias. */
29659 #if defined __stub_$ac_func || defined __stub___$ac_func
29666 return $ac_func ();
29671 rm -f conftest.$ac_objext conftest$ac_exeext
29672 if { (ac_try="$ac_link"
29673 case "(($ac_try" in
29674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29675 *) ac_try_echo=$ac_try;;
29677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29678 (eval "$ac_link") 2>conftest.er1
29680 grep -v '^ *+' conftest.er1 >conftest.err
29682 cat conftest.err >&5
29683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29684 (exit $ac_status); } && {
29685 test -z "$ac_c_werror_flag" ||
29686 test ! -s conftest.err
29687 } && test -s conftest$ac_exeext &&
29688 $as_test_x conftest$ac_exeext; then
29689 eval "$as_ac_var=yes"
29691 echo "$as_me: failed program was:" >&5
29692 sed 's/^/| /' conftest.$ac_ext >&5
29694 eval "$as_ac_var=no"
29697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29698 conftest$ac_exeext conftest.$ac_ext
29700 ac_res=`eval echo '${'$as_ac_var'}'`
29701 { echo "$as_me:$LINENO: result: $ac_res" >&5
29702 echo "${ECHO_T}$ac_res" >&6; }
29703 if test `eval echo '${'$as_ac_var'}'` = yes; then
29705 cat >>confdefs.h <<_ACEOF
29706 #define CRAY_STACKSEG_END $ac_func
29715 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29716 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
29717 if test "${ac_cv_c_stack_direction+set}" = set; then
29718 echo $ECHO_N "(cached) $ECHO_C" >&6
29720 if test "$cross_compiling" = yes; then
29721 ac_cv_c_stack_direction=0
29723 cat >conftest.$ac_ext <<_ACEOF
29726 cat confdefs.h >>conftest.$ac_ext
29727 cat >>conftest.$ac_ext <<_ACEOF
29728 /* end confdefs.h. */
29729 $ac_includes_default
29731 find_stack_direction ()
29733 static char *addr = 0;
29738 return find_stack_direction ();
29741 return (&dummy > addr) ? 1 : -1;
29747 return find_stack_direction () < 0;
29750 rm -f conftest$ac_exeext
29751 if { (ac_try="$ac_link"
29752 case "(($ac_try" in
29753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29754 *) ac_try_echo=$ac_try;;
29756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29757 (eval "$ac_link") 2>&5
29759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29761 { (case "(($ac_try" in
29762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29763 *) ac_try_echo=$ac_try;;
29765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29766 (eval "$ac_try") 2>&5
29768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769 (exit $ac_status); }; }; then
29770 ac_cv_c_stack_direction=1
29772 echo "$as_me: program exited with status $ac_status" >&5
29773 echo "$as_me: failed program was:" >&5
29774 sed 's/^/| /' conftest.$ac_ext >&5
29776 ( exit $ac_status )
29777 ac_cv_c_stack_direction=-1
29779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29784 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
29785 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
29787 cat >>confdefs.h <<_ACEOF
29788 #define STACK_DIRECTION $ac_cv_c_stack_direction
29795 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
29796 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
29797 if test "${ac_cv_func_rand48+set}" = set; then
29798 echo $ECHO_N "(cached) $ECHO_C" >&6
29801 ac_cpp='$CXXCPP $CPPFLAGS'
29802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29806 cat >conftest.$ac_ext <<_ACEOF
29809 cat confdefs.h >>conftest.$ac_ext
29810 cat >>conftest.$ac_ext <<_ACEOF
29811 /* end confdefs.h. */
29812 #include <stdlib.h>
29816 srand48(0);lrand48();drand48();
29821 rm -f conftest.$ac_objext
29822 if { (ac_try="$ac_compile"
29823 case "(($ac_try" in
29824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29825 *) ac_try_echo=$ac_try;;
29827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29828 (eval "$ac_compile") 2>conftest.er1
29830 grep -v '^ *+' conftest.er1 >conftest.err
29832 cat conftest.err >&5
29833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834 (exit $ac_status); } && {
29835 test -z "$ac_cxx_werror_flag" ||
29836 test ! -s conftest.err
29837 } && test -s conftest.$ac_objext; then
29838 ac_cv_func_rand48=yes
29840 echo "$as_me: failed program was:" >&5
29841 sed 's/^/| /' conftest.$ac_ext >&5
29843 ac_cv_func_rand48=no
29846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29848 ac_cpp='$CPP $CPPFLAGS'
29849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29854 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29855 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
29857 if test "$ac_cv_func_rand48" = "yes" ; then
29859 cat >>confdefs.h <<\_ACEOF
29860 #define HAVE_RAND48 1
29866 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29867 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
29868 if test "${ac_cv_cxx_namespaces+set}" = set; then
29869 echo $ECHO_N "(cached) $ECHO_C" >&6
29872 ac_cpp='$CXXCPP $CPPFLAGS'
29873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29877 cat >conftest.$ac_ext <<_ACEOF
29880 cat confdefs.h >>conftest.$ac_ext
29881 cat >>conftest.$ac_ext <<_ACEOF
29882 /* end confdefs.h. */
29883 namespace Outer { namespace Inner { int i = 0; }}
29887 using namespace Outer::Inner; return i;
29892 rm -f conftest.$ac_objext
29893 if { (ac_try="$ac_compile"
29894 case "(($ac_try" in
29895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29896 *) ac_try_echo=$ac_try;;
29898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29899 (eval "$ac_compile") 2>conftest.er1
29901 grep -v '^ *+' conftest.er1 >conftest.err
29903 cat conftest.err >&5
29904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29905 (exit $ac_status); } && {
29906 test -z "$ac_cxx_werror_flag" ||
29907 test ! -s conftest.err
29908 } && test -s conftest.$ac_objext; then
29909 ac_cv_cxx_namespaces=yes
29911 echo "$as_me: failed program was:" >&5
29912 sed 's/^/| /' conftest.$ac_ext >&5
29914 ac_cv_cxx_namespaces=no
29917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29919 ac_cpp='$CPP $CPPFLAGS'
29920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29926 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29927 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
29928 if test "$ac_cv_cxx_namespaces" = yes; then
29930 cat >>confdefs.h <<\_ACEOF
29931 #define HAVE_NAMESPACES
29936 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29937 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
29938 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
29939 echo $ECHO_N "(cached) $ECHO_C" >&6
29943 ac_cpp='$CXXCPP $CPPFLAGS'
29944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29948 cat >conftest.$ac_ext <<_ACEOF
29951 cat confdefs.h >>conftest.$ac_ext
29952 cat >>conftest.$ac_ext <<_ACEOF
29953 /* end confdefs.h. */
29954 #include <ext/hash_map>
29955 #ifdef HAVE_NAMESPACES
29956 using namespace std;
29961 hash_map<int, int> t;
29966 rm -f conftest.$ac_objext
29967 if { (ac_try="$ac_compile"
29968 case "(($ac_try" in
29969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29970 *) ac_try_echo=$ac_try;;
29972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29973 (eval "$ac_compile") 2>conftest.er1
29975 grep -v '^ *+' conftest.er1 >conftest.err
29977 cat conftest.err >&5
29978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29979 (exit $ac_status); } && {
29980 test -z "$ac_cxx_werror_flag" ||
29981 test ! -s conftest.err
29982 } && test -s conftest.$ac_objext; then
29983 ac_cv_cxx_have_std_ext_hash_map=yes
29985 echo "$as_me: failed program was:" >&5
29986 sed 's/^/| /' conftest.$ac_ext >&5
29988 ac_cv_cxx_have_std_ext_hash_map=no
29991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29993 ac_cpp='$CPP $CPPFLAGS'
29994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29999 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
30000 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
30001 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
30004 cat >>confdefs.h <<\_ACEOF
30005 #define HAVE_STD_EXT_HASH_MAP 1
30010 cat >>confdefs.h <<\_ACEOF
30011 #define HAVE_STD_EXT_HASH_MAP 0
30016 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
30017 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
30018 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
30019 echo $ECHO_N "(cached) $ECHO_C" >&6
30023 ac_cpp='$CXXCPP $CPPFLAGS'
30024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30028 cat >conftest.$ac_ext <<_ACEOF
30031 cat confdefs.h >>conftest.$ac_ext
30032 cat >>conftest.$ac_ext <<_ACEOF
30033 /* end confdefs.h. */
30034 #include <ext/hash_map>
30035 #ifdef HAVE_NAMESPACES
30036 using namespace __gnu_cxx;
30041 hash_map<int,int> t;
30046 rm -f conftest.$ac_objext
30047 if { (ac_try="$ac_compile"
30048 case "(($ac_try" in
30049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30050 *) ac_try_echo=$ac_try;;
30052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30053 (eval "$ac_compile") 2>conftest.er1
30055 grep -v '^ *+' conftest.er1 >conftest.err
30057 cat conftest.err >&5
30058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059 (exit $ac_status); } && {
30060 test -z "$ac_cxx_werror_flag" ||
30061 test ! -s conftest.err
30062 } && test -s conftest.$ac_objext; then
30063 ac_cv_cxx_have_gnu_ext_hash_map=yes
30065 echo "$as_me: failed program was:" >&5
30066 sed 's/^/| /' conftest.$ac_ext >&5
30068 ac_cv_cxx_have_gnu_ext_hash_map=no
30071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30073 ac_cpp='$CPP $CPPFLAGS'
30074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30079 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
30080 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
30081 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
30084 cat >>confdefs.h <<\_ACEOF
30085 #define HAVE_GNU_EXT_HASH_MAP 1
30090 cat >>confdefs.h <<\_ACEOF
30091 #define HAVE_GNU_EXT_HASH_MAP 0
30096 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
30097 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
30098 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
30099 echo $ECHO_N "(cached) $ECHO_C" >&6
30103 ac_cpp='$CXXCPP $CPPFLAGS'
30104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30108 cat >conftest.$ac_ext <<_ACEOF
30111 cat confdefs.h >>conftest.$ac_ext
30112 cat >>conftest.$ac_ext <<_ACEOF
30113 /* end confdefs.h. */
30114 #include <hash_map>
30118 hash_map<int,int> t;
30123 rm -f conftest.$ac_objext
30124 if { (ac_try="$ac_compile"
30125 case "(($ac_try" in
30126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30127 *) ac_try_echo=$ac_try;;
30129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30130 (eval "$ac_compile") 2>conftest.er1
30132 grep -v '^ *+' conftest.er1 >conftest.err
30134 cat conftest.err >&5
30135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136 (exit $ac_status); } && {
30137 test -z "$ac_cxx_werror_flag" ||
30138 test ! -s conftest.err
30139 } && test -s conftest.$ac_objext; then
30140 ac_cv_cxx_have_global_hash_map=yes
30142 echo "$as_me: failed program was:" >&5
30143 sed 's/^/| /' conftest.$ac_ext >&5
30145 ac_cv_cxx_have_global_hash_map=no
30148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30150 ac_cpp='$CPP $CPPFLAGS'
30151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30156 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
30157 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
30158 if test "$ac_cv_cxx_have_global_hash_map" = yes
30161 cat >>confdefs.h <<\_ACEOF
30162 #define HAVE_GLOBAL_HASH_MAP 1
30167 cat >>confdefs.h <<\_ACEOF
30168 #define HAVE_GLOBAL_HASH_MAP 0
30173 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
30174 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
30175 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
30176 echo $ECHO_N "(cached) $ECHO_C" >&6
30180 ac_cpp='$CXXCPP $CPPFLAGS'
30181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30185 cat >conftest.$ac_ext <<_ACEOF
30188 cat confdefs.h >>conftest.$ac_ext
30189 cat >>conftest.$ac_ext <<_ACEOF
30190 /* end confdefs.h. */
30191 #include <ext/hash_set>
30192 #ifdef HAVE_NAMESPACES
30193 using namespace std;
30203 rm -f conftest.$ac_objext
30204 if { (ac_try="$ac_compile"
30205 case "(($ac_try" in
30206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30207 *) ac_try_echo=$ac_try;;
30209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30210 (eval "$ac_compile") 2>conftest.er1
30212 grep -v '^ *+' conftest.er1 >conftest.err
30214 cat conftest.err >&5
30215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216 (exit $ac_status); } && {
30217 test -z "$ac_cxx_werror_flag" ||
30218 test ! -s conftest.err
30219 } && test -s conftest.$ac_objext; then
30220 ac_cv_cxx_have_std_ext_hash_set=yes
30222 echo "$as_me: failed program was:" >&5
30223 sed 's/^/| /' conftest.$ac_ext >&5
30225 ac_cv_cxx_have_std_ext_hash_set=no
30228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30230 ac_cpp='$CPP $CPPFLAGS'
30231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30236 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
30237 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
30238 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
30241 cat >>confdefs.h <<\_ACEOF
30242 #define HAVE_STD_EXT_HASH_SET 1
30247 cat >>confdefs.h <<\_ACEOF
30248 #define HAVE_STD_EXT_HASH_SET 0
30253 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
30254 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
30255 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
30256 echo $ECHO_N "(cached) $ECHO_C" >&6
30260 ac_cpp='$CXXCPP $CPPFLAGS'
30261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30265 cat >conftest.$ac_ext <<_ACEOF
30268 cat confdefs.h >>conftest.$ac_ext
30269 cat >>conftest.$ac_ext <<_ACEOF
30270 /* end confdefs.h. */
30271 #include <ext/hash_set>
30272 #ifdef HAVE_NAMESPACES
30273 using namespace __gnu_cxx;
30283 rm -f conftest.$ac_objext
30284 if { (ac_try="$ac_compile"
30285 case "(($ac_try" in
30286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30287 *) ac_try_echo=$ac_try;;
30289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30290 (eval "$ac_compile") 2>conftest.er1
30292 grep -v '^ *+' conftest.er1 >conftest.err
30294 cat conftest.err >&5
30295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30296 (exit $ac_status); } && {
30297 test -z "$ac_cxx_werror_flag" ||
30298 test ! -s conftest.err
30299 } && test -s conftest.$ac_objext; then
30300 ac_cv_cxx_have_gnu_ext_hash_set=yes
30302 echo "$as_me: failed program was:" >&5
30303 sed 's/^/| /' conftest.$ac_ext >&5
30305 ac_cv_cxx_have_gnu_ext_hash_set=no
30308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30310 ac_cpp='$CPP $CPPFLAGS'
30311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30316 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
30317 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
30318 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
30321 cat >>confdefs.h <<\_ACEOF
30322 #define HAVE_GNU_EXT_HASH_SET 1
30327 cat >>confdefs.h <<\_ACEOF
30328 #define HAVE_GNU_EXT_HASH_SET 0
30333 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
30334 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
30335 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
30336 echo $ECHO_N "(cached) $ECHO_C" >&6
30340 ac_cpp='$CXXCPP $CPPFLAGS'
30341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30345 cat >conftest.$ac_ext <<_ACEOF
30348 cat confdefs.h >>conftest.$ac_ext
30349 cat >>conftest.$ac_ext <<_ACEOF
30350 /* end confdefs.h. */
30351 #include <hash_set>
30355 hash_set<int> t; return 0;
30360 rm -f conftest.$ac_objext
30361 if { (ac_try="$ac_compile"
30362 case "(($ac_try" in
30363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30364 *) ac_try_echo=$ac_try;;
30366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30367 (eval "$ac_compile") 2>conftest.er1
30369 grep -v '^ *+' conftest.er1 >conftest.err
30371 cat conftest.err >&5
30372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373 (exit $ac_status); } && {
30374 test -z "$ac_cxx_werror_flag" ||
30375 test ! -s conftest.err
30376 } && test -s conftest.$ac_objext; then
30377 ac_cv_cxx_have_global_hash_set=yes
30379 echo "$as_me: failed program was:" >&5
30380 sed 's/^/| /' conftest.$ac_ext >&5
30382 ac_cv_cxx_have_global_hash_set=no
30385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30387 ac_cpp='$CPP $CPPFLAGS'
30388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30393 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
30394 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
30395 if test "$ac_cv_cxx_have_global_hash_set" = yes
30398 cat >>confdefs.h <<\_ACEOF
30399 #define HAVE_GLOBAL_HASH_SET 1
30404 cat >>confdefs.h <<\_ACEOF
30405 #define HAVE_GLOBAL_HASH_SET 0
30410 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
30411 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
30412 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
30413 echo $ECHO_N "(cached) $ECHO_C" >&6
30417 ac_cpp='$CXXCPP $CPPFLAGS'
30418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30422 cat >conftest.$ac_ext <<_ACEOF
30425 cat confdefs.h >>conftest.$ac_ext
30426 cat >>conftest.$ac_ext <<_ACEOF
30427 /* end confdefs.h. */
30428 #include <iterator>
30429 #ifdef HAVE_NAMESPACES
30430 using namespace std;
30435 iterator<int,int,int> t; return 0;
30440 rm -f conftest.$ac_objext
30441 if { (ac_try="$ac_compile"
30442 case "(($ac_try" in
30443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30444 *) ac_try_echo=$ac_try;;
30446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30447 (eval "$ac_compile") 2>conftest.er1
30449 grep -v '^ *+' conftest.er1 >conftest.err
30451 cat conftest.err >&5
30452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30453 (exit $ac_status); } && {
30454 test -z "$ac_cxx_werror_flag" ||
30455 test ! -s conftest.err
30456 } && test -s conftest.$ac_objext; then
30457 ac_cv_cxx_have_std_iterator=yes
30459 echo "$as_me: failed program was:" >&5
30460 sed 's/^/| /' conftest.$ac_ext >&5
30462 ac_cv_cxx_have_std_iterator=no
30465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30467 ac_cpp='$CPP $CPPFLAGS'
30468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30474 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
30475 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
30476 if test "$ac_cv_cxx_have_std_iterator" = yes
30479 cat >>confdefs.h <<\_ACEOF
30480 #define HAVE_STD_ITERATOR 1
30485 cat >>confdefs.h <<\_ACEOF
30486 #define HAVE_STD_ITERATOR 0
30491 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
30492 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
30493 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
30494 echo $ECHO_N "(cached) $ECHO_C" >&6
30498 ac_cpp='$CXXCPP $CPPFLAGS'
30499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30503 cat >conftest.$ac_ext <<_ACEOF
30506 cat confdefs.h >>conftest.$ac_ext
30507 cat >>conftest.$ac_ext <<_ACEOF
30508 /* end confdefs.h. */
30509 #include <iterator>
30510 #ifdef HAVE_NAMESPACES
30511 using namespace std;
30516 bidirectional_iterator<int,int> t; return 0;
30521 rm -f conftest.$ac_objext
30522 if { (ac_try="$ac_compile"
30523 case "(($ac_try" in
30524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30525 *) ac_try_echo=$ac_try;;
30527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30528 (eval "$ac_compile") 2>conftest.er1
30530 grep -v '^ *+' conftest.er1 >conftest.err
30532 cat conftest.err >&5
30533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30534 (exit $ac_status); } && {
30535 test -z "$ac_cxx_werror_flag" ||
30536 test ! -s conftest.err
30537 } && test -s conftest.$ac_objext; then
30538 ac_cv_cxx_have_bi_iterator=yes
30540 echo "$as_me: failed program was:" >&5
30541 sed 's/^/| /' conftest.$ac_ext >&5
30543 ac_cv_cxx_have_bi_iterator=no
30546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30548 ac_cpp='$CPP $CPPFLAGS'
30549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30555 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
30556 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
30557 if test "$ac_cv_cxx_have_bi_iterator" = yes
30560 cat >>confdefs.h <<\_ACEOF
30561 #define HAVE_BI_ITERATOR 1
30566 cat >>confdefs.h <<\_ACEOF
30567 #define HAVE_BI_ITERATOR 0
30572 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
30573 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
30574 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
30575 echo $ECHO_N "(cached) $ECHO_C" >&6
30579 ac_cpp='$CXXCPP $CPPFLAGS'
30580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30584 cat >conftest.$ac_ext <<_ACEOF
30587 cat confdefs.h >>conftest.$ac_ext
30588 cat >>conftest.$ac_ext <<_ACEOF
30589 /* end confdefs.h. */
30590 #include <iterator>
30591 #ifdef HAVE_NAMESPACES
30592 using namespace std;
30597 forward_iterator<int,int> t; return 0;
30602 rm -f conftest.$ac_objext
30603 if { (ac_try="$ac_compile"
30604 case "(($ac_try" in
30605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30606 *) ac_try_echo=$ac_try;;
30608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30609 (eval "$ac_compile") 2>conftest.er1
30611 grep -v '^ *+' conftest.er1 >conftest.err
30613 cat conftest.err >&5
30614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30615 (exit $ac_status); } && {
30616 test -z "$ac_cxx_werror_flag" ||
30617 test ! -s conftest.err
30618 } && test -s conftest.$ac_objext; then
30619 ac_cv_cxx_have_fwd_iterator=yes
30621 echo "$as_me: failed program was:" >&5
30622 sed 's/^/| /' conftest.$ac_ext >&5
30624 ac_cv_cxx_have_fwd_iterator=no
30627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30629 ac_cpp='$CPP $CPPFLAGS'
30630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30636 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
30637 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
30638 if test "$ac_cv_cxx_have_fwd_iterator" = yes
30641 cat >>confdefs.h <<\_ACEOF
30642 #define HAVE_FWD_ITERATOR 1
30647 cat >>confdefs.h <<\_ACEOF
30648 #define HAVE_FWD_ITERATOR 0
30654 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
30655 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
30656 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
30657 echo $ECHO_N "(cached) $ECHO_C" >&6
30660 ac_cpp='$CXXCPP $CPPFLAGS'
30661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30665 cat >conftest.$ac_ext <<_ACEOF
30668 cat confdefs.h >>conftest.$ac_ext
30669 cat >>conftest.$ac_ext <<_ACEOF
30670 /* end confdefs.h. */
30680 rm -f conftest.$ac_objext
30681 if { (ac_try="$ac_compile"
30682 case "(($ac_try" in
30683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30684 *) ac_try_echo=$ac_try;;
30686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30687 (eval "$ac_compile") 2>conftest.er1
30689 grep -v '^ *+' conftest.er1 >conftest.err
30691 cat conftest.err >&5
30692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693 (exit $ac_status); } && {
30694 test -z "$ac_cxx_werror_flag" ||
30695 test ! -s conftest.err
30696 } && test -s conftest.$ac_objext; then
30697 ac_cv_func_isnan_in_math_h=yes
30699 echo "$as_me: failed program was:" >&5
30700 sed 's/^/| /' conftest.$ac_ext >&5
30702 ac_cv_func_isnan_in_math_h=no
30705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30707 ac_cpp='$CPP $CPPFLAGS'
30708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30713 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
30714 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
30717 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
30719 cat >>confdefs.h <<\_ACEOF
30720 #define HAVE_ISNAN_IN_MATH_H 1
30725 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
30726 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
30727 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
30728 echo $ECHO_N "(cached) $ECHO_C" >&6
30731 ac_cpp='$CXXCPP $CPPFLAGS'
30732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30736 cat >conftest.$ac_ext <<_ACEOF
30739 cat confdefs.h >>conftest.$ac_ext
30740 cat >>conftest.$ac_ext <<_ACEOF
30741 /* end confdefs.h. */
30751 rm -f conftest.$ac_objext
30752 if { (ac_try="$ac_compile"
30753 case "(($ac_try" in
30754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30755 *) ac_try_echo=$ac_try;;
30757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30758 (eval "$ac_compile") 2>conftest.er1
30760 grep -v '^ *+' conftest.er1 >conftest.err
30762 cat conftest.err >&5
30763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764 (exit $ac_status); } && {
30765 test -z "$ac_cxx_werror_flag" ||
30766 test ! -s conftest.err
30767 } && test -s conftest.$ac_objext; then
30768 ac_cv_func_isnan_in_cmath=yes
30770 echo "$as_me: failed program was:" >&5
30771 sed 's/^/| /' conftest.$ac_ext >&5
30773 ac_cv_func_isnan_in_cmath=no
30776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30778 ac_cpp='$CPP $CPPFLAGS'
30779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30784 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30785 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
30787 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
30789 cat >>confdefs.h <<\_ACEOF
30790 #define HAVE_ISNAN_IN_CMATH 1
30795 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30796 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
30797 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30798 echo $ECHO_N "(cached) $ECHO_C" >&6
30801 ac_cpp='$CXXCPP $CPPFLAGS'
30802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30806 cat >conftest.$ac_ext <<_ACEOF
30809 cat confdefs.h >>conftest.$ac_ext
30810 cat >>conftest.$ac_ext <<_ACEOF
30811 /* end confdefs.h. */
30816 float f; std::isnan(f);
30821 rm -f conftest.$ac_objext
30822 if { (ac_try="$ac_compile"
30823 case "(($ac_try" in
30824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30825 *) ac_try_echo=$ac_try;;
30827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30828 (eval "$ac_compile") 2>conftest.er1
30830 grep -v '^ *+' conftest.er1 >conftest.err
30832 cat conftest.err >&5
30833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30834 (exit $ac_status); } && {
30835 test -z "$ac_cxx_werror_flag" ||
30836 test ! -s conftest.err
30837 } && test -s conftest.$ac_objext; then
30838 ac_cv_func_std_isnan_in_cmath=yes
30840 echo "$as_me: failed program was:" >&5
30841 sed 's/^/| /' conftest.$ac_ext >&5
30843 ac_cv_func_std_isnan_in_cmath=no
30846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30848 ac_cpp='$CPP $CPPFLAGS'
30849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30854 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30855 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
30857 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
30859 cat >>confdefs.h <<\_ACEOF
30860 #define HAVE_STD_ISNAN_IN_CMATH 1
30866 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30867 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
30868 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30869 echo $ECHO_N "(cached) $ECHO_C" >&6
30872 ac_cpp='$CXXCPP $CPPFLAGS'
30873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30877 cat >conftest.$ac_ext <<_ACEOF
30880 cat confdefs.h >>conftest.$ac_ext
30881 cat >>conftest.$ac_ext <<_ACEOF
30882 /* end confdefs.h. */
30892 rm -f conftest.$ac_objext
30893 if { (ac_try="$ac_compile"
30894 case "(($ac_try" in
30895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30896 *) ac_try_echo=$ac_try;;
30898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30899 (eval "$ac_compile") 2>conftest.er1
30901 grep -v '^ *+' conftest.er1 >conftest.err
30903 cat conftest.err >&5
30904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30905 (exit $ac_status); } && {
30906 test -z "$ac_cxx_werror_flag" ||
30907 test ! -s conftest.err
30908 } && test -s conftest.$ac_objext; then
30909 ac_cv_func_isinf_in_math_h=yes
30911 echo "$as_me: failed program was:" >&5
30912 sed 's/^/| /' conftest.$ac_ext >&5
30914 ac_cv_func_isinf_in_math_h=no
30917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30919 ac_cpp='$CPP $CPPFLAGS'
30920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30925 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30926 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
30928 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
30930 cat >>confdefs.h <<\_ACEOF
30931 #define HAVE_ISINF_IN_MATH_H 1
30936 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30937 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
30938 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30939 echo $ECHO_N "(cached) $ECHO_C" >&6
30942 ac_cpp='$CXXCPP $CPPFLAGS'
30943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30947 cat >conftest.$ac_ext <<_ACEOF
30950 cat confdefs.h >>conftest.$ac_ext
30951 cat >>conftest.$ac_ext <<_ACEOF
30952 /* end confdefs.h. */
30962 rm -f conftest.$ac_objext
30963 if { (ac_try="$ac_compile"
30964 case "(($ac_try" in
30965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30966 *) ac_try_echo=$ac_try;;
30968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30969 (eval "$ac_compile") 2>conftest.er1
30971 grep -v '^ *+' conftest.er1 >conftest.err
30973 cat conftest.err >&5
30974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30975 (exit $ac_status); } && {
30976 test -z "$ac_cxx_werror_flag" ||
30977 test ! -s conftest.err
30978 } && test -s conftest.$ac_objext; then
30979 ac_cv_func_isinf_in_cmath=yes
30981 echo "$as_me: failed program was:" >&5
30982 sed 's/^/| /' conftest.$ac_ext >&5
30984 ac_cv_func_isinf_in_cmath=no
30987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30989 ac_cpp='$CPP $CPPFLAGS'
30990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30995 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30996 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
30998 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
31000 cat >>confdefs.h <<\_ACEOF
31001 #define HAVE_ISINF_IN_CMATH 1
31006 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
31007 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
31008 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
31009 echo $ECHO_N "(cached) $ECHO_C" >&6
31012 ac_cpp='$CXXCPP $CPPFLAGS'
31013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31017 cat >conftest.$ac_ext <<_ACEOF
31020 cat confdefs.h >>conftest.$ac_ext
31021 cat >>conftest.$ac_ext <<_ACEOF
31022 /* end confdefs.h. */
31027 float f; std::isinf(f)}
31032 rm -f conftest.$ac_objext
31033 if { (ac_try="$ac_compile"
31034 case "(($ac_try" in
31035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31036 *) ac_try_echo=$ac_try;;
31038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31039 (eval "$ac_compile") 2>conftest.er1
31041 grep -v '^ *+' conftest.er1 >conftest.err
31043 cat conftest.err >&5
31044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31045 (exit $ac_status); } && {
31046 test -z "$ac_cxx_werror_flag" ||
31047 test ! -s conftest.err
31048 } && test -s conftest.$ac_objext; then
31049 ac_cv_func_std_isinf_in_cmath=yes
31051 echo "$as_me: failed program was:" >&5
31052 sed 's/^/| /' conftest.$ac_ext >&5
31054 ac_cv_func_std_isinf_in_cmath=no
31057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31059 ac_cpp='$CPP $CPPFLAGS'
31060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31065 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
31066 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
31068 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
31070 cat >>confdefs.h <<\_ACEOF
31071 #define HAVE_STD_ISINF_IN_CMATH 1
31076 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
31077 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
31078 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
31079 echo $ECHO_N "(cached) $ECHO_C" >&6
31082 ac_cpp='$CXXCPP $CPPFLAGS'
31083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31087 cat >conftest.$ac_ext <<_ACEOF
31090 cat confdefs.h >>conftest.$ac_ext
31091 cat >>conftest.$ac_ext <<_ACEOF
31092 /* end confdefs.h. */
31093 #include <ieeefp.h>
31097 float f; finite(f);
31102 rm -f conftest.$ac_objext
31103 if { (ac_try="$ac_compile"
31104 case "(($ac_try" in
31105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31106 *) ac_try_echo=$ac_try;;
31108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31109 (eval "$ac_compile") 2>conftest.er1
31111 grep -v '^ *+' conftest.er1 >conftest.err
31113 cat conftest.err >&5
31114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115 (exit $ac_status); } && {
31116 test -z "$ac_cxx_werror_flag" ||
31117 test ! -s conftest.err
31118 } && test -s conftest.$ac_objext; then
31119 ac_cv_func_finite_in_ieeefp_h=yes
31121 echo "$as_me: failed program was:" >&5
31122 sed 's/^/| /' conftest.$ac_ext >&5
31124 ac_cv_func_finite_in_ieeefp_h=no
31127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31129 ac_cpp='$CPP $CPPFLAGS'
31130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31135 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
31136 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
31138 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
31140 cat >>confdefs.h <<\_ACEOF
31141 #define HAVE_FINITE_IN_IEEEFP_H 1
31148 if test "$llvm_cv_platform_type" = "Unix" ; then
31151 for ac_header in stdlib.h unistd.h
31153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31158 echo $ECHO_N "(cached) $ECHO_C" >&6
31160 ac_res=`eval echo '${'$as_ac_Header'}'`
31161 { echo "$as_me:$LINENO: result: $ac_res" >&5
31162 echo "${ECHO_T}$ac_res" >&6; }
31164 # Is the header compilable?
31165 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31167 cat >conftest.$ac_ext <<_ACEOF
31170 cat confdefs.h >>conftest.$ac_ext
31171 cat >>conftest.$ac_ext <<_ACEOF
31172 /* end confdefs.h. */
31173 $ac_includes_default
31174 #include <$ac_header>
31176 rm -f conftest.$ac_objext
31177 if { (ac_try="$ac_compile"
31178 case "(($ac_try" in
31179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31180 *) ac_try_echo=$ac_try;;
31182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31183 (eval "$ac_compile") 2>conftest.er1
31185 grep -v '^ *+' conftest.er1 >conftest.err
31187 cat conftest.err >&5
31188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31189 (exit $ac_status); } && {
31190 test -z "$ac_c_werror_flag" ||
31191 test ! -s conftest.err
31192 } && test -s conftest.$ac_objext; then
31193 ac_header_compiler=yes
31195 echo "$as_me: failed program was:" >&5
31196 sed 's/^/| /' conftest.$ac_ext >&5
31198 ac_header_compiler=no
31201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31202 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31203 echo "${ECHO_T}$ac_header_compiler" >&6; }
31205 # Is the header present?
31206 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31208 cat >conftest.$ac_ext <<_ACEOF
31211 cat confdefs.h >>conftest.$ac_ext
31212 cat >>conftest.$ac_ext <<_ACEOF
31213 /* end confdefs.h. */
31214 #include <$ac_header>
31216 if { (ac_try="$ac_cpp conftest.$ac_ext"
31217 case "(($ac_try" in
31218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31219 *) ac_try_echo=$ac_try;;
31221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31224 grep -v '^ *+' conftest.er1 >conftest.err
31226 cat conftest.err >&5
31227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31228 (exit $ac_status); } >/dev/null && {
31229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31230 test ! -s conftest.err
31232 ac_header_preproc=yes
31234 echo "$as_me: failed program was:" >&5
31235 sed 's/^/| /' conftest.$ac_ext >&5
31237 ac_header_preproc=no
31240 rm -f conftest.err conftest.$ac_ext
31241 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31242 echo "${ECHO_T}$ac_header_preproc" >&6; }
31244 # So? What about this header?
31245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31247 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31248 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31250 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31251 ac_header_preproc=yes
31254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31257 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31258 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31259 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31260 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31261 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31264 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31265 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31267 ## ----------------------------------- ##
31268 ## Report this to llvmbugs@cs.uiuc.edu ##
31269 ## ----------------------------------- ##
31271 ) | sed "s/^/$as_me: WARNING: /" >&2
31274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31277 echo $ECHO_N "(cached) $ECHO_C" >&6
31279 eval "$as_ac_Header=\$ac_header_preproc"
31281 ac_res=`eval echo '${'$as_ac_Header'}'`
31282 { echo "$as_me:$LINENO: result: $ac_res" >&5
31283 echo "${ECHO_T}$ac_res" >&6; }
31286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31287 cat >>confdefs.h <<_ACEOF
31288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31296 for ac_func in getpagesize
31298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31299 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31301 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31302 echo $ECHO_N "(cached) $ECHO_C" >&6
31304 cat >conftest.$ac_ext <<_ACEOF
31307 cat confdefs.h >>conftest.$ac_ext
31308 cat >>conftest.$ac_ext <<_ACEOF
31309 /* end confdefs.h. */
31310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31312 #define $ac_func innocuous_$ac_func
31314 /* System header to define __stub macros and hopefully few prototypes,
31315 which can conflict with char $ac_func (); below.
31316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31317 <limits.h> exists even on freestanding compilers. */
31320 # include <limits.h>
31322 # include <assert.h>
31327 /* Override any GCC internal prototype to avoid an error.
31328 Use char because int might match the return type of a GCC
31329 builtin and then its argument prototype would still apply. */
31334 /* The GNU C library defines this for functions which it implements
31335 to always fail with ENOSYS. Some functions are actually named
31336 something starting with __ and the normal name is an alias. */
31337 #if defined __stub_$ac_func || defined __stub___$ac_func
31344 return $ac_func ();
31349 rm -f conftest.$ac_objext conftest$ac_exeext
31350 if { (ac_try="$ac_link"
31351 case "(($ac_try" in
31352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31353 *) ac_try_echo=$ac_try;;
31355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31356 (eval "$ac_link") 2>conftest.er1
31358 grep -v '^ *+' conftest.er1 >conftest.err
31360 cat conftest.err >&5
31361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31362 (exit $ac_status); } && {
31363 test -z "$ac_c_werror_flag" ||
31364 test ! -s conftest.err
31365 } && test -s conftest$ac_exeext &&
31366 $as_test_x conftest$ac_exeext; then
31367 eval "$as_ac_var=yes"
31369 echo "$as_me: failed program was:" >&5
31370 sed 's/^/| /' conftest.$ac_ext >&5
31372 eval "$as_ac_var=no"
31375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31376 conftest$ac_exeext conftest.$ac_ext
31378 ac_res=`eval echo '${'$as_ac_var'}'`
31379 { echo "$as_me:$LINENO: result: $ac_res" >&5
31380 echo "${ECHO_T}$ac_res" >&6; }
31381 if test `eval echo '${'$as_ac_var'}'` = yes; then
31382 cat >>confdefs.h <<_ACEOF
31383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31389 { echo "$as_me:$LINENO: checking for working mmap" >&5
31390 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
31391 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
31392 echo $ECHO_N "(cached) $ECHO_C" >&6
31394 if test "$cross_compiling" = yes; then
31395 ac_cv_func_mmap_fixed_mapped=no
31397 cat >conftest.$ac_ext <<_ACEOF
31400 cat confdefs.h >>conftest.$ac_ext
31401 cat >>conftest.$ac_ext <<_ACEOF
31402 /* end confdefs.h. */
31403 $ac_includes_default
31404 /* malloc might have been renamed as rpl_malloc. */
31407 /* Thanks to Mike Haertel and Jim Avera for this test.
31408 Here is a matrix of mmap possibilities:
31409 mmap private not fixed
31410 mmap private fixed at somewhere currently unmapped
31411 mmap private fixed at somewhere already mapped
31412 mmap shared not fixed
31413 mmap shared fixed at somewhere currently unmapped
31414 mmap shared fixed at somewhere already mapped
31415 For private mappings, we should verify that changes cannot be read()
31416 back from the file, nor mmap's back from the file at a different
31417 address. (There have been systems where private was not correctly
31418 implemented like the infamous i386 svr4.0, and systems where the
31419 VM page cache was not coherent with the file system buffer cache
31420 like early versions of FreeBSD and possibly contemporary NetBSD.)
31421 For shared mappings, we should conversely verify that changes get
31422 propagated back to all the places they're supposed to be.
31424 Grep wants private fixed already mapped.
31425 The main things grep needs to know about mmap are:
31426 * does it exist and is it safe to write into the mmap'd area
31427 * how to use it (BSD variants) */
31430 #include <sys/mman.h>
31432 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
31436 /* This mess was copied from the GNU getpagesize.h. */
31437 #ifndef HAVE_GETPAGESIZE
31438 /* Assume that all systems that can run configure have sys/param.h. */
31439 # ifndef HAVE_SYS_PARAM_H
31440 # define HAVE_SYS_PARAM_H 1
31443 # ifdef _SC_PAGESIZE
31444 # define getpagesize() sysconf(_SC_PAGESIZE)
31445 # else /* no _SC_PAGESIZE */
31446 # ifdef HAVE_SYS_PARAM_H
31447 # include <sys/param.h>
31448 # ifdef EXEC_PAGESIZE
31449 # define getpagesize() EXEC_PAGESIZE
31450 # else /* no EXEC_PAGESIZE */
31452 # define getpagesize() NBPG * CLSIZE
31455 # endif /* no CLSIZE */
31456 # else /* no NBPG */
31458 # define getpagesize() NBPC
31459 # else /* no NBPC */
31461 # define getpagesize() PAGESIZE
31462 # endif /* PAGESIZE */
31463 # endif /* no NBPC */
31464 # endif /* no NBPG */
31465 # endif /* no EXEC_PAGESIZE */
31466 # else /* no HAVE_SYS_PARAM_H */
31467 # define getpagesize() 8192 /* punt totally */
31468 # endif /* no HAVE_SYS_PARAM_H */
31469 # endif /* no _SC_PAGESIZE */
31471 #endif /* no HAVE_GETPAGESIZE */
31476 char *data, *data2, *data3;
31480 pagesize = getpagesize ();
31482 /* First, make a file with some known garbage in it. */
31483 data = (char *) malloc (pagesize);
31486 for (i = 0; i < pagesize; ++i)
31487 *(data + i) = rand ();
31489 fd = creat ("conftest.mmap", 0600);
31492 if (write (fd, data, pagesize) != pagesize)
31496 /* Next, try to mmap the file at a fixed address which already has
31497 something else allocated at it. If we can, also make sure that
31498 we see the same garbage. */
31499 fd = open ("conftest.mmap", O_RDWR);
31502 data2 = (char *) malloc (2 * pagesize);
31505 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
31506 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
31507 MAP_PRIVATE | MAP_FIXED, fd, 0L))
31509 for (i = 0; i < pagesize; ++i)
31510 if (*(data + i) != *(data2 + i))
31513 /* Finally, make sure that changes to the mapped area do not
31514 percolate back to the file as seen by read(). (This is a bug on
31515 some variants of i386 svr4.0.) */
31516 for (i = 0; i < pagesize; ++i)
31517 *(data2 + i) = *(data2 + i) + 1;
31518 data3 = (char *) malloc (pagesize);
31521 if (read (fd, data3, pagesize) != pagesize)
31523 for (i = 0; i < pagesize; ++i)
31524 if (*(data + i) != *(data3 + i))
31530 rm -f conftest$ac_exeext
31531 if { (ac_try="$ac_link"
31532 case "(($ac_try" in
31533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31534 *) ac_try_echo=$ac_try;;
31536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31537 (eval "$ac_link") 2>&5
31539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31541 { (case "(($ac_try" in
31542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31543 *) ac_try_echo=$ac_try;;
31545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31546 (eval "$ac_try") 2>&5
31548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549 (exit $ac_status); }; }; then
31550 ac_cv_func_mmap_fixed_mapped=yes
31552 echo "$as_me: program exited with status $ac_status" >&5
31553 echo "$as_me: failed program was:" >&5
31554 sed 's/^/| /' conftest.$ac_ext >&5
31556 ( exit $ac_status )
31557 ac_cv_func_mmap_fixed_mapped=no
31559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31564 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31565 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
31566 if test $ac_cv_func_mmap_fixed_mapped = yes; then
31568 cat >>confdefs.h <<\_ACEOF
31569 #define HAVE_MMAP 1
31573 rm -f conftest.mmap
31575 { echo "$as_me:$LINENO: checking for mmap of files" >&5
31576 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
31577 if test "${ac_cv_func_mmap_file+set}" = set; then
31578 echo $ECHO_N "(cached) $ECHO_C" >&6
31581 ac_cpp='$CPP $CPPFLAGS'
31582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31586 if test "$cross_compiling" = yes; then
31587 ac_cv_func_mmap_file=no
31589 cat >conftest.$ac_ext <<_ACEOF
31593 cat confdefs.h >>conftest.$ac_ext
31594 cat >>conftest.$ac_ext <<_ACEOF
31595 /* end confdefs.h. */
31597 #include <sys/types.h>
31598 #include <sys/mman.h>
31606 fd = creat ("foo",0777);
31607 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
31609 return (fd != (int) MAP_FAILED);
31614 rm -f conftest$ac_exeext
31615 if { (ac_try="$ac_link"
31616 case "(($ac_try" in
31617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31618 *) ac_try_echo=$ac_try;;
31620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31621 (eval "$ac_link") 2>&5
31623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31625 { (case "(($ac_try" in
31626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31627 *) ac_try_echo=$ac_try;;
31629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31630 (eval "$ac_try") 2>&5
31632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31633 (exit $ac_status); }; }; then
31634 ac_cv_func_mmap_file=yes
31636 echo "$as_me: program exited with status $ac_status" >&5
31637 echo "$as_me: failed program was:" >&5
31638 sed 's/^/| /' conftest.$ac_ext >&5
31640 ( exit $ac_status )
31641 ac_cv_func_mmap_file=no
31643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31648 ac_cpp='$CPP $CPPFLAGS'
31649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31655 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
31656 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
31657 if test "$ac_cv_func_mmap_file" = yes; then
31659 cat >>confdefs.h <<\_ACEOF
31660 #define HAVE_MMAP_FILE
31667 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
31668 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
31669 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
31670 echo $ECHO_N "(cached) $ECHO_C" >&6
31672 if test "$llvm_cv_os_type" = "Interix" ; then
31673 ac_cv_need_dev_zero_for_mmap=yes
31675 ac_cv_need_dev_zero_for_mmap=no
31679 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
31680 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
31681 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
31683 cat >>confdefs.h <<\_ACEOF
31684 #define NEED_DEV_ZERO_FOR_MMAP 1
31689 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31691 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31692 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
31694 if test "$ac_cv_func_mmap_file" = "no"
31696 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31697 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
31703 for ac_func in __dso_handle
31705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31709 echo $ECHO_N "(cached) $ECHO_C" >&6
31711 cat >conftest.$ac_ext <<_ACEOF
31714 cat confdefs.h >>conftest.$ac_ext
31715 cat >>conftest.$ac_ext <<_ACEOF
31716 /* end confdefs.h. */
31717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31719 #define $ac_func innocuous_$ac_func
31721 /* System header to define __stub macros and hopefully few prototypes,
31722 which can conflict with char $ac_func (); below.
31723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31724 <limits.h> exists even on freestanding compilers. */
31727 # include <limits.h>
31729 # include <assert.h>
31734 /* Override any GCC internal prototype to avoid an error.
31735 Use char because int might match the return type of a GCC
31736 builtin and then its argument prototype would still apply. */
31741 /* The GNU C library defines this for functions which it implements
31742 to always fail with ENOSYS. Some functions are actually named
31743 something starting with __ and the normal name is an alias. */
31744 #if defined __stub_$ac_func || defined __stub___$ac_func
31751 return $ac_func ();
31756 rm -f conftest.$ac_objext conftest$ac_exeext
31757 if { (ac_try="$ac_link"
31758 case "(($ac_try" in
31759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31760 *) ac_try_echo=$ac_try;;
31762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31763 (eval "$ac_link") 2>conftest.er1
31765 grep -v '^ *+' conftest.er1 >conftest.err
31767 cat conftest.err >&5
31768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769 (exit $ac_status); } && {
31770 test -z "$ac_c_werror_flag" ||
31771 test ! -s conftest.err
31772 } && test -s conftest$ac_exeext &&
31773 $as_test_x conftest$ac_exeext; then
31774 eval "$as_ac_var=yes"
31776 echo "$as_me: failed program was:" >&5
31777 sed 's/^/| /' conftest.$ac_ext >&5
31779 eval "$as_ac_var=no"
31782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31783 conftest$ac_exeext conftest.$ac_ext
31785 ac_res=`eval echo '${'$as_ac_var'}'`
31786 { echo "$as_me:$LINENO: result: $ac_res" >&5
31787 echo "${ECHO_T}$ac_res" >&6; }
31788 if test `eval echo '${'$as_ac_var'}'` = yes; then
31789 cat >>confdefs.h <<_ACEOF
31790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31797 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31798 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
31799 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31800 echo $ECHO_N "(cached) $ECHO_C" >&6
31802 llvm_cv_llvmgcc_sanity="no"
31803 if test -x "$LLVMGCC" ; then
31804 cp /dev/null conftest.c
31805 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
31806 grep 'target datalayout =' > /dev/null 2>&1
31807 if test $? -eq 0 ; then
31808 llvm_cv_llvmgcc_sanity="yes"
31813 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31814 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
31816 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
31817 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
31818 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
31819 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
31820 LLVMCC1=$llvmcc1path
31822 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
31823 LLVMCC1PLUS=$llvmcc1pluspath
31825 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31826 LLVMGCCDIR=$llvmgccdir
31828 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
31829 LLVMGCCLIBEXEC=$llvmgcclibexec
31831 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
31832 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31833 LLVMGCC_VERSION=$llvmgccversion
31835 LLVMGCC_MAJVERS=$llvmgccmajvers
31837 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
31838 LLVMGCC_LANGS=$llvmgcclangs
31840 { echo "$as_me:$LINENO: result: ok" >&5
31841 echo "${ECHO_T}ok" >&6; }
31844 SHLIBEXT=$libltdl_cv_shlibext
31847 # Translate the various configuration directories and other basic
31848 # information into substitutions that will end up in Makefile.config.in
31849 # that these configured values can be used by the makefiles
31850 if test "${prefix}" = "NONE" ; then
31851 prefix="/usr/local"
31853 eval LLVM_PREFIX="${prefix}";
31854 eval LLVM_BINDIR="${prefix}/bin";
31855 eval LLVM_LIBDIR="${prefix}/lib";
31856 eval LLVM_DATADIR="${prefix}/share/llvm";
31857 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31858 eval LLVM_ETCDIR="${prefix}/etc/llvm";
31859 eval LLVM_INCLUDEDIR="${prefix}/include";
31860 eval LLVM_INFODIR="${prefix}/info";
31861 eval LLVM_MANDIR="${prefix}/man";
31862 LLVM_CONFIGTIME=`date`
31874 # Place the various directores into the config.h file as #defines so that we
31875 # can know about the installation paths within LLVM.
31877 cat >>confdefs.h <<_ACEOF
31878 #define LLVM_PREFIX "$LLVM_PREFIX"
31882 cat >>confdefs.h <<_ACEOF
31883 #define LLVM_BINDIR "$LLVM_BINDIR"
31887 cat >>confdefs.h <<_ACEOF
31888 #define LLVM_LIBDIR "$LLVM_LIBDIR"
31892 cat >>confdefs.h <<_ACEOF
31893 #define LLVM_DATADIR "$LLVM_DATADIR"
31897 cat >>confdefs.h <<_ACEOF
31898 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
31902 cat >>confdefs.h <<_ACEOF
31903 #define LLVM_ETCDIR "$LLVM_ETCDIR"
31907 cat >>confdefs.h <<_ACEOF
31908 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31912 cat >>confdefs.h <<_ACEOF
31913 #define LLVM_INFODIR "$LLVM_INFODIR"
31917 cat >>confdefs.h <<_ACEOF
31918 #define LLVM_MANDIR "$LLVM_MANDIR"
31922 cat >>confdefs.h <<_ACEOF
31923 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31927 cat >>confdefs.h <<_ACEOF
31928 #define LLVM_HOSTTRIPLE "$host"
31932 # Determine which bindings to build.
31933 if test "$BINDINGS_TO_BUILD" = auto ; then
31934 BINDINGS_TO_BUILD=""
31935 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
31936 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
31939 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
31942 # This isn't really configurey, but it avoids having to repeat the list in
31947 # Do any work necessary to ensure that bindings have what they need.
31948 binding_prereqs_failed=0
31949 for a_binding in $BINDINGS_TO_BUILD ; do
31950 case "$a_binding" in
31952 if test "x$OCAMLC" = x ; then
31953 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
31954 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
31955 binding_prereqs_failed=1
31957 if test "x$OCAMLDEP" = x ; then
31958 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
31959 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
31960 binding_prereqs_failed=1
31962 if test "x$OCAMLOPT" = x ; then
31963 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
31964 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
31966 if test "x$with_ocaml_libdir" != xauto ; then
31967 OCAML_LIBDIR=$with_ocaml_libdir
31970 ocaml_stdlib="`"$OCAMLC" -where`"
31971 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
31973 # ocaml stdlib is beneath our prefix; use stdlib
31974 OCAML_LIBDIR=$ocaml_stdlib
31977 # ocaml stdlib is outside our prefix; use libdir/ocaml
31978 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
31985 if test "$binding_prereqs_failed" = 1 ; then
31986 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
31987 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
31988 { (exit 1); exit 1; }; }
31993 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31995 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31997 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31999 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
32001 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
32004 ac_config_files="$ac_config_files Makefile.config"
32007 ac_config_files="$ac_config_files llvm.spec"
32010 ac_config_files="$ac_config_files docs/doxygen.cfg"
32013 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
32016 ac_config_commands="$ac_config_commands setup"
32018 ac_config_commands="$ac_config_commands Makefile"
32021 ac_config_commands="$ac_config_commands Makefile.common"
32024 ac_config_commands="$ac_config_commands examples/Makefile"
32027 ac_config_commands="$ac_config_commands lib/Makefile"
32030 ac_config_commands="$ac_config_commands runtime/Makefile"
32033 ac_config_commands="$ac_config_commands test/Makefile"
32036 ac_config_commands="$ac_config_commands test/Makefile.tests"
32039 ac_config_commands="$ac_config_commands tools/Makefile"
32042 ac_config_commands="$ac_config_commands utils/Makefile"
32045 ac_config_commands="$ac_config_commands projects/Makefile"
32048 ac_config_commands="$ac_config_commands bindings/Makefile"
32051 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
32055 cat >confcache <<\_ACEOF
32056 # This file is a shell script that caches the results of configure
32057 # tests run on this system so they can be shared between configure
32058 # scripts and configure runs, see configure's option --config-cache.
32059 # It is not useful on other systems. If it contains results you don't
32060 # want to keep, you may remove or edit it.
32062 # config.status only pays attention to the cache file if you give it
32063 # the --recheck option to rerun configure.
32065 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32066 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32067 # following values.
32071 # The following way of writing the cache mishandles newlines in values,
32072 # but we know of no workaround that is simple, portable, and efficient.
32073 # So, we kill variables containing newlines.
32074 # Ultrix sh set writes to stderr and can't be redirected directly,
32075 # and sets the high bit in the cache file unless we assign to the vars.
32077 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32078 eval ac_val=\$$ac_var
32082 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32083 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32086 _ | IFS | as_nl) ;; #(
32087 *) $as_unset $ac_var ;;
32093 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32094 *${as_nl}ac_space=\ *)
32095 # `set' does not quote correctly, so add quotes (double-quote
32096 # substitution turns \\\\ into \\, and sed turns \\ into \).
32099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32102 # `set' quotes correctly as required by POSIX, so do not add quotes.
32103 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32112 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32114 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32116 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32117 if test -w "$cache_file"; then
32118 test "x$cache_file" != "x/dev/null" &&
32119 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32120 echo "$as_me: updating cache $cache_file" >&6;}
32121 cat confcache >$cache_file
32123 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32124 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32129 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32130 # Let make expand exec_prefix.
32131 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32133 DEFS=-DHAVE_CONFIG_H
32137 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32138 # 1. Remove the extension, and $U if already installed.
32139 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32140 ac_i=`echo "$ac_i" | sed "$ac_script"`
32141 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32142 # will be set to the directory where LIBOBJS objects are built.
32143 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32144 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32146 LIBOBJS=$ac_libobjs
32148 LTLIBOBJS=$ac_ltlibobjs
32151 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32152 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
32153 Usually this means the macro was only invoked conditionally." >&5
32154 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
32155 Usually this means the macro was only invoked conditionally." >&2;}
32156 { (exit 1); exit 1; }; }
32158 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32159 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32160 Usually this means the macro was only invoked conditionally." >&5
32161 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32162 Usually this means the macro was only invoked conditionally." >&2;}
32163 { (exit 1); exit 1; }; }
32166 : ${CONFIG_STATUS=./config.status}
32167 ac_clean_files_save=$ac_clean_files
32168 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32169 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32170 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32171 cat >$CONFIG_STATUS <<_ACEOF
32173 # Generated by $as_me.
32174 # Run this file to recreate the current configuration.
32175 # Compiler output produced by configure, useful for debugging
32176 # configure, is in config.log if it exists.
32179 ac_cs_recheck=false
32181 SHELL=\${CONFIG_SHELL-$SHELL}
32184 cat >>$CONFIG_STATUS <<\_ACEOF
32185 ## --------------------- ##
32186 ## M4sh Initialization. ##
32187 ## --------------------- ##
32189 # Be more Bourne compatible
32190 DUALCASE=1; export DUALCASE # for MKS sh
32191 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32194 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32195 # is contrary to our usage. Disable this feature.
32196 alias -g '${1+"$@"}'='"$@"'
32197 setopt NO_GLOB_SUBST
32199 case `(set -o) 2>/dev/null` in
32200 *posix*) set -o posix ;;
32209 # Avoid depending upon Character Ranges.
32210 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32211 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32212 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32213 as_cr_digits='0123456789'
32214 as_cr_alnum=$as_cr_Letters$as_cr_digits
32216 # The user is always right.
32217 if test "${PATH_SEPARATOR+set}" != set; then
32218 echo "#! /bin/sh" >conf$$.sh
32219 echo "exit 0" >>conf$$.sh
32221 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32229 # Support unset when possible.
32230 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32238 # We need space, tab and new line, in precisely that order. Quoting is
32239 # there to prevent editors from complaining about space-tab.
32240 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32241 # splitting by setting IFS to empty value.)
32246 # Find who we are. Look in the path if we contain no directory separator.
32248 *[\\/]* ) as_myself=$0 ;;
32249 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32250 for as_dir in $PATH
32253 test -z "$as_dir" && as_dir=.
32254 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32260 # We did not find ourselves, most probably we were run as `sh COMMAND'
32261 # in which case we are not to be found in the path.
32262 if test "x$as_myself" = x; then
32265 if test ! -f "$as_myself"; then
32266 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32267 { (exit 1); exit 1; }
32270 # Work around bugs in pre-3.0 UWIN ksh.
32271 for as_var in ENV MAIL MAILPATH
32272 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32280 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32281 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32282 LC_TELEPHONE LC_TIME
32284 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32285 eval $as_var=C; export $as_var
32287 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32291 # Required to use basename.
32292 if expr a : '\(a\)' >/dev/null 2>&1 &&
32293 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32299 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32300 as_basename=basename
32306 # Name of the executable.
32307 as_me=`$as_basename -- "$0" ||
32308 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32309 X"$0" : 'X\(//\)$' \| \
32310 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32312 sed '/^.*\/\([^/][^/]*\)\/*$/{
32331 as_lineno_1=$LINENO
32332 as_lineno_2=$LINENO
32333 test "x$as_lineno_1" != "x$as_lineno_2" &&
32334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32336 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32337 # uniformly replaced by the line number. The first 'sed' inserts a
32338 # line-number line after each line using $LINENO; the second 'sed'
32339 # does the real work. The second script uses 'N' to pair each
32340 # line-number line with the line containing $LINENO, and appends
32341 # trailing '-' during substitution so that $LINENO is not a special
32342 # case at line end.
32343 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32344 # scripts with optimization help from Paolo Bonzini. Blame Lee
32345 # E. McMahon (1931-1989) for sed's syntax. :-)
32357 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32360 ' >$as_me.lineno &&
32361 chmod +x "$as_me.lineno" ||
32362 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32363 { (exit 1); exit 1; }; }
32365 # Don't try to exec as it changes $[0], causing all sort of problems
32366 # (the dirname of $[0] is not the place where we might find the
32367 # original and so on. Autoconf is especially sensitive to this).
32368 . "./$as_me.lineno"
32369 # Exit status is that of the last command.
32374 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32380 ECHO_C= ECHO_N= ECHO_T=
32381 case `echo -n x` in
32383 case `echo 'x\c'` in
32384 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32391 if expr a : '\(a\)' >/dev/null 2>&1 &&
32392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32398 rm -f conf$$ conf$$.exe conf$$.file
32399 if test -d conf$$.dir; then
32400 rm -f conf$$.dir/conf$$.file
32406 if ln -s conf$$.file conf$$ 2>/dev/null; then
32408 # ... but there are two gotchas:
32409 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32410 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32411 # In both cases, we have to default to `cp -p'.
32412 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32414 elif ln conf$$.file conf$$ 2>/dev/null; then
32419 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32420 rmdir conf$$.dir 2>/dev/null
32422 if mkdir -p . 2>/dev/null; then
32425 test -d ./-p && rmdir ./-p
32429 if test -x / >/dev/null 2>&1; then
32430 as_test_x='test -x'
32432 if ls -dL / >/dev/null 2>&1; then
32439 if test -d "$1"; then
32445 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32446 ???[sx]*):;;*)false;;esac;fi
32450 as_executable_p=$as_test_x
32452 # Sed expression to map a string onto a valid CPP name.
32453 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32455 # Sed expression to map a string onto a valid variable name.
32456 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32461 # Save the log message, to keep $[0] and so on meaningful, and to
32462 # report actual input values of CONFIG_FILES etc. instead of their
32463 # values after options handling.
32465 This file was extended by llvm $as_me 2.2svn, which was
32466 generated by GNU Autoconf 2.61. Invocation command line was
32468 CONFIG_FILES = $CONFIG_FILES
32469 CONFIG_HEADERS = $CONFIG_HEADERS
32470 CONFIG_LINKS = $CONFIG_LINKS
32471 CONFIG_COMMANDS = $CONFIG_COMMANDS
32474 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32479 cat >>$CONFIG_STATUS <<_ACEOF
32480 # Files that config.status was made for.
32481 config_files="$ac_config_files"
32482 config_headers="$ac_config_headers"
32483 config_commands="$ac_config_commands"
32487 cat >>$CONFIG_STATUS <<\_ACEOF
32489 \`$as_me' instantiates files from templates according to the
32490 current configuration.
32492 Usage: $0 [OPTIONS] [FILE]...
32494 -h, --help print this help, then exit
32495 -V, --version print version number and configuration settings, then exit
32496 -q, --quiet do not print progress messages
32497 -d, --debug don't remove temporary files
32498 --recheck update $as_me by reconfiguring in the same conditions
32499 --file=FILE[:TEMPLATE]
32500 instantiate the configuration file FILE
32501 --header=FILE[:TEMPLATE]
32502 instantiate the configuration header FILE
32504 Configuration files:
32507 Configuration headers:
32510 Configuration commands:
32513 Report bugs to <bug-autoconf@gnu.org>."
32516 cat >>$CONFIG_STATUS <<_ACEOF
32518 llvm config.status 2.2svn
32519 configured by $0, generated by GNU Autoconf 2.61,
32520 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32522 Copyright (C) 2006 Free Software Foundation, Inc.
32523 This config.status script is free software; the Free Software Foundation
32524 gives unlimited permission to copy, distribute and modify it."
32531 cat >>$CONFIG_STATUS <<\_ACEOF
32532 # If no file are specified by the user, then we need to provide default
32533 # value. By we need to know if files were specified by the user.
32539 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32540 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32551 # Handling of the options.
32552 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32554 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32555 echo "$ac_cs_version"; exit ;;
32556 --debug | --debu | --deb | --de | --d | -d )
32558 --file | --fil | --fi | --f )
32560 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32561 ac_need_defaults=false;;
32562 --header | --heade | --head | --hea )
32564 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32565 ac_need_defaults=false;;
32567 # Conflict between --help and --header
32568 { echo "$as_me: error: ambiguous option: $1
32569 Try \`$0 --help' for more information." >&2
32570 { (exit 1); exit 1; }; };;
32571 --help | --hel | -h )
32572 echo "$ac_cs_usage"; exit ;;
32573 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32574 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32577 # This is an error.
32578 -*) { echo "$as_me: error: unrecognized option: $1
32579 Try \`$0 --help' for more information." >&2
32580 { (exit 1); exit 1; }; } ;;
32582 *) ac_config_targets="$ac_config_targets $1"
32583 ac_need_defaults=false ;;
32589 ac_configure_extra_args=
32591 if $ac_cs_silent; then
32593 ac_configure_extra_args="$ac_configure_extra_args --silent"
32597 cat >>$CONFIG_STATUS <<_ACEOF
32598 if \$ac_cs_recheck; then
32599 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32600 CONFIG_SHELL=$SHELL
32601 export CONFIG_SHELL
32602 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32606 cat >>$CONFIG_STATUS <<\_ACEOF
32610 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32611 ## Running $as_me. ##
32617 cat >>$CONFIG_STATUS <<_ACEOF
32621 llvm_src="${srcdir}"
32625 cat >>$CONFIG_STATUS <<\_ACEOF
32627 # Handling of arguments.
32628 for ac_config_target in $ac_config_targets
32630 case $ac_config_target in
32631 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
32632 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
32633 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
32634 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
32635 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
32636 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
32637 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
32638 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
32639 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
32640 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
32641 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
32642 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
32643 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
32644 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
32645 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
32646 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
32647 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
32648 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
32649 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
32650 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
32651 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
32652 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
32654 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32655 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32656 { (exit 1); exit 1; }; };;
32661 # If the user did not use the arguments to specify the items to instantiate,
32662 # then the envvar interface is used. Set only those that are not.
32663 # We use the long form for the default assignment because of an extremely
32664 # bizarre bug on SunOS 4.1.3.
32665 if $ac_need_defaults; then
32666 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32667 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32668 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32671 # Have a temporary directory for convenience. Make it in the build tree
32672 # simply because there is no reason against having it here, and in addition,
32673 # creating and moving files from /tmp can sometimes cause problems.
32674 # Hook for its removal unless debugging.
32675 # Note that there is a small window in which the directory will not be cleaned:
32676 # after its creation but before its name has been assigned to `$tmp'.
32680 trap 'exit_status=$?
32681 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32683 trap '{ (exit 1); exit 1; }' 1 2 13 15
32685 # Create a (secure) tmp directory for tmp files.
32688 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32689 test -n "$tmp" && test -d "$tmp"
32692 tmp=./conf$$-$RANDOM
32693 (umask 077 && mkdir "$tmp")
32696 echo "$me: cannot create a temporary directory in ." >&2
32697 { (exit 1); exit 1; }
32701 # Set up the sed scripts for CONFIG_FILES section.
32704 # No need to generate the scripts if there are no CONFIG_FILES.
32705 # This happens for instance when ./config.status config.h
32706 if test -n "$CONFIG_FILES"; then
32713 for ac_last_try in false false false false false :; do
32714 cat >conf$$subs.sed <<_ACEOF
32715 SHELL!$SHELL$ac_delim
32716 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32717 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32718 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32719 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32720 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32721 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32722 exec_prefix!$exec_prefix$ac_delim
32723 prefix!$prefix$ac_delim
32724 program_transform_name!$program_transform_name$ac_delim
32725 bindir!$bindir$ac_delim
32726 sbindir!$sbindir$ac_delim
32727 libexecdir!$libexecdir$ac_delim
32728 datarootdir!$datarootdir$ac_delim
32729 datadir!$datadir$ac_delim
32730 sysconfdir!$sysconfdir$ac_delim
32731 sharedstatedir!$sharedstatedir$ac_delim
32732 localstatedir!$localstatedir$ac_delim
32733 includedir!$includedir$ac_delim
32734 oldincludedir!$oldincludedir$ac_delim
32735 docdir!$docdir$ac_delim
32736 infodir!$infodir$ac_delim
32737 htmldir!$htmldir$ac_delim
32738 dvidir!$dvidir$ac_delim
32739 pdfdir!$pdfdir$ac_delim
32740 psdir!$psdir$ac_delim
32741 libdir!$libdir$ac_delim
32742 localedir!$localedir$ac_delim
32743 mandir!$mandir$ac_delim
32744 DEFS!$DEFS$ac_delim
32745 ECHO_C!$ECHO_C$ac_delim
32746 ECHO_N!$ECHO_N$ac_delim
32747 ECHO_T!$ECHO_T$ac_delim
32748 LIBS!$LIBS$ac_delim
32749 build_alias!$build_alias$ac_delim
32750 host_alias!$host_alias$ac_delim
32751 target_alias!$target_alias$ac_delim
32752 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
32753 subdirs!$subdirs$ac_delim
32754 build!$build$ac_delim
32755 build_cpu!$build_cpu$ac_delim
32756 build_vendor!$build_vendor$ac_delim
32757 build_os!$build_os$ac_delim
32758 host!$host$ac_delim
32759 host_cpu!$host_cpu$ac_delim
32760 host_vendor!$host_vendor$ac_delim
32761 host_os!$host_os$ac_delim
32762 target!$target$ac_delim
32763 target_cpu!$target_cpu$ac_delim
32764 target_vendor!$target_vendor$ac_delim
32765 target_os!$target_os$ac_delim
32767 LINKALL!$LINKALL$ac_delim
32768 NOLINKALL!$NOLINKALL$ac_delim
32769 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
32770 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
32771 ARCH!$ARCH$ac_delim
32773 CFLAGS!$CFLAGS$ac_delim
32774 LDFLAGS!$LDFLAGS$ac_delim
32775 CPPFLAGS!$CPPFLAGS$ac_delim
32776 ac_ct_CC!$ac_ct_CC$ac_delim
32777 EXEEXT!$EXEEXT$ac_delim
32778 OBJEXT!$OBJEXT$ac_delim
32780 GREP!$GREP$ac_delim
32781 EGREP!$EGREP$ac_delim
32782 ENDIAN!$ENDIAN$ac_delim
32783 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
32784 BUILD_CC!$BUILD_CC$ac_delim
32785 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
32786 CVSBUILD!$CVSBUILD$ac_delim
32787 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
32788 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
32789 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
32790 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
32791 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
32793 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
32794 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
32795 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
32796 ENABLE_PIC!$ENABLE_PIC$ac_delim
32797 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
32798 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
32799 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
32801 CXXFLAGS!$CXXFLAGS$ac_delim
32802 ac_ct_CXX!$ac_ct_CXX$ac_delim
32804 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
32805 LEXLIB!$LEXLIB$ac_delim
32806 FLEX!$FLEX$ac_delim
32807 YACC!$YACC$ac_delim
32808 YFLAGS!$YFLAGS$ac_delim
32809 BISON!$BISON$ac_delim
32811 ifGNUmake!$ifGNUmake$ac_delim
32814 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32816 elif $ac_last_try; then
32817 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32818 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32819 { (exit 1); exit 1; }; }
32821 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32825 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32826 if test -n "$ac_eof"; then
32827 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32828 ac_eof=`expr $ac_eof + 1`
32831 cat >>$CONFIG_STATUS <<_ACEOF
32832 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32833 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32836 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32837 s/^/s,@/; s/!/@,|#_!!_#|/
32840 s/'"$ac_delim"'$/,g/; t
32842 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32843 ' >>$CONFIG_STATUS <conf$$subs.sed
32844 rm -f conf$$subs.sed
32845 cat >>$CONFIG_STATUS <<_ACEOF
32851 for ac_last_try in false false false false false :; do
32852 cat >conf$$subs.sed <<_ACEOF
32853 LN_S!$LN_S$ac_delim
32856 DATE!$DATE$ac_delim
32857 FIND!$FIND$ac_delim
32858 MKDIR!$MKDIR$ac_delim
32860 RANLIB!$RANLIB$ac_delim
32864 BINPWD!$BINPWD$ac_delim
32865 GRAPHVIZ!$GRAPHVIZ$ac_delim
32868 DOTTY!$DOTTY$ac_delim
32869 PERL!$PERL$ac_delim
32870 HAVE_PERL!$HAVE_PERL$ac_delim
32871 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32872 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32873 INSTALL_DATA!$INSTALL_DATA$ac_delim
32874 BZIP2!$BZIP2$ac_delim
32875 DOXYGEN!$DOXYGEN$ac_delim
32876 GROFF!$GROFF$ac_delim
32877 GZIP!$GZIP$ac_delim
32878 POD2HTML!$POD2HTML$ac_delim
32879 POD2MAN!$POD2MAN$ac_delim
32880 RUNTEST!$RUNTEST$ac_delim
32881 TCLSH!$TCLSH$ac_delim
32883 OCAMLC!$OCAMLC$ac_delim
32884 OCAMLOPT!$OCAMLOPT$ac_delim
32885 OCAMLDEP!$OCAMLDEP$ac_delim
32886 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
32887 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
32888 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
32889 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
32890 LIBADD_DL!$LIBADD_DL$ac_delim
32891 ECHO!$ECHO$ac_delim
32893 STRIP!$STRIP$ac_delim
32894 CXXCPP!$CXXCPP$ac_delim
32896 FFLAGS!$FFLAGS$ac_delim
32897 ac_ct_F77!$ac_ct_F77$ac_delim
32898 LIBTOOL!$LIBTOOL$ac_delim
32899 LLVMGCC!$LLVMGCC$ac_delim
32900 LLVMGXX!$LLVMGXX$ac_delim
32901 USE_UDIS86!$USE_UDIS86$ac_delim
32902 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
32903 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
32904 ALLOCA!$ALLOCA$ac_delim
32905 MMAP_FILE!$MMAP_FILE$ac_delim
32906 LLVMCC1!$LLVMCC1$ac_delim
32907 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
32908 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
32909 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
32910 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
32911 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
32912 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
32913 SHLIBEXT!$SHLIBEXT$ac_delim
32914 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
32915 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
32916 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
32917 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
32918 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
32919 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
32920 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
32921 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
32922 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
32923 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
32924 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
32925 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
32926 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
32927 LIBOBJS!$LIBOBJS$ac_delim
32928 LTLIBOBJS!$LTLIBOBJS$ac_delim
32931 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
32933 elif $ac_last_try; then
32934 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32935 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32936 { (exit 1); exit 1; }; }
32938 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32942 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32943 if test -n "$ac_eof"; then
32944 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32945 ac_eof=`expr $ac_eof + 1`
32948 cat >>$CONFIG_STATUS <<_ACEOF
32949 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32950 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32953 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32954 s/^/s,@/; s/!/@,|#_!!_#|/
32957 s/'"$ac_delim"'$/,g/; t
32959 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32960 ' >>$CONFIG_STATUS <conf$$subs.sed
32961 rm -f conf$$subs.sed
32962 cat >>$CONFIG_STATUS <<_ACEOF
32969 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32970 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32971 # trailing colons and then remove the whole line if VPATH becomes empty
32972 # (actually we leave an empty line to preserve line numbers).
32973 if test "x$srcdir" = x.; then
32974 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32975 s/:*\$(srcdir):*/:/
32976 s/:*\${srcdir}:*/:/
32978 s/^\([^=]*=[ ]*\):*/\1/
32984 cat >>$CONFIG_STATUS <<\_ACEOF
32985 fi # test -n "$CONFIG_FILES"
32988 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
32991 :[FHLC]) ac_mode=$ac_tag; continue;;
32993 case $ac_mode$ac_tag in
32995 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
32996 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
32997 { (exit 1); exit 1; }; };;
32998 :[FH]-) ac_tag=-:-;;
32999 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33016 -) ac_f="$tmp/stdin";;
33017 *) # Look for the file first in the build tree, then in the source tree
33018 # (if the path is not absolute). The absolute path cannot be DOS-style,
33019 # because $ac_f cannot contain `:'.
33023 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33025 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33026 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33027 { (exit 1); exit 1; }; };;
33029 ac_file_inputs="$ac_file_inputs $ac_f"
33032 # Let's still pretend it is `configure' which instantiates (i.e., don't
33033 # use $as_me), people would be surprised to read:
33034 # /* config.h. Generated by config.status. */
33035 configure_input="Generated from "`IFS=:
33036 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33037 if test x"$ac_file" != x-; then
33038 configure_input="$ac_file. $configure_input"
33039 { echo "$as_me:$LINENO: creating $ac_file" >&5
33040 echo "$as_me: creating $ac_file" >&6;}
33044 *:-:* | *:-) cat >"$tmp/stdin";;
33049 ac_dir=`$as_dirname -- "$ac_file" ||
33050 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33051 X"$ac_file" : 'X\(//\)[^/]' \| \
33052 X"$ac_file" : 'X\(//\)$' \| \
33053 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33059 /^X\(\/\/\)[^/].*/{
33074 -*) as_dir=./$as_dir;;
33076 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33080 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33081 *) as_qdir=$as_dir;;
33083 as_dirs="'$as_qdir' $as_dirs"
33084 as_dir=`$as_dirname -- "$as_dir" ||
33085 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33086 X"$as_dir" : 'X\(//\)[^/]' \| \
33087 X"$as_dir" : 'X\(//\)$' \| \
33088 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33094 /^X\(\/\/\)[^/].*/{
33107 test -d "$as_dir" && break
33109 test -z "$as_dirs" || eval "mkdir $as_dirs"
33110 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33111 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33112 { (exit 1); exit 1; }; }; }
33116 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33118 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33119 # A ".." for each directory in $ac_dir_suffix.
33120 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33121 case $ac_top_builddir_sub in
33122 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33123 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33126 ac_abs_top_builddir=$ac_pwd
33127 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33128 # for backward compatibility:
33129 ac_top_builddir=$ac_top_build_prefix
33132 .) # We are building in place.
33134 ac_top_srcdir=$ac_top_builddir_sub
33135 ac_abs_top_srcdir=$ac_pwd ;;
33136 [\\/]* | ?:[\\/]* ) # Absolute name.
33137 ac_srcdir=$srcdir$ac_dir_suffix;
33138 ac_top_srcdir=$srcdir
33139 ac_abs_top_srcdir=$srcdir ;;
33140 *) # Relative name.
33141 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33142 ac_top_srcdir=$ac_top_build_prefix$srcdir
33143 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33145 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33155 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33156 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33160 cat >>$CONFIG_STATUS <<\_ACEOF
33161 # If the template does not know about datarootdir, expand it.
33162 # FIXME: This hack should be removed a few years after 2.60.
33163 ac_datarootdir_hack=; ac_datarootdir_seen=
33165 case `sed -n '/datarootdir/ {
33174 ' $ac_file_inputs` in
33175 *datarootdir*) ac_datarootdir_seen=yes;;
33176 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33177 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33178 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33180 cat >>$CONFIG_STATUS <<_ACEOF
33181 ac_datarootdir_hack='
33182 s&@datadir@&$datadir&g
33183 s&@docdir@&$docdir&g
33184 s&@infodir@&$infodir&g
33185 s&@localedir@&$localedir&g
33186 s&@mandir@&$mandir&g
33187 s&\\\${datarootdir}&$datarootdir&g' ;;
33191 # Neutralize VPATH when `$srcdir' = `.'.
33192 # Shell code in configure.ac might set extrasub.
33193 # FIXME: do we really want to maintain this feature?
33194 cat >>$CONFIG_STATUS <<_ACEOF
33198 cat >>$CONFIG_STATUS <<\_ACEOF
33200 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33201 s&@configure_input@&$configure_input&;t t
33202 s&@top_builddir@&$ac_top_builddir_sub&;t t
33203 s&@srcdir@&$ac_srcdir&;t t
33204 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33205 s&@top_srcdir@&$ac_top_srcdir&;t t
33206 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33207 s&@builddir@&$ac_builddir&;t t
33208 s&@abs_builddir@&$ac_abs_builddir&;t t
33209 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33210 s&@INSTALL@&$ac_INSTALL&;t t
33211 $ac_datarootdir_hack
33212 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
33214 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33215 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33216 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33217 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33218 which seems to be undefined. Please make sure it is defined." >&5
33219 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33220 which seems to be undefined. Please make sure it is defined." >&2;}
33224 -) cat "$tmp/out"; rm -f "$tmp/out";;
33225 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33234 # Transform confdefs.h into a sed script `conftest.defines', that
33235 # substitutes the proper values into config.h.in to produce config.h.
33236 rm -f conftest.defines conftest.tail
33237 # First, append a space to every undef/define line, to ease matching.
33238 echo 's/$/ /' >conftest.defines
33239 # Then, protect against being on the right side of a sed subst, or in
33240 # an unquoted here document, in config.status. If some macros were
33241 # called several times there might be several #defines for the same
33242 # symbol, which is useless. But do not sort them, since the last
33243 # AC_DEFINE must be honored.
33244 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33245 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33246 # NAME is the cpp macro being defined, VALUE is the value it is being given.
33247 # PARAMS is the parameter list in the macro definition--in most cases, it's
33248 # just an empty string.
33249 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
33250 ac_dB='\\)[ (].*,\\1define\\2'
33258 s/^[ ]*#[ ]*define[ ][ ]*//
33263 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33264 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33265 ' >>conftest.defines
33267 # Remove the space that was appended to ease matching.
33268 # Then replace #undef with comments. This is necessary, for
33269 # example, in the case of _POSIX_SOURCE, which is predefined and required
33270 # on some systems where configure will not decide to define it.
33271 # (The regexp can be short, since the line contains either #define or #undef.)
33273 s,^[ #]*u.*,/* & */,' >>conftest.defines
33275 # Break up conftest.defines:
33276 ac_max_sed_lines=50
33278 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33279 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33280 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33282 ac_in='$ac_file_inputs'
33283 ac_out='"$tmp/out1"'
33284 ac_nxt='"$tmp/out2"'
33288 # Write a here document:
33289 cat >>$CONFIG_STATUS <<_ACEOF
33290 # First, check the format of the line:
33291 cat >"\$tmp/defines.sed" <<\\CEOF
33292 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
33293 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
33297 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33299 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33300 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33301 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33302 grep . conftest.tail >/dev/null || break
33303 rm -f conftest.defines
33304 mv conftest.tail conftest.defines
33306 rm -f conftest.defines conftest.tail
33308 echo "ac_result=$ac_in" >>$CONFIG_STATUS
33309 cat >>$CONFIG_STATUS <<\_ACEOF
33310 if test x"$ac_file" != x-; then
33311 echo "/* $configure_input */" >"$tmp/config.h"
33312 cat "$ac_result" >>"$tmp/config.h"
33313 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33314 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33315 echo "$as_me: $ac_file is unchanged" >&6;}
33318 mv "$tmp/config.h" $ac_file
33321 echo "/* $configure_input */"
33327 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33328 echo "$as_me: executing $ac_file commands" >&6;}
33333 case $ac_file$ac_mode in
33334 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
33335 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
33336 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
33337 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
33338 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
33339 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
33340 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
33341 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
33342 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
33343 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
33344 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
33345 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
33346 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
33347 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
33348 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
33349 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
33350 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
33351 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
33352 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
33353 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
33354 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
33355 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
33356 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
33357 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
33363 { (exit 0); exit 0; }
33365 chmod +x $CONFIG_STATUS
33366 ac_clean_files=$ac_clean_files_save
33369 # configure is writing to config.log, and then calls config.status.
33370 # config.status does its own redirection, appending to config.log.
33371 # Unfortunately, on DOS this fails, as config.log is still kept open
33372 # by configure, so config.status won't be able to write to it; its
33373 # output is simply discarded. So we exec the FD to /dev/null,
33374 # effectively closing config.log, so it can be properly (re)opened and
33375 # appended to by config.status. When coming back to configure, we
33376 # need to make the FD available again.
33377 if test "$no_create" != yes; then
33379 ac_config_status_args=
33380 test "$silent" = yes &&
33381 ac_config_status_args="$ac_config_status_args --quiet"
33383 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33385 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33386 # would make configure fail if this is the last instruction.
33387 $ac_cs_success || { (exit 1); exit 1; }
33391 # CONFIG_SUBDIRS section.
33393 if test "$no_recursion" != yes; then
33395 # Remove --cache-file and --srcdir arguments so they do not pile up.
33396 ac_sub_configure_args=
33398 eval "set x $ac_configure_args"
33402 if test -n "$ac_prev"; then
33407 -cache-file | --cache-file | --cache-fil | --cache-fi \
33408 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33409 ac_prev=cache_file ;;
33410 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33411 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33414 --config-cache | -C)
33416 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33418 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33420 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33422 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33426 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33428 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
33432 # Always prepend --prefix to ensure using the same prefix
33433 # in subdir configurations.
33434 ac_arg="--prefix=$prefix"
33436 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33438 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33441 if test "$silent" = yes; then
33442 ac_sub_configure_args="--silent $ac_sub_configure_args"
33446 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33448 # Do not complain, so a configure script can configure whichever
33449 # parts of a large source tree are present.
33450 test -d "$srcdir/$ac_dir" || continue
33452 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33453 echo "$as_me:$LINENO: $ac_msg" >&5
33457 -*) as_dir=./$as_dir;;
33459 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33463 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33464 *) as_qdir=$as_dir;;
33466 as_dirs="'$as_qdir' $as_dirs"
33467 as_dir=`$as_dirname -- "$as_dir" ||
33468 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33469 X"$as_dir" : 'X\(//\)[^/]' \| \
33470 X"$as_dir" : 'X\(//\)$' \| \
33471 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33477 /^X\(\/\/\)[^/].*/{
33490 test -d "$as_dir" && break
33492 test -z "$as_dirs" || eval "mkdir $as_dirs"
33493 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33494 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33495 { (exit 1); exit 1; }; }; }
33499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33501 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33502 # A ".." for each directory in $ac_dir_suffix.
33503 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33504 case $ac_top_builddir_sub in
33505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33509 ac_abs_top_builddir=$ac_pwd
33510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33511 # for backward compatibility:
33512 ac_top_builddir=$ac_top_build_prefix
33515 .) # We are building in place.
33517 ac_top_srcdir=$ac_top_builddir_sub
33518 ac_abs_top_srcdir=$ac_pwd ;;
33519 [\\/]* | ?:[\\/]* ) # Absolute name.
33520 ac_srcdir=$srcdir$ac_dir_suffix;
33521 ac_top_srcdir=$srcdir
33522 ac_abs_top_srcdir=$srcdir ;;
33523 *) # Relative name.
33524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33525 ac_top_srcdir=$ac_top_build_prefix$srcdir
33526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33533 # Check for guested configure; otherwise get Cygnus style configure.
33534 if test -f "$ac_srcdir/configure.gnu"; then
33535 ac_sub_configure=$ac_srcdir/configure.gnu
33536 elif test -f "$ac_srcdir/configure"; then
33537 ac_sub_configure=$ac_srcdir/configure
33538 elif test -f "$ac_srcdir/configure.in"; then
33539 # This should be Cygnus configure.
33540 ac_sub_configure=$ac_aux_dir/configure
33542 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
33543 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33547 # The recursion is here.
33548 if test -n "$ac_sub_configure"; then
33549 # Make the cache file name correct relative to the subdirectory.
33550 case $cache_file in
33551 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
33552 *) # Relative name.
33553 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
33556 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
33557 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33558 # The eval makes quoting arguments work.
33559 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33560 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
33561 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
33562 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
33563 { (exit 1); exit 1; }; }