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) subdirs="$subdirs projects/llvm-test"
2095 test-suite) subdirs="$subdirs projects/test-suite"
2097 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2099 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2101 llvm-java) subdirs="$subdirs projects/llvm-java"
2103 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2105 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2107 poolalloc) subdirs="$subdirs projects/poolalloc"
2109 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2112 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2113 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2120 # Make sure we can run config.sub.
2121 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2122 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2123 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2124 { (exit 1); exit 1; }; }
2126 { echo "$as_me:$LINENO: checking build system type" >&5
2127 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2128 if test "${ac_cv_build+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2131 ac_build_alias=$build_alias
2132 test "x$ac_build_alias" = x &&
2133 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2134 test "x$ac_build_alias" = x &&
2135 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2136 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2137 { (exit 1); exit 1; }; }
2138 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2139 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2140 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2141 { (exit 1); exit 1; }; }
2144 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2145 echo "${ECHO_T}$ac_cv_build" >&6; }
2146 case $ac_cv_build in
2148 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2149 echo "$as_me: error: invalid value of canonical build" >&2;}
2150 { (exit 1); exit 1; }; };;
2153 ac_save_IFS=$IFS; IFS='-'
2159 # Remember, the first character of IFS is used to create $*,
2160 # except with old shells:
2163 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2166 { echo "$as_me:$LINENO: checking host system type" >&5
2167 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2168 if test "${ac_cv_host+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2171 if test "x$host_alias" = x; then
2172 ac_cv_host=$ac_cv_build
2174 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2175 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2176 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2177 { (exit 1); exit 1; }; }
2181 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2182 echo "${ECHO_T}$ac_cv_host" >&6; }
2185 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2186 echo "$as_me: error: invalid value of canonical host" >&2;}
2187 { (exit 1); exit 1; }; };;
2190 ac_save_IFS=$IFS; IFS='-'
2196 # Remember, the first character of IFS is used to create $*,
2197 # except with old shells:
2200 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2203 { echo "$as_me:$LINENO: checking target system type" >&5
2204 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2205 if test "${ac_cv_target+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2208 if test "x$target_alias" = x; then
2209 ac_cv_target=$ac_cv_host
2211 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2212 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2213 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2214 { (exit 1); exit 1; }; }
2218 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2219 echo "${ECHO_T}$ac_cv_target" >&6; }
2220 case $ac_cv_target in
2222 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2223 echo "$as_me: error: invalid value of canonical target" >&2;}
2224 { (exit 1); exit 1; }; };;
2226 target=$ac_cv_target
2227 ac_save_IFS=$IFS; IFS='-'
2233 # Remember, the first character of IFS is used to create $*,
2234 # except with old shells:
2237 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2240 # The aliases save the names the user supplied, while $host etc.
2241 # will get canonicalized.
2242 test -n "$target_alias" &&
2243 test "$program_prefix$program_suffix$program_transform_name" = \
2245 program_prefix=${target_alias}-
2247 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2248 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2249 if test "${llvm_cv_os_type+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2254 llvm_cv_link_all_option="-Wl,--whole-archive"
2255 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2256 llvm_cv_os_type="AIX"
2257 llvm_cv_platform_type="Unix" ;;
2259 llvm_cv_link_all_option="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2261 llvm_cv_os_type="IRIX"
2262 llvm_cv_platform_type="Unix" ;;
2264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2266 llvm_cv_os_type="Cygwin"
2267 llvm_cv_platform_type="Unix" ;;
2269 llvm_cv_link_all_option="-Wl,-all_load"
2270 llvm_cv_no_link_all_option="-Wl,-noall_load"
2271 llvm_cv_os_type="Darwin"
2272 llvm_cv_platform_type="Unix" ;;
2274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276 llvm_cv_os_type="FreeBSD"
2277 llvm_cv_platform_type="Unix" ;;
2279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="OpenBSD"
2282 llvm_cv_platform_type="Unix" ;;
2284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286 llvm_cv_os_type="NetBSD"
2287 llvm_cv_platform_type="Unix" ;;
2289 llvm_cv_link_all_option="-Wl,--whole-archive"
2290 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2291 llvm_cv_os_type="HP-UX"
2292 llvm_cv_platform_type="Unix" ;;
2294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296 llvm_cv_os_type="Interix"
2297 llvm_cv_platform_type="Unix" ;;
2299 llvm_cv_link_all_option="-Wl,--whole-archive"
2300 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2301 llvm_cv_os_type="Linux"
2302 llvm_cv_platform_type="Unix" ;;
2304 llvm_cv_link_all_option="-Wl,-z,allextract"
2305 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2306 llvm_cv_os_type="SunOS"
2307 llvm_cv_platform_type="Unix" ;;
2309 llvm_cv_link_all_option="-Wl,--whole-archive"
2310 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2311 llvm_cv_os_type="Win32"
2312 llvm_cv_platform_type="Win32" ;;
2314 llvm_cv_link_all_option="-Wl,--whole-archive"
2315 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2316 llvm_cv_os_type="MingW"
2317 llvm_cv_platform_type="Win32" ;;
2319 llvm_cv_link_all_option=""
2320 llvm_cv_no_link_all_option=""
2321 llvm_cv_os_type="Unknown"
2322 llvm_cv_platform_type="Unknown" ;;
2325 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2326 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2328 if test "$llvm_cv_os_type" = "Unknown" ; then
2329 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2330 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2331 { (exit 1); exit 1; }; }
2337 LINKALL=$llvm_cv_link_all_option
2339 NOLINKALL=$llvm_cv_no_link_all_option
2342 case $llvm_cv_platform_type in
2345 cat >>confdefs.h <<\_ACEOF
2346 #define LLVM_ON_UNIX 1
2356 cat >>confdefs.h <<\_ACEOF
2357 #define LLVM_ON_WIN32 1
2367 { echo "$as_me:$LINENO: checking target architecture" >&5
2368 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2369 if test "${llvm_cv_target_arch+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 i?86-*) llvm_cv_target_arch="x86" ;;
2374 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2375 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2376 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2377 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2378 ia64-*) llvm_cv_target_arch="IA64" ;;
2379 arm-*) llvm_cv_target_arch="ARM" ;;
2380 mips-*) llvm_cv_target_arch="Mips" ;;
2381 pic16-*) llvm_cv_target_arch="PIC16" ;;
2382 *) llvm_cv_target_arch="Unknown" ;;
2385 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2386 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2388 if test "$llvm_cv_target_arch" = "Unknown" ; then
2389 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2390 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2393 ARCH=$llvm_cv_target_arch
2397 ac_cpp='$CPP $CPPFLAGS'
2398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2401 if test -n "$ac_tool_prefix"; then
2402 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2403 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2406 if test "${ac_cv_prog_CC+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2409 if test -n "$CC"; then
2410 ac_cv_prog_CC="$CC" # Let the user override the test.
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 test -z "$as_dir" && as_dir=.
2417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2419 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430 if test -n "$CC"; then
2431 { echo "$as_me:$LINENO: result: $CC" >&5
2432 echo "${ECHO_T}$CC" >&6; }
2434 { echo "$as_me:$LINENO: result: no" >&5
2435 echo "${ECHO_T}no" >&6; }
2440 if test -z "$ac_cv_prog_CC"; then
2442 # Extract the first word of "gcc", so it can be a program name with args.
2443 set dummy gcc; ac_word=$2
2444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2446 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 if test -n "$ac_ct_CC"; then
2450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2459 ac_cv_prog_ac_ct_CC="gcc"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2470 if test -n "$ac_ct_CC"; then
2471 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2472 echo "${ECHO_T}$ac_ct_CC" >&6; }
2474 { echo "$as_me:$LINENO: result: no" >&5
2475 echo "${ECHO_T}no" >&6; }
2478 if test "x$ac_ct_CC" = x; then
2481 case $cross_compiling:$ac_tool_warned in
2483 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2484 whose name does not start with the host triplet. If you think this
2485 configuration is useful to you, please write to autoconf@gnu.org." >&5
2486 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2487 whose name does not start with the host triplet. If you think this
2488 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2489 ac_tool_warned=yes ;;
2497 if test -z "$CC"; then
2498 if test -n "$ac_tool_prefix"; then
2499 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2500 set dummy ${ac_tool_prefix}cc; ac_word=$2
2501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2503 if test "${ac_cv_prog_CC+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 if test -n "$CC"; then
2507 ac_cv_prog_CC="$CC" # Let the user override the test.
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2516 ac_cv_prog_CC="${ac_tool_prefix}cc"
2517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 if test -n "$CC"; then
2528 { echo "$as_me:$LINENO: result: $CC" >&5
2529 echo "${ECHO_T}$CC" >&6; }
2531 { echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6; }
2538 if test -z "$CC"; then
2539 # Extract the first word of "cc", so it can be a program name with args.
2540 set dummy cc; ac_word=$2
2541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2543 if test "${ac_cv_prog_CC+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 if test -n "$CC"; then
2547 ac_cv_prog_CC="$CC" # Let the user override the test.
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554 test -z "$as_dir" && as_dir=.
2555 for ac_exec_ext in '' $ac_executable_extensions; do
2556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2557 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2558 ac_prog_rejected=yes
2562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 if test $ac_prog_rejected = yes; then
2570 # We found a bogon in the path, so make sure we never use it.
2571 set dummy $ac_cv_prog_CC
2573 if test $# != 0; then
2574 # We chose a different compiler from the bogus one.
2575 # However, it has the same basename, so the bogon will be chosen
2576 # first if we set CC to just the basename; use the full file name.
2578 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2584 if test -n "$CC"; then
2585 { echo "$as_me:$LINENO: result: $CC" >&5
2586 echo "${ECHO_T}$CC" >&6; }
2588 { echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6; }
2594 if test -z "$CC"; then
2595 if test -n "$ac_tool_prefix"; then
2596 for ac_prog in cl.exe
2598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2602 if test "${ac_cv_prog_CC+set}" = set; then
2603 echo $ECHO_N "(cached) $ECHO_C" >&6
2605 if test -n "$CC"; then
2606 ac_cv_prog_CC="$CC" # Let the user override the test.
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2615 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 if test -n "$CC"; then
2627 { echo "$as_me:$LINENO: result: $CC" >&5
2628 echo "${ECHO_T}$CC" >&6; }
2630 { echo "$as_me:$LINENO: result: no" >&5
2631 echo "${ECHO_T}no" >&6; }
2635 test -n "$CC" && break
2638 if test -z "$CC"; then
2640 for ac_prog in cl.exe
2642 # Extract the first word of "$ac_prog", so it can be a program name with args.
2643 set dummy $ac_prog; ac_word=$2
2644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 if test -n "$ac_ct_CC"; then
2650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2659 ac_cv_prog_ac_ct_CC="$ac_prog"
2660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2670 if test -n "$ac_ct_CC"; then
2671 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2672 echo "${ECHO_T}$ac_ct_CC" >&6; }
2674 { echo "$as_me:$LINENO: result: no" >&5
2675 echo "${ECHO_T}no" >&6; }
2679 test -n "$ac_ct_CC" && break
2682 if test "x$ac_ct_CC" = x; then
2685 case $cross_compiling:$ac_tool_warned in
2687 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2688 whose name does not start with the host triplet. If you think this
2689 configuration is useful to you, please write to autoconf@gnu.org." >&5
2690 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2691 whose name does not start with the host triplet. If you think this
2692 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2693 ac_tool_warned=yes ;;
2702 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2703 See \`config.log' for more details." >&5
2704 echo "$as_me: error: no acceptable C compiler found in \$PATH
2705 See \`config.log' for more details." >&2;}
2706 { (exit 1); exit 1; }; }
2708 # Provide some information about the compiler.
2709 echo "$as_me:$LINENO: checking for C compiler version" >&5
2710 ac_compiler=`set X $ac_compile; echo $2`
2711 { (ac_try="$ac_compiler --version >&5"
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_compiler --version >&5") 2>&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }
2721 { (ac_try="$ac_compiler -v >&5"
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_compiler -v >&5") 2>&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }
2731 { (ac_try="$ac_compiler -V >&5"
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_compiler -V >&5") 2>&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }
2742 cat >conftest.$ac_ext <<_ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h. */
2757 ac_clean_files_save=$ac_clean_files
2758 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2759 # Try to create an executable without -o first, disregard a.out.
2760 # It will help us diagnose broken compilers, and finding out an intuition
2762 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2763 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2764 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2766 # List of possible output files, starting from the most likely.
2767 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2768 # only as a last resort. b.out is created by i960 compilers.
2769 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2771 # The IRIX 6 linker writes into existing files which may not be
2772 # executable, retaining their permissions. Remove them first so a
2773 # subsequent execution test works.
2775 for ac_file in $ac_files
2778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2779 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2784 if { (ac_try="$ac_link_default"
2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787 *) ac_try_echo=$ac_try;;
2789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2790 (eval "$ac_link_default") 2>&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; then
2794 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2795 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2796 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2797 # so that the user can short-circuit this test for compilers unknown to
2799 for ac_file in $ac_files
2801 test -f "$ac_file" || continue
2803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2806 # We found the default executable, but exeext='' is most
2810 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2812 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2814 # We set ac_cv_exeext here because the later test for it is not
2815 # safe: cross compilers may not add the suffix if given an `-o'
2816 # argument, so we may need to know it at that point already.
2817 # Even if this section looks crufty: it has the advantage of
2824 test "$ac_cv_exeext" = no && ac_cv_exeext=
2827 echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2830 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2831 See \`config.log' for more details." >&5
2832 echo "$as_me: error: C compiler cannot create executables
2833 See \`config.log' for more details." >&2;}
2834 { (exit 77); exit 77; }; }
2837 ac_exeext=$ac_cv_exeext
2838 { echo "$as_me:$LINENO: result: $ac_file" >&5
2839 echo "${ECHO_T}$ac_file" >&6; }
2841 # Check that the compiler produces executables we can run. If not, either
2842 # the compiler is broken, or we cross compile.
2843 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2844 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2845 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2846 # If not cross compiling, check that we can run a simple program.
2847 if test "$cross_compiling" != yes; then
2848 if { ac_try='./$ac_file'
2849 { (case "(($ac_try" in
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2854 (eval "$ac_try") 2>&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; }; then
2860 if test "$cross_compiling" = maybe; then
2863 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2864 If you meant to cross compile, use \`--host'.
2865 See \`config.log' for more details." >&5
2866 echo "$as_me: error: cannot run C compiled programs.
2867 If you meant to cross compile, use \`--host'.
2868 See \`config.log' for more details." >&2;}
2869 { (exit 1); exit 1; }; }
2873 { echo "$as_me:$LINENO: result: yes" >&5
2874 echo "${ECHO_T}yes" >&6; }
2876 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2877 ac_clean_files=$ac_clean_files_save
2878 # Check that the compiler produces executables we can run. If not, either
2879 # the compiler is broken, or we cross compile.
2880 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2881 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2882 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2883 echo "${ECHO_T}$cross_compiling" >&6; }
2885 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2886 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2887 if { (ac_try="$ac_link"
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_link") 2>&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; then
2897 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2898 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2899 # work properly (i.e., refer to `conftest.exe'), while it won't with
2901 for ac_file in conftest.exe conftest conftest.*; do
2902 test -f "$ac_file" || continue
2904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2905 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2911 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2912 See \`config.log' for more details." >&5
2913 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2914 See \`config.log' for more details." >&2;}
2915 { (exit 1); exit 1; }; }
2918 rm -f conftest$ac_cv_exeext
2919 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2920 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2922 rm -f conftest.$ac_ext
2923 EXEEXT=$ac_cv_exeext
2925 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2926 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2927 if test "${ac_cv_objext+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 cat >conftest.$ac_ext <<_ACEOF
2933 cat confdefs.h >>conftest.$ac_ext
2934 cat >>conftest.$ac_ext <<_ACEOF
2935 /* end confdefs.h. */
2945 rm -f conftest.o conftest.obj
2946 if { (ac_try="$ac_compile"
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952 (eval "$ac_compile") 2>&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; then
2956 for ac_file in conftest.o conftest.obj conftest.*; do
2957 test -f "$ac_file" || continue;
2959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2960 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2968 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2969 See \`config.log' for more details." >&5
2970 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2971 See \`config.log' for more details." >&2;}
2972 { (exit 1); exit 1; }; }
2975 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2977 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2978 echo "${ECHO_T}$ac_cv_objext" >&6; }
2979 OBJEXT=$ac_cv_objext
2981 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2982 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2983 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 cat >conftest.$ac_ext <<_ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h. */
3004 rm -f conftest.$ac_objext
3005 if { (ac_try="$ac_compile"
3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011 (eval "$ac_compile") 2>conftest.er1
3013 grep -v '^ *+' conftest.er1 >conftest.err
3015 cat conftest.err >&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); } &&
3018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3019 { (case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_try") 2>&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; } &&
3028 { ac_try='test -s conftest.$ac_objext'
3029 { (case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_try") 2>&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; }; then
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3047 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3050 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3051 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3052 GCC=`test $ac_compiler_gnu = yes && echo yes`
3053 ac_test_CFLAGS=${CFLAGS+set}
3054 ac_save_CFLAGS=$CFLAGS
3055 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3056 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3057 if test "${ac_cv_prog_cc_g+set}" = set; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
3060 ac_save_c_werror_flag=$ac_c_werror_flag
3061 ac_c_werror_flag=yes
3064 cat >conftest.$ac_ext <<_ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3079 rm -f conftest.$ac_objext
3080 if { (ac_try="$ac_compile"
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_compile") 2>conftest.er1
3088 grep -v '^ *+' conftest.er1 >conftest.err
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } &&
3093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3094 { (case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_try") 2>&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; } &&
3103 { ac_try='test -s conftest.$ac_objext'
3104 { (case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109 (eval "$ac_try") 2>&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3119 cat >conftest.$ac_ext <<_ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h. */
3134 rm -f conftest.$ac_objext
3135 if { (ac_try="$ac_compile"
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_compile") 2>conftest.er1
3143 grep -v '^ *+' conftest.er1 >conftest.err
3145 cat conftest.err >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } &&
3148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3149 { (case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_try") 2>&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; } &&
3158 { ac_try='test -s conftest.$ac_objext'
3159 { (case "(($ac_try" in
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164 (eval "$ac_try") 2>&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; }; then
3170 echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3173 ac_c_werror_flag=$ac_save_c_werror_flag
3175 cat >conftest.$ac_ext <<_ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3190 rm -f conftest.$ac_objext
3191 if { (ac_try="$ac_compile"
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_compile") 2>conftest.er1
3199 grep -v '^ *+' conftest.er1 >conftest.err
3201 cat conftest.err >&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); } &&
3204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3205 { (case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_try") 2>&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; } &&
3214 { ac_try='test -s conftest.$ac_objext'
3215 { (case "(($ac_try" in
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220 (eval "$ac_try") 2>&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); }; }; then
3226 echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239 ac_c_werror_flag=$ac_save_c_werror_flag
3241 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3242 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3243 if test "$ac_test_CFLAGS" = set; then
3244 CFLAGS=$ac_save_CFLAGS
3245 elif test $ac_cv_prog_cc_g = yes; then
3246 if test "$GCC" = yes; then
3252 if test "$GCC" = yes; then
3258 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3259 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3260 if test "${ac_cv_prog_cc_c89+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 ac_cv_prog_cc_c89=no
3265 cat >conftest.$ac_ext <<_ACEOF
3268 cat confdefs.h >>conftest.$ac_ext
3269 cat >>conftest.$ac_ext <<_ACEOF
3270 /* end confdefs.h. */
3273 #include <sys/types.h>
3274 #include <sys/stat.h>
3275 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3276 struct buf { int x; };
3277 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3278 static char *e (p, i)
3284 static char *f (char * (*g) (char **, int), char **p, ...)
3289 s = g (p, va_arg (v,int));
3294 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3295 function prototypes and stuff, but not '\xHH' hex character constants.
3296 These don't provoke an error unfortunately, instead are silently treated
3297 as 'x'. The following induces an error, until -std is added to get
3298 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3299 array size at least. It's necessary to write '\x00'==0 to get something
3300 that's true only with -std. */
3301 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3303 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3304 inside strings and character constants. */
3306 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3308 int test (int i, double x);
3309 struct s1 {int (*f) (int a);};
3310 struct s2 {int (*f) (double a);};
3311 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3317 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3322 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3323 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3325 CC="$ac_save_CC $ac_arg"
3326 rm -f conftest.$ac_objext
3327 if { (ac_try="$ac_compile"
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3333 (eval "$ac_compile") 2>conftest.er1
3335 grep -v '^ *+' conftest.er1 >conftest.err
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
3340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3341 { (case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_try") 2>&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; } &&
3350 { ac_try='test -s conftest.$ac_objext'
3351 { (case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3356 (eval "$ac_try") 2>&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3360 ac_cv_prog_cc_c89=$ac_arg
3362 echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3368 rm -f core conftest.err conftest.$ac_objext
3369 test "x$ac_cv_prog_cc_c89" != "xno" && break
3371 rm -f conftest.$ac_ext
3376 case "x$ac_cv_prog_cc_c89" in
3378 { echo "$as_me:$LINENO: result: none needed" >&5
3379 echo "${ECHO_T}none needed" >&6; } ;;
3381 { echo "$as_me:$LINENO: result: unsupported" >&5
3382 echo "${ECHO_T}unsupported" >&6; } ;;
3384 CC="$CC $ac_cv_prog_cc_c89"
3385 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3386 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
3402 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3403 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3404 # On Suns, sometimes $CPP names a directory.
3405 if test -n "$CPP" && test -d "$CPP"; then
3408 if test -z "$CPP"; then
3409 if test "${ac_cv_prog_CPP+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 # Double quotes because CPP needs to be expanded
3413 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3416 for ac_c_preproc_warn_flag in '' yes
3418 # Use a header file that comes with gcc, so configuring glibc
3419 # with a fresh cross-compiler works.
3420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3421 # <limits.h> exists even on freestanding compilers.
3422 # On the NeXT, cc -E runs the code through the compiler's parser,
3423 # not just through cpp. "Syntax error" is here to catch this case.
3424 cat >conftest.$ac_ext <<_ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h. */
3431 # include <limits.h>
3433 # include <assert.h>
3437 if { (ac_try="$ac_cpp conftest.$ac_ext"
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3445 grep -v '^ *+' conftest.er1 >conftest.err
3447 cat conftest.err >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } >/dev/null; then
3450 if test -s conftest.err; then
3451 ac_cpp_err=$ac_c_preproc_warn_flag
3452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3459 if test -z "$ac_cpp_err"; then
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3465 # Broken: fails on valid input.
3469 rm -f conftest.err conftest.$ac_ext
3471 # OK, works on sane cases. Now check whether nonexistent headers
3472 # can be detected and how.
3473 cat >conftest.$ac_ext <<_ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h. */
3479 #include <ac_nonexistent.h>
3481 if { (ac_try="$ac_cpp conftest.$ac_ext"
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3489 grep -v '^ *+' conftest.er1 >conftest.err
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } >/dev/null; then
3494 if test -s conftest.err; then
3495 ac_cpp_err=$ac_c_preproc_warn_flag
3496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3503 if test -z "$ac_cpp_err"; then
3504 # Broken: success on invalid input.
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3510 # Passes both tests.
3515 rm -f conftest.err conftest.$ac_ext
3518 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3519 rm -f conftest.err conftest.$ac_ext
3520 if $ac_preproc_ok; then
3532 { echo "$as_me:$LINENO: result: $CPP" >&5
3533 echo "${ECHO_T}$CPP" >&6; }
3535 for ac_c_preproc_warn_flag in '' yes
3537 # Use a header file that comes with gcc, so configuring glibc
3538 # with a fresh cross-compiler works.
3539 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3540 # <limits.h> exists even on freestanding compilers.
3541 # On the NeXT, cc -E runs the code through the compiler's parser,
3542 # not just through cpp. "Syntax error" is here to catch this case.
3543 cat >conftest.$ac_ext <<_ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3550 # include <limits.h>
3552 # include <assert.h>
3556 if { (ac_try="$ac_cpp conftest.$ac_ext"
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3564 grep -v '^ *+' conftest.er1 >conftest.err
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } >/dev/null; then
3569 if test -s conftest.err; then
3570 ac_cpp_err=$ac_c_preproc_warn_flag
3571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3578 if test -z "$ac_cpp_err"; then
3581 echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3584 # Broken: fails on valid input.
3588 rm -f conftest.err conftest.$ac_ext
3590 # OK, works on sane cases. Now check whether nonexistent headers
3591 # can be detected and how.
3592 cat >conftest.$ac_ext <<_ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3598 #include <ac_nonexistent.h>
3600 if { (ac_try="$ac_cpp conftest.$ac_ext"
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3608 grep -v '^ *+' conftest.er1 >conftest.err
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } >/dev/null; then
3613 if test -s conftest.err; then
3614 ac_cpp_err=$ac_c_preproc_warn_flag
3615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3622 if test -z "$ac_cpp_err"; then
3623 # Broken: success on invalid input.
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3629 # Passes both tests.
3634 rm -f conftest.err conftest.$ac_ext
3637 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3638 rm -f conftest.err conftest.$ac_ext
3639 if $ac_preproc_ok; then
3642 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3643 See \`config.log' for more details." >&5
3644 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3645 See \`config.log' for more details." >&2;}
3646 { (exit 1); exit 1; }; }
3650 ac_cpp='$CPP $CPPFLAGS'
3651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3656 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3657 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3658 if test "${ac_cv_path_GREP+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 # Extract the first word of "grep ggrep" to use in msg output
3662 if test -z "$GREP"; then
3663 set dummy grep ggrep; ac_prog_name=$2
3664 if test "${ac_cv_path_GREP+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 ac_path_GREP_found=false
3668 # Loop through the user's path and test for each of PROGNAME-LIST
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3673 test -z "$as_dir" && as_dir=.
3674 for ac_prog in grep ggrep; do
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3677 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3678 # Check for GNU ac_path_GREP and select it if it is found.
3679 # Check for GNU $ac_path_GREP
3680 case `"$ac_path_GREP" --version 2>&1` in
3682 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3685 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3688 cat "conftest.in" "conftest.in" >"conftest.tmp"
3689 mv "conftest.tmp" "conftest.in"
3690 cp "conftest.in" "conftest.nl"
3691 echo 'GREP' >> "conftest.nl"
3692 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3693 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3694 ac_count=`expr $ac_count + 1`
3695 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3696 # Best one so far, save it but keep looking for a better one
3697 ac_cv_path_GREP="$ac_path_GREP"
3698 ac_path_GREP_max=$ac_count
3700 # 10*(2^10) chars as input seems more than enough
3701 test $ac_count -gt 10 && break
3703 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3707 $ac_path_GREP_found && break 3
3717 GREP="$ac_cv_path_GREP"
3718 if test -z "$GREP"; then
3719 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3720 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3721 { (exit 1); exit 1; }; }
3725 ac_cv_path_GREP=$GREP
3730 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3731 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3732 GREP="$ac_cv_path_GREP"
3735 { echo "$as_me:$LINENO: checking for egrep" >&5
3736 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3737 if test "${ac_cv_path_EGREP+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3741 then ac_cv_path_EGREP="$GREP -E"
3743 # Extract the first word of "egrep" to use in msg output
3744 if test -z "$EGREP"; then
3745 set dummy egrep; ac_prog_name=$2
3746 if test "${ac_cv_path_EGREP+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 ac_path_EGREP_found=false
3750 # Loop through the user's path and test for each of PROGNAME-LIST
3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3755 test -z "$as_dir" && as_dir=.
3756 for ac_prog in egrep; do
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3759 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3760 # Check for GNU ac_path_EGREP and select it if it is found.
3761 # Check for GNU $ac_path_EGREP
3762 case `"$ac_path_EGREP" --version 2>&1` in
3764 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3767 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3770 cat "conftest.in" "conftest.in" >"conftest.tmp"
3771 mv "conftest.tmp" "conftest.in"
3772 cp "conftest.in" "conftest.nl"
3773 echo 'EGREP' >> "conftest.nl"
3774 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3775 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3776 ac_count=`expr $ac_count + 1`
3777 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3778 # Best one so far, save it but keep looking for a better one
3779 ac_cv_path_EGREP="$ac_path_EGREP"
3780 ac_path_EGREP_max=$ac_count
3782 # 10*(2^10) chars as input seems more than enough
3783 test $ac_count -gt 10 && break
3785 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3789 $ac_path_EGREP_found && break 3
3799 EGREP="$ac_cv_path_EGREP"
3800 if test -z "$EGREP"; then
3801 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3802 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3803 { (exit 1); exit 1; }; }
3807 ac_cv_path_EGREP=$EGREP
3813 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3814 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3815 EGREP="$ac_cv_path_EGREP"
3818 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3819 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3820 if test "${ac_cv_header_stdc+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 cat >conftest.$ac_ext <<_ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h. */
3842 rm -f conftest.$ac_objext
3843 if { (ac_try="$ac_compile"
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3849 (eval "$ac_compile") 2>conftest.er1
3851 grep -v '^ *+' conftest.er1 >conftest.err
3853 cat conftest.err >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } &&
3856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3857 { (case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862 (eval "$ac_try") 2>&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; } &&
3866 { ac_try='test -s conftest.$ac_objext'
3867 { (case "(($ac_try" in
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872 (eval "$ac_try") 2>&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; }; then
3876 ac_cv_header_stdc=yes
3878 echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3881 ac_cv_header_stdc=no
3884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3886 if test $ac_cv_header_stdc = yes; then
3887 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3888 cat >conftest.$ac_ext <<_ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h. */
3897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3898 $EGREP "memchr" >/dev/null 2>&1; then
3901 ac_cv_header_stdc=no
3907 if test $ac_cv_header_stdc = yes; then
3908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3909 cat >conftest.$ac_ext <<_ACEOF
3912 cat confdefs.h >>conftest.$ac_ext
3913 cat >>conftest.$ac_ext <<_ACEOF
3914 /* end confdefs.h. */
3918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3919 $EGREP "free" >/dev/null 2>&1; then
3922 ac_cv_header_stdc=no
3928 if test $ac_cv_header_stdc = yes; then
3929 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3930 if test "$cross_compiling" = yes; then
3933 cat >conftest.$ac_ext <<_ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h. */
3941 #if ((' ' & 0x0FF) == 0x020)
3942 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3943 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3945 # define ISLOWER(c) \
3946 (('a' <= (c) && (c) <= 'i') \
3947 || ('j' <= (c) && (c) <= 'r') \
3948 || ('s' <= (c) && (c) <= 'z'))
3949 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3952 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3957 for (i = 0; i < 256; i++)
3958 if (XOR (islower (i), ISLOWER (i))
3959 || toupper (i) != TOUPPER (i))
3964 rm -f conftest$ac_exeext
3965 if { (ac_try="$ac_link"
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971 (eval "$ac_link") 2>&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3975 { (case "(($ac_try" in
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3980 (eval "$ac_try") 2>&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; }; then
3986 echo "$as_me: program exited with status $ac_status" >&5
3987 echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3991 ac_cv_header_stdc=no
3993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3999 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4000 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4001 if test $ac_cv_header_stdc = yes; then
4003 cat >>confdefs.h <<\_ACEOF
4004 #define STDC_HEADERS 1
4009 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4019 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4020 inttypes.h stdint.h unistd.h
4022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 cat >conftest.$ac_ext <<_ACEOF
4031 cat confdefs.h >>conftest.$ac_ext
4032 cat >>conftest.$ac_ext <<_ACEOF
4033 /* end confdefs.h. */
4034 $ac_includes_default
4036 #include <$ac_header>
4038 rm -f conftest.$ac_objext
4039 if { (ac_try="$ac_compile"
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4045 (eval "$ac_compile") 2>conftest.er1
4047 grep -v '^ *+' conftest.er1 >conftest.err
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } &&
4052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4053 { (case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058 (eval "$ac_try") 2>&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; } &&
4062 { ac_try='test -s conftest.$ac_objext'
4063 { (case "(($ac_try" in
4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4068 (eval "$ac_try") 2>&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; }; then
4072 eval "$as_ac_Header=yes"
4074 echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4077 eval "$as_ac_Header=no"
4080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082 ac_res=`eval echo '${'$as_ac_Header'}'`
4083 { echo "$as_me:$LINENO: result: $ac_res" >&5
4084 echo "${ECHO_T}$ac_res" >&6; }
4085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4086 cat >>confdefs.h <<_ACEOF
4087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4095 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4096 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4097 if test "${ac_cv_c_bigendian+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4100 # See if sys/param.h defines the BYTE_ORDER macro.
4101 cat >conftest.$ac_ext <<_ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h. */
4107 #include <sys/types.h>
4108 #include <sys/param.h>
4113 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4121 rm -f conftest.$ac_objext
4122 if { (ac_try="$ac_compile"
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128 (eval "$ac_compile") 2>conftest.er1
4130 grep -v '^ *+' conftest.er1 >conftest.err
4132 cat conftest.err >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } &&
4135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4136 { (case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_try") 2>&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; } &&
4145 { ac_try='test -s conftest.$ac_objext'
4146 { (case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_try") 2>&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4155 # It does; now see whether it defined to BIG_ENDIAN or not.
4156 cat >conftest.$ac_ext <<_ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4162 #include <sys/types.h>
4163 #include <sys/param.h>
4168 #if BYTE_ORDER != BIG_ENDIAN
4176 rm -f conftest.$ac_objext
4177 if { (ac_try="$ac_compile"
4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180 *) ac_try_echo=$ac_try;;
4182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4183 (eval "$ac_compile") 2>conftest.er1
4185 grep -v '^ *+' conftest.er1 >conftest.err
4187 cat conftest.err >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); } &&
4190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4191 { (case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_try") 2>&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; } &&
4200 { ac_try='test -s conftest.$ac_objext'
4201 { (case "(($ac_try" in
4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203 *) ac_try_echo=$ac_try;;
4205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4206 (eval "$ac_try") 2>&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 ac_cv_c_bigendian=yes
4212 echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4215 ac_cv_c_bigendian=no
4218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4220 echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4223 # It does not; compile a test program.
4224 if test "$cross_compiling" = yes; then
4225 # try to guess the endianness by grepping values into an object file
4226 ac_cv_c_bigendian=unknown
4227 cat >conftest.$ac_ext <<_ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h. */
4233 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4234 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4235 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4236 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4237 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4238 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4242 _ascii (); _ebcdic ();
4247 rm -f conftest.$ac_objext
4248 if { (ac_try="$ac_compile"
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4254 (eval "$ac_compile") 2>conftest.er1
4256 grep -v '^ *+' conftest.er1 >conftest.err
4258 cat conftest.err >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } &&
4261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4262 { (case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_try") 2>&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; } &&
4271 { ac_try='test -s conftest.$ac_objext'
4272 { (case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_try") 2>&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4281 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4282 ac_cv_c_bigendian=yes
4284 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4285 if test "$ac_cv_c_bigendian" = unknown; then
4286 ac_cv_c_bigendian=no
4288 # finding both strings is unlikely to happen, but who knows?
4289 ac_cv_c_bigendian=unknown
4293 echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301 cat >conftest.$ac_ext <<_ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h. */
4307 $ac_includes_default
4312 /* Are we little or big endian? From Harbison&Steele. */
4316 char c[sizeof (long int)];
4319 return u.c[sizeof (long int) - 1] == 1;
4325 rm -f conftest$ac_exeext
4326 if { (ac_try="$ac_link"
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_link") 2>&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4336 { (case "(($ac_try" in
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341 (eval "$ac_try") 2>&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; }; then
4345 ac_cv_c_bigendian=no
4347 echo "$as_me: program exited with status $ac_status" >&5
4348 echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.$ac_ext >&5
4352 ac_cv_c_bigendian=yes
4354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4362 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4363 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4364 case $ac_cv_c_bigendian in
4372 { { echo "$as_me:$LINENO: error: unknown endianness
4373 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4374 echo "$as_me: error: unknown endianness
4375 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4376 { (exit 1); exit 1; }; } ;;
4380 if test "$cross_compiling" = yes; then
4381 LLVM_CROSS_COMPILING=1
4384 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4385 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4386 if test "${ac_cv_build_exeext+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4390 ac_cv_build_exeext=.exe
4392 ac_build_prefix=${build_alias}-
4394 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4395 set dummy ${ac_build_prefix}gcc; ac_word=$2
4396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4398 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 if test -n "$BUILD_CC"; then
4402 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 BUILD_CC=$ac_cv_prog_BUILD_CC
4422 if test -n "$BUILD_CC"; then
4423 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4424 echo "${ECHO_T}$BUILD_CC" >&6; }
4426 { echo "$as_me:$LINENO: result: no" >&5
4427 echo "${ECHO_T}no" >&6; }
4431 if test -z "$BUILD_CC"; then
4432 # Extract the first word of "gcc", so it can be a program name with args.
4433 set dummy gcc; ac_word=$2
4434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4436 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 if test -n "$BUILD_CC"; then
4440 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4449 ac_cv_prog_BUILD_CC="gcc"
4450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 BUILD_CC=$ac_cv_prog_BUILD_CC
4460 if test -n "$BUILD_CC"; then
4461 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4462 echo "${ECHO_T}$BUILD_CC" >&6; }
4464 { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4469 if test -z "$BUILD_CC"; then
4470 # Extract the first word of "cc", so it can be a program name with args.
4471 set dummy cc; ac_word=$2
4472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4474 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 if test -n "$BUILD_CC"; then
4478 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4488 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4489 ac_prog_rejected=yes
4492 ac_cv_prog_BUILD_CC="cc"
4493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4500 if test $ac_prog_rejected = yes; then
4501 # We found a bogon in the path, so make sure we never use it.
4502 set dummy $ac_cv_prog_BUILD_CC
4504 if test $# != 0; then
4505 # We chose a different compiler from the bogus one.
4506 # However, it has the same basename, so the bogon will be chosen
4507 # first if we set BUILD_CC to just the basename; use the full file name.
4509 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4514 BUILD_CC=$ac_cv_prog_BUILD_CC
4515 if test -n "$BUILD_CC"; then
4516 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4517 echo "${ECHO_T}$BUILD_CC" >&6; }
4519 { echo "$as_me:$LINENO: result: no" >&5
4520 echo "${ECHO_T}no" >&6; }
4526 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4527 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4528 { (exit 1); exit 1; }; }
4529 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4531 echo 'int main () { return 0; }' > conftest.$ac_ext
4533 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4534 (eval $ac_build_link) 2>&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; then
4538 for file in conftest.*; do
4540 *.c | *.o | *.obj) ;;
4541 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4545 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4546 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4547 { (exit 1); exit 1; }; }
4550 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4555 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4556 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4557 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4558 ac_build_exeext=$BUILD_EXEEXT
4561 LLVM_CROSS_COMPILING=0
4565 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4576 # Check whether --enable-optimized was given.
4577 if test "${enable_optimized+set}" = set; then
4578 enableval=$enable_optimized;
4583 if test ${enableval} = "no" ; then
4587 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4591 # Check whether --enable-assertions was given.
4592 if test "${enable_assertions+set}" = set; then
4593 enableval=$enable_assertions;
4598 if test ${enableval} = "yes" ; then
4602 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4606 # Check whether --enable-expensive-checks was given.
4607 if test "${enable_expensive_checks+set}" = set; then
4608 enableval=$enable_expensive_checks;
4613 if test ${enableval} = "yes" ; then
4614 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4616 EXPENSIVE_CHECKS=yes
4619 ENABLE_EXPENSIVE_CHECKS=
4625 # Check whether --enable-debug-runtime was given.
4626 if test "${enable_debug_runtime+set}" = set; then
4627 enableval=$enable_debug_runtime;
4632 if test ${enableval} = "no" ; then
4636 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4640 # Check whether --enable-jit was given.
4641 if test "${enable_jit+set}" = set; then
4642 enableval=$enable_jit;
4647 if test ${enableval} = "no"
4652 case "$llvm_cv_target_arch" in
4653 x86) TARGET_HAS_JIT=1
4655 Sparc) TARGET_HAS_JIT=0
4657 PowerPC) TARGET_HAS_JIT=1
4659 x86_64) TARGET_HAS_JIT=1
4661 Alpha) TARGET_HAS_JIT=1
4663 IA64) TARGET_HAS_JIT=0
4665 ARM) TARGET_HAS_JIT=0
4667 Mips) TARGET_HAS_JIT=0
4669 PIC16) TARGET_HAS_JIT=0
4676 # Check whether --enable-doxygen was given.
4677 if test "${enable_doxygen+set}" = set; then
4678 enableval=$enable_doxygen;
4683 case "$enableval" in
4684 yes) ENABLE_DOXYGEN=1
4686 no) ENABLE_DOXYGEN=0
4688 default) ENABLE_DOXYGEN=0
4690 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4691 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4692 { (exit 1); exit 1; }; } ;;
4695 # Check whether --enable-threads was given.
4696 if test "${enable_threads+set}" = set; then
4697 enableval=$enable_threads;
4702 case "$enableval" in
4703 yes) ENABLE_THREADS=1
4705 no) ENABLE_THREADS=0
4707 default) ENABLE_THREADS=1
4709 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4710 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4711 { (exit 1); exit 1; }; } ;;
4714 cat >>confdefs.h <<_ACEOF
4715 #define ENABLE_THREADS $ENABLE_THREADS
4719 # Check whether --enable-pic was given.
4720 if test "${enable_pic+set}" = set; then
4721 enableval=$enable_pic;
4726 case "$enableval" in
4731 default) ENABLE_PIC=0
4733 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4734 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4735 { (exit 1); exit 1; }; } ;;
4738 cat >>confdefs.h <<_ACEOF
4739 #define ENABLE_PIC $ENABLE_PIC
4744 # Check whether --enable-targets was given.
4745 if test "${enable_targets+set}" = set; then
4746 enableval=$enable_targets;
4751 case "$enableval" in
4752 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;;
4754 case "$llvm_cv_target_arch" in
4755 x86) TARGETS_TO_BUILD="X86" ;;
4756 x86_64) TARGETS_TO_BUILD="X86" ;;
4757 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4758 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4759 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4760 IA64) TARGETS_TO_BUILD="IA64" ;;
4761 ARM) TARGETS_TO_BUILD="ARM" ;;
4762 Mips) TARGETS_TO_BUILD="Mips" ;;
4763 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4764 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4765 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4766 echo "$as_me: error: Can not set target to build" >&2;}
4767 { (exit 1); exit 1; }; } ;;
4770 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4772 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4773 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4774 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4775 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4776 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4777 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4778 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4779 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4780 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4781 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4782 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4783 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4784 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4785 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4786 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4787 { (exit 1); exit 1; }; } ;;
4792 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4795 # Check whether --enable-cbe-printf-a was given.
4796 if test "${enable_cbe_printf_a+set}" = set; then
4797 enableval=$enable_cbe_printf_a;
4802 case "$enableval" in
4803 yes) ENABLE_CBE_PRINTF_A=1
4805 no) ENABLE_CBE_PRINTF_A=0
4807 default) ENABLE_CBE_PRINTF_A=1
4809 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4810 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4811 { (exit 1); exit 1; }; } ;;
4814 cat >>confdefs.h <<_ACEOF
4815 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4820 # Check whether --with-llvmgccdir was given.
4821 if test "${with_llvmgccdir+set}" = set; then
4822 withval=$with_llvmgccdir;
4828 default) WITH_LLVMGCCDIR=default ;;
4829 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4830 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4831 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4832 { (exit 1); exit 1; }; } ;;
4836 # Check whether --with-llvmgcc was given.
4837 if test "${with_llvmgcc+set}" = set; then
4838 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4844 # Check whether --with-llvmgxx was given.
4845 if test "${with_llvmgxx+set}" = set; then
4846 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4851 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4852 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4853 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4854 { (exit 1); exit 1; }; };
4857 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4858 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4859 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4860 { (exit 1); exit 1; }; };
4864 # Check whether --with-extra-options was given.
4865 if test "${with_extra_options+set}" = set; then
4866 withval=$with_extra_options;
4872 default) EXTRA_OPTIONS= ;;
4873 *) EXTRA_OPTIONS=$withval ;;
4875 EXTRA_OPTIONS=$EXTRA_OPTIONS
4878 # Check whether --enable-bindings was given.
4879 if test "${enable_bindings+set}" = set; then
4880 enableval=$enable_bindings;
4885 BINDINGS_TO_BUILD=""
4886 case "$enableval" in
4887 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4888 all ) BINDINGS_TO_BUILD="ocaml" ;;
4889 none | no) BINDINGS_TO_BUILD="" ;;
4890 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4891 case "$a_binding" in
4892 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4893 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4894 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4895 { (exit 1); exit 1; }; } ;;
4902 # Check whether --with-ocaml-libdir was given.
4903 if test "${with_ocaml_libdir+set}" = set; then
4904 withval=$with_ocaml_libdir;
4910 auto) with_ocaml_libdir="$withval" ;;
4911 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4912 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4913 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4914 { (exit 1); exit 1; }; } ;;
4919 ac_cpp='$CPP $CPPFLAGS'
4920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4923 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4924 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4925 # On Suns, sometimes $CPP names a directory.
4926 if test -n "$CPP" && test -d "$CPP"; then
4929 if test -z "$CPP"; then
4930 if test "${ac_cv_prog_CPP+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 # Double quotes because CPP needs to be expanded
4934 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4937 for ac_c_preproc_warn_flag in '' yes
4939 # Use a header file that comes with gcc, so configuring glibc
4940 # with a fresh cross-compiler works.
4941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4942 # <limits.h> exists even on freestanding compilers.
4943 # On the NeXT, cc -E runs the code through the compiler's parser,
4944 # not just through cpp. "Syntax error" is here to catch this case.
4945 cat >conftest.$ac_ext <<_ACEOF
4948 cat confdefs.h >>conftest.$ac_ext
4949 cat >>conftest.$ac_ext <<_ACEOF
4950 /* end confdefs.h. */
4952 # include <limits.h>
4954 # include <assert.h>
4958 if { (ac_try="$ac_cpp conftest.$ac_ext"
4960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961 *) ac_try_echo=$ac_try;;
4963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4966 grep -v '^ *+' conftest.er1 >conftest.err
4968 cat conftest.err >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } >/dev/null; then
4971 if test -s conftest.err; then
4972 ac_cpp_err=$ac_c_preproc_warn_flag
4973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4980 if test -z "$ac_cpp_err"; then
4983 echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4986 # Broken: fails on valid input.
4990 rm -f conftest.err conftest.$ac_ext
4992 # OK, works on sane cases. Now check whether nonexistent headers
4993 # can be detected and how.
4994 cat >conftest.$ac_ext <<_ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h. */
5000 #include <ac_nonexistent.h>
5002 if { (ac_try="$ac_cpp conftest.$ac_ext"
5004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5005 *) ac_try_echo=$ac_try;;
5007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5010 grep -v '^ *+' conftest.er1 >conftest.err
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } >/dev/null; then
5015 if test -s conftest.err; then
5016 ac_cpp_err=$ac_c_preproc_warn_flag
5017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5024 if test -z "$ac_cpp_err"; then
5025 # Broken: success on invalid input.
5028 echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.$ac_ext >&5
5031 # Passes both tests.
5036 rm -f conftest.err conftest.$ac_ext
5039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5040 rm -f conftest.err conftest.$ac_ext
5041 if $ac_preproc_ok; then
5053 { echo "$as_me:$LINENO: result: $CPP" >&5
5054 echo "${ECHO_T}$CPP" >&6; }
5056 for ac_c_preproc_warn_flag in '' yes
5058 # Use a header file that comes with gcc, so configuring glibc
5059 # with a fresh cross-compiler works.
5060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5061 # <limits.h> exists even on freestanding compilers.
5062 # On the NeXT, cc -E runs the code through the compiler's parser,
5063 # not just through cpp. "Syntax error" is here to catch this case.
5064 cat >conftest.$ac_ext <<_ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5071 # include <limits.h>
5073 # include <assert.h>
5077 if { (ac_try="$ac_cpp conftest.$ac_ext"
5079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5080 *) ac_try_echo=$ac_try;;
5082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5085 grep -v '^ *+' conftest.er1 >conftest.err
5087 cat conftest.err >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } >/dev/null; then
5090 if test -s conftest.err; then
5091 ac_cpp_err=$ac_c_preproc_warn_flag
5092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5099 if test -z "$ac_cpp_err"; then
5102 echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5105 # Broken: fails on valid input.
5109 rm -f conftest.err conftest.$ac_ext
5111 # OK, works on sane cases. Now check whether nonexistent headers
5112 # can be detected and how.
5113 cat >conftest.$ac_ext <<_ACEOF
5116 cat confdefs.h >>conftest.$ac_ext
5117 cat >>conftest.$ac_ext <<_ACEOF
5118 /* end confdefs.h. */
5119 #include <ac_nonexistent.h>
5121 if { (ac_try="$ac_cpp conftest.$ac_ext"
5123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5124 *) ac_try_echo=$ac_try;;
5126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5129 grep -v '^ *+' conftest.er1 >conftest.err
5131 cat conftest.err >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); } >/dev/null; then
5134 if test -s conftest.err; then
5135 ac_cpp_err=$ac_c_preproc_warn_flag
5136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5143 if test -z "$ac_cpp_err"; then
5144 # Broken: success on invalid input.
5147 echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5150 # Passes both tests.
5155 rm -f conftest.err conftest.$ac_ext
5158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5159 rm -f conftest.err conftest.$ac_ext
5160 if $ac_preproc_ok; then
5163 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5164 See \`config.log' for more details." >&5
5165 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5166 See \`config.log' for more details." >&2;}
5167 { (exit 1); exit 1; }; }
5171 ac_cpp='$CPP $CPPFLAGS'
5172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5177 ac_cpp='$CPP $CPPFLAGS'
5178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5181 if test -n "$ac_tool_prefix"; then
5184 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5185 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5188 if test "${ac_cv_prog_CC+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5191 if test -n "$CC"; then
5192 ac_cv_prog_CC="$CC" # Let the user override the test.
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5201 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 if test -n "$CC"; then
5213 { echo "$as_me:$LINENO: result: $CC" >&5
5214 echo "${ECHO_T}$CC" >&6; }
5216 { echo "$as_me:$LINENO: result: no" >&5
5217 echo "${ECHO_T}no" >&6; }
5221 test -n "$CC" && break
5224 if test -z "$CC"; then
5228 # Extract the first word of "$ac_prog", so it can be a program name with args.
5229 set dummy $ac_prog; ac_word=$2
5230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5232 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 if test -n "$ac_ct_CC"; then
5236 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5245 ac_cv_prog_ac_ct_CC="$ac_prog"
5246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5256 if test -n "$ac_ct_CC"; then
5257 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5258 echo "${ECHO_T}$ac_ct_CC" >&6; }
5260 { echo "$as_me:$LINENO: result: no" >&5
5261 echo "${ECHO_T}no" >&6; }
5265 test -n "$ac_ct_CC" && break
5268 if test "x$ac_ct_CC" = x; then
5271 case $cross_compiling:$ac_tool_warned in
5273 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5274 whose name does not start with the host triplet. If you think this
5275 configuration is useful to you, please write to autoconf@gnu.org." >&5
5276 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5277 whose name does not start with the host triplet. If you think this
5278 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5279 ac_tool_warned=yes ;;
5286 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5287 See \`config.log' for more details." >&5
5288 echo "$as_me: error: no acceptable C compiler found in \$PATH
5289 See \`config.log' for more details." >&2;}
5290 { (exit 1); exit 1; }; }
5292 # Provide some information about the compiler.
5293 echo "$as_me:$LINENO: checking for C compiler version" >&5
5294 ac_compiler=`set X $ac_compile; echo $2`
5295 { (ac_try="$ac_compiler --version >&5"
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301 (eval "$ac_compiler --version >&5") 2>&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }
5305 { (ac_try="$ac_compiler -v >&5"
5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311 (eval "$ac_compiler -v >&5") 2>&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }
5315 { (ac_try="$ac_compiler -V >&5"
5317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5318 *) ac_try_echo=$ac_try;;
5320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5321 (eval "$ac_compiler -V >&5") 2>&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); }
5326 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5327 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5328 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 cat >conftest.$ac_ext <<_ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5349 rm -f conftest.$ac_objext
5350 if { (ac_try="$ac_compile"
5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353 *) ac_try_echo=$ac_try;;
5355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356 (eval "$ac_compile") 2>conftest.er1
5358 grep -v '^ *+' conftest.er1 >conftest.err
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } &&
5363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5364 { (case "(($ac_try" in
5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366 *) ac_try_echo=$ac_try;;
5368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5369 (eval "$ac_try") 2>&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; } &&
5373 { ac_try='test -s conftest.$ac_objext'
5374 { (case "(($ac_try" in
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379 (eval "$ac_try") 2>&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); }; }; then
5385 echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5395 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5396 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5397 GCC=`test $ac_compiler_gnu = yes && echo yes`
5398 ac_test_CFLAGS=${CFLAGS+set}
5399 ac_save_CFLAGS=$CFLAGS
5400 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5401 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5402 if test "${ac_cv_prog_cc_g+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5405 ac_save_c_werror_flag=$ac_c_werror_flag
5406 ac_c_werror_flag=yes
5409 cat >conftest.$ac_ext <<_ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h. */
5424 rm -f conftest.$ac_objext
5425 if { (ac_try="$ac_compile"
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_compile") 2>conftest.er1
5433 grep -v '^ *+' conftest.er1 >conftest.err
5435 cat conftest.err >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } &&
5438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5439 { (case "(($ac_try" in
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_try") 2>&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; } &&
5448 { ac_try='test -s conftest.$ac_objext'
5449 { (case "(($ac_try" in
5450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451 *) ac_try_echo=$ac_try;;
5453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454 (eval "$ac_try") 2>&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }; }; then
5460 echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.$ac_ext >&5
5464 cat >conftest.$ac_ext <<_ACEOF
5467 cat confdefs.h >>conftest.$ac_ext
5468 cat >>conftest.$ac_ext <<_ACEOF
5469 /* end confdefs.h. */
5479 rm -f conftest.$ac_objext
5480 if { (ac_try="$ac_compile"
5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486 (eval "$ac_compile") 2>conftest.er1
5488 grep -v '^ *+' conftest.er1 >conftest.err
5490 cat conftest.err >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } &&
5493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5494 { (case "(($ac_try" in
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499 (eval "$ac_try") 2>&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; } &&
5503 { ac_try='test -s conftest.$ac_objext'
5504 { (case "(($ac_try" in
5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509 (eval "$ac_try") 2>&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); }; }; then
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5518 ac_c_werror_flag=$ac_save_c_werror_flag
5520 cat >conftest.$ac_ext <<_ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h. */
5535 rm -f conftest.$ac_objext
5536 if { (ac_try="$ac_compile"
5538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539 *) ac_try_echo=$ac_try;;
5541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542 (eval "$ac_compile") 2>conftest.er1
5544 grep -v '^ *+' conftest.er1 >conftest.err
5546 cat conftest.err >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } &&
5549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5550 { (case "(($ac_try" in
5551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5552 *) ac_try_echo=$ac_try;;
5554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5555 (eval "$ac_try") 2>&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; } &&
5559 { ac_try='test -s conftest.$ac_objext'
5560 { (case "(($ac_try" in
5561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5562 *) ac_try_echo=$ac_try;;
5564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5565 (eval "$ac_try") 2>&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); }; }; then
5571 echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584 ac_c_werror_flag=$ac_save_c_werror_flag
5586 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5587 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5588 if test "$ac_test_CFLAGS" = set; then
5589 CFLAGS=$ac_save_CFLAGS
5590 elif test $ac_cv_prog_cc_g = yes; then
5591 if test "$GCC" = yes; then
5597 if test "$GCC" = yes; then
5603 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5604 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5605 if test "${ac_cv_prog_cc_c89+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5608 ac_cv_prog_cc_c89=no
5610 cat >conftest.$ac_ext <<_ACEOF
5613 cat confdefs.h >>conftest.$ac_ext
5614 cat >>conftest.$ac_ext <<_ACEOF
5615 /* end confdefs.h. */
5618 #include <sys/types.h>
5619 #include <sys/stat.h>
5620 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5621 struct buf { int x; };
5622 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5623 static char *e (p, i)
5629 static char *f (char * (*g) (char **, int), char **p, ...)
5634 s = g (p, va_arg (v,int));
5639 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5640 function prototypes and stuff, but not '\xHH' hex character constants.
5641 These don't provoke an error unfortunately, instead are silently treated
5642 as 'x'. The following induces an error, until -std is added to get
5643 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5644 array size at least. It's necessary to write '\x00'==0 to get something
5645 that's true only with -std. */
5646 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5648 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5649 inside strings and character constants. */
5651 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5653 int test (int i, double x);
5654 struct s1 {int (*f) (int a);};
5655 struct s2 {int (*f) (double a);};
5656 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5662 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5667 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5668 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5670 CC="$ac_save_CC $ac_arg"
5671 rm -f conftest.$ac_objext
5672 if { (ac_try="$ac_compile"
5674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675 *) ac_try_echo=$ac_try;;
5677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5678 (eval "$ac_compile") 2>conftest.er1
5680 grep -v '^ *+' conftest.er1 >conftest.err
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5686 { (case "(($ac_try" in
5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691 (eval "$ac_try") 2>&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; } &&
5695 { ac_try='test -s conftest.$ac_objext'
5696 { (case "(($ac_try" in
5697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698 *) ac_try_echo=$ac_try;;
5700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5701 (eval "$ac_try") 2>&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; }; then
5705 ac_cv_prog_cc_c89=$ac_arg
5707 echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5713 rm -f core conftest.err conftest.$ac_objext
5714 test "x$ac_cv_prog_cc_c89" != "xno" && break
5716 rm -f conftest.$ac_ext
5721 case "x$ac_cv_prog_cc_c89" in
5723 { echo "$as_me:$LINENO: result: none needed" >&5
5724 echo "${ECHO_T}none needed" >&6; } ;;
5726 { echo "$as_me:$LINENO: result: unsupported" >&5
5727 echo "${ECHO_T}unsupported" >&6; } ;;
5729 CC="$CC $ac_cv_prog_cc_c89"
5730 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5731 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5736 ac_cpp='$CPP $CPPFLAGS'
5737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5742 ac_cpp='$CXXCPP $CPPFLAGS'
5743 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5744 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5745 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5746 if test -z "$CXX"; then
5747 if test -n "$CCC"; then
5750 if test -n "$ac_tool_prefix"; then
5753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5754 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5757 if test "${ac_cv_prog_CXX+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 if test -n "$CXX"; then
5761 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5770 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 if test -n "$CXX"; then
5782 { echo "$as_me:$LINENO: result: $CXX" >&5
5783 echo "${ECHO_T}$CXX" >&6; }
5785 { echo "$as_me:$LINENO: result: no" >&5
5786 echo "${ECHO_T}no" >&6; }
5790 test -n "$CXX" && break
5793 if test -z "$CXX"; then
5797 # Extract the first word of "$ac_prog", so it can be a program name with args.
5798 set dummy $ac_prog; ac_word=$2
5799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5801 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 if test -n "$ac_ct_CXX"; then
5805 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5814 ac_cv_prog_ac_ct_CXX="$ac_prog"
5815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5824 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5825 if test -n "$ac_ct_CXX"; then
5826 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5827 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5829 { echo "$as_me:$LINENO: result: no" >&5
5830 echo "${ECHO_T}no" >&6; }
5834 test -n "$ac_ct_CXX" && break
5837 if test "x$ac_ct_CXX" = x; then
5840 case $cross_compiling:$ac_tool_warned in
5842 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5843 whose name does not start with the host triplet. If you think this
5844 configuration is useful to you, please write to autoconf@gnu.org." >&5
5845 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5846 whose name does not start with the host triplet. If you think this
5847 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5848 ac_tool_warned=yes ;;
5856 # Provide some information about the compiler.
5857 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5858 ac_compiler=`set X $ac_compile; echo $2`
5859 { (ac_try="$ac_compiler --version >&5"
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_compiler --version >&5") 2>&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }
5869 { (ac_try="$ac_compiler -v >&5"
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_compiler -v >&5") 2>&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }
5879 { (ac_try="$ac_compiler -V >&5"
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885 (eval "$ac_compiler -V >&5") 2>&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }
5890 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5891 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5892 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5895 cat >conftest.$ac_ext <<_ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5913 rm -f conftest.$ac_objext
5914 if { (ac_try="$ac_compile"
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_compile") 2>conftest.er1
5922 grep -v '^ *+' conftest.er1 >conftest.err
5924 cat conftest.err >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } &&
5927 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5928 { (case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_try") 2>&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; } &&
5937 { ac_try='test -s conftest.$ac_objext'
5938 { (case "(($ac_try" in
5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940 *) ac_try_echo=$ac_try;;
5942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943 (eval "$ac_try") 2>&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; }; then
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5956 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5959 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5960 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5961 GXX=`test $ac_compiler_gnu = yes && echo yes`
5962 ac_test_CXXFLAGS=${CXXFLAGS+set}
5963 ac_save_CXXFLAGS=$CXXFLAGS
5964 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5965 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5966 if test "${ac_cv_prog_cxx_g+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5970 ac_cxx_werror_flag=yes
5973 cat >conftest.$ac_ext <<_ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5988 rm -f conftest.$ac_objext
5989 if { (ac_try="$ac_compile"
5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995 (eval "$ac_compile") 2>conftest.er1
5997 grep -v '^ *+' conftest.er1 >conftest.err
5999 cat conftest.err >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); } &&
6002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6003 { (case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_try") 2>&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; } &&
6012 { ac_try='test -s conftest.$ac_objext'
6013 { (case "(($ac_try" in
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_try") 2>&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 ac_cv_prog_cxx_g=yes
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6028 cat >conftest.$ac_ext <<_ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6043 rm -f conftest.$ac_objext
6044 if { (ac_try="$ac_compile"
6046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047 *) ac_try_echo=$ac_try;;
6049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050 (eval "$ac_compile") 2>conftest.er1
6052 grep -v '^ *+' conftest.er1 >conftest.err
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
6057 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6058 { (case "(($ac_try" in
6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060 *) ac_try_echo=$ac_try;;
6062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063 (eval "$ac_try") 2>&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; } &&
6067 { ac_try='test -s conftest.$ac_objext'
6068 { (case "(($ac_try" in
6069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070 *) ac_try_echo=$ac_try;;
6072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073 (eval "$ac_try") 2>&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; }; then
6079 echo "$as_me: failed program was:" >&5
6080 sed 's/^/| /' conftest.$ac_ext >&5
6082 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6084 cat >conftest.$ac_ext <<_ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6099 rm -f conftest.$ac_objext
6100 if { (ac_try="$ac_compile"
6102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103 *) ac_try_echo=$ac_try;;
6105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106 (eval "$ac_compile") 2>conftest.er1
6108 grep -v '^ *+' conftest.er1 >conftest.err
6110 cat conftest.err >&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } &&
6113 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6114 { (case "(($ac_try" in
6115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116 *) ac_try_echo=$ac_try;;
6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119 (eval "$ac_try") 2>&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; } &&
6123 { ac_try='test -s conftest.$ac_objext'
6124 { (case "(($ac_try" in
6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129 (eval "$ac_try") 2>&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; }; then
6133 ac_cv_prog_cxx_g=yes
6135 echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6148 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6150 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6151 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6152 if test "$ac_test_CXXFLAGS" = set; then
6153 CXXFLAGS=$ac_save_CXXFLAGS
6154 elif test $ac_cv_prog_cxx_g = yes; then
6155 if test "$GXX" = yes; then
6161 if test "$GXX" = yes; then
6168 ac_cpp='$CPP $CPPFLAGS'
6169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6173 { echo "$as_me:$LINENO: checking " >&5
6174 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6175 if test "${ac_cv_has_flex+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6178 for ac_prog in flex lex
6180 # Extract the first word of "$ac_prog", so it can be a program name with args.
6181 set dummy $ac_prog; ac_word=$2
6182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6184 if test "${ac_cv_prog_LEX+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 if test -n "$LEX"; then
6188 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 test -z "$as_dir" && as_dir=.
6195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6197 ac_cv_prog_LEX="$ac_prog"
6198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6208 if test -n "$LEX"; then
6209 { echo "$as_me:$LINENO: result: $LEX" >&5
6210 echo "${ECHO_T}$LEX" >&6; }
6212 { echo "$as_me:$LINENO: result: no" >&5
6213 echo "${ECHO_T}no" >&6; }
6217 test -n "$LEX" && break
6219 test -n "$LEX" || LEX=":"
6221 if test -z "$LEXLIB"
6223 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6224 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6225 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 ac_check_lib_save_LIBS=$LIBS
6230 cat >conftest.$ac_ext <<_ACEOF
6233 cat confdefs.h >>conftest.$ac_ext
6234 cat >>conftest.$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6237 /* Override any GCC internal prototype to avoid an error.
6238 Use char because int might match the return type of a GCC
6239 builtin and then its argument prototype would still apply. */
6252 rm -f conftest.$ac_objext conftest$ac_exeext
6253 if { (ac_try="$ac_link"
6255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256 *) ac_try_echo=$ac_try;;
6258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259 (eval "$ac_link") 2>conftest.er1
6261 grep -v '^ *+' conftest.er1 >conftest.err
6263 cat conftest.err >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } &&
6266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6267 { (case "(($ac_try" in
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_try") 2>&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; } &&
6276 { ac_try='test -s conftest$ac_exeext'
6277 { (case "(($ac_try" in
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$ac_try") 2>&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; }; then
6286 ac_cv_lib_fl_yywrap=yes
6288 echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6291 ac_cv_lib_fl_yywrap=no
6294 rm -f core conftest.err conftest.$ac_objext \
6295 conftest$ac_exeext conftest.$ac_ext
6296 LIBS=$ac_check_lib_save_LIBS
6298 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6299 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6300 if test $ac_cv_lib_fl_yywrap = yes; then
6303 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6304 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6305 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6308 ac_check_lib_save_LIBS=$LIBS
6310 cat >conftest.$ac_ext <<_ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h. */
6317 /* Override any GCC internal prototype to avoid an error.
6318 Use char because int might match the return type of a GCC
6319 builtin and then its argument prototype would still apply. */
6332 rm -f conftest.$ac_objext conftest$ac_exeext
6333 if { (ac_try="$ac_link"
6335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336 *) ac_try_echo=$ac_try;;
6338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339 (eval "$ac_link") 2>conftest.er1
6341 grep -v '^ *+' conftest.er1 >conftest.err
6343 cat conftest.err >&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); } &&
6346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6347 { (case "(($ac_try" in
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352 (eval "$ac_try") 2>&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; } &&
6356 { ac_try='test -s conftest$ac_exeext'
6357 { (case "(($ac_try" in
6358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6359 *) ac_try_echo=$ac_try;;
6361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6362 (eval "$ac_try") 2>&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; }; then
6366 ac_cv_lib_l_yywrap=yes
6368 echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6371 ac_cv_lib_l_yywrap=no
6374 rm -f core conftest.err conftest.$ac_objext \
6375 conftest$ac_exeext conftest.$ac_ext
6376 LIBS=$ac_check_lib_save_LIBS
6378 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6379 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6380 if test $ac_cv_lib_l_yywrap = yes; then
6388 if test "x$LEX" != "x:"; then
6389 { echo "$as_me:$LINENO: checking lex output file root" >&5
6390 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6391 if test "${ac_cv_prog_lex_root+set}" = set; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 # The minimal lex program is just a single line: %%. But some broken lexes
6395 # (Solaris, I think it was) want two %% lines, so accommodate them.
6396 cat >conftest.l <<_ACEOF
6400 { (ac_try="$LEX conftest.l"
6402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403 *) ac_try_echo=$ac_try;;
6405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6406 (eval "$LEX conftest.l") 2>&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }
6410 if test -f lex.yy.c; then
6411 ac_cv_prog_lex_root=lex.yy
6412 elif test -f lexyy.c; then
6413 ac_cv_prog_lex_root=lexyy
6415 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6416 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6417 { (exit 1); exit 1; }; }
6420 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6421 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6423 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6425 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6426 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6427 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6428 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 # POSIX says lex can declare yytext either as a pointer or an array; the
6431 # default is implementation-dependent. Figure out which it is, since
6432 # not all implementations provide the %pointer and %array declarations.
6433 ac_cv_prog_lex_yytext_pointer=no
6434 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6436 LIBS="$LIBS $LEXLIB"
6437 cat >conftest.$ac_ext <<_ACEOF
6438 `cat $LEX_OUTPUT_ROOT.c`
6440 rm -f conftest.$ac_objext conftest$ac_exeext
6441 if { (ac_try="$ac_link"
6443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6444 *) ac_try_echo=$ac_try;;
6446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6447 (eval "$ac_link") 2>conftest.er1
6449 grep -v '^ *+' conftest.er1 >conftest.err
6451 cat conftest.err >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); } &&
6454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6455 { (case "(($ac_try" in
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_try") 2>&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; } &&
6464 { ac_try='test -s conftest$ac_exeext'
6465 { (case "(($ac_try" in
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470 (eval "$ac_try") 2>&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }; }; then
6474 ac_cv_prog_lex_yytext_pointer=yes
6476 echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6482 rm -f core conftest.err conftest.$ac_objext \
6483 conftest$ac_exeext conftest.$ac_ext
6485 rm -f "${LEX_OUTPUT_ROOT}.c"
6488 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6489 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6490 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6492 cat >>confdefs.h <<\_ACEOF
6493 #define YYTEXT_POINTER 1
6501 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6502 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6503 if test "$LEX" != "flex"; then
6504 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6505 echo "$as_me: error: flex not found but required" >&2;}
6506 { (exit 1); exit 1; }; }
6512 { echo "$as_me:$LINENO: checking " >&5
6513 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6514 if test "${llvm_cv_has_bison+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6517 for ac_prog in 'bison -y' byacc
6519 # Extract the first word of "$ac_prog", so it can be a program name with args.
6520 set dummy $ac_prog; ac_word=$2
6521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6523 if test "${ac_cv_prog_YACC+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 if test -n "$YACC"; then
6527 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6536 ac_cv_prog_YACC="$ac_prog"
6537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6546 YACC=$ac_cv_prog_YACC
6547 if test -n "$YACC"; then
6548 { echo "$as_me:$LINENO: result: $YACC" >&5
6549 echo "${ECHO_T}$YACC" >&6; }
6551 { echo "$as_me:$LINENO: result: no" >&5
6552 echo "${ECHO_T}no" >&6; }
6556 test -n "$YACC" && break
6558 test -n "$YACC" || YACC="yacc"
6561 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6562 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6563 if test "$YACC" != "bison -y"; then
6565 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6566 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6572 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6573 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6574 if test "${lt_cv_path_NM+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 if test -n "$NM"; then
6578 # Let the user override the test.
6581 lt_nm_to_check="${ac_tool_prefix}nm"
6582 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6583 lt_nm_to_check="$lt_nm_to_check nm"
6585 for lt_tmp_nm in $lt_nm_to_check; do
6586 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6587 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6589 test -z "$ac_dir" && ac_dir=.
6590 tmp_nm="$ac_dir/$lt_tmp_nm"
6591 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6592 # Check to see if the nm accepts a BSD-compat flag.
6593 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6594 # nm: unknown option "B" ignored
6595 # Tru64's nm complains that /dev/null is an invalid object file
6596 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6597 */dev/null* | *'Invalid file or object type'*)
6598 lt_cv_path_NM="$tmp_nm -B"
6602 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6604 lt_cv_path_NM="$tmp_nm -p"
6608 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6609 continue # so that we can try to find one that supports BSD flags
6618 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6621 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6622 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6627 { echo "$as_me:$LINENO: checking for GNU make" >&5
6628 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6629 if test "${llvm_cv_gnu_make_command+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 llvm_cv_gnu_make_command=''
6633 for a in "$MAKE" make gmake gnumake ; do
6634 if test -z "$a" ; then continue ; fi ;
6635 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6637 llvm_cv_gnu_make_command=$a ;
6642 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6643 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6644 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6648 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6649 echo "${ECHO_T}\"Not found\"" >&6; };
6653 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6654 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6656 if test "$LN_S" = "ln -s"; then
6657 { echo "$as_me:$LINENO: result: yes" >&5
6658 echo "${ECHO_T}yes" >&6; }
6660 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6661 echo "${ECHO_T}no, using $LN_S" >&6; }
6664 # Extract the first word of "cmp", so it can be a program name with args.
6665 set dummy cmp; ac_word=$2
6666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6668 if test "${ac_cv_path_CMP+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6696 if test -n "$CMP"; then
6697 { echo "$as_me:$LINENO: result: $CMP" >&5
6698 echo "${ECHO_T}$CMP" >&6; }
6700 { echo "$as_me:$LINENO: result: no" >&5
6701 echo "${ECHO_T}no" >&6; }
6705 # Extract the first word of "cp", so it can be a program name with args.
6706 set dummy cp; ac_word=$2
6707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6709 if test "${ac_cv_path_CP+set}" = set; then
6710 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6724 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6737 if test -n "$CP"; then
6738 { echo "$as_me:$LINENO: result: $CP" >&5
6739 echo "${ECHO_T}$CP" >&6; }
6741 { echo "$as_me:$LINENO: result: no" >&5
6742 echo "${ECHO_T}no" >&6; }
6746 # Extract the first word of "date", so it can be a program name with args.
6747 set dummy date; ac_word=$2
6748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750 if test "${ac_cv_path_DATE+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6765 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6777 DATE=$ac_cv_path_DATE
6778 if test -n "$DATE"; then
6779 { echo "$as_me:$LINENO: result: $DATE" >&5
6780 echo "${ECHO_T}$DATE" >&6; }
6782 { echo "$as_me:$LINENO: result: no" >&5
6783 echo "${ECHO_T}no" >&6; }
6787 # Extract the first word of "find", so it can be a program name with args.
6788 set dummy find; ac_word=$2
6789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6791 if test "${ac_cv_path_FIND+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 test -z "$as_dir" && as_dir=.
6804 for ac_exec_ext in '' $ac_executable_extensions; do
6805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6806 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6818 FIND=$ac_cv_path_FIND
6819 if test -n "$FIND"; then
6820 { echo "$as_me:$LINENO: result: $FIND" >&5
6821 echo "${ECHO_T}$FIND" >&6; }
6823 { echo "$as_me:$LINENO: result: no" >&5
6824 echo "${ECHO_T}no" >&6; }
6828 # Extract the first word of "grep", so it can be a program name with args.
6829 set dummy grep; ac_word=$2
6830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6832 if test "${ac_cv_path_GREP+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6847 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6859 GREP=$ac_cv_path_GREP
6860 if test -n "$GREP"; then
6861 { echo "$as_me:$LINENO: result: $GREP" >&5
6862 echo "${ECHO_T}$GREP" >&6; }
6864 { echo "$as_me:$LINENO: result: no" >&5
6865 echo "${ECHO_T}no" >&6; }
6869 # Extract the first word of "mkdir", so it can be a program name with args.
6870 set dummy mkdir; ac_word=$2
6871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6873 if test "${ac_cv_path_MKDIR+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 test -z "$as_dir" && as_dir=.
6886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6888 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6896 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6900 MKDIR=$ac_cv_path_MKDIR
6901 if test -n "$MKDIR"; then
6902 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6903 echo "${ECHO_T}$MKDIR" >&6; }
6905 { echo "$as_me:$LINENO: result: no" >&5
6906 echo "${ECHO_T}no" >&6; }
6910 # Extract the first word of "mv", so it can be a program name with args.
6911 set dummy mv; ac_word=$2
6912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6914 if test "${ac_cv_path_MV+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6929 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6937 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6942 if test -n "$MV"; then
6943 { echo "$as_me:$LINENO: result: $MV" >&5
6944 echo "${ECHO_T}$MV" >&6; }
6946 { echo "$as_me:$LINENO: result: no" >&5
6947 echo "${ECHO_T}no" >&6; }
6951 if test -n "$ac_tool_prefix"; then
6952 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6953 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6956 if test "${ac_cv_prog_RANLIB+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 if test -n "$RANLIB"; then
6960 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6969 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 RANLIB=$ac_cv_prog_RANLIB
6980 if test -n "$RANLIB"; then
6981 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6982 echo "${ECHO_T}$RANLIB" >&6; }
6984 { echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6; }
6990 if test -z "$ac_cv_prog_RANLIB"; then
6991 ac_ct_RANLIB=$RANLIB
6992 # Extract the first word of "ranlib", so it can be a program name with args.
6993 set dummy ranlib; ac_word=$2
6994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6996 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 if test -n "$ac_ct_RANLIB"; then
7000 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7009 ac_cv_prog_ac_ct_RANLIB="ranlib"
7010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7020 if test -n "$ac_ct_RANLIB"; then
7021 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7022 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7024 { echo "$as_me:$LINENO: result: no" >&5
7025 echo "${ECHO_T}no" >&6; }
7028 if test "x$ac_ct_RANLIB" = x; then
7031 case $cross_compiling:$ac_tool_warned in
7033 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7034 whose name does not start with the host triplet. If you think this
7035 configuration is useful to you, please write to autoconf@gnu.org." >&5
7036 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7037 whose name does not start with the host triplet. If you think this
7038 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7039 ac_tool_warned=yes ;;
7041 RANLIB=$ac_ct_RANLIB
7044 RANLIB="$ac_cv_prog_RANLIB"
7047 # Extract the first word of "rm", so it can be a program name with args.
7048 set dummy rm; ac_word=$2
7049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7051 if test "${ac_cv_path_RM+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 test -z "$as_dir" && as_dir=.
7064 for ac_exec_ext in '' $ac_executable_extensions; do
7065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7066 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7074 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7079 if test -n "$RM"; then
7080 { echo "$as_me:$LINENO: result: $RM" >&5
7081 echo "${ECHO_T}$RM" >&6; }
7083 { echo "$as_me:$LINENO: result: no" >&5
7084 echo "${ECHO_T}no" >&6; }
7088 # Extract the first word of "sed", so it can be a program name with args.
7089 set dummy sed; ac_word=$2
7090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7092 if test "${ac_cv_path_SED+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7097 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 test -z "$as_dir" && as_dir=.
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7107 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7120 if test -n "$SED"; then
7121 { echo "$as_me:$LINENO: result: $SED" >&5
7122 echo "${ECHO_T}$SED" >&6; }
7124 { echo "$as_me:$LINENO: result: no" >&5
7125 echo "${ECHO_T}no" >&6; }
7129 # Extract the first word of "tar", so it can be a program name with args.
7130 set dummy tar; ac_word=$2
7131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7133 if test "${ac_cv_path_TAR+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7148 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7161 if test -n "$TAR"; then
7162 { echo "$as_me:$LINENO: result: $TAR" >&5
7163 echo "${ECHO_T}$TAR" >&6; }
7165 { echo "$as_me:$LINENO: result: no" >&5
7166 echo "${ECHO_T}no" >&6; }
7170 # Extract the first word of "pwd", so it can be a program name with args.
7171 set dummy pwd; ac_word=$2
7172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7174 if test "${ac_cv_path_BINPWD+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7189 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7201 BINPWD=$ac_cv_path_BINPWD
7202 if test -n "$BINPWD"; then
7203 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7204 echo "${ECHO_T}$BINPWD" >&6; }
7206 { echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6; }
7212 # Extract the first word of "Graphviz", so it can be a program name with args.
7213 set dummy Graphviz; ac_word=$2
7214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7216 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 test -z "$as_dir" && as_dir=.
7229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7231 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7243 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7244 if test -n "$GRAPHVIZ"; then
7245 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7246 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7248 { echo "$as_me:$LINENO: result: no" >&5
7249 echo "${ECHO_T}no" >&6; }
7253 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7255 cat >>confdefs.h <<\_ACEOF
7256 #define HAVE_GRAPHVIZ 1
7259 if test "$llvm_cv_os_type" = "MingW" ; then
7260 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7263 cat >>confdefs.h <<_ACEOF
7264 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7268 # Extract the first word of "dot", so it can be a program name with args.
7269 set dummy dot; ac_word=$2
7270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7272 if test "${ac_cv_path_DOT+set}" = set; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7277 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 test -z "$as_dir" && as_dir=.
7285 for ac_exec_ext in '' $ac_executable_extensions; do
7286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7287 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7295 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7300 if test -n "$DOT"; then
7301 { echo "$as_me:$LINENO: result: $DOT" >&5
7302 echo "${ECHO_T}$DOT" >&6; }
7304 { echo "$as_me:$LINENO: result: no" >&5
7305 echo "${ECHO_T}no" >&6; }
7309 if test "$DOT" != "echo dot" ; then
7311 cat >>confdefs.h <<\_ACEOF
7315 if test "$llvm_cv_os_type" = "MingW" ; then
7316 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7319 cat >>confdefs.h <<_ACEOF
7320 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7324 for ac_prog in gv gsview32
7326 # Extract the first word of "$ac_prog", so it can be a program name with args.
7327 set dummy $ac_prog; ac_word=$2
7328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7330 if test "${ac_cv_path_GV+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7345 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7357 if test -n "$GV"; then
7358 { echo "$as_me:$LINENO: result: $GV" >&5
7359 echo "${ECHO_T}$GV" >&6; }
7361 { echo "$as_me:$LINENO: result: no" >&5
7362 echo "${ECHO_T}no" >&6; }
7366 test -n "$GV" && break
7368 test -n "$GV" || GV="echo gv"
7370 if test "$GV" != "echo gv" ; then
7372 cat >>confdefs.h <<\_ACEOF
7376 if test "$llvm_cv_os_type" = "MingW" ; then
7377 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7380 cat >>confdefs.h <<_ACEOF
7381 #define LLVM_PATH_GV "$GV${EXEEXT}"
7385 # Extract the first word of "dotty", so it can be a program name with args.
7386 set dummy dotty; ac_word=$2
7387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7389 if test "${ac_cv_path_DOTTY+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7404 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7412 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7416 DOTTY=$ac_cv_path_DOTTY
7417 if test -n "$DOTTY"; then
7418 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7419 echo "${ECHO_T}$DOTTY" >&6; }
7421 { echo "$as_me:$LINENO: result: no" >&5
7422 echo "${ECHO_T}no" >&6; }
7426 if test "$DOTTY" != "echo dotty" ; then
7428 cat >>confdefs.h <<\_ACEOF
7429 #define HAVE_DOTTY 1
7432 if test "$llvm_cv_os_type" = "MingW" ; then
7433 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7436 cat >>confdefs.h <<_ACEOF
7437 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7443 # Extract the first word of "perl", so it can be a program name with args.
7444 set dummy perl; ac_word=$2
7445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7447 if test "${ac_cv_path_PERL+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7452 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 test -z "$as_dir" && as_dir=.
7460 for ac_exec_ext in '' $ac_executable_extensions; do
7461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7462 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7470 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7474 PERL=$ac_cv_path_PERL
7475 if test -n "$PERL"; then
7476 { echo "$as_me:$LINENO: result: $PERL" >&5
7477 echo "${ECHO_T}$PERL" >&6; }
7479 { echo "$as_me:$LINENO: result: no" >&5
7480 echo "${ECHO_T}no" >&6; }
7484 if test "$PERL" != "none"; then
7485 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7486 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7487 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7488 { echo "$as_me:$LINENO: result: yes" >&5
7489 echo "${ECHO_T}yes" >&6; }
7492 { echo "$as_me:$LINENO: result: not found" >&5
7493 echo "${ECHO_T}not found" >&6; }
7498 if test x"$PERL" = xnone; then
7501 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7502 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7503 { (exit 1); exit 1; }; }
7509 # Find a good install program. We prefer a C program (faster),
7510 # so one script is as good as another. But avoid the broken or
7511 # incompatible versions:
7512 # SysV /etc/install, /usr/sbin/install
7513 # SunOS /usr/etc/install
7514 # IRIX /sbin/install
7516 # AmigaOS /C/install, which installs bootblocks on floppy discs
7517 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7518 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7519 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7520 # OS/2's system install, which has a completely different semantic
7521 # ./install, which can be erroneously created by make from ./install.sh.
7522 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7523 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7524 if test -z "$INSTALL"; then
7525 if test "${ac_cv_path_install+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 test -z "$as_dir" && as_dir=.
7533 # Account for people who put trailing slashes in PATH elements.
7535 ./ | .// | /cC/* | \
7536 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7537 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7540 # OSF1 and SCO ODT 3.0 have their own names for install.
7541 # Don't use installbsd from OSF since it installs stuff as root
7543 for ac_prog in ginstall scoinst install; do
7544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7546 if test $ac_prog = install &&
7547 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7548 # AIX install. It has an incompatible calling convention.
7550 elif test $ac_prog = install &&
7551 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7552 # program-specific install script used by HP pwplus--don't use.
7555 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7568 if test "${ac_cv_path_install+set}" = set; then
7569 INSTALL=$ac_cv_path_install
7571 # As a last resort, use the slow shell script. Don't cache a
7572 # value for INSTALL within a source directory, because that will
7573 # break other packages using the cache if that directory is
7574 # removed, or if the value is a relative name.
7575 INSTALL=$ac_install_sh
7578 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7579 echo "${ECHO_T}$INSTALL" >&6; }
7581 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7582 # It thinks the first close brace ends the variable substitution.
7583 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7585 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7587 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7590 # Extract the first word of "bzip2", so it can be a program name with args.
7591 set dummy bzip2; ac_word=$2
7592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7594 if test "${ac_cv_path_BZIP2+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 test -z "$as_dir" && as_dir=.
7607 for ac_exec_ext in '' $ac_executable_extensions; do
7608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7609 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 BZIP2=$ac_cv_path_BZIP2
7621 if test -n "$BZIP2"; then
7622 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7623 echo "${ECHO_T}$BZIP2" >&6; }
7625 { echo "$as_me:$LINENO: result: no" >&5
7626 echo "${ECHO_T}no" >&6; }
7630 # Extract the first word of "doxygen", so it can be a program name with args.
7631 set dummy doxygen; ac_word=$2
7632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7634 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 test -z "$as_dir" && as_dir=.
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7649 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 DOXYGEN=$ac_cv_path_DOXYGEN
7661 if test -n "$DOXYGEN"; then
7662 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7663 echo "${ECHO_T}$DOXYGEN" >&6; }
7665 { echo "$as_me:$LINENO: result: no" >&5
7666 echo "${ECHO_T}no" >&6; }
7670 # Extract the first word of "groff", so it can be a program name with args.
7671 set dummy groff; ac_word=$2
7672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7674 if test "${ac_cv_path_GROFF+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7679 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 test -z "$as_dir" && as_dir=.
7687 for ac_exec_ext in '' $ac_executable_extensions; do
7688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7689 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7700 GROFF=$ac_cv_path_GROFF
7701 if test -n "$GROFF"; then
7702 { echo "$as_me:$LINENO: result: $GROFF" >&5
7703 echo "${ECHO_T}$GROFF" >&6; }
7705 { echo "$as_me:$LINENO: result: no" >&5
7706 echo "${ECHO_T}no" >&6; }
7710 # Extract the first word of "gzip", so it can be a program name with args.
7711 set dummy gzip; ac_word=$2
7712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7714 if test "${ac_cv_path_GZIP+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7719 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 test -z "$as_dir" && as_dir=.
7727 for ac_exec_ext in '' $ac_executable_extensions; do
7728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7729 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7740 GZIP=$ac_cv_path_GZIP
7741 if test -n "$GZIP"; then
7742 { echo "$as_me:$LINENO: result: $GZIP" >&5
7743 echo "${ECHO_T}$GZIP" >&6; }
7745 { echo "$as_me:$LINENO: result: no" >&5
7746 echo "${ECHO_T}no" >&6; }
7750 # Extract the first word of "pod2html", so it can be a program name with args.
7751 set dummy pod2html; ac_word=$2
7752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7754 if test "${ac_cv_path_POD2HTML+set}" = set; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7759 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 POD2HTML=$ac_cv_path_POD2HTML
7781 if test -n "$POD2HTML"; then
7782 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7783 echo "${ECHO_T}$POD2HTML" >&6; }
7785 { echo "$as_me:$LINENO: result: no" >&5
7786 echo "${ECHO_T}no" >&6; }
7790 # Extract the first word of "pod2man", so it can be a program name with args.
7791 set dummy pod2man; ac_word=$2
7792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7794 if test "${ac_cv_path_POD2MAN+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7799 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7809 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 POD2MAN=$ac_cv_path_POD2MAN
7821 if test -n "$POD2MAN"; then
7822 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7823 echo "${ECHO_T}$POD2MAN" >&6; }
7825 { echo "$as_me:$LINENO: result: no" >&5
7826 echo "${ECHO_T}no" >&6; }
7830 # Extract the first word of "runtest", so it can be a program name with args.
7831 set dummy runtest; ac_word=$2
7832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7834 if test "${ac_cv_path_RUNTEST+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7839 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 test -z "$as_dir" && as_dir=.
7847 for ac_exec_ext in '' $ac_executable_extensions; do
7848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7849 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 RUNTEST=$ac_cv_path_RUNTEST
7861 if test -n "$RUNTEST"; then
7862 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7863 echo "${ECHO_T}$RUNTEST" >&6; }
7865 { echo "$as_me:$LINENO: result: no" >&5
7866 echo "${ECHO_T}no" >&6; }
7872 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7873 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7875 # Check whether --with-tclinclude was given.
7876 if test "${with_tclinclude+set}" = set; then
7877 withval=$with_tclinclude; with_tclinclude=${withval}
7882 if test "${ac_cv_path_tclsh+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7886 if test x"${with_tclinclude}" != x ; then
7887 if test -f ${with_tclinclude}/tclsh ; then
7888 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7889 elif test -f ${with_tclinclude}/src/tclsh ; then
7890 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7892 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7893 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7894 { (exit 1); exit 1; }; }
7898 if test x"${ac_cv_path_tclsh}" = x ; then
7899 { echo "$as_me:$LINENO: result: none" >&5
7900 echo "${ECHO_T}none" >&6; }
7901 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
7903 # Extract the first word of "$ac_prog", so it can be a program name with args.
7904 set dummy $ac_prog; ac_word=$2
7905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7907 if test "${ac_cv_path_TCLSH+set}" = set; then
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919 test -z "$as_dir" && as_dir=.
7920 for ac_exec_ext in '' $ac_executable_extensions; do
7921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7922 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 TCLSH=$ac_cv_path_TCLSH
7934 if test -n "$TCLSH"; then
7935 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7936 echo "${ECHO_T}$TCLSH" >&6; }
7938 { echo "$as_me:$LINENO: result: no" >&5
7939 echo "${ECHO_T}no" >&6; }
7943 test -n "$TCLSH" && break
7946 if test x"${TCLSH}" = x ; then
7947 ac_cv_path_tclsh='';
7949 ac_cv_path_tclsh="${TCLSH}";
7952 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7953 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7954 TCLSH="${ac_cv_path_tclsh}"
7960 # Extract the first word of "zip", so it can be a program name with args.
7961 set dummy zip; ac_word=$2
7962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7964 if test "${ac_cv_path_ZIP+set}" = set; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
7969 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7976 test -z "$as_dir" && as_dir=.
7977 for ac_exec_ext in '' $ac_executable_extensions; do
7978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7979 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 if test -n "$ZIP"; then
7992 { echo "$as_me:$LINENO: result: $ZIP" >&5
7993 echo "${ECHO_T}$ZIP" >&6; }
7995 { echo "$as_me:$LINENO: result: no" >&5
7996 echo "${ECHO_T}no" >&6; }
8000 for ac_prog in ocamlc.opt ocamlc
8002 # Extract the first word of "$ac_prog", so it can be a program name with args.
8003 set dummy $ac_prog; ac_word=$2
8004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8006 if test "${ac_cv_path_OCAMLC+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8011 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 test -z "$as_dir" && as_dir=.
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8021 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8032 OCAMLC=$ac_cv_path_OCAMLC
8033 if test -n "$OCAMLC"; then
8034 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8035 echo "${ECHO_T}$OCAMLC" >&6; }
8037 { echo "$as_me:$LINENO: result: no" >&5
8038 echo "${ECHO_T}no" >&6; }
8042 test -n "$OCAMLC" && break
8045 for ac_prog in ocamlopt.opt ocamlopt
8047 # Extract the first word of "$ac_prog", so it can be a program name with args.
8048 set dummy $ac_prog; ac_word=$2
8049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8051 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8056 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8066 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8077 OCAMLOPT=$ac_cv_path_OCAMLOPT
8078 if test -n "$OCAMLOPT"; then
8079 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8080 echo "${ECHO_T}$OCAMLOPT" >&6; }
8082 { echo "$as_me:$LINENO: result: no" >&5
8083 echo "${ECHO_T}no" >&6; }
8087 test -n "$OCAMLOPT" && break
8090 for ac_prog in ocamldep.opt ocamldep
8092 # Extract the first word of "$ac_prog", so it can be a program name with args.
8093 set dummy $ac_prog; ac_word=$2
8094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8096 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8101 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108 test -z "$as_dir" && as_dir=.
8109 for ac_exec_ext in '' $ac_executable_extensions; do
8110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8111 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8122 OCAMLDEP=$ac_cv_path_OCAMLDEP
8123 if test -n "$OCAMLDEP"; then
8124 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8125 echo "${ECHO_T}$OCAMLDEP" >&6; }
8127 { echo "$as_me:$LINENO: result: no" >&5
8128 echo "${ECHO_T}no" >&6; }
8132 test -n "$OCAMLDEP" && break
8135 for ac_prog in ocamldoc.opt ocamldoc
8137 # Extract the first word of "$ac_prog", so it can be a program name with args.
8138 set dummy $ac_prog; ac_word=$2
8139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8141 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153 test -z "$as_dir" && as_dir=.
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8156 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8167 OCAMLDOC=$ac_cv_path_OCAMLDOC
8168 if test -n "$OCAMLDOC"; then
8169 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8170 echo "${ECHO_T}$OCAMLDOC" >&6; }
8172 { echo "$as_me:$LINENO: result: no" >&5
8173 echo "${ECHO_T}no" >&6; }
8177 test -n "$OCAMLDOC" && break
8181 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8182 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8183 if test "${llvm_cv_link_use_r+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8187 ac_cpp='$CPP $CPPFLAGS'
8188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8193 CFLAGS="$CFLAGS -Wl,-R."
8194 cat >conftest.$ac_ext <<_ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h. */
8204 int main() { return 0; }
8209 rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (ac_try="$ac_link"
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216 (eval "$ac_link") 2>conftest.er1
8218 grep -v '^ *+' conftest.er1 >conftest.err
8220 cat conftest.err >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } &&
8223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8224 { (case "(($ac_try" in
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229 (eval "$ac_try") 2>&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; } &&
8233 { ac_try='test -s conftest$ac_exeext'
8234 { (case "(($ac_try" in
8235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236 *) ac_try_echo=$ac_try;;
8238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239 (eval "$ac_try") 2>&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; }; then
8243 llvm_cv_link_use_r=yes
8245 echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8248 llvm_cv_link_use_r=no
8251 rm -f core conftest.err conftest.$ac_objext \
8252 conftest$ac_exeext conftest.$ac_ext
8255 ac_cpp='$CPP $CPPFLAGS'
8256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8262 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8263 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8264 if test "$llvm_cv_link_use_r" = yes ; then
8266 cat >>confdefs.h <<\_ACEOF
8267 #define HAVE_LINK_R 1
8275 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8276 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8277 if test "${ac_cv_c_const+set}" = set; then
8278 echo $ECHO_N "(cached) $ECHO_C" >&6
8280 cat >conftest.$ac_ext <<_ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8290 /* FIXME: Include the comments suggested by Paul. */
8292 /* Ultrix mips cc rejects this. */
8293 typedef int charset[2];
8295 /* SunOS 4.1.1 cc rejects this. */
8296 char const *const *ccp;
8298 /* NEC SVR4.0.2 mips cc rejects this. */
8299 struct point {int x, y;};
8300 static struct point const zero = {0,0};
8301 /* AIX XL C 1.02.0.0 rejects this.
8302 It does not let you subtract one const X* pointer from another in
8303 an arm of an if-expression whose if-part is not a constant
8305 const char *g = "string";
8306 ccp = &g + (g ? g-g : 0);
8307 /* HPUX 7.0 cc rejects these. */
8310 ccp = (char const *const *) p;
8311 { /* SCO 3.2v4 cc rejects this. */
8313 char const *s = 0 ? (char *) 0 : (char const *) 0;
8318 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8320 const int *foo = &x[0];
8323 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8324 typedef const int *iptr;
8328 { /* AIX XL C 1.02.0.0 rejects this saying
8329 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8330 struct s { int j; const int *ap[3]; };
8331 struct s *b; b->j = 5;
8333 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8337 return !x[0] && !zero.x;
8344 rm -f conftest.$ac_objext
8345 if { (ac_try="$ac_compile"
8347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348 *) ac_try_echo=$ac_try;;
8350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351 (eval "$ac_compile") 2>conftest.er1
8353 grep -v '^ *+' conftest.er1 >conftest.err
8355 cat conftest.err >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } &&
8358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8359 { (case "(($ac_try" in
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_try") 2>&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; } &&
8368 { ac_try='test -s conftest.$ac_objext'
8369 { (case "(($ac_try" in
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374 (eval "$ac_try") 2>&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8388 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8389 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8390 if test $ac_cv_c_const = no; then
8392 cat >>confdefs.h <<\_ACEOF
8404 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8405 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8406 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8407 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8411 cat >conftest.$ac_ext <<_ACEOF
8414 cat confdefs.h >>conftest.$ac_ext
8415 cat >>conftest.$ac_ext <<_ACEOF
8416 /* end confdefs.h. */
8417 #include <sys/types.h>
8429 rm -f conftest.$ac_objext
8430 if { (ac_try="$ac_compile"
8432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8433 *) ac_try_echo=$ac_try;;
8435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8436 (eval "$ac_compile") 2>conftest.er1
8438 grep -v '^ *+' conftest.er1 >conftest.err
8440 cat conftest.err >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } &&
8443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8444 { (case "(($ac_try" in
8445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8446 *) ac_try_echo=$ac_try;;
8448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8449 (eval "$ac_try") 2>&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; } &&
8453 { ac_try='test -s conftest.$ac_objext'
8454 { (case "(($ac_try" in
8455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8456 *) ac_try_echo=$ac_try;;
8458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8459 (eval "$ac_try") 2>&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; }; then
8463 eval "$as_ac_Header=yes"
8465 echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8468 eval "$as_ac_Header=no"
8471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8473 ac_res=`eval echo '${'$as_ac_Header'}'`
8474 { echo "$as_me:$LINENO: result: $ac_res" >&5
8475 echo "${ECHO_T}$ac_res" >&6; }
8476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8477 cat >>confdefs.h <<_ACEOF
8478 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8481 ac_header_dirent=$ac_hdr; break
8485 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8486 if test $ac_header_dirent = dirent.h; then
8487 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8488 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8489 if test "${ac_cv_search_opendir+set}" = set; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8492 ac_func_search_save_LIBS=$LIBS
8493 cat >conftest.$ac_ext <<_ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8500 /* Override any GCC internal prototype to avoid an error.
8501 Use char because int might match the return type of a GCC
8502 builtin and then its argument prototype would still apply. */
8515 for ac_lib in '' dir; do
8516 if test -z "$ac_lib"; then
8517 ac_res="none required"
8520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8522 rm -f conftest.$ac_objext conftest$ac_exeext
8523 if { (ac_try="$ac_link"
8525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526 *) ac_try_echo=$ac_try;;
8528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529 (eval "$ac_link") 2>conftest.er1
8531 grep -v '^ *+' conftest.er1 >conftest.err
8533 cat conftest.err >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } &&
8536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8537 { (case "(($ac_try" in
8538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539 *) ac_try_echo=$ac_try;;
8541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542 (eval "$ac_try") 2>&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; } &&
8546 { ac_try='test -s conftest$ac_exeext'
8547 { (case "(($ac_try" in
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552 (eval "$ac_try") 2>&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; }; then
8556 ac_cv_search_opendir=$ac_res
8558 echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8564 rm -f core conftest.err conftest.$ac_objext \
8566 if test "${ac_cv_search_opendir+set}" = set; then
8570 if test "${ac_cv_search_opendir+set}" = set; then
8573 ac_cv_search_opendir=no
8576 LIBS=$ac_func_search_save_LIBS
8578 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8579 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8580 ac_res=$ac_cv_search_opendir
8581 if test "$ac_res" != no; then
8582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8587 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8588 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8589 if test "${ac_cv_search_opendir+set}" = set; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8592 ac_func_search_save_LIBS=$LIBS
8593 cat >conftest.$ac_ext <<_ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h. */
8600 /* Override any GCC internal prototype to avoid an error.
8601 Use char because int might match the return type of a GCC
8602 builtin and then its argument prototype would still apply. */
8615 for ac_lib in '' x; do
8616 if test -z "$ac_lib"; then
8617 ac_res="none required"
8620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8622 rm -f conftest.$ac_objext conftest$ac_exeext
8623 if { (ac_try="$ac_link"
8625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8626 *) ac_try_echo=$ac_try;;
8628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8629 (eval "$ac_link") 2>conftest.er1
8631 grep -v '^ *+' conftest.er1 >conftest.err
8633 cat conftest.err >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } &&
8636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8637 { (case "(($ac_try" in
8638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639 *) ac_try_echo=$ac_try;;
8641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642 (eval "$ac_try") 2>&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; } &&
8646 { ac_try='test -s conftest$ac_exeext'
8647 { (case "(($ac_try" in
8648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652 (eval "$ac_try") 2>&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; }; then
8656 ac_cv_search_opendir=$ac_res
8658 echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8664 rm -f core conftest.err conftest.$ac_objext \
8666 if test "${ac_cv_search_opendir+set}" = set; then
8670 if test "${ac_cv_search_opendir+set}" = set; then
8673 ac_cv_search_opendir=no
8676 LIBS=$ac_func_search_save_LIBS
8678 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8679 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8680 ac_res=$ac_cv_search_opendir
8681 if test "$ac_res" != no; then
8682 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8689 for ac_header in dlfcn.h
8691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8696 echo $ECHO_N "(cached) $ECHO_C" >&6
8698 ac_res=`eval echo '${'$as_ac_Header'}'`
8699 { echo "$as_me:$LINENO: result: $ac_res" >&5
8700 echo "${ECHO_T}$ac_res" >&6; }
8702 # Is the header compilable?
8703 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8705 cat >conftest.$ac_ext <<_ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h. */
8711 $ac_includes_default
8712 #include <$ac_header>
8714 rm -f conftest.$ac_objext
8715 if { (ac_try="$ac_compile"
8717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8718 *) ac_try_echo=$ac_try;;
8720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8721 (eval "$ac_compile") 2>conftest.er1
8723 grep -v '^ *+' conftest.er1 >conftest.err
8725 cat conftest.err >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } &&
8728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8729 { (case "(($ac_try" in
8730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8731 *) ac_try_echo=$ac_try;;
8733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8734 (eval "$ac_try") 2>&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); }; } &&
8738 { ac_try='test -s conftest.$ac_objext'
8739 { (case "(($ac_try" in
8740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8741 *) ac_try_echo=$ac_try;;
8743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8744 (eval "$ac_try") 2>&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); }; }; then
8748 ac_header_compiler=yes
8750 echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8753 ac_header_compiler=no
8756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8758 echo "${ECHO_T}$ac_header_compiler" >&6; }
8760 # Is the header present?
8761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8763 cat >conftest.$ac_ext <<_ACEOF
8766 cat confdefs.h >>conftest.$ac_ext
8767 cat >>conftest.$ac_ext <<_ACEOF
8768 /* end confdefs.h. */
8769 #include <$ac_header>
8771 if { (ac_try="$ac_cpp conftest.$ac_ext"
8773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8774 *) ac_try_echo=$ac_try;;
8776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8779 grep -v '^ *+' conftest.er1 >conftest.err
8781 cat conftest.err >&5
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); } >/dev/null; then
8784 if test -s conftest.err; then
8785 ac_cpp_err=$ac_c_preproc_warn_flag
8786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8793 if test -z "$ac_cpp_err"; then
8794 ac_header_preproc=yes
8796 echo "$as_me: failed program was:" >&5
8797 sed 's/^/| /' conftest.$ac_ext >&5
8799 ac_header_preproc=no
8802 rm -f conftest.err conftest.$ac_ext
8803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8804 echo "${ECHO_T}$ac_header_preproc" >&6; }
8806 # So? What about this header?
8807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8813 ac_header_preproc=yes
8816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8823 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8829 ## ----------------------------------- ##
8830 ## Report this to llvmbugs@cs.uiuc.edu ##
8831 ## ----------------------------------- ##
8833 ) | sed "s/^/$as_me: WARNING: /" >&2
8836 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8839 echo $ECHO_N "(cached) $ECHO_C" >&6
8841 eval "$as_ac_Header=\$ac_header_preproc"
8843 ac_res=`eval echo '${'$as_ac_Header'}'`
8844 { echo "$as_me:$LINENO: result: $ac_res" >&5
8845 echo "${ECHO_T}$ac_res" >&6; }
8848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8849 cat >>confdefs.h <<_ACEOF
8850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8857 # Check whether --enable-ltdl-install was given.
8858 if test "${enable_ltdl_install+set}" = set; then
8859 enableval=$enable_ltdl_install;
8865 if test x"${enable_ltdl_install-no}" != xno; then
8867 INSTALL_LTDL_FALSE='#'
8869 INSTALL_LTDL_TRUE='#'
8875 if test x"${enable_ltdl_convenience-no}" != xno; then
8876 CONVENIENCE_LTDL_TRUE=
8877 CONVENIENCE_LTDL_FALSE='#'
8879 CONVENIENCE_LTDL_TRUE='#'
8880 CONVENIENCE_LTDL_FALSE=
8884 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8885 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8887 libname_spec='lib$name'
8895 shlibpath_overrides_runpath=unknown
8897 dynamic_linker="$host_os ld.so"
8898 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8899 if test "$GCC" = yes; then
8900 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8901 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8902 # if the path contains ";" then we assume it to be the separator
8903 # otherwise default to the standard path separator (i.e. ":") - it is
8904 # assumed that no part of a normal pathname contains ";" but that should
8905 # okay in the real world where ";" in dirpaths is itself problematic.
8906 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8908 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8911 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8913 need_lib_prefix=unknown
8914 hardcode_into_libs=no
8916 # when you set need_version to no, make sure it does not cause -set_version
8917 # flags to be left without arguments
8918 need_version=unknown
8923 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8924 shlibpath_var=LIBPATH
8926 # AIX 3 has no versioning support, so we append a major version to the name.
8927 soname_spec='${libname}${release}${shared_ext}$major'
8934 hardcode_into_libs=yes
8935 if test "$host_cpu" = ia64; then
8936 # AIX 5 supports IA64
8937 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8938 shlibpath_var=LD_LIBRARY_PATH
8940 # With GCC up to 2.95.x, collect2 would create an import file
8941 # for dependence libraries. The import file would start with
8942 # the line `#! .'. This would cause the generated library to
8943 # depend on `.', always an invalid library. This was fixed in
8944 # development snapshots of GCC prior to 3.0.
8946 aix4 | aix4.[01] | aix4.[01].*)
8947 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8949 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8956 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8957 # soname into executable. Probably we can add versioning support to
8958 # collect2, so additional links can be useful in future.
8959 if test "$aix_use_runtimelinking" = yes; then
8960 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8961 # instead of lib<name>.a to let people know that these are not
8962 # typical AIX shared libraries.
8963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8965 # We preserve .a as extension for shared libraries through AIX4.2
8966 # and later when we are not doing run time linking.
8967 library_names_spec='${libname}${release}.a $libname.a'
8968 soname_spec='${libname}${release}${shared_ext}$major'
8970 shlibpath_var=LIBPATH
8975 library_names_spec='$libname.ixlibrary $libname.a'
8976 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8977 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'
8981 library_names_spec='${libname}${shared_ext}'
8982 dynamic_linker="$host_os ld.so"
8983 shlibpath_var=LIBRARY_PATH
8989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8990 soname_spec='${libname}${release}${shared_ext}$major'
8991 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8992 shlibpath_var=LD_LIBRARY_PATH
8993 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8994 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8995 # the default ld.so.conf also contains /usr/contrib/lib and
8996 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8997 # libtool to hard-code these into programs
9000 cygwin* | mingw* | pw32*)
9001 version_type=windows
9006 case $GCC,$host_os in
9007 yes,cygwin* | yes,mingw* | yes,pw32*)
9008 library_names_spec='$libname.dll.a'
9009 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9010 postinstall_cmds='base_file=`basename \${file}`~
9011 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9012 dldir=$destdir/`dirname \$dlpath`~
9013 test -d \$dldir || mkdir -p \$dldir~
9014 $install_prog $dir/$dlname \$dldir/$dlname~
9015 chmod a+x \$dldir/$dlname'
9016 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9017 dlpath=$dir/\$dldll~
9019 shlibpath_overrides_runpath=yes
9023 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9024 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9025 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9028 # MinGW DLLs use traditional 'lib' prefix
9029 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9030 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9031 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9032 # It is most probably a Windows format PATH printed by
9033 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9034 # path with ; separators, and with drive letters. We can handle the
9035 # drive letters (cygwin fileutils understands them), so leave them,
9036 # especially as we might pass files found there to a mingw objdump,
9037 # which wouldn't understand a cygwinified path. Ahh.
9038 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9044 # pw32 DLLs use 'pw' prefix rather than 'lib'
9045 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9051 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9054 dynamic_linker='Win32 ld.exe'
9055 # FIXME: first we should search . and the directory the executable is in
9059 darwin* | rhapsody*)
9060 dynamic_linker="$host_os dyld"
9064 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9065 soname_spec='${libname}${release}${major}$shared_ext'
9066 shlibpath_overrides_runpath=yes
9067 shlibpath_var=DYLD_LIBRARY_PATH
9068 shrext_cmds='.dylib'
9069 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9070 if test "$GCC" = yes; then
9071 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"`
9073 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9075 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 shlibpath_var=LD_LIBRARY_PATH
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9096 soname_spec='${libname}${release}${shared_ext}$major'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 shlibpath_overrides_runpath=no
9099 hardcode_into_libs=yes
9100 dynamic_linker='GNU ld.so'
9103 freebsd* | dragonfly*)
9104 # DragonFly does not have aout. When/if they implement a new
9105 # versioning mechanism, adjust this.
9106 if test -x /usr/bin/objformat; then
9107 objformat=`/usr/bin/objformat`
9110 freebsd[123]*) objformat=aout ;;
9114 version_type=freebsd-$objformat
9115 case $version_type in
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9126 shlibpath_var=LD_LIBRARY_PATH
9129 shlibpath_overrides_runpath=yes
9131 freebsd3.[01]* | freebsdelf3.[01]*)
9132 shlibpath_overrides_runpath=yes
9133 hardcode_into_libs=yes
9135 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9136 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9137 shlibpath_overrides_runpath=no
9138 hardcode_into_libs=yes
9140 freebsd*) # from 4.6 on
9141 shlibpath_overrides_runpath=yes
9142 hardcode_into_libs=yes
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9152 soname_spec='${libname}${release}${shared_ext}$major'
9153 shlibpath_var=LD_LIBRARY_PATH
9154 hardcode_into_libs=yes
9157 hpux9* | hpux10* | hpux11*)
9158 # Give a soname corresponding to the major version so that dld.sl refuses to
9159 # link against other versions.
9166 hardcode_into_libs=yes
9167 dynamic_linker="$host_os dld.so"
9168 shlibpath_var=LD_LIBRARY_PATH
9169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171 soname_spec='${libname}${release}${shared_ext}$major'
9172 if test "X$HPUX_IA64_MODE" = X32; then
9173 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9175 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9177 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9181 hardcode_into_libs=yes
9182 dynamic_linker="$host_os dld.sl"
9183 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9184 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9186 soname_spec='${libname}${release}${shared_ext}$major'
9187 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9188 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9192 dynamic_linker="$host_os dld.sl"
9193 shlibpath_var=SHLIB_PATH
9194 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9196 soname_spec='${libname}${release}${shared_ext}$major'
9199 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9200 postinstall_cmds='chmod 555 $lib'
9207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9208 soname_spec='${libname}${release}${shared_ext}$major'
9209 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9210 shlibpath_var=LD_LIBRARY_PATH
9211 shlibpath_overrides_runpath=no
9212 hardcode_into_libs=yes
9215 irix5* | irix6* | nonstopux*)
9217 nonstopux*) version_type=nonstopux ;;
9219 if test "$lt_cv_prog_gnu_ld" = yes; then
9227 soname_spec='${libname}${release}${shared_ext}$major'
9228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9230 irix5* | nonstopux*)
9234 case $LD in # libtool.m4 will add one of these switches to LD
9235 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9236 libsuff= shlibsuff= libmagic=32-bit;;
9237 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9238 libsuff=32 shlibsuff=N32 libmagic=N32;;
9239 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9240 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9241 *) libsuff= shlibsuff= libmagic=never-match;;
9245 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9246 shlibpath_overrides_runpath=no
9247 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9248 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9249 hardcode_into_libs=yes
9252 # No shared lib support for Linux oldld, aout, or coff.
9253 linux*oldld* | linux*aout* | linux*coff*)
9257 # This must be Linux ELF.
9262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9263 soname_spec='${libname}${release}${shared_ext}$major'
9264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9265 shlibpath_var=LD_LIBRARY_PATH
9266 shlibpath_overrides_runpath=no
9267 # This implies no fast_install, which is unacceptable.
9268 # Some rework will be needed to allow for fast_install
9269 # before this can be enabled.
9270 hardcode_into_libs=yes
9272 # Append ld.so.conf contents to the search path
9273 if test -f /etc/ld.so.conf; then
9274 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' ' '`
9275 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9278 # We used to test for /lib/ld.so.1 and disable shared libraries on
9279 # powerpc, because MkLinux only supported shared libraries with the
9280 # GNU dynamic linker. Since this was broken with cross compilers,
9281 # most powerpc-linux boxes support dynamic linking these days and
9282 # people can always --disable-shared, the test was removed, and we
9283 # assume the GNU/Linux dynamic linker is in use.
9284 dynamic_linker='GNU/Linux ld.so'
9291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9292 soname_spec='${libname}${release}${shared_ext}$major'
9293 shlibpath_var=LD_LIBRARY_PATH
9294 shlibpath_overrides_runpath=no
9295 hardcode_into_libs=yes
9296 dynamic_linker='GNU ld.so'
9303 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9306 dynamic_linker='NetBSD (a.out) ld.so'
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9309 soname_spec='${libname}${release}${shared_ext}$major'
9310 dynamic_linker='NetBSD ld.elf_so'
9312 shlibpath_var=LD_LIBRARY_PATH
9313 shlibpath_overrides_runpath=yes
9314 hardcode_into_libs=yes
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320 shlibpath_var=LD_LIBRARY_PATH
9321 shlibpath_overrides_runpath=yes
9328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9329 soname_spec='${libname}${release}${shared_ext}$major'
9330 shlibpath_var=LD_LIBRARY_PATH
9331 shlibpath_overrides_runpath=yes
9336 sys_lib_dlsearch_path_spec="/usr/lib"
9338 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9340 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9341 *) need_version=no ;;
9343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9345 shlibpath_var=LD_LIBRARY_PATH
9346 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9348 openbsd2.[89] | openbsd2.[89].*)
9349 shlibpath_overrides_runpath=no
9352 shlibpath_overrides_runpath=yes
9356 shlibpath_overrides_runpath=yes
9361 libname_spec='$name'
9364 library_names_spec='$libname${shared_ext} $libname.a'
9365 dynamic_linker='OS/2 ld.exe'
9366 shlibpath_var=LIBPATH
9369 osf3* | osf4* | osf5*)
9373 soname_spec='${libname}${release}${shared_ext}$major'
9374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9375 shlibpath_var=LD_LIBRARY_PATH
9376 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9377 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9385 soname_spec='${libname}${release}${shared_ext}$major'
9386 shlibpath_var=LD_LIBRARY_PATH
9387 shlibpath_overrides_runpath=yes
9388 hardcode_into_libs=yes
9389 # ldd complains unless libraries are executable
9390 postinstall_cmds='chmod +x $lib'
9395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9396 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9397 shlibpath_var=LD_LIBRARY_PATH
9398 shlibpath_overrides_runpath=yes
9399 if test "$with_gnu_ld" = yes; then
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408 soname_spec='${libname}${release}${shared_ext}$major'
9409 shlibpath_var=LD_LIBRARY_PATH
9410 case $host_vendor in
9412 shlibpath_overrides_runpath=no
9414 export_dynamic_flag_spec='${wl}-Blargedynsym'
9415 runpath_var=LD_RUN_PATH
9423 shlibpath_overrides_runpath=no
9424 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9430 if test -d /usr/nec ;then
9432 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9433 soname_spec='$libname${shared_ext}.$major'
9434 shlibpath_var=LD_LIBRARY_PATH
9438 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9439 version_type=freebsd-elf
9442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9443 soname_spec='${libname}${release}${shared_ext}$major'
9444 shlibpath_var=LD_LIBRARY_PATH
9445 hardcode_into_libs=yes
9446 if test "$with_gnu_ld" = yes; then
9447 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9448 shlibpath_overrides_runpath=no
9450 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9451 shlibpath_overrides_runpath=yes
9454 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9458 sys_lib_dlsearch_path_spec='/usr/lib'
9463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464 soname_spec='${libname}${release}${shared_ext}$major'
9465 shlibpath_var=LD_LIBRARY_PATH
9472 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9473 echo "${ECHO_T}$dynamic_linker" >&6; }
9474 test "$dynamic_linker" = no && can_build_shared=no
9476 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9477 if test "$GCC" = yes; then
9478 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9482 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9483 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9484 if test "${libltdl_cv_shlibext+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9489 eval libltdl_cv_shlibext=$shrext_cmds
9492 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9493 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9494 if test -n "$libltdl_cv_shlibext"; then
9496 cat >>confdefs.h <<_ACEOF
9497 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9503 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9504 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9505 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 libltdl_cv_shlibpath_var="$shlibpath_var"
9510 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9511 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9512 if test -n "$libltdl_cv_shlibpath_var"; then
9514 cat >>confdefs.h <<_ACEOF
9515 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9521 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9522 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9523 if test "${libltdl_cv_sys_search_path+set}" = set; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9526 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9528 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9529 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9530 if test -n "$libltdl_cv_sys_search_path"; then
9532 for dir in $libltdl_cv_sys_search_path; do
9533 if test -z "$sys_search_path"; then
9534 sys_search_path="$dir"
9536 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9540 cat >>confdefs.h <<_ACEOF
9541 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9546 { echo "$as_me:$LINENO: checking for objdir" >&5
9547 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9548 if test "${libltdl_cv_objdir+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9551 libltdl_cv_objdir="$objdir"
9552 if test -n "$objdir"; then
9555 rm -f .libs 2>/dev/null
9556 mkdir .libs 2>/dev/null
9557 if test -d .libs; then
9558 libltdl_cv_objdir=.libs
9560 # MS-DOS does not allow filenames that begin with a dot.
9561 libltdl_cv_objdir=_libs
9563 rmdir .libs 2>/dev/null
9567 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9568 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9570 cat >>confdefs.h <<_ACEOF
9571 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9579 # Check for command to grab the raw symbol name followed by C symbol from nm.
9580 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9581 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9582 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9586 # These are sane defaults that work on at least a few old systems.
9587 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9589 # Character class describing NM global symbol codes.
9590 symcode='[BCDEGRST]'
9592 # Regexp to match symbols that can be accessed directly from C.
9593 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9595 # Transform an extracted symbol line into a proper C declaration
9596 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9598 # Transform an extracted symbol line into symbol name and symbol address
9599 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'"
9601 # Define system-specific variables.
9606 cygwin* | mingw* | pw32*)
9607 symcode='[ABCDGISTW]'
9609 hpux*) # Its linker distinguishes data from code symbols
9610 if test "$host_cpu" = ia64; then
9611 symcode='[ABCDEGRST]'
9613 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9614 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'"
9617 if test "$host_cpu" = ia64; then
9618 symcode='[ABCDGIRSTW]'
9619 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9620 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 symcode='[BCDEGRST]'
9627 symcode='[BCDEGQRST]'
9638 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9646 # Handle CRLF in mingw tool chain
9650 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9654 # If we're using GNU nm, then use its standard symbol codes.
9655 case `$NM -V 2>&1` in
9656 *GNU* | *'with BFD'*)
9657 symcode='[ABCDGIRSTW]' ;;
9660 # Try without a prefix undercore, then with it.
9661 for ac_symprfx in "" "_"; do
9663 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9664 symxfrm="\\1 $ac_symprfx\\2 \\2"
9666 # Write the raw and C identifiers.
9667 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9669 # Check to see that the pipe works correctly.
9673 cat > conftest.$ac_ext <<EOF
9678 void nm_test_func(){}
9682 int main(){nm_test_var='a';nm_test_func();return(0);}
9685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9686 (eval $ac_compile) 2>&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; then
9690 # Now try to grab the symbols.
9692 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9693 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } && test -s "$nlist"; then
9697 # Try sorting and uniquifying the output.
9698 if sort "$nlist" | uniq > "$nlist"T; then
9699 mv -f "$nlist"T "$nlist"
9704 # Make sure that we snagged all the symbols we need.
9705 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9706 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9707 cat <<EOF > conftest.$ac_ext
9713 # Now generate the symbol file.
9714 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9716 cat <<EOF >> conftest.$ac_ext
9717 #if defined (__STDC__) && __STDC__
9718 # define lt_ptr_t void *
9720 # define lt_ptr_t char *
9724 /* The mapping between symbol names and symbols. */
9729 lt_preloaded_symbols[] =
9732 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9733 cat <<\EOF >> conftest.$ac_ext
9741 # Now try linking the two files.
9742 mv conftest.$ac_objext conftstm.$ac_objext
9743 lt_save_LIBS="$LIBS"
9744 lt_save_CFLAGS="$CFLAGS"
9745 LIBS="conftstm.$ac_objext"
9746 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9748 (eval $ac_link) 2>&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9754 LIBS="$lt_save_LIBS"
9755 CFLAGS="$lt_save_CFLAGS"
9757 echo "cannot find nm_test_func in $nlist" >&5
9760 echo "cannot find nm_test_var in $nlist" >&5
9763 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9766 echo "$progname: failed program was:" >&5
9767 cat conftest.$ac_ext >&5
9769 rm -f conftest* conftst*
9771 # Do not use the global_symbol_pipe unless it works.
9772 if test "$pipe_works" = yes; then
9775 lt_cv_sys_global_symbol_pipe=
9781 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9782 lt_cv_sys_global_symbol_to_cdecl=
9784 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9785 { echo "$as_me:$LINENO: result: failed" >&5
9786 echo "${ECHO_T}failed" >&6; }
9788 { echo "$as_me:$LINENO: result: ok" >&5
9789 echo "${ECHO_T}ok" >&6; }
9793 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9794 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9795 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9799 libltdl_cv_preloaded_symbols=yes
9801 libltdl_cv_preloaded_symbols=no
9805 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9806 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9807 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9809 cat >>confdefs.h <<\_ACEOF
9810 #define HAVE_PRELOADED_SYMBOLS 1
9818 ac_cpp='$CPP $CPPFLAGS'
9819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9824 { echo "$as_me:$LINENO: checking for shl_load" >&5
9825 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9826 if test "${ac_cv_func_shl_load+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 cat >conftest.$ac_ext <<_ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9835 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9837 #define shl_load innocuous_shl_load
9839 /* System header to define __stub macros and hopefully few prototypes,
9840 which can conflict with char shl_load (); below.
9841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9842 <limits.h> exists even on freestanding compilers. */
9845 # include <limits.h>
9847 # include <assert.h>
9852 /* Override any GCC internal prototype to avoid an error.
9853 Use char because int might match the return type of a GCC
9854 builtin and then its argument prototype would still apply. */
9859 /* The GNU C library defines this for functions which it implements
9860 to always fail with ENOSYS. Some functions are actually named
9861 something starting with __ and the normal name is an alias. */
9862 #if defined __stub_shl_load || defined __stub___shl_load
9874 rm -f conftest.$ac_objext conftest$ac_exeext
9875 if { (ac_try="$ac_link"
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_link") 2>conftest.er1
9883 grep -v '^ *+' conftest.er1 >conftest.err
9885 cat conftest.err >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } &&
9888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9889 { (case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_try") 2>&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; } &&
9898 { ac_try='test -s conftest$ac_exeext'
9899 { (case "(($ac_try" in
9900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9901 *) ac_try_echo=$ac_try;;
9903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904 (eval "$ac_try") 2>&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); }; }; then
9908 ac_cv_func_shl_load=yes
9910 echo "$as_me: failed program was:" >&5
9911 sed 's/^/| /' conftest.$ac_ext >&5
9913 ac_cv_func_shl_load=no
9916 rm -f core conftest.err conftest.$ac_objext \
9917 conftest$ac_exeext conftest.$ac_ext
9919 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9920 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9921 if test $ac_cv_func_shl_load = yes; then
9923 cat >>confdefs.h <<\_ACEOF
9924 #define HAVE_SHL_LOAD 1
9928 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9929 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9930 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9933 ac_check_lib_save_LIBS=$LIBS
9935 cat >conftest.$ac_ext <<_ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h. */
9942 /* Override any GCC internal prototype to avoid an error.
9943 Use char because int might match the return type of a GCC
9944 builtin and then its argument prototype would still apply. */
9957 rm -f conftest.$ac_objext conftest$ac_exeext
9958 if { (ac_try="$ac_link"
9960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961 *) ac_try_echo=$ac_try;;
9963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964 (eval "$ac_link") 2>conftest.er1
9966 grep -v '^ *+' conftest.er1 >conftest.err
9968 cat conftest.err >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } &&
9971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9972 { (case "(($ac_try" in
9973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974 *) ac_try_echo=$ac_try;;
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977 (eval "$ac_try") 2>&5
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; } &&
9981 { ac_try='test -s conftest$ac_exeext'
9982 { (case "(($ac_try" in
9983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9984 *) ac_try_echo=$ac_try;;
9986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9987 (eval "$ac_try") 2>&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); }; }; then
9991 ac_cv_lib_dld_shl_load=yes
9993 echo "$as_me: failed program was:" >&5
9994 sed 's/^/| /' conftest.$ac_ext >&5
9996 ac_cv_lib_dld_shl_load=no
9999 rm -f core conftest.err conftest.$ac_objext \
10000 conftest$ac_exeext conftest.$ac_ext
10001 LIBS=$ac_check_lib_save_LIBS
10003 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10004 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10005 if test $ac_cv_lib_dld_shl_load = yes; then
10007 cat >>confdefs.h <<\_ACEOF
10008 #define HAVE_SHL_LOAD 1
10011 LIBADD_DL="$LIBADD_DL -ldld"
10013 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10014 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10015 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 ac_check_lib_save_LIBS=$LIBS
10020 cat >conftest.$ac_ext <<_ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h. */
10027 /* Override any GCC internal prototype to avoid an error.
10028 Use char because int might match the return type of a GCC
10029 builtin and then its argument prototype would still apply. */
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (ac_try="$ac_link"
10044 case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_link") 2>conftest.er1
10051 grep -v '^ *+' conftest.er1 >conftest.err
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } &&
10056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10057 { (case "(($ac_try" in
10058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059 *) ac_try_echo=$ac_try;;
10061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062 (eval "$ac_try") 2>&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; } &&
10066 { ac_try='test -s conftest$ac_exeext'
10067 { (case "(($ac_try" in
10068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069 *) ac_try_echo=$ac_try;;
10071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10072 (eval "$ac_try") 2>&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }; }; then
10076 ac_cv_lib_dl_dlopen=yes
10078 echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.$ac_ext >&5
10081 ac_cv_lib_dl_dlopen=no
10084 rm -f core conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
10086 LIBS=$ac_check_lib_save_LIBS
10088 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10089 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10090 if test $ac_cv_lib_dl_dlopen = yes; then
10092 cat >>confdefs.h <<\_ACEOF
10093 #define HAVE_LIBDL 1
10096 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10098 cat >conftest.$ac_ext <<_ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10105 # include <dlfcn.h>
10116 rm -f conftest.$ac_objext conftest$ac_exeext
10117 if { (ac_try="$ac_link"
10118 case "(($ac_try" in
10119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10120 *) ac_try_echo=$ac_try;;
10122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10123 (eval "$ac_link") 2>conftest.er1
10125 grep -v '^ *+' conftest.er1 >conftest.err
10127 cat conftest.err >&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); } &&
10130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10131 { (case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_try") 2>&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); }; } &&
10140 { ac_try='test -s conftest$ac_exeext'
10141 { (case "(($ac_try" in
10142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143 *) ac_try_echo=$ac_try;;
10145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146 (eval "$ac_try") 2>&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); }; }; then
10151 cat >>confdefs.h <<\_ACEOF
10152 #define HAVE_LIBDL 1
10154 libltdl_cv_func_dlopen="yes"
10156 echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10159 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10160 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10161 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10164 ac_check_lib_save_LIBS=$LIBS
10165 LIBS="-lsvld $LIBS"
10166 cat >conftest.$ac_ext <<_ACEOF
10169 cat confdefs.h >>conftest.$ac_ext
10170 cat >>conftest.$ac_ext <<_ACEOF
10171 /* end confdefs.h. */
10173 /* Override any GCC internal prototype to avoid an error.
10174 Use char because int might match the return type of a GCC
10175 builtin and then its argument prototype would still apply. */
10188 rm -f conftest.$ac_objext conftest$ac_exeext
10189 if { (ac_try="$ac_link"
10190 case "(($ac_try" in
10191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10192 *) ac_try_echo=$ac_try;;
10194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10195 (eval "$ac_link") 2>conftest.er1
10197 grep -v '^ *+' conftest.er1 >conftest.err
10199 cat conftest.err >&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); } &&
10202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10203 { (case "(($ac_try" in
10204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205 *) ac_try_echo=$ac_try;;
10207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208 (eval "$ac_try") 2>&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; } &&
10212 { ac_try='test -s conftest$ac_exeext'
10213 { (case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218 (eval "$ac_try") 2>&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
10222 ac_cv_lib_svld_dlopen=yes
10224 echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10227 ac_cv_lib_svld_dlopen=no
10230 rm -f core conftest.err conftest.$ac_objext \
10231 conftest$ac_exeext conftest.$ac_ext
10232 LIBS=$ac_check_lib_save_LIBS
10234 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10235 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10236 if test $ac_cv_lib_svld_dlopen = yes; then
10238 cat >>confdefs.h <<\_ACEOF
10239 #define HAVE_LIBDL 1
10242 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10244 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10245 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10246 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10249 ac_check_lib_save_LIBS=$LIBS
10251 cat >conftest.$ac_ext <<_ACEOF
10254 cat confdefs.h >>conftest.$ac_ext
10255 cat >>conftest.$ac_ext <<_ACEOF
10256 /* end confdefs.h. */
10258 /* Override any GCC internal prototype to avoid an error.
10259 Use char because int might match the return type of a GCC
10260 builtin and then its argument prototype would still apply. */
10268 return dld_link ();
10273 rm -f conftest.$ac_objext conftest$ac_exeext
10274 if { (ac_try="$ac_link"
10275 case "(($ac_try" in
10276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10277 *) ac_try_echo=$ac_try;;
10279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10280 (eval "$ac_link") 2>conftest.er1
10282 grep -v '^ *+' conftest.er1 >conftest.err
10284 cat conftest.err >&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); } &&
10287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10288 { (case "(($ac_try" in
10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290 *) ac_try_echo=$ac_try;;
10292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10293 (eval "$ac_try") 2>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; } &&
10297 { ac_try='test -s conftest$ac_exeext'
10298 { (case "(($ac_try" in
10299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300 *) ac_try_echo=$ac_try;;
10302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10303 (eval "$ac_try") 2>&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }; }; then
10307 ac_cv_lib_dld_dld_link=yes
10309 echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10312 ac_cv_lib_dld_dld_link=no
10315 rm -f core conftest.err conftest.$ac_objext \
10316 conftest$ac_exeext conftest.$ac_ext
10317 LIBS=$ac_check_lib_save_LIBS
10319 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10320 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10321 if test $ac_cv_lib_dld_dld_link = yes; then
10323 cat >>confdefs.h <<\_ACEOF
10327 LIBADD_DL="$LIBADD_DL -ldld"
10329 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10330 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10331 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10334 cat >conftest.$ac_ext <<_ACEOF
10337 cat confdefs.h >>conftest.$ac_ext
10338 cat >>conftest.$ac_ext <<_ACEOF
10339 /* end confdefs.h. */
10340 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10342 #define _dyld_func_lookup innocuous__dyld_func_lookup
10344 /* System header to define __stub macros and hopefully few prototypes,
10345 which can conflict with char _dyld_func_lookup (); below.
10346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10347 <limits.h> exists even on freestanding compilers. */
10350 # include <limits.h>
10352 # include <assert.h>
10355 #undef _dyld_func_lookup
10357 /* Override any GCC internal prototype to avoid an error.
10358 Use char because int might match the return type of a GCC
10359 builtin and then its argument prototype would still apply. */
10363 char _dyld_func_lookup ();
10364 /* The GNU C library defines this for functions which it implements
10365 to always fail with ENOSYS. Some functions are actually named
10366 something starting with __ and the normal name is an alias. */
10367 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10374 return _dyld_func_lookup ();
10379 rm -f conftest.$ac_objext conftest$ac_exeext
10380 if { (ac_try="$ac_link"
10381 case "(($ac_try" in
10382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10383 *) ac_try_echo=$ac_try;;
10385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10386 (eval "$ac_link") 2>conftest.er1
10388 grep -v '^ *+' conftest.er1 >conftest.err
10390 cat conftest.err >&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); } &&
10393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10394 { (case "(($ac_try" in
10395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396 *) ac_try_echo=$ac_try;;
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_try") 2>&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; } &&
10403 { ac_try='test -s conftest$ac_exeext'
10404 { (case "(($ac_try" in
10405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10406 *) ac_try_echo=$ac_try;;
10408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409 (eval "$ac_try") 2>&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }; then
10413 ac_cv_func__dyld_func_lookup=yes
10415 echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10418 ac_cv_func__dyld_func_lookup=no
10421 rm -f core conftest.err conftest.$ac_objext \
10422 conftest$ac_exeext conftest.$ac_ext
10424 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10425 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10426 if test $ac_cv_func__dyld_func_lookup = yes; then
10428 cat >>confdefs.h <<\_ACEOF
10429 #define HAVE_DYLD 1
10443 rm -f core conftest.err conftest.$ac_objext \
10444 conftest$ac_exeext conftest.$ac_ext
10455 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10457 lt_save_LIBS="$LIBS"
10458 LIBS="$LIBS $LIBADD_DL"
10460 for ac_func in dlerror
10462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10463 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10466 echo $ECHO_N "(cached) $ECHO_C" >&6
10468 cat >conftest.$ac_ext <<_ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h. */
10474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10476 #define $ac_func innocuous_$ac_func
10478 /* System header to define __stub macros and hopefully few prototypes,
10479 which can conflict with char $ac_func (); below.
10480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10481 <limits.h> exists even on freestanding compilers. */
10484 # include <limits.h>
10486 # include <assert.h>
10491 /* Override any GCC internal prototype to avoid an error.
10492 Use char because int might match the return type of a GCC
10493 builtin and then its argument prototype would still apply. */
10498 /* The GNU C library defines this for functions which it implements
10499 to always fail with ENOSYS. Some functions are actually named
10500 something starting with __ and the normal name is an alias. */
10501 #if defined __stub_$ac_func || defined __stub___$ac_func
10508 return $ac_func ();
10513 rm -f conftest.$ac_objext conftest$ac_exeext
10514 if { (ac_try="$ac_link"
10515 case "(($ac_try" in
10516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517 *) ac_try_echo=$ac_try;;
10519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10520 (eval "$ac_link") 2>conftest.er1
10522 grep -v '^ *+' conftest.er1 >conftest.err
10524 cat conftest.err >&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); } &&
10527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10528 { (case "(($ac_try" in
10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530 *) ac_try_echo=$ac_try;;
10532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533 (eval "$ac_try") 2>&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); }; } &&
10537 { ac_try='test -s conftest$ac_exeext'
10538 { (case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_try") 2>&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); }; }; then
10547 eval "$as_ac_var=yes"
10549 echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10552 eval "$as_ac_var=no"
10555 rm -f core conftest.err conftest.$ac_objext \
10556 conftest$ac_exeext conftest.$ac_ext
10558 ac_res=`eval echo '${'$as_ac_var'}'`
10559 { echo "$as_me:$LINENO: result: $ac_res" >&5
10560 echo "${ECHO_T}$ac_res" >&6; }
10561 if test `eval echo '${'$as_ac_var'}'` = yes; then
10562 cat >>confdefs.h <<_ACEOF
10563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10569 LIBS="$lt_save_LIBS"
10572 ac_cpp='$CPP $CPPFLAGS'
10573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10579 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10580 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10581 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10582 echo $ECHO_N "(cached) $ECHO_C" >&6
10584 ac_cv_sys_symbol_underscore=no
10585 cat > conftest.$ac_ext <<EOF
10586 void nm_test_func(){}
10587 int main(){nm_test_func;return 0;}
10589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10590 (eval $ac_compile) 2>&5
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); }; then
10594 # Now try to grab the symbols.
10595 ac_nlist=conftest.nm
10596 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10597 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } && test -s "$ac_nlist"; then
10601 # See whether the symbols have a leading underscore.
10602 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10603 ac_cv_sys_symbol_underscore=yes
10605 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10608 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10612 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10615 echo "configure: failed program was:" >&5
10621 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10622 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10625 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10626 if test x"$libltdl_cv_func_dlopen" = xyes ||
10627 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10628 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10629 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10630 if test "${libltdl_cv_need_uscore+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10633 libltdl_cv_need_uscore=unknown
10635 LIBS="$LIBS $LIBADD_DL"
10636 if test "$cross_compiling" = yes; then :
10637 libltdl_cv_need_uscore=cross
10639 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10640 lt_status=$lt_dlunknown
10641 cat > conftest.$ac_ext <<EOF
10642 #line 10639 "configure"
10643 #include "confdefs.h"
10652 # define LT_DLGLOBAL RTLD_GLOBAL
10655 # define LT_DLGLOBAL DL_GLOBAL
10657 # define LT_DLGLOBAL 0
10661 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10662 find out it does not work in some platform. */
10663 #ifndef LT_DLLAZY_OR_NOW
10665 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10668 # define LT_DLLAZY_OR_NOW DL_LAZY
10671 # define LT_DLLAZY_OR_NOW RTLD_NOW
10674 # define LT_DLLAZY_OR_NOW DL_NOW
10676 # define LT_DLLAZY_OR_NOW 0
10684 extern "C" void exit (int);
10687 void fnord() { int i=42;}
10690 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10691 int status = $lt_dlunknown;
10695 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10696 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10697 /* dlclose (self); */
10705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10706 (eval $ac_link) 2>&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10710 (./conftest; exit; ) >&5 2>/dev/null
10712 case x$lt_status in
10713 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10714 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10715 x$lt_dlunknown|x*) ;;
10718 # compilation failed
10727 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10728 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10732 if test x"$libltdl_cv_need_uscore" = xyes; then
10734 cat >>confdefs.h <<\_ACEOF
10735 #define NEED_USCORE 1
10741 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10742 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10743 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
10746 # PORTME does your system automatically load deplibs for dlopen?
10747 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10748 # For now, we just catch OSes we know something about -- in the
10749 # future, we'll try test this programmatically.
10750 libltdl_cv_sys_dlopen_deplibs=unknown
10752 aix3*|aix4.1.*|aix4.2.*)
10753 # Unknown whether this is true for these versions of AIX, but
10754 # we want this `case' here to explicitly catch those versions.
10755 libltdl_cv_sys_dlopen_deplibs=unknown
10758 libltdl_cv_sys_dlopen_deplibs=yes
10761 # Assuming the user has installed a libdl from somewhere, this is true
10762 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10763 libltdl_cv_sys_dlopen_deplibs=yes
10765 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10766 # GNU and its variants, using gnu ld.so (Glibc)
10767 libltdl_cv_sys_dlopen_deplibs=yes
10770 libltdl_cv_sys_dlopen_deplibs=yes
10773 libltdl_cv_sys_dlopen_deplibs=yes
10775 irix[12345]*|irix6.[01]*)
10776 # Catch all versions of IRIX before 6.2, and indicate that we don't
10777 # know how it worked for any of those versions.
10778 libltdl_cv_sys_dlopen_deplibs=unknown
10781 # The case above catches anything before 6.2, and it's known that
10782 # at 6.2 and later dlopen does load deplibs.
10783 libltdl_cv_sys_dlopen_deplibs=yes
10786 libltdl_cv_sys_dlopen_deplibs=yes
10789 libltdl_cv_sys_dlopen_deplibs=yes
10792 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10793 # it did *not* use an RPATH in a shared library to find objects the
10794 # library depends on, so we explictly say `no'.
10795 libltdl_cv_sys_dlopen_deplibs=no
10797 osf5.0|osf5.0a|osf5.1)
10798 # dlopen *does* load deplibs and with the right loader patch applied
10799 # it even uses RPATH in a shared library to search for shared objects
10800 # that the library depends on, but there's no easy way to know if that
10801 # patch is installed. Since this is the case, all we can really
10802 # say is unknown -- it depends on the patch being installed. If
10803 # it is, this changes to `yes'. Without it, it would be `no'.
10804 libltdl_cv_sys_dlopen_deplibs=unknown
10807 # the two cases above should catch all versions of osf <= 5.1. Read
10808 # the comments above for what we know about them.
10809 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10810 # is used to find them so we can finally say `yes'.
10811 libltdl_cv_sys_dlopen_deplibs=yes
10814 libltdl_cv_sys_dlopen_deplibs=yes
10816 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10817 libltdl_cv_sys_dlopen_deplibs=yes
10822 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10823 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10824 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10826 cat >>confdefs.h <<\_ACEOF
10827 #define LTDL_DLOPEN_DEPLIBS 1
10833 for ac_header in argz.h
10835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10840 echo $ECHO_N "(cached) $ECHO_C" >&6
10842 ac_res=`eval echo '${'$as_ac_Header'}'`
10843 { echo "$as_me:$LINENO: result: $ac_res" >&5
10844 echo "${ECHO_T}$ac_res" >&6; }
10846 # Is the header compilable?
10847 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10849 cat >conftest.$ac_ext <<_ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h. */
10855 $ac_includes_default
10856 #include <$ac_header>
10858 rm -f conftest.$ac_objext
10859 if { (ac_try="$ac_compile"
10860 case "(($ac_try" in
10861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10862 *) ac_try_echo=$ac_try;;
10864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10865 (eval "$ac_compile") 2>conftest.er1
10867 grep -v '^ *+' conftest.er1 >conftest.err
10869 cat conftest.err >&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } &&
10872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10873 { (case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878 (eval "$ac_try") 2>&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); }; } &&
10882 { ac_try='test -s conftest.$ac_objext'
10883 { (case "(($ac_try" in
10884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885 *) ac_try_echo=$ac_try;;
10887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888 (eval "$ac_try") 2>&5
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); }; }; then
10892 ac_header_compiler=yes
10894 echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10897 ac_header_compiler=no
10900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10902 echo "${ECHO_T}$ac_header_compiler" >&6; }
10904 # Is the header present?
10905 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10907 cat >conftest.$ac_ext <<_ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h. */
10913 #include <$ac_header>
10915 if { (ac_try="$ac_cpp conftest.$ac_ext"
10916 case "(($ac_try" in
10917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918 *) ac_try_echo=$ac_try;;
10920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10923 grep -v '^ *+' conftest.er1 >conftest.err
10925 cat conftest.err >&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); } >/dev/null; then
10928 if test -s conftest.err; then
10929 ac_cpp_err=$ac_c_preproc_warn_flag
10930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10937 if test -z "$ac_cpp_err"; then
10938 ac_header_preproc=yes
10940 echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10943 ac_header_preproc=no
10946 rm -f conftest.err conftest.$ac_ext
10947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10948 echo "${ECHO_T}$ac_header_preproc" >&6; }
10950 # So? What about this header?
10951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10957 ac_header_preproc=yes
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10967 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10973 ## ----------------------------------- ##
10974 ## Report this to llvmbugs@cs.uiuc.edu ##
10975 ## ----------------------------------- ##
10977 ) | sed "s/^/$as_me: WARNING: /" >&2
10980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
10985 eval "$as_ac_Header=\$ac_header_preproc"
10987 ac_res=`eval echo '${'$as_ac_Header'}'`
10988 { echo "$as_me:$LINENO: result: $ac_res" >&5
10989 echo "${ECHO_T}$ac_res" >&6; }
10992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10993 cat >>confdefs.h <<_ACEOF
10994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11002 { echo "$as_me:$LINENO: checking for error_t" >&5
11003 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11004 if test "${ac_cv_type_error_t+set}" = set; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11007 cat >conftest.$ac_ext <<_ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h. */
11017 typedef error_t ac__type_new_;
11021 if ((ac__type_new_ *) 0)
11023 if (sizeof (ac__type_new_))
11029 rm -f conftest.$ac_objext
11030 if { (ac_try="$ac_compile"
11031 case "(($ac_try" in
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033 *) ac_try_echo=$ac_try;;
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036 (eval "$ac_compile") 2>conftest.er1
11038 grep -v '^ *+' conftest.er1 >conftest.err
11040 cat conftest.err >&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } &&
11043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11044 { (case "(($ac_try" in
11045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11046 *) ac_try_echo=$ac_try;;
11048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11049 (eval "$ac_try") 2>&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; } &&
11053 { ac_try='test -s conftest.$ac_objext'
11054 { (case "(($ac_try" in
11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059 (eval "$ac_try") 2>&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; }; then
11063 ac_cv_type_error_t=yes
11065 echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.$ac_ext >&5
11068 ac_cv_type_error_t=no
11071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11073 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11074 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11075 if test $ac_cv_type_error_t = yes; then
11077 cat >>confdefs.h <<_ACEOF
11078 #define HAVE_ERROR_T 1
11084 cat >>confdefs.h <<\_ACEOF
11085 #define error_t int
11096 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11099 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11101 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11104 cat >conftest.$ac_ext <<_ACEOF
11107 cat confdefs.h >>conftest.$ac_ext
11108 cat >>conftest.$ac_ext <<_ACEOF
11109 /* end confdefs.h. */
11110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11112 #define $ac_func innocuous_$ac_func
11114 /* System header to define __stub macros and hopefully few prototypes,
11115 which can conflict with char $ac_func (); below.
11116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11117 <limits.h> exists even on freestanding compilers. */
11120 # include <limits.h>
11122 # include <assert.h>
11127 /* Override any GCC internal prototype to avoid an error.
11128 Use char because int might match the return type of a GCC
11129 builtin and then its argument prototype would still apply. */
11134 /* The GNU C library defines this for functions which it implements
11135 to always fail with ENOSYS. Some functions are actually named
11136 something starting with __ and the normal name is an alias. */
11137 #if defined __stub_$ac_func || defined __stub___$ac_func
11144 return $ac_func ();
11149 rm -f conftest.$ac_objext conftest$ac_exeext
11150 if { (ac_try="$ac_link"
11151 case "(($ac_try" in
11152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153 *) ac_try_echo=$ac_try;;
11155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11156 (eval "$ac_link") 2>conftest.er1
11158 grep -v '^ *+' conftest.er1 >conftest.err
11160 cat conftest.err >&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } &&
11163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11164 { (case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_try") 2>&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; } &&
11173 { ac_try='test -s conftest$ac_exeext'
11174 { (case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179 (eval "$ac_try") 2>&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); }; }; then
11183 eval "$as_ac_var=yes"
11185 echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11188 eval "$as_ac_var=no"
11191 rm -f core conftest.err conftest.$ac_objext \
11192 conftest$ac_exeext conftest.$ac_ext
11194 ac_res=`eval echo '${'$as_ac_var'}'`
11195 { echo "$as_me:$LINENO: result: $ac_res" >&5
11196 echo "${ECHO_T}$ac_res" >&6; }
11197 if test `eval echo '${'$as_ac_var'}'` = yes; then
11198 cat >>confdefs.h <<_ACEOF
11199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11232 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11240 echo $ECHO_N "(cached) $ECHO_C" >&6
11242 ac_res=`eval echo '${'$as_ac_Header'}'`
11243 { echo "$as_me:$LINENO: result: $ac_res" >&5
11244 echo "${ECHO_T}$ac_res" >&6; }
11246 # Is the header compilable?
11247 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11249 cat >conftest.$ac_ext <<_ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 $ac_includes_default
11256 #include <$ac_header>
11258 rm -f conftest.$ac_objext
11259 if { (ac_try="$ac_compile"
11260 case "(($ac_try" in
11261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262 *) ac_try_echo=$ac_try;;
11264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11265 (eval "$ac_compile") 2>conftest.er1
11267 grep -v '^ *+' conftest.er1 >conftest.err
11269 cat conftest.err >&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } &&
11272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11273 { (case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278 (eval "$ac_try") 2>&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; } &&
11282 { ac_try='test -s conftest.$ac_objext'
11283 { (case "(($ac_try" in
11284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285 *) ac_try_echo=$ac_try;;
11287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11288 (eval "$ac_try") 2>&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; }; then
11292 ac_header_compiler=yes
11294 echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.$ac_ext >&5
11297 ac_header_compiler=no
11300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11302 echo "${ECHO_T}$ac_header_compiler" >&6; }
11304 # Is the header present?
11305 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11307 cat >conftest.$ac_ext <<_ACEOF
11310 cat confdefs.h >>conftest.$ac_ext
11311 cat >>conftest.$ac_ext <<_ACEOF
11312 /* end confdefs.h. */
11313 #include <$ac_header>
11315 if { (ac_try="$ac_cpp conftest.$ac_ext"
11316 case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11323 grep -v '^ *+' conftest.er1 >conftest.err
11325 cat conftest.err >&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } >/dev/null; then
11328 if test -s conftest.err; then
11329 ac_cpp_err=$ac_c_preproc_warn_flag
11330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11337 if test -z "$ac_cpp_err"; then
11338 ac_header_preproc=yes
11340 echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11343 ac_header_preproc=no
11346 rm -f conftest.err conftest.$ac_ext
11347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11348 echo "${ECHO_T}$ac_header_preproc" >&6; }
11350 # So? What about this header?
11351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11357 ac_header_preproc=yes
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11373 ## ----------------------------------- ##
11374 ## Report this to llvmbugs@cs.uiuc.edu ##
11375 ## ----------------------------------- ##
11377 ) | sed "s/^/$as_me: WARNING: /" >&2
11380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 eval "$as_ac_Header=\$ac_header_preproc"
11387 ac_res=`eval echo '${'$as_ac_Header'}'`
11388 { echo "$as_me:$LINENO: result: $ac_res" >&5
11389 echo "${ECHO_T}$ac_res" >&6; }
11392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11393 cat >>confdefs.h <<_ACEOF
11394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11405 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11412 echo $ECHO_N "(cached) $ECHO_C" >&6
11414 ac_res=`eval echo '${'$as_ac_Header'}'`
11415 { echo "$as_me:$LINENO: result: $ac_res" >&5
11416 echo "${ECHO_T}$ac_res" >&6; }
11418 # Is the header compilable?
11419 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11421 cat >conftest.$ac_ext <<_ACEOF
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h. */
11427 $ac_includes_default
11428 #include <$ac_header>
11430 rm -f conftest.$ac_objext
11431 if { (ac_try="$ac_compile"
11432 case "(($ac_try" in
11433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11434 *) ac_try_echo=$ac_try;;
11436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11437 (eval "$ac_compile") 2>conftest.er1
11439 grep -v '^ *+' conftest.er1 >conftest.err
11441 cat conftest.err >&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); } &&
11444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11445 { (case "(($ac_try" in
11446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11447 *) ac_try_echo=$ac_try;;
11449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11450 (eval "$ac_try") 2>&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); }; } &&
11454 { ac_try='test -s conftest.$ac_objext'
11455 { (case "(($ac_try" in
11456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11457 *) ac_try_echo=$ac_try;;
11459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11460 (eval "$ac_try") 2>&5
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }; }; then
11464 ac_header_compiler=yes
11466 echo "$as_me: failed program was:" >&5
11467 sed 's/^/| /' conftest.$ac_ext >&5
11469 ac_header_compiler=no
11472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11473 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11474 echo "${ECHO_T}$ac_header_compiler" >&6; }
11476 # Is the header present?
11477 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11479 cat >conftest.$ac_ext <<_ACEOF
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h. */
11485 #include <$ac_header>
11487 if { (ac_try="$ac_cpp conftest.$ac_ext"
11488 case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11495 grep -v '^ *+' conftest.er1 >conftest.err
11497 cat conftest.err >&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } >/dev/null; then
11500 if test -s conftest.err; then
11501 ac_cpp_err=$ac_c_preproc_warn_flag
11502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11509 if test -z "$ac_cpp_err"; then
11510 ac_header_preproc=yes
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11515 ac_header_preproc=no
11518 rm -f conftest.err conftest.$ac_ext
11519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11520 echo "${ECHO_T}$ac_header_preproc" >&6; }
11522 # So? What about this header?
11523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11529 ac_header_preproc=yes
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11539 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11545 ## ----------------------------------- ##
11546 ## Report this to llvmbugs@cs.uiuc.edu ##
11547 ## ----------------------------------- ##
11549 ) | sed "s/^/$as_me: WARNING: /" >&2
11552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11555 echo $ECHO_N "(cached) $ECHO_C" >&6
11557 eval "$as_ac_Header=\$ac_header_preproc"
11559 ac_res=`eval echo '${'$as_ac_Header'}'`
11560 { echo "$as_me:$LINENO: result: $ac_res" >&5
11561 echo "${ECHO_T}$ac_res" >&6; }
11564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11565 cat >>confdefs.h <<_ACEOF
11566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11575 for ac_header in string.h strings.h
11577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11579 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11582 echo $ECHO_N "(cached) $ECHO_C" >&6
11584 ac_res=`eval echo '${'$as_ac_Header'}'`
11585 { echo "$as_me:$LINENO: result: $ac_res" >&5
11586 echo "${ECHO_T}$ac_res" >&6; }
11588 # Is the header compilable?
11589 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11590 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11591 cat >conftest.$ac_ext <<_ACEOF
11594 cat confdefs.h >>conftest.$ac_ext
11595 cat >>conftest.$ac_ext <<_ACEOF
11596 /* end confdefs.h. */
11597 $ac_includes_default
11598 #include <$ac_header>
11600 rm -f conftest.$ac_objext
11601 if { (ac_try="$ac_compile"
11602 case "(($ac_try" in
11603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11604 *) ac_try_echo=$ac_try;;
11606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11607 (eval "$ac_compile") 2>conftest.er1
11609 grep -v '^ *+' conftest.er1 >conftest.err
11611 cat conftest.err >&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } &&
11614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11615 { (case "(($ac_try" in
11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617 *) ac_try_echo=$ac_try;;
11619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_try") 2>&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; } &&
11624 { ac_try='test -s conftest.$ac_objext'
11625 { (case "(($ac_try" in
11626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11627 *) ac_try_echo=$ac_try;;
11629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11630 (eval "$ac_try") 2>&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; }; then
11634 ac_header_compiler=yes
11636 echo "$as_me: failed program was:" >&5
11637 sed 's/^/| /' conftest.$ac_ext >&5
11639 ac_header_compiler=no
11642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11643 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11644 echo "${ECHO_T}$ac_header_compiler" >&6; }
11646 # Is the header present?
11647 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11648 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11649 cat >conftest.$ac_ext <<_ACEOF
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h. */
11655 #include <$ac_header>
11657 if { (ac_try="$ac_cpp conftest.$ac_ext"
11658 case "(($ac_try" in
11659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660 *) ac_try_echo=$ac_try;;
11662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11665 grep -v '^ *+' conftest.er1 >conftest.err
11667 cat conftest.err >&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); } >/dev/null; then
11670 if test -s conftest.err; then
11671 ac_cpp_err=$ac_c_preproc_warn_flag
11672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11679 if test -z "$ac_cpp_err"; then
11680 ac_header_preproc=yes
11682 echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11685 ac_header_preproc=no
11688 rm -f conftest.err conftest.$ac_ext
11689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11690 echo "${ECHO_T}$ac_header_preproc" >&6; }
11692 # So? What about this header?
11693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11696 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11698 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11699 ac_header_preproc=yes
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11703 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11705 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11707 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11708 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11709 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11712 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11713 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11715 ## ----------------------------------- ##
11716 ## Report this to llvmbugs@cs.uiuc.edu ##
11717 ## ----------------------------------- ##
11719 ) | sed "s/^/$as_me: WARNING: /" >&2
11722 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11725 echo $ECHO_N "(cached) $ECHO_C" >&6
11727 eval "$as_ac_Header=\$ac_header_preproc"
11729 ac_res=`eval echo '${'$as_ac_Header'}'`
11730 { echo "$as_me:$LINENO: result: $ac_res" >&5
11731 echo "${ECHO_T}$ac_res" >&6; }
11734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11735 cat >>confdefs.h <<_ACEOF
11736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11746 for ac_func in strchr index
11748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 cat >conftest.$ac_ext <<_ACEOF
11757 cat confdefs.h >>conftest.$ac_ext
11758 cat >>conftest.$ac_ext <<_ACEOF
11759 /* end confdefs.h. */
11760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11762 #define $ac_func innocuous_$ac_func
11764 /* System header to define __stub macros and hopefully few prototypes,
11765 which can conflict with char $ac_func (); below.
11766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11767 <limits.h> exists even on freestanding compilers. */
11770 # include <limits.h>
11772 # include <assert.h>
11777 /* Override any GCC internal prototype to avoid an error.
11778 Use char because int might match the return type of a GCC
11779 builtin and then its argument prototype would still apply. */
11784 /* The GNU C library defines this for functions which it implements
11785 to always fail with ENOSYS. Some functions are actually named
11786 something starting with __ and the normal name is an alias. */
11787 #if defined __stub_$ac_func || defined __stub___$ac_func
11794 return $ac_func ();
11799 rm -f conftest.$ac_objext conftest$ac_exeext
11800 if { (ac_try="$ac_link"
11801 case "(($ac_try" in
11802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11803 *) ac_try_echo=$ac_try;;
11805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11806 (eval "$ac_link") 2>conftest.er1
11808 grep -v '^ *+' conftest.er1 >conftest.err
11810 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } &&
11813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11814 { (case "(($ac_try" in
11815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816 *) ac_try_echo=$ac_try;;
11818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11819 (eval "$ac_try") 2>&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); }; } &&
11823 { ac_try='test -s conftest$ac_exeext'
11824 { (case "(($ac_try" in
11825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11826 *) ac_try_echo=$ac_try;;
11828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11829 (eval "$ac_try") 2>&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; }; then
11833 eval "$as_ac_var=yes"
11835 echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11838 eval "$as_ac_var=no"
11841 rm -f core conftest.err conftest.$ac_objext \
11842 conftest$ac_exeext conftest.$ac_ext
11844 ac_res=`eval echo '${'$as_ac_var'}'`
11845 { echo "$as_me:$LINENO: result: $ac_res" >&5
11846 echo "${ECHO_T}$ac_res" >&6; }
11847 if test `eval echo '${'$as_ac_var'}'` = yes; then
11848 cat >>confdefs.h <<_ACEOF
11849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11857 for ac_func in strrchr rindex
11859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11860 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11863 echo $ECHO_N "(cached) $ECHO_C" >&6
11865 cat >conftest.$ac_ext <<_ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h. */
11871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11873 #define $ac_func innocuous_$ac_func
11875 /* System header to define __stub macros and hopefully few prototypes,
11876 which can conflict with char $ac_func (); below.
11877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11878 <limits.h> exists even on freestanding compilers. */
11881 # include <limits.h>
11883 # include <assert.h>
11888 /* Override any GCC internal prototype to avoid an error.
11889 Use char because int might match the return type of a GCC
11890 builtin and then its argument prototype would still apply. */
11895 /* The GNU C library defines this for functions which it implements
11896 to always fail with ENOSYS. Some functions are actually named
11897 something starting with __ and the normal name is an alias. */
11898 #if defined __stub_$ac_func || defined __stub___$ac_func
11905 return $ac_func ();
11910 rm -f conftest.$ac_objext conftest$ac_exeext
11911 if { (ac_try="$ac_link"
11912 case "(($ac_try" in
11913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_link") 2>conftest.er1
11919 grep -v '^ *+' conftest.er1 >conftest.err
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } &&
11924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11925 { (case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930 (eval "$ac_try") 2>&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; } &&
11934 { ac_try='test -s conftest$ac_exeext'
11935 { (case "(($ac_try" in
11936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937 *) ac_try_echo=$ac_try;;
11939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11940 (eval "$ac_try") 2>&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; }; then
11944 eval "$as_ac_var=yes"
11946 echo "$as_me: failed program was:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11949 eval "$as_ac_var=no"
11952 rm -f core conftest.err conftest.$ac_objext \
11953 conftest$ac_exeext conftest.$ac_ext
11955 ac_res=`eval echo '${'$as_ac_var'}'`
11956 { echo "$as_me:$LINENO: result: $ac_res" >&5
11957 echo "${ECHO_T}$ac_res" >&6; }
11958 if test `eval echo '${'$as_ac_var'}'` = yes; then
11959 cat >>confdefs.h <<_ACEOF
11960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11968 for ac_func in memcpy bcopy
11970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11971 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11973 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11974 echo $ECHO_N "(cached) $ECHO_C" >&6
11976 cat >conftest.$ac_ext <<_ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h. */
11982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11984 #define $ac_func innocuous_$ac_func
11986 /* System header to define __stub macros and hopefully few prototypes,
11987 which can conflict with char $ac_func (); below.
11988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11989 <limits.h> exists even on freestanding compilers. */
11992 # include <limits.h>
11994 # include <assert.h>
11999 /* Override any GCC internal prototype to avoid an error.
12000 Use char because int might match the return type of a GCC
12001 builtin and then its argument prototype would still apply. */
12006 /* The GNU C library defines this for functions which it implements
12007 to always fail with ENOSYS. Some functions are actually named
12008 something starting with __ and the normal name is an alias. */
12009 #if defined __stub_$ac_func || defined __stub___$ac_func
12016 return $ac_func ();
12021 rm -f conftest.$ac_objext conftest$ac_exeext
12022 if { (ac_try="$ac_link"
12023 case "(($ac_try" in
12024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025 *) ac_try_echo=$ac_try;;
12027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12028 (eval "$ac_link") 2>conftest.er1
12030 grep -v '^ *+' conftest.er1 >conftest.err
12032 cat conftest.err >&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); } &&
12035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12036 { (case "(($ac_try" in
12037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038 *) ac_try_echo=$ac_try;;
12040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12041 (eval "$ac_try") 2>&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; } &&
12045 { ac_try='test -s conftest$ac_exeext'
12046 { (case "(($ac_try" in
12047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048 *) ac_try_echo=$ac_try;;
12050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12051 (eval "$ac_try") 2>&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); }; }; then
12055 eval "$as_ac_var=yes"
12057 echo "$as_me: failed program was:" >&5
12058 sed 's/^/| /' conftest.$ac_ext >&5
12060 eval "$as_ac_var=no"
12063 rm -f core conftest.err conftest.$ac_objext \
12064 conftest$ac_exeext conftest.$ac_ext
12066 ac_res=`eval echo '${'$as_ac_var'}'`
12067 { echo "$as_me:$LINENO: result: $ac_res" >&5
12068 echo "${ECHO_T}$ac_res" >&6; }
12069 if test `eval echo '${'$as_ac_var'}'` = yes; then
12070 cat >>confdefs.h <<_ACEOF
12071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12079 for ac_func in memmove strcmp
12081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12082 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 cat >conftest.$ac_ext <<_ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h. */
12093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12095 #define $ac_func innocuous_$ac_func
12097 /* System header to define __stub macros and hopefully few prototypes,
12098 which can conflict with char $ac_func (); below.
12099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12100 <limits.h> exists even on freestanding compilers. */
12103 # include <limits.h>
12105 # include <assert.h>
12110 /* Override any GCC internal prototype to avoid an error.
12111 Use char because int might match the return type of a GCC
12112 builtin and then its argument prototype would still apply. */
12117 /* The GNU C library defines this for functions which it implements
12118 to always fail with ENOSYS. Some functions are actually named
12119 something starting with __ and the normal name is an alias. */
12120 #if defined __stub_$ac_func || defined __stub___$ac_func
12127 return $ac_func ();
12132 rm -f conftest.$ac_objext conftest$ac_exeext
12133 if { (ac_try="$ac_link"
12134 case "(($ac_try" in
12135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12136 *) ac_try_echo=$ac_try;;
12138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12139 (eval "$ac_link") 2>conftest.er1
12141 grep -v '^ *+' conftest.er1 >conftest.err
12143 cat conftest.err >&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); } &&
12146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12147 { (case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_try") 2>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; } &&
12156 { ac_try='test -s conftest$ac_exeext'
12157 { (case "(($ac_try" in
12158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159 *) ac_try_echo=$ac_try;;
12161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12162 (eval "$ac_try") 2>&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 eval "$as_ac_var=yes"
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12171 eval "$as_ac_var=no"
12174 rm -f core conftest.err conftest.$ac_objext \
12175 conftest$ac_exeext conftest.$ac_ext
12177 ac_res=`eval echo '${'$as_ac_var'}'`
12178 { echo "$as_me:$LINENO: result: $ac_res" >&5
12179 echo "${ECHO_T}$ac_res" >&6; }
12180 if test `eval echo '${'$as_ac_var'}'` = yes; then
12181 cat >>confdefs.h <<_ACEOF
12182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12191 for ac_func in closedir opendir readdir
12193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12194 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12196 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12197 echo $ECHO_N "(cached) $ECHO_C" >&6
12199 cat >conftest.$ac_ext <<_ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h. */
12205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12207 #define $ac_func innocuous_$ac_func
12209 /* System header to define __stub macros and hopefully few prototypes,
12210 which can conflict with char $ac_func (); below.
12211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12212 <limits.h> exists even on freestanding compilers. */
12215 # include <limits.h>
12217 # include <assert.h>
12222 /* Override any GCC internal prototype to avoid an error.
12223 Use char because int might match the return type of a GCC
12224 builtin and then its argument prototype would still apply. */
12229 /* The GNU C library defines this for functions which it implements
12230 to always fail with ENOSYS. Some functions are actually named
12231 something starting with __ and the normal name is an alias. */
12232 #if defined __stub_$ac_func || defined __stub___$ac_func
12239 return $ac_func ();
12244 rm -f conftest.$ac_objext conftest$ac_exeext
12245 if { (ac_try="$ac_link"
12246 case "(($ac_try" in
12247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248 *) ac_try_echo=$ac_try;;
12250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251 (eval "$ac_link") 2>conftest.er1
12253 grep -v '^ *+' conftest.er1 >conftest.err
12255 cat conftest.err >&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); } &&
12258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12259 { (case "(($ac_try" in
12260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261 *) ac_try_echo=$ac_try;;
12263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12264 (eval "$ac_try") 2>&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }; } &&
12268 { ac_try='test -s conftest$ac_exeext'
12269 { (case "(($ac_try" in
12270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271 *) ac_try_echo=$ac_try;;
12273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274 (eval "$ac_try") 2>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; }; then
12278 eval "$as_ac_var=yes"
12280 echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12283 eval "$as_ac_var=no"
12286 rm -f core conftest.err conftest.$ac_objext \
12287 conftest$ac_exeext conftest.$ac_ext
12289 ac_res=`eval echo '${'$as_ac_var'}'`
12290 { echo "$as_me:$LINENO: result: $ac_res" >&5
12291 echo "${ECHO_T}$ac_res" >&6; }
12292 if test `eval echo '${'$as_ac_var'}'` = yes; then
12293 cat >>confdefs.h <<_ACEOF
12294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12301 # Check whether --enable-shared was given.
12302 if test "${enable_shared+set}" = set; then
12303 enableval=$enable_shared; p=${PACKAGE-default}
12305 yes) enable_shared=yes ;;
12306 no) enable_shared=no ;;
12309 # Look at the argument we got. We use all the common list separators.
12310 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12311 for pkg in $enableval; do
12313 if test "X$pkg" = "X$p"; then
12325 # Check whether --enable-static was given.
12326 if test "${enable_static+set}" = set; then
12327 enableval=$enable_static; p=${PACKAGE-default}
12329 yes) enable_static=yes ;;
12330 no) enable_static=no ;;
12333 # Look at the argument we got. We use all the common list separators.
12334 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12335 for pkg in $enableval; do
12337 if test "X$pkg" = "X$p"; then
12349 # Check whether --enable-fast-install was given.
12350 if test "${enable_fast_install+set}" = set; then
12351 enableval=$enable_fast_install; p=${PACKAGE-default}
12353 yes) enable_fast_install=yes ;;
12354 no) enable_fast_install=no ;;
12356 enable_fast_install=no
12357 # Look at the argument we got. We use all the common list separators.
12358 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12359 for pkg in $enableval; do
12361 if test "X$pkg" = "X$p"; then
12362 enable_fast_install=yes
12369 enable_fast_install=yes
12373 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12374 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12375 if test "${lt_cv_path_SED+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12378 # Loop through the user's path and test for sed and gsed.
12379 # Then use that list of sed's as ones to test for truncation.
12380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12381 for as_dir in $PATH
12384 test -z "$as_dir" && as_dir=.
12385 for lt_ac_prog in sed gsed; do
12386 for ac_exec_ext in '' $ac_executable_extensions; do
12387 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12388 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12395 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12396 # along with /bin/sed that truncates output.
12397 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12398 test ! -f $lt_ac_sed && continue
12399 cat /dev/null > conftest.in
12401 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12402 # Check for GNU sed and select it if it is found.
12403 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12404 lt_cv_path_SED=$lt_ac_sed
12408 cat conftest.in conftest.in >conftest.tmp
12409 mv conftest.tmp conftest.in
12410 cp conftest.in conftest.nl
12412 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12413 cmp -s conftest.out conftest.nl || break
12414 # 10000 chars as input seems more than enough
12415 test $lt_ac_count -gt 10 && break
12416 lt_ac_count=`expr $lt_ac_count + 1`
12417 if test $lt_ac_count -gt $lt_ac_max; then
12418 lt_ac_max=$lt_ac_count
12419 lt_cv_path_SED=$lt_ac_sed
12426 SED=$lt_cv_path_SED
12427 { echo "$as_me:$LINENO: result: $SED" >&5
12428 echo "${ECHO_T}$SED" >&6; }
12431 # Check whether --with-gnu-ld was given.
12432 if test "${with_gnu_ld+set}" = set; then
12433 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12439 if test "$GCC" = yes; then
12440 # Check if gcc -print-prog-name=ld gives a path.
12441 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12442 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12445 # gcc leaves a trailing carriage return which upsets mingw
12446 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12448 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12451 # Accept absolute paths.
12453 re_direlt='/[^/][^/]*/\.\./'
12454 # Canonicalize the pathname of ld
12455 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12456 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12457 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12459 test -z "$LD" && LD="$ac_prog"
12462 # If it fails, then pretend we aren't using GCC.
12466 # If it is relative, then search for the first ld in PATH.
12467 with_gnu_ld=unknown
12470 elif test "$with_gnu_ld" = yes; then
12471 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12472 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12474 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12475 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12477 if test "${lt_cv_path_LD+set}" = set; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12480 if test -z "$LD"; then
12481 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12482 for ac_dir in $PATH; do
12484 test -z "$ac_dir" && ac_dir=.
12485 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12486 lt_cv_path_LD="$ac_dir/$ac_prog"
12487 # Check to see if the program is GNU ld. I'd rather use --version,
12488 # but apparently some variants of GNU ld only accept -v.
12489 # Break only if it was the GNU/non-GNU ld that we prefer.
12490 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12491 *GNU* | *'with BFD'*)
12492 test "$with_gnu_ld" != no && break
12495 test "$with_gnu_ld" != yes && break
12502 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12506 LD="$lt_cv_path_LD"
12507 if test -n "$LD"; then
12508 { echo "$as_me:$LINENO: result: $LD" >&5
12509 echo "${ECHO_T}$LD" >&6; }
12511 { echo "$as_me:$LINENO: result: no" >&5
12512 echo "${ECHO_T}no" >&6; }
12514 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12515 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12516 { (exit 1); exit 1; }; }
12517 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12518 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12519 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12522 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12523 case `$LD -v 2>&1 </dev/null` in
12524 *GNU* | *'with BFD'*)
12525 lt_cv_prog_gnu_ld=yes
12528 lt_cv_prog_gnu_ld=no
12532 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12533 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12534 with_gnu_ld=$lt_cv_prog_gnu_ld
12537 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12538 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12539 if test "${lt_cv_ld_reload_flag+set}" = set; then
12540 echo $ECHO_N "(cached) $ECHO_C" >&6
12542 lt_cv_ld_reload_flag='-r'
12544 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12545 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12546 reload_flag=$lt_cv_ld_reload_flag
12547 case $reload_flag in
12549 *) reload_flag=" $reload_flag" ;;
12551 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12554 if test "$GCC" = yes; then
12555 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12557 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12562 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12563 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12564 if test "${lt_cv_deplibs_check_method+set}" = set; then
12565 echo $ECHO_N "(cached) $ECHO_C" >&6
12567 lt_cv_file_magic_cmd='$MAGIC_CMD'
12568 lt_cv_file_magic_test_file=
12569 lt_cv_deplibs_check_method='unknown'
12570 # Need to set the preceding variable on all platforms that support
12571 # interlibrary dependencies.
12572 # 'none' -- dependencies not supported.
12573 # `unknown' -- same as none, but documents that we really don't know.
12574 # 'pass_all' -- all dependencies passed with no checks.
12575 # 'test_compile' -- check by making test program.
12576 # 'file_magic [[regex]]' -- check by looking for files in library path
12577 # which responds to the $file_magic_cmd with a given extended regex.
12578 # If you have `file' or equivalent on your system and you're not sure
12579 # whether `pass_all' will *always* work, you probably want this one.
12583 lt_cv_deplibs_check_method=pass_all
12587 lt_cv_deplibs_check_method=pass_all
12591 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12592 lt_cv_file_magic_cmd='/usr/bin/file -L'
12593 lt_cv_file_magic_test_file=/shlib/libc.so
12597 # func_win32_libid is a shell function defined in ltmain.sh
12598 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12599 lt_cv_file_magic_cmd='func_win32_libid'
12603 # Base MSYS/MinGW do not provide the 'file' command needed by
12604 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12605 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12606 lt_cv_file_magic_cmd='$OBJDUMP -f'
12609 darwin* | rhapsody*)
12610 lt_cv_deplibs_check_method=pass_all
12613 freebsd* | kfreebsd*-gnu | dragonfly*)
12614 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12617 # Not sure whether the presence of OpenBSD here was a mistake.
12618 # Let's accept both of them until this is cleared up.
12619 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12620 lt_cv_file_magic_cmd=/usr/bin/file
12621 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12625 lt_cv_deplibs_check_method=pass_all
12630 lt_cv_deplibs_check_method=pass_all
12633 hpux10.20* | hpux11*)
12634 lt_cv_file_magic_cmd=/usr/bin/file
12637 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12638 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12641 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]'
12642 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12645 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12646 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12652 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12653 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12656 irix5* | irix6* | nonstopux*)
12658 *-32|*"-32 ") libmagic=32-bit;;
12659 *-n32|*"-n32 ") libmagic=N32;;
12660 *-64|*"-64 ") libmagic=64-bit;;
12661 *) libmagic=never-match;;
12663 lt_cv_deplibs_check_method=pass_all
12666 # This must be Linux ELF.
12668 lt_cv_deplibs_check_method=pass_all
12672 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12673 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12680 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12681 lt_cv_file_magic_cmd=/usr/bin/file
12682 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12686 lt_cv_deplibs_check_method=unknown
12690 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12691 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12697 osf3* | osf4* | osf5*)
12698 lt_cv_deplibs_check_method=pass_all
12702 lt_cv_deplibs_check_method=pass_all
12706 case $host_vendor in
12708 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]'
12709 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12712 lt_cv_deplibs_check_method=pass_all
12715 lt_cv_file_magic_cmd='/bin/file'
12716 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12719 lt_cv_file_magic_cmd='/bin/file'
12720 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12721 lt_cv_file_magic_test_file=/lib/libc.so
12724 lt_cv_deplibs_check_method=pass_all
12727 lt_cv_deplibs_check_method=pass_all
12732 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12733 lt_cv_deplibs_check_method=pass_all
12738 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12739 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12740 file_magic_cmd=$lt_cv_file_magic_cmd
12741 deplibs_check_method=$lt_cv_deplibs_check_method
12742 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12746 # If no C compiler was specified, use CC.
12749 # If no C compiler flags were specified, use CFLAGS.
12750 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12752 # Allow CC to be a program name with arguments.
12755 # Check whether --enable-libtool-lock was given.
12756 if test "${enable_libtool_lock+set}" = set; then
12757 enableval=$enable_libtool_lock;
12760 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12762 # Some flags need to be propagated to the compiler or linker for good
12766 # Find out which ABI we are using.
12767 echo 'int i;' > conftest.$ac_ext
12768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12769 (eval $ac_compile) 2>&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; then
12773 case `/usr/bin/file conftest.$ac_objext` in
12775 HPUX_IA64_MODE="32"
12778 HPUX_IA64_MODE="64"
12785 # Find out which ABI we are using.
12786 echo '#line 12783 "configure"' > conftest.$ac_ext
12787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12788 (eval $ac_compile) 2>&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; then
12792 if test "$lt_cv_prog_gnu_ld" = yes; then
12793 case `/usr/bin/file conftest.$ac_objext` in
12795 LD="${LD-ld} -melf32bsmip"
12798 LD="${LD-ld} -melf32bmipn32"
12801 LD="${LD-ld} -melf64bmip"
12805 case `/usr/bin/file conftest.$ac_objext` in
12821 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12822 # Find out which ABI we are using.
12823 echo 'int i;' > conftest.$ac_ext
12824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12825 (eval $ac_compile) 2>&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); }; then
12829 case `/usr/bin/file conftest.o` in
12833 LD="${LD-ld} -m elf_i386"
12835 ppc64-*linux*|powerpc64-*linux*)
12836 LD="${LD-ld} -m elf32ppclinux"
12839 LD="${LD-ld} -m elf_s390"
12842 LD="${LD-ld} -m elf32_sparc"
12849 LD="${LD-ld} -m elf_x86_64"
12851 ppc*-*linux*|powerpc*-*linux*)
12852 LD="${LD-ld} -m elf64ppc"
12855 LD="${LD-ld} -m elf64_s390"
12858 LD="${LD-ld} -m elf64_sparc"
12868 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12869 SAVE_CFLAGS="$CFLAGS"
12870 CFLAGS="$CFLAGS -belf"
12871 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12872 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12873 if test "${lt_cv_cc_needs_belf+set}" = set; then
12874 echo $ECHO_N "(cached) $ECHO_C" >&6
12877 ac_cpp='$CPP $CPPFLAGS'
12878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12882 cat >conftest.$ac_ext <<_ACEOF
12885 cat confdefs.h >>conftest.$ac_ext
12886 cat >>conftest.$ac_ext <<_ACEOF
12887 /* end confdefs.h. */
12897 rm -f conftest.$ac_objext conftest$ac_exeext
12898 if { (ac_try="$ac_link"
12899 case "(($ac_try" in
12900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12901 *) ac_try_echo=$ac_try;;
12903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12904 (eval "$ac_link") 2>conftest.er1
12906 grep -v '^ *+' conftest.er1 >conftest.err
12908 cat conftest.err >&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } &&
12911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12912 { (case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917 (eval "$ac_try") 2>&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; } &&
12921 { ac_try='test -s conftest$ac_exeext'
12922 { (case "(($ac_try" in
12923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924 *) ac_try_echo=$ac_try;;
12926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927 (eval "$ac_try") 2>&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; }; then
12931 lt_cv_cc_needs_belf=yes
12933 echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.$ac_ext >&5
12936 lt_cv_cc_needs_belf=no
12939 rm -f core conftest.err conftest.$ac_objext \
12940 conftest$ac_exeext conftest.$ac_ext
12942 ac_cpp='$CPP $CPPFLAGS'
12943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12948 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12949 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12950 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12951 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12952 CFLAGS="$SAVE_CFLAGS"
12956 # Find out which ABI we are using.
12957 echo 'int i;' > conftest.$ac_ext
12958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12959 (eval $ac_compile) 2>&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; then
12963 case `/usr/bin/file conftest.o` in
12965 case $lt_cv_prog_gnu_ld in
12966 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12967 *) LD="${LD-ld} -64" ;;
12978 need_locks="$enable_libtool_lock"
12983 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12984 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12985 (test "X$CXX" != "Xg++"))) ; then
12987 ac_cpp='$CXXCPP $CPPFLAGS'
12988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12991 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12992 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12993 if test -z "$CXXCPP"; then
12994 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12997 # Double quotes because CXXCPP needs to be expanded
12998 for CXXCPP in "$CXX -E" "/lib/cpp"
13000 ac_preproc_ok=false
13001 for ac_cxx_preproc_warn_flag in '' yes
13003 # Use a header file that comes with gcc, so configuring glibc
13004 # with a fresh cross-compiler works.
13005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13006 # <limits.h> exists even on freestanding compilers.
13007 # On the NeXT, cc -E runs the code through the compiler's parser,
13008 # not just through cpp. "Syntax error" is here to catch this case.
13009 cat >conftest.$ac_ext <<_ACEOF
13012 cat confdefs.h >>conftest.$ac_ext
13013 cat >>conftest.$ac_ext <<_ACEOF
13014 /* end confdefs.h. */
13016 # include <limits.h>
13018 # include <assert.h>
13022 if { (ac_try="$ac_cpp conftest.$ac_ext"
13023 case "(($ac_try" in
13024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13025 *) ac_try_echo=$ac_try;;
13027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13030 grep -v '^ *+' conftest.er1 >conftest.err
13032 cat conftest.err >&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); } >/dev/null; then
13035 if test -s conftest.err; then
13036 ac_cpp_err=$ac_cxx_preproc_warn_flag
13037 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13044 if test -z "$ac_cpp_err"; then
13047 echo "$as_me: failed program was:" >&5
13048 sed 's/^/| /' conftest.$ac_ext >&5
13050 # Broken: fails on valid input.
13054 rm -f conftest.err conftest.$ac_ext
13056 # OK, works on sane cases. Now check whether nonexistent headers
13057 # can be detected and how.
13058 cat >conftest.$ac_ext <<_ACEOF
13061 cat confdefs.h >>conftest.$ac_ext
13062 cat >>conftest.$ac_ext <<_ACEOF
13063 /* end confdefs.h. */
13064 #include <ac_nonexistent.h>
13066 if { (ac_try="$ac_cpp conftest.$ac_ext"
13067 case "(($ac_try" in
13068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13074 grep -v '^ *+' conftest.er1 >conftest.err
13076 cat conftest.err >&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } >/dev/null; then
13079 if test -s conftest.err; then
13080 ac_cpp_err=$ac_cxx_preproc_warn_flag
13081 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13088 if test -z "$ac_cpp_err"; then
13089 # Broken: success on invalid input.
13092 echo "$as_me: failed program was:" >&5
13093 sed 's/^/| /' conftest.$ac_ext >&5
13095 # Passes both tests.
13100 rm -f conftest.err conftest.$ac_ext
13103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13104 rm -f conftest.err conftest.$ac_ext
13105 if $ac_preproc_ok; then
13110 ac_cv_prog_CXXCPP=$CXXCPP
13113 CXXCPP=$ac_cv_prog_CXXCPP
13115 ac_cv_prog_CXXCPP=$CXXCPP
13117 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13118 echo "${ECHO_T}$CXXCPP" >&6; }
13119 ac_preproc_ok=false
13120 for ac_cxx_preproc_warn_flag in '' yes
13122 # Use a header file that comes with gcc, so configuring glibc
13123 # with a fresh cross-compiler works.
13124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13125 # <limits.h> exists even on freestanding compilers.
13126 # On the NeXT, cc -E runs the code through the compiler's parser,
13127 # not just through cpp. "Syntax error" is here to catch this case.
13128 cat >conftest.$ac_ext <<_ACEOF
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h. */
13135 # include <limits.h>
13137 # include <assert.h>
13141 if { (ac_try="$ac_cpp conftest.$ac_ext"
13142 case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13149 grep -v '^ *+' conftest.er1 >conftest.err
13151 cat conftest.err >&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); } >/dev/null; then
13154 if test -s conftest.err; then
13155 ac_cpp_err=$ac_cxx_preproc_warn_flag
13156 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13163 if test -z "$ac_cpp_err"; then
13166 echo "$as_me: failed program was:" >&5
13167 sed 's/^/| /' conftest.$ac_ext >&5
13169 # Broken: fails on valid input.
13173 rm -f conftest.err conftest.$ac_ext
13175 # OK, works on sane cases. Now check whether nonexistent headers
13176 # can be detected and how.
13177 cat >conftest.$ac_ext <<_ACEOF
13180 cat confdefs.h >>conftest.$ac_ext
13181 cat >>conftest.$ac_ext <<_ACEOF
13182 /* end confdefs.h. */
13183 #include <ac_nonexistent.h>
13185 if { (ac_try="$ac_cpp conftest.$ac_ext"
13186 case "(($ac_try" in
13187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188 *) ac_try_echo=$ac_try;;
13190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13193 grep -v '^ *+' conftest.er1 >conftest.err
13195 cat conftest.err >&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); } >/dev/null; then
13198 if test -s conftest.err; then
13199 ac_cpp_err=$ac_cxx_preproc_warn_flag
13200 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13207 if test -z "$ac_cpp_err"; then
13208 # Broken: success on invalid input.
13211 echo "$as_me: failed program was:" >&5
13212 sed 's/^/| /' conftest.$ac_ext >&5
13214 # Passes both tests.
13219 rm -f conftest.err conftest.$ac_ext
13222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13223 rm -f conftest.err conftest.$ac_ext
13224 if $ac_preproc_ok; then
13227 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13228 See \`config.log' for more details." >&5
13229 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13230 See \`config.log' for more details." >&2;}
13231 { (exit 1); exit 1; }; }
13235 ac_cpp='$CXXCPP $CPPFLAGS'
13236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13244 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13245 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13246 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13247 if test -n "$ac_tool_prefix"; then
13248 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
13250 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13251 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13254 if test "${ac_cv_prog_F77+set}" = set; then
13255 echo $ECHO_N "(cached) $ECHO_C" >&6
13257 if test -n "$F77"; then
13258 ac_cv_prog_F77="$F77" # Let the user override the test.
13260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13261 for as_dir in $PATH
13264 test -z "$as_dir" && as_dir=.
13265 for ac_exec_ext in '' $ac_executable_extensions; do
13266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13267 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13277 F77=$ac_cv_prog_F77
13278 if test -n "$F77"; then
13279 { echo "$as_me:$LINENO: result: $F77" >&5
13280 echo "${ECHO_T}$F77" >&6; }
13282 { echo "$as_me:$LINENO: result: no" >&5
13283 echo "${ECHO_T}no" >&6; }
13287 test -n "$F77" && break
13290 if test -z "$F77"; then
13292 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
13294 # Extract the first word of "$ac_prog", so it can be a program name with args.
13295 set dummy $ac_prog; ac_word=$2
13296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13298 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13299 echo $ECHO_N "(cached) $ECHO_C" >&6
13301 if test -n "$ac_ct_F77"; then
13302 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13305 for as_dir in $PATH
13308 test -z "$as_dir" && as_dir=.
13309 for ac_exec_ext in '' $ac_executable_extensions; do
13310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13311 ac_cv_prog_ac_ct_F77="$ac_prog"
13312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13321 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13322 if test -n "$ac_ct_F77"; then
13323 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13324 echo "${ECHO_T}$ac_ct_F77" >&6; }
13326 { echo "$as_me:$LINENO: result: no" >&5
13327 echo "${ECHO_T}no" >&6; }
13331 test -n "$ac_ct_F77" && break
13334 if test "x$ac_ct_F77" = x; then
13337 case $cross_compiling:$ac_tool_warned in
13339 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13340 whose name does not start with the host triplet. If you think this
13341 configuration is useful to you, please write to autoconf@gnu.org." >&5
13342 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13343 whose name does not start with the host triplet. If you think this
13344 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13345 ac_tool_warned=yes ;;
13352 # Provide some information about the compiler.
13353 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13354 ac_compiler=`set X $ac_compile; echo $2`
13355 { (ac_try="$ac_compiler --version >&5"
13356 case "(($ac_try" in
13357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358 *) ac_try_echo=$ac_try;;
13360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361 (eval "$ac_compiler --version >&5") 2>&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }
13365 { (ac_try="$ac_compiler -v >&5"
13366 case "(($ac_try" in
13367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13368 *) ac_try_echo=$ac_try;;
13370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13371 (eval "$ac_compiler -v >&5") 2>&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); }
13375 { (ac_try="$ac_compiler -V >&5"
13376 case "(($ac_try" in
13377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13378 *) ac_try_echo=$ac_try;;
13380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13381 (eval "$ac_compiler -V >&5") 2>&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); }
13387 # If we don't use `.F' as extension, the preprocessor is not run on the
13388 # input file. (Note that this only needs to work for GNU compilers.)
13389 ac_save_ext=$ac_ext
13391 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13392 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13393 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13394 echo $ECHO_N "(cached) $ECHO_C" >&6
13396 cat >conftest.$ac_ext <<_ACEOF
13404 rm -f conftest.$ac_objext
13405 if { (ac_try="$ac_compile"
13406 case "(($ac_try" in
13407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13408 *) ac_try_echo=$ac_try;;
13410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13411 (eval "$ac_compile") 2>conftest.er1
13413 grep -v '^ *+' conftest.er1 >conftest.err
13415 cat conftest.err >&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); } &&
13418 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13419 { (case "(($ac_try" in
13420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421 *) ac_try_echo=$ac_try;;
13423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424 (eval "$ac_try") 2>&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; } &&
13428 { ac_try='test -s conftest.$ac_objext'
13429 { (case "(($ac_try" in
13430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431 *) ac_try_echo=$ac_try;;
13433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434 (eval "$ac_try") 2>&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; }; then
13438 ac_compiler_gnu=yes
13440 echo "$as_me: failed program was:" >&5
13441 sed 's/^/| /' conftest.$ac_ext >&5
13446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13447 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13450 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13451 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13452 ac_ext=$ac_save_ext
13453 ac_test_FFLAGS=${FFLAGS+set}
13454 ac_save_FFLAGS=$FFLAGS
13456 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13457 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13458 if test "${ac_cv_prog_f77_g+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13462 cat >conftest.$ac_ext <<_ACEOF
13467 rm -f conftest.$ac_objext
13468 if { (ac_try="$ac_compile"
13469 case "(($ac_try" in
13470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471 *) ac_try_echo=$ac_try;;
13473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13474 (eval "$ac_compile") 2>conftest.er1
13476 grep -v '^ *+' conftest.er1 >conftest.err
13478 cat conftest.err >&5
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); } &&
13481 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13482 { (case "(($ac_try" in
13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487 (eval "$ac_try") 2>&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; } &&
13491 { ac_try='test -s conftest.$ac_objext'
13492 { (case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_try") 2>&5
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); }; }; then
13501 ac_cv_prog_f77_g=yes
13503 echo "$as_me: failed program was:" >&5
13504 sed 's/^/| /' conftest.$ac_ext >&5
13506 ac_cv_prog_f77_g=no
13509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13512 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13513 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13514 if test "$ac_test_FFLAGS" = set; then
13515 FFLAGS=$ac_save_FFLAGS
13516 elif test $ac_cv_prog_f77_g = yes; then
13517 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13523 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13530 G77=`test $ac_compiler_gnu = yes && echo yes`
13532 ac_cpp='$CPP $CPPFLAGS'
13533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13539 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13541 # find the maximum length of command line arguments
13542 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13543 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13544 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13545 echo $ECHO_N "(cached) $ECHO_C" >&6
13552 # On DJGPP, this test can blow up pretty badly due to problems in libc
13553 # (any single argument exceeding 2000 bytes causes a buffer overrun
13554 # during glob expansion). Even if it were fixed, the result of this
13555 # check would be larger than it should be.
13556 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13560 # Under GNU Hurd, this test is not required because there is
13561 # no limit to the length of command line arguments.
13562 # Libtool will interpret -1 as no limit whatsoever
13563 lt_cv_sys_max_cmd_len=-1;
13567 # On Win9x/ME, this test blows up -- it succeeds, but takes
13568 # about 5 minutes as the teststring grows exponentially.
13569 # Worse, since 9x/ME are not pre-emptively multitasking,
13570 # you end up with a "frozen" computer, even though with patience
13571 # the test eventually succeeds (with a max line length of 256k).
13572 # Instead, let's just punt: use the minimum linelength reported by
13573 # all of the supported platforms: 8192 (on NT/2K/XP).
13574 lt_cv_sys_max_cmd_len=8192;
13578 # On AmigaOS with pdksh, this test takes hours, literally.
13579 # So we just punt and use a minimum line length of 8192.
13580 lt_cv_sys_max_cmd_len=8192;
13583 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13584 # This has been around since 386BSD, at least. Likely further.
13585 if test -x /sbin/sysctl; then
13586 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13587 elif test -x /usr/sbin/sysctl; then
13588 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13590 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13592 # And add a safety zone
13593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13598 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13599 lt_cv_sys_max_cmd_len=196608
13603 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13604 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13605 # nice to cause kernel panics so lets avoid the loop below.
13606 # First set a reasonable default.
13607 lt_cv_sys_max_cmd_len=16384
13609 if test -x /sbin/sysconfig; then
13610 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13611 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13616 lt_cv_sys_max_cmd_len=102400
13618 sysv5* | sco5v6* | sysv4.2uw2*)
13619 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13620 if test -n "$kargmax"; then
13621 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13623 lt_cv_sys_max_cmd_len=32768
13627 # If test is not a shell built-in, we'll probably end up computing a
13628 # maximum length that is only half of the actual maximum length, but
13630 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13631 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13632 = "XX$teststring") >/dev/null 2>&1 &&
13633 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13634 lt_cv_sys_max_cmd_len=$new_result &&
13635 test $i != 17 # 1/2 MB should be enough
13638 teststring=$teststring$teststring
13641 # Add a significant safety factor because C++ compilers can tack on massive
13642 # amounts of additional arguments before passing them to the linker.
13643 # It appears as though 1/2 is a usable value.
13644 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13650 if test -n $lt_cv_sys_max_cmd_len ; then
13651 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13652 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13654 { echo "$as_me:$LINENO: result: none" >&5
13655 echo "${ECHO_T}none" >&6; }
13661 # Check for command to grab the raw symbol name followed by C symbol from nm.
13662 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13663 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13664 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 # These are sane defaults that work on at least a few old systems.
13669 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13671 # Character class describing NM global symbol codes.
13672 symcode='[BCDEGRST]'
13674 # Regexp to match symbols that can be accessed directly from C.
13675 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13677 # Transform an extracted symbol line into a proper C declaration
13678 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13680 # Transform an extracted symbol line into symbol name and symbol address
13681 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'"
13683 # Define system-specific variables.
13688 cygwin* | mingw* | pw32*)
13689 symcode='[ABCDGISTW]'
13691 hpux*) # Its linker distinguishes data from code symbols
13692 if test "$host_cpu" = ia64; then
13693 symcode='[ABCDEGRST]'
13695 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13696 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'"
13699 if test "$host_cpu" = ia64; then
13700 symcode='[ABCDGIRSTW]'
13701 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13702 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'"
13705 irix* | nonstopux*)
13706 symcode='[BCDEGRST]'
13709 symcode='[BCDEGQRST]'
13720 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13728 # Handle CRLF in mingw tool chain
13732 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13736 # If we're using GNU nm, then use its standard symbol codes.
13737 case `$NM -V 2>&1` in
13738 *GNU* | *'with BFD'*)
13739 symcode='[ABCDGIRSTW]' ;;
13742 # Try without a prefix undercore, then with it.
13743 for ac_symprfx in "" "_"; do
13745 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13746 symxfrm="\\1 $ac_symprfx\\2 \\2"
13748 # Write the raw and C identifiers.
13749 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13751 # Check to see that the pipe works correctly.
13755 cat > conftest.$ac_ext <<EOF
13760 void nm_test_func(){}
13764 int main(){nm_test_var='a';nm_test_func();return(0);}
13767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13768 (eval $ac_compile) 2>&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }; then
13772 # Now try to grab the symbols.
13774 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13775 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } && test -s "$nlist"; then
13779 # Try sorting and uniquifying the output.
13780 if sort "$nlist" | uniq > "$nlist"T; then
13781 mv -f "$nlist"T "$nlist"
13786 # Make sure that we snagged all the symbols we need.
13787 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13788 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13789 cat <<EOF > conftest.$ac_ext
13795 # Now generate the symbol file.
13796 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13798 cat <<EOF >> conftest.$ac_ext
13799 #if defined (__STDC__) && __STDC__
13800 # define lt_ptr_t void *
13802 # define lt_ptr_t char *
13806 /* The mapping between symbol names and symbols. */
13811 lt_preloaded_symbols[] =
13814 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13815 cat <<\EOF >> conftest.$ac_ext
13823 # Now try linking the two files.
13824 mv conftest.$ac_objext conftstm.$ac_objext
13825 lt_save_LIBS="$LIBS"
13826 lt_save_CFLAGS="$CFLAGS"
13827 LIBS="conftstm.$ac_objext"
13828 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13830 (eval $ac_link) 2>&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13836 LIBS="$lt_save_LIBS"
13837 CFLAGS="$lt_save_CFLAGS"
13839 echo "cannot find nm_test_func in $nlist" >&5
13842 echo "cannot find nm_test_var in $nlist" >&5
13845 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13848 echo "$progname: failed program was:" >&5
13849 cat conftest.$ac_ext >&5
13851 rm -f conftest* conftst*
13853 # Do not use the global_symbol_pipe unless it works.
13854 if test "$pipe_works" = yes; then
13857 lt_cv_sys_global_symbol_pipe=
13863 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13864 lt_cv_sys_global_symbol_to_cdecl=
13866 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13867 { echo "$as_me:$LINENO: result: failed" >&5
13868 echo "${ECHO_T}failed" >&6; }
13870 { echo "$as_me:$LINENO: result: ok" >&5
13871 echo "${ECHO_T}ok" >&6; }
13874 { echo "$as_me:$LINENO: checking for objdir" >&5
13875 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13876 if test "${lt_cv_objdir+set}" = set; then
13877 echo $ECHO_N "(cached) $ECHO_C" >&6
13879 rm -f .libs 2>/dev/null
13880 mkdir .libs 2>/dev/null
13881 if test -d .libs; then
13884 # MS-DOS does not allow filenames that begin with a dot.
13887 rmdir .libs 2>/dev/null
13889 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13890 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13891 objdir=$lt_cv_objdir
13899 # AIX sometimes has problems with the GCC collect2 program. For some
13900 # reason, if we set the COLLECT_NAMES environment variable, the problems
13901 # vanish in a puff of smoke.
13902 if test "X${COLLECT_NAMES+set}" != Xset; then
13904 export COLLECT_NAMES
13909 # Sed substitution that helps us do robust quoting. It backslashifies
13910 # metacharacters that are still active within double-quoted strings.
13911 Xsed='sed -e 1s/^X//'
13912 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13914 # Same as above, but do not quote variable references.
13915 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13917 # Sed substitution to delay expansion of an escaped shell variable in a
13918 # double_quote_subst'ed string.
13919 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13921 # Sed substitution to avoid accidental globbing in evaled expressions
13922 no_glob_subst='s/\*/\\\*/g'
13927 # Global variables:
13928 default_ofile=mklib
13929 can_build_shared=yes
13931 # All known linkers require a `.a' archive for static linking (except MSVC,
13932 # which needs '.lib').
13934 ltmain="$ac_aux_dir/ltmain.sh"
13935 ofile="$default_ofile"
13936 with_gnu_ld="$lt_cv_prog_gnu_ld"
13938 if test -n "$ac_tool_prefix"; then
13939 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13940 set dummy ${ac_tool_prefix}ar; ac_word=$2
13941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13943 if test "${ac_cv_prog_AR+set}" = set; then
13944 echo $ECHO_N "(cached) $ECHO_C" >&6
13946 if test -n "$AR"; then
13947 ac_cv_prog_AR="$AR" # Let the user override the test.
13949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13950 for as_dir in $PATH
13953 test -z "$as_dir" && as_dir=.
13954 for ac_exec_ext in '' $ac_executable_extensions; do
13955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13956 ac_cv_prog_AR="${ac_tool_prefix}ar"
13957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13967 if test -n "$AR"; then
13968 { echo "$as_me:$LINENO: result: $AR" >&5
13969 echo "${ECHO_T}$AR" >&6; }
13971 { echo "$as_me:$LINENO: result: no" >&5
13972 echo "${ECHO_T}no" >&6; }
13977 if test -z "$ac_cv_prog_AR"; then
13979 # Extract the first word of "ar", so it can be a program name with args.
13980 set dummy ar; ac_word=$2
13981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13983 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
13986 if test -n "$ac_ct_AR"; then
13987 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13990 for as_dir in $PATH
13993 test -z "$as_dir" && as_dir=.
13994 for ac_exec_ext in '' $ac_executable_extensions; do
13995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13996 ac_cv_prog_ac_ct_AR="ar"
13997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14006 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14007 if test -n "$ac_ct_AR"; then
14008 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14009 echo "${ECHO_T}$ac_ct_AR" >&6; }
14011 { echo "$as_me:$LINENO: result: no" >&5
14012 echo "${ECHO_T}no" >&6; }
14015 if test "x$ac_ct_AR" = x; then
14018 case $cross_compiling:$ac_tool_warned in
14020 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14021 whose name does not start with the host triplet. If you think this
14022 configuration is useful to you, please write to autoconf@gnu.org." >&5
14023 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14024 whose name does not start with the host triplet. If you think this
14025 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14026 ac_tool_warned=yes ;;
14031 AR="$ac_cv_prog_AR"
14034 if test -n "$ac_tool_prefix"; then
14035 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14036 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14039 if test "${ac_cv_prog_RANLIB+set}" = set; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14042 if test -n "$RANLIB"; then
14043 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14046 for as_dir in $PATH
14049 test -z "$as_dir" && as_dir=.
14050 for ac_exec_ext in '' $ac_executable_extensions; do
14051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14052 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14062 RANLIB=$ac_cv_prog_RANLIB
14063 if test -n "$RANLIB"; then
14064 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14065 echo "${ECHO_T}$RANLIB" >&6; }
14067 { echo "$as_me:$LINENO: result: no" >&5
14068 echo "${ECHO_T}no" >&6; }
14073 if test -z "$ac_cv_prog_RANLIB"; then
14074 ac_ct_RANLIB=$RANLIB
14075 # Extract the first word of "ranlib", so it can be a program name with args.
14076 set dummy ranlib; ac_word=$2
14077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14079 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14082 if test -n "$ac_ct_RANLIB"; then
14083 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14086 for as_dir in $PATH
14089 test -z "$as_dir" && as_dir=.
14090 for ac_exec_ext in '' $ac_executable_extensions; do
14091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14092 ac_cv_prog_ac_ct_RANLIB="ranlib"
14093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14102 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14103 if test -n "$ac_ct_RANLIB"; then
14104 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14105 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14107 { echo "$as_me:$LINENO: result: no" >&5
14108 echo "${ECHO_T}no" >&6; }
14111 if test "x$ac_ct_RANLIB" = x; then
14114 case $cross_compiling:$ac_tool_warned in
14116 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14117 whose name does not start with the host triplet. If you think this
14118 configuration is useful to you, please write to autoconf@gnu.org." >&5
14119 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14120 whose name does not start with the host triplet. If you think this
14121 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14122 ac_tool_warned=yes ;;
14124 RANLIB=$ac_ct_RANLIB
14127 RANLIB="$ac_cv_prog_RANLIB"
14130 if test -n "$ac_tool_prefix"; then
14131 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14132 set dummy ${ac_tool_prefix}strip; ac_word=$2
14133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14135 if test "${ac_cv_prog_STRIP+set}" = set; then
14136 echo $ECHO_N "(cached) $ECHO_C" >&6
14138 if test -n "$STRIP"; then
14139 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14142 for as_dir in $PATH
14145 test -z "$as_dir" && as_dir=.
14146 for ac_exec_ext in '' $ac_executable_extensions; do
14147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14148 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14158 STRIP=$ac_cv_prog_STRIP
14159 if test -n "$STRIP"; then
14160 { echo "$as_me:$LINENO: result: $STRIP" >&5
14161 echo "${ECHO_T}$STRIP" >&6; }
14163 { echo "$as_me:$LINENO: result: no" >&5
14164 echo "${ECHO_T}no" >&6; }
14169 if test -z "$ac_cv_prog_STRIP"; then
14171 # Extract the first word of "strip", so it can be a program name with args.
14172 set dummy strip; ac_word=$2
14173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14175 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14176 echo $ECHO_N "(cached) $ECHO_C" >&6
14178 if test -n "$ac_ct_STRIP"; then
14179 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14182 for as_dir in $PATH
14185 test -z "$as_dir" && as_dir=.
14186 for ac_exec_ext in '' $ac_executable_extensions; do
14187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14188 ac_cv_prog_ac_ct_STRIP="strip"
14189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14198 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14199 if test -n "$ac_ct_STRIP"; then
14200 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14201 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14203 { echo "$as_me:$LINENO: result: no" >&5
14204 echo "${ECHO_T}no" >&6; }
14207 if test "x$ac_ct_STRIP" = x; then
14210 case $cross_compiling:$ac_tool_warned in
14212 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14213 whose name does not start with the host triplet. If you think this
14214 configuration is useful to you, please write to autoconf@gnu.org." >&5
14215 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14216 whose name does not start with the host triplet. If you think this
14217 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14218 ac_tool_warned=yes ;;
14223 STRIP="$ac_cv_prog_STRIP"
14228 old_CFLAGS="$CFLAGS"
14230 # Set sane defaults for various variables
14231 test -z "$AR" && AR=ar
14232 test -z "$AR_FLAGS" && AR_FLAGS=cru
14233 test -z "$AS" && AS=as
14234 test -z "$CC" && CC=cc
14235 test -z "$LTCC" && LTCC=$CC
14236 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14237 test -z "$DLLTOOL" && DLLTOOL=dlltool
14238 test -z "$LD" && LD=ld
14239 test -z "$LN_S" && LN_S="ln -s"
14240 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14241 test -z "$NM" && NM=nm
14242 test -z "$SED" && SED=sed
14243 test -z "$OBJDUMP" && OBJDUMP=objdump
14244 test -z "$RANLIB" && RANLIB=:
14245 test -z "$STRIP" && STRIP=:
14246 test -z "$ac_objext" && ac_objext=o
14248 # Determine commands to create old-style static archives.
14249 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14250 old_postinstall_cmds='chmod 644 $oldlib'
14251 old_postuninstall_cmds=
14253 if test -n "$RANLIB"; then
14256 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14259 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14262 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14265 for cc_temp in $compiler""; do
14267 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14268 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14273 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14276 # Only perform the check for file, if the check method requires it
14277 case $deplibs_check_method in
14279 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14280 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14281 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14282 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14283 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14290 lt_save_MAGIC_CMD="$MAGIC_CMD"
14291 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14292 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14293 for ac_dir in $ac_dummy; do
14295 test -z "$ac_dir" && ac_dir=.
14296 if test -f $ac_dir/${ac_tool_prefix}file; then
14297 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14298 if test -n "$file_magic_test_file"; then
14299 case $deplibs_check_method in
14301 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14302 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14303 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14304 $EGREP "$file_magic_regex" > /dev/null; then
14309 *** Warning: the command libtool uses to detect shared libraries,
14310 *** $file_magic_cmd, produces output that libtool cannot recognize.
14311 *** The result is that libtool may fail to recognize shared libraries
14312 *** as such. This will affect the creation of libtool libraries that
14313 *** depend on shared libraries, but programs linked with such libtool
14314 *** libraries will work regardless of this problem. Nevertheless, you
14315 *** may want to report the problem to your system manager and/or to
14316 *** bug-libtool@gnu.org
14326 MAGIC_CMD="$lt_save_MAGIC_CMD"
14331 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14332 if test -n "$MAGIC_CMD"; then
14333 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14334 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14336 { echo "$as_me:$LINENO: result: no" >&5
14337 echo "${ECHO_T}no" >&6; }
14340 if test -z "$lt_cv_path_MAGIC_CMD"; then
14341 if test -n "$ac_tool_prefix"; then
14342 { echo "$as_me:$LINENO: checking for file" >&5
14343 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14344 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14352 lt_save_MAGIC_CMD="$MAGIC_CMD"
14353 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14354 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14355 for ac_dir in $ac_dummy; do
14357 test -z "$ac_dir" && ac_dir=.
14358 if test -f $ac_dir/file; then
14359 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14360 if test -n "$file_magic_test_file"; then
14361 case $deplibs_check_method in
14363 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14364 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14365 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14366 $EGREP "$file_magic_regex" > /dev/null; then
14371 *** Warning: the command libtool uses to detect shared libraries,
14372 *** $file_magic_cmd, produces output that libtool cannot recognize.
14373 *** The result is that libtool may fail to recognize shared libraries
14374 *** as such. This will affect the creation of libtool libraries that
14375 *** depend on shared libraries, but programs linked with such libtool
14376 *** libraries will work regardless of this problem. Nevertheless, you
14377 *** may want to report the problem to your system manager and/or to
14378 *** bug-libtool@gnu.org
14388 MAGIC_CMD="$lt_save_MAGIC_CMD"
14393 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14394 if test -n "$MAGIC_CMD"; then
14395 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14396 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14398 { echo "$as_me:$LINENO: result: no" >&5
14399 echo "${ECHO_T}no" >&6; }
14412 enable_win32_dll=no
14414 # Check whether --enable-libtool-lock was given.
14415 if test "${enable_libtool_lock+set}" = set; then
14416 enableval=$enable_libtool_lock;
14419 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14422 # Check whether --with-pic was given.
14423 if test "${with_pic+set}" = set; then
14424 withval=$with_pic; pic_mode="$withval"
14429 test -z "$pic_mode" && pic_mode=default
14431 # Use C for the default configuration in the libtool script
14435 ac_cpp='$CPP $CPPFLAGS'
14436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14441 # Source file extension for C test sources.
14444 # Object file extension for compiled C test sources.
14448 # Code to be used in simple compile tests
14449 lt_simple_compile_test_code="int some_variable = 0;\n"
14451 # Code to be used in simple link tests
14452 lt_simple_link_test_code='int main(){return(0);}\n'
14455 # If no C compiler was specified, use CC.
14458 # If no C compiler flags were specified, use CFLAGS.
14459 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14461 # Allow CC to be a program name with arguments.
14465 # save warnings/boilerplate of simple test code
14466 ac_outfile=conftest.$ac_objext
14467 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14468 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14469 _lt_compiler_boilerplate=`cat conftest.err`
14472 ac_outfile=conftest.$ac_objext
14473 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14474 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14475 _lt_linker_boilerplate=`cat conftest.err`
14480 lt_prog_compiler_no_builtin_flag=
14482 if test "$GCC" = yes; then
14483 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14486 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14487 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14488 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14491 lt_cv_prog_compiler_rtti_exceptions=no
14492 ac_outfile=conftest.$ac_objext
14493 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14494 lt_compiler_flag="-fno-rtti -fno-exceptions"
14495 # Insert the option either (1) after the last *FLAGS variable, or
14496 # (2) before a word containing "conftest.", or (3) at the end.
14497 # Note that $ac_compile itself does not contain backslashes and begins
14498 # with a dollar sign (not a hyphen), so the echo should work correctly.
14499 # The option is referenced via a variable to avoid confusing sed.
14500 lt_compile=`echo "$ac_compile" | $SED \
14501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14503 -e 's:$: $lt_compiler_flag:'`
14504 (eval echo "\"\$as_me:14501: $lt_compile\"" >&5)
14505 (eval "$lt_compile" 2>conftest.err)
14507 cat conftest.err >&5
14508 echo "$as_me:14505: \$? = $ac_status" >&5
14509 if (exit $ac_status) && test -s "$ac_outfile"; then
14510 # The compiler can only warn and ignore the option if not recognized
14511 # So say no if there are warnings other than the usual output.
14512 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14513 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14514 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14515 lt_cv_prog_compiler_rtti_exceptions=yes
14521 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14522 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14524 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14525 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14532 lt_prog_compiler_wl=
14533 lt_prog_compiler_pic=
14534 lt_prog_compiler_static=
14536 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14537 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14539 if test "$GCC" = yes; then
14540 lt_prog_compiler_wl='-Wl,'
14541 lt_prog_compiler_static='-static'
14545 # All AIX code is PIC.
14546 if test "$host_cpu" = ia64; then
14547 # AIX 5 now supports IA64 processor
14548 lt_prog_compiler_static='-Bstatic'
14553 # FIXME: we need at least 68020 code to build shared libraries, but
14554 # adding the `-m68020' flag to GCC prevents building anything better,
14556 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14559 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14560 # PIC is the default for these OSes.
14563 mingw* | pw32* | os2*)
14564 # This hack is so that the source file can tell whether it is being
14565 # built for inclusion in a dll (and should export symbols for example).
14566 lt_prog_compiler_pic='-DDLL_EXPORT'
14569 darwin* | rhapsody*)
14570 # PIC is the default on this platform
14571 # Common symbols not allowed in MH_DYLIB files
14572 lt_prog_compiler_pic='-fno-common'
14576 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14577 # Instead, we relocate shared libraries at runtime.
14581 # Just because we use GCC doesn't mean we suddenly get shared libraries
14582 # on systems that don't support them.
14583 lt_prog_compiler_can_build_shared=no
14588 if test -d /usr/nec; then
14589 lt_prog_compiler_pic=-Kconform_pic
14594 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14595 # not for PA HP-UX.
14601 lt_prog_compiler_pic='-fPIC'
14607 lt_prog_compiler_pic='-fPIC'
14611 # PORTME Check for flag to pass linker flags through the system compiler.
14614 lt_prog_compiler_wl='-Wl,'
14615 if test "$host_cpu" = ia64; then
14616 # AIX 5 now supports IA64 processor
14617 lt_prog_compiler_static='-Bstatic'
14619 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14623 # PIC is the default on this platform
14624 # Common symbols not allowed in MH_DYLIB files
14625 case $cc_basename in
14627 lt_prog_compiler_pic='-qnocommon'
14628 lt_prog_compiler_wl='-Wl,'
14633 mingw* | pw32* | os2*)
14634 # This hack is so that the source file can tell whether it is being
14635 # built for inclusion in a dll (and should export symbols for example).
14636 lt_prog_compiler_pic='-DDLL_EXPORT'
14639 hpux9* | hpux10* | hpux11*)
14640 lt_prog_compiler_wl='-Wl,'
14641 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14642 # not for PA HP-UX.
14648 lt_prog_compiler_pic='+Z'
14651 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14652 lt_prog_compiler_static='${wl}-a ${wl}archive'
14655 irix5* | irix6* | nonstopux*)
14656 lt_prog_compiler_wl='-Wl,'
14657 # PIC (with -KPIC) is the default.
14658 lt_prog_compiler_static='-non_shared'
14662 lt_prog_compiler_pic='-KPIC'
14663 lt_prog_compiler_static='-Bstatic'
14667 case $cc_basename in
14669 lt_prog_compiler_wl='-Wl,'
14670 lt_prog_compiler_pic='-KPIC'
14671 lt_prog_compiler_static='-static'
14673 pgcc* | pgf77* | pgf90* | pgf95*)
14674 # Portland Group compilers (*not* the Pentium gcc compiler,
14675 # which looks to be a dead project)
14676 lt_prog_compiler_wl='-Wl,'
14677 lt_prog_compiler_pic='-fpic'
14678 lt_prog_compiler_static='-Bstatic'
14681 lt_prog_compiler_wl='-Wl,'
14682 # All Alpha code is PIC.
14683 lt_prog_compiler_static='-non_shared'
14688 osf3* | osf4* | osf5*)
14689 lt_prog_compiler_wl='-Wl,'
14690 # All OSF/1 code is PIC.
14691 lt_prog_compiler_static='-non_shared'
14695 lt_prog_compiler_pic='-KPIC'
14696 lt_prog_compiler_static='-Bstatic'
14697 case $cc_basename in
14698 f77* | f90* | f95*)
14699 lt_prog_compiler_wl='-Qoption ld ';;
14701 lt_prog_compiler_wl='-Wl,';;
14706 lt_prog_compiler_wl='-Qoption ld '
14707 lt_prog_compiler_pic='-PIC'
14708 lt_prog_compiler_static='-Bstatic'
14711 sysv4 | sysv4.2uw2* | sysv4.3*)
14712 lt_prog_compiler_wl='-Wl,'
14713 lt_prog_compiler_pic='-KPIC'
14714 lt_prog_compiler_static='-Bstatic'
14718 if test -d /usr/nec ;then
14719 lt_prog_compiler_pic='-Kconform_pic'
14720 lt_prog_compiler_static='-Bstatic'
14724 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14725 lt_prog_compiler_wl='-Wl,'
14726 lt_prog_compiler_pic='-KPIC'
14727 lt_prog_compiler_static='-Bstatic'
14731 lt_prog_compiler_wl='-Wl,'
14732 lt_prog_compiler_can_build_shared=no
14736 lt_prog_compiler_pic='-pic'
14737 lt_prog_compiler_static='-Bstatic'
14741 lt_prog_compiler_can_build_shared=no
14746 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14747 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14750 # Check to make sure the PIC flag actually works.
14752 if test -n "$lt_prog_compiler_pic"; then
14754 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14755 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14756 if test "${lt_prog_compiler_pic_works+set}" = set; then
14757 echo $ECHO_N "(cached) $ECHO_C" >&6
14759 lt_prog_compiler_pic_works=no
14760 ac_outfile=conftest.$ac_objext
14761 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14762 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14763 # Insert the option either (1) after the last *FLAGS variable, or
14764 # (2) before a word containing "conftest.", or (3) at the end.
14765 # Note that $ac_compile itself does not contain backslashes and begins
14766 # with a dollar sign (not a hyphen), so the echo should work correctly.
14767 # The option is referenced via a variable to avoid confusing sed.
14768 lt_compile=`echo "$ac_compile" | $SED \
14769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14771 -e 's:$: $lt_compiler_flag:'`
14772 (eval echo "\"\$as_me:14769: $lt_compile\"" >&5)
14773 (eval "$lt_compile" 2>conftest.err)
14775 cat conftest.err >&5
14776 echo "$as_me:14773: \$? = $ac_status" >&5
14777 if (exit $ac_status) && test -s "$ac_outfile"; then
14778 # The compiler can only warn and ignore the option if not recognized
14779 # So say no if there are warnings other than the usual output.
14780 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14782 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14783 lt_prog_compiler_pic_works=yes
14789 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14790 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14792 if test x"$lt_prog_compiler_pic_works" = xyes; then
14793 case $lt_prog_compiler_pic in
14795 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14798 lt_prog_compiler_pic=
14799 lt_prog_compiler_can_build_shared=no
14804 # For platforms which do not support PIC, -DPIC is meaningless:
14806 lt_prog_compiler_pic=
14809 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14814 # Check to make sure the static flag actually works.
14816 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14817 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14818 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14819 if test "${lt_prog_compiler_static_works+set}" = set; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
14822 lt_prog_compiler_static_works=no
14823 save_LDFLAGS="$LDFLAGS"
14824 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14825 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14826 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14827 # The linker can only warn and ignore the option if not recognized
14828 # So say no if there are warnings
14829 if test -s conftest.err; then
14830 # Append any errors to the config.log.
14831 cat conftest.err 1>&5
14832 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14834 if diff conftest.exp conftest.er2 >/dev/null; then
14835 lt_prog_compiler_static_works=yes
14838 lt_prog_compiler_static_works=yes
14842 LDFLAGS="$save_LDFLAGS"
14845 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14846 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14848 if test x"$lt_prog_compiler_static_works" = xyes; then
14851 lt_prog_compiler_static=
14855 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14856 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14857 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14858 echo $ECHO_N "(cached) $ECHO_C" >&6
14860 lt_cv_prog_compiler_c_o=no
14861 $rm -r conftest 2>/dev/null
14865 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14867 lt_compiler_flag="-o out/conftest2.$ac_objext"
14868 # Insert the option either (1) after the last *FLAGS variable, or
14869 # (2) before a word containing "conftest.", or (3) at the end.
14870 # Note that $ac_compile itself does not contain backslashes and begins
14871 # with a dollar sign (not a hyphen), so the echo should work correctly.
14872 lt_compile=`echo "$ac_compile" | $SED \
14873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14875 -e 's:$: $lt_compiler_flag:'`
14876 (eval echo "\"\$as_me:14873: $lt_compile\"" >&5)
14877 (eval "$lt_compile" 2>out/conftest.err)
14879 cat out/conftest.err >&5
14880 echo "$as_me:14877: \$? = $ac_status" >&5
14881 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14883 # The compiler can only warn and ignore the option if not recognized
14884 # So say no if there are warnings
14885 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14886 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14887 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14888 lt_cv_prog_compiler_c_o=yes
14893 # SGI C++ compiler will create directory out/ii_files/ for
14894 # template instantiation
14895 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14896 $rm out/* && rmdir out
14902 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14903 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14906 hard_links="nottested"
14907 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14908 # do not overwrite the value of need_locks provided by the user
14909 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14910 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14913 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14915 ln conftest.a conftest.b 2>&5 || hard_links=no
14916 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14917 { echo "$as_me:$LINENO: result: $hard_links" >&5
14918 echo "${ECHO_T}$hard_links" >&6; }
14919 if test "$hard_links" = no; then
14920 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14921 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14928 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14929 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14932 allow_undefined_flag=
14933 enable_shared_with_static_runtimes=no
14935 archive_expsym_cmds=
14936 old_archive_From_new_cmds=
14937 old_archive_from_expsyms_cmds=
14938 export_dynamic_flag_spec=
14939 whole_archive_flag_spec=
14940 thread_safe_flag_spec=
14941 hardcode_libdir_flag_spec=
14942 hardcode_libdir_flag_spec_ld=
14943 hardcode_libdir_separator=
14945 hardcode_minus_L=no
14946 hardcode_shlibpath_var=unsupported
14947 link_all_deplibs=unknown
14948 hardcode_automatic=no
14950 module_expsym_cmds=
14951 always_export_symbols=no
14952 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14953 # include_expsyms should be a list of space-separated symbols to be *always*
14954 # included in the symbol list
14956 # exclude_expsyms can be an extended regexp of symbols to exclude
14957 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14958 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14959 # as well as any symbol that contains `d'.
14960 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14961 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14962 # platforms (ab)use it in PIC code, but their linkers get confused if
14963 # the symbol is explicitly referenced. Since portable code cannot
14964 # rely on this symbol name, it's probably fine to never include it in
14965 # preloaded symbol tables.
14966 extract_expsyms_cmds=
14967 # Just being paranoid about ensuring that cc_basename is set.
14968 for cc_temp in $compiler""; do
14970 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14971 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14976 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14979 cygwin* | mingw* | pw32*)
14980 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14981 # When not using gcc, we currently assume that we are using
14982 # Microsoft Visual C++.
14983 if test "$GCC" != yes; then
14988 # we just hope/assume this is gcc and not c89 (= MSVC++)
14997 if test "$with_gnu_ld" = yes; then
14998 # If archive_cmds runs LD, not CC, wlarc should be empty
15001 # Set some defaults for GNU ld with shared library support. These
15002 # are reset later if shared libraries are not supported. Putting them
15003 # here allows them to be overridden if necessary.
15004 runpath_var=LD_RUN_PATH
15005 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15006 export_dynamic_flag_spec='${wl}--export-dynamic'
15007 # ancient GNU ld didn't support --whole-archive et. al.
15008 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15009 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15011 whole_archive_flag_spec=
15013 supports_anon_versioning=no
15014 case `$LD -v 2>/dev/null` in
15015 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15016 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15017 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15018 *\ 2.11.*) ;; # other 2.11 versions
15019 *) supports_anon_versioning=yes ;;
15022 # See if GNU ld supports shared libraries.
15024 aix3* | aix4* | aix5*)
15025 # On AIX/PPC, the GNU linker is very broken
15026 if test "$host_cpu" != ia64; then
15030 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15031 *** to be unable to reliably create shared libraries on AIX.
15032 *** Therefore, libtool is disabling shared libraries support. If you
15033 *** really care for shared libraries, you may want to modify your PATH
15034 *** so that a non-GNU linker is found, and then restart.
15041 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)'
15042 hardcode_libdir_flag_spec='-L$libdir'
15043 hardcode_minus_L=yes
15045 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15046 # that the semantics of dynamic libraries on AmigaOS, at least up
15047 # to version 4, is to share data among multiple programs linked
15048 # with the same dynamic library. Since this doesn't match the
15049 # behavior of shared libraries on other platforms, we can't use
15055 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15056 allow_undefined_flag=unsupported
15057 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15058 # support --undefined. This deserves some investigation. FIXME
15059 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15065 cygwin* | mingw* | pw32*)
15066 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15067 # as there is no search path for DLLs.
15068 hardcode_libdir_flag_spec='-L$libdir'
15069 allow_undefined_flag=unsupported
15070 always_export_symbols=no
15071 enable_shared_with_static_runtimes=yes
15072 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15074 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15075 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15076 # If the export-symbols file already is a .def file (1st line
15077 # is EXPORTS), use it as is; otherwise, prepend...
15078 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15079 cp $export_symbols $output_objdir/$soname.def;
15081 echo EXPORTS > $output_objdir/$soname.def;
15082 cat $export_symbols >> $output_objdir/$soname.def;
15084 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15092 hardcode_shlibpath_var=no
15093 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15094 export_dynamic_flag_spec='${wl}-E'
15095 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15096 # Instead, shared libraries are loaded at an image base (0x10000000 by
15097 # default) and relocated if they conflict, which is a slow very memory
15098 # consuming and fragmenting process. To avoid this, we pick a random,
15099 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15100 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15101 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15102 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'
15106 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15108 case $cc_basename,$host_cpu in
15109 pgcc*) # Portland Group C compiler
15110 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'
15111 tmp_addflag=' $pic_flag'
15113 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15114 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'
15115 tmp_addflag=' $pic_flag -Mnomain' ;;
15116 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15117 tmp_addflag=' -i_dynamic' ;;
15118 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15119 tmp_addflag=' -i_dynamic -nofor_main' ;;
15120 ifc* | ifort*) # Intel Fortran compiler
15121 tmp_addflag=' -nofor_main' ;;
15123 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15125 if test $supports_anon_versioning = yes; then
15126 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15127 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15128 $echo "local: *; };" >> $output_objdir/$libname.ver~
15129 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15137 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15138 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15142 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15147 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15151 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15152 *** create shared libraries on Solaris systems. Therefore, libtool
15153 *** is disabling shared libraries support. We urge you to upgrade GNU
15154 *** binutils to release 2.9.1 or newer. Another option is to modify
15155 *** your PATH or compiler configuration so that the native linker is
15156 *** used, and then restart.
15159 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15161 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15167 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15168 case `$LD -v 2>&1` in
15169 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15173 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15174 *** reliably create shared libraries on SCO systems. Therefore, libtool
15175 *** is disabling shared libraries support. We urge you to upgrade GNU
15176 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15177 *** your PATH or compiler configuration so that the native linker is
15178 *** used, and then restart.
15183 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15184 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15186 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15195 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15197 hardcode_direct=yes
15198 hardcode_shlibpath_var=no
15202 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15204 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15211 if test "$ld_shlibs" = no; then
15213 hardcode_libdir_flag_spec=
15214 export_dynamic_flag_spec=
15215 whole_archive_flag_spec=
15218 # PORTME fill in a description of your system's linker (not GNU ld)
15221 allow_undefined_flag=unsupported
15222 always_export_symbols=yes
15223 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'
15224 # Note: this linker hardcodes the directories in LIBPATH if there
15225 # are no directories specified by -L.
15226 hardcode_minus_L=yes
15227 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15228 # Neither direct hardcoding nor static linking is supported with a
15230 hardcode_direct=unsupported
15235 if test "$host_cpu" = ia64; then
15236 # On IA64, the linker does run time linking by default, so we don't
15237 # have to do anything special.
15238 aix_use_runtimelinking=no
15239 exp_sym_flag='-Bexport'
15242 # If we're using GNU nm, then we don't want the "-C" option.
15243 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15244 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15245 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'
15247 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'
15249 aix_use_runtimelinking=no
15251 # Test if we are trying to use run time linking or normal
15252 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15253 # need to do runtime linking.
15254 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15255 for ld_flag in $LDFLAGS; do
15256 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15257 aix_use_runtimelinking=yes
15264 exp_sym_flag='-bexport'
15265 no_entry_flag='-bnoentry'
15268 # When large executables or shared objects are built, AIX ld can
15269 # have problems creating the table of contents. If linking a library
15270 # or program results in "error TOC overflow" add -mminimal-toc to
15271 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15272 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15275 hardcode_direct=yes
15276 hardcode_libdir_separator=':'
15277 link_all_deplibs=yes
15279 if test "$GCC" = yes; then
15280 case $host_os in aix4.[012]|aix4.[012].*)
15281 # We only want to do this on AIX 4.2 and lower, the check
15282 # below for broken collect2 doesn't work under 4.3+
15283 collect2name=`${CC} -print-prog-name=collect2`
15284 if test -f "$collect2name" && \
15285 strings "$collect2name" | grep resolve_lib_name >/dev/null
15287 # We have reworked collect2
15288 hardcode_direct=yes
15290 # We have old collect2
15291 hardcode_direct=unsupported
15292 # It fails to find uninstalled libraries when the uninstalled
15293 # path is not listed in the libpath. Setting hardcode_minus_L
15294 # to unsupported forces relinking
15295 hardcode_minus_L=yes
15296 hardcode_libdir_flag_spec='-L$libdir'
15297 hardcode_libdir_separator=
15301 shared_flag='-shared'
15302 if test "$aix_use_runtimelinking" = yes; then
15303 shared_flag="$shared_flag "'${wl}-G'
15307 if test "$host_cpu" = ia64; then
15308 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15309 # chokes on -Wl,-G. The following line is correct:
15312 if test "$aix_use_runtimelinking" = yes; then
15313 shared_flag='${wl}-G'
15315 shared_flag='${wl}-bM:SRE'
15320 # It seems that -bexpall does not export symbols beginning with
15321 # underscore (_), so it is better to generate a list of symbols to export.
15322 always_export_symbols=yes
15323 if test "$aix_use_runtimelinking" = yes; then
15324 # Warning - without using the other runtime loading flags (-brtl),
15325 # -berok will link without error, but may produce a broken library.
15326 allow_undefined_flag='-berok'
15327 # Determine the default libpath from the value encoded in an empty executable.
15328 cat >conftest.$ac_ext <<_ACEOF
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h. */
15343 rm -f conftest.$ac_objext conftest$ac_exeext
15344 if { (ac_try="$ac_link"
15345 case "(($ac_try" in
15346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15347 *) ac_try_echo=$ac_try;;
15349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15350 (eval "$ac_link") 2>conftest.er1
15352 grep -v '^ *+' conftest.er1 >conftest.err
15354 cat conftest.err >&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); } &&
15357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15358 { (case "(($ac_try" in
15359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15360 *) ac_try_echo=$ac_try;;
15362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15363 (eval "$ac_try") 2>&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); }; } &&
15367 { ac_try='test -s conftest$ac_exeext'
15368 { (case "(($ac_try" in
15369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15370 *) ac_try_echo=$ac_try;;
15372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15373 (eval "$ac_try") 2>&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); }; }; then
15378 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15380 # Check for a 64-bit object if we didn't find anything.
15381 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; }
15384 echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15390 rm -f core conftest.err conftest.$ac_objext \
15391 conftest$ac_exeext conftest.$ac_ext
15392 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15394 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15395 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"
15397 if test "$host_cpu" = ia64; then
15398 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15399 allow_undefined_flag="-z nodefs"
15400 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"
15402 # Determine the default libpath from the value encoded in an empty executable.
15403 cat >conftest.$ac_ext <<_ACEOF
15406 cat confdefs.h >>conftest.$ac_ext
15407 cat >>conftest.$ac_ext <<_ACEOF
15408 /* end confdefs.h. */
15418 rm -f conftest.$ac_objext conftest$ac_exeext
15419 if { (ac_try="$ac_link"
15420 case "(($ac_try" in
15421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15422 *) ac_try_echo=$ac_try;;
15424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15425 (eval "$ac_link") 2>conftest.er1
15427 grep -v '^ *+' conftest.er1 >conftest.err
15429 cat conftest.err >&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); } &&
15432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15433 { (case "(($ac_try" in
15434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15435 *) ac_try_echo=$ac_try;;
15437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15438 (eval "$ac_try") 2>&5
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; } &&
15442 { ac_try='test -s conftest$ac_exeext'
15443 { (case "(($ac_try" in
15444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15445 *) ac_try_echo=$ac_try;;
15447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15448 (eval "$ac_try") 2>&5
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; }; then
15453 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15455 # Check for a 64-bit object if we didn't find anything.
15456 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; }
15459 echo "$as_me: failed program was:" >&5
15460 sed 's/^/| /' conftest.$ac_ext >&5
15465 rm -f core conftest.err conftest.$ac_objext \
15466 conftest$ac_exeext conftest.$ac_ext
15467 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15469 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15470 # Warning - without using the other run time loading flags,
15471 # -berok will link without error, but may produce a broken library.
15472 no_undefined_flag=' ${wl}-bernotok'
15473 allow_undefined_flag=' ${wl}-berok'
15474 # Exported symbols can be pulled into shared objects from archives
15475 whole_archive_flag_spec='$convenience'
15476 archive_cmds_need_lc=yes
15477 # This is similar to how AIX traditionally builds its shared libraries.
15478 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'
15484 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)'
15485 hardcode_libdir_flag_spec='-L$libdir'
15486 hardcode_minus_L=yes
15487 # see comment about different semantics on the GNU ld section
15492 export_dynamic_flag_spec=-rdynamic
15495 cygwin* | mingw* | pw32*)
15496 # When not using gcc, we currently assume that we are using
15497 # Microsoft Visual C++.
15498 # hardcode_libdir_flag_spec is actually meaningless, as there is
15499 # no search path for DLLs.
15500 hardcode_libdir_flag_spec=' '
15501 allow_undefined_flag=unsupported
15502 # Tell ltmain to make .lib files, not .a files.
15504 # Tell ltmain to make .dll files, not .so files.
15506 # FIXME: Setting linknames here is a bad hack.
15507 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15508 # The linker will automatically build a .lib file if we build a DLL.
15509 old_archive_From_new_cmds='true'
15510 # FIXME: Should let the user specify the lib program.
15511 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15512 fix_srcfile_path='`cygpath -w "$srcfile"`'
15513 enable_shared_with_static_runtimes=yes
15516 darwin* | rhapsody*)
15518 rhapsody* | darwin1.[012])
15519 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15522 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15523 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15525 case ${MACOSX_DEPLOYMENT_TARGET} in
15527 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15530 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15536 archive_cmds_need_lc=no
15538 hardcode_automatic=yes
15539 hardcode_shlibpath_var=unsupported
15540 whole_archive_flag_spec=''
15541 link_all_deplibs=yes
15542 if test "$GCC" = yes ; then
15543 output_verbose_link_cmd='echo'
15544 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15545 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15546 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15547 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}'
15548 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}'
15550 case $cc_basename in
15552 output_verbose_link_cmd='echo'
15553 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15554 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15555 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15556 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}'
15557 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}'
15567 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15568 hardcode_libdir_flag_spec='-L$libdir'
15569 hardcode_shlibpath_var=no
15576 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15577 # support. Future versions do this automatically, but an explicit c++rt0.o
15578 # does not break anything, and helps significantly (at the cost of a little
15581 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15582 hardcode_libdir_flag_spec='-R$libdir'
15583 hardcode_direct=yes
15584 hardcode_shlibpath_var=no
15587 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15589 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15590 hardcode_direct=yes
15591 hardcode_minus_L=yes
15592 hardcode_shlibpath_var=no
15595 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15596 freebsd* | kfreebsd*-gnu | dragonfly*)
15597 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15598 hardcode_libdir_flag_spec='-R$libdir'
15599 hardcode_direct=yes
15600 hardcode_shlibpath_var=no
15604 if test "$GCC" = yes; then
15605 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'
15607 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'
15609 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15610 hardcode_libdir_separator=:
15611 hardcode_direct=yes
15613 # hardcode_minus_L: Not really in the search PATH,
15614 # but as the default location of the library.
15615 hardcode_minus_L=yes
15616 export_dynamic_flag_spec='${wl}-E'
15620 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15621 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15623 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15625 if test "$with_gnu_ld" = no; then
15626 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15627 hardcode_libdir_separator=:
15629 hardcode_direct=yes
15630 export_dynamic_flag_spec='${wl}-E'
15632 # hardcode_minus_L: Not really in the search PATH,
15633 # but as the default location of the library.
15634 hardcode_minus_L=yes
15639 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15642 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15645 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15648 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15654 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15657 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15660 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15664 if test "$with_gnu_ld" = no; then
15665 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15666 hardcode_libdir_separator=:
15670 hardcode_libdir_flag_spec_ld='+b $libdir'
15672 hardcode_shlibpath_var=no
15675 hardcode_direct=yes
15676 export_dynamic_flag_spec='${wl}-E'
15678 # hardcode_minus_L: Not really in the search PATH,
15679 # but as the default location of the library.
15680 hardcode_minus_L=yes
15686 irix5* | irix6* | nonstopux*)
15687 if test "$GCC" = yes; then
15688 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'
15690 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'
15691 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15693 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15694 hardcode_libdir_separator=:
15695 link_all_deplibs=yes
15699 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15700 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15702 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15704 hardcode_libdir_flag_spec='-R$libdir'
15705 hardcode_direct=yes
15706 hardcode_shlibpath_var=no
15710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15711 hardcode_direct=yes
15712 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15713 hardcode_libdir_separator=:
15714 hardcode_shlibpath_var=no
15718 hardcode_direct=yes
15719 hardcode_shlibpath_var=no
15720 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15721 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15722 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15723 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15724 export_dynamic_flag_spec='${wl}-E'
15727 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15728 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15729 hardcode_libdir_flag_spec='-R$libdir'
15732 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15733 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15740 hardcode_libdir_flag_spec='-L$libdir'
15741 hardcode_minus_L=yes
15742 allow_undefined_flag=unsupported
15743 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'
15744 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15748 if test "$GCC" = yes; then
15749 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15750 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'
15752 allow_undefined_flag=' -expect_unresolved \*'
15753 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'
15755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15756 hardcode_libdir_separator=:
15759 osf4* | osf5*) # as osf3* with the addition of -msym flag
15760 if test "$GCC" = yes; then
15761 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15762 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'
15763 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15765 allow_undefined_flag=' -expect_unresolved \*'
15766 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'
15767 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15768 $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'
15770 # Both c and cxx compiler support -rpath directly
15771 hardcode_libdir_flag_spec='-rpath $libdir'
15773 hardcode_libdir_separator=:
15777 no_undefined_flag=' -z text'
15778 if test "$GCC" = yes; then
15780 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15781 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15782 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15785 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15786 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15787 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15789 hardcode_libdir_flag_spec='-R$libdir'
15790 hardcode_shlibpath_var=no
15792 solaris2.[0-5] | solaris2.[0-5].*) ;;
15794 # The compiler driver will combine linker options so we
15795 # cannot just pass the convience library names through
15796 # without $wl, iff we do not link with $LD.
15797 # Luckily, gcc supports the same syntax we need for Sun Studio.
15798 # Supported since Solaris 2.6 (maybe 2.5.1?)
15801 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15803 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' ;;
15806 link_all_deplibs=yes
15810 if test "x$host_vendor" = xsequent; then
15811 # Use $CC to link under sequent, because it throws in some extra .o
15812 # files that make .init and .fini sections work.
15813 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15815 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15817 hardcode_libdir_flag_spec='-L$libdir'
15818 hardcode_direct=yes
15819 hardcode_minus_L=yes
15820 hardcode_shlibpath_var=no
15824 case $host_vendor in
15826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15827 hardcode_direct=yes # is this really true???
15830 ## LD is ld it makes a PLAMLIB
15831 ## CC just makes a GrossModule.
15832 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15833 reload_cmds='$CC -r -o $output$reload_objs'
15837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15838 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15841 runpath_var='LD_RUN_PATH'
15842 hardcode_shlibpath_var=no
15846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15847 hardcode_shlibpath_var=no
15848 export_dynamic_flag_spec='-Bexport'
15852 if test -d /usr/nec; then
15853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15854 hardcode_shlibpath_var=no
15855 runpath_var=LD_RUN_PATH
15856 hardcode_runpath_var=yes
15861 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15862 no_undefined_flag='${wl}-z,text'
15863 archive_cmds_need_lc=no
15864 hardcode_shlibpath_var=no
15865 runpath_var='LD_RUN_PATH'
15867 if test "$GCC" = yes; then
15868 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15869 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15871 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15872 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15876 sysv5* | sco3.2v5* | sco5v6*)
15877 # Note: We can NOT use -z defs as we might desire, because we do not
15878 # link with -lc, and that would cause any symbols used from libc to
15879 # always be unresolved, which means just about no library would
15880 # ever link correctly. If we're not using GNU ld we use -z text
15881 # though, which does catch some bad symbols but isn't as heavy-handed
15883 no_undefined_flag='${wl}-z,text'
15884 allow_undefined_flag='${wl}-z,nodefs'
15885 archive_cmds_need_lc=no
15886 hardcode_shlibpath_var=no
15887 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15888 hardcode_libdir_separator=':'
15889 link_all_deplibs=yes
15890 export_dynamic_flag_spec='${wl}-Bexport'
15891 runpath_var='LD_RUN_PATH'
15893 if test "$GCC" = yes; then
15894 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15895 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15897 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15898 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15904 hardcode_libdir_flag_spec='-L$libdir'
15905 hardcode_shlibpath_var=no
15914 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15915 echo "${ECHO_T}$ld_shlibs" >&6; }
15916 test "$ld_shlibs" = no && can_build_shared=no
15919 # Do we need to explicitly link libc?
15921 case "x$archive_cmds_need_lc" in
15923 # Assume -lc should be added
15924 archive_cmds_need_lc=yes
15926 if test "$enable_shared" = yes && test "$GCC" = yes; then
15927 case $archive_cmds in
15929 # FIXME: we may have to deal with multi-command sequences.
15932 # Test whether the compiler implicitly links with -lc since on some
15933 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15934 # to ld, don't add -lc before -lgcc.
15935 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15936 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15938 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15941 (eval $ac_compile) 2>&5
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); } 2>conftest.err; then
15947 libobjs=conftest.$ac_objext
15949 wl=$lt_prog_compiler_wl
15950 pic_flag=$lt_prog_compiler_pic
15956 lt_save_allow_undefined_flag=$allow_undefined_flag
15957 allow_undefined_flag=
15958 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15959 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); }
15964 archive_cmds_need_lc=no
15966 archive_cmds_need_lc=yes
15968 allow_undefined_flag=$lt_save_allow_undefined_flag
15970 cat conftest.err 1>&5
15973 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15974 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15981 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15982 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15983 library_names_spec=
15984 libname_spec='lib$name'
15988 postuninstall_cmds=
15992 shlibpath_overrides_runpath=unknown
15994 dynamic_linker="$host_os ld.so"
15995 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15996 if test "$GCC" = yes; then
15997 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15998 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15999 # if the path contains ";" then we assume it to be the separator
16000 # otherwise default to the standard path separator (i.e. ":") - it is
16001 # assumed that no part of a normal pathname contains ";" but that should
16002 # okay in the real world where ";" in dirpaths is itself problematic.
16003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16005 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16008 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16010 need_lib_prefix=unknown
16011 hardcode_into_libs=no
16013 # when you set need_version to no, make sure it does not cause -set_version
16014 # flags to be left without arguments
16015 need_version=unknown
16020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16021 shlibpath_var=LIBPATH
16023 # AIX 3 has no versioning support, so we append a major version to the name.
16024 soname_spec='${libname}${release}${shared_ext}$major'
16031 hardcode_into_libs=yes
16032 if test "$host_cpu" = ia64; then
16033 # AIX 5 supports IA64
16034 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16035 shlibpath_var=LD_LIBRARY_PATH
16037 # With GCC up to 2.95.x, collect2 would create an import file
16038 # for dependence libraries. The import file would start with
16039 # the line `#! .'. This would cause the generated library to
16040 # depend on `.', always an invalid library. This was fixed in
16041 # development snapshots of GCC prior to 3.0.
16043 aix4 | aix4.[01] | aix4.[01].*)
16044 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16046 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16049 can_build_shared=no
16053 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16054 # soname into executable. Probably we can add versioning support to
16055 # collect2, so additional links can be useful in future.
16056 if test "$aix_use_runtimelinking" = yes; then
16057 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16058 # instead of lib<name>.a to let people know that these are not
16059 # typical AIX shared libraries.
16060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16062 # We preserve .a as extension for shared libraries through AIX4.2
16063 # and later when we are not doing run time linking.
16064 library_names_spec='${libname}${release}.a $libname.a'
16065 soname_spec='${libname}${release}${shared_ext}$major'
16067 shlibpath_var=LIBPATH
16072 library_names_spec='$libname.ixlibrary $libname.a'
16073 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16074 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'
16078 library_names_spec='${libname}${shared_ext}'
16079 dynamic_linker="$host_os ld.so"
16080 shlibpath_var=LIBRARY_PATH
16086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16087 soname_spec='${libname}${release}${shared_ext}$major'
16088 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16089 shlibpath_var=LD_LIBRARY_PATH
16090 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16091 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16092 # the default ld.so.conf also contains /usr/contrib/lib and
16093 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16094 # libtool to hard-code these into programs
16097 cygwin* | mingw* | pw32*)
16098 version_type=windows
16103 case $GCC,$host_os in
16104 yes,cygwin* | yes,mingw* | yes,pw32*)
16105 library_names_spec='$libname.dll.a'
16106 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16107 postinstall_cmds='base_file=`basename \${file}`~
16108 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16109 dldir=$destdir/`dirname \$dlpath`~
16110 test -d \$dldir || mkdir -p \$dldir~
16111 $install_prog $dir/$dlname \$dldir/$dlname~
16112 chmod a+x \$dldir/$dlname'
16113 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16114 dlpath=$dir/\$dldll~
16116 shlibpath_overrides_runpath=yes
16120 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16121 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16122 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16125 # MinGW DLLs use traditional 'lib' prefix
16126 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16127 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16128 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16129 # It is most probably a Windows format PATH printed by
16130 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16131 # path with ; separators, and with drive letters. We can handle the
16132 # drive letters (cygwin fileutils understands them), so leave them,
16133 # especially as we might pass files found there to a mingw objdump,
16134 # which wouldn't understand a cygwinified path. Ahh.
16135 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16137 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16141 # pw32 DLLs use 'pw' prefix rather than 'lib'
16142 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16148 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16151 dynamic_linker='Win32 ld.exe'
16152 # FIXME: first we should search . and the directory the executable is in
16156 darwin* | rhapsody*)
16157 dynamic_linker="$host_os dyld"
16158 version_type=darwin
16161 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16162 soname_spec='${libname}${release}${major}$shared_ext'
16163 shlibpath_overrides_runpath=yes
16164 shlibpath_var=DYLD_LIBRARY_PATH
16165 shrext_cmds='.dylib'
16166 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16167 if test "$GCC" = yes; then
16168 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"`
16170 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16172 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16180 soname_spec='${libname}${release}${shared_ext}$major'
16181 shlibpath_var=LD_LIBRARY_PATH
16192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16193 soname_spec='${libname}${release}${shared_ext}$major'
16194 shlibpath_var=LD_LIBRARY_PATH
16195 shlibpath_overrides_runpath=no
16196 hardcode_into_libs=yes
16197 dynamic_linker='GNU ld.so'
16200 freebsd* | dragonfly*)
16201 # DragonFly does not have aout. When/if they implement a new
16202 # versioning mechanism, adjust this.
16203 if test -x /usr/bin/objformat; then
16204 objformat=`/usr/bin/objformat`
16207 freebsd[123]*) objformat=aout ;;
16208 *) objformat=elf ;;
16211 version_type=freebsd-$objformat
16212 case $version_type in
16214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16219 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16223 shlibpath_var=LD_LIBRARY_PATH
16226 shlibpath_overrides_runpath=yes
16228 freebsd3.[01]* | freebsdelf3.[01]*)
16229 shlibpath_overrides_runpath=yes
16230 hardcode_into_libs=yes
16232 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16233 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16234 shlibpath_overrides_runpath=no
16235 hardcode_into_libs=yes
16237 freebsd*) # from 4.6 on
16238 shlibpath_overrides_runpath=yes
16239 hardcode_into_libs=yes
16248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16249 soname_spec='${libname}${release}${shared_ext}$major'
16250 shlibpath_var=LD_LIBRARY_PATH
16251 hardcode_into_libs=yes
16254 hpux9* | hpux10* | hpux11*)
16255 # Give a soname corresponding to the major version so that dld.sl refuses to
16256 # link against other versions.
16263 hardcode_into_libs=yes
16264 dynamic_linker="$host_os dld.so"
16265 shlibpath_var=LD_LIBRARY_PATH
16266 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16268 soname_spec='${libname}${release}${shared_ext}$major'
16269 if test "X$HPUX_IA64_MODE" = X32; then
16270 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16272 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16278 hardcode_into_libs=yes
16279 dynamic_linker="$host_os dld.sl"
16280 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16283 soname_spec='${libname}${release}${shared_ext}$major'
16284 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16289 dynamic_linker="$host_os dld.sl"
16290 shlibpath_var=SHLIB_PATH
16291 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16293 soname_spec='${libname}${release}${shared_ext}$major'
16296 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16297 postinstall_cmds='chmod 555 $lib'
16304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16305 soname_spec='${libname}${release}${shared_ext}$major'
16306 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16307 shlibpath_var=LD_LIBRARY_PATH
16308 shlibpath_overrides_runpath=no
16309 hardcode_into_libs=yes
16312 irix5* | irix6* | nonstopux*)
16314 nonstopux*) version_type=nonstopux ;;
16316 if test "$lt_cv_prog_gnu_ld" = yes; then
16324 soname_spec='${libname}${release}${shared_ext}$major'
16325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16327 irix5* | nonstopux*)
16328 libsuff= shlibsuff=
16331 case $LD in # libtool.m4 will add one of these switches to LD
16332 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16333 libsuff= shlibsuff= libmagic=32-bit;;
16334 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16335 libsuff=32 shlibsuff=N32 libmagic=N32;;
16336 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16337 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16338 *) libsuff= shlibsuff= libmagic=never-match;;
16342 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16343 shlibpath_overrides_runpath=no
16344 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16345 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16346 hardcode_into_libs=yes
16349 # No shared lib support for Linux oldld, aout, or coff.
16350 linux*oldld* | linux*aout* | linux*coff*)
16354 # This must be Linux ELF.
16359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16360 soname_spec='${libname}${release}${shared_ext}$major'
16361 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16362 shlibpath_var=LD_LIBRARY_PATH
16363 shlibpath_overrides_runpath=no
16364 # This implies no fast_install, which is unacceptable.
16365 # Some rework will be needed to allow for fast_install
16366 # before this can be enabled.
16367 hardcode_into_libs=yes
16369 # Append ld.so.conf contents to the search path
16370 if test -f /etc/ld.so.conf; then
16371 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' ' '`
16372 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16375 # We used to test for /lib/ld.so.1 and disable shared libraries on
16376 # powerpc, because MkLinux only supported shared libraries with the
16377 # GNU dynamic linker. Since this was broken with cross compilers,
16378 # most powerpc-linux boxes support dynamic linking these days and
16379 # people can always --disable-shared, the test was removed, and we
16380 # assume the GNU/Linux dynamic linker is in use.
16381 dynamic_linker='GNU/Linux ld.so'
16388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16389 soname_spec='${libname}${release}${shared_ext}$major'
16390 shlibpath_var=LD_LIBRARY_PATH
16391 shlibpath_overrides_runpath=no
16392 hardcode_into_libs=yes
16393 dynamic_linker='GNU ld.so'
16400 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16403 dynamic_linker='NetBSD (a.out) ld.so'
16405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16406 soname_spec='${libname}${release}${shared_ext}$major'
16407 dynamic_linker='NetBSD ld.elf_so'
16409 shlibpath_var=LD_LIBRARY_PATH
16410 shlibpath_overrides_runpath=yes
16411 hardcode_into_libs=yes
16416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16417 shlibpath_var=LD_LIBRARY_PATH
16418 shlibpath_overrides_runpath=yes
16425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16426 soname_spec='${libname}${release}${shared_ext}$major'
16427 shlibpath_var=LD_LIBRARY_PATH
16428 shlibpath_overrides_runpath=yes
16433 sys_lib_dlsearch_path_spec="/usr/lib"
16435 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16437 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16438 *) need_version=no ;;
16440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16442 shlibpath_var=LD_LIBRARY_PATH
16443 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16445 openbsd2.[89] | openbsd2.[89].*)
16446 shlibpath_overrides_runpath=no
16449 shlibpath_overrides_runpath=yes
16453 shlibpath_overrides_runpath=yes
16458 libname_spec='$name'
16461 library_names_spec='$libname${shared_ext} $libname.a'
16462 dynamic_linker='OS/2 ld.exe'
16463 shlibpath_var=LIBPATH
16466 osf3* | osf4* | osf5*)
16470 soname_spec='${libname}${release}${shared_ext}$major'
16471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16472 shlibpath_var=LD_LIBRARY_PATH
16473 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16474 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16482 soname_spec='${libname}${release}${shared_ext}$major'
16483 shlibpath_var=LD_LIBRARY_PATH
16484 shlibpath_overrides_runpath=yes
16485 hardcode_into_libs=yes
16486 # ldd complains unless libraries are executable
16487 postinstall_cmds='chmod +x $lib'
16492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16493 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16494 shlibpath_var=LD_LIBRARY_PATH
16495 shlibpath_overrides_runpath=yes
16496 if test "$with_gnu_ld" = yes; then
16504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16505 soname_spec='${libname}${release}${shared_ext}$major'
16506 shlibpath_var=LD_LIBRARY_PATH
16507 case $host_vendor in
16509 shlibpath_overrides_runpath=no
16511 export_dynamic_flag_spec='${wl}-Blargedynsym'
16512 runpath_var=LD_RUN_PATH
16520 shlibpath_overrides_runpath=no
16521 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16527 if test -d /usr/nec ;then
16529 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16530 soname_spec='$libname${shared_ext}.$major'
16531 shlibpath_var=LD_LIBRARY_PATH
16535 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16536 version_type=freebsd-elf
16539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16540 soname_spec='${libname}${release}${shared_ext}$major'
16541 shlibpath_var=LD_LIBRARY_PATH
16542 hardcode_into_libs=yes
16543 if test "$with_gnu_ld" = yes; then
16544 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16545 shlibpath_overrides_runpath=no
16547 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16548 shlibpath_overrides_runpath=yes
16551 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16555 sys_lib_dlsearch_path_spec='/usr/lib'
16560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16561 soname_spec='${libname}${release}${shared_ext}$major'
16562 shlibpath_var=LD_LIBRARY_PATH
16569 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16570 echo "${ECHO_T}$dynamic_linker" >&6; }
16571 test "$dynamic_linker" = no && can_build_shared=no
16573 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16574 if test "$GCC" = yes; then
16575 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16578 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16579 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16581 if test -n "$hardcode_libdir_flag_spec" || \
16582 test -n "$runpath_var" || \
16583 test "X$hardcode_automatic" = "Xyes" ; then
16585 # We can hardcode non-existant directories.
16586 if test "$hardcode_direct" != no &&
16587 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16588 # have to relink, otherwise we might link with an installed library
16589 # when we should be linking with a yet-to-be-installed one
16590 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16591 test "$hardcode_minus_L" != no; then
16592 # Linking always hardcodes the temporary library directory.
16593 hardcode_action=relink
16595 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16596 hardcode_action=immediate
16599 # We cannot hardcode anything, or else we can only hardcode existing
16601 hardcode_action=unsupported
16603 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16604 echo "${ECHO_T}$hardcode_action" >&6; }
16606 if test "$hardcode_action" = relink; then
16607 # Fast installation is not supported
16608 enable_fast_install=no
16609 elif test "$shlibpath_overrides_runpath" = yes ||
16610 test "$enable_shared" = no; then
16611 # Fast installation is not necessary
16612 enable_fast_install=needless
16617 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16618 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16619 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16620 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16621 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16622 { echo "$as_me:$LINENO: result: yes" >&5
16623 echo "${ECHO_T}yes" >&6; }
16625 # FIXME - insert some real tests, host_os isn't really good enough
16628 if test -n "$STRIP" ; then
16629 striplib="$STRIP -x"
16630 { echo "$as_me:$LINENO: result: yes" >&5
16631 echo "${ECHO_T}yes" >&6; }
16633 { echo "$as_me:$LINENO: result: no" >&5
16634 echo "${ECHO_T}no" >&6; }
16638 { echo "$as_me:$LINENO: result: no" >&5
16639 echo "${ECHO_T}no" >&6; }
16644 if test "x$enable_dlopen" != xyes; then
16645 enable_dlopen=unknown
16646 enable_dlopen_self=unknown
16647 enable_dlopen_self_static=unknown
16654 lt_cv_dlopen="load_add_on"
16656 lt_cv_dlopen_self=yes
16660 lt_cv_dlopen="LoadLibrary"
16665 lt_cv_dlopen="dlopen"
16670 # if libdl is installed we need to link against it
16671 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16672 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16673 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16674 echo $ECHO_N "(cached) $ECHO_C" >&6
16676 ac_check_lib_save_LIBS=$LIBS
16678 cat >conftest.$ac_ext <<_ACEOF
16681 cat confdefs.h >>conftest.$ac_ext
16682 cat >>conftest.$ac_ext <<_ACEOF
16683 /* end confdefs.h. */
16685 /* Override any GCC internal prototype to avoid an error.
16686 Use char because int might match the return type of a GCC
16687 builtin and then its argument prototype would still apply. */
16700 rm -f conftest.$ac_objext conftest$ac_exeext
16701 if { (ac_try="$ac_link"
16702 case "(($ac_try" in
16703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16704 *) ac_try_echo=$ac_try;;
16706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16707 (eval "$ac_link") 2>conftest.er1
16709 grep -v '^ *+' conftest.er1 >conftest.err
16711 cat conftest.err >&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); } &&
16714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16715 { (case "(($ac_try" in
16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717 *) ac_try_echo=$ac_try;;
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_try") 2>&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; } &&
16724 { ac_try='test -s conftest$ac_exeext'
16725 { (case "(($ac_try" in
16726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727 *) ac_try_echo=$ac_try;;
16729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16730 (eval "$ac_try") 2>&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); }; }; then
16734 ac_cv_lib_dl_dlopen=yes
16736 echo "$as_me: failed program was:" >&5
16737 sed 's/^/| /' conftest.$ac_ext >&5
16739 ac_cv_lib_dl_dlopen=no
16742 rm -f core conftest.err conftest.$ac_objext \
16743 conftest$ac_exeext conftest.$ac_ext
16744 LIBS=$ac_check_lib_save_LIBS
16746 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16747 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16748 if test $ac_cv_lib_dl_dlopen = yes; then
16749 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16752 lt_cv_dlopen="dyld"
16754 lt_cv_dlopen_self=yes
16761 { echo "$as_me:$LINENO: checking for shl_load" >&5
16762 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16763 if test "${ac_cv_func_shl_load+set}" = set; then
16764 echo $ECHO_N "(cached) $ECHO_C" >&6
16766 cat >conftest.$ac_ext <<_ACEOF
16769 cat confdefs.h >>conftest.$ac_ext
16770 cat >>conftest.$ac_ext <<_ACEOF
16771 /* end confdefs.h. */
16772 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16774 #define shl_load innocuous_shl_load
16776 /* System header to define __stub macros and hopefully few prototypes,
16777 which can conflict with char shl_load (); below.
16778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16779 <limits.h> exists even on freestanding compilers. */
16782 # include <limits.h>
16784 # include <assert.h>
16789 /* Override any GCC internal prototype to avoid an error.
16790 Use char because int might match the return type of a GCC
16791 builtin and then its argument prototype would still apply. */
16796 /* The GNU C library defines this for functions which it implements
16797 to always fail with ENOSYS. Some functions are actually named
16798 something starting with __ and the normal name is an alias. */
16799 #if defined __stub_shl_load || defined __stub___shl_load
16806 return shl_load ();
16811 rm -f conftest.$ac_objext conftest$ac_exeext
16812 if { (ac_try="$ac_link"
16813 case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818 (eval "$ac_link") 2>conftest.er1
16820 grep -v '^ *+' conftest.er1 >conftest.err
16822 cat conftest.err >&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } &&
16825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16826 { (case "(($ac_try" in
16827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16828 *) ac_try_echo=$ac_try;;
16830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16831 (eval "$ac_try") 2>&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; } &&
16835 { ac_try='test -s conftest$ac_exeext'
16836 { (case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841 (eval "$ac_try") 2>&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; }; then
16845 ac_cv_func_shl_load=yes
16847 echo "$as_me: failed program was:" >&5
16848 sed 's/^/| /' conftest.$ac_ext >&5
16850 ac_cv_func_shl_load=no
16853 rm -f core conftest.err conftest.$ac_objext \
16854 conftest$ac_exeext conftest.$ac_ext
16856 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16857 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16858 if test $ac_cv_func_shl_load = yes; then
16859 lt_cv_dlopen="shl_load"
16861 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16862 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16863 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16866 ac_check_lib_save_LIBS=$LIBS
16868 cat >conftest.$ac_ext <<_ACEOF
16871 cat confdefs.h >>conftest.$ac_ext
16872 cat >>conftest.$ac_ext <<_ACEOF
16873 /* end confdefs.h. */
16875 /* Override any GCC internal prototype to avoid an error.
16876 Use char because int might match the return type of a GCC
16877 builtin and then its argument prototype would still apply. */
16885 return shl_load ();
16890 rm -f conftest.$ac_objext conftest$ac_exeext
16891 if { (ac_try="$ac_link"
16892 case "(($ac_try" in
16893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16894 *) ac_try_echo=$ac_try;;
16896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16897 (eval "$ac_link") 2>conftest.er1
16899 grep -v '^ *+' conftest.er1 >conftest.err
16901 cat conftest.err >&5
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); } &&
16904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16905 { (case "(($ac_try" in
16906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907 *) ac_try_echo=$ac_try;;
16909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910 (eval "$ac_try") 2>&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; } &&
16914 { ac_try='test -s conftest$ac_exeext'
16915 { (case "(($ac_try" in
16916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920 (eval "$ac_try") 2>&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; }; then
16924 ac_cv_lib_dld_shl_load=yes
16926 echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.$ac_ext >&5
16929 ac_cv_lib_dld_shl_load=no
16932 rm -f core conftest.err conftest.$ac_objext \
16933 conftest$ac_exeext conftest.$ac_ext
16934 LIBS=$ac_check_lib_save_LIBS
16936 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16937 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16938 if test $ac_cv_lib_dld_shl_load = yes; then
16939 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16941 { echo "$as_me:$LINENO: checking for dlopen" >&5
16942 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16943 if test "${ac_cv_func_dlopen+set}" = set; then
16944 echo $ECHO_N "(cached) $ECHO_C" >&6
16946 cat >conftest.$ac_ext <<_ACEOF
16949 cat confdefs.h >>conftest.$ac_ext
16950 cat >>conftest.$ac_ext <<_ACEOF
16951 /* end confdefs.h. */
16952 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16954 #define dlopen innocuous_dlopen
16956 /* System header to define __stub macros and hopefully few prototypes,
16957 which can conflict with char dlopen (); below.
16958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16959 <limits.h> exists even on freestanding compilers. */
16962 # include <limits.h>
16964 # include <assert.h>
16969 /* Override any GCC internal prototype to avoid an error.
16970 Use char because int might match the return type of a GCC
16971 builtin and then its argument prototype would still apply. */
16976 /* The GNU C library defines this for functions which it implements
16977 to always fail with ENOSYS. Some functions are actually named
16978 something starting with __ and the normal name is an alias. */
16979 #if defined __stub_dlopen || defined __stub___dlopen
16991 rm -f conftest.$ac_objext conftest$ac_exeext
16992 if { (ac_try="$ac_link"
16993 case "(($ac_try" in
16994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16995 *) ac_try_echo=$ac_try;;
16997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16998 (eval "$ac_link") 2>conftest.er1
17000 grep -v '^ *+' conftest.er1 >conftest.err
17002 cat conftest.err >&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); } &&
17005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17006 { (case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_try") 2>&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; } &&
17015 { ac_try='test -s conftest$ac_exeext'
17016 { (case "(($ac_try" in
17017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018 *) ac_try_echo=$ac_try;;
17020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17021 (eval "$ac_try") 2>&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; }; then
17025 ac_cv_func_dlopen=yes
17027 echo "$as_me: failed program was:" >&5
17028 sed 's/^/| /' conftest.$ac_ext >&5
17030 ac_cv_func_dlopen=no
17033 rm -f core conftest.err conftest.$ac_objext \
17034 conftest$ac_exeext conftest.$ac_ext
17036 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17037 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17038 if test $ac_cv_func_dlopen = yes; then
17039 lt_cv_dlopen="dlopen"
17041 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17042 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17043 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17044 echo $ECHO_N "(cached) $ECHO_C" >&6
17046 ac_check_lib_save_LIBS=$LIBS
17048 cat >conftest.$ac_ext <<_ACEOF
17051 cat confdefs.h >>conftest.$ac_ext
17052 cat >>conftest.$ac_ext <<_ACEOF
17053 /* end confdefs.h. */
17055 /* Override any GCC internal prototype to avoid an error.
17056 Use char because int might match the return type of a GCC
17057 builtin and then its argument prototype would still apply. */
17070 rm -f conftest.$ac_objext conftest$ac_exeext
17071 if { (ac_try="$ac_link"
17072 case "(($ac_try" in
17073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17074 *) ac_try_echo=$ac_try;;
17076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17077 (eval "$ac_link") 2>conftest.er1
17079 grep -v '^ *+' conftest.er1 >conftest.err
17081 cat conftest.err >&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } &&
17084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17085 { (case "(($ac_try" in
17086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17087 *) ac_try_echo=$ac_try;;
17089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17090 (eval "$ac_try") 2>&5
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); }; } &&
17094 { ac_try='test -s conftest$ac_exeext'
17095 { (case "(($ac_try" in
17096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17097 *) ac_try_echo=$ac_try;;
17099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100 (eval "$ac_try") 2>&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; }; then
17104 ac_cv_lib_dl_dlopen=yes
17106 echo "$as_me: failed program was:" >&5
17107 sed 's/^/| /' conftest.$ac_ext >&5
17109 ac_cv_lib_dl_dlopen=no
17112 rm -f core conftest.err conftest.$ac_objext \
17113 conftest$ac_exeext conftest.$ac_ext
17114 LIBS=$ac_check_lib_save_LIBS
17116 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17117 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17118 if test $ac_cv_lib_dl_dlopen = yes; then
17119 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17121 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17122 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17123 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17124 echo $ECHO_N "(cached) $ECHO_C" >&6
17126 ac_check_lib_save_LIBS=$LIBS
17127 LIBS="-lsvld $LIBS"
17128 cat >conftest.$ac_ext <<_ACEOF
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h. */
17135 /* Override any GCC internal prototype to avoid an error.
17136 Use char because int might match the return type of a GCC
17137 builtin and then its argument prototype would still apply. */
17150 rm -f conftest.$ac_objext conftest$ac_exeext
17151 if { (ac_try="$ac_link"
17152 case "(($ac_try" in
17153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17154 *) ac_try_echo=$ac_try;;
17156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17157 (eval "$ac_link") 2>conftest.er1
17159 grep -v '^ *+' conftest.er1 >conftest.err
17161 cat conftest.err >&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); } &&
17164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17165 { (case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170 (eval "$ac_try") 2>&5
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; } &&
17174 { ac_try='test -s conftest$ac_exeext'
17175 { (case "(($ac_try" in
17176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177 *) ac_try_echo=$ac_try;;
17179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180 (eval "$ac_try") 2>&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; }; then
17184 ac_cv_lib_svld_dlopen=yes
17186 echo "$as_me: failed program was:" >&5
17187 sed 's/^/| /' conftest.$ac_ext >&5
17189 ac_cv_lib_svld_dlopen=no
17192 rm -f core conftest.err conftest.$ac_objext \
17193 conftest$ac_exeext conftest.$ac_ext
17194 LIBS=$ac_check_lib_save_LIBS
17196 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17197 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17198 if test $ac_cv_lib_svld_dlopen = yes; then
17199 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17201 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17202 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17203 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17204 echo $ECHO_N "(cached) $ECHO_C" >&6
17206 ac_check_lib_save_LIBS=$LIBS
17208 cat >conftest.$ac_ext <<_ACEOF
17211 cat confdefs.h >>conftest.$ac_ext
17212 cat >>conftest.$ac_ext <<_ACEOF
17213 /* end confdefs.h. */
17215 /* Override any GCC internal prototype to avoid an error.
17216 Use char because int might match the return type of a GCC
17217 builtin and then its argument prototype would still apply. */
17225 return dld_link ();
17230 rm -f conftest.$ac_objext conftest$ac_exeext
17231 if { (ac_try="$ac_link"
17232 case "(($ac_try" in
17233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234 *) ac_try_echo=$ac_try;;
17236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17237 (eval "$ac_link") 2>conftest.er1
17239 grep -v '^ *+' conftest.er1 >conftest.err
17241 cat conftest.err >&5
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); } &&
17244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17245 { (case "(($ac_try" in
17246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17247 *) ac_try_echo=$ac_try;;
17249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17250 (eval "$ac_try") 2>&5
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }; } &&
17254 { ac_try='test -s conftest$ac_exeext'
17255 { (case "(($ac_try" in
17256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17257 *) ac_try_echo=$ac_try;;
17259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17260 (eval "$ac_try") 2>&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; }; then
17264 ac_cv_lib_dld_dld_link=yes
17266 echo "$as_me: failed program was:" >&5
17267 sed 's/^/| /' conftest.$ac_ext >&5
17269 ac_cv_lib_dld_dld_link=no
17272 rm -f core conftest.err conftest.$ac_objext \
17273 conftest$ac_exeext conftest.$ac_ext
17274 LIBS=$ac_check_lib_save_LIBS
17276 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17277 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17278 if test $ac_cv_lib_dld_dld_link = yes; then
17279 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17300 if test "x$lt_cv_dlopen" != xno; then
17306 case $lt_cv_dlopen in
17308 save_CPPFLAGS="$CPPFLAGS"
17309 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17311 save_LDFLAGS="$LDFLAGS"
17312 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17315 LIBS="$lt_cv_dlopen_libs $LIBS"
17317 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17318 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17319 if test "${lt_cv_dlopen_self+set}" = set; then
17320 echo $ECHO_N "(cached) $ECHO_C" >&6
17322 if test "$cross_compiling" = yes; then :
17323 lt_cv_dlopen_self=cross
17325 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17326 lt_status=$lt_dlunknown
17327 cat > conftest.$ac_ext <<EOF
17328 #line 17325 "configure"
17329 #include "confdefs.h"
17338 # define LT_DLGLOBAL RTLD_GLOBAL
17341 # define LT_DLGLOBAL DL_GLOBAL
17343 # define LT_DLGLOBAL 0
17347 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17348 find out it does not work in some platform. */
17349 #ifndef LT_DLLAZY_OR_NOW
17351 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17354 # define LT_DLLAZY_OR_NOW DL_LAZY
17357 # define LT_DLLAZY_OR_NOW RTLD_NOW
17360 # define LT_DLLAZY_OR_NOW DL_NOW
17362 # define LT_DLLAZY_OR_NOW 0
17370 extern "C" void exit (int);
17373 void fnord() { int i=42;}
17376 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17377 int status = $lt_dlunknown;
17381 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17382 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17383 /* dlclose (self); */
17391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17392 (eval $ac_link) 2>&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17396 (./conftest; exit; ) >&5 2>/dev/null
17398 case x$lt_status in
17399 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17400 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17401 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17404 # compilation failed
17405 lt_cv_dlopen_self=no
17412 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17413 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17415 if test "x$lt_cv_dlopen_self" = xyes; then
17416 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17417 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17418 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17419 if test "${lt_cv_dlopen_self_static+set}" = set; then
17420 echo $ECHO_N "(cached) $ECHO_C" >&6
17422 if test "$cross_compiling" = yes; then :
17423 lt_cv_dlopen_self_static=cross
17425 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17426 lt_status=$lt_dlunknown
17427 cat > conftest.$ac_ext <<EOF
17428 #line 17425 "configure"
17429 #include "confdefs.h"
17438 # define LT_DLGLOBAL RTLD_GLOBAL
17441 # define LT_DLGLOBAL DL_GLOBAL
17443 # define LT_DLGLOBAL 0
17447 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17448 find out it does not work in some platform. */
17449 #ifndef LT_DLLAZY_OR_NOW
17451 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17454 # define LT_DLLAZY_OR_NOW DL_LAZY
17457 # define LT_DLLAZY_OR_NOW RTLD_NOW
17460 # define LT_DLLAZY_OR_NOW DL_NOW
17462 # define LT_DLLAZY_OR_NOW 0
17470 extern "C" void exit (int);
17473 void fnord() { int i=42;}
17476 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17477 int status = $lt_dlunknown;
17481 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17482 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17483 /* dlclose (self); */
17491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17492 (eval $ac_link) 2>&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17496 (./conftest; exit; ) >&5 2>/dev/null
17498 case x$lt_status in
17499 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17500 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17501 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17504 # compilation failed
17505 lt_cv_dlopen_self_static=no
17512 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17513 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17516 CPPFLAGS="$save_CPPFLAGS"
17517 LDFLAGS="$save_LDFLAGS"
17522 case $lt_cv_dlopen_self in
17523 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17524 *) enable_dlopen_self=unknown ;;
17527 case $lt_cv_dlopen_self_static in
17528 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17529 *) enable_dlopen_self_static=unknown ;;
17534 # Report which library types will actually be built
17535 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17536 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17537 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17538 echo "${ECHO_T}$can_build_shared" >&6; }
17540 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17541 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17542 test "$can_build_shared" = "no" && enable_shared=no
17544 # On AIX, shared libraries and static libraries use the same namespace, and
17545 # are all built from PIC.
17548 test "$enable_shared" = yes && enable_static=no
17549 if test -n "$RANLIB"; then
17550 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17551 postinstall_cmds='$RANLIB $lib'
17556 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17557 test "$enable_shared" = yes && enable_static=no
17561 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17562 echo "${ECHO_T}$enable_shared" >&6; }
17564 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17565 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17566 # Make sure either enable_shared or enable_static is yes.
17567 test "$enable_shared" = yes || enable_static=yes
17568 { echo "$as_me:$LINENO: result: $enable_static" >&5
17569 echo "${ECHO_T}$enable_static" >&6; }
17571 # The else clause should only fire when bootstrapping the
17572 # libtool distribution, otherwise you forgot to ship ltmain.sh
17573 # with your package, and you will get complaints that there are
17574 # no rules to generate ltmain.sh.
17575 if test -f "$ltmain"; then
17576 # See if we are running on zsh, and set the options which allow our commands through
17577 # without removal of \ escapes.
17578 if test -n "${ZSH_VERSION+set}" ; then
17579 setopt NO_GLOB_SUBST
17581 # Now quote all the things that may contain metacharacters while being
17582 # careful not to overquote the AC_SUBSTed values. We take copies of the
17583 # variables and quote the copies for generation of the libtool script.
17584 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17586 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17587 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17588 deplibs_check_method reload_flag reload_cmds need_locks \
17589 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17590 lt_cv_sys_global_symbol_to_c_name_address \
17591 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17592 old_postinstall_cmds old_postuninstall_cmds \
17596 lt_prog_compiler_wl \
17597 lt_prog_compiler_pic \
17598 lt_prog_compiler_static \
17599 lt_prog_compiler_no_builtin_flag \
17600 export_dynamic_flag_spec \
17601 thread_safe_flag_spec \
17602 whole_archive_flag_spec \
17603 enable_shared_with_static_runtimes \
17605 old_archive_from_new_cmds \
17610 compiler_lib_search_path \
17612 archive_expsym_cmds \
17614 postuninstall_cmds \
17615 old_archive_from_expsyms_cmds \
17616 allow_undefined_flag \
17617 no_undefined_flag \
17618 export_symbols_cmds \
17619 hardcode_libdir_flag_spec \
17620 hardcode_libdir_flag_spec_ld \
17621 hardcode_libdir_separator \
17622 hardcode_automatic \
17624 module_expsym_cmds \
17625 lt_cv_prog_compiler_c_o \
17627 include_expsyms; do
17630 old_archive_cmds | \
17631 old_archive_from_new_cmds | \
17633 archive_expsym_cmds | \
17635 module_expsym_cmds | \
17636 old_archive_from_expsyms_cmds | \
17637 export_symbols_cmds | \
17638 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17639 postinstall_cmds | postuninstall_cmds | \
17640 old_postinstall_cmds | old_postuninstall_cmds | \
17641 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17642 # Double-quote double-evaled strings.
17643 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17646 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17652 *'\$0 --fallback-echo"')
17653 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17657 cfgfile="${ofile}T"
17658 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17660 { echo "$as_me:$LINENO: creating $ofile" >&5
17661 echo "$as_me: creating $ofile" >&6;}
17663 cat <<__EOF__ >> "$cfgfile"
17666 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17667 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17668 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17670 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17671 # Free Software Foundation, Inc.
17673 # This file is part of GNU Libtool:
17674 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17676 # This program is free software; you can redistribute it and/or modify
17677 # it under the terms of the GNU General Public License as published by
17678 # the Free Software Foundation; either version 2 of the License, or
17679 # (at your option) any later version.
17681 # This program is distributed in the hope that it will be useful, but
17682 # WITHOUT ANY WARRANTY; without even the implied warranty of
17683 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17684 # General Public License for more details.
17686 # You should have received a copy of the GNU General Public License
17687 # along with this program; if not, write to the Free Software
17688 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17690 # As a special exception to the GNU General Public License, if you
17691 # distribute this file as part of a program that contains a
17692 # configuration script generated by Autoconf, you may include it under
17693 # the same distribution terms that you use for the rest of that program.
17695 # A sed program that does not truncate output.
17698 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17699 Xsed="$SED -e 1s/^X//"
17701 # The HP-UX ksh and POSIX shell print the target directory to stdout
17702 # if CDPATH is set.
17703 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17705 # The names of the tagged configurations supported by this script.
17708 # ### BEGIN LIBTOOL CONFIG
17710 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17712 # Shell to use when invoking shell scripts.
17715 # Whether or not to build shared libraries.
17716 build_libtool_libs=$enable_shared
17718 # Whether or not to build static libraries.
17719 build_old_libs=$enable_static
17721 # Whether or not to add -lc for building shared libraries.
17722 build_libtool_need_lc=$archive_cmds_need_lc
17724 # Whether or not to disallow shared libs when runtime libs are static
17725 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17727 # Whether or not to optimize for fast installation.
17728 fast_install=$enable_fast_install
17731 host_alias=$host_alias
17735 # The build system.
17736 build_alias=$build_alias
17740 # An echo program that does not interpret backslashes.
17745 AR_FLAGS=$lt_AR_FLAGS
17750 # LTCC compiler flags.
17751 LTCFLAGS=$lt_LTCFLAGS
17753 # A language-specific compiler.
17756 # Is the compiler the GNU C compiler?
17762 # The linker used to build libraries.
17765 # Whether we need hard or soft links.
17768 # A BSD-compatible nm program.
17771 # A symbol stripping program
17774 # Used to examine libraries when file_magic_cmd begins "file"
17775 MAGIC_CMD=$MAGIC_CMD
17777 # Used on cygwin: DLL creation program.
17780 # Used on cygwin: object dumper.
17783 # Used on cygwin: assembler.
17786 # The name of the directory that contains temporary libtool files.
17789 # How to create reloadable object files.
17790 reload_flag=$lt_reload_flag
17791 reload_cmds=$lt_reload_cmds
17793 # How to pass a linker flag through the compiler.
17794 wl=$lt_lt_prog_compiler_wl
17796 # Object file suffix (normally "o").
17797 objext="$ac_objext"
17799 # Old archive suffix (normally "a").
17802 # Shared library suffix (normally ".so").
17803 shrext_cmds='$shrext_cmds'
17805 # Executable file suffix (normally "").
17808 # Additional compiler flags for building library objects.
17809 pic_flag=$lt_lt_prog_compiler_pic
17812 # What is the maximum length of a command?
17813 max_cmd_len=$lt_cv_sys_max_cmd_len
17815 # Does compiler simultaneously support -c and -o options?
17816 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17818 # Must we lock files when doing compilation?
17819 need_locks=$lt_need_locks
17821 # Do we need the lib prefix for modules?
17822 need_lib_prefix=$need_lib_prefix
17824 # Do we need a version for libraries?
17825 need_version=$need_version
17827 # Whether dlopen is supported.
17828 dlopen_support=$enable_dlopen
17830 # Whether dlopen of programs is supported.
17831 dlopen_self=$enable_dlopen_self
17833 # Whether dlopen of statically linked programs is supported.
17834 dlopen_self_static=$enable_dlopen_self_static
17836 # Compiler flag to prevent dynamic linking.
17837 link_static_flag=$lt_lt_prog_compiler_static
17839 # Compiler flag to turn off builtin functions.
17840 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17842 # Compiler flag to allow reflexive dlopens.
17843 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17845 # Compiler flag to generate shared objects directly from archives.
17846 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17848 # Compiler flag to generate thread-safe objects.
17849 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17851 # Library versioning type.
17852 version_type=$version_type
17854 # Format of library name prefix.
17855 libname_spec=$lt_libname_spec
17857 # List of archive names. First name is the real one, the rest are links.
17858 # The last name is the one that the linker finds with -lNAME.
17859 library_names_spec=$lt_library_names_spec
17861 # The coded name of the library, if different from the real name.
17862 soname_spec=$lt_soname_spec
17864 # Commands used to build and install an old-style archive.
17866 old_archive_cmds=$lt_old_archive_cmds
17867 old_postinstall_cmds=$lt_old_postinstall_cmds
17868 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17870 # Create an old-style archive from a shared archive.
17871 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17873 # Create a temporary old-style archive to link instead of a shared archive.
17874 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17876 # Commands used to build and install a shared archive.
17877 archive_cmds=$lt_archive_cmds
17878 archive_expsym_cmds=$lt_archive_expsym_cmds
17879 postinstall_cmds=$lt_postinstall_cmds
17880 postuninstall_cmds=$lt_postuninstall_cmds
17882 # Commands used to build a loadable module (assumed same as above if empty)
17883 module_cmds=$lt_module_cmds
17884 module_expsym_cmds=$lt_module_expsym_cmds
17886 # Commands to strip libraries.
17887 old_striplib=$lt_old_striplib
17888 striplib=$lt_striplib
17890 # Dependencies to place before the objects being linked to create a
17892 predep_objects=$lt_predep_objects
17894 # Dependencies to place after the objects being linked to create a
17896 postdep_objects=$lt_postdep_objects
17898 # Dependencies to place before the objects being linked to create a
17900 predeps=$lt_predeps
17902 # Dependencies to place after the objects being linked to create a
17904 postdeps=$lt_postdeps
17906 # The library search path used internally by the compiler when linking
17907 # a shared library.
17908 compiler_lib_search_path=$lt_compiler_lib_search_path
17910 # Method to check whether dependent libraries are shared objects.
17911 deplibs_check_method=$lt_deplibs_check_method
17913 # Command to use when deplibs_check_method == file_magic.
17914 file_magic_cmd=$lt_file_magic_cmd
17916 # Flag that allows shared libraries with undefined symbols to be built.
17917 allow_undefined_flag=$lt_allow_undefined_flag
17919 # Flag that forces no undefined symbols.
17920 no_undefined_flag=$lt_no_undefined_flag
17922 # Commands used to finish a libtool library installation in a directory.
17923 finish_cmds=$lt_finish_cmds
17925 # Same as above, but a single script fragment to be evaled but not shown.
17926 finish_eval=$lt_finish_eval
17928 # Take the output of nm and produce a listing of raw symbols and C names.
17929 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17931 # Transform the output of nm in a proper C declaration
17932 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17934 # Transform the output of nm in a C name address pair
17935 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17937 # This is the shared library runtime path variable.
17938 runpath_var=$runpath_var
17940 # This is the shared library path variable.
17941 shlibpath_var=$shlibpath_var
17943 # Is shlibpath searched before the hard-coded library search path?
17944 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17946 # How to hardcode a shared library path into an executable.
17947 hardcode_action=$hardcode_action
17949 # Whether we should hardcode library paths into libraries.
17950 hardcode_into_libs=$hardcode_into_libs
17952 # Flag to hardcode \$libdir into a binary during linking.
17953 # This must work even if \$libdir does not exist.
17954 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17956 # If ld is used when linking, flag to hardcode \$libdir into
17957 # a binary during linking. This must work even if \$libdir does
17959 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17961 # Whether we need a single -rpath flag with a separated argument.
17962 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17964 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17965 # resulting binary.
17966 hardcode_direct=$hardcode_direct
17968 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17969 # resulting binary.
17970 hardcode_minus_L=$hardcode_minus_L
17972 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17973 # the resulting binary.
17974 hardcode_shlibpath_var=$hardcode_shlibpath_var
17976 # Set to yes if building a shared library automatically hardcodes DIR into the library
17977 # and all subsequent libraries and executables linked against it.
17978 hardcode_automatic=$hardcode_automatic
17980 # Variables whose values should be saved in libtool wrapper scripts and
17981 # restored at relink time.
17982 variables_saved_for_relink="$variables_saved_for_relink"
17984 # Whether libtool must link a program against all its dependency libraries.
17985 link_all_deplibs=$link_all_deplibs
17987 # Compile-time system search path for libraries
17988 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17990 # Run-time system search path for libraries
17991 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17993 # Fix the shell variable \$srcfile for the compiler.
17994 fix_srcfile_path="$fix_srcfile_path"
17996 # Set to yes if exported symbols are required.
17997 always_export_symbols=$always_export_symbols
17999 # The commands to list exported symbols.
18000 export_symbols_cmds=$lt_export_symbols_cmds
18002 # The commands to extract the exported symbol list from a shared archive.
18003 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18005 # Symbols that should not be listed in the preloaded symbols.
18006 exclude_expsyms=$lt_exclude_expsyms
18008 # Symbols that must always be exported.
18009 include_expsyms=$lt_include_expsyms
18011 # ### END LIBTOOL CONFIG
18018 cat <<\EOF >> "$cfgfile"
18020 # AIX sometimes has problems with the GCC collect2 program. For some
18021 # reason, if we set the COLLECT_NAMES environment variable, the problems
18022 # vanish in a puff of smoke.
18023 if test "X${COLLECT_NAMES+set}" != Xset; then
18025 export COLLECT_NAMES
18031 # We use sed instead of cat because bash on DJGPP gets confused if
18032 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18033 # text mode, it properly converts lines to CR/LF. This bash problem
18034 # is reportedly fixed, but why not run on old versions too?
18035 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18037 mv -f "$cfgfile" "$ofile" || \
18038 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18042 # If there is no Makefile yet, we rely on a make rule to execute
18043 # `config.status --recheck' to rerun these tests and create the
18044 # libtool script then.
18045 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18046 if test -f "$ltmain_in"; then
18047 test -f Makefile && make "$ltmain"
18053 ac_cpp='$CPP $CPPFLAGS'
18054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18061 # Check whether --with-tags was given.
18062 if test "${with_tags+set}" = set; then
18063 withval=$with_tags; tagnames="$withval"
18067 if test -f "$ltmain" && test -n "$tagnames"; then
18068 if test ! -f "${ofile}"; then
18069 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18070 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18073 if test -z "$LTCC"; then
18074 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18075 if test -z "$LTCC"; then
18076 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18077 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18079 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18080 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18083 if test -z "$LTCFLAGS"; then
18084 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18087 # Extract list of available tagged configurations in $ofile.
18088 # Note that this assumes the entire list is on one line.
18089 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18091 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18092 for tagname in $tagnames; do
18094 # Check whether tagname contains only valid characters
18095 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18097 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18098 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18099 { (exit 1); exit 1; }; }
18103 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18105 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18106 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18107 { (exit 1); exit 1; }; }
18110 # Update the list of available tags.
18111 if test -n "$tagname"; then
18112 echo appending configuration tag \"$tagname\" to $ofile
18116 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18117 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18118 (test "X$CXX" != "Xg++"))) ; then
18120 ac_cpp='$CXXCPP $CPPFLAGS'
18121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18128 archive_cmds_need_lc_CXX=no
18129 allow_undefined_flag_CXX=
18130 always_export_symbols_CXX=no
18131 archive_expsym_cmds_CXX=
18132 export_dynamic_flag_spec_CXX=
18133 hardcode_direct_CXX=no
18134 hardcode_libdir_flag_spec_CXX=
18135 hardcode_libdir_flag_spec_ld_CXX=
18136 hardcode_libdir_separator_CXX=
18137 hardcode_minus_L_CXX=no
18138 hardcode_shlibpath_var_CXX=unsupported
18139 hardcode_automatic_CXX=no
18141 module_expsym_cmds_CXX=
18142 link_all_deplibs_CXX=unknown
18143 old_archive_cmds_CXX=$old_archive_cmds
18144 no_undefined_flag_CXX=
18145 whole_archive_flag_spec_CXX=
18146 enable_shared_with_static_runtimes_CXX=no
18148 # Dependencies to place before and after the object being linked:
18149 predep_objects_CXX=
18150 postdep_objects_CXX=
18153 compiler_lib_search_path_CXX=
18155 # Source file extension for C++ test sources.
18158 # Object file extension for compiled C++ test sources.
18162 # Code to be used in simple compile tests
18163 lt_simple_compile_test_code="int some_variable = 0;\n"
18165 # Code to be used in simple link tests
18166 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18168 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18170 # If no C compiler was specified, use CC.
18173 # If no C compiler flags were specified, use CFLAGS.
18174 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18176 # Allow CC to be a program name with arguments.
18180 # save warnings/boilerplate of simple test code
18181 ac_outfile=conftest.$ac_objext
18182 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18183 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18184 _lt_compiler_boilerplate=`cat conftest.err`
18187 ac_outfile=conftest.$ac_objext
18188 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18189 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18190 _lt_linker_boilerplate=`cat conftest.err`
18194 # Allow CC to be a program name with arguments.
18199 lt_save_with_gnu_ld=$with_gnu_ld
18200 lt_save_path_LD=$lt_cv_path_LD
18201 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18202 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18204 $as_unset lt_cv_prog_gnu_ld
18206 if test -n "${lt_cv_path_LDCXX+set}"; then
18207 lt_cv_path_LD=$lt_cv_path_LDCXX
18209 $as_unset lt_cv_path_LD
18211 test -z "${LDCXX+set}" || LD=$LDCXX
18215 for cc_temp in $compiler""; do
18217 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18218 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18223 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18226 # We don't want -fno-exception wen compiling C++ code, so set the
18227 # no_builtin_flag separately
18228 if test "$GXX" = yes; then
18229 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18231 lt_prog_compiler_no_builtin_flag_CXX=
18234 if test "$GXX" = yes; then
18235 # Set up default GNU C++ configuration
18238 # Check whether --with-gnu-ld was given.
18239 if test "${with_gnu_ld+set}" = set; then
18240 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18246 if test "$GCC" = yes; then
18247 # Check if gcc -print-prog-name=ld gives a path.
18248 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18249 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18252 # gcc leaves a trailing carriage return which upsets mingw
18253 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18255 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18258 # Accept absolute paths.
18260 re_direlt='/[^/][^/]*/\.\./'
18261 # Canonicalize the pathname of ld
18262 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18263 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18264 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18266 test -z "$LD" && LD="$ac_prog"
18269 # If it fails, then pretend we aren't using GCC.
18273 # If it is relative, then search for the first ld in PATH.
18274 with_gnu_ld=unknown
18277 elif test "$with_gnu_ld" = yes; then
18278 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18279 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18281 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18282 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18284 if test "${lt_cv_path_LD+set}" = set; then
18285 echo $ECHO_N "(cached) $ECHO_C" >&6
18287 if test -z "$LD"; then
18288 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18289 for ac_dir in $PATH; do
18291 test -z "$ac_dir" && ac_dir=.
18292 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18293 lt_cv_path_LD="$ac_dir/$ac_prog"
18294 # Check to see if the program is GNU ld. I'd rather use --version,
18295 # but apparently some variants of GNU ld only accept -v.
18296 # Break only if it was the GNU/non-GNU ld that we prefer.
18297 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18298 *GNU* | *'with BFD'*)
18299 test "$with_gnu_ld" != no && break
18302 test "$with_gnu_ld" != yes && break
18309 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18313 LD="$lt_cv_path_LD"
18314 if test -n "$LD"; then
18315 { echo "$as_me:$LINENO: result: $LD" >&5
18316 echo "${ECHO_T}$LD" >&6; }
18318 { echo "$as_me:$LINENO: result: no" >&5
18319 echo "${ECHO_T}no" >&6; }
18321 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18322 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18323 { (exit 1); exit 1; }; }
18324 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18325 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18326 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18327 echo $ECHO_N "(cached) $ECHO_C" >&6
18329 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18330 case `$LD -v 2>&1 </dev/null` in
18331 *GNU* | *'with BFD'*)
18332 lt_cv_prog_gnu_ld=yes
18335 lt_cv_prog_gnu_ld=no
18339 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18340 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18341 with_gnu_ld=$lt_cv_prog_gnu_ld
18345 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18346 # archiving commands below assume that GNU ld is being used.
18347 if test "$with_gnu_ld" = yes; then
18348 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18349 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'
18351 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18352 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18354 # If archive_cmds runs LD, not CC, wlarc should be empty
18355 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18356 # investigate it a little bit more. (MM)
18359 # ancient GNU ld didn't support --whole-archive et. al.
18360 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18361 grep 'no-whole-archive' > /dev/null; then
18362 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18364 whole_archive_flag_spec_CXX=
18370 # A generic and very simple default shared library creation
18371 # command for GNU C++ for the case where it uses the native
18372 # linker, instead of GNU ld. If possible, this setting should
18373 # overridden to take advantage of the native linker features on
18374 # the platform it is being used on.
18375 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18378 # Commands to make compiler produce verbose output that lists
18379 # what "hidden" libraries, object files and flags are used when
18380 # linking a shared library.
18381 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18389 # PORTME: fill in a description of your system's C++ link characteristics
18390 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18391 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18395 # FIXME: insert proper C++ library support
18399 if test "$host_cpu" = ia64; then
18400 # On IA64, the linker does run time linking by default, so we don't
18401 # have to do anything special.
18402 aix_use_runtimelinking=no
18403 exp_sym_flag='-Bexport'
18406 aix_use_runtimelinking=no
18408 # Test if we are trying to use run time linking or normal
18409 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18410 # need to do runtime linking.
18411 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18412 for ld_flag in $LDFLAGS; do
18415 aix_use_runtimelinking=yes
18423 exp_sym_flag='-bexport'
18424 no_entry_flag='-bnoentry'
18427 # When large executables or shared objects are built, AIX ld can
18428 # have problems creating the table of contents. If linking a library
18429 # or program results in "error TOC overflow" add -mminimal-toc to
18430 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18431 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18433 archive_cmds_CXX=''
18434 hardcode_direct_CXX=yes
18435 hardcode_libdir_separator_CXX=':'
18436 link_all_deplibs_CXX=yes
18438 if test "$GXX" = yes; then
18439 case $host_os in aix4.[012]|aix4.[012].*)
18440 # We only want to do this on AIX 4.2 and lower, the check
18441 # below for broken collect2 doesn't work under 4.3+
18442 collect2name=`${CC} -print-prog-name=collect2`
18443 if test -f "$collect2name" && \
18444 strings "$collect2name" | grep resolve_lib_name >/dev/null
18446 # We have reworked collect2
18447 hardcode_direct_CXX=yes
18449 # We have old collect2
18450 hardcode_direct_CXX=unsupported
18451 # It fails to find uninstalled libraries when the uninstalled
18452 # path is not listed in the libpath. Setting hardcode_minus_L
18453 # to unsupported forces relinking
18454 hardcode_minus_L_CXX=yes
18455 hardcode_libdir_flag_spec_CXX='-L$libdir'
18456 hardcode_libdir_separator_CXX=
18460 shared_flag='-shared'
18461 if test "$aix_use_runtimelinking" = yes; then
18462 shared_flag="$shared_flag "'${wl}-G'
18466 if test "$host_cpu" = ia64; then
18467 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18468 # chokes on -Wl,-G. The following line is correct:
18471 if test "$aix_use_runtimelinking" = yes; then
18472 shared_flag='${wl}-G'
18474 shared_flag='${wl}-bM:SRE'
18479 # It seems that -bexpall does not export symbols beginning with
18480 # underscore (_), so it is better to generate a list of symbols to export.
18481 always_export_symbols_CXX=yes
18482 if test "$aix_use_runtimelinking" = yes; then
18483 # Warning - without using the other runtime loading flags (-brtl),
18484 # -berok will link without error, but may produce a broken library.
18485 allow_undefined_flag_CXX='-berok'
18486 # Determine the default libpath from the value encoded in an empty executable.
18487 cat >conftest.$ac_ext <<_ACEOF
18490 cat confdefs.h >>conftest.$ac_ext
18491 cat >>conftest.$ac_ext <<_ACEOF
18492 /* end confdefs.h. */
18502 rm -f conftest.$ac_objext conftest$ac_exeext
18503 if { (ac_try="$ac_link"
18504 case "(($ac_try" in
18505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18506 *) ac_try_echo=$ac_try;;
18508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18509 (eval "$ac_link") 2>conftest.er1
18511 grep -v '^ *+' conftest.er1 >conftest.err
18513 cat conftest.err >&5
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); } &&
18516 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18517 { (case "(($ac_try" in
18518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18519 *) ac_try_echo=$ac_try;;
18521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18522 (eval "$ac_try") 2>&5
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); }; } &&
18526 { ac_try='test -s conftest$ac_exeext'
18527 { (case "(($ac_try" in
18528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529 *) ac_try_echo=$ac_try;;
18531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532 (eval "$ac_try") 2>&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; }; then
18537 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18539 # Check for a 64-bit object if we didn't find anything.
18540 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; }
18543 echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18549 rm -f core conftest.err conftest.$ac_objext \
18550 conftest$ac_exeext conftest.$ac_ext
18551 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18553 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18555 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"
18557 if test "$host_cpu" = ia64; then
18558 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18559 allow_undefined_flag_CXX="-z nodefs"
18560 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"
18562 # Determine the default libpath from the value encoded in an empty executable.
18563 cat >conftest.$ac_ext <<_ACEOF
18566 cat confdefs.h >>conftest.$ac_ext
18567 cat >>conftest.$ac_ext <<_ACEOF
18568 /* end confdefs.h. */
18578 rm -f conftest.$ac_objext conftest$ac_exeext
18579 if { (ac_try="$ac_link"
18580 case "(($ac_try" in
18581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582 *) ac_try_echo=$ac_try;;
18584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18585 (eval "$ac_link") 2>conftest.er1
18587 grep -v '^ *+' conftest.er1 >conftest.err
18589 cat conftest.err >&5
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); } &&
18592 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18593 { (case "(($ac_try" in
18594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18595 *) ac_try_echo=$ac_try;;
18597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18598 (eval "$ac_try") 2>&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); }; } &&
18602 { ac_try='test -s conftest$ac_exeext'
18603 { (case "(($ac_try" in
18604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18605 *) ac_try_echo=$ac_try;;
18607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18608 (eval "$ac_try") 2>&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; }; then
18613 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18615 # Check for a 64-bit object if we didn't find anything.
18616 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; }
18619 echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18625 rm -f core conftest.err conftest.$ac_objext \
18626 conftest$ac_exeext conftest.$ac_ext
18627 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18629 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18630 # Warning - without using the other run time loading flags,
18631 # -berok will link without error, but may produce a broken library.
18632 no_undefined_flag_CXX=' ${wl}-bernotok'
18633 allow_undefined_flag_CXX=' ${wl}-berok'
18634 # Exported symbols can be pulled into shared objects from archives
18635 whole_archive_flag_spec_CXX='$convenience'
18636 archive_cmds_need_lc_CXX=yes
18637 # This is similar to how AIX traditionally builds its shared libraries.
18638 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'
18644 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18645 allow_undefined_flag_CXX=unsupported
18646 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18647 # support --undefined. This deserves some investigation. FIXME
18648 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18655 case $cc_basename in
18657 # FIXME: insert proper C++ library support
18663 cygwin* | mingw* | pw32*)
18664 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18665 # as there is no search path for DLLs.
18666 hardcode_libdir_flag_spec_CXX='-L$libdir'
18667 allow_undefined_flag_CXX=unsupported
18668 always_export_symbols_CXX=no
18669 enable_shared_with_static_runtimes_CXX=yes
18671 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18672 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'
18673 # If the export-symbols file already is a .def file (1st line
18674 # is EXPORTS), use it as is; otherwise, prepend...
18675 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18676 cp $export_symbols $output_objdir/$soname.def;
18678 echo EXPORTS > $output_objdir/$soname.def;
18679 cat $export_symbols >> $output_objdir/$soname.def;
18681 $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'
18686 darwin* | rhapsody*)
18688 rhapsody* | darwin1.[012])
18689 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18692 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18693 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18695 case ${MACOSX_DEPLOYMENT_TARGET} in
18697 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18700 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18706 archive_cmds_need_lc_CXX=no
18707 hardcode_direct_CXX=no
18708 hardcode_automatic_CXX=yes
18709 hardcode_shlibpath_var_CXX=unsupported
18710 whole_archive_flag_spec_CXX=''
18711 link_all_deplibs_CXX=yes
18713 if test "$GXX" = yes ; then
18714 lt_int_apple_cc_single_mod=no
18715 output_verbose_link_cmd='echo'
18716 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18717 lt_int_apple_cc_single_mod=yes
18719 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18720 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18722 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'
18724 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18725 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18726 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18727 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}'
18729 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}'
18731 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}'
18733 case $cc_basename in
18735 output_verbose_link_cmd='echo'
18736 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'
18737 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18738 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18739 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}'
18740 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}'
18750 case $cc_basename in
18752 # FIXME: insert proper C++ library support
18756 # Green Hills C++ Compiler
18757 # FIXME: insert proper C++ library support
18761 # FIXME: insert proper C++ library support
18767 # C++ shared libraries reported to be fairly broken before switch to ELF
18771 archive_cmds_need_lc_CXX=no
18773 freebsd* | kfreebsd*-gnu | dragonfly*)
18774 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18781 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18782 hardcode_libdir_separator_CXX=:
18783 export_dynamic_flag_spec_CXX='${wl}-E'
18784 hardcode_direct_CXX=yes
18785 hardcode_minus_L_CXX=yes # Not in the search PATH,
18786 # but as the default
18787 # location of the library.
18789 case $cc_basename in
18791 # FIXME: insert proper C++ library support
18795 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'
18796 # Commands to make compiler produce verbose output that lists
18797 # what "hidden" libraries, object files and flags are used when
18798 # linking a shared library.
18800 # There doesn't appear to be a way to prevent this compiler from
18801 # explicitly linking system object files so we need to strip them
18802 # from the output so that they don't get included in the library
18804 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'
18807 if test "$GXX" = yes; then
18808 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'
18810 # FIXME: insert proper C++ library support
18817 if test $with_gnu_ld = no; then
18818 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18819 hardcode_libdir_separator_CXX=:
18823 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18826 export_dynamic_flag_spec_CXX='${wl}-E'
18832 hardcode_direct_CXX=no
18833 hardcode_shlibpath_var_CXX=no
18836 hardcode_direct_CXX=yes
18837 hardcode_minus_L_CXX=yes # Not in the search PATH,
18838 # but as the default
18839 # location of the library.
18843 case $cc_basename in
18845 # FIXME: insert proper C++ library support
18851 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18854 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18857 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18860 # Commands to make compiler produce verbose output that lists
18861 # what "hidden" libraries, object files and flags are used when
18862 # linking a shared library.
18864 # There doesn't appear to be a way to prevent this compiler from
18865 # explicitly linking system object files so we need to strip them
18866 # from the output so that they don't get included in the library
18868 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'
18871 if test "$GXX" = yes; then
18872 if test $with_gnu_ld = no; then
18875 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18878 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18881 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'
18886 # FIXME: insert proper C++ library support
18893 hardcode_direct_CXX=no
18894 hardcode_shlibpath_var_CXX=no
18895 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18896 export_dynamic_flag_spec_CXX='${wl}-E'
18897 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18898 # Instead, shared libraries are loaded at an image base (0x10000000 by
18899 # default) and relocated if they conflict, which is a slow very memory
18900 # consuming and fragmenting process. To avoid this, we pick a random,
18901 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18902 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18903 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'
18904 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'
18907 case $cc_basename in
18910 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'
18912 # Archives containing C++ object files must be created using
18913 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18914 # necessary to make sure instantiated templates are included
18916 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18919 if test "$GXX" = yes; then
18920 if test "$with_gnu_ld" = no; then
18921 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'
18923 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'
18926 link_all_deplibs_CXX=yes
18929 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18930 hardcode_libdir_separator_CXX=:
18933 case $cc_basename in
18935 # Kuck and Associates, Inc. (KAI) C++ Compiler
18937 # KCC will only create a shared library if the output file
18938 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18939 # to its proper name (with version) after linking.
18940 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'
18941 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'
18942 # Commands to make compiler produce verbose output that lists
18943 # what "hidden" libraries, object files and flags are used when
18944 # linking a shared library.
18946 # There doesn't appear to be a way to prevent this compiler from
18947 # explicitly linking system object files so we need to strip them
18948 # from the output so that they don't get included in the library
18950 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'
18952 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18953 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18955 # Archives containing C++ object files must be created using
18956 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18957 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18962 # version 8.0 and above of icpc choke on multiply defined symbols
18963 # if we add $predep_objects and $postdep_objects, however 7.1 and
18964 # earlier do not add the objects themselves.
18965 case `$CC -V 2>&1` in
18967 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18968 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'
18970 *) # Version 8.0 or newer
18973 ia64*) tmp_idyn=' -i_dynamic';;
18975 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18976 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'
18979 archive_cmds_need_lc_CXX=no
18980 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18981 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18982 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18985 # Portland Group C++ compiler
18986 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18987 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'
18989 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18990 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18991 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'
18995 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18996 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'
18998 runpath_var=LD_RUN_PATH
18999 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19000 hardcode_libdir_separator_CXX=:
19002 # Commands to make compiler produce verbose output that lists
19003 # what "hidden" libraries, object files and flags are used when
19004 # linking a shared library.
19006 # There doesn't appear to be a way to prevent this compiler from
19007 # explicitly linking system object files so we need to strip them
19008 # from the output so that they don't get included in the library
19010 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'
19015 # FIXME: insert proper C++ library support
19019 # FIXME: insert proper C++ library support
19023 case $cc_basename in
19025 # FIXME: insert proper C++ library support
19029 # FIXME: insert proper C++ library support
19035 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19036 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19038 hardcode_libdir_flag_spec_CXX='-R$libdir'
19039 hardcode_direct_CXX=yes
19040 hardcode_shlibpath_var_CXX=no
19042 # Workaround some broken pre-1.5 toolchains
19043 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19046 # C++ shared libraries are fairly broken
19050 hardcode_direct_CXX=yes
19051 hardcode_shlibpath_var_CXX=no
19052 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19053 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19054 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19055 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19056 export_dynamic_flag_spec_CXX='${wl}-E'
19057 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19059 output_verbose_link_cmd='echo'
19062 case $cc_basename in
19064 # Kuck and Associates, Inc. (KAI) C++ Compiler
19066 # KCC will only create a shared library if the output file
19067 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19068 # to its proper name (with version) after linking.
19069 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'
19071 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19072 hardcode_libdir_separator_CXX=:
19074 # Archives containing C++ object files must be created using
19075 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19076 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19080 # Rational C++ 2.4.1
19081 # FIXME: insert proper C++ library support
19085 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19086 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'
19088 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19089 hardcode_libdir_separator_CXX=:
19091 # Commands to make compiler produce verbose output that lists
19092 # what "hidden" libraries, object files and flags are used when
19093 # linking a shared library.
19095 # There doesn't appear to be a way to prevent this compiler from
19096 # explicitly linking system object files so we need to strip them
19097 # from the output so that they don't get included in the library
19099 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'
19102 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19103 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19104 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'
19106 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19107 hardcode_libdir_separator_CXX=:
19109 # Commands to make compiler produce verbose output that lists
19110 # what "hidden" libraries, object files and flags are used when
19111 # linking a shared library.
19112 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19115 # FIXME: insert proper C++ library support
19122 case $cc_basename in
19124 # Kuck and Associates, Inc. (KAI) C++ Compiler
19126 # KCC will only create a shared library if the output file
19127 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19128 # to its proper name (with version) after linking.
19129 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'
19131 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19132 hardcode_libdir_separator_CXX=:
19134 # Archives containing C++ object files must be created using
19135 # the KAI C++ compiler.
19136 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19139 # Rational C++ 2.4.1
19140 # FIXME: insert proper C++ library support
19144 allow_undefined_flag_CXX=' -expect_unresolved \*'
19145 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'
19146 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19147 echo "-hidden">> $lib.exp~
19148 $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~
19151 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19152 hardcode_libdir_separator_CXX=:
19154 # Commands to make compiler produce verbose output that lists
19155 # what "hidden" libraries, object files and flags are used when
19156 # linking a shared library.
19158 # There doesn't appear to be a way to prevent this compiler from
19159 # explicitly linking system object files so we need to strip them
19160 # from the output so that they don't get included in the library
19162 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'
19165 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19166 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19167 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'
19169 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19170 hardcode_libdir_separator_CXX=:
19172 # Commands to make compiler produce verbose output that lists
19173 # what "hidden" libraries, object files and flags are used when
19174 # linking a shared library.
19175 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19178 # FIXME: insert proper C++ library support
19185 # FIXME: insert proper C++ library support
19189 case $cc_basename in
19192 # FIXME: insert proper C++ library support
19197 # FIXME: insert proper C++ library support
19201 # FIXME: insert proper C++ library support
19207 case $cc_basename in
19209 # Sun C++ 4.2, 5.x and Centerline C++
19210 archive_cmds_need_lc_CXX=yes
19211 no_undefined_flag_CXX=' -zdefs'
19212 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19213 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19214 $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'
19216 hardcode_libdir_flag_spec_CXX='-R$libdir'
19217 hardcode_shlibpath_var_CXX=no
19219 solaris2.[0-5] | solaris2.[0-5].*) ;;
19221 # The C++ compiler is used as linker so we must use $wl
19222 # flag to pass the commands to the underlying system
19223 # linker. We must also pass each convience library through
19224 # to the system linker between allextract/defaultextract.
19225 # The C++ compiler will combine linker options so we
19226 # cannot just pass the convience library names through
19228 # Supported since Solaris 2.6 (maybe 2.5.1?)
19229 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'
19232 link_all_deplibs_CXX=yes
19234 output_verbose_link_cmd='echo'
19236 # Archives containing C++ object files must be created using
19237 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19238 # necessary to make sure instantiated templates are included
19240 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19243 # Green Hills C++ Compiler
19244 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19246 # The C++ compiler must be used to create the archive.
19247 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19250 # GNU C++ compiler with Solaris linker
19251 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19252 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19253 if $CC --version | grep -v '^2\.7' > /dev/null; then
19254 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19255 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19256 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19258 # Commands to make compiler produce verbose output that lists
19259 # what "hidden" libraries, object files and flags are used when
19260 # linking a shared library.
19261 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19263 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19265 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19266 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19267 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19269 # Commands to make compiler produce verbose output that lists
19270 # what "hidden" libraries, object files and flags are used when
19271 # linking a shared library.
19272 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19275 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19280 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19281 no_undefined_flag_CXX='${wl}-z,text'
19282 archive_cmds_need_lc_CXX=no
19283 hardcode_shlibpath_var_CXX=no
19284 runpath_var='LD_RUN_PATH'
19286 case $cc_basename in
19288 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19289 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19292 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19293 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19297 sysv5* | sco3.2v5* | sco5v6*)
19298 # Note: We can NOT use -z defs as we might desire, because we do not
19299 # link with -lc, and that would cause any symbols used from libc to
19300 # always be unresolved, which means just about no library would
19301 # ever link correctly. If we're not using GNU ld we use -z text
19302 # though, which does catch some bad symbols but isn't as heavy-handed
19304 # For security reasons, it is highly recommended that you always
19305 # use absolute paths for naming shared libraries, and exclude the
19306 # DT_RUNPATH tag from executables and libraries. But doing so
19307 # requires that you compile everything twice, which is a pain.
19308 # So that behaviour is only enabled if SCOABSPATH is set to a
19309 # non-empty value in the environment. Most likely only useful for
19310 # creating official distributions of packages.
19311 # This is a hack until libtool officially supports absolute path
19312 # names for shared libraries.
19313 no_undefined_flag_CXX='${wl}-z,text'
19314 allow_undefined_flag_CXX='${wl}-z,nodefs'
19315 archive_cmds_need_lc_CXX=no
19316 hardcode_shlibpath_var_CXX=no
19317 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19318 hardcode_libdir_separator_CXX=':'
19319 link_all_deplibs_CXX=yes
19320 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19321 runpath_var='LD_RUN_PATH'
19323 case $cc_basename in
19325 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19326 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19329 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19330 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19335 case $cc_basename in
19337 # NonStop-UX NCC 3.20
19338 # FIXME: insert proper C++ library support
19342 # FIXME: insert proper C++ library support
19348 # FIXME: insert proper C++ library support
19352 # FIXME: insert proper C++ library support
19356 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19357 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19358 test "$ld_shlibs_CXX" = no && can_build_shared=no
19364 cat > conftest.$ac_ext <<EOF
19368 Foo (void) { a = 0; }
19374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19375 (eval $ac_compile) 2>&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; then
19379 # Parse the compiler output and extract the necessary
19380 # objects, libraries and library flags.
19382 # Sentinel used to keep track of whether or not we are before
19383 # the conftest object file.
19384 pre_test_object_deps_done=no
19386 # The `*' in the case matches for architectures that use `case' in
19387 # $output_verbose_cmd can trigger glob expansion during the loop
19388 # eval without this substitution.
19389 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19391 for p in `eval $output_verbose_link_cmd`; do
19395 # Some compilers place space between "-{L,R}" and the path.
19396 # Remove the space.
19397 if test $p = "-L" \
19398 || test $p = "-R"; then
19405 if test "$pre_test_object_deps_done" = no; then
19408 # Internal compiler library paths should come after those
19409 # provided the user. The postdeps already come after the
19410 # user supplied libs so there is no need to process them.
19411 if test -z "$compiler_lib_search_path_CXX"; then
19412 compiler_lib_search_path_CXX="${prev}${p}"
19414 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19417 # The "-l" case would never come before the object being
19418 # linked, so don't bother handling this case.
19421 if test -z "$postdeps_CXX"; then
19422 postdeps_CXX="${prev}${p}"
19424 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19430 # This assumes that the test object file only shows up
19431 # once in the compiler output.
19432 if test "$p" = "conftest.$objext"; then
19433 pre_test_object_deps_done=yes
19437 if test "$pre_test_object_deps_done" = no; then
19438 if test -z "$predep_objects_CXX"; then
19439 predep_objects_CXX="$p"
19441 predep_objects_CXX="$predep_objects_CXX $p"
19444 if test -z "$postdep_objects_CXX"; then
19445 postdep_objects_CXX="$p"
19447 postdep_objects_CXX="$postdep_objects_CXX $p"
19452 *) ;; # Ignore the rest.
19460 echo "libtool.m4: error: problem compiling CXX test program"
19463 $rm -f confest.$objext
19465 # PORTME: override above test on systems where it is broken
19468 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19469 # hack all around it, let's just trust "g++" to DTRT.
19470 predep_objects_CXX=
19471 postdep_objects_CXX=
19476 case $cc_basename in
19478 # Adding this requires a known-good setup of shared libraries for
19479 # Sun compiler versions before 5.6, else PIC objects from an old
19480 # archive will be linked into the output, leading to subtle bugs.
19481 postdeps_CXX='-lCstd -lCrun'
19488 case " $postdeps_CXX " in
19489 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19492 lt_prog_compiler_wl_CXX=
19493 lt_prog_compiler_pic_CXX=
19494 lt_prog_compiler_static_CXX=
19496 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19497 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19499 # C++ specific cases for pic, static, wl, etc.
19500 if test "$GXX" = yes; then
19501 lt_prog_compiler_wl_CXX='-Wl,'
19502 lt_prog_compiler_static_CXX='-static'
19506 # All AIX code is PIC.
19507 if test "$host_cpu" = ia64; then
19508 # AIX 5 now supports IA64 processor
19509 lt_prog_compiler_static_CXX='-Bstatic'
19513 # FIXME: we need at least 68020 code to build shared libraries, but
19514 # adding the `-m68020' flag to GCC prevents building anything better,
19516 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19518 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19519 # PIC is the default for these OSes.
19521 mingw* | os2* | pw32*)
19522 # This hack is so that the source file can tell whether it is being
19523 # built for inclusion in a dll (and should export symbols for example).
19524 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19526 darwin* | rhapsody*)
19527 # PIC is the default on this platform
19528 # Common symbols not allowed in MH_DYLIB files
19529 lt_prog_compiler_pic_CXX='-fno-common'
19532 # DJGPP does not support shared libraries at all
19533 lt_prog_compiler_pic_CXX=
19536 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19537 # Instead, we relocate shared libraries at runtime.
19540 if test -d /usr/nec; then
19541 lt_prog_compiler_pic_CXX=-Kconform_pic
19545 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19546 # not for PA HP-UX.
19551 lt_prog_compiler_pic_CXX='-fPIC'
19556 lt_prog_compiler_pic_CXX='-fPIC'
19562 # All AIX code is PIC.
19563 if test "$host_cpu" = ia64; then
19564 # AIX 5 now supports IA64 processor
19565 lt_prog_compiler_static_CXX='-Bstatic'
19567 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19571 case $cc_basename in
19573 # Green Hills C++ Compiler
19574 # _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"
19579 # PIC is the default on this platform
19580 # Common symbols not allowed in MH_DYLIB files
19581 case $cc_basename in
19583 lt_prog_compiler_pic_CXX='-qnocommon'
19584 lt_prog_compiler_wl_CXX='-Wl,'
19589 case $cc_basename in
19591 lt_prog_compiler_pic_CXX='-KPIC'
19594 # Green Hills C++ Compiler
19595 lt_prog_compiler_pic_CXX='-pic'
19601 freebsd* | kfreebsd*-gnu | dragonfly*)
19602 # FreeBSD uses GNU C++
19604 hpux9* | hpux10* | hpux11*)
19605 case $cc_basename in
19607 lt_prog_compiler_wl_CXX='-Wl,'
19608 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19609 if test "$host_cpu" != ia64; then
19610 lt_prog_compiler_pic_CXX='+Z'
19614 lt_prog_compiler_wl_CXX='-Wl,'
19615 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19621 lt_prog_compiler_pic_CXX='+Z'
19630 # This is c89, which is MS Visual C++ (no shared libs)
19631 # Anyone wants to do a port?
19633 irix5* | irix6* | nonstopux*)
19634 case $cc_basename in
19636 lt_prog_compiler_wl_CXX='-Wl,'
19637 lt_prog_compiler_static_CXX='-non_shared'
19638 # CC pic flag -KPIC is the default.
19645 case $cc_basename in
19648 lt_prog_compiler_wl_CXX='--backend -Wl,'
19649 lt_prog_compiler_pic_CXX='-fPIC'
19653 lt_prog_compiler_wl_CXX='-Wl,'
19654 lt_prog_compiler_pic_CXX='-KPIC'
19655 lt_prog_compiler_static_CXX='-static'
19658 # Portland Group C++ compiler.
19659 lt_prog_compiler_wl_CXX='-Wl,'
19660 lt_prog_compiler_pic_CXX='-fpic'
19661 lt_prog_compiler_static_CXX='-Bstatic'
19665 # Make sure the PIC flag is empty. It appears that all Alpha
19666 # Linux and Compaq Tru64 Unix objects are PIC.
19667 lt_prog_compiler_pic_CXX=
19668 lt_prog_compiler_static_CXX='-non_shared'
19679 case $cc_basename in
19681 lt_prog_compiler_pic_CXX='-W c,exportall'
19689 osf3* | osf4* | osf5*)
19690 case $cc_basename in
19692 lt_prog_compiler_wl_CXX='--backend -Wl,'
19695 # Rational C++ 2.4.1
19696 lt_prog_compiler_pic_CXX='-pic'
19699 # Digital/Compaq C++
19700 lt_prog_compiler_wl_CXX='-Wl,'
19701 # Make sure the PIC flag is empty. It appears that all Alpha
19702 # Linux and Compaq Tru64 Unix objects are PIC.
19703 lt_prog_compiler_pic_CXX=
19704 lt_prog_compiler_static_CXX='-non_shared'
19713 case $cc_basename in
19715 # Sun C++ 4.2, 5.x and Centerline C++
19716 lt_prog_compiler_pic_CXX='-KPIC'
19717 lt_prog_compiler_static_CXX='-Bstatic'
19718 lt_prog_compiler_wl_CXX='-Qoption ld '
19721 # Green Hills C++ Compiler
19722 lt_prog_compiler_pic_CXX='-PIC'
19729 case $cc_basename in
19732 lt_prog_compiler_pic_CXX='-pic'
19733 lt_prog_compiler_static_CXX='-Bstatic'
19737 lt_prog_compiler_pic_CXX='-pic'
19744 case $cc_basename in
19746 # NonStop-UX NCC 3.20
19747 lt_prog_compiler_pic_CXX='-KPIC'
19753 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19754 case $cc_basename in
19756 lt_prog_compiler_wl_CXX='-Wl,'
19757 lt_prog_compiler_pic_CXX='-KPIC'
19758 lt_prog_compiler_static_CXX='-Bstatic'
19765 lt_prog_compiler_can_build_shared_CXX=no
19770 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19771 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19774 # Check to make sure the PIC flag actually works.
19776 if test -n "$lt_prog_compiler_pic_CXX"; then
19778 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19779 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19780 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
19783 lt_prog_compiler_pic_works_CXX=no
19784 ac_outfile=conftest.$ac_objext
19785 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19786 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19787 # Insert the option either (1) after the last *FLAGS variable, or
19788 # (2) before a word containing "conftest.", or (3) at the end.
19789 # Note that $ac_compile itself does not contain backslashes and begins
19790 # with a dollar sign (not a hyphen), so the echo should work correctly.
19791 # The option is referenced via a variable to avoid confusing sed.
19792 lt_compile=`echo "$ac_compile" | $SED \
19793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19795 -e 's:$: $lt_compiler_flag:'`
19796 (eval echo "\"\$as_me:19793: $lt_compile\"" >&5)
19797 (eval "$lt_compile" 2>conftest.err)
19799 cat conftest.err >&5
19800 echo "$as_me:19797: \$? = $ac_status" >&5
19801 if (exit $ac_status) && test -s "$ac_outfile"; then
19802 # The compiler can only warn and ignore the option if not recognized
19803 # So say no if there are warnings other than the usual output.
19804 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19806 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19807 lt_prog_compiler_pic_works_CXX=yes
19813 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19814 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19816 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19817 case $lt_prog_compiler_pic_CXX in
19819 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19822 lt_prog_compiler_pic_CXX=
19823 lt_prog_compiler_can_build_shared_CXX=no
19828 # For platforms which do not support PIC, -DPIC is meaningless:
19830 lt_prog_compiler_pic_CXX=
19833 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19838 # Check to make sure the static flag actually works.
19840 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19841 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19842 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19843 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19844 echo $ECHO_N "(cached) $ECHO_C" >&6
19846 lt_prog_compiler_static_works_CXX=no
19847 save_LDFLAGS="$LDFLAGS"
19848 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19849 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19850 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19851 # The linker can only warn and ignore the option if not recognized
19852 # So say no if there are warnings
19853 if test -s conftest.err; then
19854 # Append any errors to the config.log.
19855 cat conftest.err 1>&5
19856 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19857 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19858 if diff conftest.exp conftest.er2 >/dev/null; then
19859 lt_prog_compiler_static_works_CXX=yes
19862 lt_prog_compiler_static_works_CXX=yes
19866 LDFLAGS="$save_LDFLAGS"
19869 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19870 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19872 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19875 lt_prog_compiler_static_CXX=
19879 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19880 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19881 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19882 echo $ECHO_N "(cached) $ECHO_C" >&6
19884 lt_cv_prog_compiler_c_o_CXX=no
19885 $rm -r conftest 2>/dev/null
19889 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19891 lt_compiler_flag="-o out/conftest2.$ac_objext"
19892 # Insert the option either (1) after the last *FLAGS variable, or
19893 # (2) before a word containing "conftest.", or (3) at the end.
19894 # Note that $ac_compile itself does not contain backslashes and begins
19895 # with a dollar sign (not a hyphen), so the echo should work correctly.
19896 lt_compile=`echo "$ac_compile" | $SED \
19897 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19899 -e 's:$: $lt_compiler_flag:'`
19900 (eval echo "\"\$as_me:19897: $lt_compile\"" >&5)
19901 (eval "$lt_compile" 2>out/conftest.err)
19903 cat out/conftest.err >&5
19904 echo "$as_me:19901: \$? = $ac_status" >&5
19905 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19907 # The compiler can only warn and ignore the option if not recognized
19908 # So say no if there are warnings
19909 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19910 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19911 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19912 lt_cv_prog_compiler_c_o_CXX=yes
19917 # SGI C++ compiler will create directory out/ii_files/ for
19918 # template instantiation
19919 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19920 $rm out/* && rmdir out
19926 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19927 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19930 hard_links="nottested"
19931 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19932 # do not overwrite the value of need_locks provided by the user
19933 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19934 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19937 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19939 ln conftest.a conftest.b 2>&5 || hard_links=no
19940 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19941 { echo "$as_me:$LINENO: result: $hard_links" >&5
19942 echo "${ECHO_T}$hard_links" >&6; }
19943 if test "$hard_links" = no; then
19944 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19945 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19952 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19953 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19955 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19958 # If we're using GNU nm, then we don't want the "-C" option.
19959 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19960 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19961 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'
19963 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'
19967 export_symbols_cmds_CXX="$ltdll_cmds"
19970 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'
19973 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19977 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19978 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19979 test "$ld_shlibs_CXX" = no && can_build_shared=no
19982 # Do we need to explicitly link libc?
19984 case "x$archive_cmds_need_lc_CXX" in
19986 # Assume -lc should be added
19987 archive_cmds_need_lc_CXX=yes
19989 if test "$enable_shared" = yes && test "$GCC" = yes; then
19990 case $archive_cmds_CXX in
19992 # FIXME: we may have to deal with multi-command sequences.
19995 # Test whether the compiler implicitly links with -lc since on some
19996 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19997 # to ld, don't add -lc before -lgcc.
19998 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19999 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20001 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20004 (eval $ac_compile) 2>&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } 2>conftest.err; then
20010 libobjs=conftest.$ac_objext
20012 wl=$lt_prog_compiler_wl_CXX
20013 pic_flag=$lt_prog_compiler_pic_CXX
20019 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20020 allow_undefined_flag_CXX=
20021 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20022 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); }
20027 archive_cmds_need_lc_CXX=no
20029 archive_cmds_need_lc_CXX=yes
20031 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20033 cat conftest.err 1>&5
20036 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20037 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20044 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20045 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20046 library_names_spec=
20047 libname_spec='lib$name'
20051 postuninstall_cmds=
20055 shlibpath_overrides_runpath=unknown
20057 dynamic_linker="$host_os ld.so"
20058 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20059 if test "$GCC" = yes; then
20060 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20061 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20062 # if the path contains ";" then we assume it to be the separator
20063 # otherwise default to the standard path separator (i.e. ":") - it is
20064 # assumed that no part of a normal pathname contains ";" but that should
20065 # okay in the real world where ";" in dirpaths is itself problematic.
20066 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20068 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20071 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20073 need_lib_prefix=unknown
20074 hardcode_into_libs=no
20076 # when you set need_version to no, make sure it does not cause -set_version
20077 # flags to be left without arguments
20078 need_version=unknown
20083 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20084 shlibpath_var=LIBPATH
20086 # AIX 3 has no versioning support, so we append a major version to the name.
20087 soname_spec='${libname}${release}${shared_ext}$major'
20094 hardcode_into_libs=yes
20095 if test "$host_cpu" = ia64; then
20096 # AIX 5 supports IA64
20097 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20098 shlibpath_var=LD_LIBRARY_PATH
20100 # With GCC up to 2.95.x, collect2 would create an import file
20101 # for dependence libraries. The import file would start with
20102 # the line `#! .'. This would cause the generated library to
20103 # depend on `.', always an invalid library. This was fixed in
20104 # development snapshots of GCC prior to 3.0.
20106 aix4 | aix4.[01] | aix4.[01].*)
20107 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20109 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20112 can_build_shared=no
20116 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20117 # soname into executable. Probably we can add versioning support to
20118 # collect2, so additional links can be useful in future.
20119 if test "$aix_use_runtimelinking" = yes; then
20120 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20121 # instead of lib<name>.a to let people know that these are not
20122 # typical AIX shared libraries.
20123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20125 # We preserve .a as extension for shared libraries through AIX4.2
20126 # and later when we are not doing run time linking.
20127 library_names_spec='${libname}${release}.a $libname.a'
20128 soname_spec='${libname}${release}${shared_ext}$major'
20130 shlibpath_var=LIBPATH
20135 library_names_spec='$libname.ixlibrary $libname.a'
20136 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20137 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'
20141 library_names_spec='${libname}${shared_ext}'
20142 dynamic_linker="$host_os ld.so"
20143 shlibpath_var=LIBRARY_PATH
20149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20150 soname_spec='${libname}${release}${shared_ext}$major'
20151 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20152 shlibpath_var=LD_LIBRARY_PATH
20153 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20154 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20155 # the default ld.so.conf also contains /usr/contrib/lib and
20156 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20157 # libtool to hard-code these into programs
20160 cygwin* | mingw* | pw32*)
20161 version_type=windows
20166 case $GCC,$host_os in
20167 yes,cygwin* | yes,mingw* | yes,pw32*)
20168 library_names_spec='$libname.dll.a'
20169 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20170 postinstall_cmds='base_file=`basename \${file}`~
20171 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20172 dldir=$destdir/`dirname \$dlpath`~
20173 test -d \$dldir || mkdir -p \$dldir~
20174 $install_prog $dir/$dlname \$dldir/$dlname~
20175 chmod a+x \$dldir/$dlname'
20176 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20177 dlpath=$dir/\$dldll~
20179 shlibpath_overrides_runpath=yes
20183 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20184 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20185 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20188 # MinGW DLLs use traditional 'lib' prefix
20189 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20190 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20191 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20192 # It is most probably a Windows format PATH printed by
20193 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20194 # path with ; separators, and with drive letters. We can handle the
20195 # drive letters (cygwin fileutils understands them), so leave them,
20196 # especially as we might pass files found there to a mingw objdump,
20197 # which wouldn't understand a cygwinified path. Ahh.
20198 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20200 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20204 # pw32 DLLs use 'pw' prefix rather than 'lib'
20205 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20211 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20214 dynamic_linker='Win32 ld.exe'
20215 # FIXME: first we should search . and the directory the executable is in
20219 darwin* | rhapsody*)
20220 dynamic_linker="$host_os dyld"
20221 version_type=darwin
20224 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20225 soname_spec='${libname}${release}${major}$shared_ext'
20226 shlibpath_overrides_runpath=yes
20227 shlibpath_var=DYLD_LIBRARY_PATH
20228 shrext_cmds='.dylib'
20229 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20230 if test "$GCC" = yes; then
20231 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"`
20233 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20235 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20243 soname_spec='${libname}${release}${shared_ext}$major'
20244 shlibpath_var=LD_LIBRARY_PATH
20255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20256 soname_spec='${libname}${release}${shared_ext}$major'
20257 shlibpath_var=LD_LIBRARY_PATH
20258 shlibpath_overrides_runpath=no
20259 hardcode_into_libs=yes
20260 dynamic_linker='GNU ld.so'
20263 freebsd* | dragonfly*)
20264 # DragonFly does not have aout. When/if they implement a new
20265 # versioning mechanism, adjust this.
20266 if test -x /usr/bin/objformat; then
20267 objformat=`/usr/bin/objformat`
20270 freebsd[123]*) objformat=aout ;;
20271 *) objformat=elf ;;
20274 version_type=freebsd-$objformat
20275 case $version_type in
20277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20282 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20286 shlibpath_var=LD_LIBRARY_PATH
20289 shlibpath_overrides_runpath=yes
20291 freebsd3.[01]* | freebsdelf3.[01]*)
20292 shlibpath_overrides_runpath=yes
20293 hardcode_into_libs=yes
20295 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20296 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20297 shlibpath_overrides_runpath=no
20298 hardcode_into_libs=yes
20300 freebsd*) # from 4.6 on
20301 shlibpath_overrides_runpath=yes
20302 hardcode_into_libs=yes
20311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20312 soname_spec='${libname}${release}${shared_ext}$major'
20313 shlibpath_var=LD_LIBRARY_PATH
20314 hardcode_into_libs=yes
20317 hpux9* | hpux10* | hpux11*)
20318 # Give a soname corresponding to the major version so that dld.sl refuses to
20319 # link against other versions.
20326 hardcode_into_libs=yes
20327 dynamic_linker="$host_os dld.so"
20328 shlibpath_var=LD_LIBRARY_PATH
20329 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20331 soname_spec='${libname}${release}${shared_ext}$major'
20332 if test "X$HPUX_IA64_MODE" = X32; then
20333 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20335 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20337 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20341 hardcode_into_libs=yes
20342 dynamic_linker="$host_os dld.sl"
20343 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20344 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20346 soname_spec='${libname}${release}${shared_ext}$major'
20347 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20352 dynamic_linker="$host_os dld.sl"
20353 shlibpath_var=SHLIB_PATH
20354 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20356 soname_spec='${libname}${release}${shared_ext}$major'
20359 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20360 postinstall_cmds='chmod 555 $lib'
20367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20368 soname_spec='${libname}${release}${shared_ext}$major'
20369 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20370 shlibpath_var=LD_LIBRARY_PATH
20371 shlibpath_overrides_runpath=no
20372 hardcode_into_libs=yes
20375 irix5* | irix6* | nonstopux*)
20377 nonstopux*) version_type=nonstopux ;;
20379 if test "$lt_cv_prog_gnu_ld" = yes; then
20387 soname_spec='${libname}${release}${shared_ext}$major'
20388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20390 irix5* | nonstopux*)
20391 libsuff= shlibsuff=
20394 case $LD in # libtool.m4 will add one of these switches to LD
20395 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20396 libsuff= shlibsuff= libmagic=32-bit;;
20397 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20398 libsuff=32 shlibsuff=N32 libmagic=N32;;
20399 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20400 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20401 *) libsuff= shlibsuff= libmagic=never-match;;
20405 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20406 shlibpath_overrides_runpath=no
20407 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20408 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20409 hardcode_into_libs=yes
20412 # No shared lib support for Linux oldld, aout, or coff.
20413 linux*oldld* | linux*aout* | linux*coff*)
20417 # This must be Linux ELF.
20422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20423 soname_spec='${libname}${release}${shared_ext}$major'
20424 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20425 shlibpath_var=LD_LIBRARY_PATH
20426 shlibpath_overrides_runpath=no
20427 # This implies no fast_install, which is unacceptable.
20428 # Some rework will be needed to allow for fast_install
20429 # before this can be enabled.
20430 hardcode_into_libs=yes
20432 # Append ld.so.conf contents to the search path
20433 if test -f /etc/ld.so.conf; then
20434 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' ' '`
20435 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20438 # We used to test for /lib/ld.so.1 and disable shared libraries on
20439 # powerpc, because MkLinux only supported shared libraries with the
20440 # GNU dynamic linker. Since this was broken with cross compilers,
20441 # most powerpc-linux boxes support dynamic linking these days and
20442 # people can always --disable-shared, the test was removed, and we
20443 # assume the GNU/Linux dynamic linker is in use.
20444 dynamic_linker='GNU/Linux ld.so'
20451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20452 soname_spec='${libname}${release}${shared_ext}$major'
20453 shlibpath_var=LD_LIBRARY_PATH
20454 shlibpath_overrides_runpath=no
20455 hardcode_into_libs=yes
20456 dynamic_linker='GNU ld.so'
20463 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20466 dynamic_linker='NetBSD (a.out) ld.so'
20468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20469 soname_spec='${libname}${release}${shared_ext}$major'
20470 dynamic_linker='NetBSD ld.elf_so'
20472 shlibpath_var=LD_LIBRARY_PATH
20473 shlibpath_overrides_runpath=yes
20474 hardcode_into_libs=yes
20479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20480 shlibpath_var=LD_LIBRARY_PATH
20481 shlibpath_overrides_runpath=yes
20488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20489 soname_spec='${libname}${release}${shared_ext}$major'
20490 shlibpath_var=LD_LIBRARY_PATH
20491 shlibpath_overrides_runpath=yes
20496 sys_lib_dlsearch_path_spec="/usr/lib"
20498 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20500 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20501 *) need_version=no ;;
20503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20505 shlibpath_var=LD_LIBRARY_PATH
20506 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20508 openbsd2.[89] | openbsd2.[89].*)
20509 shlibpath_overrides_runpath=no
20512 shlibpath_overrides_runpath=yes
20516 shlibpath_overrides_runpath=yes
20521 libname_spec='$name'
20524 library_names_spec='$libname${shared_ext} $libname.a'
20525 dynamic_linker='OS/2 ld.exe'
20526 shlibpath_var=LIBPATH
20529 osf3* | osf4* | osf5*)
20533 soname_spec='${libname}${release}${shared_ext}$major'
20534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20535 shlibpath_var=LD_LIBRARY_PATH
20536 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20537 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20545 soname_spec='${libname}${release}${shared_ext}$major'
20546 shlibpath_var=LD_LIBRARY_PATH
20547 shlibpath_overrides_runpath=yes
20548 hardcode_into_libs=yes
20549 # ldd complains unless libraries are executable
20550 postinstall_cmds='chmod +x $lib'
20555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20556 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20557 shlibpath_var=LD_LIBRARY_PATH
20558 shlibpath_overrides_runpath=yes
20559 if test "$with_gnu_ld" = yes; then
20567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20568 soname_spec='${libname}${release}${shared_ext}$major'
20569 shlibpath_var=LD_LIBRARY_PATH
20570 case $host_vendor in
20572 shlibpath_overrides_runpath=no
20574 export_dynamic_flag_spec='${wl}-Blargedynsym'
20575 runpath_var=LD_RUN_PATH
20583 shlibpath_overrides_runpath=no
20584 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20590 if test -d /usr/nec ;then
20592 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20593 soname_spec='$libname${shared_ext}.$major'
20594 shlibpath_var=LD_LIBRARY_PATH
20598 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20599 version_type=freebsd-elf
20602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20603 soname_spec='${libname}${release}${shared_ext}$major'
20604 shlibpath_var=LD_LIBRARY_PATH
20605 hardcode_into_libs=yes
20606 if test "$with_gnu_ld" = yes; then
20607 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20608 shlibpath_overrides_runpath=no
20610 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20611 shlibpath_overrides_runpath=yes
20614 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20618 sys_lib_dlsearch_path_spec='/usr/lib'
20623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20624 soname_spec='${libname}${release}${shared_ext}$major'
20625 shlibpath_var=LD_LIBRARY_PATH
20632 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20633 echo "${ECHO_T}$dynamic_linker" >&6; }
20634 test "$dynamic_linker" = no && can_build_shared=no
20636 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20637 if test "$GCC" = yes; then
20638 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20641 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20642 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20643 hardcode_action_CXX=
20644 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20645 test -n "$runpath_var_CXX" || \
20646 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20648 # We can hardcode non-existant directories.
20649 if test "$hardcode_direct_CXX" != no &&
20650 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20651 # have to relink, otherwise we might link with an installed library
20652 # when we should be linking with a yet-to-be-installed one
20653 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20654 test "$hardcode_minus_L_CXX" != no; then
20655 # Linking always hardcodes the temporary library directory.
20656 hardcode_action_CXX=relink
20658 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20659 hardcode_action_CXX=immediate
20662 # We cannot hardcode anything, or else we can only hardcode existing
20664 hardcode_action_CXX=unsupported
20666 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20667 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20669 if test "$hardcode_action_CXX" = relink; then
20670 # Fast installation is not supported
20671 enable_fast_install=no
20672 elif test "$shlibpath_overrides_runpath" = yes ||
20673 test "$enable_shared" = no; then
20674 # Fast installation is not necessary
20675 enable_fast_install=needless
20679 # The else clause should only fire when bootstrapping the
20680 # libtool distribution, otherwise you forgot to ship ltmain.sh
20681 # with your package, and you will get complaints that there are
20682 # no rules to generate ltmain.sh.
20683 if test -f "$ltmain"; then
20684 # See if we are running on zsh, and set the options which allow our commands through
20685 # without removal of \ escapes.
20686 if test -n "${ZSH_VERSION+set}" ; then
20687 setopt NO_GLOB_SUBST
20689 # Now quote all the things that may contain metacharacters while being
20690 # careful not to overquote the AC_SUBSTed values. We take copies of the
20691 # variables and quote the copies for generation of the libtool script.
20692 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20694 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20695 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20696 deplibs_check_method reload_flag reload_cmds need_locks \
20697 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20698 lt_cv_sys_global_symbol_to_c_name_address \
20699 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20700 old_postinstall_cmds old_postuninstall_cmds \
20704 lt_prog_compiler_wl_CXX \
20705 lt_prog_compiler_pic_CXX \
20706 lt_prog_compiler_static_CXX \
20707 lt_prog_compiler_no_builtin_flag_CXX \
20708 export_dynamic_flag_spec_CXX \
20709 thread_safe_flag_spec_CXX \
20710 whole_archive_flag_spec_CXX \
20711 enable_shared_with_static_runtimes_CXX \
20712 old_archive_cmds_CXX \
20713 old_archive_from_new_cmds_CXX \
20714 predep_objects_CXX \
20715 postdep_objects_CXX \
20718 compiler_lib_search_path_CXX \
20720 archive_expsym_cmds_CXX \
20721 postinstall_cmds_CXX \
20722 postuninstall_cmds_CXX \
20723 old_archive_from_expsyms_cmds_CXX \
20724 allow_undefined_flag_CXX \
20725 no_undefined_flag_CXX \
20726 export_symbols_cmds_CXX \
20727 hardcode_libdir_flag_spec_CXX \
20728 hardcode_libdir_flag_spec_ld_CXX \
20729 hardcode_libdir_separator_CXX \
20730 hardcode_automatic_CXX \
20732 module_expsym_cmds_CXX \
20733 lt_cv_prog_compiler_c_o_CXX \
20734 exclude_expsyms_CXX \
20735 include_expsyms_CXX; do
20738 old_archive_cmds_CXX | \
20739 old_archive_from_new_cmds_CXX | \
20740 archive_cmds_CXX | \
20741 archive_expsym_cmds_CXX | \
20742 module_cmds_CXX | \
20743 module_expsym_cmds_CXX | \
20744 old_archive_from_expsyms_cmds_CXX | \
20745 export_symbols_cmds_CXX | \
20746 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20747 postinstall_cmds | postuninstall_cmds | \
20748 old_postinstall_cmds | old_postuninstall_cmds | \
20749 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20750 # Double-quote double-evaled strings.
20751 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20754 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20760 *'\$0 --fallback-echo"')
20761 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20767 cat <<__EOF__ >> "$cfgfile"
20768 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20770 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20772 # Shell to use when invoking shell scripts.
20775 # Whether or not to build shared libraries.
20776 build_libtool_libs=$enable_shared
20778 # Whether or not to build static libraries.
20779 build_old_libs=$enable_static
20781 # Whether or not to add -lc for building shared libraries.
20782 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20784 # Whether or not to disallow shared libs when runtime libs are static
20785 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20787 # Whether or not to optimize for fast installation.
20788 fast_install=$enable_fast_install
20791 host_alias=$host_alias
20795 # The build system.
20796 build_alias=$build_alias
20800 # An echo program that does not interpret backslashes.
20805 AR_FLAGS=$lt_AR_FLAGS
20810 # LTCC compiler flags.
20811 LTCFLAGS=$lt_LTCFLAGS
20813 # A language-specific compiler.
20814 CC=$lt_compiler_CXX
20816 # Is the compiler the GNU C compiler?
20822 # The linker used to build libraries.
20825 # Whether we need hard or soft links.
20828 # A BSD-compatible nm program.
20831 # A symbol stripping program
20834 # Used to examine libraries when file_magic_cmd begins "file"
20835 MAGIC_CMD=$MAGIC_CMD
20837 # Used on cygwin: DLL creation program.
20840 # Used on cygwin: object dumper.
20843 # Used on cygwin: assembler.
20846 # The name of the directory that contains temporary libtool files.
20849 # How to create reloadable object files.
20850 reload_flag=$lt_reload_flag
20851 reload_cmds=$lt_reload_cmds
20853 # How to pass a linker flag through the compiler.
20854 wl=$lt_lt_prog_compiler_wl_CXX
20856 # Object file suffix (normally "o").
20857 objext="$ac_objext"
20859 # Old archive suffix (normally "a").
20862 # Shared library suffix (normally ".so").
20863 shrext_cmds='$shrext_cmds'
20865 # Executable file suffix (normally "").
20868 # Additional compiler flags for building library objects.
20869 pic_flag=$lt_lt_prog_compiler_pic_CXX
20872 # What is the maximum length of a command?
20873 max_cmd_len=$lt_cv_sys_max_cmd_len
20875 # Does compiler simultaneously support -c and -o options?
20876 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20878 # Must we lock files when doing compilation?
20879 need_locks=$lt_need_locks
20881 # Do we need the lib prefix for modules?
20882 need_lib_prefix=$need_lib_prefix
20884 # Do we need a version for libraries?
20885 need_version=$need_version
20887 # Whether dlopen is supported.
20888 dlopen_support=$enable_dlopen
20890 # Whether dlopen of programs is supported.
20891 dlopen_self=$enable_dlopen_self
20893 # Whether dlopen of statically linked programs is supported.
20894 dlopen_self_static=$enable_dlopen_self_static
20896 # Compiler flag to prevent dynamic linking.
20897 link_static_flag=$lt_lt_prog_compiler_static_CXX
20899 # Compiler flag to turn off builtin functions.
20900 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20902 # Compiler flag to allow reflexive dlopens.
20903 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20905 # Compiler flag to generate shared objects directly from archives.
20906 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20908 # Compiler flag to generate thread-safe objects.
20909 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20911 # Library versioning type.
20912 version_type=$version_type
20914 # Format of library name prefix.
20915 libname_spec=$lt_libname_spec
20917 # List of archive names. First name is the real one, the rest are links.
20918 # The last name is the one that the linker finds with -lNAME.
20919 library_names_spec=$lt_library_names_spec
20921 # The coded name of the library, if different from the real name.
20922 soname_spec=$lt_soname_spec
20924 # Commands used to build and install an old-style archive.
20926 old_archive_cmds=$lt_old_archive_cmds_CXX
20927 old_postinstall_cmds=$lt_old_postinstall_cmds
20928 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20930 # Create an old-style archive from a shared archive.
20931 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20933 # Create a temporary old-style archive to link instead of a shared archive.
20934 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20936 # Commands used to build and install a shared archive.
20937 archive_cmds=$lt_archive_cmds_CXX
20938 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20939 postinstall_cmds=$lt_postinstall_cmds
20940 postuninstall_cmds=$lt_postuninstall_cmds
20942 # Commands used to build a loadable module (assumed same as above if empty)
20943 module_cmds=$lt_module_cmds_CXX
20944 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20946 # Commands to strip libraries.
20947 old_striplib=$lt_old_striplib
20948 striplib=$lt_striplib
20950 # Dependencies to place before the objects being linked to create a
20952 predep_objects=$lt_predep_objects_CXX
20954 # Dependencies to place after the objects being linked to create a
20956 postdep_objects=$lt_postdep_objects_CXX
20958 # Dependencies to place before the objects being linked to create a
20960 predeps=$lt_predeps_CXX
20962 # Dependencies to place after the objects being linked to create a
20964 postdeps=$lt_postdeps_CXX
20966 # The library search path used internally by the compiler when linking
20967 # a shared library.
20968 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20970 # Method to check whether dependent libraries are shared objects.
20971 deplibs_check_method=$lt_deplibs_check_method
20973 # Command to use when deplibs_check_method == file_magic.
20974 file_magic_cmd=$lt_file_magic_cmd
20976 # Flag that allows shared libraries with undefined symbols to be built.
20977 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20979 # Flag that forces no undefined symbols.
20980 no_undefined_flag=$lt_no_undefined_flag_CXX
20982 # Commands used to finish a libtool library installation in a directory.
20983 finish_cmds=$lt_finish_cmds
20985 # Same as above, but a single script fragment to be evaled but not shown.
20986 finish_eval=$lt_finish_eval
20988 # Take the output of nm and produce a listing of raw symbols and C names.
20989 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20991 # Transform the output of nm in a proper C declaration
20992 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20994 # Transform the output of nm in a C name address pair
20995 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20997 # This is the shared library runtime path variable.
20998 runpath_var=$runpath_var
21000 # This is the shared library path variable.
21001 shlibpath_var=$shlibpath_var
21003 # Is shlibpath searched before the hard-coded library search path?
21004 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21006 # How to hardcode a shared library path into an executable.
21007 hardcode_action=$hardcode_action_CXX
21009 # Whether we should hardcode library paths into libraries.
21010 hardcode_into_libs=$hardcode_into_libs
21012 # Flag to hardcode \$libdir into a binary during linking.
21013 # This must work even if \$libdir does not exist.
21014 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21016 # If ld is used when linking, flag to hardcode \$libdir into
21017 # a binary during linking. This must work even if \$libdir does
21019 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21021 # Whether we need a single -rpath flag with a separated argument.
21022 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21024 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21025 # resulting binary.
21026 hardcode_direct=$hardcode_direct_CXX
21028 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21029 # resulting binary.
21030 hardcode_minus_L=$hardcode_minus_L_CXX
21032 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21033 # the resulting binary.
21034 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21036 # Set to yes if building a shared library automatically hardcodes DIR into the library
21037 # and all subsequent libraries and executables linked against it.
21038 hardcode_automatic=$hardcode_automatic_CXX
21040 # Variables whose values should be saved in libtool wrapper scripts and
21041 # restored at relink time.
21042 variables_saved_for_relink="$variables_saved_for_relink"
21044 # Whether libtool must link a program against all its dependency libraries.
21045 link_all_deplibs=$link_all_deplibs_CXX
21047 # Compile-time system search path for libraries
21048 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21050 # Run-time system search path for libraries
21051 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21053 # Fix the shell variable \$srcfile for the compiler.
21054 fix_srcfile_path="$fix_srcfile_path_CXX"
21056 # Set to yes if exported symbols are required.
21057 always_export_symbols=$always_export_symbols_CXX
21059 # The commands to list exported symbols.
21060 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21062 # The commands to extract the exported symbol list from a shared archive.
21063 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21065 # Symbols that should not be listed in the preloaded symbols.
21066 exclude_expsyms=$lt_exclude_expsyms_CXX
21068 # Symbols that must always be exported.
21069 include_expsyms=$lt_include_expsyms_CXX
21071 # ### END LIBTOOL TAG CONFIG: $tagname
21077 # If there is no Makefile yet, we rely on a make rule to execute
21078 # `config.status --recheck' to rerun these tests and create the
21079 # libtool script then.
21080 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21081 if test -f "$ltmain_in"; then
21082 test -f Makefile && make "$ltmain"
21088 ac_cpp='$CPP $CPPFLAGS'
21089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21097 with_gnu_ldcxx=$with_gnu_ld
21098 with_gnu_ld=$lt_save_with_gnu_ld
21099 lt_cv_path_LDCXX=$lt_cv_path_LD
21100 lt_cv_path_LD=$lt_save_path_LD
21101 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21102 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21110 if test -n "$F77" && test "X$F77" != "Xno"; then
21113 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21114 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21115 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21118 archive_cmds_need_lc_F77=no
21119 allow_undefined_flag_F77=
21120 always_export_symbols_F77=no
21121 archive_expsym_cmds_F77=
21122 export_dynamic_flag_spec_F77=
21123 hardcode_direct_F77=no
21124 hardcode_libdir_flag_spec_F77=
21125 hardcode_libdir_flag_spec_ld_F77=
21126 hardcode_libdir_separator_F77=
21127 hardcode_minus_L_F77=no
21128 hardcode_automatic_F77=no
21130 module_expsym_cmds_F77=
21131 link_all_deplibs_F77=unknown
21132 old_archive_cmds_F77=$old_archive_cmds
21133 no_undefined_flag_F77=
21134 whole_archive_flag_spec_F77=
21135 enable_shared_with_static_runtimes_F77=no
21137 # Source file extension for f77 test sources.
21140 # Object file extension for compiled f77 test sources.
21144 # Code to be used in simple compile tests
21145 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21147 # Code to be used in simple link tests
21148 lt_simple_link_test_code=" program t\n end\n"
21150 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21152 # If no C compiler was specified, use CC.
21155 # If no C compiler flags were specified, use CFLAGS.
21156 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21158 # Allow CC to be a program name with arguments.
21162 # save warnings/boilerplate of simple test code
21163 ac_outfile=conftest.$ac_objext
21164 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21165 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21166 _lt_compiler_boilerplate=`cat conftest.err`
21169 ac_outfile=conftest.$ac_objext
21170 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21171 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21172 _lt_linker_boilerplate=`cat conftest.err`
21176 # Allow CC to be a program name with arguments.
21181 for cc_temp in $compiler""; do
21183 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21184 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21189 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21192 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21193 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21194 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21195 echo "${ECHO_T}$can_build_shared" >&6; }
21197 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21198 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21199 test "$can_build_shared" = "no" && enable_shared=no
21201 # On AIX, shared libraries and static libraries use the same namespace, and
21202 # are all built from PIC.
21205 test "$enable_shared" = yes && enable_static=no
21206 if test -n "$RANLIB"; then
21207 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21208 postinstall_cmds='$RANLIB $lib'
21212 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21213 test "$enable_shared" = yes && enable_static=no
21217 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21218 echo "${ECHO_T}$enable_shared" >&6; }
21220 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21221 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21222 # Make sure either enable_shared or enable_static is yes.
21223 test "$enable_shared" = yes || enable_static=yes
21224 { echo "$as_me:$LINENO: result: $enable_static" >&5
21225 echo "${ECHO_T}$enable_static" >&6; }
21230 lt_prog_compiler_wl_F77=
21231 lt_prog_compiler_pic_F77=
21232 lt_prog_compiler_static_F77=
21234 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21235 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21237 if test "$GCC" = yes; then
21238 lt_prog_compiler_wl_F77='-Wl,'
21239 lt_prog_compiler_static_F77='-static'
21243 # All AIX code is PIC.
21244 if test "$host_cpu" = ia64; then
21245 # AIX 5 now supports IA64 processor
21246 lt_prog_compiler_static_F77='-Bstatic'
21251 # FIXME: we need at least 68020 code to build shared libraries, but
21252 # adding the `-m68020' flag to GCC prevents building anything better,
21254 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21257 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21258 # PIC is the default for these OSes.
21261 mingw* | pw32* | os2*)
21262 # This hack is so that the source file can tell whether it is being
21263 # built for inclusion in a dll (and should export symbols for example).
21264 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21267 darwin* | rhapsody*)
21268 # PIC is the default on this platform
21269 # Common symbols not allowed in MH_DYLIB files
21270 lt_prog_compiler_pic_F77='-fno-common'
21274 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21275 # Instead, we relocate shared libraries at runtime.
21279 # Just because we use GCC doesn't mean we suddenly get shared libraries
21280 # on systems that don't support them.
21281 lt_prog_compiler_can_build_shared_F77=no
21286 if test -d /usr/nec; then
21287 lt_prog_compiler_pic_F77=-Kconform_pic
21292 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21293 # not for PA HP-UX.
21299 lt_prog_compiler_pic_F77='-fPIC'
21305 lt_prog_compiler_pic_F77='-fPIC'
21309 # PORTME Check for flag to pass linker flags through the system compiler.
21312 lt_prog_compiler_wl_F77='-Wl,'
21313 if test "$host_cpu" = ia64; then
21314 # AIX 5 now supports IA64 processor
21315 lt_prog_compiler_static_F77='-Bstatic'
21317 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21321 # PIC is the default on this platform
21322 # Common symbols not allowed in MH_DYLIB files
21323 case $cc_basename in
21325 lt_prog_compiler_pic_F77='-qnocommon'
21326 lt_prog_compiler_wl_F77='-Wl,'
21331 mingw* | pw32* | os2*)
21332 # This hack is so that the source file can tell whether it is being
21333 # built for inclusion in a dll (and should export symbols for example).
21334 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21337 hpux9* | hpux10* | hpux11*)
21338 lt_prog_compiler_wl_F77='-Wl,'
21339 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21340 # not for PA HP-UX.
21346 lt_prog_compiler_pic_F77='+Z'
21349 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21350 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21353 irix5* | irix6* | nonstopux*)
21354 lt_prog_compiler_wl_F77='-Wl,'
21355 # PIC (with -KPIC) is the default.
21356 lt_prog_compiler_static_F77='-non_shared'
21360 lt_prog_compiler_pic_F77='-KPIC'
21361 lt_prog_compiler_static_F77='-Bstatic'
21365 case $cc_basename in
21367 lt_prog_compiler_wl_F77='-Wl,'
21368 lt_prog_compiler_pic_F77='-KPIC'
21369 lt_prog_compiler_static_F77='-static'
21371 pgcc* | pgf77* | pgf90* | pgf95*)
21372 # Portland Group compilers (*not* the Pentium gcc compiler,
21373 # which looks to be a dead project)
21374 lt_prog_compiler_wl_F77='-Wl,'
21375 lt_prog_compiler_pic_F77='-fpic'
21376 lt_prog_compiler_static_F77='-Bstatic'
21379 lt_prog_compiler_wl_F77='-Wl,'
21380 # All Alpha code is PIC.
21381 lt_prog_compiler_static_F77='-non_shared'
21386 osf3* | osf4* | osf5*)
21387 lt_prog_compiler_wl_F77='-Wl,'
21388 # All OSF/1 code is PIC.
21389 lt_prog_compiler_static_F77='-non_shared'
21393 lt_prog_compiler_pic_F77='-KPIC'
21394 lt_prog_compiler_static_F77='-Bstatic'
21395 case $cc_basename in
21396 f77* | f90* | f95*)
21397 lt_prog_compiler_wl_F77='-Qoption ld ';;
21399 lt_prog_compiler_wl_F77='-Wl,';;
21404 lt_prog_compiler_wl_F77='-Qoption ld '
21405 lt_prog_compiler_pic_F77='-PIC'
21406 lt_prog_compiler_static_F77='-Bstatic'
21409 sysv4 | sysv4.2uw2* | sysv4.3*)
21410 lt_prog_compiler_wl_F77='-Wl,'
21411 lt_prog_compiler_pic_F77='-KPIC'
21412 lt_prog_compiler_static_F77='-Bstatic'
21416 if test -d /usr/nec ;then
21417 lt_prog_compiler_pic_F77='-Kconform_pic'
21418 lt_prog_compiler_static_F77='-Bstatic'
21422 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21423 lt_prog_compiler_wl_F77='-Wl,'
21424 lt_prog_compiler_pic_F77='-KPIC'
21425 lt_prog_compiler_static_F77='-Bstatic'
21429 lt_prog_compiler_wl_F77='-Wl,'
21430 lt_prog_compiler_can_build_shared_F77=no
21434 lt_prog_compiler_pic_F77='-pic'
21435 lt_prog_compiler_static_F77='-Bstatic'
21439 lt_prog_compiler_can_build_shared_F77=no
21444 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21445 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21448 # Check to make sure the PIC flag actually works.
21450 if test -n "$lt_prog_compiler_pic_F77"; then
21452 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21453 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21454 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21455 echo $ECHO_N "(cached) $ECHO_C" >&6
21457 lt_prog_compiler_pic_works_F77=no
21458 ac_outfile=conftest.$ac_objext
21459 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21460 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21461 # Insert the option either (1) after the last *FLAGS variable, or
21462 # (2) before a word containing "conftest.", or (3) at the end.
21463 # Note that $ac_compile itself does not contain backslashes and begins
21464 # with a dollar sign (not a hyphen), so the echo should work correctly.
21465 # The option is referenced via a variable to avoid confusing sed.
21466 lt_compile=`echo "$ac_compile" | $SED \
21467 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21468 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21469 -e 's:$: $lt_compiler_flag:'`
21470 (eval echo "\"\$as_me:21467: $lt_compile\"" >&5)
21471 (eval "$lt_compile" 2>conftest.err)
21473 cat conftest.err >&5
21474 echo "$as_me:21471: \$? = $ac_status" >&5
21475 if (exit $ac_status) && test -s "$ac_outfile"; then
21476 # The compiler can only warn and ignore the option if not recognized
21477 # So say no if there are warnings other than the usual output.
21478 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21479 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21480 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21481 lt_prog_compiler_pic_works_F77=yes
21487 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21488 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21490 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21491 case $lt_prog_compiler_pic_F77 in
21493 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21496 lt_prog_compiler_pic_F77=
21497 lt_prog_compiler_can_build_shared_F77=no
21502 # For platforms which do not support PIC, -DPIC is meaningless:
21504 lt_prog_compiler_pic_F77=
21507 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21512 # Check to make sure the static flag actually works.
21514 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21515 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21516 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21517 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21518 echo $ECHO_N "(cached) $ECHO_C" >&6
21520 lt_prog_compiler_static_works_F77=no
21521 save_LDFLAGS="$LDFLAGS"
21522 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21523 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21524 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21525 # The linker can only warn and ignore the option if not recognized
21526 # So say no if there are warnings
21527 if test -s conftest.err; then
21528 # Append any errors to the config.log.
21529 cat conftest.err 1>&5
21530 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21531 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21532 if diff conftest.exp conftest.er2 >/dev/null; then
21533 lt_prog_compiler_static_works_F77=yes
21536 lt_prog_compiler_static_works_F77=yes
21540 LDFLAGS="$save_LDFLAGS"
21543 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21544 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21546 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21549 lt_prog_compiler_static_F77=
21553 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21554 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21555 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21556 echo $ECHO_N "(cached) $ECHO_C" >&6
21558 lt_cv_prog_compiler_c_o_F77=no
21559 $rm -r conftest 2>/dev/null
21563 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21565 lt_compiler_flag="-o out/conftest2.$ac_objext"
21566 # Insert the option either (1) after the last *FLAGS variable, or
21567 # (2) before a word containing "conftest.", or (3) at the end.
21568 # Note that $ac_compile itself does not contain backslashes and begins
21569 # with a dollar sign (not a hyphen), so the echo should work correctly.
21570 lt_compile=`echo "$ac_compile" | $SED \
21571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21573 -e 's:$: $lt_compiler_flag:'`
21574 (eval echo "\"\$as_me:21571: $lt_compile\"" >&5)
21575 (eval "$lt_compile" 2>out/conftest.err)
21577 cat out/conftest.err >&5
21578 echo "$as_me:21575: \$? = $ac_status" >&5
21579 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21581 # The compiler can only warn and ignore the option if not recognized
21582 # So say no if there are warnings
21583 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21584 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21585 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21586 lt_cv_prog_compiler_c_o_F77=yes
21591 # SGI C++ compiler will create directory out/ii_files/ for
21592 # template instantiation
21593 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21594 $rm out/* && rmdir out
21600 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21601 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21604 hard_links="nottested"
21605 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21606 # do not overwrite the value of need_locks provided by the user
21607 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21608 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21611 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21613 ln conftest.a conftest.b 2>&5 || hard_links=no
21614 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21615 { echo "$as_me:$LINENO: result: $hard_links" >&5
21616 echo "${ECHO_T}$hard_links" >&6; }
21617 if test "$hard_links" = no; then
21618 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21619 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21626 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21627 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21630 allow_undefined_flag_F77=
21631 enable_shared_with_static_runtimes_F77=no
21633 archive_expsym_cmds_F77=
21634 old_archive_From_new_cmds_F77=
21635 old_archive_from_expsyms_cmds_F77=
21636 export_dynamic_flag_spec_F77=
21637 whole_archive_flag_spec_F77=
21638 thread_safe_flag_spec_F77=
21639 hardcode_libdir_flag_spec_F77=
21640 hardcode_libdir_flag_spec_ld_F77=
21641 hardcode_libdir_separator_F77=
21642 hardcode_direct_F77=no
21643 hardcode_minus_L_F77=no
21644 hardcode_shlibpath_var_F77=unsupported
21645 link_all_deplibs_F77=unknown
21646 hardcode_automatic_F77=no
21648 module_expsym_cmds_F77=
21649 always_export_symbols_F77=no
21650 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21651 # include_expsyms should be a list of space-separated symbols to be *always*
21652 # included in the symbol list
21653 include_expsyms_F77=
21654 # exclude_expsyms can be an extended regexp of symbols to exclude
21655 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21656 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21657 # as well as any symbol that contains `d'.
21658 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21659 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21660 # platforms (ab)use it in PIC code, but their linkers get confused if
21661 # the symbol is explicitly referenced. Since portable code cannot
21662 # rely on this symbol name, it's probably fine to never include it in
21663 # preloaded symbol tables.
21664 extract_expsyms_cmds=
21665 # Just being paranoid about ensuring that cc_basename is set.
21666 for cc_temp in $compiler""; do
21668 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21669 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21674 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21677 cygwin* | mingw* | pw32*)
21678 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21679 # When not using gcc, we currently assume that we are using
21680 # Microsoft Visual C++.
21681 if test "$GCC" != yes; then
21686 # we just hope/assume this is gcc and not c89 (= MSVC++)
21695 if test "$with_gnu_ld" = yes; then
21696 # If archive_cmds runs LD, not CC, wlarc should be empty
21699 # Set some defaults for GNU ld with shared library support. These
21700 # are reset later if shared libraries are not supported. Putting them
21701 # here allows them to be overridden if necessary.
21702 runpath_var=LD_RUN_PATH
21703 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21704 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21705 # ancient GNU ld didn't support --whole-archive et. al.
21706 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21707 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21709 whole_archive_flag_spec_F77=
21711 supports_anon_versioning=no
21712 case `$LD -v 2>/dev/null` in
21713 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21714 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21715 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21716 *\ 2.11.*) ;; # other 2.11 versions
21717 *) supports_anon_versioning=yes ;;
21720 # See if GNU ld supports shared libraries.
21722 aix3* | aix4* | aix5*)
21723 # On AIX/PPC, the GNU linker is very broken
21724 if test "$host_cpu" != ia64; then
21728 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21729 *** to be unable to reliably create shared libraries on AIX.
21730 *** Therefore, libtool is disabling shared libraries support. If you
21731 *** really care for shared libraries, you may want to modify your PATH
21732 *** so that a non-GNU linker is found, and then restart.
21739 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)'
21740 hardcode_libdir_flag_spec_F77='-L$libdir'
21741 hardcode_minus_L_F77=yes
21743 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21744 # that the semantics of dynamic libraries on AmigaOS, at least up
21745 # to version 4, is to share data among multiple programs linked
21746 # with the same dynamic library. Since this doesn't match the
21747 # behavior of shared libraries on other platforms, we can't use
21753 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21754 allow_undefined_flag_F77=unsupported
21755 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21756 # support --undefined. This deserves some investigation. FIXME
21757 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21763 cygwin* | mingw* | pw32*)
21764 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21765 # as there is no search path for DLLs.
21766 hardcode_libdir_flag_spec_F77='-L$libdir'
21767 allow_undefined_flag_F77=unsupported
21768 always_export_symbols_F77=no
21769 enable_shared_with_static_runtimes_F77=yes
21770 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21772 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21773 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21774 # If the export-symbols file already is a .def file (1st line
21775 # is EXPORTS), use it as is; otherwise, prepend...
21776 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21777 cp $export_symbols $output_objdir/$soname.def;
21779 echo EXPORTS > $output_objdir/$soname.def;
21780 cat $export_symbols >> $output_objdir/$soname.def;
21782 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21789 hardcode_direct_F77=no
21790 hardcode_shlibpath_var_F77=no
21791 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21792 export_dynamic_flag_spec_F77='${wl}-E'
21793 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21794 # Instead, shared libraries are loaded at an image base (0x10000000 by
21795 # default) and relocated if they conflict, which is a slow very memory
21796 # consuming and fragmenting process. To avoid this, we pick a random,
21797 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21798 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21799 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'
21800 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'
21804 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21806 case $cc_basename,$host_cpu in
21807 pgcc*) # Portland Group C compiler
21808 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'
21809 tmp_addflag=' $pic_flag'
21811 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21812 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'
21813 tmp_addflag=' $pic_flag -Mnomain' ;;
21814 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21815 tmp_addflag=' -i_dynamic' ;;
21816 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21817 tmp_addflag=' -i_dynamic -nofor_main' ;;
21818 ifc* | ifort*) # Intel Fortran compiler
21819 tmp_addflag=' -nofor_main' ;;
21821 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21823 if test $supports_anon_versioning = yes; then
21824 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21825 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21826 $echo "local: *; };" >> $output_objdir/$libname.ver~
21827 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21835 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21836 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21839 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21840 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21845 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21849 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21850 *** create shared libraries on Solaris systems. Therefore, libtool
21851 *** is disabling shared libraries support. We urge you to upgrade GNU
21852 *** binutils to release 2.9.1 or newer. Another option is to modify
21853 *** your PATH or compiler configuration so that the native linker is
21854 *** used, and then restart.
21857 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21858 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21859 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21865 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21866 case `$LD -v 2>&1` in
21867 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21871 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21872 *** reliably create shared libraries on SCO systems. Therefore, libtool
21873 *** is disabling shared libraries support. We urge you to upgrade GNU
21874 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21875 *** your PATH or compiler configuration so that the native linker is
21876 *** used, and then restart.
21881 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21882 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21883 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21884 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21893 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21895 hardcode_direct_F77=yes
21896 hardcode_shlibpath_var_F77=no
21900 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21901 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21902 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21909 if test "$ld_shlibs_F77" = no; then
21911 hardcode_libdir_flag_spec_F77=
21912 export_dynamic_flag_spec_F77=
21913 whole_archive_flag_spec_F77=
21916 # PORTME fill in a description of your system's linker (not GNU ld)
21919 allow_undefined_flag_F77=unsupported
21920 always_export_symbols_F77=yes
21921 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'
21922 # Note: this linker hardcodes the directories in LIBPATH if there
21923 # are no directories specified by -L.
21924 hardcode_minus_L_F77=yes
21925 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21926 # Neither direct hardcoding nor static linking is supported with a
21928 hardcode_direct_F77=unsupported
21933 if test "$host_cpu" = ia64; then
21934 # On IA64, the linker does run time linking by default, so we don't
21935 # have to do anything special.
21936 aix_use_runtimelinking=no
21937 exp_sym_flag='-Bexport'
21940 # If we're using GNU nm, then we don't want the "-C" option.
21941 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21942 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21943 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'
21945 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'
21947 aix_use_runtimelinking=no
21949 # Test if we are trying to use run time linking or normal
21950 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21951 # need to do runtime linking.
21952 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21953 for ld_flag in $LDFLAGS; do
21954 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21955 aix_use_runtimelinking=yes
21962 exp_sym_flag='-bexport'
21963 no_entry_flag='-bnoentry'
21966 # When large executables or shared objects are built, AIX ld can
21967 # have problems creating the table of contents. If linking a library
21968 # or program results in "error TOC overflow" add -mminimal-toc to
21969 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21970 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21972 archive_cmds_F77=''
21973 hardcode_direct_F77=yes
21974 hardcode_libdir_separator_F77=':'
21975 link_all_deplibs_F77=yes
21977 if test "$GCC" = yes; then
21978 case $host_os in aix4.[012]|aix4.[012].*)
21979 # We only want to do this on AIX 4.2 and lower, the check
21980 # below for broken collect2 doesn't work under 4.3+
21981 collect2name=`${CC} -print-prog-name=collect2`
21982 if test -f "$collect2name" && \
21983 strings "$collect2name" | grep resolve_lib_name >/dev/null
21985 # We have reworked collect2
21986 hardcode_direct_F77=yes
21988 # We have old collect2
21989 hardcode_direct_F77=unsupported
21990 # It fails to find uninstalled libraries when the uninstalled
21991 # path is not listed in the libpath. Setting hardcode_minus_L
21992 # to unsupported forces relinking
21993 hardcode_minus_L_F77=yes
21994 hardcode_libdir_flag_spec_F77='-L$libdir'
21995 hardcode_libdir_separator_F77=
21999 shared_flag='-shared'
22000 if test "$aix_use_runtimelinking" = yes; then
22001 shared_flag="$shared_flag "'${wl}-G'
22005 if test "$host_cpu" = ia64; then
22006 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22007 # chokes on -Wl,-G. The following line is correct:
22010 if test "$aix_use_runtimelinking" = yes; then
22011 shared_flag='${wl}-G'
22013 shared_flag='${wl}-bM:SRE'
22018 # It seems that -bexpall does not export symbols beginning with
22019 # underscore (_), so it is better to generate a list of symbols to export.
22020 always_export_symbols_F77=yes
22021 if test "$aix_use_runtimelinking" = yes; then
22022 # Warning - without using the other runtime loading flags (-brtl),
22023 # -berok will link without error, but may produce a broken library.
22024 allow_undefined_flag_F77='-berok'
22025 # Determine the default libpath from the value encoded in an empty executable.
22026 cat >conftest.$ac_ext <<_ACEOF
22031 rm -f conftest.$ac_objext conftest$ac_exeext
22032 if { (ac_try="$ac_link"
22033 case "(($ac_try" in
22034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035 *) ac_try_echo=$ac_try;;
22037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038 (eval "$ac_link") 2>conftest.er1
22040 grep -v '^ *+' conftest.er1 >conftest.err
22042 cat conftest.err >&5
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); } &&
22045 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22046 { (case "(($ac_try" in
22047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22048 *) ac_try_echo=$ac_try;;
22050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22051 (eval "$ac_try") 2>&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); }; } &&
22055 { ac_try='test -s conftest$ac_exeext'
22056 { (case "(($ac_try" in
22057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058 *) ac_try_echo=$ac_try;;
22060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061 (eval "$ac_try") 2>&5
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); }; }; then
22066 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22068 # Check for a 64-bit object if we didn't find anything.
22069 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; }
22072 echo "$as_me: failed program was:" >&5
22073 sed 's/^/| /' conftest.$ac_ext >&5
22078 rm -f core conftest.err conftest.$ac_objext \
22079 conftest$ac_exeext conftest.$ac_ext
22080 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22082 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22083 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"
22085 if test "$host_cpu" = ia64; then
22086 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22087 allow_undefined_flag_F77="-z nodefs"
22088 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"
22090 # Determine the default libpath from the value encoded in an empty executable.
22091 cat >conftest.$ac_ext <<_ACEOF
22096 rm -f conftest.$ac_objext conftest$ac_exeext
22097 if { (ac_try="$ac_link"
22098 case "(($ac_try" in
22099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22100 *) ac_try_echo=$ac_try;;
22102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22103 (eval "$ac_link") 2>conftest.er1
22105 grep -v '^ *+' conftest.er1 >conftest.err
22107 cat conftest.err >&5
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); } &&
22110 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22111 { (case "(($ac_try" in
22112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22113 *) ac_try_echo=$ac_try;;
22115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22116 (eval "$ac_try") 2>&5
22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); }; } &&
22120 { ac_try='test -s conftest$ac_exeext'
22121 { (case "(($ac_try" in
22122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22123 *) ac_try_echo=$ac_try;;
22125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22126 (eval "$ac_try") 2>&5
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); }; }; then
22131 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22133 # Check for a 64-bit object if we didn't find anything.
22134 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; }
22137 echo "$as_me: failed program was:" >&5
22138 sed 's/^/| /' conftest.$ac_ext >&5
22143 rm -f core conftest.err conftest.$ac_objext \
22144 conftest$ac_exeext conftest.$ac_ext
22145 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22147 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22148 # Warning - without using the other run time loading flags,
22149 # -berok will link without error, but may produce a broken library.
22150 no_undefined_flag_F77=' ${wl}-bernotok'
22151 allow_undefined_flag_F77=' ${wl}-berok'
22152 # Exported symbols can be pulled into shared objects from archives
22153 whole_archive_flag_spec_F77='$convenience'
22154 archive_cmds_need_lc_F77=yes
22155 # This is similar to how AIX traditionally builds its shared libraries.
22156 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'
22162 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)'
22163 hardcode_libdir_flag_spec_F77='-L$libdir'
22164 hardcode_minus_L_F77=yes
22165 # see comment about different semantics on the GNU ld section
22170 export_dynamic_flag_spec_F77=-rdynamic
22173 cygwin* | mingw* | pw32*)
22174 # When not using gcc, we currently assume that we are using
22175 # Microsoft Visual C++.
22176 # hardcode_libdir_flag_spec is actually meaningless, as there is
22177 # no search path for DLLs.
22178 hardcode_libdir_flag_spec_F77=' '
22179 allow_undefined_flag_F77=unsupported
22180 # Tell ltmain to make .lib files, not .a files.
22182 # Tell ltmain to make .dll files, not .so files.
22184 # FIXME: Setting linknames here is a bad hack.
22185 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22186 # The linker will automatically build a .lib file if we build a DLL.
22187 old_archive_From_new_cmds_F77='true'
22188 # FIXME: Should let the user specify the lib program.
22189 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22190 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22191 enable_shared_with_static_runtimes_F77=yes
22194 darwin* | rhapsody*)
22196 rhapsody* | darwin1.[012])
22197 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22200 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22201 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22203 case ${MACOSX_DEPLOYMENT_TARGET} in
22205 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22208 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22214 archive_cmds_need_lc_F77=no
22215 hardcode_direct_F77=no
22216 hardcode_automatic_F77=yes
22217 hardcode_shlibpath_var_F77=unsupported
22218 whole_archive_flag_spec_F77=''
22219 link_all_deplibs_F77=yes
22220 if test "$GCC" = yes ; then
22221 output_verbose_link_cmd='echo'
22222 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22223 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22224 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22225 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}'
22226 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}'
22228 case $cc_basename in
22230 output_verbose_link_cmd='echo'
22231 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22232 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22233 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22234 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}'
22235 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}'
22245 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22246 hardcode_libdir_flag_spec_F77='-L$libdir'
22247 hardcode_shlibpath_var_F77=no
22254 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22255 # support. Future versions do this automatically, but an explicit c++rt0.o
22256 # does not break anything, and helps significantly (at the cost of a little
22259 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22260 hardcode_libdir_flag_spec_F77='-R$libdir'
22261 hardcode_direct_F77=yes
22262 hardcode_shlibpath_var_F77=no
22265 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22267 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22268 hardcode_direct_F77=yes
22269 hardcode_minus_L_F77=yes
22270 hardcode_shlibpath_var_F77=no
22273 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22274 freebsd* | kfreebsd*-gnu | dragonfly*)
22275 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22276 hardcode_libdir_flag_spec_F77='-R$libdir'
22277 hardcode_direct_F77=yes
22278 hardcode_shlibpath_var_F77=no
22282 if test "$GCC" = yes; then
22283 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'
22285 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'
22287 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22288 hardcode_libdir_separator_F77=:
22289 hardcode_direct_F77=yes
22291 # hardcode_minus_L: Not really in the search PATH,
22292 # but as the default location of the library.
22293 hardcode_minus_L_F77=yes
22294 export_dynamic_flag_spec_F77='${wl}-E'
22298 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22299 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22301 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22303 if test "$with_gnu_ld" = no; then
22304 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22305 hardcode_libdir_separator_F77=:
22307 hardcode_direct_F77=yes
22308 export_dynamic_flag_spec_F77='${wl}-E'
22310 # hardcode_minus_L: Not really in the search PATH,
22311 # but as the default location of the library.
22312 hardcode_minus_L_F77=yes
22317 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22320 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22323 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22326 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22332 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22335 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22338 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22342 if test "$with_gnu_ld" = no; then
22343 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22344 hardcode_libdir_separator_F77=:
22348 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22349 hardcode_direct_F77=no
22350 hardcode_shlibpath_var_F77=no
22353 hardcode_direct_F77=yes
22354 export_dynamic_flag_spec_F77='${wl}-E'
22356 # hardcode_minus_L: Not really in the search PATH,
22357 # but as the default location of the library.
22358 hardcode_minus_L_F77=yes
22364 irix5* | irix6* | nonstopux*)
22365 if test "$GCC" = yes; then
22366 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'
22368 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'
22369 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22371 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22372 hardcode_libdir_separator_F77=:
22373 link_all_deplibs_F77=yes
22377 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22378 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22380 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22382 hardcode_libdir_flag_spec_F77='-R$libdir'
22383 hardcode_direct_F77=yes
22384 hardcode_shlibpath_var_F77=no
22388 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22389 hardcode_direct_F77=yes
22390 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22391 hardcode_libdir_separator_F77=:
22392 hardcode_shlibpath_var_F77=no
22396 hardcode_direct_F77=yes
22397 hardcode_shlibpath_var_F77=no
22398 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22399 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22400 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22401 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22402 export_dynamic_flag_spec_F77='${wl}-E'
22405 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22406 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22407 hardcode_libdir_flag_spec_F77='-R$libdir'
22410 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22411 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22418 hardcode_libdir_flag_spec_F77='-L$libdir'
22419 hardcode_minus_L_F77=yes
22420 allow_undefined_flag_F77=unsupported
22421 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'
22422 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22426 if test "$GCC" = yes; then
22427 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22428 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'
22430 allow_undefined_flag_F77=' -expect_unresolved \*'
22431 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'
22433 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22434 hardcode_libdir_separator_F77=:
22437 osf4* | osf5*) # as osf3* with the addition of -msym flag
22438 if test "$GCC" = yes; then
22439 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22440 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'
22441 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22443 allow_undefined_flag_F77=' -expect_unresolved \*'
22444 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'
22445 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~
22446 $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'
22448 # Both c and cxx compiler support -rpath directly
22449 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22451 hardcode_libdir_separator_F77=:
22455 no_undefined_flag_F77=' -z text'
22456 if test "$GCC" = yes; then
22458 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22459 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22460 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22463 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22464 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22465 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22467 hardcode_libdir_flag_spec_F77='-R$libdir'
22468 hardcode_shlibpath_var_F77=no
22470 solaris2.[0-5] | solaris2.[0-5].*) ;;
22472 # The compiler driver will combine linker options so we
22473 # cannot just pass the convience library names through
22474 # without $wl, iff we do not link with $LD.
22475 # Luckily, gcc supports the same syntax we need for Sun Studio.
22476 # Supported since Solaris 2.6 (maybe 2.5.1?)
22479 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22481 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' ;;
22484 link_all_deplibs_F77=yes
22488 if test "x$host_vendor" = xsequent; then
22489 # Use $CC to link under sequent, because it throws in some extra .o
22490 # files that make .init and .fini sections work.
22491 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22493 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22495 hardcode_libdir_flag_spec_F77='-L$libdir'
22496 hardcode_direct_F77=yes
22497 hardcode_minus_L_F77=yes
22498 hardcode_shlibpath_var_F77=no
22502 case $host_vendor in
22504 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22505 hardcode_direct_F77=yes # is this really true???
22508 ## LD is ld it makes a PLAMLIB
22509 ## CC just makes a GrossModule.
22510 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22511 reload_cmds_F77='$CC -r -o $output$reload_objs'
22512 hardcode_direct_F77=no
22515 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22516 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22519 runpath_var='LD_RUN_PATH'
22520 hardcode_shlibpath_var_F77=no
22524 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22525 hardcode_shlibpath_var_F77=no
22526 export_dynamic_flag_spec_F77='-Bexport'
22530 if test -d /usr/nec; then
22531 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22532 hardcode_shlibpath_var_F77=no
22533 runpath_var=LD_RUN_PATH
22534 hardcode_runpath_var=yes
22539 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22540 no_undefined_flag_F77='${wl}-z,text'
22541 archive_cmds_need_lc_F77=no
22542 hardcode_shlibpath_var_F77=no
22543 runpath_var='LD_RUN_PATH'
22545 if test "$GCC" = yes; then
22546 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22547 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22549 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22550 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22554 sysv5* | sco3.2v5* | sco5v6*)
22555 # Note: We can NOT use -z defs as we might desire, because we do not
22556 # link with -lc, and that would cause any symbols used from libc to
22557 # always be unresolved, which means just about no library would
22558 # ever link correctly. If we're not using GNU ld we use -z text
22559 # though, which does catch some bad symbols but isn't as heavy-handed
22561 no_undefined_flag_F77='${wl}-z,text'
22562 allow_undefined_flag_F77='${wl}-z,nodefs'
22563 archive_cmds_need_lc_F77=no
22564 hardcode_shlibpath_var_F77=no
22565 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22566 hardcode_libdir_separator_F77=':'
22567 link_all_deplibs_F77=yes
22568 export_dynamic_flag_spec_F77='${wl}-Bexport'
22569 runpath_var='LD_RUN_PATH'
22571 if test "$GCC" = yes; then
22572 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22573 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22575 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22576 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22581 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22582 hardcode_libdir_flag_spec_F77='-L$libdir'
22583 hardcode_shlibpath_var_F77=no
22592 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22593 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22594 test "$ld_shlibs_F77" = no && can_build_shared=no
22597 # Do we need to explicitly link libc?
22599 case "x$archive_cmds_need_lc_F77" in
22601 # Assume -lc should be added
22602 archive_cmds_need_lc_F77=yes
22604 if test "$enable_shared" = yes && test "$GCC" = yes; then
22605 case $archive_cmds_F77 in
22607 # FIXME: we may have to deal with multi-command sequences.
22610 # Test whether the compiler implicitly links with -lc since on some
22611 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22612 # to ld, don't add -lc before -lgcc.
22613 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22614 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22616 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22619 (eval $ac_compile) 2>&5
22621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); } 2>conftest.err; then
22625 libobjs=conftest.$ac_objext
22627 wl=$lt_prog_compiler_wl_F77
22628 pic_flag=$lt_prog_compiler_pic_F77
22634 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22635 allow_undefined_flag_F77=
22636 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22637 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640 (exit $ac_status); }
22642 archive_cmds_need_lc_F77=no
22644 archive_cmds_need_lc_F77=yes
22646 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22648 cat conftest.err 1>&5
22651 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22652 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22659 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22660 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22661 library_names_spec=
22662 libname_spec='lib$name'
22666 postuninstall_cmds=
22670 shlibpath_overrides_runpath=unknown
22672 dynamic_linker="$host_os ld.so"
22673 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22674 if test "$GCC" = yes; then
22675 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22676 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22677 # if the path contains ";" then we assume it to be the separator
22678 # otherwise default to the standard path separator (i.e. ":") - it is
22679 # assumed that no part of a normal pathname contains ";" but that should
22680 # okay in the real world where ";" in dirpaths is itself problematic.
22681 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22683 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22686 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22688 need_lib_prefix=unknown
22689 hardcode_into_libs=no
22691 # when you set need_version to no, make sure it does not cause -set_version
22692 # flags to be left without arguments
22693 need_version=unknown
22698 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22699 shlibpath_var=LIBPATH
22701 # AIX 3 has no versioning support, so we append a major version to the name.
22702 soname_spec='${libname}${release}${shared_ext}$major'
22709 hardcode_into_libs=yes
22710 if test "$host_cpu" = ia64; then
22711 # AIX 5 supports IA64
22712 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22713 shlibpath_var=LD_LIBRARY_PATH
22715 # With GCC up to 2.95.x, collect2 would create an import file
22716 # for dependence libraries. The import file would start with
22717 # the line `#! .'. This would cause the generated library to
22718 # depend on `.', always an invalid library. This was fixed in
22719 # development snapshots of GCC prior to 3.0.
22721 aix4 | aix4.[01] | aix4.[01].*)
22722 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22724 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22727 can_build_shared=no
22731 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22732 # soname into executable. Probably we can add versioning support to
22733 # collect2, so additional links can be useful in future.
22734 if test "$aix_use_runtimelinking" = yes; then
22735 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22736 # instead of lib<name>.a to let people know that these are not
22737 # typical AIX shared libraries.
22738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22740 # We preserve .a as extension for shared libraries through AIX4.2
22741 # and later when we are not doing run time linking.
22742 library_names_spec='${libname}${release}.a $libname.a'
22743 soname_spec='${libname}${release}${shared_ext}$major'
22745 shlibpath_var=LIBPATH
22750 library_names_spec='$libname.ixlibrary $libname.a'
22751 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22752 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'
22756 library_names_spec='${libname}${shared_ext}'
22757 dynamic_linker="$host_os ld.so"
22758 shlibpath_var=LIBRARY_PATH
22764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22765 soname_spec='${libname}${release}${shared_ext}$major'
22766 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22767 shlibpath_var=LD_LIBRARY_PATH
22768 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22769 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22770 # the default ld.so.conf also contains /usr/contrib/lib and
22771 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22772 # libtool to hard-code these into programs
22775 cygwin* | mingw* | pw32*)
22776 version_type=windows
22781 case $GCC,$host_os in
22782 yes,cygwin* | yes,mingw* | yes,pw32*)
22783 library_names_spec='$libname.dll.a'
22784 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22785 postinstall_cmds='base_file=`basename \${file}`~
22786 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22787 dldir=$destdir/`dirname \$dlpath`~
22788 test -d \$dldir || mkdir -p \$dldir~
22789 $install_prog $dir/$dlname \$dldir/$dlname~
22790 chmod a+x \$dldir/$dlname'
22791 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22792 dlpath=$dir/\$dldll~
22794 shlibpath_overrides_runpath=yes
22798 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22799 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22800 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22803 # MinGW DLLs use traditional 'lib' prefix
22804 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22805 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22806 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22807 # It is most probably a Windows format PATH printed by
22808 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22809 # path with ; separators, and with drive letters. We can handle the
22810 # drive letters (cygwin fileutils understands them), so leave them,
22811 # especially as we might pass files found there to a mingw objdump,
22812 # which wouldn't understand a cygwinified path. Ahh.
22813 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22815 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22819 # pw32 DLLs use 'pw' prefix rather than 'lib'
22820 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22826 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22829 dynamic_linker='Win32 ld.exe'
22830 # FIXME: first we should search . and the directory the executable is in
22834 darwin* | rhapsody*)
22835 dynamic_linker="$host_os dyld"
22836 version_type=darwin
22839 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22840 soname_spec='${libname}${release}${major}$shared_ext'
22841 shlibpath_overrides_runpath=yes
22842 shlibpath_var=DYLD_LIBRARY_PATH
22843 shrext_cmds='.dylib'
22844 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22845 if test "$GCC" = yes; then
22846 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"`
22848 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22850 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22858 soname_spec='${libname}${release}${shared_ext}$major'
22859 shlibpath_var=LD_LIBRARY_PATH
22870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22871 soname_spec='${libname}${release}${shared_ext}$major'
22872 shlibpath_var=LD_LIBRARY_PATH
22873 shlibpath_overrides_runpath=no
22874 hardcode_into_libs=yes
22875 dynamic_linker='GNU ld.so'
22878 freebsd* | dragonfly*)
22879 # DragonFly does not have aout. When/if they implement a new
22880 # versioning mechanism, adjust this.
22881 if test -x /usr/bin/objformat; then
22882 objformat=`/usr/bin/objformat`
22885 freebsd[123]*) objformat=aout ;;
22886 *) objformat=elf ;;
22889 version_type=freebsd-$objformat
22890 case $version_type in
22892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22897 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22901 shlibpath_var=LD_LIBRARY_PATH
22904 shlibpath_overrides_runpath=yes
22906 freebsd3.[01]* | freebsdelf3.[01]*)
22907 shlibpath_overrides_runpath=yes
22908 hardcode_into_libs=yes
22910 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22911 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22912 shlibpath_overrides_runpath=no
22913 hardcode_into_libs=yes
22915 freebsd*) # from 4.6 on
22916 shlibpath_overrides_runpath=yes
22917 hardcode_into_libs=yes
22926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22927 soname_spec='${libname}${release}${shared_ext}$major'
22928 shlibpath_var=LD_LIBRARY_PATH
22929 hardcode_into_libs=yes
22932 hpux9* | hpux10* | hpux11*)
22933 # Give a soname corresponding to the major version so that dld.sl refuses to
22934 # link against other versions.
22941 hardcode_into_libs=yes
22942 dynamic_linker="$host_os dld.so"
22943 shlibpath_var=LD_LIBRARY_PATH
22944 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22946 soname_spec='${libname}${release}${shared_ext}$major'
22947 if test "X$HPUX_IA64_MODE" = X32; then
22948 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22950 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22956 hardcode_into_libs=yes
22957 dynamic_linker="$host_os dld.sl"
22958 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22959 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22961 soname_spec='${libname}${release}${shared_ext}$major'
22962 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22963 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22967 dynamic_linker="$host_os dld.sl"
22968 shlibpath_var=SHLIB_PATH
22969 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22971 soname_spec='${libname}${release}${shared_ext}$major'
22974 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22975 postinstall_cmds='chmod 555 $lib'
22982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22983 soname_spec='${libname}${release}${shared_ext}$major'
22984 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22985 shlibpath_var=LD_LIBRARY_PATH
22986 shlibpath_overrides_runpath=no
22987 hardcode_into_libs=yes
22990 irix5* | irix6* | nonstopux*)
22992 nonstopux*) version_type=nonstopux ;;
22994 if test "$lt_cv_prog_gnu_ld" = yes; then
23002 soname_spec='${libname}${release}${shared_ext}$major'
23003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23005 irix5* | nonstopux*)
23006 libsuff= shlibsuff=
23009 case $LD in # libtool.m4 will add one of these switches to LD
23010 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23011 libsuff= shlibsuff= libmagic=32-bit;;
23012 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23013 libsuff=32 shlibsuff=N32 libmagic=N32;;
23014 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23015 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23016 *) libsuff= shlibsuff= libmagic=never-match;;
23020 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23021 shlibpath_overrides_runpath=no
23022 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23023 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23024 hardcode_into_libs=yes
23027 # No shared lib support for Linux oldld, aout, or coff.
23028 linux*oldld* | linux*aout* | linux*coff*)
23032 # This must be Linux ELF.
23037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23038 soname_spec='${libname}${release}${shared_ext}$major'
23039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23040 shlibpath_var=LD_LIBRARY_PATH
23041 shlibpath_overrides_runpath=no
23042 # This implies no fast_install, which is unacceptable.
23043 # Some rework will be needed to allow for fast_install
23044 # before this can be enabled.
23045 hardcode_into_libs=yes
23047 # Append ld.so.conf contents to the search path
23048 if test -f /etc/ld.so.conf; then
23049 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' ' '`
23050 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23053 # We used to test for /lib/ld.so.1 and disable shared libraries on
23054 # powerpc, because MkLinux only supported shared libraries with the
23055 # GNU dynamic linker. Since this was broken with cross compilers,
23056 # most powerpc-linux boxes support dynamic linking these days and
23057 # people can always --disable-shared, the test was removed, and we
23058 # assume the GNU/Linux dynamic linker is in use.
23059 dynamic_linker='GNU/Linux ld.so'
23066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23067 soname_spec='${libname}${release}${shared_ext}$major'
23068 shlibpath_var=LD_LIBRARY_PATH
23069 shlibpath_overrides_runpath=no
23070 hardcode_into_libs=yes
23071 dynamic_linker='GNU ld.so'
23078 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23081 dynamic_linker='NetBSD (a.out) ld.so'
23083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23084 soname_spec='${libname}${release}${shared_ext}$major'
23085 dynamic_linker='NetBSD ld.elf_so'
23087 shlibpath_var=LD_LIBRARY_PATH
23088 shlibpath_overrides_runpath=yes
23089 hardcode_into_libs=yes
23094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23095 shlibpath_var=LD_LIBRARY_PATH
23096 shlibpath_overrides_runpath=yes
23103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23104 soname_spec='${libname}${release}${shared_ext}$major'
23105 shlibpath_var=LD_LIBRARY_PATH
23106 shlibpath_overrides_runpath=yes
23111 sys_lib_dlsearch_path_spec="/usr/lib"
23113 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23115 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23116 *) need_version=no ;;
23118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23120 shlibpath_var=LD_LIBRARY_PATH
23121 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23123 openbsd2.[89] | openbsd2.[89].*)
23124 shlibpath_overrides_runpath=no
23127 shlibpath_overrides_runpath=yes
23131 shlibpath_overrides_runpath=yes
23136 libname_spec='$name'
23139 library_names_spec='$libname${shared_ext} $libname.a'
23140 dynamic_linker='OS/2 ld.exe'
23141 shlibpath_var=LIBPATH
23144 osf3* | osf4* | osf5*)
23148 soname_spec='${libname}${release}${shared_ext}$major'
23149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23150 shlibpath_var=LD_LIBRARY_PATH
23151 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23152 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23160 soname_spec='${libname}${release}${shared_ext}$major'
23161 shlibpath_var=LD_LIBRARY_PATH
23162 shlibpath_overrides_runpath=yes
23163 hardcode_into_libs=yes
23164 # ldd complains unless libraries are executable
23165 postinstall_cmds='chmod +x $lib'
23170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23171 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23172 shlibpath_var=LD_LIBRARY_PATH
23173 shlibpath_overrides_runpath=yes
23174 if test "$with_gnu_ld" = yes; then
23182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23183 soname_spec='${libname}${release}${shared_ext}$major'
23184 shlibpath_var=LD_LIBRARY_PATH
23185 case $host_vendor in
23187 shlibpath_overrides_runpath=no
23189 export_dynamic_flag_spec='${wl}-Blargedynsym'
23190 runpath_var=LD_RUN_PATH
23198 shlibpath_overrides_runpath=no
23199 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23205 if test -d /usr/nec ;then
23207 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23208 soname_spec='$libname${shared_ext}.$major'
23209 shlibpath_var=LD_LIBRARY_PATH
23213 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23214 version_type=freebsd-elf
23217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23218 soname_spec='${libname}${release}${shared_ext}$major'
23219 shlibpath_var=LD_LIBRARY_PATH
23220 hardcode_into_libs=yes
23221 if test "$with_gnu_ld" = yes; then
23222 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23223 shlibpath_overrides_runpath=no
23225 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23226 shlibpath_overrides_runpath=yes
23229 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23233 sys_lib_dlsearch_path_spec='/usr/lib'
23238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23239 soname_spec='${libname}${release}${shared_ext}$major'
23240 shlibpath_var=LD_LIBRARY_PATH
23247 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23248 echo "${ECHO_T}$dynamic_linker" >&6; }
23249 test "$dynamic_linker" = no && can_build_shared=no
23251 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23252 if test "$GCC" = yes; then
23253 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23256 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23257 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23258 hardcode_action_F77=
23259 if test -n "$hardcode_libdir_flag_spec_F77" || \
23260 test -n "$runpath_var_F77" || \
23261 test "X$hardcode_automatic_F77" = "Xyes" ; then
23263 # We can hardcode non-existant directories.
23264 if test "$hardcode_direct_F77" != no &&
23265 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23266 # have to relink, otherwise we might link with an installed library
23267 # when we should be linking with a yet-to-be-installed one
23268 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23269 test "$hardcode_minus_L_F77" != no; then
23270 # Linking always hardcodes the temporary library directory.
23271 hardcode_action_F77=relink
23273 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23274 hardcode_action_F77=immediate
23277 # We cannot hardcode anything, or else we can only hardcode existing
23279 hardcode_action_F77=unsupported
23281 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23282 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23284 if test "$hardcode_action_F77" = relink; then
23285 # Fast installation is not supported
23286 enable_fast_install=no
23287 elif test "$shlibpath_overrides_runpath" = yes ||
23288 test "$enable_shared" = no; then
23289 # Fast installation is not necessary
23290 enable_fast_install=needless
23294 # The else clause should only fire when bootstrapping the
23295 # libtool distribution, otherwise you forgot to ship ltmain.sh
23296 # with your package, and you will get complaints that there are
23297 # no rules to generate ltmain.sh.
23298 if test -f "$ltmain"; then
23299 # See if we are running on zsh, and set the options which allow our commands through
23300 # without removal of \ escapes.
23301 if test -n "${ZSH_VERSION+set}" ; then
23302 setopt NO_GLOB_SUBST
23304 # Now quote all the things that may contain metacharacters while being
23305 # careful not to overquote the AC_SUBSTed values. We take copies of the
23306 # variables and quote the copies for generation of the libtool script.
23307 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23309 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23310 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23311 deplibs_check_method reload_flag reload_cmds need_locks \
23312 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23313 lt_cv_sys_global_symbol_to_c_name_address \
23314 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23315 old_postinstall_cmds old_postuninstall_cmds \
23319 lt_prog_compiler_wl_F77 \
23320 lt_prog_compiler_pic_F77 \
23321 lt_prog_compiler_static_F77 \
23322 lt_prog_compiler_no_builtin_flag_F77 \
23323 export_dynamic_flag_spec_F77 \
23324 thread_safe_flag_spec_F77 \
23325 whole_archive_flag_spec_F77 \
23326 enable_shared_with_static_runtimes_F77 \
23327 old_archive_cmds_F77 \
23328 old_archive_from_new_cmds_F77 \
23329 predep_objects_F77 \
23330 postdep_objects_F77 \
23333 compiler_lib_search_path_F77 \
23335 archive_expsym_cmds_F77 \
23336 postinstall_cmds_F77 \
23337 postuninstall_cmds_F77 \
23338 old_archive_from_expsyms_cmds_F77 \
23339 allow_undefined_flag_F77 \
23340 no_undefined_flag_F77 \
23341 export_symbols_cmds_F77 \
23342 hardcode_libdir_flag_spec_F77 \
23343 hardcode_libdir_flag_spec_ld_F77 \
23344 hardcode_libdir_separator_F77 \
23345 hardcode_automatic_F77 \
23347 module_expsym_cmds_F77 \
23348 lt_cv_prog_compiler_c_o_F77 \
23349 exclude_expsyms_F77 \
23350 include_expsyms_F77; do
23353 old_archive_cmds_F77 | \
23354 old_archive_from_new_cmds_F77 | \
23355 archive_cmds_F77 | \
23356 archive_expsym_cmds_F77 | \
23357 module_cmds_F77 | \
23358 module_expsym_cmds_F77 | \
23359 old_archive_from_expsyms_cmds_F77 | \
23360 export_symbols_cmds_F77 | \
23361 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23362 postinstall_cmds | postuninstall_cmds | \
23363 old_postinstall_cmds | old_postuninstall_cmds | \
23364 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23365 # Double-quote double-evaled strings.
23366 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23369 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23375 *'\$0 --fallback-echo"')
23376 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23382 cat <<__EOF__ >> "$cfgfile"
23383 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23385 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23387 # Shell to use when invoking shell scripts.
23390 # Whether or not to build shared libraries.
23391 build_libtool_libs=$enable_shared
23393 # Whether or not to build static libraries.
23394 build_old_libs=$enable_static
23396 # Whether or not to add -lc for building shared libraries.
23397 build_libtool_need_lc=$archive_cmds_need_lc_F77
23399 # Whether or not to disallow shared libs when runtime libs are static
23400 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23402 # Whether or not to optimize for fast installation.
23403 fast_install=$enable_fast_install
23406 host_alias=$host_alias
23410 # The build system.
23411 build_alias=$build_alias
23415 # An echo program that does not interpret backslashes.
23420 AR_FLAGS=$lt_AR_FLAGS
23425 # LTCC compiler flags.
23426 LTCFLAGS=$lt_LTCFLAGS
23428 # A language-specific compiler.
23429 CC=$lt_compiler_F77
23431 # Is the compiler the GNU C compiler?
23437 # The linker used to build libraries.
23440 # Whether we need hard or soft links.
23443 # A BSD-compatible nm program.
23446 # A symbol stripping program
23449 # Used to examine libraries when file_magic_cmd begins "file"
23450 MAGIC_CMD=$MAGIC_CMD
23452 # Used on cygwin: DLL creation program.
23455 # Used on cygwin: object dumper.
23458 # Used on cygwin: assembler.
23461 # The name of the directory that contains temporary libtool files.
23464 # How to create reloadable object files.
23465 reload_flag=$lt_reload_flag
23466 reload_cmds=$lt_reload_cmds
23468 # How to pass a linker flag through the compiler.
23469 wl=$lt_lt_prog_compiler_wl_F77
23471 # Object file suffix (normally "o").
23472 objext="$ac_objext"
23474 # Old archive suffix (normally "a").
23477 # Shared library suffix (normally ".so").
23478 shrext_cmds='$shrext_cmds'
23480 # Executable file suffix (normally "").
23483 # Additional compiler flags for building library objects.
23484 pic_flag=$lt_lt_prog_compiler_pic_F77
23487 # What is the maximum length of a command?
23488 max_cmd_len=$lt_cv_sys_max_cmd_len
23490 # Does compiler simultaneously support -c and -o options?
23491 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23493 # Must we lock files when doing compilation?
23494 need_locks=$lt_need_locks
23496 # Do we need the lib prefix for modules?
23497 need_lib_prefix=$need_lib_prefix
23499 # Do we need a version for libraries?
23500 need_version=$need_version
23502 # Whether dlopen is supported.
23503 dlopen_support=$enable_dlopen
23505 # Whether dlopen of programs is supported.
23506 dlopen_self=$enable_dlopen_self
23508 # Whether dlopen of statically linked programs is supported.
23509 dlopen_self_static=$enable_dlopen_self_static
23511 # Compiler flag to prevent dynamic linking.
23512 link_static_flag=$lt_lt_prog_compiler_static_F77
23514 # Compiler flag to turn off builtin functions.
23515 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23517 # Compiler flag to allow reflexive dlopens.
23518 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23520 # Compiler flag to generate shared objects directly from archives.
23521 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23523 # Compiler flag to generate thread-safe objects.
23524 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23526 # Library versioning type.
23527 version_type=$version_type
23529 # Format of library name prefix.
23530 libname_spec=$lt_libname_spec
23532 # List of archive names. First name is the real one, the rest are links.
23533 # The last name is the one that the linker finds with -lNAME.
23534 library_names_spec=$lt_library_names_spec
23536 # The coded name of the library, if different from the real name.
23537 soname_spec=$lt_soname_spec
23539 # Commands used to build and install an old-style archive.
23541 old_archive_cmds=$lt_old_archive_cmds_F77
23542 old_postinstall_cmds=$lt_old_postinstall_cmds
23543 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23545 # Create an old-style archive from a shared archive.
23546 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23548 # Create a temporary old-style archive to link instead of a shared archive.
23549 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23551 # Commands used to build and install a shared archive.
23552 archive_cmds=$lt_archive_cmds_F77
23553 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23554 postinstall_cmds=$lt_postinstall_cmds
23555 postuninstall_cmds=$lt_postuninstall_cmds
23557 # Commands used to build a loadable module (assumed same as above if empty)
23558 module_cmds=$lt_module_cmds_F77
23559 module_expsym_cmds=$lt_module_expsym_cmds_F77
23561 # Commands to strip libraries.
23562 old_striplib=$lt_old_striplib
23563 striplib=$lt_striplib
23565 # Dependencies to place before the objects being linked to create a
23567 predep_objects=$lt_predep_objects_F77
23569 # Dependencies to place after the objects being linked to create a
23571 postdep_objects=$lt_postdep_objects_F77
23573 # Dependencies to place before the objects being linked to create a
23575 predeps=$lt_predeps_F77
23577 # Dependencies to place after the objects being linked to create a
23579 postdeps=$lt_postdeps_F77
23581 # The library search path used internally by the compiler when linking
23582 # a shared library.
23583 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23585 # Method to check whether dependent libraries are shared objects.
23586 deplibs_check_method=$lt_deplibs_check_method
23588 # Command to use when deplibs_check_method == file_magic.
23589 file_magic_cmd=$lt_file_magic_cmd
23591 # Flag that allows shared libraries with undefined symbols to be built.
23592 allow_undefined_flag=$lt_allow_undefined_flag_F77
23594 # Flag that forces no undefined symbols.
23595 no_undefined_flag=$lt_no_undefined_flag_F77
23597 # Commands used to finish a libtool library installation in a directory.
23598 finish_cmds=$lt_finish_cmds
23600 # Same as above, but a single script fragment to be evaled but not shown.
23601 finish_eval=$lt_finish_eval
23603 # Take the output of nm and produce a listing of raw symbols and C names.
23604 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23606 # Transform the output of nm in a proper C declaration
23607 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23609 # Transform the output of nm in a C name address pair
23610 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23612 # This is the shared library runtime path variable.
23613 runpath_var=$runpath_var
23615 # This is the shared library path variable.
23616 shlibpath_var=$shlibpath_var
23618 # Is shlibpath searched before the hard-coded library search path?
23619 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23621 # How to hardcode a shared library path into an executable.
23622 hardcode_action=$hardcode_action_F77
23624 # Whether we should hardcode library paths into libraries.
23625 hardcode_into_libs=$hardcode_into_libs
23627 # Flag to hardcode \$libdir into a binary during linking.
23628 # This must work even if \$libdir does not exist.
23629 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23631 # If ld is used when linking, flag to hardcode \$libdir into
23632 # a binary during linking. This must work even if \$libdir does
23634 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23636 # Whether we need a single -rpath flag with a separated argument.
23637 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23639 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23640 # resulting binary.
23641 hardcode_direct=$hardcode_direct_F77
23643 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23644 # resulting binary.
23645 hardcode_minus_L=$hardcode_minus_L_F77
23647 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23648 # the resulting binary.
23649 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23651 # Set to yes if building a shared library automatically hardcodes DIR into the library
23652 # and all subsequent libraries and executables linked against it.
23653 hardcode_automatic=$hardcode_automatic_F77
23655 # Variables whose values should be saved in libtool wrapper scripts and
23656 # restored at relink time.
23657 variables_saved_for_relink="$variables_saved_for_relink"
23659 # Whether libtool must link a program against all its dependency libraries.
23660 link_all_deplibs=$link_all_deplibs_F77
23662 # Compile-time system search path for libraries
23663 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23665 # Run-time system search path for libraries
23666 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23668 # Fix the shell variable \$srcfile for the compiler.
23669 fix_srcfile_path="$fix_srcfile_path_F77"
23671 # Set to yes if exported symbols are required.
23672 always_export_symbols=$always_export_symbols_F77
23674 # The commands to list exported symbols.
23675 export_symbols_cmds=$lt_export_symbols_cmds_F77
23677 # The commands to extract the exported symbol list from a shared archive.
23678 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23680 # Symbols that should not be listed in the preloaded symbols.
23681 exclude_expsyms=$lt_exclude_expsyms_F77
23683 # Symbols that must always be exported.
23684 include_expsyms=$lt_include_expsyms_F77
23686 # ### END LIBTOOL TAG CONFIG: $tagname
23692 # If there is no Makefile yet, we rely on a make rule to execute
23693 # `config.status --recheck' to rerun these tests and create the
23694 # libtool script then.
23695 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23696 if test -f "$ltmain_in"; then
23697 test -f Makefile && make "$ltmain"
23703 ac_cpp='$CPP $CPPFLAGS'
23704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23716 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23718 ac_cpp='$CPP $CPPFLAGS'
23719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23724 # Source file extension for Java test sources.
23727 # Object file extension for compiled Java test sources.
23731 # Code to be used in simple compile tests
23732 lt_simple_compile_test_code="class foo {}\n"
23734 # Code to be used in simple link tests
23735 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23737 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23739 # If no C compiler was specified, use CC.
23742 # If no C compiler flags were specified, use CFLAGS.
23743 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23745 # Allow CC to be a program name with arguments.
23749 # save warnings/boilerplate of simple test code
23750 ac_outfile=conftest.$ac_objext
23751 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23752 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23753 _lt_compiler_boilerplate=`cat conftest.err`
23756 ac_outfile=conftest.$ac_objext
23757 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23758 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23759 _lt_linker_boilerplate=`cat conftest.err`
23763 # Allow CC to be a program name with arguments.
23768 for cc_temp in $compiler""; do
23770 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23771 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23776 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23779 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23780 archive_cmds_need_lc_GCJ=no
23782 old_archive_cmds_GCJ=$old_archive_cmds
23785 lt_prog_compiler_no_builtin_flag_GCJ=
23787 if test "$GCC" = yes; then
23788 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23791 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23792 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23793 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23794 echo $ECHO_N "(cached) $ECHO_C" >&6
23796 lt_cv_prog_compiler_rtti_exceptions=no
23797 ac_outfile=conftest.$ac_objext
23798 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23799 lt_compiler_flag="-fno-rtti -fno-exceptions"
23800 # Insert the option either (1) after the last *FLAGS variable, or
23801 # (2) before a word containing "conftest.", or (3) at the end.
23802 # Note that $ac_compile itself does not contain backslashes and begins
23803 # with a dollar sign (not a hyphen), so the echo should work correctly.
23804 # The option is referenced via a variable to avoid confusing sed.
23805 lt_compile=`echo "$ac_compile" | $SED \
23806 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23808 -e 's:$: $lt_compiler_flag:'`
23809 (eval echo "\"\$as_me:23806: $lt_compile\"" >&5)
23810 (eval "$lt_compile" 2>conftest.err)
23812 cat conftest.err >&5
23813 echo "$as_me:23810: \$? = $ac_status" >&5
23814 if (exit $ac_status) && test -s "$ac_outfile"; then
23815 # The compiler can only warn and ignore the option if not recognized
23816 # So say no if there are warnings other than the usual output.
23817 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23818 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23819 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23820 lt_cv_prog_compiler_rtti_exceptions=yes
23826 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23827 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23829 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23830 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23837 lt_prog_compiler_wl_GCJ=
23838 lt_prog_compiler_pic_GCJ=
23839 lt_prog_compiler_static_GCJ=
23841 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23842 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23844 if test "$GCC" = yes; then
23845 lt_prog_compiler_wl_GCJ='-Wl,'
23846 lt_prog_compiler_static_GCJ='-static'
23850 # All AIX code is PIC.
23851 if test "$host_cpu" = ia64; then
23852 # AIX 5 now supports IA64 processor
23853 lt_prog_compiler_static_GCJ='-Bstatic'
23858 # FIXME: we need at least 68020 code to build shared libraries, but
23859 # adding the `-m68020' flag to GCC prevents building anything better,
23861 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23864 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23865 # PIC is the default for these OSes.
23868 mingw* | pw32* | os2*)
23869 # This hack is so that the source file can tell whether it is being
23870 # built for inclusion in a dll (and should export symbols for example).
23871 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23874 darwin* | rhapsody*)
23875 # PIC is the default on this platform
23876 # Common symbols not allowed in MH_DYLIB files
23877 lt_prog_compiler_pic_GCJ='-fno-common'
23881 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23882 # Instead, we relocate shared libraries at runtime.
23886 # Just because we use GCC doesn't mean we suddenly get shared libraries
23887 # on systems that don't support them.
23888 lt_prog_compiler_can_build_shared_GCJ=no
23893 if test -d /usr/nec; then
23894 lt_prog_compiler_pic_GCJ=-Kconform_pic
23899 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23900 # not for PA HP-UX.
23906 lt_prog_compiler_pic_GCJ='-fPIC'
23912 lt_prog_compiler_pic_GCJ='-fPIC'
23916 # PORTME Check for flag to pass linker flags through the system compiler.
23919 lt_prog_compiler_wl_GCJ='-Wl,'
23920 if test "$host_cpu" = ia64; then
23921 # AIX 5 now supports IA64 processor
23922 lt_prog_compiler_static_GCJ='-Bstatic'
23924 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23928 # PIC is the default on this platform
23929 # Common symbols not allowed in MH_DYLIB files
23930 case $cc_basename in
23932 lt_prog_compiler_pic_GCJ='-qnocommon'
23933 lt_prog_compiler_wl_GCJ='-Wl,'
23938 mingw* | pw32* | os2*)
23939 # This hack is so that the source file can tell whether it is being
23940 # built for inclusion in a dll (and should export symbols for example).
23941 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23944 hpux9* | hpux10* | hpux11*)
23945 lt_prog_compiler_wl_GCJ='-Wl,'
23946 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23947 # not for PA HP-UX.
23953 lt_prog_compiler_pic_GCJ='+Z'
23956 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23957 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23960 irix5* | irix6* | nonstopux*)
23961 lt_prog_compiler_wl_GCJ='-Wl,'
23962 # PIC (with -KPIC) is the default.
23963 lt_prog_compiler_static_GCJ='-non_shared'
23967 lt_prog_compiler_pic_GCJ='-KPIC'
23968 lt_prog_compiler_static_GCJ='-Bstatic'
23972 case $cc_basename in
23974 lt_prog_compiler_wl_GCJ='-Wl,'
23975 lt_prog_compiler_pic_GCJ='-KPIC'
23976 lt_prog_compiler_static_GCJ='-static'
23978 pgcc* | pgf77* | pgf90* | pgf95*)
23979 # Portland Group compilers (*not* the Pentium gcc compiler,
23980 # which looks to be a dead project)
23981 lt_prog_compiler_wl_GCJ='-Wl,'
23982 lt_prog_compiler_pic_GCJ='-fpic'
23983 lt_prog_compiler_static_GCJ='-Bstatic'
23986 lt_prog_compiler_wl_GCJ='-Wl,'
23987 # All Alpha code is PIC.
23988 lt_prog_compiler_static_GCJ='-non_shared'
23993 osf3* | osf4* | osf5*)
23994 lt_prog_compiler_wl_GCJ='-Wl,'
23995 # All OSF/1 code is PIC.
23996 lt_prog_compiler_static_GCJ='-non_shared'
24000 lt_prog_compiler_pic_GCJ='-KPIC'
24001 lt_prog_compiler_static_GCJ='-Bstatic'
24002 case $cc_basename in
24003 f77* | f90* | f95*)
24004 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24006 lt_prog_compiler_wl_GCJ='-Wl,';;
24011 lt_prog_compiler_wl_GCJ='-Qoption ld '
24012 lt_prog_compiler_pic_GCJ='-PIC'
24013 lt_prog_compiler_static_GCJ='-Bstatic'
24016 sysv4 | sysv4.2uw2* | sysv4.3*)
24017 lt_prog_compiler_wl_GCJ='-Wl,'
24018 lt_prog_compiler_pic_GCJ='-KPIC'
24019 lt_prog_compiler_static_GCJ='-Bstatic'
24023 if test -d /usr/nec ;then
24024 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24025 lt_prog_compiler_static_GCJ='-Bstatic'
24029 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24030 lt_prog_compiler_wl_GCJ='-Wl,'
24031 lt_prog_compiler_pic_GCJ='-KPIC'
24032 lt_prog_compiler_static_GCJ='-Bstatic'
24036 lt_prog_compiler_wl_GCJ='-Wl,'
24037 lt_prog_compiler_can_build_shared_GCJ=no
24041 lt_prog_compiler_pic_GCJ='-pic'
24042 lt_prog_compiler_static_GCJ='-Bstatic'
24046 lt_prog_compiler_can_build_shared_GCJ=no
24051 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24052 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24055 # Check to make sure the PIC flag actually works.
24057 if test -n "$lt_prog_compiler_pic_GCJ"; then
24059 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24060 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24061 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24062 echo $ECHO_N "(cached) $ECHO_C" >&6
24064 lt_prog_compiler_pic_works_GCJ=no
24065 ac_outfile=conftest.$ac_objext
24066 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24067 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24068 # Insert the option either (1) after the last *FLAGS variable, or
24069 # (2) before a word containing "conftest.", or (3) at the end.
24070 # Note that $ac_compile itself does not contain backslashes and begins
24071 # with a dollar sign (not a hyphen), so the echo should work correctly.
24072 # The option is referenced via a variable to avoid confusing sed.
24073 lt_compile=`echo "$ac_compile" | $SED \
24074 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24075 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24076 -e 's:$: $lt_compiler_flag:'`
24077 (eval echo "\"\$as_me:24074: $lt_compile\"" >&5)
24078 (eval "$lt_compile" 2>conftest.err)
24080 cat conftest.err >&5
24081 echo "$as_me:24078: \$? = $ac_status" >&5
24082 if (exit $ac_status) && test -s "$ac_outfile"; then
24083 # The compiler can only warn and ignore the option if not recognized
24084 # So say no if there are warnings other than the usual output.
24085 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24086 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24087 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24088 lt_prog_compiler_pic_works_GCJ=yes
24094 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24095 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24097 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24098 case $lt_prog_compiler_pic_GCJ in
24100 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24103 lt_prog_compiler_pic_GCJ=
24104 lt_prog_compiler_can_build_shared_GCJ=no
24109 # For platforms which do not support PIC, -DPIC is meaningless:
24111 lt_prog_compiler_pic_GCJ=
24114 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24119 # Check to make sure the static flag actually works.
24121 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24122 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24123 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24124 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24125 echo $ECHO_N "(cached) $ECHO_C" >&6
24127 lt_prog_compiler_static_works_GCJ=no
24128 save_LDFLAGS="$LDFLAGS"
24129 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24130 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24131 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24132 # The linker can only warn and ignore the option if not recognized
24133 # So say no if there are warnings
24134 if test -s conftest.err; then
24135 # Append any errors to the config.log.
24136 cat conftest.err 1>&5
24137 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24139 if diff conftest.exp conftest.er2 >/dev/null; then
24140 lt_prog_compiler_static_works_GCJ=yes
24143 lt_prog_compiler_static_works_GCJ=yes
24147 LDFLAGS="$save_LDFLAGS"
24150 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24151 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24153 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24156 lt_prog_compiler_static_GCJ=
24160 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24161 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24162 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24163 echo $ECHO_N "(cached) $ECHO_C" >&6
24165 lt_cv_prog_compiler_c_o_GCJ=no
24166 $rm -r conftest 2>/dev/null
24170 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24172 lt_compiler_flag="-o out/conftest2.$ac_objext"
24173 # Insert the option either (1) after the last *FLAGS variable, or
24174 # (2) before a word containing "conftest.", or (3) at the end.
24175 # Note that $ac_compile itself does not contain backslashes and begins
24176 # with a dollar sign (not a hyphen), so the echo should work correctly.
24177 lt_compile=`echo "$ac_compile" | $SED \
24178 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24179 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24180 -e 's:$: $lt_compiler_flag:'`
24181 (eval echo "\"\$as_me:24178: $lt_compile\"" >&5)
24182 (eval "$lt_compile" 2>out/conftest.err)
24184 cat out/conftest.err >&5
24185 echo "$as_me:24182: \$? = $ac_status" >&5
24186 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24188 # The compiler can only warn and ignore the option if not recognized
24189 # So say no if there are warnings
24190 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24191 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24192 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24193 lt_cv_prog_compiler_c_o_GCJ=yes
24198 # SGI C++ compiler will create directory out/ii_files/ for
24199 # template instantiation
24200 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24201 $rm out/* && rmdir out
24207 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24208 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24211 hard_links="nottested"
24212 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24213 # do not overwrite the value of need_locks provided by the user
24214 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24215 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24218 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24220 ln conftest.a conftest.b 2>&5 || hard_links=no
24221 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24222 { echo "$as_me:$LINENO: result: $hard_links" >&5
24223 echo "${ECHO_T}$hard_links" >&6; }
24224 if test "$hard_links" = no; then
24225 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24226 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24233 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24234 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24237 allow_undefined_flag_GCJ=
24238 enable_shared_with_static_runtimes_GCJ=no
24240 archive_expsym_cmds_GCJ=
24241 old_archive_From_new_cmds_GCJ=
24242 old_archive_from_expsyms_cmds_GCJ=
24243 export_dynamic_flag_spec_GCJ=
24244 whole_archive_flag_spec_GCJ=
24245 thread_safe_flag_spec_GCJ=
24246 hardcode_libdir_flag_spec_GCJ=
24247 hardcode_libdir_flag_spec_ld_GCJ=
24248 hardcode_libdir_separator_GCJ=
24249 hardcode_direct_GCJ=no
24250 hardcode_minus_L_GCJ=no
24251 hardcode_shlibpath_var_GCJ=unsupported
24252 link_all_deplibs_GCJ=unknown
24253 hardcode_automatic_GCJ=no
24255 module_expsym_cmds_GCJ=
24256 always_export_symbols_GCJ=no
24257 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24258 # include_expsyms should be a list of space-separated symbols to be *always*
24259 # included in the symbol list
24260 include_expsyms_GCJ=
24261 # exclude_expsyms can be an extended regexp of symbols to exclude
24262 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24263 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24264 # as well as any symbol that contains `d'.
24265 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24266 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24267 # platforms (ab)use it in PIC code, but their linkers get confused if
24268 # the symbol is explicitly referenced. Since portable code cannot
24269 # rely on this symbol name, it's probably fine to never include it in
24270 # preloaded symbol tables.
24271 extract_expsyms_cmds=
24272 # Just being paranoid about ensuring that cc_basename is set.
24273 for cc_temp in $compiler""; do
24275 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24276 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24281 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24284 cygwin* | mingw* | pw32*)
24285 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24286 # When not using gcc, we currently assume that we are using
24287 # Microsoft Visual C++.
24288 if test "$GCC" != yes; then
24293 # we just hope/assume this is gcc and not c89 (= MSVC++)
24302 if test "$with_gnu_ld" = yes; then
24303 # If archive_cmds runs LD, not CC, wlarc should be empty
24306 # Set some defaults for GNU ld with shared library support. These
24307 # are reset later if shared libraries are not supported. Putting them
24308 # here allows them to be overridden if necessary.
24309 runpath_var=LD_RUN_PATH
24310 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24311 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24312 # ancient GNU ld didn't support --whole-archive et. al.
24313 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24314 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24316 whole_archive_flag_spec_GCJ=
24318 supports_anon_versioning=no
24319 case `$LD -v 2>/dev/null` in
24320 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24321 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24322 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24323 *\ 2.11.*) ;; # other 2.11 versions
24324 *) supports_anon_versioning=yes ;;
24327 # See if GNU ld supports shared libraries.
24329 aix3* | aix4* | aix5*)
24330 # On AIX/PPC, the GNU linker is very broken
24331 if test "$host_cpu" != ia64; then
24335 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24336 *** to be unable to reliably create shared libraries on AIX.
24337 *** Therefore, libtool is disabling shared libraries support. If you
24338 *** really care for shared libraries, you may want to modify your PATH
24339 *** so that a non-GNU linker is found, and then restart.
24346 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)'
24347 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24348 hardcode_minus_L_GCJ=yes
24350 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24351 # that the semantics of dynamic libraries on AmigaOS, at least up
24352 # to version 4, is to share data among multiple programs linked
24353 # with the same dynamic library. Since this doesn't match the
24354 # behavior of shared libraries on other platforms, we can't use
24360 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24361 allow_undefined_flag_GCJ=unsupported
24362 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24363 # support --undefined. This deserves some investigation. FIXME
24364 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24370 cygwin* | mingw* | pw32*)
24371 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24372 # as there is no search path for DLLs.
24373 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24374 allow_undefined_flag_GCJ=unsupported
24375 always_export_symbols_GCJ=no
24376 enable_shared_with_static_runtimes_GCJ=yes
24377 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24379 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24380 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24381 # If the export-symbols file already is a .def file (1st line
24382 # is EXPORTS), use it as is; otherwise, prepend...
24383 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24384 cp $export_symbols $output_objdir/$soname.def;
24386 echo EXPORTS > $output_objdir/$soname.def;
24387 cat $export_symbols >> $output_objdir/$soname.def;
24389 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24396 hardcode_direct_GCJ=no
24397 hardcode_shlibpath_var_GCJ=no
24398 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24399 export_dynamic_flag_spec_GCJ='${wl}-E'
24400 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24401 # Instead, shared libraries are loaded at an image base (0x10000000 by
24402 # default) and relocated if they conflict, which is a slow very memory
24403 # consuming and fragmenting process. To avoid this, we pick a random,
24404 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24405 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24406 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'
24407 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'
24411 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24413 case $cc_basename,$host_cpu in
24414 pgcc*) # Portland Group C compiler
24415 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'
24416 tmp_addflag=' $pic_flag'
24418 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24419 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'
24420 tmp_addflag=' $pic_flag -Mnomain' ;;
24421 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24422 tmp_addflag=' -i_dynamic' ;;
24423 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24424 tmp_addflag=' -i_dynamic -nofor_main' ;;
24425 ifc* | ifort*) # Intel Fortran compiler
24426 tmp_addflag=' -nofor_main' ;;
24428 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24430 if test $supports_anon_versioning = yes; then
24431 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24432 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24433 $echo "local: *; };" >> $output_objdir/$libname.ver~
24434 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24442 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24443 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24446 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24447 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24452 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24456 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24457 *** create shared libraries on Solaris systems. Therefore, libtool
24458 *** is disabling shared libraries support. We urge you to upgrade GNU
24459 *** binutils to release 2.9.1 or newer. Another option is to modify
24460 *** your PATH or compiler configuration so that the native linker is
24461 *** used, and then restart.
24464 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24465 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24466 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24472 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24473 case `$LD -v 2>&1` in
24474 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24478 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24479 *** reliably create shared libraries on SCO systems. Therefore, libtool
24480 *** is disabling shared libraries support. We urge you to upgrade GNU
24481 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24482 *** your PATH or compiler configuration so that the native linker is
24483 *** used, and then restart.
24488 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24489 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24490 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24491 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24500 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24502 hardcode_direct_GCJ=yes
24503 hardcode_shlibpath_var_GCJ=no
24507 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24508 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24509 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24516 if test "$ld_shlibs_GCJ" = no; then
24518 hardcode_libdir_flag_spec_GCJ=
24519 export_dynamic_flag_spec_GCJ=
24520 whole_archive_flag_spec_GCJ=
24523 # PORTME fill in a description of your system's linker (not GNU ld)
24526 allow_undefined_flag_GCJ=unsupported
24527 always_export_symbols_GCJ=yes
24528 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'
24529 # Note: this linker hardcodes the directories in LIBPATH if there
24530 # are no directories specified by -L.
24531 hardcode_minus_L_GCJ=yes
24532 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24533 # Neither direct hardcoding nor static linking is supported with a
24535 hardcode_direct_GCJ=unsupported
24540 if test "$host_cpu" = ia64; then
24541 # On IA64, the linker does run time linking by default, so we don't
24542 # have to do anything special.
24543 aix_use_runtimelinking=no
24544 exp_sym_flag='-Bexport'
24547 # If we're using GNU nm, then we don't want the "-C" option.
24548 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24549 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24550 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'
24552 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'
24554 aix_use_runtimelinking=no
24556 # Test if we are trying to use run time linking or normal
24557 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24558 # need to do runtime linking.
24559 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24560 for ld_flag in $LDFLAGS; do
24561 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24562 aix_use_runtimelinking=yes
24569 exp_sym_flag='-bexport'
24570 no_entry_flag='-bnoentry'
24573 # When large executables or shared objects are built, AIX ld can
24574 # have problems creating the table of contents. If linking a library
24575 # or program results in "error TOC overflow" add -mminimal-toc to
24576 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24577 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24579 archive_cmds_GCJ=''
24580 hardcode_direct_GCJ=yes
24581 hardcode_libdir_separator_GCJ=':'
24582 link_all_deplibs_GCJ=yes
24584 if test "$GCC" = yes; then
24585 case $host_os in aix4.[012]|aix4.[012].*)
24586 # We only want to do this on AIX 4.2 and lower, the check
24587 # below for broken collect2 doesn't work under 4.3+
24588 collect2name=`${CC} -print-prog-name=collect2`
24589 if test -f "$collect2name" && \
24590 strings "$collect2name" | grep resolve_lib_name >/dev/null
24592 # We have reworked collect2
24593 hardcode_direct_GCJ=yes
24595 # We have old collect2
24596 hardcode_direct_GCJ=unsupported
24597 # It fails to find uninstalled libraries when the uninstalled
24598 # path is not listed in the libpath. Setting hardcode_minus_L
24599 # to unsupported forces relinking
24600 hardcode_minus_L_GCJ=yes
24601 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24602 hardcode_libdir_separator_GCJ=
24606 shared_flag='-shared'
24607 if test "$aix_use_runtimelinking" = yes; then
24608 shared_flag="$shared_flag "'${wl}-G'
24612 if test "$host_cpu" = ia64; then
24613 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24614 # chokes on -Wl,-G. The following line is correct:
24617 if test "$aix_use_runtimelinking" = yes; then
24618 shared_flag='${wl}-G'
24620 shared_flag='${wl}-bM:SRE'
24625 # It seems that -bexpall does not export symbols beginning with
24626 # underscore (_), so it is better to generate a list of symbols to export.
24627 always_export_symbols_GCJ=yes
24628 if test "$aix_use_runtimelinking" = yes; then
24629 # Warning - without using the other runtime loading flags (-brtl),
24630 # -berok will link without error, but may produce a broken library.
24631 allow_undefined_flag_GCJ='-berok'
24632 # Determine the default libpath from the value encoded in an empty executable.
24633 cat >conftest.$ac_ext <<_ACEOF
24636 cat confdefs.h >>conftest.$ac_ext
24637 cat >>conftest.$ac_ext <<_ACEOF
24638 /* end confdefs.h. */
24648 rm -f conftest.$ac_objext conftest$ac_exeext
24649 if { (ac_try="$ac_link"
24650 case "(($ac_try" in
24651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24652 *) ac_try_echo=$ac_try;;
24654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24655 (eval "$ac_link") 2>conftest.er1
24657 grep -v '^ *+' conftest.er1 >conftest.err
24659 cat conftest.err >&5
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); } &&
24662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24663 { (case "(($ac_try" in
24664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24665 *) ac_try_echo=$ac_try;;
24667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24668 (eval "$ac_try") 2>&5
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); }; } &&
24672 { ac_try='test -s conftest$ac_exeext'
24673 { (case "(($ac_try" in
24674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24675 *) ac_try_echo=$ac_try;;
24677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24678 (eval "$ac_try") 2>&5
24680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681 (exit $ac_status); }; }; then
24683 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24685 # Check for a 64-bit object if we didn't find anything.
24686 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; }
24689 echo "$as_me: failed program was:" >&5
24690 sed 's/^/| /' conftest.$ac_ext >&5
24695 rm -f core conftest.err conftest.$ac_objext \
24696 conftest$ac_exeext conftest.$ac_ext
24697 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24699 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24700 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"
24702 if test "$host_cpu" = ia64; then
24703 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24704 allow_undefined_flag_GCJ="-z nodefs"
24705 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"
24707 # Determine the default libpath from the value encoded in an empty executable.
24708 cat >conftest.$ac_ext <<_ACEOF
24711 cat confdefs.h >>conftest.$ac_ext
24712 cat >>conftest.$ac_ext <<_ACEOF
24713 /* end confdefs.h. */
24723 rm -f conftest.$ac_objext conftest$ac_exeext
24724 if { (ac_try="$ac_link"
24725 case "(($ac_try" in
24726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24727 *) ac_try_echo=$ac_try;;
24729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24730 (eval "$ac_link") 2>conftest.er1
24732 grep -v '^ *+' conftest.er1 >conftest.err
24734 cat conftest.err >&5
24735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736 (exit $ac_status); } &&
24737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24738 { (case "(($ac_try" in
24739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24740 *) ac_try_echo=$ac_try;;
24742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24743 (eval "$ac_try") 2>&5
24745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); }; } &&
24747 { ac_try='test -s conftest$ac_exeext'
24748 { (case "(($ac_try" in
24749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24750 *) ac_try_echo=$ac_try;;
24752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24753 (eval "$ac_try") 2>&5
24755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24756 (exit $ac_status); }; }; then
24758 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24760 # Check for a 64-bit object if we didn't find anything.
24761 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; }
24764 echo "$as_me: failed program was:" >&5
24765 sed 's/^/| /' conftest.$ac_ext >&5
24770 rm -f core conftest.err conftest.$ac_objext \
24771 conftest$ac_exeext conftest.$ac_ext
24772 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24774 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24775 # Warning - without using the other run time loading flags,
24776 # -berok will link without error, but may produce a broken library.
24777 no_undefined_flag_GCJ=' ${wl}-bernotok'
24778 allow_undefined_flag_GCJ=' ${wl}-berok'
24779 # Exported symbols can be pulled into shared objects from archives
24780 whole_archive_flag_spec_GCJ='$convenience'
24781 archive_cmds_need_lc_GCJ=yes
24782 # This is similar to how AIX traditionally builds its shared libraries.
24783 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'
24789 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)'
24790 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24791 hardcode_minus_L_GCJ=yes
24792 # see comment about different semantics on the GNU ld section
24797 export_dynamic_flag_spec_GCJ=-rdynamic
24800 cygwin* | mingw* | pw32*)
24801 # When not using gcc, we currently assume that we are using
24802 # Microsoft Visual C++.
24803 # hardcode_libdir_flag_spec is actually meaningless, as there is
24804 # no search path for DLLs.
24805 hardcode_libdir_flag_spec_GCJ=' '
24806 allow_undefined_flag_GCJ=unsupported
24807 # Tell ltmain to make .lib files, not .a files.
24809 # Tell ltmain to make .dll files, not .so files.
24811 # FIXME: Setting linknames here is a bad hack.
24812 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24813 # The linker will automatically build a .lib file if we build a DLL.
24814 old_archive_From_new_cmds_GCJ='true'
24815 # FIXME: Should let the user specify the lib program.
24816 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24817 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24818 enable_shared_with_static_runtimes_GCJ=yes
24821 darwin* | rhapsody*)
24823 rhapsody* | darwin1.[012])
24824 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24827 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24828 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24830 case ${MACOSX_DEPLOYMENT_TARGET} in
24832 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24835 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24841 archive_cmds_need_lc_GCJ=no
24842 hardcode_direct_GCJ=no
24843 hardcode_automatic_GCJ=yes
24844 hardcode_shlibpath_var_GCJ=unsupported
24845 whole_archive_flag_spec_GCJ=''
24846 link_all_deplibs_GCJ=yes
24847 if test "$GCC" = yes ; then
24848 output_verbose_link_cmd='echo'
24849 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24850 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24851 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24852 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}'
24853 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}'
24855 case $cc_basename in
24857 output_verbose_link_cmd='echo'
24858 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24859 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24860 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24861 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}'
24862 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}'
24872 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24873 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24874 hardcode_shlibpath_var_GCJ=no
24881 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24882 # support. Future versions do this automatically, but an explicit c++rt0.o
24883 # does not break anything, and helps significantly (at the cost of a little
24886 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24887 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24888 hardcode_direct_GCJ=yes
24889 hardcode_shlibpath_var_GCJ=no
24892 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24894 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24895 hardcode_direct_GCJ=yes
24896 hardcode_minus_L_GCJ=yes
24897 hardcode_shlibpath_var_GCJ=no
24900 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24901 freebsd* | kfreebsd*-gnu | dragonfly*)
24902 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24903 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24904 hardcode_direct_GCJ=yes
24905 hardcode_shlibpath_var_GCJ=no
24909 if test "$GCC" = yes; then
24910 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'
24912 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'
24914 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24915 hardcode_libdir_separator_GCJ=:
24916 hardcode_direct_GCJ=yes
24918 # hardcode_minus_L: Not really in the search PATH,
24919 # but as the default location of the library.
24920 hardcode_minus_L_GCJ=yes
24921 export_dynamic_flag_spec_GCJ='${wl}-E'
24925 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24926 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24928 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24930 if test "$with_gnu_ld" = no; then
24931 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24932 hardcode_libdir_separator_GCJ=:
24934 hardcode_direct_GCJ=yes
24935 export_dynamic_flag_spec_GCJ='${wl}-E'
24937 # hardcode_minus_L: Not really in the search PATH,
24938 # but as the default location of the library.
24939 hardcode_minus_L_GCJ=yes
24944 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24947 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24950 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24953 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24959 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24962 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24965 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24969 if test "$with_gnu_ld" = no; then
24970 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24971 hardcode_libdir_separator_GCJ=:
24975 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24976 hardcode_direct_GCJ=no
24977 hardcode_shlibpath_var_GCJ=no
24980 hardcode_direct_GCJ=yes
24981 export_dynamic_flag_spec_GCJ='${wl}-E'
24983 # hardcode_minus_L: Not really in the search PATH,
24984 # but as the default location of the library.
24985 hardcode_minus_L_GCJ=yes
24991 irix5* | irix6* | nonstopux*)
24992 if test "$GCC" = yes; then
24993 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'
24995 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'
24996 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24998 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24999 hardcode_libdir_separator_GCJ=:
25000 link_all_deplibs_GCJ=yes
25004 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25005 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25007 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25009 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25010 hardcode_direct_GCJ=yes
25011 hardcode_shlibpath_var_GCJ=no
25015 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25016 hardcode_direct_GCJ=yes
25017 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25018 hardcode_libdir_separator_GCJ=:
25019 hardcode_shlibpath_var_GCJ=no
25023 hardcode_direct_GCJ=yes
25024 hardcode_shlibpath_var_GCJ=no
25025 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25026 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25027 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25028 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25029 export_dynamic_flag_spec_GCJ='${wl}-E'
25032 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25033 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25034 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25037 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25038 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25045 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25046 hardcode_minus_L_GCJ=yes
25047 allow_undefined_flag_GCJ=unsupported
25048 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'
25049 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25053 if test "$GCC" = yes; then
25054 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25055 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'
25057 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25058 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'
25060 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25061 hardcode_libdir_separator_GCJ=:
25064 osf4* | osf5*) # as osf3* with the addition of -msym flag
25065 if test "$GCC" = yes; then
25066 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25067 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'
25068 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25070 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25071 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'
25072 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~
25073 $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'
25075 # Both c and cxx compiler support -rpath directly
25076 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25078 hardcode_libdir_separator_GCJ=:
25082 no_undefined_flag_GCJ=' -z text'
25083 if test "$GCC" = yes; then
25085 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25086 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25087 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25090 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25091 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25092 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25094 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25095 hardcode_shlibpath_var_GCJ=no
25097 solaris2.[0-5] | solaris2.[0-5].*) ;;
25099 # The compiler driver will combine linker options so we
25100 # cannot just pass the convience library names through
25101 # without $wl, iff we do not link with $LD.
25102 # Luckily, gcc supports the same syntax we need for Sun Studio.
25103 # Supported since Solaris 2.6 (maybe 2.5.1?)
25106 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25108 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' ;;
25111 link_all_deplibs_GCJ=yes
25115 if test "x$host_vendor" = xsequent; then
25116 # Use $CC to link under sequent, because it throws in some extra .o
25117 # files that make .init and .fini sections work.
25118 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25120 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25122 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25123 hardcode_direct_GCJ=yes
25124 hardcode_minus_L_GCJ=yes
25125 hardcode_shlibpath_var_GCJ=no
25129 case $host_vendor in
25131 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25132 hardcode_direct_GCJ=yes # is this really true???
25135 ## LD is ld it makes a PLAMLIB
25136 ## CC just makes a GrossModule.
25137 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25138 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25139 hardcode_direct_GCJ=no
25142 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25143 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25146 runpath_var='LD_RUN_PATH'
25147 hardcode_shlibpath_var_GCJ=no
25151 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25152 hardcode_shlibpath_var_GCJ=no
25153 export_dynamic_flag_spec_GCJ='-Bexport'
25157 if test -d /usr/nec; then
25158 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25159 hardcode_shlibpath_var_GCJ=no
25160 runpath_var=LD_RUN_PATH
25161 hardcode_runpath_var=yes
25166 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25167 no_undefined_flag_GCJ='${wl}-z,text'
25168 archive_cmds_need_lc_GCJ=no
25169 hardcode_shlibpath_var_GCJ=no
25170 runpath_var='LD_RUN_PATH'
25172 if test "$GCC" = yes; then
25173 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25174 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25176 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25177 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25181 sysv5* | sco3.2v5* | sco5v6*)
25182 # Note: We can NOT use -z defs as we might desire, because we do not
25183 # link with -lc, and that would cause any symbols used from libc to
25184 # always be unresolved, which means just about no library would
25185 # ever link correctly. If we're not using GNU ld we use -z text
25186 # though, which does catch some bad symbols but isn't as heavy-handed
25188 no_undefined_flag_GCJ='${wl}-z,text'
25189 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25190 archive_cmds_need_lc_GCJ=no
25191 hardcode_shlibpath_var_GCJ=no
25192 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25193 hardcode_libdir_separator_GCJ=':'
25194 link_all_deplibs_GCJ=yes
25195 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25196 runpath_var='LD_RUN_PATH'
25198 if test "$GCC" = yes; then
25199 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25200 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25202 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25203 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25208 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25209 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25210 hardcode_shlibpath_var_GCJ=no
25219 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25220 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25221 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25224 # Do we need to explicitly link libc?
25226 case "x$archive_cmds_need_lc_GCJ" in
25228 # Assume -lc should be added
25229 archive_cmds_need_lc_GCJ=yes
25231 if test "$enable_shared" = yes && test "$GCC" = yes; then
25232 case $archive_cmds_GCJ in
25234 # FIXME: we may have to deal with multi-command sequences.
25237 # Test whether the compiler implicitly links with -lc since on some
25238 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25239 # to ld, don't add -lc before -lgcc.
25240 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25241 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25243 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25246 (eval $ac_compile) 2>&5
25248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249 (exit $ac_status); } 2>conftest.err; then
25252 libobjs=conftest.$ac_objext
25254 wl=$lt_prog_compiler_wl_GCJ
25255 pic_flag=$lt_prog_compiler_pic_GCJ
25261 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25262 allow_undefined_flag_GCJ=
25263 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25264 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25267 (exit $ac_status); }
25269 archive_cmds_need_lc_GCJ=no
25271 archive_cmds_need_lc_GCJ=yes
25273 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25275 cat conftest.err 1>&5
25278 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25279 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25286 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25287 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25288 library_names_spec=
25289 libname_spec='lib$name'
25293 postuninstall_cmds=
25297 shlibpath_overrides_runpath=unknown
25299 dynamic_linker="$host_os ld.so"
25300 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25301 if test "$GCC" = yes; then
25302 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25303 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25304 # if the path contains ";" then we assume it to be the separator
25305 # otherwise default to the standard path separator (i.e. ":") - it is
25306 # assumed that no part of a normal pathname contains ";" but that should
25307 # okay in the real world where ";" in dirpaths is itself problematic.
25308 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25310 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25313 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25315 need_lib_prefix=unknown
25316 hardcode_into_libs=no
25318 # when you set need_version to no, make sure it does not cause -set_version
25319 # flags to be left without arguments
25320 need_version=unknown
25325 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25326 shlibpath_var=LIBPATH
25328 # AIX 3 has no versioning support, so we append a major version to the name.
25329 soname_spec='${libname}${release}${shared_ext}$major'
25336 hardcode_into_libs=yes
25337 if test "$host_cpu" = ia64; then
25338 # AIX 5 supports IA64
25339 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25340 shlibpath_var=LD_LIBRARY_PATH
25342 # With GCC up to 2.95.x, collect2 would create an import file
25343 # for dependence libraries. The import file would start with
25344 # the line `#! .'. This would cause the generated library to
25345 # depend on `.', always an invalid library. This was fixed in
25346 # development snapshots of GCC prior to 3.0.
25348 aix4 | aix4.[01] | aix4.[01].*)
25349 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25351 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25354 can_build_shared=no
25358 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25359 # soname into executable. Probably we can add versioning support to
25360 # collect2, so additional links can be useful in future.
25361 if test "$aix_use_runtimelinking" = yes; then
25362 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25363 # instead of lib<name>.a to let people know that these are not
25364 # typical AIX shared libraries.
25365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25367 # We preserve .a as extension for shared libraries through AIX4.2
25368 # and later when we are not doing run time linking.
25369 library_names_spec='${libname}${release}.a $libname.a'
25370 soname_spec='${libname}${release}${shared_ext}$major'
25372 shlibpath_var=LIBPATH
25377 library_names_spec='$libname.ixlibrary $libname.a'
25378 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25379 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'
25383 library_names_spec='${libname}${shared_ext}'
25384 dynamic_linker="$host_os ld.so"
25385 shlibpath_var=LIBRARY_PATH
25391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25392 soname_spec='${libname}${release}${shared_ext}$major'
25393 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25394 shlibpath_var=LD_LIBRARY_PATH
25395 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25396 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25397 # the default ld.so.conf also contains /usr/contrib/lib and
25398 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25399 # libtool to hard-code these into programs
25402 cygwin* | mingw* | pw32*)
25403 version_type=windows
25408 case $GCC,$host_os in
25409 yes,cygwin* | yes,mingw* | yes,pw32*)
25410 library_names_spec='$libname.dll.a'
25411 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25412 postinstall_cmds='base_file=`basename \${file}`~
25413 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25414 dldir=$destdir/`dirname \$dlpath`~
25415 test -d \$dldir || mkdir -p \$dldir~
25416 $install_prog $dir/$dlname \$dldir/$dlname~
25417 chmod a+x \$dldir/$dlname'
25418 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25419 dlpath=$dir/\$dldll~
25421 shlibpath_overrides_runpath=yes
25425 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25426 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25427 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25430 # MinGW DLLs use traditional 'lib' prefix
25431 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25432 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25433 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25434 # It is most probably a Windows format PATH printed by
25435 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25436 # path with ; separators, and with drive letters. We can handle the
25437 # drive letters (cygwin fileutils understands them), so leave them,
25438 # especially as we might pass files found there to a mingw objdump,
25439 # which wouldn't understand a cygwinified path. Ahh.
25440 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25442 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25446 # pw32 DLLs use 'pw' prefix rather than 'lib'
25447 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25453 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25456 dynamic_linker='Win32 ld.exe'
25457 # FIXME: first we should search . and the directory the executable is in
25461 darwin* | rhapsody*)
25462 dynamic_linker="$host_os dyld"
25463 version_type=darwin
25466 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25467 soname_spec='${libname}${release}${major}$shared_ext'
25468 shlibpath_overrides_runpath=yes
25469 shlibpath_var=DYLD_LIBRARY_PATH
25470 shrext_cmds='.dylib'
25471 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25472 if test "$GCC" = yes; then
25473 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"`
25475 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25477 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25485 soname_spec='${libname}${release}${shared_ext}$major'
25486 shlibpath_var=LD_LIBRARY_PATH
25497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25498 soname_spec='${libname}${release}${shared_ext}$major'
25499 shlibpath_var=LD_LIBRARY_PATH
25500 shlibpath_overrides_runpath=no
25501 hardcode_into_libs=yes
25502 dynamic_linker='GNU ld.so'
25505 freebsd* | dragonfly*)
25506 # DragonFly does not have aout. When/if they implement a new
25507 # versioning mechanism, adjust this.
25508 if test -x /usr/bin/objformat; then
25509 objformat=`/usr/bin/objformat`
25512 freebsd[123]*) objformat=aout ;;
25513 *) objformat=elf ;;
25516 version_type=freebsd-$objformat
25517 case $version_type in
25519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25524 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25528 shlibpath_var=LD_LIBRARY_PATH
25531 shlibpath_overrides_runpath=yes
25533 freebsd3.[01]* | freebsdelf3.[01]*)
25534 shlibpath_overrides_runpath=yes
25535 hardcode_into_libs=yes
25537 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25538 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25539 shlibpath_overrides_runpath=no
25540 hardcode_into_libs=yes
25542 freebsd*) # from 4.6 on
25543 shlibpath_overrides_runpath=yes
25544 hardcode_into_libs=yes
25553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25554 soname_spec='${libname}${release}${shared_ext}$major'
25555 shlibpath_var=LD_LIBRARY_PATH
25556 hardcode_into_libs=yes
25559 hpux9* | hpux10* | hpux11*)
25560 # Give a soname corresponding to the major version so that dld.sl refuses to
25561 # link against other versions.
25568 hardcode_into_libs=yes
25569 dynamic_linker="$host_os dld.so"
25570 shlibpath_var=LD_LIBRARY_PATH
25571 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25573 soname_spec='${libname}${release}${shared_ext}$major'
25574 if test "X$HPUX_IA64_MODE" = X32; then
25575 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25577 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25579 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25583 hardcode_into_libs=yes
25584 dynamic_linker="$host_os dld.sl"
25585 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25586 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25588 soname_spec='${libname}${release}${shared_ext}$major'
25589 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25590 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25594 dynamic_linker="$host_os dld.sl"
25595 shlibpath_var=SHLIB_PATH
25596 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25598 soname_spec='${libname}${release}${shared_ext}$major'
25601 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25602 postinstall_cmds='chmod 555 $lib'
25609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25610 soname_spec='${libname}${release}${shared_ext}$major'
25611 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25612 shlibpath_var=LD_LIBRARY_PATH
25613 shlibpath_overrides_runpath=no
25614 hardcode_into_libs=yes
25617 irix5* | irix6* | nonstopux*)
25619 nonstopux*) version_type=nonstopux ;;
25621 if test "$lt_cv_prog_gnu_ld" = yes; then
25629 soname_spec='${libname}${release}${shared_ext}$major'
25630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25632 irix5* | nonstopux*)
25633 libsuff= shlibsuff=
25636 case $LD in # libtool.m4 will add one of these switches to LD
25637 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25638 libsuff= shlibsuff= libmagic=32-bit;;
25639 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25640 libsuff=32 shlibsuff=N32 libmagic=N32;;
25641 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25642 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25643 *) libsuff= shlibsuff= libmagic=never-match;;
25647 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25648 shlibpath_overrides_runpath=no
25649 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25650 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25651 hardcode_into_libs=yes
25654 # No shared lib support for Linux oldld, aout, or coff.
25655 linux*oldld* | linux*aout* | linux*coff*)
25659 # This must be Linux ELF.
25664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25665 soname_spec='${libname}${release}${shared_ext}$major'
25666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25667 shlibpath_var=LD_LIBRARY_PATH
25668 shlibpath_overrides_runpath=no
25669 # This implies no fast_install, which is unacceptable.
25670 # Some rework will be needed to allow for fast_install
25671 # before this can be enabled.
25672 hardcode_into_libs=yes
25674 # Append ld.so.conf contents to the search path
25675 if test -f /etc/ld.so.conf; then
25676 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' ' '`
25677 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25680 # We used to test for /lib/ld.so.1 and disable shared libraries on
25681 # powerpc, because MkLinux only supported shared libraries with the
25682 # GNU dynamic linker. Since this was broken with cross compilers,
25683 # most powerpc-linux boxes support dynamic linking these days and
25684 # people can always --disable-shared, the test was removed, and we
25685 # assume the GNU/Linux dynamic linker is in use.
25686 dynamic_linker='GNU/Linux ld.so'
25693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25694 soname_spec='${libname}${release}${shared_ext}$major'
25695 shlibpath_var=LD_LIBRARY_PATH
25696 shlibpath_overrides_runpath=no
25697 hardcode_into_libs=yes
25698 dynamic_linker='GNU ld.so'
25705 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25708 dynamic_linker='NetBSD (a.out) ld.so'
25710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25711 soname_spec='${libname}${release}${shared_ext}$major'
25712 dynamic_linker='NetBSD ld.elf_so'
25714 shlibpath_var=LD_LIBRARY_PATH
25715 shlibpath_overrides_runpath=yes
25716 hardcode_into_libs=yes
25721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25722 shlibpath_var=LD_LIBRARY_PATH
25723 shlibpath_overrides_runpath=yes
25730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25731 soname_spec='${libname}${release}${shared_ext}$major'
25732 shlibpath_var=LD_LIBRARY_PATH
25733 shlibpath_overrides_runpath=yes
25738 sys_lib_dlsearch_path_spec="/usr/lib"
25740 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25742 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25743 *) need_version=no ;;
25745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25746 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25747 shlibpath_var=LD_LIBRARY_PATH
25748 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25750 openbsd2.[89] | openbsd2.[89].*)
25751 shlibpath_overrides_runpath=no
25754 shlibpath_overrides_runpath=yes
25758 shlibpath_overrides_runpath=yes
25763 libname_spec='$name'
25766 library_names_spec='$libname${shared_ext} $libname.a'
25767 dynamic_linker='OS/2 ld.exe'
25768 shlibpath_var=LIBPATH
25771 osf3* | osf4* | osf5*)
25775 soname_spec='${libname}${release}${shared_ext}$major'
25776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25777 shlibpath_var=LD_LIBRARY_PATH
25778 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25779 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25787 soname_spec='${libname}${release}${shared_ext}$major'
25788 shlibpath_var=LD_LIBRARY_PATH
25789 shlibpath_overrides_runpath=yes
25790 hardcode_into_libs=yes
25791 # ldd complains unless libraries are executable
25792 postinstall_cmds='chmod +x $lib'
25797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25798 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25799 shlibpath_var=LD_LIBRARY_PATH
25800 shlibpath_overrides_runpath=yes
25801 if test "$with_gnu_ld" = yes; then
25809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25810 soname_spec='${libname}${release}${shared_ext}$major'
25811 shlibpath_var=LD_LIBRARY_PATH
25812 case $host_vendor in
25814 shlibpath_overrides_runpath=no
25816 export_dynamic_flag_spec='${wl}-Blargedynsym'
25817 runpath_var=LD_RUN_PATH
25825 shlibpath_overrides_runpath=no
25826 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25832 if test -d /usr/nec ;then
25834 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25835 soname_spec='$libname${shared_ext}.$major'
25836 shlibpath_var=LD_LIBRARY_PATH
25840 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25841 version_type=freebsd-elf
25844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25845 soname_spec='${libname}${release}${shared_ext}$major'
25846 shlibpath_var=LD_LIBRARY_PATH
25847 hardcode_into_libs=yes
25848 if test "$with_gnu_ld" = yes; then
25849 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25850 shlibpath_overrides_runpath=no
25852 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25853 shlibpath_overrides_runpath=yes
25856 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25860 sys_lib_dlsearch_path_spec='/usr/lib'
25865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25866 soname_spec='${libname}${release}${shared_ext}$major'
25867 shlibpath_var=LD_LIBRARY_PATH
25874 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25875 echo "${ECHO_T}$dynamic_linker" >&6; }
25876 test "$dynamic_linker" = no && can_build_shared=no
25878 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25879 if test "$GCC" = yes; then
25880 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25883 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25884 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25885 hardcode_action_GCJ=
25886 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25887 test -n "$runpath_var_GCJ" || \
25888 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25890 # We can hardcode non-existant directories.
25891 if test "$hardcode_direct_GCJ" != no &&
25892 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25893 # have to relink, otherwise we might link with an installed library
25894 # when we should be linking with a yet-to-be-installed one
25895 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25896 test "$hardcode_minus_L_GCJ" != no; then
25897 # Linking always hardcodes the temporary library directory.
25898 hardcode_action_GCJ=relink
25900 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25901 hardcode_action_GCJ=immediate
25904 # We cannot hardcode anything, or else we can only hardcode existing
25906 hardcode_action_GCJ=unsupported
25908 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25909 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25911 if test "$hardcode_action_GCJ" = relink; then
25912 # Fast installation is not supported
25913 enable_fast_install=no
25914 elif test "$shlibpath_overrides_runpath" = yes ||
25915 test "$enable_shared" = no; then
25916 # Fast installation is not necessary
25917 enable_fast_install=needless
25921 # The else clause should only fire when bootstrapping the
25922 # libtool distribution, otherwise you forgot to ship ltmain.sh
25923 # with your package, and you will get complaints that there are
25924 # no rules to generate ltmain.sh.
25925 if test -f "$ltmain"; then
25926 # See if we are running on zsh, and set the options which allow our commands through
25927 # without removal of \ escapes.
25928 if test -n "${ZSH_VERSION+set}" ; then
25929 setopt NO_GLOB_SUBST
25931 # Now quote all the things that may contain metacharacters while being
25932 # careful not to overquote the AC_SUBSTed values. We take copies of the
25933 # variables and quote the copies for generation of the libtool script.
25934 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25936 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25937 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25938 deplibs_check_method reload_flag reload_cmds need_locks \
25939 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25940 lt_cv_sys_global_symbol_to_c_name_address \
25941 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25942 old_postinstall_cmds old_postuninstall_cmds \
25946 lt_prog_compiler_wl_GCJ \
25947 lt_prog_compiler_pic_GCJ \
25948 lt_prog_compiler_static_GCJ \
25949 lt_prog_compiler_no_builtin_flag_GCJ \
25950 export_dynamic_flag_spec_GCJ \
25951 thread_safe_flag_spec_GCJ \
25952 whole_archive_flag_spec_GCJ \
25953 enable_shared_with_static_runtimes_GCJ \
25954 old_archive_cmds_GCJ \
25955 old_archive_from_new_cmds_GCJ \
25956 predep_objects_GCJ \
25957 postdep_objects_GCJ \
25960 compiler_lib_search_path_GCJ \
25962 archive_expsym_cmds_GCJ \
25963 postinstall_cmds_GCJ \
25964 postuninstall_cmds_GCJ \
25965 old_archive_from_expsyms_cmds_GCJ \
25966 allow_undefined_flag_GCJ \
25967 no_undefined_flag_GCJ \
25968 export_symbols_cmds_GCJ \
25969 hardcode_libdir_flag_spec_GCJ \
25970 hardcode_libdir_flag_spec_ld_GCJ \
25971 hardcode_libdir_separator_GCJ \
25972 hardcode_automatic_GCJ \
25974 module_expsym_cmds_GCJ \
25975 lt_cv_prog_compiler_c_o_GCJ \
25976 exclude_expsyms_GCJ \
25977 include_expsyms_GCJ; do
25980 old_archive_cmds_GCJ | \
25981 old_archive_from_new_cmds_GCJ | \
25982 archive_cmds_GCJ | \
25983 archive_expsym_cmds_GCJ | \
25984 module_cmds_GCJ | \
25985 module_expsym_cmds_GCJ | \
25986 old_archive_from_expsyms_cmds_GCJ | \
25987 export_symbols_cmds_GCJ | \
25988 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25989 postinstall_cmds | postuninstall_cmds | \
25990 old_postinstall_cmds | old_postuninstall_cmds | \
25991 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25992 # Double-quote double-evaled strings.
25993 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25996 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26002 *'\$0 --fallback-echo"')
26003 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26009 cat <<__EOF__ >> "$cfgfile"
26010 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26012 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26014 # Shell to use when invoking shell scripts.
26017 # Whether or not to build shared libraries.
26018 build_libtool_libs=$enable_shared
26020 # Whether or not to build static libraries.
26021 build_old_libs=$enable_static
26023 # Whether or not to add -lc for building shared libraries.
26024 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26026 # Whether or not to disallow shared libs when runtime libs are static
26027 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26029 # Whether or not to optimize for fast installation.
26030 fast_install=$enable_fast_install
26033 host_alias=$host_alias
26037 # The build system.
26038 build_alias=$build_alias
26042 # An echo program that does not interpret backslashes.
26047 AR_FLAGS=$lt_AR_FLAGS
26052 # LTCC compiler flags.
26053 LTCFLAGS=$lt_LTCFLAGS
26055 # A language-specific compiler.
26056 CC=$lt_compiler_GCJ
26058 # Is the compiler the GNU C compiler?
26064 # The linker used to build libraries.
26067 # Whether we need hard or soft links.
26070 # A BSD-compatible nm program.
26073 # A symbol stripping program
26076 # Used to examine libraries when file_magic_cmd begins "file"
26077 MAGIC_CMD=$MAGIC_CMD
26079 # Used on cygwin: DLL creation program.
26082 # Used on cygwin: object dumper.
26085 # Used on cygwin: assembler.
26088 # The name of the directory that contains temporary libtool files.
26091 # How to create reloadable object files.
26092 reload_flag=$lt_reload_flag
26093 reload_cmds=$lt_reload_cmds
26095 # How to pass a linker flag through the compiler.
26096 wl=$lt_lt_prog_compiler_wl_GCJ
26098 # Object file suffix (normally "o").
26099 objext="$ac_objext"
26101 # Old archive suffix (normally "a").
26104 # Shared library suffix (normally ".so").
26105 shrext_cmds='$shrext_cmds'
26107 # Executable file suffix (normally "").
26110 # Additional compiler flags for building library objects.
26111 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26114 # What is the maximum length of a command?
26115 max_cmd_len=$lt_cv_sys_max_cmd_len
26117 # Does compiler simultaneously support -c and -o options?
26118 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26120 # Must we lock files when doing compilation?
26121 need_locks=$lt_need_locks
26123 # Do we need the lib prefix for modules?
26124 need_lib_prefix=$need_lib_prefix
26126 # Do we need a version for libraries?
26127 need_version=$need_version
26129 # Whether dlopen is supported.
26130 dlopen_support=$enable_dlopen
26132 # Whether dlopen of programs is supported.
26133 dlopen_self=$enable_dlopen_self
26135 # Whether dlopen of statically linked programs is supported.
26136 dlopen_self_static=$enable_dlopen_self_static
26138 # Compiler flag to prevent dynamic linking.
26139 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26141 # Compiler flag to turn off builtin functions.
26142 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26144 # Compiler flag to allow reflexive dlopens.
26145 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26147 # Compiler flag to generate shared objects directly from archives.
26148 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26150 # Compiler flag to generate thread-safe objects.
26151 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26153 # Library versioning type.
26154 version_type=$version_type
26156 # Format of library name prefix.
26157 libname_spec=$lt_libname_spec
26159 # List of archive names. First name is the real one, the rest are links.
26160 # The last name is the one that the linker finds with -lNAME.
26161 library_names_spec=$lt_library_names_spec
26163 # The coded name of the library, if different from the real name.
26164 soname_spec=$lt_soname_spec
26166 # Commands used to build and install an old-style archive.
26168 old_archive_cmds=$lt_old_archive_cmds_GCJ
26169 old_postinstall_cmds=$lt_old_postinstall_cmds
26170 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26172 # Create an old-style archive from a shared archive.
26173 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26175 # Create a temporary old-style archive to link instead of a shared archive.
26176 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26178 # Commands used to build and install a shared archive.
26179 archive_cmds=$lt_archive_cmds_GCJ
26180 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26181 postinstall_cmds=$lt_postinstall_cmds
26182 postuninstall_cmds=$lt_postuninstall_cmds
26184 # Commands used to build a loadable module (assumed same as above if empty)
26185 module_cmds=$lt_module_cmds_GCJ
26186 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26188 # Commands to strip libraries.
26189 old_striplib=$lt_old_striplib
26190 striplib=$lt_striplib
26192 # Dependencies to place before the objects being linked to create a
26194 predep_objects=$lt_predep_objects_GCJ
26196 # Dependencies to place after the objects being linked to create a
26198 postdep_objects=$lt_postdep_objects_GCJ
26200 # Dependencies to place before the objects being linked to create a
26202 predeps=$lt_predeps_GCJ
26204 # Dependencies to place after the objects being linked to create a
26206 postdeps=$lt_postdeps_GCJ
26208 # The library search path used internally by the compiler when linking
26209 # a shared library.
26210 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26212 # Method to check whether dependent libraries are shared objects.
26213 deplibs_check_method=$lt_deplibs_check_method
26215 # Command to use when deplibs_check_method == file_magic.
26216 file_magic_cmd=$lt_file_magic_cmd
26218 # Flag that allows shared libraries with undefined symbols to be built.
26219 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26221 # Flag that forces no undefined symbols.
26222 no_undefined_flag=$lt_no_undefined_flag_GCJ
26224 # Commands used to finish a libtool library installation in a directory.
26225 finish_cmds=$lt_finish_cmds
26227 # Same as above, but a single script fragment to be evaled but not shown.
26228 finish_eval=$lt_finish_eval
26230 # Take the output of nm and produce a listing of raw symbols and C names.
26231 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26233 # Transform the output of nm in a proper C declaration
26234 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26236 # Transform the output of nm in a C name address pair
26237 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26239 # This is the shared library runtime path variable.
26240 runpath_var=$runpath_var
26242 # This is the shared library path variable.
26243 shlibpath_var=$shlibpath_var
26245 # Is shlibpath searched before the hard-coded library search path?
26246 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26248 # How to hardcode a shared library path into an executable.
26249 hardcode_action=$hardcode_action_GCJ
26251 # Whether we should hardcode library paths into libraries.
26252 hardcode_into_libs=$hardcode_into_libs
26254 # Flag to hardcode \$libdir into a binary during linking.
26255 # This must work even if \$libdir does not exist.
26256 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26258 # If ld is used when linking, flag to hardcode \$libdir into
26259 # a binary during linking. This must work even if \$libdir does
26261 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26263 # Whether we need a single -rpath flag with a separated argument.
26264 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26266 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26267 # resulting binary.
26268 hardcode_direct=$hardcode_direct_GCJ
26270 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26271 # resulting binary.
26272 hardcode_minus_L=$hardcode_minus_L_GCJ
26274 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26275 # the resulting binary.
26276 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26278 # Set to yes if building a shared library automatically hardcodes DIR into the library
26279 # and all subsequent libraries and executables linked against it.
26280 hardcode_automatic=$hardcode_automatic_GCJ
26282 # Variables whose values should be saved in libtool wrapper scripts and
26283 # restored at relink time.
26284 variables_saved_for_relink="$variables_saved_for_relink"
26286 # Whether libtool must link a program against all its dependency libraries.
26287 link_all_deplibs=$link_all_deplibs_GCJ
26289 # Compile-time system search path for libraries
26290 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26292 # Run-time system search path for libraries
26293 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26295 # Fix the shell variable \$srcfile for the compiler.
26296 fix_srcfile_path="$fix_srcfile_path_GCJ"
26298 # Set to yes if exported symbols are required.
26299 always_export_symbols=$always_export_symbols_GCJ
26301 # The commands to list exported symbols.
26302 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26304 # The commands to extract the exported symbol list from a shared archive.
26305 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26307 # Symbols that should not be listed in the preloaded symbols.
26308 exclude_expsyms=$lt_exclude_expsyms_GCJ
26310 # Symbols that must always be exported.
26311 include_expsyms=$lt_include_expsyms_GCJ
26313 # ### END LIBTOOL TAG CONFIG: $tagname
26319 # If there is no Makefile yet, we rely on a make rule to execute
26320 # `config.status --recheck' to rerun these tests and create the
26321 # libtool script then.
26322 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26323 if test -f "$ltmain_in"; then
26324 test -f Makefile && make "$ltmain"
26330 ac_cpp='$CPP $CPPFLAGS'
26331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26344 ac_cpp='$CPP $CPPFLAGS'
26345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26350 # Source file extension for RC test sources.
26353 # Object file extension for compiled RC test sources.
26357 # Code to be used in simple compile tests
26358 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26360 # Code to be used in simple link tests
26361 lt_simple_link_test_code="$lt_simple_compile_test_code"
26363 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26365 # If no C compiler was specified, use CC.
26368 # If no C compiler flags were specified, use CFLAGS.
26369 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26371 # Allow CC to be a program name with arguments.
26375 # save warnings/boilerplate of simple test code
26376 ac_outfile=conftest.$ac_objext
26377 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26378 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26379 _lt_compiler_boilerplate=`cat conftest.err`
26382 ac_outfile=conftest.$ac_objext
26383 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26384 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26385 _lt_linker_boilerplate=`cat conftest.err`
26389 # Allow CC to be a program name with arguments.
26394 for cc_temp in $compiler""; do
26396 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26397 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26402 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26404 lt_cv_prog_compiler_c_o_RC=yes
26406 # The else clause should only fire when bootstrapping the
26407 # libtool distribution, otherwise you forgot to ship ltmain.sh
26408 # with your package, and you will get complaints that there are
26409 # no rules to generate ltmain.sh.
26410 if test -f "$ltmain"; then
26411 # See if we are running on zsh, and set the options which allow our commands through
26412 # without removal of \ escapes.
26413 if test -n "${ZSH_VERSION+set}" ; then
26414 setopt NO_GLOB_SUBST
26416 # Now quote all the things that may contain metacharacters while being
26417 # careful not to overquote the AC_SUBSTed values. We take copies of the
26418 # variables and quote the copies for generation of the libtool script.
26419 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26421 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26422 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26423 deplibs_check_method reload_flag reload_cmds need_locks \
26424 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26425 lt_cv_sys_global_symbol_to_c_name_address \
26426 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26427 old_postinstall_cmds old_postuninstall_cmds \
26431 lt_prog_compiler_wl_RC \
26432 lt_prog_compiler_pic_RC \
26433 lt_prog_compiler_static_RC \
26434 lt_prog_compiler_no_builtin_flag_RC \
26435 export_dynamic_flag_spec_RC \
26436 thread_safe_flag_spec_RC \
26437 whole_archive_flag_spec_RC \
26438 enable_shared_with_static_runtimes_RC \
26439 old_archive_cmds_RC \
26440 old_archive_from_new_cmds_RC \
26441 predep_objects_RC \
26442 postdep_objects_RC \
26445 compiler_lib_search_path_RC \
26447 archive_expsym_cmds_RC \
26448 postinstall_cmds_RC \
26449 postuninstall_cmds_RC \
26450 old_archive_from_expsyms_cmds_RC \
26451 allow_undefined_flag_RC \
26452 no_undefined_flag_RC \
26453 export_symbols_cmds_RC \
26454 hardcode_libdir_flag_spec_RC \
26455 hardcode_libdir_flag_spec_ld_RC \
26456 hardcode_libdir_separator_RC \
26457 hardcode_automatic_RC \
26459 module_expsym_cmds_RC \
26460 lt_cv_prog_compiler_c_o_RC \
26461 exclude_expsyms_RC \
26462 include_expsyms_RC; do
26465 old_archive_cmds_RC | \
26466 old_archive_from_new_cmds_RC | \
26467 archive_cmds_RC | \
26468 archive_expsym_cmds_RC | \
26470 module_expsym_cmds_RC | \
26471 old_archive_from_expsyms_cmds_RC | \
26472 export_symbols_cmds_RC | \
26473 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26474 postinstall_cmds | postuninstall_cmds | \
26475 old_postinstall_cmds | old_postuninstall_cmds | \
26476 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26477 # Double-quote double-evaled strings.
26478 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26481 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26487 *'\$0 --fallback-echo"')
26488 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26494 cat <<__EOF__ >> "$cfgfile"
26495 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26497 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26499 # Shell to use when invoking shell scripts.
26502 # Whether or not to build shared libraries.
26503 build_libtool_libs=$enable_shared
26505 # Whether or not to build static libraries.
26506 build_old_libs=$enable_static
26508 # Whether or not to add -lc for building shared libraries.
26509 build_libtool_need_lc=$archive_cmds_need_lc_RC
26511 # Whether or not to disallow shared libs when runtime libs are static
26512 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26514 # Whether or not to optimize for fast installation.
26515 fast_install=$enable_fast_install
26518 host_alias=$host_alias
26522 # The build system.
26523 build_alias=$build_alias
26527 # An echo program that does not interpret backslashes.
26532 AR_FLAGS=$lt_AR_FLAGS
26537 # LTCC compiler flags.
26538 LTCFLAGS=$lt_LTCFLAGS
26540 # A language-specific compiler.
26543 # Is the compiler the GNU C compiler?
26549 # The linker used to build libraries.
26552 # Whether we need hard or soft links.
26555 # A BSD-compatible nm program.
26558 # A symbol stripping program
26561 # Used to examine libraries when file_magic_cmd begins "file"
26562 MAGIC_CMD=$MAGIC_CMD
26564 # Used on cygwin: DLL creation program.
26567 # Used on cygwin: object dumper.
26570 # Used on cygwin: assembler.
26573 # The name of the directory that contains temporary libtool files.
26576 # How to create reloadable object files.
26577 reload_flag=$lt_reload_flag
26578 reload_cmds=$lt_reload_cmds
26580 # How to pass a linker flag through the compiler.
26581 wl=$lt_lt_prog_compiler_wl_RC
26583 # Object file suffix (normally "o").
26584 objext="$ac_objext"
26586 # Old archive suffix (normally "a").
26589 # Shared library suffix (normally ".so").
26590 shrext_cmds='$shrext_cmds'
26592 # Executable file suffix (normally "").
26595 # Additional compiler flags for building library objects.
26596 pic_flag=$lt_lt_prog_compiler_pic_RC
26599 # What is the maximum length of a command?
26600 max_cmd_len=$lt_cv_sys_max_cmd_len
26602 # Does compiler simultaneously support -c and -o options?
26603 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26605 # Must we lock files when doing compilation?
26606 need_locks=$lt_need_locks
26608 # Do we need the lib prefix for modules?
26609 need_lib_prefix=$need_lib_prefix
26611 # Do we need a version for libraries?
26612 need_version=$need_version
26614 # Whether dlopen is supported.
26615 dlopen_support=$enable_dlopen
26617 # Whether dlopen of programs is supported.
26618 dlopen_self=$enable_dlopen_self
26620 # Whether dlopen of statically linked programs is supported.
26621 dlopen_self_static=$enable_dlopen_self_static
26623 # Compiler flag to prevent dynamic linking.
26624 link_static_flag=$lt_lt_prog_compiler_static_RC
26626 # Compiler flag to turn off builtin functions.
26627 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26629 # Compiler flag to allow reflexive dlopens.
26630 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26632 # Compiler flag to generate shared objects directly from archives.
26633 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26635 # Compiler flag to generate thread-safe objects.
26636 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26638 # Library versioning type.
26639 version_type=$version_type
26641 # Format of library name prefix.
26642 libname_spec=$lt_libname_spec
26644 # List of archive names. First name is the real one, the rest are links.
26645 # The last name is the one that the linker finds with -lNAME.
26646 library_names_spec=$lt_library_names_spec
26648 # The coded name of the library, if different from the real name.
26649 soname_spec=$lt_soname_spec
26651 # Commands used to build and install an old-style archive.
26653 old_archive_cmds=$lt_old_archive_cmds_RC
26654 old_postinstall_cmds=$lt_old_postinstall_cmds
26655 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26657 # Create an old-style archive from a shared archive.
26658 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26660 # Create a temporary old-style archive to link instead of a shared archive.
26661 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26663 # Commands used to build and install a shared archive.
26664 archive_cmds=$lt_archive_cmds_RC
26665 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26666 postinstall_cmds=$lt_postinstall_cmds
26667 postuninstall_cmds=$lt_postuninstall_cmds
26669 # Commands used to build a loadable module (assumed same as above if empty)
26670 module_cmds=$lt_module_cmds_RC
26671 module_expsym_cmds=$lt_module_expsym_cmds_RC
26673 # Commands to strip libraries.
26674 old_striplib=$lt_old_striplib
26675 striplib=$lt_striplib
26677 # Dependencies to place before the objects being linked to create a
26679 predep_objects=$lt_predep_objects_RC
26681 # Dependencies to place after the objects being linked to create a
26683 postdep_objects=$lt_postdep_objects_RC
26685 # Dependencies to place before the objects being linked to create a
26687 predeps=$lt_predeps_RC
26689 # Dependencies to place after the objects being linked to create a
26691 postdeps=$lt_postdeps_RC
26693 # The library search path used internally by the compiler when linking
26694 # a shared library.
26695 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26697 # Method to check whether dependent libraries are shared objects.
26698 deplibs_check_method=$lt_deplibs_check_method
26700 # Command to use when deplibs_check_method == file_magic.
26701 file_magic_cmd=$lt_file_magic_cmd
26703 # Flag that allows shared libraries with undefined symbols to be built.
26704 allow_undefined_flag=$lt_allow_undefined_flag_RC
26706 # Flag that forces no undefined symbols.
26707 no_undefined_flag=$lt_no_undefined_flag_RC
26709 # Commands used to finish a libtool library installation in a directory.
26710 finish_cmds=$lt_finish_cmds
26712 # Same as above, but a single script fragment to be evaled but not shown.
26713 finish_eval=$lt_finish_eval
26715 # Take the output of nm and produce a listing of raw symbols and C names.
26716 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26718 # Transform the output of nm in a proper C declaration
26719 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26721 # Transform the output of nm in a C name address pair
26722 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26724 # This is the shared library runtime path variable.
26725 runpath_var=$runpath_var
26727 # This is the shared library path variable.
26728 shlibpath_var=$shlibpath_var
26730 # Is shlibpath searched before the hard-coded library search path?
26731 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26733 # How to hardcode a shared library path into an executable.
26734 hardcode_action=$hardcode_action_RC
26736 # Whether we should hardcode library paths into libraries.
26737 hardcode_into_libs=$hardcode_into_libs
26739 # Flag to hardcode \$libdir into a binary during linking.
26740 # This must work even if \$libdir does not exist.
26741 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26743 # If ld is used when linking, flag to hardcode \$libdir into
26744 # a binary during linking. This must work even if \$libdir does
26746 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26748 # Whether we need a single -rpath flag with a separated argument.
26749 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26751 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26752 # resulting binary.
26753 hardcode_direct=$hardcode_direct_RC
26755 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26756 # resulting binary.
26757 hardcode_minus_L=$hardcode_minus_L_RC
26759 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26760 # the resulting binary.
26761 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26763 # Set to yes if building a shared library automatically hardcodes DIR into the library
26764 # and all subsequent libraries and executables linked against it.
26765 hardcode_automatic=$hardcode_automatic_RC
26767 # Variables whose values should be saved in libtool wrapper scripts and
26768 # restored at relink time.
26769 variables_saved_for_relink="$variables_saved_for_relink"
26771 # Whether libtool must link a program against all its dependency libraries.
26772 link_all_deplibs=$link_all_deplibs_RC
26774 # Compile-time system search path for libraries
26775 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26777 # Run-time system search path for libraries
26778 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26780 # Fix the shell variable \$srcfile for the compiler.
26781 fix_srcfile_path="$fix_srcfile_path_RC"
26783 # Set to yes if exported symbols are required.
26784 always_export_symbols=$always_export_symbols_RC
26786 # The commands to list exported symbols.
26787 export_symbols_cmds=$lt_export_symbols_cmds_RC
26789 # The commands to extract the exported symbol list from a shared archive.
26790 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26792 # Symbols that should not be listed in the preloaded symbols.
26793 exclude_expsyms=$lt_exclude_expsyms_RC
26795 # Symbols that must always be exported.
26796 include_expsyms=$lt_include_expsyms_RC
26798 # ### END LIBTOOL TAG CONFIG: $tagname
26804 # If there is no Makefile yet, we rely on a make rule to execute
26805 # `config.status --recheck' to rerun these tests and create the
26806 # libtool script then.
26807 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26808 if test -f "$ltmain_in"; then
26809 test -f Makefile && make "$ltmain"
26815 ac_cpp='$CPP $CPPFLAGS'
26816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26825 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26826 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26827 { (exit 1); exit 1; }; }
26831 # Append the new tag name to the list of available tags.
26832 if test -n "$tagname" ; then
26833 available_tags="$available_tags $tagname"
26839 # Now substitute the updated list of available tags.
26840 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26841 mv "${ofile}T" "$ofile"
26845 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26846 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26847 { (exit 1); exit 1; }; }
26853 # This can be used to rebuild libtool when needed
26854 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26856 # Always use our own libtool.
26857 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26859 # Prevent multiple expansion
26881 if test "$lt_cv_dlopen_self" = "yes" ; then
26883 cat >>confdefs.h <<\_ACEOF
26884 #define CAN_DLOPEN_SELF 1
26889 if test "$WITH_LLVMGCCDIR" = "default" ; then
26890 LLVMGCC="llvm-gcc${EXEEXT}"
26891 LLVMGXX="llvm-g++${EXEEXT}"
26892 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26893 set dummy $LLVMGCC; ac_word=$2
26894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26896 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26897 echo $ECHO_N "(cached) $ECHO_C" >&6
26901 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26905 for as_dir in $PATH
26908 test -z "$as_dir" && as_dir=.
26909 for ac_exec_ext in '' $ac_executable_extensions; do
26910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26911 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26922 LLVMGCC=$ac_cv_path_LLVMGCC
26923 if test -n "$LLVMGCC"; then
26924 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26925 echo "${ECHO_T}$LLVMGCC" >&6; }
26927 { echo "$as_me:$LINENO: result: no" >&5
26928 echo "${ECHO_T}no" >&6; }
26932 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26933 set dummy $LLVMGXX; ac_word=$2
26934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26936 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26937 echo $ECHO_N "(cached) $ECHO_C" >&6
26941 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26945 for as_dir in $PATH
26948 test -z "$as_dir" && as_dir=.
26949 for ac_exec_ext in '' $ac_executable_extensions; do
26950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26951 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26962 LLVMGXX=$ac_cv_path_LLVMGXX
26963 if test -n "$LLVMGXX"; then
26964 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26965 echo "${ECHO_T}$LLVMGXX" >&6; }
26967 { echo "$as_me:$LINENO: result: no" >&5
26968 echo "${ECHO_T}no" >&6; }
26973 if test -z "$LLVMGCC"; then
26974 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26976 if test -z "$LLVMGXX"; then
26977 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26985 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26986 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26999 if test "$GCC" != "yes" && test "$ICC" != "yes"
27001 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27002 echo "$as_me: error: gcc|icc required but not found" >&2;}
27003 { (exit 1); exit 1; }; }
27006 if test "$GXX" != "yes" && test "$IXX" != "yes"
27008 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27009 echo "$as_me: error: g++|icc required but not found" >&2;}
27010 { (exit 1); exit 1; }; }
27013 if test "$GCC" = "yes"
27015 cat >conftest.$ac_ext <<_ACEOF
27016 #if !defined(__GNUC__) || __GNUC__ < 3
27017 #error Unsupported GCC version
27021 rm -f conftest.$ac_objext
27022 if { (ac_try="$ac_compile"
27023 case "(($ac_try" in
27024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025 *) ac_try_echo=$ac_try;;
27027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27028 (eval "$ac_compile") 2>conftest.er1
27030 grep -v '^ *+' conftest.er1 >conftest.err
27032 cat conftest.err >&5
27033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034 (exit $ac_status); } &&
27035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27036 { (case "(($ac_try" in
27037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27038 *) ac_try_echo=$ac_try;;
27040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27041 (eval "$ac_try") 2>&5
27043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27044 (exit $ac_status); }; } &&
27045 { ac_try='test -s conftest.$ac_objext'
27046 { (case "(($ac_try" in
27047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27048 *) ac_try_echo=$ac_try;;
27050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27051 (eval "$ac_try") 2>&5
27053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054 (exit $ac_status); }; }; then
27057 echo "$as_me: failed program was:" >&5
27058 sed 's/^/| /' conftest.$ac_ext >&5
27060 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27061 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27062 { (exit 1); exit 1; }; }
27065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27068 if test -z "$llvm_cv_gnu_make_command"
27070 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27071 echo "$as_me: error: GNU Make required but not found" >&2;}
27072 { (exit 1); exit 1; }; }
27075 { echo "$as_me:$LINENO: result: ok" >&5
27076 echo "${ECHO_T}ok" >&6; }
27080 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27081 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27082 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27083 echo $ECHO_N "(cached) $ECHO_C" >&6
27085 ac_check_lib_save_LIBS=$LIBS
27087 cat >conftest.$ac_ext <<_ACEOF
27090 cat confdefs.h >>conftest.$ac_ext
27091 cat >>conftest.$ac_ext <<_ACEOF
27092 /* end confdefs.h. */
27094 /* Override any GCC internal prototype to avoid an error.
27095 Use char because int might match the return type of a GCC
27096 builtin and then its argument prototype would still apply. */
27104 return elf_begin ();
27109 rm -f conftest.$ac_objext conftest$ac_exeext
27110 if { (ac_try="$ac_link"
27111 case "(($ac_try" in
27112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27113 *) ac_try_echo=$ac_try;;
27115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27116 (eval "$ac_link") 2>conftest.er1
27118 grep -v '^ *+' conftest.er1 >conftest.err
27120 cat conftest.err >&5
27121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27122 (exit $ac_status); } &&
27123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27124 { (case "(($ac_try" in
27125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27126 *) ac_try_echo=$ac_try;;
27128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27129 (eval "$ac_try") 2>&5
27131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27132 (exit $ac_status); }; } &&
27133 { ac_try='test -s conftest$ac_exeext'
27134 { (case "(($ac_try" in
27135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27136 *) ac_try_echo=$ac_try;;
27138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27139 (eval "$ac_try") 2>&5
27141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27142 (exit $ac_status); }; }; then
27143 ac_cv_lib_elf_elf_begin=yes
27145 echo "$as_me: failed program was:" >&5
27146 sed 's/^/| /' conftest.$ac_ext >&5
27148 ac_cv_lib_elf_elf_begin=no
27151 rm -f core conftest.err conftest.$ac_objext \
27152 conftest$ac_exeext conftest.$ac_ext
27153 LIBS=$ac_check_lib_save_LIBS
27155 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27156 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27157 if test $ac_cv_lib_elf_elf_begin = yes; then
27158 cat >>confdefs.h <<_ACEOF
27159 #define HAVE_LIBELF 1
27167 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27168 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27169 if test "${ac_cv_lib_m_sin+set}" = set; then
27170 echo $ECHO_N "(cached) $ECHO_C" >&6
27172 ac_check_lib_save_LIBS=$LIBS
27174 cat >conftest.$ac_ext <<_ACEOF
27177 cat confdefs.h >>conftest.$ac_ext
27178 cat >>conftest.$ac_ext <<_ACEOF
27179 /* end confdefs.h. */
27181 /* Override any GCC internal prototype to avoid an error.
27182 Use char because int might match the return type of a GCC
27183 builtin and then its argument prototype would still apply. */
27196 rm -f conftest.$ac_objext conftest$ac_exeext
27197 if { (ac_try="$ac_link"
27198 case "(($ac_try" in
27199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27200 *) ac_try_echo=$ac_try;;
27202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27203 (eval "$ac_link") 2>conftest.er1
27205 grep -v '^ *+' conftest.er1 >conftest.err
27207 cat conftest.err >&5
27208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27209 (exit $ac_status); } &&
27210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27211 { (case "(($ac_try" in
27212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27213 *) ac_try_echo=$ac_try;;
27215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27216 (eval "$ac_try") 2>&5
27218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219 (exit $ac_status); }; } &&
27220 { ac_try='test -s conftest$ac_exeext'
27221 { (case "(($ac_try" in
27222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27223 *) ac_try_echo=$ac_try;;
27225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27226 (eval "$ac_try") 2>&5
27228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27229 (exit $ac_status); }; }; then
27230 ac_cv_lib_m_sin=yes
27232 echo "$as_me: failed program was:" >&5
27233 sed 's/^/| /' conftest.$ac_ext >&5
27238 rm -f core conftest.err conftest.$ac_objext \
27239 conftest$ac_exeext conftest.$ac_ext
27240 LIBS=$ac_check_lib_save_LIBS
27242 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27243 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27244 if test $ac_cv_lib_m_sin = yes; then
27245 cat >>confdefs.h <<_ACEOF
27246 #define HAVE_LIBM 1
27253 if test "$llvm_cv_os_type" = "MingW" ; then
27255 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27256 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27257 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27258 echo $ECHO_N "(cached) $ECHO_C" >&6
27260 ac_check_lib_save_LIBS=$LIBS
27261 LIBS="-limagehlp $LIBS"
27262 cat >conftest.$ac_ext <<_ACEOF
27265 cat confdefs.h >>conftest.$ac_ext
27266 cat >>conftest.$ac_ext <<_ACEOF
27267 /* end confdefs.h. */
27278 rm -f conftest.$ac_objext conftest$ac_exeext
27279 if { (ac_try="$ac_link"
27280 case "(($ac_try" in
27281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27282 *) ac_try_echo=$ac_try;;
27284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27285 (eval "$ac_link") 2>conftest.er1
27287 grep -v '^ *+' conftest.er1 >conftest.err
27289 cat conftest.err >&5
27290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291 (exit $ac_status); } &&
27292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27293 { (case "(($ac_try" in
27294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27295 *) ac_try_echo=$ac_try;;
27297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27298 (eval "$ac_try") 2>&5
27300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27301 (exit $ac_status); }; } &&
27302 { ac_try='test -s conftest$ac_exeext'
27303 { (case "(($ac_try" in
27304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27305 *) ac_try_echo=$ac_try;;
27307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27308 (eval "$ac_try") 2>&5
27310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27311 (exit $ac_status); }; }; then
27312 ac_cv_lib_imagehlp_main=yes
27314 echo "$as_me: failed program was:" >&5
27315 sed 's/^/| /' conftest.$ac_ext >&5
27317 ac_cv_lib_imagehlp_main=no
27320 rm -f core conftest.err conftest.$ac_objext \
27321 conftest$ac_exeext conftest.$ac_ext
27322 LIBS=$ac_check_lib_save_LIBS
27324 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27325 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27326 if test $ac_cv_lib_imagehlp_main = yes; then
27327 cat >>confdefs.h <<_ACEOF
27328 #define HAVE_LIBIMAGEHLP 1
27331 LIBS="-limagehlp $LIBS"
27336 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27337 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27338 if test "${ac_cv_lib_psapi_main+set}" = set; then
27339 echo $ECHO_N "(cached) $ECHO_C" >&6
27341 ac_check_lib_save_LIBS=$LIBS
27342 LIBS="-lpsapi $LIBS"
27343 cat >conftest.$ac_ext <<_ACEOF
27346 cat confdefs.h >>conftest.$ac_ext
27347 cat >>conftest.$ac_ext <<_ACEOF
27348 /* end confdefs.h. */
27359 rm -f conftest.$ac_objext conftest$ac_exeext
27360 if { (ac_try="$ac_link"
27361 case "(($ac_try" in
27362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27363 *) ac_try_echo=$ac_try;;
27365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27366 (eval "$ac_link") 2>conftest.er1
27368 grep -v '^ *+' conftest.er1 >conftest.err
27370 cat conftest.err >&5
27371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27372 (exit $ac_status); } &&
27373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27374 { (case "(($ac_try" in
27375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27376 *) ac_try_echo=$ac_try;;
27378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27379 (eval "$ac_try") 2>&5
27381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382 (exit $ac_status); }; } &&
27383 { ac_try='test -s conftest$ac_exeext'
27384 { (case "(($ac_try" in
27385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27386 *) ac_try_echo=$ac_try;;
27388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27389 (eval "$ac_try") 2>&5
27391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392 (exit $ac_status); }; }; then
27393 ac_cv_lib_psapi_main=yes
27395 echo "$as_me: failed program was:" >&5
27396 sed 's/^/| /' conftest.$ac_ext >&5
27398 ac_cv_lib_psapi_main=no
27401 rm -f core conftest.err conftest.$ac_objext \
27402 conftest$ac_exeext conftest.$ac_ext
27403 LIBS=$ac_check_lib_save_LIBS
27405 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27406 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27407 if test $ac_cv_lib_psapi_main = yes; then
27408 cat >>confdefs.h <<_ACEOF
27409 #define HAVE_LIBPSAPI 1
27412 LIBS="-lpsapi $LIBS"
27418 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27419 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27420 if test "${ac_cv_search_dlopen+set}" = set; then
27421 echo $ECHO_N "(cached) $ECHO_C" >&6
27423 ac_func_search_save_LIBS=$LIBS
27424 cat >conftest.$ac_ext <<_ACEOF
27427 cat confdefs.h >>conftest.$ac_ext
27428 cat >>conftest.$ac_ext <<_ACEOF
27429 /* end confdefs.h. */
27431 /* Override any GCC internal prototype to avoid an error.
27432 Use char because int might match the return type of a GCC
27433 builtin and then its argument prototype would still apply. */
27446 for ac_lib in '' dl; do
27447 if test -z "$ac_lib"; then
27448 ac_res="none required"
27451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27453 rm -f conftest.$ac_objext conftest$ac_exeext
27454 if { (ac_try="$ac_link"
27455 case "(($ac_try" in
27456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27457 *) ac_try_echo=$ac_try;;
27459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27460 (eval "$ac_link") 2>conftest.er1
27462 grep -v '^ *+' conftest.er1 >conftest.err
27464 cat conftest.err >&5
27465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466 (exit $ac_status); } &&
27467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27468 { (case "(($ac_try" in
27469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27470 *) ac_try_echo=$ac_try;;
27472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27473 (eval "$ac_try") 2>&5
27475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27476 (exit $ac_status); }; } &&
27477 { ac_try='test -s conftest$ac_exeext'
27478 { (case "(($ac_try" in
27479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27480 *) ac_try_echo=$ac_try;;
27482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27483 (eval "$ac_try") 2>&5
27485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27486 (exit $ac_status); }; }; then
27487 ac_cv_search_dlopen=$ac_res
27489 echo "$as_me: failed program was:" >&5
27490 sed 's/^/| /' conftest.$ac_ext >&5
27495 rm -f core conftest.err conftest.$ac_objext \
27497 if test "${ac_cv_search_dlopen+set}" = set; then
27501 if test "${ac_cv_search_dlopen+set}" = set; then
27504 ac_cv_search_dlopen=no
27506 rm conftest.$ac_ext
27507 LIBS=$ac_func_search_save_LIBS
27509 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27510 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27511 ac_res=$ac_cv_search_dlopen
27512 if test "$ac_res" != no; then
27513 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27515 cat >>confdefs.h <<\_ACEOF
27516 #define HAVE_DLOPEN 1
27520 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27521 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27525 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27526 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27527 if test "${ac_cv_search_mallinfo+set}" = set; then
27528 echo $ECHO_N "(cached) $ECHO_C" >&6
27530 ac_func_search_save_LIBS=$LIBS
27531 cat >conftest.$ac_ext <<_ACEOF
27534 cat confdefs.h >>conftest.$ac_ext
27535 cat >>conftest.$ac_ext <<_ACEOF
27536 /* end confdefs.h. */
27538 /* Override any GCC internal prototype to avoid an error.
27539 Use char because int might match the return type of a GCC
27540 builtin and then its argument prototype would still apply. */
27548 return mallinfo ();
27553 for ac_lib in '' malloc; do
27554 if test -z "$ac_lib"; then
27555 ac_res="none required"
27558 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27560 rm -f conftest.$ac_objext conftest$ac_exeext
27561 if { (ac_try="$ac_link"
27562 case "(($ac_try" in
27563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27564 *) ac_try_echo=$ac_try;;
27566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27567 (eval "$ac_link") 2>conftest.er1
27569 grep -v '^ *+' conftest.er1 >conftest.err
27571 cat conftest.err >&5
27572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27573 (exit $ac_status); } &&
27574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27575 { (case "(($ac_try" in
27576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27577 *) ac_try_echo=$ac_try;;
27579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27580 (eval "$ac_try") 2>&5
27582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583 (exit $ac_status); }; } &&
27584 { ac_try='test -s conftest$ac_exeext'
27585 { (case "(($ac_try" in
27586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27587 *) ac_try_echo=$ac_try;;
27589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27590 (eval "$ac_try") 2>&5
27592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593 (exit $ac_status); }; }; then
27594 ac_cv_search_mallinfo=$ac_res
27596 echo "$as_me: failed program was:" >&5
27597 sed 's/^/| /' conftest.$ac_ext >&5
27602 rm -f core conftest.err conftest.$ac_objext \
27604 if test "${ac_cv_search_mallinfo+set}" = set; then
27608 if test "${ac_cv_search_mallinfo+set}" = set; then
27611 ac_cv_search_mallinfo=no
27613 rm conftest.$ac_ext
27614 LIBS=$ac_func_search_save_LIBS
27616 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27617 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27618 ac_res=$ac_cv_search_mallinfo
27619 if test "$ac_res" != no; then
27620 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27622 cat >>confdefs.h <<\_ACEOF
27623 #define HAVE_MALLINFO 1
27629 if test "$ENABLE_THREADS" -eq 1 ; then
27631 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27632 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27633 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27634 echo $ECHO_N "(cached) $ECHO_C" >&6
27636 ac_check_lib_save_LIBS=$LIBS
27637 LIBS="-lpthread $LIBS"
27638 cat >conftest.$ac_ext <<_ACEOF
27641 cat confdefs.h >>conftest.$ac_ext
27642 cat >>conftest.$ac_ext <<_ACEOF
27643 /* end confdefs.h. */
27645 /* Override any GCC internal prototype to avoid an error.
27646 Use char because int might match the return type of a GCC
27647 builtin and then its argument prototype would still apply. */
27651 char pthread_mutex_init ();
27655 return pthread_mutex_init ();
27660 rm -f conftest.$ac_objext conftest$ac_exeext
27661 if { (ac_try="$ac_link"
27662 case "(($ac_try" in
27663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27664 *) ac_try_echo=$ac_try;;
27666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27667 (eval "$ac_link") 2>conftest.er1
27669 grep -v '^ *+' conftest.er1 >conftest.err
27671 cat conftest.err >&5
27672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673 (exit $ac_status); } &&
27674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27675 { (case "(($ac_try" in
27676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677 *) ac_try_echo=$ac_try;;
27679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27680 (eval "$ac_try") 2>&5
27682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683 (exit $ac_status); }; } &&
27684 { ac_try='test -s conftest$ac_exeext'
27685 { (case "(($ac_try" in
27686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27687 *) ac_try_echo=$ac_try;;
27689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27690 (eval "$ac_try") 2>&5
27692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27693 (exit $ac_status); }; }; then
27694 ac_cv_lib_pthread_pthread_mutex_init=yes
27696 echo "$as_me: failed program was:" >&5
27697 sed 's/^/| /' conftest.$ac_ext >&5
27699 ac_cv_lib_pthread_pthread_mutex_init=no
27702 rm -f core conftest.err conftest.$ac_objext \
27703 conftest$ac_exeext conftest.$ac_ext
27704 LIBS=$ac_check_lib_save_LIBS
27706 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27707 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27708 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27709 cat >>confdefs.h <<_ACEOF
27710 #define HAVE_LIBPTHREAD 1
27713 LIBS="-lpthread $LIBS"
27717 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27718 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27719 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27720 echo $ECHO_N "(cached) $ECHO_C" >&6
27722 ac_func_search_save_LIBS=$LIBS
27723 cat >conftest.$ac_ext <<_ACEOF
27726 cat confdefs.h >>conftest.$ac_ext
27727 cat >>conftest.$ac_ext <<_ACEOF
27728 /* end confdefs.h. */
27730 /* Override any GCC internal prototype to avoid an error.
27731 Use char because int might match the return type of a GCC
27732 builtin and then its argument prototype would still apply. */
27736 char pthread_mutex_lock ();
27740 return pthread_mutex_lock ();
27745 for ac_lib in '' pthread; do
27746 if test -z "$ac_lib"; then
27747 ac_res="none required"
27750 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27752 rm -f conftest.$ac_objext conftest$ac_exeext
27753 if { (ac_try="$ac_link"
27754 case "(($ac_try" in
27755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27756 *) ac_try_echo=$ac_try;;
27758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27759 (eval "$ac_link") 2>conftest.er1
27761 grep -v '^ *+' conftest.er1 >conftest.err
27763 cat conftest.err >&5
27764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765 (exit $ac_status); } &&
27766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27767 { (case "(($ac_try" in
27768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27769 *) ac_try_echo=$ac_try;;
27771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27772 (eval "$ac_try") 2>&5
27774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775 (exit $ac_status); }; } &&
27776 { ac_try='test -s conftest$ac_exeext'
27777 { (case "(($ac_try" in
27778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27779 *) ac_try_echo=$ac_try;;
27781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27782 (eval "$ac_try") 2>&5
27784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27785 (exit $ac_status); }; }; then
27786 ac_cv_search_pthread_mutex_lock=$ac_res
27788 echo "$as_me: failed program was:" >&5
27789 sed 's/^/| /' conftest.$ac_ext >&5
27794 rm -f core conftest.err conftest.$ac_objext \
27796 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27800 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27803 ac_cv_search_pthread_mutex_lock=no
27805 rm conftest.$ac_ext
27806 LIBS=$ac_func_search_save_LIBS
27808 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27809 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27810 ac_res=$ac_cv_search_pthread_mutex_lock
27811 if test "$ac_res" != no; then
27812 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27814 cat >>confdefs.h <<\_ACEOF
27815 #define HAVE_PTHREAD_MUTEX_LOCK 1
27823 # Check whether --with-udis86 was given.
27824 if test "${with_udis86+set}" = set; then
27825 withval=$with_udis86;
27830 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27833 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27834 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27835 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27836 echo $ECHO_N "(cached) $ECHO_C" >&6
27838 ac_check_lib_save_LIBS=$LIBS
27839 LIBS="-ludis86 $LIBS"
27840 cat >conftest.$ac_ext <<_ACEOF
27843 cat confdefs.h >>conftest.$ac_ext
27844 cat >>conftest.$ac_ext <<_ACEOF
27845 /* end confdefs.h. */
27847 /* Override any GCC internal prototype to avoid an error.
27848 Use char because int might match the return type of a GCC
27849 builtin and then its argument prototype would still apply. */
27862 rm -f conftest.$ac_objext conftest$ac_exeext
27863 if { (ac_try="$ac_link"
27864 case "(($ac_try" in
27865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27866 *) ac_try_echo=$ac_try;;
27868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27869 (eval "$ac_link") 2>conftest.er1
27871 grep -v '^ *+' conftest.er1 >conftest.err
27873 cat conftest.err >&5
27874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875 (exit $ac_status); } &&
27876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27877 { (case "(($ac_try" in
27878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27879 *) ac_try_echo=$ac_try;;
27881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27882 (eval "$ac_try") 2>&5
27884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885 (exit $ac_status); }; } &&
27886 { ac_try='test -s conftest$ac_exeext'
27887 { (case "(($ac_try" in
27888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27889 *) ac_try_echo=$ac_try;;
27891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27892 (eval "$ac_try") 2>&5
27894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27895 (exit $ac_status); }; }; then
27896 ac_cv_lib_udis86_ud_init=yes
27898 echo "$as_me: failed program was:" >&5
27899 sed 's/^/| /' conftest.$ac_ext >&5
27901 ac_cv_lib_udis86_ud_init=no
27904 rm -f core conftest.err conftest.$ac_objext \
27905 conftest$ac_exeext conftest.$ac_ext
27906 LIBS=$ac_check_lib_save_LIBS
27908 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27909 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27910 if test $ac_cv_lib_udis86_ud_init = yes; then
27911 cat >>confdefs.h <<_ACEOF
27912 #define HAVE_LIBUDIS86 1
27915 LIBS="-ludis86 $LIBS"
27919 echo "Error! You need to have libudis86 around."
27931 cat >>confdefs.h <<_ACEOF
27932 #define USE_UDIS86 $USE_UDIS86
27942 ac_header_dirent=no
27943 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27944 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27945 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27946 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27948 echo $ECHO_N "(cached) $ECHO_C" >&6
27950 cat >conftest.$ac_ext <<_ACEOF
27953 cat confdefs.h >>conftest.$ac_ext
27954 cat >>conftest.$ac_ext <<_ACEOF
27955 /* end confdefs.h. */
27956 #include <sys/types.h>
27968 rm -f conftest.$ac_objext
27969 if { (ac_try="$ac_compile"
27970 case "(($ac_try" in
27971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27972 *) ac_try_echo=$ac_try;;
27974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27975 (eval "$ac_compile") 2>conftest.er1
27977 grep -v '^ *+' conftest.er1 >conftest.err
27979 cat conftest.err >&5
27980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981 (exit $ac_status); } &&
27982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27983 { (case "(($ac_try" in
27984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27985 *) ac_try_echo=$ac_try;;
27987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27988 (eval "$ac_try") 2>&5
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); }; } &&
27992 { ac_try='test -s conftest.$ac_objext'
27993 { (case "(($ac_try" in
27994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27995 *) ac_try_echo=$ac_try;;
27997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27998 (eval "$ac_try") 2>&5
28000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28001 (exit $ac_status); }; }; then
28002 eval "$as_ac_Header=yes"
28004 echo "$as_me: failed program was:" >&5
28005 sed 's/^/| /' conftest.$ac_ext >&5
28007 eval "$as_ac_Header=no"
28010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28012 ac_res=`eval echo '${'$as_ac_Header'}'`
28013 { echo "$as_me:$LINENO: result: $ac_res" >&5
28014 echo "${ECHO_T}$ac_res" >&6; }
28015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28016 cat >>confdefs.h <<_ACEOF
28017 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28020 ac_header_dirent=$ac_hdr; break
28024 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28025 if test $ac_header_dirent = dirent.h; then
28026 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28027 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28028 if test "${ac_cv_search_opendir+set}" = set; then
28029 echo $ECHO_N "(cached) $ECHO_C" >&6
28031 ac_func_search_save_LIBS=$LIBS
28032 cat >conftest.$ac_ext <<_ACEOF
28035 cat confdefs.h >>conftest.$ac_ext
28036 cat >>conftest.$ac_ext <<_ACEOF
28037 /* end confdefs.h. */
28039 /* Override any GCC internal prototype to avoid an error.
28040 Use char because int might match the return type of a GCC
28041 builtin and then its argument prototype would still apply. */
28054 for ac_lib in '' dir; do
28055 if test -z "$ac_lib"; then
28056 ac_res="none required"
28059 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28061 rm -f conftest.$ac_objext conftest$ac_exeext
28062 if { (ac_try="$ac_link"
28063 case "(($ac_try" in
28064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28065 *) ac_try_echo=$ac_try;;
28067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28068 (eval "$ac_link") 2>conftest.er1
28070 grep -v '^ *+' conftest.er1 >conftest.err
28072 cat conftest.err >&5
28073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074 (exit $ac_status); } &&
28075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28076 { (case "(($ac_try" in
28077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28078 *) ac_try_echo=$ac_try;;
28080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28081 (eval "$ac_try") 2>&5
28083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28084 (exit $ac_status); }; } &&
28085 { ac_try='test -s conftest$ac_exeext'
28086 { (case "(($ac_try" in
28087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28088 *) ac_try_echo=$ac_try;;
28090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28091 (eval "$ac_try") 2>&5
28093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094 (exit $ac_status); }; }; then
28095 ac_cv_search_opendir=$ac_res
28097 echo "$as_me: failed program was:" >&5
28098 sed 's/^/| /' conftest.$ac_ext >&5
28103 rm -f core conftest.err conftest.$ac_objext \
28105 if test "${ac_cv_search_opendir+set}" = set; then
28109 if test "${ac_cv_search_opendir+set}" = set; then
28112 ac_cv_search_opendir=no
28114 rm conftest.$ac_ext
28115 LIBS=$ac_func_search_save_LIBS
28117 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28118 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28119 ac_res=$ac_cv_search_opendir
28120 if test "$ac_res" != no; then
28121 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28126 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28127 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28128 if test "${ac_cv_search_opendir+set}" = set; then
28129 echo $ECHO_N "(cached) $ECHO_C" >&6
28131 ac_func_search_save_LIBS=$LIBS
28132 cat >conftest.$ac_ext <<_ACEOF
28135 cat confdefs.h >>conftest.$ac_ext
28136 cat >>conftest.$ac_ext <<_ACEOF
28137 /* end confdefs.h. */
28139 /* Override any GCC internal prototype to avoid an error.
28140 Use char because int might match the return type of a GCC
28141 builtin and then its argument prototype would still apply. */
28154 for ac_lib in '' x; do
28155 if test -z "$ac_lib"; then
28156 ac_res="none required"
28159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28161 rm -f conftest.$ac_objext conftest$ac_exeext
28162 if { (ac_try="$ac_link"
28163 case "(($ac_try" in
28164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28165 *) ac_try_echo=$ac_try;;
28167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28168 (eval "$ac_link") 2>conftest.er1
28170 grep -v '^ *+' conftest.er1 >conftest.err
28172 cat conftest.err >&5
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); } &&
28175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28176 { (case "(($ac_try" in
28177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28178 *) ac_try_echo=$ac_try;;
28180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28181 (eval "$ac_try") 2>&5
28183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184 (exit $ac_status); }; } &&
28185 { ac_try='test -s conftest$ac_exeext'
28186 { (case "(($ac_try" in
28187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28188 *) ac_try_echo=$ac_try;;
28190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28191 (eval "$ac_try") 2>&5
28193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194 (exit $ac_status); }; }; then
28195 ac_cv_search_opendir=$ac_res
28197 echo "$as_me: failed program was:" >&5
28198 sed 's/^/| /' conftest.$ac_ext >&5
28203 rm -f core conftest.err conftest.$ac_objext \
28205 if test "${ac_cv_search_opendir+set}" = set; then
28209 if test "${ac_cv_search_opendir+set}" = set; then
28212 ac_cv_search_opendir=no
28214 rm conftest.$ac_ext
28215 LIBS=$ac_func_search_save_LIBS
28217 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28218 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28219 ac_res=$ac_cv_search_opendir
28220 if test "$ac_res" != no; then
28221 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28227 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28228 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28229 if test "${ac_cv_header_mmap_anon+set}" = set; then
28230 echo $ECHO_N "(cached) $ECHO_C" >&6
28233 ac_cpp='$CPP $CPPFLAGS'
28234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28238 cat >conftest.$ac_ext <<_ACEOF
28241 cat confdefs.h >>conftest.$ac_ext
28242 cat >>conftest.$ac_ext <<_ACEOF
28243 /* end confdefs.h. */
28244 #include <sys/mman.h>
28245 #include <unistd.h>
28250 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28255 rm -f conftest.$ac_objext
28256 if { (ac_try="$ac_compile"
28257 case "(($ac_try" in
28258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28259 *) ac_try_echo=$ac_try;;
28261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28262 (eval "$ac_compile") 2>conftest.er1
28264 grep -v '^ *+' conftest.er1 >conftest.err
28266 cat conftest.err >&5
28267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268 (exit $ac_status); } &&
28269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28270 { (case "(($ac_try" in
28271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28272 *) ac_try_echo=$ac_try;;
28274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28275 (eval "$ac_try") 2>&5
28277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278 (exit $ac_status); }; } &&
28279 { ac_try='test -s conftest.$ac_objext'
28280 { (case "(($ac_try" in
28281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28282 *) ac_try_echo=$ac_try;;
28284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28285 (eval "$ac_try") 2>&5
28287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28288 (exit $ac_status); }; }; then
28289 ac_cv_header_mmap_anon=yes
28291 echo "$as_me: failed program was:" >&5
28292 sed 's/^/| /' conftest.$ac_ext >&5
28294 ac_cv_header_mmap_anon=no
28297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28299 ac_cpp='$CPP $CPPFLAGS'
28300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28306 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28307 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28308 if test "$ac_cv_header_mmap_anon" = yes; then
28310 cat >>confdefs.h <<\_ACEOF
28311 #define HAVE_MMAP_ANONYMOUS 1
28316 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28317 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28318 if test "${ac_cv_header_stat_broken+set}" = set; then
28319 echo $ECHO_N "(cached) $ECHO_C" >&6
28321 cat >conftest.$ac_ext <<_ACEOF
28324 cat confdefs.h >>conftest.$ac_ext
28325 cat >>conftest.$ac_ext <<_ACEOF
28326 /* end confdefs.h. */
28327 #include <sys/types.h>
28328 #include <sys/stat.h>
28330 #if defined S_ISBLK && defined S_IFDIR
28331 # if S_ISBLK (S_IFDIR)
28336 #if defined S_ISBLK && defined S_IFCHR
28337 # if S_ISBLK (S_IFCHR)
28342 #if defined S_ISLNK && defined S_IFREG
28343 # if S_ISLNK (S_IFREG)
28348 #if defined S_ISSOCK && defined S_IFREG
28349 # if S_ISSOCK (S_IFREG)
28355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28356 $EGREP "You lose" >/dev/null 2>&1; then
28357 ac_cv_header_stat_broken=yes
28359 ac_cv_header_stat_broken=no
28364 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28365 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28366 if test $ac_cv_header_stat_broken = yes; then
28368 cat >>confdefs.h <<\_ACEOF
28369 #define STAT_MACROS_BROKEN 1
28374 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28375 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28376 if test "${ac_cv_header_stdc+set}" = set; then
28377 echo $ECHO_N "(cached) $ECHO_C" >&6
28379 cat >conftest.$ac_ext <<_ACEOF
28382 cat confdefs.h >>conftest.$ac_ext
28383 cat >>conftest.$ac_ext <<_ACEOF
28384 /* end confdefs.h. */
28385 #include <stdlib.h>
28386 #include <stdarg.h>
28387 #include <string.h>
28398 rm -f conftest.$ac_objext
28399 if { (ac_try="$ac_compile"
28400 case "(($ac_try" in
28401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28402 *) ac_try_echo=$ac_try;;
28404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28405 (eval "$ac_compile") 2>conftest.er1
28407 grep -v '^ *+' conftest.er1 >conftest.err
28409 cat conftest.err >&5
28410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411 (exit $ac_status); } &&
28412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28413 { (case "(($ac_try" in
28414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28415 *) ac_try_echo=$ac_try;;
28417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28418 (eval "$ac_try") 2>&5
28420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28421 (exit $ac_status); }; } &&
28422 { ac_try='test -s conftest.$ac_objext'
28423 { (case "(($ac_try" in
28424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28425 *) ac_try_echo=$ac_try;;
28427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28428 (eval "$ac_try") 2>&5
28430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28431 (exit $ac_status); }; }; then
28432 ac_cv_header_stdc=yes
28434 echo "$as_me: failed program was:" >&5
28435 sed 's/^/| /' conftest.$ac_ext >&5
28437 ac_cv_header_stdc=no
28440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28442 if test $ac_cv_header_stdc = yes; then
28443 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28444 cat >conftest.$ac_ext <<_ACEOF
28447 cat confdefs.h >>conftest.$ac_ext
28448 cat >>conftest.$ac_ext <<_ACEOF
28449 /* end confdefs.h. */
28450 #include <string.h>
28453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28454 $EGREP "memchr" >/dev/null 2>&1; then
28457 ac_cv_header_stdc=no
28463 if test $ac_cv_header_stdc = yes; then
28464 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28465 cat >conftest.$ac_ext <<_ACEOF
28468 cat confdefs.h >>conftest.$ac_ext
28469 cat >>conftest.$ac_ext <<_ACEOF
28470 /* end confdefs.h. */
28471 #include <stdlib.h>
28474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28475 $EGREP "free" >/dev/null 2>&1; then
28478 ac_cv_header_stdc=no
28484 if test $ac_cv_header_stdc = yes; then
28485 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28486 if test "$cross_compiling" = yes; then
28489 cat >conftest.$ac_ext <<_ACEOF
28492 cat confdefs.h >>conftest.$ac_ext
28493 cat >>conftest.$ac_ext <<_ACEOF
28494 /* end confdefs.h. */
28496 #include <stdlib.h>
28497 #if ((' ' & 0x0FF) == 0x020)
28498 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28499 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28501 # define ISLOWER(c) \
28502 (('a' <= (c) && (c) <= 'i') \
28503 || ('j' <= (c) && (c) <= 'r') \
28504 || ('s' <= (c) && (c) <= 'z'))
28505 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28508 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28513 for (i = 0; i < 256; i++)
28514 if (XOR (islower (i), ISLOWER (i))
28515 || toupper (i) != TOUPPER (i))
28520 rm -f conftest$ac_exeext
28521 if { (ac_try="$ac_link"
28522 case "(($ac_try" in
28523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28524 *) ac_try_echo=$ac_try;;
28526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28527 (eval "$ac_link") 2>&5
28529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28531 { (case "(($ac_try" in
28532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28533 *) ac_try_echo=$ac_try;;
28535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28536 (eval "$ac_try") 2>&5
28538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539 (exit $ac_status); }; }; then
28542 echo "$as_me: program exited with status $ac_status" >&5
28543 echo "$as_me: failed program was:" >&5
28544 sed 's/^/| /' conftest.$ac_ext >&5
28546 ( exit $ac_status )
28547 ac_cv_header_stdc=no
28549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28555 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28556 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28557 if test $ac_cv_header_stdc = yes; then
28559 cat >>confdefs.h <<\_ACEOF
28560 #define STDC_HEADERS 1
28565 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28566 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28567 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28568 echo $ECHO_N "(cached) $ECHO_C" >&6
28570 cat >conftest.$ac_ext <<_ACEOF
28573 cat confdefs.h >>conftest.$ac_ext
28574 cat >>conftest.$ac_ext <<_ACEOF
28575 /* end confdefs.h. */
28576 #include <sys/types.h>
28577 #include <sys/wait.h>
28578 #ifndef WEXITSTATUS
28579 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28582 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28590 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28595 rm -f conftest.$ac_objext
28596 if { (ac_try="$ac_compile"
28597 case "(($ac_try" in
28598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28599 *) ac_try_echo=$ac_try;;
28601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28602 (eval "$ac_compile") 2>conftest.er1
28604 grep -v '^ *+' conftest.er1 >conftest.err
28606 cat conftest.err >&5
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); } &&
28609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28610 { (case "(($ac_try" in
28611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612 *) ac_try_echo=$ac_try;;
28614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615 (eval "$ac_try") 2>&5
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); }; } &&
28619 { ac_try='test -s conftest.$ac_objext'
28620 { (case "(($ac_try" in
28621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28622 *) ac_try_echo=$ac_try;;
28624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28625 (eval "$ac_try") 2>&5
28627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628 (exit $ac_status); }; }; then
28629 ac_cv_header_sys_wait_h=yes
28631 echo "$as_me: failed program was:" >&5
28632 sed 's/^/| /' conftest.$ac_ext >&5
28634 ac_cv_header_sys_wait_h=no
28637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28639 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28640 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28641 if test $ac_cv_header_sys_wait_h = yes; then
28643 cat >>confdefs.h <<\_ACEOF
28644 #define HAVE_SYS_WAIT_H 1
28649 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28650 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28651 if test "${ac_cv_header_time+set}" = set; then
28652 echo $ECHO_N "(cached) $ECHO_C" >&6
28654 cat >conftest.$ac_ext <<_ACEOF
28657 cat confdefs.h >>conftest.$ac_ext
28658 cat >>conftest.$ac_ext <<_ACEOF
28659 /* end confdefs.h. */
28660 #include <sys/types.h>
28661 #include <sys/time.h>
28667 if ((struct tm *) 0)
28673 rm -f conftest.$ac_objext
28674 if { (ac_try="$ac_compile"
28675 case "(($ac_try" in
28676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28677 *) ac_try_echo=$ac_try;;
28679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28680 (eval "$ac_compile") 2>conftest.er1
28682 grep -v '^ *+' conftest.er1 >conftest.err
28684 cat conftest.err >&5
28685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686 (exit $ac_status); } &&
28687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28688 { (case "(($ac_try" in
28689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28690 *) ac_try_echo=$ac_try;;
28692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28693 (eval "$ac_try") 2>&5
28695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696 (exit $ac_status); }; } &&
28697 { ac_try='test -s conftest.$ac_objext'
28698 { (case "(($ac_try" in
28699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28700 *) ac_try_echo=$ac_try;;
28702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28703 (eval "$ac_try") 2>&5
28705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28706 (exit $ac_status); }; }; then
28707 ac_cv_header_time=yes
28709 echo "$as_me: failed program was:" >&5
28710 sed 's/^/| /' conftest.$ac_ext >&5
28712 ac_cv_header_time=no
28715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28717 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28718 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28719 if test $ac_cv_header_time = yes; then
28721 cat >>confdefs.h <<\_ACEOF
28722 #define TIME_WITH_SYS_TIME 1
28734 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28741 echo $ECHO_N "(cached) $ECHO_C" >&6
28743 ac_res=`eval echo '${'$as_ac_Header'}'`
28744 { echo "$as_me:$LINENO: result: $ac_res" >&5
28745 echo "${ECHO_T}$ac_res" >&6; }
28747 # Is the header compilable?
28748 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28750 cat >conftest.$ac_ext <<_ACEOF
28753 cat confdefs.h >>conftest.$ac_ext
28754 cat >>conftest.$ac_ext <<_ACEOF
28755 /* end confdefs.h. */
28756 $ac_includes_default
28757 #include <$ac_header>
28759 rm -f conftest.$ac_objext
28760 if { (ac_try="$ac_compile"
28761 case "(($ac_try" in
28762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28763 *) ac_try_echo=$ac_try;;
28765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28766 (eval "$ac_compile") 2>conftest.er1
28768 grep -v '^ *+' conftest.er1 >conftest.err
28770 cat conftest.err >&5
28771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772 (exit $ac_status); } &&
28773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28774 { (case "(($ac_try" in
28775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28776 *) ac_try_echo=$ac_try;;
28778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28779 (eval "$ac_try") 2>&5
28781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782 (exit $ac_status); }; } &&
28783 { ac_try='test -s conftest.$ac_objext'
28784 { (case "(($ac_try" in
28785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28786 *) ac_try_echo=$ac_try;;
28788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28789 (eval "$ac_try") 2>&5
28791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28792 (exit $ac_status); }; }; then
28793 ac_header_compiler=yes
28795 echo "$as_me: failed program was:" >&5
28796 sed 's/^/| /' conftest.$ac_ext >&5
28798 ac_header_compiler=no
28801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28803 echo "${ECHO_T}$ac_header_compiler" >&6; }
28805 # Is the header present?
28806 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28808 cat >conftest.$ac_ext <<_ACEOF
28811 cat confdefs.h >>conftest.$ac_ext
28812 cat >>conftest.$ac_ext <<_ACEOF
28813 /* end confdefs.h. */
28814 #include <$ac_header>
28816 if { (ac_try="$ac_cpp conftest.$ac_ext"
28817 case "(($ac_try" in
28818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28819 *) ac_try_echo=$ac_try;;
28821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28824 grep -v '^ *+' conftest.er1 >conftest.err
28826 cat conftest.err >&5
28827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828 (exit $ac_status); } >/dev/null; then
28829 if test -s conftest.err; then
28830 ac_cpp_err=$ac_c_preproc_warn_flag
28831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28838 if test -z "$ac_cpp_err"; then
28839 ac_header_preproc=yes
28841 echo "$as_me: failed program was:" >&5
28842 sed 's/^/| /' conftest.$ac_ext >&5
28844 ac_header_preproc=no
28847 rm -f conftest.err conftest.$ac_ext
28848 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28849 echo "${ECHO_T}$ac_header_preproc" >&6; }
28851 # So? What about this header?
28852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28858 ac_header_preproc=yes
28861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28864 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28868 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28874 ## ----------------------------------- ##
28875 ## Report this to llvmbugs@cs.uiuc.edu ##
28876 ## ----------------------------------- ##
28878 ) | sed "s/^/$as_me: WARNING: /" >&2
28881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28884 echo $ECHO_N "(cached) $ECHO_C" >&6
28886 eval "$as_ac_Header=\$ac_header_preproc"
28888 ac_res=`eval echo '${'$as_ac_Header'}'`
28889 { echo "$as_me:$LINENO: result: $ac_res" >&5
28890 echo "${ECHO_T}$ac_res" >&6; }
28893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28894 cat >>confdefs.h <<_ACEOF
28895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28908 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28912 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28915 echo $ECHO_N "(cached) $ECHO_C" >&6
28917 ac_res=`eval echo '${'$as_ac_Header'}'`
28918 { echo "$as_me:$LINENO: result: $ac_res" >&5
28919 echo "${ECHO_T}$ac_res" >&6; }
28921 # Is the header compilable?
28922 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28924 cat >conftest.$ac_ext <<_ACEOF
28927 cat confdefs.h >>conftest.$ac_ext
28928 cat >>conftest.$ac_ext <<_ACEOF
28929 /* end confdefs.h. */
28930 $ac_includes_default
28931 #include <$ac_header>
28933 rm -f conftest.$ac_objext
28934 if { (ac_try="$ac_compile"
28935 case "(($ac_try" in
28936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28937 *) ac_try_echo=$ac_try;;
28939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28940 (eval "$ac_compile") 2>conftest.er1
28942 grep -v '^ *+' conftest.er1 >conftest.err
28944 cat conftest.err >&5
28945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946 (exit $ac_status); } &&
28947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28948 { (case "(($ac_try" in
28949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28950 *) ac_try_echo=$ac_try;;
28952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28953 (eval "$ac_try") 2>&5
28955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956 (exit $ac_status); }; } &&
28957 { ac_try='test -s conftest.$ac_objext'
28958 { (case "(($ac_try" in
28959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28960 *) ac_try_echo=$ac_try;;
28962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28963 (eval "$ac_try") 2>&5
28965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966 (exit $ac_status); }; }; then
28967 ac_header_compiler=yes
28969 echo "$as_me: failed program was:" >&5
28970 sed 's/^/| /' conftest.$ac_ext >&5
28972 ac_header_compiler=no
28975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28977 echo "${ECHO_T}$ac_header_compiler" >&6; }
28979 # Is the header present?
28980 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28982 cat >conftest.$ac_ext <<_ACEOF
28985 cat confdefs.h >>conftest.$ac_ext
28986 cat >>conftest.$ac_ext <<_ACEOF
28987 /* end confdefs.h. */
28988 #include <$ac_header>
28990 if { (ac_try="$ac_cpp conftest.$ac_ext"
28991 case "(($ac_try" in
28992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28993 *) ac_try_echo=$ac_try;;
28995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28998 grep -v '^ *+' conftest.er1 >conftest.err
29000 cat conftest.err >&5
29001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002 (exit $ac_status); } >/dev/null; then
29003 if test -s conftest.err; then
29004 ac_cpp_err=$ac_c_preproc_warn_flag
29005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29012 if test -z "$ac_cpp_err"; then
29013 ac_header_preproc=yes
29015 echo "$as_me: failed program was:" >&5
29016 sed 's/^/| /' conftest.$ac_ext >&5
29018 ac_header_preproc=no
29021 rm -f conftest.err conftest.$ac_ext
29022 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29023 echo "${ECHO_T}$ac_header_preproc" >&6; }
29025 # So? What about this header?
29026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29028 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29032 ac_header_preproc=yes
29035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29038 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29039 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29041 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29042 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29045 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29048 ## ----------------------------------- ##
29049 ## Report this to llvmbugs@cs.uiuc.edu ##
29050 ## ----------------------------------- ##
29052 ) | sed "s/^/$as_me: WARNING: /" >&2
29055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29058 echo $ECHO_N "(cached) $ECHO_C" >&6
29060 eval "$as_ac_Header=\$ac_header_preproc"
29062 ac_res=`eval echo '${'$as_ac_Header'}'`
29063 { echo "$as_me:$LINENO: result: $ac_res" >&5
29064 echo "${ECHO_T}$ac_res" >&6; }
29067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29068 cat >>confdefs.h <<_ACEOF
29069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29077 for ac_header in windows.h
29079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29081 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29084 echo $ECHO_N "(cached) $ECHO_C" >&6
29086 ac_res=`eval echo '${'$as_ac_Header'}'`
29087 { echo "$as_me:$LINENO: result: $ac_res" >&5
29088 echo "${ECHO_T}$ac_res" >&6; }
29090 # Is the header compilable?
29091 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29093 cat >conftest.$ac_ext <<_ACEOF
29096 cat confdefs.h >>conftest.$ac_ext
29097 cat >>conftest.$ac_ext <<_ACEOF
29098 /* end confdefs.h. */
29099 $ac_includes_default
29100 #include <$ac_header>
29102 rm -f conftest.$ac_objext
29103 if { (ac_try="$ac_compile"
29104 case "(($ac_try" in
29105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29106 *) ac_try_echo=$ac_try;;
29108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29109 (eval "$ac_compile") 2>conftest.er1
29111 grep -v '^ *+' conftest.er1 >conftest.err
29113 cat conftest.err >&5
29114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115 (exit $ac_status); } &&
29116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29117 { (case "(($ac_try" in
29118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29119 *) ac_try_echo=$ac_try;;
29121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29122 (eval "$ac_try") 2>&5
29124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); }; } &&
29126 { ac_try='test -s conftest.$ac_objext'
29127 { (case "(($ac_try" in
29128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29129 *) ac_try_echo=$ac_try;;
29131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29132 (eval "$ac_try") 2>&5
29134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29135 (exit $ac_status); }; }; then
29136 ac_header_compiler=yes
29138 echo "$as_me: failed program was:" >&5
29139 sed 's/^/| /' conftest.$ac_ext >&5
29141 ac_header_compiler=no
29144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29145 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29146 echo "${ECHO_T}$ac_header_compiler" >&6; }
29148 # Is the header present?
29149 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29151 cat >conftest.$ac_ext <<_ACEOF
29154 cat confdefs.h >>conftest.$ac_ext
29155 cat >>conftest.$ac_ext <<_ACEOF
29156 /* end confdefs.h. */
29157 #include <$ac_header>
29159 if { (ac_try="$ac_cpp conftest.$ac_ext"
29160 case "(($ac_try" in
29161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29162 *) ac_try_echo=$ac_try;;
29164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29167 grep -v '^ *+' conftest.er1 >conftest.err
29169 cat conftest.err >&5
29170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29171 (exit $ac_status); } >/dev/null; then
29172 if test -s conftest.err; then
29173 ac_cpp_err=$ac_c_preproc_warn_flag
29174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29181 if test -z "$ac_cpp_err"; then
29182 ac_header_preproc=yes
29184 echo "$as_me: failed program was:" >&5
29185 sed 's/^/| /' conftest.$ac_ext >&5
29187 ac_header_preproc=no
29190 rm -f conftest.err conftest.$ac_ext
29191 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29192 echo "${ECHO_T}$ac_header_preproc" >&6; }
29194 # So? What about this header?
29195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29200 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29201 ac_header_preproc=yes
29204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29207 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29209 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29211 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29215 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29217 ## ----------------------------------- ##
29218 ## Report this to llvmbugs@cs.uiuc.edu ##
29219 ## ----------------------------------- ##
29221 ) | sed "s/^/$as_me: WARNING: /" >&2
29224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29227 echo $ECHO_N "(cached) $ECHO_C" >&6
29229 eval "$as_ac_Header=\$ac_header_preproc"
29231 ac_res=`eval echo '${'$as_ac_Header'}'`
29232 { echo "$as_me:$LINENO: result: $ac_res" >&5
29233 echo "${ECHO_T}$ac_res" >&6; }
29236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29237 cat >>confdefs.h <<_ACEOF
29238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29249 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29256 echo $ECHO_N "(cached) $ECHO_C" >&6
29258 ac_res=`eval echo '${'$as_ac_Header'}'`
29259 { echo "$as_me:$LINENO: result: $ac_res" >&5
29260 echo "${ECHO_T}$ac_res" >&6; }
29262 # Is the header compilable?
29263 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29265 cat >conftest.$ac_ext <<_ACEOF
29268 cat confdefs.h >>conftest.$ac_ext
29269 cat >>conftest.$ac_ext <<_ACEOF
29270 /* end confdefs.h. */
29271 $ac_includes_default
29272 #include <$ac_header>
29274 rm -f conftest.$ac_objext
29275 if { (ac_try="$ac_compile"
29276 case "(($ac_try" in
29277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29278 *) ac_try_echo=$ac_try;;
29280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29281 (eval "$ac_compile") 2>conftest.er1
29283 grep -v '^ *+' conftest.er1 >conftest.err
29285 cat conftest.err >&5
29286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287 (exit $ac_status); } &&
29288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29289 { (case "(($ac_try" in
29290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29291 *) ac_try_echo=$ac_try;;
29293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29294 (eval "$ac_try") 2>&5
29296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297 (exit $ac_status); }; } &&
29298 { ac_try='test -s conftest.$ac_objext'
29299 { (case "(($ac_try" in
29300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301 *) ac_try_echo=$ac_try;;
29303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29304 (eval "$ac_try") 2>&5
29306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29307 (exit $ac_status); }; }; then
29308 ac_header_compiler=yes
29310 echo "$as_me: failed program was:" >&5
29311 sed 's/^/| /' conftest.$ac_ext >&5
29313 ac_header_compiler=no
29316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29318 echo "${ECHO_T}$ac_header_compiler" >&6; }
29320 # Is the header present?
29321 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29323 cat >conftest.$ac_ext <<_ACEOF
29326 cat confdefs.h >>conftest.$ac_ext
29327 cat >>conftest.$ac_ext <<_ACEOF
29328 /* end confdefs.h. */
29329 #include <$ac_header>
29331 if { (ac_try="$ac_cpp conftest.$ac_ext"
29332 case "(($ac_try" in
29333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29334 *) ac_try_echo=$ac_try;;
29336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29339 grep -v '^ *+' conftest.er1 >conftest.err
29341 cat conftest.err >&5
29342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29343 (exit $ac_status); } >/dev/null; then
29344 if test -s conftest.err; then
29345 ac_cpp_err=$ac_c_preproc_warn_flag
29346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29353 if test -z "$ac_cpp_err"; then
29354 ac_header_preproc=yes
29356 echo "$as_me: failed program was:" >&5
29357 sed 's/^/| /' conftest.$ac_ext >&5
29359 ac_header_preproc=no
29362 rm -f conftest.err conftest.$ac_ext
29363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29364 echo "${ECHO_T}$ac_header_preproc" >&6; }
29366 # So? What about this header?
29367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29373 ac_header_preproc=yes
29376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29379 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29380 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29382 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29383 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29386 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29389 ## ----------------------------------- ##
29390 ## Report this to llvmbugs@cs.uiuc.edu ##
29391 ## ----------------------------------- ##
29393 ) | sed "s/^/$as_me: WARNING: /" >&2
29396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29399 echo $ECHO_N "(cached) $ECHO_C" >&6
29401 eval "$as_ac_Header=\$ac_header_preproc"
29403 ac_res=`eval echo '${'$as_ac_Header'}'`
29404 { echo "$as_me:$LINENO: result: $ac_res" >&5
29405 echo "${ECHO_T}$ac_res" >&6; }
29408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29409 cat >>confdefs.h <<_ACEOF
29410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29420 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29427 echo $ECHO_N "(cached) $ECHO_C" >&6
29429 ac_res=`eval echo '${'$as_ac_Header'}'`
29430 { echo "$as_me:$LINENO: result: $ac_res" >&5
29431 echo "${ECHO_T}$ac_res" >&6; }
29433 # Is the header compilable?
29434 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29436 cat >conftest.$ac_ext <<_ACEOF
29439 cat confdefs.h >>conftest.$ac_ext
29440 cat >>conftest.$ac_ext <<_ACEOF
29441 /* end confdefs.h. */
29442 $ac_includes_default
29443 #include <$ac_header>
29445 rm -f conftest.$ac_objext
29446 if { (ac_try="$ac_compile"
29447 case "(($ac_try" in
29448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29449 *) ac_try_echo=$ac_try;;
29451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29452 (eval "$ac_compile") 2>conftest.er1
29454 grep -v '^ *+' conftest.er1 >conftest.err
29456 cat conftest.err >&5
29457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458 (exit $ac_status); } &&
29459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29460 { (case "(($ac_try" in
29461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29462 *) ac_try_echo=$ac_try;;
29464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29465 (eval "$ac_try") 2>&5
29467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468 (exit $ac_status); }; } &&
29469 { ac_try='test -s conftest.$ac_objext'
29470 { (case "(($ac_try" in
29471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29472 *) ac_try_echo=$ac_try;;
29474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29475 (eval "$ac_try") 2>&5
29477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29478 (exit $ac_status); }; }; then
29479 ac_header_compiler=yes
29481 echo "$as_me: failed program was:" >&5
29482 sed 's/^/| /' conftest.$ac_ext >&5
29484 ac_header_compiler=no
29487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29488 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29489 echo "${ECHO_T}$ac_header_compiler" >&6; }
29491 # Is the header present?
29492 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29494 cat >conftest.$ac_ext <<_ACEOF
29497 cat confdefs.h >>conftest.$ac_ext
29498 cat >>conftest.$ac_ext <<_ACEOF
29499 /* end confdefs.h. */
29500 #include <$ac_header>
29502 if { (ac_try="$ac_cpp conftest.$ac_ext"
29503 case "(($ac_try" in
29504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29505 *) ac_try_echo=$ac_try;;
29507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29510 grep -v '^ *+' conftest.er1 >conftest.err
29512 cat conftest.err >&5
29513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29514 (exit $ac_status); } >/dev/null; then
29515 if test -s conftest.err; then
29516 ac_cpp_err=$ac_c_preproc_warn_flag
29517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29524 if test -z "$ac_cpp_err"; then
29525 ac_header_preproc=yes
29527 echo "$as_me: failed program was:" >&5
29528 sed 's/^/| /' conftest.$ac_ext >&5
29530 ac_header_preproc=no
29533 rm -f conftest.err conftest.$ac_ext
29534 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29535 echo "${ECHO_T}$ac_header_preproc" >&6; }
29537 # So? What about this header?
29538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29543 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29544 ac_header_preproc=yes
29547 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29549 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29550 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29551 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29552 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29553 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29554 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29557 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29558 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29560 ## ----------------------------------- ##
29561 ## Report this to llvmbugs@cs.uiuc.edu ##
29562 ## ----------------------------------- ##
29564 ) | sed "s/^/$as_me: WARNING: /" >&2
29567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29570 echo $ECHO_N "(cached) $ECHO_C" >&6
29572 eval "$as_ac_Header=\$ac_header_preproc"
29574 ac_res=`eval echo '${'$as_ac_Header'}'`
29575 { echo "$as_me:$LINENO: result: $ac_res" >&5
29576 echo "${ECHO_T}$ac_res" >&6; }
29579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29580 cat >>confdefs.h <<_ACEOF
29581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29588 if test "$ENABLE_THREADS" -eq 1 ; then
29590 for ac_header in pthread.h
29592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29597 echo $ECHO_N "(cached) $ECHO_C" >&6
29599 ac_res=`eval echo '${'$as_ac_Header'}'`
29600 { echo "$as_me:$LINENO: result: $ac_res" >&5
29601 echo "${ECHO_T}$ac_res" >&6; }
29603 # Is the header compilable?
29604 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29606 cat >conftest.$ac_ext <<_ACEOF
29609 cat confdefs.h >>conftest.$ac_ext
29610 cat >>conftest.$ac_ext <<_ACEOF
29611 /* end confdefs.h. */
29612 $ac_includes_default
29613 #include <$ac_header>
29615 rm -f conftest.$ac_objext
29616 if { (ac_try="$ac_compile"
29617 case "(($ac_try" in
29618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29619 *) ac_try_echo=$ac_try;;
29621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29622 (eval "$ac_compile") 2>conftest.er1
29624 grep -v '^ *+' conftest.er1 >conftest.err
29626 cat conftest.err >&5
29627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29628 (exit $ac_status); } &&
29629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29630 { (case "(($ac_try" in
29631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29632 *) ac_try_echo=$ac_try;;
29634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29635 (eval "$ac_try") 2>&5
29637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29638 (exit $ac_status); }; } &&
29639 { ac_try='test -s conftest.$ac_objext'
29640 { (case "(($ac_try" in
29641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29642 *) ac_try_echo=$ac_try;;
29644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29645 (eval "$ac_try") 2>&5
29647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29648 (exit $ac_status); }; }; then
29649 ac_header_compiler=yes
29651 echo "$as_me: failed program was:" >&5
29652 sed 's/^/| /' conftest.$ac_ext >&5
29654 ac_header_compiler=no
29657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29658 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29659 echo "${ECHO_T}$ac_header_compiler" >&6; }
29661 # Is the header present?
29662 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29664 cat >conftest.$ac_ext <<_ACEOF
29667 cat confdefs.h >>conftest.$ac_ext
29668 cat >>conftest.$ac_ext <<_ACEOF
29669 /* end confdefs.h. */
29670 #include <$ac_header>
29672 if { (ac_try="$ac_cpp conftest.$ac_ext"
29673 case "(($ac_try" in
29674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29675 *) ac_try_echo=$ac_try;;
29677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29680 grep -v '^ *+' conftest.er1 >conftest.err
29682 cat conftest.err >&5
29683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29684 (exit $ac_status); } >/dev/null; then
29685 if test -s conftest.err; then
29686 ac_cpp_err=$ac_c_preproc_warn_flag
29687 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29694 if test -z "$ac_cpp_err"; then
29695 ac_header_preproc=yes
29697 echo "$as_me: failed program was:" >&5
29698 sed 's/^/| /' conftest.$ac_ext >&5
29700 ac_header_preproc=no
29703 rm -f conftest.err conftest.$ac_ext
29704 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29705 echo "${ECHO_T}$ac_header_preproc" >&6; }
29707 # So? What about this header?
29708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29714 ac_header_preproc=yes
29717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29721 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29723 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29724 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29727 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29730 ## ----------------------------------- ##
29731 ## Report this to llvmbugs@cs.uiuc.edu ##
29732 ## ----------------------------------- ##
29734 ) | sed "s/^/$as_me: WARNING: /" >&2
29737 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29740 echo $ECHO_N "(cached) $ECHO_C" >&6
29742 eval "$as_ac_Header=\$ac_header_preproc"
29744 ac_res=`eval echo '${'$as_ac_Header'}'`
29745 { echo "$as_me:$LINENO: result: $ac_res" >&5
29746 echo "${ECHO_T}$ac_res" >&6; }
29749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29750 cat >>confdefs.h <<_ACEOF
29751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29769 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29770 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29771 if test "${ac_cv_huge_val_sanity+set}" = set; then
29772 echo $ECHO_N "(cached) $ECHO_C" >&6
29776 ac_cpp='$CXXCPP $CPPFLAGS'
29777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29782 if test "$cross_compiling" = yes; then
29783 ac_cv_huge_val_sanity=yes
29785 cat >conftest.$ac_ext <<_ACEOF
29788 cat confdefs.h >>conftest.$ac_ext
29789 cat >>conftest.$ac_ext <<_ACEOF
29790 /* end confdefs.h. */
29795 double x = HUGE_VAL; return x != x;
29800 rm -f conftest$ac_exeext
29801 if { (ac_try="$ac_link"
29802 case "(($ac_try" in
29803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29804 *) ac_try_echo=$ac_try;;
29806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29807 (eval "$ac_link") 2>&5
29809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29811 { (case "(($ac_try" in
29812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29813 *) ac_try_echo=$ac_try;;
29815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29816 (eval "$ac_try") 2>&5
29818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819 (exit $ac_status); }; }; then
29820 ac_cv_huge_val_sanity=yes
29822 echo "$as_me: program exited with status $ac_status" >&5
29823 echo "$as_me: failed program was:" >&5
29824 sed 's/^/| /' conftest.$ac_ext >&5
29826 ( exit $ac_status )
29827 ac_cv_huge_val_sanity=no
29829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29834 ac_cpp='$CPP $CPPFLAGS'
29835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29841 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29842 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29843 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29846 { echo "$as_me:$LINENO: checking for pid_t" >&5
29847 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29848 if test "${ac_cv_type_pid_t+set}" = set; then
29849 echo $ECHO_N "(cached) $ECHO_C" >&6
29851 cat >conftest.$ac_ext <<_ACEOF
29854 cat confdefs.h >>conftest.$ac_ext
29855 cat >>conftest.$ac_ext <<_ACEOF
29856 /* end confdefs.h. */
29857 $ac_includes_default
29858 typedef pid_t ac__type_new_;
29862 if ((ac__type_new_ *) 0)
29864 if (sizeof (ac__type_new_))
29870 rm -f conftest.$ac_objext
29871 if { (ac_try="$ac_compile"
29872 case "(($ac_try" in
29873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29874 *) ac_try_echo=$ac_try;;
29876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29877 (eval "$ac_compile") 2>conftest.er1
29879 grep -v '^ *+' conftest.er1 >conftest.err
29881 cat conftest.err >&5
29882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883 (exit $ac_status); } &&
29884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29885 { (case "(($ac_try" in
29886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29887 *) ac_try_echo=$ac_try;;
29889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29890 (eval "$ac_try") 2>&5
29892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893 (exit $ac_status); }; } &&
29894 { ac_try='test -s conftest.$ac_objext'
29895 { (case "(($ac_try" in
29896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29897 *) ac_try_echo=$ac_try;;
29899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29900 (eval "$ac_try") 2>&5
29902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903 (exit $ac_status); }; }; then
29904 ac_cv_type_pid_t=yes
29906 echo "$as_me: failed program was:" >&5
29907 sed 's/^/| /' conftest.$ac_ext >&5
29909 ac_cv_type_pid_t=no
29912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29914 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29915 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29916 if test $ac_cv_type_pid_t = yes; then
29920 cat >>confdefs.h <<_ACEOF
29926 { echo "$as_me:$LINENO: checking for size_t" >&5
29927 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29928 if test "${ac_cv_type_size_t+set}" = set; then
29929 echo $ECHO_N "(cached) $ECHO_C" >&6
29931 cat >conftest.$ac_ext <<_ACEOF
29934 cat confdefs.h >>conftest.$ac_ext
29935 cat >>conftest.$ac_ext <<_ACEOF
29936 /* end confdefs.h. */
29937 $ac_includes_default
29938 typedef size_t ac__type_new_;
29942 if ((ac__type_new_ *) 0)
29944 if (sizeof (ac__type_new_))
29950 rm -f conftest.$ac_objext
29951 if { (ac_try="$ac_compile"
29952 case "(($ac_try" in
29953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29954 *) ac_try_echo=$ac_try;;
29956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29957 (eval "$ac_compile") 2>conftest.er1
29959 grep -v '^ *+' conftest.er1 >conftest.err
29961 cat conftest.err >&5
29962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29963 (exit $ac_status); } &&
29964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29965 { (case "(($ac_try" in
29966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29967 *) ac_try_echo=$ac_try;;
29969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29970 (eval "$ac_try") 2>&5
29972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29973 (exit $ac_status); }; } &&
29974 { ac_try='test -s conftest.$ac_objext'
29975 { (case "(($ac_try" in
29976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29977 *) ac_try_echo=$ac_try;;
29979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29980 (eval "$ac_try") 2>&5
29982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983 (exit $ac_status); }; }; then
29984 ac_cv_type_size_t=yes
29986 echo "$as_me: failed program was:" >&5
29987 sed 's/^/| /' conftest.$ac_ext >&5
29989 ac_cv_type_size_t=no
29992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29994 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29995 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29996 if test $ac_cv_type_size_t = yes; then
30000 cat >>confdefs.h <<_ACEOF
30001 #define size_t unsigned int
30006 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30007 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30008 if test "${ac_cv_type_signal+set}" = set; then
30009 echo $ECHO_N "(cached) $ECHO_C" >&6
30011 cat >conftest.$ac_ext <<_ACEOF
30014 cat confdefs.h >>conftest.$ac_ext
30015 cat >>conftest.$ac_ext <<_ACEOF
30016 /* end confdefs.h. */
30017 #include <sys/types.h>
30018 #include <signal.h>
30023 return *(signal (0, 0)) (0) == 1;
30028 rm -f conftest.$ac_objext
30029 if { (ac_try="$ac_compile"
30030 case "(($ac_try" in
30031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30032 *) ac_try_echo=$ac_try;;
30034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30035 (eval "$ac_compile") 2>conftest.er1
30037 grep -v '^ *+' conftest.er1 >conftest.err
30039 cat conftest.err >&5
30040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041 (exit $ac_status); } &&
30042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30043 { (case "(($ac_try" in
30044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30045 *) ac_try_echo=$ac_try;;
30047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30048 (eval "$ac_try") 2>&5
30050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30051 (exit $ac_status); }; } &&
30052 { ac_try='test -s conftest.$ac_objext'
30053 { (case "(($ac_try" in
30054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30055 *) ac_try_echo=$ac_try;;
30057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30058 (eval "$ac_try") 2>&5
30060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30061 (exit $ac_status); }; }; then
30062 ac_cv_type_signal=int
30064 echo "$as_me: failed program was:" >&5
30065 sed 's/^/| /' conftest.$ac_ext >&5
30067 ac_cv_type_signal=void
30070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30072 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30073 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30075 cat >>confdefs.h <<_ACEOF
30076 #define RETSIGTYPE $ac_cv_type_signal
30080 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30081 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30082 if test "${ac_cv_struct_tm+set}" = set; then
30083 echo $ECHO_N "(cached) $ECHO_C" >&6
30085 cat >conftest.$ac_ext <<_ACEOF
30088 cat confdefs.h >>conftest.$ac_ext
30089 cat >>conftest.$ac_ext <<_ACEOF
30090 /* end confdefs.h. */
30091 #include <sys/types.h>
30097 struct tm *tp; tp->tm_sec;
30102 rm -f conftest.$ac_objext
30103 if { (ac_try="$ac_compile"
30104 case "(($ac_try" in
30105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30106 *) ac_try_echo=$ac_try;;
30108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30109 (eval "$ac_compile") 2>conftest.er1
30111 grep -v '^ *+' conftest.er1 >conftest.err
30113 cat conftest.err >&5
30114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115 (exit $ac_status); } &&
30116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30117 { (case "(($ac_try" in
30118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30119 *) ac_try_echo=$ac_try;;
30121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30122 (eval "$ac_try") 2>&5
30124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125 (exit $ac_status); }; } &&
30126 { ac_try='test -s conftest.$ac_objext'
30127 { (case "(($ac_try" in
30128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30129 *) ac_try_echo=$ac_try;;
30131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30132 (eval "$ac_try") 2>&5
30134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135 (exit $ac_status); }; }; then
30136 ac_cv_struct_tm=time.h
30138 echo "$as_me: failed program was:" >&5
30139 sed 's/^/| /' conftest.$ac_ext >&5
30141 ac_cv_struct_tm=sys/time.h
30144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30146 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30147 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30148 if test $ac_cv_struct_tm = sys/time.h; then
30150 cat >>confdefs.h <<\_ACEOF
30151 #define TM_IN_SYS_TIME 1
30156 { echo "$as_me:$LINENO: checking for int64_t" >&5
30157 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30158 if test "${ac_cv_type_int64_t+set}" = set; then
30159 echo $ECHO_N "(cached) $ECHO_C" >&6
30161 cat >conftest.$ac_ext <<_ACEOF
30164 cat confdefs.h >>conftest.$ac_ext
30165 cat >>conftest.$ac_ext <<_ACEOF
30166 /* end confdefs.h. */
30167 $ac_includes_default
30168 typedef int64_t ac__type_new_;
30172 if ((ac__type_new_ *) 0)
30174 if (sizeof (ac__type_new_))
30180 rm -f conftest.$ac_objext
30181 if { (ac_try="$ac_compile"
30182 case "(($ac_try" in
30183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30184 *) ac_try_echo=$ac_try;;
30186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30187 (eval "$ac_compile") 2>conftest.er1
30189 grep -v '^ *+' conftest.er1 >conftest.err
30191 cat conftest.err >&5
30192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193 (exit $ac_status); } &&
30194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30195 { (case "(($ac_try" in
30196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30197 *) ac_try_echo=$ac_try;;
30199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30200 (eval "$ac_try") 2>&5
30202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30203 (exit $ac_status); }; } &&
30204 { ac_try='test -s conftest.$ac_objext'
30205 { (case "(($ac_try" in
30206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30207 *) ac_try_echo=$ac_try;;
30209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30210 (eval "$ac_try") 2>&5
30212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30213 (exit $ac_status); }; }; then
30214 ac_cv_type_int64_t=yes
30216 echo "$as_me: failed program was:" >&5
30217 sed 's/^/| /' conftest.$ac_ext >&5
30219 ac_cv_type_int64_t=no
30222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30224 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30225 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30226 if test $ac_cv_type_int64_t = yes; then
30228 cat >>confdefs.h <<_ACEOF
30229 #define HAVE_INT64_T 1
30234 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30235 echo "$as_me: error: Type int64_t required but not found" >&2;}
30236 { (exit 1); exit 1; }; }
30239 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30240 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30241 if test "${ac_cv_type_uint64_t+set}" = set; then
30242 echo $ECHO_N "(cached) $ECHO_C" >&6
30244 cat >conftest.$ac_ext <<_ACEOF
30247 cat confdefs.h >>conftest.$ac_ext
30248 cat >>conftest.$ac_ext <<_ACEOF
30249 /* end confdefs.h. */
30250 $ac_includes_default
30251 typedef uint64_t ac__type_new_;
30255 if ((ac__type_new_ *) 0)
30257 if (sizeof (ac__type_new_))
30263 rm -f conftest.$ac_objext
30264 if { (ac_try="$ac_compile"
30265 case "(($ac_try" in
30266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30267 *) ac_try_echo=$ac_try;;
30269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30270 (eval "$ac_compile") 2>conftest.er1
30272 grep -v '^ *+' conftest.er1 >conftest.err
30274 cat conftest.err >&5
30275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30276 (exit $ac_status); } &&
30277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30278 { (case "(($ac_try" in
30279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30280 *) ac_try_echo=$ac_try;;
30282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30283 (eval "$ac_try") 2>&5
30285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30286 (exit $ac_status); }; } &&
30287 { ac_try='test -s conftest.$ac_objext'
30288 { (case "(($ac_try" in
30289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30290 *) ac_try_echo=$ac_try;;
30292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30293 (eval "$ac_try") 2>&5
30295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30296 (exit $ac_status); }; }; then
30297 ac_cv_type_uint64_t=yes
30299 echo "$as_me: failed program was:" >&5
30300 sed 's/^/| /' conftest.$ac_ext >&5
30302 ac_cv_type_uint64_t=no
30305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30307 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30308 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30309 if test $ac_cv_type_uint64_t = yes; then
30311 cat >>confdefs.h <<_ACEOF
30312 #define HAVE_UINT64_T 1
30317 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30318 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30319 if test "${ac_cv_type_u_int64_t+set}" = set; then
30320 echo $ECHO_N "(cached) $ECHO_C" >&6
30322 cat >conftest.$ac_ext <<_ACEOF
30325 cat confdefs.h >>conftest.$ac_ext
30326 cat >>conftest.$ac_ext <<_ACEOF
30327 /* end confdefs.h. */
30328 $ac_includes_default
30329 typedef u_int64_t ac__type_new_;
30333 if ((ac__type_new_ *) 0)
30335 if (sizeof (ac__type_new_))
30341 rm -f conftest.$ac_objext
30342 if { (ac_try="$ac_compile"
30343 case "(($ac_try" in
30344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30345 *) ac_try_echo=$ac_try;;
30347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30348 (eval "$ac_compile") 2>conftest.er1
30350 grep -v '^ *+' conftest.er1 >conftest.err
30352 cat conftest.err >&5
30353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30354 (exit $ac_status); } &&
30355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30356 { (case "(($ac_try" in
30357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30358 *) ac_try_echo=$ac_try;;
30360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30361 (eval "$ac_try") 2>&5
30363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364 (exit $ac_status); }; } &&
30365 { ac_try='test -s conftest.$ac_objext'
30366 { (case "(($ac_try" in
30367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30368 *) ac_try_echo=$ac_try;;
30370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30371 (eval "$ac_try") 2>&5
30373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374 (exit $ac_status); }; }; then
30375 ac_cv_type_u_int64_t=yes
30377 echo "$as_me: failed program was:" >&5
30378 sed 's/^/| /' conftest.$ac_ext >&5
30380 ac_cv_type_u_int64_t=no
30383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30385 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30386 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30387 if test $ac_cv_type_u_int64_t = yes; then
30389 cat >>confdefs.h <<_ACEOF
30390 #define HAVE_U_INT64_T 1
30395 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30396 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30397 { (exit 1); exit 1; }; }
30411 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30414 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30417 echo $ECHO_N "(cached) $ECHO_C" >&6
30419 cat >conftest.$ac_ext <<_ACEOF
30422 cat confdefs.h >>conftest.$ac_ext
30423 cat >>conftest.$ac_ext <<_ACEOF
30424 /* end confdefs.h. */
30425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30427 #define $ac_func innocuous_$ac_func
30429 /* System header to define __stub macros and hopefully few prototypes,
30430 which can conflict with char $ac_func (); below.
30431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30432 <limits.h> exists even on freestanding compilers. */
30435 # include <limits.h>
30437 # include <assert.h>
30442 /* Override any GCC internal prototype to avoid an error.
30443 Use char because int might match the return type of a GCC
30444 builtin and then its argument prototype would still apply. */
30449 /* The GNU C library defines this for functions which it implements
30450 to always fail with ENOSYS. Some functions are actually named
30451 something starting with __ and the normal name is an alias. */
30452 #if defined __stub_$ac_func || defined __stub___$ac_func
30459 return $ac_func ();
30464 rm -f conftest.$ac_objext conftest$ac_exeext
30465 if { (ac_try="$ac_link"
30466 case "(($ac_try" in
30467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30468 *) ac_try_echo=$ac_try;;
30470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30471 (eval "$ac_link") 2>conftest.er1
30473 grep -v '^ *+' conftest.er1 >conftest.err
30475 cat conftest.err >&5
30476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30477 (exit $ac_status); } &&
30478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30479 { (case "(($ac_try" in
30480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30481 *) ac_try_echo=$ac_try;;
30483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30484 (eval "$ac_try") 2>&5
30486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30487 (exit $ac_status); }; } &&
30488 { ac_try='test -s conftest$ac_exeext'
30489 { (case "(($ac_try" in
30490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491 *) ac_try_echo=$ac_try;;
30493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30494 (eval "$ac_try") 2>&5
30496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497 (exit $ac_status); }; }; then
30498 eval "$as_ac_var=yes"
30500 echo "$as_me: failed program was:" >&5
30501 sed 's/^/| /' conftest.$ac_ext >&5
30503 eval "$as_ac_var=no"
30506 rm -f core conftest.err conftest.$ac_objext \
30507 conftest$ac_exeext conftest.$ac_ext
30509 ac_res=`eval echo '${'$as_ac_var'}'`
30510 { echo "$as_me:$LINENO: result: $ac_res" >&5
30511 echo "${ECHO_T}$ac_res" >&6; }
30512 if test `eval echo '${'$as_ac_var'}'` = yes; then
30513 cat >>confdefs.h <<_ACEOF
30514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30524 for ac_func in powf fmodf strtof round
30526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30527 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30530 echo $ECHO_N "(cached) $ECHO_C" >&6
30532 cat >conftest.$ac_ext <<_ACEOF
30535 cat confdefs.h >>conftest.$ac_ext
30536 cat >>conftest.$ac_ext <<_ACEOF
30537 /* end confdefs.h. */
30538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30540 #define $ac_func innocuous_$ac_func
30542 /* System header to define __stub macros and hopefully few prototypes,
30543 which can conflict with char $ac_func (); below.
30544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30545 <limits.h> exists even on freestanding compilers. */
30548 # include <limits.h>
30550 # include <assert.h>
30555 /* Override any GCC internal prototype to avoid an error.
30556 Use char because int might match the return type of a GCC
30557 builtin and then its argument prototype would still apply. */
30562 /* The GNU C library defines this for functions which it implements
30563 to always fail with ENOSYS. Some functions are actually named
30564 something starting with __ and the normal name is an alias. */
30565 #if defined __stub_$ac_func || defined __stub___$ac_func
30572 return $ac_func ();
30577 rm -f conftest.$ac_objext conftest$ac_exeext
30578 if { (ac_try="$ac_link"
30579 case "(($ac_try" in
30580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30581 *) ac_try_echo=$ac_try;;
30583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30584 (eval "$ac_link") 2>conftest.er1
30586 grep -v '^ *+' conftest.er1 >conftest.err
30588 cat conftest.err >&5
30589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30590 (exit $ac_status); } &&
30591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30592 { (case "(($ac_try" in
30593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30594 *) ac_try_echo=$ac_try;;
30596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30597 (eval "$ac_try") 2>&5
30599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30600 (exit $ac_status); }; } &&
30601 { ac_try='test -s conftest$ac_exeext'
30602 { (case "(($ac_try" in
30603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30604 *) ac_try_echo=$ac_try;;
30606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30607 (eval "$ac_try") 2>&5
30609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30610 (exit $ac_status); }; }; then
30611 eval "$as_ac_var=yes"
30613 echo "$as_me: failed program was:" >&5
30614 sed 's/^/| /' conftest.$ac_ext >&5
30616 eval "$as_ac_var=no"
30619 rm -f core conftest.err conftest.$ac_objext \
30620 conftest$ac_exeext conftest.$ac_ext
30622 ac_res=`eval echo '${'$as_ac_var'}'`
30623 { echo "$as_me:$LINENO: result: $ac_res" >&5
30624 echo "${ECHO_T}$ac_res" >&6; }
30625 if test `eval echo '${'$as_ac_var'}'` = yes; then
30626 cat >>confdefs.h <<_ACEOF
30627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30638 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30641 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30644 echo $ECHO_N "(cached) $ECHO_C" >&6
30646 cat >conftest.$ac_ext <<_ACEOF
30649 cat confdefs.h >>conftest.$ac_ext
30650 cat >>conftest.$ac_ext <<_ACEOF
30651 /* end confdefs.h. */
30652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30654 #define $ac_func innocuous_$ac_func
30656 /* System header to define __stub macros and hopefully few prototypes,
30657 which can conflict with char $ac_func (); below.
30658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30659 <limits.h> exists even on freestanding compilers. */
30662 # include <limits.h>
30664 # include <assert.h>
30669 /* Override any GCC internal prototype to avoid an error.
30670 Use char because int might match the return type of a GCC
30671 builtin and then its argument prototype would still apply. */
30676 /* The GNU C library defines this for functions which it implements
30677 to always fail with ENOSYS. Some functions are actually named
30678 something starting with __ and the normal name is an alias. */
30679 #if defined __stub_$ac_func || defined __stub___$ac_func
30686 return $ac_func ();
30691 rm -f conftest.$ac_objext conftest$ac_exeext
30692 if { (ac_try="$ac_link"
30693 case "(($ac_try" in
30694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30695 *) ac_try_echo=$ac_try;;
30697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30698 (eval "$ac_link") 2>conftest.er1
30700 grep -v '^ *+' conftest.er1 >conftest.err
30702 cat conftest.err >&5
30703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30704 (exit $ac_status); } &&
30705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30706 { (case "(($ac_try" in
30707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30708 *) ac_try_echo=$ac_try;;
30710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30711 (eval "$ac_try") 2>&5
30713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30714 (exit $ac_status); }; } &&
30715 { ac_try='test -s conftest$ac_exeext'
30716 { (case "(($ac_try" in
30717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30718 *) ac_try_echo=$ac_try;;
30720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30721 (eval "$ac_try") 2>&5
30723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30724 (exit $ac_status); }; }; then
30725 eval "$as_ac_var=yes"
30727 echo "$as_me: failed program was:" >&5
30728 sed 's/^/| /' conftest.$ac_ext >&5
30730 eval "$as_ac_var=no"
30733 rm -f core conftest.err conftest.$ac_objext \
30734 conftest$ac_exeext conftest.$ac_ext
30736 ac_res=`eval echo '${'$as_ac_var'}'`
30737 { echo "$as_me:$LINENO: result: $ac_res" >&5
30738 echo "${ECHO_T}$ac_res" >&6; }
30739 if test `eval echo '${'$as_ac_var'}'` = yes; then
30740 cat >>confdefs.h <<_ACEOF
30741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30750 for ac_func in isatty mkdtemp mkstemp
30752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30753 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30756 echo $ECHO_N "(cached) $ECHO_C" >&6
30758 cat >conftest.$ac_ext <<_ACEOF
30761 cat confdefs.h >>conftest.$ac_ext
30762 cat >>conftest.$ac_ext <<_ACEOF
30763 /* end confdefs.h. */
30764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30766 #define $ac_func innocuous_$ac_func
30768 /* System header to define __stub macros and hopefully few prototypes,
30769 which can conflict with char $ac_func (); below.
30770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30771 <limits.h> exists even on freestanding compilers. */
30774 # include <limits.h>
30776 # include <assert.h>
30781 /* Override any GCC internal prototype to avoid an error.
30782 Use char because int might match the return type of a GCC
30783 builtin and then its argument prototype would still apply. */
30788 /* The GNU C library defines this for functions which it implements
30789 to always fail with ENOSYS. Some functions are actually named
30790 something starting with __ and the normal name is an alias. */
30791 #if defined __stub_$ac_func || defined __stub___$ac_func
30798 return $ac_func ();
30803 rm -f conftest.$ac_objext conftest$ac_exeext
30804 if { (ac_try="$ac_link"
30805 case "(($ac_try" in
30806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30807 *) ac_try_echo=$ac_try;;
30809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30810 (eval "$ac_link") 2>conftest.er1
30812 grep -v '^ *+' conftest.er1 >conftest.err
30814 cat conftest.err >&5
30815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30816 (exit $ac_status); } &&
30817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30818 { (case "(($ac_try" in
30819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820 *) ac_try_echo=$ac_try;;
30822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30823 (eval "$ac_try") 2>&5
30825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826 (exit $ac_status); }; } &&
30827 { ac_try='test -s conftest$ac_exeext'
30828 { (case "(($ac_try" in
30829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30830 *) ac_try_echo=$ac_try;;
30832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30833 (eval "$ac_try") 2>&5
30835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30836 (exit $ac_status); }; }; then
30837 eval "$as_ac_var=yes"
30839 echo "$as_me: failed program was:" >&5
30840 sed 's/^/| /' conftest.$ac_ext >&5
30842 eval "$as_ac_var=no"
30845 rm -f core conftest.err conftest.$ac_objext \
30846 conftest$ac_exeext conftest.$ac_ext
30848 ac_res=`eval echo '${'$as_ac_var'}'`
30849 { echo "$as_me:$LINENO: result: $ac_res" >&5
30850 echo "${ECHO_T}$ac_res" >&6; }
30851 if test `eval echo '${'$as_ac_var'}'` = yes; then
30852 cat >>confdefs.h <<_ACEOF
30853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30866 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30869 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30871 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30872 echo $ECHO_N "(cached) $ECHO_C" >&6
30874 cat >conftest.$ac_ext <<_ACEOF
30877 cat confdefs.h >>conftest.$ac_ext
30878 cat >>conftest.$ac_ext <<_ACEOF
30879 /* end confdefs.h. */
30880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30882 #define $ac_func innocuous_$ac_func
30884 /* System header to define __stub macros and hopefully few prototypes,
30885 which can conflict with char $ac_func (); below.
30886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30887 <limits.h> exists even on freestanding compilers. */
30890 # include <limits.h>
30892 # include <assert.h>
30897 /* Override any GCC internal prototype to avoid an error.
30898 Use char because int might match the return type of a GCC
30899 builtin and then its argument prototype would still apply. */
30904 /* The GNU C library defines this for functions which it implements
30905 to always fail with ENOSYS. Some functions are actually named
30906 something starting with __ and the normal name is an alias. */
30907 #if defined __stub_$ac_func || defined __stub___$ac_func
30914 return $ac_func ();
30919 rm -f conftest.$ac_objext conftest$ac_exeext
30920 if { (ac_try="$ac_link"
30921 case "(($ac_try" in
30922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30923 *) ac_try_echo=$ac_try;;
30925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30926 (eval "$ac_link") 2>conftest.er1
30928 grep -v '^ *+' conftest.er1 >conftest.err
30930 cat conftest.err >&5
30931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30932 (exit $ac_status); } &&
30933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30934 { (case "(($ac_try" in
30935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30936 *) ac_try_echo=$ac_try;;
30938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30939 (eval "$ac_try") 2>&5
30941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30942 (exit $ac_status); }; } &&
30943 { ac_try='test -s conftest$ac_exeext'
30944 { (case "(($ac_try" in
30945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30946 *) ac_try_echo=$ac_try;;
30948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30949 (eval "$ac_try") 2>&5
30951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30952 (exit $ac_status); }; }; then
30953 eval "$as_ac_var=yes"
30955 echo "$as_me: failed program was:" >&5
30956 sed 's/^/| /' conftest.$ac_ext >&5
30958 eval "$as_ac_var=no"
30961 rm -f core conftest.err conftest.$ac_objext \
30962 conftest$ac_exeext conftest.$ac_ext
30964 ac_res=`eval echo '${'$as_ac_var'}'`
30965 { echo "$as_me:$LINENO: result: $ac_res" >&5
30966 echo "${ECHO_T}$ac_res" >&6; }
30967 if test `eval echo '${'$as_ac_var'}'` = yes; then
30968 cat >>confdefs.h <<_ACEOF
30969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30979 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30982 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30984 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30985 echo $ECHO_N "(cached) $ECHO_C" >&6
30987 cat >conftest.$ac_ext <<_ACEOF
30990 cat confdefs.h >>conftest.$ac_ext
30991 cat >>conftest.$ac_ext <<_ACEOF
30992 /* end confdefs.h. */
30993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30995 #define $ac_func innocuous_$ac_func
30997 /* System header to define __stub macros and hopefully few prototypes,
30998 which can conflict with char $ac_func (); below.
30999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31000 <limits.h> exists even on freestanding compilers. */
31003 # include <limits.h>
31005 # include <assert.h>
31010 /* Override any GCC internal prototype to avoid an error.
31011 Use char because int might match the return type of a GCC
31012 builtin and then its argument prototype would still apply. */
31017 /* The GNU C library defines this for functions which it implements
31018 to always fail with ENOSYS. Some functions are actually named
31019 something starting with __ and the normal name is an alias. */
31020 #if defined __stub_$ac_func || defined __stub___$ac_func
31027 return $ac_func ();
31032 rm -f conftest.$ac_objext conftest$ac_exeext
31033 if { (ac_try="$ac_link"
31034 case "(($ac_try" in
31035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31036 *) ac_try_echo=$ac_try;;
31038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31039 (eval "$ac_link") 2>conftest.er1
31041 grep -v '^ *+' conftest.er1 >conftest.err
31043 cat conftest.err >&5
31044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31045 (exit $ac_status); } &&
31046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31047 { (case "(($ac_try" in
31048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31049 *) ac_try_echo=$ac_try;;
31051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31052 (eval "$ac_try") 2>&5
31054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31055 (exit $ac_status); }; } &&
31056 { ac_try='test -s conftest$ac_exeext'
31057 { (case "(($ac_try" in
31058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31059 *) ac_try_echo=$ac_try;;
31061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31062 (eval "$ac_try") 2>&5
31064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065 (exit $ac_status); }; }; then
31066 eval "$as_ac_var=yes"
31068 echo "$as_me: failed program was:" >&5
31069 sed 's/^/| /' conftest.$ac_ext >&5
31071 eval "$as_ac_var=no"
31074 rm -f core conftest.err conftest.$ac_objext \
31075 conftest$ac_exeext conftest.$ac_ext
31077 ac_res=`eval echo '${'$as_ac_var'}'`
31078 { echo "$as_me:$LINENO: result: $ac_res" >&5
31079 echo "${ECHO_T}$ac_res" >&6; }
31080 if test `eval echo '${'$as_ac_var'}'` = yes; then
31081 cat >>confdefs.h <<_ACEOF
31082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31092 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31095 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31097 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31098 echo $ECHO_N "(cached) $ECHO_C" >&6
31100 cat >conftest.$ac_ext <<_ACEOF
31103 cat confdefs.h >>conftest.$ac_ext
31104 cat >>conftest.$ac_ext <<_ACEOF
31105 /* end confdefs.h. */
31106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31108 #define $ac_func innocuous_$ac_func
31110 /* System header to define __stub macros and hopefully few prototypes,
31111 which can conflict with char $ac_func (); below.
31112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31113 <limits.h> exists even on freestanding compilers. */
31116 # include <limits.h>
31118 # include <assert.h>
31123 /* Override any GCC internal prototype to avoid an error.
31124 Use char because int might match the return type of a GCC
31125 builtin and then its argument prototype would still apply. */
31130 /* The GNU C library defines this for functions which it implements
31131 to always fail with ENOSYS. Some functions are actually named
31132 something starting with __ and the normal name is an alias. */
31133 #if defined __stub_$ac_func || defined __stub___$ac_func
31140 return $ac_func ();
31145 rm -f conftest.$ac_objext conftest$ac_exeext
31146 if { (ac_try="$ac_link"
31147 case "(($ac_try" in
31148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31149 *) ac_try_echo=$ac_try;;
31151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31152 (eval "$ac_link") 2>conftest.er1
31154 grep -v '^ *+' conftest.er1 >conftest.err
31156 cat conftest.err >&5
31157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31158 (exit $ac_status); } &&
31159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31160 { (case "(($ac_try" in
31161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31162 *) ac_try_echo=$ac_try;;
31164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31165 (eval "$ac_try") 2>&5
31167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31168 (exit $ac_status); }; } &&
31169 { ac_try='test -s conftest$ac_exeext'
31170 { (case "(($ac_try" in
31171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31172 *) ac_try_echo=$ac_try;;
31174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31175 (eval "$ac_try") 2>&5
31177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31178 (exit $ac_status); }; }; then
31179 eval "$as_ac_var=yes"
31181 echo "$as_me: failed program was:" >&5
31182 sed 's/^/| /' conftest.$ac_ext >&5
31184 eval "$as_ac_var=no"
31187 rm -f core conftest.err conftest.$ac_objext \
31188 conftest$ac_exeext conftest.$ac_ext
31190 ac_res=`eval echo '${'$as_ac_var'}'`
31191 { echo "$as_me:$LINENO: result: $ac_res" >&5
31192 echo "${ECHO_T}$ac_res" >&6; }
31193 if test `eval echo '${'$as_ac_var'}'` = yes; then
31194 cat >>confdefs.h <<_ACEOF
31195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31201 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31202 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31203 if test "${llvm_cv_c_printf_a+set}" = set; then
31204 echo $ECHO_N "(cached) $ECHO_C" >&6
31207 ac_cpp='$CPP $CPPFLAGS'
31208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31212 if test "$cross_compiling" = yes; then
31213 llvmac_cv_c_printf_a=no
31215 cat >conftest.$ac_ext <<_ACEOF
31219 cat confdefs.h >>conftest.$ac_ext
31220 cat >>conftest.$ac_ext <<_ACEOF
31221 /* end confdefs.h. */
31224 #include <stdlib.h>
31230 volatile double A, B;
31234 sprintf(Buffer, "%a", A);
31238 if (A != 0x1.999999999999ap-4)
31245 rm -f conftest$ac_exeext
31246 if { (ac_try="$ac_link"
31247 case "(($ac_try" in
31248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31249 *) ac_try_echo=$ac_try;;
31251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31252 (eval "$ac_link") 2>&5
31254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31256 { (case "(($ac_try" in
31257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31258 *) ac_try_echo=$ac_try;;
31260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31261 (eval "$ac_try") 2>&5
31263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31264 (exit $ac_status); }; }; then
31265 llvm_cv_c_printf_a=yes
31267 echo "$as_me: program exited with status $ac_status" >&5
31268 echo "$as_me: failed program was:" >&5
31269 sed 's/^/| /' conftest.$ac_ext >&5
31271 ( exit $ac_status )
31272 llvmac_cv_c_printf_a=no
31274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31279 ac_cpp='$CPP $CPPFLAGS'
31280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31285 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31286 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31287 if test "$llvm_cv_c_printf_a" = "yes"; then
31289 cat >>confdefs.h <<\_ACEOF
31290 #define HAVE_PRINTF_A 1
31295 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31296 # for constant arguments. Useless!
31297 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31298 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31299 if test "${ac_cv_working_alloca_h+set}" = set; then
31300 echo $ECHO_N "(cached) $ECHO_C" >&6
31302 cat >conftest.$ac_ext <<_ACEOF
31305 cat confdefs.h >>conftest.$ac_ext
31306 cat >>conftest.$ac_ext <<_ACEOF
31307 /* end confdefs.h. */
31308 #include <alloca.h>
31312 char *p = (char *) alloca (2 * sizeof (int));
31318 rm -f conftest.$ac_objext conftest$ac_exeext
31319 if { (ac_try="$ac_link"
31320 case "(($ac_try" in
31321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31322 *) ac_try_echo=$ac_try;;
31324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31325 (eval "$ac_link") 2>conftest.er1
31327 grep -v '^ *+' conftest.er1 >conftest.err
31329 cat conftest.err >&5
31330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31331 (exit $ac_status); } &&
31332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31333 { (case "(($ac_try" in
31334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31335 *) ac_try_echo=$ac_try;;
31337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31338 (eval "$ac_try") 2>&5
31340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31341 (exit $ac_status); }; } &&
31342 { ac_try='test -s conftest$ac_exeext'
31343 { (case "(($ac_try" in
31344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31345 *) ac_try_echo=$ac_try;;
31347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31348 (eval "$ac_try") 2>&5
31350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351 (exit $ac_status); }; }; then
31352 ac_cv_working_alloca_h=yes
31354 echo "$as_me: failed program was:" >&5
31355 sed 's/^/| /' conftest.$ac_ext >&5
31357 ac_cv_working_alloca_h=no
31360 rm -f core conftest.err conftest.$ac_objext \
31361 conftest$ac_exeext conftest.$ac_ext
31363 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31364 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31365 if test $ac_cv_working_alloca_h = yes; then
31367 cat >>confdefs.h <<\_ACEOF
31368 #define HAVE_ALLOCA_H 1
31373 { echo "$as_me:$LINENO: checking for alloca" >&5
31374 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31375 if test "${ac_cv_func_alloca_works+set}" = set; then
31376 echo $ECHO_N "(cached) $ECHO_C" >&6
31378 cat >conftest.$ac_ext <<_ACEOF
31381 cat confdefs.h >>conftest.$ac_ext
31382 cat >>conftest.$ac_ext <<_ACEOF
31383 /* end confdefs.h. */
31385 # define alloca __builtin_alloca
31388 # include <malloc.h>
31389 # define alloca _alloca
31392 # include <alloca.h>
31397 # ifndef alloca /* predefined by HP cc +Olibcalls */
31408 char *p = (char *) alloca (1);
31414 rm -f conftest.$ac_objext conftest$ac_exeext
31415 if { (ac_try="$ac_link"
31416 case "(($ac_try" in
31417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31418 *) ac_try_echo=$ac_try;;
31420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31421 (eval "$ac_link") 2>conftest.er1
31423 grep -v '^ *+' conftest.er1 >conftest.err
31425 cat conftest.err >&5
31426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427 (exit $ac_status); } &&
31428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31429 { (case "(($ac_try" in
31430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431 *) ac_try_echo=$ac_try;;
31433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31434 (eval "$ac_try") 2>&5
31436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437 (exit $ac_status); }; } &&
31438 { ac_try='test -s conftest$ac_exeext'
31439 { (case "(($ac_try" in
31440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31441 *) ac_try_echo=$ac_try;;
31443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31444 (eval "$ac_try") 2>&5
31446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31447 (exit $ac_status); }; }; then
31448 ac_cv_func_alloca_works=yes
31450 echo "$as_me: failed program was:" >&5
31451 sed 's/^/| /' conftest.$ac_ext >&5
31453 ac_cv_func_alloca_works=no
31456 rm -f core conftest.err conftest.$ac_objext \
31457 conftest$ac_exeext conftest.$ac_ext
31459 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31460 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31462 if test $ac_cv_func_alloca_works = yes; then
31464 cat >>confdefs.h <<\_ACEOF
31465 #define HAVE_ALLOCA 1
31469 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31470 # that cause trouble. Some versions do not even contain alloca or
31471 # contain a buggy version. If you still want to use their alloca,
31472 # use ar to extract alloca.o from them instead of compiling alloca.c.
31474 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31476 cat >>confdefs.h <<\_ACEOF
31481 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31482 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31483 if test "${ac_cv_os_cray+set}" = set; then
31484 echo $ECHO_N "(cached) $ECHO_C" >&6
31486 cat >conftest.$ac_ext <<_ACEOF
31489 cat confdefs.h >>conftest.$ac_ext
31490 cat >>conftest.$ac_ext <<_ACEOF
31491 /* end confdefs.h. */
31492 #if defined CRAY && ! defined CRAY2
31499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31500 $EGREP "webecray" >/dev/null 2>&1; then
31508 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31509 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31510 if test $ac_cv_os_cray = yes; then
31511 for ac_func in _getb67 GETB67 getb67; do
31512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31513 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31515 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31516 echo $ECHO_N "(cached) $ECHO_C" >&6
31518 cat >conftest.$ac_ext <<_ACEOF
31521 cat confdefs.h >>conftest.$ac_ext
31522 cat >>conftest.$ac_ext <<_ACEOF
31523 /* end confdefs.h. */
31524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31526 #define $ac_func innocuous_$ac_func
31528 /* System header to define __stub macros and hopefully few prototypes,
31529 which can conflict with char $ac_func (); below.
31530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31531 <limits.h> exists even on freestanding compilers. */
31534 # include <limits.h>
31536 # include <assert.h>
31541 /* Override any GCC internal prototype to avoid an error.
31542 Use char because int might match the return type of a GCC
31543 builtin and then its argument prototype would still apply. */
31548 /* The GNU C library defines this for functions which it implements
31549 to always fail with ENOSYS. Some functions are actually named
31550 something starting with __ and the normal name is an alias. */
31551 #if defined __stub_$ac_func || defined __stub___$ac_func
31558 return $ac_func ();
31563 rm -f conftest.$ac_objext conftest$ac_exeext
31564 if { (ac_try="$ac_link"
31565 case "(($ac_try" in
31566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31567 *) ac_try_echo=$ac_try;;
31569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31570 (eval "$ac_link") 2>conftest.er1
31572 grep -v '^ *+' conftest.er1 >conftest.err
31574 cat conftest.err >&5
31575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31576 (exit $ac_status); } &&
31577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31578 { (case "(($ac_try" in
31579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31580 *) ac_try_echo=$ac_try;;
31582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31583 (eval "$ac_try") 2>&5
31585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31586 (exit $ac_status); }; } &&
31587 { ac_try='test -s conftest$ac_exeext'
31588 { (case "(($ac_try" in
31589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31590 *) ac_try_echo=$ac_try;;
31592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31593 (eval "$ac_try") 2>&5
31595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31596 (exit $ac_status); }; }; then
31597 eval "$as_ac_var=yes"
31599 echo "$as_me: failed program was:" >&5
31600 sed 's/^/| /' conftest.$ac_ext >&5
31602 eval "$as_ac_var=no"
31605 rm -f core conftest.err conftest.$ac_objext \
31606 conftest$ac_exeext conftest.$ac_ext
31608 ac_res=`eval echo '${'$as_ac_var'}'`
31609 { echo "$as_me:$LINENO: result: $ac_res" >&5
31610 echo "${ECHO_T}$ac_res" >&6; }
31611 if test `eval echo '${'$as_ac_var'}'` = yes; then
31613 cat >>confdefs.h <<_ACEOF
31614 #define CRAY_STACKSEG_END $ac_func
31623 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31624 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31625 if test "${ac_cv_c_stack_direction+set}" = set; then
31626 echo $ECHO_N "(cached) $ECHO_C" >&6
31628 if test "$cross_compiling" = yes; then
31629 ac_cv_c_stack_direction=0
31631 cat >conftest.$ac_ext <<_ACEOF
31634 cat confdefs.h >>conftest.$ac_ext
31635 cat >>conftest.$ac_ext <<_ACEOF
31636 /* end confdefs.h. */
31637 $ac_includes_default
31639 find_stack_direction ()
31641 static char *addr = 0;
31646 return find_stack_direction ();
31649 return (&dummy > addr) ? 1 : -1;
31655 return find_stack_direction () < 0;
31658 rm -f conftest$ac_exeext
31659 if { (ac_try="$ac_link"
31660 case "(($ac_try" in
31661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31662 *) ac_try_echo=$ac_try;;
31664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31665 (eval "$ac_link") 2>&5
31667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31669 { (case "(($ac_try" in
31670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31671 *) ac_try_echo=$ac_try;;
31673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31674 (eval "$ac_try") 2>&5
31676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31677 (exit $ac_status); }; }; then
31678 ac_cv_c_stack_direction=1
31680 echo "$as_me: program exited with status $ac_status" >&5
31681 echo "$as_me: failed program was:" >&5
31682 sed 's/^/| /' conftest.$ac_ext >&5
31684 ( exit $ac_status )
31685 ac_cv_c_stack_direction=-1
31687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31692 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31693 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31695 cat >>confdefs.h <<_ACEOF
31696 #define STACK_DIRECTION $ac_cv_c_stack_direction
31703 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31704 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31705 if test "${ac_cv_func_rand48+set}" = set; then
31706 echo $ECHO_N "(cached) $ECHO_C" >&6
31709 ac_cpp='$CXXCPP $CPPFLAGS'
31710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31714 cat >conftest.$ac_ext <<_ACEOF
31717 cat confdefs.h >>conftest.$ac_ext
31718 cat >>conftest.$ac_ext <<_ACEOF
31719 /* end confdefs.h. */
31720 #include <stdlib.h>
31724 srand48(0);lrand48();drand48();
31729 rm -f conftest.$ac_objext
31730 if { (ac_try="$ac_compile"
31731 case "(($ac_try" in
31732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31733 *) ac_try_echo=$ac_try;;
31735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31736 (eval "$ac_compile") 2>conftest.er1
31738 grep -v '^ *+' conftest.er1 >conftest.err
31740 cat conftest.err >&5
31741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31742 (exit $ac_status); } &&
31743 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31744 { (case "(($ac_try" in
31745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31746 *) ac_try_echo=$ac_try;;
31748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31749 (eval "$ac_try") 2>&5
31751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31752 (exit $ac_status); }; } &&
31753 { ac_try='test -s conftest.$ac_objext'
31754 { (case "(($ac_try" in
31755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31756 *) ac_try_echo=$ac_try;;
31758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31759 (eval "$ac_try") 2>&5
31761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762 (exit $ac_status); }; }; then
31763 ac_cv_func_rand48=yes
31765 echo "$as_me: failed program was:" >&5
31766 sed 's/^/| /' conftest.$ac_ext >&5
31768 ac_cv_func_rand48=no
31771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31773 ac_cpp='$CPP $CPPFLAGS'
31774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31779 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31780 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31782 if test "$ac_cv_func_rand48" = "yes" ; then
31784 cat >>confdefs.h <<\_ACEOF
31785 #define HAVE_RAND48 1
31791 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31792 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31793 if test "${ac_cv_cxx_namespaces+set}" = set; then
31794 echo $ECHO_N "(cached) $ECHO_C" >&6
31797 ac_cpp='$CXXCPP $CPPFLAGS'
31798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31802 cat >conftest.$ac_ext <<_ACEOF
31805 cat confdefs.h >>conftest.$ac_ext
31806 cat >>conftest.$ac_ext <<_ACEOF
31807 /* end confdefs.h. */
31808 namespace Outer { namespace Inner { int i = 0; }}
31812 using namespace Outer::Inner; return i;
31817 rm -f conftest.$ac_objext
31818 if { (ac_try="$ac_compile"
31819 case "(($ac_try" in
31820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31821 *) ac_try_echo=$ac_try;;
31823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31824 (eval "$ac_compile") 2>conftest.er1
31826 grep -v '^ *+' conftest.er1 >conftest.err
31828 cat conftest.err >&5
31829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31830 (exit $ac_status); } &&
31831 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31832 { (case "(($ac_try" in
31833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31834 *) ac_try_echo=$ac_try;;
31836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31837 (eval "$ac_try") 2>&5
31839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31840 (exit $ac_status); }; } &&
31841 { ac_try='test -s conftest.$ac_objext'
31842 { (case "(($ac_try" in
31843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31844 *) ac_try_echo=$ac_try;;
31846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31847 (eval "$ac_try") 2>&5
31849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850 (exit $ac_status); }; }; then
31851 ac_cv_cxx_namespaces=yes
31853 echo "$as_me: failed program was:" >&5
31854 sed 's/^/| /' conftest.$ac_ext >&5
31856 ac_cv_cxx_namespaces=no
31859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31861 ac_cpp='$CPP $CPPFLAGS'
31862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31868 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31869 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31870 if test "$ac_cv_cxx_namespaces" = yes; then
31872 cat >>confdefs.h <<\_ACEOF
31873 #define HAVE_NAMESPACES
31878 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31879 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31880 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31881 echo $ECHO_N "(cached) $ECHO_C" >&6
31885 ac_cpp='$CXXCPP $CPPFLAGS'
31886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31890 cat >conftest.$ac_ext <<_ACEOF
31893 cat confdefs.h >>conftest.$ac_ext
31894 cat >>conftest.$ac_ext <<_ACEOF
31895 /* end confdefs.h. */
31896 #include <ext/hash_map>
31897 #ifdef HAVE_NAMESPACES
31898 using namespace std;
31903 hash_map<int, int> t;
31908 rm -f conftest.$ac_objext
31909 if { (ac_try="$ac_compile"
31910 case "(($ac_try" in
31911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31912 *) ac_try_echo=$ac_try;;
31914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31915 (eval "$ac_compile") 2>conftest.er1
31917 grep -v '^ *+' conftest.er1 >conftest.err
31919 cat conftest.err >&5
31920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31921 (exit $ac_status); } &&
31922 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31923 { (case "(($ac_try" in
31924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31925 *) ac_try_echo=$ac_try;;
31927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31928 (eval "$ac_try") 2>&5
31930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931 (exit $ac_status); }; } &&
31932 { ac_try='test -s conftest.$ac_objext'
31933 { (case "(($ac_try" in
31934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31935 *) ac_try_echo=$ac_try;;
31937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31938 (eval "$ac_try") 2>&5
31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941 (exit $ac_status); }; }; then
31942 ac_cv_cxx_have_std_ext_hash_map=yes
31944 echo "$as_me: failed program was:" >&5
31945 sed 's/^/| /' conftest.$ac_ext >&5
31947 ac_cv_cxx_have_std_ext_hash_map=no
31950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31952 ac_cpp='$CPP $CPPFLAGS'
31953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31958 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31959 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31960 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31963 cat >>confdefs.h <<\_ACEOF
31964 #define HAVE_STD_EXT_HASH_MAP 1
31969 cat >>confdefs.h <<\_ACEOF
31970 #define HAVE_STD_EXT_HASH_MAP 0
31975 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31976 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31977 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31978 echo $ECHO_N "(cached) $ECHO_C" >&6
31982 ac_cpp='$CXXCPP $CPPFLAGS'
31983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31987 cat >conftest.$ac_ext <<_ACEOF
31990 cat confdefs.h >>conftest.$ac_ext
31991 cat >>conftest.$ac_ext <<_ACEOF
31992 /* end confdefs.h. */
31993 #include <ext/hash_map>
31994 #ifdef HAVE_NAMESPACES
31995 using namespace __gnu_cxx;
32000 hash_map<int,int> t;
32005 rm -f conftest.$ac_objext
32006 if { (ac_try="$ac_compile"
32007 case "(($ac_try" in
32008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32009 *) ac_try_echo=$ac_try;;
32011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32012 (eval "$ac_compile") 2>conftest.er1
32014 grep -v '^ *+' conftest.er1 >conftest.err
32016 cat conftest.err >&5
32017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32018 (exit $ac_status); } &&
32019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32020 { (case "(($ac_try" in
32021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32022 *) ac_try_echo=$ac_try;;
32024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32025 (eval "$ac_try") 2>&5
32027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028 (exit $ac_status); }; } &&
32029 { ac_try='test -s conftest.$ac_objext'
32030 { (case "(($ac_try" in
32031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32032 *) ac_try_echo=$ac_try;;
32034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32035 (eval "$ac_try") 2>&5
32037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038 (exit $ac_status); }; }; then
32039 ac_cv_cxx_have_gnu_ext_hash_map=yes
32041 echo "$as_me: failed program was:" >&5
32042 sed 's/^/| /' conftest.$ac_ext >&5
32044 ac_cv_cxx_have_gnu_ext_hash_map=no
32047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32049 ac_cpp='$CPP $CPPFLAGS'
32050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32055 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32056 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32057 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32060 cat >>confdefs.h <<\_ACEOF
32061 #define HAVE_GNU_EXT_HASH_MAP 1
32066 cat >>confdefs.h <<\_ACEOF
32067 #define HAVE_GNU_EXT_HASH_MAP 0
32072 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32073 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32074 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32075 echo $ECHO_N "(cached) $ECHO_C" >&6
32079 ac_cpp='$CXXCPP $CPPFLAGS'
32080 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32081 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32082 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32084 cat >conftest.$ac_ext <<_ACEOF
32087 cat confdefs.h >>conftest.$ac_ext
32088 cat >>conftest.$ac_ext <<_ACEOF
32089 /* end confdefs.h. */
32090 #include <hash_map>
32094 hash_map<int,int> t;
32099 rm -f conftest.$ac_objext
32100 if { (ac_try="$ac_compile"
32101 case "(($ac_try" in
32102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32103 *) ac_try_echo=$ac_try;;
32105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32106 (eval "$ac_compile") 2>conftest.er1
32108 grep -v '^ *+' conftest.er1 >conftest.err
32110 cat conftest.err >&5
32111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32112 (exit $ac_status); } &&
32113 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32114 { (case "(($ac_try" in
32115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32116 *) ac_try_echo=$ac_try;;
32118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32119 (eval "$ac_try") 2>&5
32121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32122 (exit $ac_status); }; } &&
32123 { ac_try='test -s conftest.$ac_objext'
32124 { (case "(($ac_try" in
32125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32126 *) ac_try_echo=$ac_try;;
32128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32129 (eval "$ac_try") 2>&5
32131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32132 (exit $ac_status); }; }; then
32133 ac_cv_cxx_have_global_hash_map=yes
32135 echo "$as_me: failed program was:" >&5
32136 sed 's/^/| /' conftest.$ac_ext >&5
32138 ac_cv_cxx_have_global_hash_map=no
32141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32143 ac_cpp='$CPP $CPPFLAGS'
32144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32149 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32150 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32151 if test "$ac_cv_cxx_have_global_hash_map" = yes
32154 cat >>confdefs.h <<\_ACEOF
32155 #define HAVE_GLOBAL_HASH_MAP 1
32160 cat >>confdefs.h <<\_ACEOF
32161 #define HAVE_GLOBAL_HASH_MAP 0
32166 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32167 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32168 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32169 echo $ECHO_N "(cached) $ECHO_C" >&6
32173 ac_cpp='$CXXCPP $CPPFLAGS'
32174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32178 cat >conftest.$ac_ext <<_ACEOF
32181 cat confdefs.h >>conftest.$ac_ext
32182 cat >>conftest.$ac_ext <<_ACEOF
32183 /* end confdefs.h. */
32184 #include <ext/hash_set>
32185 #ifdef HAVE_NAMESPACES
32186 using namespace std;
32196 rm -f conftest.$ac_objext
32197 if { (ac_try="$ac_compile"
32198 case "(($ac_try" in
32199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32200 *) ac_try_echo=$ac_try;;
32202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32203 (eval "$ac_compile") 2>conftest.er1
32205 grep -v '^ *+' conftest.er1 >conftest.err
32207 cat conftest.err >&5
32208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32209 (exit $ac_status); } &&
32210 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32211 { (case "(($ac_try" in
32212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32213 *) ac_try_echo=$ac_try;;
32215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32216 (eval "$ac_try") 2>&5
32218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32219 (exit $ac_status); }; } &&
32220 { ac_try='test -s conftest.$ac_objext'
32221 { (case "(($ac_try" in
32222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32223 *) ac_try_echo=$ac_try;;
32225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32226 (eval "$ac_try") 2>&5
32228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32229 (exit $ac_status); }; }; then
32230 ac_cv_cxx_have_std_ext_hash_set=yes
32232 echo "$as_me: failed program was:" >&5
32233 sed 's/^/| /' conftest.$ac_ext >&5
32235 ac_cv_cxx_have_std_ext_hash_set=no
32238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32240 ac_cpp='$CPP $CPPFLAGS'
32241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32246 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32247 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32248 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32251 cat >>confdefs.h <<\_ACEOF
32252 #define HAVE_STD_EXT_HASH_SET 1
32257 cat >>confdefs.h <<\_ACEOF
32258 #define HAVE_STD_EXT_HASH_SET 0
32263 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32264 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32265 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32266 echo $ECHO_N "(cached) $ECHO_C" >&6
32270 ac_cpp='$CXXCPP $CPPFLAGS'
32271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32275 cat >conftest.$ac_ext <<_ACEOF
32278 cat confdefs.h >>conftest.$ac_ext
32279 cat >>conftest.$ac_ext <<_ACEOF
32280 /* end confdefs.h. */
32281 #include <ext/hash_set>
32282 #ifdef HAVE_NAMESPACES
32283 using namespace __gnu_cxx;
32293 rm -f conftest.$ac_objext
32294 if { (ac_try="$ac_compile"
32295 case "(($ac_try" in
32296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32297 *) ac_try_echo=$ac_try;;
32299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32300 (eval "$ac_compile") 2>conftest.er1
32302 grep -v '^ *+' conftest.er1 >conftest.err
32304 cat conftest.err >&5
32305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32306 (exit $ac_status); } &&
32307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32308 { (case "(($ac_try" in
32309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32310 *) ac_try_echo=$ac_try;;
32312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32313 (eval "$ac_try") 2>&5
32315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32316 (exit $ac_status); }; } &&
32317 { ac_try='test -s conftest.$ac_objext'
32318 { (case "(($ac_try" in
32319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32320 *) ac_try_echo=$ac_try;;
32322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32323 (eval "$ac_try") 2>&5
32325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32326 (exit $ac_status); }; }; then
32327 ac_cv_cxx_have_gnu_ext_hash_set=yes
32329 echo "$as_me: failed program was:" >&5
32330 sed 's/^/| /' conftest.$ac_ext >&5
32332 ac_cv_cxx_have_gnu_ext_hash_set=no
32335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32337 ac_cpp='$CPP $CPPFLAGS'
32338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32343 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32344 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32345 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32348 cat >>confdefs.h <<\_ACEOF
32349 #define HAVE_GNU_EXT_HASH_SET 1
32354 cat >>confdefs.h <<\_ACEOF
32355 #define HAVE_GNU_EXT_HASH_SET 0
32360 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32361 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32362 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32363 echo $ECHO_N "(cached) $ECHO_C" >&6
32367 ac_cpp='$CXXCPP $CPPFLAGS'
32368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32372 cat >conftest.$ac_ext <<_ACEOF
32375 cat confdefs.h >>conftest.$ac_ext
32376 cat >>conftest.$ac_ext <<_ACEOF
32377 /* end confdefs.h. */
32378 #include <hash_set>
32382 hash_set<int> t; return 0;
32387 rm -f conftest.$ac_objext
32388 if { (ac_try="$ac_compile"
32389 case "(($ac_try" in
32390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32391 *) ac_try_echo=$ac_try;;
32393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32394 (eval "$ac_compile") 2>conftest.er1
32396 grep -v '^ *+' conftest.er1 >conftest.err
32398 cat conftest.err >&5
32399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32400 (exit $ac_status); } &&
32401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32402 { (case "(($ac_try" in
32403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32404 *) ac_try_echo=$ac_try;;
32406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32407 (eval "$ac_try") 2>&5
32409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32410 (exit $ac_status); }; } &&
32411 { ac_try='test -s conftest.$ac_objext'
32412 { (case "(($ac_try" in
32413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32414 *) ac_try_echo=$ac_try;;
32416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32417 (eval "$ac_try") 2>&5
32419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32420 (exit $ac_status); }; }; then
32421 ac_cv_cxx_have_global_hash_set=yes
32423 echo "$as_me: failed program was:" >&5
32424 sed 's/^/| /' conftest.$ac_ext >&5
32426 ac_cv_cxx_have_global_hash_set=no
32429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32431 ac_cpp='$CPP $CPPFLAGS'
32432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32437 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32438 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32439 if test "$ac_cv_cxx_have_global_hash_set" = yes
32442 cat >>confdefs.h <<\_ACEOF
32443 #define HAVE_GLOBAL_HASH_SET 1
32448 cat >>confdefs.h <<\_ACEOF
32449 #define HAVE_GLOBAL_HASH_SET 0
32454 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32455 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32456 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32457 echo $ECHO_N "(cached) $ECHO_C" >&6
32461 ac_cpp='$CXXCPP $CPPFLAGS'
32462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32466 cat >conftest.$ac_ext <<_ACEOF
32469 cat confdefs.h >>conftest.$ac_ext
32470 cat >>conftest.$ac_ext <<_ACEOF
32471 /* end confdefs.h. */
32472 #include <iterator>
32473 #ifdef HAVE_NAMESPACES
32474 using namespace std;
32479 iterator<int,int,int> t; return 0;
32484 rm -f conftest.$ac_objext
32485 if { (ac_try="$ac_compile"
32486 case "(($ac_try" in
32487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32488 *) ac_try_echo=$ac_try;;
32490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32491 (eval "$ac_compile") 2>conftest.er1
32493 grep -v '^ *+' conftest.er1 >conftest.err
32495 cat conftest.err >&5
32496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32497 (exit $ac_status); } &&
32498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32499 { (case "(($ac_try" in
32500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32501 *) ac_try_echo=$ac_try;;
32503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32504 (eval "$ac_try") 2>&5
32506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507 (exit $ac_status); }; } &&
32508 { ac_try='test -s conftest.$ac_objext'
32509 { (case "(($ac_try" in
32510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32511 *) ac_try_echo=$ac_try;;
32513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32514 (eval "$ac_try") 2>&5
32516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32517 (exit $ac_status); }; }; then
32518 ac_cv_cxx_have_std_iterator=yes
32520 echo "$as_me: failed program was:" >&5
32521 sed 's/^/| /' conftest.$ac_ext >&5
32523 ac_cv_cxx_have_std_iterator=no
32526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32528 ac_cpp='$CPP $CPPFLAGS'
32529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32535 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32536 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32537 if test "$ac_cv_cxx_have_std_iterator" = yes
32540 cat >>confdefs.h <<\_ACEOF
32541 #define HAVE_STD_ITERATOR 1
32546 cat >>confdefs.h <<\_ACEOF
32547 #define HAVE_STD_ITERATOR 0
32552 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32553 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32554 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32555 echo $ECHO_N "(cached) $ECHO_C" >&6
32559 ac_cpp='$CXXCPP $CPPFLAGS'
32560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32564 cat >conftest.$ac_ext <<_ACEOF
32567 cat confdefs.h >>conftest.$ac_ext
32568 cat >>conftest.$ac_ext <<_ACEOF
32569 /* end confdefs.h. */
32570 #include <iterator>
32571 #ifdef HAVE_NAMESPACES
32572 using namespace std;
32577 bidirectional_iterator<int,int> t; return 0;
32582 rm -f conftest.$ac_objext
32583 if { (ac_try="$ac_compile"
32584 case "(($ac_try" in
32585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32586 *) ac_try_echo=$ac_try;;
32588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32589 (eval "$ac_compile") 2>conftest.er1
32591 grep -v '^ *+' conftest.er1 >conftest.err
32593 cat conftest.err >&5
32594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32595 (exit $ac_status); } &&
32596 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32597 { (case "(($ac_try" in
32598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32599 *) ac_try_echo=$ac_try;;
32601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32602 (eval "$ac_try") 2>&5
32604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32605 (exit $ac_status); }; } &&
32606 { ac_try='test -s conftest.$ac_objext'
32607 { (case "(($ac_try" in
32608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32609 *) ac_try_echo=$ac_try;;
32611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32612 (eval "$ac_try") 2>&5
32614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615 (exit $ac_status); }; }; then
32616 ac_cv_cxx_have_bi_iterator=yes
32618 echo "$as_me: failed program was:" >&5
32619 sed 's/^/| /' conftest.$ac_ext >&5
32621 ac_cv_cxx_have_bi_iterator=no
32624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32626 ac_cpp='$CPP $CPPFLAGS'
32627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32633 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32634 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32635 if test "$ac_cv_cxx_have_bi_iterator" = yes
32638 cat >>confdefs.h <<\_ACEOF
32639 #define HAVE_BI_ITERATOR 1
32644 cat >>confdefs.h <<\_ACEOF
32645 #define HAVE_BI_ITERATOR 0
32650 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32651 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32652 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32653 echo $ECHO_N "(cached) $ECHO_C" >&6
32657 ac_cpp='$CXXCPP $CPPFLAGS'
32658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32662 cat >conftest.$ac_ext <<_ACEOF
32665 cat confdefs.h >>conftest.$ac_ext
32666 cat >>conftest.$ac_ext <<_ACEOF
32667 /* end confdefs.h. */
32668 #include <iterator>
32669 #ifdef HAVE_NAMESPACES
32670 using namespace std;
32675 forward_iterator<int,int> t; return 0;
32680 rm -f conftest.$ac_objext
32681 if { (ac_try="$ac_compile"
32682 case "(($ac_try" in
32683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32684 *) ac_try_echo=$ac_try;;
32686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32687 (eval "$ac_compile") 2>conftest.er1
32689 grep -v '^ *+' conftest.er1 >conftest.err
32691 cat conftest.err >&5
32692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32693 (exit $ac_status); } &&
32694 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32695 { (case "(($ac_try" in
32696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32697 *) ac_try_echo=$ac_try;;
32699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32700 (eval "$ac_try") 2>&5
32702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32703 (exit $ac_status); }; } &&
32704 { ac_try='test -s conftest.$ac_objext'
32705 { (case "(($ac_try" in
32706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32707 *) ac_try_echo=$ac_try;;
32709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32710 (eval "$ac_try") 2>&5
32712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32713 (exit $ac_status); }; }; then
32714 ac_cv_cxx_have_fwd_iterator=yes
32716 echo "$as_me: failed program was:" >&5
32717 sed 's/^/| /' conftest.$ac_ext >&5
32719 ac_cv_cxx_have_fwd_iterator=no
32722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32724 ac_cpp='$CPP $CPPFLAGS'
32725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32731 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32732 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32733 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32736 cat >>confdefs.h <<\_ACEOF
32737 #define HAVE_FWD_ITERATOR 1
32742 cat >>confdefs.h <<\_ACEOF
32743 #define HAVE_FWD_ITERATOR 0
32749 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32750 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32751 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32752 echo $ECHO_N "(cached) $ECHO_C" >&6
32755 ac_cpp='$CXXCPP $CPPFLAGS'
32756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32760 cat >conftest.$ac_ext <<_ACEOF
32763 cat confdefs.h >>conftest.$ac_ext
32764 cat >>conftest.$ac_ext <<_ACEOF
32765 /* end confdefs.h. */
32775 rm -f conftest.$ac_objext
32776 if { (ac_try="$ac_compile"
32777 case "(($ac_try" in
32778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779 *) ac_try_echo=$ac_try;;
32781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32782 (eval "$ac_compile") 2>conftest.er1
32784 grep -v '^ *+' conftest.er1 >conftest.err
32786 cat conftest.err >&5
32787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788 (exit $ac_status); } &&
32789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32790 { (case "(($ac_try" in
32791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32792 *) ac_try_echo=$ac_try;;
32794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32795 (eval "$ac_try") 2>&5
32797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798 (exit $ac_status); }; } &&
32799 { ac_try='test -s conftest.$ac_objext'
32800 { (case "(($ac_try" in
32801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32802 *) ac_try_echo=$ac_try;;
32804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32805 (eval "$ac_try") 2>&5
32807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808 (exit $ac_status); }; }; then
32809 ac_cv_func_isnan_in_math_h=yes
32811 echo "$as_me: failed program was:" >&5
32812 sed 's/^/| /' conftest.$ac_ext >&5
32814 ac_cv_func_isnan_in_math_h=no
32817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32819 ac_cpp='$CPP $CPPFLAGS'
32820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32825 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32826 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32829 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32831 cat >>confdefs.h <<\_ACEOF
32832 #define HAVE_ISNAN_IN_MATH_H 1
32837 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32838 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32839 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32840 echo $ECHO_N "(cached) $ECHO_C" >&6
32843 ac_cpp='$CXXCPP $CPPFLAGS'
32844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32848 cat >conftest.$ac_ext <<_ACEOF
32851 cat confdefs.h >>conftest.$ac_ext
32852 cat >>conftest.$ac_ext <<_ACEOF
32853 /* end confdefs.h. */
32863 rm -f conftest.$ac_objext
32864 if { (ac_try="$ac_compile"
32865 case "(($ac_try" in
32866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32867 *) ac_try_echo=$ac_try;;
32869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32870 (eval "$ac_compile") 2>conftest.er1
32872 grep -v '^ *+' conftest.er1 >conftest.err
32874 cat conftest.err >&5
32875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32876 (exit $ac_status); } &&
32877 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32878 { (case "(($ac_try" in
32879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32880 *) ac_try_echo=$ac_try;;
32882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32883 (eval "$ac_try") 2>&5
32885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32886 (exit $ac_status); }; } &&
32887 { ac_try='test -s conftest.$ac_objext'
32888 { (case "(($ac_try" in
32889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32890 *) ac_try_echo=$ac_try;;
32892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32893 (eval "$ac_try") 2>&5
32895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32896 (exit $ac_status); }; }; then
32897 ac_cv_func_isnan_in_cmath=yes
32899 echo "$as_me: failed program was:" >&5
32900 sed 's/^/| /' conftest.$ac_ext >&5
32902 ac_cv_func_isnan_in_cmath=no
32905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32907 ac_cpp='$CPP $CPPFLAGS'
32908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32913 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32914 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32916 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32918 cat >>confdefs.h <<\_ACEOF
32919 #define HAVE_ISNAN_IN_CMATH 1
32924 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32925 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32926 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32927 echo $ECHO_N "(cached) $ECHO_C" >&6
32930 ac_cpp='$CXXCPP $CPPFLAGS'
32931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32935 cat >conftest.$ac_ext <<_ACEOF
32938 cat confdefs.h >>conftest.$ac_ext
32939 cat >>conftest.$ac_ext <<_ACEOF
32940 /* end confdefs.h. */
32945 float f; std::isnan(f);
32950 rm -f conftest.$ac_objext
32951 if { (ac_try="$ac_compile"
32952 case "(($ac_try" in
32953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32954 *) ac_try_echo=$ac_try;;
32956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32957 (eval "$ac_compile") 2>conftest.er1
32959 grep -v '^ *+' conftest.er1 >conftest.err
32961 cat conftest.err >&5
32962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963 (exit $ac_status); } &&
32964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32965 { (case "(($ac_try" in
32966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32967 *) ac_try_echo=$ac_try;;
32969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32970 (eval "$ac_try") 2>&5
32972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973 (exit $ac_status); }; } &&
32974 { ac_try='test -s conftest.$ac_objext'
32975 { (case "(($ac_try" in
32976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32977 *) ac_try_echo=$ac_try;;
32979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32980 (eval "$ac_try") 2>&5
32982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32983 (exit $ac_status); }; }; then
32984 ac_cv_func_std_isnan_in_cmath=yes
32986 echo "$as_me: failed program was:" >&5
32987 sed 's/^/| /' conftest.$ac_ext >&5
32989 ac_cv_func_std_isnan_in_cmath=no
32992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32994 ac_cpp='$CPP $CPPFLAGS'
32995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33000 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33001 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33003 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33005 cat >>confdefs.h <<\_ACEOF
33006 #define HAVE_STD_ISNAN_IN_CMATH 1
33012 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33013 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33014 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33015 echo $ECHO_N "(cached) $ECHO_C" >&6
33018 ac_cpp='$CXXCPP $CPPFLAGS'
33019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33023 cat >conftest.$ac_ext <<_ACEOF
33026 cat confdefs.h >>conftest.$ac_ext
33027 cat >>conftest.$ac_ext <<_ACEOF
33028 /* end confdefs.h. */
33038 rm -f conftest.$ac_objext
33039 if { (ac_try="$ac_compile"
33040 case "(($ac_try" in
33041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33042 *) ac_try_echo=$ac_try;;
33044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33045 (eval "$ac_compile") 2>conftest.er1
33047 grep -v '^ *+' conftest.er1 >conftest.err
33049 cat conftest.err >&5
33050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33051 (exit $ac_status); } &&
33052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33053 { (case "(($ac_try" in
33054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33055 *) ac_try_echo=$ac_try;;
33057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33058 (eval "$ac_try") 2>&5
33060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33061 (exit $ac_status); }; } &&
33062 { ac_try='test -s conftest.$ac_objext'
33063 { (case "(($ac_try" in
33064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33065 *) ac_try_echo=$ac_try;;
33067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33068 (eval "$ac_try") 2>&5
33070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33071 (exit $ac_status); }; }; then
33072 ac_cv_func_isinf_in_math_h=yes
33074 echo "$as_me: failed program was:" >&5
33075 sed 's/^/| /' conftest.$ac_ext >&5
33077 ac_cv_func_isinf_in_math_h=no
33080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33082 ac_cpp='$CPP $CPPFLAGS'
33083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33088 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33089 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33091 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33093 cat >>confdefs.h <<\_ACEOF
33094 #define HAVE_ISINF_IN_MATH_H 1
33099 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33100 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33101 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33102 echo $ECHO_N "(cached) $ECHO_C" >&6
33105 ac_cpp='$CXXCPP $CPPFLAGS'
33106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33110 cat >conftest.$ac_ext <<_ACEOF
33113 cat confdefs.h >>conftest.$ac_ext
33114 cat >>conftest.$ac_ext <<_ACEOF
33115 /* end confdefs.h. */
33125 rm -f conftest.$ac_objext
33126 if { (ac_try="$ac_compile"
33127 case "(($ac_try" in
33128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33129 *) ac_try_echo=$ac_try;;
33131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33132 (eval "$ac_compile") 2>conftest.er1
33134 grep -v '^ *+' conftest.er1 >conftest.err
33136 cat conftest.err >&5
33137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33138 (exit $ac_status); } &&
33139 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33140 { (case "(($ac_try" in
33141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33142 *) ac_try_echo=$ac_try;;
33144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33145 (eval "$ac_try") 2>&5
33147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33148 (exit $ac_status); }; } &&
33149 { ac_try='test -s conftest.$ac_objext'
33150 { (case "(($ac_try" in
33151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33152 *) ac_try_echo=$ac_try;;
33154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33155 (eval "$ac_try") 2>&5
33157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33158 (exit $ac_status); }; }; then
33159 ac_cv_func_isinf_in_cmath=yes
33161 echo "$as_me: failed program was:" >&5
33162 sed 's/^/| /' conftest.$ac_ext >&5
33164 ac_cv_func_isinf_in_cmath=no
33167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33169 ac_cpp='$CPP $CPPFLAGS'
33170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33175 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33176 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33178 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33180 cat >>confdefs.h <<\_ACEOF
33181 #define HAVE_ISINF_IN_CMATH 1
33186 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33187 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33188 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33189 echo $ECHO_N "(cached) $ECHO_C" >&6
33192 ac_cpp='$CXXCPP $CPPFLAGS'
33193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33197 cat >conftest.$ac_ext <<_ACEOF
33200 cat confdefs.h >>conftest.$ac_ext
33201 cat >>conftest.$ac_ext <<_ACEOF
33202 /* end confdefs.h. */
33207 float f; std::isinf(f)}
33212 rm -f conftest.$ac_objext
33213 if { (ac_try="$ac_compile"
33214 case "(($ac_try" in
33215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33216 *) ac_try_echo=$ac_try;;
33218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33219 (eval "$ac_compile") 2>conftest.er1
33221 grep -v '^ *+' conftest.er1 >conftest.err
33223 cat conftest.err >&5
33224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33225 (exit $ac_status); } &&
33226 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33227 { (case "(($ac_try" in
33228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33229 *) ac_try_echo=$ac_try;;
33231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33232 (eval "$ac_try") 2>&5
33234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33235 (exit $ac_status); }; } &&
33236 { ac_try='test -s conftest.$ac_objext'
33237 { (case "(($ac_try" in
33238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33239 *) ac_try_echo=$ac_try;;
33241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33242 (eval "$ac_try") 2>&5
33244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33245 (exit $ac_status); }; }; then
33246 ac_cv_func_std_isinf_in_cmath=yes
33248 echo "$as_me: failed program was:" >&5
33249 sed 's/^/| /' conftest.$ac_ext >&5
33251 ac_cv_func_std_isinf_in_cmath=no
33254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33256 ac_cpp='$CPP $CPPFLAGS'
33257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33262 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33263 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33265 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33267 cat >>confdefs.h <<\_ACEOF
33268 #define HAVE_STD_ISINF_IN_CMATH 1
33273 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33274 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33275 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33276 echo $ECHO_N "(cached) $ECHO_C" >&6
33279 ac_cpp='$CXXCPP $CPPFLAGS'
33280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33284 cat >conftest.$ac_ext <<_ACEOF
33287 cat confdefs.h >>conftest.$ac_ext
33288 cat >>conftest.$ac_ext <<_ACEOF
33289 /* end confdefs.h. */
33290 #include <ieeefp.h>
33294 float f; finite(f);
33299 rm -f conftest.$ac_objext
33300 if { (ac_try="$ac_compile"
33301 case "(($ac_try" in
33302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33303 *) ac_try_echo=$ac_try;;
33305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33306 (eval "$ac_compile") 2>conftest.er1
33308 grep -v '^ *+' conftest.er1 >conftest.err
33310 cat conftest.err >&5
33311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33312 (exit $ac_status); } &&
33313 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33314 { (case "(($ac_try" in
33315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33316 *) ac_try_echo=$ac_try;;
33318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33319 (eval "$ac_try") 2>&5
33321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33322 (exit $ac_status); }; } &&
33323 { ac_try='test -s conftest.$ac_objext'
33324 { (case "(($ac_try" in
33325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33326 *) ac_try_echo=$ac_try;;
33328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33329 (eval "$ac_try") 2>&5
33331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33332 (exit $ac_status); }; }; then
33333 ac_cv_func_finite_in_ieeefp_h=yes
33335 echo "$as_me: failed program was:" >&5
33336 sed 's/^/| /' conftest.$ac_ext >&5
33338 ac_cv_func_finite_in_ieeefp_h=no
33341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33343 ac_cpp='$CPP $CPPFLAGS'
33344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33349 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33350 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33352 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33354 cat >>confdefs.h <<\_ACEOF
33355 #define HAVE_FINITE_IN_IEEEFP_H 1
33362 if test "$llvm_cv_platform_type" = "Unix" ; then
33365 for ac_header in stdlib.h unistd.h
33367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33372 echo $ECHO_N "(cached) $ECHO_C" >&6
33374 ac_res=`eval echo '${'$as_ac_Header'}'`
33375 { echo "$as_me:$LINENO: result: $ac_res" >&5
33376 echo "${ECHO_T}$ac_res" >&6; }
33378 # Is the header compilable?
33379 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33381 cat >conftest.$ac_ext <<_ACEOF
33384 cat confdefs.h >>conftest.$ac_ext
33385 cat >>conftest.$ac_ext <<_ACEOF
33386 /* end confdefs.h. */
33387 $ac_includes_default
33388 #include <$ac_header>
33390 rm -f conftest.$ac_objext
33391 if { (ac_try="$ac_compile"
33392 case "(($ac_try" in
33393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33394 *) ac_try_echo=$ac_try;;
33396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33397 (eval "$ac_compile") 2>conftest.er1
33399 grep -v '^ *+' conftest.er1 >conftest.err
33401 cat conftest.err >&5
33402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33403 (exit $ac_status); } &&
33404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33405 { (case "(($ac_try" in
33406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33407 *) ac_try_echo=$ac_try;;
33409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33410 (eval "$ac_try") 2>&5
33412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33413 (exit $ac_status); }; } &&
33414 { ac_try='test -s conftest.$ac_objext'
33415 { (case "(($ac_try" in
33416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33417 *) ac_try_echo=$ac_try;;
33419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33420 (eval "$ac_try") 2>&5
33422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33423 (exit $ac_status); }; }; then
33424 ac_header_compiler=yes
33426 echo "$as_me: failed program was:" >&5
33427 sed 's/^/| /' conftest.$ac_ext >&5
33429 ac_header_compiler=no
33432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33434 echo "${ECHO_T}$ac_header_compiler" >&6; }
33436 # Is the header present?
33437 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33439 cat >conftest.$ac_ext <<_ACEOF
33442 cat confdefs.h >>conftest.$ac_ext
33443 cat >>conftest.$ac_ext <<_ACEOF
33444 /* end confdefs.h. */
33445 #include <$ac_header>
33447 if { (ac_try="$ac_cpp conftest.$ac_ext"
33448 case "(($ac_try" in
33449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33450 *) ac_try_echo=$ac_try;;
33452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33455 grep -v '^ *+' conftest.er1 >conftest.err
33457 cat conftest.err >&5
33458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33459 (exit $ac_status); } >/dev/null; then
33460 if test -s conftest.err; then
33461 ac_cpp_err=$ac_c_preproc_warn_flag
33462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33469 if test -z "$ac_cpp_err"; then
33470 ac_header_preproc=yes
33472 echo "$as_me: failed program was:" >&5
33473 sed 's/^/| /' conftest.$ac_ext >&5
33475 ac_header_preproc=no
33478 rm -f conftest.err conftest.$ac_ext
33479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33480 echo "${ECHO_T}$ac_header_preproc" >&6; }
33482 # So? What about this header?
33483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33489 ac_header_preproc=yes
33492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33495 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33499 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33505 ## ----------------------------------- ##
33506 ## Report this to llvmbugs@cs.uiuc.edu ##
33507 ## ----------------------------------- ##
33509 ) | sed "s/^/$as_me: WARNING: /" >&2
33512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33515 echo $ECHO_N "(cached) $ECHO_C" >&6
33517 eval "$as_ac_Header=\$ac_header_preproc"
33519 ac_res=`eval echo '${'$as_ac_Header'}'`
33520 { echo "$as_me:$LINENO: result: $ac_res" >&5
33521 echo "${ECHO_T}$ac_res" >&6; }
33524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33525 cat >>confdefs.h <<_ACEOF
33526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33534 for ac_func in getpagesize
33536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33537 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33539 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33540 echo $ECHO_N "(cached) $ECHO_C" >&6
33542 cat >conftest.$ac_ext <<_ACEOF
33545 cat confdefs.h >>conftest.$ac_ext
33546 cat >>conftest.$ac_ext <<_ACEOF
33547 /* end confdefs.h. */
33548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33550 #define $ac_func innocuous_$ac_func
33552 /* System header to define __stub macros and hopefully few prototypes,
33553 which can conflict with char $ac_func (); below.
33554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33555 <limits.h> exists even on freestanding compilers. */
33558 # include <limits.h>
33560 # include <assert.h>
33565 /* Override any GCC internal prototype to avoid an error.
33566 Use char because int might match the return type of a GCC
33567 builtin and then its argument prototype would still apply. */
33572 /* The GNU C library defines this for functions which it implements
33573 to always fail with ENOSYS. Some functions are actually named
33574 something starting with __ and the normal name is an alias. */
33575 #if defined __stub_$ac_func || defined __stub___$ac_func
33582 return $ac_func ();
33587 rm -f conftest.$ac_objext conftest$ac_exeext
33588 if { (ac_try="$ac_link"
33589 case "(($ac_try" in
33590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33591 *) ac_try_echo=$ac_try;;
33593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33594 (eval "$ac_link") 2>conftest.er1
33596 grep -v '^ *+' conftest.er1 >conftest.err
33598 cat conftest.err >&5
33599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33600 (exit $ac_status); } &&
33601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33602 { (case "(($ac_try" in
33603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33604 *) ac_try_echo=$ac_try;;
33606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33607 (eval "$ac_try") 2>&5
33609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33610 (exit $ac_status); }; } &&
33611 { ac_try='test -s conftest$ac_exeext'
33612 { (case "(($ac_try" in
33613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33614 *) ac_try_echo=$ac_try;;
33616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33617 (eval "$ac_try") 2>&5
33619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33620 (exit $ac_status); }; }; then
33621 eval "$as_ac_var=yes"
33623 echo "$as_me: failed program was:" >&5
33624 sed 's/^/| /' conftest.$ac_ext >&5
33626 eval "$as_ac_var=no"
33629 rm -f core conftest.err conftest.$ac_objext \
33630 conftest$ac_exeext conftest.$ac_ext
33632 ac_res=`eval echo '${'$as_ac_var'}'`
33633 { echo "$as_me:$LINENO: result: $ac_res" >&5
33634 echo "${ECHO_T}$ac_res" >&6; }
33635 if test `eval echo '${'$as_ac_var'}'` = yes; then
33636 cat >>confdefs.h <<_ACEOF
33637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33643 { echo "$as_me:$LINENO: checking for working mmap" >&5
33644 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33645 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33646 echo $ECHO_N "(cached) $ECHO_C" >&6
33648 if test "$cross_compiling" = yes; then
33649 ac_cv_func_mmap_fixed_mapped=no
33651 cat >conftest.$ac_ext <<_ACEOF
33654 cat confdefs.h >>conftest.$ac_ext
33655 cat >>conftest.$ac_ext <<_ACEOF
33656 /* end confdefs.h. */
33657 $ac_includes_default
33658 /* malloc might have been renamed as rpl_malloc. */
33661 /* Thanks to Mike Haertel and Jim Avera for this test.
33662 Here is a matrix of mmap possibilities:
33663 mmap private not fixed
33664 mmap private fixed at somewhere currently unmapped
33665 mmap private fixed at somewhere already mapped
33666 mmap shared not fixed
33667 mmap shared fixed at somewhere currently unmapped
33668 mmap shared fixed at somewhere already mapped
33669 For private mappings, we should verify that changes cannot be read()
33670 back from the file, nor mmap's back from the file at a different
33671 address. (There have been systems where private was not correctly
33672 implemented like the infamous i386 svr4.0, and systems where the
33673 VM page cache was not coherent with the file system buffer cache
33674 like early versions of FreeBSD and possibly contemporary NetBSD.)
33675 For shared mappings, we should conversely verify that changes get
33676 propagated back to all the places they're supposed to be.
33678 Grep wants private fixed already mapped.
33679 The main things grep needs to know about mmap are:
33680 * does it exist and is it safe to write into the mmap'd area
33681 * how to use it (BSD variants) */
33684 #include <sys/mman.h>
33686 #if !STDC_HEADERS && !HAVE_STDLIB_H
33690 /* This mess was copied from the GNU getpagesize.h. */
33691 #if !HAVE_GETPAGESIZE
33692 /* Assume that all systems that can run configure have sys/param.h. */
33693 # if !HAVE_SYS_PARAM_H
33694 # define HAVE_SYS_PARAM_H 1
33697 # ifdef _SC_PAGESIZE
33698 # define getpagesize() sysconf(_SC_PAGESIZE)
33699 # else /* no _SC_PAGESIZE */
33700 # if HAVE_SYS_PARAM_H
33701 # include <sys/param.h>
33702 # ifdef EXEC_PAGESIZE
33703 # define getpagesize() EXEC_PAGESIZE
33704 # else /* no EXEC_PAGESIZE */
33706 # define getpagesize() NBPG * CLSIZE
33709 # endif /* no CLSIZE */
33710 # else /* no NBPG */
33712 # define getpagesize() NBPC
33713 # else /* no NBPC */
33715 # define getpagesize() PAGESIZE
33716 # endif /* PAGESIZE */
33717 # endif /* no NBPC */
33718 # endif /* no NBPG */
33719 # endif /* no EXEC_PAGESIZE */
33720 # else /* no HAVE_SYS_PARAM_H */
33721 # define getpagesize() 8192 /* punt totally */
33722 # endif /* no HAVE_SYS_PARAM_H */
33723 # endif /* no _SC_PAGESIZE */
33725 #endif /* no HAVE_GETPAGESIZE */
33730 char *data, *data2, *data3;
33734 pagesize = getpagesize ();
33736 /* First, make a file with some known garbage in it. */
33737 data = (char *) malloc (pagesize);
33740 for (i = 0; i < pagesize; ++i)
33741 *(data + i) = rand ();
33743 fd = creat ("conftest.mmap", 0600);
33746 if (write (fd, data, pagesize) != pagesize)
33750 /* Next, try to mmap the file at a fixed address which already has
33751 something else allocated at it. If we can, also make sure that
33752 we see the same garbage. */
33753 fd = open ("conftest.mmap", O_RDWR);
33756 data2 = (char *) malloc (2 * pagesize);
33759 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33760 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33761 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33763 for (i = 0; i < pagesize; ++i)
33764 if (*(data + i) != *(data2 + i))
33767 /* Finally, make sure that changes to the mapped area do not
33768 percolate back to the file as seen by read(). (This is a bug on
33769 some variants of i386 svr4.0.) */
33770 for (i = 0; i < pagesize; ++i)
33771 *(data2 + i) = *(data2 + i) + 1;
33772 data3 = (char *) malloc (pagesize);
33775 if (read (fd, data3, pagesize) != pagesize)
33777 for (i = 0; i < pagesize; ++i)
33778 if (*(data + i) != *(data3 + i))
33784 rm -f conftest$ac_exeext
33785 if { (ac_try="$ac_link"
33786 case "(($ac_try" in
33787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33788 *) ac_try_echo=$ac_try;;
33790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33791 (eval "$ac_link") 2>&5
33793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33795 { (case "(($ac_try" in
33796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33797 *) ac_try_echo=$ac_try;;
33799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33800 (eval "$ac_try") 2>&5
33802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33803 (exit $ac_status); }; }; then
33804 ac_cv_func_mmap_fixed_mapped=yes
33806 echo "$as_me: program exited with status $ac_status" >&5
33807 echo "$as_me: failed program was:" >&5
33808 sed 's/^/| /' conftest.$ac_ext >&5
33810 ( exit $ac_status )
33811 ac_cv_func_mmap_fixed_mapped=no
33813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33818 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33819 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33820 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33822 cat >>confdefs.h <<\_ACEOF
33823 #define HAVE_MMAP 1
33827 rm -f conftest.mmap
33829 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33830 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33831 if test "${ac_cv_func_mmap_file+set}" = set; then
33832 echo $ECHO_N "(cached) $ECHO_C" >&6
33835 ac_cpp='$CPP $CPPFLAGS'
33836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33840 if test "$cross_compiling" = yes; then
33841 ac_cv_func_mmap_file=no
33843 cat >conftest.$ac_ext <<_ACEOF
33847 cat confdefs.h >>conftest.$ac_ext
33848 cat >>conftest.$ac_ext <<_ACEOF
33849 /* end confdefs.h. */
33851 #include <sys/types.h>
33852 #include <sys/mman.h>
33860 fd = creat ("foo",0777);
33861 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33863 return (fd != (int) MAP_FAILED);
33868 rm -f conftest$ac_exeext
33869 if { (ac_try="$ac_link"
33870 case "(($ac_try" in
33871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33872 *) ac_try_echo=$ac_try;;
33874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33875 (eval "$ac_link") 2>&5
33877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33879 { (case "(($ac_try" in
33880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33881 *) ac_try_echo=$ac_try;;
33883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33884 (eval "$ac_try") 2>&5
33886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33887 (exit $ac_status); }; }; then
33888 ac_cv_func_mmap_file=yes
33890 echo "$as_me: program exited with status $ac_status" >&5
33891 echo "$as_me: failed program was:" >&5
33892 sed 's/^/| /' conftest.$ac_ext >&5
33894 ( exit $ac_status )
33895 ac_cv_func_mmap_file=no
33897 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33902 ac_cpp='$CPP $CPPFLAGS'
33903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33909 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33910 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33911 if test "$ac_cv_func_mmap_file" = yes; then
33913 cat >>confdefs.h <<\_ACEOF
33914 #define HAVE_MMAP_FILE
33921 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33922 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33923 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33924 echo $ECHO_N "(cached) $ECHO_C" >&6
33926 if test "$llvm_cv_os_type" = "Interix" ; then
33927 ac_cv_need_dev_zero_for_mmap=yes
33929 ac_cv_need_dev_zero_for_mmap=no
33933 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33934 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33935 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33937 cat >>confdefs.h <<\_ACEOF
33938 #define NEED_DEV_ZERO_FOR_MMAP 1
33943 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33945 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33946 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33948 if test "$ac_cv_func_mmap_file" = "no"
33950 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33951 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33957 for ac_func in __dso_handle
33959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33963 echo $ECHO_N "(cached) $ECHO_C" >&6
33965 cat >conftest.$ac_ext <<_ACEOF
33968 cat confdefs.h >>conftest.$ac_ext
33969 cat >>conftest.$ac_ext <<_ACEOF
33970 /* end confdefs.h. */
33971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33973 #define $ac_func innocuous_$ac_func
33975 /* System header to define __stub macros and hopefully few prototypes,
33976 which can conflict with char $ac_func (); below.
33977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33978 <limits.h> exists even on freestanding compilers. */
33981 # include <limits.h>
33983 # include <assert.h>
33988 /* Override any GCC internal prototype to avoid an error.
33989 Use char because int might match the return type of a GCC
33990 builtin and then its argument prototype would still apply. */
33995 /* The GNU C library defines this for functions which it implements
33996 to always fail with ENOSYS. Some functions are actually named
33997 something starting with __ and the normal name is an alias. */
33998 #if defined __stub_$ac_func || defined __stub___$ac_func
34005 return $ac_func ();
34010 rm -f conftest.$ac_objext conftest$ac_exeext
34011 if { (ac_try="$ac_link"
34012 case "(($ac_try" in
34013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34014 *) ac_try_echo=$ac_try;;
34016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34017 (eval "$ac_link") 2>conftest.er1
34019 grep -v '^ *+' conftest.er1 >conftest.err
34021 cat conftest.err >&5
34022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34023 (exit $ac_status); } &&
34024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34025 { (case "(($ac_try" in
34026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34027 *) ac_try_echo=$ac_try;;
34029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34030 (eval "$ac_try") 2>&5
34032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34033 (exit $ac_status); }; } &&
34034 { ac_try='test -s conftest$ac_exeext'
34035 { (case "(($ac_try" in
34036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34037 *) ac_try_echo=$ac_try;;
34039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34040 (eval "$ac_try") 2>&5
34042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34043 (exit $ac_status); }; }; then
34044 eval "$as_ac_var=yes"
34046 echo "$as_me: failed program was:" >&5
34047 sed 's/^/| /' conftest.$ac_ext >&5
34049 eval "$as_ac_var=no"
34052 rm -f core conftest.err conftest.$ac_objext \
34053 conftest$ac_exeext conftest.$ac_ext
34055 ac_res=`eval echo '${'$as_ac_var'}'`
34056 { echo "$as_me:$LINENO: result: $ac_res" >&5
34057 echo "${ECHO_T}$ac_res" >&6; }
34058 if test `eval echo '${'$as_ac_var'}'` = yes; then
34059 cat >>confdefs.h <<_ACEOF
34060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34067 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34068 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34069 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34070 echo $ECHO_N "(cached) $ECHO_C" >&6
34072 llvm_cv_llvmgcc_sanity="no"
34073 if test -x "$LLVMGCC" ; then
34074 cp /dev/null conftest.c
34075 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34076 grep 'target datalayout =' > /dev/null 2>&1
34077 if test $? -eq 0 ; then
34078 llvm_cv_llvmgcc_sanity="yes"
34083 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34084 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34086 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34087 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34088 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34089 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34090 LLVMCC1=$llvmcc1path
34092 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34093 LLVMCC1PLUS=$llvmcc1pluspath
34095 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34096 LLVMGCCDIR=$llvmgccdir
34098 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34099 LLVMGCCLIBEXEC=$llvmgcclibexec
34101 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34102 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34103 LLVMGCC_VERSION=$llvmgccversion
34105 LLVMGCC_MAJVERS=$llvmgccmajvers
34107 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34108 LLVMGCC_LANGS=$llvmgcclangs
34110 { echo "$as_me:$LINENO: result: ok" >&5
34111 echo "${ECHO_T}ok" >&6; }
34114 SHLIBEXT=$libltdl_cv_shlibext
34117 # Translate the various configuration directories and other basic
34118 # information into substitutions that will end up in Makefile.config.in
34119 # that these configured values can be used by the makefiles
34120 if test "${prefix}" = "NONE" ; then
34121 prefix="/usr/local"
34123 eval LLVM_PREFIX="${prefix}";
34124 eval LLVM_BINDIR="${prefix}/bin";
34125 eval LLVM_LIBDIR="${prefix}/lib";
34126 eval LLVM_DATADIR="${prefix}/share/llvm";
34127 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34128 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34129 eval LLVM_INCLUDEDIR="${prefix}/include";
34130 eval LLVM_INFODIR="${prefix}/info";
34131 eval LLVM_MANDIR="${prefix}/man";
34132 LLVM_CONFIGTIME=`date`
34144 # Place the various directores into the config.h file as #defines so that we
34145 # can know about the installation paths within LLVM.
34147 cat >>confdefs.h <<_ACEOF
34148 #define LLVM_PREFIX "$LLVM_PREFIX"
34152 cat >>confdefs.h <<_ACEOF
34153 #define LLVM_BINDIR "$LLVM_BINDIR"
34157 cat >>confdefs.h <<_ACEOF
34158 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34162 cat >>confdefs.h <<_ACEOF
34163 #define LLVM_DATADIR "$LLVM_DATADIR"
34167 cat >>confdefs.h <<_ACEOF
34168 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34172 cat >>confdefs.h <<_ACEOF
34173 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34177 cat >>confdefs.h <<_ACEOF
34178 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34182 cat >>confdefs.h <<_ACEOF
34183 #define LLVM_INFODIR "$LLVM_INFODIR"
34187 cat >>confdefs.h <<_ACEOF
34188 #define LLVM_MANDIR "$LLVM_MANDIR"
34192 cat >>confdefs.h <<_ACEOF
34193 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34197 cat >>confdefs.h <<_ACEOF
34198 #define LLVM_HOSTTRIPLE "$host"
34202 # Determine which bindings to build.
34203 if test "$BINDINGS_TO_BUILD" = auto ; then
34204 BINDINGS_TO_BUILD=""
34205 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34206 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34209 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34212 # This isn't really configurey, but it avoids having to repeat the list in
34217 # Do any work necessary to ensure that bindings have what they need.
34218 binding_prereqs_failed=0
34219 for a_binding in $BINDINGS_TO_BUILD ; do
34220 case "$a_binding" in
34222 if test "x$OCAMLC" = x ; then
34223 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34224 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34225 binding_prereqs_failed=1
34227 if test "x$OCAMLDEP" = x ; then
34228 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34229 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34230 binding_prereqs_failed=1
34232 if test "x$OCAMLOPT" = x ; then
34233 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34234 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34236 if test "x$with_ocaml_libdir" != xauto ; then
34237 OCAML_LIBDIR=$with_ocaml_libdir
34240 ocaml_stdlib="`"$OCAMLC" -where`"
34241 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34243 # ocaml stdlib is beneath our prefix; use stdlib
34244 OCAML_LIBDIR=$ocaml_stdlib
34247 # ocaml stdlib is outside our prefix; use libdir/ocaml
34248 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34255 if test "$binding_prereqs_failed" = 1 ; then
34256 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34257 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34258 { (exit 1); exit 1; }; }
34263 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34265 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34267 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
34269 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
34271 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34274 ac_config_files="$ac_config_files Makefile.config"
34277 ac_config_files="$ac_config_files llvm.spec"
34280 ac_config_files="$ac_config_files docs/doxygen.cfg"
34283 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34286 ac_config_commands="$ac_config_commands setup"
34288 ac_config_commands="$ac_config_commands Makefile"
34291 ac_config_commands="$ac_config_commands Makefile.common"
34294 ac_config_commands="$ac_config_commands examples/Makefile"
34297 ac_config_commands="$ac_config_commands lib/Makefile"
34300 ac_config_commands="$ac_config_commands runtime/Makefile"
34303 ac_config_commands="$ac_config_commands test/Makefile"
34306 ac_config_commands="$ac_config_commands test/Makefile.tests"
34309 ac_config_commands="$ac_config_commands tools/Makefile"
34312 ac_config_commands="$ac_config_commands utils/Makefile"
34315 ac_config_commands="$ac_config_commands projects/Makefile"
34318 ac_config_commands="$ac_config_commands bindings/Makefile"
34321 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34325 cat >confcache <<\_ACEOF
34326 # This file is a shell script that caches the results of configure
34327 # tests run on this system so they can be shared between configure
34328 # scripts and configure runs, see configure's option --config-cache.
34329 # It is not useful on other systems. If it contains results you don't
34330 # want to keep, you may remove or edit it.
34332 # config.status only pays attention to the cache file if you give it
34333 # the --recheck option to rerun configure.
34335 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34336 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34337 # following values.
34341 # The following way of writing the cache mishandles newlines in values,
34342 # but we know of no workaround that is simple, portable, and efficient.
34343 # So, we kill variables containing newlines.
34344 # Ultrix sh set writes to stderr and can't be redirected directly,
34345 # and sets the high bit in the cache file unless we assign to the vars.
34347 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34348 eval ac_val=\$$ac_var
34352 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34353 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34356 _ | IFS | as_nl) ;; #(
34357 *) $as_unset $ac_var ;;
34363 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34364 *${as_nl}ac_space=\ *)
34365 # `set' does not quote correctly, so add quotes (double-quote
34366 # substitution turns \\\\ into \\, and sed turns \\ into \).
34369 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34372 # `set' quotes correctly as required by POSIX, so do not add quotes.
34373 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34382 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34384 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34386 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34387 if test -w "$cache_file"; then
34388 test "x$cache_file" != "x/dev/null" &&
34389 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34390 echo "$as_me: updating cache $cache_file" >&6;}
34391 cat confcache >$cache_file
34393 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34394 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34399 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34400 # Let make expand exec_prefix.
34401 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34403 DEFS=-DHAVE_CONFIG_H
34407 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34408 # 1. Remove the extension, and $U if already installed.
34409 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34410 ac_i=`echo "$ac_i" | sed "$ac_script"`
34411 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34412 # will be set to the directory where LIBOBJS objects are built.
34413 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34414 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34416 LIBOBJS=$ac_libobjs
34418 LTLIBOBJS=$ac_ltlibobjs
34421 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34422 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34423 Usually this means the macro was only invoked conditionally." >&5
34424 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34425 Usually this means the macro was only invoked conditionally." >&2;}
34426 { (exit 1); exit 1; }; }
34428 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34429 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34430 Usually this means the macro was only invoked conditionally." >&5
34431 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34432 Usually this means the macro was only invoked conditionally." >&2;}
34433 { (exit 1); exit 1; }; }
34436 : ${CONFIG_STATUS=./config.status}
34437 ac_clean_files_save=$ac_clean_files
34438 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34439 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34440 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34441 cat >$CONFIG_STATUS <<_ACEOF
34443 # Generated by $as_me.
34444 # Run this file to recreate the current configuration.
34445 # Compiler output produced by configure, useful for debugging
34446 # configure, is in config.log if it exists.
34449 ac_cs_recheck=false
34451 SHELL=\${CONFIG_SHELL-$SHELL}
34454 cat >>$CONFIG_STATUS <<\_ACEOF
34455 ## --------------------- ##
34456 ## M4sh Initialization. ##
34457 ## --------------------- ##
34459 # Be Bourne compatible
34460 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34463 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34464 # is contrary to our usage. Disable this feature.
34465 alias -g '${1+"$@"}'='"$@"'
34466 setopt NO_GLOB_SUBST
34468 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34470 BIN_SH=xpg4; export BIN_SH # for Tru64
34471 DUALCASE=1; export DUALCASE # for MKS sh
34475 # Avoid depending upon Character Ranges.
34476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34479 as_cr_digits='0123456789'
34480 as_cr_alnum=$as_cr_Letters$as_cr_digits
34482 # The user is always right.
34483 if test "${PATH_SEPARATOR+set}" != set; then
34484 echo "#! /bin/sh" >conf$$.sh
34485 echo "exit 0" >>conf$$.sh
34487 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34495 # Support unset when possible.
34496 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34504 # We need space, tab and new line, in precisely that order. Quoting is
34505 # there to prevent editors from complaining about space-tab.
34506 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34507 # splitting by setting IFS to empty value.)
34512 # Find who we are. Look in the path if we contain no directory separator.
34514 *[\\/]* ) as_myself=$0 ;;
34515 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34516 for as_dir in $PATH
34519 test -z "$as_dir" && as_dir=.
34520 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34526 # We did not find ourselves, most probably we were run as `sh COMMAND'
34527 # in which case we are not to be found in the path.
34528 if test "x$as_myself" = x; then
34531 if test ! -f "$as_myself"; then
34532 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34533 { (exit 1); exit 1; }
34536 # Work around bugs in pre-3.0 UWIN ksh.
34537 for as_var in ENV MAIL MAILPATH
34538 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34546 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34547 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34548 LC_TELEPHONE LC_TIME
34550 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34551 eval $as_var=C; export $as_var
34553 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34557 # Required to use basename.
34558 if expr a : '\(a\)' >/dev/null 2>&1 &&
34559 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34565 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34566 as_basename=basename
34572 # Name of the executable.
34573 as_me=`$as_basename -- "$0" ||
34574 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34575 X"$0" : 'X\(//\)$' \| \
34576 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34578 sed '/^.*\/\([^/][^/]*\)\/*$/{
34597 as_lineno_1=$LINENO
34598 as_lineno_2=$LINENO
34599 test "x$as_lineno_1" != "x$as_lineno_2" &&
34600 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34602 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34603 # uniformly replaced by the line number. The first 'sed' inserts a
34604 # line-number line after each line using $LINENO; the second 'sed'
34605 # does the real work. The second script uses 'N' to pair each
34606 # line-number line with the line containing $LINENO, and appends
34607 # trailing '-' during substitution so that $LINENO is not a special
34608 # case at line end.
34609 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34610 # scripts with optimization help from Paolo Bonzini. Blame Lee
34611 # E. McMahon (1931-1989) for sed's syntax. :-)
34623 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34626 ' >$as_me.lineno &&
34627 chmod +x "$as_me.lineno" ||
34628 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34629 { (exit 1); exit 1; }; }
34631 # Don't try to exec as it changes $[0], causing all sort of problems
34632 # (the dirname of $[0] is not the place where we might find the
34633 # original and so on. Autoconf is especially sensitive to this).
34634 . "./$as_me.lineno"
34635 # Exit status is that of the last command.
34640 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34646 ECHO_C= ECHO_N= ECHO_T=
34647 case `echo -n x` in
34649 case `echo 'x\c'` in
34650 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34657 if expr a : '\(a\)' >/dev/null 2>&1 &&
34658 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34664 rm -f conf$$ conf$$.exe conf$$.file
34665 if test -d conf$$.dir; then
34666 rm -f conf$$.dir/conf$$.file
34672 if ln -s conf$$.file conf$$ 2>/dev/null; then
34674 # ... but there are two gotchas:
34675 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34676 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34677 # In both cases, we have to default to `cp -p'.
34678 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34680 elif ln conf$$.file conf$$ 2>/dev/null; then
34685 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34686 rmdir conf$$.dir 2>/dev/null
34688 if mkdir -p . 2>/dev/null; then
34691 test -d ./-p && rmdir ./-p
34695 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34696 # systems may use methods other than mode bits to determine executability.
34697 cat >conf$$.file <<_ASEOF
34701 chmod +x conf$$.file
34702 if test -x conf$$.file >/dev/null 2>&1; then
34703 as_executable_p="test -x"
34709 # Sed expression to map a string onto a valid CPP name.
34710 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34712 # Sed expression to map a string onto a valid variable name.
34713 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34718 # Save the log message, to keep $[0] and so on meaningful, and to
34719 # report actual input values of CONFIG_FILES etc. instead of their
34720 # values after options handling.
34722 This file was extended by llvm $as_me 2.4svn, which was
34723 generated by GNU Autoconf 2.60. Invocation command line was
34725 CONFIG_FILES = $CONFIG_FILES
34726 CONFIG_HEADERS = $CONFIG_HEADERS
34727 CONFIG_LINKS = $CONFIG_LINKS
34728 CONFIG_COMMANDS = $CONFIG_COMMANDS
34731 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34736 cat >>$CONFIG_STATUS <<_ACEOF
34737 # Files that config.status was made for.
34738 config_files="$ac_config_files"
34739 config_headers="$ac_config_headers"
34740 config_commands="$ac_config_commands"
34744 cat >>$CONFIG_STATUS <<\_ACEOF
34746 \`$as_me' instantiates files from templates according to the
34747 current configuration.
34749 Usage: $0 [OPTIONS] [FILE]...
34751 -h, --help print this help, then exit
34752 -V, --version print version number, then exit
34753 -q, --quiet do not print progress messages
34754 -d, --debug don't remove temporary files
34755 --recheck update $as_me by reconfiguring in the same conditions
34756 --file=FILE[:TEMPLATE]
34757 instantiate the configuration file FILE
34758 --header=FILE[:TEMPLATE]
34759 instantiate the configuration header FILE
34761 Configuration files:
34764 Configuration headers:
34767 Configuration commands:
34770 Report bugs to <bug-autoconf@gnu.org>."
34773 cat >>$CONFIG_STATUS <<_ACEOF
34775 llvm config.status 2.4svn
34776 configured by $0, generated by GNU Autoconf 2.60,
34777 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34779 Copyright (C) 2006 Free Software Foundation, Inc.
34780 This config.status script is free software; the Free Software Foundation
34781 gives unlimited permission to copy, distribute and modify it."
34788 cat >>$CONFIG_STATUS <<\_ACEOF
34789 # If no file are specified by the user, then we need to provide default
34790 # value. By we need to know if files were specified by the user.
34796 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34797 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34808 # Handling of the options.
34809 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34811 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34812 echo "$ac_cs_version"; exit ;;
34813 --debug | --debu | --deb | --de | --d | -d )
34815 --file | --fil | --fi | --f )
34817 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34818 ac_need_defaults=false;;
34819 --header | --heade | --head | --hea )
34821 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34822 ac_need_defaults=false;;
34824 # Conflict between --help and --header
34825 { echo "$as_me: error: ambiguous option: $1
34826 Try \`$0 --help' for more information." >&2
34827 { (exit 1); exit 1; }; };;
34828 --help | --hel | -h )
34829 echo "$ac_cs_usage"; exit ;;
34830 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34831 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34834 # This is an error.
34835 -*) { echo "$as_me: error: unrecognized option: $1
34836 Try \`$0 --help' for more information." >&2
34837 { (exit 1); exit 1; }; } ;;
34839 *) ac_config_targets="$ac_config_targets $1"
34840 ac_need_defaults=false ;;
34846 ac_configure_extra_args=
34848 if $ac_cs_silent; then
34850 ac_configure_extra_args="$ac_configure_extra_args --silent"
34854 cat >>$CONFIG_STATUS <<_ACEOF
34855 if \$ac_cs_recheck; then
34856 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34857 CONFIG_SHELL=$SHELL
34858 export CONFIG_SHELL
34859 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34863 cat >>$CONFIG_STATUS <<\_ACEOF
34867 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34868 ## Running $as_me. ##
34874 cat >>$CONFIG_STATUS <<_ACEOF
34878 llvm_src="${srcdir}"
34882 cat >>$CONFIG_STATUS <<\_ACEOF
34884 # Handling of arguments.
34885 for ac_config_target in $ac_config_targets
34887 case $ac_config_target in
34888 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34889 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34890 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
34891 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
34892 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
34893 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34894 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34895 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34896 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34897 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34898 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34899 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34900 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34901 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34902 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34903 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34904 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34905 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34906 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34907 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34908 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34909 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34911 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34912 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34913 { (exit 1); exit 1; }; };;
34918 # If the user did not use the arguments to specify the items to instantiate,
34919 # then the envvar interface is used. Set only those that are not.
34920 # We use the long form for the default assignment because of an extremely
34921 # bizarre bug on SunOS 4.1.3.
34922 if $ac_need_defaults; then
34923 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34924 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34925 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34928 # Have a temporary directory for convenience. Make it in the build tree
34929 # simply because there is no reason against having it here, and in addition,
34930 # creating and moving files from /tmp can sometimes cause problems.
34931 # Hook for its removal unless debugging.
34932 # Note that there is a small window in which the directory will not be cleaned:
34933 # after its creation but before its name has been assigned to `$tmp'.
34937 trap 'exit_status=$?
34938 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34940 trap '{ (exit 1); exit 1; }' 1 2 13 15
34942 # Create a (secure) tmp directory for tmp files.
34945 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34946 test -n "$tmp" && test -d "$tmp"
34949 tmp=./conf$$-$RANDOM
34950 (umask 077 && mkdir "$tmp")
34953 echo "$me: cannot create a temporary directory in ." >&2
34954 { (exit 1); exit 1; }
34958 # Set up the sed scripts for CONFIG_FILES section.
34961 # No need to generate the scripts if there are no CONFIG_FILES.
34962 # This happens for instance when ./config.status config.h
34963 if test -n "$CONFIG_FILES"; then
34970 for ac_last_try in false false false false false :; do
34971 cat >conf$$subs.sed <<_ACEOF
34972 SHELL!$SHELL$ac_delim
34973 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34974 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34975 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34976 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34977 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34978 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34979 exec_prefix!$exec_prefix$ac_delim
34980 prefix!$prefix$ac_delim
34981 program_transform_name!$program_transform_name$ac_delim
34982 bindir!$bindir$ac_delim
34983 sbindir!$sbindir$ac_delim
34984 libexecdir!$libexecdir$ac_delim
34985 datarootdir!$datarootdir$ac_delim
34986 datadir!$datadir$ac_delim
34987 sysconfdir!$sysconfdir$ac_delim
34988 sharedstatedir!$sharedstatedir$ac_delim
34989 localstatedir!$localstatedir$ac_delim
34990 includedir!$includedir$ac_delim
34991 oldincludedir!$oldincludedir$ac_delim
34992 docdir!$docdir$ac_delim
34993 infodir!$infodir$ac_delim
34994 htmldir!$htmldir$ac_delim
34995 dvidir!$dvidir$ac_delim
34996 pdfdir!$pdfdir$ac_delim
34997 psdir!$psdir$ac_delim
34998 libdir!$libdir$ac_delim
34999 localedir!$localedir$ac_delim
35000 mandir!$mandir$ac_delim
35001 DEFS!$DEFS$ac_delim
35002 ECHO_C!$ECHO_C$ac_delim
35003 ECHO_N!$ECHO_N$ac_delim
35004 ECHO_T!$ECHO_T$ac_delim
35005 LIBS!$LIBS$ac_delim
35006 build_alias!$build_alias$ac_delim
35007 host_alias!$host_alias$ac_delim
35008 target_alias!$target_alias$ac_delim
35009 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35010 subdirs!$subdirs$ac_delim
35011 build!$build$ac_delim
35012 build_cpu!$build_cpu$ac_delim
35013 build_vendor!$build_vendor$ac_delim
35014 build_os!$build_os$ac_delim
35015 host!$host$ac_delim
35016 host_cpu!$host_cpu$ac_delim
35017 host_vendor!$host_vendor$ac_delim
35018 host_os!$host_os$ac_delim
35019 target!$target$ac_delim
35020 target_cpu!$target_cpu$ac_delim
35021 target_vendor!$target_vendor$ac_delim
35022 target_os!$target_os$ac_delim
35024 LINKALL!$LINKALL$ac_delim
35025 NOLINKALL!$NOLINKALL$ac_delim
35026 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35027 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35028 ARCH!$ARCH$ac_delim
35029 ENDIAN!$ENDIAN$ac_delim
35031 CFLAGS!$CFLAGS$ac_delim
35032 LDFLAGS!$LDFLAGS$ac_delim
35033 CPPFLAGS!$CPPFLAGS$ac_delim
35034 ac_ct_CC!$ac_ct_CC$ac_delim
35035 EXEEXT!$EXEEXT$ac_delim
35036 OBJEXT!$OBJEXT$ac_delim
35038 GREP!$GREP$ac_delim
35039 EGREP!$EGREP$ac_delim
35040 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35041 BUILD_CC!$BUILD_CC$ac_delim
35042 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35043 CVSBUILD!$CVSBUILD$ac_delim
35044 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35045 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35046 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35047 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35048 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35050 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35051 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35052 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35053 ENABLE_PIC!$ENABLE_PIC$ac_delim
35054 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35055 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35056 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35058 CXXFLAGS!$CXXFLAGS$ac_delim
35059 ac_ct_CXX!$ac_ct_CXX$ac_delim
35061 LEXLIB!$LEXLIB$ac_delim
35062 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35063 FLEX!$FLEX$ac_delim
35064 YACC!$YACC$ac_delim
35065 YFLAGS!$YFLAGS$ac_delim
35066 BISON!$BISON$ac_delim
35068 ifGNUmake!$ifGNUmake$ac_delim
35071 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35073 elif $ac_last_try; then
35074 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35075 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35076 { (exit 1); exit 1; }; }
35078 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35082 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35083 if test -n "$ac_eof"; then
35084 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35085 ac_eof=`expr $ac_eof + 1`
35088 cat >>$CONFIG_STATUS <<_ACEOF
35089 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35090 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35093 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35094 s/^/s,@/; s/!/@,|#_!!_#|/
35097 s/'"$ac_delim"'$/,g/; t
35099 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35100 ' >>$CONFIG_STATUS <conf$$subs.sed
35101 rm -f conf$$subs.sed
35102 cat >>$CONFIG_STATUS <<_ACEOF
35108 for ac_last_try in false false false false false :; do
35109 cat >conf$$subs.sed <<_ACEOF
35110 LN_S!$LN_S$ac_delim
35113 DATE!$DATE$ac_delim
35114 FIND!$FIND$ac_delim
35115 MKDIR!$MKDIR$ac_delim
35117 RANLIB!$RANLIB$ac_delim
35121 BINPWD!$BINPWD$ac_delim
35122 GRAPHVIZ!$GRAPHVIZ$ac_delim
35125 DOTTY!$DOTTY$ac_delim
35126 PERL!$PERL$ac_delim
35127 HAVE_PERL!$HAVE_PERL$ac_delim
35128 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35129 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35130 INSTALL_DATA!$INSTALL_DATA$ac_delim
35131 BZIP2!$BZIP2$ac_delim
35132 DOXYGEN!$DOXYGEN$ac_delim
35133 GROFF!$GROFF$ac_delim
35134 GZIP!$GZIP$ac_delim
35135 POD2HTML!$POD2HTML$ac_delim
35136 POD2MAN!$POD2MAN$ac_delim
35137 RUNTEST!$RUNTEST$ac_delim
35138 TCLSH!$TCLSH$ac_delim
35140 OCAMLC!$OCAMLC$ac_delim
35141 OCAMLOPT!$OCAMLOPT$ac_delim
35142 OCAMLDEP!$OCAMLDEP$ac_delim
35143 OCAMLDOC!$OCAMLDOC$ac_delim
35144 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35145 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35146 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35147 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35148 LIBADD_DL!$LIBADD_DL$ac_delim
35149 ECHO!$ECHO$ac_delim
35151 STRIP!$STRIP$ac_delim
35152 CXXCPP!$CXXCPP$ac_delim
35154 FFLAGS!$FFLAGS$ac_delim
35155 ac_ct_F77!$ac_ct_F77$ac_delim
35156 LIBTOOL!$LIBTOOL$ac_delim
35157 LLVMGCC!$LLVMGCC$ac_delim
35158 LLVMGXX!$LLVMGXX$ac_delim
35159 USE_UDIS86!$USE_UDIS86$ac_delim
35160 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35161 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35162 ALLOCA!$ALLOCA$ac_delim
35163 MMAP_FILE!$MMAP_FILE$ac_delim
35164 LLVMCC1!$LLVMCC1$ac_delim
35165 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35166 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35167 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35168 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35169 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35170 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35171 SHLIBEXT!$SHLIBEXT$ac_delim
35172 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35173 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35174 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35175 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35176 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35177 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35178 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35179 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35180 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35181 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35182 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35183 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35184 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35185 LIBOBJS!$LIBOBJS$ac_delim
35186 LTLIBOBJS!$LTLIBOBJS$ac_delim
35189 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
35191 elif $ac_last_try; then
35192 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35193 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35194 { (exit 1); exit 1; }; }
35196 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35200 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35201 if test -n "$ac_eof"; then
35202 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35203 ac_eof=`expr $ac_eof + 1`
35206 cat >>$CONFIG_STATUS <<_ACEOF
35207 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35208 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35211 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35212 s/^/s,@/; s/!/@,|#_!!_#|/
35215 s/'"$ac_delim"'$/,g/; t
35217 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35218 ' >>$CONFIG_STATUS <conf$$subs.sed
35219 rm -f conf$$subs.sed
35220 cat >>$CONFIG_STATUS <<_ACEOF
35227 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35228 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35229 # trailing colons and then remove the whole line if VPATH becomes empty
35230 # (actually we leave an empty line to preserve line numbers).
35231 if test "x$srcdir" = x.; then
35232 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35233 s/:*\$(srcdir):*/:/
35234 s/:*\${srcdir}:*/:/
35236 s/^\([^=]*=[ ]*\):*/\1/
35242 cat >>$CONFIG_STATUS <<\_ACEOF
35243 fi # test -n "$CONFIG_FILES"
35246 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35249 :[FHLC]) ac_mode=$ac_tag; continue;;
35251 case $ac_mode$ac_tag in
35253 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35254 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35255 { (exit 1); exit 1; }; };;
35256 :[FH]-) ac_tag=-:-;;
35257 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35274 -) ac_f="$tmp/stdin";;
35275 *) # Look for the file first in the build tree, then in the source tree
35276 # (if the path is not absolute). The absolute path cannot be DOS-style,
35277 # because $ac_f cannot contain `:'.
35281 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35283 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35284 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35285 { (exit 1); exit 1; }; };;
35287 ac_file_inputs="$ac_file_inputs $ac_f"
35290 # Let's still pretend it is `configure' which instantiates (i.e., don't
35291 # use $as_me), people would be surprised to read:
35292 # /* config.h. Generated by config.status. */
35293 configure_input="Generated from "`IFS=:
35294 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35295 if test x"$ac_file" != x-; then
35296 configure_input="$ac_file. $configure_input"
35297 { echo "$as_me:$LINENO: creating $ac_file" >&5
35298 echo "$as_me: creating $ac_file" >&6;}
35302 *:-:* | *:-) cat >"$tmp/stdin";;
35307 ac_dir=`$as_dirname -- "$ac_file" ||
35308 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35309 X"$ac_file" : 'X\(//\)[^/]' \| \
35310 X"$ac_file" : 'X\(//\)$' \| \
35311 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35317 /^X\(\/\/\)[^/].*/{
35332 -*) as_dir=./$as_dir;;
35334 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35338 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35339 *) as_qdir=$as_dir;;
35341 as_dirs="'$as_qdir' $as_dirs"
35342 as_dir=`$as_dirname -- "$as_dir" ||
35343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35344 X"$as_dir" : 'X\(//\)[^/]' \| \
35345 X"$as_dir" : 'X\(//\)$' \| \
35346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35352 /^X\(\/\/\)[^/].*/{
35365 test -d "$as_dir" && break
35367 test -z "$as_dirs" || eval "mkdir $as_dirs"
35368 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35369 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35370 { (exit 1); exit 1; }; }; }
35374 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35376 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35377 # A ".." for each directory in $ac_dir_suffix.
35378 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35379 case $ac_top_builddir_sub in
35380 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35381 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35384 ac_abs_top_builddir=$ac_pwd
35385 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35386 # for backward compatibility:
35387 ac_top_builddir=$ac_top_build_prefix
35390 .) # We are building in place.
35392 ac_top_srcdir=$ac_top_builddir_sub
35393 ac_abs_top_srcdir=$ac_pwd ;;
35394 [\\/]* | ?:[\\/]* ) # Absolute name.
35395 ac_srcdir=$srcdir$ac_dir_suffix;
35396 ac_top_srcdir=$srcdir
35397 ac_abs_top_srcdir=$srcdir ;;
35398 *) # Relative name.
35399 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35400 ac_top_srcdir=$ac_top_build_prefix$srcdir
35401 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35403 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35413 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35414 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35418 cat >>$CONFIG_STATUS <<\_ACEOF
35419 # If the template does not know about datarootdir, expand it.
35420 # FIXME: This hack should be removed a few years after 2.60.
35421 ac_datarootdir_hack=; ac_datarootdir_seen=
35423 case `sed -n '/datarootdir/ {
35432 ' $ac_file_inputs` in
35433 *datarootdir*) ac_datarootdir_seen=yes;;
35434 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35435 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35436 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35438 cat >>$CONFIG_STATUS <<_ACEOF
35439 ac_datarootdir_hack='
35440 s&@datadir@&$datadir&g
35441 s&@docdir@&$docdir&g
35442 s&@infodir@&$infodir&g
35443 s&@localedir@&$localedir&g
35444 s&@mandir@&$mandir&g
35445 s&\\\${datarootdir}&$datarootdir&g' ;;
35449 # Neutralize VPATH when `$srcdir' = `.'.
35450 # Shell code in configure.ac might set extrasub.
35451 # FIXME: do we really want to maintain this feature?
35452 cat >>$CONFIG_STATUS <<_ACEOF
35456 cat >>$CONFIG_STATUS <<\_ACEOF
35458 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35459 s&@configure_input@&$configure_input&;t t
35460 s&@top_builddir@&$ac_top_builddir_sub&;t t
35461 s&@srcdir@&$ac_srcdir&;t t
35462 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35463 s&@top_srcdir@&$ac_top_srcdir&;t t
35464 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35465 s&@builddir@&$ac_builddir&;t t
35466 s&@abs_builddir@&$ac_abs_builddir&;t t
35467 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35468 s&@INSTALL@&$ac_INSTALL&;t t
35469 $ac_datarootdir_hack
35470 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35472 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35473 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35474 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35475 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35476 which seems to be undefined. Please make sure it is defined." >&5
35477 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35478 which seems to be undefined. Please make sure it is defined." >&2;}
35482 -) cat "$tmp/out"; rm -f "$tmp/out";;
35483 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35492 # Transform confdefs.h into a sed script `conftest.defines', that
35493 # substitutes the proper values into config.h.in to produce config.h.
35494 rm -f conftest.defines conftest.tail
35495 # First, append a space to every undef/define line, to ease matching.
35496 echo 's/$/ /' >conftest.defines
35497 # Then, protect against being on the right side of a sed subst, or in
35498 # an unquoted here document, in config.status. If some macros were
35499 # called several times there might be several #defines for the same
35500 # symbol, which is useless. But do not sort them, since the last
35501 # AC_DEFINE must be honored.
35502 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35503 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35504 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35505 # PARAMS is the parameter list in the macro definition--in most cases, it's
35506 # just an empty string.
35507 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35508 ac_dB='\\)[ (].*,\\1define\\2'
35516 s/^[ ]*#[ ]*define[ ][ ]*//
35521 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35522 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35523 ' >>conftest.defines
35525 # Remove the space that was appended to ease matching.
35526 # Then replace #undef with comments. This is necessary, for
35527 # example, in the case of _POSIX_SOURCE, which is predefined and required
35528 # on some systems where configure will not decide to define it.
35529 # (The regexp can be short, since the line contains either #define or #undef.)
35531 s,^[ #]*u.*,/* & */,' >>conftest.defines
35533 # Break up conftest.defines:
35534 ac_max_sed_lines=50
35536 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35537 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35538 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35540 ac_in='$ac_file_inputs'
35541 ac_out='"$tmp/out1"'
35542 ac_nxt='"$tmp/out2"'
35546 # Write a here document:
35547 cat >>$CONFIG_STATUS <<_ACEOF
35548 # First, check the format of the line:
35549 cat >"\$tmp/defines.sed" <<\\CEOF
35550 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35551 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35555 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35557 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35558 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35559 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35560 grep . conftest.tail >/dev/null || break
35561 rm -f conftest.defines
35562 mv conftest.tail conftest.defines
35564 rm -f conftest.defines conftest.tail
35566 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35567 cat >>$CONFIG_STATUS <<\_ACEOF
35568 if test x"$ac_file" != x-; then
35569 echo "/* $configure_input */" >"$tmp/config.h"
35570 cat "$ac_result" >>"$tmp/config.h"
35571 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35572 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35573 echo "$as_me: $ac_file is unchanged" >&6;}
35576 mv "$tmp/config.h" $ac_file
35579 echo "/* $configure_input */"
35585 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35586 echo "$as_me: executing $ac_file commands" >&6;}
35591 case $ac_file$ac_mode in
35592 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35593 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35594 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35595 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35596 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35597 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35598 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35599 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35600 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35601 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35602 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35603 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35604 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35605 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35606 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35607 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35608 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35609 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35610 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35611 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35612 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35613 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35614 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35615 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35621 { (exit 0); exit 0; }
35623 chmod +x $CONFIG_STATUS
35624 ac_clean_files=$ac_clean_files_save
35627 # configure is writing to config.log, and then calls config.status.
35628 # config.status does its own redirection, appending to config.log.
35629 # Unfortunately, on DOS this fails, as config.log is still kept open
35630 # by configure, so config.status won't be able to write to it; its
35631 # output is simply discarded. So we exec the FD to /dev/null,
35632 # effectively closing config.log, so it can be properly (re)opened and
35633 # appended to by config.status. When coming back to configure, we
35634 # need to make the FD available again.
35635 if test "$no_create" != yes; then
35637 ac_config_status_args=
35638 test "$silent" = yes &&
35639 ac_config_status_args="$ac_config_status_args --quiet"
35641 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35643 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35644 # would make configure fail if this is the last instruction.
35645 $ac_cs_success || { (exit 1); exit 1; }
35649 # CONFIG_SUBDIRS section.
35651 if test "$no_recursion" != yes; then
35653 # Remove --cache-file and --srcdir arguments so they do not pile up.
35654 ac_sub_configure_args=
35656 eval "set x $ac_configure_args"
35660 if test -n "$ac_prev"; then
35665 -cache-file | --cache-file | --cache-fil | --cache-fi \
35666 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35667 ac_prev=cache_file ;;
35668 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35669 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35672 --config-cache | -C)
35674 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35676 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35678 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35680 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35684 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35686 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35690 # Always prepend --prefix to ensure using the same prefix
35691 # in subdir configurations.
35692 ac_arg="--prefix=$prefix"
35694 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35696 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35699 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35701 # Do not complain, so a configure script can configure whichever
35702 # parts of a large source tree are present.
35703 test -d "$srcdir/$ac_dir" || continue
35705 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35706 echo "$as_me:$LINENO: $ac_msg" >&5
35710 -*) as_dir=./$as_dir;;
35712 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35716 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35717 *) as_qdir=$as_dir;;
35719 as_dirs="'$as_qdir' $as_dirs"
35720 as_dir=`$as_dirname -- "$as_dir" ||
35721 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35722 X"$as_dir" : 'X\(//\)[^/]' \| \
35723 X"$as_dir" : 'X\(//\)$' \| \
35724 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35730 /^X\(\/\/\)[^/].*/{
35743 test -d "$as_dir" && break
35745 test -z "$as_dirs" || eval "mkdir $as_dirs"
35746 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35747 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35748 { (exit 1); exit 1; }; }; }
35752 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35754 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35755 # A ".." for each directory in $ac_dir_suffix.
35756 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35757 case $ac_top_builddir_sub in
35758 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35759 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35762 ac_abs_top_builddir=$ac_pwd
35763 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35764 # for backward compatibility:
35765 ac_top_builddir=$ac_top_build_prefix
35768 .) # We are building in place.
35770 ac_top_srcdir=$ac_top_builddir_sub
35771 ac_abs_top_srcdir=$ac_pwd ;;
35772 [\\/]* | ?:[\\/]* ) # Absolute name.
35773 ac_srcdir=$srcdir$ac_dir_suffix;
35774 ac_top_srcdir=$srcdir
35775 ac_abs_top_srcdir=$srcdir ;;
35776 *) # Relative name.
35777 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35778 ac_top_srcdir=$ac_top_build_prefix$srcdir
35779 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35781 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35786 # Check for guested configure; otherwise get Cygnus style configure.
35787 if test -f "$ac_srcdir/configure.gnu"; then
35788 ac_sub_configure=$ac_srcdir/configure.gnu
35789 elif test -f "$ac_srcdir/configure"; then
35790 ac_sub_configure=$ac_srcdir/configure
35791 elif test -f "$ac_srcdir/configure.in"; then
35792 # This should be Cygnus configure.
35793 ac_sub_configure=$ac_aux_dir/configure
35795 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35796 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35800 # The recursion is here.
35801 if test -n "$ac_sub_configure"; then
35802 # Make the cache file name correct relative to the subdirectory.
35803 case $cache_file in
35804 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35805 *) # Relative name.
35806 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35809 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35810 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35811 # The eval makes quoting arguments work.
35812 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35813 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35814 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35815 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35816 { (exit 1); exit 1; }; }