2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.4svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
553 if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
556 elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
603 # So, first we look for a working echo in the user's PATH.
605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606 for dir in $PATH /usr/ucb; do
608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
656 # maybe with a smaller string...
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
672 # Oops. We lost completely, so just stick with echo.
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 tagnames=${tagnames+${tagnames},}CXX
693 tagnames=${tagnames+${tagnames},}F77
695 exec 7<&0 </dev/null 6>&1
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
705 ac_default_prefix=/usr/local
707 ac_config_libobj_dir=.
713 SHELL=${CONFIG_SHELL-/bin/sh}
715 # Identity of this package.
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.4svn'
719 PACKAGE_STRING='llvm 2.4svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
727 # include <sys/types.h>
730 # include <sys/stat.h>
741 # if !STDC_HEADERS && HAVE_MEMORY_H
747 # include <strings.h>
750 # include <inttypes.h>
768 program_transform_name
833 ENABLE_EXPENSIVE_CHECKS
892 CONVENIENCE_LTDL_TRUE
893 CONVENIENCE_LTDL_FALSE
934 ac_precious_vars='build_alias
950 ac_subdirs_all='projects/sample
952 projects/llvm-stacker
959 projects/llvm-poolalloc
961 projects/llvm-kernel'
963 # Initialize some variables set by options.
965 ac_init_version=false
966 # The variables have the same names as the options, with
967 # dashes changed to underlines.
975 program_transform_name=s,x,x,
983 # Installation directory options.
984 # These are left unexpanded so users can "make install exec_prefix=/foo"
985 # and all the variables that are supposed to be based on exec_prefix
986 # by default will actually change.
987 # Use braces instead of parens because sh, perl, etc. also accept them.
988 # (The list follows the same order as the GNU Coding Standards.)
989 bindir='${exec_prefix}/bin'
990 sbindir='${exec_prefix}/sbin'
991 libexecdir='${exec_prefix}/libexec'
992 datarootdir='${prefix}/share'
993 datadir='${datarootdir}'
994 sysconfdir='${prefix}/etc'
995 sharedstatedir='${prefix}/com'
996 localstatedir='${prefix}/var'
997 includedir='${prefix}/include'
998 oldincludedir='/usr/include'
999 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1000 infodir='${datarootdir}/info'
1005 libdir='${exec_prefix}/lib'
1006 localedir='${datarootdir}/locale'
1007 mandir='${datarootdir}/man'
1013 # If the previous option needs an argument, assign it.
1014 if test -n "$ac_prev"; then
1015 eval $ac_prev=\$ac_option
1021 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1025 # Accept the important Cygnus configure options, so we can diagnose typos.
1027 case $ac_dashdash$ac_option in
1031 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1033 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034 bindir=$ac_optarg ;;
1036 -build | --build | --buil | --bui | --bu)
1037 ac_prev=build_alias ;;
1038 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039 build_alias=$ac_optarg ;;
1041 -cache-file | --cache-file | --cache-fil | --cache-fi \
1042 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043 ac_prev=cache_file ;;
1044 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046 cache_file=$ac_optarg ;;
1048 --config-cache | -C)
1049 cache_file=config.cache ;;
1051 -datadir | --datadir | --datadi | --datad)
1053 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1054 datadir=$ac_optarg ;;
1056 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057 | --dataroo | --dataro | --datar)
1058 ac_prev=datarootdir ;;
1059 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061 datarootdir=$ac_optarg ;;
1063 -disable-* | --disable-*)
1064 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1067 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1070 eval enable_$ac_feature=no ;;
1072 -docdir | --docdir | --docdi | --doc | --do)
1074 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075 docdir=$ac_optarg ;;
1077 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1079 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080 dvidir=$ac_optarg ;;
1082 -enable-* | --enable-*)
1083 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1086 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1087 { (exit 1); exit 1; }; }
1088 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1089 eval enable_$ac_feature=\$ac_optarg ;;
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120 htmldir=$ac_optarg ;;
1122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1134 -libdir | --libdir | --libdi | --libd)
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1151 -localstatedir | --localstatedir | --localstatedi | --localstated \
1152 | --localstate | --localstat | --localsta | --localst | --locals)
1153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156 localstatedir=$ac_optarg ;;
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1225 -psdir | --psdir | --psdi | --psd | --ps)
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238 sbindir=$ac_optarg ;;
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249 sharedstatedir=$ac_optarg ;;
1251 -site | --site | --sit)
1253 -site=* | --site=* | --sit=*)
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1280 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1283 { echo "$as_me: error: invalid package name: $ac_package" >&2
1284 { (exit 1); exit 1; }; }
1285 ac_package=`echo $ac_package| sed 's/-/_/g'`
1286 eval with_$ac_package=\$ac_optarg ;;
1288 -without-* | --without-*)
1289 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1292 { echo "$as_me: error: invalid package name: $ac_package" >&2
1293 { (exit 1); exit 1; }; }
1294 ac_package=`echo $ac_package | sed 's/-/_/g'`
1295 eval with_$ac_package=no ;;
1298 # Obsolete; use --with-x.
1301 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1302 | --x-incl | --x-inc | --x-in | --x-i)
1303 ac_prev=x_includes ;;
1304 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1305 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1306 x_includes=$ac_optarg ;;
1308 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1309 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1310 ac_prev=x_libraries ;;
1311 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1312 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1313 x_libraries=$ac_optarg ;;
1315 -*) { echo "$as_me: error: unrecognized option: $ac_option
1316 Try \`$0 --help' for more information." >&2
1317 { (exit 1); exit 1; }; }
1321 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322 # Reject names that are not valid shell variable names.
1323 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1324 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1325 { (exit 1); exit 1; }; }
1326 eval $ac_envvar=\$ac_optarg
1327 export $ac_envvar ;;
1330 # FIXME: should be removed in autoconf 3.0.
1331 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1333 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1334 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1340 if test -n "$ac_prev"; then
1341 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1342 { echo "$as_me: error: missing argument to $ac_option" >&2
1343 { (exit 1); exit 1; }; }
1346 # Be sure to have absolute directory names.
1347 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348 datadir sysconfdir sharedstatedir localstatedir includedir \
1349 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350 libdir localedir mandir
1352 eval ac_val=\$$ac_var
1354 [\\/$]* | ?:[\\/]* ) continue;;
1355 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1357 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1358 { (exit 1); exit 1; }; }
1361 # There might be people who depend on the old broken behavior: `$host'
1362 # used to hold the argument of --host etc.
1363 # FIXME: To remove some day.
1366 target=$target_alias
1368 # FIXME: To remove some day.
1369 if test "x$host_alias" != x; then
1370 if test "x$build_alias" = x; then
1371 cross_compiling=maybe
1372 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1373 If a cross compiler is detected then cross compile mode will be used." >&2
1374 elif test "x$build_alias" != "x$host_alias"; then
1380 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1382 test "$silent" = yes && exec 6>/dev/null
1385 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386 ac_ls_di=`ls -di .` &&
1387 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388 { echo "$as_me: error: Working directory cannot be determined" >&2
1389 { (exit 1); exit 1; }; }
1390 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391 { echo "$as_me: error: pwd does not report name of working directory" >&2
1392 { (exit 1); exit 1; }; }
1395 # Find the source files, if location was not specified.
1396 if test -z "$srcdir"; then
1397 ac_srcdir_defaulted=yes
1398 # Try the directory containing this script, then the parent directory.
1399 ac_confdir=`$as_dirname -- "$0" ||
1400 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401 X"$0" : 'X\(//\)[^/]' \| \
1402 X"$0" : 'X\(//\)$' \| \
1403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1427 ac_srcdir_defaulted=no
1429 if test ! -r "$srcdir/$ac_unique_file"; then
1430 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1432 { (exit 1); exit 1; }; }
1434 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1437 { (exit 1); exit 1; }; }
1439 # When building in place, set srcdir=.
1440 if test "$ac_abs_confdir" = "$ac_pwd"; then
1443 # Remove unnecessary trailing slashes from srcdir.
1444 # Double slashes in file names in object file debugging info
1445 # mess up M-x gdb in Emacs.
1447 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1449 for ac_var in $ac_precious_vars; do
1450 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_env_${ac_var}_value=\$${ac_var}
1452 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1457 # Report the --help message.
1459 if test "$ac_init_help" = "long"; then
1460 # Omit some internal or obsolete options to make the list less imposing.
1461 # This message is too long to be a string in the A/UX 3.1 sh.
1463 \`configure' configures llvm 2.4svn to adapt to many kinds of systems.
1465 Usage: $0 [OPTION]... [VAR=VALUE]...
1467 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468 VAR=VALUE. See below for descriptions of some of the useful variables.
1470 Defaults for the options are specified in brackets.
1473 -h, --help display this help and exit
1474 --help=short display options specific to this package
1475 --help=recursive display the short help of all the included packages
1476 -V, --version display version information and exit
1477 -q, --quiet, --silent do not print \`checking...' messages
1478 --cache-file=FILE cache test results in FILE [disabled]
1479 -C, --config-cache alias for \`--cache-file=config.cache'
1480 -n, --no-create do not create output files
1481 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1483 Installation directories:
1484 --prefix=PREFIX install architecture-independent files in PREFIX
1485 [$ac_default_prefix]
1486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1489 By default, \`make install' will install all the files in
1490 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1491 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492 for instance \`--prefix=\$HOME'.
1494 For better control, use the options below.
1496 Fine tuning of the installation directories:
1497 --bindir=DIR user executables [EPREFIX/bin]
1498 --sbindir=DIR system admin executables [EPREFIX/sbin]
1499 --libexecdir=DIR program executables [EPREFIX/libexec]
1500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1503 --libdir=DIR object code libraries [EPREFIX/lib]
1504 --includedir=DIR C header files [PREFIX/include]
1505 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1508 --infodir=DIR info documentation [DATAROOTDIR/info]
1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1510 --mandir=DIR man documentation [DATAROOTDIR/man]
1511 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1512 --htmldir=DIR html documentation [DOCDIR]
1513 --dvidir=DIR dvi documentation [DOCDIR]
1514 --pdfdir=DIR pdf documentation [DOCDIR]
1515 --psdir=DIR ps documentation [DOCDIR]
1521 --build=BUILD configure for building on BUILD [guessed]
1522 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1523 --target=TARGET configure for building compilers for TARGET [HOST]
1527 if test -n "$ac_init_help"; then
1528 case $ac_init_help in
1529 short | recursive ) echo "Configuration of llvm 2.4svn:";;
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1538 --enable-expensive-checks
1540 --enable-debug-runtime
1541 --enable-jit Enable Just In Time Compiling (default is YES)
1542 --enable-doxygen Build doxygen documentation (default is NO)
1543 --enable-threads Use threads if available (default is YES)
1544 --enable-pic Build LLVM with Position Independent Code (default
1546 --enable-targets Build specific host targets:
1547 all,host-only,{target-name} (default=all)
1548 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1550 --enable-bindings Build specific language bindings:
1551 all,auto,none,{binding-name} (default=auto)
1552 --enable-ltdl-install install libltdl
1553 --enable-shared[=PKGS] build shared libraries
1555 --enable-static[=PKGS] build static libraries
1557 --enable-fast-install[=PKGS]
1558 optimize for fast installation
1560 --disable-libtool-lock avoid locking (might break parallel builds)
1563 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1564 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1565 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1567 --with-llvmgcc Specify location of llvm-gcc driver (default
1569 --with-llvmgxx Specify location of llvm-g++ driver (default
1571 --with-extra-options Specify addtional options to compile LLVM with
1572 --with-ocaml-libdir Specify install location for ocaml bindings (default
1574 --with-tclinclude directory where tcl headers are
1575 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1576 --with-pic try to use only PIC/non-PIC objects [default=use
1578 --with-tags[=TAGS] include additional configurations [automatic]
1579 --with-udis86=<path> Use udis86 external x86 disassembler library
1581 Some influential environment variables:
1582 CC C compiler command
1583 CFLAGS C compiler flags
1584 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1585 nonstandard directory <lib dir>
1586 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1587 you have headers in a nonstandard directory <include dir>
1589 CXX C++ compiler command
1590 CXXFLAGS C++ compiler flags
1591 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1592 the first program found out of: `bison -y', `byacc', `yacc'.
1593 YFLAGS The list of arguments that will be passed by default to $YACC.
1594 This script will default YFLAGS to the empty string to avoid a
1595 default value of `-d' given by some make applications.
1596 CXXCPP C++ preprocessor
1597 F77 Fortran 77 compiler command
1598 FFLAGS Fortran 77 compiler flags
1600 Use these variables to override the choices made by `configure' or to help
1601 it to find libraries and programs with nonstandard names/locations.
1603 Report bugs to <llvmbugs@cs.uiuc.edu>.
1608 if test "$ac_init_help" = "recursive"; then
1609 # If there are subdirs, report their specific --help.
1610 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1611 test -d "$ac_dir" || continue
1615 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1618 # A ".." for each directory in $ac_dir_suffix.
1619 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1620 case $ac_top_builddir_sub in
1621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1625 ac_abs_top_builddir=$ac_pwd
1626 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627 # for backward compatibility:
1628 ac_top_builddir=$ac_top_build_prefix
1631 .) # We are building in place.
1633 ac_top_srcdir=$ac_top_builddir_sub
1634 ac_abs_top_srcdir=$ac_pwd ;;
1635 [\\/]* | ?:[\\/]* ) # Absolute name.
1636 ac_srcdir=$srcdir$ac_dir_suffix;
1637 ac_top_srcdir=$srcdir
1638 ac_abs_top_srcdir=$srcdir ;;
1640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641 ac_top_srcdir=$ac_top_build_prefix$srcdir
1642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1644 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1646 cd "$ac_dir" || { ac_status=$?; continue; }
1647 # Check for guested configure.
1648 if test -f "$ac_srcdir/configure.gnu"; then
1650 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651 elif test -f "$ac_srcdir/configure"; then
1653 $SHELL "$ac_srcdir/configure" --help=recursive
1655 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1657 cd "$ac_pwd" || { ac_status=$?; break; }
1661 test -n "$ac_init_help" && exit $ac_status
1662 if $ac_init_version; then
1664 llvm configure 2.4svn
1665 generated by GNU Autoconf 2.60
1667 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1668 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1669 This configure script is free software; the Free Software Foundation
1670 gives unlimited permission to copy, distribute and modify it.
1672 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1676 cat >config.log <<_ACEOF
1677 This file contains any messages produced by compilers while
1678 running configure, to aid debugging if configure makes a mistake.
1680 It was created by llvm $as_me 2.4svn, which was
1681 generated by GNU Autoconf 2.60. Invocation command line was
1693 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1694 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1695 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1696 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1697 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1699 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1700 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1702 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1703 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1704 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1705 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1706 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1707 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1708 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 test -z "$as_dir" && as_dir=.
1717 echo "PATH: $as_dir"
1733 # Keep a trace of the command line.
1734 # Strip out --no-create and --no-recursion so they do not pile up.
1735 # Strip out --silent because we don't want to record it for future runs.
1736 # Also quote any args containing shell meta-characters.
1737 # Make two passes to allow for proper duplicate-argument suppression.
1741 ac_must_keep_next=false
1747 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1748 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1749 | -silent | --silent | --silen | --sile | --sil)
1752 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1755 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1757 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1758 if test $ac_must_keep_next = true; then
1759 ac_must_keep_next=false # Got value, back to normal.
1762 *=* | --config-cache | -C | -disable-* | --disable-* \
1763 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1764 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1765 | -with-* | --with-* | -without-* | --without-* | --x)
1766 case "$ac_configure_args0 " in
1767 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1770 -* ) ac_must_keep_next=true ;;
1773 ac_configure_args="$ac_configure_args '$ac_arg'"
1778 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1779 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1781 # When interrupted or exit'd, cleanup temporary files, and complete
1782 # config.log. We remove comments because anyway the quotes in there
1783 # would cause problems or look ugly.
1784 # WARNING: Use '\'' to represent an apostrophe within the trap.
1785 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1786 trap 'exit_status=$?
1787 # Save into config.log some information that might help in debugging.
1792 ## ---------------- ##
1793 ## Cache variables. ##
1794 ## ---------------- ##
1797 # The following way of writing the cache mishandles newlines in values,
1799 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1800 eval ac_val=\$$ac_var
1804 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1805 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1808 _ | IFS | as_nl) ;; #(
1809 *) $as_unset $ac_var ;;
1814 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1815 *${as_nl}ac_space=\ *)
1817 "s/'\''/'\''\\\\'\'''\''/g;
1818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1821 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1829 ## ----------------- ##
1830 ## Output variables. ##
1831 ## ----------------- ##
1834 for ac_var in $ac_subst_vars
1836 eval ac_val=\$$ac_var
1838 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1840 echo "$ac_var='\''$ac_val'\''"
1844 if test -n "$ac_subst_files"; then
1846 ## ------------------- ##
1847 ## File substitutions. ##
1848 ## ------------------- ##
1851 for ac_var in $ac_subst_files
1853 eval ac_val=\$$ac_var
1855 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1857 echo "$ac_var='\''$ac_val'\''"
1862 if test -s confdefs.h; then
1872 test "$ac_signal" != 0 &&
1873 echo "$as_me: caught signal $ac_signal"
1874 echo "$as_me: exit $exit_status"
1876 rm -f core *.core core.conftest.* &&
1877 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1880 for ac_signal in 1 2 13 15; do
1881 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1885 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1886 rm -f -r conftest* confdefs.h
1888 # Predefined preprocessor variables.
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_NAME "$PACKAGE_NAME"
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_STRING "$PACKAGE_STRING"
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1915 # Let the site file select an alternate cache file if it wants to.
1916 # Prefer explicitly selected file to automatically selected ones.
1917 if test -n "$CONFIG_SITE"; then
1918 set x "$CONFIG_SITE"
1919 elif test "x$prefix" != xNONE; then
1920 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1922 set x "$ac_default_prefix/share/config.site" \
1923 "$ac_default_prefix/etc/config.site"
1928 if test -r "$ac_site_file"; then
1929 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1930 echo "$as_me: loading site script $ac_site_file" >&6;}
1931 sed 's/^/| /' "$ac_site_file" >&5
1936 if test -r "$cache_file"; then
1937 # Some versions of bash will fail to source /dev/null (special
1938 # files actually), so we avoid doing that.
1939 if test -f "$cache_file"; then
1940 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1941 echo "$as_me: loading cache $cache_file" >&6;}
1943 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1944 *) . "./$cache_file";;
1948 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1949 echo "$as_me: creating cache $cache_file" >&6;}
1953 # Check that the precious variables saved in the cache have kept the same
1955 ac_cache_corrupted=false
1956 for ac_var in $ac_precious_vars; do
1957 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1958 eval ac_new_set=\$ac_env_${ac_var}_set
1959 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1960 eval ac_new_val=\$ac_env_${ac_var}_value
1961 case $ac_old_set,$ac_new_set in
1963 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1964 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1965 ac_cache_corrupted=: ;;
1967 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1968 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1969 ac_cache_corrupted=: ;;
1972 if test "x$ac_old_val" != "x$ac_new_val"; then
1973 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1974 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1975 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1976 echo "$as_me: former value: $ac_old_val" >&2;}
1977 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1978 echo "$as_me: current value: $ac_new_val" >&2;}
1979 ac_cache_corrupted=:
1982 # Pass precious variables to config.status.
1983 if test "$ac_new_set" = set; then
1985 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1986 *) ac_arg=$ac_var=$ac_new_val ;;
1988 case " $ac_configure_args " in
1989 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1990 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1994 if $ac_cache_corrupted; then
1995 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1996 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1997 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1998 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1999 { (exit 1); exit 1; }; }
2027 ac_cpp='$CPP $CPPFLAGS'
2028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2034 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2043 for ac_dir in autoconf "$srcdir"/autoconf; do
2044 if test -f "$ac_dir/install-sh"; then
2046 ac_install_sh="$ac_aux_dir/install-sh -c"
2048 elif test -f "$ac_dir/install.sh"; then
2050 ac_install_sh="$ac_aux_dir/install.sh -c"
2052 elif test -f "$ac_dir/shtool"; then
2054 ac_install_sh="$ac_aux_dir/shtool install -c"
2058 if test -z "$ac_aux_dir"; then
2059 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2060 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2061 { (exit 1); exit 1; }; }
2064 # These three variables are undocumented and unsupported,
2065 # and are intended to be withdrawn in a future Autoconf release.
2066 # They can cause serious problems if a builder's source tree is in a directory
2067 # whose full name contains unusual characters.
2068 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2069 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2070 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2074 if test ${srcdir} != "." ; then
2075 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2076 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2077 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2078 { (exit 1); exit 1; }; }
2082 for i in `ls ${srcdir}/projects`
2084 if test -d ${srcdir}/projects/${i} ; then
2087 sample) subdirs="$subdirs projects/sample"
2089 privbracket) subdirs="$subdirs projects/privbracket"
2091 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2093 # llvm-test is the old name of the test-suite, kept here for backwards
2095 llvm-test) subdirs="$subdirs projects/llvm-test"
2097 test-suite) subdirs="$subdirs projects/test-suite"
2099 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2101 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2103 llvm-java) subdirs="$subdirs projects/llvm-java"
2105 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2107 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2109 poolalloc) subdirs="$subdirs projects/poolalloc"
2111 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2114 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2115 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2122 # Make sure we can run config.sub.
2123 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2124 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2125 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2126 { (exit 1); exit 1; }; }
2128 { echo "$as_me:$LINENO: checking build system type" >&5
2129 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2130 if test "${ac_cv_build+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 ac_build_alias=$build_alias
2134 test "x$ac_build_alias" = x &&
2135 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2136 test "x$ac_build_alias" = x &&
2137 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2138 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2139 { (exit 1); exit 1; }; }
2140 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2141 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2142 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2143 { (exit 1); exit 1; }; }
2146 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2147 echo "${ECHO_T}$ac_cv_build" >&6; }
2148 case $ac_cv_build in
2150 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2151 echo "$as_me: error: invalid value of canonical build" >&2;}
2152 { (exit 1); exit 1; }; };;
2155 ac_save_IFS=$IFS; IFS='-'
2161 # Remember, the first character of IFS is used to create $*,
2162 # except with old shells:
2165 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2168 { echo "$as_me:$LINENO: checking host system type" >&5
2169 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2170 if test "${ac_cv_host+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 if test "x$host_alias" = x; then
2174 ac_cv_host=$ac_cv_build
2176 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2177 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2178 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2179 { (exit 1); exit 1; }; }
2183 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2184 echo "${ECHO_T}$ac_cv_host" >&6; }
2187 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2188 echo "$as_me: error: invalid value of canonical host" >&2;}
2189 { (exit 1); exit 1; }; };;
2192 ac_save_IFS=$IFS; IFS='-'
2198 # Remember, the first character of IFS is used to create $*,
2199 # except with old shells:
2202 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2205 { echo "$as_me:$LINENO: checking target system type" >&5
2206 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2207 if test "${ac_cv_target+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 if test "x$target_alias" = x; then
2211 ac_cv_target=$ac_cv_host
2213 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2214 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2215 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2216 { (exit 1); exit 1; }; }
2220 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2221 echo "${ECHO_T}$ac_cv_target" >&6; }
2222 case $ac_cv_target in
2224 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2225 echo "$as_me: error: invalid value of canonical target" >&2;}
2226 { (exit 1); exit 1; }; };;
2228 target=$ac_cv_target
2229 ac_save_IFS=$IFS; IFS='-'
2235 # Remember, the first character of IFS is used to create $*,
2236 # except with old shells:
2239 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2242 # The aliases save the names the user supplied, while $host etc.
2243 # will get canonicalized.
2244 test -n "$target_alias" &&
2245 test "$program_prefix$program_suffix$program_transform_name" = \
2247 program_prefix=${target_alias}-
2249 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2250 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2251 if test "${llvm_cv_os_type+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 llvm_cv_link_all_option="-Wl,--whole-archive"
2257 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2258 llvm_cv_os_type="AIX"
2259 llvm_cv_platform_type="Unix" ;;
2261 llvm_cv_link_all_option="-Wl,--whole-archive"
2262 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2263 llvm_cv_os_type="IRIX"
2264 llvm_cv_platform_type="Unix" ;;
2266 llvm_cv_link_all_option="-Wl,--whole-archive"
2267 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2268 llvm_cv_os_type="Cygwin"
2269 llvm_cv_platform_type="Unix" ;;
2271 llvm_cv_link_all_option="-Wl,-all_load"
2272 llvm_cv_no_link_all_option="-Wl,-noall_load"
2273 llvm_cv_os_type="Darwin"
2274 llvm_cv_platform_type="Unix" ;;
2276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278 llvm_cv_os_type="FreeBSD"
2279 llvm_cv_platform_type="Unix" ;;
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="OpenBSD"
2284 llvm_cv_platform_type="Unix" ;;
2286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288 llvm_cv_os_type="NetBSD"
2289 llvm_cv_platform_type="Unix" ;;
2291 llvm_cv_link_all_option="-Wl,--whole-archive"
2292 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2293 llvm_cv_os_type="DragonFly"
2294 llvm_cv_platform_type="Unix" ;;
2296 llvm_cv_link_all_option="-Wl,--whole-archive"
2297 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2298 llvm_cv_os_type="HP-UX"
2299 llvm_cv_platform_type="Unix" ;;
2301 llvm_cv_link_all_option="-Wl,--whole-archive"
2302 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2303 llvm_cv_os_type="Interix"
2304 llvm_cv_platform_type="Unix" ;;
2306 llvm_cv_link_all_option="-Wl,--whole-archive"
2307 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2308 llvm_cv_os_type="Linux"
2309 llvm_cv_platform_type="Unix" ;;
2311 llvm_cv_link_all_option="-Wl,-z,allextract"
2312 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2313 llvm_cv_os_type="SunOS"
2314 llvm_cv_platform_type="Unix" ;;
2316 llvm_cv_link_all_option="-Wl,--whole-archive"
2317 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2318 llvm_cv_os_type="Win32"
2319 llvm_cv_platform_type="Win32" ;;
2321 llvm_cv_link_all_option="-Wl,--whole-archive"
2322 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2323 llvm_cv_os_type="MingW"
2324 llvm_cv_platform_type="Win32" ;;
2326 llvm_cv_link_all_option=""
2327 llvm_cv_no_link_all_option=""
2328 llvm_cv_os_type="Unknown"
2329 llvm_cv_platform_type="Unknown" ;;
2332 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2333 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2335 if test "$llvm_cv_os_type" = "Unknown" ; then
2336 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2337 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2338 { (exit 1); exit 1; }; }
2344 LINKALL=$llvm_cv_link_all_option
2346 NOLINKALL=$llvm_cv_no_link_all_option
2349 case $llvm_cv_platform_type in
2352 cat >>confdefs.h <<\_ACEOF
2353 #define LLVM_ON_UNIX 1
2363 cat >>confdefs.h <<\_ACEOF
2364 #define LLVM_ON_WIN32 1
2374 { echo "$as_me:$LINENO: checking target architecture" >&5
2375 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2376 if test "${llvm_cv_target_arch+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2380 i?86-*) llvm_cv_target_arch="x86" ;;
2381 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2382 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2383 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2384 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2385 ia64-*) llvm_cv_target_arch="IA64" ;;
2386 arm-*) llvm_cv_target_arch="ARM" ;;
2387 mips-*) llvm_cv_target_arch="Mips" ;;
2388 pic16-*) llvm_cv_target_arch="PIC16" ;;
2389 *) llvm_cv_target_arch="Unknown" ;;
2392 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2393 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2395 if test "$llvm_cv_target_arch" = "Unknown" ; then
2396 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2397 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2400 ARCH=$llvm_cv_target_arch
2404 ac_cpp='$CPP $CPPFLAGS'
2405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2408 if test -n "$ac_tool_prefix"; then
2409 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2410 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2413 if test "${ac_cv_prog_CC+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 if test -n "$CC"; then
2417 ac_cv_prog_CC="$CC" # Let the user override the test.
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
2425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2426 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2437 if test -n "$CC"; then
2438 { echo "$as_me:$LINENO: result: $CC" >&5
2439 echo "${ECHO_T}$CC" >&6; }
2441 { echo "$as_me:$LINENO: result: no" >&5
2442 echo "${ECHO_T}no" >&6; }
2447 if test -z "$ac_cv_prog_CC"; then
2449 # Extract the first word of "gcc", so it can be a program name with args.
2450 set dummy gcc; ac_word=$2
2451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2453 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2456 if test -n "$ac_ct_CC"; then
2457 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 test -z "$as_dir" && as_dir=.
2464 for ac_exec_ext in '' $ac_executable_extensions; do
2465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2466 ac_cv_prog_ac_ct_CC="gcc"
2467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2477 if test -n "$ac_ct_CC"; then
2478 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2479 echo "${ECHO_T}$ac_ct_CC" >&6; }
2481 { echo "$as_me:$LINENO: result: no" >&5
2482 echo "${ECHO_T}no" >&6; }
2485 if test "x$ac_ct_CC" = x; then
2488 case $cross_compiling:$ac_tool_warned in
2490 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2491 whose name does not start with the host triplet. If you think this
2492 configuration is useful to you, please write to autoconf@gnu.org." >&5
2493 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2494 whose name does not start with the host triplet. If you think this
2495 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2496 ac_tool_warned=yes ;;
2504 if test -z "$CC"; then
2505 if test -n "$ac_tool_prefix"; then
2506 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2507 set dummy ${ac_tool_prefix}cc; ac_word=$2
2508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2510 if test "${ac_cv_prog_CC+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 if test -n "$CC"; then
2514 ac_cv_prog_CC="$CC" # Let the user override the test.
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2523 ac_cv_prog_CC="${ac_tool_prefix}cc"
2524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 if test -n "$CC"; then
2535 { echo "$as_me:$LINENO: result: $CC" >&5
2536 echo "${ECHO_T}$CC" >&6; }
2538 { echo "$as_me:$LINENO: result: no" >&5
2539 echo "${ECHO_T}no" >&6; }
2545 if test -z "$CC"; then
2546 # Extract the first word of "cc", so it can be a program name with args.
2547 set dummy cc; ac_word=$2
2548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2550 if test "${ac_cv_prog_CC+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2553 if test -n "$CC"; then
2554 ac_cv_prog_CC="$CC" # Let the user override the test.
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2565 ac_prog_rejected=yes
2569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 if test $ac_prog_rejected = yes; then
2577 # We found a bogon in the path, so make sure we never use it.
2578 set dummy $ac_cv_prog_CC
2580 if test $# != 0; then
2581 # We chose a different compiler from the bogus one.
2582 # However, it has the same basename, so the bogon will be chosen
2583 # first if we set CC to just the basename; use the full file name.
2585 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2591 if test -n "$CC"; then
2592 { echo "$as_me:$LINENO: result: $CC" >&5
2593 echo "${ECHO_T}$CC" >&6; }
2595 { echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6; }
2601 if test -z "$CC"; then
2602 if test -n "$ac_tool_prefix"; then
2603 for ac_prog in cl.exe
2605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2609 if test "${ac_cv_prog_CC+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 if test -n "$CC"; then
2613 ac_cv_prog_CC="$CC" # Let the user override the test.
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 if test -n "$CC"; then
2634 { echo "$as_me:$LINENO: result: $CC" >&5
2635 echo "${ECHO_T}$CC" >&6; }
2637 { echo "$as_me:$LINENO: result: no" >&5
2638 echo "${ECHO_T}no" >&6; }
2642 test -n "$CC" && break
2645 if test -z "$CC"; then
2647 for ac_prog in cl.exe
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650 set dummy $ac_prog; ac_word=$2
2651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2654 echo $ECHO_N "(cached) $ECHO_C" >&6
2656 if test -n "$ac_ct_CC"; then
2657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_ac_ct_CC="$ac_prog"
2667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2677 if test -n "$ac_ct_CC"; then
2678 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2679 echo "${ECHO_T}$ac_ct_CC" >&6; }
2681 { echo "$as_me:$LINENO: result: no" >&5
2682 echo "${ECHO_T}no" >&6; }
2686 test -n "$ac_ct_CC" && break
2689 if test "x$ac_ct_CC" = x; then
2692 case $cross_compiling:$ac_tool_warned in
2694 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2695 whose name does not start with the host triplet. If you think this
2696 configuration is useful to you, please write to autoconf@gnu.org." >&5
2697 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2698 whose name does not start with the host triplet. If you think this
2699 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2700 ac_tool_warned=yes ;;
2709 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2710 See \`config.log' for more details." >&5
2711 echo "$as_me: error: no acceptable C compiler found in \$PATH
2712 See \`config.log' for more details." >&2;}
2713 { (exit 1); exit 1; }; }
2715 # Provide some information about the compiler.
2716 echo "$as_me:$LINENO: checking for C compiler version" >&5
2717 ac_compiler=`set X $ac_compile; echo $2`
2718 { (ac_try="$ac_compiler --version >&5"
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_compiler --version >&5") 2>&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }
2728 { (ac_try="$ac_compiler -v >&5"
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_compiler -v >&5") 2>&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }
2738 { (ac_try="$ac_compiler -V >&5"
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compiler -V >&5") 2>&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }
2749 cat >conftest.$ac_ext <<_ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h. */
2764 ac_clean_files_save=$ac_clean_files
2765 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2766 # Try to create an executable without -o first, disregard a.out.
2767 # It will help us diagnose broken compilers, and finding out an intuition
2769 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2770 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2771 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2773 # List of possible output files, starting from the most likely.
2774 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2775 # only as a last resort. b.out is created by i960 compilers.
2776 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2778 # The IRIX 6 linker writes into existing files which may not be
2779 # executable, retaining their permissions. Remove them first so a
2780 # subsequent execution test works.
2782 for ac_file in $ac_files
2785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2786 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2791 if { (ac_try="$ac_link_default"
2793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794 *) ac_try_echo=$ac_try;;
2796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2797 (eval "$ac_link_default") 2>&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; then
2801 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2802 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2803 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2804 # so that the user can short-circuit this test for compilers unknown to
2806 for ac_file in $ac_files
2808 test -f "$ac_file" || continue
2810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2813 # We found the default executable, but exeext='' is most
2817 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2819 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2821 # We set ac_cv_exeext here because the later test for it is not
2822 # safe: cross compilers may not add the suffix if given an `-o'
2823 # argument, so we may need to know it at that point already.
2824 # Even if this section looks crufty: it has the advantage of
2831 test "$ac_cv_exeext" = no && ac_cv_exeext=
2834 echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2837 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2838 See \`config.log' for more details." >&5
2839 echo "$as_me: error: C compiler cannot create executables
2840 See \`config.log' for more details." >&2;}
2841 { (exit 77); exit 77; }; }
2844 ac_exeext=$ac_cv_exeext
2845 { echo "$as_me:$LINENO: result: $ac_file" >&5
2846 echo "${ECHO_T}$ac_file" >&6; }
2848 # Check that the compiler produces executables we can run. If not, either
2849 # the compiler is broken, or we cross compile.
2850 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2851 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2852 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2853 # If not cross compiling, check that we can run a simple program.
2854 if test "$cross_compiling" != yes; then
2855 if { ac_try='./$ac_file'
2856 { (case "(($ac_try" in
2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 *) ac_try_echo=$ac_try;;
2860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2861 (eval "$ac_try") 2>&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2867 if test "$cross_compiling" = maybe; then
2870 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2871 If you meant to cross compile, use \`--host'.
2872 See \`config.log' for more details." >&5
2873 echo "$as_me: error: cannot run C compiled programs.
2874 If you meant to cross compile, use \`--host'.
2875 See \`config.log' for more details." >&2;}
2876 { (exit 1); exit 1; }; }
2880 { echo "$as_me:$LINENO: result: yes" >&5
2881 echo "${ECHO_T}yes" >&6; }
2883 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2884 ac_clean_files=$ac_clean_files_save
2885 # Check that the compiler produces executables we can run. If not, either
2886 # the compiler is broken, or we cross compile.
2887 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2888 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2889 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2890 echo "${ECHO_T}$cross_compiling" >&6; }
2892 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2893 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2894 if { (ac_try="$ac_link"
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_link") 2>&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; then
2904 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2905 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2906 # work properly (i.e., refer to `conftest.exe'), while it won't with
2908 for ac_file in conftest.exe conftest conftest.*; do
2909 test -f "$ac_file" || continue
2911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2912 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2918 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2919 See \`config.log' for more details." >&5
2920 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2921 See \`config.log' for more details." >&2;}
2922 { (exit 1); exit 1; }; }
2925 rm -f conftest$ac_cv_exeext
2926 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2927 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2929 rm -f conftest.$ac_ext
2930 EXEEXT=$ac_cv_exeext
2932 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2933 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2934 if test "${ac_cv_objext+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 cat >conftest.$ac_ext <<_ACEOF
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h. */
2952 rm -f conftest.o conftest.obj
2953 if { (ac_try="$ac_compile"
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_compile") 2>&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; then
2963 for ac_file in conftest.o conftest.obj conftest.*; do
2964 test -f "$ac_file" || continue;
2966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2967 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2975 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2976 See \`config.log' for more details." >&5
2977 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2978 See \`config.log' for more details." >&2;}
2979 { (exit 1); exit 1; }; }
2982 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2984 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2985 echo "${ECHO_T}$ac_cv_objext" >&6; }
2986 OBJEXT=$ac_cv_objext
2988 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2989 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2990 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2993 cat >conftest.$ac_ext <<_ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
3011 rm -f conftest.$ac_objext
3012 if { (ac_try="$ac_compile"
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_compile") 2>conftest.er1
3020 grep -v '^ *+' conftest.er1 >conftest.err
3022 cat conftest.err >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } &&
3025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3026 { (case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_try") 2>&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; } &&
3035 { ac_try='test -s conftest.$ac_objext'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3057 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3058 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3059 GCC=`test $ac_compiler_gnu = yes && echo yes`
3060 ac_test_CFLAGS=${CFLAGS+set}
3061 ac_save_CFLAGS=$CFLAGS
3062 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3063 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3064 if test "${ac_cv_prog_cc_g+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 ac_save_c_werror_flag=$ac_c_werror_flag
3068 ac_c_werror_flag=yes
3071 cat >conftest.$ac_ext <<_ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3086 rm -f conftest.$ac_objext
3087 if { (ac_try="$ac_compile"
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_compile") 2>conftest.er1
3095 grep -v '^ *+' conftest.er1 >conftest.err
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } &&
3100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3101 { (case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_try") 2>&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; } &&
3110 { ac_try='test -s conftest.$ac_objext'
3111 { (case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_try") 2>&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; }; then
3122 echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3126 cat >conftest.$ac_ext <<_ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3141 rm -f conftest.$ac_objext
3142 if { (ac_try="$ac_compile"
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_compile") 2>conftest.er1
3150 grep -v '^ *+' conftest.er1 >conftest.err
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } &&
3155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3156 { (case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_try") 2>&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; } &&
3165 { ac_try='test -s conftest.$ac_objext'
3166 { (case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_try") 2>&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; }; then
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3180 ac_c_werror_flag=$ac_save_c_werror_flag
3182 cat >conftest.$ac_ext <<_ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h. */
3197 rm -f conftest.$ac_objext
3198 if { (ac_try="$ac_compile"
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_compile") 2>conftest.er1
3206 grep -v '^ *+' conftest.er1 >conftest.err
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } &&
3211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3212 { (case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_try") 2>&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }; } &&
3221 { ac_try='test -s conftest.$ac_objext'
3222 { (case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_try") 2>&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; }; then
3233 echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 ac_c_werror_flag=$ac_save_c_werror_flag
3248 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3249 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3250 if test "$ac_test_CFLAGS" = set; then
3251 CFLAGS=$ac_save_CFLAGS
3252 elif test $ac_cv_prog_cc_g = yes; then
3253 if test "$GCC" = yes; then
3259 if test "$GCC" = yes; then
3265 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3266 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3267 if test "${ac_cv_prog_cc_c89+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 ac_cv_prog_cc_c89=no
3272 cat >conftest.$ac_ext <<_ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3280 #include <sys/types.h>
3281 #include <sys/stat.h>
3282 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3283 struct buf { int x; };
3284 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3285 static char *e (p, i)
3291 static char *f (char * (*g) (char **, int), char **p, ...)
3296 s = g (p, va_arg (v,int));
3301 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3302 function prototypes and stuff, but not '\xHH' hex character constants.
3303 These don't provoke an error unfortunately, instead are silently treated
3304 as 'x'. The following induces an error, until -std is added to get
3305 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3306 array size at least. It's necessary to write '\x00'==0 to get something
3307 that's true only with -std. */
3308 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3310 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3311 inside strings and character constants. */
3313 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3315 int test (int i, double x);
3316 struct s1 {int (*f) (int a);};
3317 struct s2 {int (*f) (double a);};
3318 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3324 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3329 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3330 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3332 CC="$ac_save_CC $ac_arg"
3333 rm -f conftest.$ac_objext
3334 if { (ac_try="$ac_compile"
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340 (eval "$ac_compile") 2>conftest.er1
3342 grep -v '^ *+' conftest.er1 >conftest.err
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3348 { (case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353 (eval "$ac_try") 2>&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; } &&
3357 { ac_try='test -s conftest.$ac_objext'
3358 { (case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_try") 2>&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; }; then
3367 ac_cv_prog_cc_c89=$ac_arg
3369 echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3375 rm -f core conftest.err conftest.$ac_objext
3376 test "x$ac_cv_prog_cc_c89" != "xno" && break
3378 rm -f conftest.$ac_ext
3383 case "x$ac_cv_prog_cc_c89" in
3385 { echo "$as_me:$LINENO: result: none needed" >&5
3386 echo "${ECHO_T}none needed" >&6; } ;;
3388 { echo "$as_me:$LINENO: result: unsupported" >&5
3389 echo "${ECHO_T}unsupported" >&6; } ;;
3391 CC="$CC $ac_cv_prog_cc_c89"
3392 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3393 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3398 ac_cpp='$CPP $CPPFLAGS'
3399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405 ac_cpp='$CPP $CPPFLAGS'
3406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3410 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3411 # On Suns, sometimes $CPP names a directory.
3412 if test -n "$CPP" && test -d "$CPP"; then
3415 if test -z "$CPP"; then
3416 if test "${ac_cv_prog_CPP+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3419 # Double quotes because CPP needs to be expanded
3420 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3423 for ac_c_preproc_warn_flag in '' yes
3425 # Use a header file that comes with gcc, so configuring glibc
3426 # with a fresh cross-compiler works.
3427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3428 # <limits.h> exists even on freestanding compilers.
3429 # On the NeXT, cc -E runs the code through the compiler's parser,
3430 # not just through cpp. "Syntax error" is here to catch this case.
3431 cat >conftest.$ac_ext <<_ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h. */
3438 # include <limits.h>
3440 # include <assert.h>
3444 if { (ac_try="$ac_cpp conftest.$ac_ext"
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3452 grep -v '^ *+' conftest.er1 >conftest.err
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } >/dev/null; then
3457 if test -s conftest.err; then
3458 ac_cpp_err=$ac_c_preproc_warn_flag
3459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3466 if test -z "$ac_cpp_err"; then
3469 echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3472 # Broken: fails on valid input.
3476 rm -f conftest.err conftest.$ac_ext
3478 # OK, works on sane cases. Now check whether nonexistent headers
3479 # can be detected and how.
3480 cat >conftest.$ac_ext <<_ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3486 #include <ac_nonexistent.h>
3488 if { (ac_try="$ac_cpp conftest.$ac_ext"
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3496 grep -v '^ *+' conftest.er1 >conftest.err
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } >/dev/null; then
3501 if test -s conftest.err; then
3502 ac_cpp_err=$ac_c_preproc_warn_flag
3503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3510 if test -z "$ac_cpp_err"; then
3511 # Broken: success on invalid input.
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 # Passes both tests.
3522 rm -f conftest.err conftest.$ac_ext
3525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3526 rm -f conftest.err conftest.$ac_ext
3527 if $ac_preproc_ok; then
3539 { echo "$as_me:$LINENO: result: $CPP" >&5
3540 echo "${ECHO_T}$CPP" >&6; }
3542 for ac_c_preproc_warn_flag in '' yes
3544 # Use a header file that comes with gcc, so configuring glibc
3545 # with a fresh cross-compiler works.
3546 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3547 # <limits.h> exists even on freestanding compilers.
3548 # On the NeXT, cc -E runs the code through the compiler's parser,
3549 # not just through cpp. "Syntax error" is here to catch this case.
3550 cat >conftest.$ac_ext <<_ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3557 # include <limits.h>
3559 # include <assert.h>
3563 if { (ac_try="$ac_cpp conftest.$ac_ext"
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3571 grep -v '^ *+' conftest.er1 >conftest.err
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } >/dev/null; then
3576 if test -s conftest.err; then
3577 ac_cpp_err=$ac_c_preproc_warn_flag
3578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3585 if test -z "$ac_cpp_err"; then
3588 echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3591 # Broken: fails on valid input.
3595 rm -f conftest.err conftest.$ac_ext
3597 # OK, works on sane cases. Now check whether nonexistent headers
3598 # can be detected and how.
3599 cat >conftest.$ac_ext <<_ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605 #include <ac_nonexistent.h>
3607 if { (ac_try="$ac_cpp conftest.$ac_ext"
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3615 grep -v '^ *+' conftest.er1 >conftest.err
3617 cat conftest.err >&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); } >/dev/null; then
3620 if test -s conftest.err; then
3621 ac_cpp_err=$ac_c_preproc_warn_flag
3622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3629 if test -z "$ac_cpp_err"; then
3630 # Broken: success on invalid input.
3633 echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3636 # Passes both tests.
3641 rm -f conftest.err conftest.$ac_ext
3644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3645 rm -f conftest.err conftest.$ac_ext
3646 if $ac_preproc_ok; then
3649 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3650 See \`config.log' for more details." >&5
3651 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3652 See \`config.log' for more details." >&2;}
3653 { (exit 1); exit 1; }; }
3657 ac_cpp='$CPP $CPPFLAGS'
3658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3664 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3665 if test "${ac_cv_path_GREP+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 # Extract the first word of "grep ggrep" to use in msg output
3669 if test -z "$GREP"; then
3670 set dummy grep ggrep; ac_prog_name=$2
3671 if test "${ac_cv_path_GREP+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 ac_path_GREP_found=false
3675 # Loop through the user's path and test for each of PROGNAME-LIST
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3680 test -z "$as_dir" && as_dir=.
3681 for ac_prog in grep ggrep; do
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3684 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3685 # Check for GNU ac_path_GREP and select it if it is found.
3686 # Check for GNU $ac_path_GREP
3687 case `"$ac_path_GREP" --version 2>&1` in
3689 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3692 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3695 cat "conftest.in" "conftest.in" >"conftest.tmp"
3696 mv "conftest.tmp" "conftest.in"
3697 cp "conftest.in" "conftest.nl"
3698 echo 'GREP' >> "conftest.nl"
3699 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3700 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3701 ac_count=`expr $ac_count + 1`
3702 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3703 # Best one so far, save it but keep looking for a better one
3704 ac_cv_path_GREP="$ac_path_GREP"
3705 ac_path_GREP_max=$ac_count
3707 # 10*(2^10) chars as input seems more than enough
3708 test $ac_count -gt 10 && break
3710 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3714 $ac_path_GREP_found && break 3
3724 GREP="$ac_cv_path_GREP"
3725 if test -z "$GREP"; then
3726 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3727 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3728 { (exit 1); exit 1; }; }
3732 ac_cv_path_GREP=$GREP
3737 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3738 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3739 GREP="$ac_cv_path_GREP"
3742 { echo "$as_me:$LINENO: checking for egrep" >&5
3743 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3744 if test "${ac_cv_path_EGREP+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3748 then ac_cv_path_EGREP="$GREP -E"
3750 # Extract the first word of "egrep" to use in msg output
3751 if test -z "$EGREP"; then
3752 set dummy egrep; ac_prog_name=$2
3753 if test "${ac_cv_path_EGREP+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 ac_path_EGREP_found=false
3757 # Loop through the user's path and test for each of PROGNAME-LIST
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3762 test -z "$as_dir" && as_dir=.
3763 for ac_prog in egrep; do
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3766 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3767 # Check for GNU ac_path_EGREP and select it if it is found.
3768 # Check for GNU $ac_path_EGREP
3769 case `"$ac_path_EGREP" --version 2>&1` in
3771 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3774 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3777 cat "conftest.in" "conftest.in" >"conftest.tmp"
3778 mv "conftest.tmp" "conftest.in"
3779 cp "conftest.in" "conftest.nl"
3780 echo 'EGREP' >> "conftest.nl"
3781 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3782 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3783 ac_count=`expr $ac_count + 1`
3784 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3785 # Best one so far, save it but keep looking for a better one
3786 ac_cv_path_EGREP="$ac_path_EGREP"
3787 ac_path_EGREP_max=$ac_count
3789 # 10*(2^10) chars as input seems more than enough
3790 test $ac_count -gt 10 && break
3792 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3796 $ac_path_EGREP_found && break 3
3806 EGREP="$ac_cv_path_EGREP"
3807 if test -z "$EGREP"; then
3808 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3809 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3810 { (exit 1); exit 1; }; }
3814 ac_cv_path_EGREP=$EGREP
3820 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3821 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3822 EGREP="$ac_cv_path_EGREP"
3825 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3826 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3827 if test "${ac_cv_header_stdc+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 cat >conftest.$ac_ext <<_ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h. */
3849 rm -f conftest.$ac_objext
3850 if { (ac_try="$ac_compile"
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3856 (eval "$ac_compile") 2>conftest.er1
3858 grep -v '^ *+' conftest.er1 >conftest.err
3860 cat conftest.err >&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } &&
3863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3864 { (case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3869 (eval "$ac_try") 2>&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; } &&
3873 { ac_try='test -s conftest.$ac_objext'
3874 { (case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879 (eval "$ac_try") 2>&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
3883 ac_cv_header_stdc=yes
3885 echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3888 ac_cv_header_stdc=no
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 if test $ac_cv_header_stdc = yes; then
3894 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3895 cat >conftest.$ac_ext <<_ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h. */
3904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3905 $EGREP "memchr" >/dev/null 2>&1; then
3908 ac_cv_header_stdc=no
3914 if test $ac_cv_header_stdc = yes; then
3915 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3916 cat >conftest.$ac_ext <<_ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h. */
3925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3926 $EGREP "free" >/dev/null 2>&1; then
3929 ac_cv_header_stdc=no
3935 if test $ac_cv_header_stdc = yes; then
3936 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3937 if test "$cross_compiling" = yes; then
3940 cat >conftest.$ac_ext <<_ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3948 #if ((' ' & 0x0FF) == 0x020)
3949 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3950 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3952 # define ISLOWER(c) \
3953 (('a' <= (c) && (c) <= 'i') \
3954 || ('j' <= (c) && (c) <= 'r') \
3955 || ('s' <= (c) && (c) <= 'z'))
3956 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3959 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3964 for (i = 0; i < 256; i++)
3965 if (XOR (islower (i), ISLOWER (i))
3966 || toupper (i) != TOUPPER (i))
3971 rm -f conftest$ac_exeext
3972 if { (ac_try="$ac_link"
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3978 (eval "$ac_link") 2>&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3982 { (case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3987 (eval "$ac_try") 2>&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; }; then
3993 echo "$as_me: program exited with status $ac_status" >&5
3994 echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3998 ac_cv_header_stdc=no
4000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4006 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4007 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4008 if test $ac_cv_header_stdc = yes; then
4010 cat >>confdefs.h <<\_ACEOF
4011 #define STDC_HEADERS 1
4016 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4026 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4027 inttypes.h stdint.h unistd.h
4029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 cat >conftest.$ac_ext <<_ACEOF
4038 cat confdefs.h >>conftest.$ac_ext
4039 cat >>conftest.$ac_ext <<_ACEOF
4040 /* end confdefs.h. */
4041 $ac_includes_default
4043 #include <$ac_header>
4045 rm -f conftest.$ac_objext
4046 if { (ac_try="$ac_compile"
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052 (eval "$ac_compile") 2>conftest.er1
4054 grep -v '^ *+' conftest.er1 >conftest.err
4056 cat conftest.err >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); } &&
4059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4060 { (case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_try") 2>&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; } &&
4069 { ac_try='test -s conftest.$ac_objext'
4070 { (case "(($ac_try" in
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4075 (eval "$ac_try") 2>&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; }; then
4079 eval "$as_ac_Header=yes"
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4084 eval "$as_ac_Header=no"
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 ac_res=`eval echo '${'$as_ac_Header'}'`
4090 { echo "$as_me:$LINENO: result: $ac_res" >&5
4091 echo "${ECHO_T}$ac_res" >&6; }
4092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4093 cat >>confdefs.h <<_ACEOF
4094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4102 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4103 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4104 if test "${ac_cv_c_bigendian+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 # See if sys/param.h defines the BYTE_ORDER macro.
4108 cat >conftest.$ac_ext <<_ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4114 #include <sys/types.h>
4115 #include <sys/param.h>
4120 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4128 rm -f conftest.$ac_objext
4129 if { (ac_try="$ac_compile"
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135 (eval "$ac_compile") 2>conftest.er1
4137 grep -v '^ *+' conftest.er1 >conftest.err
4139 cat conftest.err >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); } &&
4142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4143 { (case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_try") 2>&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; } &&
4152 { ac_try='test -s conftest.$ac_objext'
4153 { (case "(($ac_try" in
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158 (eval "$ac_try") 2>&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; }; then
4162 # It does; now see whether it defined to BIG_ENDIAN or not.
4163 cat >conftest.$ac_ext <<_ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4169 #include <sys/types.h>
4170 #include <sys/param.h>
4175 #if BYTE_ORDER != BIG_ENDIAN
4183 rm -f conftest.$ac_objext
4184 if { (ac_try="$ac_compile"
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190 (eval "$ac_compile") 2>conftest.er1
4192 grep -v '^ *+' conftest.er1 >conftest.err
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } &&
4197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4198 { (case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203 (eval "$ac_try") 2>&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; } &&
4207 { ac_try='test -s conftest.$ac_objext'
4208 { (case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_try") 2>&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; }; then
4217 ac_cv_c_bigendian=yes
4219 echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4222 ac_cv_c_bigendian=no
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 echo "$as_me: failed program was:" >&5
4228 sed 's/^/| /' conftest.$ac_ext >&5
4230 # It does not; compile a test program.
4231 if test "$cross_compiling" = yes; then
4232 # try to guess the endianness by grepping values into an object file
4233 ac_cv_c_bigendian=unknown
4234 cat >conftest.$ac_ext <<_ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h. */
4240 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4241 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4242 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4243 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4244 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4245 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4249 _ascii (); _ebcdic ();
4254 rm -f conftest.$ac_objext
4255 if { (ac_try="$ac_compile"
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_compile") 2>conftest.er1
4263 grep -v '^ *+' conftest.er1 >conftest.err
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } &&
4268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4269 { (case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_try") 2>&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; } &&
4278 { ac_try='test -s conftest.$ac_objext'
4279 { (case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284 (eval "$ac_try") 2>&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; }; then
4288 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4289 ac_cv_c_bigendian=yes
4291 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4292 if test "$ac_cv_c_bigendian" = unknown; then
4293 ac_cv_c_bigendian=no
4295 # finding both strings is unlikely to happen, but who knows?
4296 ac_cv_c_bigendian=unknown
4300 echo "$as_me: failed program was:" >&5
4301 sed 's/^/| /' conftest.$ac_ext >&5
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308 cat >conftest.$ac_ext <<_ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h. */
4314 $ac_includes_default
4319 /* Are we little or big endian? From Harbison&Steele. */
4323 char c[sizeof (long int)];
4326 return u.c[sizeof (long int) - 1] == 1;
4332 rm -f conftest$ac_exeext
4333 if { (ac_try="$ac_link"
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339 (eval "$ac_link") 2>&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4343 { (case "(($ac_try" in
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_try") 2>&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; }; then
4352 ac_cv_c_bigendian=no
4354 echo "$as_me: program exited with status $ac_status" >&5
4355 echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4359 ac_cv_c_bigendian=yes
4361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4370 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4371 case $ac_cv_c_bigendian in
4379 { { echo "$as_me:$LINENO: error: unknown endianness
4380 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4381 echo "$as_me: error: unknown endianness
4382 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4383 { (exit 1); exit 1; }; } ;;
4387 if test "$cross_compiling" = yes; then
4388 LLVM_CROSS_COMPILING=1
4391 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4392 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4393 if test "${ac_cv_build_exeext+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4397 ac_cv_build_exeext=.exe
4399 ac_build_prefix=${build_alias}-
4401 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4402 set dummy ${ac_build_prefix}gcc; ac_word=$2
4403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4405 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4408 if test -n "$BUILD_CC"; then
4409 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4418 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4428 BUILD_CC=$ac_cv_prog_BUILD_CC
4429 if test -n "$BUILD_CC"; then
4430 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4431 echo "${ECHO_T}$BUILD_CC" >&6; }
4433 { echo "$as_me:$LINENO: result: no" >&5
4434 echo "${ECHO_T}no" >&6; }
4438 if test -z "$BUILD_CC"; then
4439 # Extract the first word of "gcc", so it can be a program name with args.
4440 set dummy gcc; ac_word=$2
4441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4443 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 if test -n "$BUILD_CC"; then
4447 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4456 ac_cv_prog_BUILD_CC="gcc"
4457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 BUILD_CC=$ac_cv_prog_BUILD_CC
4467 if test -n "$BUILD_CC"; then
4468 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4469 echo "${ECHO_T}$BUILD_CC" >&6; }
4471 { echo "$as_me:$LINENO: result: no" >&5
4472 echo "${ECHO_T}no" >&6; }
4476 if test -z "$BUILD_CC"; then
4477 # Extract the first word of "cc", so it can be a program name with args.
4478 set dummy cc; ac_word=$2
4479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4481 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 if test -n "$BUILD_CC"; then
4485 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4495 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4496 ac_prog_rejected=yes
4499 ac_cv_prog_BUILD_CC="cc"
4500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 if test $ac_prog_rejected = yes; then
4508 # We found a bogon in the path, so make sure we never use it.
4509 set dummy $ac_cv_prog_BUILD_CC
4511 if test $# != 0; then
4512 # We chose a different compiler from the bogus one.
4513 # However, it has the same basename, so the bogon will be chosen
4514 # first if we set BUILD_CC to just the basename; use the full file name.
4516 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4521 BUILD_CC=$ac_cv_prog_BUILD_CC
4522 if test -n "$BUILD_CC"; then
4523 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4524 echo "${ECHO_T}$BUILD_CC" >&6; }
4526 { echo "$as_me:$LINENO: result: no" >&5
4527 echo "${ECHO_T}no" >&6; }
4533 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4534 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4535 { (exit 1); exit 1; }; }
4536 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4538 echo 'int main () { return 0; }' > conftest.$ac_ext
4540 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4541 (eval $ac_build_link) 2>&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; then
4545 for file in conftest.*; do
4547 *.c | *.o | *.obj) ;;
4548 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4552 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4553 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4554 { (exit 1); exit 1; }; }
4557 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4562 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4563 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4564 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4565 ac_build_exeext=$BUILD_EXEEXT
4568 LLVM_CROSS_COMPILING=0
4572 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4583 # Check whether --enable-optimized was given.
4584 if test "${enable_optimized+set}" = set; then
4585 enableval=$enable_optimized;
4590 if test ${enableval} = "no" ; then
4594 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4598 # Check whether --enable-assertions was given.
4599 if test "${enable_assertions+set}" = set; then
4600 enableval=$enable_assertions;
4605 if test ${enableval} = "yes" ; then
4609 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4613 # Check whether --enable-expensive-checks was given.
4614 if test "${enable_expensive_checks+set}" = set; then
4615 enableval=$enable_expensive_checks;
4620 if test ${enableval} = "yes" ; then
4621 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4623 EXPENSIVE_CHECKS=yes
4626 ENABLE_EXPENSIVE_CHECKS=
4632 # Check whether --enable-debug-runtime was given.
4633 if test "${enable_debug_runtime+set}" = set; then
4634 enableval=$enable_debug_runtime;
4639 if test ${enableval} = "no" ; then
4643 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4647 # Check whether --enable-jit was given.
4648 if test "${enable_jit+set}" = set; then
4649 enableval=$enable_jit;
4654 if test ${enableval} = "no"
4659 case "$llvm_cv_target_arch" in
4660 x86) TARGET_HAS_JIT=1
4662 Sparc) TARGET_HAS_JIT=0
4664 PowerPC) TARGET_HAS_JIT=1
4666 x86_64) TARGET_HAS_JIT=1
4668 Alpha) TARGET_HAS_JIT=1
4670 IA64) TARGET_HAS_JIT=0
4672 ARM) TARGET_HAS_JIT=0
4674 Mips) TARGET_HAS_JIT=0
4676 PIC16) TARGET_HAS_JIT=0
4683 # Check whether --enable-doxygen was given.
4684 if test "${enable_doxygen+set}" = set; then
4685 enableval=$enable_doxygen;
4690 case "$enableval" in
4691 yes) ENABLE_DOXYGEN=1
4693 no) ENABLE_DOXYGEN=0
4695 default) ENABLE_DOXYGEN=0
4697 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4698 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4699 { (exit 1); exit 1; }; } ;;
4702 # Check whether --enable-threads was given.
4703 if test "${enable_threads+set}" = set; then
4704 enableval=$enable_threads;
4709 case "$enableval" in
4710 yes) ENABLE_THREADS=1
4712 no) ENABLE_THREADS=0
4714 default) ENABLE_THREADS=1
4716 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4717 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4718 { (exit 1); exit 1; }; } ;;
4721 cat >>confdefs.h <<_ACEOF
4722 #define ENABLE_THREADS $ENABLE_THREADS
4726 # Check whether --enable-pic was given.
4727 if test "${enable_pic+set}" = set; then
4728 enableval=$enable_pic;
4733 case "$enableval" in
4738 default) ENABLE_PIC=0
4740 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4741 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4742 { (exit 1); exit 1; }; } ;;
4745 cat >>confdefs.h <<_ACEOF
4746 #define ENABLE_PIC $ENABLE_PIC
4751 # Check whether --enable-targets was given.
4752 if test "${enable_targets+set}" = set; then
4753 enableval=$enable_targets;
4758 case "$enableval" in
4759 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;;
4761 case "$llvm_cv_target_arch" in
4762 x86) TARGETS_TO_BUILD="X86" ;;
4763 x86_64) TARGETS_TO_BUILD="X86" ;;
4764 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4765 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4766 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4767 IA64) TARGETS_TO_BUILD="IA64" ;;
4768 ARM) TARGETS_TO_BUILD="ARM" ;;
4769 Mips) TARGETS_TO_BUILD="Mips" ;;
4770 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4771 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4772 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4773 echo "$as_me: error: Can not set target to build" >&2;}
4774 { (exit 1); exit 1; }; } ;;
4777 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4779 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4780 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4781 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4782 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4783 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4784 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4785 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4786 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4787 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4788 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4789 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4790 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4791 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4792 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4793 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4794 { (exit 1); exit 1; }; } ;;
4799 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4802 # Check whether --enable-cbe-printf-a was given.
4803 if test "${enable_cbe_printf_a+set}" = set; then
4804 enableval=$enable_cbe_printf_a;
4809 case "$enableval" in
4810 yes) ENABLE_CBE_PRINTF_A=1
4812 no) ENABLE_CBE_PRINTF_A=0
4814 default) ENABLE_CBE_PRINTF_A=1
4816 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4817 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4818 { (exit 1); exit 1; }; } ;;
4821 cat >>confdefs.h <<_ACEOF
4822 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4827 # Check whether --with-llvmgccdir was given.
4828 if test "${with_llvmgccdir+set}" = set; then
4829 withval=$with_llvmgccdir;
4835 default) WITH_LLVMGCCDIR=default ;;
4836 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4837 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4838 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4839 { (exit 1); exit 1; }; } ;;
4843 # Check whether --with-llvmgcc was given.
4844 if test "${with_llvmgcc+set}" = set; then
4845 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4851 # Check whether --with-llvmgxx was given.
4852 if test "${with_llvmgxx+set}" = set; then
4853 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4858 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4859 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4860 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4861 { (exit 1); exit 1; }; };
4864 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4865 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4866 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4867 { (exit 1); exit 1; }; };
4871 # Check whether --with-extra-options was given.
4872 if test "${with_extra_options+set}" = set; then
4873 withval=$with_extra_options;
4879 default) EXTRA_OPTIONS= ;;
4880 *) EXTRA_OPTIONS=$withval ;;
4882 EXTRA_OPTIONS=$EXTRA_OPTIONS
4885 # Check whether --enable-bindings was given.
4886 if test "${enable_bindings+set}" = set; then
4887 enableval=$enable_bindings;
4892 BINDINGS_TO_BUILD=""
4893 case "$enableval" in
4894 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4895 all ) BINDINGS_TO_BUILD="ocaml" ;;
4896 none | no) BINDINGS_TO_BUILD="" ;;
4897 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4898 case "$a_binding" in
4899 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4900 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4901 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4902 { (exit 1); exit 1; }; } ;;
4909 # Check whether --with-ocaml-libdir was given.
4910 if test "${with_ocaml_libdir+set}" = set; then
4911 withval=$with_ocaml_libdir;
4917 auto) with_ocaml_libdir="$withval" ;;
4918 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4919 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4920 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4921 { (exit 1); exit 1; }; } ;;
4926 ac_cpp='$CPP $CPPFLAGS'
4927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4930 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4931 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4932 # On Suns, sometimes $CPP names a directory.
4933 if test -n "$CPP" && test -d "$CPP"; then
4936 if test -z "$CPP"; then
4937 if test "${ac_cv_prog_CPP+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 # Double quotes because CPP needs to be expanded
4941 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4944 for ac_c_preproc_warn_flag in '' yes
4946 # Use a header file that comes with gcc, so configuring glibc
4947 # with a fresh cross-compiler works.
4948 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4949 # <limits.h> exists even on freestanding compilers.
4950 # On the NeXT, cc -E runs the code through the compiler's parser,
4951 # not just through cpp. "Syntax error" is here to catch this case.
4952 cat >conftest.$ac_ext <<_ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4959 # include <limits.h>
4961 # include <assert.h>
4965 if { (ac_try="$ac_cpp conftest.$ac_ext"
4967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4968 *) ac_try_echo=$ac_try;;
4970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4973 grep -v '^ *+' conftest.er1 >conftest.err
4975 cat conftest.err >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } >/dev/null; then
4978 if test -s conftest.err; then
4979 ac_cpp_err=$ac_c_preproc_warn_flag
4980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4987 if test -z "$ac_cpp_err"; then
4990 echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4993 # Broken: fails on valid input.
4997 rm -f conftest.err conftest.$ac_ext
4999 # OK, works on sane cases. Now check whether nonexistent headers
5000 # can be detected and how.
5001 cat >conftest.$ac_ext <<_ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5007 #include <ac_nonexistent.h>
5009 if { (ac_try="$ac_cpp conftest.$ac_ext"
5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012 *) ac_try_echo=$ac_try;;
5014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5017 grep -v '^ *+' conftest.er1 >conftest.err
5019 cat conftest.err >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } >/dev/null; then
5022 if test -s conftest.err; then
5023 ac_cpp_err=$ac_c_preproc_warn_flag
5024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5031 if test -z "$ac_cpp_err"; then
5032 # Broken: success on invalid input.
5035 echo "$as_me: failed program was:" >&5
5036 sed 's/^/| /' conftest.$ac_ext >&5
5038 # Passes both tests.
5043 rm -f conftest.err conftest.$ac_ext
5046 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5047 rm -f conftest.err conftest.$ac_ext
5048 if $ac_preproc_ok; then
5060 { echo "$as_me:$LINENO: result: $CPP" >&5
5061 echo "${ECHO_T}$CPP" >&6; }
5063 for ac_c_preproc_warn_flag in '' yes
5065 # Use a header file that comes with gcc, so configuring glibc
5066 # with a fresh cross-compiler works.
5067 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5068 # <limits.h> exists even on freestanding compilers.
5069 # On the NeXT, cc -E runs the code through the compiler's parser,
5070 # not just through cpp. "Syntax error" is here to catch this case.
5071 cat >conftest.$ac_ext <<_ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5078 # include <limits.h>
5080 # include <assert.h>
5084 if { (ac_try="$ac_cpp conftest.$ac_ext"
5086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5087 *) ac_try_echo=$ac_try;;
5089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5092 grep -v '^ *+' conftest.er1 >conftest.err
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } >/dev/null; then
5097 if test -s conftest.err; then
5098 ac_cpp_err=$ac_c_preproc_warn_flag
5099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5106 if test -z "$ac_cpp_err"; then
5109 echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5112 # Broken: fails on valid input.
5116 rm -f conftest.err conftest.$ac_ext
5118 # OK, works on sane cases. Now check whether nonexistent headers
5119 # can be detected and how.
5120 cat >conftest.$ac_ext <<_ACEOF
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h. */
5126 #include <ac_nonexistent.h>
5128 if { (ac_try="$ac_cpp conftest.$ac_ext"
5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131 *) ac_try_echo=$ac_try;;
5133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5136 grep -v '^ *+' conftest.er1 >conftest.err
5138 cat conftest.err >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } >/dev/null; then
5141 if test -s conftest.err; then
5142 ac_cpp_err=$ac_c_preproc_warn_flag
5143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5150 if test -z "$ac_cpp_err"; then
5151 # Broken: success on invalid input.
5154 echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.$ac_ext >&5
5157 # Passes both tests.
5162 rm -f conftest.err conftest.$ac_ext
5165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5166 rm -f conftest.err conftest.$ac_ext
5167 if $ac_preproc_ok; then
5170 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5171 See \`config.log' for more details." >&5
5172 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5173 See \`config.log' for more details." >&2;}
5174 { (exit 1); exit 1; }; }
5178 ac_cpp='$CPP $CPPFLAGS'
5179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5184 ac_cpp='$CPP $CPPFLAGS'
5185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5188 if test -n "$ac_tool_prefix"; then
5191 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5192 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5195 if test "${ac_cv_prog_CC+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 if test -n "$CC"; then
5199 ac_cv_prog_CC="$CC" # Let the user override the test.
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5208 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 if test -n "$CC"; then
5220 { echo "$as_me:$LINENO: result: $CC" >&5
5221 echo "${ECHO_T}$CC" >&6; }
5223 { echo "$as_me:$LINENO: result: no" >&5
5224 echo "${ECHO_T}no" >&6; }
5228 test -n "$CC" && break
5231 if test -z "$CC"; then
5235 # Extract the first word of "$ac_prog", so it can be a program name with args.
5236 set dummy $ac_prog; ac_word=$2
5237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5239 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 if test -n "$ac_ct_CC"; then
5243 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5252 ac_cv_prog_ac_ct_CC="$ac_prog"
5253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5263 if test -n "$ac_ct_CC"; then
5264 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5265 echo "${ECHO_T}$ac_ct_CC" >&6; }
5267 { echo "$as_me:$LINENO: result: no" >&5
5268 echo "${ECHO_T}no" >&6; }
5272 test -n "$ac_ct_CC" && break
5275 if test "x$ac_ct_CC" = x; then
5278 case $cross_compiling:$ac_tool_warned in
5280 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5281 whose name does not start with the host triplet. If you think this
5282 configuration is useful to you, please write to autoconf@gnu.org." >&5
5283 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5284 whose name does not start with the host triplet. If you think this
5285 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5286 ac_tool_warned=yes ;;
5293 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5294 See \`config.log' for more details." >&5
5295 echo "$as_me: error: no acceptable C compiler found in \$PATH
5296 See \`config.log' for more details." >&2;}
5297 { (exit 1); exit 1; }; }
5299 # Provide some information about the compiler.
5300 echo "$as_me:$LINENO: checking for C compiler version" >&5
5301 ac_compiler=`set X $ac_compile; echo $2`
5302 { (ac_try="$ac_compiler --version >&5"
5304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305 *) ac_try_echo=$ac_try;;
5307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308 (eval "$ac_compiler --version >&5") 2>&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }
5312 { (ac_try="$ac_compiler -v >&5"
5314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5315 *) ac_try_echo=$ac_try;;
5317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5318 (eval "$ac_compiler -v >&5") 2>&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); }
5322 { (ac_try="$ac_compiler -V >&5"
5324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5325 *) ac_try_echo=$ac_try;;
5327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5328 (eval "$ac_compiler -V >&5") 2>&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }
5333 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5334 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5335 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 cat >conftest.$ac_ext <<_ACEOF
5341 cat confdefs.h >>conftest.$ac_ext
5342 cat >>conftest.$ac_ext <<_ACEOF
5343 /* end confdefs.h. */
5356 rm -f conftest.$ac_objext
5357 if { (ac_try="$ac_compile"
5359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360 *) ac_try_echo=$ac_try;;
5362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363 (eval "$ac_compile") 2>conftest.er1
5365 grep -v '^ *+' conftest.er1 >conftest.err
5367 cat conftest.err >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } &&
5370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5371 { (case "(($ac_try" in
5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373 *) ac_try_echo=$ac_try;;
5375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5376 (eval "$ac_try") 2>&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; } &&
5380 { ac_try='test -s conftest.$ac_objext'
5381 { (case "(($ac_try" in
5382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383 *) ac_try_echo=$ac_try;;
5385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5386 (eval "$ac_try") 2>&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }; then
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5402 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5403 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5404 GCC=`test $ac_compiler_gnu = yes && echo yes`
5405 ac_test_CFLAGS=${CFLAGS+set}
5406 ac_save_CFLAGS=$CFLAGS
5407 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5408 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5409 if test "${ac_cv_prog_cc_g+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 ac_save_c_werror_flag=$ac_c_werror_flag
5413 ac_c_werror_flag=yes
5416 cat >conftest.$ac_ext <<_ACEOF
5419 cat confdefs.h >>conftest.$ac_ext
5420 cat >>conftest.$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5431 rm -f conftest.$ac_objext
5432 if { (ac_try="$ac_compile"
5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435 *) ac_try_echo=$ac_try;;
5437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438 (eval "$ac_compile") 2>conftest.er1
5440 grep -v '^ *+' conftest.er1 >conftest.err
5442 cat conftest.err >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } &&
5445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5446 { (case "(($ac_try" in
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451 (eval "$ac_try") 2>&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; } &&
5455 { ac_try='test -s conftest.$ac_objext'
5456 { (case "(($ac_try" in
5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458 *) ac_try_echo=$ac_try;;
5460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461 (eval "$ac_try") 2>&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); }; }; then
5467 echo "$as_me: failed program was:" >&5
5468 sed 's/^/| /' conftest.$ac_ext >&5
5471 cat >conftest.$ac_ext <<_ACEOF
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h. */
5486 rm -f conftest.$ac_objext
5487 if { (ac_try="$ac_compile"
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493 (eval "$ac_compile") 2>conftest.er1
5495 grep -v '^ *+' conftest.er1 >conftest.err
5497 cat conftest.err >&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } &&
5500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5501 { (case "(($ac_try" in
5502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503 *) ac_try_echo=$ac_try;;
5505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5506 (eval "$ac_try") 2>&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }; } &&
5510 { ac_try='test -s conftest.$ac_objext'
5511 { (case "(($ac_try" in
5512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5513 *) ac_try_echo=$ac_try;;
5515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5516 (eval "$ac_try") 2>&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); }; }; then
5522 echo "$as_me: failed program was:" >&5
5523 sed 's/^/| /' conftest.$ac_ext >&5
5525 ac_c_werror_flag=$ac_save_c_werror_flag
5527 cat >conftest.$ac_ext <<_ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5542 rm -f conftest.$ac_objext
5543 if { (ac_try="$ac_compile"
5545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546 *) ac_try_echo=$ac_try;;
5548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549 (eval "$ac_compile") 2>conftest.er1
5551 grep -v '^ *+' conftest.er1 >conftest.err
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } &&
5556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5557 { (case "(($ac_try" in
5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562 (eval "$ac_try") 2>&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; } &&
5566 { ac_try='test -s conftest.$ac_objext'
5567 { (case "(($ac_try" in
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5572 (eval "$ac_try") 2>&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; }; then
5578 echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.$ac_ext >&5
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 ac_c_werror_flag=$ac_save_c_werror_flag
5593 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5594 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5595 if test "$ac_test_CFLAGS" = set; then
5596 CFLAGS=$ac_save_CFLAGS
5597 elif test $ac_cv_prog_cc_g = yes; then
5598 if test "$GCC" = yes; then
5604 if test "$GCC" = yes; then
5610 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5611 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5612 if test "${ac_cv_prog_cc_c89+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 ac_cv_prog_cc_c89=no
5617 cat >conftest.$ac_ext <<_ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5625 #include <sys/types.h>
5626 #include <sys/stat.h>
5627 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5628 struct buf { int x; };
5629 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5630 static char *e (p, i)
5636 static char *f (char * (*g) (char **, int), char **p, ...)
5641 s = g (p, va_arg (v,int));
5646 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5647 function prototypes and stuff, but not '\xHH' hex character constants.
5648 These don't provoke an error unfortunately, instead are silently treated
5649 as 'x'. The following induces an error, until -std is added to get
5650 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5651 array size at least. It's necessary to write '\x00'==0 to get something
5652 that's true only with -std. */
5653 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5655 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5656 inside strings and character constants. */
5658 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5660 int test (int i, double x);
5661 struct s1 {int (*f) (int a);};
5662 struct s2 {int (*f) (double a);};
5663 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5669 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5674 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5675 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5677 CC="$ac_save_CC $ac_arg"
5678 rm -f conftest.$ac_objext
5679 if { (ac_try="$ac_compile"
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_compile") 2>conftest.er1
5687 grep -v '^ *+' conftest.er1 >conftest.err
5689 cat conftest.err >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } &&
5692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5693 { (case "(($ac_try" in
5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698 (eval "$ac_try") 2>&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; } &&
5702 { ac_try='test -s conftest.$ac_objext'
5703 { (case "(($ac_try" in
5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708 (eval "$ac_try") 2>&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); }; }; then
5712 ac_cv_prog_cc_c89=$ac_arg
5714 echo "$as_me: failed program was:" >&5
5715 sed 's/^/| /' conftest.$ac_ext >&5
5720 rm -f core conftest.err conftest.$ac_objext
5721 test "x$ac_cv_prog_cc_c89" != "xno" && break
5723 rm -f conftest.$ac_ext
5728 case "x$ac_cv_prog_cc_c89" in
5730 { echo "$as_me:$LINENO: result: none needed" >&5
5731 echo "${ECHO_T}none needed" >&6; } ;;
5733 { echo "$as_me:$LINENO: result: unsupported" >&5
5734 echo "${ECHO_T}unsupported" >&6; } ;;
5736 CC="$CC $ac_cv_prog_cc_c89"
5737 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5738 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5743 ac_cpp='$CPP $CPPFLAGS'
5744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5749 ac_cpp='$CXXCPP $CPPFLAGS'
5750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5753 if test -z "$CXX"; then
5754 if test -n "$CCC"; then
5757 if test -n "$ac_tool_prefix"; then
5760 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5761 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5764 if test "${ac_cv_prog_CXX+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 if test -n "$CXX"; then
5768 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 test -z "$as_dir" && as_dir=.
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5777 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 if test -n "$CXX"; then
5789 { echo "$as_me:$LINENO: result: $CXX" >&5
5790 echo "${ECHO_T}$CXX" >&6; }
5792 { echo "$as_me:$LINENO: result: no" >&5
5793 echo "${ECHO_T}no" >&6; }
5797 test -n "$CXX" && break
5800 if test -z "$CXX"; then
5804 # Extract the first word of "$ac_prog", so it can be a program name with args.
5805 set dummy $ac_prog; ac_word=$2
5806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5808 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5811 if test -n "$ac_ct_CXX"; then
5812 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5821 ac_cv_prog_ac_ct_CXX="$ac_prog"
5822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5832 if test -n "$ac_ct_CXX"; then
5833 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5834 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5836 { echo "$as_me:$LINENO: result: no" >&5
5837 echo "${ECHO_T}no" >&6; }
5841 test -n "$ac_ct_CXX" && break
5844 if test "x$ac_ct_CXX" = x; then
5847 case $cross_compiling:$ac_tool_warned in
5849 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5850 whose name does not start with the host triplet. If you think this
5851 configuration is useful to you, please write to autoconf@gnu.org." >&5
5852 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5853 whose name does not start with the host triplet. If you think this
5854 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5855 ac_tool_warned=yes ;;
5863 # Provide some information about the compiler.
5864 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5865 ac_compiler=`set X $ac_compile; echo $2`
5866 { (ac_try="$ac_compiler --version >&5"
5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 (eval "$ac_compiler --version >&5") 2>&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }
5876 { (ac_try="$ac_compiler -v >&5"
5878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5879 *) ac_try_echo=$ac_try;;
5881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5882 (eval "$ac_compiler -v >&5") 2>&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }
5886 { (ac_try="$ac_compiler -V >&5"
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892 (eval "$ac_compiler -V >&5") 2>&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }
5897 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5898 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5899 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 cat >conftest.$ac_ext <<_ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5920 rm -f conftest.$ac_objext
5921 if { (ac_try="$ac_compile"
5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927 (eval "$ac_compile") 2>conftest.er1
5929 grep -v '^ *+' conftest.er1 >conftest.err
5931 cat conftest.err >&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } &&
5934 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5935 { (case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_try") 2>&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (case "(($ac_try" in
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950 (eval "$ac_try") 2>&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; }; then
5956 echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5963 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5966 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5967 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5968 GXX=`test $ac_compiler_gnu = yes && echo yes`
5969 ac_test_CXXFLAGS=${CXXFLAGS+set}
5970 ac_save_CXXFLAGS=$CXXFLAGS
5971 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5972 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5973 if test "${ac_cv_prog_cxx_g+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5977 ac_cxx_werror_flag=yes
5980 cat >conftest.$ac_ext <<_ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5995 rm -f conftest.$ac_objext
5996 if { (ac_try="$ac_compile"
5998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5999 *) ac_try_echo=$ac_try;;
6001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6002 (eval "$ac_compile") 2>conftest.er1
6004 grep -v '^ *+' conftest.er1 >conftest.err
6006 cat conftest.err >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } &&
6009 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6010 { (case "(($ac_try" in
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_try") 2>&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; } &&
6019 { ac_try='test -s conftest.$ac_objext'
6020 { (case "(($ac_try" in
6021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022 *) ac_try_echo=$ac_try;;
6024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025 (eval "$ac_try") 2>&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6029 ac_cv_prog_cxx_g=yes
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6035 cat >conftest.$ac_ext <<_ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6050 rm -f conftest.$ac_objext
6051 if { (ac_try="$ac_compile"
6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057 (eval "$ac_compile") 2>conftest.er1
6059 grep -v '^ *+' conftest.er1 >conftest.err
6061 cat conftest.err >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } &&
6064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6065 { (case "(($ac_try" in
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070 (eval "$ac_try") 2>&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; } &&
6074 { ac_try='test -s conftest.$ac_objext'
6075 { (case "(($ac_try" in
6076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077 *) ac_try_echo=$ac_try;;
6079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080 (eval "$ac_try") 2>&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; }; then
6086 echo "$as_me: failed program was:" >&5
6087 sed 's/^/| /' conftest.$ac_ext >&5
6089 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6091 cat >conftest.$ac_ext <<_ACEOF
6094 cat confdefs.h >>conftest.$ac_ext
6095 cat >>conftest.$ac_ext <<_ACEOF
6096 /* end confdefs.h. */
6106 rm -f conftest.$ac_objext
6107 if { (ac_try="$ac_compile"
6109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6110 *) ac_try_echo=$ac_try;;
6112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6113 (eval "$ac_compile") 2>conftest.er1
6115 grep -v '^ *+' conftest.er1 >conftest.err
6117 cat conftest.err >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } &&
6120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6121 { (case "(($ac_try" in
6122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126 (eval "$ac_try") 2>&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; } &&
6130 { ac_try='test -s conftest.$ac_objext'
6131 { (case "(($ac_try" in
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136 (eval "$ac_try") 2>&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }; }; then
6140 ac_cv_prog_cxx_g=yes
6142 echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.$ac_ext >&5
6148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6157 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6158 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6159 if test "$ac_test_CXXFLAGS" = set; then
6160 CXXFLAGS=$ac_save_CXXFLAGS
6161 elif test $ac_cv_prog_cxx_g = yes; then
6162 if test "$GXX" = yes; then
6168 if test "$GXX" = yes; then
6175 ac_cpp='$CPP $CPPFLAGS'
6176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6180 { echo "$as_me:$LINENO: checking " >&5
6181 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6182 if test "${ac_cv_has_flex+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 for ac_prog in flex lex
6187 # Extract the first word of "$ac_prog", so it can be a program name with args.
6188 set dummy $ac_prog; ac_word=$2
6189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191 if test "${ac_cv_prog_LEX+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 if test -n "$LEX"; then
6195 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6204 ac_cv_prog_LEX="$ac_prog"
6205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 if test -n "$LEX"; then
6216 { echo "$as_me:$LINENO: result: $LEX" >&5
6217 echo "${ECHO_T}$LEX" >&6; }
6219 { echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6; }
6224 test -n "$LEX" && break
6226 test -n "$LEX" || LEX=":"
6228 if test -z "$LEXLIB"
6230 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6231 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6232 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 ac_check_lib_save_LIBS=$LIBS
6237 cat >conftest.$ac_ext <<_ACEOF
6240 cat confdefs.h >>conftest.$ac_ext
6241 cat >>conftest.$ac_ext <<_ACEOF
6242 /* end confdefs.h. */
6244 /* Override any GCC internal prototype to avoid an error.
6245 Use char because int might match the return type of a GCC
6246 builtin and then its argument prototype would still apply. */
6259 rm -f conftest.$ac_objext conftest$ac_exeext
6260 if { (ac_try="$ac_link"
6262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6263 *) ac_try_echo=$ac_try;;
6265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6266 (eval "$ac_link") 2>conftest.er1
6268 grep -v '^ *+' conftest.er1 >conftest.err
6270 cat conftest.err >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); } &&
6273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6274 { (case "(($ac_try" in
6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276 *) ac_try_echo=$ac_try;;
6278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6279 (eval "$ac_try") 2>&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; } &&
6283 { ac_try='test -s conftest$ac_exeext'
6284 { (case "(($ac_try" in
6285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6286 *) ac_try_echo=$ac_try;;
6288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6289 (eval "$ac_try") 2>&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; }; then
6293 ac_cv_lib_fl_yywrap=yes
6295 echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.$ac_ext >&5
6298 ac_cv_lib_fl_yywrap=no
6301 rm -f core conftest.err conftest.$ac_objext \
6302 conftest$ac_exeext conftest.$ac_ext
6303 LIBS=$ac_check_lib_save_LIBS
6305 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6306 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6307 if test $ac_cv_lib_fl_yywrap = yes; then
6310 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6311 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6312 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6315 ac_check_lib_save_LIBS=$LIBS
6317 cat >conftest.$ac_ext <<_ACEOF
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6324 /* Override any GCC internal prototype to avoid an error.
6325 Use char because int might match the return type of a GCC
6326 builtin and then its argument prototype would still apply. */
6339 rm -f conftest.$ac_objext conftest$ac_exeext
6340 if { (ac_try="$ac_link"
6342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343 *) ac_try_echo=$ac_try;;
6345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6346 (eval "$ac_link") 2>conftest.er1
6348 grep -v '^ *+' conftest.er1 >conftest.err
6350 cat conftest.err >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } &&
6353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6354 { (case "(($ac_try" in
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359 (eval "$ac_try") 2>&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; } &&
6363 { ac_try='test -s conftest$ac_exeext'
6364 { (case "(($ac_try" in
6365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366 *) ac_try_echo=$ac_try;;
6368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369 (eval "$ac_try") 2>&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; }; then
6373 ac_cv_lib_l_yywrap=yes
6375 echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.$ac_ext >&5
6378 ac_cv_lib_l_yywrap=no
6381 rm -f core conftest.err conftest.$ac_objext \
6382 conftest$ac_exeext conftest.$ac_ext
6383 LIBS=$ac_check_lib_save_LIBS
6385 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6386 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6387 if test $ac_cv_lib_l_yywrap = yes; then
6395 if test "x$LEX" != "x:"; then
6396 { echo "$as_me:$LINENO: checking lex output file root" >&5
6397 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6398 if test "${ac_cv_prog_lex_root+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 # The minimal lex program is just a single line: %%. But some broken lexes
6402 # (Solaris, I think it was) want two %% lines, so accommodate them.
6403 cat >conftest.l <<_ACEOF
6407 { (ac_try="$LEX conftest.l"
6409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6410 *) ac_try_echo=$ac_try;;
6412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6413 (eval "$LEX conftest.l") 2>&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }
6417 if test -f lex.yy.c; then
6418 ac_cv_prog_lex_root=lex.yy
6419 elif test -f lexyy.c; then
6420 ac_cv_prog_lex_root=lexyy
6422 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6423 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6424 { (exit 1); exit 1; }; }
6427 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6428 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6430 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6432 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6433 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6434 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 # POSIX says lex can declare yytext either as a pointer or an array; the
6438 # default is implementation-dependent. Figure out which it is, since
6439 # not all implementations provide the %pointer and %array declarations.
6440 ac_cv_prog_lex_yytext_pointer=no
6441 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6443 LIBS="$LIBS $LEXLIB"
6444 cat >conftest.$ac_ext <<_ACEOF
6445 `cat $LEX_OUTPUT_ROOT.c`
6447 rm -f conftest.$ac_objext conftest$ac_exeext
6448 if { (ac_try="$ac_link"
6450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6451 *) ac_try_echo=$ac_try;;
6453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6454 (eval "$ac_link") 2>conftest.er1
6456 grep -v '^ *+' conftest.er1 >conftest.err
6458 cat conftest.err >&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); } &&
6461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6462 { (case "(($ac_try" in
6463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6464 *) ac_try_echo=$ac_try;;
6466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6467 (eval "$ac_try") 2>&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; } &&
6471 { ac_try='test -s conftest$ac_exeext'
6472 { (case "(($ac_try" in
6473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6474 *) ac_try_echo=$ac_try;;
6476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6477 (eval "$ac_try") 2>&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }; }; then
6481 ac_cv_prog_lex_yytext_pointer=yes
6483 echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6489 rm -f core conftest.err conftest.$ac_objext \
6490 conftest$ac_exeext conftest.$ac_ext
6492 rm -f "${LEX_OUTPUT_ROOT}.c"
6495 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6496 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6497 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6499 cat >>confdefs.h <<\_ACEOF
6500 #define YYTEXT_POINTER 1
6508 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6509 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6510 if test "$LEX" != "flex"; then
6511 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6512 echo "$as_me: error: flex not found but required" >&2;}
6513 { (exit 1); exit 1; }; }
6519 { echo "$as_me:$LINENO: checking " >&5
6520 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6521 if test "${llvm_cv_has_bison+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6524 for ac_prog in 'bison -y' byacc
6526 # Extract the first word of "$ac_prog", so it can be a program name with args.
6527 set dummy $ac_prog; ac_word=$2
6528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6530 if test "${ac_cv_prog_YACC+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 if test -n "$YACC"; then
6534 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 test -z "$as_dir" && as_dir=.
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6543 ac_cv_prog_YACC="$ac_prog"
6544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 YACC=$ac_cv_prog_YACC
6554 if test -n "$YACC"; then
6555 { echo "$as_me:$LINENO: result: $YACC" >&5
6556 echo "${ECHO_T}$YACC" >&6; }
6558 { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6563 test -n "$YACC" && break
6565 test -n "$YACC" || YACC="yacc"
6568 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6569 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6570 if test "$YACC" != "bison -y"; then
6572 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6573 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6579 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6580 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6581 if test "${lt_cv_path_NM+set}" = set; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
6584 if test -n "$NM"; then
6585 # Let the user override the test.
6588 lt_nm_to_check="${ac_tool_prefix}nm"
6589 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6590 lt_nm_to_check="$lt_nm_to_check nm"
6592 for lt_tmp_nm in $lt_nm_to_check; do
6593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6594 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6596 test -z "$ac_dir" && ac_dir=.
6597 tmp_nm="$ac_dir/$lt_tmp_nm"
6598 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6599 # Check to see if the nm accepts a BSD-compat flag.
6600 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6601 # nm: unknown option "B" ignored
6602 # Tru64's nm complains that /dev/null is an invalid object file
6603 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6604 */dev/null* | *'Invalid file or object type'*)
6605 lt_cv_path_NM="$tmp_nm -B"
6609 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6611 lt_cv_path_NM="$tmp_nm -p"
6615 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6616 continue # so that we can try to find one that supports BSD flags
6625 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6628 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6629 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6634 { echo "$as_me:$LINENO: checking for GNU make" >&5
6635 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6636 if test "${llvm_cv_gnu_make_command+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6639 llvm_cv_gnu_make_command=''
6640 for a in "$MAKE" make gmake gnumake ; do
6641 if test -z "$a" ; then continue ; fi ;
6642 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6644 llvm_cv_gnu_make_command=$a ;
6649 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6650 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6651 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6655 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6656 echo "${ECHO_T}\"Not found\"" >&6; };
6660 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6661 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6663 if test "$LN_S" = "ln -s"; then
6664 { echo "$as_me:$LINENO: result: yes" >&5
6665 echo "${ECHO_T}yes" >&6; }
6667 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6668 echo "${ECHO_T}no, using $LN_S" >&6; }
6671 # Extract the first word of "cmp", so it can be a program name with args.
6672 set dummy cmp; ac_word=$2
6673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6675 if test "${ac_cv_path_CMP+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6690 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6703 if test -n "$CMP"; then
6704 { echo "$as_me:$LINENO: result: $CMP" >&5
6705 echo "${ECHO_T}$CMP" >&6; }
6707 { echo "$as_me:$LINENO: result: no" >&5
6708 echo "${ECHO_T}no" >&6; }
6712 # Extract the first word of "cp", so it can be a program name with args.
6713 set dummy cp; ac_word=$2
6714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6716 if test "${ac_cv_path_CP+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6721 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
6730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6731 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6739 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6744 if test -n "$CP"; then
6745 { echo "$as_me:$LINENO: result: $CP" >&5
6746 echo "${ECHO_T}$CP" >&6; }
6748 { echo "$as_me:$LINENO: result: no" >&5
6749 echo "${ECHO_T}no" >&6; }
6753 # Extract the first word of "date", so it can be a program name with args.
6754 set dummy date; ac_word=$2
6755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6757 if test "${ac_cv_path_DATE+set}" = set; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6762 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6772 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6780 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6784 DATE=$ac_cv_path_DATE
6785 if test -n "$DATE"; then
6786 { echo "$as_me:$LINENO: result: $DATE" >&5
6787 echo "${ECHO_T}$DATE" >&6; }
6789 { echo "$as_me:$LINENO: result: no" >&5
6790 echo "${ECHO_T}no" >&6; }
6794 # Extract the first word of "find", so it can be a program name with args.
6795 set dummy find; ac_word=$2
6796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6798 if test "${ac_cv_path_FIND+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6813 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6825 FIND=$ac_cv_path_FIND
6826 if test -n "$FIND"; then
6827 { echo "$as_me:$LINENO: result: $FIND" >&5
6828 echo "${ECHO_T}$FIND" >&6; }
6830 { echo "$as_me:$LINENO: result: no" >&5
6831 echo "${ECHO_T}no" >&6; }
6835 # Extract the first word of "grep", so it can be a program name with args.
6836 set dummy grep; ac_word=$2
6837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6839 if test "${ac_cv_path_GREP+set}" = set; then
6840 echo $ECHO_N "(cached) $ECHO_C" >&6
6844 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6854 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6866 GREP=$ac_cv_path_GREP
6867 if test -n "$GREP"; then
6868 { echo "$as_me:$LINENO: result: $GREP" >&5
6869 echo "${ECHO_T}$GREP" >&6; }
6871 { echo "$as_me:$LINENO: result: no" >&5
6872 echo "${ECHO_T}no" >&6; }
6876 # Extract the first word of "mkdir", so it can be a program name with args.
6877 set dummy mkdir; ac_word=$2
6878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6880 if test "${ac_cv_path_MKDIR+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6895 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6907 MKDIR=$ac_cv_path_MKDIR
6908 if test -n "$MKDIR"; then
6909 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6910 echo "${ECHO_T}$MKDIR" >&6; }
6912 { echo "$as_me:$LINENO: result: no" >&5
6913 echo "${ECHO_T}no" >&6; }
6917 # Extract the first word of "mv", so it can be a program name with args.
6918 set dummy mv; ac_word=$2
6919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6921 if test "${ac_cv_path_MV+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933 test -z "$as_dir" && as_dir=.
6934 for ac_exec_ext in '' $ac_executable_extensions; do
6935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6936 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6949 if test -n "$MV"; then
6950 { echo "$as_me:$LINENO: result: $MV" >&5
6951 echo "${ECHO_T}$MV" >&6; }
6953 { echo "$as_me:$LINENO: result: no" >&5
6954 echo "${ECHO_T}no" >&6; }
6958 if test -n "$ac_tool_prefix"; then
6959 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6960 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6963 if test "${ac_cv_prog_RANLIB+set}" = set; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 if test -n "$RANLIB"; then
6967 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 test -z "$as_dir" && as_dir=.
6974 for ac_exec_ext in '' $ac_executable_extensions; do
6975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6976 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6986 RANLIB=$ac_cv_prog_RANLIB
6987 if test -n "$RANLIB"; then
6988 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6989 echo "${ECHO_T}$RANLIB" >&6; }
6991 { echo "$as_me:$LINENO: result: no" >&5
6992 echo "${ECHO_T}no" >&6; }
6997 if test -z "$ac_cv_prog_RANLIB"; then
6998 ac_ct_RANLIB=$RANLIB
6999 # Extract the first word of "ranlib", so it can be a program name with args.
7000 set dummy ranlib; ac_word=$2
7001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7003 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 if test -n "$ac_ct_RANLIB"; then
7007 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 test -z "$as_dir" && as_dir=.
7014 for ac_exec_ext in '' $ac_executable_extensions; do
7015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7016 ac_cv_prog_ac_ct_RANLIB="ranlib"
7017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7027 if test -n "$ac_ct_RANLIB"; then
7028 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7029 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7031 { echo "$as_me:$LINENO: result: no" >&5
7032 echo "${ECHO_T}no" >&6; }
7035 if test "x$ac_ct_RANLIB" = x; then
7038 case $cross_compiling:$ac_tool_warned in
7040 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7041 whose name does not start with the host triplet. If you think this
7042 configuration is useful to you, please write to autoconf@gnu.org." >&5
7043 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7044 whose name does not start with the host triplet. If you think this
7045 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7046 ac_tool_warned=yes ;;
7048 RANLIB=$ac_ct_RANLIB
7051 RANLIB="$ac_cv_prog_RANLIB"
7054 # Extract the first word of "rm", so it can be a program name with args.
7055 set dummy rm; ac_word=$2
7056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7058 if test "${ac_cv_path_RM+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7073 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7086 if test -n "$RM"; then
7087 { echo "$as_me:$LINENO: result: $RM" >&5
7088 echo "${ECHO_T}$RM" >&6; }
7090 { echo "$as_me:$LINENO: result: no" >&5
7091 echo "${ECHO_T}no" >&6; }
7095 # Extract the first word of "sed", so it can be a program name with args.
7096 set dummy sed; ac_word=$2
7097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7099 if test "${ac_cv_path_SED+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7114 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7127 if test -n "$SED"; then
7128 { echo "$as_me:$LINENO: result: $SED" >&5
7129 echo "${ECHO_T}$SED" >&6; }
7131 { echo "$as_me:$LINENO: result: no" >&5
7132 echo "${ECHO_T}no" >&6; }
7136 # Extract the first word of "tar", so it can be a program name with args.
7137 set dummy tar; ac_word=$2
7138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7140 if test "${ac_cv_path_TAR+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7163 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7168 if test -n "$TAR"; then
7169 { echo "$as_me:$LINENO: result: $TAR" >&5
7170 echo "${ECHO_T}$TAR" >&6; }
7172 { echo "$as_me:$LINENO: result: no" >&5
7173 echo "${ECHO_T}no" >&6; }
7177 # Extract the first word of "pwd", so it can be a program name with args.
7178 set dummy pwd; ac_word=$2
7179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7181 if test "${ac_cv_path_BINPWD+set}" = set; then
7182 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7196 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7208 BINPWD=$ac_cv_path_BINPWD
7209 if test -n "$BINPWD"; then
7210 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7211 echo "${ECHO_T}$BINPWD" >&6; }
7213 { echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6; }
7219 # Extract the first word of "Graphviz", so it can be a program name with args.
7220 set dummy Graphviz; ac_word=$2
7221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7223 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 test -z "$as_dir" && as_dir=.
7236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7238 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7250 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7251 if test -n "$GRAPHVIZ"; then
7252 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7253 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7255 { echo "$as_me:$LINENO: result: no" >&5
7256 echo "${ECHO_T}no" >&6; }
7260 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7262 cat >>confdefs.h <<\_ACEOF
7263 #define HAVE_GRAPHVIZ 1
7266 if test "$llvm_cv_os_type" = "MingW" ; then
7267 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7270 cat >>confdefs.h <<_ACEOF
7271 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7275 # Extract the first word of "dot", so it can be a program name with args.
7276 set dummy dot; ac_word=$2
7277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7279 if test "${ac_cv_path_DOT+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7284 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 test -z "$as_dir" && as_dir=.
7292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7294 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7307 if test -n "$DOT"; then
7308 { echo "$as_me:$LINENO: result: $DOT" >&5
7309 echo "${ECHO_T}$DOT" >&6; }
7311 { echo "$as_me:$LINENO: result: no" >&5
7312 echo "${ECHO_T}no" >&6; }
7316 if test "$DOT" != "echo dot" ; then
7318 cat >>confdefs.h <<\_ACEOF
7322 if test "$llvm_cv_os_type" = "MingW" ; then
7323 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7326 cat >>confdefs.h <<_ACEOF
7327 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7331 for ac_prog in gv gsview32
7333 # Extract the first word of "$ac_prog", so it can be a program name with args.
7334 set dummy $ac_prog; ac_word=$2
7335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7337 if test "${ac_cv_path_GV+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7352 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 if test -n "$GV"; then
7365 { echo "$as_me:$LINENO: result: $GV" >&5
7366 echo "${ECHO_T}$GV" >&6; }
7368 { echo "$as_me:$LINENO: result: no" >&5
7369 echo "${ECHO_T}no" >&6; }
7373 test -n "$GV" && break
7375 test -n "$GV" || GV="echo gv"
7377 if test "$GV" != "echo gv" ; then
7379 cat >>confdefs.h <<\_ACEOF
7383 if test "$llvm_cv_os_type" = "MingW" ; then
7384 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7387 cat >>confdefs.h <<_ACEOF
7388 #define LLVM_PATH_GV "$GV${EXEEXT}"
7392 # Extract the first word of "dotty", so it can be a program name with args.
7393 set dummy dotty; ac_word=$2
7394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7396 if test "${ac_cv_path_DOTTY+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7411 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7423 DOTTY=$ac_cv_path_DOTTY
7424 if test -n "$DOTTY"; then
7425 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7426 echo "${ECHO_T}$DOTTY" >&6; }
7428 { echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6; }
7433 if test "$DOTTY" != "echo dotty" ; then
7435 cat >>confdefs.h <<\_ACEOF
7436 #define HAVE_DOTTY 1
7439 if test "$llvm_cv_os_type" = "MingW" ; then
7440 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7443 cat >>confdefs.h <<_ACEOF
7444 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7450 # Extract the first word of "perl", so it can be a program name with args.
7451 set dummy perl; ac_word=$2
7452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7454 if test "${ac_cv_path_PERL+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7469 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7477 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7481 PERL=$ac_cv_path_PERL
7482 if test -n "$PERL"; then
7483 { echo "$as_me:$LINENO: result: $PERL" >&5
7484 echo "${ECHO_T}$PERL" >&6; }
7486 { echo "$as_me:$LINENO: result: no" >&5
7487 echo "${ECHO_T}no" >&6; }
7491 if test "$PERL" != "none"; then
7492 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7493 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7494 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7495 { echo "$as_me:$LINENO: result: yes" >&5
7496 echo "${ECHO_T}yes" >&6; }
7499 { echo "$as_me:$LINENO: result: not found" >&5
7500 echo "${ECHO_T}not found" >&6; }
7505 if test x"$PERL" = xnone; then
7508 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7509 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7510 { (exit 1); exit 1; }; }
7516 # Find a good install program. We prefer a C program (faster),
7517 # so one script is as good as another. But avoid the broken or
7518 # incompatible versions:
7519 # SysV /etc/install, /usr/sbin/install
7520 # SunOS /usr/etc/install
7521 # IRIX /sbin/install
7523 # AmigaOS /C/install, which installs bootblocks on floppy discs
7524 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7525 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7526 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7527 # OS/2's system install, which has a completely different semantic
7528 # ./install, which can be erroneously created by make from ./install.sh.
7529 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7530 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7531 if test -z "$INSTALL"; then
7532 if test "${ac_cv_path_install+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 test -z "$as_dir" && as_dir=.
7540 # Account for people who put trailing slashes in PATH elements.
7542 ./ | .// | /cC/* | \
7543 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7544 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7547 # OSF1 and SCO ODT 3.0 have their own names for install.
7548 # Don't use installbsd from OSF since it installs stuff as root
7550 for ac_prog in ginstall scoinst install; do
7551 for ac_exec_ext in '' $ac_executable_extensions; do
7552 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7553 if test $ac_prog = install &&
7554 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7555 # AIX install. It has an incompatible calling convention.
7557 elif test $ac_prog = install &&
7558 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7559 # program-specific install script used by HP pwplus--don't use.
7562 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7575 if test "${ac_cv_path_install+set}" = set; then
7576 INSTALL=$ac_cv_path_install
7578 # As a last resort, use the slow shell script. Don't cache a
7579 # value for INSTALL within a source directory, because that will
7580 # break other packages using the cache if that directory is
7581 # removed, or if the value is a relative name.
7582 INSTALL=$ac_install_sh
7585 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7586 echo "${ECHO_T}$INSTALL" >&6; }
7588 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7589 # It thinks the first close brace ends the variable substitution.
7590 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7592 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7594 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7597 # Extract the first word of "bzip2", so it can be a program name with args.
7598 set dummy bzip2; ac_word=$2
7599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7601 if test "${ac_cv_path_BZIP2+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7616 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7627 BZIP2=$ac_cv_path_BZIP2
7628 if test -n "$BZIP2"; then
7629 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7630 echo "${ECHO_T}$BZIP2" >&6; }
7632 { echo "$as_me:$LINENO: result: no" >&5
7633 echo "${ECHO_T}no" >&6; }
7637 # Extract the first word of "doxygen", so it can be a program name with args.
7638 set dummy doxygen; ac_word=$2
7639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7641 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653 test -z "$as_dir" && as_dir=.
7654 for ac_exec_ext in '' $ac_executable_extensions; do
7655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7656 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7667 DOXYGEN=$ac_cv_path_DOXYGEN
7668 if test -n "$DOXYGEN"; then
7669 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7670 echo "${ECHO_T}$DOXYGEN" >&6; }
7672 { echo "$as_me:$LINENO: result: no" >&5
7673 echo "${ECHO_T}no" >&6; }
7677 # Extract the first word of "groff", so it can be a program name with args.
7678 set dummy groff; ac_word=$2
7679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7681 if test "${ac_cv_path_GROFF+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7686 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7696 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7707 GROFF=$ac_cv_path_GROFF
7708 if test -n "$GROFF"; then
7709 { echo "$as_me:$LINENO: result: $GROFF" >&5
7710 echo "${ECHO_T}$GROFF" >&6; }
7712 { echo "$as_me:$LINENO: result: no" >&5
7713 echo "${ECHO_T}no" >&6; }
7717 # Extract the first word of "gzip", so it can be a program name with args.
7718 set dummy gzip; ac_word=$2
7719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7721 if test "${ac_cv_path_GZIP+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 test -z "$as_dir" && as_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7736 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 GZIP=$ac_cv_path_GZIP
7748 if test -n "$GZIP"; then
7749 { echo "$as_me:$LINENO: result: $GZIP" >&5
7750 echo "${ECHO_T}$GZIP" >&6; }
7752 { echo "$as_me:$LINENO: result: no" >&5
7753 echo "${ECHO_T}no" >&6; }
7757 # Extract the first word of "pod2html", so it can be a program name with args.
7758 set dummy pod2html; ac_word=$2
7759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7761 if test "${ac_cv_path_POD2HTML+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7766 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 test -z "$as_dir" && as_dir=.
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7776 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 POD2HTML=$ac_cv_path_POD2HTML
7788 if test -n "$POD2HTML"; then
7789 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7790 echo "${ECHO_T}$POD2HTML" >&6; }
7792 { echo "$as_me:$LINENO: result: no" >&5
7793 echo "${ECHO_T}no" >&6; }
7797 # Extract the first word of "pod2man", so it can be a program name with args.
7798 set dummy pod2man; ac_word=$2
7799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7801 if test "${ac_cv_path_POD2MAN+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7806 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 test -z "$as_dir" && as_dir=.
7814 for ac_exec_ext in '' $ac_executable_extensions; do
7815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7816 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7827 POD2MAN=$ac_cv_path_POD2MAN
7828 if test -n "$POD2MAN"; then
7829 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7830 echo "${ECHO_T}$POD2MAN" >&6; }
7832 { echo "$as_me:$LINENO: result: no" >&5
7833 echo "${ECHO_T}no" >&6; }
7837 # Extract the first word of "runtest", so it can be a program name with args.
7838 set dummy runtest; ac_word=$2
7839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7841 if test "${ac_cv_path_RUNTEST+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7846 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 test -z "$as_dir" && as_dir=.
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7856 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7867 RUNTEST=$ac_cv_path_RUNTEST
7868 if test -n "$RUNTEST"; then
7869 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7870 echo "${ECHO_T}$RUNTEST" >&6; }
7872 { echo "$as_me:$LINENO: result: no" >&5
7873 echo "${ECHO_T}no" >&6; }
7879 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7880 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7882 # Check whether --with-tclinclude was given.
7883 if test "${with_tclinclude+set}" = set; then
7884 withval=$with_tclinclude; with_tclinclude=${withval}
7889 if test "${ac_cv_path_tclsh+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 if test x"${with_tclinclude}" != x ; then
7894 if test -f ${with_tclinclude}/tclsh ; then
7895 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7896 elif test -f ${with_tclinclude}/src/tclsh ; then
7897 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7899 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7900 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7901 { (exit 1); exit 1; }; }
7905 if test x"${ac_cv_path_tclsh}" = x ; then
7906 { echo "$as_me:$LINENO: result: none" >&5
7907 echo "${ECHO_T}none" >&6; }
7908 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
7910 # Extract the first word of "$ac_prog", so it can be a program name with args.
7911 set dummy $ac_prog; ac_word=$2
7912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7914 if test "${ac_cv_path_TCLSH+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7929 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 TCLSH=$ac_cv_path_TCLSH
7941 if test -n "$TCLSH"; then
7942 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7943 echo "${ECHO_T}$TCLSH" >&6; }
7945 { echo "$as_me:$LINENO: result: no" >&5
7946 echo "${ECHO_T}no" >&6; }
7950 test -n "$TCLSH" && break
7953 if test x"${TCLSH}" = x ; then
7954 ac_cv_path_tclsh='';
7956 ac_cv_path_tclsh="${TCLSH}";
7959 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7960 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7961 TCLSH="${ac_cv_path_tclsh}"
7967 # Extract the first word of "zip", so it can be a program name with args.
7968 set dummy zip; ac_word=$2
7969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7971 if test "${ac_cv_path_ZIP+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 test -z "$as_dir" && as_dir=.
7984 for ac_exec_ext in '' $ac_executable_extensions; do
7985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7986 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 if test -n "$ZIP"; then
7999 { echo "$as_me:$LINENO: result: $ZIP" >&5
8000 echo "${ECHO_T}$ZIP" >&6; }
8002 { echo "$as_me:$LINENO: result: no" >&5
8003 echo "${ECHO_T}no" >&6; }
8007 for ac_prog in ocamlc.opt ocamlc
8009 # Extract the first word of "$ac_prog", so it can be a program name with args.
8010 set dummy $ac_prog; ac_word=$2
8011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8013 if test "${ac_cv_path_OCAMLC+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 test -z "$as_dir" && as_dir=.
8026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8028 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8039 OCAMLC=$ac_cv_path_OCAMLC
8040 if test -n "$OCAMLC"; then
8041 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8042 echo "${ECHO_T}$OCAMLC" >&6; }
8044 { echo "$as_me:$LINENO: result: no" >&5
8045 echo "${ECHO_T}no" >&6; }
8049 test -n "$OCAMLC" && break
8052 for ac_prog in ocamlopt.opt ocamlopt
8054 # Extract the first word of "$ac_prog", so it can be a program name with args.
8055 set dummy $ac_prog; ac_word=$2
8056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8058 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 test -z "$as_dir" && as_dir=.
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8073 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 OCAMLOPT=$ac_cv_path_OCAMLOPT
8085 if test -n "$OCAMLOPT"; then
8086 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8087 echo "${ECHO_T}$OCAMLOPT" >&6; }
8089 { echo "$as_me:$LINENO: result: no" >&5
8090 echo "${ECHO_T}no" >&6; }
8094 test -n "$OCAMLOPT" && break
8097 for ac_prog in ocamldep.opt ocamldep
8099 # Extract the first word of "$ac_prog", so it can be a program name with args.
8100 set dummy $ac_prog; ac_word=$2
8101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8103 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115 test -z "$as_dir" && as_dir=.
8116 for ac_exec_ext in '' $ac_executable_extensions; do
8117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8118 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8129 OCAMLDEP=$ac_cv_path_OCAMLDEP
8130 if test -n "$OCAMLDEP"; then
8131 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8132 echo "${ECHO_T}$OCAMLDEP" >&6; }
8134 { echo "$as_me:$LINENO: result: no" >&5
8135 echo "${ECHO_T}no" >&6; }
8139 test -n "$OCAMLDEP" && break
8142 for ac_prog in ocamldoc.opt ocamldoc
8144 # Extract the first word of "$ac_prog", so it can be a program name with args.
8145 set dummy $ac_prog; ac_word=$2
8146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8148 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
8153 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 test -z "$as_dir" && as_dir=.
8161 for ac_exec_ext in '' $ac_executable_extensions; do
8162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8163 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8174 OCAMLDOC=$ac_cv_path_OCAMLDOC
8175 if test -n "$OCAMLDOC"; then
8176 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8177 echo "${ECHO_T}$OCAMLDOC" >&6; }
8179 { echo "$as_me:$LINENO: result: no" >&5
8180 echo "${ECHO_T}no" >&6; }
8184 test -n "$OCAMLDOC" && break
8188 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8189 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8190 if test "${llvm_cv_link_use_r+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8194 ac_cpp='$CPP $CPPFLAGS'
8195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8200 CFLAGS="$CFLAGS -Wl,-R."
8201 cat >conftest.$ac_ext <<_ACEOF
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h. */
8211 int main() { return 0; }
8216 rm -f conftest.$ac_objext conftest$ac_exeext
8217 if { (ac_try="$ac_link"
8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220 *) ac_try_echo=$ac_try;;
8222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223 (eval "$ac_link") 2>conftest.er1
8225 grep -v '^ *+' conftest.er1 >conftest.err
8227 cat conftest.err >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } &&
8230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8231 { (case "(($ac_try" in
8232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8233 *) ac_try_echo=$ac_try;;
8235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8236 (eval "$ac_try") 2>&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; } &&
8240 { ac_try='test -s conftest$ac_exeext'
8241 { (case "(($ac_try" in
8242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8243 *) ac_try_echo=$ac_try;;
8245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8246 (eval "$ac_try") 2>&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; }; then
8250 llvm_cv_link_use_r=yes
8252 echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8255 llvm_cv_link_use_r=no
8258 rm -f core conftest.err conftest.$ac_objext \
8259 conftest$ac_exeext conftest.$ac_ext
8262 ac_cpp='$CPP $CPPFLAGS'
8263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8269 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8270 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8271 if test "$llvm_cv_link_use_r" = yes ; then
8273 cat >>confdefs.h <<\_ACEOF
8274 #define HAVE_LINK_R 1
8282 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8283 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8284 if test "${ac_cv_c_const+set}" = set; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 cat >conftest.$ac_ext <<_ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h. */
8297 /* FIXME: Include the comments suggested by Paul. */
8299 /* Ultrix mips cc rejects this. */
8300 typedef int charset[2];
8302 /* SunOS 4.1.1 cc rejects this. */
8303 char const *const *ccp;
8305 /* NEC SVR4.0.2 mips cc rejects this. */
8306 struct point {int x, y;};
8307 static struct point const zero = {0,0};
8308 /* AIX XL C 1.02.0.0 rejects this.
8309 It does not let you subtract one const X* pointer from another in
8310 an arm of an if-expression whose if-part is not a constant
8312 const char *g = "string";
8313 ccp = &g + (g ? g-g : 0);
8314 /* HPUX 7.0 cc rejects these. */
8317 ccp = (char const *const *) p;
8318 { /* SCO 3.2v4 cc rejects this. */
8320 char const *s = 0 ? (char *) 0 : (char const *) 0;
8325 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8327 const int *foo = &x[0];
8330 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8331 typedef const int *iptr;
8335 { /* AIX XL C 1.02.0.0 rejects this saying
8336 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8337 struct s { int j; const int *ap[3]; };
8338 struct s *b; b->j = 5;
8340 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8344 return !x[0] && !zero.x;
8351 rm -f conftest.$ac_objext
8352 if { (ac_try="$ac_compile"
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_compile") 2>conftest.er1
8360 grep -v '^ *+' conftest.er1 >conftest.err
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } &&
8365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8366 { (case "(($ac_try" in
8367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368 *) ac_try_echo=$ac_try;;
8370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371 (eval "$ac_try") 2>&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; } &&
8375 { ac_try='test -s conftest.$ac_objext'
8376 { (case "(($ac_try" in
8377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378 *) ac_try_echo=$ac_try;;
8380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8381 (eval "$ac_try") 2>&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; }; then
8387 echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8395 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8396 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8397 if test $ac_cv_c_const = no; then
8399 cat >>confdefs.h <<\_ACEOF
8411 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8412 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8413 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8414 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8416 echo $ECHO_N "(cached) $ECHO_C" >&6
8418 cat >conftest.$ac_ext <<_ACEOF
8421 cat confdefs.h >>conftest.$ac_ext
8422 cat >>conftest.$ac_ext <<_ACEOF
8423 /* end confdefs.h. */
8424 #include <sys/types.h>
8436 rm -f conftest.$ac_objext
8437 if { (ac_try="$ac_compile"
8439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440 *) ac_try_echo=$ac_try;;
8442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8443 (eval "$ac_compile") 2>conftest.er1
8445 grep -v '^ *+' conftest.er1 >conftest.err
8447 cat conftest.err >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8451 { (case "(($ac_try" in
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_try") 2>&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; } &&
8460 { ac_try='test -s conftest.$ac_objext'
8461 { (case "(($ac_try" in
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466 (eval "$ac_try") 2>&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
8470 eval "$as_ac_Header=yes"
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8475 eval "$as_ac_Header=no"
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8480 ac_res=`eval echo '${'$as_ac_Header'}'`
8481 { echo "$as_me:$LINENO: result: $ac_res" >&5
8482 echo "${ECHO_T}$ac_res" >&6; }
8483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8484 cat >>confdefs.h <<_ACEOF
8485 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8488 ac_header_dirent=$ac_hdr; break
8492 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8493 if test $ac_header_dirent = dirent.h; then
8494 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8495 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8496 if test "${ac_cv_search_opendir+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 ac_func_search_save_LIBS=$LIBS
8500 cat >conftest.$ac_ext <<_ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8507 /* Override any GCC internal prototype to avoid an error.
8508 Use char because int might match the return type of a GCC
8509 builtin and then its argument prototype would still apply. */
8522 for ac_lib in '' dir; do
8523 if test -z "$ac_lib"; then
8524 ac_res="none required"
8527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8529 rm -f conftest.$ac_objext conftest$ac_exeext
8530 if { (ac_try="$ac_link"
8532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8533 *) ac_try_echo=$ac_try;;
8535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8536 (eval "$ac_link") 2>conftest.er1
8538 grep -v '^ *+' conftest.er1 >conftest.err
8540 cat conftest.err >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } &&
8543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8544 { (case "(($ac_try" in
8545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546 *) ac_try_echo=$ac_try;;
8548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8549 (eval "$ac_try") 2>&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); }; } &&
8553 { ac_try='test -s conftest$ac_exeext'
8554 { (case "(($ac_try" in
8555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8556 *) ac_try_echo=$ac_try;;
8558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8559 (eval "$ac_try") 2>&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; }; then
8563 ac_cv_search_opendir=$ac_res
8565 echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8571 rm -f core conftest.err conftest.$ac_objext \
8573 if test "${ac_cv_search_opendir+set}" = set; then
8577 if test "${ac_cv_search_opendir+set}" = set; then
8580 ac_cv_search_opendir=no
8583 LIBS=$ac_func_search_save_LIBS
8585 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8586 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8587 ac_res=$ac_cv_search_opendir
8588 if test "$ac_res" != no; then
8589 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8594 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8595 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8596 if test "${ac_cv_search_opendir+set}" = set; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8599 ac_func_search_save_LIBS=$LIBS
8600 cat >conftest.$ac_ext <<_ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h. */
8607 /* Override any GCC internal prototype to avoid an error.
8608 Use char because int might match the return type of a GCC
8609 builtin and then its argument prototype would still apply. */
8622 for ac_lib in '' x; do
8623 if test -z "$ac_lib"; then
8624 ac_res="none required"
8627 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8629 rm -f conftest.$ac_objext conftest$ac_exeext
8630 if { (ac_try="$ac_link"
8632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8633 *) ac_try_echo=$ac_try;;
8635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8636 (eval "$ac_link") 2>conftest.er1
8638 grep -v '^ *+' conftest.er1 >conftest.err
8640 cat conftest.err >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } &&
8643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8644 { (case "(($ac_try" in
8645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8646 *) ac_try_echo=$ac_try;;
8648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8649 (eval "$ac_try") 2>&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; } &&
8653 { ac_try='test -s conftest$ac_exeext'
8654 { (case "(($ac_try" in
8655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656 *) ac_try_echo=$ac_try;;
8658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8659 (eval "$ac_try") 2>&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; }; then
8663 ac_cv_search_opendir=$ac_res
8665 echo "$as_me: failed program was:" >&5
8666 sed 's/^/| /' conftest.$ac_ext >&5
8671 rm -f core conftest.err conftest.$ac_objext \
8673 if test "${ac_cv_search_opendir+set}" = set; then
8677 if test "${ac_cv_search_opendir+set}" = set; then
8680 ac_cv_search_opendir=no
8683 LIBS=$ac_func_search_save_LIBS
8685 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8686 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8687 ac_res=$ac_cv_search_opendir
8688 if test "$ac_res" != no; then
8689 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8696 for ac_header in dlfcn.h
8698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 ac_res=`eval echo '${'$as_ac_Header'}'`
8706 { echo "$as_me:$LINENO: result: $ac_res" >&5
8707 echo "${ECHO_T}$ac_res" >&6; }
8709 # Is the header compilable?
8710 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8712 cat >conftest.$ac_ext <<_ACEOF
8715 cat confdefs.h >>conftest.$ac_ext
8716 cat >>conftest.$ac_ext <<_ACEOF
8717 /* end confdefs.h. */
8718 $ac_includes_default
8719 #include <$ac_header>
8721 rm -f conftest.$ac_objext
8722 if { (ac_try="$ac_compile"
8724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725 *) ac_try_echo=$ac_try;;
8727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8728 (eval "$ac_compile") 2>conftest.er1
8730 grep -v '^ *+' conftest.er1 >conftest.err
8732 cat conftest.err >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } &&
8735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8736 { (case "(($ac_try" in
8737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8738 *) ac_try_echo=$ac_try;;
8740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8741 (eval "$ac_try") 2>&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); }; } &&
8745 { ac_try='test -s conftest.$ac_objext'
8746 { (case "(($ac_try" in
8747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8748 *) ac_try_echo=$ac_try;;
8750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8751 (eval "$ac_try") 2>&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); }; }; then
8755 ac_header_compiler=yes
8757 echo "$as_me: failed program was:" >&5
8758 sed 's/^/| /' conftest.$ac_ext >&5
8760 ac_header_compiler=no
8763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8765 echo "${ECHO_T}$ac_header_compiler" >&6; }
8767 # Is the header present?
8768 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8770 cat >conftest.$ac_ext <<_ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h. */
8776 #include <$ac_header>
8778 if { (ac_try="$ac_cpp conftest.$ac_ext"
8780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781 *) ac_try_echo=$ac_try;;
8783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8786 grep -v '^ *+' conftest.er1 >conftest.err
8788 cat conftest.err >&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); } >/dev/null; then
8791 if test -s conftest.err; then
8792 ac_cpp_err=$ac_c_preproc_warn_flag
8793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8800 if test -z "$ac_cpp_err"; then
8801 ac_header_preproc=yes
8803 echo "$as_me: failed program was:" >&5
8804 sed 's/^/| /' conftest.$ac_ext >&5
8806 ac_header_preproc=no
8809 rm -f conftest.err conftest.$ac_ext
8810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8811 echo "${ECHO_T}$ac_header_preproc" >&6; }
8813 # So? What about this header?
8814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8820 ac_header_preproc=yes
8823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8826 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8830 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8836 ## ----------------------------------- ##
8837 ## Report this to llvmbugs@cs.uiuc.edu ##
8838 ## ----------------------------------- ##
8840 ) | sed "s/^/$as_me: WARNING: /" >&2
8843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8848 eval "$as_ac_Header=\$ac_header_preproc"
8850 ac_res=`eval echo '${'$as_ac_Header'}'`
8851 { echo "$as_me:$LINENO: result: $ac_res" >&5
8852 echo "${ECHO_T}$ac_res" >&6; }
8855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8856 cat >>confdefs.h <<_ACEOF
8857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8864 # Check whether --enable-ltdl-install was given.
8865 if test "${enable_ltdl_install+set}" = set; then
8866 enableval=$enable_ltdl_install;
8872 if test x"${enable_ltdl_install-no}" != xno; then
8874 INSTALL_LTDL_FALSE='#'
8876 INSTALL_LTDL_TRUE='#'
8882 if test x"${enable_ltdl_convenience-no}" != xno; then
8883 CONVENIENCE_LTDL_TRUE=
8884 CONVENIENCE_LTDL_FALSE='#'
8886 CONVENIENCE_LTDL_TRUE='#'
8887 CONVENIENCE_LTDL_FALSE=
8891 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8892 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8894 libname_spec='lib$name'
8902 shlibpath_overrides_runpath=unknown
8904 dynamic_linker="$host_os ld.so"
8905 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8906 if test "$GCC" = yes; then
8907 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8908 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8909 # if the path contains ";" then we assume it to be the separator
8910 # otherwise default to the standard path separator (i.e. ":") - it is
8911 # assumed that no part of a normal pathname contains ";" but that should
8912 # okay in the real world where ";" in dirpaths is itself problematic.
8913 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8915 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8918 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8920 need_lib_prefix=unknown
8921 hardcode_into_libs=no
8923 # when you set need_version to no, make sure it does not cause -set_version
8924 # flags to be left without arguments
8925 need_version=unknown
8930 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8931 shlibpath_var=LIBPATH
8933 # AIX 3 has no versioning support, so we append a major version to the name.
8934 soname_spec='${libname}${release}${shared_ext}$major'
8941 hardcode_into_libs=yes
8942 if test "$host_cpu" = ia64; then
8943 # AIX 5 supports IA64
8944 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8945 shlibpath_var=LD_LIBRARY_PATH
8947 # With GCC up to 2.95.x, collect2 would create an import file
8948 # for dependence libraries. The import file would start with
8949 # the line `#! .'. This would cause the generated library to
8950 # depend on `.', always an invalid library. This was fixed in
8951 # development snapshots of GCC prior to 3.0.
8953 aix4 | aix4.[01] | aix4.[01].*)
8954 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8956 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8963 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8964 # soname into executable. Probably we can add versioning support to
8965 # collect2, so additional links can be useful in future.
8966 if test "$aix_use_runtimelinking" = yes; then
8967 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8968 # instead of lib<name>.a to let people know that these are not
8969 # typical AIX shared libraries.
8970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8972 # We preserve .a as extension for shared libraries through AIX4.2
8973 # and later when we are not doing run time linking.
8974 library_names_spec='${libname}${release}.a $libname.a'
8975 soname_spec='${libname}${release}${shared_ext}$major'
8977 shlibpath_var=LIBPATH
8982 library_names_spec='$libname.ixlibrary $libname.a'
8983 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8984 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'
8988 library_names_spec='${libname}${shared_ext}'
8989 dynamic_linker="$host_os ld.so"
8990 shlibpath_var=LIBRARY_PATH
8996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8997 soname_spec='${libname}${release}${shared_ext}$major'
8998 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8999 shlibpath_var=LD_LIBRARY_PATH
9000 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9001 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9002 # the default ld.so.conf also contains /usr/contrib/lib and
9003 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9004 # libtool to hard-code these into programs
9007 cygwin* | mingw* | pw32*)
9008 version_type=windows
9013 case $GCC,$host_os in
9014 yes,cygwin* | yes,mingw* | yes,pw32*)
9015 library_names_spec='$libname.dll.a'
9016 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9017 postinstall_cmds='base_file=`basename \${file}`~
9018 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9019 dldir=$destdir/`dirname \$dlpath`~
9020 test -d \$dldir || mkdir -p \$dldir~
9021 $install_prog $dir/$dlname \$dldir/$dlname~
9022 chmod a+x \$dldir/$dlname'
9023 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9024 dlpath=$dir/\$dldll~
9026 shlibpath_overrides_runpath=yes
9030 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9031 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9032 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9035 # MinGW DLLs use traditional 'lib' prefix
9036 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9037 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9038 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9039 # It is most probably a Windows format PATH printed by
9040 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9041 # path with ; separators, and with drive letters. We can handle the
9042 # drive letters (cygwin fileutils understands them), so leave them,
9043 # especially as we might pass files found there to a mingw objdump,
9044 # which wouldn't understand a cygwinified path. Ahh.
9045 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9047 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9051 # pw32 DLLs use 'pw' prefix rather than 'lib'
9052 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9058 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9061 dynamic_linker='Win32 ld.exe'
9062 # FIXME: first we should search . and the directory the executable is in
9066 darwin* | rhapsody*)
9067 dynamic_linker="$host_os dyld"
9071 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9072 soname_spec='${libname}${release}${major}$shared_ext'
9073 shlibpath_overrides_runpath=yes
9074 shlibpath_var=DYLD_LIBRARY_PATH
9075 shrext_cmds='.dylib'
9076 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9077 if test "$GCC" = yes; then
9078 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"`
9080 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9082 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9090 soname_spec='${libname}${release}${shared_ext}$major'
9091 shlibpath_var=LD_LIBRARY_PATH
9102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9103 soname_spec='${libname}${release}${shared_ext}$major'
9104 shlibpath_var=LD_LIBRARY_PATH
9105 shlibpath_overrides_runpath=no
9106 hardcode_into_libs=yes
9107 dynamic_linker='GNU ld.so'
9110 freebsd* | dragonfly*)
9111 # DragonFly does not have aout. When/if they implement a new
9112 # versioning mechanism, adjust this.
9113 if test -x /usr/bin/objformat; then
9114 objformat=`/usr/bin/objformat`
9117 freebsd[123]*) objformat=aout ;;
9121 version_type=freebsd-$objformat
9122 case $version_type in
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9133 shlibpath_var=LD_LIBRARY_PATH
9136 shlibpath_overrides_runpath=yes
9138 freebsd3.[01]* | freebsdelf3.[01]*)
9139 shlibpath_overrides_runpath=yes
9140 hardcode_into_libs=yes
9142 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9143 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9144 shlibpath_overrides_runpath=no
9145 hardcode_into_libs=yes
9147 freebsd*) # from 4.6 on
9148 shlibpath_overrides_runpath=yes
9149 hardcode_into_libs=yes
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9159 soname_spec='${libname}${release}${shared_ext}$major'
9160 shlibpath_var=LD_LIBRARY_PATH
9161 hardcode_into_libs=yes
9164 hpux9* | hpux10* | hpux11*)
9165 # Give a soname corresponding to the major version so that dld.sl refuses to
9166 # link against other versions.
9173 hardcode_into_libs=yes
9174 dynamic_linker="$host_os dld.so"
9175 shlibpath_var=LD_LIBRARY_PATH
9176 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178 soname_spec='${libname}${release}${shared_ext}$major'
9179 if test "X$HPUX_IA64_MODE" = X32; then
9180 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9182 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9184 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9188 hardcode_into_libs=yes
9189 dynamic_linker="$host_os dld.sl"
9190 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9191 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9193 soname_spec='${libname}${release}${shared_ext}$major'
9194 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9195 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9199 dynamic_linker="$host_os dld.sl"
9200 shlibpath_var=SHLIB_PATH
9201 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9203 soname_spec='${libname}${release}${shared_ext}$major'
9206 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9207 postinstall_cmds='chmod 555 $lib'
9214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9215 soname_spec='${libname}${release}${shared_ext}$major'
9216 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9217 shlibpath_var=LD_LIBRARY_PATH
9218 shlibpath_overrides_runpath=no
9219 hardcode_into_libs=yes
9222 irix5* | irix6* | nonstopux*)
9224 nonstopux*) version_type=nonstopux ;;
9226 if test "$lt_cv_prog_gnu_ld" = yes; then
9234 soname_spec='${libname}${release}${shared_ext}$major'
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9237 irix5* | nonstopux*)
9241 case $LD in # libtool.m4 will add one of these switches to LD
9242 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9243 libsuff= shlibsuff= libmagic=32-bit;;
9244 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9245 libsuff=32 shlibsuff=N32 libmagic=N32;;
9246 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9247 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9248 *) libsuff= shlibsuff= libmagic=never-match;;
9252 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9253 shlibpath_overrides_runpath=no
9254 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9255 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9256 hardcode_into_libs=yes
9259 # No shared lib support for Linux oldld, aout, or coff.
9260 linux*oldld* | linux*aout* | linux*coff*)
9264 # This must be Linux ELF.
9269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9270 soname_spec='${libname}${release}${shared_ext}$major'
9271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9272 shlibpath_var=LD_LIBRARY_PATH
9273 shlibpath_overrides_runpath=no
9274 # This implies no fast_install, which is unacceptable.
9275 # Some rework will be needed to allow for fast_install
9276 # before this can be enabled.
9277 hardcode_into_libs=yes
9279 # Append ld.so.conf contents to the search path
9280 if test -f /etc/ld.so.conf; then
9281 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' ' '`
9282 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9285 # We used to test for /lib/ld.so.1 and disable shared libraries on
9286 # powerpc, because MkLinux only supported shared libraries with the
9287 # GNU dynamic linker. Since this was broken with cross compilers,
9288 # most powerpc-linux boxes support dynamic linking these days and
9289 # people can always --disable-shared, the test was removed, and we
9290 # assume the GNU/Linux dynamic linker is in use.
9291 dynamic_linker='GNU/Linux ld.so'
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9299 soname_spec='${libname}${release}${shared_ext}$major'
9300 shlibpath_var=LD_LIBRARY_PATH
9301 shlibpath_overrides_runpath=no
9302 hardcode_into_libs=yes
9303 dynamic_linker='GNU ld.so'
9310 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9313 dynamic_linker='NetBSD (a.out) ld.so'
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9316 soname_spec='${libname}${release}${shared_ext}$major'
9317 dynamic_linker='NetBSD ld.elf_so'
9319 shlibpath_var=LD_LIBRARY_PATH
9320 shlibpath_overrides_runpath=yes
9321 hardcode_into_libs=yes
9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9327 shlibpath_var=LD_LIBRARY_PATH
9328 shlibpath_overrides_runpath=yes
9335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9336 soname_spec='${libname}${release}${shared_ext}$major'
9337 shlibpath_var=LD_LIBRARY_PATH
9338 shlibpath_overrides_runpath=yes
9343 sys_lib_dlsearch_path_spec="/usr/lib"
9345 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9347 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9348 *) need_version=no ;;
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9352 shlibpath_var=LD_LIBRARY_PATH
9353 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9355 openbsd2.[89] | openbsd2.[89].*)
9356 shlibpath_overrides_runpath=no
9359 shlibpath_overrides_runpath=yes
9363 shlibpath_overrides_runpath=yes
9368 libname_spec='$name'
9371 library_names_spec='$libname${shared_ext} $libname.a'
9372 dynamic_linker='OS/2 ld.exe'
9373 shlibpath_var=LIBPATH
9376 osf3* | osf4* | osf5*)
9380 soname_spec='${libname}${release}${shared_ext}$major'
9381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382 shlibpath_var=LD_LIBRARY_PATH
9383 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9384 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9392 soname_spec='${libname}${release}${shared_ext}$major'
9393 shlibpath_var=LD_LIBRARY_PATH
9394 shlibpath_overrides_runpath=yes
9395 hardcode_into_libs=yes
9396 # ldd complains unless libraries are executable
9397 postinstall_cmds='chmod +x $lib'
9402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9403 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9404 shlibpath_var=LD_LIBRARY_PATH
9405 shlibpath_overrides_runpath=yes
9406 if test "$with_gnu_ld" = yes; then
9414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9415 soname_spec='${libname}${release}${shared_ext}$major'
9416 shlibpath_var=LD_LIBRARY_PATH
9417 case $host_vendor in
9419 shlibpath_overrides_runpath=no
9421 export_dynamic_flag_spec='${wl}-Blargedynsym'
9422 runpath_var=LD_RUN_PATH
9430 shlibpath_overrides_runpath=no
9431 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9437 if test -d /usr/nec ;then
9439 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9440 soname_spec='$libname${shared_ext}.$major'
9441 shlibpath_var=LD_LIBRARY_PATH
9445 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9446 version_type=freebsd-elf
9449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9450 soname_spec='${libname}${release}${shared_ext}$major'
9451 shlibpath_var=LD_LIBRARY_PATH
9452 hardcode_into_libs=yes
9453 if test "$with_gnu_ld" = yes; then
9454 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9455 shlibpath_overrides_runpath=no
9457 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9458 shlibpath_overrides_runpath=yes
9461 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9465 sys_lib_dlsearch_path_spec='/usr/lib'
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9471 soname_spec='${libname}${release}${shared_ext}$major'
9472 shlibpath_var=LD_LIBRARY_PATH
9479 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9480 echo "${ECHO_T}$dynamic_linker" >&6; }
9481 test "$dynamic_linker" = no && can_build_shared=no
9483 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9484 if test "$GCC" = yes; then
9485 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9489 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9490 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9491 if test "${libltdl_cv_shlibext+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 eval libltdl_cv_shlibext=$shrext_cmds
9499 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9500 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9501 if test -n "$libltdl_cv_shlibext"; then
9503 cat >>confdefs.h <<_ACEOF
9504 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9510 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9511 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9512 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9515 libltdl_cv_shlibpath_var="$shlibpath_var"
9517 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9518 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9519 if test -n "$libltdl_cv_shlibpath_var"; then
9521 cat >>confdefs.h <<_ACEOF
9522 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9528 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9529 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9530 if test "${libltdl_cv_sys_search_path+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9533 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9535 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9536 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9537 if test -n "$libltdl_cv_sys_search_path"; then
9539 for dir in $libltdl_cv_sys_search_path; do
9540 if test -z "$sys_search_path"; then
9541 sys_search_path="$dir"
9543 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9547 cat >>confdefs.h <<_ACEOF
9548 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9553 { echo "$as_me:$LINENO: checking for objdir" >&5
9554 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9555 if test "${libltdl_cv_objdir+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
9558 libltdl_cv_objdir="$objdir"
9559 if test -n "$objdir"; then
9562 rm -f .libs 2>/dev/null
9563 mkdir .libs 2>/dev/null
9564 if test -d .libs; then
9565 libltdl_cv_objdir=.libs
9567 # MS-DOS does not allow filenames that begin with a dot.
9568 libltdl_cv_objdir=_libs
9570 rmdir .libs 2>/dev/null
9574 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9575 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9577 cat >>confdefs.h <<_ACEOF
9578 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9586 # Check for command to grab the raw symbol name followed by C symbol from nm.
9587 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9588 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9589 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9593 # These are sane defaults that work on at least a few old systems.
9594 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9596 # Character class describing NM global symbol codes.
9597 symcode='[BCDEGRST]'
9599 # Regexp to match symbols that can be accessed directly from C.
9600 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9602 # Transform an extracted symbol line into a proper C declaration
9603 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9605 # Transform an extracted symbol line into symbol name and symbol address
9606 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'"
9608 # Define system-specific variables.
9613 cygwin* | mingw* | pw32*)
9614 symcode='[ABCDGISTW]'
9616 hpux*) # Its linker distinguishes data from code symbols
9617 if test "$host_cpu" = ia64; then
9618 symcode='[ABCDEGRST]'
9620 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9621 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'"
9624 if test "$host_cpu" = ia64; then
9625 symcode='[ABCDGIRSTW]'
9626 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9627 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'"
9631 symcode='[BCDEGRST]'
9634 symcode='[BCDEGQRST]'
9645 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9653 # Handle CRLF in mingw tool chain
9657 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9661 # If we're using GNU nm, then use its standard symbol codes.
9662 case `$NM -V 2>&1` in
9663 *GNU* | *'with BFD'*)
9664 symcode='[ABCDGIRSTW]' ;;
9667 # Try without a prefix undercore, then with it.
9668 for ac_symprfx in "" "_"; do
9670 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9671 symxfrm="\\1 $ac_symprfx\\2 \\2"
9673 # Write the raw and C identifiers.
9674 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9676 # Check to see that the pipe works correctly.
9680 cat > conftest.$ac_ext <<EOF
9685 void nm_test_func(){}
9689 int main(){nm_test_var='a';nm_test_func();return(0);}
9692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9693 (eval $ac_compile) 2>&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; then
9697 # Now try to grab the symbols.
9699 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9700 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } && test -s "$nlist"; then
9704 # Try sorting and uniquifying the output.
9705 if sort "$nlist" | uniq > "$nlist"T; then
9706 mv -f "$nlist"T "$nlist"
9711 # Make sure that we snagged all the symbols we need.
9712 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9713 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9714 cat <<EOF > conftest.$ac_ext
9720 # Now generate the symbol file.
9721 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9723 cat <<EOF >> conftest.$ac_ext
9724 #if defined (__STDC__) && __STDC__
9725 # define lt_ptr_t void *
9727 # define lt_ptr_t char *
9731 /* The mapping between symbol names and symbols. */
9736 lt_preloaded_symbols[] =
9739 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9740 cat <<\EOF >> conftest.$ac_ext
9748 # Now try linking the two files.
9749 mv conftest.$ac_objext conftstm.$ac_objext
9750 lt_save_LIBS="$LIBS"
9751 lt_save_CFLAGS="$CFLAGS"
9752 LIBS="conftstm.$ac_objext"
9753 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9755 (eval $ac_link) 2>&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9761 LIBS="$lt_save_LIBS"
9762 CFLAGS="$lt_save_CFLAGS"
9764 echo "cannot find nm_test_func in $nlist" >&5
9767 echo "cannot find nm_test_var in $nlist" >&5
9770 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9773 echo "$progname: failed program was:" >&5
9774 cat conftest.$ac_ext >&5
9776 rm -f conftest* conftst*
9778 # Do not use the global_symbol_pipe unless it works.
9779 if test "$pipe_works" = yes; then
9782 lt_cv_sys_global_symbol_pipe=
9788 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9789 lt_cv_sys_global_symbol_to_cdecl=
9791 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9792 { echo "$as_me:$LINENO: result: failed" >&5
9793 echo "${ECHO_T}failed" >&6; }
9795 { echo "$as_me:$LINENO: result: ok" >&5
9796 echo "${ECHO_T}ok" >&6; }
9800 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9801 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9802 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9806 libltdl_cv_preloaded_symbols=yes
9808 libltdl_cv_preloaded_symbols=no
9812 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9813 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9814 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9816 cat >>confdefs.h <<\_ACEOF
9817 #define HAVE_PRELOADED_SYMBOLS 1
9825 ac_cpp='$CPP $CPPFLAGS'
9826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9831 { echo "$as_me:$LINENO: checking for shl_load" >&5
9832 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9833 if test "${ac_cv_func_shl_load+set}" = set; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9836 cat >conftest.$ac_ext <<_ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h. */
9842 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9844 #define shl_load innocuous_shl_load
9846 /* System header to define __stub macros and hopefully few prototypes,
9847 which can conflict with char shl_load (); below.
9848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9849 <limits.h> exists even on freestanding compilers. */
9852 # include <limits.h>
9854 # include <assert.h>
9859 /* Override any GCC internal prototype to avoid an error.
9860 Use char because int might match the return type of a GCC
9861 builtin and then its argument prototype would still apply. */
9866 /* The GNU C library defines this for functions which it implements
9867 to always fail with ENOSYS. Some functions are actually named
9868 something starting with __ and the normal name is an alias. */
9869 #if defined __stub_shl_load || defined __stub___shl_load
9881 rm -f conftest.$ac_objext conftest$ac_exeext
9882 if { (ac_try="$ac_link"
9884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9885 *) ac_try_echo=$ac_try;;
9887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9888 (eval "$ac_link") 2>conftest.er1
9890 grep -v '^ *+' conftest.er1 >conftest.err
9892 cat conftest.err >&5
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); } &&
9895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9896 { (case "(($ac_try" in
9897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9898 *) ac_try_echo=$ac_try;;
9900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9901 (eval "$ac_try") 2>&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; } &&
9905 { ac_try='test -s conftest$ac_exeext'
9906 { (case "(($ac_try" in
9907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9908 *) ac_try_echo=$ac_try;;
9910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9911 (eval "$ac_try") 2>&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; }; then
9915 ac_cv_func_shl_load=yes
9917 echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9920 ac_cv_func_shl_load=no
9923 rm -f core conftest.err conftest.$ac_objext \
9924 conftest$ac_exeext conftest.$ac_ext
9926 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9927 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9928 if test $ac_cv_func_shl_load = yes; then
9930 cat >>confdefs.h <<\_ACEOF
9931 #define HAVE_SHL_LOAD 1
9935 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9936 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9937 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 ac_check_lib_save_LIBS=$LIBS
9942 cat >conftest.$ac_ext <<_ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h. */
9949 /* Override any GCC internal prototype to avoid an error.
9950 Use char because int might match the return type of a GCC
9951 builtin and then its argument prototype would still apply. */
9964 rm -f conftest.$ac_objext conftest$ac_exeext
9965 if { (ac_try="$ac_link"
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_link") 2>conftest.er1
9973 grep -v '^ *+' conftest.er1 >conftest.err
9975 cat conftest.err >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } &&
9978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9979 { (case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_try") 2>&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; } &&
9988 { ac_try='test -s conftest$ac_exeext'
9989 { (case "(($ac_try" in
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_try") 2>&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; }; then
9998 ac_cv_lib_dld_shl_load=yes
10000 echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.$ac_ext >&5
10003 ac_cv_lib_dld_shl_load=no
10006 rm -f core conftest.err conftest.$ac_objext \
10007 conftest$ac_exeext conftest.$ac_ext
10008 LIBS=$ac_check_lib_save_LIBS
10010 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10011 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10012 if test $ac_cv_lib_dld_shl_load = yes; then
10014 cat >>confdefs.h <<\_ACEOF
10015 #define HAVE_SHL_LOAD 1
10018 LIBADD_DL="$LIBADD_DL -ldld"
10020 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10021 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10022 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 ac_check_lib_save_LIBS=$LIBS
10027 cat >conftest.$ac_ext <<_ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h. */
10034 /* Override any GCC internal prototype to avoid an error.
10035 Use char because int might match the return type of a GCC
10036 builtin and then its argument prototype would still apply. */
10049 rm -f conftest.$ac_objext conftest$ac_exeext
10050 if { (ac_try="$ac_link"
10051 case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_link") 2>conftest.er1
10058 grep -v '^ *+' conftest.er1 >conftest.err
10060 cat conftest.err >&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); } &&
10063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10064 { (case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_try") 2>&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; } &&
10073 { ac_try='test -s conftest$ac_exeext'
10074 { (case "(($ac_try" in
10075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076 *) ac_try_echo=$ac_try;;
10078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079 (eval "$ac_try") 2>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 ac_cv_lib_dl_dlopen=yes
10085 echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10088 ac_cv_lib_dl_dlopen=no
10091 rm -f core conftest.err conftest.$ac_objext \
10092 conftest$ac_exeext conftest.$ac_ext
10093 LIBS=$ac_check_lib_save_LIBS
10095 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10096 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10097 if test $ac_cv_lib_dl_dlopen = yes; then
10099 cat >>confdefs.h <<\_ACEOF
10100 #define HAVE_LIBDL 1
10103 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10105 cat >conftest.$ac_ext <<_ACEOF
10108 cat confdefs.h >>conftest.$ac_ext
10109 cat >>conftest.$ac_ext <<_ACEOF
10110 /* end confdefs.h. */
10112 # include <dlfcn.h>
10123 rm -f conftest.$ac_objext conftest$ac_exeext
10124 if { (ac_try="$ac_link"
10125 case "(($ac_try" in
10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127 *) ac_try_echo=$ac_try;;
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130 (eval "$ac_link") 2>conftest.er1
10132 grep -v '^ *+' conftest.er1 >conftest.err
10134 cat conftest.err >&5
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); } &&
10137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10138 { (case "(($ac_try" in
10139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140 *) ac_try_echo=$ac_try;;
10142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143 (eval "$ac_try") 2>&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; } &&
10147 { ac_try='test -s conftest$ac_exeext'
10148 { (case "(($ac_try" in
10149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150 *) ac_try_echo=$ac_try;;
10152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153 (eval "$ac_try") 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
10158 cat >>confdefs.h <<\_ACEOF
10159 #define HAVE_LIBDL 1
10161 libltdl_cv_func_dlopen="yes"
10163 echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10166 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10167 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10168 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10171 ac_check_lib_save_LIBS=$LIBS
10172 LIBS="-lsvld $LIBS"
10173 cat >conftest.$ac_ext <<_ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h. */
10180 /* Override any GCC internal prototype to avoid an error.
10181 Use char because int might match the return type of a GCC
10182 builtin and then its argument prototype would still apply. */
10195 rm -f conftest.$ac_objext conftest$ac_exeext
10196 if { (ac_try="$ac_link"
10197 case "(($ac_try" in
10198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199 *) ac_try_echo=$ac_try;;
10201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202 (eval "$ac_link") 2>conftest.er1
10204 grep -v '^ *+' conftest.er1 >conftest.err
10206 cat conftest.err >&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
10209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10210 { (case "(($ac_try" in
10211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212 *) ac_try_echo=$ac_try;;
10214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10215 (eval "$ac_try") 2>&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); }; } &&
10219 { ac_try='test -s conftest$ac_exeext'
10220 { (case "(($ac_try" in
10221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222 *) ac_try_echo=$ac_try;;
10224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10225 (eval "$ac_try") 2>&5
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); }; }; then
10229 ac_cv_lib_svld_dlopen=yes
10231 echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10234 ac_cv_lib_svld_dlopen=no
10237 rm -f core conftest.err conftest.$ac_objext \
10238 conftest$ac_exeext conftest.$ac_ext
10239 LIBS=$ac_check_lib_save_LIBS
10241 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10242 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10243 if test $ac_cv_lib_svld_dlopen = yes; then
10245 cat >>confdefs.h <<\_ACEOF
10246 #define HAVE_LIBDL 1
10249 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10251 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10252 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10253 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10256 ac_check_lib_save_LIBS=$LIBS
10258 cat >conftest.$ac_ext <<_ACEOF
10261 cat confdefs.h >>conftest.$ac_ext
10262 cat >>conftest.$ac_ext <<_ACEOF
10263 /* end confdefs.h. */
10265 /* Override any GCC internal prototype to avoid an error.
10266 Use char because int might match the return type of a GCC
10267 builtin and then its argument prototype would still apply. */
10275 return dld_link ();
10280 rm -f conftest.$ac_objext conftest$ac_exeext
10281 if { (ac_try="$ac_link"
10282 case "(($ac_try" in
10283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284 *) ac_try_echo=$ac_try;;
10286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287 (eval "$ac_link") 2>conftest.er1
10289 grep -v '^ *+' conftest.er1 >conftest.err
10291 cat conftest.err >&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); } &&
10294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10295 { (case "(($ac_try" in
10296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10297 *) ac_try_echo=$ac_try;;
10299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10300 (eval "$ac_try") 2>&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); }; } &&
10304 { ac_try='test -s conftest$ac_exeext'
10305 { (case "(($ac_try" in
10306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10307 *) ac_try_echo=$ac_try;;
10309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10310 (eval "$ac_try") 2>&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; }; then
10314 ac_cv_lib_dld_dld_link=yes
10316 echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10319 ac_cv_lib_dld_dld_link=no
10322 rm -f core conftest.err conftest.$ac_objext \
10323 conftest$ac_exeext conftest.$ac_ext
10324 LIBS=$ac_check_lib_save_LIBS
10326 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10327 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10328 if test $ac_cv_lib_dld_dld_link = yes; then
10330 cat >>confdefs.h <<\_ACEOF
10334 LIBADD_DL="$LIBADD_DL -ldld"
10336 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10337 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10338 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10341 cat >conftest.$ac_ext <<_ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h. */
10347 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10349 #define _dyld_func_lookup innocuous__dyld_func_lookup
10351 /* System header to define __stub macros and hopefully few prototypes,
10352 which can conflict with char _dyld_func_lookup (); below.
10353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10354 <limits.h> exists even on freestanding compilers. */
10357 # include <limits.h>
10359 # include <assert.h>
10362 #undef _dyld_func_lookup
10364 /* Override any GCC internal prototype to avoid an error.
10365 Use char because int might match the return type of a GCC
10366 builtin and then its argument prototype would still apply. */
10370 char _dyld_func_lookup ();
10371 /* The GNU C library defines this for functions which it implements
10372 to always fail with ENOSYS. Some functions are actually named
10373 something starting with __ and the normal name is an alias. */
10374 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10381 return _dyld_func_lookup ();
10386 rm -f conftest.$ac_objext conftest$ac_exeext
10387 if { (ac_try="$ac_link"
10388 case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_link") 2>conftest.er1
10395 grep -v '^ *+' conftest.er1 >conftest.err
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } &&
10400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10401 { (case "(($ac_try" in
10402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403 *) ac_try_echo=$ac_try;;
10405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406 (eval "$ac_try") 2>&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; } &&
10410 { ac_try='test -s conftest$ac_exeext'
10411 { (case "(($ac_try" in
10412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413 *) ac_try_echo=$ac_try;;
10415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416 (eval "$ac_try") 2>&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }; }; then
10420 ac_cv_func__dyld_func_lookup=yes
10422 echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10425 ac_cv_func__dyld_func_lookup=no
10428 rm -f core conftest.err conftest.$ac_objext \
10429 conftest$ac_exeext conftest.$ac_ext
10431 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10432 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10433 if test $ac_cv_func__dyld_func_lookup = yes; then
10435 cat >>confdefs.h <<\_ACEOF
10436 #define HAVE_DYLD 1
10450 rm -f core conftest.err conftest.$ac_objext \
10451 conftest$ac_exeext conftest.$ac_ext
10462 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10464 lt_save_LIBS="$LIBS"
10465 LIBS="$LIBS $LIBADD_DL"
10467 for ac_func in dlerror
10469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10470 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10472 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10473 echo $ECHO_N "(cached) $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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10483 #define $ac_func innocuous_$ac_func
10485 /* System header to define __stub macros and hopefully few prototypes,
10486 which can conflict with char $ac_func (); below.
10487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10488 <limits.h> exists even on freestanding compilers. */
10491 # include <limits.h>
10493 # include <assert.h>
10498 /* Override any GCC internal prototype to avoid an error.
10499 Use char because int might match the return type of a GCC
10500 builtin and then its argument prototype would still apply. */
10505 /* The GNU C library defines this for functions which it implements
10506 to always fail with ENOSYS. Some functions are actually named
10507 something starting with __ and the normal name is an alias. */
10508 #if defined __stub_$ac_func || defined __stub___$ac_func
10515 return $ac_func ();
10520 rm -f conftest.$ac_objext conftest$ac_exeext
10521 if { (ac_try="$ac_link"
10522 case "(($ac_try" in
10523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524 *) ac_try_echo=$ac_try;;
10526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527 (eval "$ac_link") 2>conftest.er1
10529 grep -v '^ *+' conftest.er1 >conftest.err
10531 cat conftest.err >&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } &&
10534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10535 { (case "(($ac_try" in
10536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537 *) ac_try_echo=$ac_try;;
10539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540 (eval "$ac_try") 2>&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); }; } &&
10544 { ac_try='test -s conftest$ac_exeext'
10545 { (case "(($ac_try" in
10546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547 *) ac_try_echo=$ac_try;;
10549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550 (eval "$ac_try") 2>&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; }; then
10554 eval "$as_ac_var=yes"
10556 echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.$ac_ext >&5
10559 eval "$as_ac_var=no"
10562 rm -f core conftest.err conftest.$ac_objext \
10563 conftest$ac_exeext conftest.$ac_ext
10565 ac_res=`eval echo '${'$as_ac_var'}'`
10566 { echo "$as_me:$LINENO: result: $ac_res" >&5
10567 echo "${ECHO_T}$ac_res" >&6; }
10568 if test `eval echo '${'$as_ac_var'}'` = yes; then
10569 cat >>confdefs.h <<_ACEOF
10570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10576 LIBS="$lt_save_LIBS"
10579 ac_cpp='$CPP $CPPFLAGS'
10580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10586 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10587 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10588 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10591 ac_cv_sys_symbol_underscore=no
10592 cat > conftest.$ac_ext <<EOF
10593 void nm_test_func(){}
10594 int main(){nm_test_func;return 0;}
10596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10597 (eval $ac_compile) 2>&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; then
10601 # Now try to grab the symbols.
10602 ac_nlist=conftest.nm
10603 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10604 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } && test -s "$ac_nlist"; then
10608 # See whether the symbols have a leading underscore.
10609 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10610 ac_cv_sys_symbol_underscore=yes
10612 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10615 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10619 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10622 echo "configure: failed program was:" >&5
10628 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10629 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10632 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10633 if test x"$libltdl_cv_func_dlopen" = xyes ||
10634 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10635 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10636 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10637 if test "${libltdl_cv_need_uscore+set}" = set; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 libltdl_cv_need_uscore=unknown
10642 LIBS="$LIBS $LIBADD_DL"
10643 if test "$cross_compiling" = yes; then :
10644 libltdl_cv_need_uscore=cross
10646 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10647 lt_status=$lt_dlunknown
10648 cat > conftest.$ac_ext <<EOF
10649 #line 10649 "configure"
10650 #include "confdefs.h"
10659 # define LT_DLGLOBAL RTLD_GLOBAL
10662 # define LT_DLGLOBAL DL_GLOBAL
10664 # define LT_DLGLOBAL 0
10668 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10669 find out it does not work in some platform. */
10670 #ifndef LT_DLLAZY_OR_NOW
10672 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10675 # define LT_DLLAZY_OR_NOW DL_LAZY
10678 # define LT_DLLAZY_OR_NOW RTLD_NOW
10681 # define LT_DLLAZY_OR_NOW DL_NOW
10683 # define LT_DLLAZY_OR_NOW 0
10691 extern "C" void exit (int);
10694 void fnord() { int i=42;}
10697 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10698 int status = $lt_dlunknown;
10702 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10703 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10704 /* dlclose (self); */
10712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10713 (eval $ac_link) 2>&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10717 (./conftest; exit; ) >&5 2>/dev/null
10719 case x$lt_status in
10720 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10721 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10722 x$lt_dlunknown|x*) ;;
10725 # compilation failed
10734 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10735 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10739 if test x"$libltdl_cv_need_uscore" = xyes; then
10741 cat >>confdefs.h <<\_ACEOF
10742 #define NEED_USCORE 1
10748 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10749 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10750 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 # PORTME does your system automatically load deplibs for dlopen?
10754 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10755 # For now, we just catch OSes we know something about -- in the
10756 # future, we'll try test this programmatically.
10757 libltdl_cv_sys_dlopen_deplibs=unknown
10759 aix3*|aix4.1.*|aix4.2.*)
10760 # Unknown whether this is true for these versions of AIX, but
10761 # we want this `case' here to explicitly catch those versions.
10762 libltdl_cv_sys_dlopen_deplibs=unknown
10765 libltdl_cv_sys_dlopen_deplibs=yes
10768 # Assuming the user has installed a libdl from somewhere, this is true
10769 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10770 libltdl_cv_sys_dlopen_deplibs=yes
10772 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10773 # GNU and its variants, using gnu ld.so (Glibc)
10774 libltdl_cv_sys_dlopen_deplibs=yes
10777 libltdl_cv_sys_dlopen_deplibs=yes
10780 libltdl_cv_sys_dlopen_deplibs=yes
10782 irix[12345]*|irix6.[01]*)
10783 # Catch all versions of IRIX before 6.2, and indicate that we don't
10784 # know how it worked for any of those versions.
10785 libltdl_cv_sys_dlopen_deplibs=unknown
10788 # The case above catches anything before 6.2, and it's known that
10789 # at 6.2 and later dlopen does load deplibs.
10790 libltdl_cv_sys_dlopen_deplibs=yes
10793 libltdl_cv_sys_dlopen_deplibs=yes
10796 libltdl_cv_sys_dlopen_deplibs=yes
10799 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10800 # it did *not* use an RPATH in a shared library to find objects the
10801 # library depends on, so we explictly say `no'.
10802 libltdl_cv_sys_dlopen_deplibs=no
10804 osf5.0|osf5.0a|osf5.1)
10805 # dlopen *does* load deplibs and with the right loader patch applied
10806 # it even uses RPATH in a shared library to search for shared objects
10807 # that the library depends on, but there's no easy way to know if that
10808 # patch is installed. Since this is the case, all we can really
10809 # say is unknown -- it depends on the patch being installed. If
10810 # it is, this changes to `yes'. Without it, it would be `no'.
10811 libltdl_cv_sys_dlopen_deplibs=unknown
10814 # the two cases above should catch all versions of osf <= 5.1. Read
10815 # the comments above for what we know about them.
10816 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10817 # is used to find them so we can finally say `yes'.
10818 libltdl_cv_sys_dlopen_deplibs=yes
10821 libltdl_cv_sys_dlopen_deplibs=yes
10823 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10824 libltdl_cv_sys_dlopen_deplibs=yes
10829 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10830 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10831 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10833 cat >>confdefs.h <<\_ACEOF
10834 #define LTDL_DLOPEN_DEPLIBS 1
10840 for ac_header in argz.h
10842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
10849 ac_res=`eval echo '${'$as_ac_Header'}'`
10850 { echo "$as_me:$LINENO: result: $ac_res" >&5
10851 echo "${ECHO_T}$ac_res" >&6; }
10853 # Is the header compilable?
10854 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10856 cat >conftest.$ac_ext <<_ACEOF
10859 cat confdefs.h >>conftest.$ac_ext
10860 cat >>conftest.$ac_ext <<_ACEOF
10861 /* end confdefs.h. */
10862 $ac_includes_default
10863 #include <$ac_header>
10865 rm -f conftest.$ac_objext
10866 if { (ac_try="$ac_compile"
10867 case "(($ac_try" in
10868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869 *) ac_try_echo=$ac_try;;
10871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10872 (eval "$ac_compile") 2>conftest.er1
10874 grep -v '^ *+' conftest.er1 >conftest.err
10876 cat conftest.err >&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); } &&
10879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10880 { (case "(($ac_try" in
10881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10882 *) ac_try_echo=$ac_try;;
10884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10885 (eval "$ac_try") 2>&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; } &&
10889 { ac_try='test -s conftest.$ac_objext'
10890 { (case "(($ac_try" in
10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892 *) ac_try_echo=$ac_try;;
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895 (eval "$ac_try") 2>&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; }; then
10899 ac_header_compiler=yes
10901 echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.$ac_ext >&5
10904 ac_header_compiler=no
10907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10909 echo "${ECHO_T}$ac_header_compiler" >&6; }
10911 # Is the header present?
10912 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10914 cat >conftest.$ac_ext <<_ACEOF
10917 cat confdefs.h >>conftest.$ac_ext
10918 cat >>conftest.$ac_ext <<_ACEOF
10919 /* end confdefs.h. */
10920 #include <$ac_header>
10922 if { (ac_try="$ac_cpp conftest.$ac_ext"
10923 case "(($ac_try" in
10924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10925 *) ac_try_echo=$ac_try;;
10927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10930 grep -v '^ *+' conftest.er1 >conftest.err
10932 cat conftest.err >&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } >/dev/null; then
10935 if test -s conftest.err; then
10936 ac_cpp_err=$ac_c_preproc_warn_flag
10937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10944 if test -z "$ac_cpp_err"; then
10945 ac_header_preproc=yes
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10950 ac_header_preproc=no
10953 rm -f conftest.err conftest.$ac_ext
10954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10955 echo "${ECHO_T}$ac_header_preproc" >&6; }
10957 # So? What about this header?
10958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10964 ac_header_preproc=yes
10967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10974 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10980 ## ----------------------------------- ##
10981 ## Report this to llvmbugs@cs.uiuc.edu ##
10982 ## ----------------------------------- ##
10984 ) | sed "s/^/$as_me: WARNING: /" >&2
10987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6
10992 eval "$as_ac_Header=\$ac_header_preproc"
10994 ac_res=`eval echo '${'$as_ac_Header'}'`
10995 { echo "$as_me:$LINENO: result: $ac_res" >&5
10996 echo "${ECHO_T}$ac_res" >&6; }
10999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11000 cat >>confdefs.h <<_ACEOF
11001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11009 { echo "$as_me:$LINENO: checking for error_t" >&5
11010 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11011 if test "${ac_cv_type_error_t+set}" = set; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11014 cat >conftest.$ac_ext <<_ACEOF
11017 cat confdefs.h >>conftest.$ac_ext
11018 cat >>conftest.$ac_ext <<_ACEOF
11019 /* end confdefs.h. */
11024 typedef error_t ac__type_new_;
11028 if ((ac__type_new_ *) 0)
11030 if (sizeof (ac__type_new_))
11036 rm -f conftest.$ac_objext
11037 if { (ac_try="$ac_compile"
11038 case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043 (eval "$ac_compile") 2>conftest.er1
11045 grep -v '^ *+' conftest.er1 >conftest.err
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } &&
11050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11051 { (case "(($ac_try" in
11052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053 *) ac_try_echo=$ac_try;;
11055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056 (eval "$ac_try") 2>&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; } &&
11060 { ac_try='test -s conftest.$ac_objext'
11061 { (case "(($ac_try" in
11062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063 *) ac_try_echo=$ac_try;;
11065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066 (eval "$ac_try") 2>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; }; then
11070 ac_cv_type_error_t=yes
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11075 ac_cv_type_error_t=no
11078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11080 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11081 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11082 if test $ac_cv_type_error_t = yes; then
11084 cat >>confdefs.h <<_ACEOF
11085 #define HAVE_ERROR_T 1
11091 cat >>confdefs.h <<\_ACEOF
11092 #define error_t int
11103 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11106 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11108 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
11111 cat >conftest.$ac_ext <<_ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11119 #define $ac_func innocuous_$ac_func
11121 /* System header to define __stub macros and hopefully few prototypes,
11122 which can conflict with char $ac_func (); below.
11123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11124 <limits.h> exists even on freestanding compilers. */
11127 # include <limits.h>
11129 # include <assert.h>
11134 /* Override any GCC internal prototype to avoid an error.
11135 Use char because int might match the return type of a GCC
11136 builtin and then its argument prototype would still apply. */
11141 /* The GNU C library defines this for functions which it implements
11142 to always fail with ENOSYS. Some functions are actually named
11143 something starting with __ and the normal name is an alias. */
11144 #if defined __stub_$ac_func || defined __stub___$ac_func
11151 return $ac_func ();
11156 rm -f conftest.$ac_objext conftest$ac_exeext
11157 if { (ac_try="$ac_link"
11158 case "(($ac_try" in
11159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160 *) ac_try_echo=$ac_try;;
11162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11163 (eval "$ac_link") 2>conftest.er1
11165 grep -v '^ *+' conftest.er1 >conftest.err
11167 cat conftest.err >&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); } &&
11170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11171 { (case "(($ac_try" in
11172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173 *) ac_try_echo=$ac_try;;
11175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176 (eval "$ac_try") 2>&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; } &&
11180 { ac_try='test -s conftest$ac_exeext'
11181 { (case "(($ac_try" in
11182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183 *) ac_try_echo=$ac_try;;
11185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186 (eval "$ac_try") 2>&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; }; then
11190 eval "$as_ac_var=yes"
11192 echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11195 eval "$as_ac_var=no"
11198 rm -f core conftest.err conftest.$ac_objext \
11199 conftest$ac_exeext conftest.$ac_ext
11201 ac_res=`eval echo '${'$as_ac_var'}'`
11202 { echo "$as_me:$LINENO: result: $ac_res" >&5
11203 echo "${ECHO_T}$ac_res" >&6; }
11204 if test `eval echo '${'$as_ac_var'}'` = yes; then
11205 cat >>confdefs.h <<_ACEOF
11206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11239 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11247 echo $ECHO_N "(cached) $ECHO_C" >&6
11249 ac_res=`eval echo '${'$as_ac_Header'}'`
11250 { echo "$as_me:$LINENO: result: $ac_res" >&5
11251 echo "${ECHO_T}$ac_res" >&6; }
11253 # Is the header compilable?
11254 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11256 cat >conftest.$ac_ext <<_ACEOF
11259 cat confdefs.h >>conftest.$ac_ext
11260 cat >>conftest.$ac_ext <<_ACEOF
11261 /* end confdefs.h. */
11262 $ac_includes_default
11263 #include <$ac_header>
11265 rm -f conftest.$ac_objext
11266 if { (ac_try="$ac_compile"
11267 case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_compile") 2>conftest.er1
11274 grep -v '^ *+' conftest.er1 >conftest.err
11276 cat conftest.err >&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); } &&
11279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11280 { (case "(($ac_try" in
11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285 (eval "$ac_try") 2>&5
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); }; } &&
11289 { ac_try='test -s conftest.$ac_objext'
11290 { (case "(($ac_try" in
11291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292 *) ac_try_echo=$ac_try;;
11294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295 (eval "$ac_try") 2>&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); }; }; then
11299 ac_header_compiler=yes
11301 echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.$ac_ext >&5
11304 ac_header_compiler=no
11307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11309 echo "${ECHO_T}$ac_header_compiler" >&6; }
11311 # Is the header present?
11312 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11314 cat >conftest.$ac_ext <<_ACEOF
11317 cat confdefs.h >>conftest.$ac_ext
11318 cat >>conftest.$ac_ext <<_ACEOF
11319 /* end confdefs.h. */
11320 #include <$ac_header>
11322 if { (ac_try="$ac_cpp conftest.$ac_ext"
11323 case "(($ac_try" in
11324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325 *) ac_try_echo=$ac_try;;
11327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11330 grep -v '^ *+' conftest.er1 >conftest.err
11332 cat conftest.err >&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } >/dev/null; then
11335 if test -s conftest.err; then
11336 ac_cpp_err=$ac_c_preproc_warn_flag
11337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11344 if test -z "$ac_cpp_err"; then
11345 ac_header_preproc=yes
11347 echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11350 ac_header_preproc=no
11353 rm -f conftest.err conftest.$ac_ext
11354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11355 echo "${ECHO_T}$ac_header_preproc" >&6; }
11357 # So? What about this header?
11358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11364 ac_header_preproc=yes
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11374 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11380 ## ----------------------------------- ##
11381 ## Report this to llvmbugs@cs.uiuc.edu ##
11382 ## ----------------------------------- ##
11384 ) | sed "s/^/$as_me: WARNING: /" >&2
11387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11390 echo $ECHO_N "(cached) $ECHO_C" >&6
11392 eval "$as_ac_Header=\$ac_header_preproc"
11394 ac_res=`eval echo '${'$as_ac_Header'}'`
11395 { echo "$as_me:$LINENO: result: $ac_res" >&5
11396 echo "${ECHO_T}$ac_res" >&6; }
11399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11400 cat >>confdefs.h <<_ACEOF
11401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11412 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
11421 ac_res=`eval echo '${'$as_ac_Header'}'`
11422 { echo "$as_me:$LINENO: result: $ac_res" >&5
11423 echo "${ECHO_T}$ac_res" >&6; }
11425 # Is the header compilable?
11426 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11428 cat >conftest.$ac_ext <<_ACEOF
11431 cat confdefs.h >>conftest.$ac_ext
11432 cat >>conftest.$ac_ext <<_ACEOF
11433 /* end confdefs.h. */
11434 $ac_includes_default
11435 #include <$ac_header>
11437 rm -f conftest.$ac_objext
11438 if { (ac_try="$ac_compile"
11439 case "(($ac_try" in
11440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441 *) ac_try_echo=$ac_try;;
11443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444 (eval "$ac_compile") 2>conftest.er1
11446 grep -v '^ *+' conftest.er1 >conftest.err
11448 cat conftest.err >&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); } &&
11451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11452 { (case "(($ac_try" in
11453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454 *) ac_try_echo=$ac_try;;
11456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11457 (eval "$ac_try") 2>&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; } &&
11461 { ac_try='test -s conftest.$ac_objext'
11462 { (case "(($ac_try" in
11463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11464 *) ac_try_echo=$ac_try;;
11466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467 (eval "$ac_try") 2>&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; }; then
11471 ac_header_compiler=yes
11473 echo "$as_me: failed program was:" >&5
11474 sed 's/^/| /' conftest.$ac_ext >&5
11476 ac_header_compiler=no
11479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11481 echo "${ECHO_T}$ac_header_compiler" >&6; }
11483 # Is the header present?
11484 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11486 cat >conftest.$ac_ext <<_ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h. */
11492 #include <$ac_header>
11494 if { (ac_try="$ac_cpp conftest.$ac_ext"
11495 case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11502 grep -v '^ *+' conftest.er1 >conftest.err
11504 cat conftest.err >&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } >/dev/null; then
11507 if test -s conftest.err; then
11508 ac_cpp_err=$ac_c_preproc_warn_flag
11509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11516 if test -z "$ac_cpp_err"; then
11517 ac_header_preproc=yes
11519 echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11522 ac_header_preproc=no
11525 rm -f conftest.err conftest.$ac_ext
11526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11527 echo "${ECHO_T}$ac_header_preproc" >&6; }
11529 # So? What about this header?
11530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11536 ac_header_preproc=yes
11539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11546 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11552 ## ----------------------------------- ##
11553 ## Report this to llvmbugs@cs.uiuc.edu ##
11554 ## ----------------------------------- ##
11556 ) | sed "s/^/$as_me: WARNING: /" >&2
11559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11562 echo $ECHO_N "(cached) $ECHO_C" >&6
11564 eval "$as_ac_Header=\$ac_header_preproc"
11566 ac_res=`eval echo '${'$as_ac_Header'}'`
11567 { echo "$as_me:$LINENO: result: $ac_res" >&5
11568 echo "${ECHO_T}$ac_res" >&6; }
11571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11572 cat >>confdefs.h <<_ACEOF
11573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11582 for ac_header in string.h strings.h
11584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11591 ac_res=`eval echo '${'$as_ac_Header'}'`
11592 { echo "$as_me:$LINENO: result: $ac_res" >&5
11593 echo "${ECHO_T}$ac_res" >&6; }
11595 # Is the header compilable?
11596 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11598 cat >conftest.$ac_ext <<_ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11604 $ac_includes_default
11605 #include <$ac_header>
11607 rm -f conftest.$ac_objext
11608 if { (ac_try="$ac_compile"
11609 case "(($ac_try" in
11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11614 (eval "$ac_compile") 2>conftest.er1
11616 grep -v '^ *+' conftest.er1 >conftest.err
11618 cat conftest.err >&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); } &&
11621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11622 { (case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_try") 2>&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; } &&
11631 { ac_try='test -s conftest.$ac_objext'
11632 { (case "(($ac_try" in
11633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634 *) ac_try_echo=$ac_try;;
11636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11637 (eval "$ac_try") 2>&5
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); }; }; then
11641 ac_header_compiler=yes
11643 echo "$as_me: failed program was:" >&5
11644 sed 's/^/| /' conftest.$ac_ext >&5
11646 ac_header_compiler=no
11649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11651 echo "${ECHO_T}$ac_header_compiler" >&6; }
11653 # Is the header present?
11654 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11656 cat >conftest.$ac_ext <<_ACEOF
11659 cat confdefs.h >>conftest.$ac_ext
11660 cat >>conftest.$ac_ext <<_ACEOF
11661 /* end confdefs.h. */
11662 #include <$ac_header>
11664 if { (ac_try="$ac_cpp conftest.$ac_ext"
11665 case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11672 grep -v '^ *+' conftest.er1 >conftest.err
11674 cat conftest.err >&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } >/dev/null; then
11677 if test -s conftest.err; then
11678 ac_cpp_err=$ac_c_preproc_warn_flag
11679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11686 if test -z "$ac_cpp_err"; then
11687 ac_header_preproc=yes
11689 echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11692 ac_header_preproc=no
11695 rm -f conftest.err conftest.$ac_ext
11696 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11697 echo "${ECHO_T}$ac_header_preproc" >&6; }
11699 # So? What about this header?
11700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11705 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11706 ac_header_preproc=yes
11709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11712 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11714 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11716 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11720 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11722 ## ----------------------------------- ##
11723 ## Report this to llvmbugs@cs.uiuc.edu ##
11724 ## ----------------------------------- ##
11726 ) | sed "s/^/$as_me: WARNING: /" >&2
11729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11732 echo $ECHO_N "(cached) $ECHO_C" >&6
11734 eval "$as_ac_Header=\$ac_header_preproc"
11736 ac_res=`eval echo '${'$as_ac_Header'}'`
11737 { echo "$as_me:$LINENO: result: $ac_res" >&5
11738 echo "${ECHO_T}$ac_res" >&6; }
11741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11742 cat >>confdefs.h <<_ACEOF
11743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11753 for ac_func in strchr index
11755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11756 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11759 echo $ECHO_N "(cached) $ECHO_C" >&6
11761 cat >conftest.$ac_ext <<_ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h. */
11767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11769 #define $ac_func innocuous_$ac_func
11771 /* System header to define __stub macros and hopefully few prototypes,
11772 which can conflict with char $ac_func (); below.
11773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11774 <limits.h> exists even on freestanding compilers. */
11777 # include <limits.h>
11779 # include <assert.h>
11784 /* Override any GCC internal prototype to avoid an error.
11785 Use char because int might match the return type of a GCC
11786 builtin and then its argument prototype would still apply. */
11791 /* The GNU C library defines this for functions which it implements
11792 to always fail with ENOSYS. Some functions are actually named
11793 something starting with __ and the normal name is an alias. */
11794 #if defined __stub_$ac_func || defined __stub___$ac_func
11801 return $ac_func ();
11806 rm -f conftest.$ac_objext conftest$ac_exeext
11807 if { (ac_try="$ac_link"
11808 case "(($ac_try" in
11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810 *) ac_try_echo=$ac_try;;
11812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813 (eval "$ac_link") 2>conftest.er1
11815 grep -v '^ *+' conftest.er1 >conftest.err
11817 cat conftest.err >&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } &&
11820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11821 { (case "(($ac_try" in
11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823 *) ac_try_echo=$ac_try;;
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826 (eval "$ac_try") 2>&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); }; } &&
11830 { ac_try='test -s conftest$ac_exeext'
11831 { (case "(($ac_try" in
11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833 *) ac_try_echo=$ac_try;;
11835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836 (eval "$ac_try") 2>&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; }; then
11840 eval "$as_ac_var=yes"
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11845 eval "$as_ac_var=no"
11848 rm -f core conftest.err conftest.$ac_objext \
11849 conftest$ac_exeext conftest.$ac_ext
11851 ac_res=`eval echo '${'$as_ac_var'}'`
11852 { echo "$as_me:$LINENO: result: $ac_res" >&5
11853 echo "${ECHO_T}$ac_res" >&6; }
11854 if test `eval echo '${'$as_ac_var'}'` = yes; then
11855 cat >>confdefs.h <<_ACEOF
11856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11864 for ac_func in strrchr rindex
11866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11867 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11869 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11870 echo $ECHO_N "(cached) $ECHO_C" >&6
11872 cat >conftest.$ac_ext <<_ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h. */
11878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11880 #define $ac_func innocuous_$ac_func
11882 /* System header to define __stub macros and hopefully few prototypes,
11883 which can conflict with char $ac_func (); below.
11884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11885 <limits.h> exists even on freestanding compilers. */
11888 # include <limits.h>
11890 # include <assert.h>
11895 /* Override any GCC internal prototype to avoid an error.
11896 Use char because int might match the return type of a GCC
11897 builtin and then its argument prototype would still apply. */
11902 /* The GNU C library defines this for functions which it implements
11903 to always fail with ENOSYS. Some functions are actually named
11904 something starting with __ and the normal name is an alias. */
11905 #if defined __stub_$ac_func || defined __stub___$ac_func
11912 return $ac_func ();
11917 rm -f conftest.$ac_objext conftest$ac_exeext
11918 if { (ac_try="$ac_link"
11919 case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_link") 2>conftest.er1
11926 grep -v '^ *+' conftest.er1 >conftest.err
11928 cat conftest.err >&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } &&
11931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }; } &&
11941 { ac_try='test -s conftest$ac_exeext'
11942 { (case "(($ac_try" in
11943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947 (eval "$ac_try") 2>&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; }; then
11951 eval "$as_ac_var=yes"
11953 echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11956 eval "$as_ac_var=no"
11959 rm -f core conftest.err conftest.$ac_objext \
11960 conftest$ac_exeext conftest.$ac_ext
11962 ac_res=`eval echo '${'$as_ac_var'}'`
11963 { echo "$as_me:$LINENO: result: $ac_res" >&5
11964 echo "${ECHO_T}$ac_res" >&6; }
11965 if test `eval echo '${'$as_ac_var'}'` = yes; then
11966 cat >>confdefs.h <<_ACEOF
11967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11975 for ac_func in memcpy bcopy
11977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11978 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11980 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11983 cat >conftest.$ac_ext <<_ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h. */
11989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11991 #define $ac_func innocuous_$ac_func
11993 /* System header to define __stub macros and hopefully few prototypes,
11994 which can conflict with char $ac_func (); below.
11995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11996 <limits.h> exists even on freestanding compilers. */
11999 # include <limits.h>
12001 # include <assert.h>
12006 /* Override any GCC internal prototype to avoid an error.
12007 Use char because int might match the return type of a GCC
12008 builtin and then its argument prototype would still apply. */
12013 /* The GNU C library defines this for functions which it implements
12014 to always fail with ENOSYS. Some functions are actually named
12015 something starting with __ and the normal name is an alias. */
12016 #if defined __stub_$ac_func || defined __stub___$ac_func
12023 return $ac_func ();
12028 rm -f conftest.$ac_objext conftest$ac_exeext
12029 if { (ac_try="$ac_link"
12030 case "(($ac_try" in
12031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032 *) ac_try_echo=$ac_try;;
12034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035 (eval "$ac_link") 2>conftest.er1
12037 grep -v '^ *+' conftest.er1 >conftest.err
12039 cat conftest.err >&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } &&
12042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12043 { (case "(($ac_try" in
12044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045 *) ac_try_echo=$ac_try;;
12047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048 (eval "$ac_try") 2>&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); }; } &&
12052 { ac_try='test -s conftest$ac_exeext'
12053 { (case "(($ac_try" in
12054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12055 *) ac_try_echo=$ac_try;;
12057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12058 (eval "$ac_try") 2>&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }; }; then
12062 eval "$as_ac_var=yes"
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12067 eval "$as_ac_var=no"
12070 rm -f core conftest.err conftest.$ac_objext \
12071 conftest$ac_exeext conftest.$ac_ext
12073 ac_res=`eval echo '${'$as_ac_var'}'`
12074 { echo "$as_me:$LINENO: result: $ac_res" >&5
12075 echo "${ECHO_T}$ac_res" >&6; }
12076 if test `eval echo '${'$as_ac_var'}'` = yes; then
12077 cat >>confdefs.h <<_ACEOF
12078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12086 for ac_func in memmove strcmp
12088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12089 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12091 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 cat >conftest.$ac_ext <<_ACEOF
12097 cat confdefs.h >>conftest.$ac_ext
12098 cat >>conftest.$ac_ext <<_ACEOF
12099 /* end confdefs.h. */
12100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12102 #define $ac_func innocuous_$ac_func
12104 /* System header to define __stub macros and hopefully few prototypes,
12105 which can conflict with char $ac_func (); below.
12106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12107 <limits.h> exists even on freestanding compilers. */
12110 # include <limits.h>
12112 # include <assert.h>
12117 /* Override any GCC internal prototype to avoid an error.
12118 Use char because int might match the return type of a GCC
12119 builtin and then its argument prototype would still apply. */
12124 /* The GNU C library defines this for functions which it implements
12125 to always fail with ENOSYS. Some functions are actually named
12126 something starting with __ and the normal name is an alias. */
12127 #if defined __stub_$ac_func || defined __stub___$ac_func
12134 return $ac_func ();
12139 rm -f conftest.$ac_objext conftest$ac_exeext
12140 if { (ac_try="$ac_link"
12141 case "(($ac_try" in
12142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12143 *) ac_try_echo=$ac_try;;
12145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12146 (eval "$ac_link") 2>conftest.er1
12148 grep -v '^ *+' conftest.er1 >conftest.err
12150 cat conftest.err >&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
12153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12154 { (case "(($ac_try" in
12155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12156 *) ac_try_echo=$ac_try;;
12158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12159 (eval "$ac_try") 2>&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); }; } &&
12163 { ac_try='test -s conftest$ac_exeext'
12164 { (case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_try") 2>&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; }; then
12173 eval "$as_ac_var=yes"
12175 echo "$as_me: failed program was:" >&5
12176 sed 's/^/| /' conftest.$ac_ext >&5
12178 eval "$as_ac_var=no"
12181 rm -f core conftest.err conftest.$ac_objext \
12182 conftest$ac_exeext conftest.$ac_ext
12184 ac_res=`eval echo '${'$as_ac_var'}'`
12185 { echo "$as_me:$LINENO: result: $ac_res" >&5
12186 echo "${ECHO_T}$ac_res" >&6; }
12187 if test `eval echo '${'$as_ac_var'}'` = yes; then
12188 cat >>confdefs.h <<_ACEOF
12189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12198 for ac_func in closedir opendir readdir
12200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12201 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12203 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12204 echo $ECHO_N "(cached) $ECHO_C" >&6
12206 cat >conftest.$ac_ext <<_ACEOF
12209 cat confdefs.h >>conftest.$ac_ext
12210 cat >>conftest.$ac_ext <<_ACEOF
12211 /* end confdefs.h. */
12212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12214 #define $ac_func innocuous_$ac_func
12216 /* System header to define __stub macros and hopefully few prototypes,
12217 which can conflict with char $ac_func (); below.
12218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12219 <limits.h> exists even on freestanding compilers. */
12222 # include <limits.h>
12224 # include <assert.h>
12229 /* Override any GCC internal prototype to avoid an error.
12230 Use char because int might match the return type of a GCC
12231 builtin and then its argument prototype would still apply. */
12236 /* The GNU C library defines this for functions which it implements
12237 to always fail with ENOSYS. Some functions are actually named
12238 something starting with __ and the normal name is an alias. */
12239 #if defined __stub_$ac_func || defined __stub___$ac_func
12246 return $ac_func ();
12251 rm -f conftest.$ac_objext conftest$ac_exeext
12252 if { (ac_try="$ac_link"
12253 case "(($ac_try" in
12254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258 (eval "$ac_link") 2>conftest.er1
12260 grep -v '^ *+' conftest.er1 >conftest.err
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } &&
12265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12266 { (case "(($ac_try" in
12267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268 *) ac_try_echo=$ac_try;;
12270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271 (eval "$ac_try") 2>&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; } &&
12275 { ac_try='test -s conftest$ac_exeext'
12276 { (case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_try") 2>&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
12285 eval "$as_ac_var=yes"
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12290 eval "$as_ac_var=no"
12293 rm -f core conftest.err conftest.$ac_objext \
12294 conftest$ac_exeext conftest.$ac_ext
12296 ac_res=`eval echo '${'$as_ac_var'}'`
12297 { echo "$as_me:$LINENO: result: $ac_res" >&5
12298 echo "${ECHO_T}$ac_res" >&6; }
12299 if test `eval echo '${'$as_ac_var'}'` = yes; then
12300 cat >>confdefs.h <<_ACEOF
12301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12308 # Check whether --enable-shared was given.
12309 if test "${enable_shared+set}" = set; then
12310 enableval=$enable_shared; p=${PACKAGE-default}
12312 yes) enable_shared=yes ;;
12313 no) enable_shared=no ;;
12316 # Look at the argument we got. We use all the common list separators.
12317 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12318 for pkg in $enableval; do
12320 if test "X$pkg" = "X$p"; then
12332 # Check whether --enable-static was given.
12333 if test "${enable_static+set}" = set; then
12334 enableval=$enable_static; p=${PACKAGE-default}
12336 yes) enable_static=yes ;;
12337 no) enable_static=no ;;
12340 # Look at the argument we got. We use all the common list separators.
12341 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12342 for pkg in $enableval; do
12344 if test "X$pkg" = "X$p"; then
12356 # Check whether --enable-fast-install was given.
12357 if test "${enable_fast_install+set}" = set; then
12358 enableval=$enable_fast_install; p=${PACKAGE-default}
12360 yes) enable_fast_install=yes ;;
12361 no) enable_fast_install=no ;;
12363 enable_fast_install=no
12364 # Look at the argument we got. We use all the common list separators.
12365 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12366 for pkg in $enableval; do
12368 if test "X$pkg" = "X$p"; then
12369 enable_fast_install=yes
12376 enable_fast_install=yes
12380 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12381 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12382 if test "${lt_cv_path_SED+set}" = set; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12385 # Loop through the user's path and test for sed and gsed.
12386 # Then use that list of sed's as ones to test for truncation.
12387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12388 for as_dir in $PATH
12391 test -z "$as_dir" && as_dir=.
12392 for lt_ac_prog in sed gsed; do
12393 for ac_exec_ext in '' $ac_executable_extensions; do
12394 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12395 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12402 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12403 # along with /bin/sed that truncates output.
12404 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12405 test ! -f $lt_ac_sed && continue
12406 cat /dev/null > conftest.in
12408 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12409 # Check for GNU sed and select it if it is found.
12410 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12411 lt_cv_path_SED=$lt_ac_sed
12415 cat conftest.in conftest.in >conftest.tmp
12416 mv conftest.tmp conftest.in
12417 cp conftest.in conftest.nl
12419 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12420 cmp -s conftest.out conftest.nl || break
12421 # 10000 chars as input seems more than enough
12422 test $lt_ac_count -gt 10 && break
12423 lt_ac_count=`expr $lt_ac_count + 1`
12424 if test $lt_ac_count -gt $lt_ac_max; then
12425 lt_ac_max=$lt_ac_count
12426 lt_cv_path_SED=$lt_ac_sed
12433 SED=$lt_cv_path_SED
12434 { echo "$as_me:$LINENO: result: $SED" >&5
12435 echo "${ECHO_T}$SED" >&6; }
12438 # Check whether --with-gnu-ld was given.
12439 if test "${with_gnu_ld+set}" = set; then
12440 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12446 if test "$GCC" = yes; then
12447 # Check if gcc -print-prog-name=ld gives a path.
12448 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12449 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12452 # gcc leaves a trailing carriage return which upsets mingw
12453 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12455 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12458 # Accept absolute paths.
12460 re_direlt='/[^/][^/]*/\.\./'
12461 # Canonicalize the pathname of ld
12462 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12463 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12464 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12466 test -z "$LD" && LD="$ac_prog"
12469 # If it fails, then pretend we aren't using GCC.
12473 # If it is relative, then search for the first ld in PATH.
12474 with_gnu_ld=unknown
12477 elif test "$with_gnu_ld" = yes; then
12478 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12479 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12481 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12482 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12484 if test "${lt_cv_path_LD+set}" = set; then
12485 echo $ECHO_N "(cached) $ECHO_C" >&6
12487 if test -z "$LD"; then
12488 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12489 for ac_dir in $PATH; do
12491 test -z "$ac_dir" && ac_dir=.
12492 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12493 lt_cv_path_LD="$ac_dir/$ac_prog"
12494 # Check to see if the program is GNU ld. I'd rather use --version,
12495 # but apparently some variants of GNU ld only accept -v.
12496 # Break only if it was the GNU/non-GNU ld that we prefer.
12497 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12498 *GNU* | *'with BFD'*)
12499 test "$with_gnu_ld" != no && break
12502 test "$with_gnu_ld" != yes && break
12509 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12513 LD="$lt_cv_path_LD"
12514 if test -n "$LD"; then
12515 { echo "$as_me:$LINENO: result: $LD" >&5
12516 echo "${ECHO_T}$LD" >&6; }
12518 { echo "$as_me:$LINENO: result: no" >&5
12519 echo "${ECHO_T}no" >&6; }
12521 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12522 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12523 { (exit 1); exit 1; }; }
12524 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12525 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12526 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12527 echo $ECHO_N "(cached) $ECHO_C" >&6
12529 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12530 case `$LD -v 2>&1 </dev/null` in
12531 *GNU* | *'with BFD'*)
12532 lt_cv_prog_gnu_ld=yes
12535 lt_cv_prog_gnu_ld=no
12539 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12540 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12541 with_gnu_ld=$lt_cv_prog_gnu_ld
12544 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12545 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12546 if test "${lt_cv_ld_reload_flag+set}" = set; then
12547 echo $ECHO_N "(cached) $ECHO_C" >&6
12549 lt_cv_ld_reload_flag='-r'
12551 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12552 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12553 reload_flag=$lt_cv_ld_reload_flag
12554 case $reload_flag in
12556 *) reload_flag=" $reload_flag" ;;
12558 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12561 if test "$GCC" = yes; then
12562 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12564 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12569 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12570 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12571 if test "${lt_cv_deplibs_check_method+set}" = set; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12574 lt_cv_file_magic_cmd='$MAGIC_CMD'
12575 lt_cv_file_magic_test_file=
12576 lt_cv_deplibs_check_method='unknown'
12577 # Need to set the preceding variable on all platforms that support
12578 # interlibrary dependencies.
12579 # 'none' -- dependencies not supported.
12580 # `unknown' -- same as none, but documents that we really don't know.
12581 # 'pass_all' -- all dependencies passed with no checks.
12582 # 'test_compile' -- check by making test program.
12583 # 'file_magic [[regex]]' -- check by looking for files in library path
12584 # which responds to the $file_magic_cmd with a given extended regex.
12585 # If you have `file' or equivalent on your system and you're not sure
12586 # whether `pass_all' will *always* work, you probably want this one.
12590 lt_cv_deplibs_check_method=pass_all
12594 lt_cv_deplibs_check_method=pass_all
12598 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12599 lt_cv_file_magic_cmd='/usr/bin/file -L'
12600 lt_cv_file_magic_test_file=/shlib/libc.so
12604 # func_win32_libid is a shell function defined in ltmain.sh
12605 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12606 lt_cv_file_magic_cmd='func_win32_libid'
12610 # Base MSYS/MinGW do not provide the 'file' command needed by
12611 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12612 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12613 lt_cv_file_magic_cmd='$OBJDUMP -f'
12616 darwin* | rhapsody*)
12617 lt_cv_deplibs_check_method=pass_all
12620 freebsd* | kfreebsd*-gnu | dragonfly*)
12621 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12624 # Not sure whether the presence of OpenBSD here was a mistake.
12625 # Let's accept both of them until this is cleared up.
12626 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12627 lt_cv_file_magic_cmd=/usr/bin/file
12628 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12632 lt_cv_deplibs_check_method=pass_all
12637 lt_cv_deplibs_check_method=pass_all
12640 hpux10.20* | hpux11*)
12641 lt_cv_file_magic_cmd=/usr/bin/file
12644 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12645 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12648 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]'
12649 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12652 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12653 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12659 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12660 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12663 irix5* | irix6* | nonstopux*)
12665 *-32|*"-32 ") libmagic=32-bit;;
12666 *-n32|*"-n32 ") libmagic=N32;;
12667 *-64|*"-64 ") libmagic=64-bit;;
12668 *) libmagic=never-match;;
12670 lt_cv_deplibs_check_method=pass_all
12673 # This must be Linux ELF.
12675 lt_cv_deplibs_check_method=pass_all
12679 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12687 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12688 lt_cv_file_magic_cmd=/usr/bin/file
12689 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12693 lt_cv_deplibs_check_method=unknown
12697 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12700 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12704 osf3* | osf4* | osf5*)
12705 lt_cv_deplibs_check_method=pass_all
12709 lt_cv_deplibs_check_method=pass_all
12713 case $host_vendor in
12715 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]'
12716 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12719 lt_cv_deplibs_check_method=pass_all
12722 lt_cv_file_magic_cmd='/bin/file'
12723 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12726 lt_cv_file_magic_cmd='/bin/file'
12727 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12728 lt_cv_file_magic_test_file=/lib/libc.so
12731 lt_cv_deplibs_check_method=pass_all
12734 lt_cv_deplibs_check_method=pass_all
12739 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12740 lt_cv_deplibs_check_method=pass_all
12745 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12746 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12747 file_magic_cmd=$lt_cv_file_magic_cmd
12748 deplibs_check_method=$lt_cv_deplibs_check_method
12749 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12753 # If no C compiler was specified, use CC.
12756 # If no C compiler flags were specified, use CFLAGS.
12757 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12759 # Allow CC to be a program name with arguments.
12762 # Check whether --enable-libtool-lock was given.
12763 if test "${enable_libtool_lock+set}" = set; then
12764 enableval=$enable_libtool_lock;
12767 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12769 # Some flags need to be propagated to the compiler or linker for good
12773 # Find out which ABI we are using.
12774 echo 'int i;' > conftest.$ac_ext
12775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12776 (eval $ac_compile) 2>&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); }; then
12780 case `/usr/bin/file conftest.$ac_objext` in
12782 HPUX_IA64_MODE="32"
12785 HPUX_IA64_MODE="64"
12792 # Find out which ABI we are using.
12793 echo '#line 12793 "configure"' > conftest.$ac_ext
12794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12795 (eval $ac_compile) 2>&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; then
12799 if test "$lt_cv_prog_gnu_ld" = yes; then
12800 case `/usr/bin/file conftest.$ac_objext` in
12802 LD="${LD-ld} -melf32bsmip"
12805 LD="${LD-ld} -melf32bmipn32"
12808 LD="${LD-ld} -melf64bmip"
12812 case `/usr/bin/file conftest.$ac_objext` in
12828 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12829 # Find out which ABI we are using.
12830 echo 'int i;' > conftest.$ac_ext
12831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12832 (eval $ac_compile) 2>&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; then
12836 case `/usr/bin/file conftest.o` in
12840 LD="${LD-ld} -m elf_i386"
12842 ppc64-*linux*|powerpc64-*linux*)
12843 LD="${LD-ld} -m elf32ppclinux"
12846 LD="${LD-ld} -m elf_s390"
12849 LD="${LD-ld} -m elf32_sparc"
12856 LD="${LD-ld} -m elf_x86_64"
12858 ppc*-*linux*|powerpc*-*linux*)
12859 LD="${LD-ld} -m elf64ppc"
12862 LD="${LD-ld} -m elf64_s390"
12865 LD="${LD-ld} -m elf64_sparc"
12875 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12876 SAVE_CFLAGS="$CFLAGS"
12877 CFLAGS="$CFLAGS -belf"
12878 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12879 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12880 if test "${lt_cv_cc_needs_belf+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12884 ac_cpp='$CPP $CPPFLAGS'
12885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12889 cat >conftest.$ac_ext <<_ACEOF
12892 cat confdefs.h >>conftest.$ac_ext
12893 cat >>conftest.$ac_ext <<_ACEOF
12894 /* end confdefs.h. */
12904 rm -f conftest.$ac_objext conftest$ac_exeext
12905 if { (ac_try="$ac_link"
12906 case "(($ac_try" in
12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908 *) ac_try_echo=$ac_try;;
12910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911 (eval "$ac_link") 2>conftest.er1
12913 grep -v '^ *+' conftest.er1 >conftest.err
12915 cat conftest.err >&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); } &&
12918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12919 { (case "(($ac_try" in
12920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921 *) ac_try_echo=$ac_try;;
12923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12924 (eval "$ac_try") 2>&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; } &&
12928 { ac_try='test -s conftest$ac_exeext'
12929 { (case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934 (eval "$ac_try") 2>&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; }; then
12938 lt_cv_cc_needs_belf=yes
12940 echo "$as_me: failed program was:" >&5
12941 sed 's/^/| /' conftest.$ac_ext >&5
12943 lt_cv_cc_needs_belf=no
12946 rm -f core conftest.err conftest.$ac_objext \
12947 conftest$ac_exeext conftest.$ac_ext
12949 ac_cpp='$CPP $CPPFLAGS'
12950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12955 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12956 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12957 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12958 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12959 CFLAGS="$SAVE_CFLAGS"
12963 # Find out which ABI we are using.
12964 echo 'int i;' > conftest.$ac_ext
12965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12966 (eval $ac_compile) 2>&5
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); }; then
12970 case `/usr/bin/file conftest.o` in
12972 case $lt_cv_prog_gnu_ld in
12973 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12974 *) LD="${LD-ld} -64" ;;
12985 need_locks="$enable_libtool_lock"
12990 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12991 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12992 (test "X$CXX" != "Xg++"))) ; then
12994 ac_cpp='$CXXCPP $CPPFLAGS'
12995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12998 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12999 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13000 if test -z "$CXXCPP"; then
13001 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13004 # Double quotes because CXXCPP needs to be expanded
13005 for CXXCPP in "$CXX -E" "/lib/cpp"
13007 ac_preproc_ok=false
13008 for ac_cxx_preproc_warn_flag in '' yes
13010 # Use a header file that comes with gcc, so configuring glibc
13011 # with a fresh cross-compiler works.
13012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13013 # <limits.h> exists even on freestanding compilers.
13014 # On the NeXT, cc -E runs the code through the compiler's parser,
13015 # not just through cpp. "Syntax error" is here to catch this case.
13016 cat >conftest.$ac_ext <<_ACEOF
13019 cat confdefs.h >>conftest.$ac_ext
13020 cat >>conftest.$ac_ext <<_ACEOF
13021 /* end confdefs.h. */
13023 # include <limits.h>
13025 # include <assert.h>
13029 if { (ac_try="$ac_cpp conftest.$ac_ext"
13030 case "(($ac_try" in
13031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032 *) ac_try_echo=$ac_try;;
13034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13037 grep -v '^ *+' conftest.er1 >conftest.err
13039 cat conftest.err >&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); } >/dev/null; then
13042 if test -s conftest.err; then
13043 ac_cpp_err=$ac_cxx_preproc_warn_flag
13044 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13051 if test -z "$ac_cpp_err"; then
13054 echo "$as_me: failed program was:" >&5
13055 sed 's/^/| /' conftest.$ac_ext >&5
13057 # Broken: fails on valid input.
13061 rm -f conftest.err conftest.$ac_ext
13063 # OK, works on sane cases. Now check whether nonexistent headers
13064 # can be detected and how.
13065 cat >conftest.$ac_ext <<_ACEOF
13068 cat confdefs.h >>conftest.$ac_ext
13069 cat >>conftest.$ac_ext <<_ACEOF
13070 /* end confdefs.h. */
13071 #include <ac_nonexistent.h>
13073 if { (ac_try="$ac_cpp conftest.$ac_ext"
13074 case "(($ac_try" in
13075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13081 grep -v '^ *+' conftest.er1 >conftest.err
13083 cat conftest.err >&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } >/dev/null; then
13086 if test -s conftest.err; then
13087 ac_cpp_err=$ac_cxx_preproc_warn_flag
13088 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13095 if test -z "$ac_cpp_err"; then
13096 # Broken: success on invalid input.
13099 echo "$as_me: failed program was:" >&5
13100 sed 's/^/| /' conftest.$ac_ext >&5
13102 # Passes both tests.
13107 rm -f conftest.err conftest.$ac_ext
13110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13111 rm -f conftest.err conftest.$ac_ext
13112 if $ac_preproc_ok; then
13117 ac_cv_prog_CXXCPP=$CXXCPP
13120 CXXCPP=$ac_cv_prog_CXXCPP
13122 ac_cv_prog_CXXCPP=$CXXCPP
13124 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13125 echo "${ECHO_T}$CXXCPP" >&6; }
13126 ac_preproc_ok=false
13127 for ac_cxx_preproc_warn_flag in '' yes
13129 # Use a header file that comes with gcc, so configuring glibc
13130 # with a fresh cross-compiler works.
13131 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13132 # <limits.h> exists even on freestanding compilers.
13133 # On the NeXT, cc -E runs the code through the compiler's parser,
13134 # not just through cpp. "Syntax error" is here to catch this case.
13135 cat >conftest.$ac_ext <<_ACEOF
13138 cat confdefs.h >>conftest.$ac_ext
13139 cat >>conftest.$ac_ext <<_ACEOF
13140 /* end confdefs.h. */
13142 # include <limits.h>
13144 # include <assert.h>
13148 if { (ac_try="$ac_cpp conftest.$ac_ext"
13149 case "(($ac_try" in
13150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151 *) ac_try_echo=$ac_try;;
13153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13156 grep -v '^ *+' conftest.er1 >conftest.err
13158 cat conftest.err >&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); } >/dev/null; then
13161 if test -s conftest.err; then
13162 ac_cpp_err=$ac_cxx_preproc_warn_flag
13163 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13170 if test -z "$ac_cpp_err"; then
13173 echo "$as_me: failed program was:" >&5
13174 sed 's/^/| /' conftest.$ac_ext >&5
13176 # Broken: fails on valid input.
13180 rm -f conftest.err conftest.$ac_ext
13182 # OK, works on sane cases. Now check whether nonexistent headers
13183 # can be detected and how.
13184 cat >conftest.$ac_ext <<_ACEOF
13187 cat confdefs.h >>conftest.$ac_ext
13188 cat >>conftest.$ac_ext <<_ACEOF
13189 /* end confdefs.h. */
13190 #include <ac_nonexistent.h>
13192 if { (ac_try="$ac_cpp conftest.$ac_ext"
13193 case "(($ac_try" in
13194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195 *) ac_try_echo=$ac_try;;
13197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13200 grep -v '^ *+' conftest.er1 >conftest.err
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } >/dev/null; then
13205 if test -s conftest.err; then
13206 ac_cpp_err=$ac_cxx_preproc_warn_flag
13207 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13214 if test -z "$ac_cpp_err"; then
13215 # Broken: success on invalid input.
13218 echo "$as_me: failed program was:" >&5
13219 sed 's/^/| /' conftest.$ac_ext >&5
13221 # Passes both tests.
13226 rm -f conftest.err conftest.$ac_ext
13229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13230 rm -f conftest.err conftest.$ac_ext
13231 if $ac_preproc_ok; then
13234 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13235 See \`config.log' for more details." >&5
13236 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13237 See \`config.log' for more details." >&2;}
13238 { (exit 1); exit 1; }; }
13242 ac_cpp='$CXXCPP $CPPFLAGS'
13243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13251 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13252 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13253 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13254 if test -n "$ac_tool_prefix"; then
13255 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
13257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13258 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13261 if test "${ac_cv_prog_F77+set}" = set; then
13262 echo $ECHO_N "(cached) $ECHO_C" >&6
13264 if test -n "$F77"; then
13265 ac_cv_prog_F77="$F77" # Let the user override the test.
13267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13268 for as_dir in $PATH
13271 test -z "$as_dir" && as_dir=.
13272 for ac_exec_ext in '' $ac_executable_extensions; do
13273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13274 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13284 F77=$ac_cv_prog_F77
13285 if test -n "$F77"; then
13286 { echo "$as_me:$LINENO: result: $F77" >&5
13287 echo "${ECHO_T}$F77" >&6; }
13289 { echo "$as_me:$LINENO: result: no" >&5
13290 echo "${ECHO_T}no" >&6; }
13294 test -n "$F77" && break
13297 if test -z "$F77"; then
13299 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
13301 # Extract the first word of "$ac_prog", so it can be a program name with args.
13302 set dummy $ac_prog; ac_word=$2
13303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13305 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13306 echo $ECHO_N "(cached) $ECHO_C" >&6
13308 if test -n "$ac_ct_F77"; then
13309 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312 for as_dir in $PATH
13315 test -z "$as_dir" && as_dir=.
13316 for ac_exec_ext in '' $ac_executable_extensions; do
13317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13318 ac_cv_prog_ac_ct_F77="$ac_prog"
13319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13328 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13329 if test -n "$ac_ct_F77"; then
13330 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13331 echo "${ECHO_T}$ac_ct_F77" >&6; }
13333 { echo "$as_me:$LINENO: result: no" >&5
13334 echo "${ECHO_T}no" >&6; }
13338 test -n "$ac_ct_F77" && break
13341 if test "x$ac_ct_F77" = x; then
13344 case $cross_compiling:$ac_tool_warned in
13346 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13347 whose name does not start with the host triplet. If you think this
13348 configuration is useful to you, please write to autoconf@gnu.org." >&5
13349 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13350 whose name does not start with the host triplet. If you think this
13351 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13352 ac_tool_warned=yes ;;
13359 # Provide some information about the compiler.
13360 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13361 ac_compiler=`set X $ac_compile; echo $2`
13362 { (ac_try="$ac_compiler --version >&5"
13363 case "(($ac_try" in
13364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365 *) ac_try_echo=$ac_try;;
13367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368 (eval "$ac_compiler --version >&5") 2>&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }
13372 { (ac_try="$ac_compiler -v >&5"
13373 case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_compiler -v >&5") 2>&5
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); }
13382 { (ac_try="$ac_compiler -V >&5"
13383 case "(($ac_try" in
13384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13385 *) ac_try_echo=$ac_try;;
13387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13388 (eval "$ac_compiler -V >&5") 2>&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }
13394 # If we don't use `.F' as extension, the preprocessor is not run on the
13395 # input file. (Note that this only needs to work for GNU compilers.)
13396 ac_save_ext=$ac_ext
13398 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13399 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13400 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13401 echo $ECHO_N "(cached) $ECHO_C" >&6
13403 cat >conftest.$ac_ext <<_ACEOF
13411 rm -f conftest.$ac_objext
13412 if { (ac_try="$ac_compile"
13413 case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_compile") 2>conftest.er1
13420 grep -v '^ *+' conftest.er1 >conftest.err
13422 cat conftest.err >&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } &&
13425 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13426 { (case "(($ac_try" in
13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428 *) ac_try_echo=$ac_try;;
13430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431 (eval "$ac_try") 2>&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; } &&
13435 { ac_try='test -s conftest.$ac_objext'
13436 { (case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_try") 2>&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; }; then
13445 ac_compiler_gnu=yes
13447 echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13454 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13457 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13458 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13459 ac_ext=$ac_save_ext
13460 ac_test_FFLAGS=${FFLAGS+set}
13461 ac_save_FFLAGS=$FFLAGS
13463 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13464 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13465 if test "${ac_cv_prog_f77_g+set}" = set; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13469 cat >conftest.$ac_ext <<_ACEOF
13474 rm -f conftest.$ac_objext
13475 if { (ac_try="$ac_compile"
13476 case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_compile") 2>conftest.er1
13483 grep -v '^ *+' conftest.er1 >conftest.err
13485 cat conftest.err >&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } &&
13488 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13489 { (case "(($ac_try" in
13490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13491 *) ac_try_echo=$ac_try;;
13493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13494 (eval "$ac_try") 2>&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; } &&
13498 { ac_try='test -s conftest.$ac_objext'
13499 { (case "(($ac_try" in
13500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13501 *) ac_try_echo=$ac_try;;
13503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13504 (eval "$ac_try") 2>&5
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); }; }; then
13508 ac_cv_prog_f77_g=yes
13510 echo "$as_me: failed program was:" >&5
13511 sed 's/^/| /' conftest.$ac_ext >&5
13513 ac_cv_prog_f77_g=no
13516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13519 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13520 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13521 if test "$ac_test_FFLAGS" = set; then
13522 FFLAGS=$ac_save_FFLAGS
13523 elif test $ac_cv_prog_f77_g = yes; then
13524 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13530 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13537 G77=`test $ac_compiler_gnu = yes && echo yes`
13539 ac_cpp='$CPP $CPPFLAGS'
13540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13546 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13548 # find the maximum length of command line arguments
13549 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13550 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13551 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13559 # On DJGPP, this test can blow up pretty badly due to problems in libc
13560 # (any single argument exceeding 2000 bytes causes a buffer overrun
13561 # during glob expansion). Even if it were fixed, the result of this
13562 # check would be larger than it should be.
13563 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13567 # Under GNU Hurd, this test is not required because there is
13568 # no limit to the length of command line arguments.
13569 # Libtool will interpret -1 as no limit whatsoever
13570 lt_cv_sys_max_cmd_len=-1;
13574 # On Win9x/ME, this test blows up -- it succeeds, but takes
13575 # about 5 minutes as the teststring grows exponentially.
13576 # Worse, since 9x/ME are not pre-emptively multitasking,
13577 # you end up with a "frozen" computer, even though with patience
13578 # the test eventually succeeds (with a max line length of 256k).
13579 # Instead, let's just punt: use the minimum linelength reported by
13580 # all of the supported platforms: 8192 (on NT/2K/XP).
13581 lt_cv_sys_max_cmd_len=8192;
13585 # On AmigaOS with pdksh, this test takes hours, literally.
13586 # So we just punt and use a minimum line length of 8192.
13587 lt_cv_sys_max_cmd_len=8192;
13590 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13591 # This has been around since 386BSD, at least. Likely further.
13592 if test -x /sbin/sysctl; then
13593 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13594 elif test -x /usr/sbin/sysctl; then
13595 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13597 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13599 # And add a safety zone
13600 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13605 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13606 lt_cv_sys_max_cmd_len=196608
13610 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13611 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13612 # nice to cause kernel panics so lets avoid the loop below.
13613 # First set a reasonable default.
13614 lt_cv_sys_max_cmd_len=16384
13616 if test -x /sbin/sysconfig; then
13617 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13618 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13623 lt_cv_sys_max_cmd_len=102400
13625 sysv5* | sco5v6* | sysv4.2uw2*)
13626 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13627 if test -n "$kargmax"; then
13628 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13630 lt_cv_sys_max_cmd_len=32768
13634 # If test is not a shell built-in, we'll probably end up computing a
13635 # maximum length that is only half of the actual maximum length, but
13637 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13638 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13639 = "XX$teststring") >/dev/null 2>&1 &&
13640 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13641 lt_cv_sys_max_cmd_len=$new_result &&
13642 test $i != 17 # 1/2 MB should be enough
13645 teststring=$teststring$teststring
13648 # Add a significant safety factor because C++ compilers can tack on massive
13649 # amounts of additional arguments before passing them to the linker.
13650 # It appears as though 1/2 is a usable value.
13651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13657 if test -n $lt_cv_sys_max_cmd_len ; then
13658 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13659 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13661 { echo "$as_me:$LINENO: result: none" >&5
13662 echo "${ECHO_T}none" >&6; }
13668 # Check for command to grab the raw symbol name followed by C symbol from nm.
13669 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13670 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13671 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13672 echo $ECHO_N "(cached) $ECHO_C" >&6
13675 # These are sane defaults that work on at least a few old systems.
13676 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13678 # Character class describing NM global symbol codes.
13679 symcode='[BCDEGRST]'
13681 # Regexp to match symbols that can be accessed directly from C.
13682 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13684 # Transform an extracted symbol line into a proper C declaration
13685 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13687 # Transform an extracted symbol line into symbol name and symbol address
13688 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'"
13690 # Define system-specific variables.
13695 cygwin* | mingw* | pw32*)
13696 symcode='[ABCDGISTW]'
13698 hpux*) # Its linker distinguishes data from code symbols
13699 if test "$host_cpu" = ia64; then
13700 symcode='[ABCDEGRST]'
13702 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13703 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'"
13706 if test "$host_cpu" = ia64; then
13707 symcode='[ABCDGIRSTW]'
13708 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13709 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'"
13712 irix* | nonstopux*)
13713 symcode='[BCDEGRST]'
13716 symcode='[BCDEGQRST]'
13727 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13735 # Handle CRLF in mingw tool chain
13739 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13743 # If we're using GNU nm, then use its standard symbol codes.
13744 case `$NM -V 2>&1` in
13745 *GNU* | *'with BFD'*)
13746 symcode='[ABCDGIRSTW]' ;;
13749 # Try without a prefix undercore, then with it.
13750 for ac_symprfx in "" "_"; do
13752 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13753 symxfrm="\\1 $ac_symprfx\\2 \\2"
13755 # Write the raw and C identifiers.
13756 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13758 # Check to see that the pipe works correctly.
13762 cat > conftest.$ac_ext <<EOF
13767 void nm_test_func(){}
13771 int main(){nm_test_var='a';nm_test_func();return(0);}
13774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13775 (eval $ac_compile) 2>&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; then
13779 # Now try to grab the symbols.
13781 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13782 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } && test -s "$nlist"; then
13786 # Try sorting and uniquifying the output.
13787 if sort "$nlist" | uniq > "$nlist"T; then
13788 mv -f "$nlist"T "$nlist"
13793 # Make sure that we snagged all the symbols we need.
13794 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13795 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13796 cat <<EOF > conftest.$ac_ext
13802 # Now generate the symbol file.
13803 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13805 cat <<EOF >> conftest.$ac_ext
13806 #if defined (__STDC__) && __STDC__
13807 # define lt_ptr_t void *
13809 # define lt_ptr_t char *
13813 /* The mapping between symbol names and symbols. */
13818 lt_preloaded_symbols[] =
13821 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13822 cat <<\EOF >> conftest.$ac_ext
13830 # Now try linking the two files.
13831 mv conftest.$ac_objext conftstm.$ac_objext
13832 lt_save_LIBS="$LIBS"
13833 lt_save_CFLAGS="$CFLAGS"
13834 LIBS="conftstm.$ac_objext"
13835 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13837 (eval $ac_link) 2>&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13843 LIBS="$lt_save_LIBS"
13844 CFLAGS="$lt_save_CFLAGS"
13846 echo "cannot find nm_test_func in $nlist" >&5
13849 echo "cannot find nm_test_var in $nlist" >&5
13852 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13855 echo "$progname: failed program was:" >&5
13856 cat conftest.$ac_ext >&5
13858 rm -f conftest* conftst*
13860 # Do not use the global_symbol_pipe unless it works.
13861 if test "$pipe_works" = yes; then
13864 lt_cv_sys_global_symbol_pipe=
13870 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13871 lt_cv_sys_global_symbol_to_cdecl=
13873 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13874 { echo "$as_me:$LINENO: result: failed" >&5
13875 echo "${ECHO_T}failed" >&6; }
13877 { echo "$as_me:$LINENO: result: ok" >&5
13878 echo "${ECHO_T}ok" >&6; }
13881 { echo "$as_me:$LINENO: checking for objdir" >&5
13882 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13883 if test "${lt_cv_objdir+set}" = set; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13886 rm -f .libs 2>/dev/null
13887 mkdir .libs 2>/dev/null
13888 if test -d .libs; then
13891 # MS-DOS does not allow filenames that begin with a dot.
13894 rmdir .libs 2>/dev/null
13896 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13897 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13898 objdir=$lt_cv_objdir
13906 # AIX sometimes has problems with the GCC collect2 program. For some
13907 # reason, if we set the COLLECT_NAMES environment variable, the problems
13908 # vanish in a puff of smoke.
13909 if test "X${COLLECT_NAMES+set}" != Xset; then
13911 export COLLECT_NAMES
13916 # Sed substitution that helps us do robust quoting. It backslashifies
13917 # metacharacters that are still active within double-quoted strings.
13918 Xsed='sed -e 1s/^X//'
13919 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13921 # Same as above, but do not quote variable references.
13922 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13924 # Sed substitution to delay expansion of an escaped shell variable in a
13925 # double_quote_subst'ed string.
13926 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13928 # Sed substitution to avoid accidental globbing in evaled expressions
13929 no_glob_subst='s/\*/\\\*/g'
13934 # Global variables:
13935 default_ofile=mklib
13936 can_build_shared=yes
13938 # All known linkers require a `.a' archive for static linking (except MSVC,
13939 # which needs '.lib').
13941 ltmain="$ac_aux_dir/ltmain.sh"
13942 ofile="$default_ofile"
13943 with_gnu_ld="$lt_cv_prog_gnu_ld"
13945 if test -n "$ac_tool_prefix"; then
13946 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13947 set dummy ${ac_tool_prefix}ar; ac_word=$2
13948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13950 if test "${ac_cv_prog_AR+set}" = set; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13953 if test -n "$AR"; then
13954 ac_cv_prog_AR="$AR" # Let the user override the test.
13956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13957 for as_dir in $PATH
13960 test -z "$as_dir" && as_dir=.
13961 for ac_exec_ext in '' $ac_executable_extensions; do
13962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13963 ac_cv_prog_AR="${ac_tool_prefix}ar"
13964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13974 if test -n "$AR"; then
13975 { echo "$as_me:$LINENO: result: $AR" >&5
13976 echo "${ECHO_T}$AR" >&6; }
13978 { echo "$as_me:$LINENO: result: no" >&5
13979 echo "${ECHO_T}no" >&6; }
13984 if test -z "$ac_cv_prog_AR"; then
13986 # Extract the first word of "ar", so it can be a program name with args.
13987 set dummy ar; ac_word=$2
13988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13990 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13991 echo $ECHO_N "(cached) $ECHO_C" >&6
13993 if test -n "$ac_ct_AR"; then
13994 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13997 for as_dir in $PATH
14000 test -z "$as_dir" && as_dir=.
14001 for ac_exec_ext in '' $ac_executable_extensions; do
14002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14003 ac_cv_prog_ac_ct_AR="ar"
14004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14013 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14014 if test -n "$ac_ct_AR"; then
14015 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14016 echo "${ECHO_T}$ac_ct_AR" >&6; }
14018 { echo "$as_me:$LINENO: result: no" >&5
14019 echo "${ECHO_T}no" >&6; }
14022 if test "x$ac_ct_AR" = x; then
14025 case $cross_compiling:$ac_tool_warned in
14027 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14028 whose name does not start with the host triplet. If you think this
14029 configuration is useful to you, please write to autoconf@gnu.org." >&5
14030 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14031 whose name does not start with the host triplet. If you think this
14032 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14033 ac_tool_warned=yes ;;
14038 AR="$ac_cv_prog_AR"
14041 if test -n "$ac_tool_prefix"; then
14042 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14043 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14046 if test "${ac_cv_prog_RANLIB+set}" = set; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
14049 if test -n "$RANLIB"; then
14050 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14053 for as_dir in $PATH
14056 test -z "$as_dir" && as_dir=.
14057 for ac_exec_ext in '' $ac_executable_extensions; do
14058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14059 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14069 RANLIB=$ac_cv_prog_RANLIB
14070 if test -n "$RANLIB"; then
14071 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14072 echo "${ECHO_T}$RANLIB" >&6; }
14074 { echo "$as_me:$LINENO: result: no" >&5
14075 echo "${ECHO_T}no" >&6; }
14080 if test -z "$ac_cv_prog_RANLIB"; then
14081 ac_ct_RANLIB=$RANLIB
14082 # Extract the first word of "ranlib", so it can be a program name with args.
14083 set dummy ranlib; ac_word=$2
14084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14086 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14087 echo $ECHO_N "(cached) $ECHO_C" >&6
14089 if test -n "$ac_ct_RANLIB"; then
14090 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14093 for as_dir in $PATH
14096 test -z "$as_dir" && as_dir=.
14097 for ac_exec_ext in '' $ac_executable_extensions; do
14098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14099 ac_cv_prog_ac_ct_RANLIB="ranlib"
14100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14109 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14110 if test -n "$ac_ct_RANLIB"; then
14111 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14112 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14114 { echo "$as_me:$LINENO: result: no" >&5
14115 echo "${ECHO_T}no" >&6; }
14118 if test "x$ac_ct_RANLIB" = x; then
14121 case $cross_compiling:$ac_tool_warned in
14123 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14124 whose name does not start with the host triplet. If you think this
14125 configuration is useful to you, please write to autoconf@gnu.org." >&5
14126 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14127 whose name does not start with the host triplet. If you think this
14128 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14129 ac_tool_warned=yes ;;
14131 RANLIB=$ac_ct_RANLIB
14134 RANLIB="$ac_cv_prog_RANLIB"
14137 if test -n "$ac_tool_prefix"; then
14138 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14139 set dummy ${ac_tool_prefix}strip; ac_word=$2
14140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14142 if test "${ac_cv_prog_STRIP+set}" = set; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14145 if test -n "$STRIP"; then
14146 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14149 for as_dir in $PATH
14152 test -z "$as_dir" && as_dir=.
14153 for ac_exec_ext in '' $ac_executable_extensions; do
14154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14155 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14165 STRIP=$ac_cv_prog_STRIP
14166 if test -n "$STRIP"; then
14167 { echo "$as_me:$LINENO: result: $STRIP" >&5
14168 echo "${ECHO_T}$STRIP" >&6; }
14170 { echo "$as_me:$LINENO: result: no" >&5
14171 echo "${ECHO_T}no" >&6; }
14176 if test -z "$ac_cv_prog_STRIP"; then
14178 # Extract the first word of "strip", so it can be a program name with args.
14179 set dummy strip; ac_word=$2
14180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14182 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14183 echo $ECHO_N "(cached) $ECHO_C" >&6
14185 if test -n "$ac_ct_STRIP"; then
14186 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14189 for as_dir in $PATH
14192 test -z "$as_dir" && as_dir=.
14193 for ac_exec_ext in '' $ac_executable_extensions; do
14194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14195 ac_cv_prog_ac_ct_STRIP="strip"
14196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14205 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14206 if test -n "$ac_ct_STRIP"; then
14207 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14208 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14210 { echo "$as_me:$LINENO: result: no" >&5
14211 echo "${ECHO_T}no" >&6; }
14214 if test "x$ac_ct_STRIP" = x; then
14217 case $cross_compiling:$ac_tool_warned in
14219 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14220 whose name does not start with the host triplet. If you think this
14221 configuration is useful to you, please write to autoconf@gnu.org." >&5
14222 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14223 whose name does not start with the host triplet. If you think this
14224 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14225 ac_tool_warned=yes ;;
14230 STRIP="$ac_cv_prog_STRIP"
14235 old_CFLAGS="$CFLAGS"
14237 # Set sane defaults for various variables
14238 test -z "$AR" && AR=ar
14239 test -z "$AR_FLAGS" && AR_FLAGS=cru
14240 test -z "$AS" && AS=as
14241 test -z "$CC" && CC=cc
14242 test -z "$LTCC" && LTCC=$CC
14243 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14244 test -z "$DLLTOOL" && DLLTOOL=dlltool
14245 test -z "$LD" && LD=ld
14246 test -z "$LN_S" && LN_S="ln -s"
14247 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14248 test -z "$NM" && NM=nm
14249 test -z "$SED" && SED=sed
14250 test -z "$OBJDUMP" && OBJDUMP=objdump
14251 test -z "$RANLIB" && RANLIB=:
14252 test -z "$STRIP" && STRIP=:
14253 test -z "$ac_objext" && ac_objext=o
14255 # Determine commands to create old-style static archives.
14256 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14257 old_postinstall_cmds='chmod 644 $oldlib'
14258 old_postuninstall_cmds=
14260 if test -n "$RANLIB"; then
14263 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14266 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14269 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14272 for cc_temp in $compiler""; do
14274 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14275 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14280 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14283 # Only perform the check for file, if the check method requires it
14284 case $deplibs_check_method in
14286 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14287 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14288 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14289 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14290 echo $ECHO_N "(cached) $ECHO_C" >&6
14294 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14297 lt_save_MAGIC_CMD="$MAGIC_CMD"
14298 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14299 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14300 for ac_dir in $ac_dummy; do
14302 test -z "$ac_dir" && ac_dir=.
14303 if test -f $ac_dir/${ac_tool_prefix}file; then
14304 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14305 if test -n "$file_magic_test_file"; then
14306 case $deplibs_check_method in
14308 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14309 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14310 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14311 $EGREP "$file_magic_regex" > /dev/null; then
14316 *** Warning: the command libtool uses to detect shared libraries,
14317 *** $file_magic_cmd, produces output that libtool cannot recognize.
14318 *** The result is that libtool may fail to recognize shared libraries
14319 *** as such. This will affect the creation of libtool libraries that
14320 *** depend on shared libraries, but programs linked with such libtool
14321 *** libraries will work regardless of this problem. Nevertheless, you
14322 *** may want to report the problem to your system manager and/or to
14323 *** bug-libtool@gnu.org
14333 MAGIC_CMD="$lt_save_MAGIC_CMD"
14338 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14339 if test -n "$MAGIC_CMD"; then
14340 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14341 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14343 { echo "$as_me:$LINENO: result: no" >&5
14344 echo "${ECHO_T}no" >&6; }
14347 if test -z "$lt_cv_path_MAGIC_CMD"; then
14348 if test -n "$ac_tool_prefix"; then
14349 { echo "$as_me:$LINENO: checking for file" >&5
14350 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14351 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14352 echo $ECHO_N "(cached) $ECHO_C" >&6
14356 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14359 lt_save_MAGIC_CMD="$MAGIC_CMD"
14360 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14361 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14362 for ac_dir in $ac_dummy; do
14364 test -z "$ac_dir" && ac_dir=.
14365 if test -f $ac_dir/file; then
14366 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14367 if test -n "$file_magic_test_file"; then
14368 case $deplibs_check_method in
14370 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14371 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14372 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14373 $EGREP "$file_magic_regex" > /dev/null; then
14378 *** Warning: the command libtool uses to detect shared libraries,
14379 *** $file_magic_cmd, produces output that libtool cannot recognize.
14380 *** The result is that libtool may fail to recognize shared libraries
14381 *** as such. This will affect the creation of libtool libraries that
14382 *** depend on shared libraries, but programs linked with such libtool
14383 *** libraries will work regardless of this problem. Nevertheless, you
14384 *** may want to report the problem to your system manager and/or to
14385 *** bug-libtool@gnu.org
14395 MAGIC_CMD="$lt_save_MAGIC_CMD"
14400 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14401 if test -n "$MAGIC_CMD"; then
14402 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14403 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14405 { echo "$as_me:$LINENO: result: no" >&5
14406 echo "${ECHO_T}no" >&6; }
14419 enable_win32_dll=no
14421 # Check whether --enable-libtool-lock was given.
14422 if test "${enable_libtool_lock+set}" = set; then
14423 enableval=$enable_libtool_lock;
14426 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14429 # Check whether --with-pic was given.
14430 if test "${with_pic+set}" = set; then
14431 withval=$with_pic; pic_mode="$withval"
14436 test -z "$pic_mode" && pic_mode=default
14438 # Use C for the default configuration in the libtool script
14442 ac_cpp='$CPP $CPPFLAGS'
14443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14448 # Source file extension for C test sources.
14451 # Object file extension for compiled C test sources.
14455 # Code to be used in simple compile tests
14456 lt_simple_compile_test_code="int some_variable = 0;\n"
14458 # Code to be used in simple link tests
14459 lt_simple_link_test_code='int main(){return(0);}\n'
14462 # If no C compiler was specified, use CC.
14465 # If no C compiler flags were specified, use CFLAGS.
14466 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14468 # Allow CC to be a program name with arguments.
14472 # save warnings/boilerplate of simple test code
14473 ac_outfile=conftest.$ac_objext
14474 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14475 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14476 _lt_compiler_boilerplate=`cat conftest.err`
14479 ac_outfile=conftest.$ac_objext
14480 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14481 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14482 _lt_linker_boilerplate=`cat conftest.err`
14487 lt_prog_compiler_no_builtin_flag=
14489 if test "$GCC" = yes; then
14490 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14493 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14494 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14495 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14498 lt_cv_prog_compiler_rtti_exceptions=no
14499 ac_outfile=conftest.$ac_objext
14500 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14501 lt_compiler_flag="-fno-rtti -fno-exceptions"
14502 # Insert the option either (1) after the last *FLAGS variable, or
14503 # (2) before a word containing "conftest.", or (3) at the end.
14504 # Note that $ac_compile itself does not contain backslashes and begins
14505 # with a dollar sign (not a hyphen), so the echo should work correctly.
14506 # The option is referenced via a variable to avoid confusing sed.
14507 lt_compile=`echo "$ac_compile" | $SED \
14508 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14510 -e 's:$: $lt_compiler_flag:'`
14511 (eval echo "\"\$as_me:14511: $lt_compile\"" >&5)
14512 (eval "$lt_compile" 2>conftest.err)
14514 cat conftest.err >&5
14515 echo "$as_me:14515: \$? = $ac_status" >&5
14516 if (exit $ac_status) && test -s "$ac_outfile"; then
14517 # The compiler can only warn and ignore the option if not recognized
14518 # So say no if there are warnings other than the usual output.
14519 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14521 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14522 lt_cv_prog_compiler_rtti_exceptions=yes
14528 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14529 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14531 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14532 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14539 lt_prog_compiler_wl=
14540 lt_prog_compiler_pic=
14541 lt_prog_compiler_static=
14543 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14544 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14546 if test "$GCC" = yes; then
14547 lt_prog_compiler_wl='-Wl,'
14548 lt_prog_compiler_static='-static'
14552 # All AIX code is PIC.
14553 if test "$host_cpu" = ia64; then
14554 # AIX 5 now supports IA64 processor
14555 lt_prog_compiler_static='-Bstatic'
14560 # FIXME: we need at least 68020 code to build shared libraries, but
14561 # adding the `-m68020' flag to GCC prevents building anything better,
14563 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14566 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14567 # PIC is the default for these OSes.
14570 mingw* | pw32* | os2*)
14571 # This hack is so that the source file can tell whether it is being
14572 # built for inclusion in a dll (and should export symbols for example).
14573 lt_prog_compiler_pic='-DDLL_EXPORT'
14576 darwin* | rhapsody*)
14577 # PIC is the default on this platform
14578 # Common symbols not allowed in MH_DYLIB files
14579 lt_prog_compiler_pic='-fno-common'
14583 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14584 # Instead, we relocate shared libraries at runtime.
14588 # Just because we use GCC doesn't mean we suddenly get shared libraries
14589 # on systems that don't support them.
14590 lt_prog_compiler_can_build_shared=no
14595 if test -d /usr/nec; then
14596 lt_prog_compiler_pic=-Kconform_pic
14601 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14602 # not for PA HP-UX.
14608 lt_prog_compiler_pic='-fPIC'
14614 lt_prog_compiler_pic='-fPIC'
14618 # PORTME Check for flag to pass linker flags through the system compiler.
14621 lt_prog_compiler_wl='-Wl,'
14622 if test "$host_cpu" = ia64; then
14623 # AIX 5 now supports IA64 processor
14624 lt_prog_compiler_static='-Bstatic'
14626 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14630 # PIC is the default on this platform
14631 # Common symbols not allowed in MH_DYLIB files
14632 case $cc_basename in
14634 lt_prog_compiler_pic='-qnocommon'
14635 lt_prog_compiler_wl='-Wl,'
14640 mingw* | pw32* | os2*)
14641 # This hack is so that the source file can tell whether it is being
14642 # built for inclusion in a dll (and should export symbols for example).
14643 lt_prog_compiler_pic='-DDLL_EXPORT'
14646 hpux9* | hpux10* | hpux11*)
14647 lt_prog_compiler_wl='-Wl,'
14648 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14649 # not for PA HP-UX.
14655 lt_prog_compiler_pic='+Z'
14658 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14659 lt_prog_compiler_static='${wl}-a ${wl}archive'
14662 irix5* | irix6* | nonstopux*)
14663 lt_prog_compiler_wl='-Wl,'
14664 # PIC (with -KPIC) is the default.
14665 lt_prog_compiler_static='-non_shared'
14669 lt_prog_compiler_pic='-KPIC'
14670 lt_prog_compiler_static='-Bstatic'
14674 case $cc_basename in
14676 lt_prog_compiler_wl='-Wl,'
14677 lt_prog_compiler_pic='-KPIC'
14678 lt_prog_compiler_static='-static'
14680 pgcc* | pgf77* | pgf90* | pgf95*)
14681 # Portland Group compilers (*not* the Pentium gcc compiler,
14682 # which looks to be a dead project)
14683 lt_prog_compiler_wl='-Wl,'
14684 lt_prog_compiler_pic='-fpic'
14685 lt_prog_compiler_static='-Bstatic'
14688 lt_prog_compiler_wl='-Wl,'
14689 # All Alpha code is PIC.
14690 lt_prog_compiler_static='-non_shared'
14695 osf3* | osf4* | osf5*)
14696 lt_prog_compiler_wl='-Wl,'
14697 # All OSF/1 code is PIC.
14698 lt_prog_compiler_static='-non_shared'
14702 lt_prog_compiler_pic='-KPIC'
14703 lt_prog_compiler_static='-Bstatic'
14704 case $cc_basename in
14705 f77* | f90* | f95*)
14706 lt_prog_compiler_wl='-Qoption ld ';;
14708 lt_prog_compiler_wl='-Wl,';;
14713 lt_prog_compiler_wl='-Qoption ld '
14714 lt_prog_compiler_pic='-PIC'
14715 lt_prog_compiler_static='-Bstatic'
14718 sysv4 | sysv4.2uw2* | sysv4.3*)
14719 lt_prog_compiler_wl='-Wl,'
14720 lt_prog_compiler_pic='-KPIC'
14721 lt_prog_compiler_static='-Bstatic'
14725 if test -d /usr/nec ;then
14726 lt_prog_compiler_pic='-Kconform_pic'
14727 lt_prog_compiler_static='-Bstatic'
14731 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14732 lt_prog_compiler_wl='-Wl,'
14733 lt_prog_compiler_pic='-KPIC'
14734 lt_prog_compiler_static='-Bstatic'
14738 lt_prog_compiler_wl='-Wl,'
14739 lt_prog_compiler_can_build_shared=no
14743 lt_prog_compiler_pic='-pic'
14744 lt_prog_compiler_static='-Bstatic'
14748 lt_prog_compiler_can_build_shared=no
14753 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14754 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14757 # Check to make sure the PIC flag actually works.
14759 if test -n "$lt_prog_compiler_pic"; then
14761 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14762 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14763 if test "${lt_prog_compiler_pic_works+set}" = set; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
14766 lt_prog_compiler_pic_works=no
14767 ac_outfile=conftest.$ac_objext
14768 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14769 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14770 # Insert the option either (1) after the last *FLAGS variable, or
14771 # (2) before a word containing "conftest.", or (3) at the end.
14772 # Note that $ac_compile itself does not contain backslashes and begins
14773 # with a dollar sign (not a hyphen), so the echo should work correctly.
14774 # The option is referenced via a variable to avoid confusing sed.
14775 lt_compile=`echo "$ac_compile" | $SED \
14776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14778 -e 's:$: $lt_compiler_flag:'`
14779 (eval echo "\"\$as_me:14779: $lt_compile\"" >&5)
14780 (eval "$lt_compile" 2>conftest.err)
14782 cat conftest.err >&5
14783 echo "$as_me:14783: \$? = $ac_status" >&5
14784 if (exit $ac_status) && test -s "$ac_outfile"; then
14785 # The compiler can only warn and ignore the option if not recognized
14786 # So say no if there are warnings other than the usual output.
14787 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14789 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14790 lt_prog_compiler_pic_works=yes
14796 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14797 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14799 if test x"$lt_prog_compiler_pic_works" = xyes; then
14800 case $lt_prog_compiler_pic in
14802 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14805 lt_prog_compiler_pic=
14806 lt_prog_compiler_can_build_shared=no
14811 # For platforms which do not support PIC, -DPIC is meaningless:
14813 lt_prog_compiler_pic=
14816 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14821 # Check to make sure the static flag actually works.
14823 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14824 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14825 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14826 if test "${lt_prog_compiler_static_works+set}" = set; then
14827 echo $ECHO_N "(cached) $ECHO_C" >&6
14829 lt_prog_compiler_static_works=no
14830 save_LDFLAGS="$LDFLAGS"
14831 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14832 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14833 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14834 # The linker can only warn and ignore the option if not recognized
14835 # So say no if there are warnings
14836 if test -s conftest.err; then
14837 # Append any errors to the config.log.
14838 cat conftest.err 1>&5
14839 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14840 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14841 if diff conftest.exp conftest.er2 >/dev/null; then
14842 lt_prog_compiler_static_works=yes
14845 lt_prog_compiler_static_works=yes
14849 LDFLAGS="$save_LDFLAGS"
14852 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14853 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14855 if test x"$lt_prog_compiler_static_works" = xyes; then
14858 lt_prog_compiler_static=
14862 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14863 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14864 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
14867 lt_cv_prog_compiler_c_o=no
14868 $rm -r conftest 2>/dev/null
14872 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14874 lt_compiler_flag="-o out/conftest2.$ac_objext"
14875 # Insert the option either (1) after the last *FLAGS variable, or
14876 # (2) before a word containing "conftest.", or (3) at the end.
14877 # Note that $ac_compile itself does not contain backslashes and begins
14878 # with a dollar sign (not a hyphen), so the echo should work correctly.
14879 lt_compile=`echo "$ac_compile" | $SED \
14880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14882 -e 's:$: $lt_compiler_flag:'`
14883 (eval echo "\"\$as_me:14883: $lt_compile\"" >&5)
14884 (eval "$lt_compile" 2>out/conftest.err)
14886 cat out/conftest.err >&5
14887 echo "$as_me:14887: \$? = $ac_status" >&5
14888 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14890 # The compiler can only warn and ignore the option if not recognized
14891 # So say no if there are warnings
14892 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14893 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14894 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14895 lt_cv_prog_compiler_c_o=yes
14900 # SGI C++ compiler will create directory out/ii_files/ for
14901 # template instantiation
14902 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14903 $rm out/* && rmdir out
14909 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14910 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14913 hard_links="nottested"
14914 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14915 # do not overwrite the value of need_locks provided by the user
14916 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14917 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14920 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14922 ln conftest.a conftest.b 2>&5 || hard_links=no
14923 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14924 { echo "$as_me:$LINENO: result: $hard_links" >&5
14925 echo "${ECHO_T}$hard_links" >&6; }
14926 if test "$hard_links" = no; then
14927 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14928 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14935 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14936 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14939 allow_undefined_flag=
14940 enable_shared_with_static_runtimes=no
14942 archive_expsym_cmds=
14943 old_archive_From_new_cmds=
14944 old_archive_from_expsyms_cmds=
14945 export_dynamic_flag_spec=
14946 whole_archive_flag_spec=
14947 thread_safe_flag_spec=
14948 hardcode_libdir_flag_spec=
14949 hardcode_libdir_flag_spec_ld=
14950 hardcode_libdir_separator=
14952 hardcode_minus_L=no
14953 hardcode_shlibpath_var=unsupported
14954 link_all_deplibs=unknown
14955 hardcode_automatic=no
14957 module_expsym_cmds=
14958 always_export_symbols=no
14959 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14960 # include_expsyms should be a list of space-separated symbols to be *always*
14961 # included in the symbol list
14963 # exclude_expsyms can be an extended regexp of symbols to exclude
14964 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14965 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14966 # as well as any symbol that contains `d'.
14967 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14968 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14969 # platforms (ab)use it in PIC code, but their linkers get confused if
14970 # the symbol is explicitly referenced. Since portable code cannot
14971 # rely on this symbol name, it's probably fine to never include it in
14972 # preloaded symbol tables.
14973 extract_expsyms_cmds=
14974 # Just being paranoid about ensuring that cc_basename is set.
14975 for cc_temp in $compiler""; do
14977 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14978 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14983 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14986 cygwin* | mingw* | pw32*)
14987 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14988 # When not using gcc, we currently assume that we are using
14989 # Microsoft Visual C++.
14990 if test "$GCC" != yes; then
14995 # we just hope/assume this is gcc and not c89 (= MSVC++)
15004 if test "$with_gnu_ld" = yes; then
15005 # If archive_cmds runs LD, not CC, wlarc should be empty
15008 # Set some defaults for GNU ld with shared library support. These
15009 # are reset later if shared libraries are not supported. Putting them
15010 # here allows them to be overridden if necessary.
15011 runpath_var=LD_RUN_PATH
15012 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15013 export_dynamic_flag_spec='${wl}--export-dynamic'
15014 # ancient GNU ld didn't support --whole-archive et. al.
15015 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15016 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15018 whole_archive_flag_spec=
15020 supports_anon_versioning=no
15021 case `$LD -v 2>/dev/null` in
15022 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15023 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15024 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15025 *\ 2.11.*) ;; # other 2.11 versions
15026 *) supports_anon_versioning=yes ;;
15029 # See if GNU ld supports shared libraries.
15031 aix3* | aix4* | aix5*)
15032 # On AIX/PPC, the GNU linker is very broken
15033 if test "$host_cpu" != ia64; then
15037 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15038 *** to be unable to reliably create shared libraries on AIX.
15039 *** Therefore, libtool is disabling shared libraries support. If you
15040 *** really care for shared libraries, you may want to modify your PATH
15041 *** so that a non-GNU linker is found, and then restart.
15048 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)'
15049 hardcode_libdir_flag_spec='-L$libdir'
15050 hardcode_minus_L=yes
15052 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15053 # that the semantics of dynamic libraries on AmigaOS, at least up
15054 # to version 4, is to share data among multiple programs linked
15055 # with the same dynamic library. Since this doesn't match the
15056 # behavior of shared libraries on other platforms, we can't use
15062 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15063 allow_undefined_flag=unsupported
15064 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15065 # support --undefined. This deserves some investigation. FIXME
15066 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15072 cygwin* | mingw* | pw32*)
15073 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15074 # as there is no search path for DLLs.
15075 hardcode_libdir_flag_spec='-L$libdir'
15076 allow_undefined_flag=unsupported
15077 always_export_symbols=no
15078 enable_shared_with_static_runtimes=yes
15079 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15081 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15082 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15083 # If the export-symbols file already is a .def file (1st line
15084 # is EXPORTS), use it as is; otherwise, prepend...
15085 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15086 cp $export_symbols $output_objdir/$soname.def;
15088 echo EXPORTS > $output_objdir/$soname.def;
15089 cat $export_symbols >> $output_objdir/$soname.def;
15091 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15099 hardcode_shlibpath_var=no
15100 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15101 export_dynamic_flag_spec='${wl}-E'
15102 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15103 # Instead, shared libraries are loaded at an image base (0x10000000 by
15104 # default) and relocated if they conflict, which is a slow very memory
15105 # consuming and fragmenting process. To avoid this, we pick a random,
15106 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15107 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15108 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15109 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'
15113 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15115 case $cc_basename,$host_cpu in
15116 pgcc*) # Portland Group C compiler
15117 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'
15118 tmp_addflag=' $pic_flag'
15120 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15121 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'
15122 tmp_addflag=' $pic_flag -Mnomain' ;;
15123 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15124 tmp_addflag=' -i_dynamic' ;;
15125 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15126 tmp_addflag=' -i_dynamic -nofor_main' ;;
15127 ifc* | ifort*) # Intel Fortran compiler
15128 tmp_addflag=' -nofor_main' ;;
15130 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15132 if test $supports_anon_versioning = yes; then
15133 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15134 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15135 $echo "local: *; };" >> $output_objdir/$libname.ver~
15136 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15144 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15145 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15149 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15154 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15158 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15159 *** create shared libraries on Solaris systems. Therefore, libtool
15160 *** is disabling shared libraries support. We urge you to upgrade GNU
15161 *** binutils to release 2.9.1 or newer. Another option is to modify
15162 *** your PATH or compiler configuration so that the native linker is
15163 *** used, and then restart.
15166 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15168 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15174 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15175 case `$LD -v 2>&1` in
15176 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15180 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15181 *** reliably create shared libraries on SCO systems. Therefore, libtool
15182 *** is disabling shared libraries support. We urge you to upgrade GNU
15183 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15184 *** your PATH or compiler configuration so that the native linker is
15185 *** used, and then restart.
15190 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15191 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15193 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15202 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15204 hardcode_direct=yes
15205 hardcode_shlibpath_var=no
15209 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15211 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15218 if test "$ld_shlibs" = no; then
15220 hardcode_libdir_flag_spec=
15221 export_dynamic_flag_spec=
15222 whole_archive_flag_spec=
15225 # PORTME fill in a description of your system's linker (not GNU ld)
15228 allow_undefined_flag=unsupported
15229 always_export_symbols=yes
15230 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'
15231 # Note: this linker hardcodes the directories in LIBPATH if there
15232 # are no directories specified by -L.
15233 hardcode_minus_L=yes
15234 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15235 # Neither direct hardcoding nor static linking is supported with a
15237 hardcode_direct=unsupported
15242 if test "$host_cpu" = ia64; then
15243 # On IA64, the linker does run time linking by default, so we don't
15244 # have to do anything special.
15245 aix_use_runtimelinking=no
15246 exp_sym_flag='-Bexport'
15249 # If we're using GNU nm, then we don't want the "-C" option.
15250 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15251 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15252 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'
15254 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'
15256 aix_use_runtimelinking=no
15258 # Test if we are trying to use run time linking or normal
15259 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15260 # need to do runtime linking.
15261 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15262 for ld_flag in $LDFLAGS; do
15263 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15264 aix_use_runtimelinking=yes
15271 exp_sym_flag='-bexport'
15272 no_entry_flag='-bnoentry'
15275 # When large executables or shared objects are built, AIX ld can
15276 # have problems creating the table of contents. If linking a library
15277 # or program results in "error TOC overflow" add -mminimal-toc to
15278 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15279 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15282 hardcode_direct=yes
15283 hardcode_libdir_separator=':'
15284 link_all_deplibs=yes
15286 if test "$GCC" = yes; then
15287 case $host_os in aix4.[012]|aix4.[012].*)
15288 # We only want to do this on AIX 4.2 and lower, the check
15289 # below for broken collect2 doesn't work under 4.3+
15290 collect2name=`${CC} -print-prog-name=collect2`
15291 if test -f "$collect2name" && \
15292 strings "$collect2name" | grep resolve_lib_name >/dev/null
15294 # We have reworked collect2
15295 hardcode_direct=yes
15297 # We have old collect2
15298 hardcode_direct=unsupported
15299 # It fails to find uninstalled libraries when the uninstalled
15300 # path is not listed in the libpath. Setting hardcode_minus_L
15301 # to unsupported forces relinking
15302 hardcode_minus_L=yes
15303 hardcode_libdir_flag_spec='-L$libdir'
15304 hardcode_libdir_separator=
15308 shared_flag='-shared'
15309 if test "$aix_use_runtimelinking" = yes; then
15310 shared_flag="$shared_flag "'${wl}-G'
15314 if test "$host_cpu" = ia64; then
15315 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15316 # chokes on -Wl,-G. The following line is correct:
15319 if test "$aix_use_runtimelinking" = yes; then
15320 shared_flag='${wl}-G'
15322 shared_flag='${wl}-bM:SRE'
15327 # It seems that -bexpall does not export symbols beginning with
15328 # underscore (_), so it is better to generate a list of symbols to export.
15329 always_export_symbols=yes
15330 if test "$aix_use_runtimelinking" = yes; then
15331 # Warning - without using the other runtime loading flags (-brtl),
15332 # -berok will link without error, but may produce a broken library.
15333 allow_undefined_flag='-berok'
15334 # Determine the default libpath from the value encoded in an empty executable.
15335 cat >conftest.$ac_ext <<_ACEOF
15338 cat confdefs.h >>conftest.$ac_ext
15339 cat >>conftest.$ac_ext <<_ACEOF
15340 /* end confdefs.h. */
15350 rm -f conftest.$ac_objext conftest$ac_exeext
15351 if { (ac_try="$ac_link"
15352 case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_link") 2>conftest.er1
15359 grep -v '^ *+' conftest.er1 >conftest.err
15361 cat conftest.err >&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); } &&
15364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15365 { (case "(($ac_try" in
15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370 (eval "$ac_try") 2>&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); }; } &&
15374 { ac_try='test -s conftest$ac_exeext'
15375 { (case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380 (eval "$ac_try") 2>&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15385 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15387 # Check for a 64-bit object if we didn't find anything.
15388 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; }
15391 echo "$as_me: failed program was:" >&5
15392 sed 's/^/| /' conftest.$ac_ext >&5
15397 rm -f core conftest.err conftest.$ac_objext \
15398 conftest$ac_exeext conftest.$ac_ext
15399 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15401 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15402 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"
15404 if test "$host_cpu" = ia64; then
15405 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15406 allow_undefined_flag="-z nodefs"
15407 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"
15409 # Determine the default libpath from the value encoded in an empty executable.
15410 cat >conftest.$ac_ext <<_ACEOF
15413 cat confdefs.h >>conftest.$ac_ext
15414 cat >>conftest.$ac_ext <<_ACEOF
15415 /* end confdefs.h. */
15425 rm -f conftest.$ac_objext conftest$ac_exeext
15426 if { (ac_try="$ac_link"
15427 case "(($ac_try" in
15428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429 *) ac_try_echo=$ac_try;;
15431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432 (eval "$ac_link") 2>conftest.er1
15434 grep -v '^ *+' conftest.er1 >conftest.err
15436 cat conftest.err >&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); } &&
15439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15440 { (case "(($ac_try" in
15441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442 *) ac_try_echo=$ac_try;;
15444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15445 (eval "$ac_try") 2>&5
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; } &&
15449 { ac_try='test -s conftest$ac_exeext'
15450 { (case "(($ac_try" in
15451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15452 *) ac_try_echo=$ac_try;;
15454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15455 (eval "$ac_try") 2>&5
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); }; }; then
15460 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15462 # Check for a 64-bit object if we didn't find anything.
15463 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; }
15466 echo "$as_me: failed program was:" >&5
15467 sed 's/^/| /' conftest.$ac_ext >&5
15472 rm -f core conftest.err conftest.$ac_objext \
15473 conftest$ac_exeext conftest.$ac_ext
15474 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15476 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15477 # Warning - without using the other run time loading flags,
15478 # -berok will link without error, but may produce a broken library.
15479 no_undefined_flag=' ${wl}-bernotok'
15480 allow_undefined_flag=' ${wl}-berok'
15481 # Exported symbols can be pulled into shared objects from archives
15482 whole_archive_flag_spec='$convenience'
15483 archive_cmds_need_lc=yes
15484 # This is similar to how AIX traditionally builds its shared libraries.
15485 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'
15491 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)'
15492 hardcode_libdir_flag_spec='-L$libdir'
15493 hardcode_minus_L=yes
15494 # see comment about different semantics on the GNU ld section
15499 export_dynamic_flag_spec=-rdynamic
15502 cygwin* | mingw* | pw32*)
15503 # When not using gcc, we currently assume that we are using
15504 # Microsoft Visual C++.
15505 # hardcode_libdir_flag_spec is actually meaningless, as there is
15506 # no search path for DLLs.
15507 hardcode_libdir_flag_spec=' '
15508 allow_undefined_flag=unsupported
15509 # Tell ltmain to make .lib files, not .a files.
15511 # Tell ltmain to make .dll files, not .so files.
15513 # FIXME: Setting linknames here is a bad hack.
15514 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15515 # The linker will automatically build a .lib file if we build a DLL.
15516 old_archive_From_new_cmds='true'
15517 # FIXME: Should let the user specify the lib program.
15518 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15519 fix_srcfile_path='`cygpath -w "$srcfile"`'
15520 enable_shared_with_static_runtimes=yes
15523 darwin* | rhapsody*)
15525 rhapsody* | darwin1.[012])
15526 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15529 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15530 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15532 case ${MACOSX_DEPLOYMENT_TARGET} in
15534 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15537 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15543 archive_cmds_need_lc=no
15545 hardcode_automatic=yes
15546 hardcode_shlibpath_var=unsupported
15547 whole_archive_flag_spec=''
15548 link_all_deplibs=yes
15549 if test "$GCC" = yes ; then
15550 output_verbose_link_cmd='echo'
15551 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15552 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15553 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15554 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}'
15555 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15557 case $cc_basename in
15559 output_verbose_link_cmd='echo'
15560 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15561 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15562 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15563 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}'
15564 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}'
15574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15575 hardcode_libdir_flag_spec='-L$libdir'
15576 hardcode_shlibpath_var=no
15583 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15584 # support. Future versions do this automatically, but an explicit c++rt0.o
15585 # does not break anything, and helps significantly (at the cost of a little
15588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15589 hardcode_libdir_flag_spec='-R$libdir'
15590 hardcode_direct=yes
15591 hardcode_shlibpath_var=no
15594 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15596 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15597 hardcode_direct=yes
15598 hardcode_minus_L=yes
15599 hardcode_shlibpath_var=no
15602 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15603 freebsd* | kfreebsd*-gnu | dragonfly*)
15604 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15605 hardcode_libdir_flag_spec='-R$libdir'
15606 hardcode_direct=yes
15607 hardcode_shlibpath_var=no
15611 if test "$GCC" = yes; then
15612 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'
15614 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'
15616 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15617 hardcode_libdir_separator=:
15618 hardcode_direct=yes
15620 # hardcode_minus_L: Not really in the search PATH,
15621 # but as the default location of the library.
15622 hardcode_minus_L=yes
15623 export_dynamic_flag_spec='${wl}-E'
15627 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15628 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15630 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15632 if test "$with_gnu_ld" = no; then
15633 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15634 hardcode_libdir_separator=:
15636 hardcode_direct=yes
15637 export_dynamic_flag_spec='${wl}-E'
15639 # hardcode_minus_L: Not really in the search PATH,
15640 # but as the default location of the library.
15641 hardcode_minus_L=yes
15646 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15649 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15652 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15655 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15661 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15664 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15667 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15671 if test "$with_gnu_ld" = no; then
15672 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15673 hardcode_libdir_separator=:
15677 hardcode_libdir_flag_spec_ld='+b $libdir'
15679 hardcode_shlibpath_var=no
15682 hardcode_direct=yes
15683 export_dynamic_flag_spec='${wl}-E'
15685 # hardcode_minus_L: Not really in the search PATH,
15686 # but as the default location of the library.
15687 hardcode_minus_L=yes
15693 irix5* | irix6* | nonstopux*)
15694 if test "$GCC" = yes; then
15695 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'
15697 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'
15698 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15701 hardcode_libdir_separator=:
15702 link_all_deplibs=yes
15706 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15707 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15709 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15711 hardcode_libdir_flag_spec='-R$libdir'
15712 hardcode_direct=yes
15713 hardcode_shlibpath_var=no
15717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15718 hardcode_direct=yes
15719 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15720 hardcode_libdir_separator=:
15721 hardcode_shlibpath_var=no
15725 hardcode_direct=yes
15726 hardcode_shlibpath_var=no
15727 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15728 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15729 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15730 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15731 export_dynamic_flag_spec='${wl}-E'
15734 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15735 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15736 hardcode_libdir_flag_spec='-R$libdir'
15739 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15740 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15747 hardcode_libdir_flag_spec='-L$libdir'
15748 hardcode_minus_L=yes
15749 allow_undefined_flag=unsupported
15750 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'
15751 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15755 if test "$GCC" = yes; then
15756 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15757 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'
15759 allow_undefined_flag=' -expect_unresolved \*'
15760 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'
15762 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15763 hardcode_libdir_separator=:
15766 osf4* | osf5*) # as osf3* with the addition of -msym flag
15767 if test "$GCC" = yes; then
15768 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15769 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'
15770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15772 allow_undefined_flag=' -expect_unresolved \*'
15773 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'
15774 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15775 $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'
15777 # Both c and cxx compiler support -rpath directly
15778 hardcode_libdir_flag_spec='-rpath $libdir'
15780 hardcode_libdir_separator=:
15784 no_undefined_flag=' -z text'
15785 if test "$GCC" = yes; then
15787 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15788 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15789 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15792 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15793 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15794 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15796 hardcode_libdir_flag_spec='-R$libdir'
15797 hardcode_shlibpath_var=no
15799 solaris2.[0-5] | solaris2.[0-5].*) ;;
15801 # The compiler driver will combine linker options so we
15802 # cannot just pass the convience library names through
15803 # without $wl, iff we do not link with $LD.
15804 # Luckily, gcc supports the same syntax we need for Sun Studio.
15805 # Supported since Solaris 2.6 (maybe 2.5.1?)
15808 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15810 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' ;;
15813 link_all_deplibs=yes
15817 if test "x$host_vendor" = xsequent; then
15818 # Use $CC to link under sequent, because it throws in some extra .o
15819 # files that make .init and .fini sections work.
15820 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15822 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15824 hardcode_libdir_flag_spec='-L$libdir'
15825 hardcode_direct=yes
15826 hardcode_minus_L=yes
15827 hardcode_shlibpath_var=no
15831 case $host_vendor in
15833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15834 hardcode_direct=yes # is this really true???
15837 ## LD is ld it makes a PLAMLIB
15838 ## CC just makes a GrossModule.
15839 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15840 reload_cmds='$CC -r -o $output$reload_objs'
15844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15845 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15848 runpath_var='LD_RUN_PATH'
15849 hardcode_shlibpath_var=no
15853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15854 hardcode_shlibpath_var=no
15855 export_dynamic_flag_spec='-Bexport'
15859 if test -d /usr/nec; then
15860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15861 hardcode_shlibpath_var=no
15862 runpath_var=LD_RUN_PATH
15863 hardcode_runpath_var=yes
15868 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15869 no_undefined_flag='${wl}-z,text'
15870 archive_cmds_need_lc=no
15871 hardcode_shlibpath_var=no
15872 runpath_var='LD_RUN_PATH'
15874 if test "$GCC" = yes; then
15875 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15876 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15878 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15879 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15883 sysv5* | sco3.2v5* | sco5v6*)
15884 # Note: We can NOT use -z defs as we might desire, because we do not
15885 # link with -lc, and that would cause any symbols used from libc to
15886 # always be unresolved, which means just about no library would
15887 # ever link correctly. If we're not using GNU ld we use -z text
15888 # though, which does catch some bad symbols but isn't as heavy-handed
15890 no_undefined_flag='${wl}-z,text'
15891 allow_undefined_flag='${wl}-z,nodefs'
15892 archive_cmds_need_lc=no
15893 hardcode_shlibpath_var=no
15894 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15895 hardcode_libdir_separator=':'
15896 link_all_deplibs=yes
15897 export_dynamic_flag_spec='${wl}-Bexport'
15898 runpath_var='LD_RUN_PATH'
15900 if test "$GCC" = yes; then
15901 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15902 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15904 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15905 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15911 hardcode_libdir_flag_spec='-L$libdir'
15912 hardcode_shlibpath_var=no
15921 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15922 echo "${ECHO_T}$ld_shlibs" >&6; }
15923 test "$ld_shlibs" = no && can_build_shared=no
15926 # Do we need to explicitly link libc?
15928 case "x$archive_cmds_need_lc" in
15930 # Assume -lc should be added
15931 archive_cmds_need_lc=yes
15933 if test "$enable_shared" = yes && test "$GCC" = yes; then
15934 case $archive_cmds in
15936 # FIXME: we may have to deal with multi-command sequences.
15939 # Test whether the compiler implicitly links with -lc since on some
15940 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15941 # to ld, don't add -lc before -lgcc.
15942 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15943 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15945 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15948 (eval $ac_compile) 2>&5
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); } 2>conftest.err; then
15954 libobjs=conftest.$ac_objext
15956 wl=$lt_prog_compiler_wl
15957 pic_flag=$lt_prog_compiler_pic
15963 lt_save_allow_undefined_flag=$allow_undefined_flag
15964 allow_undefined_flag=
15965 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15966 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); }
15971 archive_cmds_need_lc=no
15973 archive_cmds_need_lc=yes
15975 allow_undefined_flag=$lt_save_allow_undefined_flag
15977 cat conftest.err 1>&5
15980 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15981 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15988 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15989 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15990 library_names_spec=
15991 libname_spec='lib$name'
15995 postuninstall_cmds=
15999 shlibpath_overrides_runpath=unknown
16001 dynamic_linker="$host_os ld.so"
16002 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16003 if test "$GCC" = yes; then
16004 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16005 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16006 # if the path contains ";" then we assume it to be the separator
16007 # otherwise default to the standard path separator (i.e. ":") - it is
16008 # assumed that no part of a normal pathname contains ";" but that should
16009 # okay in the real world where ";" in dirpaths is itself problematic.
16010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16012 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16015 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16017 need_lib_prefix=unknown
16018 hardcode_into_libs=no
16020 # when you set need_version to no, make sure it does not cause -set_version
16021 # flags to be left without arguments
16022 need_version=unknown
16027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16028 shlibpath_var=LIBPATH
16030 # AIX 3 has no versioning support, so we append a major version to the name.
16031 soname_spec='${libname}${release}${shared_ext}$major'
16038 hardcode_into_libs=yes
16039 if test "$host_cpu" = ia64; then
16040 # AIX 5 supports IA64
16041 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16042 shlibpath_var=LD_LIBRARY_PATH
16044 # With GCC up to 2.95.x, collect2 would create an import file
16045 # for dependence libraries. The import file would start with
16046 # the line `#! .'. This would cause the generated library to
16047 # depend on `.', always an invalid library. This was fixed in
16048 # development snapshots of GCC prior to 3.0.
16050 aix4 | aix4.[01] | aix4.[01].*)
16051 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16053 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16056 can_build_shared=no
16060 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16061 # soname into executable. Probably we can add versioning support to
16062 # collect2, so additional links can be useful in future.
16063 if test "$aix_use_runtimelinking" = yes; then
16064 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16065 # instead of lib<name>.a to let people know that these are not
16066 # typical AIX shared libraries.
16067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16069 # We preserve .a as extension for shared libraries through AIX4.2
16070 # and later when we are not doing run time linking.
16071 library_names_spec='${libname}${release}.a $libname.a'
16072 soname_spec='${libname}${release}${shared_ext}$major'
16074 shlibpath_var=LIBPATH
16079 library_names_spec='$libname.ixlibrary $libname.a'
16080 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16081 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'
16085 library_names_spec='${libname}${shared_ext}'
16086 dynamic_linker="$host_os ld.so"
16087 shlibpath_var=LIBRARY_PATH
16093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16094 soname_spec='${libname}${release}${shared_ext}$major'
16095 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16096 shlibpath_var=LD_LIBRARY_PATH
16097 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16098 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16099 # the default ld.so.conf also contains /usr/contrib/lib and
16100 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16101 # libtool to hard-code these into programs
16104 cygwin* | mingw* | pw32*)
16105 version_type=windows
16110 case $GCC,$host_os in
16111 yes,cygwin* | yes,mingw* | yes,pw32*)
16112 library_names_spec='$libname.dll.a'
16113 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16114 postinstall_cmds='base_file=`basename \${file}`~
16115 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16116 dldir=$destdir/`dirname \$dlpath`~
16117 test -d \$dldir || mkdir -p \$dldir~
16118 $install_prog $dir/$dlname \$dldir/$dlname~
16119 chmod a+x \$dldir/$dlname'
16120 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16121 dlpath=$dir/\$dldll~
16123 shlibpath_overrides_runpath=yes
16127 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16128 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16129 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16132 # MinGW DLLs use traditional 'lib' prefix
16133 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16134 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16135 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16136 # It is most probably a Windows format PATH printed by
16137 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16138 # path with ; separators, and with drive letters. We can handle the
16139 # drive letters (cygwin fileutils understands them), so leave them,
16140 # especially as we might pass files found there to a mingw objdump,
16141 # which wouldn't understand a cygwinified path. Ahh.
16142 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16144 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16148 # pw32 DLLs use 'pw' prefix rather than 'lib'
16149 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16155 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16158 dynamic_linker='Win32 ld.exe'
16159 # FIXME: first we should search . and the directory the executable is in
16163 darwin* | rhapsody*)
16164 dynamic_linker="$host_os dyld"
16165 version_type=darwin
16168 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16169 soname_spec='${libname}${release}${major}$shared_ext'
16170 shlibpath_overrides_runpath=yes
16171 shlibpath_var=DYLD_LIBRARY_PATH
16172 shrext_cmds='.dylib'
16173 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16174 if test "$GCC" = yes; then
16175 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"`
16177 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16179 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16187 soname_spec='${libname}${release}${shared_ext}$major'
16188 shlibpath_var=LD_LIBRARY_PATH
16199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16200 soname_spec='${libname}${release}${shared_ext}$major'
16201 shlibpath_var=LD_LIBRARY_PATH
16202 shlibpath_overrides_runpath=no
16203 hardcode_into_libs=yes
16204 dynamic_linker='GNU ld.so'
16207 freebsd* | dragonfly*)
16208 # DragonFly does not have aout. When/if they implement a new
16209 # versioning mechanism, adjust this.
16210 if test -x /usr/bin/objformat; then
16211 objformat=`/usr/bin/objformat`
16214 freebsd[123]*) objformat=aout ;;
16215 *) objformat=elf ;;
16218 version_type=freebsd-$objformat
16219 case $version_type in
16221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16226 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16230 shlibpath_var=LD_LIBRARY_PATH
16233 shlibpath_overrides_runpath=yes
16235 freebsd3.[01]* | freebsdelf3.[01]*)
16236 shlibpath_overrides_runpath=yes
16237 hardcode_into_libs=yes
16239 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16240 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16241 shlibpath_overrides_runpath=no
16242 hardcode_into_libs=yes
16244 freebsd*) # from 4.6 on
16245 shlibpath_overrides_runpath=yes
16246 hardcode_into_libs=yes
16255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16256 soname_spec='${libname}${release}${shared_ext}$major'
16257 shlibpath_var=LD_LIBRARY_PATH
16258 hardcode_into_libs=yes
16261 hpux9* | hpux10* | hpux11*)
16262 # Give a soname corresponding to the major version so that dld.sl refuses to
16263 # link against other versions.
16270 hardcode_into_libs=yes
16271 dynamic_linker="$host_os dld.so"
16272 shlibpath_var=LD_LIBRARY_PATH
16273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16275 soname_spec='${libname}${release}${shared_ext}$major'
16276 if test "X$HPUX_IA64_MODE" = X32; then
16277 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16279 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16281 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16285 hardcode_into_libs=yes
16286 dynamic_linker="$host_os dld.sl"
16287 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16288 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16290 soname_spec='${libname}${release}${shared_ext}$major'
16291 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16292 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16296 dynamic_linker="$host_os dld.sl"
16297 shlibpath_var=SHLIB_PATH
16298 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16300 soname_spec='${libname}${release}${shared_ext}$major'
16303 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16304 postinstall_cmds='chmod 555 $lib'
16311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16312 soname_spec='${libname}${release}${shared_ext}$major'
16313 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16314 shlibpath_var=LD_LIBRARY_PATH
16315 shlibpath_overrides_runpath=no
16316 hardcode_into_libs=yes
16319 irix5* | irix6* | nonstopux*)
16321 nonstopux*) version_type=nonstopux ;;
16323 if test "$lt_cv_prog_gnu_ld" = yes; then
16331 soname_spec='${libname}${release}${shared_ext}$major'
16332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16334 irix5* | nonstopux*)
16335 libsuff= shlibsuff=
16338 case $LD in # libtool.m4 will add one of these switches to LD
16339 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16340 libsuff= shlibsuff= libmagic=32-bit;;
16341 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16342 libsuff=32 shlibsuff=N32 libmagic=N32;;
16343 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16344 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16345 *) libsuff= shlibsuff= libmagic=never-match;;
16349 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16350 shlibpath_overrides_runpath=no
16351 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16352 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16353 hardcode_into_libs=yes
16356 # No shared lib support for Linux oldld, aout, or coff.
16357 linux*oldld* | linux*aout* | linux*coff*)
16361 # This must be Linux ELF.
16366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16367 soname_spec='${libname}${release}${shared_ext}$major'
16368 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16369 shlibpath_var=LD_LIBRARY_PATH
16370 shlibpath_overrides_runpath=no
16371 # This implies no fast_install, which is unacceptable.
16372 # Some rework will be needed to allow for fast_install
16373 # before this can be enabled.
16374 hardcode_into_libs=yes
16376 # Append ld.so.conf contents to the search path
16377 if test -f /etc/ld.so.conf; then
16378 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' ' '`
16379 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16382 # We used to test for /lib/ld.so.1 and disable shared libraries on
16383 # powerpc, because MkLinux only supported shared libraries with the
16384 # GNU dynamic linker. Since this was broken with cross compilers,
16385 # most powerpc-linux boxes support dynamic linking these days and
16386 # people can always --disable-shared, the test was removed, and we
16387 # assume the GNU/Linux dynamic linker is in use.
16388 dynamic_linker='GNU/Linux ld.so'
16395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16396 soname_spec='${libname}${release}${shared_ext}$major'
16397 shlibpath_var=LD_LIBRARY_PATH
16398 shlibpath_overrides_runpath=no
16399 hardcode_into_libs=yes
16400 dynamic_linker='GNU ld.so'
16407 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16410 dynamic_linker='NetBSD (a.out) ld.so'
16412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16413 soname_spec='${libname}${release}${shared_ext}$major'
16414 dynamic_linker='NetBSD ld.elf_so'
16416 shlibpath_var=LD_LIBRARY_PATH
16417 shlibpath_overrides_runpath=yes
16418 hardcode_into_libs=yes
16423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16424 shlibpath_var=LD_LIBRARY_PATH
16425 shlibpath_overrides_runpath=yes
16432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16433 soname_spec='${libname}${release}${shared_ext}$major'
16434 shlibpath_var=LD_LIBRARY_PATH
16435 shlibpath_overrides_runpath=yes
16440 sys_lib_dlsearch_path_spec="/usr/lib"
16442 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16444 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16445 *) need_version=no ;;
16447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16449 shlibpath_var=LD_LIBRARY_PATH
16450 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16452 openbsd2.[89] | openbsd2.[89].*)
16453 shlibpath_overrides_runpath=no
16456 shlibpath_overrides_runpath=yes
16460 shlibpath_overrides_runpath=yes
16465 libname_spec='$name'
16468 library_names_spec='$libname${shared_ext} $libname.a'
16469 dynamic_linker='OS/2 ld.exe'
16470 shlibpath_var=LIBPATH
16473 osf3* | osf4* | osf5*)
16477 soname_spec='${libname}${release}${shared_ext}$major'
16478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16479 shlibpath_var=LD_LIBRARY_PATH
16480 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16481 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16489 soname_spec='${libname}${release}${shared_ext}$major'
16490 shlibpath_var=LD_LIBRARY_PATH
16491 shlibpath_overrides_runpath=yes
16492 hardcode_into_libs=yes
16493 # ldd complains unless libraries are executable
16494 postinstall_cmds='chmod +x $lib'
16499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16500 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16501 shlibpath_var=LD_LIBRARY_PATH
16502 shlibpath_overrides_runpath=yes
16503 if test "$with_gnu_ld" = yes; then
16511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16512 soname_spec='${libname}${release}${shared_ext}$major'
16513 shlibpath_var=LD_LIBRARY_PATH
16514 case $host_vendor in
16516 shlibpath_overrides_runpath=no
16518 export_dynamic_flag_spec='${wl}-Blargedynsym'
16519 runpath_var=LD_RUN_PATH
16527 shlibpath_overrides_runpath=no
16528 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16534 if test -d /usr/nec ;then
16536 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16537 soname_spec='$libname${shared_ext}.$major'
16538 shlibpath_var=LD_LIBRARY_PATH
16542 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16543 version_type=freebsd-elf
16546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16547 soname_spec='${libname}${release}${shared_ext}$major'
16548 shlibpath_var=LD_LIBRARY_PATH
16549 hardcode_into_libs=yes
16550 if test "$with_gnu_ld" = yes; then
16551 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16552 shlibpath_overrides_runpath=no
16554 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16555 shlibpath_overrides_runpath=yes
16558 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16562 sys_lib_dlsearch_path_spec='/usr/lib'
16567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16568 soname_spec='${libname}${release}${shared_ext}$major'
16569 shlibpath_var=LD_LIBRARY_PATH
16576 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16577 echo "${ECHO_T}$dynamic_linker" >&6; }
16578 test "$dynamic_linker" = no && can_build_shared=no
16580 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16581 if test "$GCC" = yes; then
16582 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16585 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16586 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16588 if test -n "$hardcode_libdir_flag_spec" || \
16589 test -n "$runpath_var" || \
16590 test "X$hardcode_automatic" = "Xyes" ; then
16592 # We can hardcode non-existant directories.
16593 if test "$hardcode_direct" != no &&
16594 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16595 # have to relink, otherwise we might link with an installed library
16596 # when we should be linking with a yet-to-be-installed one
16597 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16598 test "$hardcode_minus_L" != no; then
16599 # Linking always hardcodes the temporary library directory.
16600 hardcode_action=relink
16602 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16603 hardcode_action=immediate
16606 # We cannot hardcode anything, or else we can only hardcode existing
16608 hardcode_action=unsupported
16610 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16611 echo "${ECHO_T}$hardcode_action" >&6; }
16613 if test "$hardcode_action" = relink; then
16614 # Fast installation is not supported
16615 enable_fast_install=no
16616 elif test "$shlibpath_overrides_runpath" = yes ||
16617 test "$enable_shared" = no; then
16618 # Fast installation is not necessary
16619 enable_fast_install=needless
16624 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16625 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16626 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16627 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16628 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16629 { echo "$as_me:$LINENO: result: yes" >&5
16630 echo "${ECHO_T}yes" >&6; }
16632 # FIXME - insert some real tests, host_os isn't really good enough
16635 if test -n "$STRIP" ; then
16636 striplib="$STRIP -x"
16637 { echo "$as_me:$LINENO: result: yes" >&5
16638 echo "${ECHO_T}yes" >&6; }
16640 { echo "$as_me:$LINENO: result: no" >&5
16641 echo "${ECHO_T}no" >&6; }
16645 { echo "$as_me:$LINENO: result: no" >&5
16646 echo "${ECHO_T}no" >&6; }
16651 if test "x$enable_dlopen" != xyes; then
16652 enable_dlopen=unknown
16653 enable_dlopen_self=unknown
16654 enable_dlopen_self_static=unknown
16661 lt_cv_dlopen="load_add_on"
16663 lt_cv_dlopen_self=yes
16667 lt_cv_dlopen="LoadLibrary"
16672 lt_cv_dlopen="dlopen"
16677 # if libdl is installed we need to link against it
16678 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16679 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16680 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16681 echo $ECHO_N "(cached) $ECHO_C" >&6
16683 ac_check_lib_save_LIBS=$LIBS
16685 cat >conftest.$ac_ext <<_ACEOF
16688 cat confdefs.h >>conftest.$ac_ext
16689 cat >>conftest.$ac_ext <<_ACEOF
16690 /* end confdefs.h. */
16692 /* Override any GCC internal prototype to avoid an error.
16693 Use char because int might match the return type of a GCC
16694 builtin and then its argument prototype would still apply. */
16707 rm -f conftest.$ac_objext conftest$ac_exeext
16708 if { (ac_try="$ac_link"
16709 case "(($ac_try" in
16710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16711 *) ac_try_echo=$ac_try;;
16713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16714 (eval "$ac_link") 2>conftest.er1
16716 grep -v '^ *+' conftest.er1 >conftest.err
16718 cat conftest.err >&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } &&
16721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16722 { (case "(($ac_try" in
16723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724 *) ac_try_echo=$ac_try;;
16726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16727 (eval "$ac_try") 2>&5
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; } &&
16731 { ac_try='test -s conftest$ac_exeext'
16732 { (case "(($ac_try" in
16733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16734 *) ac_try_echo=$ac_try;;
16736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16737 (eval "$ac_try") 2>&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; }; then
16741 ac_cv_lib_dl_dlopen=yes
16743 echo "$as_me: failed program was:" >&5
16744 sed 's/^/| /' conftest.$ac_ext >&5
16746 ac_cv_lib_dl_dlopen=no
16749 rm -f core conftest.err conftest.$ac_objext \
16750 conftest$ac_exeext conftest.$ac_ext
16751 LIBS=$ac_check_lib_save_LIBS
16753 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16754 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16755 if test $ac_cv_lib_dl_dlopen = yes; then
16756 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16759 lt_cv_dlopen="dyld"
16761 lt_cv_dlopen_self=yes
16768 { echo "$as_me:$LINENO: checking for shl_load" >&5
16769 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16770 if test "${ac_cv_func_shl_load+set}" = set; then
16771 echo $ECHO_N "(cached) $ECHO_C" >&6
16773 cat >conftest.$ac_ext <<_ACEOF
16776 cat confdefs.h >>conftest.$ac_ext
16777 cat >>conftest.$ac_ext <<_ACEOF
16778 /* end confdefs.h. */
16779 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16781 #define shl_load innocuous_shl_load
16783 /* System header to define __stub macros and hopefully few prototypes,
16784 which can conflict with char shl_load (); below.
16785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16786 <limits.h> exists even on freestanding compilers. */
16789 # include <limits.h>
16791 # include <assert.h>
16796 /* Override any GCC internal prototype to avoid an error.
16797 Use char because int might match the return type of a GCC
16798 builtin and then its argument prototype would still apply. */
16803 /* The GNU C library defines this for functions which it implements
16804 to always fail with ENOSYS. Some functions are actually named
16805 something starting with __ and the normal name is an alias. */
16806 #if defined __stub_shl_load || defined __stub___shl_load
16813 return shl_load ();
16818 rm -f conftest.$ac_objext conftest$ac_exeext
16819 if { (ac_try="$ac_link"
16820 case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 (eval "$ac_link") 2>conftest.er1
16827 grep -v '^ *+' conftest.er1 >conftest.err
16829 cat conftest.err >&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); } &&
16832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16833 { (case "(($ac_try" in
16834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16835 *) ac_try_echo=$ac_try;;
16837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16838 (eval "$ac_try") 2>&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; } &&
16842 { ac_try='test -s conftest$ac_exeext'
16843 { (case "(($ac_try" in
16844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845 *) ac_try_echo=$ac_try;;
16847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848 (eval "$ac_try") 2>&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; }; then
16852 ac_cv_func_shl_load=yes
16854 echo "$as_me: failed program was:" >&5
16855 sed 's/^/| /' conftest.$ac_ext >&5
16857 ac_cv_func_shl_load=no
16860 rm -f core conftest.err conftest.$ac_objext \
16861 conftest$ac_exeext conftest.$ac_ext
16863 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16864 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16865 if test $ac_cv_func_shl_load = yes; then
16866 lt_cv_dlopen="shl_load"
16868 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16869 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16870 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16871 echo $ECHO_N "(cached) $ECHO_C" >&6
16873 ac_check_lib_save_LIBS=$LIBS
16875 cat >conftest.$ac_ext <<_ACEOF
16878 cat confdefs.h >>conftest.$ac_ext
16879 cat >>conftest.$ac_ext <<_ACEOF
16880 /* end confdefs.h. */
16882 /* Override any GCC internal prototype to avoid an error.
16883 Use char because int might match the return type of a GCC
16884 builtin and then its argument prototype would still apply. */
16892 return shl_load ();
16897 rm -f conftest.$ac_objext conftest$ac_exeext
16898 if { (ac_try="$ac_link"
16899 case "(($ac_try" in
16900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901 *) ac_try_echo=$ac_try;;
16903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904 (eval "$ac_link") 2>conftest.er1
16906 grep -v '^ *+' conftest.er1 >conftest.err
16908 cat conftest.err >&5
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } &&
16911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16912 { (case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_try") 2>&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; } &&
16921 { ac_try='test -s conftest$ac_exeext'
16922 { (case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_try") 2>&5
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; }; then
16931 ac_cv_lib_dld_shl_load=yes
16933 echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16936 ac_cv_lib_dld_shl_load=no
16939 rm -f core conftest.err conftest.$ac_objext \
16940 conftest$ac_exeext conftest.$ac_ext
16941 LIBS=$ac_check_lib_save_LIBS
16943 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16944 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16945 if test $ac_cv_lib_dld_shl_load = yes; then
16946 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16948 { echo "$as_me:$LINENO: checking for dlopen" >&5
16949 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16950 if test "${ac_cv_func_dlopen+set}" = set; then
16951 echo $ECHO_N "(cached) $ECHO_C" >&6
16953 cat >conftest.$ac_ext <<_ACEOF
16956 cat confdefs.h >>conftest.$ac_ext
16957 cat >>conftest.$ac_ext <<_ACEOF
16958 /* end confdefs.h. */
16959 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16961 #define dlopen innocuous_dlopen
16963 /* System header to define __stub macros and hopefully few prototypes,
16964 which can conflict with char dlopen (); below.
16965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16966 <limits.h> exists even on freestanding compilers. */
16969 # include <limits.h>
16971 # include <assert.h>
16976 /* Override any GCC internal prototype to avoid an error.
16977 Use char because int might match the return type of a GCC
16978 builtin and then its argument prototype would still apply. */
16983 /* The GNU C library defines this for functions which it implements
16984 to always fail with ENOSYS. Some functions are actually named
16985 something starting with __ and the normal name is an alias. */
16986 #if defined __stub_dlopen || defined __stub___dlopen
16998 rm -f conftest.$ac_objext conftest$ac_exeext
16999 if { (ac_try="$ac_link"
17000 case "(($ac_try" in
17001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002 *) ac_try_echo=$ac_try;;
17004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005 (eval "$ac_link") 2>conftest.er1
17007 grep -v '^ *+' conftest.er1 >conftest.err
17009 cat conftest.err >&5
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); } &&
17012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17013 { (case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018 (eval "$ac_try") 2>&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; } &&
17022 { ac_try='test -s conftest$ac_exeext'
17023 { (case "(($ac_try" in
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17028 (eval "$ac_try") 2>&5
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; }; then
17032 ac_cv_func_dlopen=yes
17034 echo "$as_me: failed program was:" >&5
17035 sed 's/^/| /' conftest.$ac_ext >&5
17037 ac_cv_func_dlopen=no
17040 rm -f core conftest.err conftest.$ac_objext \
17041 conftest$ac_exeext conftest.$ac_ext
17043 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17044 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17045 if test $ac_cv_func_dlopen = yes; then
17046 lt_cv_dlopen="dlopen"
17048 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17049 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17050 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17051 echo $ECHO_N "(cached) $ECHO_C" >&6
17053 ac_check_lib_save_LIBS=$LIBS
17055 cat >conftest.$ac_ext <<_ACEOF
17058 cat confdefs.h >>conftest.$ac_ext
17059 cat >>conftest.$ac_ext <<_ACEOF
17060 /* end confdefs.h. */
17062 /* Override any GCC internal prototype to avoid an error.
17063 Use char because int might match the return type of a GCC
17064 builtin and then its argument prototype would still apply. */
17077 rm -f conftest.$ac_objext conftest$ac_exeext
17078 if { (ac_try="$ac_link"
17079 case "(($ac_try" in
17080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081 *) ac_try_echo=$ac_try;;
17083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17084 (eval "$ac_link") 2>conftest.er1
17086 grep -v '^ *+' conftest.er1 >conftest.err
17088 cat conftest.err >&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); } &&
17091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17092 { (case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_try") 2>&5
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; } &&
17101 { ac_try='test -s conftest$ac_exeext'
17102 { (case "(($ac_try" in
17103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17104 *) ac_try_echo=$ac_try;;
17106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17107 (eval "$ac_try") 2>&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; }; then
17111 ac_cv_lib_dl_dlopen=yes
17113 echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17116 ac_cv_lib_dl_dlopen=no
17119 rm -f core conftest.err conftest.$ac_objext \
17120 conftest$ac_exeext conftest.$ac_ext
17121 LIBS=$ac_check_lib_save_LIBS
17123 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17124 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17125 if test $ac_cv_lib_dl_dlopen = yes; then
17126 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17128 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17129 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17130 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17131 echo $ECHO_N "(cached) $ECHO_C" >&6
17133 ac_check_lib_save_LIBS=$LIBS
17134 LIBS="-lsvld $LIBS"
17135 cat >conftest.$ac_ext <<_ACEOF
17138 cat confdefs.h >>conftest.$ac_ext
17139 cat >>conftest.$ac_ext <<_ACEOF
17140 /* end confdefs.h. */
17142 /* Override any GCC internal prototype to avoid an error.
17143 Use char because int might match the return type of a GCC
17144 builtin and then its argument prototype would still apply. */
17157 rm -f conftest.$ac_objext conftest$ac_exeext
17158 if { (ac_try="$ac_link"
17159 case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_link") 2>conftest.er1
17166 grep -v '^ *+' conftest.er1 >conftest.err
17168 cat conftest.err >&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); } &&
17171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17172 { (case "(($ac_try" in
17173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174 *) ac_try_echo=$ac_try;;
17176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17177 (eval "$ac_try") 2>&5
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); }; } &&
17181 { ac_try='test -s conftest$ac_exeext'
17182 { (case "(($ac_try" in
17183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184 *) ac_try_echo=$ac_try;;
17186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187 (eval "$ac_try") 2>&5
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; }; then
17191 ac_cv_lib_svld_dlopen=yes
17193 echo "$as_me: failed program was:" >&5
17194 sed 's/^/| /' conftest.$ac_ext >&5
17196 ac_cv_lib_svld_dlopen=no
17199 rm -f core conftest.err conftest.$ac_objext \
17200 conftest$ac_exeext conftest.$ac_ext
17201 LIBS=$ac_check_lib_save_LIBS
17203 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17204 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17205 if test $ac_cv_lib_svld_dlopen = yes; then
17206 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17208 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17209 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17210 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17211 echo $ECHO_N "(cached) $ECHO_C" >&6
17213 ac_check_lib_save_LIBS=$LIBS
17215 cat >conftest.$ac_ext <<_ACEOF
17218 cat confdefs.h >>conftest.$ac_ext
17219 cat >>conftest.$ac_ext <<_ACEOF
17220 /* end confdefs.h. */
17222 /* Override any GCC internal prototype to avoid an error.
17223 Use char because int might match the return type of a GCC
17224 builtin and then its argument prototype would still apply. */
17232 return dld_link ();
17237 rm -f conftest.$ac_objext conftest$ac_exeext
17238 if { (ac_try="$ac_link"
17239 case "(($ac_try" in
17240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17241 *) ac_try_echo=$ac_try;;
17243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17244 (eval "$ac_link") 2>conftest.er1
17246 grep -v '^ *+' conftest.er1 >conftest.err
17248 cat conftest.err >&5
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); } &&
17251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17252 { (case "(($ac_try" in
17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257 (eval "$ac_try") 2>&5
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; } &&
17261 { ac_try='test -s conftest$ac_exeext'
17262 { (case "(($ac_try" in
17263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17264 *) ac_try_echo=$ac_try;;
17266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17267 (eval "$ac_try") 2>&5
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; }; then
17271 ac_cv_lib_dld_dld_link=yes
17273 echo "$as_me: failed program was:" >&5
17274 sed 's/^/| /' conftest.$ac_ext >&5
17276 ac_cv_lib_dld_dld_link=no
17279 rm -f core conftest.err conftest.$ac_objext \
17280 conftest$ac_exeext conftest.$ac_ext
17281 LIBS=$ac_check_lib_save_LIBS
17283 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17284 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17285 if test $ac_cv_lib_dld_dld_link = yes; then
17286 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17307 if test "x$lt_cv_dlopen" != xno; then
17313 case $lt_cv_dlopen in
17315 save_CPPFLAGS="$CPPFLAGS"
17316 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17318 save_LDFLAGS="$LDFLAGS"
17319 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17322 LIBS="$lt_cv_dlopen_libs $LIBS"
17324 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17325 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17326 if test "${lt_cv_dlopen_self+set}" = set; then
17327 echo $ECHO_N "(cached) $ECHO_C" >&6
17329 if test "$cross_compiling" = yes; then :
17330 lt_cv_dlopen_self=cross
17332 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17333 lt_status=$lt_dlunknown
17334 cat > conftest.$ac_ext <<EOF
17335 #line 17335 "configure"
17336 #include "confdefs.h"
17345 # define LT_DLGLOBAL RTLD_GLOBAL
17348 # define LT_DLGLOBAL DL_GLOBAL
17350 # define LT_DLGLOBAL 0
17354 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17355 find out it does not work in some platform. */
17356 #ifndef LT_DLLAZY_OR_NOW
17358 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17361 # define LT_DLLAZY_OR_NOW DL_LAZY
17364 # define LT_DLLAZY_OR_NOW RTLD_NOW
17367 # define LT_DLLAZY_OR_NOW DL_NOW
17369 # define LT_DLLAZY_OR_NOW 0
17377 extern "C" void exit (int);
17380 void fnord() { int i=42;}
17383 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17384 int status = $lt_dlunknown;
17388 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17389 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17390 /* dlclose (self); */
17398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17399 (eval $ac_link) 2>&5
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17403 (./conftest; exit; ) >&5 2>/dev/null
17405 case x$lt_status in
17406 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17407 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17408 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17411 # compilation failed
17412 lt_cv_dlopen_self=no
17419 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17420 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17422 if test "x$lt_cv_dlopen_self" = xyes; then
17423 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17424 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17425 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17426 if test "${lt_cv_dlopen_self_static+set}" = set; then
17427 echo $ECHO_N "(cached) $ECHO_C" >&6
17429 if test "$cross_compiling" = yes; then :
17430 lt_cv_dlopen_self_static=cross
17432 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17433 lt_status=$lt_dlunknown
17434 cat > conftest.$ac_ext <<EOF
17435 #line 17435 "configure"
17436 #include "confdefs.h"
17445 # define LT_DLGLOBAL RTLD_GLOBAL
17448 # define LT_DLGLOBAL DL_GLOBAL
17450 # define LT_DLGLOBAL 0
17454 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17455 find out it does not work in some platform. */
17456 #ifndef LT_DLLAZY_OR_NOW
17458 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17461 # define LT_DLLAZY_OR_NOW DL_LAZY
17464 # define LT_DLLAZY_OR_NOW RTLD_NOW
17467 # define LT_DLLAZY_OR_NOW DL_NOW
17469 # define LT_DLLAZY_OR_NOW 0
17477 extern "C" void exit (int);
17480 void fnord() { int i=42;}
17483 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17484 int status = $lt_dlunknown;
17488 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17489 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17490 /* dlclose (self); */
17498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17499 (eval $ac_link) 2>&5
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17503 (./conftest; exit; ) >&5 2>/dev/null
17505 case x$lt_status in
17506 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17507 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17508 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17511 # compilation failed
17512 lt_cv_dlopen_self_static=no
17519 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17520 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17523 CPPFLAGS="$save_CPPFLAGS"
17524 LDFLAGS="$save_LDFLAGS"
17529 case $lt_cv_dlopen_self in
17530 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17531 *) enable_dlopen_self=unknown ;;
17534 case $lt_cv_dlopen_self_static in
17535 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17536 *) enable_dlopen_self_static=unknown ;;
17541 # Report which library types will actually be built
17542 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17543 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17544 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17545 echo "${ECHO_T}$can_build_shared" >&6; }
17547 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17548 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17549 test "$can_build_shared" = "no" && enable_shared=no
17551 # On AIX, shared libraries and static libraries use the same namespace, and
17552 # are all built from PIC.
17555 test "$enable_shared" = yes && enable_static=no
17556 if test -n "$RANLIB"; then
17557 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17558 postinstall_cmds='$RANLIB $lib'
17563 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17564 test "$enable_shared" = yes && enable_static=no
17568 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17569 echo "${ECHO_T}$enable_shared" >&6; }
17571 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17572 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17573 # Make sure either enable_shared or enable_static is yes.
17574 test "$enable_shared" = yes || enable_static=yes
17575 { echo "$as_me:$LINENO: result: $enable_static" >&5
17576 echo "${ECHO_T}$enable_static" >&6; }
17578 # The else clause should only fire when bootstrapping the
17579 # libtool distribution, otherwise you forgot to ship ltmain.sh
17580 # with your package, and you will get complaints that there are
17581 # no rules to generate ltmain.sh.
17582 if test -f "$ltmain"; then
17583 # See if we are running on zsh, and set the options which allow our commands through
17584 # without removal of \ escapes.
17585 if test -n "${ZSH_VERSION+set}" ; then
17586 setopt NO_GLOB_SUBST
17588 # Now quote all the things that may contain metacharacters while being
17589 # careful not to overquote the AC_SUBSTed values. We take copies of the
17590 # variables and quote the copies for generation of the libtool script.
17591 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17593 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17594 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17595 deplibs_check_method reload_flag reload_cmds need_locks \
17596 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17597 lt_cv_sys_global_symbol_to_c_name_address \
17598 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17599 old_postinstall_cmds old_postuninstall_cmds \
17603 lt_prog_compiler_wl \
17604 lt_prog_compiler_pic \
17605 lt_prog_compiler_static \
17606 lt_prog_compiler_no_builtin_flag \
17607 export_dynamic_flag_spec \
17608 thread_safe_flag_spec \
17609 whole_archive_flag_spec \
17610 enable_shared_with_static_runtimes \
17612 old_archive_from_new_cmds \
17617 compiler_lib_search_path \
17619 archive_expsym_cmds \
17621 postuninstall_cmds \
17622 old_archive_from_expsyms_cmds \
17623 allow_undefined_flag \
17624 no_undefined_flag \
17625 export_symbols_cmds \
17626 hardcode_libdir_flag_spec \
17627 hardcode_libdir_flag_spec_ld \
17628 hardcode_libdir_separator \
17629 hardcode_automatic \
17631 module_expsym_cmds \
17632 lt_cv_prog_compiler_c_o \
17634 include_expsyms; do
17637 old_archive_cmds | \
17638 old_archive_from_new_cmds | \
17640 archive_expsym_cmds | \
17642 module_expsym_cmds | \
17643 old_archive_from_expsyms_cmds | \
17644 export_symbols_cmds | \
17645 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17646 postinstall_cmds | postuninstall_cmds | \
17647 old_postinstall_cmds | old_postuninstall_cmds | \
17648 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17649 # Double-quote double-evaled strings.
17650 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17653 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17659 *'\$0 --fallback-echo"')
17660 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17664 cfgfile="${ofile}T"
17665 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17667 { echo "$as_me:$LINENO: creating $ofile" >&5
17668 echo "$as_me: creating $ofile" >&6;}
17670 cat <<__EOF__ >> "$cfgfile"
17673 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17674 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17675 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17677 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17678 # Free Software Foundation, Inc.
17680 # This file is part of GNU Libtool:
17681 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17683 # This program is free software; you can redistribute it and/or modify
17684 # it under the terms of the GNU General Public License as published by
17685 # the Free Software Foundation; either version 2 of the License, or
17686 # (at your option) any later version.
17688 # This program is distributed in the hope that it will be useful, but
17689 # WITHOUT ANY WARRANTY; without even the implied warranty of
17690 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17691 # General Public License for more details.
17693 # You should have received a copy of the GNU General Public License
17694 # along with this program; if not, write to the Free Software
17695 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17697 # As a special exception to the GNU General Public License, if you
17698 # distribute this file as part of a program that contains a
17699 # configuration script generated by Autoconf, you may include it under
17700 # the same distribution terms that you use for the rest of that program.
17702 # A sed program that does not truncate output.
17705 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17706 Xsed="$SED -e 1s/^X//"
17708 # The HP-UX ksh and POSIX shell print the target directory to stdout
17709 # if CDPATH is set.
17710 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17712 # The names of the tagged configurations supported by this script.
17715 # ### BEGIN LIBTOOL CONFIG
17717 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17719 # Shell to use when invoking shell scripts.
17722 # Whether or not to build shared libraries.
17723 build_libtool_libs=$enable_shared
17725 # Whether or not to build static libraries.
17726 build_old_libs=$enable_static
17728 # Whether or not to add -lc for building shared libraries.
17729 build_libtool_need_lc=$archive_cmds_need_lc
17731 # Whether or not to disallow shared libs when runtime libs are static
17732 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17734 # Whether or not to optimize for fast installation.
17735 fast_install=$enable_fast_install
17738 host_alias=$host_alias
17742 # The build system.
17743 build_alias=$build_alias
17747 # An echo program that does not interpret backslashes.
17752 AR_FLAGS=$lt_AR_FLAGS
17757 # LTCC compiler flags.
17758 LTCFLAGS=$lt_LTCFLAGS
17760 # A language-specific compiler.
17763 # Is the compiler the GNU C compiler?
17769 # The linker used to build libraries.
17772 # Whether we need hard or soft links.
17775 # A BSD-compatible nm program.
17778 # A symbol stripping program
17781 # Used to examine libraries when file_magic_cmd begins "file"
17782 MAGIC_CMD=$MAGIC_CMD
17784 # Used on cygwin: DLL creation program.
17787 # Used on cygwin: object dumper.
17790 # Used on cygwin: assembler.
17793 # The name of the directory that contains temporary libtool files.
17796 # How to create reloadable object files.
17797 reload_flag=$lt_reload_flag
17798 reload_cmds=$lt_reload_cmds
17800 # How to pass a linker flag through the compiler.
17801 wl=$lt_lt_prog_compiler_wl
17803 # Object file suffix (normally "o").
17804 objext="$ac_objext"
17806 # Old archive suffix (normally "a").
17809 # Shared library suffix (normally ".so").
17810 shrext_cmds='$shrext_cmds'
17812 # Executable file suffix (normally "").
17815 # Additional compiler flags for building library objects.
17816 pic_flag=$lt_lt_prog_compiler_pic
17819 # What is the maximum length of a command?
17820 max_cmd_len=$lt_cv_sys_max_cmd_len
17822 # Does compiler simultaneously support -c and -o options?
17823 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17825 # Must we lock files when doing compilation?
17826 need_locks=$lt_need_locks
17828 # Do we need the lib prefix for modules?
17829 need_lib_prefix=$need_lib_prefix
17831 # Do we need a version for libraries?
17832 need_version=$need_version
17834 # Whether dlopen is supported.
17835 dlopen_support=$enable_dlopen
17837 # Whether dlopen of programs is supported.
17838 dlopen_self=$enable_dlopen_self
17840 # Whether dlopen of statically linked programs is supported.
17841 dlopen_self_static=$enable_dlopen_self_static
17843 # Compiler flag to prevent dynamic linking.
17844 link_static_flag=$lt_lt_prog_compiler_static
17846 # Compiler flag to turn off builtin functions.
17847 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17849 # Compiler flag to allow reflexive dlopens.
17850 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17852 # Compiler flag to generate shared objects directly from archives.
17853 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17855 # Compiler flag to generate thread-safe objects.
17856 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17858 # Library versioning type.
17859 version_type=$version_type
17861 # Format of library name prefix.
17862 libname_spec=$lt_libname_spec
17864 # List of archive names. First name is the real one, the rest are links.
17865 # The last name is the one that the linker finds with -lNAME.
17866 library_names_spec=$lt_library_names_spec
17868 # The coded name of the library, if different from the real name.
17869 soname_spec=$lt_soname_spec
17871 # Commands used to build and install an old-style archive.
17873 old_archive_cmds=$lt_old_archive_cmds
17874 old_postinstall_cmds=$lt_old_postinstall_cmds
17875 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17877 # Create an old-style archive from a shared archive.
17878 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17880 # Create a temporary old-style archive to link instead of a shared archive.
17881 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17883 # Commands used to build and install a shared archive.
17884 archive_cmds=$lt_archive_cmds
17885 archive_expsym_cmds=$lt_archive_expsym_cmds
17886 postinstall_cmds=$lt_postinstall_cmds
17887 postuninstall_cmds=$lt_postuninstall_cmds
17889 # Commands used to build a loadable module (assumed same as above if empty)
17890 module_cmds=$lt_module_cmds
17891 module_expsym_cmds=$lt_module_expsym_cmds
17893 # Commands to strip libraries.
17894 old_striplib=$lt_old_striplib
17895 striplib=$lt_striplib
17897 # Dependencies to place before the objects being linked to create a
17899 predep_objects=$lt_predep_objects
17901 # Dependencies to place after the objects being linked to create a
17903 postdep_objects=$lt_postdep_objects
17905 # Dependencies to place before the objects being linked to create a
17907 predeps=$lt_predeps
17909 # Dependencies to place after the objects being linked to create a
17911 postdeps=$lt_postdeps
17913 # The library search path used internally by the compiler when linking
17914 # a shared library.
17915 compiler_lib_search_path=$lt_compiler_lib_search_path
17917 # Method to check whether dependent libraries are shared objects.
17918 deplibs_check_method=$lt_deplibs_check_method
17920 # Command to use when deplibs_check_method == file_magic.
17921 file_magic_cmd=$lt_file_magic_cmd
17923 # Flag that allows shared libraries with undefined symbols to be built.
17924 allow_undefined_flag=$lt_allow_undefined_flag
17926 # Flag that forces no undefined symbols.
17927 no_undefined_flag=$lt_no_undefined_flag
17929 # Commands used to finish a libtool library installation in a directory.
17930 finish_cmds=$lt_finish_cmds
17932 # Same as above, but a single script fragment to be evaled but not shown.
17933 finish_eval=$lt_finish_eval
17935 # Take the output of nm and produce a listing of raw symbols and C names.
17936 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17938 # Transform the output of nm in a proper C declaration
17939 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17941 # Transform the output of nm in a C name address pair
17942 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17944 # This is the shared library runtime path variable.
17945 runpath_var=$runpath_var
17947 # This is the shared library path variable.
17948 shlibpath_var=$shlibpath_var
17950 # Is shlibpath searched before the hard-coded library search path?
17951 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17953 # How to hardcode a shared library path into an executable.
17954 hardcode_action=$hardcode_action
17956 # Whether we should hardcode library paths into libraries.
17957 hardcode_into_libs=$hardcode_into_libs
17959 # Flag to hardcode \$libdir into a binary during linking.
17960 # This must work even if \$libdir does not exist.
17961 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17963 # If ld is used when linking, flag to hardcode \$libdir into
17964 # a binary during linking. This must work even if \$libdir does
17966 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17968 # Whether we need a single -rpath flag with a separated argument.
17969 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17971 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17972 # resulting binary.
17973 hardcode_direct=$hardcode_direct
17975 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17976 # resulting binary.
17977 hardcode_minus_L=$hardcode_minus_L
17979 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17980 # the resulting binary.
17981 hardcode_shlibpath_var=$hardcode_shlibpath_var
17983 # Set to yes if building a shared library automatically hardcodes DIR into the library
17984 # and all subsequent libraries and executables linked against it.
17985 hardcode_automatic=$hardcode_automatic
17987 # Variables whose values should be saved in libtool wrapper scripts and
17988 # restored at relink time.
17989 variables_saved_for_relink="$variables_saved_for_relink"
17991 # Whether libtool must link a program against all its dependency libraries.
17992 link_all_deplibs=$link_all_deplibs
17994 # Compile-time system search path for libraries
17995 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17997 # Run-time system search path for libraries
17998 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18000 # Fix the shell variable \$srcfile for the compiler.
18001 fix_srcfile_path="$fix_srcfile_path"
18003 # Set to yes if exported symbols are required.
18004 always_export_symbols=$always_export_symbols
18006 # The commands to list exported symbols.
18007 export_symbols_cmds=$lt_export_symbols_cmds
18009 # The commands to extract the exported symbol list from a shared archive.
18010 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18012 # Symbols that should not be listed in the preloaded symbols.
18013 exclude_expsyms=$lt_exclude_expsyms
18015 # Symbols that must always be exported.
18016 include_expsyms=$lt_include_expsyms
18018 # ### END LIBTOOL CONFIG
18025 cat <<\EOF >> "$cfgfile"
18027 # AIX sometimes has problems with the GCC collect2 program. For some
18028 # reason, if we set the COLLECT_NAMES environment variable, the problems
18029 # vanish in a puff of smoke.
18030 if test "X${COLLECT_NAMES+set}" != Xset; then
18032 export COLLECT_NAMES
18038 # We use sed instead of cat because bash on DJGPP gets confused if
18039 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18040 # text mode, it properly converts lines to CR/LF. This bash problem
18041 # is reportedly fixed, but why not run on old versions too?
18042 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18044 mv -f "$cfgfile" "$ofile" || \
18045 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18049 # If there is no Makefile yet, we rely on a make rule to execute
18050 # `config.status --recheck' to rerun these tests and create the
18051 # libtool script then.
18052 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18053 if test -f "$ltmain_in"; then
18054 test -f Makefile && make "$ltmain"
18060 ac_cpp='$CPP $CPPFLAGS'
18061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18068 # Check whether --with-tags was given.
18069 if test "${with_tags+set}" = set; then
18070 withval=$with_tags; tagnames="$withval"
18074 if test -f "$ltmain" && test -n "$tagnames"; then
18075 if test ! -f "${ofile}"; then
18076 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18077 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18080 if test -z "$LTCC"; then
18081 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18082 if test -z "$LTCC"; then
18083 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18084 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18086 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18087 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18090 if test -z "$LTCFLAGS"; then
18091 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18094 # Extract list of available tagged configurations in $ofile.
18095 # Note that this assumes the entire list is on one line.
18096 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18098 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18099 for tagname in $tagnames; do
18101 # Check whether tagname contains only valid characters
18102 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18104 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18105 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18106 { (exit 1); exit 1; }; }
18110 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18112 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18113 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18114 { (exit 1); exit 1; }; }
18117 # Update the list of available tags.
18118 if test -n "$tagname"; then
18119 echo appending configuration tag \"$tagname\" to $ofile
18123 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18124 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18125 (test "X$CXX" != "Xg++"))) ; then
18127 ac_cpp='$CXXCPP $CPPFLAGS'
18128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18135 archive_cmds_need_lc_CXX=no
18136 allow_undefined_flag_CXX=
18137 always_export_symbols_CXX=no
18138 archive_expsym_cmds_CXX=
18139 export_dynamic_flag_spec_CXX=
18140 hardcode_direct_CXX=no
18141 hardcode_libdir_flag_spec_CXX=
18142 hardcode_libdir_flag_spec_ld_CXX=
18143 hardcode_libdir_separator_CXX=
18144 hardcode_minus_L_CXX=no
18145 hardcode_shlibpath_var_CXX=unsupported
18146 hardcode_automatic_CXX=no
18148 module_expsym_cmds_CXX=
18149 link_all_deplibs_CXX=unknown
18150 old_archive_cmds_CXX=$old_archive_cmds
18151 no_undefined_flag_CXX=
18152 whole_archive_flag_spec_CXX=
18153 enable_shared_with_static_runtimes_CXX=no
18155 # Dependencies to place before and after the object being linked:
18156 predep_objects_CXX=
18157 postdep_objects_CXX=
18160 compiler_lib_search_path_CXX=
18162 # Source file extension for C++ test sources.
18165 # Object file extension for compiled C++ test sources.
18169 # Code to be used in simple compile tests
18170 lt_simple_compile_test_code="int some_variable = 0;\n"
18172 # Code to be used in simple link tests
18173 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18175 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18177 # If no C compiler was specified, use CC.
18180 # If no C compiler flags were specified, use CFLAGS.
18181 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18183 # Allow CC to be a program name with arguments.
18187 # save warnings/boilerplate of simple test code
18188 ac_outfile=conftest.$ac_objext
18189 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18190 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18191 _lt_compiler_boilerplate=`cat conftest.err`
18194 ac_outfile=conftest.$ac_objext
18195 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18196 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18197 _lt_linker_boilerplate=`cat conftest.err`
18201 # Allow CC to be a program name with arguments.
18206 lt_save_with_gnu_ld=$with_gnu_ld
18207 lt_save_path_LD=$lt_cv_path_LD
18208 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18209 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18211 $as_unset lt_cv_prog_gnu_ld
18213 if test -n "${lt_cv_path_LDCXX+set}"; then
18214 lt_cv_path_LD=$lt_cv_path_LDCXX
18216 $as_unset lt_cv_path_LD
18218 test -z "${LDCXX+set}" || LD=$LDCXX
18222 for cc_temp in $compiler""; do
18224 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18225 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18230 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18233 # We don't want -fno-exception wen compiling C++ code, so set the
18234 # no_builtin_flag separately
18235 if test "$GXX" = yes; then
18236 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18238 lt_prog_compiler_no_builtin_flag_CXX=
18241 if test "$GXX" = yes; then
18242 # Set up default GNU C++ configuration
18245 # Check whether --with-gnu-ld was given.
18246 if test "${with_gnu_ld+set}" = set; then
18247 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18253 if test "$GCC" = yes; then
18254 # Check if gcc -print-prog-name=ld gives a path.
18255 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18256 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18259 # gcc leaves a trailing carriage return which upsets mingw
18260 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18262 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18265 # Accept absolute paths.
18267 re_direlt='/[^/][^/]*/\.\./'
18268 # Canonicalize the pathname of ld
18269 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18270 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18271 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18273 test -z "$LD" && LD="$ac_prog"
18276 # If it fails, then pretend we aren't using GCC.
18280 # If it is relative, then search for the first ld in PATH.
18281 with_gnu_ld=unknown
18284 elif test "$with_gnu_ld" = yes; then
18285 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18286 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18288 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18289 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18291 if test "${lt_cv_path_LD+set}" = set; then
18292 echo $ECHO_N "(cached) $ECHO_C" >&6
18294 if test -z "$LD"; then
18295 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18296 for ac_dir in $PATH; do
18298 test -z "$ac_dir" && ac_dir=.
18299 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18300 lt_cv_path_LD="$ac_dir/$ac_prog"
18301 # Check to see if the program is GNU ld. I'd rather use --version,
18302 # but apparently some variants of GNU ld only accept -v.
18303 # Break only if it was the GNU/non-GNU ld that we prefer.
18304 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18305 *GNU* | *'with BFD'*)
18306 test "$with_gnu_ld" != no && break
18309 test "$with_gnu_ld" != yes && break
18316 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18320 LD="$lt_cv_path_LD"
18321 if test -n "$LD"; then
18322 { echo "$as_me:$LINENO: result: $LD" >&5
18323 echo "${ECHO_T}$LD" >&6; }
18325 { echo "$as_me:$LINENO: result: no" >&5
18326 echo "${ECHO_T}no" >&6; }
18328 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18329 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18330 { (exit 1); exit 1; }; }
18331 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18332 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18333 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18336 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18337 case `$LD -v 2>&1 </dev/null` in
18338 *GNU* | *'with BFD'*)
18339 lt_cv_prog_gnu_ld=yes
18342 lt_cv_prog_gnu_ld=no
18346 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18347 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18348 with_gnu_ld=$lt_cv_prog_gnu_ld
18352 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18353 # archiving commands below assume that GNU ld is being used.
18354 if test "$with_gnu_ld" = yes; then
18355 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18356 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'
18358 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18359 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18361 # If archive_cmds runs LD, not CC, wlarc should be empty
18362 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18363 # investigate it a little bit more. (MM)
18366 # ancient GNU ld didn't support --whole-archive et. al.
18367 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18368 grep 'no-whole-archive' > /dev/null; then
18369 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18371 whole_archive_flag_spec_CXX=
18377 # A generic and very simple default shared library creation
18378 # command for GNU C++ for the case where it uses the native
18379 # linker, instead of GNU ld. If possible, this setting should
18380 # overridden to take advantage of the native linker features on
18381 # the platform it is being used on.
18382 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18385 # Commands to make compiler produce verbose output that lists
18386 # what "hidden" libraries, object files and flags are used when
18387 # linking a shared library.
18388 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18396 # PORTME: fill in a description of your system's C++ link characteristics
18397 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18398 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18402 # FIXME: insert proper C++ library support
18406 if test "$host_cpu" = ia64; then
18407 # On IA64, the linker does run time linking by default, so we don't
18408 # have to do anything special.
18409 aix_use_runtimelinking=no
18410 exp_sym_flag='-Bexport'
18413 aix_use_runtimelinking=no
18415 # Test if we are trying to use run time linking or normal
18416 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18417 # need to do runtime linking.
18418 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18419 for ld_flag in $LDFLAGS; do
18422 aix_use_runtimelinking=yes
18430 exp_sym_flag='-bexport'
18431 no_entry_flag='-bnoentry'
18434 # When large executables or shared objects are built, AIX ld can
18435 # have problems creating the table of contents. If linking a library
18436 # or program results in "error TOC overflow" add -mminimal-toc to
18437 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18438 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18440 archive_cmds_CXX=''
18441 hardcode_direct_CXX=yes
18442 hardcode_libdir_separator_CXX=':'
18443 link_all_deplibs_CXX=yes
18445 if test "$GXX" = yes; then
18446 case $host_os in aix4.[012]|aix4.[012].*)
18447 # We only want to do this on AIX 4.2 and lower, the check
18448 # below for broken collect2 doesn't work under 4.3+
18449 collect2name=`${CC} -print-prog-name=collect2`
18450 if test -f "$collect2name" && \
18451 strings "$collect2name" | grep resolve_lib_name >/dev/null
18453 # We have reworked collect2
18454 hardcode_direct_CXX=yes
18456 # We have old collect2
18457 hardcode_direct_CXX=unsupported
18458 # It fails to find uninstalled libraries when the uninstalled
18459 # path is not listed in the libpath. Setting hardcode_minus_L
18460 # to unsupported forces relinking
18461 hardcode_minus_L_CXX=yes
18462 hardcode_libdir_flag_spec_CXX='-L$libdir'
18463 hardcode_libdir_separator_CXX=
18467 shared_flag='-shared'
18468 if test "$aix_use_runtimelinking" = yes; then
18469 shared_flag="$shared_flag "'${wl}-G'
18473 if test "$host_cpu" = ia64; then
18474 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18475 # chokes on -Wl,-G. The following line is correct:
18478 if test "$aix_use_runtimelinking" = yes; then
18479 shared_flag='${wl}-G'
18481 shared_flag='${wl}-bM:SRE'
18486 # It seems that -bexpall does not export symbols beginning with
18487 # underscore (_), so it is better to generate a list of symbols to export.
18488 always_export_symbols_CXX=yes
18489 if test "$aix_use_runtimelinking" = yes; then
18490 # Warning - without using the other runtime loading flags (-brtl),
18491 # -berok will link without error, but may produce a broken library.
18492 allow_undefined_flag_CXX='-berok'
18493 # Determine the default libpath from the value encoded in an empty executable.
18494 cat >conftest.$ac_ext <<_ACEOF
18497 cat confdefs.h >>conftest.$ac_ext
18498 cat >>conftest.$ac_ext <<_ACEOF
18499 /* end confdefs.h. */
18509 rm -f conftest.$ac_objext conftest$ac_exeext
18510 if { (ac_try="$ac_link"
18511 case "(($ac_try" in
18512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513 *) ac_try_echo=$ac_try;;
18515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516 (eval "$ac_link") 2>conftest.er1
18518 grep -v '^ *+' conftest.er1 >conftest.err
18520 cat conftest.err >&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); } &&
18523 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18524 { (case "(($ac_try" in
18525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526 *) ac_try_echo=$ac_try;;
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529 (eval "$ac_try") 2>&5
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; } &&
18533 { ac_try='test -s conftest$ac_exeext'
18534 { (case "(($ac_try" in
18535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18536 *) ac_try_echo=$ac_try;;
18538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18539 (eval "$ac_try") 2>&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; }; then
18544 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18546 # Check for a 64-bit object if we didn't find anything.
18547 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; }
18550 echo "$as_me: failed program was:" >&5
18551 sed 's/^/| /' conftest.$ac_ext >&5
18556 rm -f core conftest.err conftest.$ac_objext \
18557 conftest$ac_exeext conftest.$ac_ext
18558 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18560 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18562 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"
18564 if test "$host_cpu" = ia64; then
18565 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18566 allow_undefined_flag_CXX="-z nodefs"
18567 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"
18569 # Determine the default libpath from the value encoded in an empty executable.
18570 cat >conftest.$ac_ext <<_ACEOF
18573 cat confdefs.h >>conftest.$ac_ext
18574 cat >>conftest.$ac_ext <<_ACEOF
18575 /* end confdefs.h. */
18585 rm -f conftest.$ac_objext conftest$ac_exeext
18586 if { (ac_try="$ac_link"
18587 case "(($ac_try" in
18588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18589 *) ac_try_echo=$ac_try;;
18591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18592 (eval "$ac_link") 2>conftest.er1
18594 grep -v '^ *+' conftest.er1 >conftest.err
18596 cat conftest.err >&5
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); } &&
18599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18600 { (case "(($ac_try" in
18601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18602 *) ac_try_echo=$ac_try;;
18604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18605 (eval "$ac_try") 2>&5
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; } &&
18609 { ac_try='test -s conftest$ac_exeext'
18610 { (case "(($ac_try" in
18611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612 *) ac_try_echo=$ac_try;;
18614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_try") 2>&5
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); }; }; then
18620 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18622 # Check for a 64-bit object if we didn't find anything.
18623 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; }
18626 echo "$as_me: failed program was:" >&5
18627 sed 's/^/| /' conftest.$ac_ext >&5
18632 rm -f core conftest.err conftest.$ac_objext \
18633 conftest$ac_exeext conftest.$ac_ext
18634 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18636 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18637 # Warning - without using the other run time loading flags,
18638 # -berok will link without error, but may produce a broken library.
18639 no_undefined_flag_CXX=' ${wl}-bernotok'
18640 allow_undefined_flag_CXX=' ${wl}-berok'
18641 # Exported symbols can be pulled into shared objects from archives
18642 whole_archive_flag_spec_CXX='$convenience'
18643 archive_cmds_need_lc_CXX=yes
18644 # This is similar to how AIX traditionally builds its shared libraries.
18645 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'
18651 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18652 allow_undefined_flag_CXX=unsupported
18653 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18654 # support --undefined. This deserves some investigation. FIXME
18655 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18662 case $cc_basename in
18664 # FIXME: insert proper C++ library support
18670 cygwin* | mingw* | pw32*)
18671 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18672 # as there is no search path for DLLs.
18673 hardcode_libdir_flag_spec_CXX='-L$libdir'
18674 allow_undefined_flag_CXX=unsupported
18675 always_export_symbols_CXX=no
18676 enable_shared_with_static_runtimes_CXX=yes
18678 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18679 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'
18680 # If the export-symbols file already is a .def file (1st line
18681 # is EXPORTS), use it as is; otherwise, prepend...
18682 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18683 cp $export_symbols $output_objdir/$soname.def;
18685 echo EXPORTS > $output_objdir/$soname.def;
18686 cat $export_symbols >> $output_objdir/$soname.def;
18688 $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'
18693 darwin* | rhapsody*)
18695 rhapsody* | darwin1.[012])
18696 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18699 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18700 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18702 case ${MACOSX_DEPLOYMENT_TARGET} in
18704 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18707 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18713 archive_cmds_need_lc_CXX=no
18714 hardcode_direct_CXX=no
18715 hardcode_automatic_CXX=yes
18716 hardcode_shlibpath_var_CXX=unsupported
18717 whole_archive_flag_spec_CXX=''
18718 link_all_deplibs_CXX=yes
18720 if test "$GXX" = yes ; then
18721 lt_int_apple_cc_single_mod=no
18722 output_verbose_link_cmd='echo'
18723 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18724 lt_int_apple_cc_single_mod=yes
18726 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18727 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18729 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'
18731 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18732 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18733 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18734 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}'
18736 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}'
18738 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18740 case $cc_basename in
18742 output_verbose_link_cmd='echo'
18743 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'
18744 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18745 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18746 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}'
18747 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}'
18757 case $cc_basename in
18759 # FIXME: insert proper C++ library support
18763 # Green Hills C++ Compiler
18764 # FIXME: insert proper C++ library support
18768 # FIXME: insert proper C++ library support
18774 # C++ shared libraries reported to be fairly broken before switch to ELF
18778 archive_cmds_need_lc_CXX=no
18780 freebsd* | kfreebsd*-gnu | dragonfly*)
18781 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18788 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18789 hardcode_libdir_separator_CXX=:
18790 export_dynamic_flag_spec_CXX='${wl}-E'
18791 hardcode_direct_CXX=yes
18792 hardcode_minus_L_CXX=yes # Not in the search PATH,
18793 # but as the default
18794 # location of the library.
18796 case $cc_basename in
18798 # FIXME: insert proper C++ library support
18802 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'
18803 # Commands to make compiler produce verbose output that lists
18804 # what "hidden" libraries, object files and flags are used when
18805 # linking a shared library.
18807 # There doesn't appear to be a way to prevent this compiler from
18808 # explicitly linking system object files so we need to strip them
18809 # from the output so that they don't get included in the library
18811 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'
18814 if test "$GXX" = yes; then
18815 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'
18817 # FIXME: insert proper C++ library support
18824 if test $with_gnu_ld = no; then
18825 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18826 hardcode_libdir_separator_CXX=:
18830 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18833 export_dynamic_flag_spec_CXX='${wl}-E'
18839 hardcode_direct_CXX=no
18840 hardcode_shlibpath_var_CXX=no
18843 hardcode_direct_CXX=yes
18844 hardcode_minus_L_CXX=yes # Not in the search PATH,
18845 # but as the default
18846 # location of the library.
18850 case $cc_basename in
18852 # FIXME: insert proper C++ library support
18858 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18861 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18864 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18867 # Commands to make compiler produce verbose output that lists
18868 # what "hidden" libraries, object files and flags are used when
18869 # linking a shared library.
18871 # There doesn't appear to be a way to prevent this compiler from
18872 # explicitly linking system object files so we need to strip them
18873 # from the output so that they don't get included in the library
18875 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'
18878 if test "$GXX" = yes; then
18879 if test $with_gnu_ld = no; then
18882 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18885 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18888 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'
18893 # FIXME: insert proper C++ library support
18900 hardcode_direct_CXX=no
18901 hardcode_shlibpath_var_CXX=no
18902 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18903 export_dynamic_flag_spec_CXX='${wl}-E'
18904 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18905 # Instead, shared libraries are loaded at an image base (0x10000000 by
18906 # default) and relocated if they conflict, which is a slow very memory
18907 # consuming and fragmenting process. To avoid this, we pick a random,
18908 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18909 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18910 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'
18911 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'
18914 case $cc_basename in
18917 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'
18919 # Archives containing C++ object files must be created using
18920 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18921 # necessary to make sure instantiated templates are included
18923 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18926 if test "$GXX" = yes; then
18927 if test "$with_gnu_ld" = no; then
18928 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'
18930 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'
18933 link_all_deplibs_CXX=yes
18936 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18937 hardcode_libdir_separator_CXX=:
18940 case $cc_basename in
18942 # Kuck and Associates, Inc. (KAI) C++ Compiler
18944 # KCC will only create a shared library if the output file
18945 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18946 # to its proper name (with version) after linking.
18947 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'
18948 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'
18949 # Commands to make compiler produce verbose output that lists
18950 # what "hidden" libraries, object files and flags are used when
18951 # linking a shared library.
18953 # There doesn't appear to be a way to prevent this compiler from
18954 # explicitly linking system object files so we need to strip them
18955 # from the output so that they don't get included in the library
18957 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'
18959 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18960 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18962 # Archives containing C++ object files must be created using
18963 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18964 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18969 # version 8.0 and above of icpc choke on multiply defined symbols
18970 # if we add $predep_objects and $postdep_objects, however 7.1 and
18971 # earlier do not add the objects themselves.
18972 case `$CC -V 2>&1` in
18974 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18975 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'
18977 *) # Version 8.0 or newer
18980 ia64*) tmp_idyn=' -i_dynamic';;
18982 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18983 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'
18986 archive_cmds_need_lc_CXX=no
18987 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18988 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18989 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18992 # Portland Group C++ compiler
18993 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18994 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'
18996 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18997 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18998 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'
19002 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19003 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'
19005 runpath_var=LD_RUN_PATH
19006 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19007 hardcode_libdir_separator_CXX=:
19009 # Commands to make compiler produce verbose output that lists
19010 # what "hidden" libraries, object files and flags are used when
19011 # linking a shared library.
19013 # There doesn't appear to be a way to prevent this compiler from
19014 # explicitly linking system object files so we need to strip them
19015 # from the output so that they don't get included in the library
19017 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'
19022 # FIXME: insert proper C++ library support
19026 # FIXME: insert proper C++ library support
19030 case $cc_basename in
19032 # FIXME: insert proper C++ library support
19036 # FIXME: insert proper C++ library support
19042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19043 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19045 hardcode_libdir_flag_spec_CXX='-R$libdir'
19046 hardcode_direct_CXX=yes
19047 hardcode_shlibpath_var_CXX=no
19049 # Workaround some broken pre-1.5 toolchains
19050 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19053 # C++ shared libraries are fairly broken
19057 hardcode_direct_CXX=yes
19058 hardcode_shlibpath_var_CXX=no
19059 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19060 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19061 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19062 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19063 export_dynamic_flag_spec_CXX='${wl}-E'
19064 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19066 output_verbose_link_cmd='echo'
19069 case $cc_basename in
19071 # Kuck and Associates, Inc. (KAI) C++ Compiler
19073 # KCC will only create a shared library if the output file
19074 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19075 # to its proper name (with version) after linking.
19076 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'
19078 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19079 hardcode_libdir_separator_CXX=:
19081 # Archives containing C++ object files must be created using
19082 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19083 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19087 # Rational C++ 2.4.1
19088 # FIXME: insert proper C++ library support
19092 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19093 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'
19095 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19096 hardcode_libdir_separator_CXX=:
19098 # Commands to make compiler produce verbose output that lists
19099 # what "hidden" libraries, object files and flags are used when
19100 # linking a shared library.
19102 # There doesn't appear to be a way to prevent this compiler from
19103 # explicitly linking system object files so we need to strip them
19104 # from the output so that they don't get included in the library
19106 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'
19109 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19110 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19111 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'
19113 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19114 hardcode_libdir_separator_CXX=:
19116 # Commands to make compiler produce verbose output that lists
19117 # what "hidden" libraries, object files and flags are used when
19118 # linking a shared library.
19119 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19122 # FIXME: insert proper C++ library support
19129 case $cc_basename in
19131 # Kuck and Associates, Inc. (KAI) C++ Compiler
19133 # KCC will only create a shared library if the output file
19134 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19135 # to its proper name (with version) after linking.
19136 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'
19138 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19139 hardcode_libdir_separator_CXX=:
19141 # Archives containing C++ object files must be created using
19142 # the KAI C++ compiler.
19143 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19146 # Rational C++ 2.4.1
19147 # FIXME: insert proper C++ library support
19151 allow_undefined_flag_CXX=' -expect_unresolved \*'
19152 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'
19153 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19154 echo "-hidden">> $lib.exp~
19155 $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~
19158 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19159 hardcode_libdir_separator_CXX=:
19161 # Commands to make compiler produce verbose output that lists
19162 # what "hidden" libraries, object files and flags are used when
19163 # linking a shared library.
19165 # There doesn't appear to be a way to prevent this compiler from
19166 # explicitly linking system object files so we need to strip them
19167 # from the output so that they don't get included in the library
19169 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'
19172 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19173 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19174 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'
19176 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19177 hardcode_libdir_separator_CXX=:
19179 # Commands to make compiler produce verbose output that lists
19180 # what "hidden" libraries, object files and flags are used when
19181 # linking a shared library.
19182 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19185 # FIXME: insert proper C++ library support
19192 # FIXME: insert proper C++ library support
19196 case $cc_basename in
19199 # FIXME: insert proper C++ library support
19204 # FIXME: insert proper C++ library support
19208 # FIXME: insert proper C++ library support
19214 case $cc_basename in
19216 # Sun C++ 4.2, 5.x and Centerline C++
19217 archive_cmds_need_lc_CXX=yes
19218 no_undefined_flag_CXX=' -zdefs'
19219 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19220 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19221 $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'
19223 hardcode_libdir_flag_spec_CXX='-R$libdir'
19224 hardcode_shlibpath_var_CXX=no
19226 solaris2.[0-5] | solaris2.[0-5].*) ;;
19228 # The C++ compiler is used as linker so we must use $wl
19229 # flag to pass the commands to the underlying system
19230 # linker. We must also pass each convience library through
19231 # to the system linker between allextract/defaultextract.
19232 # The C++ compiler will combine linker options so we
19233 # cannot just pass the convience library names through
19235 # Supported since Solaris 2.6 (maybe 2.5.1?)
19236 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'
19239 link_all_deplibs_CXX=yes
19241 output_verbose_link_cmd='echo'
19243 # Archives containing C++ object files must be created using
19244 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19245 # necessary to make sure instantiated templates are included
19247 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19250 # Green Hills C++ Compiler
19251 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19253 # The C++ compiler must be used to create the archive.
19254 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19257 # GNU C++ compiler with Solaris linker
19258 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19259 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19260 if $CC --version | grep -v '^2\.7' > /dev/null; then
19261 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19262 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19263 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19265 # Commands to make compiler produce verbose output that lists
19266 # what "hidden" libraries, object files and flags are used when
19267 # linking a shared library.
19268 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19270 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19272 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19273 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19274 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19276 # Commands to make compiler produce verbose output that lists
19277 # what "hidden" libraries, object files and flags are used when
19278 # linking a shared library.
19279 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19282 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19287 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19288 no_undefined_flag_CXX='${wl}-z,text'
19289 archive_cmds_need_lc_CXX=no
19290 hardcode_shlibpath_var_CXX=no
19291 runpath_var='LD_RUN_PATH'
19293 case $cc_basename in
19295 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19296 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19299 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19300 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19304 sysv5* | sco3.2v5* | sco5v6*)
19305 # Note: We can NOT use -z defs as we might desire, because we do not
19306 # link with -lc, and that would cause any symbols used from libc to
19307 # always be unresolved, which means just about no library would
19308 # ever link correctly. If we're not using GNU ld we use -z text
19309 # though, which does catch some bad symbols but isn't as heavy-handed
19311 # For security reasons, it is highly recommended that you always
19312 # use absolute paths for naming shared libraries, and exclude the
19313 # DT_RUNPATH tag from executables and libraries. But doing so
19314 # requires that you compile everything twice, which is a pain.
19315 # So that behaviour is only enabled if SCOABSPATH is set to a
19316 # non-empty value in the environment. Most likely only useful for
19317 # creating official distributions of packages.
19318 # This is a hack until libtool officially supports absolute path
19319 # names for shared libraries.
19320 no_undefined_flag_CXX='${wl}-z,text'
19321 allow_undefined_flag_CXX='${wl}-z,nodefs'
19322 archive_cmds_need_lc_CXX=no
19323 hardcode_shlibpath_var_CXX=no
19324 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19325 hardcode_libdir_separator_CXX=':'
19326 link_all_deplibs_CXX=yes
19327 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19328 runpath_var='LD_RUN_PATH'
19330 case $cc_basename in
19332 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19333 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19336 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19337 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19342 case $cc_basename in
19344 # NonStop-UX NCC 3.20
19345 # FIXME: insert proper C++ library support
19349 # FIXME: insert proper C++ library support
19355 # FIXME: insert proper C++ library support
19359 # FIXME: insert proper C++ library support
19363 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19364 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19365 test "$ld_shlibs_CXX" = no && can_build_shared=no
19371 cat > conftest.$ac_ext <<EOF
19375 Foo (void) { a = 0; }
19381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19382 (eval $ac_compile) 2>&5
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; then
19386 # Parse the compiler output and extract the necessary
19387 # objects, libraries and library flags.
19389 # Sentinel used to keep track of whether or not we are before
19390 # the conftest object file.
19391 pre_test_object_deps_done=no
19393 # The `*' in the case matches for architectures that use `case' in
19394 # $output_verbose_cmd can trigger glob expansion during the loop
19395 # eval without this substitution.
19396 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19398 for p in `eval $output_verbose_link_cmd`; do
19402 # Some compilers place space between "-{L,R}" and the path.
19403 # Remove the space.
19404 if test $p = "-L" \
19405 || test $p = "-R"; then
19412 if test "$pre_test_object_deps_done" = no; then
19415 # Internal compiler library paths should come after those
19416 # provided the user. The postdeps already come after the
19417 # user supplied libs so there is no need to process them.
19418 if test -z "$compiler_lib_search_path_CXX"; then
19419 compiler_lib_search_path_CXX="${prev}${p}"
19421 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19424 # The "-l" case would never come before the object being
19425 # linked, so don't bother handling this case.
19428 if test -z "$postdeps_CXX"; then
19429 postdeps_CXX="${prev}${p}"
19431 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19437 # This assumes that the test object file only shows up
19438 # once in the compiler output.
19439 if test "$p" = "conftest.$objext"; then
19440 pre_test_object_deps_done=yes
19444 if test "$pre_test_object_deps_done" = no; then
19445 if test -z "$predep_objects_CXX"; then
19446 predep_objects_CXX="$p"
19448 predep_objects_CXX="$predep_objects_CXX $p"
19451 if test -z "$postdep_objects_CXX"; then
19452 postdep_objects_CXX="$p"
19454 postdep_objects_CXX="$postdep_objects_CXX $p"
19459 *) ;; # Ignore the rest.
19467 echo "libtool.m4: error: problem compiling CXX test program"
19470 $rm -f confest.$objext
19472 # PORTME: override above test on systems where it is broken
19475 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19476 # hack all around it, let's just trust "g++" to DTRT.
19477 predep_objects_CXX=
19478 postdep_objects_CXX=
19483 case $cc_basename in
19485 # Adding this requires a known-good setup of shared libraries for
19486 # Sun compiler versions before 5.6, else PIC objects from an old
19487 # archive will be linked into the output, leading to subtle bugs.
19488 postdeps_CXX='-lCstd -lCrun'
19495 case " $postdeps_CXX " in
19496 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19499 lt_prog_compiler_wl_CXX=
19500 lt_prog_compiler_pic_CXX=
19501 lt_prog_compiler_static_CXX=
19503 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19504 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19506 # C++ specific cases for pic, static, wl, etc.
19507 if test "$GXX" = yes; then
19508 lt_prog_compiler_wl_CXX='-Wl,'
19509 lt_prog_compiler_static_CXX='-static'
19513 # All AIX code is PIC.
19514 if test "$host_cpu" = ia64; then
19515 # AIX 5 now supports IA64 processor
19516 lt_prog_compiler_static_CXX='-Bstatic'
19520 # FIXME: we need at least 68020 code to build shared libraries, but
19521 # adding the `-m68020' flag to GCC prevents building anything better,
19523 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19525 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19526 # PIC is the default for these OSes.
19528 mingw* | os2* | pw32*)
19529 # This hack is so that the source file can tell whether it is being
19530 # built for inclusion in a dll (and should export symbols for example).
19531 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19533 darwin* | rhapsody*)
19534 # PIC is the default on this platform
19535 # Common symbols not allowed in MH_DYLIB files
19536 lt_prog_compiler_pic_CXX='-fno-common'
19539 # DJGPP does not support shared libraries at all
19540 lt_prog_compiler_pic_CXX=
19543 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19544 # Instead, we relocate shared libraries at runtime.
19547 if test -d /usr/nec; then
19548 lt_prog_compiler_pic_CXX=-Kconform_pic
19552 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19553 # not for PA HP-UX.
19558 lt_prog_compiler_pic_CXX='-fPIC'
19563 lt_prog_compiler_pic_CXX='-fPIC'
19569 # All AIX code is PIC.
19570 if test "$host_cpu" = ia64; then
19571 # AIX 5 now supports IA64 processor
19572 lt_prog_compiler_static_CXX='-Bstatic'
19574 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19578 case $cc_basename in
19580 # Green Hills C++ Compiler
19581 # _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"
19586 # PIC is the default on this platform
19587 # Common symbols not allowed in MH_DYLIB files
19588 case $cc_basename in
19590 lt_prog_compiler_pic_CXX='-qnocommon'
19591 lt_prog_compiler_wl_CXX='-Wl,'
19596 case $cc_basename in
19598 lt_prog_compiler_pic_CXX='-KPIC'
19601 # Green Hills C++ Compiler
19602 lt_prog_compiler_pic_CXX='-pic'
19608 freebsd* | kfreebsd*-gnu | dragonfly*)
19609 # FreeBSD uses GNU C++
19611 hpux9* | hpux10* | hpux11*)
19612 case $cc_basename in
19614 lt_prog_compiler_wl_CXX='-Wl,'
19615 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19616 if test "$host_cpu" != ia64; then
19617 lt_prog_compiler_pic_CXX='+Z'
19621 lt_prog_compiler_wl_CXX='-Wl,'
19622 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19628 lt_prog_compiler_pic_CXX='+Z'
19637 # This is c89, which is MS Visual C++ (no shared libs)
19638 # Anyone wants to do a port?
19640 irix5* | irix6* | nonstopux*)
19641 case $cc_basename in
19643 lt_prog_compiler_wl_CXX='-Wl,'
19644 lt_prog_compiler_static_CXX='-non_shared'
19645 # CC pic flag -KPIC is the default.
19652 case $cc_basename in
19655 lt_prog_compiler_wl_CXX='--backend -Wl,'
19656 lt_prog_compiler_pic_CXX='-fPIC'
19660 lt_prog_compiler_wl_CXX='-Wl,'
19661 lt_prog_compiler_pic_CXX='-KPIC'
19662 lt_prog_compiler_static_CXX='-static'
19665 # Portland Group C++ compiler.
19666 lt_prog_compiler_wl_CXX='-Wl,'
19667 lt_prog_compiler_pic_CXX='-fpic'
19668 lt_prog_compiler_static_CXX='-Bstatic'
19672 # Make sure the PIC flag is empty. It appears that all Alpha
19673 # Linux and Compaq Tru64 Unix objects are PIC.
19674 lt_prog_compiler_pic_CXX=
19675 lt_prog_compiler_static_CXX='-non_shared'
19686 case $cc_basename in
19688 lt_prog_compiler_pic_CXX='-W c,exportall'
19696 osf3* | osf4* | osf5*)
19697 case $cc_basename in
19699 lt_prog_compiler_wl_CXX='--backend -Wl,'
19702 # Rational C++ 2.4.1
19703 lt_prog_compiler_pic_CXX='-pic'
19706 # Digital/Compaq C++
19707 lt_prog_compiler_wl_CXX='-Wl,'
19708 # Make sure the PIC flag is empty. It appears that all Alpha
19709 # Linux and Compaq Tru64 Unix objects are PIC.
19710 lt_prog_compiler_pic_CXX=
19711 lt_prog_compiler_static_CXX='-non_shared'
19720 case $cc_basename in
19722 # Sun C++ 4.2, 5.x and Centerline C++
19723 lt_prog_compiler_pic_CXX='-KPIC'
19724 lt_prog_compiler_static_CXX='-Bstatic'
19725 lt_prog_compiler_wl_CXX='-Qoption ld '
19728 # Green Hills C++ Compiler
19729 lt_prog_compiler_pic_CXX='-PIC'
19736 case $cc_basename in
19739 lt_prog_compiler_pic_CXX='-pic'
19740 lt_prog_compiler_static_CXX='-Bstatic'
19744 lt_prog_compiler_pic_CXX='-pic'
19751 case $cc_basename in
19753 # NonStop-UX NCC 3.20
19754 lt_prog_compiler_pic_CXX='-KPIC'
19760 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19761 case $cc_basename in
19763 lt_prog_compiler_wl_CXX='-Wl,'
19764 lt_prog_compiler_pic_CXX='-KPIC'
19765 lt_prog_compiler_static_CXX='-Bstatic'
19772 lt_prog_compiler_can_build_shared_CXX=no
19777 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19778 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19781 # Check to make sure the PIC flag actually works.
19783 if test -n "$lt_prog_compiler_pic_CXX"; then
19785 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19786 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19787 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19788 echo $ECHO_N "(cached) $ECHO_C" >&6
19790 lt_prog_compiler_pic_works_CXX=no
19791 ac_outfile=conftest.$ac_objext
19792 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19793 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19794 # Insert the option either (1) after the last *FLAGS variable, or
19795 # (2) before a word containing "conftest.", or (3) at the end.
19796 # Note that $ac_compile itself does not contain backslashes and begins
19797 # with a dollar sign (not a hyphen), so the echo should work correctly.
19798 # The option is referenced via a variable to avoid confusing sed.
19799 lt_compile=`echo "$ac_compile" | $SED \
19800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19802 -e 's:$: $lt_compiler_flag:'`
19803 (eval echo "\"\$as_me:19803: $lt_compile\"" >&5)
19804 (eval "$lt_compile" 2>conftest.err)
19806 cat conftest.err >&5
19807 echo "$as_me:19807: \$? = $ac_status" >&5
19808 if (exit $ac_status) && test -s "$ac_outfile"; then
19809 # The compiler can only warn and ignore the option if not recognized
19810 # So say no if there are warnings other than the usual output.
19811 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19812 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19813 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19814 lt_prog_compiler_pic_works_CXX=yes
19820 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19821 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19823 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19824 case $lt_prog_compiler_pic_CXX in
19826 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19829 lt_prog_compiler_pic_CXX=
19830 lt_prog_compiler_can_build_shared_CXX=no
19835 # For platforms which do not support PIC, -DPIC is meaningless:
19837 lt_prog_compiler_pic_CXX=
19840 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19845 # Check to make sure the static flag actually works.
19847 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19848 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19849 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19850 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19851 echo $ECHO_N "(cached) $ECHO_C" >&6
19853 lt_prog_compiler_static_works_CXX=no
19854 save_LDFLAGS="$LDFLAGS"
19855 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19856 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19857 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19858 # The linker can only warn and ignore the option if not recognized
19859 # So say no if there are warnings
19860 if test -s conftest.err; then
19861 # Append any errors to the config.log.
19862 cat conftest.err 1>&5
19863 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19864 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19865 if diff conftest.exp conftest.er2 >/dev/null; then
19866 lt_prog_compiler_static_works_CXX=yes
19869 lt_prog_compiler_static_works_CXX=yes
19873 LDFLAGS="$save_LDFLAGS"
19876 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19877 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19879 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19882 lt_prog_compiler_static_CXX=
19886 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19887 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19888 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19889 echo $ECHO_N "(cached) $ECHO_C" >&6
19891 lt_cv_prog_compiler_c_o_CXX=no
19892 $rm -r conftest 2>/dev/null
19896 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19898 lt_compiler_flag="-o out/conftest2.$ac_objext"
19899 # Insert the option either (1) after the last *FLAGS variable, or
19900 # (2) before a word containing "conftest.", or (3) at the end.
19901 # Note that $ac_compile itself does not contain backslashes and begins
19902 # with a dollar sign (not a hyphen), so the echo should work correctly.
19903 lt_compile=`echo "$ac_compile" | $SED \
19904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19906 -e 's:$: $lt_compiler_flag:'`
19907 (eval echo "\"\$as_me:19907: $lt_compile\"" >&5)
19908 (eval "$lt_compile" 2>out/conftest.err)
19910 cat out/conftest.err >&5
19911 echo "$as_me:19911: \$? = $ac_status" >&5
19912 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19914 # The compiler can only warn and ignore the option if not recognized
19915 # So say no if there are warnings
19916 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19917 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19918 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19919 lt_cv_prog_compiler_c_o_CXX=yes
19924 # SGI C++ compiler will create directory out/ii_files/ for
19925 # template instantiation
19926 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19927 $rm out/* && rmdir out
19933 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19934 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19937 hard_links="nottested"
19938 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19939 # do not overwrite the value of need_locks provided by the user
19940 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19941 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19944 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19946 ln conftest.a conftest.b 2>&5 || hard_links=no
19947 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19948 { echo "$as_me:$LINENO: result: $hard_links" >&5
19949 echo "${ECHO_T}$hard_links" >&6; }
19950 if test "$hard_links" = no; then
19951 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19952 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19959 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19960 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19962 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19965 # If we're using GNU nm, then we don't want the "-C" option.
19966 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19967 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19968 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'
19970 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'
19974 export_symbols_cmds_CXX="$ltdll_cmds"
19977 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'
19980 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19984 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19985 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19986 test "$ld_shlibs_CXX" = no && can_build_shared=no
19989 # Do we need to explicitly link libc?
19991 case "x$archive_cmds_need_lc_CXX" in
19993 # Assume -lc should be added
19994 archive_cmds_need_lc_CXX=yes
19996 if test "$enable_shared" = yes && test "$GCC" = yes; then
19997 case $archive_cmds_CXX in
19999 # FIXME: we may have to deal with multi-command sequences.
20002 # Test whether the compiler implicitly links with -lc since on some
20003 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20004 # to ld, don't add -lc before -lgcc.
20005 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20006 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20008 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20011 (eval $ac_compile) 2>&5
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); } 2>conftest.err; then
20017 libobjs=conftest.$ac_objext
20019 wl=$lt_prog_compiler_wl_CXX
20020 pic_flag=$lt_prog_compiler_pic_CXX
20026 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20027 allow_undefined_flag_CXX=
20028 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20029 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); }
20034 archive_cmds_need_lc_CXX=no
20036 archive_cmds_need_lc_CXX=yes
20038 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20040 cat conftest.err 1>&5
20043 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20044 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20051 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20052 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20053 library_names_spec=
20054 libname_spec='lib$name'
20058 postuninstall_cmds=
20062 shlibpath_overrides_runpath=unknown
20064 dynamic_linker="$host_os ld.so"
20065 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20066 if test "$GCC" = yes; then
20067 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20068 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20069 # if the path contains ";" then we assume it to be the separator
20070 # otherwise default to the standard path separator (i.e. ":") - it is
20071 # assumed that no part of a normal pathname contains ";" but that should
20072 # okay in the real world where ";" in dirpaths is itself problematic.
20073 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20075 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20078 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20080 need_lib_prefix=unknown
20081 hardcode_into_libs=no
20083 # when you set need_version to no, make sure it does not cause -set_version
20084 # flags to be left without arguments
20085 need_version=unknown
20090 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20091 shlibpath_var=LIBPATH
20093 # AIX 3 has no versioning support, so we append a major version to the name.
20094 soname_spec='${libname}${release}${shared_ext}$major'
20101 hardcode_into_libs=yes
20102 if test "$host_cpu" = ia64; then
20103 # AIX 5 supports IA64
20104 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20105 shlibpath_var=LD_LIBRARY_PATH
20107 # With GCC up to 2.95.x, collect2 would create an import file
20108 # for dependence libraries. The import file would start with
20109 # the line `#! .'. This would cause the generated library to
20110 # depend on `.', always an invalid library. This was fixed in
20111 # development snapshots of GCC prior to 3.0.
20113 aix4 | aix4.[01] | aix4.[01].*)
20114 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20116 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20119 can_build_shared=no
20123 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20124 # soname into executable. Probably we can add versioning support to
20125 # collect2, so additional links can be useful in future.
20126 if test "$aix_use_runtimelinking" = yes; then
20127 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20128 # instead of lib<name>.a to let people know that these are not
20129 # typical AIX shared libraries.
20130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20132 # We preserve .a as extension for shared libraries through AIX4.2
20133 # and later when we are not doing run time linking.
20134 library_names_spec='${libname}${release}.a $libname.a'
20135 soname_spec='${libname}${release}${shared_ext}$major'
20137 shlibpath_var=LIBPATH
20142 library_names_spec='$libname.ixlibrary $libname.a'
20143 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20144 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'
20148 library_names_spec='${libname}${shared_ext}'
20149 dynamic_linker="$host_os ld.so"
20150 shlibpath_var=LIBRARY_PATH
20156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20157 soname_spec='${libname}${release}${shared_ext}$major'
20158 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20159 shlibpath_var=LD_LIBRARY_PATH
20160 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20161 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20162 # the default ld.so.conf also contains /usr/contrib/lib and
20163 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20164 # libtool to hard-code these into programs
20167 cygwin* | mingw* | pw32*)
20168 version_type=windows
20173 case $GCC,$host_os in
20174 yes,cygwin* | yes,mingw* | yes,pw32*)
20175 library_names_spec='$libname.dll.a'
20176 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20177 postinstall_cmds='base_file=`basename \${file}`~
20178 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20179 dldir=$destdir/`dirname \$dlpath`~
20180 test -d \$dldir || mkdir -p \$dldir~
20181 $install_prog $dir/$dlname \$dldir/$dlname~
20182 chmod a+x \$dldir/$dlname'
20183 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20184 dlpath=$dir/\$dldll~
20186 shlibpath_overrides_runpath=yes
20190 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20191 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20192 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20195 # MinGW DLLs use traditional 'lib' prefix
20196 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20197 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20198 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20199 # It is most probably a Windows format PATH printed by
20200 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20201 # path with ; separators, and with drive letters. We can handle the
20202 # drive letters (cygwin fileutils understands them), so leave them,
20203 # especially as we might pass files found there to a mingw objdump,
20204 # which wouldn't understand a cygwinified path. Ahh.
20205 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20207 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20211 # pw32 DLLs use 'pw' prefix rather than 'lib'
20212 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20218 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20221 dynamic_linker='Win32 ld.exe'
20222 # FIXME: first we should search . and the directory the executable is in
20226 darwin* | rhapsody*)
20227 dynamic_linker="$host_os dyld"
20228 version_type=darwin
20231 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20232 soname_spec='${libname}${release}${major}$shared_ext'
20233 shlibpath_overrides_runpath=yes
20234 shlibpath_var=DYLD_LIBRARY_PATH
20235 shrext_cmds='.dylib'
20236 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20237 if test "$GCC" = yes; then
20238 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"`
20240 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20242 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20250 soname_spec='${libname}${release}${shared_ext}$major'
20251 shlibpath_var=LD_LIBRARY_PATH
20262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20263 soname_spec='${libname}${release}${shared_ext}$major'
20264 shlibpath_var=LD_LIBRARY_PATH
20265 shlibpath_overrides_runpath=no
20266 hardcode_into_libs=yes
20267 dynamic_linker='GNU ld.so'
20270 freebsd* | dragonfly*)
20271 # DragonFly does not have aout. When/if they implement a new
20272 # versioning mechanism, adjust this.
20273 if test -x /usr/bin/objformat; then
20274 objformat=`/usr/bin/objformat`
20277 freebsd[123]*) objformat=aout ;;
20278 *) objformat=elf ;;
20281 version_type=freebsd-$objformat
20282 case $version_type in
20284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20289 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20293 shlibpath_var=LD_LIBRARY_PATH
20296 shlibpath_overrides_runpath=yes
20298 freebsd3.[01]* | freebsdelf3.[01]*)
20299 shlibpath_overrides_runpath=yes
20300 hardcode_into_libs=yes
20302 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20303 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20304 shlibpath_overrides_runpath=no
20305 hardcode_into_libs=yes
20307 freebsd*) # from 4.6 on
20308 shlibpath_overrides_runpath=yes
20309 hardcode_into_libs=yes
20318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20319 soname_spec='${libname}${release}${shared_ext}$major'
20320 shlibpath_var=LD_LIBRARY_PATH
20321 hardcode_into_libs=yes
20324 hpux9* | hpux10* | hpux11*)
20325 # Give a soname corresponding to the major version so that dld.sl refuses to
20326 # link against other versions.
20333 hardcode_into_libs=yes
20334 dynamic_linker="$host_os dld.so"
20335 shlibpath_var=LD_LIBRARY_PATH
20336 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20338 soname_spec='${libname}${release}${shared_ext}$major'
20339 if test "X$HPUX_IA64_MODE" = X32; then
20340 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20342 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20344 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20348 hardcode_into_libs=yes
20349 dynamic_linker="$host_os dld.sl"
20350 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20353 soname_spec='${libname}${release}${shared_ext}$major'
20354 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20359 dynamic_linker="$host_os dld.sl"
20360 shlibpath_var=SHLIB_PATH
20361 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20363 soname_spec='${libname}${release}${shared_ext}$major'
20366 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20367 postinstall_cmds='chmod 555 $lib'
20374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20375 soname_spec='${libname}${release}${shared_ext}$major'
20376 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20377 shlibpath_var=LD_LIBRARY_PATH
20378 shlibpath_overrides_runpath=no
20379 hardcode_into_libs=yes
20382 irix5* | irix6* | nonstopux*)
20384 nonstopux*) version_type=nonstopux ;;
20386 if test "$lt_cv_prog_gnu_ld" = yes; then
20394 soname_spec='${libname}${release}${shared_ext}$major'
20395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20397 irix5* | nonstopux*)
20398 libsuff= shlibsuff=
20401 case $LD in # libtool.m4 will add one of these switches to LD
20402 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20403 libsuff= shlibsuff= libmagic=32-bit;;
20404 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20405 libsuff=32 shlibsuff=N32 libmagic=N32;;
20406 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20407 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20408 *) libsuff= shlibsuff= libmagic=never-match;;
20412 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20413 shlibpath_overrides_runpath=no
20414 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20415 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20416 hardcode_into_libs=yes
20419 # No shared lib support for Linux oldld, aout, or coff.
20420 linux*oldld* | linux*aout* | linux*coff*)
20424 # This must be Linux ELF.
20429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20430 soname_spec='${libname}${release}${shared_ext}$major'
20431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20432 shlibpath_var=LD_LIBRARY_PATH
20433 shlibpath_overrides_runpath=no
20434 # This implies no fast_install, which is unacceptable.
20435 # Some rework will be needed to allow for fast_install
20436 # before this can be enabled.
20437 hardcode_into_libs=yes
20439 # Append ld.so.conf contents to the search path
20440 if test -f /etc/ld.so.conf; then
20441 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' ' '`
20442 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20445 # We used to test for /lib/ld.so.1 and disable shared libraries on
20446 # powerpc, because MkLinux only supported shared libraries with the
20447 # GNU dynamic linker. Since this was broken with cross compilers,
20448 # most powerpc-linux boxes support dynamic linking these days and
20449 # people can always --disable-shared, the test was removed, and we
20450 # assume the GNU/Linux dynamic linker is in use.
20451 dynamic_linker='GNU/Linux ld.so'
20458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20459 soname_spec='${libname}${release}${shared_ext}$major'
20460 shlibpath_var=LD_LIBRARY_PATH
20461 shlibpath_overrides_runpath=no
20462 hardcode_into_libs=yes
20463 dynamic_linker='GNU ld.so'
20470 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20473 dynamic_linker='NetBSD (a.out) ld.so'
20475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20476 soname_spec='${libname}${release}${shared_ext}$major'
20477 dynamic_linker='NetBSD ld.elf_so'
20479 shlibpath_var=LD_LIBRARY_PATH
20480 shlibpath_overrides_runpath=yes
20481 hardcode_into_libs=yes
20486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20487 shlibpath_var=LD_LIBRARY_PATH
20488 shlibpath_overrides_runpath=yes
20495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20496 soname_spec='${libname}${release}${shared_ext}$major'
20497 shlibpath_var=LD_LIBRARY_PATH
20498 shlibpath_overrides_runpath=yes
20503 sys_lib_dlsearch_path_spec="/usr/lib"
20505 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20507 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20508 *) need_version=no ;;
20510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20512 shlibpath_var=LD_LIBRARY_PATH
20513 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20515 openbsd2.[89] | openbsd2.[89].*)
20516 shlibpath_overrides_runpath=no
20519 shlibpath_overrides_runpath=yes
20523 shlibpath_overrides_runpath=yes
20528 libname_spec='$name'
20531 library_names_spec='$libname${shared_ext} $libname.a'
20532 dynamic_linker='OS/2 ld.exe'
20533 shlibpath_var=LIBPATH
20536 osf3* | osf4* | osf5*)
20540 soname_spec='${libname}${release}${shared_ext}$major'
20541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20542 shlibpath_var=LD_LIBRARY_PATH
20543 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20544 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20552 soname_spec='${libname}${release}${shared_ext}$major'
20553 shlibpath_var=LD_LIBRARY_PATH
20554 shlibpath_overrides_runpath=yes
20555 hardcode_into_libs=yes
20556 # ldd complains unless libraries are executable
20557 postinstall_cmds='chmod +x $lib'
20562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20563 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20564 shlibpath_var=LD_LIBRARY_PATH
20565 shlibpath_overrides_runpath=yes
20566 if test "$with_gnu_ld" = yes; then
20574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20575 soname_spec='${libname}${release}${shared_ext}$major'
20576 shlibpath_var=LD_LIBRARY_PATH
20577 case $host_vendor in
20579 shlibpath_overrides_runpath=no
20581 export_dynamic_flag_spec='${wl}-Blargedynsym'
20582 runpath_var=LD_RUN_PATH
20590 shlibpath_overrides_runpath=no
20591 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20597 if test -d /usr/nec ;then
20599 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20600 soname_spec='$libname${shared_ext}.$major'
20601 shlibpath_var=LD_LIBRARY_PATH
20605 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20606 version_type=freebsd-elf
20609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20610 soname_spec='${libname}${release}${shared_ext}$major'
20611 shlibpath_var=LD_LIBRARY_PATH
20612 hardcode_into_libs=yes
20613 if test "$with_gnu_ld" = yes; then
20614 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20615 shlibpath_overrides_runpath=no
20617 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20618 shlibpath_overrides_runpath=yes
20621 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20625 sys_lib_dlsearch_path_spec='/usr/lib'
20630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20631 soname_spec='${libname}${release}${shared_ext}$major'
20632 shlibpath_var=LD_LIBRARY_PATH
20639 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20640 echo "${ECHO_T}$dynamic_linker" >&6; }
20641 test "$dynamic_linker" = no && can_build_shared=no
20643 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20644 if test "$GCC" = yes; then
20645 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20648 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20649 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20650 hardcode_action_CXX=
20651 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20652 test -n "$runpath_var_CXX" || \
20653 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20655 # We can hardcode non-existant directories.
20656 if test "$hardcode_direct_CXX" != no &&
20657 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20658 # have to relink, otherwise we might link with an installed library
20659 # when we should be linking with a yet-to-be-installed one
20660 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20661 test "$hardcode_minus_L_CXX" != no; then
20662 # Linking always hardcodes the temporary library directory.
20663 hardcode_action_CXX=relink
20665 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20666 hardcode_action_CXX=immediate
20669 # We cannot hardcode anything, or else we can only hardcode existing
20671 hardcode_action_CXX=unsupported
20673 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20674 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20676 if test "$hardcode_action_CXX" = relink; then
20677 # Fast installation is not supported
20678 enable_fast_install=no
20679 elif test "$shlibpath_overrides_runpath" = yes ||
20680 test "$enable_shared" = no; then
20681 # Fast installation is not necessary
20682 enable_fast_install=needless
20686 # The else clause should only fire when bootstrapping the
20687 # libtool distribution, otherwise you forgot to ship ltmain.sh
20688 # with your package, and you will get complaints that there are
20689 # no rules to generate ltmain.sh.
20690 if test -f "$ltmain"; then
20691 # See if we are running on zsh, and set the options which allow our commands through
20692 # without removal of \ escapes.
20693 if test -n "${ZSH_VERSION+set}" ; then
20694 setopt NO_GLOB_SUBST
20696 # Now quote all the things that may contain metacharacters while being
20697 # careful not to overquote the AC_SUBSTed values. We take copies of the
20698 # variables and quote the copies for generation of the libtool script.
20699 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20701 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20702 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20703 deplibs_check_method reload_flag reload_cmds need_locks \
20704 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20705 lt_cv_sys_global_symbol_to_c_name_address \
20706 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20707 old_postinstall_cmds old_postuninstall_cmds \
20711 lt_prog_compiler_wl_CXX \
20712 lt_prog_compiler_pic_CXX \
20713 lt_prog_compiler_static_CXX \
20714 lt_prog_compiler_no_builtin_flag_CXX \
20715 export_dynamic_flag_spec_CXX \
20716 thread_safe_flag_spec_CXX \
20717 whole_archive_flag_spec_CXX \
20718 enable_shared_with_static_runtimes_CXX \
20719 old_archive_cmds_CXX \
20720 old_archive_from_new_cmds_CXX \
20721 predep_objects_CXX \
20722 postdep_objects_CXX \
20725 compiler_lib_search_path_CXX \
20727 archive_expsym_cmds_CXX \
20728 postinstall_cmds_CXX \
20729 postuninstall_cmds_CXX \
20730 old_archive_from_expsyms_cmds_CXX \
20731 allow_undefined_flag_CXX \
20732 no_undefined_flag_CXX \
20733 export_symbols_cmds_CXX \
20734 hardcode_libdir_flag_spec_CXX \
20735 hardcode_libdir_flag_spec_ld_CXX \
20736 hardcode_libdir_separator_CXX \
20737 hardcode_automatic_CXX \
20739 module_expsym_cmds_CXX \
20740 lt_cv_prog_compiler_c_o_CXX \
20741 exclude_expsyms_CXX \
20742 include_expsyms_CXX; do
20745 old_archive_cmds_CXX | \
20746 old_archive_from_new_cmds_CXX | \
20747 archive_cmds_CXX | \
20748 archive_expsym_cmds_CXX | \
20749 module_cmds_CXX | \
20750 module_expsym_cmds_CXX | \
20751 old_archive_from_expsyms_cmds_CXX | \
20752 export_symbols_cmds_CXX | \
20753 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20754 postinstall_cmds | postuninstall_cmds | \
20755 old_postinstall_cmds | old_postuninstall_cmds | \
20756 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20757 # Double-quote double-evaled strings.
20758 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20761 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20767 *'\$0 --fallback-echo"')
20768 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20774 cat <<__EOF__ >> "$cfgfile"
20775 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20777 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20779 # Shell to use when invoking shell scripts.
20782 # Whether or not to build shared libraries.
20783 build_libtool_libs=$enable_shared
20785 # Whether or not to build static libraries.
20786 build_old_libs=$enable_static
20788 # Whether or not to add -lc for building shared libraries.
20789 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20791 # Whether or not to disallow shared libs when runtime libs are static
20792 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20794 # Whether or not to optimize for fast installation.
20795 fast_install=$enable_fast_install
20798 host_alias=$host_alias
20802 # The build system.
20803 build_alias=$build_alias
20807 # An echo program that does not interpret backslashes.
20812 AR_FLAGS=$lt_AR_FLAGS
20817 # LTCC compiler flags.
20818 LTCFLAGS=$lt_LTCFLAGS
20820 # A language-specific compiler.
20821 CC=$lt_compiler_CXX
20823 # Is the compiler the GNU C compiler?
20829 # The linker used to build libraries.
20832 # Whether we need hard or soft links.
20835 # A BSD-compatible nm program.
20838 # A symbol stripping program
20841 # Used to examine libraries when file_magic_cmd begins "file"
20842 MAGIC_CMD=$MAGIC_CMD
20844 # Used on cygwin: DLL creation program.
20847 # Used on cygwin: object dumper.
20850 # Used on cygwin: assembler.
20853 # The name of the directory that contains temporary libtool files.
20856 # How to create reloadable object files.
20857 reload_flag=$lt_reload_flag
20858 reload_cmds=$lt_reload_cmds
20860 # How to pass a linker flag through the compiler.
20861 wl=$lt_lt_prog_compiler_wl_CXX
20863 # Object file suffix (normally "o").
20864 objext="$ac_objext"
20866 # Old archive suffix (normally "a").
20869 # Shared library suffix (normally ".so").
20870 shrext_cmds='$shrext_cmds'
20872 # Executable file suffix (normally "").
20875 # Additional compiler flags for building library objects.
20876 pic_flag=$lt_lt_prog_compiler_pic_CXX
20879 # What is the maximum length of a command?
20880 max_cmd_len=$lt_cv_sys_max_cmd_len
20882 # Does compiler simultaneously support -c and -o options?
20883 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20885 # Must we lock files when doing compilation?
20886 need_locks=$lt_need_locks
20888 # Do we need the lib prefix for modules?
20889 need_lib_prefix=$need_lib_prefix
20891 # Do we need a version for libraries?
20892 need_version=$need_version
20894 # Whether dlopen is supported.
20895 dlopen_support=$enable_dlopen
20897 # Whether dlopen of programs is supported.
20898 dlopen_self=$enable_dlopen_self
20900 # Whether dlopen of statically linked programs is supported.
20901 dlopen_self_static=$enable_dlopen_self_static
20903 # Compiler flag to prevent dynamic linking.
20904 link_static_flag=$lt_lt_prog_compiler_static_CXX
20906 # Compiler flag to turn off builtin functions.
20907 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20909 # Compiler flag to allow reflexive dlopens.
20910 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20912 # Compiler flag to generate shared objects directly from archives.
20913 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20915 # Compiler flag to generate thread-safe objects.
20916 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20918 # Library versioning type.
20919 version_type=$version_type
20921 # Format of library name prefix.
20922 libname_spec=$lt_libname_spec
20924 # List of archive names. First name is the real one, the rest are links.
20925 # The last name is the one that the linker finds with -lNAME.
20926 library_names_spec=$lt_library_names_spec
20928 # The coded name of the library, if different from the real name.
20929 soname_spec=$lt_soname_spec
20931 # Commands used to build and install an old-style archive.
20933 old_archive_cmds=$lt_old_archive_cmds_CXX
20934 old_postinstall_cmds=$lt_old_postinstall_cmds
20935 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20937 # Create an old-style archive from a shared archive.
20938 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20940 # Create a temporary old-style archive to link instead of a shared archive.
20941 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20943 # Commands used to build and install a shared archive.
20944 archive_cmds=$lt_archive_cmds_CXX
20945 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20946 postinstall_cmds=$lt_postinstall_cmds
20947 postuninstall_cmds=$lt_postuninstall_cmds
20949 # Commands used to build a loadable module (assumed same as above if empty)
20950 module_cmds=$lt_module_cmds_CXX
20951 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20953 # Commands to strip libraries.
20954 old_striplib=$lt_old_striplib
20955 striplib=$lt_striplib
20957 # Dependencies to place before the objects being linked to create a
20959 predep_objects=$lt_predep_objects_CXX
20961 # Dependencies to place after the objects being linked to create a
20963 postdep_objects=$lt_postdep_objects_CXX
20965 # Dependencies to place before the objects being linked to create a
20967 predeps=$lt_predeps_CXX
20969 # Dependencies to place after the objects being linked to create a
20971 postdeps=$lt_postdeps_CXX
20973 # The library search path used internally by the compiler when linking
20974 # a shared library.
20975 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20977 # Method to check whether dependent libraries are shared objects.
20978 deplibs_check_method=$lt_deplibs_check_method
20980 # Command to use when deplibs_check_method == file_magic.
20981 file_magic_cmd=$lt_file_magic_cmd
20983 # Flag that allows shared libraries with undefined symbols to be built.
20984 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20986 # Flag that forces no undefined symbols.
20987 no_undefined_flag=$lt_no_undefined_flag_CXX
20989 # Commands used to finish a libtool library installation in a directory.
20990 finish_cmds=$lt_finish_cmds
20992 # Same as above, but a single script fragment to be evaled but not shown.
20993 finish_eval=$lt_finish_eval
20995 # Take the output of nm and produce a listing of raw symbols and C names.
20996 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20998 # Transform the output of nm in a proper C declaration
20999 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21001 # Transform the output of nm in a C name address pair
21002 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21004 # This is the shared library runtime path variable.
21005 runpath_var=$runpath_var
21007 # This is the shared library path variable.
21008 shlibpath_var=$shlibpath_var
21010 # Is shlibpath searched before the hard-coded library search path?
21011 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21013 # How to hardcode a shared library path into an executable.
21014 hardcode_action=$hardcode_action_CXX
21016 # Whether we should hardcode library paths into libraries.
21017 hardcode_into_libs=$hardcode_into_libs
21019 # Flag to hardcode \$libdir into a binary during linking.
21020 # This must work even if \$libdir does not exist.
21021 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21023 # If ld is used when linking, flag to hardcode \$libdir into
21024 # a binary during linking. This must work even if \$libdir does
21026 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21028 # Whether we need a single -rpath flag with a separated argument.
21029 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21031 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21032 # resulting binary.
21033 hardcode_direct=$hardcode_direct_CXX
21035 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21036 # resulting binary.
21037 hardcode_minus_L=$hardcode_minus_L_CXX
21039 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21040 # the resulting binary.
21041 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21043 # Set to yes if building a shared library automatically hardcodes DIR into the library
21044 # and all subsequent libraries and executables linked against it.
21045 hardcode_automatic=$hardcode_automatic_CXX
21047 # Variables whose values should be saved in libtool wrapper scripts and
21048 # restored at relink time.
21049 variables_saved_for_relink="$variables_saved_for_relink"
21051 # Whether libtool must link a program against all its dependency libraries.
21052 link_all_deplibs=$link_all_deplibs_CXX
21054 # Compile-time system search path for libraries
21055 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21057 # Run-time system search path for libraries
21058 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21060 # Fix the shell variable \$srcfile for the compiler.
21061 fix_srcfile_path="$fix_srcfile_path_CXX"
21063 # Set to yes if exported symbols are required.
21064 always_export_symbols=$always_export_symbols_CXX
21066 # The commands to list exported symbols.
21067 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21069 # The commands to extract the exported symbol list from a shared archive.
21070 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21072 # Symbols that should not be listed in the preloaded symbols.
21073 exclude_expsyms=$lt_exclude_expsyms_CXX
21075 # Symbols that must always be exported.
21076 include_expsyms=$lt_include_expsyms_CXX
21078 # ### END LIBTOOL TAG CONFIG: $tagname
21084 # If there is no Makefile yet, we rely on a make rule to execute
21085 # `config.status --recheck' to rerun these tests and create the
21086 # libtool script then.
21087 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21088 if test -f "$ltmain_in"; then
21089 test -f Makefile && make "$ltmain"
21095 ac_cpp='$CPP $CPPFLAGS'
21096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21104 with_gnu_ldcxx=$with_gnu_ld
21105 with_gnu_ld=$lt_save_with_gnu_ld
21106 lt_cv_path_LDCXX=$lt_cv_path_LD
21107 lt_cv_path_LD=$lt_save_path_LD
21108 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21109 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21117 if test -n "$F77" && test "X$F77" != "Xno"; then
21120 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21121 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21122 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21125 archive_cmds_need_lc_F77=no
21126 allow_undefined_flag_F77=
21127 always_export_symbols_F77=no
21128 archive_expsym_cmds_F77=
21129 export_dynamic_flag_spec_F77=
21130 hardcode_direct_F77=no
21131 hardcode_libdir_flag_spec_F77=
21132 hardcode_libdir_flag_spec_ld_F77=
21133 hardcode_libdir_separator_F77=
21134 hardcode_minus_L_F77=no
21135 hardcode_automatic_F77=no
21137 module_expsym_cmds_F77=
21138 link_all_deplibs_F77=unknown
21139 old_archive_cmds_F77=$old_archive_cmds
21140 no_undefined_flag_F77=
21141 whole_archive_flag_spec_F77=
21142 enable_shared_with_static_runtimes_F77=no
21144 # Source file extension for f77 test sources.
21147 # Object file extension for compiled f77 test sources.
21151 # Code to be used in simple compile tests
21152 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21154 # Code to be used in simple link tests
21155 lt_simple_link_test_code=" program t\n end\n"
21157 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21159 # If no C compiler was specified, use CC.
21162 # If no C compiler flags were specified, use CFLAGS.
21163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21165 # Allow CC to be a program name with arguments.
21169 # save warnings/boilerplate of simple test code
21170 ac_outfile=conftest.$ac_objext
21171 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21172 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21173 _lt_compiler_boilerplate=`cat conftest.err`
21176 ac_outfile=conftest.$ac_objext
21177 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21178 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21179 _lt_linker_boilerplate=`cat conftest.err`
21183 # Allow CC to be a program name with arguments.
21188 for cc_temp in $compiler""; do
21190 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21191 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21196 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21199 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21200 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21201 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21202 echo "${ECHO_T}$can_build_shared" >&6; }
21204 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21205 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21206 test "$can_build_shared" = "no" && enable_shared=no
21208 # On AIX, shared libraries and static libraries use the same namespace, and
21209 # are all built from PIC.
21212 test "$enable_shared" = yes && enable_static=no
21213 if test -n "$RANLIB"; then
21214 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21215 postinstall_cmds='$RANLIB $lib'
21219 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21220 test "$enable_shared" = yes && enable_static=no
21224 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21225 echo "${ECHO_T}$enable_shared" >&6; }
21227 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21228 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21229 # Make sure either enable_shared or enable_static is yes.
21230 test "$enable_shared" = yes || enable_static=yes
21231 { echo "$as_me:$LINENO: result: $enable_static" >&5
21232 echo "${ECHO_T}$enable_static" >&6; }
21237 lt_prog_compiler_wl_F77=
21238 lt_prog_compiler_pic_F77=
21239 lt_prog_compiler_static_F77=
21241 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21242 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21244 if test "$GCC" = yes; then
21245 lt_prog_compiler_wl_F77='-Wl,'
21246 lt_prog_compiler_static_F77='-static'
21250 # All AIX code is PIC.
21251 if test "$host_cpu" = ia64; then
21252 # AIX 5 now supports IA64 processor
21253 lt_prog_compiler_static_F77='-Bstatic'
21258 # FIXME: we need at least 68020 code to build shared libraries, but
21259 # adding the `-m68020' flag to GCC prevents building anything better,
21261 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21264 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21265 # PIC is the default for these OSes.
21268 mingw* | pw32* | os2*)
21269 # This hack is so that the source file can tell whether it is being
21270 # built for inclusion in a dll (and should export symbols for example).
21271 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21274 darwin* | rhapsody*)
21275 # PIC is the default on this platform
21276 # Common symbols not allowed in MH_DYLIB files
21277 lt_prog_compiler_pic_F77='-fno-common'
21281 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21282 # Instead, we relocate shared libraries at runtime.
21286 # Just because we use GCC doesn't mean we suddenly get shared libraries
21287 # on systems that don't support them.
21288 lt_prog_compiler_can_build_shared_F77=no
21293 if test -d /usr/nec; then
21294 lt_prog_compiler_pic_F77=-Kconform_pic
21299 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21300 # not for PA HP-UX.
21306 lt_prog_compiler_pic_F77='-fPIC'
21312 lt_prog_compiler_pic_F77='-fPIC'
21316 # PORTME Check for flag to pass linker flags through the system compiler.
21319 lt_prog_compiler_wl_F77='-Wl,'
21320 if test "$host_cpu" = ia64; then
21321 # AIX 5 now supports IA64 processor
21322 lt_prog_compiler_static_F77='-Bstatic'
21324 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21328 # PIC is the default on this platform
21329 # Common symbols not allowed in MH_DYLIB files
21330 case $cc_basename in
21332 lt_prog_compiler_pic_F77='-qnocommon'
21333 lt_prog_compiler_wl_F77='-Wl,'
21338 mingw* | pw32* | os2*)
21339 # This hack is so that the source file can tell whether it is being
21340 # built for inclusion in a dll (and should export symbols for example).
21341 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21344 hpux9* | hpux10* | hpux11*)
21345 lt_prog_compiler_wl_F77='-Wl,'
21346 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21347 # not for PA HP-UX.
21353 lt_prog_compiler_pic_F77='+Z'
21356 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21357 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21360 irix5* | irix6* | nonstopux*)
21361 lt_prog_compiler_wl_F77='-Wl,'
21362 # PIC (with -KPIC) is the default.
21363 lt_prog_compiler_static_F77='-non_shared'
21367 lt_prog_compiler_pic_F77='-KPIC'
21368 lt_prog_compiler_static_F77='-Bstatic'
21372 case $cc_basename in
21374 lt_prog_compiler_wl_F77='-Wl,'
21375 lt_prog_compiler_pic_F77='-KPIC'
21376 lt_prog_compiler_static_F77='-static'
21378 pgcc* | pgf77* | pgf90* | pgf95*)
21379 # Portland Group compilers (*not* the Pentium gcc compiler,
21380 # which looks to be a dead project)
21381 lt_prog_compiler_wl_F77='-Wl,'
21382 lt_prog_compiler_pic_F77='-fpic'
21383 lt_prog_compiler_static_F77='-Bstatic'
21386 lt_prog_compiler_wl_F77='-Wl,'
21387 # All Alpha code is PIC.
21388 lt_prog_compiler_static_F77='-non_shared'
21393 osf3* | osf4* | osf5*)
21394 lt_prog_compiler_wl_F77='-Wl,'
21395 # All OSF/1 code is PIC.
21396 lt_prog_compiler_static_F77='-non_shared'
21400 lt_prog_compiler_pic_F77='-KPIC'
21401 lt_prog_compiler_static_F77='-Bstatic'
21402 case $cc_basename in
21403 f77* | f90* | f95*)
21404 lt_prog_compiler_wl_F77='-Qoption ld ';;
21406 lt_prog_compiler_wl_F77='-Wl,';;
21411 lt_prog_compiler_wl_F77='-Qoption ld '
21412 lt_prog_compiler_pic_F77='-PIC'
21413 lt_prog_compiler_static_F77='-Bstatic'
21416 sysv4 | sysv4.2uw2* | sysv4.3*)
21417 lt_prog_compiler_wl_F77='-Wl,'
21418 lt_prog_compiler_pic_F77='-KPIC'
21419 lt_prog_compiler_static_F77='-Bstatic'
21423 if test -d /usr/nec ;then
21424 lt_prog_compiler_pic_F77='-Kconform_pic'
21425 lt_prog_compiler_static_F77='-Bstatic'
21429 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21430 lt_prog_compiler_wl_F77='-Wl,'
21431 lt_prog_compiler_pic_F77='-KPIC'
21432 lt_prog_compiler_static_F77='-Bstatic'
21436 lt_prog_compiler_wl_F77='-Wl,'
21437 lt_prog_compiler_can_build_shared_F77=no
21441 lt_prog_compiler_pic_F77='-pic'
21442 lt_prog_compiler_static_F77='-Bstatic'
21446 lt_prog_compiler_can_build_shared_F77=no
21451 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21452 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21455 # Check to make sure the PIC flag actually works.
21457 if test -n "$lt_prog_compiler_pic_F77"; then
21459 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21460 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21461 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21462 echo $ECHO_N "(cached) $ECHO_C" >&6
21464 lt_prog_compiler_pic_works_F77=no
21465 ac_outfile=conftest.$ac_objext
21466 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21467 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21468 # Insert the option either (1) after the last *FLAGS variable, or
21469 # (2) before a word containing "conftest.", or (3) at the end.
21470 # Note that $ac_compile itself does not contain backslashes and begins
21471 # with a dollar sign (not a hyphen), so the echo should work correctly.
21472 # The option is referenced via a variable to avoid confusing sed.
21473 lt_compile=`echo "$ac_compile" | $SED \
21474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21475 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21476 -e 's:$: $lt_compiler_flag:'`
21477 (eval echo "\"\$as_me:21477: $lt_compile\"" >&5)
21478 (eval "$lt_compile" 2>conftest.err)
21480 cat conftest.err >&5
21481 echo "$as_me:21481: \$? = $ac_status" >&5
21482 if (exit $ac_status) && test -s "$ac_outfile"; then
21483 # The compiler can only warn and ignore the option if not recognized
21484 # So say no if there are warnings other than the usual output.
21485 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21487 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21488 lt_prog_compiler_pic_works_F77=yes
21494 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21495 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21497 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21498 case $lt_prog_compiler_pic_F77 in
21500 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21503 lt_prog_compiler_pic_F77=
21504 lt_prog_compiler_can_build_shared_F77=no
21509 # For platforms which do not support PIC, -DPIC is meaningless:
21511 lt_prog_compiler_pic_F77=
21514 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21519 # Check to make sure the static flag actually works.
21521 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21522 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21523 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21524 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21525 echo $ECHO_N "(cached) $ECHO_C" >&6
21527 lt_prog_compiler_static_works_F77=no
21528 save_LDFLAGS="$LDFLAGS"
21529 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21530 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21531 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21532 # The linker can only warn and ignore the option if not recognized
21533 # So say no if there are warnings
21534 if test -s conftest.err; then
21535 # Append any errors to the config.log.
21536 cat conftest.err 1>&5
21537 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21538 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21539 if diff conftest.exp conftest.er2 >/dev/null; then
21540 lt_prog_compiler_static_works_F77=yes
21543 lt_prog_compiler_static_works_F77=yes
21547 LDFLAGS="$save_LDFLAGS"
21550 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21551 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21553 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21556 lt_prog_compiler_static_F77=
21560 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21561 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21562 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21563 echo $ECHO_N "(cached) $ECHO_C" >&6
21565 lt_cv_prog_compiler_c_o_F77=no
21566 $rm -r conftest 2>/dev/null
21570 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21572 lt_compiler_flag="-o out/conftest2.$ac_objext"
21573 # Insert the option either (1) after the last *FLAGS variable, or
21574 # (2) before a word containing "conftest.", or (3) at the end.
21575 # Note that $ac_compile itself does not contain backslashes and begins
21576 # with a dollar sign (not a hyphen), so the echo should work correctly.
21577 lt_compile=`echo "$ac_compile" | $SED \
21578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21580 -e 's:$: $lt_compiler_flag:'`
21581 (eval echo "\"\$as_me:21581: $lt_compile\"" >&5)
21582 (eval "$lt_compile" 2>out/conftest.err)
21584 cat out/conftest.err >&5
21585 echo "$as_me:21585: \$? = $ac_status" >&5
21586 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21588 # The compiler can only warn and ignore the option if not recognized
21589 # So say no if there are warnings
21590 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21591 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21592 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21593 lt_cv_prog_compiler_c_o_F77=yes
21598 # SGI C++ compiler will create directory out/ii_files/ for
21599 # template instantiation
21600 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21601 $rm out/* && rmdir out
21607 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21608 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21611 hard_links="nottested"
21612 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21613 # do not overwrite the value of need_locks provided by the user
21614 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21615 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21618 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21620 ln conftest.a conftest.b 2>&5 || hard_links=no
21621 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21622 { echo "$as_me:$LINENO: result: $hard_links" >&5
21623 echo "${ECHO_T}$hard_links" >&6; }
21624 if test "$hard_links" = no; then
21625 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21626 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21633 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21634 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21637 allow_undefined_flag_F77=
21638 enable_shared_with_static_runtimes_F77=no
21640 archive_expsym_cmds_F77=
21641 old_archive_From_new_cmds_F77=
21642 old_archive_from_expsyms_cmds_F77=
21643 export_dynamic_flag_spec_F77=
21644 whole_archive_flag_spec_F77=
21645 thread_safe_flag_spec_F77=
21646 hardcode_libdir_flag_spec_F77=
21647 hardcode_libdir_flag_spec_ld_F77=
21648 hardcode_libdir_separator_F77=
21649 hardcode_direct_F77=no
21650 hardcode_minus_L_F77=no
21651 hardcode_shlibpath_var_F77=unsupported
21652 link_all_deplibs_F77=unknown
21653 hardcode_automatic_F77=no
21655 module_expsym_cmds_F77=
21656 always_export_symbols_F77=no
21657 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21658 # include_expsyms should be a list of space-separated symbols to be *always*
21659 # included in the symbol list
21660 include_expsyms_F77=
21661 # exclude_expsyms can be an extended regexp of symbols to exclude
21662 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21663 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21664 # as well as any symbol that contains `d'.
21665 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21666 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21667 # platforms (ab)use it in PIC code, but their linkers get confused if
21668 # the symbol is explicitly referenced. Since portable code cannot
21669 # rely on this symbol name, it's probably fine to never include it in
21670 # preloaded symbol tables.
21671 extract_expsyms_cmds=
21672 # Just being paranoid about ensuring that cc_basename is set.
21673 for cc_temp in $compiler""; do
21675 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21676 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21681 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21684 cygwin* | mingw* | pw32*)
21685 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21686 # When not using gcc, we currently assume that we are using
21687 # Microsoft Visual C++.
21688 if test "$GCC" != yes; then
21693 # we just hope/assume this is gcc and not c89 (= MSVC++)
21702 if test "$with_gnu_ld" = yes; then
21703 # If archive_cmds runs LD, not CC, wlarc should be empty
21706 # Set some defaults for GNU ld with shared library support. These
21707 # are reset later if shared libraries are not supported. Putting them
21708 # here allows them to be overridden if necessary.
21709 runpath_var=LD_RUN_PATH
21710 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21711 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21712 # ancient GNU ld didn't support --whole-archive et. al.
21713 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21714 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21716 whole_archive_flag_spec_F77=
21718 supports_anon_versioning=no
21719 case `$LD -v 2>/dev/null` in
21720 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21721 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21722 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21723 *\ 2.11.*) ;; # other 2.11 versions
21724 *) supports_anon_versioning=yes ;;
21727 # See if GNU ld supports shared libraries.
21729 aix3* | aix4* | aix5*)
21730 # On AIX/PPC, the GNU linker is very broken
21731 if test "$host_cpu" != ia64; then
21735 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21736 *** to be unable to reliably create shared libraries on AIX.
21737 *** Therefore, libtool is disabling shared libraries support. If you
21738 *** really care for shared libraries, you may want to modify your PATH
21739 *** so that a non-GNU linker is found, and then restart.
21746 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)'
21747 hardcode_libdir_flag_spec_F77='-L$libdir'
21748 hardcode_minus_L_F77=yes
21750 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21751 # that the semantics of dynamic libraries on AmigaOS, at least up
21752 # to version 4, is to share data among multiple programs linked
21753 # with the same dynamic library. Since this doesn't match the
21754 # behavior of shared libraries on other platforms, we can't use
21760 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21761 allow_undefined_flag_F77=unsupported
21762 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21763 # support --undefined. This deserves some investigation. FIXME
21764 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21770 cygwin* | mingw* | pw32*)
21771 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21772 # as there is no search path for DLLs.
21773 hardcode_libdir_flag_spec_F77='-L$libdir'
21774 allow_undefined_flag_F77=unsupported
21775 always_export_symbols_F77=no
21776 enable_shared_with_static_runtimes_F77=yes
21777 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21779 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21780 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21781 # If the export-symbols file already is a .def file (1st line
21782 # is EXPORTS), use it as is; otherwise, prepend...
21783 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21784 cp $export_symbols $output_objdir/$soname.def;
21786 echo EXPORTS > $output_objdir/$soname.def;
21787 cat $export_symbols >> $output_objdir/$soname.def;
21789 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21796 hardcode_direct_F77=no
21797 hardcode_shlibpath_var_F77=no
21798 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21799 export_dynamic_flag_spec_F77='${wl}-E'
21800 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21801 # Instead, shared libraries are loaded at an image base (0x10000000 by
21802 # default) and relocated if they conflict, which is a slow very memory
21803 # consuming and fragmenting process. To avoid this, we pick a random,
21804 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21805 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21806 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'
21807 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'
21811 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21813 case $cc_basename,$host_cpu in
21814 pgcc*) # Portland Group C compiler
21815 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'
21816 tmp_addflag=' $pic_flag'
21818 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21819 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'
21820 tmp_addflag=' $pic_flag -Mnomain' ;;
21821 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21822 tmp_addflag=' -i_dynamic' ;;
21823 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21824 tmp_addflag=' -i_dynamic -nofor_main' ;;
21825 ifc* | ifort*) # Intel Fortran compiler
21826 tmp_addflag=' -nofor_main' ;;
21828 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21830 if test $supports_anon_versioning = yes; then
21831 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21832 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21833 $echo "local: *; };" >> $output_objdir/$libname.ver~
21834 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21842 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21843 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21846 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21847 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21852 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21856 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21857 *** create shared libraries on Solaris systems. Therefore, libtool
21858 *** is disabling shared libraries support. We urge you to upgrade GNU
21859 *** binutils to release 2.9.1 or newer. Another option is to modify
21860 *** your PATH or compiler configuration so that the native linker is
21861 *** used, and then restart.
21864 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21865 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21866 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21873 case `$LD -v 2>&1` in
21874 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21878 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21879 *** reliably create shared libraries on SCO systems. Therefore, libtool
21880 *** is disabling shared libraries support. We urge you to upgrade GNU
21881 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21882 *** your PATH or compiler configuration so that the native linker is
21883 *** used, and then restart.
21888 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21889 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21890 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21891 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21900 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21902 hardcode_direct_F77=yes
21903 hardcode_shlibpath_var_F77=no
21907 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21908 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21909 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21916 if test "$ld_shlibs_F77" = no; then
21918 hardcode_libdir_flag_spec_F77=
21919 export_dynamic_flag_spec_F77=
21920 whole_archive_flag_spec_F77=
21923 # PORTME fill in a description of your system's linker (not GNU ld)
21926 allow_undefined_flag_F77=unsupported
21927 always_export_symbols_F77=yes
21928 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'
21929 # Note: this linker hardcodes the directories in LIBPATH if there
21930 # are no directories specified by -L.
21931 hardcode_minus_L_F77=yes
21932 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21933 # Neither direct hardcoding nor static linking is supported with a
21935 hardcode_direct_F77=unsupported
21940 if test "$host_cpu" = ia64; then
21941 # On IA64, the linker does run time linking by default, so we don't
21942 # have to do anything special.
21943 aix_use_runtimelinking=no
21944 exp_sym_flag='-Bexport'
21947 # If we're using GNU nm, then we don't want the "-C" option.
21948 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21949 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21950 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'
21952 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'
21954 aix_use_runtimelinking=no
21956 # Test if we are trying to use run time linking or normal
21957 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21958 # need to do runtime linking.
21959 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21960 for ld_flag in $LDFLAGS; do
21961 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21962 aix_use_runtimelinking=yes
21969 exp_sym_flag='-bexport'
21970 no_entry_flag='-bnoentry'
21973 # When large executables or shared objects are built, AIX ld can
21974 # have problems creating the table of contents. If linking a library
21975 # or program results in "error TOC overflow" add -mminimal-toc to
21976 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21977 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21979 archive_cmds_F77=''
21980 hardcode_direct_F77=yes
21981 hardcode_libdir_separator_F77=':'
21982 link_all_deplibs_F77=yes
21984 if test "$GCC" = yes; then
21985 case $host_os in aix4.[012]|aix4.[012].*)
21986 # We only want to do this on AIX 4.2 and lower, the check
21987 # below for broken collect2 doesn't work under 4.3+
21988 collect2name=`${CC} -print-prog-name=collect2`
21989 if test -f "$collect2name" && \
21990 strings "$collect2name" | grep resolve_lib_name >/dev/null
21992 # We have reworked collect2
21993 hardcode_direct_F77=yes
21995 # We have old collect2
21996 hardcode_direct_F77=unsupported
21997 # It fails to find uninstalled libraries when the uninstalled
21998 # path is not listed in the libpath. Setting hardcode_minus_L
21999 # to unsupported forces relinking
22000 hardcode_minus_L_F77=yes
22001 hardcode_libdir_flag_spec_F77='-L$libdir'
22002 hardcode_libdir_separator_F77=
22006 shared_flag='-shared'
22007 if test "$aix_use_runtimelinking" = yes; then
22008 shared_flag="$shared_flag "'${wl}-G'
22012 if test "$host_cpu" = ia64; then
22013 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22014 # chokes on -Wl,-G. The following line is correct:
22017 if test "$aix_use_runtimelinking" = yes; then
22018 shared_flag='${wl}-G'
22020 shared_flag='${wl}-bM:SRE'
22025 # It seems that -bexpall does not export symbols beginning with
22026 # underscore (_), so it is better to generate a list of symbols to export.
22027 always_export_symbols_F77=yes
22028 if test "$aix_use_runtimelinking" = yes; then
22029 # Warning - without using the other runtime loading flags (-brtl),
22030 # -berok will link without error, but may produce a broken library.
22031 allow_undefined_flag_F77='-berok'
22032 # Determine the default libpath from the value encoded in an empty executable.
22033 cat >conftest.$ac_ext <<_ACEOF
22038 rm -f conftest.$ac_objext conftest$ac_exeext
22039 if { (ac_try="$ac_link"
22040 case "(($ac_try" in
22041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22042 *) ac_try_echo=$ac_try;;
22044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22045 (eval "$ac_link") 2>conftest.er1
22047 grep -v '^ *+' conftest.er1 >conftest.err
22049 cat conftest.err >&5
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); } &&
22052 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22053 { (case "(($ac_try" in
22054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22055 *) ac_try_echo=$ac_try;;
22057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22058 (eval "$ac_try") 2>&5
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); }; } &&
22062 { ac_try='test -s conftest$ac_exeext'
22063 { (case "(($ac_try" in
22064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22065 *) ac_try_echo=$ac_try;;
22067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22068 (eval "$ac_try") 2>&5
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071 (exit $ac_status); }; }; then
22073 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22075 # Check for a 64-bit object if we didn't find anything.
22076 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; }
22079 echo "$as_me: failed program was:" >&5
22080 sed 's/^/| /' conftest.$ac_ext >&5
22085 rm -f core conftest.err conftest.$ac_objext \
22086 conftest$ac_exeext conftest.$ac_ext
22087 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22089 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22090 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"
22092 if test "$host_cpu" = ia64; then
22093 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22094 allow_undefined_flag_F77="-z nodefs"
22095 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"
22097 # Determine the default libpath from the value encoded in an empty executable.
22098 cat >conftest.$ac_ext <<_ACEOF
22103 rm -f conftest.$ac_objext conftest$ac_exeext
22104 if { (ac_try="$ac_link"
22105 case "(($ac_try" in
22106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22107 *) ac_try_echo=$ac_try;;
22109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22110 (eval "$ac_link") 2>conftest.er1
22112 grep -v '^ *+' conftest.er1 >conftest.err
22114 cat conftest.err >&5
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); } &&
22117 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22118 { (case "(($ac_try" in
22119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120 *) ac_try_echo=$ac_try;;
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123 (eval "$ac_try") 2>&5
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); }; } &&
22127 { ac_try='test -s conftest$ac_exeext'
22128 { (case "(($ac_try" in
22129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130 *) ac_try_echo=$ac_try;;
22132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22133 (eval "$ac_try") 2>&5
22135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136 (exit $ac_status); }; }; then
22138 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22140 # Check for a 64-bit object if we didn't find anything.
22141 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; }
22144 echo "$as_me: failed program was:" >&5
22145 sed 's/^/| /' conftest.$ac_ext >&5
22150 rm -f core conftest.err conftest.$ac_objext \
22151 conftest$ac_exeext conftest.$ac_ext
22152 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22154 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22155 # Warning - without using the other run time loading flags,
22156 # -berok will link without error, but may produce a broken library.
22157 no_undefined_flag_F77=' ${wl}-bernotok'
22158 allow_undefined_flag_F77=' ${wl}-berok'
22159 # Exported symbols can be pulled into shared objects from archives
22160 whole_archive_flag_spec_F77='$convenience'
22161 archive_cmds_need_lc_F77=yes
22162 # This is similar to how AIX traditionally builds its shared libraries.
22163 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'
22169 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)'
22170 hardcode_libdir_flag_spec_F77='-L$libdir'
22171 hardcode_minus_L_F77=yes
22172 # see comment about different semantics on the GNU ld section
22177 export_dynamic_flag_spec_F77=-rdynamic
22180 cygwin* | mingw* | pw32*)
22181 # When not using gcc, we currently assume that we are using
22182 # Microsoft Visual C++.
22183 # hardcode_libdir_flag_spec is actually meaningless, as there is
22184 # no search path for DLLs.
22185 hardcode_libdir_flag_spec_F77=' '
22186 allow_undefined_flag_F77=unsupported
22187 # Tell ltmain to make .lib files, not .a files.
22189 # Tell ltmain to make .dll files, not .so files.
22191 # FIXME: Setting linknames here is a bad hack.
22192 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22193 # The linker will automatically build a .lib file if we build a DLL.
22194 old_archive_From_new_cmds_F77='true'
22195 # FIXME: Should let the user specify the lib program.
22196 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22197 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22198 enable_shared_with_static_runtimes_F77=yes
22201 darwin* | rhapsody*)
22203 rhapsody* | darwin1.[012])
22204 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22207 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22208 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22210 case ${MACOSX_DEPLOYMENT_TARGET} in
22212 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22215 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22221 archive_cmds_need_lc_F77=no
22222 hardcode_direct_F77=no
22223 hardcode_automatic_F77=yes
22224 hardcode_shlibpath_var_F77=unsupported
22225 whole_archive_flag_spec_F77=''
22226 link_all_deplibs_F77=yes
22227 if test "$GCC" = yes ; then
22228 output_verbose_link_cmd='echo'
22229 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22230 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22231 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22232 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}'
22233 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22235 case $cc_basename in
22237 output_verbose_link_cmd='echo'
22238 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22239 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22240 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22241 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}'
22242 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}'
22252 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22253 hardcode_libdir_flag_spec_F77='-L$libdir'
22254 hardcode_shlibpath_var_F77=no
22261 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22262 # support. Future versions do this automatically, but an explicit c++rt0.o
22263 # does not break anything, and helps significantly (at the cost of a little
22266 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22267 hardcode_libdir_flag_spec_F77='-R$libdir'
22268 hardcode_direct_F77=yes
22269 hardcode_shlibpath_var_F77=no
22272 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22274 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22275 hardcode_direct_F77=yes
22276 hardcode_minus_L_F77=yes
22277 hardcode_shlibpath_var_F77=no
22280 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22281 freebsd* | kfreebsd*-gnu | dragonfly*)
22282 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22283 hardcode_libdir_flag_spec_F77='-R$libdir'
22284 hardcode_direct_F77=yes
22285 hardcode_shlibpath_var_F77=no
22289 if test "$GCC" = yes; then
22290 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'
22292 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'
22294 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22295 hardcode_libdir_separator_F77=:
22296 hardcode_direct_F77=yes
22298 # hardcode_minus_L: Not really in the search PATH,
22299 # but as the default location of the library.
22300 hardcode_minus_L_F77=yes
22301 export_dynamic_flag_spec_F77='${wl}-E'
22305 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22306 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22308 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22310 if test "$with_gnu_ld" = no; then
22311 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22312 hardcode_libdir_separator_F77=:
22314 hardcode_direct_F77=yes
22315 export_dynamic_flag_spec_F77='${wl}-E'
22317 # hardcode_minus_L: Not really in the search PATH,
22318 # but as the default location of the library.
22319 hardcode_minus_L_F77=yes
22324 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22327 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22330 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22333 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22339 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22342 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22345 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22349 if test "$with_gnu_ld" = no; then
22350 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22351 hardcode_libdir_separator_F77=:
22355 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22356 hardcode_direct_F77=no
22357 hardcode_shlibpath_var_F77=no
22360 hardcode_direct_F77=yes
22361 export_dynamic_flag_spec_F77='${wl}-E'
22363 # hardcode_minus_L: Not really in the search PATH,
22364 # but as the default location of the library.
22365 hardcode_minus_L_F77=yes
22371 irix5* | irix6* | nonstopux*)
22372 if test "$GCC" = yes; then
22373 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'
22375 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'
22376 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22378 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22379 hardcode_libdir_separator_F77=:
22380 link_all_deplibs_F77=yes
22384 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22385 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22387 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22389 hardcode_libdir_flag_spec_F77='-R$libdir'
22390 hardcode_direct_F77=yes
22391 hardcode_shlibpath_var_F77=no
22395 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22396 hardcode_direct_F77=yes
22397 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22398 hardcode_libdir_separator_F77=:
22399 hardcode_shlibpath_var_F77=no
22403 hardcode_direct_F77=yes
22404 hardcode_shlibpath_var_F77=no
22405 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22406 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22407 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22408 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22409 export_dynamic_flag_spec_F77='${wl}-E'
22412 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22413 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22414 hardcode_libdir_flag_spec_F77='-R$libdir'
22417 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22418 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22425 hardcode_libdir_flag_spec_F77='-L$libdir'
22426 hardcode_minus_L_F77=yes
22427 allow_undefined_flag_F77=unsupported
22428 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'
22429 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22433 if test "$GCC" = yes; then
22434 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22435 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'
22437 allow_undefined_flag_F77=' -expect_unresolved \*'
22438 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'
22440 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22441 hardcode_libdir_separator_F77=:
22444 osf4* | osf5*) # as osf3* with the addition of -msym flag
22445 if test "$GCC" = yes; then
22446 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22447 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'
22448 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22450 allow_undefined_flag_F77=' -expect_unresolved \*'
22451 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'
22452 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~
22453 $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'
22455 # Both c and cxx compiler support -rpath directly
22456 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22458 hardcode_libdir_separator_F77=:
22462 no_undefined_flag_F77=' -z text'
22463 if test "$GCC" = yes; then
22465 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22466 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22467 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22470 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22471 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22472 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22474 hardcode_libdir_flag_spec_F77='-R$libdir'
22475 hardcode_shlibpath_var_F77=no
22477 solaris2.[0-5] | solaris2.[0-5].*) ;;
22479 # The compiler driver will combine linker options so we
22480 # cannot just pass the convience library names through
22481 # without $wl, iff we do not link with $LD.
22482 # Luckily, gcc supports the same syntax we need for Sun Studio.
22483 # Supported since Solaris 2.6 (maybe 2.5.1?)
22486 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22488 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' ;;
22491 link_all_deplibs_F77=yes
22495 if test "x$host_vendor" = xsequent; then
22496 # Use $CC to link under sequent, because it throws in some extra .o
22497 # files that make .init and .fini sections work.
22498 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22500 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22502 hardcode_libdir_flag_spec_F77='-L$libdir'
22503 hardcode_direct_F77=yes
22504 hardcode_minus_L_F77=yes
22505 hardcode_shlibpath_var_F77=no
22509 case $host_vendor in
22511 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22512 hardcode_direct_F77=yes # is this really true???
22515 ## LD is ld it makes a PLAMLIB
22516 ## CC just makes a GrossModule.
22517 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22518 reload_cmds_F77='$CC -r -o $output$reload_objs'
22519 hardcode_direct_F77=no
22522 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22523 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22526 runpath_var='LD_RUN_PATH'
22527 hardcode_shlibpath_var_F77=no
22531 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22532 hardcode_shlibpath_var_F77=no
22533 export_dynamic_flag_spec_F77='-Bexport'
22537 if test -d /usr/nec; then
22538 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22539 hardcode_shlibpath_var_F77=no
22540 runpath_var=LD_RUN_PATH
22541 hardcode_runpath_var=yes
22546 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22547 no_undefined_flag_F77='${wl}-z,text'
22548 archive_cmds_need_lc_F77=no
22549 hardcode_shlibpath_var_F77=no
22550 runpath_var='LD_RUN_PATH'
22552 if test "$GCC" = yes; then
22553 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22554 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22556 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22557 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22561 sysv5* | sco3.2v5* | sco5v6*)
22562 # Note: We can NOT use -z defs as we might desire, because we do not
22563 # link with -lc, and that would cause any symbols used from libc to
22564 # always be unresolved, which means just about no library would
22565 # ever link correctly. If we're not using GNU ld we use -z text
22566 # though, which does catch some bad symbols but isn't as heavy-handed
22568 no_undefined_flag_F77='${wl}-z,text'
22569 allow_undefined_flag_F77='${wl}-z,nodefs'
22570 archive_cmds_need_lc_F77=no
22571 hardcode_shlibpath_var_F77=no
22572 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22573 hardcode_libdir_separator_F77=':'
22574 link_all_deplibs_F77=yes
22575 export_dynamic_flag_spec_F77='${wl}-Bexport'
22576 runpath_var='LD_RUN_PATH'
22578 if test "$GCC" = yes; then
22579 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22580 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22582 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22583 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22588 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22589 hardcode_libdir_flag_spec_F77='-L$libdir'
22590 hardcode_shlibpath_var_F77=no
22599 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22600 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22601 test "$ld_shlibs_F77" = no && can_build_shared=no
22604 # Do we need to explicitly link libc?
22606 case "x$archive_cmds_need_lc_F77" in
22608 # Assume -lc should be added
22609 archive_cmds_need_lc_F77=yes
22611 if test "$enable_shared" = yes && test "$GCC" = yes; then
22612 case $archive_cmds_F77 in
22614 # FIXME: we may have to deal with multi-command sequences.
22617 # Test whether the compiler implicitly links with -lc since on some
22618 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22619 # to ld, don't add -lc before -lgcc.
22620 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22621 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22623 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22626 (eval $ac_compile) 2>&5
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); } 2>conftest.err; then
22632 libobjs=conftest.$ac_objext
22634 wl=$lt_prog_compiler_wl_F77
22635 pic_flag=$lt_prog_compiler_pic_F77
22641 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22642 allow_undefined_flag_F77=
22643 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22644 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22647 (exit $ac_status); }
22649 archive_cmds_need_lc_F77=no
22651 archive_cmds_need_lc_F77=yes
22653 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22655 cat conftest.err 1>&5
22658 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22659 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22666 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22667 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22668 library_names_spec=
22669 libname_spec='lib$name'
22673 postuninstall_cmds=
22677 shlibpath_overrides_runpath=unknown
22679 dynamic_linker="$host_os ld.so"
22680 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22681 if test "$GCC" = yes; then
22682 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22683 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22684 # if the path contains ";" then we assume it to be the separator
22685 # otherwise default to the standard path separator (i.e. ":") - it is
22686 # assumed that no part of a normal pathname contains ";" but that should
22687 # okay in the real world where ";" in dirpaths is itself problematic.
22688 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22690 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22693 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22695 need_lib_prefix=unknown
22696 hardcode_into_libs=no
22698 # when you set need_version to no, make sure it does not cause -set_version
22699 # flags to be left without arguments
22700 need_version=unknown
22705 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22706 shlibpath_var=LIBPATH
22708 # AIX 3 has no versioning support, so we append a major version to the name.
22709 soname_spec='${libname}${release}${shared_ext}$major'
22716 hardcode_into_libs=yes
22717 if test "$host_cpu" = ia64; then
22718 # AIX 5 supports IA64
22719 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22720 shlibpath_var=LD_LIBRARY_PATH
22722 # With GCC up to 2.95.x, collect2 would create an import file
22723 # for dependence libraries. The import file would start with
22724 # the line `#! .'. This would cause the generated library to
22725 # depend on `.', always an invalid library. This was fixed in
22726 # development snapshots of GCC prior to 3.0.
22728 aix4 | aix4.[01] | aix4.[01].*)
22729 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22731 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22734 can_build_shared=no
22738 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22739 # soname into executable. Probably we can add versioning support to
22740 # collect2, so additional links can be useful in future.
22741 if test "$aix_use_runtimelinking" = yes; then
22742 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22743 # instead of lib<name>.a to let people know that these are not
22744 # typical AIX shared libraries.
22745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22747 # We preserve .a as extension for shared libraries through AIX4.2
22748 # and later when we are not doing run time linking.
22749 library_names_spec='${libname}${release}.a $libname.a'
22750 soname_spec='${libname}${release}${shared_ext}$major'
22752 shlibpath_var=LIBPATH
22757 library_names_spec='$libname.ixlibrary $libname.a'
22758 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22759 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'
22763 library_names_spec='${libname}${shared_ext}'
22764 dynamic_linker="$host_os ld.so"
22765 shlibpath_var=LIBRARY_PATH
22771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22772 soname_spec='${libname}${release}${shared_ext}$major'
22773 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22774 shlibpath_var=LD_LIBRARY_PATH
22775 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22776 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22777 # the default ld.so.conf also contains /usr/contrib/lib and
22778 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22779 # libtool to hard-code these into programs
22782 cygwin* | mingw* | pw32*)
22783 version_type=windows
22788 case $GCC,$host_os in
22789 yes,cygwin* | yes,mingw* | yes,pw32*)
22790 library_names_spec='$libname.dll.a'
22791 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22792 postinstall_cmds='base_file=`basename \${file}`~
22793 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22794 dldir=$destdir/`dirname \$dlpath`~
22795 test -d \$dldir || mkdir -p \$dldir~
22796 $install_prog $dir/$dlname \$dldir/$dlname~
22797 chmod a+x \$dldir/$dlname'
22798 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22799 dlpath=$dir/\$dldll~
22801 shlibpath_overrides_runpath=yes
22805 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22806 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22807 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22810 # MinGW DLLs use traditional 'lib' prefix
22811 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22812 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22813 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22814 # It is most probably a Windows format PATH printed by
22815 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22816 # path with ; separators, and with drive letters. We can handle the
22817 # drive letters (cygwin fileutils understands them), so leave them,
22818 # especially as we might pass files found there to a mingw objdump,
22819 # which wouldn't understand a cygwinified path. Ahh.
22820 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22822 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22826 # pw32 DLLs use 'pw' prefix rather than 'lib'
22827 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22833 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22836 dynamic_linker='Win32 ld.exe'
22837 # FIXME: first we should search . and the directory the executable is in
22841 darwin* | rhapsody*)
22842 dynamic_linker="$host_os dyld"
22843 version_type=darwin
22846 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22847 soname_spec='${libname}${release}${major}$shared_ext'
22848 shlibpath_overrides_runpath=yes
22849 shlibpath_var=DYLD_LIBRARY_PATH
22850 shrext_cmds='.dylib'
22851 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22852 if test "$GCC" = yes; then
22853 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"`
22855 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22857 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22865 soname_spec='${libname}${release}${shared_ext}$major'
22866 shlibpath_var=LD_LIBRARY_PATH
22877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22878 soname_spec='${libname}${release}${shared_ext}$major'
22879 shlibpath_var=LD_LIBRARY_PATH
22880 shlibpath_overrides_runpath=no
22881 hardcode_into_libs=yes
22882 dynamic_linker='GNU ld.so'
22885 freebsd* | dragonfly*)
22886 # DragonFly does not have aout. When/if they implement a new
22887 # versioning mechanism, adjust this.
22888 if test -x /usr/bin/objformat; then
22889 objformat=`/usr/bin/objformat`
22892 freebsd[123]*) objformat=aout ;;
22893 *) objformat=elf ;;
22896 version_type=freebsd-$objformat
22897 case $version_type in
22899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22904 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22908 shlibpath_var=LD_LIBRARY_PATH
22911 shlibpath_overrides_runpath=yes
22913 freebsd3.[01]* | freebsdelf3.[01]*)
22914 shlibpath_overrides_runpath=yes
22915 hardcode_into_libs=yes
22917 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22918 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22919 shlibpath_overrides_runpath=no
22920 hardcode_into_libs=yes
22922 freebsd*) # from 4.6 on
22923 shlibpath_overrides_runpath=yes
22924 hardcode_into_libs=yes
22933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22934 soname_spec='${libname}${release}${shared_ext}$major'
22935 shlibpath_var=LD_LIBRARY_PATH
22936 hardcode_into_libs=yes
22939 hpux9* | hpux10* | hpux11*)
22940 # Give a soname corresponding to the major version so that dld.sl refuses to
22941 # link against other versions.
22948 hardcode_into_libs=yes
22949 dynamic_linker="$host_os dld.so"
22950 shlibpath_var=LD_LIBRARY_PATH
22951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22953 soname_spec='${libname}${release}${shared_ext}$major'
22954 if test "X$HPUX_IA64_MODE" = X32; then
22955 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22957 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22963 hardcode_into_libs=yes
22964 dynamic_linker="$host_os dld.sl"
22965 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22966 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22968 soname_spec='${libname}${release}${shared_ext}$major'
22969 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22970 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22974 dynamic_linker="$host_os dld.sl"
22975 shlibpath_var=SHLIB_PATH
22976 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22978 soname_spec='${libname}${release}${shared_ext}$major'
22981 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22982 postinstall_cmds='chmod 555 $lib'
22989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22990 soname_spec='${libname}${release}${shared_ext}$major'
22991 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22992 shlibpath_var=LD_LIBRARY_PATH
22993 shlibpath_overrides_runpath=no
22994 hardcode_into_libs=yes
22997 irix5* | irix6* | nonstopux*)
22999 nonstopux*) version_type=nonstopux ;;
23001 if test "$lt_cv_prog_gnu_ld" = yes; then
23009 soname_spec='${libname}${release}${shared_ext}$major'
23010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23012 irix5* | nonstopux*)
23013 libsuff= shlibsuff=
23016 case $LD in # libtool.m4 will add one of these switches to LD
23017 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23018 libsuff= shlibsuff= libmagic=32-bit;;
23019 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23020 libsuff=32 shlibsuff=N32 libmagic=N32;;
23021 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23022 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23023 *) libsuff= shlibsuff= libmagic=never-match;;
23027 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23028 shlibpath_overrides_runpath=no
23029 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23030 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23031 hardcode_into_libs=yes
23034 # No shared lib support for Linux oldld, aout, or coff.
23035 linux*oldld* | linux*aout* | linux*coff*)
23039 # This must be Linux ELF.
23044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23045 soname_spec='${libname}${release}${shared_ext}$major'
23046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23047 shlibpath_var=LD_LIBRARY_PATH
23048 shlibpath_overrides_runpath=no
23049 # This implies no fast_install, which is unacceptable.
23050 # Some rework will be needed to allow for fast_install
23051 # before this can be enabled.
23052 hardcode_into_libs=yes
23054 # Append ld.so.conf contents to the search path
23055 if test -f /etc/ld.so.conf; then
23056 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' ' '`
23057 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23060 # We used to test for /lib/ld.so.1 and disable shared libraries on
23061 # powerpc, because MkLinux only supported shared libraries with the
23062 # GNU dynamic linker. Since this was broken with cross compilers,
23063 # most powerpc-linux boxes support dynamic linking these days and
23064 # people can always --disable-shared, the test was removed, and we
23065 # assume the GNU/Linux dynamic linker is in use.
23066 dynamic_linker='GNU/Linux ld.so'
23073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23074 soname_spec='${libname}${release}${shared_ext}$major'
23075 shlibpath_var=LD_LIBRARY_PATH
23076 shlibpath_overrides_runpath=no
23077 hardcode_into_libs=yes
23078 dynamic_linker='GNU ld.so'
23085 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23088 dynamic_linker='NetBSD (a.out) ld.so'
23090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23091 soname_spec='${libname}${release}${shared_ext}$major'
23092 dynamic_linker='NetBSD ld.elf_so'
23094 shlibpath_var=LD_LIBRARY_PATH
23095 shlibpath_overrides_runpath=yes
23096 hardcode_into_libs=yes
23101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23102 shlibpath_var=LD_LIBRARY_PATH
23103 shlibpath_overrides_runpath=yes
23110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23111 soname_spec='${libname}${release}${shared_ext}$major'
23112 shlibpath_var=LD_LIBRARY_PATH
23113 shlibpath_overrides_runpath=yes
23118 sys_lib_dlsearch_path_spec="/usr/lib"
23120 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23122 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23123 *) need_version=no ;;
23125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23126 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23127 shlibpath_var=LD_LIBRARY_PATH
23128 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23130 openbsd2.[89] | openbsd2.[89].*)
23131 shlibpath_overrides_runpath=no
23134 shlibpath_overrides_runpath=yes
23138 shlibpath_overrides_runpath=yes
23143 libname_spec='$name'
23146 library_names_spec='$libname${shared_ext} $libname.a'
23147 dynamic_linker='OS/2 ld.exe'
23148 shlibpath_var=LIBPATH
23151 osf3* | osf4* | osf5*)
23155 soname_spec='${libname}${release}${shared_ext}$major'
23156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23157 shlibpath_var=LD_LIBRARY_PATH
23158 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23159 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23167 soname_spec='${libname}${release}${shared_ext}$major'
23168 shlibpath_var=LD_LIBRARY_PATH
23169 shlibpath_overrides_runpath=yes
23170 hardcode_into_libs=yes
23171 # ldd complains unless libraries are executable
23172 postinstall_cmds='chmod +x $lib'
23177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23178 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23179 shlibpath_var=LD_LIBRARY_PATH
23180 shlibpath_overrides_runpath=yes
23181 if test "$with_gnu_ld" = yes; then
23189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23190 soname_spec='${libname}${release}${shared_ext}$major'
23191 shlibpath_var=LD_LIBRARY_PATH
23192 case $host_vendor in
23194 shlibpath_overrides_runpath=no
23196 export_dynamic_flag_spec='${wl}-Blargedynsym'
23197 runpath_var=LD_RUN_PATH
23205 shlibpath_overrides_runpath=no
23206 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23212 if test -d /usr/nec ;then
23214 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23215 soname_spec='$libname${shared_ext}.$major'
23216 shlibpath_var=LD_LIBRARY_PATH
23220 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23221 version_type=freebsd-elf
23224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23225 soname_spec='${libname}${release}${shared_ext}$major'
23226 shlibpath_var=LD_LIBRARY_PATH
23227 hardcode_into_libs=yes
23228 if test "$with_gnu_ld" = yes; then
23229 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23230 shlibpath_overrides_runpath=no
23232 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23233 shlibpath_overrides_runpath=yes
23236 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23240 sys_lib_dlsearch_path_spec='/usr/lib'
23245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23246 soname_spec='${libname}${release}${shared_ext}$major'
23247 shlibpath_var=LD_LIBRARY_PATH
23254 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23255 echo "${ECHO_T}$dynamic_linker" >&6; }
23256 test "$dynamic_linker" = no && can_build_shared=no
23258 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23259 if test "$GCC" = yes; then
23260 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23263 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23264 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23265 hardcode_action_F77=
23266 if test -n "$hardcode_libdir_flag_spec_F77" || \
23267 test -n "$runpath_var_F77" || \
23268 test "X$hardcode_automatic_F77" = "Xyes" ; then
23270 # We can hardcode non-existant directories.
23271 if test "$hardcode_direct_F77" != no &&
23272 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23273 # have to relink, otherwise we might link with an installed library
23274 # when we should be linking with a yet-to-be-installed one
23275 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23276 test "$hardcode_minus_L_F77" != no; then
23277 # Linking always hardcodes the temporary library directory.
23278 hardcode_action_F77=relink
23280 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23281 hardcode_action_F77=immediate
23284 # We cannot hardcode anything, or else we can only hardcode existing
23286 hardcode_action_F77=unsupported
23288 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23289 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23291 if test "$hardcode_action_F77" = relink; then
23292 # Fast installation is not supported
23293 enable_fast_install=no
23294 elif test "$shlibpath_overrides_runpath" = yes ||
23295 test "$enable_shared" = no; then
23296 # Fast installation is not necessary
23297 enable_fast_install=needless
23301 # The else clause should only fire when bootstrapping the
23302 # libtool distribution, otherwise you forgot to ship ltmain.sh
23303 # with your package, and you will get complaints that there are
23304 # no rules to generate ltmain.sh.
23305 if test -f "$ltmain"; then
23306 # See if we are running on zsh, and set the options which allow our commands through
23307 # without removal of \ escapes.
23308 if test -n "${ZSH_VERSION+set}" ; then
23309 setopt NO_GLOB_SUBST
23311 # Now quote all the things that may contain metacharacters while being
23312 # careful not to overquote the AC_SUBSTed values. We take copies of the
23313 # variables and quote the copies for generation of the libtool script.
23314 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23316 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23317 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23318 deplibs_check_method reload_flag reload_cmds need_locks \
23319 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23320 lt_cv_sys_global_symbol_to_c_name_address \
23321 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23322 old_postinstall_cmds old_postuninstall_cmds \
23326 lt_prog_compiler_wl_F77 \
23327 lt_prog_compiler_pic_F77 \
23328 lt_prog_compiler_static_F77 \
23329 lt_prog_compiler_no_builtin_flag_F77 \
23330 export_dynamic_flag_spec_F77 \
23331 thread_safe_flag_spec_F77 \
23332 whole_archive_flag_spec_F77 \
23333 enable_shared_with_static_runtimes_F77 \
23334 old_archive_cmds_F77 \
23335 old_archive_from_new_cmds_F77 \
23336 predep_objects_F77 \
23337 postdep_objects_F77 \
23340 compiler_lib_search_path_F77 \
23342 archive_expsym_cmds_F77 \
23343 postinstall_cmds_F77 \
23344 postuninstall_cmds_F77 \
23345 old_archive_from_expsyms_cmds_F77 \
23346 allow_undefined_flag_F77 \
23347 no_undefined_flag_F77 \
23348 export_symbols_cmds_F77 \
23349 hardcode_libdir_flag_spec_F77 \
23350 hardcode_libdir_flag_spec_ld_F77 \
23351 hardcode_libdir_separator_F77 \
23352 hardcode_automatic_F77 \
23354 module_expsym_cmds_F77 \
23355 lt_cv_prog_compiler_c_o_F77 \
23356 exclude_expsyms_F77 \
23357 include_expsyms_F77; do
23360 old_archive_cmds_F77 | \
23361 old_archive_from_new_cmds_F77 | \
23362 archive_cmds_F77 | \
23363 archive_expsym_cmds_F77 | \
23364 module_cmds_F77 | \
23365 module_expsym_cmds_F77 | \
23366 old_archive_from_expsyms_cmds_F77 | \
23367 export_symbols_cmds_F77 | \
23368 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23369 postinstall_cmds | postuninstall_cmds | \
23370 old_postinstall_cmds | old_postuninstall_cmds | \
23371 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23372 # Double-quote double-evaled strings.
23373 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23376 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23382 *'\$0 --fallback-echo"')
23383 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23389 cat <<__EOF__ >> "$cfgfile"
23390 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23392 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23394 # Shell to use when invoking shell scripts.
23397 # Whether or not to build shared libraries.
23398 build_libtool_libs=$enable_shared
23400 # Whether or not to build static libraries.
23401 build_old_libs=$enable_static
23403 # Whether or not to add -lc for building shared libraries.
23404 build_libtool_need_lc=$archive_cmds_need_lc_F77
23406 # Whether or not to disallow shared libs when runtime libs are static
23407 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23409 # Whether or not to optimize for fast installation.
23410 fast_install=$enable_fast_install
23413 host_alias=$host_alias
23417 # The build system.
23418 build_alias=$build_alias
23422 # An echo program that does not interpret backslashes.
23427 AR_FLAGS=$lt_AR_FLAGS
23432 # LTCC compiler flags.
23433 LTCFLAGS=$lt_LTCFLAGS
23435 # A language-specific compiler.
23436 CC=$lt_compiler_F77
23438 # Is the compiler the GNU C compiler?
23444 # The linker used to build libraries.
23447 # Whether we need hard or soft links.
23450 # A BSD-compatible nm program.
23453 # A symbol stripping program
23456 # Used to examine libraries when file_magic_cmd begins "file"
23457 MAGIC_CMD=$MAGIC_CMD
23459 # Used on cygwin: DLL creation program.
23462 # Used on cygwin: object dumper.
23465 # Used on cygwin: assembler.
23468 # The name of the directory that contains temporary libtool files.
23471 # How to create reloadable object files.
23472 reload_flag=$lt_reload_flag
23473 reload_cmds=$lt_reload_cmds
23475 # How to pass a linker flag through the compiler.
23476 wl=$lt_lt_prog_compiler_wl_F77
23478 # Object file suffix (normally "o").
23479 objext="$ac_objext"
23481 # Old archive suffix (normally "a").
23484 # Shared library suffix (normally ".so").
23485 shrext_cmds='$shrext_cmds'
23487 # Executable file suffix (normally "").
23490 # Additional compiler flags for building library objects.
23491 pic_flag=$lt_lt_prog_compiler_pic_F77
23494 # What is the maximum length of a command?
23495 max_cmd_len=$lt_cv_sys_max_cmd_len
23497 # Does compiler simultaneously support -c and -o options?
23498 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23500 # Must we lock files when doing compilation?
23501 need_locks=$lt_need_locks
23503 # Do we need the lib prefix for modules?
23504 need_lib_prefix=$need_lib_prefix
23506 # Do we need a version for libraries?
23507 need_version=$need_version
23509 # Whether dlopen is supported.
23510 dlopen_support=$enable_dlopen
23512 # Whether dlopen of programs is supported.
23513 dlopen_self=$enable_dlopen_self
23515 # Whether dlopen of statically linked programs is supported.
23516 dlopen_self_static=$enable_dlopen_self_static
23518 # Compiler flag to prevent dynamic linking.
23519 link_static_flag=$lt_lt_prog_compiler_static_F77
23521 # Compiler flag to turn off builtin functions.
23522 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23524 # Compiler flag to allow reflexive dlopens.
23525 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23527 # Compiler flag to generate shared objects directly from archives.
23528 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23530 # Compiler flag to generate thread-safe objects.
23531 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23533 # Library versioning type.
23534 version_type=$version_type
23536 # Format of library name prefix.
23537 libname_spec=$lt_libname_spec
23539 # List of archive names. First name is the real one, the rest are links.
23540 # The last name is the one that the linker finds with -lNAME.
23541 library_names_spec=$lt_library_names_spec
23543 # The coded name of the library, if different from the real name.
23544 soname_spec=$lt_soname_spec
23546 # Commands used to build and install an old-style archive.
23548 old_archive_cmds=$lt_old_archive_cmds_F77
23549 old_postinstall_cmds=$lt_old_postinstall_cmds
23550 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23552 # Create an old-style archive from a shared archive.
23553 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23555 # Create a temporary old-style archive to link instead of a shared archive.
23556 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23558 # Commands used to build and install a shared archive.
23559 archive_cmds=$lt_archive_cmds_F77
23560 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23561 postinstall_cmds=$lt_postinstall_cmds
23562 postuninstall_cmds=$lt_postuninstall_cmds
23564 # Commands used to build a loadable module (assumed same as above if empty)
23565 module_cmds=$lt_module_cmds_F77
23566 module_expsym_cmds=$lt_module_expsym_cmds_F77
23568 # Commands to strip libraries.
23569 old_striplib=$lt_old_striplib
23570 striplib=$lt_striplib
23572 # Dependencies to place before the objects being linked to create a
23574 predep_objects=$lt_predep_objects_F77
23576 # Dependencies to place after the objects being linked to create a
23578 postdep_objects=$lt_postdep_objects_F77
23580 # Dependencies to place before the objects being linked to create a
23582 predeps=$lt_predeps_F77
23584 # Dependencies to place after the objects being linked to create a
23586 postdeps=$lt_postdeps_F77
23588 # The library search path used internally by the compiler when linking
23589 # a shared library.
23590 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23592 # Method to check whether dependent libraries are shared objects.
23593 deplibs_check_method=$lt_deplibs_check_method
23595 # Command to use when deplibs_check_method == file_magic.
23596 file_magic_cmd=$lt_file_magic_cmd
23598 # Flag that allows shared libraries with undefined symbols to be built.
23599 allow_undefined_flag=$lt_allow_undefined_flag_F77
23601 # Flag that forces no undefined symbols.
23602 no_undefined_flag=$lt_no_undefined_flag_F77
23604 # Commands used to finish a libtool library installation in a directory.
23605 finish_cmds=$lt_finish_cmds
23607 # Same as above, but a single script fragment to be evaled but not shown.
23608 finish_eval=$lt_finish_eval
23610 # Take the output of nm and produce a listing of raw symbols and C names.
23611 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23613 # Transform the output of nm in a proper C declaration
23614 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23616 # Transform the output of nm in a C name address pair
23617 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23619 # This is the shared library runtime path variable.
23620 runpath_var=$runpath_var
23622 # This is the shared library path variable.
23623 shlibpath_var=$shlibpath_var
23625 # Is shlibpath searched before the hard-coded library search path?
23626 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23628 # How to hardcode a shared library path into an executable.
23629 hardcode_action=$hardcode_action_F77
23631 # Whether we should hardcode library paths into libraries.
23632 hardcode_into_libs=$hardcode_into_libs
23634 # Flag to hardcode \$libdir into a binary during linking.
23635 # This must work even if \$libdir does not exist.
23636 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23638 # If ld is used when linking, flag to hardcode \$libdir into
23639 # a binary during linking. This must work even if \$libdir does
23641 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23643 # Whether we need a single -rpath flag with a separated argument.
23644 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23646 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23647 # resulting binary.
23648 hardcode_direct=$hardcode_direct_F77
23650 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23651 # resulting binary.
23652 hardcode_minus_L=$hardcode_minus_L_F77
23654 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23655 # the resulting binary.
23656 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23658 # Set to yes if building a shared library automatically hardcodes DIR into the library
23659 # and all subsequent libraries and executables linked against it.
23660 hardcode_automatic=$hardcode_automatic_F77
23662 # Variables whose values should be saved in libtool wrapper scripts and
23663 # restored at relink time.
23664 variables_saved_for_relink="$variables_saved_for_relink"
23666 # Whether libtool must link a program against all its dependency libraries.
23667 link_all_deplibs=$link_all_deplibs_F77
23669 # Compile-time system search path for libraries
23670 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23672 # Run-time system search path for libraries
23673 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23675 # Fix the shell variable \$srcfile for the compiler.
23676 fix_srcfile_path="$fix_srcfile_path_F77"
23678 # Set to yes if exported symbols are required.
23679 always_export_symbols=$always_export_symbols_F77
23681 # The commands to list exported symbols.
23682 export_symbols_cmds=$lt_export_symbols_cmds_F77
23684 # The commands to extract the exported symbol list from a shared archive.
23685 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23687 # Symbols that should not be listed in the preloaded symbols.
23688 exclude_expsyms=$lt_exclude_expsyms_F77
23690 # Symbols that must always be exported.
23691 include_expsyms=$lt_include_expsyms_F77
23693 # ### END LIBTOOL TAG CONFIG: $tagname
23699 # If there is no Makefile yet, we rely on a make rule to execute
23700 # `config.status --recheck' to rerun these tests and create the
23701 # libtool script then.
23702 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23703 if test -f "$ltmain_in"; then
23704 test -f Makefile && make "$ltmain"
23710 ac_cpp='$CPP $CPPFLAGS'
23711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23723 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23725 ac_cpp='$CPP $CPPFLAGS'
23726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23731 # Source file extension for Java test sources.
23734 # Object file extension for compiled Java test sources.
23738 # Code to be used in simple compile tests
23739 lt_simple_compile_test_code="class foo {}\n"
23741 # Code to be used in simple link tests
23742 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23744 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23746 # If no C compiler was specified, use CC.
23749 # If no C compiler flags were specified, use CFLAGS.
23750 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23752 # Allow CC to be a program name with arguments.
23756 # save warnings/boilerplate of simple test code
23757 ac_outfile=conftest.$ac_objext
23758 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23759 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23760 _lt_compiler_boilerplate=`cat conftest.err`
23763 ac_outfile=conftest.$ac_objext
23764 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23765 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23766 _lt_linker_boilerplate=`cat conftest.err`
23770 # Allow CC to be a program name with arguments.
23775 for cc_temp in $compiler""; do
23777 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23778 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23783 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23786 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23787 archive_cmds_need_lc_GCJ=no
23789 old_archive_cmds_GCJ=$old_archive_cmds
23792 lt_prog_compiler_no_builtin_flag_GCJ=
23794 if test "$GCC" = yes; then
23795 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23798 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23799 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23800 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23801 echo $ECHO_N "(cached) $ECHO_C" >&6
23803 lt_cv_prog_compiler_rtti_exceptions=no
23804 ac_outfile=conftest.$ac_objext
23805 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23806 lt_compiler_flag="-fno-rtti -fno-exceptions"
23807 # Insert the option either (1) after the last *FLAGS variable, or
23808 # (2) before a word containing "conftest.", or (3) at the end.
23809 # Note that $ac_compile itself does not contain backslashes and begins
23810 # with a dollar sign (not a hyphen), so the echo should work correctly.
23811 # The option is referenced via a variable to avoid confusing sed.
23812 lt_compile=`echo "$ac_compile" | $SED \
23813 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23815 -e 's:$: $lt_compiler_flag:'`
23816 (eval echo "\"\$as_me:23816: $lt_compile\"" >&5)
23817 (eval "$lt_compile" 2>conftest.err)
23819 cat conftest.err >&5
23820 echo "$as_me:23820: \$? = $ac_status" >&5
23821 if (exit $ac_status) && test -s "$ac_outfile"; then
23822 # The compiler can only warn and ignore the option if not recognized
23823 # So say no if there are warnings other than the usual output.
23824 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23826 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23827 lt_cv_prog_compiler_rtti_exceptions=yes
23833 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23834 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23836 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23837 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23844 lt_prog_compiler_wl_GCJ=
23845 lt_prog_compiler_pic_GCJ=
23846 lt_prog_compiler_static_GCJ=
23848 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23849 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23851 if test "$GCC" = yes; then
23852 lt_prog_compiler_wl_GCJ='-Wl,'
23853 lt_prog_compiler_static_GCJ='-static'
23857 # All AIX code is PIC.
23858 if test "$host_cpu" = ia64; then
23859 # AIX 5 now supports IA64 processor
23860 lt_prog_compiler_static_GCJ='-Bstatic'
23865 # FIXME: we need at least 68020 code to build shared libraries, but
23866 # adding the `-m68020' flag to GCC prevents building anything better,
23868 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23871 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23872 # PIC is the default for these OSes.
23875 mingw* | pw32* | os2*)
23876 # This hack is so that the source file can tell whether it is being
23877 # built for inclusion in a dll (and should export symbols for example).
23878 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23881 darwin* | rhapsody*)
23882 # PIC is the default on this platform
23883 # Common symbols not allowed in MH_DYLIB files
23884 lt_prog_compiler_pic_GCJ='-fno-common'
23888 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23889 # Instead, we relocate shared libraries at runtime.
23893 # Just because we use GCC doesn't mean we suddenly get shared libraries
23894 # on systems that don't support them.
23895 lt_prog_compiler_can_build_shared_GCJ=no
23900 if test -d /usr/nec; then
23901 lt_prog_compiler_pic_GCJ=-Kconform_pic
23906 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23907 # not for PA HP-UX.
23913 lt_prog_compiler_pic_GCJ='-fPIC'
23919 lt_prog_compiler_pic_GCJ='-fPIC'
23923 # PORTME Check for flag to pass linker flags through the system compiler.
23926 lt_prog_compiler_wl_GCJ='-Wl,'
23927 if test "$host_cpu" = ia64; then
23928 # AIX 5 now supports IA64 processor
23929 lt_prog_compiler_static_GCJ='-Bstatic'
23931 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23935 # PIC is the default on this platform
23936 # Common symbols not allowed in MH_DYLIB files
23937 case $cc_basename in
23939 lt_prog_compiler_pic_GCJ='-qnocommon'
23940 lt_prog_compiler_wl_GCJ='-Wl,'
23945 mingw* | pw32* | os2*)
23946 # This hack is so that the source file can tell whether it is being
23947 # built for inclusion in a dll (and should export symbols for example).
23948 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23951 hpux9* | hpux10* | hpux11*)
23952 lt_prog_compiler_wl_GCJ='-Wl,'
23953 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23954 # not for PA HP-UX.
23960 lt_prog_compiler_pic_GCJ='+Z'
23963 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23964 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23967 irix5* | irix6* | nonstopux*)
23968 lt_prog_compiler_wl_GCJ='-Wl,'
23969 # PIC (with -KPIC) is the default.
23970 lt_prog_compiler_static_GCJ='-non_shared'
23974 lt_prog_compiler_pic_GCJ='-KPIC'
23975 lt_prog_compiler_static_GCJ='-Bstatic'
23979 case $cc_basename in
23981 lt_prog_compiler_wl_GCJ='-Wl,'
23982 lt_prog_compiler_pic_GCJ='-KPIC'
23983 lt_prog_compiler_static_GCJ='-static'
23985 pgcc* | pgf77* | pgf90* | pgf95*)
23986 # Portland Group compilers (*not* the Pentium gcc compiler,
23987 # which looks to be a dead project)
23988 lt_prog_compiler_wl_GCJ='-Wl,'
23989 lt_prog_compiler_pic_GCJ='-fpic'
23990 lt_prog_compiler_static_GCJ='-Bstatic'
23993 lt_prog_compiler_wl_GCJ='-Wl,'
23994 # All Alpha code is PIC.
23995 lt_prog_compiler_static_GCJ='-non_shared'
24000 osf3* | osf4* | osf5*)
24001 lt_prog_compiler_wl_GCJ='-Wl,'
24002 # All OSF/1 code is PIC.
24003 lt_prog_compiler_static_GCJ='-non_shared'
24007 lt_prog_compiler_pic_GCJ='-KPIC'
24008 lt_prog_compiler_static_GCJ='-Bstatic'
24009 case $cc_basename in
24010 f77* | f90* | f95*)
24011 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24013 lt_prog_compiler_wl_GCJ='-Wl,';;
24018 lt_prog_compiler_wl_GCJ='-Qoption ld '
24019 lt_prog_compiler_pic_GCJ='-PIC'
24020 lt_prog_compiler_static_GCJ='-Bstatic'
24023 sysv4 | sysv4.2uw2* | sysv4.3*)
24024 lt_prog_compiler_wl_GCJ='-Wl,'
24025 lt_prog_compiler_pic_GCJ='-KPIC'
24026 lt_prog_compiler_static_GCJ='-Bstatic'
24030 if test -d /usr/nec ;then
24031 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24032 lt_prog_compiler_static_GCJ='-Bstatic'
24036 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24037 lt_prog_compiler_wl_GCJ='-Wl,'
24038 lt_prog_compiler_pic_GCJ='-KPIC'
24039 lt_prog_compiler_static_GCJ='-Bstatic'
24043 lt_prog_compiler_wl_GCJ='-Wl,'
24044 lt_prog_compiler_can_build_shared_GCJ=no
24048 lt_prog_compiler_pic_GCJ='-pic'
24049 lt_prog_compiler_static_GCJ='-Bstatic'
24053 lt_prog_compiler_can_build_shared_GCJ=no
24058 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24059 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24062 # Check to make sure the PIC flag actually works.
24064 if test -n "$lt_prog_compiler_pic_GCJ"; then
24066 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24067 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24068 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24069 echo $ECHO_N "(cached) $ECHO_C" >&6
24071 lt_prog_compiler_pic_works_GCJ=no
24072 ac_outfile=conftest.$ac_objext
24073 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24074 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24075 # Insert the option either (1) after the last *FLAGS variable, or
24076 # (2) before a word containing "conftest.", or (3) at the end.
24077 # Note that $ac_compile itself does not contain backslashes and begins
24078 # with a dollar sign (not a hyphen), so the echo should work correctly.
24079 # The option is referenced via a variable to avoid confusing sed.
24080 lt_compile=`echo "$ac_compile" | $SED \
24081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24083 -e 's:$: $lt_compiler_flag:'`
24084 (eval echo "\"\$as_me:24084: $lt_compile\"" >&5)
24085 (eval "$lt_compile" 2>conftest.err)
24087 cat conftest.err >&5
24088 echo "$as_me:24088: \$? = $ac_status" >&5
24089 if (exit $ac_status) && test -s "$ac_outfile"; then
24090 # The compiler can only warn and ignore the option if not recognized
24091 # So say no if there are warnings other than the usual output.
24092 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24093 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24094 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24095 lt_prog_compiler_pic_works_GCJ=yes
24101 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24102 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24104 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24105 case $lt_prog_compiler_pic_GCJ in
24107 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24110 lt_prog_compiler_pic_GCJ=
24111 lt_prog_compiler_can_build_shared_GCJ=no
24116 # For platforms which do not support PIC, -DPIC is meaningless:
24118 lt_prog_compiler_pic_GCJ=
24121 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24126 # Check to make sure the static flag actually works.
24128 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24129 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24130 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24131 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24132 echo $ECHO_N "(cached) $ECHO_C" >&6
24134 lt_prog_compiler_static_works_GCJ=no
24135 save_LDFLAGS="$LDFLAGS"
24136 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24137 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24138 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24139 # The linker can only warn and ignore the option if not recognized
24140 # So say no if there are warnings
24141 if test -s conftest.err; then
24142 # Append any errors to the config.log.
24143 cat conftest.err 1>&5
24144 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24146 if diff conftest.exp conftest.er2 >/dev/null; then
24147 lt_prog_compiler_static_works_GCJ=yes
24150 lt_prog_compiler_static_works_GCJ=yes
24154 LDFLAGS="$save_LDFLAGS"
24157 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24158 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24160 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24163 lt_prog_compiler_static_GCJ=
24167 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24168 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24169 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24170 echo $ECHO_N "(cached) $ECHO_C" >&6
24172 lt_cv_prog_compiler_c_o_GCJ=no
24173 $rm -r conftest 2>/dev/null
24177 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24179 lt_compiler_flag="-o out/conftest2.$ac_objext"
24180 # Insert the option either (1) after the last *FLAGS variable, or
24181 # (2) before a word containing "conftest.", or (3) at the end.
24182 # Note that $ac_compile itself does not contain backslashes and begins
24183 # with a dollar sign (not a hyphen), so the echo should work correctly.
24184 lt_compile=`echo "$ac_compile" | $SED \
24185 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24186 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24187 -e 's:$: $lt_compiler_flag:'`
24188 (eval echo "\"\$as_me:24188: $lt_compile\"" >&5)
24189 (eval "$lt_compile" 2>out/conftest.err)
24191 cat out/conftest.err >&5
24192 echo "$as_me:24192: \$? = $ac_status" >&5
24193 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24195 # The compiler can only warn and ignore the option if not recognized
24196 # So say no if there are warnings
24197 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24198 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24199 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24200 lt_cv_prog_compiler_c_o_GCJ=yes
24205 # SGI C++ compiler will create directory out/ii_files/ for
24206 # template instantiation
24207 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24208 $rm out/* && rmdir out
24214 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24215 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24218 hard_links="nottested"
24219 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24220 # do not overwrite the value of need_locks provided by the user
24221 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24222 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24225 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24227 ln conftest.a conftest.b 2>&5 || hard_links=no
24228 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24229 { echo "$as_me:$LINENO: result: $hard_links" >&5
24230 echo "${ECHO_T}$hard_links" >&6; }
24231 if test "$hard_links" = no; then
24232 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24233 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24240 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24241 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24244 allow_undefined_flag_GCJ=
24245 enable_shared_with_static_runtimes_GCJ=no
24247 archive_expsym_cmds_GCJ=
24248 old_archive_From_new_cmds_GCJ=
24249 old_archive_from_expsyms_cmds_GCJ=
24250 export_dynamic_flag_spec_GCJ=
24251 whole_archive_flag_spec_GCJ=
24252 thread_safe_flag_spec_GCJ=
24253 hardcode_libdir_flag_spec_GCJ=
24254 hardcode_libdir_flag_spec_ld_GCJ=
24255 hardcode_libdir_separator_GCJ=
24256 hardcode_direct_GCJ=no
24257 hardcode_minus_L_GCJ=no
24258 hardcode_shlibpath_var_GCJ=unsupported
24259 link_all_deplibs_GCJ=unknown
24260 hardcode_automatic_GCJ=no
24262 module_expsym_cmds_GCJ=
24263 always_export_symbols_GCJ=no
24264 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24265 # include_expsyms should be a list of space-separated symbols to be *always*
24266 # included in the symbol list
24267 include_expsyms_GCJ=
24268 # exclude_expsyms can be an extended regexp of symbols to exclude
24269 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24270 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24271 # as well as any symbol that contains `d'.
24272 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24273 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24274 # platforms (ab)use it in PIC code, but their linkers get confused if
24275 # the symbol is explicitly referenced. Since portable code cannot
24276 # rely on this symbol name, it's probably fine to never include it in
24277 # preloaded symbol tables.
24278 extract_expsyms_cmds=
24279 # Just being paranoid about ensuring that cc_basename is set.
24280 for cc_temp in $compiler""; do
24282 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24283 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24288 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24291 cygwin* | mingw* | pw32*)
24292 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24293 # When not using gcc, we currently assume that we are using
24294 # Microsoft Visual C++.
24295 if test "$GCC" != yes; then
24300 # we just hope/assume this is gcc and not c89 (= MSVC++)
24309 if test "$with_gnu_ld" = yes; then
24310 # If archive_cmds runs LD, not CC, wlarc should be empty
24313 # Set some defaults for GNU ld with shared library support. These
24314 # are reset later if shared libraries are not supported. Putting them
24315 # here allows them to be overridden if necessary.
24316 runpath_var=LD_RUN_PATH
24317 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24318 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24319 # ancient GNU ld didn't support --whole-archive et. al.
24320 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24321 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24323 whole_archive_flag_spec_GCJ=
24325 supports_anon_versioning=no
24326 case `$LD -v 2>/dev/null` in
24327 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24328 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24329 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24330 *\ 2.11.*) ;; # other 2.11 versions
24331 *) supports_anon_versioning=yes ;;
24334 # See if GNU ld supports shared libraries.
24336 aix3* | aix4* | aix5*)
24337 # On AIX/PPC, the GNU linker is very broken
24338 if test "$host_cpu" != ia64; then
24342 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24343 *** to be unable to reliably create shared libraries on AIX.
24344 *** Therefore, libtool is disabling shared libraries support. If you
24345 *** really care for shared libraries, you may want to modify your PATH
24346 *** so that a non-GNU linker is found, and then restart.
24353 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)'
24354 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24355 hardcode_minus_L_GCJ=yes
24357 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24358 # that the semantics of dynamic libraries on AmigaOS, at least up
24359 # to version 4, is to share data among multiple programs linked
24360 # with the same dynamic library. Since this doesn't match the
24361 # behavior of shared libraries on other platforms, we can't use
24367 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24368 allow_undefined_flag_GCJ=unsupported
24369 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24370 # support --undefined. This deserves some investigation. FIXME
24371 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24377 cygwin* | mingw* | pw32*)
24378 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24379 # as there is no search path for DLLs.
24380 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24381 allow_undefined_flag_GCJ=unsupported
24382 always_export_symbols_GCJ=no
24383 enable_shared_with_static_runtimes_GCJ=yes
24384 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24386 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24387 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24388 # If the export-symbols file already is a .def file (1st line
24389 # is EXPORTS), use it as is; otherwise, prepend...
24390 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24391 cp $export_symbols $output_objdir/$soname.def;
24393 echo EXPORTS > $output_objdir/$soname.def;
24394 cat $export_symbols >> $output_objdir/$soname.def;
24396 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24403 hardcode_direct_GCJ=no
24404 hardcode_shlibpath_var_GCJ=no
24405 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24406 export_dynamic_flag_spec_GCJ='${wl}-E'
24407 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24408 # Instead, shared libraries are loaded at an image base (0x10000000 by
24409 # default) and relocated if they conflict, which is a slow very memory
24410 # consuming and fragmenting process. To avoid this, we pick a random,
24411 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24412 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24413 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'
24414 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'
24418 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24420 case $cc_basename,$host_cpu in
24421 pgcc*) # Portland Group C compiler
24422 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'
24423 tmp_addflag=' $pic_flag'
24425 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24426 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'
24427 tmp_addflag=' $pic_flag -Mnomain' ;;
24428 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24429 tmp_addflag=' -i_dynamic' ;;
24430 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24431 tmp_addflag=' -i_dynamic -nofor_main' ;;
24432 ifc* | ifort*) # Intel Fortran compiler
24433 tmp_addflag=' -nofor_main' ;;
24435 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24437 if test $supports_anon_versioning = yes; then
24438 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24439 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24440 $echo "local: *; };" >> $output_objdir/$libname.ver~
24441 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24449 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24450 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24453 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24454 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24459 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24463 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24464 *** create shared libraries on Solaris systems. Therefore, libtool
24465 *** is disabling shared libraries support. We urge you to upgrade GNU
24466 *** binutils to release 2.9.1 or newer. Another option is to modify
24467 *** your PATH or compiler configuration so that the native linker is
24468 *** used, and then restart.
24471 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24472 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24473 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24479 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24480 case `$LD -v 2>&1` in
24481 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24485 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24486 *** reliably create shared libraries on SCO systems. Therefore, libtool
24487 *** is disabling shared libraries support. We urge you to upgrade GNU
24488 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24489 *** your PATH or compiler configuration so that the native linker is
24490 *** used, and then restart.
24495 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24496 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24497 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24498 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24507 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24509 hardcode_direct_GCJ=yes
24510 hardcode_shlibpath_var_GCJ=no
24514 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24515 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24516 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24523 if test "$ld_shlibs_GCJ" = no; then
24525 hardcode_libdir_flag_spec_GCJ=
24526 export_dynamic_flag_spec_GCJ=
24527 whole_archive_flag_spec_GCJ=
24530 # PORTME fill in a description of your system's linker (not GNU ld)
24533 allow_undefined_flag_GCJ=unsupported
24534 always_export_symbols_GCJ=yes
24535 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'
24536 # Note: this linker hardcodes the directories in LIBPATH if there
24537 # are no directories specified by -L.
24538 hardcode_minus_L_GCJ=yes
24539 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24540 # Neither direct hardcoding nor static linking is supported with a
24542 hardcode_direct_GCJ=unsupported
24547 if test "$host_cpu" = ia64; then
24548 # On IA64, the linker does run time linking by default, so we don't
24549 # have to do anything special.
24550 aix_use_runtimelinking=no
24551 exp_sym_flag='-Bexport'
24554 # If we're using GNU nm, then we don't want the "-C" option.
24555 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24556 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24557 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'
24559 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'
24561 aix_use_runtimelinking=no
24563 # Test if we are trying to use run time linking or normal
24564 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24565 # need to do runtime linking.
24566 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24567 for ld_flag in $LDFLAGS; do
24568 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24569 aix_use_runtimelinking=yes
24576 exp_sym_flag='-bexport'
24577 no_entry_flag='-bnoentry'
24580 # When large executables or shared objects are built, AIX ld can
24581 # have problems creating the table of contents. If linking a library
24582 # or program results in "error TOC overflow" add -mminimal-toc to
24583 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24584 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24586 archive_cmds_GCJ=''
24587 hardcode_direct_GCJ=yes
24588 hardcode_libdir_separator_GCJ=':'
24589 link_all_deplibs_GCJ=yes
24591 if test "$GCC" = yes; then
24592 case $host_os in aix4.[012]|aix4.[012].*)
24593 # We only want to do this on AIX 4.2 and lower, the check
24594 # below for broken collect2 doesn't work under 4.3+
24595 collect2name=`${CC} -print-prog-name=collect2`
24596 if test -f "$collect2name" && \
24597 strings "$collect2name" | grep resolve_lib_name >/dev/null
24599 # We have reworked collect2
24600 hardcode_direct_GCJ=yes
24602 # We have old collect2
24603 hardcode_direct_GCJ=unsupported
24604 # It fails to find uninstalled libraries when the uninstalled
24605 # path is not listed in the libpath. Setting hardcode_minus_L
24606 # to unsupported forces relinking
24607 hardcode_minus_L_GCJ=yes
24608 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24609 hardcode_libdir_separator_GCJ=
24613 shared_flag='-shared'
24614 if test "$aix_use_runtimelinking" = yes; then
24615 shared_flag="$shared_flag "'${wl}-G'
24619 if test "$host_cpu" = ia64; then
24620 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24621 # chokes on -Wl,-G. The following line is correct:
24624 if test "$aix_use_runtimelinking" = yes; then
24625 shared_flag='${wl}-G'
24627 shared_flag='${wl}-bM:SRE'
24632 # It seems that -bexpall does not export symbols beginning with
24633 # underscore (_), so it is better to generate a list of symbols to export.
24634 always_export_symbols_GCJ=yes
24635 if test "$aix_use_runtimelinking" = yes; then
24636 # Warning - without using the other runtime loading flags (-brtl),
24637 # -berok will link without error, but may produce a broken library.
24638 allow_undefined_flag_GCJ='-berok'
24639 # Determine the default libpath from the value encoded in an empty executable.
24640 cat >conftest.$ac_ext <<_ACEOF
24643 cat confdefs.h >>conftest.$ac_ext
24644 cat >>conftest.$ac_ext <<_ACEOF
24645 /* end confdefs.h. */
24655 rm -f conftest.$ac_objext conftest$ac_exeext
24656 if { (ac_try="$ac_link"
24657 case "(($ac_try" in
24658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24659 *) ac_try_echo=$ac_try;;
24661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24662 (eval "$ac_link") 2>conftest.er1
24664 grep -v '^ *+' conftest.er1 >conftest.err
24666 cat conftest.err >&5
24667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668 (exit $ac_status); } &&
24669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24670 { (case "(($ac_try" in
24671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24672 *) ac_try_echo=$ac_try;;
24674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24675 (eval "$ac_try") 2>&5
24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678 (exit $ac_status); }; } &&
24679 { ac_try='test -s conftest$ac_exeext'
24680 { (case "(($ac_try" in
24681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24682 *) ac_try_echo=$ac_try;;
24684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24685 (eval "$ac_try") 2>&5
24687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688 (exit $ac_status); }; }; then
24690 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24692 # Check for a 64-bit object if we didn't find anything.
24693 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; }
24696 echo "$as_me: failed program was:" >&5
24697 sed 's/^/| /' conftest.$ac_ext >&5
24702 rm -f core conftest.err conftest.$ac_objext \
24703 conftest$ac_exeext conftest.$ac_ext
24704 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24706 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24707 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"
24709 if test "$host_cpu" = ia64; then
24710 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24711 allow_undefined_flag_GCJ="-z nodefs"
24712 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"
24714 # Determine the default libpath from the value encoded in an empty executable.
24715 cat >conftest.$ac_ext <<_ACEOF
24718 cat confdefs.h >>conftest.$ac_ext
24719 cat >>conftest.$ac_ext <<_ACEOF
24720 /* end confdefs.h. */
24730 rm -f conftest.$ac_objext conftest$ac_exeext
24731 if { (ac_try="$ac_link"
24732 case "(($ac_try" in
24733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24734 *) ac_try_echo=$ac_try;;
24736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24737 (eval "$ac_link") 2>conftest.er1
24739 grep -v '^ *+' conftest.er1 >conftest.err
24741 cat conftest.err >&5
24742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 (exit $ac_status); } &&
24744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24745 { (case "(($ac_try" in
24746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24747 *) ac_try_echo=$ac_try;;
24749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24750 (eval "$ac_try") 2>&5
24752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753 (exit $ac_status); }; } &&
24754 { ac_try='test -s conftest$ac_exeext'
24755 { (case "(($ac_try" in
24756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24757 *) ac_try_echo=$ac_try;;
24759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24760 (eval "$ac_try") 2>&5
24762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763 (exit $ac_status); }; }; then
24765 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24767 # Check for a 64-bit object if we didn't find anything.
24768 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; }
24771 echo "$as_me: failed program was:" >&5
24772 sed 's/^/| /' conftest.$ac_ext >&5
24777 rm -f core conftest.err conftest.$ac_objext \
24778 conftest$ac_exeext conftest.$ac_ext
24779 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24781 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24782 # Warning - without using the other run time loading flags,
24783 # -berok will link without error, but may produce a broken library.
24784 no_undefined_flag_GCJ=' ${wl}-bernotok'
24785 allow_undefined_flag_GCJ=' ${wl}-berok'
24786 # Exported symbols can be pulled into shared objects from archives
24787 whole_archive_flag_spec_GCJ='$convenience'
24788 archive_cmds_need_lc_GCJ=yes
24789 # This is similar to how AIX traditionally builds its shared libraries.
24790 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'
24796 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)'
24797 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24798 hardcode_minus_L_GCJ=yes
24799 # see comment about different semantics on the GNU ld section
24804 export_dynamic_flag_spec_GCJ=-rdynamic
24807 cygwin* | mingw* | pw32*)
24808 # When not using gcc, we currently assume that we are using
24809 # Microsoft Visual C++.
24810 # hardcode_libdir_flag_spec is actually meaningless, as there is
24811 # no search path for DLLs.
24812 hardcode_libdir_flag_spec_GCJ=' '
24813 allow_undefined_flag_GCJ=unsupported
24814 # Tell ltmain to make .lib files, not .a files.
24816 # Tell ltmain to make .dll files, not .so files.
24818 # FIXME: Setting linknames here is a bad hack.
24819 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24820 # The linker will automatically build a .lib file if we build a DLL.
24821 old_archive_From_new_cmds_GCJ='true'
24822 # FIXME: Should let the user specify the lib program.
24823 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24824 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24825 enable_shared_with_static_runtimes_GCJ=yes
24828 darwin* | rhapsody*)
24830 rhapsody* | darwin1.[012])
24831 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24834 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24835 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24837 case ${MACOSX_DEPLOYMENT_TARGET} in
24839 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24842 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24848 archive_cmds_need_lc_GCJ=no
24849 hardcode_direct_GCJ=no
24850 hardcode_automatic_GCJ=yes
24851 hardcode_shlibpath_var_GCJ=unsupported
24852 whole_archive_flag_spec_GCJ=''
24853 link_all_deplibs_GCJ=yes
24854 if test "$GCC" = yes ; then
24855 output_verbose_link_cmd='echo'
24856 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24857 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24858 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24859 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}'
24860 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24862 case $cc_basename in
24864 output_verbose_link_cmd='echo'
24865 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24866 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24867 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24868 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}'
24869 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}'
24879 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24880 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24881 hardcode_shlibpath_var_GCJ=no
24888 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24889 # support. Future versions do this automatically, but an explicit c++rt0.o
24890 # does not break anything, and helps significantly (at the cost of a little
24893 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24894 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24895 hardcode_direct_GCJ=yes
24896 hardcode_shlibpath_var_GCJ=no
24899 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24901 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24902 hardcode_direct_GCJ=yes
24903 hardcode_minus_L_GCJ=yes
24904 hardcode_shlibpath_var_GCJ=no
24907 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24908 freebsd* | kfreebsd*-gnu | dragonfly*)
24909 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24910 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24911 hardcode_direct_GCJ=yes
24912 hardcode_shlibpath_var_GCJ=no
24916 if test "$GCC" = yes; then
24917 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'
24919 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'
24921 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24922 hardcode_libdir_separator_GCJ=:
24923 hardcode_direct_GCJ=yes
24925 # hardcode_minus_L: Not really in the search PATH,
24926 # but as the default location of the library.
24927 hardcode_minus_L_GCJ=yes
24928 export_dynamic_flag_spec_GCJ='${wl}-E'
24932 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24933 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24935 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24937 if test "$with_gnu_ld" = no; then
24938 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24939 hardcode_libdir_separator_GCJ=:
24941 hardcode_direct_GCJ=yes
24942 export_dynamic_flag_spec_GCJ='${wl}-E'
24944 # hardcode_minus_L: Not really in the search PATH,
24945 # but as the default location of the library.
24946 hardcode_minus_L_GCJ=yes
24951 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24954 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24957 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24960 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24966 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24969 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24972 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24976 if test "$with_gnu_ld" = no; then
24977 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24978 hardcode_libdir_separator_GCJ=:
24982 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24983 hardcode_direct_GCJ=no
24984 hardcode_shlibpath_var_GCJ=no
24987 hardcode_direct_GCJ=yes
24988 export_dynamic_flag_spec_GCJ='${wl}-E'
24990 # hardcode_minus_L: Not really in the search PATH,
24991 # but as the default location of the library.
24992 hardcode_minus_L_GCJ=yes
24998 irix5* | irix6* | nonstopux*)
24999 if test "$GCC" = yes; then
25000 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'
25002 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'
25003 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25005 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25006 hardcode_libdir_separator_GCJ=:
25007 link_all_deplibs_GCJ=yes
25011 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25012 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25014 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25016 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25017 hardcode_direct_GCJ=yes
25018 hardcode_shlibpath_var_GCJ=no
25022 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25023 hardcode_direct_GCJ=yes
25024 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25025 hardcode_libdir_separator_GCJ=:
25026 hardcode_shlibpath_var_GCJ=no
25030 hardcode_direct_GCJ=yes
25031 hardcode_shlibpath_var_GCJ=no
25032 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25033 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25034 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25035 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25036 export_dynamic_flag_spec_GCJ='${wl}-E'
25039 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25040 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25041 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25044 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25045 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25052 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25053 hardcode_minus_L_GCJ=yes
25054 allow_undefined_flag_GCJ=unsupported
25055 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'
25056 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25060 if test "$GCC" = yes; then
25061 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25062 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'
25064 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25065 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'
25067 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25068 hardcode_libdir_separator_GCJ=:
25071 osf4* | osf5*) # as osf3* with the addition of -msym flag
25072 if test "$GCC" = yes; then
25073 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25074 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'
25075 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25077 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25078 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'
25079 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~
25080 $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'
25082 # Both c and cxx compiler support -rpath directly
25083 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25085 hardcode_libdir_separator_GCJ=:
25089 no_undefined_flag_GCJ=' -z text'
25090 if test "$GCC" = yes; then
25092 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25093 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25094 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25097 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25098 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25099 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25101 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25102 hardcode_shlibpath_var_GCJ=no
25104 solaris2.[0-5] | solaris2.[0-5].*) ;;
25106 # The compiler driver will combine linker options so we
25107 # cannot just pass the convience library names through
25108 # without $wl, iff we do not link with $LD.
25109 # Luckily, gcc supports the same syntax we need for Sun Studio.
25110 # Supported since Solaris 2.6 (maybe 2.5.1?)
25113 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25115 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' ;;
25118 link_all_deplibs_GCJ=yes
25122 if test "x$host_vendor" = xsequent; then
25123 # Use $CC to link under sequent, because it throws in some extra .o
25124 # files that make .init and .fini sections work.
25125 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25127 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25129 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25130 hardcode_direct_GCJ=yes
25131 hardcode_minus_L_GCJ=yes
25132 hardcode_shlibpath_var_GCJ=no
25136 case $host_vendor in
25138 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25139 hardcode_direct_GCJ=yes # is this really true???
25142 ## LD is ld it makes a PLAMLIB
25143 ## CC just makes a GrossModule.
25144 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25145 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25146 hardcode_direct_GCJ=no
25149 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25150 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25153 runpath_var='LD_RUN_PATH'
25154 hardcode_shlibpath_var_GCJ=no
25158 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25159 hardcode_shlibpath_var_GCJ=no
25160 export_dynamic_flag_spec_GCJ='-Bexport'
25164 if test -d /usr/nec; then
25165 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25166 hardcode_shlibpath_var_GCJ=no
25167 runpath_var=LD_RUN_PATH
25168 hardcode_runpath_var=yes
25173 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25174 no_undefined_flag_GCJ='${wl}-z,text'
25175 archive_cmds_need_lc_GCJ=no
25176 hardcode_shlibpath_var_GCJ=no
25177 runpath_var='LD_RUN_PATH'
25179 if test "$GCC" = yes; then
25180 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25181 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25183 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25184 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25188 sysv5* | sco3.2v5* | sco5v6*)
25189 # Note: We can NOT use -z defs as we might desire, because we do not
25190 # link with -lc, and that would cause any symbols used from libc to
25191 # always be unresolved, which means just about no library would
25192 # ever link correctly. If we're not using GNU ld we use -z text
25193 # though, which does catch some bad symbols but isn't as heavy-handed
25195 no_undefined_flag_GCJ='${wl}-z,text'
25196 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25197 archive_cmds_need_lc_GCJ=no
25198 hardcode_shlibpath_var_GCJ=no
25199 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25200 hardcode_libdir_separator_GCJ=':'
25201 link_all_deplibs_GCJ=yes
25202 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25203 runpath_var='LD_RUN_PATH'
25205 if test "$GCC" = yes; then
25206 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25207 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25209 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25210 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25215 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25216 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25217 hardcode_shlibpath_var_GCJ=no
25226 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25227 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25228 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25231 # Do we need to explicitly link libc?
25233 case "x$archive_cmds_need_lc_GCJ" in
25235 # Assume -lc should be added
25236 archive_cmds_need_lc_GCJ=yes
25238 if test "$enable_shared" = yes && test "$GCC" = yes; then
25239 case $archive_cmds_GCJ in
25241 # FIXME: we may have to deal with multi-command sequences.
25244 # Test whether the compiler implicitly links with -lc since on some
25245 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25246 # to ld, don't add -lc before -lgcc.
25247 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25248 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25250 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25253 (eval $ac_compile) 2>&5
25255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25256 (exit $ac_status); } 2>conftest.err; then
25259 libobjs=conftest.$ac_objext
25261 wl=$lt_prog_compiler_wl_GCJ
25262 pic_flag=$lt_prog_compiler_pic_GCJ
25268 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25269 allow_undefined_flag_GCJ=
25270 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25271 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25274 (exit $ac_status); }
25276 archive_cmds_need_lc_GCJ=no
25278 archive_cmds_need_lc_GCJ=yes
25280 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25282 cat conftest.err 1>&5
25285 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25286 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25293 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25294 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25295 library_names_spec=
25296 libname_spec='lib$name'
25300 postuninstall_cmds=
25304 shlibpath_overrides_runpath=unknown
25306 dynamic_linker="$host_os ld.so"
25307 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25308 if test "$GCC" = yes; then
25309 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25310 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25311 # if the path contains ";" then we assume it to be the separator
25312 # otherwise default to the standard path separator (i.e. ":") - it is
25313 # assumed that no part of a normal pathname contains ";" but that should
25314 # okay in the real world where ";" in dirpaths is itself problematic.
25315 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25317 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25320 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25322 need_lib_prefix=unknown
25323 hardcode_into_libs=no
25325 # when you set need_version to no, make sure it does not cause -set_version
25326 # flags to be left without arguments
25327 need_version=unknown
25332 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25333 shlibpath_var=LIBPATH
25335 # AIX 3 has no versioning support, so we append a major version to the name.
25336 soname_spec='${libname}${release}${shared_ext}$major'
25343 hardcode_into_libs=yes
25344 if test "$host_cpu" = ia64; then
25345 # AIX 5 supports IA64
25346 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25347 shlibpath_var=LD_LIBRARY_PATH
25349 # With GCC up to 2.95.x, collect2 would create an import file
25350 # for dependence libraries. The import file would start with
25351 # the line `#! .'. This would cause the generated library to
25352 # depend on `.', always an invalid library. This was fixed in
25353 # development snapshots of GCC prior to 3.0.
25355 aix4 | aix4.[01] | aix4.[01].*)
25356 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25358 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25361 can_build_shared=no
25365 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25366 # soname into executable. Probably we can add versioning support to
25367 # collect2, so additional links can be useful in future.
25368 if test "$aix_use_runtimelinking" = yes; then
25369 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25370 # instead of lib<name>.a to let people know that these are not
25371 # typical AIX shared libraries.
25372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25374 # We preserve .a as extension for shared libraries through AIX4.2
25375 # and later when we are not doing run time linking.
25376 library_names_spec='${libname}${release}.a $libname.a'
25377 soname_spec='${libname}${release}${shared_ext}$major'
25379 shlibpath_var=LIBPATH
25384 library_names_spec='$libname.ixlibrary $libname.a'
25385 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25386 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'
25390 library_names_spec='${libname}${shared_ext}'
25391 dynamic_linker="$host_os ld.so"
25392 shlibpath_var=LIBRARY_PATH
25398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25399 soname_spec='${libname}${release}${shared_ext}$major'
25400 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25401 shlibpath_var=LD_LIBRARY_PATH
25402 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25403 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25404 # the default ld.so.conf also contains /usr/contrib/lib and
25405 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25406 # libtool to hard-code these into programs
25409 cygwin* | mingw* | pw32*)
25410 version_type=windows
25415 case $GCC,$host_os in
25416 yes,cygwin* | yes,mingw* | yes,pw32*)
25417 library_names_spec='$libname.dll.a'
25418 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25419 postinstall_cmds='base_file=`basename \${file}`~
25420 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25421 dldir=$destdir/`dirname \$dlpath`~
25422 test -d \$dldir || mkdir -p \$dldir~
25423 $install_prog $dir/$dlname \$dldir/$dlname~
25424 chmod a+x \$dldir/$dlname'
25425 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25426 dlpath=$dir/\$dldll~
25428 shlibpath_overrides_runpath=yes
25432 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25433 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25434 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25437 # MinGW DLLs use traditional 'lib' prefix
25438 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25439 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25440 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25441 # It is most probably a Windows format PATH printed by
25442 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25443 # path with ; separators, and with drive letters. We can handle the
25444 # drive letters (cygwin fileutils understands them), so leave them,
25445 # especially as we might pass files found there to a mingw objdump,
25446 # which wouldn't understand a cygwinified path. Ahh.
25447 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25449 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25453 # pw32 DLLs use 'pw' prefix rather than 'lib'
25454 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25460 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25463 dynamic_linker='Win32 ld.exe'
25464 # FIXME: first we should search . and the directory the executable is in
25468 darwin* | rhapsody*)
25469 dynamic_linker="$host_os dyld"
25470 version_type=darwin
25473 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25474 soname_spec='${libname}${release}${major}$shared_ext'
25475 shlibpath_overrides_runpath=yes
25476 shlibpath_var=DYLD_LIBRARY_PATH
25477 shrext_cmds='.dylib'
25478 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25479 if test "$GCC" = yes; then
25480 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"`
25482 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25484 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25492 soname_spec='${libname}${release}${shared_ext}$major'
25493 shlibpath_var=LD_LIBRARY_PATH
25504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25505 soname_spec='${libname}${release}${shared_ext}$major'
25506 shlibpath_var=LD_LIBRARY_PATH
25507 shlibpath_overrides_runpath=no
25508 hardcode_into_libs=yes
25509 dynamic_linker='GNU ld.so'
25512 freebsd* | dragonfly*)
25513 # DragonFly does not have aout. When/if they implement a new
25514 # versioning mechanism, adjust this.
25515 if test -x /usr/bin/objformat; then
25516 objformat=`/usr/bin/objformat`
25519 freebsd[123]*) objformat=aout ;;
25520 *) objformat=elf ;;
25523 version_type=freebsd-$objformat
25524 case $version_type in
25526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25531 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25535 shlibpath_var=LD_LIBRARY_PATH
25538 shlibpath_overrides_runpath=yes
25540 freebsd3.[01]* | freebsdelf3.[01]*)
25541 shlibpath_overrides_runpath=yes
25542 hardcode_into_libs=yes
25544 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25545 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25546 shlibpath_overrides_runpath=no
25547 hardcode_into_libs=yes
25549 freebsd*) # from 4.6 on
25550 shlibpath_overrides_runpath=yes
25551 hardcode_into_libs=yes
25560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25561 soname_spec='${libname}${release}${shared_ext}$major'
25562 shlibpath_var=LD_LIBRARY_PATH
25563 hardcode_into_libs=yes
25566 hpux9* | hpux10* | hpux11*)
25567 # Give a soname corresponding to the major version so that dld.sl refuses to
25568 # link against other versions.
25575 hardcode_into_libs=yes
25576 dynamic_linker="$host_os dld.so"
25577 shlibpath_var=LD_LIBRARY_PATH
25578 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25580 soname_spec='${libname}${release}${shared_ext}$major'
25581 if test "X$HPUX_IA64_MODE" = X32; then
25582 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25584 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25586 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25590 hardcode_into_libs=yes
25591 dynamic_linker="$host_os dld.sl"
25592 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25593 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25595 soname_spec='${libname}${release}${shared_ext}$major'
25596 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25597 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25601 dynamic_linker="$host_os dld.sl"
25602 shlibpath_var=SHLIB_PATH
25603 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25605 soname_spec='${libname}${release}${shared_ext}$major'
25608 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25609 postinstall_cmds='chmod 555 $lib'
25616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25617 soname_spec='${libname}${release}${shared_ext}$major'
25618 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25619 shlibpath_var=LD_LIBRARY_PATH
25620 shlibpath_overrides_runpath=no
25621 hardcode_into_libs=yes
25624 irix5* | irix6* | nonstopux*)
25626 nonstopux*) version_type=nonstopux ;;
25628 if test "$lt_cv_prog_gnu_ld" = yes; then
25636 soname_spec='${libname}${release}${shared_ext}$major'
25637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25639 irix5* | nonstopux*)
25640 libsuff= shlibsuff=
25643 case $LD in # libtool.m4 will add one of these switches to LD
25644 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25645 libsuff= shlibsuff= libmagic=32-bit;;
25646 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25647 libsuff=32 shlibsuff=N32 libmagic=N32;;
25648 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25649 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25650 *) libsuff= shlibsuff= libmagic=never-match;;
25654 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25655 shlibpath_overrides_runpath=no
25656 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25657 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25658 hardcode_into_libs=yes
25661 # No shared lib support for Linux oldld, aout, or coff.
25662 linux*oldld* | linux*aout* | linux*coff*)
25666 # This must be Linux ELF.
25671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25672 soname_spec='${libname}${release}${shared_ext}$major'
25673 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25674 shlibpath_var=LD_LIBRARY_PATH
25675 shlibpath_overrides_runpath=no
25676 # This implies no fast_install, which is unacceptable.
25677 # Some rework will be needed to allow for fast_install
25678 # before this can be enabled.
25679 hardcode_into_libs=yes
25681 # Append ld.so.conf contents to the search path
25682 if test -f /etc/ld.so.conf; then
25683 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' ' '`
25684 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25687 # We used to test for /lib/ld.so.1 and disable shared libraries on
25688 # powerpc, because MkLinux only supported shared libraries with the
25689 # GNU dynamic linker. Since this was broken with cross compilers,
25690 # most powerpc-linux boxes support dynamic linking these days and
25691 # people can always --disable-shared, the test was removed, and we
25692 # assume the GNU/Linux dynamic linker is in use.
25693 dynamic_linker='GNU/Linux ld.so'
25700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25701 soname_spec='${libname}${release}${shared_ext}$major'
25702 shlibpath_var=LD_LIBRARY_PATH
25703 shlibpath_overrides_runpath=no
25704 hardcode_into_libs=yes
25705 dynamic_linker='GNU ld.so'
25712 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25715 dynamic_linker='NetBSD (a.out) ld.so'
25717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25718 soname_spec='${libname}${release}${shared_ext}$major'
25719 dynamic_linker='NetBSD ld.elf_so'
25721 shlibpath_var=LD_LIBRARY_PATH
25722 shlibpath_overrides_runpath=yes
25723 hardcode_into_libs=yes
25728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25729 shlibpath_var=LD_LIBRARY_PATH
25730 shlibpath_overrides_runpath=yes
25737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25738 soname_spec='${libname}${release}${shared_ext}$major'
25739 shlibpath_var=LD_LIBRARY_PATH
25740 shlibpath_overrides_runpath=yes
25745 sys_lib_dlsearch_path_spec="/usr/lib"
25747 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25749 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25750 *) need_version=no ;;
25752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25754 shlibpath_var=LD_LIBRARY_PATH
25755 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25757 openbsd2.[89] | openbsd2.[89].*)
25758 shlibpath_overrides_runpath=no
25761 shlibpath_overrides_runpath=yes
25765 shlibpath_overrides_runpath=yes
25770 libname_spec='$name'
25773 library_names_spec='$libname${shared_ext} $libname.a'
25774 dynamic_linker='OS/2 ld.exe'
25775 shlibpath_var=LIBPATH
25778 osf3* | osf4* | osf5*)
25782 soname_spec='${libname}${release}${shared_ext}$major'
25783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25784 shlibpath_var=LD_LIBRARY_PATH
25785 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25786 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25794 soname_spec='${libname}${release}${shared_ext}$major'
25795 shlibpath_var=LD_LIBRARY_PATH
25796 shlibpath_overrides_runpath=yes
25797 hardcode_into_libs=yes
25798 # ldd complains unless libraries are executable
25799 postinstall_cmds='chmod +x $lib'
25804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25805 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25806 shlibpath_var=LD_LIBRARY_PATH
25807 shlibpath_overrides_runpath=yes
25808 if test "$with_gnu_ld" = yes; then
25816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25817 soname_spec='${libname}${release}${shared_ext}$major'
25818 shlibpath_var=LD_LIBRARY_PATH
25819 case $host_vendor in
25821 shlibpath_overrides_runpath=no
25823 export_dynamic_flag_spec='${wl}-Blargedynsym'
25824 runpath_var=LD_RUN_PATH
25832 shlibpath_overrides_runpath=no
25833 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25839 if test -d /usr/nec ;then
25841 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25842 soname_spec='$libname${shared_ext}.$major'
25843 shlibpath_var=LD_LIBRARY_PATH
25847 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25848 version_type=freebsd-elf
25851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25852 soname_spec='${libname}${release}${shared_ext}$major'
25853 shlibpath_var=LD_LIBRARY_PATH
25854 hardcode_into_libs=yes
25855 if test "$with_gnu_ld" = yes; then
25856 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25857 shlibpath_overrides_runpath=no
25859 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25860 shlibpath_overrides_runpath=yes
25863 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25867 sys_lib_dlsearch_path_spec='/usr/lib'
25872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25873 soname_spec='${libname}${release}${shared_ext}$major'
25874 shlibpath_var=LD_LIBRARY_PATH
25881 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25882 echo "${ECHO_T}$dynamic_linker" >&6; }
25883 test "$dynamic_linker" = no && can_build_shared=no
25885 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25886 if test "$GCC" = yes; then
25887 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25890 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25891 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25892 hardcode_action_GCJ=
25893 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25894 test -n "$runpath_var_GCJ" || \
25895 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25897 # We can hardcode non-existant directories.
25898 if test "$hardcode_direct_GCJ" != no &&
25899 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25900 # have to relink, otherwise we might link with an installed library
25901 # when we should be linking with a yet-to-be-installed one
25902 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25903 test "$hardcode_minus_L_GCJ" != no; then
25904 # Linking always hardcodes the temporary library directory.
25905 hardcode_action_GCJ=relink
25907 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25908 hardcode_action_GCJ=immediate
25911 # We cannot hardcode anything, or else we can only hardcode existing
25913 hardcode_action_GCJ=unsupported
25915 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25916 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25918 if test "$hardcode_action_GCJ" = relink; then
25919 # Fast installation is not supported
25920 enable_fast_install=no
25921 elif test "$shlibpath_overrides_runpath" = yes ||
25922 test "$enable_shared" = no; then
25923 # Fast installation is not necessary
25924 enable_fast_install=needless
25928 # The else clause should only fire when bootstrapping the
25929 # libtool distribution, otherwise you forgot to ship ltmain.sh
25930 # with your package, and you will get complaints that there are
25931 # no rules to generate ltmain.sh.
25932 if test -f "$ltmain"; then
25933 # See if we are running on zsh, and set the options which allow our commands through
25934 # without removal of \ escapes.
25935 if test -n "${ZSH_VERSION+set}" ; then
25936 setopt NO_GLOB_SUBST
25938 # Now quote all the things that may contain metacharacters while being
25939 # careful not to overquote the AC_SUBSTed values. We take copies of the
25940 # variables and quote the copies for generation of the libtool script.
25941 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25943 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25944 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25945 deplibs_check_method reload_flag reload_cmds need_locks \
25946 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25947 lt_cv_sys_global_symbol_to_c_name_address \
25948 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25949 old_postinstall_cmds old_postuninstall_cmds \
25953 lt_prog_compiler_wl_GCJ \
25954 lt_prog_compiler_pic_GCJ \
25955 lt_prog_compiler_static_GCJ \
25956 lt_prog_compiler_no_builtin_flag_GCJ \
25957 export_dynamic_flag_spec_GCJ \
25958 thread_safe_flag_spec_GCJ \
25959 whole_archive_flag_spec_GCJ \
25960 enable_shared_with_static_runtimes_GCJ \
25961 old_archive_cmds_GCJ \
25962 old_archive_from_new_cmds_GCJ \
25963 predep_objects_GCJ \
25964 postdep_objects_GCJ \
25967 compiler_lib_search_path_GCJ \
25969 archive_expsym_cmds_GCJ \
25970 postinstall_cmds_GCJ \
25971 postuninstall_cmds_GCJ \
25972 old_archive_from_expsyms_cmds_GCJ \
25973 allow_undefined_flag_GCJ \
25974 no_undefined_flag_GCJ \
25975 export_symbols_cmds_GCJ \
25976 hardcode_libdir_flag_spec_GCJ \
25977 hardcode_libdir_flag_spec_ld_GCJ \
25978 hardcode_libdir_separator_GCJ \
25979 hardcode_automatic_GCJ \
25981 module_expsym_cmds_GCJ \
25982 lt_cv_prog_compiler_c_o_GCJ \
25983 exclude_expsyms_GCJ \
25984 include_expsyms_GCJ; do
25987 old_archive_cmds_GCJ | \
25988 old_archive_from_new_cmds_GCJ | \
25989 archive_cmds_GCJ | \
25990 archive_expsym_cmds_GCJ | \
25991 module_cmds_GCJ | \
25992 module_expsym_cmds_GCJ | \
25993 old_archive_from_expsyms_cmds_GCJ | \
25994 export_symbols_cmds_GCJ | \
25995 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25996 postinstall_cmds | postuninstall_cmds | \
25997 old_postinstall_cmds | old_postuninstall_cmds | \
25998 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25999 # Double-quote double-evaled strings.
26000 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26003 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26009 *'\$0 --fallback-echo"')
26010 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26016 cat <<__EOF__ >> "$cfgfile"
26017 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26019 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26021 # Shell to use when invoking shell scripts.
26024 # Whether or not to build shared libraries.
26025 build_libtool_libs=$enable_shared
26027 # Whether or not to build static libraries.
26028 build_old_libs=$enable_static
26030 # Whether or not to add -lc for building shared libraries.
26031 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26033 # Whether or not to disallow shared libs when runtime libs are static
26034 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26036 # Whether or not to optimize for fast installation.
26037 fast_install=$enable_fast_install
26040 host_alias=$host_alias
26044 # The build system.
26045 build_alias=$build_alias
26049 # An echo program that does not interpret backslashes.
26054 AR_FLAGS=$lt_AR_FLAGS
26059 # LTCC compiler flags.
26060 LTCFLAGS=$lt_LTCFLAGS
26062 # A language-specific compiler.
26063 CC=$lt_compiler_GCJ
26065 # Is the compiler the GNU C compiler?
26071 # The linker used to build libraries.
26074 # Whether we need hard or soft links.
26077 # A BSD-compatible nm program.
26080 # A symbol stripping program
26083 # Used to examine libraries when file_magic_cmd begins "file"
26084 MAGIC_CMD=$MAGIC_CMD
26086 # Used on cygwin: DLL creation program.
26089 # Used on cygwin: object dumper.
26092 # Used on cygwin: assembler.
26095 # The name of the directory that contains temporary libtool files.
26098 # How to create reloadable object files.
26099 reload_flag=$lt_reload_flag
26100 reload_cmds=$lt_reload_cmds
26102 # How to pass a linker flag through the compiler.
26103 wl=$lt_lt_prog_compiler_wl_GCJ
26105 # Object file suffix (normally "o").
26106 objext="$ac_objext"
26108 # Old archive suffix (normally "a").
26111 # Shared library suffix (normally ".so").
26112 shrext_cmds='$shrext_cmds'
26114 # Executable file suffix (normally "").
26117 # Additional compiler flags for building library objects.
26118 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26121 # What is the maximum length of a command?
26122 max_cmd_len=$lt_cv_sys_max_cmd_len
26124 # Does compiler simultaneously support -c and -o options?
26125 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26127 # Must we lock files when doing compilation?
26128 need_locks=$lt_need_locks
26130 # Do we need the lib prefix for modules?
26131 need_lib_prefix=$need_lib_prefix
26133 # Do we need a version for libraries?
26134 need_version=$need_version
26136 # Whether dlopen is supported.
26137 dlopen_support=$enable_dlopen
26139 # Whether dlopen of programs is supported.
26140 dlopen_self=$enable_dlopen_self
26142 # Whether dlopen of statically linked programs is supported.
26143 dlopen_self_static=$enable_dlopen_self_static
26145 # Compiler flag to prevent dynamic linking.
26146 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26148 # Compiler flag to turn off builtin functions.
26149 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26151 # Compiler flag to allow reflexive dlopens.
26152 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26154 # Compiler flag to generate shared objects directly from archives.
26155 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26157 # Compiler flag to generate thread-safe objects.
26158 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26160 # Library versioning type.
26161 version_type=$version_type
26163 # Format of library name prefix.
26164 libname_spec=$lt_libname_spec
26166 # List of archive names. First name is the real one, the rest are links.
26167 # The last name is the one that the linker finds with -lNAME.
26168 library_names_spec=$lt_library_names_spec
26170 # The coded name of the library, if different from the real name.
26171 soname_spec=$lt_soname_spec
26173 # Commands used to build and install an old-style archive.
26175 old_archive_cmds=$lt_old_archive_cmds_GCJ
26176 old_postinstall_cmds=$lt_old_postinstall_cmds
26177 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26179 # Create an old-style archive from a shared archive.
26180 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26182 # Create a temporary old-style archive to link instead of a shared archive.
26183 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26185 # Commands used to build and install a shared archive.
26186 archive_cmds=$lt_archive_cmds_GCJ
26187 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26188 postinstall_cmds=$lt_postinstall_cmds
26189 postuninstall_cmds=$lt_postuninstall_cmds
26191 # Commands used to build a loadable module (assumed same as above if empty)
26192 module_cmds=$lt_module_cmds_GCJ
26193 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26195 # Commands to strip libraries.
26196 old_striplib=$lt_old_striplib
26197 striplib=$lt_striplib
26199 # Dependencies to place before the objects being linked to create a
26201 predep_objects=$lt_predep_objects_GCJ
26203 # Dependencies to place after the objects being linked to create a
26205 postdep_objects=$lt_postdep_objects_GCJ
26207 # Dependencies to place before the objects being linked to create a
26209 predeps=$lt_predeps_GCJ
26211 # Dependencies to place after the objects being linked to create a
26213 postdeps=$lt_postdeps_GCJ
26215 # The library search path used internally by the compiler when linking
26216 # a shared library.
26217 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26219 # Method to check whether dependent libraries are shared objects.
26220 deplibs_check_method=$lt_deplibs_check_method
26222 # Command to use when deplibs_check_method == file_magic.
26223 file_magic_cmd=$lt_file_magic_cmd
26225 # Flag that allows shared libraries with undefined symbols to be built.
26226 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26228 # Flag that forces no undefined symbols.
26229 no_undefined_flag=$lt_no_undefined_flag_GCJ
26231 # Commands used to finish a libtool library installation in a directory.
26232 finish_cmds=$lt_finish_cmds
26234 # Same as above, but a single script fragment to be evaled but not shown.
26235 finish_eval=$lt_finish_eval
26237 # Take the output of nm and produce a listing of raw symbols and C names.
26238 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26240 # Transform the output of nm in a proper C declaration
26241 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26243 # Transform the output of nm in a C name address pair
26244 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26246 # This is the shared library runtime path variable.
26247 runpath_var=$runpath_var
26249 # This is the shared library path variable.
26250 shlibpath_var=$shlibpath_var
26252 # Is shlibpath searched before the hard-coded library search path?
26253 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26255 # How to hardcode a shared library path into an executable.
26256 hardcode_action=$hardcode_action_GCJ
26258 # Whether we should hardcode library paths into libraries.
26259 hardcode_into_libs=$hardcode_into_libs
26261 # Flag to hardcode \$libdir into a binary during linking.
26262 # This must work even if \$libdir does not exist.
26263 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26265 # If ld is used when linking, flag to hardcode \$libdir into
26266 # a binary during linking. This must work even if \$libdir does
26268 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26270 # Whether we need a single -rpath flag with a separated argument.
26271 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26273 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26274 # resulting binary.
26275 hardcode_direct=$hardcode_direct_GCJ
26277 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26278 # resulting binary.
26279 hardcode_minus_L=$hardcode_minus_L_GCJ
26281 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26282 # the resulting binary.
26283 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26285 # Set to yes if building a shared library automatically hardcodes DIR into the library
26286 # and all subsequent libraries and executables linked against it.
26287 hardcode_automatic=$hardcode_automatic_GCJ
26289 # Variables whose values should be saved in libtool wrapper scripts and
26290 # restored at relink time.
26291 variables_saved_for_relink="$variables_saved_for_relink"
26293 # Whether libtool must link a program against all its dependency libraries.
26294 link_all_deplibs=$link_all_deplibs_GCJ
26296 # Compile-time system search path for libraries
26297 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26299 # Run-time system search path for libraries
26300 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26302 # Fix the shell variable \$srcfile for the compiler.
26303 fix_srcfile_path="$fix_srcfile_path_GCJ"
26305 # Set to yes if exported symbols are required.
26306 always_export_symbols=$always_export_symbols_GCJ
26308 # The commands to list exported symbols.
26309 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26311 # The commands to extract the exported symbol list from a shared archive.
26312 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26314 # Symbols that should not be listed in the preloaded symbols.
26315 exclude_expsyms=$lt_exclude_expsyms_GCJ
26317 # Symbols that must always be exported.
26318 include_expsyms=$lt_include_expsyms_GCJ
26320 # ### END LIBTOOL TAG CONFIG: $tagname
26326 # If there is no Makefile yet, we rely on a make rule to execute
26327 # `config.status --recheck' to rerun these tests and create the
26328 # libtool script then.
26329 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26330 if test -f "$ltmain_in"; then
26331 test -f Makefile && make "$ltmain"
26337 ac_cpp='$CPP $CPPFLAGS'
26338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26351 ac_cpp='$CPP $CPPFLAGS'
26352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26357 # Source file extension for RC test sources.
26360 # Object file extension for compiled RC test sources.
26364 # Code to be used in simple compile tests
26365 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26367 # Code to be used in simple link tests
26368 lt_simple_link_test_code="$lt_simple_compile_test_code"
26370 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26372 # If no C compiler was specified, use CC.
26375 # If no C compiler flags were specified, use CFLAGS.
26376 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26378 # Allow CC to be a program name with arguments.
26382 # save warnings/boilerplate of simple test code
26383 ac_outfile=conftest.$ac_objext
26384 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26385 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26386 _lt_compiler_boilerplate=`cat conftest.err`
26389 ac_outfile=conftest.$ac_objext
26390 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26391 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26392 _lt_linker_boilerplate=`cat conftest.err`
26396 # Allow CC to be a program name with arguments.
26401 for cc_temp in $compiler""; do
26403 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26404 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26409 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26411 lt_cv_prog_compiler_c_o_RC=yes
26413 # The else clause should only fire when bootstrapping the
26414 # libtool distribution, otherwise you forgot to ship ltmain.sh
26415 # with your package, and you will get complaints that there are
26416 # no rules to generate ltmain.sh.
26417 if test -f "$ltmain"; then
26418 # See if we are running on zsh, and set the options which allow our commands through
26419 # without removal of \ escapes.
26420 if test -n "${ZSH_VERSION+set}" ; then
26421 setopt NO_GLOB_SUBST
26423 # Now quote all the things that may contain metacharacters while being
26424 # careful not to overquote the AC_SUBSTed values. We take copies of the
26425 # variables and quote the copies for generation of the libtool script.
26426 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26428 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26429 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26430 deplibs_check_method reload_flag reload_cmds need_locks \
26431 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26432 lt_cv_sys_global_symbol_to_c_name_address \
26433 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26434 old_postinstall_cmds old_postuninstall_cmds \
26438 lt_prog_compiler_wl_RC \
26439 lt_prog_compiler_pic_RC \
26440 lt_prog_compiler_static_RC \
26441 lt_prog_compiler_no_builtin_flag_RC \
26442 export_dynamic_flag_spec_RC \
26443 thread_safe_flag_spec_RC \
26444 whole_archive_flag_spec_RC \
26445 enable_shared_with_static_runtimes_RC \
26446 old_archive_cmds_RC \
26447 old_archive_from_new_cmds_RC \
26448 predep_objects_RC \
26449 postdep_objects_RC \
26452 compiler_lib_search_path_RC \
26454 archive_expsym_cmds_RC \
26455 postinstall_cmds_RC \
26456 postuninstall_cmds_RC \
26457 old_archive_from_expsyms_cmds_RC \
26458 allow_undefined_flag_RC \
26459 no_undefined_flag_RC \
26460 export_symbols_cmds_RC \
26461 hardcode_libdir_flag_spec_RC \
26462 hardcode_libdir_flag_spec_ld_RC \
26463 hardcode_libdir_separator_RC \
26464 hardcode_automatic_RC \
26466 module_expsym_cmds_RC \
26467 lt_cv_prog_compiler_c_o_RC \
26468 exclude_expsyms_RC \
26469 include_expsyms_RC; do
26472 old_archive_cmds_RC | \
26473 old_archive_from_new_cmds_RC | \
26474 archive_cmds_RC | \
26475 archive_expsym_cmds_RC | \
26477 module_expsym_cmds_RC | \
26478 old_archive_from_expsyms_cmds_RC | \
26479 export_symbols_cmds_RC | \
26480 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26481 postinstall_cmds | postuninstall_cmds | \
26482 old_postinstall_cmds | old_postuninstall_cmds | \
26483 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26484 # Double-quote double-evaled strings.
26485 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26488 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26494 *'\$0 --fallback-echo"')
26495 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26501 cat <<__EOF__ >> "$cfgfile"
26502 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26504 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26506 # Shell to use when invoking shell scripts.
26509 # Whether or not to build shared libraries.
26510 build_libtool_libs=$enable_shared
26512 # Whether or not to build static libraries.
26513 build_old_libs=$enable_static
26515 # Whether or not to add -lc for building shared libraries.
26516 build_libtool_need_lc=$archive_cmds_need_lc_RC
26518 # Whether or not to disallow shared libs when runtime libs are static
26519 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26521 # Whether or not to optimize for fast installation.
26522 fast_install=$enable_fast_install
26525 host_alias=$host_alias
26529 # The build system.
26530 build_alias=$build_alias
26534 # An echo program that does not interpret backslashes.
26539 AR_FLAGS=$lt_AR_FLAGS
26544 # LTCC compiler flags.
26545 LTCFLAGS=$lt_LTCFLAGS
26547 # A language-specific compiler.
26550 # Is the compiler the GNU C compiler?
26556 # The linker used to build libraries.
26559 # Whether we need hard or soft links.
26562 # A BSD-compatible nm program.
26565 # A symbol stripping program
26568 # Used to examine libraries when file_magic_cmd begins "file"
26569 MAGIC_CMD=$MAGIC_CMD
26571 # Used on cygwin: DLL creation program.
26574 # Used on cygwin: object dumper.
26577 # Used on cygwin: assembler.
26580 # The name of the directory that contains temporary libtool files.
26583 # How to create reloadable object files.
26584 reload_flag=$lt_reload_flag
26585 reload_cmds=$lt_reload_cmds
26587 # How to pass a linker flag through the compiler.
26588 wl=$lt_lt_prog_compiler_wl_RC
26590 # Object file suffix (normally "o").
26591 objext="$ac_objext"
26593 # Old archive suffix (normally "a").
26596 # Shared library suffix (normally ".so").
26597 shrext_cmds='$shrext_cmds'
26599 # Executable file suffix (normally "").
26602 # Additional compiler flags for building library objects.
26603 pic_flag=$lt_lt_prog_compiler_pic_RC
26606 # What is the maximum length of a command?
26607 max_cmd_len=$lt_cv_sys_max_cmd_len
26609 # Does compiler simultaneously support -c and -o options?
26610 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26612 # Must we lock files when doing compilation?
26613 need_locks=$lt_need_locks
26615 # Do we need the lib prefix for modules?
26616 need_lib_prefix=$need_lib_prefix
26618 # Do we need a version for libraries?
26619 need_version=$need_version
26621 # Whether dlopen is supported.
26622 dlopen_support=$enable_dlopen
26624 # Whether dlopen of programs is supported.
26625 dlopen_self=$enable_dlopen_self
26627 # Whether dlopen of statically linked programs is supported.
26628 dlopen_self_static=$enable_dlopen_self_static
26630 # Compiler flag to prevent dynamic linking.
26631 link_static_flag=$lt_lt_prog_compiler_static_RC
26633 # Compiler flag to turn off builtin functions.
26634 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26636 # Compiler flag to allow reflexive dlopens.
26637 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26639 # Compiler flag to generate shared objects directly from archives.
26640 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26642 # Compiler flag to generate thread-safe objects.
26643 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26645 # Library versioning type.
26646 version_type=$version_type
26648 # Format of library name prefix.
26649 libname_spec=$lt_libname_spec
26651 # List of archive names. First name is the real one, the rest are links.
26652 # The last name is the one that the linker finds with -lNAME.
26653 library_names_spec=$lt_library_names_spec
26655 # The coded name of the library, if different from the real name.
26656 soname_spec=$lt_soname_spec
26658 # Commands used to build and install an old-style archive.
26660 old_archive_cmds=$lt_old_archive_cmds_RC
26661 old_postinstall_cmds=$lt_old_postinstall_cmds
26662 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26664 # Create an old-style archive from a shared archive.
26665 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26667 # Create a temporary old-style archive to link instead of a shared archive.
26668 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26670 # Commands used to build and install a shared archive.
26671 archive_cmds=$lt_archive_cmds_RC
26672 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26673 postinstall_cmds=$lt_postinstall_cmds
26674 postuninstall_cmds=$lt_postuninstall_cmds
26676 # Commands used to build a loadable module (assumed same as above if empty)
26677 module_cmds=$lt_module_cmds_RC
26678 module_expsym_cmds=$lt_module_expsym_cmds_RC
26680 # Commands to strip libraries.
26681 old_striplib=$lt_old_striplib
26682 striplib=$lt_striplib
26684 # Dependencies to place before the objects being linked to create a
26686 predep_objects=$lt_predep_objects_RC
26688 # Dependencies to place after the objects being linked to create a
26690 postdep_objects=$lt_postdep_objects_RC
26692 # Dependencies to place before the objects being linked to create a
26694 predeps=$lt_predeps_RC
26696 # Dependencies to place after the objects being linked to create a
26698 postdeps=$lt_postdeps_RC
26700 # The library search path used internally by the compiler when linking
26701 # a shared library.
26702 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26704 # Method to check whether dependent libraries are shared objects.
26705 deplibs_check_method=$lt_deplibs_check_method
26707 # Command to use when deplibs_check_method == file_magic.
26708 file_magic_cmd=$lt_file_magic_cmd
26710 # Flag that allows shared libraries with undefined symbols to be built.
26711 allow_undefined_flag=$lt_allow_undefined_flag_RC
26713 # Flag that forces no undefined symbols.
26714 no_undefined_flag=$lt_no_undefined_flag_RC
26716 # Commands used to finish a libtool library installation in a directory.
26717 finish_cmds=$lt_finish_cmds
26719 # Same as above, but a single script fragment to be evaled but not shown.
26720 finish_eval=$lt_finish_eval
26722 # Take the output of nm and produce a listing of raw symbols and C names.
26723 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26725 # Transform the output of nm in a proper C declaration
26726 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26728 # Transform the output of nm in a C name address pair
26729 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26731 # This is the shared library runtime path variable.
26732 runpath_var=$runpath_var
26734 # This is the shared library path variable.
26735 shlibpath_var=$shlibpath_var
26737 # Is shlibpath searched before the hard-coded library search path?
26738 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26740 # How to hardcode a shared library path into an executable.
26741 hardcode_action=$hardcode_action_RC
26743 # Whether we should hardcode library paths into libraries.
26744 hardcode_into_libs=$hardcode_into_libs
26746 # Flag to hardcode \$libdir into a binary during linking.
26747 # This must work even if \$libdir does not exist.
26748 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26750 # If ld is used when linking, flag to hardcode \$libdir into
26751 # a binary during linking. This must work even if \$libdir does
26753 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26755 # Whether we need a single -rpath flag with a separated argument.
26756 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26758 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26759 # resulting binary.
26760 hardcode_direct=$hardcode_direct_RC
26762 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26763 # resulting binary.
26764 hardcode_minus_L=$hardcode_minus_L_RC
26766 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26767 # the resulting binary.
26768 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26770 # Set to yes if building a shared library automatically hardcodes DIR into the library
26771 # and all subsequent libraries and executables linked against it.
26772 hardcode_automatic=$hardcode_automatic_RC
26774 # Variables whose values should be saved in libtool wrapper scripts and
26775 # restored at relink time.
26776 variables_saved_for_relink="$variables_saved_for_relink"
26778 # Whether libtool must link a program against all its dependency libraries.
26779 link_all_deplibs=$link_all_deplibs_RC
26781 # Compile-time system search path for libraries
26782 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26784 # Run-time system search path for libraries
26785 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26787 # Fix the shell variable \$srcfile for the compiler.
26788 fix_srcfile_path="$fix_srcfile_path_RC"
26790 # Set to yes if exported symbols are required.
26791 always_export_symbols=$always_export_symbols_RC
26793 # The commands to list exported symbols.
26794 export_symbols_cmds=$lt_export_symbols_cmds_RC
26796 # The commands to extract the exported symbol list from a shared archive.
26797 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26799 # Symbols that should not be listed in the preloaded symbols.
26800 exclude_expsyms=$lt_exclude_expsyms_RC
26802 # Symbols that must always be exported.
26803 include_expsyms=$lt_include_expsyms_RC
26805 # ### END LIBTOOL TAG CONFIG: $tagname
26811 # If there is no Makefile yet, we rely on a make rule to execute
26812 # `config.status --recheck' to rerun these tests and create the
26813 # libtool script then.
26814 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26815 if test -f "$ltmain_in"; then
26816 test -f Makefile && make "$ltmain"
26822 ac_cpp='$CPP $CPPFLAGS'
26823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26832 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26833 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26834 { (exit 1); exit 1; }; }
26838 # Append the new tag name to the list of available tags.
26839 if test -n "$tagname" ; then
26840 available_tags="$available_tags $tagname"
26846 # Now substitute the updated list of available tags.
26847 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26848 mv "${ofile}T" "$ofile"
26852 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26853 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26854 { (exit 1); exit 1; }; }
26860 # This can be used to rebuild libtool when needed
26861 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26863 # Always use our own libtool.
26864 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26866 # Prevent multiple expansion
26888 if test "$lt_cv_dlopen_self" = "yes" ; then
26890 cat >>confdefs.h <<\_ACEOF
26891 #define CAN_DLOPEN_SELF 1
26896 if test "$WITH_LLVMGCCDIR" = "default" ; then
26897 LLVMGCC="llvm-gcc${EXEEXT}"
26898 LLVMGXX="llvm-g++${EXEEXT}"
26899 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26900 set dummy $LLVMGCC; ac_word=$2
26901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26903 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26904 echo $ECHO_N "(cached) $ECHO_C" >&6
26908 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26912 for as_dir in $PATH
26915 test -z "$as_dir" && as_dir=.
26916 for ac_exec_ext in '' $ac_executable_extensions; do
26917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26918 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26929 LLVMGCC=$ac_cv_path_LLVMGCC
26930 if test -n "$LLVMGCC"; then
26931 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26932 echo "${ECHO_T}$LLVMGCC" >&6; }
26934 { echo "$as_me:$LINENO: result: no" >&5
26935 echo "${ECHO_T}no" >&6; }
26939 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26940 set dummy $LLVMGXX; ac_word=$2
26941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26943 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26944 echo $ECHO_N "(cached) $ECHO_C" >&6
26948 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26952 for as_dir in $PATH
26955 test -z "$as_dir" && as_dir=.
26956 for ac_exec_ext in '' $ac_executable_extensions; do
26957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26958 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26969 LLVMGXX=$ac_cv_path_LLVMGXX
26970 if test -n "$LLVMGXX"; then
26971 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26972 echo "${ECHO_T}$LLVMGXX" >&6; }
26974 { echo "$as_me:$LINENO: result: no" >&5
26975 echo "${ECHO_T}no" >&6; }
26980 if test -z "$LLVMGCC"; then
26981 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26983 if test -z "$LLVMGXX"; then
26984 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26992 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26993 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27006 if test "$GCC" != "yes" && test "$ICC" != "yes"
27008 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27009 echo "$as_me: error: gcc|icc required but not found" >&2;}
27010 { (exit 1); exit 1; }; }
27013 if test "$GXX" != "yes" && test "$IXX" != "yes"
27015 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27016 echo "$as_me: error: g++|icc required but not found" >&2;}
27017 { (exit 1); exit 1; }; }
27020 if test "$GCC" = "yes"
27022 cat >conftest.$ac_ext <<_ACEOF
27023 #if !defined(__GNUC__) || __GNUC__ < 3
27024 #error Unsupported GCC version
27028 rm -f conftest.$ac_objext
27029 if { (ac_try="$ac_compile"
27030 case "(($ac_try" in
27031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27032 *) ac_try_echo=$ac_try;;
27034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27035 (eval "$ac_compile") 2>conftest.er1
27037 grep -v '^ *+' conftest.er1 >conftest.err
27039 cat conftest.err >&5
27040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); } &&
27042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27043 { (case "(($ac_try" in
27044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27045 *) ac_try_echo=$ac_try;;
27047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27048 (eval "$ac_try") 2>&5
27050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051 (exit $ac_status); }; } &&
27052 { ac_try='test -s conftest.$ac_objext'
27053 { (case "(($ac_try" in
27054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27055 *) ac_try_echo=$ac_try;;
27057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27058 (eval "$ac_try") 2>&5
27060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061 (exit $ac_status); }; }; then
27064 echo "$as_me: failed program was:" >&5
27065 sed 's/^/| /' conftest.$ac_ext >&5
27067 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27068 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27069 { (exit 1); exit 1; }; }
27072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27075 if test -z "$llvm_cv_gnu_make_command"
27077 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27078 echo "$as_me: error: GNU Make required but not found" >&2;}
27079 { (exit 1); exit 1; }; }
27082 { echo "$as_me:$LINENO: result: ok" >&5
27083 echo "${ECHO_T}ok" >&6; }
27087 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27088 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27089 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27090 echo $ECHO_N "(cached) $ECHO_C" >&6
27092 ac_check_lib_save_LIBS=$LIBS
27094 cat >conftest.$ac_ext <<_ACEOF
27097 cat confdefs.h >>conftest.$ac_ext
27098 cat >>conftest.$ac_ext <<_ACEOF
27099 /* end confdefs.h. */
27101 /* Override any GCC internal prototype to avoid an error.
27102 Use char because int might match the return type of a GCC
27103 builtin and then its argument prototype would still apply. */
27111 return elf_begin ();
27116 rm -f conftest.$ac_objext conftest$ac_exeext
27117 if { (ac_try="$ac_link"
27118 case "(($ac_try" in
27119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27120 *) ac_try_echo=$ac_try;;
27122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27123 (eval "$ac_link") 2>conftest.er1
27125 grep -v '^ *+' conftest.er1 >conftest.err
27127 cat conftest.err >&5
27128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129 (exit $ac_status); } &&
27130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27131 { (case "(($ac_try" in
27132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27133 *) ac_try_echo=$ac_try;;
27135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27136 (eval "$ac_try") 2>&5
27138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139 (exit $ac_status); }; } &&
27140 { ac_try='test -s conftest$ac_exeext'
27141 { (case "(($ac_try" in
27142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27143 *) ac_try_echo=$ac_try;;
27145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27146 (eval "$ac_try") 2>&5
27148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149 (exit $ac_status); }; }; then
27150 ac_cv_lib_elf_elf_begin=yes
27152 echo "$as_me: failed program was:" >&5
27153 sed 's/^/| /' conftest.$ac_ext >&5
27155 ac_cv_lib_elf_elf_begin=no
27158 rm -f core conftest.err conftest.$ac_objext \
27159 conftest$ac_exeext conftest.$ac_ext
27160 LIBS=$ac_check_lib_save_LIBS
27162 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27163 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27164 if test $ac_cv_lib_elf_elf_begin = yes; then
27165 cat >>confdefs.h <<_ACEOF
27166 #define HAVE_LIBELF 1
27174 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27175 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27176 if test "${ac_cv_lib_m_sin+set}" = set; then
27177 echo $ECHO_N "(cached) $ECHO_C" >&6
27179 ac_check_lib_save_LIBS=$LIBS
27181 cat >conftest.$ac_ext <<_ACEOF
27184 cat confdefs.h >>conftest.$ac_ext
27185 cat >>conftest.$ac_ext <<_ACEOF
27186 /* end confdefs.h. */
27188 /* Override any GCC internal prototype to avoid an error.
27189 Use char because int might match the return type of a GCC
27190 builtin and then its argument prototype would still apply. */
27203 rm -f conftest.$ac_objext conftest$ac_exeext
27204 if { (ac_try="$ac_link"
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_link") 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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27218 { (case "(($ac_try" in
27219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27220 *) ac_try_echo=$ac_try;;
27222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27223 (eval "$ac_try") 2>&5
27225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226 (exit $ac_status); }; } &&
27227 { ac_try='test -s conftest$ac_exeext'
27228 { (case "(($ac_try" in
27229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27230 *) ac_try_echo=$ac_try;;
27232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27233 (eval "$ac_try") 2>&5
27235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236 (exit $ac_status); }; }; then
27237 ac_cv_lib_m_sin=yes
27239 echo "$as_me: failed program was:" >&5
27240 sed 's/^/| /' conftest.$ac_ext >&5
27245 rm -f core conftest.err conftest.$ac_objext \
27246 conftest$ac_exeext conftest.$ac_ext
27247 LIBS=$ac_check_lib_save_LIBS
27249 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27250 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27251 if test $ac_cv_lib_m_sin = yes; then
27252 cat >>confdefs.h <<_ACEOF
27253 #define HAVE_LIBM 1
27260 if test "$llvm_cv_os_type" = "MingW" ; then
27262 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27263 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27264 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27265 echo $ECHO_N "(cached) $ECHO_C" >&6
27267 ac_check_lib_save_LIBS=$LIBS
27268 LIBS="-limagehlp $LIBS"
27269 cat >conftest.$ac_ext <<_ACEOF
27272 cat confdefs.h >>conftest.$ac_ext
27273 cat >>conftest.$ac_ext <<_ACEOF
27274 /* end confdefs.h. */
27285 rm -f conftest.$ac_objext conftest$ac_exeext
27286 if { (ac_try="$ac_link"
27287 case "(($ac_try" in
27288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27289 *) ac_try_echo=$ac_try;;
27291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27292 (eval "$ac_link") 2>conftest.er1
27294 grep -v '^ *+' conftest.er1 >conftest.err
27296 cat conftest.err >&5
27297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298 (exit $ac_status); } &&
27299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27300 { (case "(($ac_try" in
27301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27302 *) ac_try_echo=$ac_try;;
27304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27305 (eval "$ac_try") 2>&5
27307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308 (exit $ac_status); }; } &&
27309 { ac_try='test -s conftest$ac_exeext'
27310 { (case "(($ac_try" in
27311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27312 *) ac_try_echo=$ac_try;;
27314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27315 (eval "$ac_try") 2>&5
27317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318 (exit $ac_status); }; }; then
27319 ac_cv_lib_imagehlp_main=yes
27321 echo "$as_me: failed program was:" >&5
27322 sed 's/^/| /' conftest.$ac_ext >&5
27324 ac_cv_lib_imagehlp_main=no
27327 rm -f core conftest.err conftest.$ac_objext \
27328 conftest$ac_exeext conftest.$ac_ext
27329 LIBS=$ac_check_lib_save_LIBS
27331 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27332 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27333 if test $ac_cv_lib_imagehlp_main = yes; then
27334 cat >>confdefs.h <<_ACEOF
27335 #define HAVE_LIBIMAGEHLP 1
27338 LIBS="-limagehlp $LIBS"
27343 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27344 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27345 if test "${ac_cv_lib_psapi_main+set}" = set; then
27346 echo $ECHO_N "(cached) $ECHO_C" >&6
27348 ac_check_lib_save_LIBS=$LIBS
27349 LIBS="-lpsapi $LIBS"
27350 cat >conftest.$ac_ext <<_ACEOF
27353 cat confdefs.h >>conftest.$ac_ext
27354 cat >>conftest.$ac_ext <<_ACEOF
27355 /* end confdefs.h. */
27366 rm -f conftest.$ac_objext conftest$ac_exeext
27367 if { (ac_try="$ac_link"
27368 case "(($ac_try" in
27369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27370 *) ac_try_echo=$ac_try;;
27372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27373 (eval "$ac_link") 2>conftest.er1
27375 grep -v '^ *+' conftest.er1 >conftest.err
27377 cat conftest.err >&5
27378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379 (exit $ac_status); } &&
27380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27381 { (case "(($ac_try" in
27382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27383 *) ac_try_echo=$ac_try;;
27385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27386 (eval "$ac_try") 2>&5
27388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389 (exit $ac_status); }; } &&
27390 { ac_try='test -s conftest$ac_exeext'
27391 { (case "(($ac_try" in
27392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27393 *) ac_try_echo=$ac_try;;
27395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27396 (eval "$ac_try") 2>&5
27398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399 (exit $ac_status); }; }; then
27400 ac_cv_lib_psapi_main=yes
27402 echo "$as_me: failed program was:" >&5
27403 sed 's/^/| /' conftest.$ac_ext >&5
27405 ac_cv_lib_psapi_main=no
27408 rm -f core conftest.err conftest.$ac_objext \
27409 conftest$ac_exeext conftest.$ac_ext
27410 LIBS=$ac_check_lib_save_LIBS
27412 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27413 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27414 if test $ac_cv_lib_psapi_main = yes; then
27415 cat >>confdefs.h <<_ACEOF
27416 #define HAVE_LIBPSAPI 1
27419 LIBS="-lpsapi $LIBS"
27425 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27426 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27427 if test "${ac_cv_search_dlopen+set}" = set; then
27428 echo $ECHO_N "(cached) $ECHO_C" >&6
27430 ac_func_search_save_LIBS=$LIBS
27431 cat >conftest.$ac_ext <<_ACEOF
27434 cat confdefs.h >>conftest.$ac_ext
27435 cat >>conftest.$ac_ext <<_ACEOF
27436 /* end confdefs.h. */
27438 /* Override any GCC internal prototype to avoid an error.
27439 Use char because int might match the return type of a GCC
27440 builtin and then its argument prototype would still apply. */
27453 for ac_lib in '' dl; do
27454 if test -z "$ac_lib"; then
27455 ac_res="none required"
27458 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27460 rm -f conftest.$ac_objext conftest$ac_exeext
27461 if { (ac_try="$ac_link"
27462 case "(($ac_try" in
27463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27464 *) ac_try_echo=$ac_try;;
27466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27467 (eval "$ac_link") 2>conftest.er1
27469 grep -v '^ *+' conftest.er1 >conftest.err
27471 cat conftest.err >&5
27472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473 (exit $ac_status); } &&
27474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27475 { (case "(($ac_try" in
27476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27477 *) ac_try_echo=$ac_try;;
27479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27480 (eval "$ac_try") 2>&5
27482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483 (exit $ac_status); }; } &&
27484 { ac_try='test -s conftest$ac_exeext'
27485 { (case "(($ac_try" in
27486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27487 *) ac_try_echo=$ac_try;;
27489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27490 (eval "$ac_try") 2>&5
27492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27493 (exit $ac_status); }; }; then
27494 ac_cv_search_dlopen=$ac_res
27496 echo "$as_me: failed program was:" >&5
27497 sed 's/^/| /' conftest.$ac_ext >&5
27502 rm -f core conftest.err conftest.$ac_objext \
27504 if test "${ac_cv_search_dlopen+set}" = set; then
27508 if test "${ac_cv_search_dlopen+set}" = set; then
27511 ac_cv_search_dlopen=no
27513 rm conftest.$ac_ext
27514 LIBS=$ac_func_search_save_LIBS
27516 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27517 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27518 ac_res=$ac_cv_search_dlopen
27519 if test "$ac_res" != no; then
27520 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27522 cat >>confdefs.h <<\_ACEOF
27523 #define HAVE_DLOPEN 1
27527 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27528 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27532 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27533 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27534 if test "${ac_cv_search_mallinfo+set}" = set; then
27535 echo $ECHO_N "(cached) $ECHO_C" >&6
27537 ac_func_search_save_LIBS=$LIBS
27538 cat >conftest.$ac_ext <<_ACEOF
27541 cat confdefs.h >>conftest.$ac_ext
27542 cat >>conftest.$ac_ext <<_ACEOF
27543 /* end confdefs.h. */
27545 /* Override any GCC internal prototype to avoid an error.
27546 Use char because int might match the return type of a GCC
27547 builtin and then its argument prototype would still apply. */
27555 return mallinfo ();
27560 for ac_lib in '' malloc; do
27561 if test -z "$ac_lib"; then
27562 ac_res="none required"
27565 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27567 rm -f conftest.$ac_objext conftest$ac_exeext
27568 if { (ac_try="$ac_link"
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_link") 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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27582 { (case "(($ac_try" in
27583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27584 *) ac_try_echo=$ac_try;;
27586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27587 (eval "$ac_try") 2>&5
27589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590 (exit $ac_status); }; } &&
27591 { ac_try='test -s conftest$ac_exeext'
27592 { (case "(($ac_try" in
27593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27594 *) ac_try_echo=$ac_try;;
27596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27597 (eval "$ac_try") 2>&5
27599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600 (exit $ac_status); }; }; then
27601 ac_cv_search_mallinfo=$ac_res
27603 echo "$as_me: failed program was:" >&5
27604 sed 's/^/| /' conftest.$ac_ext >&5
27609 rm -f core conftest.err conftest.$ac_objext \
27611 if test "${ac_cv_search_mallinfo+set}" = set; then
27615 if test "${ac_cv_search_mallinfo+set}" = set; then
27618 ac_cv_search_mallinfo=no
27620 rm conftest.$ac_ext
27621 LIBS=$ac_func_search_save_LIBS
27623 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27624 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27625 ac_res=$ac_cv_search_mallinfo
27626 if test "$ac_res" != no; then
27627 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27629 cat >>confdefs.h <<\_ACEOF
27630 #define HAVE_MALLINFO 1
27636 if test "$ENABLE_THREADS" -eq 1 ; then
27638 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27639 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27640 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27641 echo $ECHO_N "(cached) $ECHO_C" >&6
27643 ac_check_lib_save_LIBS=$LIBS
27644 LIBS="-lpthread $LIBS"
27645 cat >conftest.$ac_ext <<_ACEOF
27648 cat confdefs.h >>conftest.$ac_ext
27649 cat >>conftest.$ac_ext <<_ACEOF
27650 /* end confdefs.h. */
27652 /* Override any GCC internal prototype to avoid an error.
27653 Use char because int might match the return type of a GCC
27654 builtin and then its argument prototype would still apply. */
27658 char pthread_mutex_init ();
27662 return pthread_mutex_init ();
27667 rm -f conftest.$ac_objext conftest$ac_exeext
27668 if { (ac_try="$ac_link"
27669 case "(($ac_try" in
27670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27671 *) ac_try_echo=$ac_try;;
27673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27674 (eval "$ac_link") 2>conftest.er1
27676 grep -v '^ *+' conftest.er1 >conftest.err
27678 cat conftest.err >&5
27679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680 (exit $ac_status); } &&
27681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27682 { (case "(($ac_try" in
27683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27684 *) ac_try_echo=$ac_try;;
27686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27687 (eval "$ac_try") 2>&5
27689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690 (exit $ac_status); }; } &&
27691 { ac_try='test -s conftest$ac_exeext'
27692 { (case "(($ac_try" in
27693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27694 *) ac_try_echo=$ac_try;;
27696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27697 (eval "$ac_try") 2>&5
27699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700 (exit $ac_status); }; }; then
27701 ac_cv_lib_pthread_pthread_mutex_init=yes
27703 echo "$as_me: failed program was:" >&5
27704 sed 's/^/| /' conftest.$ac_ext >&5
27706 ac_cv_lib_pthread_pthread_mutex_init=no
27709 rm -f core conftest.err conftest.$ac_objext \
27710 conftest$ac_exeext conftest.$ac_ext
27711 LIBS=$ac_check_lib_save_LIBS
27713 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27714 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27715 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27716 cat >>confdefs.h <<_ACEOF
27717 #define HAVE_LIBPTHREAD 1
27720 LIBS="-lpthread $LIBS"
27724 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27725 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27726 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27727 echo $ECHO_N "(cached) $ECHO_C" >&6
27729 ac_func_search_save_LIBS=$LIBS
27730 cat >conftest.$ac_ext <<_ACEOF
27733 cat confdefs.h >>conftest.$ac_ext
27734 cat >>conftest.$ac_ext <<_ACEOF
27735 /* end confdefs.h. */
27737 /* Override any GCC internal prototype to avoid an error.
27738 Use char because int might match the return type of a GCC
27739 builtin and then its argument prototype would still apply. */
27743 char pthread_mutex_lock ();
27747 return pthread_mutex_lock ();
27752 for ac_lib in '' pthread; do
27753 if test -z "$ac_lib"; then
27754 ac_res="none required"
27757 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27759 rm -f conftest.$ac_objext conftest$ac_exeext
27760 if { (ac_try="$ac_link"
27761 case "(($ac_try" in
27762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27763 *) ac_try_echo=$ac_try;;
27765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27766 (eval "$ac_link") 2>conftest.er1
27768 grep -v '^ *+' conftest.er1 >conftest.err
27770 cat conftest.err >&5
27771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772 (exit $ac_status); } &&
27773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27774 { (case "(($ac_try" in
27775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27776 *) ac_try_echo=$ac_try;;
27778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27779 (eval "$ac_try") 2>&5
27781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782 (exit $ac_status); }; } &&
27783 { ac_try='test -s conftest$ac_exeext'
27784 { (case "(($ac_try" in
27785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27786 *) ac_try_echo=$ac_try;;
27788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27789 (eval "$ac_try") 2>&5
27791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792 (exit $ac_status); }; }; then
27793 ac_cv_search_pthread_mutex_lock=$ac_res
27795 echo "$as_me: failed program was:" >&5
27796 sed 's/^/| /' conftest.$ac_ext >&5
27801 rm -f core conftest.err conftest.$ac_objext \
27803 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27807 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27810 ac_cv_search_pthread_mutex_lock=no
27812 rm conftest.$ac_ext
27813 LIBS=$ac_func_search_save_LIBS
27815 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27816 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27817 ac_res=$ac_cv_search_pthread_mutex_lock
27818 if test "$ac_res" != no; then
27819 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27821 cat >>confdefs.h <<\_ACEOF
27822 #define HAVE_PTHREAD_MUTEX_LOCK 1
27830 # Check whether --with-udis86 was given.
27831 if test "${with_udis86+set}" = set; then
27832 withval=$with_udis86;
27837 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27840 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27841 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27842 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27843 echo $ECHO_N "(cached) $ECHO_C" >&6
27845 ac_check_lib_save_LIBS=$LIBS
27846 LIBS="-ludis86 $LIBS"
27847 cat >conftest.$ac_ext <<_ACEOF
27850 cat confdefs.h >>conftest.$ac_ext
27851 cat >>conftest.$ac_ext <<_ACEOF
27852 /* end confdefs.h. */
27854 /* Override any GCC internal prototype to avoid an error.
27855 Use char because int might match the return type of a GCC
27856 builtin and then its argument prototype would still apply. */
27869 rm -f conftest.$ac_objext conftest$ac_exeext
27870 if { (ac_try="$ac_link"
27871 case "(($ac_try" in
27872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27873 *) ac_try_echo=$ac_try;;
27875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27876 (eval "$ac_link") 2>conftest.er1
27878 grep -v '^ *+' conftest.er1 >conftest.err
27880 cat conftest.err >&5
27881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27882 (exit $ac_status); } &&
27883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27884 { (case "(($ac_try" in
27885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27886 *) ac_try_echo=$ac_try;;
27888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27889 (eval "$ac_try") 2>&5
27891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892 (exit $ac_status); }; } &&
27893 { ac_try='test -s conftest$ac_exeext'
27894 { (case "(($ac_try" in
27895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27896 *) ac_try_echo=$ac_try;;
27898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27899 (eval "$ac_try") 2>&5
27901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27902 (exit $ac_status); }; }; then
27903 ac_cv_lib_udis86_ud_init=yes
27905 echo "$as_me: failed program was:" >&5
27906 sed 's/^/| /' conftest.$ac_ext >&5
27908 ac_cv_lib_udis86_ud_init=no
27911 rm -f core conftest.err conftest.$ac_objext \
27912 conftest$ac_exeext conftest.$ac_ext
27913 LIBS=$ac_check_lib_save_LIBS
27915 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27916 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27917 if test $ac_cv_lib_udis86_ud_init = yes; then
27918 cat >>confdefs.h <<_ACEOF
27919 #define HAVE_LIBUDIS86 1
27922 LIBS="-ludis86 $LIBS"
27926 echo "Error! You need to have libudis86 around."
27938 cat >>confdefs.h <<_ACEOF
27939 #define USE_UDIS86 $USE_UDIS86
27949 ac_header_dirent=no
27950 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27951 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27952 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27953 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27955 echo $ECHO_N "(cached) $ECHO_C" >&6
27957 cat >conftest.$ac_ext <<_ACEOF
27960 cat confdefs.h >>conftest.$ac_ext
27961 cat >>conftest.$ac_ext <<_ACEOF
27962 /* end confdefs.h. */
27963 #include <sys/types.h>
27975 rm -f conftest.$ac_objext
27976 if { (ac_try="$ac_compile"
27977 case "(($ac_try" in
27978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27979 *) ac_try_echo=$ac_try;;
27981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27982 (eval "$ac_compile") 2>conftest.er1
27984 grep -v '^ *+' conftest.er1 >conftest.err
27986 cat conftest.err >&5
27987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27988 (exit $ac_status); } &&
27989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27990 { (case "(($ac_try" in
27991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27992 *) ac_try_echo=$ac_try;;
27994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27995 (eval "$ac_try") 2>&5
27997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998 (exit $ac_status); }; } &&
27999 { ac_try='test -s conftest.$ac_objext'
28000 { (case "(($ac_try" in
28001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28002 *) ac_try_echo=$ac_try;;
28004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28005 (eval "$ac_try") 2>&5
28007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28008 (exit $ac_status); }; }; then
28009 eval "$as_ac_Header=yes"
28011 echo "$as_me: failed program was:" >&5
28012 sed 's/^/| /' conftest.$ac_ext >&5
28014 eval "$as_ac_Header=no"
28017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28019 ac_res=`eval echo '${'$as_ac_Header'}'`
28020 { echo "$as_me:$LINENO: result: $ac_res" >&5
28021 echo "${ECHO_T}$ac_res" >&6; }
28022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28023 cat >>confdefs.h <<_ACEOF
28024 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28027 ac_header_dirent=$ac_hdr; break
28031 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28032 if test $ac_header_dirent = dirent.h; then
28033 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28034 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28035 if test "${ac_cv_search_opendir+set}" = set; then
28036 echo $ECHO_N "(cached) $ECHO_C" >&6
28038 ac_func_search_save_LIBS=$LIBS
28039 cat >conftest.$ac_ext <<_ACEOF
28042 cat confdefs.h >>conftest.$ac_ext
28043 cat >>conftest.$ac_ext <<_ACEOF
28044 /* end confdefs.h. */
28046 /* Override any GCC internal prototype to avoid an error.
28047 Use char because int might match the return type of a GCC
28048 builtin and then its argument prototype would still apply. */
28061 for ac_lib in '' dir; do
28062 if test -z "$ac_lib"; then
28063 ac_res="none required"
28066 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28068 rm -f conftest.$ac_objext conftest$ac_exeext
28069 if { (ac_try="$ac_link"
28070 case "(($ac_try" in
28071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28072 *) ac_try_echo=$ac_try;;
28074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28075 (eval "$ac_link") 2>conftest.er1
28077 grep -v '^ *+' conftest.er1 >conftest.err
28079 cat conftest.err >&5
28080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081 (exit $ac_status); } &&
28082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28083 { (case "(($ac_try" in
28084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085 *) ac_try_echo=$ac_try;;
28087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088 (eval "$ac_try") 2>&5
28090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091 (exit $ac_status); }; } &&
28092 { ac_try='test -s conftest$ac_exeext'
28093 { (case "(($ac_try" in
28094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28095 *) ac_try_echo=$ac_try;;
28097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28098 (eval "$ac_try") 2>&5
28100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101 (exit $ac_status); }; }; then
28102 ac_cv_search_opendir=$ac_res
28104 echo "$as_me: failed program was:" >&5
28105 sed 's/^/| /' conftest.$ac_ext >&5
28110 rm -f core conftest.err conftest.$ac_objext \
28112 if test "${ac_cv_search_opendir+set}" = set; then
28116 if test "${ac_cv_search_opendir+set}" = set; then
28119 ac_cv_search_opendir=no
28121 rm conftest.$ac_ext
28122 LIBS=$ac_func_search_save_LIBS
28124 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28125 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28126 ac_res=$ac_cv_search_opendir
28127 if test "$ac_res" != no; then
28128 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28133 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28134 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28135 if test "${ac_cv_search_opendir+set}" = set; then
28136 echo $ECHO_N "(cached) $ECHO_C" >&6
28138 ac_func_search_save_LIBS=$LIBS
28139 cat >conftest.$ac_ext <<_ACEOF
28142 cat confdefs.h >>conftest.$ac_ext
28143 cat >>conftest.$ac_ext <<_ACEOF
28144 /* end confdefs.h. */
28146 /* Override any GCC internal prototype to avoid an error.
28147 Use char because int might match the return type of a GCC
28148 builtin and then its argument prototype would still apply. */
28161 for ac_lib in '' x; do
28162 if test -z "$ac_lib"; then
28163 ac_res="none required"
28166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28168 rm -f conftest.$ac_objext conftest$ac_exeext
28169 if { (ac_try="$ac_link"
28170 case "(($ac_try" in
28171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28172 *) ac_try_echo=$ac_try;;
28174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28175 (eval "$ac_link") 2>conftest.er1
28177 grep -v '^ *+' conftest.er1 >conftest.err
28179 cat conftest.err >&5
28180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181 (exit $ac_status); } &&
28182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28183 { (case "(($ac_try" in
28184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28185 *) ac_try_echo=$ac_try;;
28187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28188 (eval "$ac_try") 2>&5
28190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191 (exit $ac_status); }; } &&
28192 { ac_try='test -s conftest$ac_exeext'
28193 { (case "(($ac_try" in
28194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28195 *) ac_try_echo=$ac_try;;
28197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28198 (eval "$ac_try") 2>&5
28200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201 (exit $ac_status); }; }; then
28202 ac_cv_search_opendir=$ac_res
28204 echo "$as_me: failed program was:" >&5
28205 sed 's/^/| /' conftest.$ac_ext >&5
28210 rm -f core conftest.err conftest.$ac_objext \
28212 if test "${ac_cv_search_opendir+set}" = set; then
28216 if test "${ac_cv_search_opendir+set}" = set; then
28219 ac_cv_search_opendir=no
28221 rm conftest.$ac_ext
28222 LIBS=$ac_func_search_save_LIBS
28224 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28225 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28226 ac_res=$ac_cv_search_opendir
28227 if test "$ac_res" != no; then
28228 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28234 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28235 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28236 if test "${ac_cv_header_mmap_anon+set}" = set; then
28237 echo $ECHO_N "(cached) $ECHO_C" >&6
28240 ac_cpp='$CPP $CPPFLAGS'
28241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28245 cat >conftest.$ac_ext <<_ACEOF
28248 cat confdefs.h >>conftest.$ac_ext
28249 cat >>conftest.$ac_ext <<_ACEOF
28250 /* end confdefs.h. */
28251 #include <sys/mman.h>
28252 #include <unistd.h>
28257 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28262 rm -f conftest.$ac_objext
28263 if { (ac_try="$ac_compile"
28264 case "(($ac_try" in
28265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28266 *) ac_try_echo=$ac_try;;
28268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28269 (eval "$ac_compile") 2>conftest.er1
28271 grep -v '^ *+' conftest.er1 >conftest.err
28273 cat conftest.err >&5
28274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275 (exit $ac_status); } &&
28276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28277 { (case "(($ac_try" in
28278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28279 *) ac_try_echo=$ac_try;;
28281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28282 (eval "$ac_try") 2>&5
28284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285 (exit $ac_status); }; } &&
28286 { ac_try='test -s conftest.$ac_objext'
28287 { (case "(($ac_try" in
28288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28289 *) ac_try_echo=$ac_try;;
28291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28292 (eval "$ac_try") 2>&5
28294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28295 (exit $ac_status); }; }; then
28296 ac_cv_header_mmap_anon=yes
28298 echo "$as_me: failed program was:" >&5
28299 sed 's/^/| /' conftest.$ac_ext >&5
28301 ac_cv_header_mmap_anon=no
28304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28306 ac_cpp='$CPP $CPPFLAGS'
28307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28313 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28314 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28315 if test "$ac_cv_header_mmap_anon" = yes; then
28317 cat >>confdefs.h <<\_ACEOF
28318 #define HAVE_MMAP_ANONYMOUS 1
28323 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28324 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28325 if test "${ac_cv_header_stat_broken+set}" = set; then
28326 echo $ECHO_N "(cached) $ECHO_C" >&6
28328 cat >conftest.$ac_ext <<_ACEOF
28331 cat confdefs.h >>conftest.$ac_ext
28332 cat >>conftest.$ac_ext <<_ACEOF
28333 /* end confdefs.h. */
28334 #include <sys/types.h>
28335 #include <sys/stat.h>
28337 #if defined S_ISBLK && defined S_IFDIR
28338 # if S_ISBLK (S_IFDIR)
28343 #if defined S_ISBLK && defined S_IFCHR
28344 # if S_ISBLK (S_IFCHR)
28349 #if defined S_ISLNK && defined S_IFREG
28350 # if S_ISLNK (S_IFREG)
28355 #if defined S_ISSOCK && defined S_IFREG
28356 # if S_ISSOCK (S_IFREG)
28362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28363 $EGREP "You lose" >/dev/null 2>&1; then
28364 ac_cv_header_stat_broken=yes
28366 ac_cv_header_stat_broken=no
28371 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28372 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28373 if test $ac_cv_header_stat_broken = yes; then
28375 cat >>confdefs.h <<\_ACEOF
28376 #define STAT_MACROS_BROKEN 1
28381 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28382 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28383 if test "${ac_cv_header_stdc+set}" = set; then
28384 echo $ECHO_N "(cached) $ECHO_C" >&6
28386 cat >conftest.$ac_ext <<_ACEOF
28389 cat confdefs.h >>conftest.$ac_ext
28390 cat >>conftest.$ac_ext <<_ACEOF
28391 /* end confdefs.h. */
28392 #include <stdlib.h>
28393 #include <stdarg.h>
28394 #include <string.h>
28405 rm -f conftest.$ac_objext
28406 if { (ac_try="$ac_compile"
28407 case "(($ac_try" in
28408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28409 *) ac_try_echo=$ac_try;;
28411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28412 (eval "$ac_compile") 2>conftest.er1
28414 grep -v '^ *+' conftest.er1 >conftest.err
28416 cat conftest.err >&5
28417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418 (exit $ac_status); } &&
28419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28420 { (case "(($ac_try" in
28421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28422 *) ac_try_echo=$ac_try;;
28424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28425 (eval "$ac_try") 2>&5
28427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428 (exit $ac_status); }; } &&
28429 { ac_try='test -s conftest.$ac_objext'
28430 { (case "(($ac_try" in
28431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28432 *) ac_try_echo=$ac_try;;
28434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28435 (eval "$ac_try") 2>&5
28437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28438 (exit $ac_status); }; }; then
28439 ac_cv_header_stdc=yes
28441 echo "$as_me: failed program was:" >&5
28442 sed 's/^/| /' conftest.$ac_ext >&5
28444 ac_cv_header_stdc=no
28447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28449 if test $ac_cv_header_stdc = yes; then
28450 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28451 cat >conftest.$ac_ext <<_ACEOF
28454 cat confdefs.h >>conftest.$ac_ext
28455 cat >>conftest.$ac_ext <<_ACEOF
28456 /* end confdefs.h. */
28457 #include <string.h>
28460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28461 $EGREP "memchr" >/dev/null 2>&1; then
28464 ac_cv_header_stdc=no
28470 if test $ac_cv_header_stdc = yes; then
28471 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28472 cat >conftest.$ac_ext <<_ACEOF
28475 cat confdefs.h >>conftest.$ac_ext
28476 cat >>conftest.$ac_ext <<_ACEOF
28477 /* end confdefs.h. */
28478 #include <stdlib.h>
28481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28482 $EGREP "free" >/dev/null 2>&1; then
28485 ac_cv_header_stdc=no
28491 if test $ac_cv_header_stdc = yes; then
28492 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28493 if test "$cross_compiling" = yes; then
28496 cat >conftest.$ac_ext <<_ACEOF
28499 cat confdefs.h >>conftest.$ac_ext
28500 cat >>conftest.$ac_ext <<_ACEOF
28501 /* end confdefs.h. */
28503 #include <stdlib.h>
28504 #if ((' ' & 0x0FF) == 0x020)
28505 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28506 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28508 # define ISLOWER(c) \
28509 (('a' <= (c) && (c) <= 'i') \
28510 || ('j' <= (c) && (c) <= 'r') \
28511 || ('s' <= (c) && (c) <= 'z'))
28512 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28515 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28520 for (i = 0; i < 256; i++)
28521 if (XOR (islower (i), ISLOWER (i))
28522 || toupper (i) != TOUPPER (i))
28527 rm -f conftest$ac_exeext
28528 if { (ac_try="$ac_link"
28529 case "(($ac_try" in
28530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28531 *) ac_try_echo=$ac_try;;
28533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28534 (eval "$ac_link") 2>&5
28536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28538 { (case "(($ac_try" in
28539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28540 *) ac_try_echo=$ac_try;;
28542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28543 (eval "$ac_try") 2>&5
28545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546 (exit $ac_status); }; }; then
28549 echo "$as_me: program exited with status $ac_status" >&5
28550 echo "$as_me: failed program was:" >&5
28551 sed 's/^/| /' conftest.$ac_ext >&5
28553 ( exit $ac_status )
28554 ac_cv_header_stdc=no
28556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28562 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28563 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28564 if test $ac_cv_header_stdc = yes; then
28566 cat >>confdefs.h <<\_ACEOF
28567 #define STDC_HEADERS 1
28572 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28573 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28574 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28575 echo $ECHO_N "(cached) $ECHO_C" >&6
28577 cat >conftest.$ac_ext <<_ACEOF
28580 cat confdefs.h >>conftest.$ac_ext
28581 cat >>conftest.$ac_ext <<_ACEOF
28582 /* end confdefs.h. */
28583 #include <sys/types.h>
28584 #include <sys/wait.h>
28585 #ifndef WEXITSTATUS
28586 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28589 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28597 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28602 rm -f conftest.$ac_objext
28603 if { (ac_try="$ac_compile"
28604 case "(($ac_try" in
28605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28606 *) ac_try_echo=$ac_try;;
28608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28609 (eval "$ac_compile") 2>conftest.er1
28611 grep -v '^ *+' conftest.er1 >conftest.err
28613 cat conftest.err >&5
28614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28615 (exit $ac_status); } &&
28616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28617 { (case "(($ac_try" in
28618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28619 *) ac_try_echo=$ac_try;;
28621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28622 (eval "$ac_try") 2>&5
28624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625 (exit $ac_status); }; } &&
28626 { ac_try='test -s conftest.$ac_objext'
28627 { (case "(($ac_try" in
28628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28629 *) ac_try_echo=$ac_try;;
28631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28632 (eval "$ac_try") 2>&5
28634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28635 (exit $ac_status); }; }; then
28636 ac_cv_header_sys_wait_h=yes
28638 echo "$as_me: failed program was:" >&5
28639 sed 's/^/| /' conftest.$ac_ext >&5
28641 ac_cv_header_sys_wait_h=no
28644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28646 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28647 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28648 if test $ac_cv_header_sys_wait_h = yes; then
28650 cat >>confdefs.h <<\_ACEOF
28651 #define HAVE_SYS_WAIT_H 1
28656 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28657 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28658 if test "${ac_cv_header_time+set}" = set; then
28659 echo $ECHO_N "(cached) $ECHO_C" >&6
28661 cat >conftest.$ac_ext <<_ACEOF
28664 cat confdefs.h >>conftest.$ac_ext
28665 cat >>conftest.$ac_ext <<_ACEOF
28666 /* end confdefs.h. */
28667 #include <sys/types.h>
28668 #include <sys/time.h>
28674 if ((struct tm *) 0)
28680 rm -f conftest.$ac_objext
28681 if { (ac_try="$ac_compile"
28682 case "(($ac_try" in
28683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28684 *) ac_try_echo=$ac_try;;
28686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28687 (eval "$ac_compile") 2>conftest.er1
28689 grep -v '^ *+' conftest.er1 >conftest.err
28691 cat conftest.err >&5
28692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693 (exit $ac_status); } &&
28694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28695 { (case "(($ac_try" in
28696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28697 *) ac_try_echo=$ac_try;;
28699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28700 (eval "$ac_try") 2>&5
28702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703 (exit $ac_status); }; } &&
28704 { ac_try='test -s conftest.$ac_objext'
28705 { (case "(($ac_try" in
28706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28707 *) ac_try_echo=$ac_try;;
28709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28710 (eval "$ac_try") 2>&5
28712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28713 (exit $ac_status); }; }; then
28714 ac_cv_header_time=yes
28716 echo "$as_me: failed program was:" >&5
28717 sed 's/^/| /' conftest.$ac_ext >&5
28719 ac_cv_header_time=no
28722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28724 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28725 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28726 if test $ac_cv_header_time = yes; then
28728 cat >>confdefs.h <<\_ACEOF
28729 #define TIME_WITH_SYS_TIME 1
28741 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28748 echo $ECHO_N "(cached) $ECHO_C" >&6
28750 ac_res=`eval echo '${'$as_ac_Header'}'`
28751 { echo "$as_me:$LINENO: result: $ac_res" >&5
28752 echo "${ECHO_T}$ac_res" >&6; }
28754 # Is the header compilable?
28755 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28757 cat >conftest.$ac_ext <<_ACEOF
28760 cat confdefs.h >>conftest.$ac_ext
28761 cat >>conftest.$ac_ext <<_ACEOF
28762 /* end confdefs.h. */
28763 $ac_includes_default
28764 #include <$ac_header>
28766 rm -f conftest.$ac_objext
28767 if { (ac_try="$ac_compile"
28768 case "(($ac_try" in
28769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28770 *) ac_try_echo=$ac_try;;
28772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28773 (eval "$ac_compile") 2>conftest.er1
28775 grep -v '^ *+' conftest.er1 >conftest.err
28777 cat conftest.err >&5
28778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28779 (exit $ac_status); } &&
28780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28781 { (case "(($ac_try" in
28782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28783 *) ac_try_echo=$ac_try;;
28785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28786 (eval "$ac_try") 2>&5
28788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28789 (exit $ac_status); }; } &&
28790 { ac_try='test -s conftest.$ac_objext'
28791 { (case "(($ac_try" in
28792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28793 *) ac_try_echo=$ac_try;;
28795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28796 (eval "$ac_try") 2>&5
28798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28799 (exit $ac_status); }; }; then
28800 ac_header_compiler=yes
28802 echo "$as_me: failed program was:" >&5
28803 sed 's/^/| /' conftest.$ac_ext >&5
28805 ac_header_compiler=no
28808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28809 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28810 echo "${ECHO_T}$ac_header_compiler" >&6; }
28812 # Is the header present?
28813 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28814 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28815 cat >conftest.$ac_ext <<_ACEOF
28818 cat confdefs.h >>conftest.$ac_ext
28819 cat >>conftest.$ac_ext <<_ACEOF
28820 /* end confdefs.h. */
28821 #include <$ac_header>
28823 if { (ac_try="$ac_cpp conftest.$ac_ext"
28824 case "(($ac_try" in
28825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28826 *) ac_try_echo=$ac_try;;
28828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28831 grep -v '^ *+' conftest.er1 >conftest.err
28833 cat conftest.err >&5
28834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835 (exit $ac_status); } >/dev/null; then
28836 if test -s conftest.err; then
28837 ac_cpp_err=$ac_c_preproc_warn_flag
28838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28845 if test -z "$ac_cpp_err"; then
28846 ac_header_preproc=yes
28848 echo "$as_me: failed program was:" >&5
28849 sed 's/^/| /' conftest.$ac_ext >&5
28851 ac_header_preproc=no
28854 rm -f conftest.err conftest.$ac_ext
28855 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28856 echo "${ECHO_T}$ac_header_preproc" >&6; }
28858 # So? What about this header?
28859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28861 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28862 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28864 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28865 ac_header_preproc=yes
28868 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28869 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28870 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28871 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28872 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28873 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28874 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28875 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28877 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28878 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28879 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28881 ## ----------------------------------- ##
28882 ## Report this to llvmbugs@cs.uiuc.edu ##
28883 ## ----------------------------------- ##
28885 ) | sed "s/^/$as_me: WARNING: /" >&2
28888 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28891 echo $ECHO_N "(cached) $ECHO_C" >&6
28893 eval "$as_ac_Header=\$ac_header_preproc"
28895 ac_res=`eval echo '${'$as_ac_Header'}'`
28896 { echo "$as_me:$LINENO: result: $ac_res" >&5
28897 echo "${ECHO_T}$ac_res" >&6; }
28900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28901 cat >>confdefs.h <<_ACEOF
28902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28915 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28922 echo $ECHO_N "(cached) $ECHO_C" >&6
28924 ac_res=`eval echo '${'$as_ac_Header'}'`
28925 { echo "$as_me:$LINENO: result: $ac_res" >&5
28926 echo "${ECHO_T}$ac_res" >&6; }
28928 # Is the header compilable?
28929 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28931 cat >conftest.$ac_ext <<_ACEOF
28934 cat confdefs.h >>conftest.$ac_ext
28935 cat >>conftest.$ac_ext <<_ACEOF
28936 /* end confdefs.h. */
28937 $ac_includes_default
28938 #include <$ac_header>
28940 rm -f conftest.$ac_objext
28941 if { (ac_try="$ac_compile"
28942 case "(($ac_try" in
28943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28944 *) ac_try_echo=$ac_try;;
28946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28947 (eval "$ac_compile") 2>conftest.er1
28949 grep -v '^ *+' conftest.er1 >conftest.err
28951 cat conftest.err >&5
28952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953 (exit $ac_status); } &&
28954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28955 { (case "(($ac_try" in
28956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28957 *) ac_try_echo=$ac_try;;
28959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28960 (eval "$ac_try") 2>&5
28962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28963 (exit $ac_status); }; } &&
28964 { ac_try='test -s conftest.$ac_objext'
28965 { (case "(($ac_try" in
28966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28967 *) ac_try_echo=$ac_try;;
28969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28970 (eval "$ac_try") 2>&5
28972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28973 (exit $ac_status); }; }; then
28974 ac_header_compiler=yes
28976 echo "$as_me: failed program was:" >&5
28977 sed 's/^/| /' conftest.$ac_ext >&5
28979 ac_header_compiler=no
28982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28984 echo "${ECHO_T}$ac_header_compiler" >&6; }
28986 # Is the header present?
28987 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28989 cat >conftest.$ac_ext <<_ACEOF
28992 cat confdefs.h >>conftest.$ac_ext
28993 cat >>conftest.$ac_ext <<_ACEOF
28994 /* end confdefs.h. */
28995 #include <$ac_header>
28997 if { (ac_try="$ac_cpp conftest.$ac_ext"
28998 case "(($ac_try" in
28999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29000 *) ac_try_echo=$ac_try;;
29002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29005 grep -v '^ *+' conftest.er1 >conftest.err
29007 cat conftest.err >&5
29008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009 (exit $ac_status); } >/dev/null; then
29010 if test -s conftest.err; then
29011 ac_cpp_err=$ac_c_preproc_warn_flag
29012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29019 if test -z "$ac_cpp_err"; then
29020 ac_header_preproc=yes
29022 echo "$as_me: failed program was:" >&5
29023 sed 's/^/| /' conftest.$ac_ext >&5
29025 ac_header_preproc=no
29028 rm -f conftest.err conftest.$ac_ext
29029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29030 echo "${ECHO_T}$ac_header_preproc" >&6; }
29032 # So? What about this header?
29033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29039 ac_header_preproc=yes
29042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29055 ## ----------------------------------- ##
29056 ## Report this to llvmbugs@cs.uiuc.edu ##
29057 ## ----------------------------------- ##
29059 ) | sed "s/^/$as_me: WARNING: /" >&2
29062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29065 echo $ECHO_N "(cached) $ECHO_C" >&6
29067 eval "$as_ac_Header=\$ac_header_preproc"
29069 ac_res=`eval echo '${'$as_ac_Header'}'`
29070 { echo "$as_me:$LINENO: result: $ac_res" >&5
29071 echo "${ECHO_T}$ac_res" >&6; }
29074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29075 cat >>confdefs.h <<_ACEOF
29076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29084 for ac_header in windows.h
29086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29091 echo $ECHO_N "(cached) $ECHO_C" >&6
29093 ac_res=`eval echo '${'$as_ac_Header'}'`
29094 { echo "$as_me:$LINENO: result: $ac_res" >&5
29095 echo "${ECHO_T}$ac_res" >&6; }
29097 # Is the header compilable?
29098 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29100 cat >conftest.$ac_ext <<_ACEOF
29103 cat confdefs.h >>conftest.$ac_ext
29104 cat >>conftest.$ac_ext <<_ACEOF
29105 /* end confdefs.h. */
29106 $ac_includes_default
29107 #include <$ac_header>
29109 rm -f conftest.$ac_objext
29110 if { (ac_try="$ac_compile"
29111 case "(($ac_try" in
29112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29113 *) ac_try_echo=$ac_try;;
29115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29116 (eval "$ac_compile") 2>conftest.er1
29118 grep -v '^ *+' conftest.er1 >conftest.err
29120 cat conftest.err >&5
29121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122 (exit $ac_status); } &&
29123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29124 { (case "(($ac_try" in
29125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29126 *) ac_try_echo=$ac_try;;
29128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29129 (eval "$ac_try") 2>&5
29131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132 (exit $ac_status); }; } &&
29133 { ac_try='test -s conftest.$ac_objext'
29134 { (case "(($ac_try" in
29135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29136 *) ac_try_echo=$ac_try;;
29138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29139 (eval "$ac_try") 2>&5
29141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29142 (exit $ac_status); }; }; then
29143 ac_header_compiler=yes
29145 echo "$as_me: failed program was:" >&5
29146 sed 's/^/| /' conftest.$ac_ext >&5
29148 ac_header_compiler=no
29151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29152 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29153 echo "${ECHO_T}$ac_header_compiler" >&6; }
29155 # Is the header present?
29156 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29158 cat >conftest.$ac_ext <<_ACEOF
29161 cat confdefs.h >>conftest.$ac_ext
29162 cat >>conftest.$ac_ext <<_ACEOF
29163 /* end confdefs.h. */
29164 #include <$ac_header>
29166 if { (ac_try="$ac_cpp conftest.$ac_ext"
29167 case "(($ac_try" in
29168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29169 *) ac_try_echo=$ac_try;;
29171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29174 grep -v '^ *+' conftest.er1 >conftest.err
29176 cat conftest.err >&5
29177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29178 (exit $ac_status); } >/dev/null; then
29179 if test -s conftest.err; then
29180 ac_cpp_err=$ac_c_preproc_warn_flag
29181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29188 if test -z "$ac_cpp_err"; then
29189 ac_header_preproc=yes
29191 echo "$as_me: failed program was:" >&5
29192 sed 's/^/| /' conftest.$ac_ext >&5
29194 ac_header_preproc=no
29197 rm -f conftest.err conftest.$ac_ext
29198 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29199 echo "${ECHO_T}$ac_header_preproc" >&6; }
29201 # So? What about this header?
29202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29208 ac_header_preproc=yes
29211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29218 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29224 ## ----------------------------------- ##
29225 ## Report this to llvmbugs@cs.uiuc.edu ##
29226 ## ----------------------------------- ##
29228 ) | sed "s/^/$as_me: WARNING: /" >&2
29231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29234 echo $ECHO_N "(cached) $ECHO_C" >&6
29236 eval "$as_ac_Header=\$ac_header_preproc"
29238 ac_res=`eval echo '${'$as_ac_Header'}'`
29239 { echo "$as_me:$LINENO: result: $ac_res" >&5
29240 echo "${ECHO_T}$ac_res" >&6; }
29243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29244 cat >>confdefs.h <<_ACEOF
29245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29256 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29260 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29263 echo $ECHO_N "(cached) $ECHO_C" >&6
29265 ac_res=`eval echo '${'$as_ac_Header'}'`
29266 { echo "$as_me:$LINENO: result: $ac_res" >&5
29267 echo "${ECHO_T}$ac_res" >&6; }
29269 # Is the header compilable?
29270 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29272 cat >conftest.$ac_ext <<_ACEOF
29275 cat confdefs.h >>conftest.$ac_ext
29276 cat >>conftest.$ac_ext <<_ACEOF
29277 /* end confdefs.h. */
29278 $ac_includes_default
29279 #include <$ac_header>
29281 rm -f conftest.$ac_objext
29282 if { (ac_try="$ac_compile"
29283 case "(($ac_try" in
29284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29285 *) ac_try_echo=$ac_try;;
29287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29288 (eval "$ac_compile") 2>conftest.er1
29290 grep -v '^ *+' conftest.er1 >conftest.err
29292 cat conftest.err >&5
29293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); } &&
29295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29296 { (case "(($ac_try" in
29297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29298 *) ac_try_echo=$ac_try;;
29300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29301 (eval "$ac_try") 2>&5
29303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304 (exit $ac_status); }; } &&
29305 { ac_try='test -s conftest.$ac_objext'
29306 { (case "(($ac_try" in
29307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29308 *) ac_try_echo=$ac_try;;
29310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29311 (eval "$ac_try") 2>&5
29313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314 (exit $ac_status); }; }; then
29315 ac_header_compiler=yes
29317 echo "$as_me: failed program was:" >&5
29318 sed 's/^/| /' conftest.$ac_ext >&5
29320 ac_header_compiler=no
29323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29324 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29325 echo "${ECHO_T}$ac_header_compiler" >&6; }
29327 # Is the header present?
29328 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29330 cat >conftest.$ac_ext <<_ACEOF
29333 cat confdefs.h >>conftest.$ac_ext
29334 cat >>conftest.$ac_ext <<_ACEOF
29335 /* end confdefs.h. */
29336 #include <$ac_header>
29338 if { (ac_try="$ac_cpp conftest.$ac_ext"
29339 case "(($ac_try" in
29340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29341 *) ac_try_echo=$ac_try;;
29343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29346 grep -v '^ *+' conftest.er1 >conftest.err
29348 cat conftest.err >&5
29349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29350 (exit $ac_status); } >/dev/null; then
29351 if test -s conftest.err; then
29352 ac_cpp_err=$ac_c_preproc_warn_flag
29353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29360 if test -z "$ac_cpp_err"; then
29361 ac_header_preproc=yes
29363 echo "$as_me: failed program was:" >&5
29364 sed 's/^/| /' conftest.$ac_ext >&5
29366 ac_header_preproc=no
29369 rm -f conftest.err conftest.$ac_ext
29370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29371 echo "${ECHO_T}$ac_header_preproc" >&6; }
29373 # So? What about this header?
29374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29376 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29377 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29379 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29380 ac_header_preproc=yes
29383 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29384 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29385 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29386 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29387 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29388 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29389 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29390 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29393 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29394 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29396 ## ----------------------------------- ##
29397 ## Report this to llvmbugs@cs.uiuc.edu ##
29398 ## ----------------------------------- ##
29400 ) | sed "s/^/$as_me: WARNING: /" >&2
29403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29406 echo $ECHO_N "(cached) $ECHO_C" >&6
29408 eval "$as_ac_Header=\$ac_header_preproc"
29410 ac_res=`eval echo '${'$as_ac_Header'}'`
29411 { echo "$as_me:$LINENO: result: $ac_res" >&5
29412 echo "${ECHO_T}$ac_res" >&6; }
29415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29416 cat >>confdefs.h <<_ACEOF
29417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29427 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29434 echo $ECHO_N "(cached) $ECHO_C" >&6
29436 ac_res=`eval echo '${'$as_ac_Header'}'`
29437 { echo "$as_me:$LINENO: result: $ac_res" >&5
29438 echo "${ECHO_T}$ac_res" >&6; }
29440 # Is the header compilable?
29441 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29443 cat >conftest.$ac_ext <<_ACEOF
29446 cat confdefs.h >>conftest.$ac_ext
29447 cat >>conftest.$ac_ext <<_ACEOF
29448 /* end confdefs.h. */
29449 $ac_includes_default
29450 #include <$ac_header>
29452 rm -f conftest.$ac_objext
29453 if { (ac_try="$ac_compile"
29454 case "(($ac_try" in
29455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29456 *) ac_try_echo=$ac_try;;
29458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29459 (eval "$ac_compile") 2>conftest.er1
29461 grep -v '^ *+' conftest.er1 >conftest.err
29463 cat conftest.err >&5
29464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465 (exit $ac_status); } &&
29466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29467 { (case "(($ac_try" in
29468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29469 *) ac_try_echo=$ac_try;;
29471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29472 (eval "$ac_try") 2>&5
29474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475 (exit $ac_status); }; } &&
29476 { ac_try='test -s conftest.$ac_objext'
29477 { (case "(($ac_try" in
29478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29479 *) ac_try_echo=$ac_try;;
29481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29482 (eval "$ac_try") 2>&5
29484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485 (exit $ac_status); }; }; then
29486 ac_header_compiler=yes
29488 echo "$as_me: failed program was:" >&5
29489 sed 's/^/| /' conftest.$ac_ext >&5
29491 ac_header_compiler=no
29494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29495 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29496 echo "${ECHO_T}$ac_header_compiler" >&6; }
29498 # Is the header present?
29499 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29501 cat >conftest.$ac_ext <<_ACEOF
29504 cat confdefs.h >>conftest.$ac_ext
29505 cat >>conftest.$ac_ext <<_ACEOF
29506 /* end confdefs.h. */
29507 #include <$ac_header>
29509 if { (ac_try="$ac_cpp conftest.$ac_ext"
29510 case "(($ac_try" in
29511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29512 *) ac_try_echo=$ac_try;;
29514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29517 grep -v '^ *+' conftest.er1 >conftest.err
29519 cat conftest.err >&5
29520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521 (exit $ac_status); } >/dev/null; then
29522 if test -s conftest.err; then
29523 ac_cpp_err=$ac_c_preproc_warn_flag
29524 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29531 if test -z "$ac_cpp_err"; then
29532 ac_header_preproc=yes
29534 echo "$as_me: failed program was:" >&5
29535 sed 's/^/| /' conftest.$ac_ext >&5
29537 ac_header_preproc=no
29540 rm -f conftest.err conftest.$ac_ext
29541 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29542 echo "${ECHO_T}$ac_header_preproc" >&6; }
29544 # So? What about this header?
29545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29550 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29551 ac_header_preproc=yes
29554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29557 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29559 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29561 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29565 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29567 ## ----------------------------------- ##
29568 ## Report this to llvmbugs@cs.uiuc.edu ##
29569 ## ----------------------------------- ##
29571 ) | sed "s/^/$as_me: WARNING: /" >&2
29574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29577 echo $ECHO_N "(cached) $ECHO_C" >&6
29579 eval "$as_ac_Header=\$ac_header_preproc"
29581 ac_res=`eval echo '${'$as_ac_Header'}'`
29582 { echo "$as_me:$LINENO: result: $ac_res" >&5
29583 echo "${ECHO_T}$ac_res" >&6; }
29586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29587 cat >>confdefs.h <<_ACEOF
29588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29595 if test "$ENABLE_THREADS" -eq 1 ; then
29597 for ac_header in pthread.h
29599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29604 echo $ECHO_N "(cached) $ECHO_C" >&6
29606 ac_res=`eval echo '${'$as_ac_Header'}'`
29607 { echo "$as_me:$LINENO: result: $ac_res" >&5
29608 echo "${ECHO_T}$ac_res" >&6; }
29610 # Is the header compilable?
29611 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29612 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29613 cat >conftest.$ac_ext <<_ACEOF
29616 cat confdefs.h >>conftest.$ac_ext
29617 cat >>conftest.$ac_ext <<_ACEOF
29618 /* end confdefs.h. */
29619 $ac_includes_default
29620 #include <$ac_header>
29622 rm -f conftest.$ac_objext
29623 if { (ac_try="$ac_compile"
29624 case "(($ac_try" in
29625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29626 *) ac_try_echo=$ac_try;;
29628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29629 (eval "$ac_compile") 2>conftest.er1
29631 grep -v '^ *+' conftest.er1 >conftest.err
29633 cat conftest.err >&5
29634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635 (exit $ac_status); } &&
29636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29637 { (case "(($ac_try" in
29638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29639 *) ac_try_echo=$ac_try;;
29641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29642 (eval "$ac_try") 2>&5
29644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29645 (exit $ac_status); }; } &&
29646 { ac_try='test -s conftest.$ac_objext'
29647 { (case "(($ac_try" in
29648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29649 *) ac_try_echo=$ac_try;;
29651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29652 (eval "$ac_try") 2>&5
29654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29655 (exit $ac_status); }; }; then
29656 ac_header_compiler=yes
29658 echo "$as_me: failed program was:" >&5
29659 sed 's/^/| /' conftest.$ac_ext >&5
29661 ac_header_compiler=no
29664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29665 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29666 echo "${ECHO_T}$ac_header_compiler" >&6; }
29668 # Is the header present?
29669 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29670 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29671 cat >conftest.$ac_ext <<_ACEOF
29674 cat confdefs.h >>conftest.$ac_ext
29675 cat >>conftest.$ac_ext <<_ACEOF
29676 /* end confdefs.h. */
29677 #include <$ac_header>
29679 if { (ac_try="$ac_cpp conftest.$ac_ext"
29680 case "(($ac_try" in
29681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29682 *) ac_try_echo=$ac_try;;
29684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29687 grep -v '^ *+' conftest.er1 >conftest.err
29689 cat conftest.err >&5
29690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29691 (exit $ac_status); } >/dev/null; then
29692 if test -s conftest.err; then
29693 ac_cpp_err=$ac_c_preproc_warn_flag
29694 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29701 if test -z "$ac_cpp_err"; then
29702 ac_header_preproc=yes
29704 echo "$as_me: failed program was:" >&5
29705 sed 's/^/| /' conftest.$ac_ext >&5
29707 ac_header_preproc=no
29710 rm -f conftest.err conftest.$ac_ext
29711 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29712 echo "${ECHO_T}$ac_header_preproc" >&6; }
29714 # So? What about this header?
29715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29720 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29721 ac_header_preproc=yes
29724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29727 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29729 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29731 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29735 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29737 ## ----------------------------------- ##
29738 ## Report this to llvmbugs@cs.uiuc.edu ##
29739 ## ----------------------------------- ##
29741 ) | sed "s/^/$as_me: WARNING: /" >&2
29744 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29747 echo $ECHO_N "(cached) $ECHO_C" >&6
29749 eval "$as_ac_Header=\$ac_header_preproc"
29751 ac_res=`eval echo '${'$as_ac_Header'}'`
29752 { echo "$as_me:$LINENO: result: $ac_res" >&5
29753 echo "${ECHO_T}$ac_res" >&6; }
29756 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29757 cat >>confdefs.h <<_ACEOF
29758 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29776 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29777 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29778 if test "${ac_cv_huge_val_sanity+set}" = set; then
29779 echo $ECHO_N "(cached) $ECHO_C" >&6
29783 ac_cpp='$CXXCPP $CPPFLAGS'
29784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29789 if test "$cross_compiling" = yes; then
29790 ac_cv_huge_val_sanity=yes
29792 cat >conftest.$ac_ext <<_ACEOF
29795 cat confdefs.h >>conftest.$ac_ext
29796 cat >>conftest.$ac_ext <<_ACEOF
29797 /* end confdefs.h. */
29802 double x = HUGE_VAL; return x != x;
29807 rm -f conftest$ac_exeext
29808 if { (ac_try="$ac_link"
29809 case "(($ac_try" in
29810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29811 *) ac_try_echo=$ac_try;;
29813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29814 (eval "$ac_link") 2>&5
29816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29818 { (case "(($ac_try" in
29819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29820 *) ac_try_echo=$ac_try;;
29822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29823 (eval "$ac_try") 2>&5
29825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826 (exit $ac_status); }; }; then
29827 ac_cv_huge_val_sanity=yes
29829 echo "$as_me: program exited with status $ac_status" >&5
29830 echo "$as_me: failed program was:" >&5
29831 sed 's/^/| /' conftest.$ac_ext >&5
29833 ( exit $ac_status )
29834 ac_cv_huge_val_sanity=no
29836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29841 ac_cpp='$CPP $CPPFLAGS'
29842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29848 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29849 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29850 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29853 { echo "$as_me:$LINENO: checking for pid_t" >&5
29854 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29855 if test "${ac_cv_type_pid_t+set}" = set; then
29856 echo $ECHO_N "(cached) $ECHO_C" >&6
29858 cat >conftest.$ac_ext <<_ACEOF
29861 cat confdefs.h >>conftest.$ac_ext
29862 cat >>conftest.$ac_ext <<_ACEOF
29863 /* end confdefs.h. */
29864 $ac_includes_default
29865 typedef pid_t ac__type_new_;
29869 if ((ac__type_new_ *) 0)
29871 if (sizeof (ac__type_new_))
29877 rm -f conftest.$ac_objext
29878 if { (ac_try="$ac_compile"
29879 case "(($ac_try" in
29880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29881 *) ac_try_echo=$ac_try;;
29883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29884 (eval "$ac_compile") 2>conftest.er1
29886 grep -v '^ *+' conftest.er1 >conftest.err
29888 cat conftest.err >&5
29889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890 (exit $ac_status); } &&
29891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29892 { (case "(($ac_try" in
29893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29894 *) ac_try_echo=$ac_try;;
29896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29897 (eval "$ac_try") 2>&5
29899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29900 (exit $ac_status); }; } &&
29901 { ac_try='test -s conftest.$ac_objext'
29902 { (case "(($ac_try" in
29903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29904 *) ac_try_echo=$ac_try;;
29906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29907 (eval "$ac_try") 2>&5
29909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29910 (exit $ac_status); }; }; then
29911 ac_cv_type_pid_t=yes
29913 echo "$as_me: failed program was:" >&5
29914 sed 's/^/| /' conftest.$ac_ext >&5
29916 ac_cv_type_pid_t=no
29919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29921 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29922 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29923 if test $ac_cv_type_pid_t = yes; then
29927 cat >>confdefs.h <<_ACEOF
29933 { echo "$as_me:$LINENO: checking for size_t" >&5
29934 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29935 if test "${ac_cv_type_size_t+set}" = set; then
29936 echo $ECHO_N "(cached) $ECHO_C" >&6
29938 cat >conftest.$ac_ext <<_ACEOF
29941 cat confdefs.h >>conftest.$ac_ext
29942 cat >>conftest.$ac_ext <<_ACEOF
29943 /* end confdefs.h. */
29944 $ac_includes_default
29945 typedef size_t ac__type_new_;
29949 if ((ac__type_new_ *) 0)
29951 if (sizeof (ac__type_new_))
29957 rm -f conftest.$ac_objext
29958 if { (ac_try="$ac_compile"
29959 case "(($ac_try" in
29960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29961 *) ac_try_echo=$ac_try;;
29963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29964 (eval "$ac_compile") 2>conftest.er1
29966 grep -v '^ *+' conftest.er1 >conftest.err
29968 cat conftest.err >&5
29969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970 (exit $ac_status); } &&
29971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29972 { (case "(($ac_try" in
29973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29974 *) ac_try_echo=$ac_try;;
29976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29977 (eval "$ac_try") 2>&5
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); }; } &&
29981 { ac_try='test -s conftest.$ac_objext'
29982 { (case "(($ac_try" in
29983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29984 *) ac_try_echo=$ac_try;;
29986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29987 (eval "$ac_try") 2>&5
29989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29990 (exit $ac_status); }; }; then
29991 ac_cv_type_size_t=yes
29993 echo "$as_me: failed program was:" >&5
29994 sed 's/^/| /' conftest.$ac_ext >&5
29996 ac_cv_type_size_t=no
29999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30001 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30002 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30003 if test $ac_cv_type_size_t = yes; then
30007 cat >>confdefs.h <<_ACEOF
30008 #define size_t unsigned int
30013 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30014 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30015 if test "${ac_cv_type_signal+set}" = set; then
30016 echo $ECHO_N "(cached) $ECHO_C" >&6
30018 cat >conftest.$ac_ext <<_ACEOF
30021 cat confdefs.h >>conftest.$ac_ext
30022 cat >>conftest.$ac_ext <<_ACEOF
30023 /* end confdefs.h. */
30024 #include <sys/types.h>
30025 #include <signal.h>
30030 return *(signal (0, 0)) (0) == 1;
30035 rm -f conftest.$ac_objext
30036 if { (ac_try="$ac_compile"
30037 case "(($ac_try" in
30038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30039 *) ac_try_echo=$ac_try;;
30041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30042 (eval "$ac_compile") 2>conftest.er1
30044 grep -v '^ *+' conftest.er1 >conftest.err
30046 cat conftest.err >&5
30047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048 (exit $ac_status); } &&
30049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30050 { (case "(($ac_try" in
30051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30052 *) ac_try_echo=$ac_try;;
30054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30055 (eval "$ac_try") 2>&5
30057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058 (exit $ac_status); }; } &&
30059 { ac_try='test -s conftest.$ac_objext'
30060 { (case "(($ac_try" in
30061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30062 *) ac_try_echo=$ac_try;;
30064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30065 (eval "$ac_try") 2>&5
30067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30068 (exit $ac_status); }; }; then
30069 ac_cv_type_signal=int
30071 echo "$as_me: failed program was:" >&5
30072 sed 's/^/| /' conftest.$ac_ext >&5
30074 ac_cv_type_signal=void
30077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30079 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30080 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30082 cat >>confdefs.h <<_ACEOF
30083 #define RETSIGTYPE $ac_cv_type_signal
30087 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30088 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30089 if test "${ac_cv_struct_tm+set}" = set; then
30090 echo $ECHO_N "(cached) $ECHO_C" >&6
30092 cat >conftest.$ac_ext <<_ACEOF
30095 cat confdefs.h >>conftest.$ac_ext
30096 cat >>conftest.$ac_ext <<_ACEOF
30097 /* end confdefs.h. */
30098 #include <sys/types.h>
30104 struct tm *tp; tp->tm_sec;
30109 rm -f conftest.$ac_objext
30110 if { (ac_try="$ac_compile"
30111 case "(($ac_try" in
30112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30113 *) ac_try_echo=$ac_try;;
30115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30116 (eval "$ac_compile") 2>conftest.er1
30118 grep -v '^ *+' conftest.er1 >conftest.err
30120 cat conftest.err >&5
30121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122 (exit $ac_status); } &&
30123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30124 { (case "(($ac_try" in
30125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30126 *) ac_try_echo=$ac_try;;
30128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30129 (eval "$ac_try") 2>&5
30131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132 (exit $ac_status); }; } &&
30133 { ac_try='test -s conftest.$ac_objext'
30134 { (case "(($ac_try" in
30135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30136 *) ac_try_echo=$ac_try;;
30138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30139 (eval "$ac_try") 2>&5
30141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30142 (exit $ac_status); }; }; then
30143 ac_cv_struct_tm=time.h
30145 echo "$as_me: failed program was:" >&5
30146 sed 's/^/| /' conftest.$ac_ext >&5
30148 ac_cv_struct_tm=sys/time.h
30151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30153 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30154 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30155 if test $ac_cv_struct_tm = sys/time.h; then
30157 cat >>confdefs.h <<\_ACEOF
30158 #define TM_IN_SYS_TIME 1
30163 { echo "$as_me:$LINENO: checking for int64_t" >&5
30164 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30165 if test "${ac_cv_type_int64_t+set}" = set; then
30166 echo $ECHO_N "(cached) $ECHO_C" >&6
30168 cat >conftest.$ac_ext <<_ACEOF
30171 cat confdefs.h >>conftest.$ac_ext
30172 cat >>conftest.$ac_ext <<_ACEOF
30173 /* end confdefs.h. */
30174 $ac_includes_default
30175 typedef int64_t ac__type_new_;
30179 if ((ac__type_new_ *) 0)
30181 if (sizeof (ac__type_new_))
30187 rm -f conftest.$ac_objext
30188 if { (ac_try="$ac_compile"
30189 case "(($ac_try" in
30190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30191 *) ac_try_echo=$ac_try;;
30193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30194 (eval "$ac_compile") 2>conftest.er1
30196 grep -v '^ *+' conftest.er1 >conftest.err
30198 cat conftest.err >&5
30199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30200 (exit $ac_status); } &&
30201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30202 { (case "(($ac_try" in
30203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30204 *) ac_try_echo=$ac_try;;
30206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30207 (eval "$ac_try") 2>&5
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); }; } &&
30211 { ac_try='test -s conftest.$ac_objext'
30212 { (case "(($ac_try" in
30213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30214 *) ac_try_echo=$ac_try;;
30216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30217 (eval "$ac_try") 2>&5
30219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30220 (exit $ac_status); }; }; then
30221 ac_cv_type_int64_t=yes
30223 echo "$as_me: failed program was:" >&5
30224 sed 's/^/| /' conftest.$ac_ext >&5
30226 ac_cv_type_int64_t=no
30229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30231 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30232 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30233 if test $ac_cv_type_int64_t = yes; then
30235 cat >>confdefs.h <<_ACEOF
30236 #define HAVE_INT64_T 1
30241 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30242 echo "$as_me: error: Type int64_t required but not found" >&2;}
30243 { (exit 1); exit 1; }; }
30246 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30247 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30248 if test "${ac_cv_type_uint64_t+set}" = set; then
30249 echo $ECHO_N "(cached) $ECHO_C" >&6
30251 cat >conftest.$ac_ext <<_ACEOF
30254 cat confdefs.h >>conftest.$ac_ext
30255 cat >>conftest.$ac_ext <<_ACEOF
30256 /* end confdefs.h. */
30257 $ac_includes_default
30258 typedef uint64_t ac__type_new_;
30262 if ((ac__type_new_ *) 0)
30264 if (sizeof (ac__type_new_))
30270 rm -f conftest.$ac_objext
30271 if { (ac_try="$ac_compile"
30272 case "(($ac_try" in
30273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30274 *) ac_try_echo=$ac_try;;
30276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30277 (eval "$ac_compile") 2>conftest.er1
30279 grep -v '^ *+' conftest.er1 >conftest.err
30281 cat conftest.err >&5
30282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283 (exit $ac_status); } &&
30284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
30292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30293 (exit $ac_status); }; } &&
30294 { ac_try='test -s conftest.$ac_objext'
30295 { (case "(($ac_try" in
30296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30297 *) ac_try_echo=$ac_try;;
30299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30300 (eval "$ac_try") 2>&5
30302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30303 (exit $ac_status); }; }; then
30304 ac_cv_type_uint64_t=yes
30306 echo "$as_me: failed program was:" >&5
30307 sed 's/^/| /' conftest.$ac_ext >&5
30309 ac_cv_type_uint64_t=no
30312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30314 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30315 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30316 if test $ac_cv_type_uint64_t = yes; then
30318 cat >>confdefs.h <<_ACEOF
30319 #define HAVE_UINT64_T 1
30324 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30325 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30326 if test "${ac_cv_type_u_int64_t+set}" = set; then
30327 echo $ECHO_N "(cached) $ECHO_C" >&6
30329 cat >conftest.$ac_ext <<_ACEOF
30332 cat confdefs.h >>conftest.$ac_ext
30333 cat >>conftest.$ac_ext <<_ACEOF
30334 /* end confdefs.h. */
30335 $ac_includes_default
30336 typedef u_int64_t ac__type_new_;
30340 if ((ac__type_new_ *) 0)
30342 if (sizeof (ac__type_new_))
30348 rm -f conftest.$ac_objext
30349 if { (ac_try="$ac_compile"
30350 case "(($ac_try" in
30351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30352 *) ac_try_echo=$ac_try;;
30354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30355 (eval "$ac_compile") 2>conftest.er1
30357 grep -v '^ *+' conftest.er1 >conftest.err
30359 cat conftest.err >&5
30360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30361 (exit $ac_status); } &&
30362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30363 { (case "(($ac_try" in
30364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30365 *) ac_try_echo=$ac_try;;
30367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30368 (eval "$ac_try") 2>&5
30370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371 (exit $ac_status); }; } &&
30372 { ac_try='test -s conftest.$ac_objext'
30373 { (case "(($ac_try" in
30374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30375 *) ac_try_echo=$ac_try;;
30377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30378 (eval "$ac_try") 2>&5
30380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30381 (exit $ac_status); }; }; then
30382 ac_cv_type_u_int64_t=yes
30384 echo "$as_me: failed program was:" >&5
30385 sed 's/^/| /' conftest.$ac_ext >&5
30387 ac_cv_type_u_int64_t=no
30390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30392 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30393 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30394 if test $ac_cv_type_u_int64_t = yes; then
30396 cat >>confdefs.h <<_ACEOF
30397 #define HAVE_U_INT64_T 1
30402 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30403 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30404 { (exit 1); exit 1; }; }
30418 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30421 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30424 echo $ECHO_N "(cached) $ECHO_C" >&6
30426 cat >conftest.$ac_ext <<_ACEOF
30429 cat confdefs.h >>conftest.$ac_ext
30430 cat >>conftest.$ac_ext <<_ACEOF
30431 /* end confdefs.h. */
30432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30434 #define $ac_func innocuous_$ac_func
30436 /* System header to define __stub macros and hopefully few prototypes,
30437 which can conflict with char $ac_func (); below.
30438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30439 <limits.h> exists even on freestanding compilers. */
30442 # include <limits.h>
30444 # include <assert.h>
30449 /* Override any GCC internal prototype to avoid an error.
30450 Use char because int might match the return type of a GCC
30451 builtin and then its argument prototype would still apply. */
30456 /* The GNU C library defines this for functions which it implements
30457 to always fail with ENOSYS. Some functions are actually named
30458 something starting with __ and the normal name is an alias. */
30459 #if defined __stub_$ac_func || defined __stub___$ac_func
30466 return $ac_func ();
30471 rm -f conftest.$ac_objext conftest$ac_exeext
30472 if { (ac_try="$ac_link"
30473 case "(($ac_try" in
30474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30475 *) ac_try_echo=$ac_try;;
30477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30478 (eval "$ac_link") 2>conftest.er1
30480 grep -v '^ *+' conftest.er1 >conftest.err
30482 cat conftest.err >&5
30483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484 (exit $ac_status); } &&
30485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30486 { (case "(($ac_try" in
30487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30488 *) ac_try_echo=$ac_try;;
30490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30491 (eval "$ac_try") 2>&5
30493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30494 (exit $ac_status); }; } &&
30495 { ac_try='test -s conftest$ac_exeext'
30496 { (case "(($ac_try" in
30497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30498 *) ac_try_echo=$ac_try;;
30500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30501 (eval "$ac_try") 2>&5
30503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30504 (exit $ac_status); }; }; then
30505 eval "$as_ac_var=yes"
30507 echo "$as_me: failed program was:" >&5
30508 sed 's/^/| /' conftest.$ac_ext >&5
30510 eval "$as_ac_var=no"
30513 rm -f core conftest.err conftest.$ac_objext \
30514 conftest$ac_exeext conftest.$ac_ext
30516 ac_res=`eval echo '${'$as_ac_var'}'`
30517 { echo "$as_me:$LINENO: result: $ac_res" >&5
30518 echo "${ECHO_T}$ac_res" >&6; }
30519 if test `eval echo '${'$as_ac_var'}'` = yes; then
30520 cat >>confdefs.h <<_ACEOF
30521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30531 for ac_func in powf fmodf strtof round
30533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30534 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30537 echo $ECHO_N "(cached) $ECHO_C" >&6
30539 cat >conftest.$ac_ext <<_ACEOF
30542 cat confdefs.h >>conftest.$ac_ext
30543 cat >>conftest.$ac_ext <<_ACEOF
30544 /* end confdefs.h. */
30545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30547 #define $ac_func innocuous_$ac_func
30549 /* System header to define __stub macros and hopefully few prototypes,
30550 which can conflict with char $ac_func (); below.
30551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30552 <limits.h> exists even on freestanding compilers. */
30555 # include <limits.h>
30557 # include <assert.h>
30562 /* Override any GCC internal prototype to avoid an error.
30563 Use char because int might match the return type of a GCC
30564 builtin and then its argument prototype would still apply. */
30569 /* The GNU C library defines this for functions which it implements
30570 to always fail with ENOSYS. Some functions are actually named
30571 something starting with __ and the normal name is an alias. */
30572 #if defined __stub_$ac_func || defined __stub___$ac_func
30579 return $ac_func ();
30584 rm -f conftest.$ac_objext conftest$ac_exeext
30585 if { (ac_try="$ac_link"
30586 case "(($ac_try" in
30587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30588 *) ac_try_echo=$ac_try;;
30590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30591 (eval "$ac_link") 2>conftest.er1
30593 grep -v '^ *+' conftest.er1 >conftest.err
30595 cat conftest.err >&5
30596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30597 (exit $ac_status); } &&
30598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30599 { (case "(($ac_try" in
30600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30601 *) ac_try_echo=$ac_try;;
30603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30604 (eval "$ac_try") 2>&5
30606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30607 (exit $ac_status); }; } &&
30608 { ac_try='test -s conftest$ac_exeext'
30609 { (case "(($ac_try" in
30610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30611 *) ac_try_echo=$ac_try;;
30613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30614 (eval "$ac_try") 2>&5
30616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617 (exit $ac_status); }; }; then
30618 eval "$as_ac_var=yes"
30620 echo "$as_me: failed program was:" >&5
30621 sed 's/^/| /' conftest.$ac_ext >&5
30623 eval "$as_ac_var=no"
30626 rm -f core conftest.err conftest.$ac_objext \
30627 conftest$ac_exeext conftest.$ac_ext
30629 ac_res=`eval echo '${'$as_ac_var'}'`
30630 { echo "$as_me:$LINENO: result: $ac_res" >&5
30631 echo "${ECHO_T}$ac_res" >&6; }
30632 if test `eval echo '${'$as_ac_var'}'` = yes; then
30633 cat >>confdefs.h <<_ACEOF
30634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30645 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30648 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30651 echo $ECHO_N "(cached) $ECHO_C" >&6
30653 cat >conftest.$ac_ext <<_ACEOF
30656 cat confdefs.h >>conftest.$ac_ext
30657 cat >>conftest.$ac_ext <<_ACEOF
30658 /* end confdefs.h. */
30659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30661 #define $ac_func innocuous_$ac_func
30663 /* System header to define __stub macros and hopefully few prototypes,
30664 which can conflict with char $ac_func (); below.
30665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30666 <limits.h> exists even on freestanding compilers. */
30669 # include <limits.h>
30671 # include <assert.h>
30676 /* Override any GCC internal prototype to avoid an error.
30677 Use char because int might match the return type of a GCC
30678 builtin and then its argument prototype would still apply. */
30683 /* The GNU C library defines this for functions which it implements
30684 to always fail with ENOSYS. Some functions are actually named
30685 something starting with __ and the normal name is an alias. */
30686 #if defined __stub_$ac_func || defined __stub___$ac_func
30693 return $ac_func ();
30698 rm -f conftest.$ac_objext conftest$ac_exeext
30699 if { (ac_try="$ac_link"
30700 case "(($ac_try" in
30701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30702 *) ac_try_echo=$ac_try;;
30704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30705 (eval "$ac_link") 2>conftest.er1
30707 grep -v '^ *+' conftest.er1 >conftest.err
30709 cat conftest.err >&5
30710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30711 (exit $ac_status); } &&
30712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30713 { (case "(($ac_try" in
30714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30715 *) ac_try_echo=$ac_try;;
30717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30718 (eval "$ac_try") 2>&5
30720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30721 (exit $ac_status); }; } &&
30722 { ac_try='test -s conftest$ac_exeext'
30723 { (case "(($ac_try" in
30724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30725 *) ac_try_echo=$ac_try;;
30727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30728 (eval "$ac_try") 2>&5
30730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30731 (exit $ac_status); }; }; then
30732 eval "$as_ac_var=yes"
30734 echo "$as_me: failed program was:" >&5
30735 sed 's/^/| /' conftest.$ac_ext >&5
30737 eval "$as_ac_var=no"
30740 rm -f core conftest.err conftest.$ac_objext \
30741 conftest$ac_exeext conftest.$ac_ext
30743 ac_res=`eval echo '${'$as_ac_var'}'`
30744 { echo "$as_me:$LINENO: result: $ac_res" >&5
30745 echo "${ECHO_T}$ac_res" >&6; }
30746 if test `eval echo '${'$as_ac_var'}'` = yes; then
30747 cat >>confdefs.h <<_ACEOF
30748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30757 for ac_func in isatty mkdtemp mkstemp
30759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30763 echo $ECHO_N "(cached) $ECHO_C" >&6
30765 cat >conftest.$ac_ext <<_ACEOF
30768 cat confdefs.h >>conftest.$ac_ext
30769 cat >>conftest.$ac_ext <<_ACEOF
30770 /* end confdefs.h. */
30771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30773 #define $ac_func innocuous_$ac_func
30775 /* System header to define __stub macros and hopefully few prototypes,
30776 which can conflict with char $ac_func (); below.
30777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30778 <limits.h> exists even on freestanding compilers. */
30781 # include <limits.h>
30783 # include <assert.h>
30788 /* Override any GCC internal prototype to avoid an error.
30789 Use char because int might match the return type of a GCC
30790 builtin and then its argument prototype would still apply. */
30795 /* The GNU C library defines this for functions which it implements
30796 to always fail with ENOSYS. Some functions are actually named
30797 something starting with __ and the normal name is an alias. */
30798 #if defined __stub_$ac_func || defined __stub___$ac_func
30805 return $ac_func ();
30810 rm -f conftest.$ac_objext conftest$ac_exeext
30811 if { (ac_try="$ac_link"
30812 case "(($ac_try" in
30813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30814 *) ac_try_echo=$ac_try;;
30816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30817 (eval "$ac_link") 2>conftest.er1
30819 grep -v '^ *+' conftest.er1 >conftest.err
30821 cat conftest.err >&5
30822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823 (exit $ac_status); } &&
30824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30825 { (case "(($ac_try" in
30826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30827 *) ac_try_echo=$ac_try;;
30829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30830 (eval "$ac_try") 2>&5
30832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30833 (exit $ac_status); }; } &&
30834 { ac_try='test -s conftest$ac_exeext'
30835 { (case "(($ac_try" in
30836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30837 *) ac_try_echo=$ac_try;;
30839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30840 (eval "$ac_try") 2>&5
30842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30843 (exit $ac_status); }; }; then
30844 eval "$as_ac_var=yes"
30846 echo "$as_me: failed program was:" >&5
30847 sed 's/^/| /' conftest.$ac_ext >&5
30849 eval "$as_ac_var=no"
30852 rm -f core conftest.err conftest.$ac_objext \
30853 conftest$ac_exeext conftest.$ac_ext
30855 ac_res=`eval echo '${'$as_ac_var'}'`
30856 { echo "$as_me:$LINENO: result: $ac_res" >&5
30857 echo "${ECHO_T}$ac_res" >&6; }
30858 if test `eval echo '${'$as_ac_var'}'` = yes; then
30859 cat >>confdefs.h <<_ACEOF
30860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30873 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30876 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30878 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30879 echo $ECHO_N "(cached) $ECHO_C" >&6
30881 cat >conftest.$ac_ext <<_ACEOF
30884 cat confdefs.h >>conftest.$ac_ext
30885 cat >>conftest.$ac_ext <<_ACEOF
30886 /* end confdefs.h. */
30887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30889 #define $ac_func innocuous_$ac_func
30891 /* System header to define __stub macros and hopefully few prototypes,
30892 which can conflict with char $ac_func (); below.
30893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30894 <limits.h> exists even on freestanding compilers. */
30897 # include <limits.h>
30899 # include <assert.h>
30904 /* Override any GCC internal prototype to avoid an error.
30905 Use char because int might match the return type of a GCC
30906 builtin and then its argument prototype would still apply. */
30911 /* The GNU C library defines this for functions which it implements
30912 to always fail with ENOSYS. Some functions are actually named
30913 something starting with __ and the normal name is an alias. */
30914 #if defined __stub_$ac_func || defined __stub___$ac_func
30921 return $ac_func ();
30926 rm -f conftest.$ac_objext conftest$ac_exeext
30927 if { (ac_try="$ac_link"
30928 case "(($ac_try" in
30929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30930 *) ac_try_echo=$ac_try;;
30932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30933 (eval "$ac_link") 2>conftest.er1
30935 grep -v '^ *+' conftest.er1 >conftest.err
30937 cat conftest.err >&5
30938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30939 (exit $ac_status); } &&
30940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30941 { (case "(($ac_try" in
30942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30943 *) ac_try_echo=$ac_try;;
30945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30946 (eval "$ac_try") 2>&5
30948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949 (exit $ac_status); }; } &&
30950 { ac_try='test -s conftest$ac_exeext'
30951 { (case "(($ac_try" in
30952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30953 *) ac_try_echo=$ac_try;;
30955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30956 (eval "$ac_try") 2>&5
30958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959 (exit $ac_status); }; }; then
30960 eval "$as_ac_var=yes"
30962 echo "$as_me: failed program was:" >&5
30963 sed 's/^/| /' conftest.$ac_ext >&5
30965 eval "$as_ac_var=no"
30968 rm -f core conftest.err conftest.$ac_objext \
30969 conftest$ac_exeext conftest.$ac_ext
30971 ac_res=`eval echo '${'$as_ac_var'}'`
30972 { echo "$as_me:$LINENO: result: $ac_res" >&5
30973 echo "${ECHO_T}$ac_res" >&6; }
30974 if test `eval echo '${'$as_ac_var'}'` = yes; then
30975 cat >>confdefs.h <<_ACEOF
30976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30986 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30989 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30991 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30992 echo $ECHO_N "(cached) $ECHO_C" >&6
30994 cat >conftest.$ac_ext <<_ACEOF
30997 cat confdefs.h >>conftest.$ac_ext
30998 cat >>conftest.$ac_ext <<_ACEOF
30999 /* end confdefs.h. */
31000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31002 #define $ac_func innocuous_$ac_func
31004 /* System header to define __stub macros and hopefully few prototypes,
31005 which can conflict with char $ac_func (); below.
31006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31007 <limits.h> exists even on freestanding compilers. */
31010 # include <limits.h>
31012 # include <assert.h>
31017 /* Override any GCC internal prototype to avoid an error.
31018 Use char because int might match the return type of a GCC
31019 builtin and then its argument prototype would still apply. */
31024 /* The GNU C library defines this for functions which it implements
31025 to always fail with ENOSYS. Some functions are actually named
31026 something starting with __ and the normal name is an alias. */
31027 #if defined __stub_$ac_func || defined __stub___$ac_func
31034 return $ac_func ();
31039 rm -f conftest.$ac_objext conftest$ac_exeext
31040 if { (ac_try="$ac_link"
31041 case "(($ac_try" in
31042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31043 *) ac_try_echo=$ac_try;;
31045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31046 (eval "$ac_link") 2>conftest.er1
31048 grep -v '^ *+' conftest.er1 >conftest.err
31050 cat conftest.err >&5
31051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31052 (exit $ac_status); } &&
31053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31054 { (case "(($ac_try" in
31055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31056 *) ac_try_echo=$ac_try;;
31058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31059 (eval "$ac_try") 2>&5
31061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31062 (exit $ac_status); }; } &&
31063 { ac_try='test -s conftest$ac_exeext'
31064 { (case "(($ac_try" in
31065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31066 *) ac_try_echo=$ac_try;;
31068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31069 (eval "$ac_try") 2>&5
31071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072 (exit $ac_status); }; }; then
31073 eval "$as_ac_var=yes"
31075 echo "$as_me: failed program was:" >&5
31076 sed 's/^/| /' conftest.$ac_ext >&5
31078 eval "$as_ac_var=no"
31081 rm -f core conftest.err conftest.$ac_objext \
31082 conftest$ac_exeext conftest.$ac_ext
31084 ac_res=`eval echo '${'$as_ac_var'}'`
31085 { echo "$as_me:$LINENO: result: $ac_res" >&5
31086 echo "${ECHO_T}$ac_res" >&6; }
31087 if test `eval echo '${'$as_ac_var'}'` = yes; then
31088 cat >>confdefs.h <<_ACEOF
31089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31099 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31102 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31104 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31105 echo $ECHO_N "(cached) $ECHO_C" >&6
31107 cat >conftest.$ac_ext <<_ACEOF
31110 cat confdefs.h >>conftest.$ac_ext
31111 cat >>conftest.$ac_ext <<_ACEOF
31112 /* end confdefs.h. */
31113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31115 #define $ac_func innocuous_$ac_func
31117 /* System header to define __stub macros and hopefully few prototypes,
31118 which can conflict with char $ac_func (); below.
31119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31120 <limits.h> exists even on freestanding compilers. */
31123 # include <limits.h>
31125 # include <assert.h>
31130 /* Override any GCC internal prototype to avoid an error.
31131 Use char because int might match the return type of a GCC
31132 builtin and then its argument prototype would still apply. */
31137 /* The GNU C library defines this for functions which it implements
31138 to always fail with ENOSYS. Some functions are actually named
31139 something starting with __ and the normal name is an alias. */
31140 #if defined __stub_$ac_func || defined __stub___$ac_func
31147 return $ac_func ();
31152 rm -f conftest.$ac_objext conftest$ac_exeext
31153 if { (ac_try="$ac_link"
31154 case "(($ac_try" in
31155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31156 *) ac_try_echo=$ac_try;;
31158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31159 (eval "$ac_link") 2>conftest.er1
31161 grep -v '^ *+' conftest.er1 >conftest.err
31163 cat conftest.err >&5
31164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31165 (exit $ac_status); } &&
31166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31167 { (case "(($ac_try" in
31168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31169 *) ac_try_echo=$ac_try;;
31171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31172 (eval "$ac_try") 2>&5
31174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31175 (exit $ac_status); }; } &&
31176 { ac_try='test -s conftest$ac_exeext'
31177 { (case "(($ac_try" in
31178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31179 *) ac_try_echo=$ac_try;;
31181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31182 (eval "$ac_try") 2>&5
31184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185 (exit $ac_status); }; }; then
31186 eval "$as_ac_var=yes"
31188 echo "$as_me: failed program was:" >&5
31189 sed 's/^/| /' conftest.$ac_ext >&5
31191 eval "$as_ac_var=no"
31194 rm -f core conftest.err conftest.$ac_objext \
31195 conftest$ac_exeext conftest.$ac_ext
31197 ac_res=`eval echo '${'$as_ac_var'}'`
31198 { echo "$as_me:$LINENO: result: $ac_res" >&5
31199 echo "${ECHO_T}$ac_res" >&6; }
31200 if test `eval echo '${'$as_ac_var'}'` = yes; then
31201 cat >>confdefs.h <<_ACEOF
31202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31208 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31209 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31210 if test "${llvm_cv_c_printf_a+set}" = set; then
31211 echo $ECHO_N "(cached) $ECHO_C" >&6
31214 ac_cpp='$CPP $CPPFLAGS'
31215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31219 if test "$cross_compiling" = yes; then
31220 llvmac_cv_c_printf_a=no
31222 cat >conftest.$ac_ext <<_ACEOF
31226 cat confdefs.h >>conftest.$ac_ext
31227 cat >>conftest.$ac_ext <<_ACEOF
31228 /* end confdefs.h. */
31231 #include <stdlib.h>
31237 volatile double A, B;
31241 sprintf(Buffer, "%a", A);
31245 if (A != 0x1.999999999999ap-4)
31252 rm -f conftest$ac_exeext
31253 if { (ac_try="$ac_link"
31254 case "(($ac_try" in
31255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31256 *) ac_try_echo=$ac_try;;
31258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31259 (eval "$ac_link") 2>&5
31261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31263 { (case "(($ac_try" in
31264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31265 *) ac_try_echo=$ac_try;;
31267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31268 (eval "$ac_try") 2>&5
31270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31271 (exit $ac_status); }; }; then
31272 llvm_cv_c_printf_a=yes
31274 echo "$as_me: program exited with status $ac_status" >&5
31275 echo "$as_me: failed program was:" >&5
31276 sed 's/^/| /' conftest.$ac_ext >&5
31278 ( exit $ac_status )
31279 llvmac_cv_c_printf_a=no
31281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31286 ac_cpp='$CPP $CPPFLAGS'
31287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31292 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31293 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31294 if test "$llvm_cv_c_printf_a" = "yes"; then
31296 cat >>confdefs.h <<\_ACEOF
31297 #define HAVE_PRINTF_A 1
31302 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31303 # for constant arguments. Useless!
31304 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31305 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31306 if test "${ac_cv_working_alloca_h+set}" = set; then
31307 echo $ECHO_N "(cached) $ECHO_C" >&6
31309 cat >conftest.$ac_ext <<_ACEOF
31312 cat confdefs.h >>conftest.$ac_ext
31313 cat >>conftest.$ac_ext <<_ACEOF
31314 /* end confdefs.h. */
31315 #include <alloca.h>
31319 char *p = (char *) alloca (2 * sizeof (int));
31325 rm -f conftest.$ac_objext conftest$ac_exeext
31326 if { (ac_try="$ac_link"
31327 case "(($ac_try" in
31328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31329 *) ac_try_echo=$ac_try;;
31331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31332 (eval "$ac_link") 2>conftest.er1
31334 grep -v '^ *+' conftest.er1 >conftest.err
31336 cat conftest.err >&5
31337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338 (exit $ac_status); } &&
31339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31340 { (case "(($ac_try" in
31341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31342 *) ac_try_echo=$ac_try;;
31344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31345 (eval "$ac_try") 2>&5
31347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31348 (exit $ac_status); }; } &&
31349 { ac_try='test -s conftest$ac_exeext'
31350 { (case "(($ac_try" in
31351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31352 *) ac_try_echo=$ac_try;;
31354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31355 (eval "$ac_try") 2>&5
31357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31358 (exit $ac_status); }; }; then
31359 ac_cv_working_alloca_h=yes
31361 echo "$as_me: failed program was:" >&5
31362 sed 's/^/| /' conftest.$ac_ext >&5
31364 ac_cv_working_alloca_h=no
31367 rm -f core conftest.err conftest.$ac_objext \
31368 conftest$ac_exeext conftest.$ac_ext
31370 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31371 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31372 if test $ac_cv_working_alloca_h = yes; then
31374 cat >>confdefs.h <<\_ACEOF
31375 #define HAVE_ALLOCA_H 1
31380 { echo "$as_me:$LINENO: checking for alloca" >&5
31381 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31382 if test "${ac_cv_func_alloca_works+set}" = set; then
31383 echo $ECHO_N "(cached) $ECHO_C" >&6
31385 cat >conftest.$ac_ext <<_ACEOF
31388 cat confdefs.h >>conftest.$ac_ext
31389 cat >>conftest.$ac_ext <<_ACEOF
31390 /* end confdefs.h. */
31392 # define alloca __builtin_alloca
31395 # include <malloc.h>
31396 # define alloca _alloca
31399 # include <alloca.h>
31404 # ifndef alloca /* predefined by HP cc +Olibcalls */
31415 char *p = (char *) alloca (1);
31421 rm -f conftest.$ac_objext conftest$ac_exeext
31422 if { (ac_try="$ac_link"
31423 case "(($ac_try" in
31424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31425 *) ac_try_echo=$ac_try;;
31427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31428 (eval "$ac_link") 2>conftest.er1
31430 grep -v '^ *+' conftest.er1 >conftest.err
31432 cat conftest.err >&5
31433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434 (exit $ac_status); } &&
31435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31436 { (case "(($ac_try" in
31437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31438 *) ac_try_echo=$ac_try;;
31440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31441 (eval "$ac_try") 2>&5
31443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31444 (exit $ac_status); }; } &&
31445 { ac_try='test -s conftest$ac_exeext'
31446 { (case "(($ac_try" in
31447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31448 *) ac_try_echo=$ac_try;;
31450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31451 (eval "$ac_try") 2>&5
31453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31454 (exit $ac_status); }; }; then
31455 ac_cv_func_alloca_works=yes
31457 echo "$as_me: failed program was:" >&5
31458 sed 's/^/| /' conftest.$ac_ext >&5
31460 ac_cv_func_alloca_works=no
31463 rm -f core conftest.err conftest.$ac_objext \
31464 conftest$ac_exeext conftest.$ac_ext
31466 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31467 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31469 if test $ac_cv_func_alloca_works = yes; then
31471 cat >>confdefs.h <<\_ACEOF
31472 #define HAVE_ALLOCA 1
31476 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31477 # that cause trouble. Some versions do not even contain alloca or
31478 # contain a buggy version. If you still want to use their alloca,
31479 # use ar to extract alloca.o from them instead of compiling alloca.c.
31481 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31483 cat >>confdefs.h <<\_ACEOF
31488 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31489 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31490 if test "${ac_cv_os_cray+set}" = set; then
31491 echo $ECHO_N "(cached) $ECHO_C" >&6
31493 cat >conftest.$ac_ext <<_ACEOF
31496 cat confdefs.h >>conftest.$ac_ext
31497 cat >>conftest.$ac_ext <<_ACEOF
31498 /* end confdefs.h. */
31499 #if defined CRAY && ! defined CRAY2
31506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31507 $EGREP "webecray" >/dev/null 2>&1; then
31515 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31516 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31517 if test $ac_cv_os_cray = yes; then
31518 for ac_func in _getb67 GETB67 getb67; do
31519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31520 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31522 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31523 echo $ECHO_N "(cached) $ECHO_C" >&6
31525 cat >conftest.$ac_ext <<_ACEOF
31528 cat confdefs.h >>conftest.$ac_ext
31529 cat >>conftest.$ac_ext <<_ACEOF
31530 /* end confdefs.h. */
31531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31533 #define $ac_func innocuous_$ac_func
31535 /* System header to define __stub macros and hopefully few prototypes,
31536 which can conflict with char $ac_func (); below.
31537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31538 <limits.h> exists even on freestanding compilers. */
31541 # include <limits.h>
31543 # include <assert.h>
31548 /* Override any GCC internal prototype to avoid an error.
31549 Use char because int might match the return type of a GCC
31550 builtin and then its argument prototype would still apply. */
31555 /* The GNU C library defines this for functions which it implements
31556 to always fail with ENOSYS. Some functions are actually named
31557 something starting with __ and the normal name is an alias. */
31558 #if defined __stub_$ac_func || defined __stub___$ac_func
31565 return $ac_func ();
31570 rm -f conftest.$ac_objext conftest$ac_exeext
31571 if { (ac_try="$ac_link"
31572 case "(($ac_try" in
31573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31574 *) ac_try_echo=$ac_try;;
31576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31577 (eval "$ac_link") 2>conftest.er1
31579 grep -v '^ *+' conftest.er1 >conftest.err
31581 cat conftest.err >&5
31582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31583 (exit $ac_status); } &&
31584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31585 { (case "(($ac_try" in
31586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31587 *) ac_try_echo=$ac_try;;
31589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31590 (eval "$ac_try") 2>&5
31592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31593 (exit $ac_status); }; } &&
31594 { ac_try='test -s conftest$ac_exeext'
31595 { (case "(($ac_try" in
31596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31597 *) ac_try_echo=$ac_try;;
31599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31600 (eval "$ac_try") 2>&5
31602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31603 (exit $ac_status); }; }; then
31604 eval "$as_ac_var=yes"
31606 echo "$as_me: failed program was:" >&5
31607 sed 's/^/| /' conftest.$ac_ext >&5
31609 eval "$as_ac_var=no"
31612 rm -f core conftest.err conftest.$ac_objext \
31613 conftest$ac_exeext conftest.$ac_ext
31615 ac_res=`eval echo '${'$as_ac_var'}'`
31616 { echo "$as_me:$LINENO: result: $ac_res" >&5
31617 echo "${ECHO_T}$ac_res" >&6; }
31618 if test `eval echo '${'$as_ac_var'}'` = yes; then
31620 cat >>confdefs.h <<_ACEOF
31621 #define CRAY_STACKSEG_END $ac_func
31630 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31631 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31632 if test "${ac_cv_c_stack_direction+set}" = set; then
31633 echo $ECHO_N "(cached) $ECHO_C" >&6
31635 if test "$cross_compiling" = yes; then
31636 ac_cv_c_stack_direction=0
31638 cat >conftest.$ac_ext <<_ACEOF
31641 cat confdefs.h >>conftest.$ac_ext
31642 cat >>conftest.$ac_ext <<_ACEOF
31643 /* end confdefs.h. */
31644 $ac_includes_default
31646 find_stack_direction ()
31648 static char *addr = 0;
31653 return find_stack_direction ();
31656 return (&dummy > addr) ? 1 : -1;
31662 return find_stack_direction () < 0;
31665 rm -f conftest$ac_exeext
31666 if { (ac_try="$ac_link"
31667 case "(($ac_try" in
31668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31669 *) ac_try_echo=$ac_try;;
31671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31672 (eval "$ac_link") 2>&5
31674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31676 { (case "(($ac_try" in
31677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31678 *) ac_try_echo=$ac_try;;
31680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31681 (eval "$ac_try") 2>&5
31683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31684 (exit $ac_status); }; }; then
31685 ac_cv_c_stack_direction=1
31687 echo "$as_me: program exited with status $ac_status" >&5
31688 echo "$as_me: failed program was:" >&5
31689 sed 's/^/| /' conftest.$ac_ext >&5
31691 ( exit $ac_status )
31692 ac_cv_c_stack_direction=-1
31694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31699 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31700 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31702 cat >>confdefs.h <<_ACEOF
31703 #define STACK_DIRECTION $ac_cv_c_stack_direction
31710 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31711 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31712 if test "${ac_cv_func_rand48+set}" = set; then
31713 echo $ECHO_N "(cached) $ECHO_C" >&6
31716 ac_cpp='$CXXCPP $CPPFLAGS'
31717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31721 cat >conftest.$ac_ext <<_ACEOF
31724 cat confdefs.h >>conftest.$ac_ext
31725 cat >>conftest.$ac_ext <<_ACEOF
31726 /* end confdefs.h. */
31727 #include <stdlib.h>
31731 srand48(0);lrand48();drand48();
31736 rm -f conftest.$ac_objext
31737 if { (ac_try="$ac_compile"
31738 case "(($ac_try" in
31739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31740 *) ac_try_echo=$ac_try;;
31742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31743 (eval "$ac_compile") 2>conftest.er1
31745 grep -v '^ *+' conftest.er1 >conftest.err
31747 cat conftest.err >&5
31748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31749 (exit $ac_status); } &&
31750 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31751 { (case "(($ac_try" in
31752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31753 *) ac_try_echo=$ac_try;;
31755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31756 (eval "$ac_try") 2>&5
31758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31759 (exit $ac_status); }; } &&
31760 { ac_try='test -s conftest.$ac_objext'
31761 { (case "(($ac_try" in
31762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31763 *) ac_try_echo=$ac_try;;
31765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31766 (eval "$ac_try") 2>&5
31768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769 (exit $ac_status); }; }; then
31770 ac_cv_func_rand48=yes
31772 echo "$as_me: failed program was:" >&5
31773 sed 's/^/| /' conftest.$ac_ext >&5
31775 ac_cv_func_rand48=no
31778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31780 ac_cpp='$CPP $CPPFLAGS'
31781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31786 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31787 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31789 if test "$ac_cv_func_rand48" = "yes" ; then
31791 cat >>confdefs.h <<\_ACEOF
31792 #define HAVE_RAND48 1
31798 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31799 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31800 if test "${ac_cv_cxx_namespaces+set}" = set; then
31801 echo $ECHO_N "(cached) $ECHO_C" >&6
31804 ac_cpp='$CXXCPP $CPPFLAGS'
31805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31809 cat >conftest.$ac_ext <<_ACEOF
31812 cat confdefs.h >>conftest.$ac_ext
31813 cat >>conftest.$ac_ext <<_ACEOF
31814 /* end confdefs.h. */
31815 namespace Outer { namespace Inner { int i = 0; }}
31819 using namespace Outer::Inner; return i;
31824 rm -f conftest.$ac_objext
31825 if { (ac_try="$ac_compile"
31826 case "(($ac_try" in
31827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31828 *) ac_try_echo=$ac_try;;
31830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31831 (eval "$ac_compile") 2>conftest.er1
31833 grep -v '^ *+' conftest.er1 >conftest.err
31835 cat conftest.err >&5
31836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31837 (exit $ac_status); } &&
31838 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31839 { (case "(($ac_try" in
31840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31841 *) ac_try_echo=$ac_try;;
31843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31844 (eval "$ac_try") 2>&5
31846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31847 (exit $ac_status); }; } &&
31848 { ac_try='test -s conftest.$ac_objext'
31849 { (case "(($ac_try" in
31850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31851 *) ac_try_echo=$ac_try;;
31853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31854 (eval "$ac_try") 2>&5
31856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31857 (exit $ac_status); }; }; then
31858 ac_cv_cxx_namespaces=yes
31860 echo "$as_me: failed program was:" >&5
31861 sed 's/^/| /' conftest.$ac_ext >&5
31863 ac_cv_cxx_namespaces=no
31866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31868 ac_cpp='$CPP $CPPFLAGS'
31869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31875 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31876 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31877 if test "$ac_cv_cxx_namespaces" = yes; then
31879 cat >>confdefs.h <<\_ACEOF
31880 #define HAVE_NAMESPACES
31885 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31886 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31887 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31888 echo $ECHO_N "(cached) $ECHO_C" >&6
31892 ac_cpp='$CXXCPP $CPPFLAGS'
31893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31897 cat >conftest.$ac_ext <<_ACEOF
31900 cat confdefs.h >>conftest.$ac_ext
31901 cat >>conftest.$ac_ext <<_ACEOF
31902 /* end confdefs.h. */
31903 #include <ext/hash_map>
31904 #ifdef HAVE_NAMESPACES
31905 using namespace std;
31910 hash_map<int, int> t;
31915 rm -f conftest.$ac_objext
31916 if { (ac_try="$ac_compile"
31917 case "(($ac_try" in
31918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31919 *) ac_try_echo=$ac_try;;
31921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31922 (eval "$ac_compile") 2>conftest.er1
31924 grep -v '^ *+' conftest.er1 >conftest.err
31926 cat conftest.err >&5
31927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31928 (exit $ac_status); } &&
31929 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31930 { (case "(($ac_try" in
31931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31932 *) ac_try_echo=$ac_try;;
31934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31935 (eval "$ac_try") 2>&5
31937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31938 (exit $ac_status); }; } &&
31939 { ac_try='test -s conftest.$ac_objext'
31940 { (case "(($ac_try" in
31941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31942 *) ac_try_echo=$ac_try;;
31944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31945 (eval "$ac_try") 2>&5
31947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31948 (exit $ac_status); }; }; then
31949 ac_cv_cxx_have_std_ext_hash_map=yes
31951 echo "$as_me: failed program was:" >&5
31952 sed 's/^/| /' conftest.$ac_ext >&5
31954 ac_cv_cxx_have_std_ext_hash_map=no
31957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31959 ac_cpp='$CPP $CPPFLAGS'
31960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31965 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31966 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31967 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31970 cat >>confdefs.h <<\_ACEOF
31971 #define HAVE_STD_EXT_HASH_MAP 1
31976 cat >>confdefs.h <<\_ACEOF
31977 #define HAVE_STD_EXT_HASH_MAP 0
31982 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31983 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31984 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31985 echo $ECHO_N "(cached) $ECHO_C" >&6
31989 ac_cpp='$CXXCPP $CPPFLAGS'
31990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31994 cat >conftest.$ac_ext <<_ACEOF
31997 cat confdefs.h >>conftest.$ac_ext
31998 cat >>conftest.$ac_ext <<_ACEOF
31999 /* end confdefs.h. */
32000 #include <ext/hash_map>
32001 #ifdef HAVE_NAMESPACES
32002 using namespace __gnu_cxx;
32007 hash_map<int,int> t;
32012 rm -f conftest.$ac_objext
32013 if { (ac_try="$ac_compile"
32014 case "(($ac_try" in
32015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32016 *) ac_try_echo=$ac_try;;
32018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32019 (eval "$ac_compile") 2>conftest.er1
32021 grep -v '^ *+' conftest.er1 >conftest.err
32023 cat conftest.err >&5
32024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025 (exit $ac_status); } &&
32026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32027 { (case "(($ac_try" in
32028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32029 *) ac_try_echo=$ac_try;;
32031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32032 (eval "$ac_try") 2>&5
32034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32035 (exit $ac_status); }; } &&
32036 { ac_try='test -s conftest.$ac_objext'
32037 { (case "(($ac_try" in
32038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32039 *) ac_try_echo=$ac_try;;
32041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32042 (eval "$ac_try") 2>&5
32044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32045 (exit $ac_status); }; }; then
32046 ac_cv_cxx_have_gnu_ext_hash_map=yes
32048 echo "$as_me: failed program was:" >&5
32049 sed 's/^/| /' conftest.$ac_ext >&5
32051 ac_cv_cxx_have_gnu_ext_hash_map=no
32054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32056 ac_cpp='$CPP $CPPFLAGS'
32057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32062 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32063 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32064 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32067 cat >>confdefs.h <<\_ACEOF
32068 #define HAVE_GNU_EXT_HASH_MAP 1
32073 cat >>confdefs.h <<\_ACEOF
32074 #define HAVE_GNU_EXT_HASH_MAP 0
32079 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32080 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32081 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32082 echo $ECHO_N "(cached) $ECHO_C" >&6
32086 ac_cpp='$CXXCPP $CPPFLAGS'
32087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32091 cat >conftest.$ac_ext <<_ACEOF
32094 cat confdefs.h >>conftest.$ac_ext
32095 cat >>conftest.$ac_ext <<_ACEOF
32096 /* end confdefs.h. */
32097 #include <hash_map>
32101 hash_map<int,int> t;
32106 rm -f conftest.$ac_objext
32107 if { (ac_try="$ac_compile"
32108 case "(($ac_try" in
32109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32110 *) ac_try_echo=$ac_try;;
32112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32113 (eval "$ac_compile") 2>conftest.er1
32115 grep -v '^ *+' conftest.er1 >conftest.err
32117 cat conftest.err >&5
32118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119 (exit $ac_status); } &&
32120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32121 { (case "(($ac_try" in
32122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32123 *) ac_try_echo=$ac_try;;
32125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32126 (eval "$ac_try") 2>&5
32128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129 (exit $ac_status); }; } &&
32130 { ac_try='test -s conftest.$ac_objext'
32131 { (case "(($ac_try" in
32132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32133 *) ac_try_echo=$ac_try;;
32135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32136 (eval "$ac_try") 2>&5
32138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32139 (exit $ac_status); }; }; then
32140 ac_cv_cxx_have_global_hash_map=yes
32142 echo "$as_me: failed program was:" >&5
32143 sed 's/^/| /' conftest.$ac_ext >&5
32145 ac_cv_cxx_have_global_hash_map=no
32148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32150 ac_cpp='$CPP $CPPFLAGS'
32151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32156 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32157 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32158 if test "$ac_cv_cxx_have_global_hash_map" = yes
32161 cat >>confdefs.h <<\_ACEOF
32162 #define HAVE_GLOBAL_HASH_MAP 1
32167 cat >>confdefs.h <<\_ACEOF
32168 #define HAVE_GLOBAL_HASH_MAP 0
32173 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32174 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32175 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32176 echo $ECHO_N "(cached) $ECHO_C" >&6
32180 ac_cpp='$CXXCPP $CPPFLAGS'
32181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32185 cat >conftest.$ac_ext <<_ACEOF
32188 cat confdefs.h >>conftest.$ac_ext
32189 cat >>conftest.$ac_ext <<_ACEOF
32190 /* end confdefs.h. */
32191 #include <ext/hash_set>
32192 #ifdef HAVE_NAMESPACES
32193 using namespace std;
32203 rm -f conftest.$ac_objext
32204 if { (ac_try="$ac_compile"
32205 case "(($ac_try" in
32206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32207 *) ac_try_echo=$ac_try;;
32209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32210 (eval "$ac_compile") 2>conftest.er1
32212 grep -v '^ *+' conftest.er1 >conftest.err
32214 cat conftest.err >&5
32215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32216 (exit $ac_status); } &&
32217 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32218 { (case "(($ac_try" in
32219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32220 *) ac_try_echo=$ac_try;;
32222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32223 (eval "$ac_try") 2>&5
32225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226 (exit $ac_status); }; } &&
32227 { ac_try='test -s conftest.$ac_objext'
32228 { (case "(($ac_try" in
32229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32230 *) ac_try_echo=$ac_try;;
32232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32233 (eval "$ac_try") 2>&5
32235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32236 (exit $ac_status); }; }; then
32237 ac_cv_cxx_have_std_ext_hash_set=yes
32239 echo "$as_me: failed program was:" >&5
32240 sed 's/^/| /' conftest.$ac_ext >&5
32242 ac_cv_cxx_have_std_ext_hash_set=no
32245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32247 ac_cpp='$CPP $CPPFLAGS'
32248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32253 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32254 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32255 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32258 cat >>confdefs.h <<\_ACEOF
32259 #define HAVE_STD_EXT_HASH_SET 1
32264 cat >>confdefs.h <<\_ACEOF
32265 #define HAVE_STD_EXT_HASH_SET 0
32270 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32271 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32272 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32273 echo $ECHO_N "(cached) $ECHO_C" >&6
32277 ac_cpp='$CXXCPP $CPPFLAGS'
32278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32282 cat >conftest.$ac_ext <<_ACEOF
32285 cat confdefs.h >>conftest.$ac_ext
32286 cat >>conftest.$ac_ext <<_ACEOF
32287 /* end confdefs.h. */
32288 #include <ext/hash_set>
32289 #ifdef HAVE_NAMESPACES
32290 using namespace __gnu_cxx;
32300 rm -f conftest.$ac_objext
32301 if { (ac_try="$ac_compile"
32302 case "(($ac_try" in
32303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32304 *) ac_try_echo=$ac_try;;
32306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32307 (eval "$ac_compile") 2>conftest.er1
32309 grep -v '^ *+' conftest.er1 >conftest.err
32311 cat conftest.err >&5
32312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32313 (exit $ac_status); } &&
32314 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32315 { (case "(($ac_try" in
32316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32317 *) ac_try_echo=$ac_try;;
32319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32320 (eval "$ac_try") 2>&5
32322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32323 (exit $ac_status); }; } &&
32324 { ac_try='test -s conftest.$ac_objext'
32325 { (case "(($ac_try" in
32326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32327 *) ac_try_echo=$ac_try;;
32329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32330 (eval "$ac_try") 2>&5
32332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333 (exit $ac_status); }; }; then
32334 ac_cv_cxx_have_gnu_ext_hash_set=yes
32336 echo "$as_me: failed program was:" >&5
32337 sed 's/^/| /' conftest.$ac_ext >&5
32339 ac_cv_cxx_have_gnu_ext_hash_set=no
32342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32344 ac_cpp='$CPP $CPPFLAGS'
32345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32350 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32351 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32352 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32355 cat >>confdefs.h <<\_ACEOF
32356 #define HAVE_GNU_EXT_HASH_SET 1
32361 cat >>confdefs.h <<\_ACEOF
32362 #define HAVE_GNU_EXT_HASH_SET 0
32367 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32368 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32369 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32370 echo $ECHO_N "(cached) $ECHO_C" >&6
32374 ac_cpp='$CXXCPP $CPPFLAGS'
32375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32379 cat >conftest.$ac_ext <<_ACEOF
32382 cat confdefs.h >>conftest.$ac_ext
32383 cat >>conftest.$ac_ext <<_ACEOF
32384 /* end confdefs.h. */
32385 #include <hash_set>
32389 hash_set<int> t; return 0;
32394 rm -f conftest.$ac_objext
32395 if { (ac_try="$ac_compile"
32396 case "(($ac_try" in
32397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32398 *) ac_try_echo=$ac_try;;
32400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32401 (eval "$ac_compile") 2>conftest.er1
32403 grep -v '^ *+' conftest.er1 >conftest.err
32405 cat conftest.err >&5
32406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407 (exit $ac_status); } &&
32408 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32409 { (case "(($ac_try" in
32410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32411 *) ac_try_echo=$ac_try;;
32413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32414 (eval "$ac_try") 2>&5
32416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32417 (exit $ac_status); }; } &&
32418 { ac_try='test -s conftest.$ac_objext'
32419 { (case "(($ac_try" in
32420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32421 *) ac_try_echo=$ac_try;;
32423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32424 (eval "$ac_try") 2>&5
32426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32427 (exit $ac_status); }; }; then
32428 ac_cv_cxx_have_global_hash_set=yes
32430 echo "$as_me: failed program was:" >&5
32431 sed 's/^/| /' conftest.$ac_ext >&5
32433 ac_cv_cxx_have_global_hash_set=no
32436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32438 ac_cpp='$CPP $CPPFLAGS'
32439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32444 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32445 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32446 if test "$ac_cv_cxx_have_global_hash_set" = yes
32449 cat >>confdefs.h <<\_ACEOF
32450 #define HAVE_GLOBAL_HASH_SET 1
32455 cat >>confdefs.h <<\_ACEOF
32456 #define HAVE_GLOBAL_HASH_SET 0
32461 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32462 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32463 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32464 echo $ECHO_N "(cached) $ECHO_C" >&6
32468 ac_cpp='$CXXCPP $CPPFLAGS'
32469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32473 cat >conftest.$ac_ext <<_ACEOF
32476 cat confdefs.h >>conftest.$ac_ext
32477 cat >>conftest.$ac_ext <<_ACEOF
32478 /* end confdefs.h. */
32479 #include <iterator>
32480 #ifdef HAVE_NAMESPACES
32481 using namespace std;
32486 iterator<int,int,int> t; return 0;
32491 rm -f conftest.$ac_objext
32492 if { (ac_try="$ac_compile"
32493 case "(($ac_try" in
32494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32495 *) ac_try_echo=$ac_try;;
32497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32498 (eval "$ac_compile") 2>conftest.er1
32500 grep -v '^ *+' conftest.er1 >conftest.err
32502 cat conftest.err >&5
32503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32504 (exit $ac_status); } &&
32505 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32506 { (case "(($ac_try" in
32507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32508 *) ac_try_echo=$ac_try;;
32510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32511 (eval "$ac_try") 2>&5
32513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514 (exit $ac_status); }; } &&
32515 { ac_try='test -s conftest.$ac_objext'
32516 { (case "(($ac_try" in
32517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32518 *) ac_try_echo=$ac_try;;
32520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32521 (eval "$ac_try") 2>&5
32523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32524 (exit $ac_status); }; }; then
32525 ac_cv_cxx_have_std_iterator=yes
32527 echo "$as_me: failed program was:" >&5
32528 sed 's/^/| /' conftest.$ac_ext >&5
32530 ac_cv_cxx_have_std_iterator=no
32533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32535 ac_cpp='$CPP $CPPFLAGS'
32536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32542 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32543 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32544 if test "$ac_cv_cxx_have_std_iterator" = yes
32547 cat >>confdefs.h <<\_ACEOF
32548 #define HAVE_STD_ITERATOR 1
32553 cat >>confdefs.h <<\_ACEOF
32554 #define HAVE_STD_ITERATOR 0
32559 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32560 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32561 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32562 echo $ECHO_N "(cached) $ECHO_C" >&6
32566 ac_cpp='$CXXCPP $CPPFLAGS'
32567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32571 cat >conftest.$ac_ext <<_ACEOF
32574 cat confdefs.h >>conftest.$ac_ext
32575 cat >>conftest.$ac_ext <<_ACEOF
32576 /* end confdefs.h. */
32577 #include <iterator>
32578 #ifdef HAVE_NAMESPACES
32579 using namespace std;
32584 bidirectional_iterator<int,int> t; return 0;
32589 rm -f conftest.$ac_objext
32590 if { (ac_try="$ac_compile"
32591 case "(($ac_try" in
32592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32593 *) ac_try_echo=$ac_try;;
32595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32596 (eval "$ac_compile") 2>conftest.er1
32598 grep -v '^ *+' conftest.er1 >conftest.err
32600 cat conftest.err >&5
32601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32602 (exit $ac_status); } &&
32603 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32604 { (case "(($ac_try" in
32605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32606 *) ac_try_echo=$ac_try;;
32608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32609 (eval "$ac_try") 2>&5
32611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32612 (exit $ac_status); }; } &&
32613 { ac_try='test -s conftest.$ac_objext'
32614 { (case "(($ac_try" in
32615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32616 *) ac_try_echo=$ac_try;;
32618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32619 (eval "$ac_try") 2>&5
32621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32622 (exit $ac_status); }; }; then
32623 ac_cv_cxx_have_bi_iterator=yes
32625 echo "$as_me: failed program was:" >&5
32626 sed 's/^/| /' conftest.$ac_ext >&5
32628 ac_cv_cxx_have_bi_iterator=no
32631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32633 ac_cpp='$CPP $CPPFLAGS'
32634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32640 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32641 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32642 if test "$ac_cv_cxx_have_bi_iterator" = yes
32645 cat >>confdefs.h <<\_ACEOF
32646 #define HAVE_BI_ITERATOR 1
32651 cat >>confdefs.h <<\_ACEOF
32652 #define HAVE_BI_ITERATOR 0
32657 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32658 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32659 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32660 echo $ECHO_N "(cached) $ECHO_C" >&6
32664 ac_cpp='$CXXCPP $CPPFLAGS'
32665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32669 cat >conftest.$ac_ext <<_ACEOF
32672 cat confdefs.h >>conftest.$ac_ext
32673 cat >>conftest.$ac_ext <<_ACEOF
32674 /* end confdefs.h. */
32675 #include <iterator>
32676 #ifdef HAVE_NAMESPACES
32677 using namespace std;
32682 forward_iterator<int,int> t; return 0;
32687 rm -f conftest.$ac_objext
32688 if { (ac_try="$ac_compile"
32689 case "(($ac_try" in
32690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32691 *) ac_try_echo=$ac_try;;
32693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32694 (eval "$ac_compile") 2>conftest.er1
32696 grep -v '^ *+' conftest.er1 >conftest.err
32698 cat conftest.err >&5
32699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700 (exit $ac_status); } &&
32701 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32702 { (case "(($ac_try" in
32703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32704 *) ac_try_echo=$ac_try;;
32706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32707 (eval "$ac_try") 2>&5
32709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32710 (exit $ac_status); }; } &&
32711 { ac_try='test -s conftest.$ac_objext'
32712 { (case "(($ac_try" in
32713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32714 *) ac_try_echo=$ac_try;;
32716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32717 (eval "$ac_try") 2>&5
32719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32720 (exit $ac_status); }; }; then
32721 ac_cv_cxx_have_fwd_iterator=yes
32723 echo "$as_me: failed program was:" >&5
32724 sed 's/^/| /' conftest.$ac_ext >&5
32726 ac_cv_cxx_have_fwd_iterator=no
32729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32731 ac_cpp='$CPP $CPPFLAGS'
32732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32738 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32739 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32740 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32743 cat >>confdefs.h <<\_ACEOF
32744 #define HAVE_FWD_ITERATOR 1
32749 cat >>confdefs.h <<\_ACEOF
32750 #define HAVE_FWD_ITERATOR 0
32756 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32757 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32758 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32759 echo $ECHO_N "(cached) $ECHO_C" >&6
32762 ac_cpp='$CXXCPP $CPPFLAGS'
32763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32767 cat >conftest.$ac_ext <<_ACEOF
32770 cat confdefs.h >>conftest.$ac_ext
32771 cat >>conftest.$ac_ext <<_ACEOF
32772 /* end confdefs.h. */
32782 rm -f conftest.$ac_objext
32783 if { (ac_try="$ac_compile"
32784 case "(($ac_try" in
32785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32786 *) ac_try_echo=$ac_try;;
32788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32789 (eval "$ac_compile") 2>conftest.er1
32791 grep -v '^ *+' conftest.er1 >conftest.err
32793 cat conftest.err >&5
32794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32795 (exit $ac_status); } &&
32796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32797 { (case "(($ac_try" in
32798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32799 *) ac_try_echo=$ac_try;;
32801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32802 (eval "$ac_try") 2>&5
32804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32805 (exit $ac_status); }; } &&
32806 { ac_try='test -s conftest.$ac_objext'
32807 { (case "(($ac_try" in
32808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32809 *) ac_try_echo=$ac_try;;
32811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32812 (eval "$ac_try") 2>&5
32814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32815 (exit $ac_status); }; }; then
32816 ac_cv_func_isnan_in_math_h=yes
32818 echo "$as_me: failed program was:" >&5
32819 sed 's/^/| /' conftest.$ac_ext >&5
32821 ac_cv_func_isnan_in_math_h=no
32824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32826 ac_cpp='$CPP $CPPFLAGS'
32827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32832 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32833 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32836 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32838 cat >>confdefs.h <<\_ACEOF
32839 #define HAVE_ISNAN_IN_MATH_H 1
32844 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32845 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32846 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32847 echo $ECHO_N "(cached) $ECHO_C" >&6
32850 ac_cpp='$CXXCPP $CPPFLAGS'
32851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32855 cat >conftest.$ac_ext <<_ACEOF
32858 cat confdefs.h >>conftest.$ac_ext
32859 cat >>conftest.$ac_ext <<_ACEOF
32860 /* end confdefs.h. */
32870 rm -f conftest.$ac_objext
32871 if { (ac_try="$ac_compile"
32872 case "(($ac_try" in
32873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32874 *) ac_try_echo=$ac_try;;
32876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32877 (eval "$ac_compile") 2>conftest.er1
32879 grep -v '^ *+' conftest.er1 >conftest.err
32881 cat conftest.err >&5
32882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883 (exit $ac_status); } &&
32884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32885 { (case "(($ac_try" in
32886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32887 *) ac_try_echo=$ac_try;;
32889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32890 (eval "$ac_try") 2>&5
32892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32893 (exit $ac_status); }; } &&
32894 { ac_try='test -s conftest.$ac_objext'
32895 { (case "(($ac_try" in
32896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32897 *) ac_try_echo=$ac_try;;
32899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32900 (eval "$ac_try") 2>&5
32902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32903 (exit $ac_status); }; }; then
32904 ac_cv_func_isnan_in_cmath=yes
32906 echo "$as_me: failed program was:" >&5
32907 sed 's/^/| /' conftest.$ac_ext >&5
32909 ac_cv_func_isnan_in_cmath=no
32912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32914 ac_cpp='$CPP $CPPFLAGS'
32915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32920 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32921 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32923 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32925 cat >>confdefs.h <<\_ACEOF
32926 #define HAVE_ISNAN_IN_CMATH 1
32931 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32932 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32933 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32934 echo $ECHO_N "(cached) $ECHO_C" >&6
32937 ac_cpp='$CXXCPP $CPPFLAGS'
32938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32942 cat >conftest.$ac_ext <<_ACEOF
32945 cat confdefs.h >>conftest.$ac_ext
32946 cat >>conftest.$ac_ext <<_ACEOF
32947 /* end confdefs.h. */
32952 float f; std::isnan(f);
32957 rm -f conftest.$ac_objext
32958 if { (ac_try="$ac_compile"
32959 case "(($ac_try" in
32960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32961 *) ac_try_echo=$ac_try;;
32963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32964 (eval "$ac_compile") 2>conftest.er1
32966 grep -v '^ *+' conftest.er1 >conftest.err
32968 cat conftest.err >&5
32969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32970 (exit $ac_status); } &&
32971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32972 { (case "(($ac_try" in
32973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32974 *) ac_try_echo=$ac_try;;
32976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32977 (eval "$ac_try") 2>&5
32979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32980 (exit $ac_status); }; } &&
32981 { ac_try='test -s conftest.$ac_objext'
32982 { (case "(($ac_try" in
32983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32984 *) ac_try_echo=$ac_try;;
32986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32987 (eval "$ac_try") 2>&5
32989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32990 (exit $ac_status); }; }; then
32991 ac_cv_func_std_isnan_in_cmath=yes
32993 echo "$as_me: failed program was:" >&5
32994 sed 's/^/| /' conftest.$ac_ext >&5
32996 ac_cv_func_std_isnan_in_cmath=no
32999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33001 ac_cpp='$CPP $CPPFLAGS'
33002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33007 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33008 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33010 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33012 cat >>confdefs.h <<\_ACEOF
33013 #define HAVE_STD_ISNAN_IN_CMATH 1
33019 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33020 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33021 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33022 echo $ECHO_N "(cached) $ECHO_C" >&6
33025 ac_cpp='$CXXCPP $CPPFLAGS'
33026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33030 cat >conftest.$ac_ext <<_ACEOF
33033 cat confdefs.h >>conftest.$ac_ext
33034 cat >>conftest.$ac_ext <<_ACEOF
33035 /* end confdefs.h. */
33045 rm -f conftest.$ac_objext
33046 if { (ac_try="$ac_compile"
33047 case "(($ac_try" in
33048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33049 *) ac_try_echo=$ac_try;;
33051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33052 (eval "$ac_compile") 2>conftest.er1
33054 grep -v '^ *+' conftest.er1 >conftest.err
33056 cat conftest.err >&5
33057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33058 (exit $ac_status); } &&
33059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33060 { (case "(($ac_try" in
33061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33062 *) ac_try_echo=$ac_try;;
33064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33065 (eval "$ac_try") 2>&5
33067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33068 (exit $ac_status); }; } &&
33069 { ac_try='test -s conftest.$ac_objext'
33070 { (case "(($ac_try" in
33071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33072 *) ac_try_echo=$ac_try;;
33074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33075 (eval "$ac_try") 2>&5
33077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33078 (exit $ac_status); }; }; then
33079 ac_cv_func_isinf_in_math_h=yes
33081 echo "$as_me: failed program was:" >&5
33082 sed 's/^/| /' conftest.$ac_ext >&5
33084 ac_cv_func_isinf_in_math_h=no
33087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33089 ac_cpp='$CPP $CPPFLAGS'
33090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33095 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33096 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33098 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33100 cat >>confdefs.h <<\_ACEOF
33101 #define HAVE_ISINF_IN_MATH_H 1
33106 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33107 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33108 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33109 echo $ECHO_N "(cached) $ECHO_C" >&6
33112 ac_cpp='$CXXCPP $CPPFLAGS'
33113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33117 cat >conftest.$ac_ext <<_ACEOF
33120 cat confdefs.h >>conftest.$ac_ext
33121 cat >>conftest.$ac_ext <<_ACEOF
33122 /* end confdefs.h. */
33132 rm -f conftest.$ac_objext
33133 if { (ac_try="$ac_compile"
33134 case "(($ac_try" in
33135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33136 *) ac_try_echo=$ac_try;;
33138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33139 (eval "$ac_compile") 2>conftest.er1
33141 grep -v '^ *+' conftest.er1 >conftest.err
33143 cat conftest.err >&5
33144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33145 (exit $ac_status); } &&
33146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33147 { (case "(($ac_try" in
33148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33149 *) ac_try_echo=$ac_try;;
33151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33152 (eval "$ac_try") 2>&5
33154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155 (exit $ac_status); }; } &&
33156 { ac_try='test -s conftest.$ac_objext'
33157 { (case "(($ac_try" in
33158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33159 *) ac_try_echo=$ac_try;;
33161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33162 (eval "$ac_try") 2>&5
33164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33165 (exit $ac_status); }; }; then
33166 ac_cv_func_isinf_in_cmath=yes
33168 echo "$as_me: failed program was:" >&5
33169 sed 's/^/| /' conftest.$ac_ext >&5
33171 ac_cv_func_isinf_in_cmath=no
33174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33176 ac_cpp='$CPP $CPPFLAGS'
33177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33182 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33183 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33185 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33187 cat >>confdefs.h <<\_ACEOF
33188 #define HAVE_ISINF_IN_CMATH 1
33193 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33194 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33195 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33196 echo $ECHO_N "(cached) $ECHO_C" >&6
33199 ac_cpp='$CXXCPP $CPPFLAGS'
33200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33204 cat >conftest.$ac_ext <<_ACEOF
33207 cat confdefs.h >>conftest.$ac_ext
33208 cat >>conftest.$ac_ext <<_ACEOF
33209 /* end confdefs.h. */
33214 float f; std::isinf(f)}
33219 rm -f conftest.$ac_objext
33220 if { (ac_try="$ac_compile"
33221 case "(($ac_try" in
33222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33223 *) ac_try_echo=$ac_try;;
33225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33226 (eval "$ac_compile") 2>conftest.er1
33228 grep -v '^ *+' conftest.er1 >conftest.err
33230 cat conftest.err >&5
33231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33232 (exit $ac_status); } &&
33233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33234 { (case "(($ac_try" in
33235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33236 *) ac_try_echo=$ac_try;;
33238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33239 (eval "$ac_try") 2>&5
33241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33242 (exit $ac_status); }; } &&
33243 { ac_try='test -s conftest.$ac_objext'
33244 { (case "(($ac_try" in
33245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33246 *) ac_try_echo=$ac_try;;
33248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33249 (eval "$ac_try") 2>&5
33251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33252 (exit $ac_status); }; }; then
33253 ac_cv_func_std_isinf_in_cmath=yes
33255 echo "$as_me: failed program was:" >&5
33256 sed 's/^/| /' conftest.$ac_ext >&5
33258 ac_cv_func_std_isinf_in_cmath=no
33261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33263 ac_cpp='$CPP $CPPFLAGS'
33264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33269 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33270 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33272 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33274 cat >>confdefs.h <<\_ACEOF
33275 #define HAVE_STD_ISINF_IN_CMATH 1
33280 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33281 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33282 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33283 echo $ECHO_N "(cached) $ECHO_C" >&6
33286 ac_cpp='$CXXCPP $CPPFLAGS'
33287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33291 cat >conftest.$ac_ext <<_ACEOF
33294 cat confdefs.h >>conftest.$ac_ext
33295 cat >>conftest.$ac_ext <<_ACEOF
33296 /* end confdefs.h. */
33297 #include <ieeefp.h>
33301 float f; finite(f);
33306 rm -f conftest.$ac_objext
33307 if { (ac_try="$ac_compile"
33308 case "(($ac_try" in
33309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33310 *) ac_try_echo=$ac_try;;
33312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33313 (eval "$ac_compile") 2>conftest.er1
33315 grep -v '^ *+' conftest.er1 >conftest.err
33317 cat conftest.err >&5
33318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319 (exit $ac_status); } &&
33320 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33321 { (case "(($ac_try" in
33322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33323 *) ac_try_echo=$ac_try;;
33325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33326 (eval "$ac_try") 2>&5
33328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33329 (exit $ac_status); }; } &&
33330 { ac_try='test -s conftest.$ac_objext'
33331 { (case "(($ac_try" in
33332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33333 *) ac_try_echo=$ac_try;;
33335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33336 (eval "$ac_try") 2>&5
33338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33339 (exit $ac_status); }; }; then
33340 ac_cv_func_finite_in_ieeefp_h=yes
33342 echo "$as_me: failed program was:" >&5
33343 sed 's/^/| /' conftest.$ac_ext >&5
33345 ac_cv_func_finite_in_ieeefp_h=no
33348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33350 ac_cpp='$CPP $CPPFLAGS'
33351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33356 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33357 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33359 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33361 cat >>confdefs.h <<\_ACEOF
33362 #define HAVE_FINITE_IN_IEEEFP_H 1
33369 if test "$llvm_cv_platform_type" = "Unix" ; then
33372 for ac_header in stdlib.h unistd.h
33374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33379 echo $ECHO_N "(cached) $ECHO_C" >&6
33381 ac_res=`eval echo '${'$as_ac_Header'}'`
33382 { echo "$as_me:$LINENO: result: $ac_res" >&5
33383 echo "${ECHO_T}$ac_res" >&6; }
33385 # Is the header compilable?
33386 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33388 cat >conftest.$ac_ext <<_ACEOF
33391 cat confdefs.h >>conftest.$ac_ext
33392 cat >>conftest.$ac_ext <<_ACEOF
33393 /* end confdefs.h. */
33394 $ac_includes_default
33395 #include <$ac_header>
33397 rm -f conftest.$ac_objext
33398 if { (ac_try="$ac_compile"
33399 case "(($ac_try" in
33400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33401 *) ac_try_echo=$ac_try;;
33403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33404 (eval "$ac_compile") 2>conftest.er1
33406 grep -v '^ *+' conftest.er1 >conftest.err
33408 cat conftest.err >&5
33409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33410 (exit $ac_status); } &&
33411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33412 { (case "(($ac_try" in
33413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33414 *) ac_try_echo=$ac_try;;
33416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33417 (eval "$ac_try") 2>&5
33419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33420 (exit $ac_status); }; } &&
33421 { ac_try='test -s conftest.$ac_objext'
33422 { (case "(($ac_try" in
33423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33424 *) ac_try_echo=$ac_try;;
33426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33427 (eval "$ac_try") 2>&5
33429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33430 (exit $ac_status); }; }; then
33431 ac_header_compiler=yes
33433 echo "$as_me: failed program was:" >&5
33434 sed 's/^/| /' conftest.$ac_ext >&5
33436 ac_header_compiler=no
33439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33440 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33441 echo "${ECHO_T}$ac_header_compiler" >&6; }
33443 # Is the header present?
33444 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33446 cat >conftest.$ac_ext <<_ACEOF
33449 cat confdefs.h >>conftest.$ac_ext
33450 cat >>conftest.$ac_ext <<_ACEOF
33451 /* end confdefs.h. */
33452 #include <$ac_header>
33454 if { (ac_try="$ac_cpp conftest.$ac_ext"
33455 case "(($ac_try" in
33456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33457 *) ac_try_echo=$ac_try;;
33459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33462 grep -v '^ *+' conftest.er1 >conftest.err
33464 cat conftest.err >&5
33465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33466 (exit $ac_status); } >/dev/null; then
33467 if test -s conftest.err; then
33468 ac_cpp_err=$ac_c_preproc_warn_flag
33469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33476 if test -z "$ac_cpp_err"; then
33477 ac_header_preproc=yes
33479 echo "$as_me: failed program was:" >&5
33480 sed 's/^/| /' conftest.$ac_ext >&5
33482 ac_header_preproc=no
33485 rm -f conftest.err conftest.$ac_ext
33486 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33487 echo "${ECHO_T}$ac_header_preproc" >&6; }
33489 # So? What about this header?
33490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33496 ac_header_preproc=yes
33499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33506 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33512 ## ----------------------------------- ##
33513 ## Report this to llvmbugs@cs.uiuc.edu ##
33514 ## ----------------------------------- ##
33516 ) | sed "s/^/$as_me: WARNING: /" >&2
33519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33522 echo $ECHO_N "(cached) $ECHO_C" >&6
33524 eval "$as_ac_Header=\$ac_header_preproc"
33526 ac_res=`eval echo '${'$as_ac_Header'}'`
33527 { echo "$as_me:$LINENO: result: $ac_res" >&5
33528 echo "${ECHO_T}$ac_res" >&6; }
33531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33532 cat >>confdefs.h <<_ACEOF
33533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33541 for ac_func in getpagesize
33543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33544 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33546 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33547 echo $ECHO_N "(cached) $ECHO_C" >&6
33549 cat >conftest.$ac_ext <<_ACEOF
33552 cat confdefs.h >>conftest.$ac_ext
33553 cat >>conftest.$ac_ext <<_ACEOF
33554 /* end confdefs.h. */
33555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33557 #define $ac_func innocuous_$ac_func
33559 /* System header to define __stub macros and hopefully few prototypes,
33560 which can conflict with char $ac_func (); below.
33561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33562 <limits.h> exists even on freestanding compilers. */
33565 # include <limits.h>
33567 # include <assert.h>
33572 /* Override any GCC internal prototype to avoid an error.
33573 Use char because int might match the return type of a GCC
33574 builtin and then its argument prototype would still apply. */
33579 /* The GNU C library defines this for functions which it implements
33580 to always fail with ENOSYS. Some functions are actually named
33581 something starting with __ and the normal name is an alias. */
33582 #if defined __stub_$ac_func || defined __stub___$ac_func
33589 return $ac_func ();
33594 rm -f conftest.$ac_objext conftest$ac_exeext
33595 if { (ac_try="$ac_link"
33596 case "(($ac_try" in
33597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33598 *) ac_try_echo=$ac_try;;
33600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33601 (eval "$ac_link") 2>conftest.er1
33603 grep -v '^ *+' conftest.er1 >conftest.err
33605 cat conftest.err >&5
33606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607 (exit $ac_status); } &&
33608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33609 { (case "(($ac_try" in
33610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33611 *) ac_try_echo=$ac_try;;
33613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33614 (eval "$ac_try") 2>&5
33616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33617 (exit $ac_status); }; } &&
33618 { ac_try='test -s conftest$ac_exeext'
33619 { (case "(($ac_try" in
33620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33621 *) ac_try_echo=$ac_try;;
33623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33624 (eval "$ac_try") 2>&5
33626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33627 (exit $ac_status); }; }; then
33628 eval "$as_ac_var=yes"
33630 echo "$as_me: failed program was:" >&5
33631 sed 's/^/| /' conftest.$ac_ext >&5
33633 eval "$as_ac_var=no"
33636 rm -f core conftest.err conftest.$ac_objext \
33637 conftest$ac_exeext conftest.$ac_ext
33639 ac_res=`eval echo '${'$as_ac_var'}'`
33640 { echo "$as_me:$LINENO: result: $ac_res" >&5
33641 echo "${ECHO_T}$ac_res" >&6; }
33642 if test `eval echo '${'$as_ac_var'}'` = yes; then
33643 cat >>confdefs.h <<_ACEOF
33644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33650 { echo "$as_me:$LINENO: checking for working mmap" >&5
33651 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33652 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33653 echo $ECHO_N "(cached) $ECHO_C" >&6
33655 if test "$cross_compiling" = yes; then
33656 ac_cv_func_mmap_fixed_mapped=no
33658 cat >conftest.$ac_ext <<_ACEOF
33661 cat confdefs.h >>conftest.$ac_ext
33662 cat >>conftest.$ac_ext <<_ACEOF
33663 /* end confdefs.h. */
33664 $ac_includes_default
33665 /* malloc might have been renamed as rpl_malloc. */
33668 /* Thanks to Mike Haertel and Jim Avera for this test.
33669 Here is a matrix of mmap possibilities:
33670 mmap private not fixed
33671 mmap private fixed at somewhere currently unmapped
33672 mmap private fixed at somewhere already mapped
33673 mmap shared not fixed
33674 mmap shared fixed at somewhere currently unmapped
33675 mmap shared fixed at somewhere already mapped
33676 For private mappings, we should verify that changes cannot be read()
33677 back from the file, nor mmap's back from the file at a different
33678 address. (There have been systems where private was not correctly
33679 implemented like the infamous i386 svr4.0, and systems where the
33680 VM page cache was not coherent with the file system buffer cache
33681 like early versions of FreeBSD and possibly contemporary NetBSD.)
33682 For shared mappings, we should conversely verify that changes get
33683 propagated back to all the places they're supposed to be.
33685 Grep wants private fixed already mapped.
33686 The main things grep needs to know about mmap are:
33687 * does it exist and is it safe to write into the mmap'd area
33688 * how to use it (BSD variants) */
33691 #include <sys/mman.h>
33693 #if !STDC_HEADERS && !HAVE_STDLIB_H
33697 /* This mess was copied from the GNU getpagesize.h. */
33698 #if !HAVE_GETPAGESIZE
33699 /* Assume that all systems that can run configure have sys/param.h. */
33700 # if !HAVE_SYS_PARAM_H
33701 # define HAVE_SYS_PARAM_H 1
33704 # ifdef _SC_PAGESIZE
33705 # define getpagesize() sysconf(_SC_PAGESIZE)
33706 # else /* no _SC_PAGESIZE */
33707 # if HAVE_SYS_PARAM_H
33708 # include <sys/param.h>
33709 # ifdef EXEC_PAGESIZE
33710 # define getpagesize() EXEC_PAGESIZE
33711 # else /* no EXEC_PAGESIZE */
33713 # define getpagesize() NBPG * CLSIZE
33716 # endif /* no CLSIZE */
33717 # else /* no NBPG */
33719 # define getpagesize() NBPC
33720 # else /* no NBPC */
33722 # define getpagesize() PAGESIZE
33723 # endif /* PAGESIZE */
33724 # endif /* no NBPC */
33725 # endif /* no NBPG */
33726 # endif /* no EXEC_PAGESIZE */
33727 # else /* no HAVE_SYS_PARAM_H */
33728 # define getpagesize() 8192 /* punt totally */
33729 # endif /* no HAVE_SYS_PARAM_H */
33730 # endif /* no _SC_PAGESIZE */
33732 #endif /* no HAVE_GETPAGESIZE */
33737 char *data, *data2, *data3;
33741 pagesize = getpagesize ();
33743 /* First, make a file with some known garbage in it. */
33744 data = (char *) malloc (pagesize);
33747 for (i = 0; i < pagesize; ++i)
33748 *(data + i) = rand ();
33750 fd = creat ("conftest.mmap", 0600);
33753 if (write (fd, data, pagesize) != pagesize)
33757 /* Next, try to mmap the file at a fixed address which already has
33758 something else allocated at it. If we can, also make sure that
33759 we see the same garbage. */
33760 fd = open ("conftest.mmap", O_RDWR);
33763 data2 = (char *) malloc (2 * pagesize);
33766 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33767 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33768 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33770 for (i = 0; i < pagesize; ++i)
33771 if (*(data + i) != *(data2 + i))
33774 /* Finally, make sure that changes to the mapped area do not
33775 percolate back to the file as seen by read(). (This is a bug on
33776 some variants of i386 svr4.0.) */
33777 for (i = 0; i < pagesize; ++i)
33778 *(data2 + i) = *(data2 + i) + 1;
33779 data3 = (char *) malloc (pagesize);
33782 if (read (fd, data3, pagesize) != pagesize)
33784 for (i = 0; i < pagesize; ++i)
33785 if (*(data + i) != *(data3 + i))
33791 rm -f conftest$ac_exeext
33792 if { (ac_try="$ac_link"
33793 case "(($ac_try" in
33794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33795 *) ac_try_echo=$ac_try;;
33797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33798 (eval "$ac_link") 2>&5
33800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33802 { (case "(($ac_try" in
33803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33804 *) ac_try_echo=$ac_try;;
33806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33807 (eval "$ac_try") 2>&5
33809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33810 (exit $ac_status); }; }; then
33811 ac_cv_func_mmap_fixed_mapped=yes
33813 echo "$as_me: program exited with status $ac_status" >&5
33814 echo "$as_me: failed program was:" >&5
33815 sed 's/^/| /' conftest.$ac_ext >&5
33817 ( exit $ac_status )
33818 ac_cv_func_mmap_fixed_mapped=no
33820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33825 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33826 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33827 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33829 cat >>confdefs.h <<\_ACEOF
33830 #define HAVE_MMAP 1
33834 rm -f conftest.mmap
33836 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33837 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33838 if test "${ac_cv_func_mmap_file+set}" = set; then
33839 echo $ECHO_N "(cached) $ECHO_C" >&6
33842 ac_cpp='$CPP $CPPFLAGS'
33843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33847 if test "$cross_compiling" = yes; then
33848 ac_cv_func_mmap_file=no
33850 cat >conftest.$ac_ext <<_ACEOF
33854 cat confdefs.h >>conftest.$ac_ext
33855 cat >>conftest.$ac_ext <<_ACEOF
33856 /* end confdefs.h. */
33858 #include <sys/types.h>
33859 #include <sys/mman.h>
33867 fd = creat ("foo",0777);
33868 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33870 return (fd != (int) MAP_FAILED);
33875 rm -f conftest$ac_exeext
33876 if { (ac_try="$ac_link"
33877 case "(($ac_try" in
33878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33879 *) ac_try_echo=$ac_try;;
33881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33882 (eval "$ac_link") 2>&5
33884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33886 { (case "(($ac_try" in
33887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33888 *) ac_try_echo=$ac_try;;
33890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33891 (eval "$ac_try") 2>&5
33893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33894 (exit $ac_status); }; }; then
33895 ac_cv_func_mmap_file=yes
33897 echo "$as_me: program exited with status $ac_status" >&5
33898 echo "$as_me: failed program was:" >&5
33899 sed 's/^/| /' conftest.$ac_ext >&5
33901 ( exit $ac_status )
33902 ac_cv_func_mmap_file=no
33904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33909 ac_cpp='$CPP $CPPFLAGS'
33910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33916 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33917 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33918 if test "$ac_cv_func_mmap_file" = yes; then
33920 cat >>confdefs.h <<\_ACEOF
33921 #define HAVE_MMAP_FILE
33928 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33929 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33930 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33931 echo $ECHO_N "(cached) $ECHO_C" >&6
33933 if test "$llvm_cv_os_type" = "Interix" ; then
33934 ac_cv_need_dev_zero_for_mmap=yes
33936 ac_cv_need_dev_zero_for_mmap=no
33940 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33941 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33942 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33944 cat >>confdefs.h <<\_ACEOF
33945 #define NEED_DEV_ZERO_FOR_MMAP 1
33950 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33952 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33953 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33955 if test "$ac_cv_func_mmap_file" = "no"
33957 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33958 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33964 for ac_func in __dso_handle
33966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33967 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33969 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33970 echo $ECHO_N "(cached) $ECHO_C" >&6
33972 cat >conftest.$ac_ext <<_ACEOF
33975 cat confdefs.h >>conftest.$ac_ext
33976 cat >>conftest.$ac_ext <<_ACEOF
33977 /* end confdefs.h. */
33978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33980 #define $ac_func innocuous_$ac_func
33982 /* System header to define __stub macros and hopefully few prototypes,
33983 which can conflict with char $ac_func (); below.
33984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33985 <limits.h> exists even on freestanding compilers. */
33988 # include <limits.h>
33990 # include <assert.h>
33995 /* Override any GCC internal prototype to avoid an error.
33996 Use char because int might match the return type of a GCC
33997 builtin and then its argument prototype would still apply. */
34002 /* The GNU C library defines this for functions which it implements
34003 to always fail with ENOSYS. Some functions are actually named
34004 something starting with __ and the normal name is an alias. */
34005 #if defined __stub_$ac_func || defined __stub___$ac_func
34012 return $ac_func ();
34017 rm -f conftest.$ac_objext conftest$ac_exeext
34018 if { (ac_try="$ac_link"
34019 case "(($ac_try" in
34020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34021 *) ac_try_echo=$ac_try;;
34023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34024 (eval "$ac_link") 2>conftest.er1
34026 grep -v '^ *+' conftest.er1 >conftest.err
34028 cat conftest.err >&5
34029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34030 (exit $ac_status); } &&
34031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34032 { (case "(($ac_try" in
34033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34034 *) ac_try_echo=$ac_try;;
34036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34037 (eval "$ac_try") 2>&5
34039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34040 (exit $ac_status); }; } &&
34041 { ac_try='test -s conftest$ac_exeext'
34042 { (case "(($ac_try" in
34043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34044 *) ac_try_echo=$ac_try;;
34046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34047 (eval "$ac_try") 2>&5
34049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34050 (exit $ac_status); }; }; then
34051 eval "$as_ac_var=yes"
34053 echo "$as_me: failed program was:" >&5
34054 sed 's/^/| /' conftest.$ac_ext >&5
34056 eval "$as_ac_var=no"
34059 rm -f core conftest.err conftest.$ac_objext \
34060 conftest$ac_exeext conftest.$ac_ext
34062 ac_res=`eval echo '${'$as_ac_var'}'`
34063 { echo "$as_me:$LINENO: result: $ac_res" >&5
34064 echo "${ECHO_T}$ac_res" >&6; }
34065 if test `eval echo '${'$as_ac_var'}'` = yes; then
34066 cat >>confdefs.h <<_ACEOF
34067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34074 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34075 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34076 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34077 echo $ECHO_N "(cached) $ECHO_C" >&6
34079 llvm_cv_llvmgcc_sanity="no"
34080 if test -x "$LLVMGCC" ; then
34081 cp /dev/null conftest.c
34082 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34083 grep 'target datalayout =' > /dev/null 2>&1
34084 if test $? -eq 0 ; then
34085 llvm_cv_llvmgcc_sanity="yes"
34090 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34091 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34093 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34094 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34095 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34096 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34097 LLVMCC1=$llvmcc1path
34099 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34100 LLVMCC1PLUS=$llvmcc1pluspath
34102 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34103 LLVMGCCDIR=$llvmgccdir
34105 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34106 LLVMGCCLIBEXEC=$llvmgcclibexec
34108 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34109 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34110 LLVMGCC_VERSION=$llvmgccversion
34112 LLVMGCC_MAJVERS=$llvmgccmajvers
34114 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34115 LLVMGCC_LANGS=$llvmgcclangs
34117 { echo "$as_me:$LINENO: result: ok" >&5
34118 echo "${ECHO_T}ok" >&6; }
34121 SHLIBEXT=$libltdl_cv_shlibext
34124 # Translate the various configuration directories and other basic
34125 # information into substitutions that will end up in Makefile.config.in
34126 # that these configured values can be used by the makefiles
34127 if test "${prefix}" = "NONE" ; then
34128 prefix="/usr/local"
34130 eval LLVM_PREFIX="${prefix}";
34131 eval LLVM_BINDIR="${prefix}/bin";
34132 eval LLVM_LIBDIR="${prefix}/lib";
34133 eval LLVM_DATADIR="${prefix}/share/llvm";
34134 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34135 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34136 eval LLVM_INCLUDEDIR="${prefix}/include";
34137 eval LLVM_INFODIR="${prefix}/info";
34138 eval LLVM_MANDIR="${prefix}/man";
34139 LLVM_CONFIGTIME=`date`
34151 # Place the various directores into the config.h file as #defines so that we
34152 # can know about the installation paths within LLVM.
34154 cat >>confdefs.h <<_ACEOF
34155 #define LLVM_PREFIX "$LLVM_PREFIX"
34159 cat >>confdefs.h <<_ACEOF
34160 #define LLVM_BINDIR "$LLVM_BINDIR"
34164 cat >>confdefs.h <<_ACEOF
34165 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34169 cat >>confdefs.h <<_ACEOF
34170 #define LLVM_DATADIR "$LLVM_DATADIR"
34174 cat >>confdefs.h <<_ACEOF
34175 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34179 cat >>confdefs.h <<_ACEOF
34180 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34184 cat >>confdefs.h <<_ACEOF
34185 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34189 cat >>confdefs.h <<_ACEOF
34190 #define LLVM_INFODIR "$LLVM_INFODIR"
34194 cat >>confdefs.h <<_ACEOF
34195 #define LLVM_MANDIR "$LLVM_MANDIR"
34199 cat >>confdefs.h <<_ACEOF
34200 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34204 cat >>confdefs.h <<_ACEOF
34205 #define LLVM_HOSTTRIPLE "$host"
34209 # Determine which bindings to build.
34210 if test "$BINDINGS_TO_BUILD" = auto ; then
34211 BINDINGS_TO_BUILD=""
34212 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34213 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34216 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34219 # This isn't really configurey, but it avoids having to repeat the list in
34224 # Do any work necessary to ensure that bindings have what they need.
34225 binding_prereqs_failed=0
34226 for a_binding in $BINDINGS_TO_BUILD ; do
34227 case "$a_binding" in
34229 if test "x$OCAMLC" = x ; then
34230 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34231 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34232 binding_prereqs_failed=1
34234 if test "x$OCAMLDEP" = x ; then
34235 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34236 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34237 binding_prereqs_failed=1
34239 if test "x$OCAMLOPT" = x ; then
34240 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34241 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34243 if test "x$with_ocaml_libdir" != xauto ; then
34244 OCAML_LIBDIR=$with_ocaml_libdir
34247 ocaml_stdlib="`"$OCAMLC" -where`"
34248 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34250 # ocaml stdlib is beneath our prefix; use stdlib
34251 OCAML_LIBDIR=$ocaml_stdlib
34254 # ocaml stdlib is outside our prefix; use libdir/ocaml
34255 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34262 if test "$binding_prereqs_failed" = 1 ; then
34263 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34264 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34265 { (exit 1); exit 1; }; }
34270 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34272 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34274 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
34276 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
34278 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34281 ac_config_files="$ac_config_files Makefile.config"
34284 ac_config_files="$ac_config_files llvm.spec"
34287 ac_config_files="$ac_config_files docs/doxygen.cfg"
34290 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34293 ac_config_commands="$ac_config_commands setup"
34295 ac_config_commands="$ac_config_commands Makefile"
34298 ac_config_commands="$ac_config_commands Makefile.common"
34301 ac_config_commands="$ac_config_commands examples/Makefile"
34304 ac_config_commands="$ac_config_commands lib/Makefile"
34307 ac_config_commands="$ac_config_commands runtime/Makefile"
34310 ac_config_commands="$ac_config_commands test/Makefile"
34313 ac_config_commands="$ac_config_commands test/Makefile.tests"
34316 ac_config_commands="$ac_config_commands tools/Makefile"
34319 ac_config_commands="$ac_config_commands utils/Makefile"
34322 ac_config_commands="$ac_config_commands projects/Makefile"
34325 ac_config_commands="$ac_config_commands bindings/Makefile"
34328 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34332 cat >confcache <<\_ACEOF
34333 # This file is a shell script that caches the results of configure
34334 # tests run on this system so they can be shared between configure
34335 # scripts and configure runs, see configure's option --config-cache.
34336 # It is not useful on other systems. If it contains results you don't
34337 # want to keep, you may remove or edit it.
34339 # config.status only pays attention to the cache file if you give it
34340 # the --recheck option to rerun configure.
34342 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34343 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34344 # following values.
34348 # The following way of writing the cache mishandles newlines in values,
34349 # but we know of no workaround that is simple, portable, and efficient.
34350 # So, we kill variables containing newlines.
34351 # Ultrix sh set writes to stderr and can't be redirected directly,
34352 # and sets the high bit in the cache file unless we assign to the vars.
34354 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34355 eval ac_val=\$$ac_var
34359 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34360 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34363 _ | IFS | as_nl) ;; #(
34364 *) $as_unset $ac_var ;;
34370 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34371 *${as_nl}ac_space=\ *)
34372 # `set' does not quote correctly, so add quotes (double-quote
34373 # substitution turns \\\\ into \\, and sed turns \\ into \).
34376 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34379 # `set' quotes correctly as required by POSIX, so do not add quotes.
34380 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34389 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34391 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34393 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34394 if test -w "$cache_file"; then
34395 test "x$cache_file" != "x/dev/null" &&
34396 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34397 echo "$as_me: updating cache $cache_file" >&6;}
34398 cat confcache >$cache_file
34400 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34401 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34406 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34407 # Let make expand exec_prefix.
34408 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34410 DEFS=-DHAVE_CONFIG_H
34414 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34415 # 1. Remove the extension, and $U if already installed.
34416 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34417 ac_i=`echo "$ac_i" | sed "$ac_script"`
34418 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34419 # will be set to the directory where LIBOBJS objects are built.
34420 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34421 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34423 LIBOBJS=$ac_libobjs
34425 LTLIBOBJS=$ac_ltlibobjs
34428 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34429 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34430 Usually this means the macro was only invoked conditionally." >&5
34431 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34432 Usually this means the macro was only invoked conditionally." >&2;}
34433 { (exit 1); exit 1; }; }
34435 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34436 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34437 Usually this means the macro was only invoked conditionally." >&5
34438 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34439 Usually this means the macro was only invoked conditionally." >&2;}
34440 { (exit 1); exit 1; }; }
34443 : ${CONFIG_STATUS=./config.status}
34444 ac_clean_files_save=$ac_clean_files
34445 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34446 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34447 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34448 cat >$CONFIG_STATUS <<_ACEOF
34450 # Generated by $as_me.
34451 # Run this file to recreate the current configuration.
34452 # Compiler output produced by configure, useful for debugging
34453 # configure, is in config.log if it exists.
34456 ac_cs_recheck=false
34458 SHELL=\${CONFIG_SHELL-$SHELL}
34461 cat >>$CONFIG_STATUS <<\_ACEOF
34462 ## --------------------- ##
34463 ## M4sh Initialization. ##
34464 ## --------------------- ##
34466 # Be Bourne compatible
34467 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34470 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34471 # is contrary to our usage. Disable this feature.
34472 alias -g '${1+"$@"}'='"$@"'
34473 setopt NO_GLOB_SUBST
34475 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34477 BIN_SH=xpg4; export BIN_SH # for Tru64
34478 DUALCASE=1; export DUALCASE # for MKS sh
34482 # Avoid depending upon Character Ranges.
34483 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34484 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34485 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34486 as_cr_digits='0123456789'
34487 as_cr_alnum=$as_cr_Letters$as_cr_digits
34489 # The user is always right.
34490 if test "${PATH_SEPARATOR+set}" != set; then
34491 echo "#! /bin/sh" >conf$$.sh
34492 echo "exit 0" >>conf$$.sh
34494 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34502 # Support unset when possible.
34503 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34511 # We need space, tab and new line, in precisely that order. Quoting is
34512 # there to prevent editors from complaining about space-tab.
34513 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34514 # splitting by setting IFS to empty value.)
34519 # Find who we are. Look in the path if we contain no directory separator.
34521 *[\\/]* ) as_myself=$0 ;;
34522 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34523 for as_dir in $PATH
34526 test -z "$as_dir" && as_dir=.
34527 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34533 # We did not find ourselves, most probably we were run as `sh COMMAND'
34534 # in which case we are not to be found in the path.
34535 if test "x$as_myself" = x; then
34538 if test ! -f "$as_myself"; then
34539 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34540 { (exit 1); exit 1; }
34543 # Work around bugs in pre-3.0 UWIN ksh.
34544 for as_var in ENV MAIL MAILPATH
34545 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34553 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34554 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34555 LC_TELEPHONE LC_TIME
34557 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34558 eval $as_var=C; export $as_var
34560 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34564 # Required to use basename.
34565 if expr a : '\(a\)' >/dev/null 2>&1 &&
34566 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34572 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34573 as_basename=basename
34579 # Name of the executable.
34580 as_me=`$as_basename -- "$0" ||
34581 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34582 X"$0" : 'X\(//\)$' \| \
34583 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34585 sed '/^.*\/\([^/][^/]*\)\/*$/{
34604 as_lineno_1=$LINENO
34605 as_lineno_2=$LINENO
34606 test "x$as_lineno_1" != "x$as_lineno_2" &&
34607 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34609 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34610 # uniformly replaced by the line number. The first 'sed' inserts a
34611 # line-number line after each line using $LINENO; the second 'sed'
34612 # does the real work. The second script uses 'N' to pair each
34613 # line-number line with the line containing $LINENO, and appends
34614 # trailing '-' during substitution so that $LINENO is not a special
34615 # case at line end.
34616 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34617 # scripts with optimization help from Paolo Bonzini. Blame Lee
34618 # E. McMahon (1931-1989) for sed's syntax. :-)
34630 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34633 ' >$as_me.lineno &&
34634 chmod +x "$as_me.lineno" ||
34635 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34636 { (exit 1); exit 1; }; }
34638 # Don't try to exec as it changes $[0], causing all sort of problems
34639 # (the dirname of $[0] is not the place where we might find the
34640 # original and so on. Autoconf is especially sensitive to this).
34641 . "./$as_me.lineno"
34642 # Exit status is that of the last command.
34647 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34653 ECHO_C= ECHO_N= ECHO_T=
34654 case `echo -n x` in
34656 case `echo 'x\c'` in
34657 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34664 if expr a : '\(a\)' >/dev/null 2>&1 &&
34665 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34671 rm -f conf$$ conf$$.exe conf$$.file
34672 if test -d conf$$.dir; then
34673 rm -f conf$$.dir/conf$$.file
34679 if ln -s conf$$.file conf$$ 2>/dev/null; then
34681 # ... but there are two gotchas:
34682 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34683 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34684 # In both cases, we have to default to `cp -p'.
34685 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34687 elif ln conf$$.file conf$$ 2>/dev/null; then
34692 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34693 rmdir conf$$.dir 2>/dev/null
34695 if mkdir -p . 2>/dev/null; then
34698 test -d ./-p && rmdir ./-p
34702 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34703 # systems may use methods other than mode bits to determine executability.
34704 cat >conf$$.file <<_ASEOF
34708 chmod +x conf$$.file
34709 if test -x conf$$.file >/dev/null 2>&1; then
34710 as_executable_p="test -x"
34716 # Sed expression to map a string onto a valid CPP name.
34717 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34719 # Sed expression to map a string onto a valid variable name.
34720 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34725 # Save the log message, to keep $[0] and so on meaningful, and to
34726 # report actual input values of CONFIG_FILES etc. instead of their
34727 # values after options handling.
34729 This file was extended by llvm $as_me 2.4svn, which was
34730 generated by GNU Autoconf 2.60. Invocation command line was
34732 CONFIG_FILES = $CONFIG_FILES
34733 CONFIG_HEADERS = $CONFIG_HEADERS
34734 CONFIG_LINKS = $CONFIG_LINKS
34735 CONFIG_COMMANDS = $CONFIG_COMMANDS
34738 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34743 cat >>$CONFIG_STATUS <<_ACEOF
34744 # Files that config.status was made for.
34745 config_files="$ac_config_files"
34746 config_headers="$ac_config_headers"
34747 config_commands="$ac_config_commands"
34751 cat >>$CONFIG_STATUS <<\_ACEOF
34753 \`$as_me' instantiates files from templates according to the
34754 current configuration.
34756 Usage: $0 [OPTIONS] [FILE]...
34758 -h, --help print this help, then exit
34759 -V, --version print version number, then exit
34760 -q, --quiet do not print progress messages
34761 -d, --debug don't remove temporary files
34762 --recheck update $as_me by reconfiguring in the same conditions
34763 --file=FILE[:TEMPLATE]
34764 instantiate the configuration file FILE
34765 --header=FILE[:TEMPLATE]
34766 instantiate the configuration header FILE
34768 Configuration files:
34771 Configuration headers:
34774 Configuration commands:
34777 Report bugs to <bug-autoconf@gnu.org>."
34780 cat >>$CONFIG_STATUS <<_ACEOF
34782 llvm config.status 2.4svn
34783 configured by $0, generated by GNU Autoconf 2.60,
34784 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34786 Copyright (C) 2006 Free Software Foundation, Inc.
34787 This config.status script is free software; the Free Software Foundation
34788 gives unlimited permission to copy, distribute and modify it."
34795 cat >>$CONFIG_STATUS <<\_ACEOF
34796 # If no file are specified by the user, then we need to provide default
34797 # value. By we need to know if files were specified by the user.
34803 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34804 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34815 # Handling of the options.
34816 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34818 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34819 echo "$ac_cs_version"; exit ;;
34820 --debug | --debu | --deb | --de | --d | -d )
34822 --file | --fil | --fi | --f )
34824 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34825 ac_need_defaults=false;;
34826 --header | --heade | --head | --hea )
34828 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34829 ac_need_defaults=false;;
34831 # Conflict between --help and --header
34832 { echo "$as_me: error: ambiguous option: $1
34833 Try \`$0 --help' for more information." >&2
34834 { (exit 1); exit 1; }; };;
34835 --help | --hel | -h )
34836 echo "$ac_cs_usage"; exit ;;
34837 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34838 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34841 # This is an error.
34842 -*) { echo "$as_me: error: unrecognized option: $1
34843 Try \`$0 --help' for more information." >&2
34844 { (exit 1); exit 1; }; } ;;
34846 *) ac_config_targets="$ac_config_targets $1"
34847 ac_need_defaults=false ;;
34853 ac_configure_extra_args=
34855 if $ac_cs_silent; then
34857 ac_configure_extra_args="$ac_configure_extra_args --silent"
34861 cat >>$CONFIG_STATUS <<_ACEOF
34862 if \$ac_cs_recheck; then
34863 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34864 CONFIG_SHELL=$SHELL
34865 export CONFIG_SHELL
34866 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34870 cat >>$CONFIG_STATUS <<\_ACEOF
34874 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34875 ## Running $as_me. ##
34881 cat >>$CONFIG_STATUS <<_ACEOF
34885 llvm_src="${srcdir}"
34889 cat >>$CONFIG_STATUS <<\_ACEOF
34891 # Handling of arguments.
34892 for ac_config_target in $ac_config_targets
34894 case $ac_config_target in
34895 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34896 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34897 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
34898 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
34899 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
34900 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34901 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34902 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34903 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34904 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34905 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34906 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34907 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34908 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34909 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34910 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34911 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34912 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34913 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34914 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34915 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34916 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34918 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34919 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34920 { (exit 1); exit 1; }; };;
34925 # If the user did not use the arguments to specify the items to instantiate,
34926 # then the envvar interface is used. Set only those that are not.
34927 # We use the long form for the default assignment because of an extremely
34928 # bizarre bug on SunOS 4.1.3.
34929 if $ac_need_defaults; then
34930 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34931 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34932 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34935 # Have a temporary directory for convenience. Make it in the build tree
34936 # simply because there is no reason against having it here, and in addition,
34937 # creating and moving files from /tmp can sometimes cause problems.
34938 # Hook for its removal unless debugging.
34939 # Note that there is a small window in which the directory will not be cleaned:
34940 # after its creation but before its name has been assigned to `$tmp'.
34944 trap 'exit_status=$?
34945 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34947 trap '{ (exit 1); exit 1; }' 1 2 13 15
34949 # Create a (secure) tmp directory for tmp files.
34952 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34953 test -n "$tmp" && test -d "$tmp"
34956 tmp=./conf$$-$RANDOM
34957 (umask 077 && mkdir "$tmp")
34960 echo "$me: cannot create a temporary directory in ." >&2
34961 { (exit 1); exit 1; }
34965 # Set up the sed scripts for CONFIG_FILES section.
34968 # No need to generate the scripts if there are no CONFIG_FILES.
34969 # This happens for instance when ./config.status config.h
34970 if test -n "$CONFIG_FILES"; then
34977 for ac_last_try in false false false false false :; do
34978 cat >conf$$subs.sed <<_ACEOF
34979 SHELL!$SHELL$ac_delim
34980 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34981 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34982 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34983 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34984 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34985 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34986 exec_prefix!$exec_prefix$ac_delim
34987 prefix!$prefix$ac_delim
34988 program_transform_name!$program_transform_name$ac_delim
34989 bindir!$bindir$ac_delim
34990 sbindir!$sbindir$ac_delim
34991 libexecdir!$libexecdir$ac_delim
34992 datarootdir!$datarootdir$ac_delim
34993 datadir!$datadir$ac_delim
34994 sysconfdir!$sysconfdir$ac_delim
34995 sharedstatedir!$sharedstatedir$ac_delim
34996 localstatedir!$localstatedir$ac_delim
34997 includedir!$includedir$ac_delim
34998 oldincludedir!$oldincludedir$ac_delim
34999 docdir!$docdir$ac_delim
35000 infodir!$infodir$ac_delim
35001 htmldir!$htmldir$ac_delim
35002 dvidir!$dvidir$ac_delim
35003 pdfdir!$pdfdir$ac_delim
35004 psdir!$psdir$ac_delim
35005 libdir!$libdir$ac_delim
35006 localedir!$localedir$ac_delim
35007 mandir!$mandir$ac_delim
35008 DEFS!$DEFS$ac_delim
35009 ECHO_C!$ECHO_C$ac_delim
35010 ECHO_N!$ECHO_N$ac_delim
35011 ECHO_T!$ECHO_T$ac_delim
35012 LIBS!$LIBS$ac_delim
35013 build_alias!$build_alias$ac_delim
35014 host_alias!$host_alias$ac_delim
35015 target_alias!$target_alias$ac_delim
35016 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35017 subdirs!$subdirs$ac_delim
35018 build!$build$ac_delim
35019 build_cpu!$build_cpu$ac_delim
35020 build_vendor!$build_vendor$ac_delim
35021 build_os!$build_os$ac_delim
35022 host!$host$ac_delim
35023 host_cpu!$host_cpu$ac_delim
35024 host_vendor!$host_vendor$ac_delim
35025 host_os!$host_os$ac_delim
35026 target!$target$ac_delim
35027 target_cpu!$target_cpu$ac_delim
35028 target_vendor!$target_vendor$ac_delim
35029 target_os!$target_os$ac_delim
35031 LINKALL!$LINKALL$ac_delim
35032 NOLINKALL!$NOLINKALL$ac_delim
35033 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35034 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35035 ARCH!$ARCH$ac_delim
35036 ENDIAN!$ENDIAN$ac_delim
35038 CFLAGS!$CFLAGS$ac_delim
35039 LDFLAGS!$LDFLAGS$ac_delim
35040 CPPFLAGS!$CPPFLAGS$ac_delim
35041 ac_ct_CC!$ac_ct_CC$ac_delim
35042 EXEEXT!$EXEEXT$ac_delim
35043 OBJEXT!$OBJEXT$ac_delim
35045 GREP!$GREP$ac_delim
35046 EGREP!$EGREP$ac_delim
35047 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35048 BUILD_CC!$BUILD_CC$ac_delim
35049 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35050 CVSBUILD!$CVSBUILD$ac_delim
35051 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35052 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35053 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35054 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35055 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35057 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35058 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35059 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35060 ENABLE_PIC!$ENABLE_PIC$ac_delim
35061 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35062 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35063 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35065 CXXFLAGS!$CXXFLAGS$ac_delim
35066 ac_ct_CXX!$ac_ct_CXX$ac_delim
35068 LEXLIB!$LEXLIB$ac_delim
35069 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35070 FLEX!$FLEX$ac_delim
35071 YACC!$YACC$ac_delim
35072 YFLAGS!$YFLAGS$ac_delim
35073 BISON!$BISON$ac_delim
35075 ifGNUmake!$ifGNUmake$ac_delim
35078 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35080 elif $ac_last_try; then
35081 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35082 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35083 { (exit 1); exit 1; }; }
35085 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35089 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35090 if test -n "$ac_eof"; then
35091 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35092 ac_eof=`expr $ac_eof + 1`
35095 cat >>$CONFIG_STATUS <<_ACEOF
35096 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35097 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35100 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35101 s/^/s,@/; s/!/@,|#_!!_#|/
35104 s/'"$ac_delim"'$/,g/; t
35106 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35107 ' >>$CONFIG_STATUS <conf$$subs.sed
35108 rm -f conf$$subs.sed
35109 cat >>$CONFIG_STATUS <<_ACEOF
35115 for ac_last_try in false false false false false :; do
35116 cat >conf$$subs.sed <<_ACEOF
35117 LN_S!$LN_S$ac_delim
35120 DATE!$DATE$ac_delim
35121 FIND!$FIND$ac_delim
35122 MKDIR!$MKDIR$ac_delim
35124 RANLIB!$RANLIB$ac_delim
35128 BINPWD!$BINPWD$ac_delim
35129 GRAPHVIZ!$GRAPHVIZ$ac_delim
35132 DOTTY!$DOTTY$ac_delim
35133 PERL!$PERL$ac_delim
35134 HAVE_PERL!$HAVE_PERL$ac_delim
35135 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35136 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35137 INSTALL_DATA!$INSTALL_DATA$ac_delim
35138 BZIP2!$BZIP2$ac_delim
35139 DOXYGEN!$DOXYGEN$ac_delim
35140 GROFF!$GROFF$ac_delim
35141 GZIP!$GZIP$ac_delim
35142 POD2HTML!$POD2HTML$ac_delim
35143 POD2MAN!$POD2MAN$ac_delim
35144 RUNTEST!$RUNTEST$ac_delim
35145 TCLSH!$TCLSH$ac_delim
35147 OCAMLC!$OCAMLC$ac_delim
35148 OCAMLOPT!$OCAMLOPT$ac_delim
35149 OCAMLDEP!$OCAMLDEP$ac_delim
35150 OCAMLDOC!$OCAMLDOC$ac_delim
35151 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35152 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35153 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35154 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35155 LIBADD_DL!$LIBADD_DL$ac_delim
35156 ECHO!$ECHO$ac_delim
35158 STRIP!$STRIP$ac_delim
35159 CXXCPP!$CXXCPP$ac_delim
35161 FFLAGS!$FFLAGS$ac_delim
35162 ac_ct_F77!$ac_ct_F77$ac_delim
35163 LIBTOOL!$LIBTOOL$ac_delim
35164 LLVMGCC!$LLVMGCC$ac_delim
35165 LLVMGXX!$LLVMGXX$ac_delim
35166 USE_UDIS86!$USE_UDIS86$ac_delim
35167 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35168 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35169 ALLOCA!$ALLOCA$ac_delim
35170 MMAP_FILE!$MMAP_FILE$ac_delim
35171 LLVMCC1!$LLVMCC1$ac_delim
35172 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35173 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35174 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35175 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35176 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35177 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35178 SHLIBEXT!$SHLIBEXT$ac_delim
35179 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35180 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35181 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35182 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35183 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35184 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35185 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35186 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35187 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35188 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35189 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35190 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35191 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35192 LIBOBJS!$LIBOBJS$ac_delim
35193 LTLIBOBJS!$LTLIBOBJS$ac_delim
35196 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
35198 elif $ac_last_try; then
35199 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35200 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35201 { (exit 1); exit 1; }; }
35203 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35207 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35208 if test -n "$ac_eof"; then
35209 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35210 ac_eof=`expr $ac_eof + 1`
35213 cat >>$CONFIG_STATUS <<_ACEOF
35214 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35215 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35218 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35219 s/^/s,@/; s/!/@,|#_!!_#|/
35222 s/'"$ac_delim"'$/,g/; t
35224 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35225 ' >>$CONFIG_STATUS <conf$$subs.sed
35226 rm -f conf$$subs.sed
35227 cat >>$CONFIG_STATUS <<_ACEOF
35234 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35235 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35236 # trailing colons and then remove the whole line if VPATH becomes empty
35237 # (actually we leave an empty line to preserve line numbers).
35238 if test "x$srcdir" = x.; then
35239 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35240 s/:*\$(srcdir):*/:/
35241 s/:*\${srcdir}:*/:/
35243 s/^\([^=]*=[ ]*\):*/\1/
35249 cat >>$CONFIG_STATUS <<\_ACEOF
35250 fi # test -n "$CONFIG_FILES"
35253 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35256 :[FHLC]) ac_mode=$ac_tag; continue;;
35258 case $ac_mode$ac_tag in
35260 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35261 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35262 { (exit 1); exit 1; }; };;
35263 :[FH]-) ac_tag=-:-;;
35264 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35281 -) ac_f="$tmp/stdin";;
35282 *) # Look for the file first in the build tree, then in the source tree
35283 # (if the path is not absolute). The absolute path cannot be DOS-style,
35284 # because $ac_f cannot contain `:'.
35288 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35290 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35291 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35292 { (exit 1); exit 1; }; };;
35294 ac_file_inputs="$ac_file_inputs $ac_f"
35297 # Let's still pretend it is `configure' which instantiates (i.e., don't
35298 # use $as_me), people would be surprised to read:
35299 # /* config.h. Generated by config.status. */
35300 configure_input="Generated from "`IFS=:
35301 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35302 if test x"$ac_file" != x-; then
35303 configure_input="$ac_file. $configure_input"
35304 { echo "$as_me:$LINENO: creating $ac_file" >&5
35305 echo "$as_me: creating $ac_file" >&6;}
35309 *:-:* | *:-) cat >"$tmp/stdin";;
35314 ac_dir=`$as_dirname -- "$ac_file" ||
35315 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35316 X"$ac_file" : 'X\(//\)[^/]' \| \
35317 X"$ac_file" : 'X\(//\)$' \| \
35318 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35324 /^X\(\/\/\)[^/].*/{
35339 -*) as_dir=./$as_dir;;
35341 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35345 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35346 *) as_qdir=$as_dir;;
35348 as_dirs="'$as_qdir' $as_dirs"
35349 as_dir=`$as_dirname -- "$as_dir" ||
35350 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35351 X"$as_dir" : 'X\(//\)[^/]' \| \
35352 X"$as_dir" : 'X\(//\)$' \| \
35353 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35359 /^X\(\/\/\)[^/].*/{
35372 test -d "$as_dir" && break
35374 test -z "$as_dirs" || eval "mkdir $as_dirs"
35375 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35376 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35377 { (exit 1); exit 1; }; }; }
35381 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35383 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35384 # A ".." for each directory in $ac_dir_suffix.
35385 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35386 case $ac_top_builddir_sub in
35387 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35388 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35391 ac_abs_top_builddir=$ac_pwd
35392 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35393 # for backward compatibility:
35394 ac_top_builddir=$ac_top_build_prefix
35397 .) # We are building in place.
35399 ac_top_srcdir=$ac_top_builddir_sub
35400 ac_abs_top_srcdir=$ac_pwd ;;
35401 [\\/]* | ?:[\\/]* ) # Absolute name.
35402 ac_srcdir=$srcdir$ac_dir_suffix;
35403 ac_top_srcdir=$srcdir
35404 ac_abs_top_srcdir=$srcdir ;;
35405 *) # Relative name.
35406 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35407 ac_top_srcdir=$ac_top_build_prefix$srcdir
35408 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35410 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35420 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35421 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35425 cat >>$CONFIG_STATUS <<\_ACEOF
35426 # If the template does not know about datarootdir, expand it.
35427 # FIXME: This hack should be removed a few years after 2.60.
35428 ac_datarootdir_hack=; ac_datarootdir_seen=
35430 case `sed -n '/datarootdir/ {
35439 ' $ac_file_inputs` in
35440 *datarootdir*) ac_datarootdir_seen=yes;;
35441 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35442 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35443 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35445 cat >>$CONFIG_STATUS <<_ACEOF
35446 ac_datarootdir_hack='
35447 s&@datadir@&$datadir&g
35448 s&@docdir@&$docdir&g
35449 s&@infodir@&$infodir&g
35450 s&@localedir@&$localedir&g
35451 s&@mandir@&$mandir&g
35452 s&\\\${datarootdir}&$datarootdir&g' ;;
35456 # Neutralize VPATH when `$srcdir' = `.'.
35457 # Shell code in configure.ac might set extrasub.
35458 # FIXME: do we really want to maintain this feature?
35459 cat >>$CONFIG_STATUS <<_ACEOF
35463 cat >>$CONFIG_STATUS <<\_ACEOF
35465 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35466 s&@configure_input@&$configure_input&;t t
35467 s&@top_builddir@&$ac_top_builddir_sub&;t t
35468 s&@srcdir@&$ac_srcdir&;t t
35469 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35470 s&@top_srcdir@&$ac_top_srcdir&;t t
35471 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35472 s&@builddir@&$ac_builddir&;t t
35473 s&@abs_builddir@&$ac_abs_builddir&;t t
35474 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35475 s&@INSTALL@&$ac_INSTALL&;t t
35476 $ac_datarootdir_hack
35477 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35479 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35480 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35481 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35482 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35483 which seems to be undefined. Please make sure it is defined." >&5
35484 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35485 which seems to be undefined. Please make sure it is defined." >&2;}
35489 -) cat "$tmp/out"; rm -f "$tmp/out";;
35490 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35499 # Transform confdefs.h into a sed script `conftest.defines', that
35500 # substitutes the proper values into config.h.in to produce config.h.
35501 rm -f conftest.defines conftest.tail
35502 # First, append a space to every undef/define line, to ease matching.
35503 echo 's/$/ /' >conftest.defines
35504 # Then, protect against being on the right side of a sed subst, or in
35505 # an unquoted here document, in config.status. If some macros were
35506 # called several times there might be several #defines for the same
35507 # symbol, which is useless. But do not sort them, since the last
35508 # AC_DEFINE must be honored.
35509 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35510 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35511 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35512 # PARAMS is the parameter list in the macro definition--in most cases, it's
35513 # just an empty string.
35514 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35515 ac_dB='\\)[ (].*,\\1define\\2'
35523 s/^[ ]*#[ ]*define[ ][ ]*//
35528 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35529 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35530 ' >>conftest.defines
35532 # Remove the space that was appended to ease matching.
35533 # Then replace #undef with comments. This is necessary, for
35534 # example, in the case of _POSIX_SOURCE, which is predefined and required
35535 # on some systems where configure will not decide to define it.
35536 # (The regexp can be short, since the line contains either #define or #undef.)
35538 s,^[ #]*u.*,/* & */,' >>conftest.defines
35540 # Break up conftest.defines:
35541 ac_max_sed_lines=50
35543 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35544 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35545 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35547 ac_in='$ac_file_inputs'
35548 ac_out='"$tmp/out1"'
35549 ac_nxt='"$tmp/out2"'
35553 # Write a here document:
35554 cat >>$CONFIG_STATUS <<_ACEOF
35555 # First, check the format of the line:
35556 cat >"\$tmp/defines.sed" <<\\CEOF
35557 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35558 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35562 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35564 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35565 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35566 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35567 grep . conftest.tail >/dev/null || break
35568 rm -f conftest.defines
35569 mv conftest.tail conftest.defines
35571 rm -f conftest.defines conftest.tail
35573 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35574 cat >>$CONFIG_STATUS <<\_ACEOF
35575 if test x"$ac_file" != x-; then
35576 echo "/* $configure_input */" >"$tmp/config.h"
35577 cat "$ac_result" >>"$tmp/config.h"
35578 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35579 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35580 echo "$as_me: $ac_file is unchanged" >&6;}
35583 mv "$tmp/config.h" $ac_file
35586 echo "/* $configure_input */"
35592 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35593 echo "$as_me: executing $ac_file commands" >&6;}
35598 case $ac_file$ac_mode in
35599 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35600 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35601 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35602 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35603 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35604 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35605 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35606 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35607 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35608 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35609 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35610 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35611 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35612 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35613 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35614 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35615 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35616 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35617 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35618 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35619 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35620 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35621 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35622 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35628 { (exit 0); exit 0; }
35630 chmod +x $CONFIG_STATUS
35631 ac_clean_files=$ac_clean_files_save
35634 # configure is writing to config.log, and then calls config.status.
35635 # config.status does its own redirection, appending to config.log.
35636 # Unfortunately, on DOS this fails, as config.log is still kept open
35637 # by configure, so config.status won't be able to write to it; its
35638 # output is simply discarded. So we exec the FD to /dev/null,
35639 # effectively closing config.log, so it can be properly (re)opened and
35640 # appended to by config.status. When coming back to configure, we
35641 # need to make the FD available again.
35642 if test "$no_create" != yes; then
35644 ac_config_status_args=
35645 test "$silent" = yes &&
35646 ac_config_status_args="$ac_config_status_args --quiet"
35648 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35650 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35651 # would make configure fail if this is the last instruction.
35652 $ac_cs_success || { (exit 1); exit 1; }
35656 # CONFIG_SUBDIRS section.
35658 if test "$no_recursion" != yes; then
35660 # Remove --cache-file and --srcdir arguments so they do not pile up.
35661 ac_sub_configure_args=
35663 eval "set x $ac_configure_args"
35667 if test -n "$ac_prev"; then
35672 -cache-file | --cache-file | --cache-fil | --cache-fi \
35673 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35674 ac_prev=cache_file ;;
35675 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35676 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35679 --config-cache | -C)
35681 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35683 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35685 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35687 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35691 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35693 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35697 # Always prepend --prefix to ensure using the same prefix
35698 # in subdir configurations.
35699 ac_arg="--prefix=$prefix"
35701 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35703 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35706 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35708 # Do not complain, so a configure script can configure whichever
35709 # parts of a large source tree are present.
35710 test -d "$srcdir/$ac_dir" || continue
35712 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35713 echo "$as_me:$LINENO: $ac_msg" >&5
35717 -*) as_dir=./$as_dir;;
35719 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35723 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35724 *) as_qdir=$as_dir;;
35726 as_dirs="'$as_qdir' $as_dirs"
35727 as_dir=`$as_dirname -- "$as_dir" ||
35728 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35729 X"$as_dir" : 'X\(//\)[^/]' \| \
35730 X"$as_dir" : 'X\(//\)$' \| \
35731 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35737 /^X\(\/\/\)[^/].*/{
35750 test -d "$as_dir" && break
35752 test -z "$as_dirs" || eval "mkdir $as_dirs"
35753 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35754 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35755 { (exit 1); exit 1; }; }; }
35759 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35761 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35762 # A ".." for each directory in $ac_dir_suffix.
35763 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35764 case $ac_top_builddir_sub in
35765 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35766 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35769 ac_abs_top_builddir=$ac_pwd
35770 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35771 # for backward compatibility:
35772 ac_top_builddir=$ac_top_build_prefix
35775 .) # We are building in place.
35777 ac_top_srcdir=$ac_top_builddir_sub
35778 ac_abs_top_srcdir=$ac_pwd ;;
35779 [\\/]* | ?:[\\/]* ) # Absolute name.
35780 ac_srcdir=$srcdir$ac_dir_suffix;
35781 ac_top_srcdir=$srcdir
35782 ac_abs_top_srcdir=$srcdir ;;
35783 *) # Relative name.
35784 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35785 ac_top_srcdir=$ac_top_build_prefix$srcdir
35786 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35788 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35793 # Check for guested configure; otherwise get Cygnus style configure.
35794 if test -f "$ac_srcdir/configure.gnu"; then
35795 ac_sub_configure=$ac_srcdir/configure.gnu
35796 elif test -f "$ac_srcdir/configure"; then
35797 ac_sub_configure=$ac_srcdir/configure
35798 elif test -f "$ac_srcdir/configure.in"; then
35799 # This should be Cygnus configure.
35800 ac_sub_configure=$ac_aux_dir/configure
35802 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35803 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35807 # The recursion is here.
35808 if test -n "$ac_sub_configure"; then
35809 # Make the cache file name correct relative to the subdirectory.
35810 case $cache_file in
35811 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35812 *) # Relative name.
35813 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35816 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35817 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35818 # The eval makes quoting arguments work.
35819 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35820 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35821 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35822 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35823 { (exit 1); exit 1; }; }