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
958 projects/llvm-poolalloc
960 projects/llvm-kernel'
962 # Initialize some variables set by options.
964 ac_init_version=false
965 # The variables have the same names as the options, with
966 # dashes changed to underlines.
974 program_transform_name=s,x,x,
982 # Installation directory options.
983 # These are left unexpanded so users can "make install exec_prefix=/foo"
984 # and all the variables that are supposed to be based on exec_prefix
985 # by default will actually change.
986 # Use braces instead of parens because sh, perl, etc. also accept them.
987 # (The list follows the same order as the GNU Coding Standards.)
988 bindir='${exec_prefix}/bin'
989 sbindir='${exec_prefix}/sbin'
990 libexecdir='${exec_prefix}/libexec'
991 datarootdir='${prefix}/share'
992 datadir='${datarootdir}'
993 sysconfdir='${prefix}/etc'
994 sharedstatedir='${prefix}/com'
995 localstatedir='${prefix}/var'
996 includedir='${prefix}/include'
997 oldincludedir='/usr/include'
998 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
999 infodir='${datarootdir}/info'
1004 libdir='${exec_prefix}/lib'
1005 localedir='${datarootdir}/locale'
1006 mandir='${datarootdir}/man'
1012 # If the previous option needs an argument, assign it.
1013 if test -n "$ac_prev"; then
1014 eval $ac_prev=\$ac_option
1020 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1024 # Accept the important Cygnus configure options, so we can diagnose typos.
1026 case $ac_dashdash$ac_option in
1030 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1033 bindir=$ac_optarg ;;
1035 -build | --build | --buil | --bui | --bu)
1036 ac_prev=build_alias ;;
1037 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1038 build_alias=$ac_optarg ;;
1040 -cache-file | --cache-file | --cache-fil | --cache-fi \
1041 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1042 ac_prev=cache_file ;;
1043 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1044 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1045 cache_file=$ac_optarg ;;
1047 --config-cache | -C)
1048 cache_file=config.cache ;;
1050 -datadir | --datadir | --datadi | --datad)
1052 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1053 datadir=$ac_optarg ;;
1055 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1056 | --dataroo | --dataro | --datar)
1057 ac_prev=datarootdir ;;
1058 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1059 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1060 datarootdir=$ac_optarg ;;
1062 -disable-* | --disable-*)
1063 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1066 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1067 { (exit 1); exit 1; }; }
1068 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1069 eval enable_$ac_feature=no ;;
1071 -docdir | --docdir | --docdi | --doc | --do)
1073 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074 docdir=$ac_optarg ;;
1076 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079 dvidir=$ac_optarg ;;
1081 -enable-* | --enable-*)
1082 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1085 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1086 { (exit 1); exit 1; }; }
1087 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1088 eval enable_$ac_feature=\$ac_optarg ;;
1090 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092 | --exec | --exe | --ex)
1093 ac_prev=exec_prefix ;;
1094 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096 | --exec=* | --exe=* | --ex=*)
1097 exec_prefix=$ac_optarg ;;
1099 -gas | --gas | --ga | --g)
1100 # Obsolete; use --with-gas.
1103 -help | --help | --hel | --he | -h)
1104 ac_init_help=long ;;
1105 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106 ac_init_help=recursive ;;
1107 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108 ac_init_help=short ;;
1110 -host | --host | --hos | --ho)
1111 ac_prev=host_alias ;;
1112 -host=* | --host=* | --hos=* | --ho=*)
1113 host_alias=$ac_optarg ;;
1115 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 htmldir=$ac_optarg ;;
1121 -includedir | --includedir | --includedi | --included | --include \
1122 | --includ | --inclu | --incl | --inc)
1123 ac_prev=includedir ;;
1124 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125 | --includ=* | --inclu=* | --incl=* | --inc=*)
1126 includedir=$ac_optarg ;;
1128 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131 infodir=$ac_optarg ;;
1133 -libdir | --libdir | --libdi | --libd)
1135 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136 libdir=$ac_optarg ;;
1138 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139 | --libexe | --libex | --libe)
1140 ac_prev=libexecdir ;;
1141 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142 | --libexe=* | --libex=* | --libe=*)
1143 libexecdir=$ac_optarg ;;
1145 -localedir | --localedir | --localedi | --localed | --locale)
1146 ac_prev=localedir ;;
1147 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148 localedir=$ac_optarg ;;
1150 -localstatedir | --localstatedir | --localstatedi | --localstated \
1151 | --localstate | --localstat | --localsta | --localst | --locals)
1152 ac_prev=localstatedir ;;
1153 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155 localstatedir=$ac_optarg ;;
1157 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160 mandir=$ac_optarg ;;
1162 -nfp | --nfp | --nf)
1163 # Obsolete; use --without-fp.
1166 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167 | --no-cr | --no-c | -n)
1170 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176 | --oldin | --oldi | --old | --ol | --o)
1177 ac_prev=oldincludedir ;;
1178 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181 oldincludedir=$ac_optarg ;;
1183 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186 prefix=$ac_optarg ;;
1188 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189 | --program-pre | --program-pr | --program-p)
1190 ac_prev=program_prefix ;;
1191 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193 program_prefix=$ac_optarg ;;
1195 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196 | --program-suf | --program-su | --program-s)
1197 ac_prev=program_suffix ;;
1198 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200 program_suffix=$ac_optarg ;;
1202 -program-transform-name | --program-transform-name \
1203 | --program-transform-nam | --program-transform-na \
1204 | --program-transform-n | --program-transform- \
1205 | --program-transform | --program-transfor \
1206 | --program-transfo | --program-transf \
1207 | --program-trans | --program-tran \
1208 | --progr-tra | --program-tr | --program-t)
1209 ac_prev=program_transform_name ;;
1210 -program-transform-name=* | --program-transform-name=* \
1211 | --program-transform-nam=* | --program-transform-na=* \
1212 | --program-transform-n=* | --program-transform-=* \
1213 | --program-transform=* | --program-transfor=* \
1214 | --program-transfo=* | --program-transf=* \
1215 | --program-trans=* | --program-tran=* \
1216 | --progr-tra=* | --program-tr=* | --program-t=*)
1217 program_transform_name=$ac_optarg ;;
1219 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222 pdfdir=$ac_optarg ;;
1224 -psdir | --psdir | --psdi | --psd | --ps)
1226 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230 | -silent | --silent | --silen | --sile | --sil)
1233 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 sbindir=$ac_optarg ;;
1239 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241 | --sharedst | --shareds | --shared | --share | --shar \
1243 ac_prev=sharedstatedir ;;
1244 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 sharedstatedir=$ac_optarg ;;
1250 -site | --site | --sit)
1252 -site=* | --site=* | --sit=*)
1255 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258 srcdir=$ac_optarg ;;
1260 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261 | --syscon | --sysco | --sysc | --sys | --sy)
1262 ac_prev=sysconfdir ;;
1263 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265 sysconfdir=$ac_optarg ;;
1267 -target | --target | --targe | --targ | --tar | --ta | --t)
1268 ac_prev=target_alias ;;
1269 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270 target_alias=$ac_optarg ;;
1272 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275 -version | --version | --versio | --versi | --vers | -V)
1276 ac_init_version=: ;;
1279 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1282 { echo "$as_me: error: invalid package name: $ac_package" >&2
1283 { (exit 1); exit 1; }; }
1284 ac_package=`echo $ac_package| sed 's/-/_/g'`
1285 eval with_$ac_package=\$ac_optarg ;;
1287 -without-* | --without-*)
1288 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1291 { echo "$as_me: error: invalid package name: $ac_package" >&2
1292 { (exit 1); exit 1; }; }
1293 ac_package=`echo $ac_package | sed 's/-/_/g'`
1294 eval with_$ac_package=no ;;
1297 # Obsolete; use --with-x.
1300 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1301 | --x-incl | --x-inc | --x-in | --x-i)
1302 ac_prev=x_includes ;;
1303 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1304 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1305 x_includes=$ac_optarg ;;
1307 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1308 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1309 ac_prev=x_libraries ;;
1310 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1311 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1312 x_libraries=$ac_optarg ;;
1314 -*) { echo "$as_me: error: unrecognized option: $ac_option
1315 Try \`$0 --help' for more information." >&2
1316 { (exit 1); exit 1; }; }
1320 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1323 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1324 { (exit 1); exit 1; }; }
1325 eval $ac_envvar=\$ac_optarg
1326 export $ac_envvar ;;
1329 # FIXME: should be removed in autoconf 3.0.
1330 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1331 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1332 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1333 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1339 if test -n "$ac_prev"; then
1340 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1341 { echo "$as_me: error: missing argument to $ac_option" >&2
1342 { (exit 1); exit 1; }; }
1345 # Be sure to have absolute directory names.
1346 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347 datadir sysconfdir sharedstatedir localstatedir includedir \
1348 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349 libdir localedir mandir
1351 eval ac_val=\$$ac_var
1353 [\\/$]* | ?:[\\/]* ) continue;;
1354 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1356 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1357 { (exit 1); exit 1; }; }
1360 # There might be people who depend on the old broken behavior: `$host'
1361 # used to hold the argument of --host etc.
1362 # FIXME: To remove some day.
1365 target=$target_alias
1367 # FIXME: To remove some day.
1368 if test "x$host_alias" != x; then
1369 if test "x$build_alias" = x; then
1370 cross_compiling=maybe
1371 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1372 If a cross compiler is detected then cross compile mode will be used." >&2
1373 elif test "x$build_alias" != "x$host_alias"; then
1379 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381 test "$silent" = yes && exec 6>/dev/null
1384 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385 ac_ls_di=`ls -di .` &&
1386 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387 { echo "$as_me: error: Working directory cannot be determined" >&2
1388 { (exit 1); exit 1; }; }
1389 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390 { echo "$as_me: error: pwd does not report name of working directory" >&2
1391 { (exit 1); exit 1; }; }
1394 # Find the source files, if location was not specified.
1395 if test -z "$srcdir"; then
1396 ac_srcdir_defaulted=yes
1397 # Try the directory containing this script, then the parent directory.
1398 ac_confdir=`$as_dirname -- "$0" ||
1399 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1400 X"$0" : 'X\(//\)[^/]' \| \
1401 X"$0" : 'X\(//\)$' \| \
1402 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1426 ac_srcdir_defaulted=no
1428 if test ! -r "$srcdir/$ac_unique_file"; then
1429 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1430 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1431 { (exit 1); exit 1; }; }
1433 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1436 { (exit 1); exit 1; }; }
1438 # When building in place, set srcdir=.
1439 if test "$ac_abs_confdir" = "$ac_pwd"; then
1442 # Remove unnecessary trailing slashes from srcdir.
1443 # Double slashes in file names in object file debugging info
1444 # mess up M-x gdb in Emacs.
1446 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448 for ac_var in $ac_precious_vars; do
1449 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_env_${ac_var}_value=\$${ac_var}
1451 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456 # Report the --help message.
1458 if test "$ac_init_help" = "long"; then
1459 # Omit some internal or obsolete options to make the list less imposing.
1460 # This message is too long to be a string in the A/UX 3.1 sh.
1462 \`configure' configures llvm 2.4svn to adapt to many kinds of systems.
1464 Usage: $0 [OPTION]... [VAR=VALUE]...
1466 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467 VAR=VALUE. See below for descriptions of some of the useful variables.
1469 Defaults for the options are specified in brackets.
1472 -h, --help display this help and exit
1473 --help=short display options specific to this package
1474 --help=recursive display the short help of all the included packages
1475 -V, --version display version information and exit
1476 -q, --quiet, --silent do not print \`checking...' messages
1477 --cache-file=FILE cache test results in FILE [disabled]
1478 -C, --config-cache alias for \`--cache-file=config.cache'
1479 -n, --no-create do not create output files
1480 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1482 Installation directories:
1483 --prefix=PREFIX install architecture-independent files in PREFIX
1484 [$ac_default_prefix]
1485 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1488 By default, \`make install' will install all the files in
1489 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1490 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491 for instance \`--prefix=\$HOME'.
1493 For better control, use the options below.
1495 Fine tuning of the installation directories:
1496 --bindir=DIR user executables [EPREFIX/bin]
1497 --sbindir=DIR system admin executables [EPREFIX/sbin]
1498 --libexecdir=DIR program executables [EPREFIX/libexec]
1499 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1500 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1501 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1502 --libdir=DIR object code libraries [EPREFIX/lib]
1503 --includedir=DIR C header files [PREFIX/include]
1504 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1505 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1506 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1507 --infodir=DIR info documentation [DATAROOTDIR/info]
1508 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1509 --mandir=DIR man documentation [DATAROOTDIR/man]
1510 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1511 --htmldir=DIR html documentation [DOCDIR]
1512 --dvidir=DIR dvi documentation [DOCDIR]
1513 --pdfdir=DIR pdf documentation [DOCDIR]
1514 --psdir=DIR ps documentation [DOCDIR]
1520 --build=BUILD configure for building on BUILD [guessed]
1521 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1522 --target=TARGET configure for building compilers for TARGET [HOST]
1526 if test -n "$ac_init_help"; then
1527 case $ac_init_help in
1528 short | recursive ) echo "Configuration of llvm 2.4svn:";;
1533 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1534 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1537 --enable-expensive-checks
1539 --enable-debug-runtime
1540 --enable-jit Enable Just In Time Compiling (default is YES)
1541 --enable-doxygen Build doxygen documentation (default is NO)
1542 --enable-threads Use threads if available (default is YES)
1543 --enable-pic Build LLVM with Position Independent Code (default
1545 --enable-targets Build specific host targets:
1546 all,host-only,{target-name} (default=all)
1547 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1549 --enable-bindings Build specific language bindings:
1550 all,auto,none,{binding-name} (default=auto)
1551 --enable-ltdl-install install libltdl
1552 --enable-shared[=PKGS] build shared libraries
1554 --enable-static[=PKGS] build static libraries
1556 --enable-fast-install[=PKGS]
1557 optimize for fast installation
1559 --disable-libtool-lock avoid locking (might break parallel builds)
1562 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1563 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1564 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1566 --with-llvmgcc Specify location of llvm-gcc driver (default
1568 --with-llvmgxx Specify location of llvm-g++ driver (default
1570 --with-extra-options Specify addtional options to compile LLVM with
1571 --with-ocaml-libdir Specify install location for ocaml bindings (default
1573 --with-tclinclude directory where tcl headers are
1574 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1575 --with-pic try to use only PIC/non-PIC objects [default=use
1577 --with-tags[=TAGS] include additional configurations [automatic]
1578 --with-udis86=<path> Use udis86 external x86 disassembler library
1580 Some influential environment variables:
1581 CC C compiler command
1582 CFLAGS C compiler flags
1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
1585 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1586 you have headers in a nonstandard directory <include dir>
1588 CXX C++ compiler command
1589 CXXFLAGS C++ compiler flags
1590 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1591 the first program found out of: `bison -y', `byacc', `yacc'.
1592 YFLAGS The list of arguments that will be passed by default to $YACC.
1593 This script will default YFLAGS to the empty string to avoid a
1594 default value of `-d' given by some make applications.
1595 CXXCPP C++ preprocessor
1596 F77 Fortran 77 compiler command
1597 FFLAGS Fortran 77 compiler flags
1599 Use these variables to override the choices made by `configure' or to help
1600 it to find libraries and programs with nonstandard names/locations.
1602 Report bugs to <llvmbugs@cs.uiuc.edu>.
1607 if test "$ac_init_help" = "recursive"; then
1608 # If there are subdirs, report their specific --help.
1609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1610 test -d "$ac_dir" || continue
1614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1617 # A ".." for each directory in $ac_dir_suffix.
1618 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1619 case $ac_top_builddir_sub in
1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1624 ac_abs_top_builddir=$ac_pwd
1625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626 # for backward compatibility:
1627 ac_top_builddir=$ac_top_build_prefix
1630 .) # We are building in place.
1632 ac_top_srcdir=$ac_top_builddir_sub
1633 ac_abs_top_srcdir=$ac_pwd ;;
1634 [\\/]* | ?:[\\/]* ) # Absolute name.
1635 ac_srcdir=$srcdir$ac_dir_suffix;
1636 ac_top_srcdir=$srcdir
1637 ac_abs_top_srcdir=$srcdir ;;
1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640 ac_top_srcdir=$ac_top_build_prefix$srcdir
1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1645 cd "$ac_dir" || { ac_status=$?; continue; }
1646 # Check for guested configure.
1647 if test -f "$ac_srcdir/configure.gnu"; then
1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650 elif test -f "$ac_srcdir/configure"; then
1652 $SHELL "$ac_srcdir/configure" --help=recursive
1654 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1656 cd "$ac_pwd" || { ac_status=$?; break; }
1660 test -n "$ac_init_help" && exit $ac_status
1661 if $ac_init_version; then
1663 llvm configure 2.4svn
1664 generated by GNU Autoconf 2.60
1666 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1667 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1668 This configure script is free software; the Free Software Foundation
1669 gives unlimited permission to copy, distribute and modify it.
1671 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1675 cat >config.log <<_ACEOF
1676 This file contains any messages produced by compilers while
1677 running configure, to aid debugging if configure makes a mistake.
1679 It was created by llvm $as_me 2.4svn, which was
1680 generated by GNU Autoconf 2.60. Invocation command line was
1692 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1693 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1694 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1695 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1696 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1698 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1699 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1701 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1702 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1703 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1704 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1705 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1706 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1707 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 test -z "$as_dir" && as_dir=.
1716 echo "PATH: $as_dir"
1732 # Keep a trace of the command line.
1733 # Strip out --no-create and --no-recursion so they do not pile up.
1734 # Strip out --silent because we don't want to record it for future runs.
1735 # Also quote any args containing shell meta-characters.
1736 # Make two passes to allow for proper duplicate-argument suppression.
1740 ac_must_keep_next=false
1746 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1747 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1748 | -silent | --silent | --silen | --sile | --sil)
1751 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1754 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1756 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1757 if test $ac_must_keep_next = true; then
1758 ac_must_keep_next=false # Got value, back to normal.
1761 *=* | --config-cache | -C | -disable-* | --disable-* \
1762 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1763 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1764 | -with-* | --with-* | -without-* | --without-* | --x)
1765 case "$ac_configure_args0 " in
1766 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1769 -* ) ac_must_keep_next=true ;;
1772 ac_configure_args="$ac_configure_args '$ac_arg'"
1777 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1778 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1780 # When interrupted or exit'd, cleanup temporary files, and complete
1781 # config.log. We remove comments because anyway the quotes in there
1782 # would cause problems or look ugly.
1783 # WARNING: Use '\'' to represent an apostrophe within the trap.
1784 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1785 trap 'exit_status=$?
1786 # Save into config.log some information that might help in debugging.
1791 ## ---------------- ##
1792 ## Cache variables. ##
1793 ## ---------------- ##
1796 # The following way of writing the cache mishandles newlines in values,
1798 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1799 eval ac_val=\$$ac_var
1803 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1804 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1807 _ | IFS | as_nl) ;; #(
1808 *) $as_unset $ac_var ;;
1813 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1814 *${as_nl}ac_space=\ *)
1816 "s/'\''/'\''\\\\'\'''\''/g;
1817 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1820 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1828 ## ----------------- ##
1829 ## Output variables. ##
1830 ## ----------------- ##
1833 for ac_var in $ac_subst_vars
1835 eval ac_val=\$$ac_var
1837 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1839 echo "$ac_var='\''$ac_val'\''"
1843 if test -n "$ac_subst_files"; then
1845 ## ------------------- ##
1846 ## File substitutions. ##
1847 ## ------------------- ##
1850 for ac_var in $ac_subst_files
1852 eval ac_val=\$$ac_var
1854 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1856 echo "$ac_var='\''$ac_val'\''"
1861 if test -s confdefs.h; then
1871 test "$ac_signal" != 0 &&
1872 echo "$as_me: caught signal $ac_signal"
1873 echo "$as_me: exit $exit_status"
1875 rm -f core *.core core.conftest.* &&
1876 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1879 for ac_signal in 1 2 13 15; do
1880 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1884 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1885 rm -f -r conftest* confdefs.h
1887 # Predefined preprocessor variables.
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_NAME "$PACKAGE_NAME"
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_STRING "$PACKAGE_STRING"
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1914 # Let the site file select an alternate cache file if it wants to.
1915 # Prefer explicitly selected file to automatically selected ones.
1916 if test -n "$CONFIG_SITE"; then
1917 set x "$CONFIG_SITE"
1918 elif test "x$prefix" != xNONE; then
1919 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1921 set x "$ac_default_prefix/share/config.site" \
1922 "$ac_default_prefix/etc/config.site"
1927 if test -r "$ac_site_file"; then
1928 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1929 echo "$as_me: loading site script $ac_site_file" >&6;}
1930 sed 's/^/| /' "$ac_site_file" >&5
1935 if test -r "$cache_file"; then
1936 # Some versions of bash will fail to source /dev/null (special
1937 # files actually), so we avoid doing that.
1938 if test -f "$cache_file"; then
1939 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1940 echo "$as_me: loading cache $cache_file" >&6;}
1942 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1943 *) . "./$cache_file";;
1947 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1948 echo "$as_me: creating cache $cache_file" >&6;}
1952 # Check that the precious variables saved in the cache have kept the same
1954 ac_cache_corrupted=false
1955 for ac_var in $ac_precious_vars; do
1956 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1957 eval ac_new_set=\$ac_env_${ac_var}_set
1958 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1959 eval ac_new_val=\$ac_env_${ac_var}_value
1960 case $ac_old_set,$ac_new_set in
1962 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1963 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1964 ac_cache_corrupted=: ;;
1966 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1967 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1968 ac_cache_corrupted=: ;;
1971 if test "x$ac_old_val" != "x$ac_new_val"; then
1972 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1973 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1974 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1975 echo "$as_me: former value: $ac_old_val" >&2;}
1976 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1977 echo "$as_me: current value: $ac_new_val" >&2;}
1978 ac_cache_corrupted=:
1981 # Pass precious variables to config.status.
1982 if test "$ac_new_set" = set; then
1984 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1985 *) ac_arg=$ac_var=$ac_new_val ;;
1987 case " $ac_configure_args " in
1988 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1989 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1993 if $ac_cache_corrupted; then
1994 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1995 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1996 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1997 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1998 { (exit 1); exit 1; }; }
2026 ac_cpp='$CPP $CPPFLAGS'
2027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2033 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2042 for ac_dir in autoconf "$srcdir"/autoconf; do
2043 if test -f "$ac_dir/install-sh"; then
2045 ac_install_sh="$ac_aux_dir/install-sh -c"
2047 elif test -f "$ac_dir/install.sh"; then
2049 ac_install_sh="$ac_aux_dir/install.sh -c"
2051 elif test -f "$ac_dir/shtool"; then
2053 ac_install_sh="$ac_aux_dir/shtool install -c"
2057 if test -z "$ac_aux_dir"; then
2058 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2059 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2060 { (exit 1); exit 1; }; }
2063 # These three variables are undocumented and unsupported,
2064 # and are intended to be withdrawn in a future Autoconf release.
2065 # They can cause serious problems if a builder's source tree is in a directory
2066 # whose full name contains unusual characters.
2067 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2068 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2069 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2073 if test ${srcdir} != "." ; then
2074 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2075 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2076 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2077 { (exit 1); exit 1; }; }
2081 for i in `ls ${srcdir}/projects`
2083 if test -d ${srcdir}/projects/${i} ; then
2086 sample) subdirs="$subdirs projects/sample"
2088 privbracket) subdirs="$subdirs projects/privbracket"
2090 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2092 llvm-test) subdirs="$subdirs projects/llvm-test"
2094 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2096 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2098 llvm-java) subdirs="$subdirs projects/llvm-java"
2100 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2102 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2104 poolalloc) subdirs="$subdirs projects/poolalloc"
2106 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2109 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2110 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2117 # Make sure we can run config.sub.
2118 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2119 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2120 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2121 { (exit 1); exit 1; }; }
2123 { echo "$as_me:$LINENO: checking build system type" >&5
2124 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2125 if test "${ac_cv_build+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2128 ac_build_alias=$build_alias
2129 test "x$ac_build_alias" = x &&
2130 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2131 test "x$ac_build_alias" = x &&
2132 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2133 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2134 { (exit 1); exit 1; }; }
2135 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2136 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2137 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2138 { (exit 1); exit 1; }; }
2141 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2142 echo "${ECHO_T}$ac_cv_build" >&6; }
2143 case $ac_cv_build in
2145 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2146 echo "$as_me: error: invalid value of canonical build" >&2;}
2147 { (exit 1); exit 1; }; };;
2150 ac_save_IFS=$IFS; IFS='-'
2156 # Remember, the first character of IFS is used to create $*,
2157 # except with old shells:
2160 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2163 { echo "$as_me:$LINENO: checking host system type" >&5
2164 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2165 if test "${ac_cv_host+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 if test "x$host_alias" = x; then
2169 ac_cv_host=$ac_cv_build
2171 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2172 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2173 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2174 { (exit 1); exit 1; }; }
2178 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2179 echo "${ECHO_T}$ac_cv_host" >&6; }
2182 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2183 echo "$as_me: error: invalid value of canonical host" >&2;}
2184 { (exit 1); exit 1; }; };;
2187 ac_save_IFS=$IFS; IFS='-'
2193 # Remember, the first character of IFS is used to create $*,
2194 # except with old shells:
2197 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2200 { echo "$as_me:$LINENO: checking target system type" >&5
2201 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2202 if test "${ac_cv_target+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 if test "x$target_alias" = x; then
2206 ac_cv_target=$ac_cv_host
2208 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2209 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2210 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2211 { (exit 1); exit 1; }; }
2215 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2216 echo "${ECHO_T}$ac_cv_target" >&6; }
2217 case $ac_cv_target in
2219 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2220 echo "$as_me: error: invalid value of canonical target" >&2;}
2221 { (exit 1); exit 1; }; };;
2223 target=$ac_cv_target
2224 ac_save_IFS=$IFS; IFS='-'
2230 # Remember, the first character of IFS is used to create $*,
2231 # except with old shells:
2234 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2237 # The aliases save the names the user supplied, while $host etc.
2238 # will get canonicalized.
2239 test -n "$target_alias" &&
2240 test "$program_prefix$program_suffix$program_transform_name" = \
2242 program_prefix=${target_alias}-
2244 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2245 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2246 if test "${llvm_cv_os_type+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 llvm_cv_link_all_option="-Wl,--whole-archive"
2252 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2253 llvm_cv_os_type="AIX"
2254 llvm_cv_platform_type="Unix" ;;
2256 llvm_cv_link_all_option="-Wl,--whole-archive"
2257 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2258 llvm_cv_os_type="IRIX"
2259 llvm_cv_platform_type="Unix" ;;
2261 llvm_cv_link_all_option="-Wl,--whole-archive"
2262 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2263 llvm_cv_os_type="Cygwin"
2264 llvm_cv_platform_type="Unix" ;;
2266 llvm_cv_link_all_option="-Wl,-all_load"
2267 llvm_cv_no_link_all_option="-Wl,-noall_load"
2268 llvm_cv_os_type="Darwin"
2269 llvm_cv_platform_type="Unix" ;;
2271 llvm_cv_link_all_option="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2273 llvm_cv_os_type="FreeBSD"
2274 llvm_cv_platform_type="Unix" ;;
2276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278 llvm_cv_os_type="OpenBSD"
2279 llvm_cv_platform_type="Unix" ;;
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="NetBSD"
2284 llvm_cv_platform_type="Unix" ;;
2286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288 llvm_cv_os_type="HP-UX"
2289 llvm_cv_platform_type="Unix" ;;
2291 llvm_cv_link_all_option="-Wl,--whole-archive"
2292 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2293 llvm_cv_os_type="Interix"
2294 llvm_cv_platform_type="Unix" ;;
2296 llvm_cv_link_all_option="-Wl,--whole-archive"
2297 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2298 llvm_cv_os_type="Linux"
2299 llvm_cv_platform_type="Unix" ;;
2301 llvm_cv_link_all_option="-Wl,-z,allextract"
2302 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2303 llvm_cv_os_type="SunOS"
2304 llvm_cv_platform_type="Unix" ;;
2306 llvm_cv_link_all_option="-Wl,--whole-archive"
2307 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2308 llvm_cv_os_type="Win32"
2309 llvm_cv_platform_type="Win32" ;;
2311 llvm_cv_link_all_option="-Wl,--whole-archive"
2312 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2313 llvm_cv_os_type="MingW"
2314 llvm_cv_platform_type="Win32" ;;
2316 llvm_cv_link_all_option=""
2317 llvm_cv_no_link_all_option=""
2318 llvm_cv_os_type="Unknown"
2319 llvm_cv_platform_type="Unknown" ;;
2322 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2323 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2325 if test "$llvm_cv_os_type" = "Unknown" ; then
2326 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2327 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2328 { (exit 1); exit 1; }; }
2334 LINKALL=$llvm_cv_link_all_option
2336 NOLINKALL=$llvm_cv_no_link_all_option
2339 case $llvm_cv_platform_type in
2342 cat >>confdefs.h <<\_ACEOF
2343 #define LLVM_ON_UNIX 1
2353 cat >>confdefs.h <<\_ACEOF
2354 #define LLVM_ON_WIN32 1
2364 { echo "$as_me:$LINENO: checking target architecture" >&5
2365 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2366 if test "${llvm_cv_target_arch+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 i?86-*) llvm_cv_target_arch="x86" ;;
2371 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2372 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2373 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2374 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2375 ia64-*) llvm_cv_target_arch="IA64" ;;
2376 arm-*) llvm_cv_target_arch="ARM" ;;
2377 mips-*) llvm_cv_target_arch="Mips" ;;
2378 *) llvm_cv_target_arch="Unknown" ;;
2381 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2382 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2384 if test "$llvm_cv_target_arch" = "Unknown" ; then
2385 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2386 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2389 ARCH=$llvm_cv_target_arch
2393 ac_cpp='$CPP $CPPFLAGS'
2394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2397 if test -n "$ac_tool_prefix"; then
2398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2399 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2402 if test "${ac_cv_prog_CC+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2405 if test -n "$CC"; then
2406 ac_cv_prog_CC="$CC" # Let the user override the test.
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2415 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 if test -n "$CC"; then
2427 { echo "$as_me:$LINENO: result: $CC" >&5
2428 echo "${ECHO_T}$CC" >&6; }
2430 { echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6; }
2436 if test -z "$ac_cv_prog_CC"; then
2438 # Extract the first word of "gcc", so it can be a program name with args.
2439 set dummy gcc; ac_word=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 if test -n "$ac_ct_CC"; then
2446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2455 ac_cv_prog_ac_ct_CC="gcc"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2466 if test -n "$ac_ct_CC"; then
2467 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2468 echo "${ECHO_T}$ac_ct_CC" >&6; }
2470 { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2474 if test "x$ac_ct_CC" = x; then
2477 case $cross_compiling:$ac_tool_warned in
2479 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2480 whose name does not start with the host triplet. If you think this
2481 configuration is useful to you, please write to autoconf@gnu.org." >&5
2482 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2483 whose name does not start with the host triplet. If you think this
2484 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2485 ac_tool_warned=yes ;;
2493 if test -z "$CC"; then
2494 if test -n "$ac_tool_prefix"; then
2495 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2496 set dummy ${ac_tool_prefix}cc; ac_word=$2
2497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2499 if test "${ac_cv_prog_CC+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 if test -n "$CC"; then
2503 ac_cv_prog_CC="$CC" # Let the user override the test.
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 test -z "$as_dir" && as_dir=.
2510 for ac_exec_ext in '' $ac_executable_extensions; do
2511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2512 ac_cv_prog_CC="${ac_tool_prefix}cc"
2513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 if test -n "$CC"; then
2524 { echo "$as_me:$LINENO: result: $CC" >&5
2525 echo "${ECHO_T}$CC" >&6; }
2527 { echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6; }
2534 if test -z "$CC"; then
2535 # Extract the first word of "cc", so it can be a program name with args.
2536 set dummy cc; ac_word=$2
2537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2539 if test "${ac_cv_prog_CC+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2553 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2554 ac_prog_rejected=yes
2558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 if test $ac_prog_rejected = yes; then
2566 # We found a bogon in the path, so make sure we never use it.
2567 set dummy $ac_cv_prog_CC
2569 if test $# != 0; then
2570 # We chose a different compiler from the bogus one.
2571 # However, it has the same basename, so the bogon will be chosen
2572 # first if we set CC to just the basename; use the full file name.
2574 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2580 if test -n "$CC"; then
2581 { echo "$as_me:$LINENO: result: $CC" >&5
2582 echo "${ECHO_T}$CC" >&6; }
2584 { echo "$as_me:$LINENO: result: no" >&5
2585 echo "${ECHO_T}no" >&6; }
2590 if test -z "$CC"; then
2591 if test -n "$ac_tool_prefix"; then
2592 for ac_prog in cl.exe
2594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2598 if test "${ac_cv_prog_CC+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 if test -n "$CC"; then
2602 ac_cv_prog_CC="$CC" # Let the user override the test.
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2611 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2622 if test -n "$CC"; then
2623 { echo "$as_me:$LINENO: result: $CC" >&5
2624 echo "${ECHO_T}$CC" >&6; }
2626 { echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6; }
2631 test -n "$CC" && break
2634 if test -z "$CC"; then
2636 for ac_prog in cl.exe
2638 # Extract the first word of "$ac_prog", so it can be a program name with args.
2639 set dummy $ac_prog; ac_word=$2
2640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2642 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 if test -n "$ac_ct_CC"; then
2646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 ac_cv_prog_ac_ct_CC="$ac_prog"
2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2666 if test -n "$ac_ct_CC"; then
2667 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2668 echo "${ECHO_T}$ac_ct_CC" >&6; }
2670 { echo "$as_me:$LINENO: result: no" >&5
2671 echo "${ECHO_T}no" >&6; }
2675 test -n "$ac_ct_CC" && break
2678 if test "x$ac_ct_CC" = x; then
2681 case $cross_compiling:$ac_tool_warned in
2683 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2684 whose name does not start with the host triplet. If you think this
2685 configuration is useful to you, please write to autoconf@gnu.org." >&5
2686 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2687 whose name does not start with the host triplet. If you think this
2688 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2689 ac_tool_warned=yes ;;
2698 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2699 See \`config.log' for more details." >&5
2700 echo "$as_me: error: no acceptable C compiler found in \$PATH
2701 See \`config.log' for more details." >&2;}
2702 { (exit 1); exit 1; }; }
2704 # Provide some information about the compiler.
2705 echo "$as_me:$LINENO: checking for C compiler version" >&5
2706 ac_compiler=`set X $ac_compile; echo $2`
2707 { (ac_try="$ac_compiler --version >&5"
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_compiler --version >&5") 2>&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }
2717 { (ac_try="$ac_compiler -v >&5"
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_compiler -v >&5") 2>&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }
2727 { (ac_try="$ac_compiler -V >&5"
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_compiler -V >&5") 2>&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }
2738 cat >conftest.$ac_ext <<_ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h. */
2753 ac_clean_files_save=$ac_clean_files
2754 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2755 # Try to create an executable without -o first, disregard a.out.
2756 # It will help us diagnose broken compilers, and finding out an intuition
2758 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2759 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2760 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2762 # List of possible output files, starting from the most likely.
2763 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2764 # only as a last resort. b.out is created by i960 compilers.
2765 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2767 # The IRIX 6 linker writes into existing files which may not be
2768 # executable, retaining their permissions. Remove them first so a
2769 # subsequent execution test works.
2771 for ac_file in $ac_files
2774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2775 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2780 if { (ac_try="$ac_link_default"
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_link_default") 2>&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; then
2790 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2791 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2792 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2793 # so that the user can short-circuit this test for compilers unknown to
2795 for ac_file in $ac_files
2797 test -f "$ac_file" || continue
2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2802 # We found the default executable, but exeext='' is most
2806 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2808 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2810 # We set ac_cv_exeext here because the later test for it is not
2811 # safe: cross compilers may not add the suffix if given an `-o'
2812 # argument, so we may need to know it at that point already.
2813 # Even if this section looks crufty: it has the advantage of
2820 test "$ac_cv_exeext" = no && ac_cv_exeext=
2823 echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2826 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2827 See \`config.log' for more details." >&5
2828 echo "$as_me: error: C compiler cannot create executables
2829 See \`config.log' for more details." >&2;}
2830 { (exit 77); exit 77; }; }
2833 ac_exeext=$ac_cv_exeext
2834 { echo "$as_me:$LINENO: result: $ac_file" >&5
2835 echo "${ECHO_T}$ac_file" >&6; }
2837 # Check that the compiler produces executables we can run. If not, either
2838 # the compiler is broken, or we cross compile.
2839 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2840 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2841 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2842 # If not cross compiling, check that we can run a simple program.
2843 if test "$cross_compiling" != yes; then
2844 if { ac_try='./$ac_file'
2845 { (case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_try") 2>&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2856 if test "$cross_compiling" = maybe; then
2859 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2860 If you meant to cross compile, use \`--host'.
2861 See \`config.log' for more details." >&5
2862 echo "$as_me: error: cannot run C compiled programs.
2863 If you meant to cross compile, use \`--host'.
2864 See \`config.log' for more details." >&2;}
2865 { (exit 1); exit 1; }; }
2869 { echo "$as_me:$LINENO: result: yes" >&5
2870 echo "${ECHO_T}yes" >&6; }
2872 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2873 ac_clean_files=$ac_clean_files_save
2874 # Check that the compiler produces executables we can run. If not, either
2875 # the compiler is broken, or we cross compile.
2876 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2877 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2878 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2879 echo "${ECHO_T}$cross_compiling" >&6; }
2881 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2882 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2883 if { (ac_try="$ac_link"
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_link") 2>&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; then
2893 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2894 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2895 # work properly (i.e., refer to `conftest.exe'), while it won't with
2897 for ac_file in conftest.exe conftest conftest.*; do
2898 test -f "$ac_file" || continue
2900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2901 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2907 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2908 See \`config.log' for more details." >&5
2909 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2910 See \`config.log' for more details." >&2;}
2911 { (exit 1); exit 1; }; }
2914 rm -f conftest$ac_cv_exeext
2915 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2916 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2918 rm -f conftest.$ac_ext
2919 EXEEXT=$ac_cv_exeext
2921 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2922 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2923 if test "${ac_cv_objext+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 cat >conftest.$ac_ext <<_ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2941 rm -f conftest.o conftest.obj
2942 if { (ac_try="$ac_compile"
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_compile") 2>&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; then
2952 for ac_file in conftest.o conftest.obj conftest.*; do
2953 test -f "$ac_file" || continue;
2955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2956 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2964 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2965 See \`config.log' for more details." >&5
2966 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2967 See \`config.log' for more details." >&2;}
2968 { (exit 1); exit 1; }; }
2971 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2973 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2974 echo "${ECHO_T}$ac_cv_objext" >&6; }
2975 OBJEXT=$ac_cv_objext
2977 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2978 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2979 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 cat >conftest.$ac_ext <<_ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
3000 rm -f conftest.$ac_objext
3001 if { (ac_try="$ac_compile"
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compile") 2>conftest.er1
3009 grep -v '^ *+' conftest.er1 >conftest.err
3011 cat conftest.err >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } &&
3014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3015 { (case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_try") 2>&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }; } &&
3024 { ac_try='test -s conftest.$ac_objext'
3025 { (case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_try") 2>&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; }; then
3036 echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3043 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3046 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3047 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3048 GCC=`test $ac_compiler_gnu = yes && echo yes`
3049 ac_test_CFLAGS=${CFLAGS+set}
3050 ac_save_CFLAGS=$CFLAGS
3051 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3052 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3053 if test "${ac_cv_prog_cc_g+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3056 ac_save_c_werror_flag=$ac_c_werror_flag
3057 ac_c_werror_flag=yes
3060 cat >conftest.$ac_ext <<_ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3075 rm -f conftest.$ac_objext
3076 if { (ac_try="$ac_compile"
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_compile") 2>conftest.er1
3084 grep -v '^ *+' conftest.er1 >conftest.err
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } &&
3089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3090 { (case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_try") 2>&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; } &&
3099 { ac_try='test -s conftest.$ac_objext'
3100 { (case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_try") 2>&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3115 cat >conftest.$ac_ext <<_ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3130 rm -f conftest.$ac_objext
3131 if { (ac_try="$ac_compile"
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>conftest.er1
3139 grep -v '^ *+' conftest.er1 >conftest.err
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } &&
3144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3145 { (case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_try") 2>&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; } &&
3154 { ac_try='test -s conftest.$ac_objext'
3155 { (case "(($ac_try" in
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160 (eval "$ac_try") 2>&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; }; then
3166 echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3169 ac_c_werror_flag=$ac_save_c_werror_flag
3171 cat >conftest.$ac_ext <<_ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3186 rm -f conftest.$ac_objext
3187 if { (ac_try="$ac_compile"
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_compile") 2>conftest.er1
3195 grep -v '^ *+' conftest.er1 >conftest.err
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } &&
3200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3201 { (case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_try") 2>&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; } &&
3210 { ac_try='test -s conftest.$ac_objext'
3211 { (case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3216 (eval "$ac_try") 2>&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 ac_c_werror_flag=$ac_save_c_werror_flag
3237 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3238 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3239 if test "$ac_test_CFLAGS" = set; then
3240 CFLAGS=$ac_save_CFLAGS
3241 elif test $ac_cv_prog_cc_g = yes; then
3242 if test "$GCC" = yes; then
3248 if test "$GCC" = yes; then
3254 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3255 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3256 if test "${ac_cv_prog_cc_c89+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 ac_cv_prog_cc_c89=no
3261 cat >conftest.$ac_ext <<_ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3269 #include <sys/types.h>
3270 #include <sys/stat.h>
3271 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3272 struct buf { int x; };
3273 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3274 static char *e (p, i)
3280 static char *f (char * (*g) (char **, int), char **p, ...)
3285 s = g (p, va_arg (v,int));
3290 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3291 function prototypes and stuff, but not '\xHH' hex character constants.
3292 These don't provoke an error unfortunately, instead are silently treated
3293 as 'x'. The following induces an error, until -std is added to get
3294 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3295 array size at least. It's necessary to write '\x00'==0 to get something
3296 that's true only with -std. */
3297 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3299 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3300 inside strings and character constants. */
3302 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3304 int test (int i, double x);
3305 struct s1 {int (*f) (int a);};
3306 struct s2 {int (*f) (double a);};
3307 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3313 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3318 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3319 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3321 CC="$ac_save_CC $ac_arg"
3322 rm -f conftest.$ac_objext
3323 if { (ac_try="$ac_compile"
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_compile") 2>conftest.er1
3331 grep -v '^ *+' conftest.er1 >conftest.err
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } &&
3336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3337 { (case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342 (eval "$ac_try") 2>&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; } &&
3346 { ac_try='test -s conftest.$ac_objext'
3347 { (case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352 (eval "$ac_try") 2>&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
3356 ac_cv_prog_cc_c89=$ac_arg
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3364 rm -f core conftest.err conftest.$ac_objext
3365 test "x$ac_cv_prog_cc_c89" != "xno" && break
3367 rm -f conftest.$ac_ext
3372 case "x$ac_cv_prog_cc_c89" in
3374 { echo "$as_me:$LINENO: result: none needed" >&5
3375 echo "${ECHO_T}none needed" >&6; } ;;
3377 { echo "$as_me:$LINENO: result: unsupported" >&5
3378 echo "${ECHO_T}unsupported" >&6; } ;;
3380 CC="$CC $ac_cv_prog_cc_c89"
3381 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3382 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3387 ac_cpp='$CPP $CPPFLAGS'
3388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3394 ac_cpp='$CPP $CPPFLAGS'
3395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3399 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3400 # On Suns, sometimes $CPP names a directory.
3401 if test -n "$CPP" && test -d "$CPP"; then
3404 if test -z "$CPP"; then
3405 if test "${ac_cv_prog_CPP+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 # Double quotes because CPP needs to be expanded
3409 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3412 for ac_c_preproc_warn_flag in '' yes
3414 # Use a header file that comes with gcc, so configuring glibc
3415 # with a fresh cross-compiler works.
3416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3417 # <limits.h> exists even on freestanding compilers.
3418 # On the NeXT, cc -E runs the code through the compiler's parser,
3419 # not just through cpp. "Syntax error" is here to catch this case.
3420 cat >conftest.$ac_ext <<_ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3427 # include <limits.h>
3429 # include <assert.h>
3433 if { (ac_try="$ac_cpp conftest.$ac_ext"
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3441 grep -v '^ *+' conftest.er1 >conftest.err
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } >/dev/null; then
3446 if test -s conftest.err; then
3447 ac_cpp_err=$ac_c_preproc_warn_flag
3448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3455 if test -z "$ac_cpp_err"; then
3458 echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3461 # Broken: fails on valid input.
3465 rm -f conftest.err conftest.$ac_ext
3467 # OK, works on sane cases. Now check whether nonexistent headers
3468 # can be detected and how.
3469 cat >conftest.$ac_ext <<_ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3475 #include <ac_nonexistent.h>
3477 if { (ac_try="$ac_cpp conftest.$ac_ext"
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3485 grep -v '^ *+' conftest.er1 >conftest.err
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } >/dev/null; then
3490 if test -s conftest.err; then
3491 ac_cpp_err=$ac_c_preproc_warn_flag
3492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3499 if test -z "$ac_cpp_err"; then
3500 # Broken: success on invalid input.
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3506 # Passes both tests.
3511 rm -f conftest.err conftest.$ac_ext
3514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3515 rm -f conftest.err conftest.$ac_ext
3516 if $ac_preproc_ok; then
3528 { echo "$as_me:$LINENO: result: $CPP" >&5
3529 echo "${ECHO_T}$CPP" >&6; }
3531 for ac_c_preproc_warn_flag in '' yes
3533 # Use a header file that comes with gcc, so configuring glibc
3534 # with a fresh cross-compiler works.
3535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3536 # <limits.h> exists even on freestanding compilers.
3537 # On the NeXT, cc -E runs the code through the compiler's parser,
3538 # not just through cpp. "Syntax error" is here to catch this case.
3539 cat >conftest.$ac_ext <<_ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3546 # include <limits.h>
3548 # include <assert.h>
3552 if { (ac_try="$ac_cpp conftest.$ac_ext"
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3560 grep -v '^ *+' conftest.er1 >conftest.err
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } >/dev/null; then
3565 if test -s conftest.err; then
3566 ac_cpp_err=$ac_c_preproc_warn_flag
3567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3574 if test -z "$ac_cpp_err"; then
3577 echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3580 # Broken: fails on valid input.
3584 rm -f conftest.err conftest.$ac_ext
3586 # OK, works on sane cases. Now check whether nonexistent headers
3587 # can be detected and how.
3588 cat >conftest.$ac_ext <<_ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3594 #include <ac_nonexistent.h>
3596 if { (ac_try="$ac_cpp conftest.$ac_ext"
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3604 grep -v '^ *+' conftest.er1 >conftest.err
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } >/dev/null; then
3609 if test -s conftest.err; then
3610 ac_cpp_err=$ac_c_preproc_warn_flag
3611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3618 if test -z "$ac_cpp_err"; then
3619 # Broken: success on invalid input.
3622 echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3625 # Passes both tests.
3630 rm -f conftest.err conftest.$ac_ext
3633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3634 rm -f conftest.err conftest.$ac_ext
3635 if $ac_preproc_ok; then
3638 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3639 See \`config.log' for more details." >&5
3640 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3641 See \`config.log' for more details." >&2;}
3642 { (exit 1); exit 1; }; }
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3652 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3653 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3654 if test "${ac_cv_path_GREP+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 # Extract the first word of "grep ggrep" to use in msg output
3658 if test -z "$GREP"; then
3659 set dummy grep ggrep; ac_prog_name=$2
3660 if test "${ac_cv_path_GREP+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 ac_path_GREP_found=false
3664 # Loop through the user's path and test for each of PROGNAME-LIST
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3669 test -z "$as_dir" && as_dir=.
3670 for ac_prog in grep ggrep; do
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3673 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3674 # Check for GNU ac_path_GREP and select it if it is found.
3675 # Check for GNU $ac_path_GREP
3676 case `"$ac_path_GREP" --version 2>&1` in
3678 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3681 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3684 cat "conftest.in" "conftest.in" >"conftest.tmp"
3685 mv "conftest.tmp" "conftest.in"
3686 cp "conftest.in" "conftest.nl"
3687 echo 'GREP' >> "conftest.nl"
3688 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3690 ac_count=`expr $ac_count + 1`
3691 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3692 # Best one so far, save it but keep looking for a better one
3693 ac_cv_path_GREP="$ac_path_GREP"
3694 ac_path_GREP_max=$ac_count
3696 # 10*(2^10) chars as input seems more than enough
3697 test $ac_count -gt 10 && break
3699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3703 $ac_path_GREP_found && break 3
3713 GREP="$ac_cv_path_GREP"
3714 if test -z "$GREP"; then
3715 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3716 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3717 { (exit 1); exit 1; }; }
3721 ac_cv_path_GREP=$GREP
3726 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3727 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3728 GREP="$ac_cv_path_GREP"
3731 { echo "$as_me:$LINENO: checking for egrep" >&5
3732 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3733 if test "${ac_cv_path_EGREP+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3737 then ac_cv_path_EGREP="$GREP -E"
3739 # Extract the first word of "egrep" to use in msg output
3740 if test -z "$EGREP"; then
3741 set dummy egrep; ac_prog_name=$2
3742 if test "${ac_cv_path_EGREP+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 ac_path_EGREP_found=false
3746 # Loop through the user's path and test for each of PROGNAME-LIST
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3751 test -z "$as_dir" && as_dir=.
3752 for ac_prog in egrep; do
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3755 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3756 # Check for GNU ac_path_EGREP and select it if it is found.
3757 # Check for GNU $ac_path_EGREP
3758 case `"$ac_path_EGREP" --version 2>&1` in
3760 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3763 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3766 cat "conftest.in" "conftest.in" >"conftest.tmp"
3767 mv "conftest.tmp" "conftest.in"
3768 cp "conftest.in" "conftest.nl"
3769 echo 'EGREP' >> "conftest.nl"
3770 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3771 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3772 ac_count=`expr $ac_count + 1`
3773 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3774 # Best one so far, save it but keep looking for a better one
3775 ac_cv_path_EGREP="$ac_path_EGREP"
3776 ac_path_EGREP_max=$ac_count
3778 # 10*(2^10) chars as input seems more than enough
3779 test $ac_count -gt 10 && break
3781 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3785 $ac_path_EGREP_found && break 3
3795 EGREP="$ac_cv_path_EGREP"
3796 if test -z "$EGREP"; then
3797 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3798 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3799 { (exit 1); exit 1; }; }
3803 ac_cv_path_EGREP=$EGREP
3809 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3810 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3811 EGREP="$ac_cv_path_EGREP"
3814 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3815 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3816 if test "${ac_cv_header_stdc+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3819 cat >conftest.$ac_ext <<_ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3838 rm -f conftest.$ac_objext
3839 if { (ac_try="$ac_compile"
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845 (eval "$ac_compile") 2>conftest.er1
3847 grep -v '^ *+' conftest.er1 >conftest.err
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } &&
3852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3853 { (case "(($ac_try" in
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858 (eval "$ac_try") 2>&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; } &&
3862 { ac_try='test -s conftest.$ac_objext'
3863 { (case "(($ac_try" in
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3868 (eval "$ac_try") 2>&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; }; then
3872 ac_cv_header_stdc=yes
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3877 ac_cv_header_stdc=no
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 if test $ac_cv_header_stdc = yes; then
3883 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3884 cat >conftest.$ac_ext <<_ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h. */
3893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3894 $EGREP "memchr" >/dev/null 2>&1; then
3897 ac_cv_header_stdc=no
3903 if test $ac_cv_header_stdc = yes; then
3904 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3905 cat >conftest.$ac_ext <<_ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915 $EGREP "free" >/dev/null 2>&1; then
3918 ac_cv_header_stdc=no
3924 if test $ac_cv_header_stdc = yes; then
3925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3926 if test "$cross_compiling" = yes; then
3929 cat >conftest.$ac_ext <<_ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3937 #if ((' ' & 0x0FF) == 0x020)
3938 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3939 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3941 # define ISLOWER(c) \
3942 (('a' <= (c) && (c) <= 'i') \
3943 || ('j' <= (c) && (c) <= 'r') \
3944 || ('s' <= (c) && (c) <= 'z'))
3945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3953 for (i = 0; i < 256; i++)
3954 if (XOR (islower (i), ISLOWER (i))
3955 || toupper (i) != TOUPPER (i))
3960 rm -f conftest$ac_exeext
3961 if { (ac_try="$ac_link"
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967 (eval "$ac_link") 2>&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3971 { (case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3976 (eval "$ac_try") 2>&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; }; then
3982 echo "$as_me: program exited with status $ac_status" >&5
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3987 ac_cv_header_stdc=no
3989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3995 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3996 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3997 if test $ac_cv_header_stdc = yes; then
3999 cat >>confdefs.h <<\_ACEOF
4000 #define STDC_HEADERS 1
4005 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4015 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4016 inttypes.h stdint.h unistd.h
4018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 cat >conftest.$ac_ext <<_ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h. */
4030 $ac_includes_default
4032 #include <$ac_header>
4034 rm -f conftest.$ac_objext
4035 if { (ac_try="$ac_compile"
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041 (eval "$ac_compile") 2>conftest.er1
4043 grep -v '^ *+' conftest.er1 >conftest.err
4045 cat conftest.err >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } &&
4048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4049 { (case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4054 (eval "$ac_try") 2>&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; } &&
4058 { ac_try='test -s conftest.$ac_objext'
4059 { (case "(($ac_try" in
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064 (eval "$ac_try") 2>&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; }; then
4068 eval "$as_ac_Header=yes"
4070 echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4073 eval "$as_ac_Header=no"
4076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078 ac_res=`eval echo '${'$as_ac_Header'}'`
4079 { echo "$as_me:$LINENO: result: $ac_res" >&5
4080 echo "${ECHO_T}$ac_res" >&6; }
4081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4082 cat >>confdefs.h <<_ACEOF
4083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4091 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4092 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4093 if test "${ac_cv_c_bigendian+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 # See if sys/param.h defines the BYTE_ORDER macro.
4097 cat >conftest.$ac_ext <<_ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4103 #include <sys/types.h>
4104 #include <sys/param.h>
4109 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4117 rm -f conftest.$ac_objext
4118 if { (ac_try="$ac_compile"
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_compile") 2>conftest.er1
4126 grep -v '^ *+' conftest.er1 >conftest.err
4128 cat conftest.err >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } &&
4131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4132 { (case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_try") 2>&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; } &&
4141 { ac_try='test -s conftest.$ac_objext'
4142 { (case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147 (eval "$ac_try") 2>&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; }; then
4151 # It does; now see whether it defined to BIG_ENDIAN or not.
4152 cat >conftest.$ac_ext <<_ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4158 #include <sys/types.h>
4159 #include <sys/param.h>
4164 #if BYTE_ORDER != BIG_ENDIAN
4172 rm -f conftest.$ac_objext
4173 if { (ac_try="$ac_compile"
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_compile") 2>conftest.er1
4181 grep -v '^ *+' conftest.er1 >conftest.err
4183 cat conftest.err >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); } &&
4186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4187 { (case "(($ac_try" in
4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189 *) ac_try_echo=$ac_try;;
4191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192 (eval "$ac_try") 2>&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; } &&
4196 { ac_try='test -s conftest.$ac_objext'
4197 { (case "(($ac_try" in
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202 (eval "$ac_try") 2>&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; }; then
4206 ac_cv_c_bigendian=yes
4208 echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4211 ac_cv_c_bigendian=no
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4219 # It does not; compile a test program.
4220 if test "$cross_compiling" = yes; then
4221 # try to guess the endianness by grepping values into an object file
4222 ac_cv_c_bigendian=unknown
4223 cat >conftest.$ac_ext <<_ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4229 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4230 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4231 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4232 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4233 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4234 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4238 _ascii (); _ebcdic ();
4243 rm -f conftest.$ac_objext
4244 if { (ac_try="$ac_compile"
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250 (eval "$ac_compile") 2>conftest.er1
4252 grep -v '^ *+' conftest.er1 >conftest.err
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } &&
4257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4258 { (case "(($ac_try" in
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263 (eval "$ac_try") 2>&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); }; } &&
4267 { ac_try='test -s conftest.$ac_objext'
4268 { (case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273 (eval "$ac_try") 2>&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; }; then
4277 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4278 ac_cv_c_bigendian=yes
4280 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4281 if test "$ac_cv_c_bigendian" = unknown; then
4282 ac_cv_c_bigendian=no
4284 # finding both strings is unlikely to happen, but who knows?
4285 ac_cv_c_bigendian=unknown
4289 echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297 cat >conftest.$ac_ext <<_ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4303 $ac_includes_default
4308 /* Are we little or big endian? From Harbison&Steele. */
4312 char c[sizeof (long int)];
4315 return u.c[sizeof (long int) - 1] == 1;
4321 rm -f conftest$ac_exeext
4322 if { (ac_try="$ac_link"
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328 (eval "$ac_link") 2>&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4332 { (case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337 (eval "$ac_try") 2>&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4341 ac_cv_c_bigendian=no
4343 echo "$as_me: program exited with status $ac_status" >&5
4344 echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4348 ac_cv_c_bigendian=yes
4350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4358 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4359 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4360 case $ac_cv_c_bigendian in
4368 { { echo "$as_me:$LINENO: error: unknown endianness
4369 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4370 echo "$as_me: error: unknown endianness
4371 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4372 { (exit 1); exit 1; }; } ;;
4376 if test "$cross_compiling" = yes; then
4377 LLVM_CROSS_COMPILING=1
4380 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4381 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4382 if test "${ac_cv_build_exeext+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4386 ac_cv_build_exeext=.exe
4388 ac_build_prefix=${build_alias}-
4390 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4391 set dummy ${ac_build_prefix}gcc; ac_word=$2
4392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4394 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 if test -n "$BUILD_CC"; then
4398 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4407 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 BUILD_CC=$ac_cv_prog_BUILD_CC
4418 if test -n "$BUILD_CC"; then
4419 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4420 echo "${ECHO_T}$BUILD_CC" >&6; }
4422 { echo "$as_me:$LINENO: result: no" >&5
4423 echo "${ECHO_T}no" >&6; }
4427 if test -z "$BUILD_CC"; then
4428 # Extract the first word of "gcc", so it can be a program name with args.
4429 set dummy gcc; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 if test -n "$BUILD_CC"; then
4436 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_BUILD_CC="gcc"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 BUILD_CC=$ac_cv_prog_BUILD_CC
4456 if test -n "$BUILD_CC"; then
4457 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4458 echo "${ECHO_T}$BUILD_CC" >&6; }
4460 { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4465 if test -z "$BUILD_CC"; then
4466 # Extract the first word of "cc", so it can be a program name with args.
4467 set dummy cc; ac_word=$2
4468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 if test -n "$BUILD_CC"; then
4474 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4485 ac_prog_rejected=yes
4488 ac_cv_prog_BUILD_CC="cc"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 if test $ac_prog_rejected = yes; then
4497 # We found a bogon in the path, so make sure we never use it.
4498 set dummy $ac_cv_prog_BUILD_CC
4500 if test $# != 0; then
4501 # We chose a different compiler from the bogus one.
4502 # However, it has the same basename, so the bogon will be chosen
4503 # first if we set BUILD_CC to just the basename; use the full file name.
4505 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4510 BUILD_CC=$ac_cv_prog_BUILD_CC
4511 if test -n "$BUILD_CC"; then
4512 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4513 echo "${ECHO_T}$BUILD_CC" >&6; }
4515 { echo "$as_me:$LINENO: result: no" >&5
4516 echo "${ECHO_T}no" >&6; }
4522 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4523 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4524 { (exit 1); exit 1; }; }
4525 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4527 echo 'int main () { return 0; }' > conftest.$ac_ext
4529 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4530 (eval $ac_build_link) 2>&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; then
4534 for file in conftest.*; do
4536 *.c | *.o | *.obj) ;;
4537 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4541 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4542 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4543 { (exit 1); exit 1; }; }
4546 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4551 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4552 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4553 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4554 ac_build_exeext=$BUILD_EXEEXT
4557 LLVM_CROSS_COMPILING=0
4561 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4572 # Check whether --enable-optimized was given.
4573 if test "${enable_optimized+set}" = set; then
4574 enableval=$enable_optimized;
4579 if test ${enableval} = "no" ; then
4583 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4587 # Check whether --enable-assertions was given.
4588 if test "${enable_assertions+set}" = set; then
4589 enableval=$enable_assertions;
4594 if test ${enableval} = "yes" ; then
4598 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4602 # Check whether --enable-expensive-checks was given.
4603 if test "${enable_expensive_checks+set}" = set; then
4604 enableval=$enable_expensive_checks;
4609 if test ${enableval} = "yes" ; then
4610 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4612 EXPENSIVE_CHECKS=yes
4615 ENABLE_EXPENSIVE_CHECKS=
4621 # Check whether --enable-debug-runtime was given.
4622 if test "${enable_debug_runtime+set}" = set; then
4623 enableval=$enable_debug_runtime;
4628 if test ${enableval} = "no" ; then
4632 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4636 # Check whether --enable-jit was given.
4637 if test "${enable_jit+set}" = set; then
4638 enableval=$enable_jit;
4643 if test ${enableval} = "no"
4648 case "$llvm_cv_target_arch" in
4649 x86) TARGET_HAS_JIT=1
4651 Sparc) TARGET_HAS_JIT=0
4653 PowerPC) TARGET_HAS_JIT=1
4655 x86_64) TARGET_HAS_JIT=1
4657 Alpha) TARGET_HAS_JIT=1
4659 IA64) TARGET_HAS_JIT=0
4661 ARM) TARGET_HAS_JIT=0
4663 Mips) TARGET_HAS_JIT=0
4670 # Check whether --enable-doxygen was given.
4671 if test "${enable_doxygen+set}" = set; then
4672 enableval=$enable_doxygen;
4677 case "$enableval" in
4678 yes) ENABLE_DOXYGEN=1
4680 no) ENABLE_DOXYGEN=0
4682 default) ENABLE_DOXYGEN=0
4684 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4685 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4686 { (exit 1); exit 1; }; } ;;
4689 # Check whether --enable-threads was given.
4690 if test "${enable_threads+set}" = set; then
4691 enableval=$enable_threads;
4696 case "$enableval" in
4697 yes) ENABLE_THREADS=1
4699 no) ENABLE_THREADS=0
4701 default) ENABLE_THREADS=1
4703 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4704 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4705 { (exit 1); exit 1; }; } ;;
4708 cat >>confdefs.h <<_ACEOF
4709 #define ENABLE_THREADS $ENABLE_THREADS
4713 # Check whether --enable-pic was given.
4714 if test "${enable_pic+set}" = set; then
4715 enableval=$enable_pic;
4720 case "$enableval" in
4725 default) ENABLE_PIC=0
4727 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4728 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4729 { (exit 1); exit 1; }; } ;;
4732 cat >>confdefs.h <<_ACEOF
4733 #define ENABLE_PIC $ENABLE_PIC
4738 # Check whether --enable-targets was given.
4739 if test "${enable_targets+set}" = set; then
4740 enableval=$enable_targets;
4745 case "$enableval" in
4746 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU CBackend MSIL CppBackend" ;;
4748 case "$llvm_cv_target_arch" in
4749 x86) TARGETS_TO_BUILD="X86" ;;
4750 x86_64) TARGETS_TO_BUILD="X86" ;;
4751 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4752 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4753 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4754 IA64) TARGETS_TO_BUILD="IA64" ;;
4755 ARM) TARGETS_TO_BUILD="ARM" ;;
4756 Mips) TARGETS_TO_BUILD="Mips" ;;
4757 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4758 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4759 echo "$as_me: error: Can not set target to build" >&2;}
4760 { (exit 1); exit 1; }; } ;;
4763 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4765 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4766 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4767 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4768 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4769 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4770 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4771 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4772 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4773 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4774 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4775 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4776 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4777 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4778 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4779 { (exit 1); exit 1; }; } ;;
4784 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4787 # Check whether --enable-cbe-printf-a was given.
4788 if test "${enable_cbe_printf_a+set}" = set; then
4789 enableval=$enable_cbe_printf_a;
4794 case "$enableval" in
4795 yes) ENABLE_CBE_PRINTF_A=1
4797 no) ENABLE_CBE_PRINTF_A=0
4799 default) ENABLE_CBE_PRINTF_A=1
4801 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4802 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4803 { (exit 1); exit 1; }; } ;;
4806 cat >>confdefs.h <<_ACEOF
4807 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4812 # Check whether --with-llvmgccdir was given.
4813 if test "${with_llvmgccdir+set}" = set; then
4814 withval=$with_llvmgccdir;
4820 default) WITH_LLVMGCCDIR=default ;;
4821 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4822 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4823 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4824 { (exit 1); exit 1; }; } ;;
4828 # Check whether --with-llvmgcc was given.
4829 if test "${with_llvmgcc+set}" = set; then
4830 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4836 # Check whether --with-llvmgxx was given.
4837 if test "${with_llvmgxx+set}" = set; then
4838 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4843 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4844 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4845 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4846 { (exit 1); exit 1; }; };
4849 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4850 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4851 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4852 { (exit 1); exit 1; }; };
4856 # Check whether --with-extra-options was given.
4857 if test "${with_extra_options+set}" = set; then
4858 withval=$with_extra_options;
4864 default) EXTRA_OPTIONS= ;;
4865 *) EXTRA_OPTIONS=$withval ;;
4867 EXTRA_OPTIONS=$EXTRA_OPTIONS
4870 # Check whether --enable-bindings was given.
4871 if test "${enable_bindings+set}" = set; then
4872 enableval=$enable_bindings;
4877 BINDINGS_TO_BUILD=""
4878 case "$enableval" in
4879 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4880 all ) BINDINGS_TO_BUILD="ocaml" ;;
4881 none | no) BINDINGS_TO_BUILD="" ;;
4882 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4883 case "$a_binding" in
4884 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4885 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4886 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4887 { (exit 1); exit 1; }; } ;;
4894 # Check whether --with-ocaml-libdir was given.
4895 if test "${with_ocaml_libdir+set}" = set; then
4896 withval=$with_ocaml_libdir;
4902 auto) with_ocaml_libdir="$withval" ;;
4903 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4904 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4905 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4906 { (exit 1); exit 1; }; } ;;
4911 ac_cpp='$CPP $CPPFLAGS'
4912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4915 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4916 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4917 # On Suns, sometimes $CPP names a directory.
4918 if test -n "$CPP" && test -d "$CPP"; then
4921 if test -z "$CPP"; then
4922 if test "${ac_cv_prog_CPP+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 # Double quotes because CPP needs to be expanded
4926 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4929 for ac_c_preproc_warn_flag in '' yes
4931 # Use a header file that comes with gcc, so configuring glibc
4932 # with a fresh cross-compiler works.
4933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4934 # <limits.h> exists even on freestanding compilers.
4935 # On the NeXT, cc -E runs the code through the compiler's parser,
4936 # not just through cpp. "Syntax error" is here to catch this case.
4937 cat >conftest.$ac_ext <<_ACEOF
4940 cat confdefs.h >>conftest.$ac_ext
4941 cat >>conftest.$ac_ext <<_ACEOF
4942 /* end confdefs.h. */
4944 # include <limits.h>
4946 # include <assert.h>
4950 if { (ac_try="$ac_cpp conftest.$ac_ext"
4952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4953 *) ac_try_echo=$ac_try;;
4955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4958 grep -v '^ *+' conftest.er1 >conftest.err
4960 cat conftest.err >&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); } >/dev/null; then
4963 if test -s conftest.err; then
4964 ac_cpp_err=$ac_c_preproc_warn_flag
4965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4972 if test -z "$ac_cpp_err"; then
4975 echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4978 # Broken: fails on valid input.
4982 rm -f conftest.err conftest.$ac_ext
4984 # OK, works on sane cases. Now check whether nonexistent headers
4985 # can be detected and how.
4986 cat >conftest.$ac_ext <<_ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
4992 #include <ac_nonexistent.h>
4994 if { (ac_try="$ac_cpp conftest.$ac_ext"
4996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997 *) ac_try_echo=$ac_try;;
4999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5002 grep -v '^ *+' conftest.er1 >conftest.err
5004 cat conftest.err >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } >/dev/null; then
5007 if test -s conftest.err; then
5008 ac_cpp_err=$ac_c_preproc_warn_flag
5009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5016 if test -z "$ac_cpp_err"; then
5017 # Broken: success on invalid input.
5020 echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5023 # Passes both tests.
5028 rm -f conftest.err conftest.$ac_ext
5031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5032 rm -f conftest.err conftest.$ac_ext
5033 if $ac_preproc_ok; then
5045 { echo "$as_me:$LINENO: result: $CPP" >&5
5046 echo "${ECHO_T}$CPP" >&6; }
5048 for ac_c_preproc_warn_flag in '' yes
5050 # Use a header file that comes with gcc, so configuring glibc
5051 # with a fresh cross-compiler works.
5052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5053 # <limits.h> exists even on freestanding compilers.
5054 # On the NeXT, cc -E runs the code through the compiler's parser,
5055 # not just through cpp. "Syntax error" is here to catch this case.
5056 cat >conftest.$ac_ext <<_ACEOF
5059 cat confdefs.h >>conftest.$ac_ext
5060 cat >>conftest.$ac_ext <<_ACEOF
5061 /* end confdefs.h. */
5063 # include <limits.h>
5065 # include <assert.h>
5069 if { (ac_try="$ac_cpp conftest.$ac_ext"
5071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072 *) ac_try_echo=$ac_try;;
5074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5077 grep -v '^ *+' conftest.er1 >conftest.err
5079 cat conftest.err >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } >/dev/null; then
5082 if test -s conftest.err; then
5083 ac_cpp_err=$ac_c_preproc_warn_flag
5084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5091 if test -z "$ac_cpp_err"; then
5094 echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.$ac_ext >&5
5097 # Broken: fails on valid input.
5101 rm -f conftest.err conftest.$ac_ext
5103 # OK, works on sane cases. Now check whether nonexistent headers
5104 # can be detected and how.
5105 cat >conftest.$ac_ext <<_ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5111 #include <ac_nonexistent.h>
5113 if { (ac_try="$ac_cpp conftest.$ac_ext"
5115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5116 *) ac_try_echo=$ac_try;;
5118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5121 grep -v '^ *+' conftest.er1 >conftest.err
5123 cat conftest.err >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); } >/dev/null; then
5126 if test -s conftest.err; then
5127 ac_cpp_err=$ac_c_preproc_warn_flag
5128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5135 if test -z "$ac_cpp_err"; then
5136 # Broken: success on invalid input.
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5142 # Passes both tests.
5147 rm -f conftest.err conftest.$ac_ext
5150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5151 rm -f conftest.err conftest.$ac_ext
5152 if $ac_preproc_ok; then
5155 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5156 See \`config.log' for more details." >&5
5157 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5158 See \`config.log' for more details." >&2;}
5159 { (exit 1); exit 1; }; }
5163 ac_cpp='$CPP $CPPFLAGS'
5164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5169 ac_cpp='$CPP $CPPFLAGS'
5170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5173 if test -n "$ac_tool_prefix"; then
5176 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5177 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5180 if test "${ac_cv_prog_CC+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 if test -n "$CC"; then
5184 ac_cv_prog_CC="$CC" # Let the user override the test.
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5193 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 if test -n "$CC"; then
5205 { echo "$as_me:$LINENO: result: $CC" >&5
5206 echo "${ECHO_T}$CC" >&6; }
5208 { echo "$as_me:$LINENO: result: no" >&5
5209 echo "${ECHO_T}no" >&6; }
5213 test -n "$CC" && break
5216 if test -z "$CC"; then
5220 # Extract the first word of "$ac_prog", so it can be a program name with args.
5221 set dummy $ac_prog; ac_word=$2
5222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5224 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 if test -n "$ac_ct_CC"; then
5228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5237 ac_cv_prog_ac_ct_CC="$ac_prog"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5248 if test -n "$ac_ct_CC"; then
5249 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5250 echo "${ECHO_T}$ac_ct_CC" >&6; }
5252 { echo "$as_me:$LINENO: result: no" >&5
5253 echo "${ECHO_T}no" >&6; }
5257 test -n "$ac_ct_CC" && break
5260 if test "x$ac_ct_CC" = x; then
5263 case $cross_compiling:$ac_tool_warned in
5265 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5266 whose name does not start with the host triplet. If you think this
5267 configuration is useful to you, please write to autoconf@gnu.org." >&5
5268 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5269 whose name does not start with the host triplet. If you think this
5270 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5271 ac_tool_warned=yes ;;
5278 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5279 See \`config.log' for more details." >&5
5280 echo "$as_me: error: no acceptable C compiler found in \$PATH
5281 See \`config.log' for more details." >&2;}
5282 { (exit 1); exit 1; }; }
5284 # Provide some information about the compiler.
5285 echo "$as_me:$LINENO: checking for C compiler version" >&5
5286 ac_compiler=`set X $ac_compile; echo $2`
5287 { (ac_try="$ac_compiler --version >&5"
5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290 *) ac_try_echo=$ac_try;;
5292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293 (eval "$ac_compiler --version >&5") 2>&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }
5297 { (ac_try="$ac_compiler -v >&5"
5299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300 *) ac_try_echo=$ac_try;;
5302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303 (eval "$ac_compiler -v >&5") 2>&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }
5307 { (ac_try="$ac_compiler -V >&5"
5309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310 *) ac_try_echo=$ac_try;;
5312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313 (eval "$ac_compiler -V >&5") 2>&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }
5318 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5319 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5320 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 cat >conftest.$ac_ext <<_ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5341 rm -f conftest.$ac_objext
5342 if { (ac_try="$ac_compile"
5344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345 *) ac_try_echo=$ac_try;;
5347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5348 (eval "$ac_compile") 2>conftest.er1
5350 grep -v '^ *+' conftest.er1 >conftest.err
5352 cat conftest.err >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } &&
5355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5356 { (case "(($ac_try" in
5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358 *) ac_try_echo=$ac_try;;
5360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361 (eval "$ac_try") 2>&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; } &&
5365 { ac_try='test -s conftest.$ac_objext'
5366 { (case "(($ac_try" in
5367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368 *) ac_try_echo=$ac_try;;
5370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371 (eval "$ac_try") 2>&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; }; then
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5384 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5387 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5388 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5389 GCC=`test $ac_compiler_gnu = yes && echo yes`
5390 ac_test_CFLAGS=${CFLAGS+set}
5391 ac_save_CFLAGS=$CFLAGS
5392 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5393 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5394 if test "${ac_cv_prog_cc_g+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5397 ac_save_c_werror_flag=$ac_c_werror_flag
5398 ac_c_werror_flag=yes
5401 cat >conftest.$ac_ext <<_ACEOF
5404 cat confdefs.h >>conftest.$ac_ext
5405 cat >>conftest.$ac_ext <<_ACEOF
5406 /* end confdefs.h. */
5416 rm -f conftest.$ac_objext
5417 if { (ac_try="$ac_compile"
5419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5420 *) ac_try_echo=$ac_try;;
5422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5423 (eval "$ac_compile") 2>conftest.er1
5425 grep -v '^ *+' conftest.er1 >conftest.err
5427 cat conftest.err >&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } &&
5430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5431 { (case "(($ac_try" in
5432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433 *) ac_try_echo=$ac_try;;
5435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5436 (eval "$ac_try") 2>&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; } &&
5440 { ac_try='test -s conftest.$ac_objext'
5441 { (case "(($ac_try" in
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446 (eval "$ac_try") 2>&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }; }; then
5452 echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5456 cat >conftest.$ac_ext <<_ACEOF
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h. */
5471 rm -f conftest.$ac_objext
5472 if { (ac_try="$ac_compile"
5474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475 *) ac_try_echo=$ac_try;;
5477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478 (eval "$ac_compile") 2>conftest.er1
5480 grep -v '^ *+' conftest.er1 >conftest.err
5482 cat conftest.err >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } &&
5485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5486 { (case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_try") 2>&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; } &&
5495 { ac_try='test -s conftest.$ac_objext'
5496 { (case "(($ac_try" in
5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498 *) ac_try_echo=$ac_try;;
5500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501 (eval "$ac_try") 2>&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; }; then
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5510 ac_c_werror_flag=$ac_save_c_werror_flag
5512 cat >conftest.$ac_ext <<_ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5527 rm -f conftest.$ac_objext
5528 if { (ac_try="$ac_compile"
5530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531 *) ac_try_echo=$ac_try;;
5533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5534 (eval "$ac_compile") 2>conftest.er1
5536 grep -v '^ *+' conftest.er1 >conftest.err
5538 cat conftest.err >&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } &&
5541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5542 { (case "(($ac_try" in
5543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5544 *) ac_try_echo=$ac_try;;
5546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5547 (eval "$ac_try") 2>&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; } &&
5551 { ac_try='test -s conftest.$ac_objext'
5552 { (case "(($ac_try" in
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557 (eval "$ac_try") 2>&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; }; then
5563 echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576 ac_c_werror_flag=$ac_save_c_werror_flag
5578 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5579 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5580 if test "$ac_test_CFLAGS" = set; then
5581 CFLAGS=$ac_save_CFLAGS
5582 elif test $ac_cv_prog_cc_g = yes; then
5583 if test "$GCC" = yes; then
5589 if test "$GCC" = yes; then
5595 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5596 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5597 if test "${ac_cv_prog_cc_c89+set}" = set; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
5600 ac_cv_prog_cc_c89=no
5602 cat >conftest.$ac_ext <<_ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h. */
5610 #include <sys/types.h>
5611 #include <sys/stat.h>
5612 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5613 struct buf { int x; };
5614 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5615 static char *e (p, i)
5621 static char *f (char * (*g) (char **, int), char **p, ...)
5626 s = g (p, va_arg (v,int));
5631 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5632 function prototypes and stuff, but not '\xHH' hex character constants.
5633 These don't provoke an error unfortunately, instead are silently treated
5634 as 'x'. The following induces an error, until -std is added to get
5635 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5636 array size at least. It's necessary to write '\x00'==0 to get something
5637 that's true only with -std. */
5638 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5640 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5641 inside strings and character constants. */
5643 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5645 int test (int i, double x);
5646 struct s1 {int (*f) (int a);};
5647 struct s2 {int (*f) (double a);};
5648 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5654 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5659 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5660 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5662 CC="$ac_save_CC $ac_arg"
5663 rm -f conftest.$ac_objext
5664 if { (ac_try="$ac_compile"
5666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667 *) ac_try_echo=$ac_try;;
5669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670 (eval "$ac_compile") 2>conftest.er1
5672 grep -v '^ *+' conftest.er1 >conftest.err
5674 cat conftest.err >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } &&
5677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5678 { (case "(($ac_try" in
5679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680 *) ac_try_echo=$ac_try;;
5682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683 (eval "$ac_try") 2>&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }; } &&
5687 { ac_try='test -s conftest.$ac_objext'
5688 { (case "(($ac_try" in
5689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690 *) ac_try_echo=$ac_try;;
5692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5693 (eval "$ac_try") 2>&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; }; then
5697 ac_cv_prog_cc_c89=$ac_arg
5699 echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5705 rm -f core conftest.err conftest.$ac_objext
5706 test "x$ac_cv_prog_cc_c89" != "xno" && break
5708 rm -f conftest.$ac_ext
5713 case "x$ac_cv_prog_cc_c89" in
5715 { echo "$as_me:$LINENO: result: none needed" >&5
5716 echo "${ECHO_T}none needed" >&6; } ;;
5718 { echo "$as_me:$LINENO: result: unsupported" >&5
5719 echo "${ECHO_T}unsupported" >&6; } ;;
5721 CC="$CC $ac_cv_prog_cc_c89"
5722 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5723 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5728 ac_cpp='$CPP $CPPFLAGS'
5729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5734 ac_cpp='$CXXCPP $CPPFLAGS'
5735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5738 if test -z "$CXX"; then
5739 if test -n "$CCC"; then
5742 if test -n "$ac_tool_prefix"; then
5745 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5746 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5749 if test "${ac_cv_prog_CXX+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 if test -n "$CXX"; then
5753 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759 test -z "$as_dir" && as_dir=.
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5762 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5773 if test -n "$CXX"; then
5774 { echo "$as_me:$LINENO: result: $CXX" >&5
5775 echo "${ECHO_T}$CXX" >&6; }
5777 { echo "$as_me:$LINENO: result: no" >&5
5778 echo "${ECHO_T}no" >&6; }
5782 test -n "$CXX" && break
5785 if test -z "$CXX"; then
5789 # Extract the first word of "$ac_prog", so it can be a program name with args.
5790 set dummy $ac_prog; ac_word=$2
5791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5793 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 if test -n "$ac_ct_CXX"; then
5797 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5806 ac_cv_prog_ac_ct_CXX="$ac_prog"
5807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5817 if test -n "$ac_ct_CXX"; then
5818 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5819 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5821 { echo "$as_me:$LINENO: result: no" >&5
5822 echo "${ECHO_T}no" >&6; }
5826 test -n "$ac_ct_CXX" && break
5829 if test "x$ac_ct_CXX" = x; then
5832 case $cross_compiling:$ac_tool_warned in
5834 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5835 whose name does not start with the host triplet. If you think this
5836 configuration is useful to you, please write to autoconf@gnu.org." >&5
5837 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5838 whose name does not start with the host triplet. If you think this
5839 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5840 ac_tool_warned=yes ;;
5848 # Provide some information about the compiler.
5849 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5850 ac_compiler=`set X $ac_compile; echo $2`
5851 { (ac_try="$ac_compiler --version >&5"
5853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854 *) ac_try_echo=$ac_try;;
5856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857 (eval "$ac_compiler --version >&5") 2>&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }
5861 { (ac_try="$ac_compiler -v >&5"
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_compiler -v >&5") 2>&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }
5871 { (ac_try="$ac_compiler -V >&5"
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877 (eval "$ac_compiler -V >&5") 2>&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }
5882 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5883 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5884 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5887 cat >conftest.$ac_ext <<_ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5905 rm -f conftest.$ac_objext
5906 if { (ac_try="$ac_compile"
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912 (eval "$ac_compile") 2>conftest.er1
5914 grep -v '^ *+' conftest.er1 >conftest.err
5916 cat conftest.err >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); } &&
5919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5920 { (case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_try") 2>&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; } &&
5929 { ac_try='test -s conftest.$ac_objext'
5930 { (case "(($ac_try" in
5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935 (eval "$ac_try") 2>&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
5941 echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.$ac_ext >&5
5947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5948 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5951 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5952 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5953 GXX=`test $ac_compiler_gnu = yes && echo yes`
5954 ac_test_CXXFLAGS=${CXXFLAGS+set}
5955 ac_save_CXXFLAGS=$CXXFLAGS
5956 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5957 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5958 if test "${ac_cv_prog_cxx_g+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5962 ac_cxx_werror_flag=yes
5965 cat >conftest.$ac_ext <<_ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h. */
5980 rm -f conftest.$ac_objext
5981 if { (ac_try="$ac_compile"
5983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5987 (eval "$ac_compile") 2>conftest.er1
5989 grep -v '^ *+' conftest.er1 >conftest.err
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } &&
5994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5995 { (case "(($ac_try" in
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_try") 2>&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; } &&
6004 { ac_try='test -s conftest.$ac_objext'
6005 { (case "(($ac_try" in
6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010 (eval "$ac_try") 2>&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; }; then
6014 ac_cv_prog_cxx_g=yes
6016 echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.$ac_ext >&5
6020 cat >conftest.$ac_ext <<_ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6035 rm -f conftest.$ac_objext
6036 if { (ac_try="$ac_compile"
6038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6039 *) ac_try_echo=$ac_try;;
6041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6042 (eval "$ac_compile") 2>conftest.er1
6044 grep -v '^ *+' conftest.er1 >conftest.err
6046 cat conftest.err >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } &&
6049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6050 { (case "(($ac_try" in
6051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052 *) ac_try_echo=$ac_try;;
6054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055 (eval "$ac_try") 2>&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; } &&
6059 { ac_try='test -s conftest.$ac_objext'
6060 { (case "(($ac_try" in
6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065 (eval "$ac_try") 2>&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6074 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6076 cat >conftest.$ac_ext <<_ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6091 rm -f conftest.$ac_objext
6092 if { (ac_try="$ac_compile"
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098 (eval "$ac_compile") 2>conftest.er1
6100 grep -v '^ *+' conftest.er1 >conftest.err
6102 cat conftest.err >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } &&
6105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6106 { (case "(($ac_try" in
6107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108 *) ac_try_echo=$ac_try;;
6110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111 (eval "$ac_try") 2>&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); }; } &&
6115 { ac_try='test -s conftest.$ac_objext'
6116 { (case "(($ac_try" in
6117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_try") 2>&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }; }; then
6125 ac_cv_prog_cxx_g=yes
6127 echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6140 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6142 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6143 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6144 if test "$ac_test_CXXFLAGS" = set; then
6145 CXXFLAGS=$ac_save_CXXFLAGS
6146 elif test $ac_cv_prog_cxx_g = yes; then
6147 if test "$GXX" = yes; then
6153 if test "$GXX" = yes; then
6160 ac_cpp='$CPP $CPPFLAGS'
6161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6165 { echo "$as_me:$LINENO: checking " >&5
6166 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6167 if test "${ac_cv_has_flex+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 for ac_prog in flex lex
6172 # Extract the first word of "$ac_prog", so it can be a program name with args.
6173 set dummy $ac_prog; ac_word=$2
6174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6176 if test "${ac_cv_prog_LEX+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 if test -n "$LEX"; then
6180 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 test -z "$as_dir" && as_dir=.
6187 for ac_exec_ext in '' $ac_executable_extensions; do
6188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6189 ac_cv_prog_LEX="$ac_prog"
6190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 if test -n "$LEX"; then
6201 { echo "$as_me:$LINENO: result: $LEX" >&5
6202 echo "${ECHO_T}$LEX" >&6; }
6204 { echo "$as_me:$LINENO: result: no" >&5
6205 echo "${ECHO_T}no" >&6; }
6209 test -n "$LEX" && break
6211 test -n "$LEX" || LEX=":"
6213 if test -z "$LEXLIB"
6215 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6216 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6217 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6220 ac_check_lib_save_LIBS=$LIBS
6222 cat >conftest.$ac_ext <<_ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6229 /* Override any GCC internal prototype to avoid an error.
6230 Use char because int might match the return type of a GCC
6231 builtin and then its argument prototype would still apply. */
6244 rm -f conftest.$ac_objext conftest$ac_exeext
6245 if { (ac_try="$ac_link"
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_link") 2>conftest.er1
6253 grep -v '^ *+' conftest.er1 >conftest.err
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6259 { (case "(($ac_try" in
6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264 (eval "$ac_try") 2>&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; } &&
6268 { ac_try='test -s conftest$ac_exeext'
6269 { (case "(($ac_try" in
6270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271 *) ac_try_echo=$ac_try;;
6273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6274 (eval "$ac_try") 2>&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); }; }; then
6278 ac_cv_lib_fl_yywrap=yes
6280 echo "$as_me: failed program was:" >&5
6281 sed 's/^/| /' conftest.$ac_ext >&5
6283 ac_cv_lib_fl_yywrap=no
6286 rm -f core conftest.err conftest.$ac_objext \
6287 conftest$ac_exeext conftest.$ac_ext
6288 LIBS=$ac_check_lib_save_LIBS
6290 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6291 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6292 if test $ac_cv_lib_fl_yywrap = yes; then
6295 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6296 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6297 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 ac_check_lib_save_LIBS=$LIBS
6302 cat >conftest.$ac_ext <<_ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6309 /* Override any GCC internal prototype to avoid an error.
6310 Use char because int might match the return type of a GCC
6311 builtin and then its argument prototype would still apply. */
6324 rm -f conftest.$ac_objext conftest$ac_exeext
6325 if { (ac_try="$ac_link"
6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_link") 2>conftest.er1
6333 grep -v '^ *+' conftest.er1 >conftest.err
6335 cat conftest.err >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } &&
6338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6339 { (case "(($ac_try" in
6340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341 *) ac_try_echo=$ac_try;;
6343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344 (eval "$ac_try") 2>&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; } &&
6348 { ac_try='test -s conftest$ac_exeext'
6349 { (case "(($ac_try" in
6350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351 *) ac_try_echo=$ac_try;;
6353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354 (eval "$ac_try") 2>&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; }; then
6358 ac_cv_lib_l_yywrap=yes
6360 echo "$as_me: failed program was:" >&5
6361 sed 's/^/| /' conftest.$ac_ext >&5
6363 ac_cv_lib_l_yywrap=no
6366 rm -f core conftest.err conftest.$ac_objext \
6367 conftest$ac_exeext conftest.$ac_ext
6368 LIBS=$ac_check_lib_save_LIBS
6370 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6371 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6372 if test $ac_cv_lib_l_yywrap = yes; then
6380 if test "x$LEX" != "x:"; then
6381 { echo "$as_me:$LINENO: checking lex output file root" >&5
6382 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6383 if test "${ac_cv_prog_lex_root+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 # The minimal lex program is just a single line: %%. But some broken lexes
6387 # (Solaris, I think it was) want two %% lines, so accommodate them.
6388 cat >conftest.l <<_ACEOF
6392 { (ac_try="$LEX conftest.l"
6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395 *) ac_try_echo=$ac_try;;
6397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398 (eval "$LEX conftest.l") 2>&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }
6402 if test -f lex.yy.c; then
6403 ac_cv_prog_lex_root=lex.yy
6404 elif test -f lexyy.c; then
6405 ac_cv_prog_lex_root=lexyy
6407 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6408 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6409 { (exit 1); exit 1; }; }
6412 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6413 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6415 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6417 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6418 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6419 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 # POSIX says lex can declare yytext either as a pointer or an array; the
6423 # default is implementation-dependent. Figure out which it is, since
6424 # not all implementations provide the %pointer and %array declarations.
6425 ac_cv_prog_lex_yytext_pointer=no
6426 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6428 LIBS="$LIBS $LEXLIB"
6429 cat >conftest.$ac_ext <<_ACEOF
6430 `cat $LEX_OUTPUT_ROOT.c`
6432 rm -f conftest.$ac_objext conftest$ac_exeext
6433 if { (ac_try="$ac_link"
6435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6436 *) ac_try_echo=$ac_try;;
6438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6439 (eval "$ac_link") 2>conftest.er1
6441 grep -v '^ *+' conftest.er1 >conftest.err
6443 cat conftest.err >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } &&
6446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6447 { (case "(($ac_try" in
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_try") 2>&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; } &&
6456 { ac_try='test -s conftest$ac_exeext'
6457 { (case "(($ac_try" in
6458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459 *) ac_try_echo=$ac_try;;
6461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462 (eval "$ac_try") 2>&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; }; then
6466 ac_cv_prog_lex_yytext_pointer=yes
6468 echo "$as_me: failed program was:" >&5
6469 sed 's/^/| /' conftest.$ac_ext >&5
6474 rm -f core conftest.err conftest.$ac_objext \
6475 conftest$ac_exeext conftest.$ac_ext
6477 rm -f "${LEX_OUTPUT_ROOT}.c"
6480 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6481 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6482 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6484 cat >>confdefs.h <<\_ACEOF
6485 #define YYTEXT_POINTER 1
6493 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6494 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6495 if test "$LEX" != "flex"; then
6496 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6497 echo "$as_me: error: flex not found but required" >&2;}
6498 { (exit 1); exit 1; }; }
6504 { echo "$as_me:$LINENO: checking " >&5
6505 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6506 if test "${llvm_cv_has_bison+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 for ac_prog in 'bison -y' byacc
6511 # Extract the first word of "$ac_prog", so it can be a program name with args.
6512 set dummy $ac_prog; ac_word=$2
6513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6515 if test "${ac_cv_prog_YACC+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6518 if test -n "$YACC"; then
6519 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6528 ac_cv_prog_YACC="$ac_prog"
6529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 YACC=$ac_cv_prog_YACC
6539 if test -n "$YACC"; then
6540 { echo "$as_me:$LINENO: result: $YACC" >&5
6541 echo "${ECHO_T}$YACC" >&6; }
6543 { echo "$as_me:$LINENO: result: no" >&5
6544 echo "${ECHO_T}no" >&6; }
6548 test -n "$YACC" && break
6550 test -n "$YACC" || YACC="yacc"
6553 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6554 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6555 if test "$YACC" != "bison -y"; then
6557 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6558 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6564 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6565 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6566 if test "${lt_cv_path_NM+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6569 if test -n "$NM"; then
6570 # Let the user override the test.
6573 lt_nm_to_check="${ac_tool_prefix}nm"
6574 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6575 lt_nm_to_check="$lt_nm_to_check nm"
6577 for lt_tmp_nm in $lt_nm_to_check; do
6578 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6579 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6581 test -z "$ac_dir" && ac_dir=.
6582 tmp_nm="$ac_dir/$lt_tmp_nm"
6583 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6584 # Check to see if the nm accepts a BSD-compat flag.
6585 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6586 # nm: unknown option "B" ignored
6587 # Tru64's nm complains that /dev/null is an invalid object file
6588 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6589 */dev/null* | *'Invalid file or object type'*)
6590 lt_cv_path_NM="$tmp_nm -B"
6594 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6596 lt_cv_path_NM="$tmp_nm -p"
6600 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6601 continue # so that we can try to find one that supports BSD flags
6610 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6613 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6614 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6619 { echo "$as_me:$LINENO: checking for GNU make" >&5
6620 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6621 if test "${llvm_cv_gnu_make_command+set}" = set; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 llvm_cv_gnu_make_command=''
6625 for a in "$MAKE" make gmake gnumake ; do
6626 if test -z "$a" ; then continue ; fi ;
6627 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6629 llvm_cv_gnu_make_command=$a ;
6634 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6635 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6636 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6640 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6641 echo "${ECHO_T}\"Not found\"" >&6; };
6645 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6646 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6648 if test "$LN_S" = "ln -s"; then
6649 { echo "$as_me:$LINENO: result: yes" >&5
6650 echo "${ECHO_T}yes" >&6; }
6652 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6653 echo "${ECHO_T}no, using $LN_S" >&6; }
6656 # Extract the first word of "cmp", so it can be a program name with args.
6657 set dummy cmp; ac_word=$2
6658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6660 if test "${ac_cv_path_CMP+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6665 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 test -z "$as_dir" && as_dir=.
6673 for ac_exec_ext in '' $ac_executable_extensions; do
6674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6675 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6688 if test -n "$CMP"; then
6689 { echo "$as_me:$LINENO: result: $CMP" >&5
6690 echo "${ECHO_T}$CMP" >&6; }
6692 { echo "$as_me:$LINENO: result: no" >&5
6693 echo "${ECHO_T}no" >&6; }
6697 # Extract the first word of "cp", so it can be a program name with args.
6698 set dummy cp; ac_word=$2
6699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6701 if test "${ac_cv_path_CP+set}" = set; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6716 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6729 if test -n "$CP"; then
6730 { echo "$as_me:$LINENO: result: $CP" >&5
6731 echo "${ECHO_T}$CP" >&6; }
6733 { echo "$as_me:$LINENO: result: no" >&5
6734 echo "${ECHO_T}no" >&6; }
6738 # Extract the first word of "date", so it can be a program name with args.
6739 set dummy date; ac_word=$2
6740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6742 if test "${ac_cv_path_DATE+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6757 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6765 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6769 DATE=$ac_cv_path_DATE
6770 if test -n "$DATE"; then
6771 { echo "$as_me:$LINENO: result: $DATE" >&5
6772 echo "${ECHO_T}$DATE" >&6; }
6774 { echo "$as_me:$LINENO: result: no" >&5
6775 echo "${ECHO_T}no" >&6; }
6779 # Extract the first word of "find", so it can be a program name with args.
6780 set dummy find; ac_word=$2
6781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6783 if test "${ac_cv_path_FIND+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6788 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6798 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6810 FIND=$ac_cv_path_FIND
6811 if test -n "$FIND"; then
6812 { echo "$as_me:$LINENO: result: $FIND" >&5
6813 echo "${ECHO_T}$FIND" >&6; }
6815 { echo "$as_me:$LINENO: result: no" >&5
6816 echo "${ECHO_T}no" >&6; }
6820 # Extract the first word of "grep", so it can be a program name with args.
6821 set dummy grep; ac_word=$2
6822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824 if test "${ac_cv_path_GREP+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6839 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6851 GREP=$ac_cv_path_GREP
6852 if test -n "$GREP"; then
6853 { echo "$as_me:$LINENO: result: $GREP" >&5
6854 echo "${ECHO_T}$GREP" >&6; }
6856 { echo "$as_me:$LINENO: result: no" >&5
6857 echo "${ECHO_T}no" >&6; }
6861 # Extract the first word of "mkdir", so it can be a program name with args.
6862 set dummy mkdir; ac_word=$2
6863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6865 if test "${ac_cv_path_MKDIR+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6880 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6892 MKDIR=$ac_cv_path_MKDIR
6893 if test -n "$MKDIR"; then
6894 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6895 echo "${ECHO_T}$MKDIR" >&6; }
6897 { echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6; }
6902 # Extract the first word of "mv", so it can be a program name with args.
6903 set dummy mv; ac_word=$2
6904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6906 if test "${ac_cv_path_MV+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6911 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6921 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6934 if test -n "$MV"; then
6935 { echo "$as_me:$LINENO: result: $MV" >&5
6936 echo "${ECHO_T}$MV" >&6; }
6938 { echo "$as_me:$LINENO: result: no" >&5
6939 echo "${ECHO_T}no" >&6; }
6943 if test -n "$ac_tool_prefix"; then
6944 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6945 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6948 if test "${ac_cv_prog_RANLIB+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 if test -n "$RANLIB"; then
6952 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6961 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 RANLIB=$ac_cv_prog_RANLIB
6972 if test -n "$RANLIB"; then
6973 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6974 echo "${ECHO_T}$RANLIB" >&6; }
6976 { echo "$as_me:$LINENO: result: no" >&5
6977 echo "${ECHO_T}no" >&6; }
6982 if test -z "$ac_cv_prog_RANLIB"; then
6983 ac_ct_RANLIB=$RANLIB
6984 # Extract the first word of "ranlib", so it can be a program name with args.
6985 set dummy ranlib; ac_word=$2
6986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6988 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 if test -n "$ac_ct_RANLIB"; then
6992 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7001 ac_cv_prog_ac_ct_RANLIB="ranlib"
7002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7012 if test -n "$ac_ct_RANLIB"; then
7013 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7014 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7016 { echo "$as_me:$LINENO: result: no" >&5
7017 echo "${ECHO_T}no" >&6; }
7020 if test "x$ac_ct_RANLIB" = x; then
7023 case $cross_compiling:$ac_tool_warned in
7025 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7026 whose name does not start with the host triplet. If you think this
7027 configuration is useful to you, please write to autoconf@gnu.org." >&5
7028 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7029 whose name does not start with the host triplet. If you think this
7030 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7031 ac_tool_warned=yes ;;
7033 RANLIB=$ac_ct_RANLIB
7036 RANLIB="$ac_cv_prog_RANLIB"
7039 # Extract the first word of "rm", so it can be a program name with args.
7040 set dummy rm; ac_word=$2
7041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7043 if test "${ac_cv_path_RM+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7048 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 test -z "$as_dir" && as_dir=.
7056 for ac_exec_ext in '' $ac_executable_extensions; do
7057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7058 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7071 if test -n "$RM"; then
7072 { echo "$as_me:$LINENO: result: $RM" >&5
7073 echo "${ECHO_T}$RM" >&6; }
7075 { echo "$as_me:$LINENO: result: no" >&5
7076 echo "${ECHO_T}no" >&6; }
7080 # Extract the first word of "sed", so it can be a program name with args.
7081 set dummy sed; ac_word=$2
7082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7084 if test "${ac_cv_path_SED+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 test -z "$as_dir" && as_dir=.
7097 for ac_exec_ext in '' $ac_executable_extensions; do
7098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7099 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7112 if test -n "$SED"; then
7113 { echo "$as_me:$LINENO: result: $SED" >&5
7114 echo "${ECHO_T}$SED" >&6; }
7116 { echo "$as_me:$LINENO: result: no" >&5
7117 echo "${ECHO_T}no" >&6; }
7121 # Extract the first word of "tar", so it can be a program name with args.
7122 set dummy tar; ac_word=$2
7123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7125 if test "${ac_cv_path_TAR+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7140 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7153 if test -n "$TAR"; then
7154 { echo "$as_me:$LINENO: result: $TAR" >&5
7155 echo "${ECHO_T}$TAR" >&6; }
7157 { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7162 # Extract the first word of "pwd", so it can be a program name with args.
7163 set dummy pwd; ac_word=$2
7164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7166 if test "${ac_cv_path_BINPWD+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7189 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7193 BINPWD=$ac_cv_path_BINPWD
7194 if test -n "$BINPWD"; then
7195 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7196 echo "${ECHO_T}$BINPWD" >&6; }
7198 { echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6; }
7204 # Extract the first word of "Graphviz", so it can be a program name with args.
7205 set dummy Graphviz; ac_word=$2
7206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7208 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7213 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7223 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7235 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7236 if test -n "$GRAPHVIZ"; then
7237 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7238 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7240 { echo "$as_me:$LINENO: result: no" >&5
7241 echo "${ECHO_T}no" >&6; }
7245 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7247 cat >>confdefs.h <<\_ACEOF
7248 #define HAVE_GRAPHVIZ 1
7251 if test "$llvm_cv_os_type" = "MingW" ; then
7252 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7255 cat >>confdefs.h <<_ACEOF
7256 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7260 # Extract the first word of "dot", so it can be a program name with args.
7261 set dummy dot; ac_word=$2
7262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264 if test "${ac_cv_path_DOT+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7292 if test -n "$DOT"; then
7293 { echo "$as_me:$LINENO: result: $DOT" >&5
7294 echo "${ECHO_T}$DOT" >&6; }
7296 { echo "$as_me:$LINENO: result: no" >&5
7297 echo "${ECHO_T}no" >&6; }
7301 if test "$DOT" != "echo dot" ; then
7303 cat >>confdefs.h <<\_ACEOF
7307 if test "$llvm_cv_os_type" = "MingW" ; then
7308 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7311 cat >>confdefs.h <<_ACEOF
7312 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7316 for ac_prog in gv gsview32
7318 # Extract the first word of "$ac_prog", so it can be a program name with args.
7319 set dummy $ac_prog; ac_word=$2
7320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7322 if test "${ac_cv_path_GV+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7337 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7349 if test -n "$GV"; then
7350 { echo "$as_me:$LINENO: result: $GV" >&5
7351 echo "${ECHO_T}$GV" >&6; }
7353 { echo "$as_me:$LINENO: result: no" >&5
7354 echo "${ECHO_T}no" >&6; }
7358 test -n "$GV" && break
7360 test -n "$GV" || GV="echo gv"
7362 if test "$GV" != "echo gv" ; then
7364 cat >>confdefs.h <<\_ACEOF
7368 if test "$llvm_cv_os_type" = "MingW" ; then
7369 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7372 cat >>confdefs.h <<_ACEOF
7373 #define LLVM_PATH_GV "$GV${EXEEXT}"
7377 # Extract the first word of "dotty", so it can be a program name with args.
7378 set dummy dotty; ac_word=$2
7379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7381 if test "${ac_cv_path_DOTTY+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7396 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7408 DOTTY=$ac_cv_path_DOTTY
7409 if test -n "$DOTTY"; then
7410 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7411 echo "${ECHO_T}$DOTTY" >&6; }
7413 { echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6; }
7418 if test "$DOTTY" != "echo dotty" ; then
7420 cat >>confdefs.h <<\_ACEOF
7421 #define HAVE_DOTTY 1
7424 if test "$llvm_cv_os_type" = "MingW" ; then
7425 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7428 cat >>confdefs.h <<_ACEOF
7429 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7435 # Extract the first word of "perl", so it can be a program name with args.
7436 set dummy perl; ac_word=$2
7437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7439 if test "${ac_cv_path_PERL+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 test -z "$as_dir" && as_dir=.
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7454 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7466 PERL=$ac_cv_path_PERL
7467 if test -n "$PERL"; then
7468 { echo "$as_me:$LINENO: result: $PERL" >&5
7469 echo "${ECHO_T}$PERL" >&6; }
7471 { echo "$as_me:$LINENO: result: no" >&5
7472 echo "${ECHO_T}no" >&6; }
7476 if test "$PERL" != "none"; then
7477 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7478 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7479 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7480 { echo "$as_me:$LINENO: result: yes" >&5
7481 echo "${ECHO_T}yes" >&6; }
7484 { echo "$as_me:$LINENO: result: not found" >&5
7485 echo "${ECHO_T}not found" >&6; }
7490 if test x"$PERL" = xnone; then
7493 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7494 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7495 { (exit 1); exit 1; }; }
7501 # Find a good install program. We prefer a C program (faster),
7502 # so one script is as good as another. But avoid the broken or
7503 # incompatible versions:
7504 # SysV /etc/install, /usr/sbin/install
7505 # SunOS /usr/etc/install
7506 # IRIX /sbin/install
7508 # AmigaOS /C/install, which installs bootblocks on floppy discs
7509 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7510 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7511 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7512 # OS/2's system install, which has a completely different semantic
7513 # ./install, which can be erroneously created by make from ./install.sh.
7514 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7515 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7516 if test -z "$INSTALL"; then
7517 if test "${ac_cv_path_install+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 test -z "$as_dir" && as_dir=.
7525 # Account for people who put trailing slashes in PATH elements.
7527 ./ | .// | /cC/* | \
7528 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7529 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7532 # OSF1 and SCO ODT 3.0 have their own names for install.
7533 # Don't use installbsd from OSF since it installs stuff as root
7535 for ac_prog in ginstall scoinst install; do
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7538 if test $ac_prog = install &&
7539 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7540 # AIX install. It has an incompatible calling convention.
7542 elif test $ac_prog = install &&
7543 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7544 # program-specific install script used by HP pwplus--don't use.
7547 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7560 if test "${ac_cv_path_install+set}" = set; then
7561 INSTALL=$ac_cv_path_install
7563 # As a last resort, use the slow shell script. Don't cache a
7564 # value for INSTALL within a source directory, because that will
7565 # break other packages using the cache if that directory is
7566 # removed, or if the value is a relative name.
7567 INSTALL=$ac_install_sh
7570 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7571 echo "${ECHO_T}$INSTALL" >&6; }
7573 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7574 # It thinks the first close brace ends the variable substitution.
7575 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7577 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7579 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7582 # Extract the first word of "bzip2", so it can be a program name with args.
7583 set dummy bzip2; ac_word=$2
7584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7586 if test "${ac_cv_path_BZIP2+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7601 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 BZIP2=$ac_cv_path_BZIP2
7613 if test -n "$BZIP2"; then
7614 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7615 echo "${ECHO_T}$BZIP2" >&6; }
7617 { echo "$as_me:$LINENO: result: no" >&5
7618 echo "${ECHO_T}no" >&6; }
7622 # Extract the first word of "doxygen", so it can be a program name with args.
7623 set dummy doxygen; ac_word=$2
7624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7626 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 test -z "$as_dir" && as_dir=.
7639 for ac_exec_ext in '' $ac_executable_extensions; do
7640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7641 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 DOXYGEN=$ac_cv_path_DOXYGEN
7653 if test -n "$DOXYGEN"; then
7654 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7655 echo "${ECHO_T}$DOXYGEN" >&6; }
7657 { echo "$as_me:$LINENO: result: no" >&5
7658 echo "${ECHO_T}no" >&6; }
7662 # Extract the first word of "groff", so it can be a program name with args.
7663 set dummy groff; ac_word=$2
7664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7666 if test "${ac_cv_path_GROFF+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 test -z "$as_dir" && as_dir=.
7679 for ac_exec_ext in '' $ac_executable_extensions; do
7680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7681 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 GROFF=$ac_cv_path_GROFF
7693 if test -n "$GROFF"; then
7694 { echo "$as_me:$LINENO: result: $GROFF" >&5
7695 echo "${ECHO_T}$GROFF" >&6; }
7697 { echo "$as_me:$LINENO: result: no" >&5
7698 echo "${ECHO_T}no" >&6; }
7702 # Extract the first word of "gzip", so it can be a program name with args.
7703 set dummy gzip; ac_word=$2
7704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7706 if test "${ac_cv_path_GZIP+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7721 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 GZIP=$ac_cv_path_GZIP
7733 if test -n "$GZIP"; then
7734 { echo "$as_me:$LINENO: result: $GZIP" >&5
7735 echo "${ECHO_T}$GZIP" >&6; }
7737 { echo "$as_me:$LINENO: result: no" >&5
7738 echo "${ECHO_T}no" >&6; }
7742 # Extract the first word of "pod2html", so it can be a program name with args.
7743 set dummy pod2html; ac_word=$2
7744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7746 if test "${ac_cv_path_POD2HTML+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7761 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 POD2HTML=$ac_cv_path_POD2HTML
7773 if test -n "$POD2HTML"; then
7774 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7775 echo "${ECHO_T}$POD2HTML" >&6; }
7777 { echo "$as_me:$LINENO: result: no" >&5
7778 echo "${ECHO_T}no" >&6; }
7782 # Extract the first word of "pod2man", so it can be a program name with args.
7783 set dummy pod2man; ac_word=$2
7784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7786 if test "${ac_cv_path_POD2MAN+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7801 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 POD2MAN=$ac_cv_path_POD2MAN
7813 if test -n "$POD2MAN"; then
7814 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7815 echo "${ECHO_T}$POD2MAN" >&6; }
7817 { echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6; }
7822 # Extract the first word of "runtest", so it can be a program name with args.
7823 set dummy runtest; ac_word=$2
7824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7826 if test "${ac_cv_path_RUNTEST+set}" = set; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 test -z "$as_dir" && as_dir=.
7839 for ac_exec_ext in '' $ac_executable_extensions; do
7840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7841 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7852 RUNTEST=$ac_cv_path_RUNTEST
7853 if test -n "$RUNTEST"; then
7854 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7855 echo "${ECHO_T}$RUNTEST" >&6; }
7857 { echo "$as_me:$LINENO: result: no" >&5
7858 echo "${ECHO_T}no" >&6; }
7864 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7865 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7867 # Check whether --with-tclinclude was given.
7868 if test "${with_tclinclude+set}" = set; then
7869 withval=$with_tclinclude; with_tclinclude=${withval}
7874 if test "${ac_cv_path_tclsh+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7878 if test x"${with_tclinclude}" != x ; then
7879 if test -f ${with_tclinclude}/tclsh ; then
7880 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7881 elif test -f ${with_tclinclude}/src/tclsh ; then
7882 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7884 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7885 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7886 { (exit 1); exit 1; }; }
7890 if test x"${ac_cv_path_tclsh}" = x ; then
7891 { echo "$as_me:$LINENO: result: none" >&5
7892 echo "${ECHO_T}none" >&6; }
7893 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
7895 # Extract the first word of "$ac_prog", so it can be a program name with args.
7896 set dummy $ac_prog; ac_word=$2
7897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7899 if test "${ac_cv_path_TCLSH+set}" = set; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 test -z "$as_dir" && as_dir=.
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7914 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 TCLSH=$ac_cv_path_TCLSH
7926 if test -n "$TCLSH"; then
7927 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7928 echo "${ECHO_T}$TCLSH" >&6; }
7930 { echo "$as_me:$LINENO: result: no" >&5
7931 echo "${ECHO_T}no" >&6; }
7935 test -n "$TCLSH" && break
7938 if test x"${TCLSH}" = x ; then
7939 ac_cv_path_tclsh='';
7941 ac_cv_path_tclsh="${TCLSH}";
7944 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7945 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7946 TCLSH="${ac_cv_path_tclsh}"
7952 # Extract the first word of "zip", so it can be a program name with args.
7953 set dummy zip; ac_word=$2
7954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7956 if test "${ac_cv_path_ZIP+set}" = set; then
7957 echo $ECHO_N "(cached) $ECHO_C" >&6
7961 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968 test -z "$as_dir" && as_dir=.
7969 for ac_exec_ext in '' $ac_executable_extensions; do
7970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7971 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7983 if test -n "$ZIP"; then
7984 { echo "$as_me:$LINENO: result: $ZIP" >&5
7985 echo "${ECHO_T}$ZIP" >&6; }
7987 { echo "$as_me:$LINENO: result: no" >&5
7988 echo "${ECHO_T}no" >&6; }
7992 for ac_prog in ocamlc.opt ocamlc
7994 # Extract the first word of "$ac_prog", so it can be a program name with args.
7995 set dummy $ac_prog; ac_word=$2
7996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7998 if test "${ac_cv_path_OCAMLC+set}" = set; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8003 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010 test -z "$as_dir" && as_dir=.
8011 for ac_exec_ext in '' $ac_executable_extensions; do
8012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8013 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8024 OCAMLC=$ac_cv_path_OCAMLC
8025 if test -n "$OCAMLC"; then
8026 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8027 echo "${ECHO_T}$OCAMLC" >&6; }
8029 { echo "$as_me:$LINENO: result: no" >&5
8030 echo "${ECHO_T}no" >&6; }
8034 test -n "$OCAMLC" && break
8037 for ac_prog in ocamlopt.opt ocamlopt
8039 # Extract the first word of "$ac_prog", so it can be a program name with args.
8040 set dummy $ac_prog; ac_word=$2
8041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8043 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
8048 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 test -z "$as_dir" && as_dir=.
8056 for ac_exec_ext in '' $ac_executable_extensions; do
8057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8058 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8069 OCAMLOPT=$ac_cv_path_OCAMLOPT
8070 if test -n "$OCAMLOPT"; then
8071 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8072 echo "${ECHO_T}$OCAMLOPT" >&6; }
8074 { echo "$as_me:$LINENO: result: no" >&5
8075 echo "${ECHO_T}no" >&6; }
8079 test -n "$OCAMLOPT" && break
8082 for ac_prog in ocamldep.opt ocamldep
8084 # Extract the first word of "$ac_prog", so it can be a program name with args.
8085 set dummy $ac_prog; ac_word=$2
8086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8088 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8093 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 test -z "$as_dir" && as_dir=.
8101 for ac_exec_ext in '' $ac_executable_extensions; do
8102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8103 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8114 OCAMLDEP=$ac_cv_path_OCAMLDEP
8115 if test -n "$OCAMLDEP"; then
8116 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8117 echo "${ECHO_T}$OCAMLDEP" >&6; }
8119 { echo "$as_me:$LINENO: result: no" >&5
8120 echo "${ECHO_T}no" >&6; }
8124 test -n "$OCAMLDEP" && break
8127 for ac_prog in ocamldoc.opt ocamldoc
8129 # Extract the first word of "$ac_prog", so it can be a program name with args.
8130 set dummy $ac_prog; ac_word=$2
8131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8133 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8134 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145 test -z "$as_dir" && as_dir=.
8146 for ac_exec_ext in '' $ac_executable_extensions; do
8147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8148 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8159 OCAMLDOC=$ac_cv_path_OCAMLDOC
8160 if test -n "$OCAMLDOC"; then
8161 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8162 echo "${ECHO_T}$OCAMLDOC" >&6; }
8164 { echo "$as_me:$LINENO: result: no" >&5
8165 echo "${ECHO_T}no" >&6; }
8169 test -n "$OCAMLDOC" && break
8173 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8174 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8175 if test "${llvm_cv_link_use_r+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8179 ac_cpp='$CPP $CPPFLAGS'
8180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8185 CFLAGS="$CFLAGS -Wl,-R."
8186 cat >conftest.$ac_ext <<_ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h. */
8196 int main() { return 0; }
8201 rm -f conftest.$ac_objext conftest$ac_exeext
8202 if { (ac_try="$ac_link"
8204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8205 *) ac_try_echo=$ac_try;;
8207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8208 (eval "$ac_link") 2>conftest.er1
8210 grep -v '^ *+' conftest.er1 >conftest.err
8212 cat conftest.err >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); } &&
8215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8216 { (case "(($ac_try" in
8217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8218 *) ac_try_echo=$ac_try;;
8220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8221 (eval "$ac_try") 2>&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); }; } &&
8225 { ac_try='test -s conftest$ac_exeext'
8226 { (case "(($ac_try" in
8227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8228 *) ac_try_echo=$ac_try;;
8230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8231 (eval "$ac_try") 2>&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); }; }; then
8235 llvm_cv_link_use_r=yes
8237 echo "$as_me: failed program was:" >&5
8238 sed 's/^/| /' conftest.$ac_ext >&5
8240 llvm_cv_link_use_r=no
8243 rm -f core conftest.err conftest.$ac_objext \
8244 conftest$ac_exeext conftest.$ac_ext
8247 ac_cpp='$CPP $CPPFLAGS'
8248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8254 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8255 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8256 if test "$llvm_cv_link_use_r" = yes ; then
8258 cat >>confdefs.h <<\_ACEOF
8259 #define HAVE_LINK_R 1
8267 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8268 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8269 if test "${ac_cv_c_const+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8272 cat >conftest.$ac_ext <<_ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8282 /* FIXME: Include the comments suggested by Paul. */
8284 /* Ultrix mips cc rejects this. */
8285 typedef int charset[2];
8287 /* SunOS 4.1.1 cc rejects this. */
8288 char const *const *ccp;
8290 /* NEC SVR4.0.2 mips cc rejects this. */
8291 struct point {int x, y;};
8292 static struct point const zero = {0,0};
8293 /* AIX XL C 1.02.0.0 rejects this.
8294 It does not let you subtract one const X* pointer from another in
8295 an arm of an if-expression whose if-part is not a constant
8297 const char *g = "string";
8298 ccp = &g + (g ? g-g : 0);
8299 /* HPUX 7.0 cc rejects these. */
8302 ccp = (char const *const *) p;
8303 { /* SCO 3.2v4 cc rejects this. */
8305 char const *s = 0 ? (char *) 0 : (char const *) 0;
8310 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8312 const int *foo = &x[0];
8315 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8316 typedef const int *iptr;
8320 { /* AIX XL C 1.02.0.0 rejects this saying
8321 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8322 struct s { int j; const int *ap[3]; };
8323 struct s *b; b->j = 5;
8325 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8329 return !x[0] && !zero.x;
8336 rm -f conftest.$ac_objext
8337 if { (ac_try="$ac_compile"
8339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340 *) ac_try_echo=$ac_try;;
8342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8343 (eval "$ac_compile") 2>conftest.er1
8345 grep -v '^ *+' conftest.er1 >conftest.err
8347 cat conftest.err >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } &&
8350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8351 { (case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_try") 2>&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; } &&
8360 { ac_try='test -s conftest.$ac_objext'
8361 { (case "(($ac_try" in
8362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363 *) ac_try_echo=$ac_try;;
8365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366 (eval "$ac_try") 2>&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; }; then
8372 echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8380 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8381 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8382 if test $ac_cv_c_const = no; then
8384 cat >>confdefs.h <<\_ACEOF
8396 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8397 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8398 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8399 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8401 echo $ECHO_N "(cached) $ECHO_C" >&6
8403 cat >conftest.$ac_ext <<_ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h. */
8409 #include <sys/types.h>
8421 rm -f conftest.$ac_objext
8422 if { (ac_try="$ac_compile"
8424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425 *) ac_try_echo=$ac_try;;
8427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8428 (eval "$ac_compile") 2>conftest.er1
8430 grep -v '^ *+' conftest.er1 >conftest.err
8432 cat conftest.err >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); } &&
8435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8436 { (case "(($ac_try" in
8437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8438 *) ac_try_echo=$ac_try;;
8440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8441 (eval "$ac_try") 2>&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; } &&
8445 { ac_try='test -s conftest.$ac_objext'
8446 { (case "(($ac_try" in
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451 (eval "$ac_try") 2>&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; }; then
8455 eval "$as_ac_Header=yes"
8457 echo "$as_me: failed program was:" >&5
8458 sed 's/^/| /' conftest.$ac_ext >&5
8460 eval "$as_ac_Header=no"
8463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8465 ac_res=`eval echo '${'$as_ac_Header'}'`
8466 { echo "$as_me:$LINENO: result: $ac_res" >&5
8467 echo "${ECHO_T}$ac_res" >&6; }
8468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8469 cat >>confdefs.h <<_ACEOF
8470 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8473 ac_header_dirent=$ac_hdr; break
8477 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8478 if test $ac_header_dirent = dirent.h; then
8479 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8480 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8481 if test "${ac_cv_search_opendir+set}" = set; then
8482 echo $ECHO_N "(cached) $ECHO_C" >&6
8484 ac_func_search_save_LIBS=$LIBS
8485 cat >conftest.$ac_ext <<_ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h. */
8492 /* Override any GCC internal prototype to avoid an error.
8493 Use char because int might match the return type of a GCC
8494 builtin and then its argument prototype would still apply. */
8507 for ac_lib in '' dir; do
8508 if test -z "$ac_lib"; then
8509 ac_res="none required"
8512 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (ac_try="$ac_link"
8517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518 *) ac_try_echo=$ac_try;;
8520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8521 (eval "$ac_link") 2>conftest.er1
8523 grep -v '^ *+' conftest.er1 >conftest.err
8525 cat conftest.err >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } &&
8528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8529 { (case "(($ac_try" in
8530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531 *) ac_try_echo=$ac_try;;
8533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8534 (eval "$ac_try") 2>&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; } &&
8538 { ac_try='test -s conftest$ac_exeext'
8539 { (case "(($ac_try" in
8540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541 *) ac_try_echo=$ac_try;;
8543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544 (eval "$ac_try") 2>&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; }; then
8548 ac_cv_search_opendir=$ac_res
8550 echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8556 rm -f core conftest.err conftest.$ac_objext \
8558 if test "${ac_cv_search_opendir+set}" = set; then
8562 if test "${ac_cv_search_opendir+set}" = set; then
8565 ac_cv_search_opendir=no
8568 LIBS=$ac_func_search_save_LIBS
8570 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8571 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8572 ac_res=$ac_cv_search_opendir
8573 if test "$ac_res" != no; then
8574 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8579 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8580 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8581 if test "${ac_cv_search_opendir+set}" = set; then
8582 echo $ECHO_N "(cached) $ECHO_C" >&6
8584 ac_func_search_save_LIBS=$LIBS
8585 cat >conftest.$ac_ext <<_ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h. */
8592 /* Override any GCC internal prototype to avoid an error.
8593 Use char because int might match the return type of a GCC
8594 builtin and then its argument prototype would still apply. */
8607 for ac_lib in '' x; do
8608 if test -z "$ac_lib"; then
8609 ac_res="none required"
8612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8614 rm -f conftest.$ac_objext conftest$ac_exeext
8615 if { (ac_try="$ac_link"
8617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618 *) ac_try_echo=$ac_try;;
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621 (eval "$ac_link") 2>conftest.er1
8623 grep -v '^ *+' conftest.er1 >conftest.err
8625 cat conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } &&
8628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8629 { (case "(($ac_try" in
8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631 *) ac_try_echo=$ac_try;;
8633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_try") 2>&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; } &&
8638 { ac_try='test -s conftest$ac_exeext'
8639 { (case "(($ac_try" in
8640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641 *) ac_try_echo=$ac_try;;
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644 (eval "$ac_try") 2>&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; }; then
8648 ac_cv_search_opendir=$ac_res
8650 echo "$as_me: failed program was:" >&5
8651 sed 's/^/| /' conftest.$ac_ext >&5
8656 rm -f core conftest.err conftest.$ac_objext \
8658 if test "${ac_cv_search_opendir+set}" = set; then
8662 if test "${ac_cv_search_opendir+set}" = set; then
8665 ac_cv_search_opendir=no
8668 LIBS=$ac_func_search_save_LIBS
8670 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8671 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8672 ac_res=$ac_cv_search_opendir
8673 if test "$ac_res" != no; then
8674 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8681 for ac_header in dlfcn.h
8683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8690 ac_res=`eval echo '${'$as_ac_Header'}'`
8691 { echo "$as_me:$LINENO: result: $ac_res" >&5
8692 echo "${ECHO_T}$ac_res" >&6; }
8694 # Is the header compilable?
8695 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8697 cat >conftest.$ac_ext <<_ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 $ac_includes_default
8704 #include <$ac_header>
8706 rm -f conftest.$ac_objext
8707 if { (ac_try="$ac_compile"
8709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710 *) ac_try_echo=$ac_try;;
8712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_compile") 2>conftest.er1
8715 grep -v '^ *+' conftest.er1 >conftest.err
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } &&
8720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8721 { (case "(($ac_try" in
8722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8723 *) ac_try_echo=$ac_try;;
8725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8726 (eval "$ac_try") 2>&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; } &&
8730 { ac_try='test -s conftest.$ac_objext'
8731 { (case "(($ac_try" in
8732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733 *) ac_try_echo=$ac_try;;
8735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736 (eval "$ac_try") 2>&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; }; then
8740 ac_header_compiler=yes
8742 echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8745 ac_header_compiler=no
8748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8750 echo "${ECHO_T}$ac_header_compiler" >&6; }
8752 # Is the header present?
8753 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8755 cat >conftest.$ac_ext <<_ACEOF
8758 cat confdefs.h >>conftest.$ac_ext
8759 cat >>conftest.$ac_ext <<_ACEOF
8760 /* end confdefs.h. */
8761 #include <$ac_header>
8763 if { (ac_try="$ac_cpp conftest.$ac_ext"
8765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766 *) ac_try_echo=$ac_try;;
8768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8771 grep -v '^ *+' conftest.er1 >conftest.err
8773 cat conftest.err >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } >/dev/null; then
8776 if test -s conftest.err; then
8777 ac_cpp_err=$ac_c_preproc_warn_flag
8778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8785 if test -z "$ac_cpp_err"; then
8786 ac_header_preproc=yes
8788 echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8791 ac_header_preproc=no
8794 rm -f conftest.err conftest.$ac_ext
8795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8796 echo "${ECHO_T}$ac_header_preproc" >&6; }
8798 # So? What about this header?
8799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8805 ac_header_preproc=yes
8808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8811 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8813 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8815 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8819 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8821 ## ----------------------------------- ##
8822 ## Report this to llvmbugs@cs.uiuc.edu ##
8823 ## ----------------------------------- ##
8825 ) | sed "s/^/$as_me: WARNING: /" >&2
8828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8831 echo $ECHO_N "(cached) $ECHO_C" >&6
8833 eval "$as_ac_Header=\$ac_header_preproc"
8835 ac_res=`eval echo '${'$as_ac_Header'}'`
8836 { echo "$as_me:$LINENO: result: $ac_res" >&5
8837 echo "${ECHO_T}$ac_res" >&6; }
8840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8841 cat >>confdefs.h <<_ACEOF
8842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8849 # Check whether --enable-ltdl-install was given.
8850 if test "${enable_ltdl_install+set}" = set; then
8851 enableval=$enable_ltdl_install;
8857 if test x"${enable_ltdl_install-no}" != xno; then
8859 INSTALL_LTDL_FALSE='#'
8861 INSTALL_LTDL_TRUE='#'
8867 if test x"${enable_ltdl_convenience-no}" != xno; then
8868 CONVENIENCE_LTDL_TRUE=
8869 CONVENIENCE_LTDL_FALSE='#'
8871 CONVENIENCE_LTDL_TRUE='#'
8872 CONVENIENCE_LTDL_FALSE=
8876 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8877 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8879 libname_spec='lib$name'
8887 shlibpath_overrides_runpath=unknown
8889 dynamic_linker="$host_os ld.so"
8890 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8891 if test "$GCC" = yes; then
8892 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8893 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8894 # if the path contains ";" then we assume it to be the separator
8895 # otherwise default to the standard path separator (i.e. ":") - it is
8896 # assumed that no part of a normal pathname contains ";" but that should
8897 # okay in the real world where ";" in dirpaths is itself problematic.
8898 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8900 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8903 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8905 need_lib_prefix=unknown
8906 hardcode_into_libs=no
8908 # when you set need_version to no, make sure it does not cause -set_version
8909 # flags to be left without arguments
8910 need_version=unknown
8915 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8916 shlibpath_var=LIBPATH
8918 # AIX 3 has no versioning support, so we append a major version to the name.
8919 soname_spec='${libname}${release}${shared_ext}$major'
8926 hardcode_into_libs=yes
8927 if test "$host_cpu" = ia64; then
8928 # AIX 5 supports IA64
8929 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8930 shlibpath_var=LD_LIBRARY_PATH
8932 # With GCC up to 2.95.x, collect2 would create an import file
8933 # for dependence libraries. The import file would start with
8934 # the line `#! .'. This would cause the generated library to
8935 # depend on `.', always an invalid library. This was fixed in
8936 # development snapshots of GCC prior to 3.0.
8938 aix4 | aix4.[01] | aix4.[01].*)
8939 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8941 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8948 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8949 # soname into executable. Probably we can add versioning support to
8950 # collect2, so additional links can be useful in future.
8951 if test "$aix_use_runtimelinking" = yes; then
8952 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8953 # instead of lib<name>.a to let people know that these are not
8954 # typical AIX shared libraries.
8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8957 # We preserve .a as extension for shared libraries through AIX4.2
8958 # and later when we are not doing run time linking.
8959 library_names_spec='${libname}${release}.a $libname.a'
8960 soname_spec='${libname}${release}${shared_ext}$major'
8962 shlibpath_var=LIBPATH
8967 library_names_spec='$libname.ixlibrary $libname.a'
8968 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8969 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'
8973 library_names_spec='${libname}${shared_ext}'
8974 dynamic_linker="$host_os ld.so"
8975 shlibpath_var=LIBRARY_PATH
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982 soname_spec='${libname}${release}${shared_ext}$major'
8983 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8984 shlibpath_var=LD_LIBRARY_PATH
8985 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8986 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8987 # the default ld.so.conf also contains /usr/contrib/lib and
8988 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8989 # libtool to hard-code these into programs
8992 cygwin* | mingw* | pw32*)
8993 version_type=windows
8998 case $GCC,$host_os in
8999 yes,cygwin* | yes,mingw* | yes,pw32*)
9000 library_names_spec='$libname.dll.a'
9001 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9002 postinstall_cmds='base_file=`basename \${file}`~
9003 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9004 dldir=$destdir/`dirname \$dlpath`~
9005 test -d \$dldir || mkdir -p \$dldir~
9006 $install_prog $dir/$dlname \$dldir/$dlname~
9007 chmod a+x \$dldir/$dlname'
9008 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9009 dlpath=$dir/\$dldll~
9011 shlibpath_overrides_runpath=yes
9015 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9016 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9017 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9020 # MinGW DLLs use traditional 'lib' prefix
9021 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9022 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9023 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9024 # It is most probably a Windows format PATH printed by
9025 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9026 # path with ; separators, and with drive letters. We can handle the
9027 # drive letters (cygwin fileutils understands them), so leave them,
9028 # especially as we might pass files found there to a mingw objdump,
9029 # which wouldn't understand a cygwinified path. Ahh.
9030 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9032 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9036 # pw32 DLLs use 'pw' prefix rather than 'lib'
9037 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9043 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9046 dynamic_linker='Win32 ld.exe'
9047 # FIXME: first we should search . and the directory the executable is in
9051 darwin* | rhapsody*)
9052 dynamic_linker="$host_os dyld"
9056 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9057 soname_spec='${libname}${release}${major}$shared_ext'
9058 shlibpath_overrides_runpath=yes
9059 shlibpath_var=DYLD_LIBRARY_PATH
9060 shrext_cmds='.dylib'
9061 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9062 if test "$GCC" = yes; then
9063 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"`
9065 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9067 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9075 soname_spec='${libname}${release}${shared_ext}$major'
9076 shlibpath_var=LD_LIBRARY_PATH
9087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9088 soname_spec='${libname}${release}${shared_ext}$major'
9089 shlibpath_var=LD_LIBRARY_PATH
9090 shlibpath_overrides_runpath=no
9091 hardcode_into_libs=yes
9092 dynamic_linker='GNU ld.so'
9095 freebsd* | dragonfly*)
9096 # DragonFly does not have aout. When/if they implement a new
9097 # versioning mechanism, adjust this.
9098 if test -x /usr/bin/objformat; then
9099 objformat=`/usr/bin/objformat`
9102 freebsd[123]*) objformat=aout ;;
9106 version_type=freebsd-$objformat
9107 case $version_type in
9109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9118 shlibpath_var=LD_LIBRARY_PATH
9121 shlibpath_overrides_runpath=yes
9123 freebsd3.[01]* | freebsdelf3.[01]*)
9124 shlibpath_overrides_runpath=yes
9125 hardcode_into_libs=yes
9127 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9128 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9129 shlibpath_overrides_runpath=no
9130 hardcode_into_libs=yes
9132 freebsd*) # from 4.6 on
9133 shlibpath_overrides_runpath=yes
9134 hardcode_into_libs=yes
9143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9144 soname_spec='${libname}${release}${shared_ext}$major'
9145 shlibpath_var=LD_LIBRARY_PATH
9146 hardcode_into_libs=yes
9149 hpux9* | hpux10* | hpux11*)
9150 # Give a soname corresponding to the major version so that dld.sl refuses to
9151 # link against other versions.
9158 hardcode_into_libs=yes
9159 dynamic_linker="$host_os dld.so"
9160 shlibpath_var=LD_LIBRARY_PATH
9161 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9163 soname_spec='${libname}${release}${shared_ext}$major'
9164 if test "X$HPUX_IA64_MODE" = X32; then
9165 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9167 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9169 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9173 hardcode_into_libs=yes
9174 dynamic_linker="$host_os dld.sl"
9175 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9176 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178 soname_spec='${libname}${release}${shared_ext}$major'
9179 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9180 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9184 dynamic_linker="$host_os dld.sl"
9185 shlibpath_var=SHLIB_PATH
9186 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9188 soname_spec='${libname}${release}${shared_ext}$major'
9191 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9192 postinstall_cmds='chmod 555 $lib'
9199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9200 soname_spec='${libname}${release}${shared_ext}$major'
9201 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9202 shlibpath_var=LD_LIBRARY_PATH
9203 shlibpath_overrides_runpath=no
9204 hardcode_into_libs=yes
9207 irix5* | irix6* | nonstopux*)
9209 nonstopux*) version_type=nonstopux ;;
9211 if test "$lt_cv_prog_gnu_ld" = yes; then
9219 soname_spec='${libname}${release}${shared_ext}$major'
9220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9222 irix5* | nonstopux*)
9226 case $LD in # libtool.m4 will add one of these switches to LD
9227 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9228 libsuff= shlibsuff= libmagic=32-bit;;
9229 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9230 libsuff=32 shlibsuff=N32 libmagic=N32;;
9231 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9232 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9233 *) libsuff= shlibsuff= libmagic=never-match;;
9237 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9238 shlibpath_overrides_runpath=no
9239 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9240 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9241 hardcode_into_libs=yes
9244 # No shared lib support for Linux oldld, aout, or coff.
9245 linux*oldld* | linux*aout* | linux*coff*)
9249 # This must be Linux ELF.
9254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9255 soname_spec='${libname}${release}${shared_ext}$major'
9256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9257 shlibpath_var=LD_LIBRARY_PATH
9258 shlibpath_overrides_runpath=no
9259 # This implies no fast_install, which is unacceptable.
9260 # Some rework will be needed to allow for fast_install
9261 # before this can be enabled.
9262 hardcode_into_libs=yes
9264 # Append ld.so.conf contents to the search path
9265 if test -f /etc/ld.so.conf; then
9266 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' ' '`
9267 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9270 # We used to test for /lib/ld.so.1 and disable shared libraries on
9271 # powerpc, because MkLinux only supported shared libraries with the
9272 # GNU dynamic linker. Since this was broken with cross compilers,
9273 # most powerpc-linux boxes support dynamic linking these days and
9274 # people can always --disable-shared, the test was removed, and we
9275 # assume the GNU/Linux dynamic linker is in use.
9276 dynamic_linker='GNU/Linux ld.so'
9283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9284 soname_spec='${libname}${release}${shared_ext}$major'
9285 shlibpath_var=LD_LIBRARY_PATH
9286 shlibpath_overrides_runpath=no
9287 hardcode_into_libs=yes
9288 dynamic_linker='GNU ld.so'
9295 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9298 dynamic_linker='NetBSD (a.out) ld.so'
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9301 soname_spec='${libname}${release}${shared_ext}$major'
9302 dynamic_linker='NetBSD ld.elf_so'
9304 shlibpath_var=LD_LIBRARY_PATH
9305 shlibpath_overrides_runpath=yes
9306 hardcode_into_libs=yes
9311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9312 shlibpath_var=LD_LIBRARY_PATH
9313 shlibpath_overrides_runpath=yes
9320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9321 soname_spec='${libname}${release}${shared_ext}$major'
9322 shlibpath_var=LD_LIBRARY_PATH
9323 shlibpath_overrides_runpath=yes
9328 sys_lib_dlsearch_path_spec="/usr/lib"
9330 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9332 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9333 *) need_version=no ;;
9335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9336 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9337 shlibpath_var=LD_LIBRARY_PATH
9338 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9340 openbsd2.[89] | openbsd2.[89].*)
9341 shlibpath_overrides_runpath=no
9344 shlibpath_overrides_runpath=yes
9348 shlibpath_overrides_runpath=yes
9353 libname_spec='$name'
9356 library_names_spec='$libname${shared_ext} $libname.a'
9357 dynamic_linker='OS/2 ld.exe'
9358 shlibpath_var=LIBPATH
9361 osf3* | osf4* | osf5*)
9365 soname_spec='${libname}${release}${shared_ext}$major'
9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9367 shlibpath_var=LD_LIBRARY_PATH
9368 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9369 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9377 soname_spec='${libname}${release}${shared_ext}$major'
9378 shlibpath_var=LD_LIBRARY_PATH
9379 shlibpath_overrides_runpath=yes
9380 hardcode_into_libs=yes
9381 # ldd complains unless libraries are executable
9382 postinstall_cmds='chmod +x $lib'
9387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9388 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9389 shlibpath_var=LD_LIBRARY_PATH
9390 shlibpath_overrides_runpath=yes
9391 if test "$with_gnu_ld" = yes; then
9399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9400 soname_spec='${libname}${release}${shared_ext}$major'
9401 shlibpath_var=LD_LIBRARY_PATH
9402 case $host_vendor in
9404 shlibpath_overrides_runpath=no
9406 export_dynamic_flag_spec='${wl}-Blargedynsym'
9407 runpath_var=LD_RUN_PATH
9415 shlibpath_overrides_runpath=no
9416 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9422 if test -d /usr/nec ;then
9424 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9425 soname_spec='$libname${shared_ext}.$major'
9426 shlibpath_var=LD_LIBRARY_PATH
9430 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9431 version_type=freebsd-elf
9434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9435 soname_spec='${libname}${release}${shared_ext}$major'
9436 shlibpath_var=LD_LIBRARY_PATH
9437 hardcode_into_libs=yes
9438 if test "$with_gnu_ld" = yes; then
9439 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9440 shlibpath_overrides_runpath=no
9442 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9443 shlibpath_overrides_runpath=yes
9446 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9450 sys_lib_dlsearch_path_spec='/usr/lib'
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9456 soname_spec='${libname}${release}${shared_ext}$major'
9457 shlibpath_var=LD_LIBRARY_PATH
9464 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9465 echo "${ECHO_T}$dynamic_linker" >&6; }
9466 test "$dynamic_linker" = no && can_build_shared=no
9468 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9469 if test "$GCC" = yes; then
9470 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9474 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9475 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9476 if test "${libltdl_cv_shlibext+set}" = set; then
9477 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 eval libltdl_cv_shlibext=$shrext_cmds
9484 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9485 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9486 if test -n "$libltdl_cv_shlibext"; then
9488 cat >>confdefs.h <<_ACEOF
9489 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9495 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9496 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9497 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 libltdl_cv_shlibpath_var="$shlibpath_var"
9502 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9503 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9504 if test -n "$libltdl_cv_shlibpath_var"; then
9506 cat >>confdefs.h <<_ACEOF
9507 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9513 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9514 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9515 if test "${libltdl_cv_sys_search_path+set}" = set; then
9516 echo $ECHO_N "(cached) $ECHO_C" >&6
9518 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9520 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9521 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9522 if test -n "$libltdl_cv_sys_search_path"; then
9524 for dir in $libltdl_cv_sys_search_path; do
9525 if test -z "$sys_search_path"; then
9526 sys_search_path="$dir"
9528 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9532 cat >>confdefs.h <<_ACEOF
9533 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9538 { echo "$as_me:$LINENO: checking for objdir" >&5
9539 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9540 if test "${libltdl_cv_objdir+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9543 libltdl_cv_objdir="$objdir"
9544 if test -n "$objdir"; then
9547 rm -f .libs 2>/dev/null
9548 mkdir .libs 2>/dev/null
9549 if test -d .libs; then
9550 libltdl_cv_objdir=.libs
9552 # MS-DOS does not allow filenames that begin with a dot.
9553 libltdl_cv_objdir=_libs
9555 rmdir .libs 2>/dev/null
9559 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9560 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9562 cat >>confdefs.h <<_ACEOF
9563 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9571 # Check for command to grab the raw symbol name followed by C symbol from nm.
9572 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9573 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9574 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9578 # These are sane defaults that work on at least a few old systems.
9579 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9581 # Character class describing NM global symbol codes.
9582 symcode='[BCDEGRST]'
9584 # Regexp to match symbols that can be accessed directly from C.
9585 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9587 # Transform an extracted symbol line into a proper C declaration
9588 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9590 # Transform an extracted symbol line into symbol name and symbol address
9591 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'"
9593 # Define system-specific variables.
9598 cygwin* | mingw* | pw32*)
9599 symcode='[ABCDGISTW]'
9601 hpux*) # Its linker distinguishes data from code symbols
9602 if test "$host_cpu" = ia64; then
9603 symcode='[ABCDEGRST]'
9605 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9606 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9609 if test "$host_cpu" = ia64; then
9610 symcode='[ABCDGIRSTW]'
9611 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9612 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'"
9616 symcode='[BCDEGRST]'
9619 symcode='[BCDEGQRST]'
9630 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9638 # Handle CRLF in mingw tool chain
9642 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9646 # If we're using GNU nm, then use its standard symbol codes.
9647 case `$NM -V 2>&1` in
9648 *GNU* | *'with BFD'*)
9649 symcode='[ABCDGIRSTW]' ;;
9652 # Try without a prefix undercore, then with it.
9653 for ac_symprfx in "" "_"; do
9655 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9656 symxfrm="\\1 $ac_symprfx\\2 \\2"
9658 # Write the raw and C identifiers.
9659 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9661 # Check to see that the pipe works correctly.
9665 cat > conftest.$ac_ext <<EOF
9670 void nm_test_func(){}
9674 int main(){nm_test_var='a';nm_test_func();return(0);}
9677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9678 (eval $ac_compile) 2>&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; then
9682 # Now try to grab the symbols.
9684 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9685 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); } && test -s "$nlist"; then
9689 # Try sorting and uniquifying the output.
9690 if sort "$nlist" | uniq > "$nlist"T; then
9691 mv -f "$nlist"T "$nlist"
9696 # Make sure that we snagged all the symbols we need.
9697 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9698 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9699 cat <<EOF > conftest.$ac_ext
9705 # Now generate the symbol file.
9706 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9708 cat <<EOF >> conftest.$ac_ext
9709 #if defined (__STDC__) && __STDC__
9710 # define lt_ptr_t void *
9712 # define lt_ptr_t char *
9716 /* The mapping between symbol names and symbols. */
9721 lt_preloaded_symbols[] =
9724 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9725 cat <<\EOF >> conftest.$ac_ext
9733 # Now try linking the two files.
9734 mv conftest.$ac_objext conftstm.$ac_objext
9735 lt_save_LIBS="$LIBS"
9736 lt_save_CFLAGS="$CFLAGS"
9737 LIBS="conftstm.$ac_objext"
9738 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9740 (eval $ac_link) 2>&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9746 LIBS="$lt_save_LIBS"
9747 CFLAGS="$lt_save_CFLAGS"
9749 echo "cannot find nm_test_func in $nlist" >&5
9752 echo "cannot find nm_test_var in $nlist" >&5
9755 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9758 echo "$progname: failed program was:" >&5
9759 cat conftest.$ac_ext >&5
9761 rm -f conftest* conftst*
9763 # Do not use the global_symbol_pipe unless it works.
9764 if test "$pipe_works" = yes; then
9767 lt_cv_sys_global_symbol_pipe=
9773 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9774 lt_cv_sys_global_symbol_to_cdecl=
9776 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9777 { echo "$as_me:$LINENO: result: failed" >&5
9778 echo "${ECHO_T}failed" >&6; }
9780 { echo "$as_me:$LINENO: result: ok" >&5
9781 echo "${ECHO_T}ok" >&6; }
9785 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9786 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9787 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9788 echo $ECHO_N "(cached) $ECHO_C" >&6
9790 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9791 libltdl_cv_preloaded_symbols=yes
9793 libltdl_cv_preloaded_symbols=no
9797 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9798 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9799 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9801 cat >>confdefs.h <<\_ACEOF
9802 #define HAVE_PRELOADED_SYMBOLS 1
9810 ac_cpp='$CPP $CPPFLAGS'
9811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9816 { echo "$as_me:$LINENO: checking for shl_load" >&5
9817 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9818 if test "${ac_cv_func_shl_load+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 cat >conftest.$ac_ext <<_ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9827 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9829 #define shl_load innocuous_shl_load
9831 /* System header to define __stub macros and hopefully few prototypes,
9832 which can conflict with char shl_load (); below.
9833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9834 <limits.h> exists even on freestanding compilers. */
9837 # include <limits.h>
9839 # include <assert.h>
9844 /* Override any GCC internal prototype to avoid an error.
9845 Use char because int might match the return type of a GCC
9846 builtin and then its argument prototype would still apply. */
9851 /* The GNU C library defines this for functions which it implements
9852 to always fail with ENOSYS. Some functions are actually named
9853 something starting with __ and the normal name is an alias. */
9854 #if defined __stub_shl_load || defined __stub___shl_load
9866 rm -f conftest.$ac_objext conftest$ac_exeext
9867 if { (ac_try="$ac_link"
9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873 (eval "$ac_link") 2>conftest.er1
9875 grep -v '^ *+' conftest.er1 >conftest.err
9877 cat conftest.err >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); } &&
9880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9881 { (case "(($ac_try" in
9882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883 *) ac_try_echo=$ac_try;;
9885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9886 (eval "$ac_try") 2>&5
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); }; } &&
9890 { ac_try='test -s conftest$ac_exeext'
9891 { (case "(($ac_try" in
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896 (eval "$ac_try") 2>&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; }; then
9900 ac_cv_func_shl_load=yes
9902 echo "$as_me: failed program was:" >&5
9903 sed 's/^/| /' conftest.$ac_ext >&5
9905 ac_cv_func_shl_load=no
9908 rm -f core conftest.err conftest.$ac_objext \
9909 conftest$ac_exeext conftest.$ac_ext
9911 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9912 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9913 if test $ac_cv_func_shl_load = yes; then
9915 cat >>confdefs.h <<\_ACEOF
9916 #define HAVE_SHL_LOAD 1
9920 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9921 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9922 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9925 ac_check_lib_save_LIBS=$LIBS
9927 cat >conftest.$ac_ext <<_ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h. */
9934 /* Override any GCC internal prototype to avoid an error.
9935 Use char because int might match the return type of a GCC
9936 builtin and then its argument prototype would still apply. */
9949 rm -f conftest.$ac_objext conftest$ac_exeext
9950 if { (ac_try="$ac_link"
9952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953 *) ac_try_echo=$ac_try;;
9955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9956 (eval "$ac_link") 2>conftest.er1
9958 grep -v '^ *+' conftest.er1 >conftest.err
9960 cat conftest.err >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); } &&
9963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9964 { (case "(($ac_try" in
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969 (eval "$ac_try") 2>&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; } &&
9973 { ac_try='test -s conftest$ac_exeext'
9974 { (case "(($ac_try" in
9975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976 *) ac_try_echo=$ac_try;;
9978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979 (eval "$ac_try") 2>&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; }; then
9983 ac_cv_lib_dld_shl_load=yes
9985 echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9988 ac_cv_lib_dld_shl_load=no
9991 rm -f core conftest.err conftest.$ac_objext \
9992 conftest$ac_exeext conftest.$ac_ext
9993 LIBS=$ac_check_lib_save_LIBS
9995 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9996 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9997 if test $ac_cv_lib_dld_shl_load = yes; then
9999 cat >>confdefs.h <<\_ACEOF
10000 #define HAVE_SHL_LOAD 1
10003 LIBADD_DL="$LIBADD_DL -ldld"
10005 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10006 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10007 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10010 ac_check_lib_save_LIBS=$LIBS
10012 cat >conftest.$ac_ext <<_ACEOF
10015 cat confdefs.h >>conftest.$ac_ext
10016 cat >>conftest.$ac_ext <<_ACEOF
10017 /* end confdefs.h. */
10019 /* Override any GCC internal prototype to avoid an error.
10020 Use char because int might match the return type of a GCC
10021 builtin and then its argument prototype would still apply. */
10034 rm -f conftest.$ac_objext conftest$ac_exeext
10035 if { (ac_try="$ac_link"
10036 case "(($ac_try" in
10037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038 *) ac_try_echo=$ac_try;;
10040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041 (eval "$ac_link") 2>conftest.er1
10043 grep -v '^ *+' conftest.er1 >conftest.err
10045 cat conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } &&
10048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10049 { (case "(($ac_try" in
10050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051 *) ac_try_echo=$ac_try;;
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054 (eval "$ac_try") 2>&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); }; } &&
10058 { ac_try='test -s conftest$ac_exeext'
10059 { (case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064 (eval "$ac_try") 2>&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; }; then
10068 ac_cv_lib_dl_dlopen=yes
10070 echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10073 ac_cv_lib_dl_dlopen=no
10076 rm -f core conftest.err conftest.$ac_objext \
10077 conftest$ac_exeext conftest.$ac_ext
10078 LIBS=$ac_check_lib_save_LIBS
10080 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10081 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10082 if test $ac_cv_lib_dl_dlopen = yes; then
10084 cat >>confdefs.h <<\_ACEOF
10085 #define HAVE_LIBDL 1
10088 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10090 cat >conftest.$ac_ext <<_ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h. */
10097 # include <dlfcn.h>
10108 rm -f conftest.$ac_objext conftest$ac_exeext
10109 if { (ac_try="$ac_link"
10110 case "(($ac_try" in
10111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112 *) ac_try_echo=$ac_try;;
10114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115 (eval "$ac_link") 2>conftest.er1
10117 grep -v '^ *+' conftest.er1 >conftest.err
10119 cat conftest.err >&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); } &&
10122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10123 { (case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128 (eval "$ac_try") 2>&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; } &&
10132 { ac_try='test -s conftest$ac_exeext'
10133 { (case "(($ac_try" in
10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_try") 2>&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; }; then
10143 cat >>confdefs.h <<\_ACEOF
10144 #define HAVE_LIBDL 1
10146 libltdl_cv_func_dlopen="yes"
10148 echo "$as_me: failed program was:" >&5
10149 sed 's/^/| /' conftest.$ac_ext >&5
10151 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10152 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10153 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 ac_check_lib_save_LIBS=$LIBS
10157 LIBS="-lsvld $LIBS"
10158 cat >conftest.$ac_ext <<_ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10165 /* Override any GCC internal prototype to avoid an error.
10166 Use char because int might match the return type of a GCC
10167 builtin and then its argument prototype would still apply. */
10180 rm -f conftest.$ac_objext conftest$ac_exeext
10181 if { (ac_try="$ac_link"
10182 case "(($ac_try" in
10183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10184 *) ac_try_echo=$ac_try;;
10186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10187 (eval "$ac_link") 2>conftest.er1
10189 grep -v '^ *+' conftest.er1 >conftest.err
10191 cat conftest.err >&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } &&
10194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10195 { (case "(($ac_try" in
10196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197 *) ac_try_echo=$ac_try;;
10199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200 (eval "$ac_try") 2>&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; } &&
10204 { ac_try='test -s conftest$ac_exeext'
10205 { (case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_try") 2>&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; }; then
10214 ac_cv_lib_svld_dlopen=yes
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10219 ac_cv_lib_svld_dlopen=no
10222 rm -f core conftest.err conftest.$ac_objext \
10223 conftest$ac_exeext conftest.$ac_ext
10224 LIBS=$ac_check_lib_save_LIBS
10226 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10227 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10228 if test $ac_cv_lib_svld_dlopen = yes; then
10230 cat >>confdefs.h <<\_ACEOF
10231 #define HAVE_LIBDL 1
10234 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10236 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10237 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10238 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10241 ac_check_lib_save_LIBS=$LIBS
10243 cat >conftest.$ac_ext <<_ACEOF
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h. */
10250 /* Override any GCC internal prototype to avoid an error.
10251 Use char because int might match the return type of a GCC
10252 builtin and then its argument prototype would still apply. */
10260 return dld_link ();
10265 rm -f conftest.$ac_objext conftest$ac_exeext
10266 if { (ac_try="$ac_link"
10267 case "(($ac_try" in
10268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10269 *) ac_try_echo=$ac_try;;
10271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272 (eval "$ac_link") 2>conftest.er1
10274 grep -v '^ *+' conftest.er1 >conftest.err
10276 cat conftest.err >&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } &&
10279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10280 { (case "(($ac_try" in
10281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10282 *) ac_try_echo=$ac_try;;
10284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10285 (eval "$ac_try") 2>&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); }; } &&
10289 { ac_try='test -s conftest$ac_exeext'
10290 { (case "(($ac_try" in
10291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292 *) ac_try_echo=$ac_try;;
10294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295 (eval "$ac_try") 2>&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; }; then
10299 ac_cv_lib_dld_dld_link=yes
10301 echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10304 ac_cv_lib_dld_dld_link=no
10307 rm -f core conftest.err conftest.$ac_objext \
10308 conftest$ac_exeext conftest.$ac_ext
10309 LIBS=$ac_check_lib_save_LIBS
10311 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10312 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10313 if test $ac_cv_lib_dld_dld_link = yes; then
10315 cat >>confdefs.h <<\_ACEOF
10319 LIBADD_DL="$LIBADD_DL -ldld"
10321 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10322 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10323 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10326 cat >conftest.$ac_ext <<_ACEOF
10329 cat confdefs.h >>conftest.$ac_ext
10330 cat >>conftest.$ac_ext <<_ACEOF
10331 /* end confdefs.h. */
10332 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10334 #define _dyld_func_lookup innocuous__dyld_func_lookup
10336 /* System header to define __stub macros and hopefully few prototypes,
10337 which can conflict with char _dyld_func_lookup (); below.
10338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10339 <limits.h> exists even on freestanding compilers. */
10342 # include <limits.h>
10344 # include <assert.h>
10347 #undef _dyld_func_lookup
10349 /* Override any GCC internal prototype to avoid an error.
10350 Use char because int might match the return type of a GCC
10351 builtin and then its argument prototype would still apply. */
10355 char _dyld_func_lookup ();
10356 /* The GNU C library defines this for functions which it implements
10357 to always fail with ENOSYS. Some functions are actually named
10358 something starting with __ and the normal name is an alias. */
10359 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10366 return _dyld_func_lookup ();
10371 rm -f conftest.$ac_objext conftest$ac_exeext
10372 if { (ac_try="$ac_link"
10373 case "(($ac_try" in
10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375 *) ac_try_echo=$ac_try;;
10377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378 (eval "$ac_link") 2>conftest.er1
10380 grep -v '^ *+' conftest.er1 >conftest.err
10382 cat conftest.err >&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } &&
10385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10386 { (case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391 (eval "$ac_try") 2>&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; } &&
10395 { ac_try='test -s conftest$ac_exeext'
10396 { (case "(($ac_try" in
10397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398 *) ac_try_echo=$ac_try;;
10400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401 (eval "$ac_try") 2>&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; }; then
10405 ac_cv_func__dyld_func_lookup=yes
10407 echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10410 ac_cv_func__dyld_func_lookup=no
10413 rm -f core conftest.err conftest.$ac_objext \
10414 conftest$ac_exeext conftest.$ac_ext
10416 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10417 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10418 if test $ac_cv_func__dyld_func_lookup = yes; then
10420 cat >>confdefs.h <<\_ACEOF
10421 #define HAVE_DYLD 1
10435 rm -f core conftest.err conftest.$ac_objext \
10436 conftest$ac_exeext conftest.$ac_ext
10447 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10449 lt_save_LIBS="$LIBS"
10450 LIBS="$LIBS $LIBADD_DL"
10452 for ac_func in dlerror
10454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10455 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10458 echo $ECHO_N "(cached) $ECHO_C" >&6
10460 cat >conftest.$ac_ext <<_ACEOF
10463 cat confdefs.h >>conftest.$ac_ext
10464 cat >>conftest.$ac_ext <<_ACEOF
10465 /* end confdefs.h. */
10466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10468 #define $ac_func innocuous_$ac_func
10470 /* System header to define __stub macros and hopefully few prototypes,
10471 which can conflict with char $ac_func (); below.
10472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10473 <limits.h> exists even on freestanding compilers. */
10476 # include <limits.h>
10478 # include <assert.h>
10483 /* Override any GCC internal prototype to avoid an error.
10484 Use char because int might match the return type of a GCC
10485 builtin and then its argument prototype would still apply. */
10490 /* The GNU C library defines this for functions which it implements
10491 to always fail with ENOSYS. Some functions are actually named
10492 something starting with __ and the normal name is an alias. */
10493 #if defined __stub_$ac_func || defined __stub___$ac_func
10500 return $ac_func ();
10505 rm -f conftest.$ac_objext conftest$ac_exeext
10506 if { (ac_try="$ac_link"
10507 case "(($ac_try" in
10508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10509 *) ac_try_echo=$ac_try;;
10511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10512 (eval "$ac_link") 2>conftest.er1
10514 grep -v '^ *+' conftest.er1 >conftest.err
10516 cat conftest.err >&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); } &&
10519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10520 { (case "(($ac_try" in
10521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522 *) ac_try_echo=$ac_try;;
10524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525 (eval "$ac_try") 2>&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); }; } &&
10529 { ac_try='test -s conftest$ac_exeext'
10530 { (case "(($ac_try" in
10531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10532 *) ac_try_echo=$ac_try;;
10534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10535 (eval "$ac_try") 2>&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); }; }; then
10539 eval "$as_ac_var=yes"
10541 echo "$as_me: failed program was:" >&5
10542 sed 's/^/| /' conftest.$ac_ext >&5
10544 eval "$as_ac_var=no"
10547 rm -f core conftest.err conftest.$ac_objext \
10548 conftest$ac_exeext conftest.$ac_ext
10550 ac_res=`eval echo '${'$as_ac_var'}'`
10551 { echo "$as_me:$LINENO: result: $ac_res" >&5
10552 echo "${ECHO_T}$ac_res" >&6; }
10553 if test `eval echo '${'$as_ac_var'}'` = yes; then
10554 cat >>confdefs.h <<_ACEOF
10555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10561 LIBS="$lt_save_LIBS"
10564 ac_cpp='$CPP $CPPFLAGS'
10565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10571 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10572 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10573 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10576 ac_cv_sys_symbol_underscore=no
10577 cat > conftest.$ac_ext <<EOF
10578 void nm_test_func(){}
10579 int main(){nm_test_func;return 0;}
10581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10582 (eval $ac_compile) 2>&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; then
10586 # Now try to grab the symbols.
10587 ac_nlist=conftest.nm
10588 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10589 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } && test -s "$ac_nlist"; then
10593 # See whether the symbols have a leading underscore.
10594 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10595 ac_cv_sys_symbol_underscore=yes
10597 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10600 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10604 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10607 echo "configure: failed program was:" >&5
10613 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10614 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10617 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10618 if test x"$libltdl_cv_func_dlopen" = xyes ||
10619 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10620 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10621 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10622 if test "${libltdl_cv_need_uscore+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10625 libltdl_cv_need_uscore=unknown
10627 LIBS="$LIBS $LIBADD_DL"
10628 if test "$cross_compiling" = yes; then :
10629 libltdl_cv_need_uscore=cross
10631 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10632 lt_status=$lt_dlunknown
10633 cat > conftest.$ac_ext <<EOF
10634 #line 10634 "configure"
10635 #include "confdefs.h"
10644 # define LT_DLGLOBAL RTLD_GLOBAL
10647 # define LT_DLGLOBAL DL_GLOBAL
10649 # define LT_DLGLOBAL 0
10653 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10654 find out it does not work in some platform. */
10655 #ifndef LT_DLLAZY_OR_NOW
10657 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10660 # define LT_DLLAZY_OR_NOW DL_LAZY
10663 # define LT_DLLAZY_OR_NOW RTLD_NOW
10666 # define LT_DLLAZY_OR_NOW DL_NOW
10668 # define LT_DLLAZY_OR_NOW 0
10676 extern "C" void exit (int);
10679 void fnord() { int i=42;}
10682 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10683 int status = $lt_dlunknown;
10687 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10688 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10689 /* dlclose (self); */
10697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10698 (eval $ac_link) 2>&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10702 (./conftest; exit; ) >&5 2>/dev/null
10704 case x$lt_status in
10705 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10706 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10707 x$lt_dlunknown|x*) ;;
10710 # compilation failed
10719 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10720 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10724 if test x"$libltdl_cv_need_uscore" = xyes; then
10726 cat >>confdefs.h <<\_ACEOF
10727 #define NEED_USCORE 1
10733 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10734 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10735 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10736 echo $ECHO_N "(cached) $ECHO_C" >&6
10738 # PORTME does your system automatically load deplibs for dlopen?
10739 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10740 # For now, we just catch OSes we know something about -- in the
10741 # future, we'll try test this programmatically.
10742 libltdl_cv_sys_dlopen_deplibs=unknown
10744 aix3*|aix4.1.*|aix4.2.*)
10745 # Unknown whether this is true for these versions of AIX, but
10746 # we want this `case' here to explicitly catch those versions.
10747 libltdl_cv_sys_dlopen_deplibs=unknown
10750 libltdl_cv_sys_dlopen_deplibs=yes
10753 # Assuming the user has installed a libdl from somewhere, this is true
10754 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10755 libltdl_cv_sys_dlopen_deplibs=yes
10757 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10758 # GNU and its variants, using gnu ld.so (Glibc)
10759 libltdl_cv_sys_dlopen_deplibs=yes
10762 libltdl_cv_sys_dlopen_deplibs=yes
10765 libltdl_cv_sys_dlopen_deplibs=yes
10767 irix[12345]*|irix6.[01]*)
10768 # Catch all versions of IRIX before 6.2, and indicate that we don't
10769 # know how it worked for any of those versions.
10770 libltdl_cv_sys_dlopen_deplibs=unknown
10773 # The case above catches anything before 6.2, and it's known that
10774 # at 6.2 and later dlopen does load deplibs.
10775 libltdl_cv_sys_dlopen_deplibs=yes
10778 libltdl_cv_sys_dlopen_deplibs=yes
10781 libltdl_cv_sys_dlopen_deplibs=yes
10784 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10785 # it did *not* use an RPATH in a shared library to find objects the
10786 # library depends on, so we explictly say `no'.
10787 libltdl_cv_sys_dlopen_deplibs=no
10789 osf5.0|osf5.0a|osf5.1)
10790 # dlopen *does* load deplibs and with the right loader patch applied
10791 # it even uses RPATH in a shared library to search for shared objects
10792 # that the library depends on, but there's no easy way to know if that
10793 # patch is installed. Since this is the case, all we can really
10794 # say is unknown -- it depends on the patch being installed. If
10795 # it is, this changes to `yes'. Without it, it would be `no'.
10796 libltdl_cv_sys_dlopen_deplibs=unknown
10799 # the two cases above should catch all versions of osf <= 5.1. Read
10800 # the comments above for what we know about them.
10801 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10802 # is used to find them so we can finally say `yes'.
10803 libltdl_cv_sys_dlopen_deplibs=yes
10806 libltdl_cv_sys_dlopen_deplibs=yes
10808 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10809 libltdl_cv_sys_dlopen_deplibs=yes
10814 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10815 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10816 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10818 cat >>confdefs.h <<\_ACEOF
10819 #define LTDL_DLOPEN_DEPLIBS 1
10825 for ac_header in argz.h
10827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6
10834 ac_res=`eval echo '${'$as_ac_Header'}'`
10835 { echo "$as_me:$LINENO: result: $ac_res" >&5
10836 echo "${ECHO_T}$ac_res" >&6; }
10838 # Is the header compilable?
10839 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10840 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10841 cat >conftest.$ac_ext <<_ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h. */
10847 $ac_includes_default
10848 #include <$ac_header>
10850 rm -f conftest.$ac_objext
10851 if { (ac_try="$ac_compile"
10852 case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_compile") 2>conftest.er1
10859 grep -v '^ *+' conftest.er1 >conftest.err
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } &&
10864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10865 { (case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870 (eval "$ac_try") 2>&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; } &&
10874 { ac_try='test -s conftest.$ac_objext'
10875 { (case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_try") 2>&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; }; then
10884 ac_header_compiler=yes
10886 echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10889 ac_header_compiler=no
10892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10893 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10894 echo "${ECHO_T}$ac_header_compiler" >&6; }
10896 # Is the header present?
10897 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10898 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10899 cat >conftest.$ac_ext <<_ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10905 #include <$ac_header>
10907 if { (ac_try="$ac_cpp conftest.$ac_ext"
10908 case "(($ac_try" in
10909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10910 *) ac_try_echo=$ac_try;;
10912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10915 grep -v '^ *+' conftest.er1 >conftest.err
10917 cat conftest.err >&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } >/dev/null; then
10920 if test -s conftest.err; then
10921 ac_cpp_err=$ac_c_preproc_warn_flag
10922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10929 if test -z "$ac_cpp_err"; then
10930 ac_header_preproc=yes
10932 echo "$as_me: failed program was:" >&5
10933 sed 's/^/| /' conftest.$ac_ext >&5
10935 ac_header_preproc=no
10938 rm -f conftest.err conftest.$ac_ext
10939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10940 echo "${ECHO_T}$ac_header_preproc" >&6; }
10942 # So? What about this header?
10943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10949 ac_header_preproc=yes
10952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10959 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10965 ## ----------------------------------- ##
10966 ## Report this to llvmbugs@cs.uiuc.edu ##
10967 ## ----------------------------------- ##
10969 ) | sed "s/^/$as_me: WARNING: /" >&2
10972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10977 eval "$as_ac_Header=\$ac_header_preproc"
10979 ac_res=`eval echo '${'$as_ac_Header'}'`
10980 { echo "$as_me:$LINENO: result: $ac_res" >&5
10981 echo "${ECHO_T}$ac_res" >&6; }
10984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10985 cat >>confdefs.h <<_ACEOF
10986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10994 { echo "$as_me:$LINENO: checking for error_t" >&5
10995 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10996 if test "${ac_cv_type_error_t+set}" = set; then
10997 echo $ECHO_N "(cached) $ECHO_C" >&6
10999 cat >conftest.$ac_ext <<_ACEOF
11002 cat confdefs.h >>conftest.$ac_ext
11003 cat >>conftest.$ac_ext <<_ACEOF
11004 /* end confdefs.h. */
11009 typedef error_t ac__type_new_;
11013 if ((ac__type_new_ *) 0)
11015 if (sizeof (ac__type_new_))
11021 rm -f conftest.$ac_objext
11022 if { (ac_try="$ac_compile"
11023 case "(($ac_try" in
11024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11025 *) ac_try_echo=$ac_try;;
11027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11028 (eval "$ac_compile") 2>conftest.er1
11030 grep -v '^ *+' conftest.er1 >conftest.err
11032 cat conftest.err >&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } &&
11035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11036 { (case "(($ac_try" in
11037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038 *) ac_try_echo=$ac_try;;
11040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11041 (eval "$ac_try") 2>&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; } &&
11045 { ac_try='test -s conftest.$ac_objext'
11046 { (case "(($ac_try" in
11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051 (eval "$ac_try") 2>&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; }; then
11055 ac_cv_type_error_t=yes
11057 echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11060 ac_cv_type_error_t=no
11063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11065 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11066 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11067 if test $ac_cv_type_error_t = yes; then
11069 cat >>confdefs.h <<_ACEOF
11070 #define HAVE_ERROR_T 1
11076 cat >>confdefs.h <<\_ACEOF
11077 #define error_t int
11088 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11091 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
11096 cat >conftest.$ac_ext <<_ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h. */
11102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11104 #define $ac_func innocuous_$ac_func
11106 /* System header to define __stub macros and hopefully few prototypes,
11107 which can conflict with char $ac_func (); below.
11108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11109 <limits.h> exists even on freestanding compilers. */
11112 # include <limits.h>
11114 # include <assert.h>
11119 /* Override any GCC internal prototype to avoid an error.
11120 Use char because int might match the return type of a GCC
11121 builtin and then its argument prototype would still apply. */
11126 /* The GNU C library defines this for functions which it implements
11127 to always fail with ENOSYS. Some functions are actually named
11128 something starting with __ and the normal name is an alias. */
11129 #if defined __stub_$ac_func || defined __stub___$ac_func
11136 return $ac_func ();
11141 rm -f conftest.$ac_objext conftest$ac_exeext
11142 if { (ac_try="$ac_link"
11143 case "(($ac_try" in
11144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145 *) ac_try_echo=$ac_try;;
11147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11148 (eval "$ac_link") 2>conftest.er1
11150 grep -v '^ *+' conftest.er1 >conftest.err
11152 cat conftest.err >&5
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); } &&
11155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11156 { (case "(($ac_try" in
11157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158 *) ac_try_echo=$ac_try;;
11160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11161 (eval "$ac_try") 2>&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; } &&
11165 { ac_try='test -s conftest$ac_exeext'
11166 { (case "(($ac_try" in
11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171 (eval "$ac_try") 2>&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }; }; then
11175 eval "$as_ac_var=yes"
11177 echo "$as_me: failed program was:" >&5
11178 sed 's/^/| /' conftest.$ac_ext >&5
11180 eval "$as_ac_var=no"
11183 rm -f core conftest.err conftest.$ac_objext \
11184 conftest$ac_exeext conftest.$ac_ext
11186 ac_res=`eval echo '${'$as_ac_var'}'`
11187 { echo "$as_me:$LINENO: result: $ac_res" >&5
11188 echo "${ECHO_T}$ac_res" >&6; }
11189 if test `eval echo '${'$as_ac_var'}'` = yes; then
11190 cat >>confdefs.h <<_ACEOF
11191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11224 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11234 ac_res=`eval echo '${'$as_ac_Header'}'`
11235 { echo "$as_me:$LINENO: result: $ac_res" >&5
11236 echo "${ECHO_T}$ac_res" >&6; }
11238 # Is the header compilable?
11239 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11241 cat >conftest.$ac_ext <<_ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11247 $ac_includes_default
11248 #include <$ac_header>
11250 rm -f conftest.$ac_objext
11251 if { (ac_try="$ac_compile"
11252 case "(($ac_try" in
11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257 (eval "$ac_compile") 2>conftest.er1
11259 grep -v '^ *+' conftest.er1 >conftest.err
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } &&
11264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11265 { (case "(($ac_try" in
11266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267 *) ac_try_echo=$ac_try;;
11269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11270 (eval "$ac_try") 2>&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; } &&
11274 { ac_try='test -s conftest.$ac_objext'
11275 { (case "(($ac_try" in
11276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277 *) ac_try_echo=$ac_try;;
11279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280 (eval "$ac_try") 2>&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; }; then
11284 ac_header_compiler=yes
11286 echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11289 ac_header_compiler=no
11292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11293 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11294 echo "${ECHO_T}$ac_header_compiler" >&6; }
11296 # Is the header present?
11297 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11299 cat >conftest.$ac_ext <<_ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h. */
11305 #include <$ac_header>
11307 if { (ac_try="$ac_cpp conftest.$ac_ext"
11308 case "(($ac_try" in
11309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11310 *) ac_try_echo=$ac_try;;
11312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11315 grep -v '^ *+' conftest.er1 >conftest.err
11317 cat conftest.err >&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); } >/dev/null; then
11320 if test -s conftest.err; then
11321 ac_cpp_err=$ac_c_preproc_warn_flag
11322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11329 if test -z "$ac_cpp_err"; then
11330 ac_header_preproc=yes
11332 echo "$as_me: failed program was:" >&5
11333 sed 's/^/| /' conftest.$ac_ext >&5
11335 ac_header_preproc=no
11338 rm -f conftest.err conftest.$ac_ext
11339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11340 echo "${ECHO_T}$ac_header_preproc" >&6; }
11342 # So? What about this header?
11343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11349 ac_header_preproc=yes
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11359 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11365 ## ----------------------------------- ##
11366 ## Report this to llvmbugs@cs.uiuc.edu ##
11367 ## ----------------------------------- ##
11369 ) | sed "s/^/$as_me: WARNING: /" >&2
11372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 eval "$as_ac_Header=\$ac_header_preproc"
11379 ac_res=`eval echo '${'$as_ac_Header'}'`
11380 { echo "$as_me:$LINENO: result: $ac_res" >&5
11381 echo "${ECHO_T}$ac_res" >&6; }
11384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11385 cat >>confdefs.h <<_ACEOF
11386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11397 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11404 echo $ECHO_N "(cached) $ECHO_C" >&6
11406 ac_res=`eval echo '${'$as_ac_Header'}'`
11407 { echo "$as_me:$LINENO: result: $ac_res" >&5
11408 echo "${ECHO_T}$ac_res" >&6; }
11410 # Is the header compilable?
11411 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11413 cat >conftest.$ac_ext <<_ACEOF
11416 cat confdefs.h >>conftest.$ac_ext
11417 cat >>conftest.$ac_ext <<_ACEOF
11418 /* end confdefs.h. */
11419 $ac_includes_default
11420 #include <$ac_header>
11422 rm -f conftest.$ac_objext
11423 if { (ac_try="$ac_compile"
11424 case "(($ac_try" in
11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429 (eval "$ac_compile") 2>conftest.er1
11431 grep -v '^ *+' conftest.er1 >conftest.err
11433 cat conftest.err >&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); } &&
11436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11437 { (case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_try") 2>&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; } &&
11446 { ac_try='test -s conftest.$ac_objext'
11447 { (case "(($ac_try" in
11448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449 *) ac_try_echo=$ac_try;;
11451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452 (eval "$ac_try") 2>&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; }; then
11456 ac_header_compiler=yes
11458 echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.$ac_ext >&5
11461 ac_header_compiler=no
11464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11465 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11466 echo "${ECHO_T}$ac_header_compiler" >&6; }
11468 # Is the header present?
11469 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11471 cat >conftest.$ac_ext <<_ACEOF
11474 cat confdefs.h >>conftest.$ac_ext
11475 cat >>conftest.$ac_ext <<_ACEOF
11476 /* end confdefs.h. */
11477 #include <$ac_header>
11479 if { (ac_try="$ac_cpp conftest.$ac_ext"
11480 case "(($ac_try" in
11481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11482 *) ac_try_echo=$ac_try;;
11484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11487 grep -v '^ *+' conftest.er1 >conftest.err
11489 cat conftest.err >&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); } >/dev/null; then
11492 if test -s conftest.err; then
11493 ac_cpp_err=$ac_c_preproc_warn_flag
11494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11501 if test -z "$ac_cpp_err"; then
11502 ac_header_preproc=yes
11504 echo "$as_me: failed program was:" >&5
11505 sed 's/^/| /' conftest.$ac_ext >&5
11507 ac_header_preproc=no
11510 rm -f conftest.err conftest.$ac_ext
11511 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11512 echo "${ECHO_T}$ac_header_preproc" >&6; }
11514 # So? What about this header?
11515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11520 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11521 ac_header_preproc=yes
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11527 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11529 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11531 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11535 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11537 ## ----------------------------------- ##
11538 ## Report this to llvmbugs@cs.uiuc.edu ##
11539 ## ----------------------------------- ##
11541 ) | sed "s/^/$as_me: WARNING: /" >&2
11544 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11549 eval "$as_ac_Header=\$ac_header_preproc"
11551 ac_res=`eval echo '${'$as_ac_Header'}'`
11552 { echo "$as_me:$LINENO: result: $ac_res" >&5
11553 echo "${ECHO_T}$ac_res" >&6; }
11556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11557 cat >>confdefs.h <<_ACEOF
11558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11567 for ac_header in string.h strings.h
11569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11576 ac_res=`eval echo '${'$as_ac_Header'}'`
11577 { echo "$as_me:$LINENO: result: $ac_res" >&5
11578 echo "${ECHO_T}$ac_res" >&6; }
11580 # Is the header compilable?
11581 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11583 cat >conftest.$ac_ext <<_ACEOF
11586 cat confdefs.h >>conftest.$ac_ext
11587 cat >>conftest.$ac_ext <<_ACEOF
11588 /* end confdefs.h. */
11589 $ac_includes_default
11590 #include <$ac_header>
11592 rm -f conftest.$ac_objext
11593 if { (ac_try="$ac_compile"
11594 case "(($ac_try" in
11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 *) ac_try_echo=$ac_try;;
11598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599 (eval "$ac_compile") 2>conftest.er1
11601 grep -v '^ *+' conftest.er1 >conftest.err
11603 cat conftest.err >&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } &&
11606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11607 { (case "(($ac_try" in
11608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609 *) ac_try_echo=$ac_try;;
11611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11612 (eval "$ac_try") 2>&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; } &&
11616 { ac_try='test -s conftest.$ac_objext'
11617 { (case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_try") 2>&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; }; then
11626 ac_header_compiler=yes
11628 echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.$ac_ext >&5
11631 ac_header_compiler=no
11634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11635 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11636 echo "${ECHO_T}$ac_header_compiler" >&6; }
11638 # Is the header present?
11639 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11641 cat >conftest.$ac_ext <<_ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11647 #include <$ac_header>
11649 if { (ac_try="$ac_cpp conftest.$ac_ext"
11650 case "(($ac_try" in
11651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11652 *) ac_try_echo=$ac_try;;
11654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11657 grep -v '^ *+' conftest.er1 >conftest.err
11659 cat conftest.err >&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } >/dev/null; then
11662 if test -s conftest.err; then
11663 ac_cpp_err=$ac_c_preproc_warn_flag
11664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11671 if test -z "$ac_cpp_err"; then
11672 ac_header_preproc=yes
11674 echo "$as_me: failed program was:" >&5
11675 sed 's/^/| /' conftest.$ac_ext >&5
11677 ac_header_preproc=no
11680 rm -f conftest.err conftest.$ac_ext
11681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11682 echo "${ECHO_T}$ac_header_preproc" >&6; }
11684 # So? What about this header?
11685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11691 ac_header_preproc=yes
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11697 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11701 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11707 ## ----------------------------------- ##
11708 ## Report this to llvmbugs@cs.uiuc.edu ##
11709 ## ----------------------------------- ##
11711 ) | sed "s/^/$as_me: WARNING: /" >&2
11714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
11719 eval "$as_ac_Header=\$ac_header_preproc"
11721 ac_res=`eval echo '${'$as_ac_Header'}'`
11722 { echo "$as_me:$LINENO: result: $ac_res" >&5
11723 echo "${ECHO_T}$ac_res" >&6; }
11726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11727 cat >>confdefs.h <<_ACEOF
11728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11738 for ac_func in strchr index
11740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11741 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11746 cat >conftest.$ac_ext <<_ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11754 #define $ac_func innocuous_$ac_func
11756 /* System header to define __stub macros and hopefully few prototypes,
11757 which can conflict with char $ac_func (); below.
11758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11759 <limits.h> exists even on freestanding compilers. */
11762 # include <limits.h>
11764 # include <assert.h>
11769 /* Override any GCC internal prototype to avoid an error.
11770 Use char because int might match the return type of a GCC
11771 builtin and then its argument prototype would still apply. */
11776 /* The GNU C library defines this for functions which it implements
11777 to always fail with ENOSYS. Some functions are actually named
11778 something starting with __ and the normal name is an alias. */
11779 #if defined __stub_$ac_func || defined __stub___$ac_func
11786 return $ac_func ();
11791 rm -f conftest.$ac_objext conftest$ac_exeext
11792 if { (ac_try="$ac_link"
11793 case "(($ac_try" in
11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795 *) ac_try_echo=$ac_try;;
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798 (eval "$ac_link") 2>conftest.er1
11800 grep -v '^ *+' conftest.er1 >conftest.err
11802 cat conftest.err >&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } &&
11805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11806 { (case "(($ac_try" in
11807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808 *) ac_try_echo=$ac_try;;
11810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811 (eval "$ac_try") 2>&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; } &&
11815 { ac_try='test -s conftest$ac_exeext'
11816 { (case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_try") 2>&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; }; then
11825 eval "$as_ac_var=yes"
11827 echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11830 eval "$as_ac_var=no"
11833 rm -f core conftest.err conftest.$ac_objext \
11834 conftest$ac_exeext conftest.$ac_ext
11836 ac_res=`eval echo '${'$as_ac_var'}'`
11837 { echo "$as_me:$LINENO: result: $ac_res" >&5
11838 echo "${ECHO_T}$ac_res" >&6; }
11839 if test `eval echo '${'$as_ac_var'}'` = yes; then
11840 cat >>confdefs.h <<_ACEOF
11841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11849 for ac_func in strrchr rindex
11851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11852 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11854 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11857 cat >conftest.$ac_ext <<_ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11865 #define $ac_func innocuous_$ac_func
11867 /* System header to define __stub macros and hopefully few prototypes,
11868 which can conflict with char $ac_func (); below.
11869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11870 <limits.h> exists even on freestanding compilers. */
11873 # include <limits.h>
11875 # include <assert.h>
11880 /* Override any GCC internal prototype to avoid an error.
11881 Use char because int might match the return type of a GCC
11882 builtin and then its argument prototype would still apply. */
11887 /* The GNU C library defines this for functions which it implements
11888 to always fail with ENOSYS. Some functions are actually named
11889 something starting with __ and the normal name is an alias. */
11890 #if defined __stub_$ac_func || defined __stub___$ac_func
11897 return $ac_func ();
11902 rm -f conftest.$ac_objext conftest$ac_exeext
11903 if { (ac_try="$ac_link"
11904 case "(($ac_try" in
11905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906 *) ac_try_echo=$ac_try;;
11908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11909 (eval "$ac_link") 2>conftest.er1
11911 grep -v '^ *+' conftest.er1 >conftest.err
11913 cat conftest.err >&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); } &&
11916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11917 { (case "(($ac_try" in
11918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919 *) ac_try_echo=$ac_try;;
11921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11922 (eval "$ac_try") 2>&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; } &&
11926 { ac_try='test -s conftest$ac_exeext'
11927 { (case "(($ac_try" in
11928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929 *) ac_try_echo=$ac_try;;
11931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11932 (eval "$ac_try") 2>&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; }; then
11936 eval "$as_ac_var=yes"
11938 echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11941 eval "$as_ac_var=no"
11944 rm -f core conftest.err conftest.$ac_objext \
11945 conftest$ac_exeext conftest.$ac_ext
11947 ac_res=`eval echo '${'$as_ac_var'}'`
11948 { echo "$as_me:$LINENO: result: $ac_res" >&5
11949 echo "${ECHO_T}$ac_res" >&6; }
11950 if test `eval echo '${'$as_ac_var'}'` = yes; then
11951 cat >>confdefs.h <<_ACEOF
11952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11960 for ac_func in memcpy bcopy
11962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11963 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11965 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11968 cat >conftest.$ac_ext <<_ACEOF
11971 cat confdefs.h >>conftest.$ac_ext
11972 cat >>conftest.$ac_ext <<_ACEOF
11973 /* end confdefs.h. */
11974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11976 #define $ac_func innocuous_$ac_func
11978 /* System header to define __stub macros and hopefully few prototypes,
11979 which can conflict with char $ac_func (); below.
11980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11981 <limits.h> exists even on freestanding compilers. */
11984 # include <limits.h>
11986 # include <assert.h>
11991 /* Override any GCC internal prototype to avoid an error.
11992 Use char because int might match the return type of a GCC
11993 builtin and then its argument prototype would still apply. */
11998 /* The GNU C library defines this for functions which it implements
11999 to always fail with ENOSYS. Some functions are actually named
12000 something starting with __ and the normal name is an alias. */
12001 #if defined __stub_$ac_func || defined __stub___$ac_func
12008 return $ac_func ();
12013 rm -f conftest.$ac_objext conftest$ac_exeext
12014 if { (ac_try="$ac_link"
12015 case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020 (eval "$ac_link") 2>conftest.er1
12022 grep -v '^ *+' conftest.er1 >conftest.err
12024 cat conftest.err >&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } &&
12027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12028 { (case "(($ac_try" in
12029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030 *) ac_try_echo=$ac_try;;
12032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12033 (eval "$ac_try") 2>&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; } &&
12037 { ac_try='test -s conftest$ac_exeext'
12038 { (case "(($ac_try" in
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043 (eval "$ac_try") 2>&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; }; then
12047 eval "$as_ac_var=yes"
12049 echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12052 eval "$as_ac_var=no"
12055 rm -f core conftest.err conftest.$ac_objext \
12056 conftest$ac_exeext conftest.$ac_ext
12058 ac_res=`eval echo '${'$as_ac_var'}'`
12059 { echo "$as_me:$LINENO: result: $ac_res" >&5
12060 echo "${ECHO_T}$ac_res" >&6; }
12061 if test `eval echo '${'$as_ac_var'}'` = yes; then
12062 cat >>confdefs.h <<_ACEOF
12063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12071 for ac_func in memmove strcmp
12073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12077 echo $ECHO_N "(cached) $ECHO_C" >&6
12079 cat >conftest.$ac_ext <<_ACEOF
12082 cat confdefs.h >>conftest.$ac_ext
12083 cat >>conftest.$ac_ext <<_ACEOF
12084 /* end confdefs.h. */
12085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12087 #define $ac_func innocuous_$ac_func
12089 /* System header to define __stub macros and hopefully few prototypes,
12090 which can conflict with char $ac_func (); below.
12091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12092 <limits.h> exists even on freestanding compilers. */
12095 # include <limits.h>
12097 # include <assert.h>
12102 /* Override any GCC internal prototype to avoid an error.
12103 Use char because int might match the return type of a GCC
12104 builtin and then its argument prototype would still apply. */
12109 /* The GNU C library defines this for functions which it implements
12110 to always fail with ENOSYS. Some functions are actually named
12111 something starting with __ and the normal name is an alias. */
12112 #if defined __stub_$ac_func || defined __stub___$ac_func
12119 return $ac_func ();
12124 rm -f conftest.$ac_objext conftest$ac_exeext
12125 if { (ac_try="$ac_link"
12126 case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_link") 2>conftest.er1
12133 grep -v '^ *+' conftest.er1 >conftest.err
12135 cat conftest.err >&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } &&
12138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12139 { (case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_try") 2>&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; } &&
12148 { ac_try='test -s conftest$ac_exeext'
12149 { (case "(($ac_try" in
12150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151 *) ac_try_echo=$ac_try;;
12153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154 (eval "$ac_try") 2>&5
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); }; }; then
12158 eval "$as_ac_var=yes"
12160 echo "$as_me: failed program was:" >&5
12161 sed 's/^/| /' conftest.$ac_ext >&5
12163 eval "$as_ac_var=no"
12166 rm -f core conftest.err conftest.$ac_objext \
12167 conftest$ac_exeext conftest.$ac_ext
12169 ac_res=`eval echo '${'$as_ac_var'}'`
12170 { echo "$as_me:$LINENO: result: $ac_res" >&5
12171 echo "${ECHO_T}$ac_res" >&6; }
12172 if test `eval echo '${'$as_ac_var'}'` = yes; then
12173 cat >>confdefs.h <<_ACEOF
12174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12183 for ac_func in closedir opendir readdir
12185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12186 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12191 cat >conftest.$ac_ext <<_ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12199 #define $ac_func innocuous_$ac_func
12201 /* System header to define __stub macros and hopefully few prototypes,
12202 which can conflict with char $ac_func (); below.
12203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12204 <limits.h> exists even on freestanding compilers. */
12207 # include <limits.h>
12209 # include <assert.h>
12214 /* Override any GCC internal prototype to avoid an error.
12215 Use char because int might match the return type of a GCC
12216 builtin and then its argument prototype would still apply. */
12221 /* The GNU C library defines this for functions which it implements
12222 to always fail with ENOSYS. Some functions are actually named
12223 something starting with __ and the normal name is an alias. */
12224 #if defined __stub_$ac_func || defined __stub___$ac_func
12231 return $ac_func ();
12236 rm -f conftest.$ac_objext conftest$ac_exeext
12237 if { (ac_try="$ac_link"
12238 case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_link") 2>conftest.er1
12245 grep -v '^ *+' conftest.er1 >conftest.err
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } &&
12250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12251 { (case "(($ac_try" in
12252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253 *) ac_try_echo=$ac_try;;
12255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256 (eval "$ac_try") 2>&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; } &&
12260 { ac_try='test -s conftest$ac_exeext'
12261 { (case "(($ac_try" in
12262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263 *) ac_try_echo=$ac_try;;
12265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266 (eval "$ac_try") 2>&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12270 eval "$as_ac_var=yes"
12272 echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12275 eval "$as_ac_var=no"
12278 rm -f core conftest.err conftest.$ac_objext \
12279 conftest$ac_exeext conftest.$ac_ext
12281 ac_res=`eval echo '${'$as_ac_var'}'`
12282 { echo "$as_me:$LINENO: result: $ac_res" >&5
12283 echo "${ECHO_T}$ac_res" >&6; }
12284 if test `eval echo '${'$as_ac_var'}'` = yes; then
12285 cat >>confdefs.h <<_ACEOF
12286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12293 # Check whether --enable-shared was given.
12294 if test "${enable_shared+set}" = set; then
12295 enableval=$enable_shared; p=${PACKAGE-default}
12297 yes) enable_shared=yes ;;
12298 no) enable_shared=no ;;
12301 # Look at the argument we got. We use all the common list separators.
12302 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12303 for pkg in $enableval; do
12305 if test "X$pkg" = "X$p"; then
12317 # Check whether --enable-static was given.
12318 if test "${enable_static+set}" = set; then
12319 enableval=$enable_static; p=${PACKAGE-default}
12321 yes) enable_static=yes ;;
12322 no) enable_static=no ;;
12325 # Look at the argument we got. We use all the common list separators.
12326 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12327 for pkg in $enableval; do
12329 if test "X$pkg" = "X$p"; then
12341 # Check whether --enable-fast-install was given.
12342 if test "${enable_fast_install+set}" = set; then
12343 enableval=$enable_fast_install; p=${PACKAGE-default}
12345 yes) enable_fast_install=yes ;;
12346 no) enable_fast_install=no ;;
12348 enable_fast_install=no
12349 # Look at the argument we got. We use all the common list separators.
12350 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12351 for pkg in $enableval; do
12353 if test "X$pkg" = "X$p"; then
12354 enable_fast_install=yes
12361 enable_fast_install=yes
12365 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12366 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12367 if test "${lt_cv_path_SED+set}" = set; then
12368 echo $ECHO_N "(cached) $ECHO_C" >&6
12370 # Loop through the user's path and test for sed and gsed.
12371 # Then use that list of sed's as ones to test for truncation.
12372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12373 for as_dir in $PATH
12376 test -z "$as_dir" && as_dir=.
12377 for lt_ac_prog in sed gsed; do
12378 for ac_exec_ext in '' $ac_executable_extensions; do
12379 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12380 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12387 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12388 # along with /bin/sed that truncates output.
12389 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12390 test ! -f $lt_ac_sed && continue
12391 cat /dev/null > conftest.in
12393 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12394 # Check for GNU sed and select it if it is found.
12395 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12396 lt_cv_path_SED=$lt_ac_sed
12400 cat conftest.in conftest.in >conftest.tmp
12401 mv conftest.tmp conftest.in
12402 cp conftest.in conftest.nl
12404 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12405 cmp -s conftest.out conftest.nl || break
12406 # 10000 chars as input seems more than enough
12407 test $lt_ac_count -gt 10 && break
12408 lt_ac_count=`expr $lt_ac_count + 1`
12409 if test $lt_ac_count -gt $lt_ac_max; then
12410 lt_ac_max=$lt_ac_count
12411 lt_cv_path_SED=$lt_ac_sed
12418 SED=$lt_cv_path_SED
12419 { echo "$as_me:$LINENO: result: $SED" >&5
12420 echo "${ECHO_T}$SED" >&6; }
12423 # Check whether --with-gnu-ld was given.
12424 if test "${with_gnu_ld+set}" = set; then
12425 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12431 if test "$GCC" = yes; then
12432 # Check if gcc -print-prog-name=ld gives a path.
12433 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12434 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12437 # gcc leaves a trailing carriage return which upsets mingw
12438 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12440 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12443 # Accept absolute paths.
12445 re_direlt='/[^/][^/]*/\.\./'
12446 # Canonicalize the pathname of ld
12447 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12448 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12449 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12451 test -z "$LD" && LD="$ac_prog"
12454 # If it fails, then pretend we aren't using GCC.
12458 # If it is relative, then search for the first ld in PATH.
12459 with_gnu_ld=unknown
12462 elif test "$with_gnu_ld" = yes; then
12463 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12464 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12466 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12467 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12469 if test "${lt_cv_path_LD+set}" = set; then
12470 echo $ECHO_N "(cached) $ECHO_C" >&6
12472 if test -z "$LD"; then
12473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12474 for ac_dir in $PATH; do
12476 test -z "$ac_dir" && ac_dir=.
12477 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12478 lt_cv_path_LD="$ac_dir/$ac_prog"
12479 # Check to see if the program is GNU ld. I'd rather use --version,
12480 # but apparently some variants of GNU ld only accept -v.
12481 # Break only if it was the GNU/non-GNU ld that we prefer.
12482 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12483 *GNU* | *'with BFD'*)
12484 test "$with_gnu_ld" != no && break
12487 test "$with_gnu_ld" != yes && break
12494 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12498 LD="$lt_cv_path_LD"
12499 if test -n "$LD"; then
12500 { echo "$as_me:$LINENO: result: $LD" >&5
12501 echo "${ECHO_T}$LD" >&6; }
12503 { echo "$as_me:$LINENO: result: no" >&5
12504 echo "${ECHO_T}no" >&6; }
12506 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12507 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12508 { (exit 1); exit 1; }; }
12509 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12510 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12511 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12514 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12515 case `$LD -v 2>&1 </dev/null` in
12516 *GNU* | *'with BFD'*)
12517 lt_cv_prog_gnu_ld=yes
12520 lt_cv_prog_gnu_ld=no
12524 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12525 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12526 with_gnu_ld=$lt_cv_prog_gnu_ld
12529 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12530 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12531 if test "${lt_cv_ld_reload_flag+set}" = set; then
12532 echo $ECHO_N "(cached) $ECHO_C" >&6
12534 lt_cv_ld_reload_flag='-r'
12536 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12537 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12538 reload_flag=$lt_cv_ld_reload_flag
12539 case $reload_flag in
12541 *) reload_flag=" $reload_flag" ;;
12543 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12546 if test "$GCC" = yes; then
12547 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12549 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12554 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12555 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12556 if test "${lt_cv_deplibs_check_method+set}" = set; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 lt_cv_file_magic_cmd='$MAGIC_CMD'
12560 lt_cv_file_magic_test_file=
12561 lt_cv_deplibs_check_method='unknown'
12562 # Need to set the preceding variable on all platforms that support
12563 # interlibrary dependencies.
12564 # 'none' -- dependencies not supported.
12565 # `unknown' -- same as none, but documents that we really don't know.
12566 # 'pass_all' -- all dependencies passed with no checks.
12567 # 'test_compile' -- check by making test program.
12568 # 'file_magic [[regex]]' -- check by looking for files in library path
12569 # which responds to the $file_magic_cmd with a given extended regex.
12570 # If you have `file' or equivalent on your system and you're not sure
12571 # whether `pass_all' will *always* work, you probably want this one.
12575 lt_cv_deplibs_check_method=pass_all
12579 lt_cv_deplibs_check_method=pass_all
12583 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12584 lt_cv_file_magic_cmd='/usr/bin/file -L'
12585 lt_cv_file_magic_test_file=/shlib/libc.so
12589 # func_win32_libid is a shell function defined in ltmain.sh
12590 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12591 lt_cv_file_magic_cmd='func_win32_libid'
12595 # Base MSYS/MinGW do not provide the 'file' command needed by
12596 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12597 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12598 lt_cv_file_magic_cmd='$OBJDUMP -f'
12601 darwin* | rhapsody*)
12602 lt_cv_deplibs_check_method=pass_all
12605 freebsd* | kfreebsd*-gnu | dragonfly*)
12606 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12609 # Not sure whether the presence of OpenBSD here was a mistake.
12610 # Let's accept both of them until this is cleared up.
12611 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12612 lt_cv_file_magic_cmd=/usr/bin/file
12613 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12617 lt_cv_deplibs_check_method=pass_all
12622 lt_cv_deplibs_check_method=pass_all
12625 hpux10.20* | hpux11*)
12626 lt_cv_file_magic_cmd=/usr/bin/file
12629 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12630 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12633 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]'
12634 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12637 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12638 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12644 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12645 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12648 irix5* | irix6* | nonstopux*)
12650 *-32|*"-32 ") libmagic=32-bit;;
12651 *-n32|*"-n32 ") libmagic=N32;;
12652 *-64|*"-64 ") libmagic=64-bit;;
12653 *) libmagic=never-match;;
12655 lt_cv_deplibs_check_method=pass_all
12658 # This must be Linux ELF.
12660 lt_cv_deplibs_check_method=pass_all
12664 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12665 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12672 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12673 lt_cv_file_magic_cmd=/usr/bin/file
12674 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12678 lt_cv_deplibs_check_method=unknown
12682 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12683 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12685 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12689 osf3* | osf4* | osf5*)
12690 lt_cv_deplibs_check_method=pass_all
12694 lt_cv_deplibs_check_method=pass_all
12698 case $host_vendor in
12700 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]'
12701 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12704 lt_cv_deplibs_check_method=pass_all
12707 lt_cv_file_magic_cmd='/bin/file'
12708 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12711 lt_cv_file_magic_cmd='/bin/file'
12712 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12713 lt_cv_file_magic_test_file=/lib/libc.so
12716 lt_cv_deplibs_check_method=pass_all
12719 lt_cv_deplibs_check_method=pass_all
12724 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12725 lt_cv_deplibs_check_method=pass_all
12730 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12731 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12732 file_magic_cmd=$lt_cv_file_magic_cmd
12733 deplibs_check_method=$lt_cv_deplibs_check_method
12734 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12738 # If no C compiler was specified, use CC.
12741 # If no C compiler flags were specified, use CFLAGS.
12742 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12744 # Allow CC to be a program name with arguments.
12747 # Check whether --enable-libtool-lock was given.
12748 if test "${enable_libtool_lock+set}" = set; then
12749 enableval=$enable_libtool_lock;
12752 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12754 # Some flags need to be propagated to the compiler or linker for good
12758 # Find out which ABI we are using.
12759 echo 'int i;' > conftest.$ac_ext
12760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12761 (eval $ac_compile) 2>&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; then
12765 case `/usr/bin/file conftest.$ac_objext` in
12767 HPUX_IA64_MODE="32"
12770 HPUX_IA64_MODE="64"
12777 # Find out which ABI we are using.
12778 echo '#line 12778 "configure"' > conftest.$ac_ext
12779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12780 (eval $ac_compile) 2>&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; then
12784 if test "$lt_cv_prog_gnu_ld" = yes; then
12785 case `/usr/bin/file conftest.$ac_objext` in
12787 LD="${LD-ld} -melf32bsmip"
12790 LD="${LD-ld} -melf32bmipn32"
12793 LD="${LD-ld} -melf64bmip"
12797 case `/usr/bin/file conftest.$ac_objext` in
12813 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12814 # Find out which ABI we are using.
12815 echo 'int i;' > conftest.$ac_ext
12816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12817 (eval $ac_compile) 2>&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); }; then
12821 case `/usr/bin/file conftest.o` in
12825 LD="${LD-ld} -m elf_i386"
12827 ppc64-*linux*|powerpc64-*linux*)
12828 LD="${LD-ld} -m elf32ppclinux"
12831 LD="${LD-ld} -m elf_s390"
12834 LD="${LD-ld} -m elf32_sparc"
12841 LD="${LD-ld} -m elf_x86_64"
12843 ppc*-*linux*|powerpc*-*linux*)
12844 LD="${LD-ld} -m elf64ppc"
12847 LD="${LD-ld} -m elf64_s390"
12850 LD="${LD-ld} -m elf64_sparc"
12860 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12861 SAVE_CFLAGS="$CFLAGS"
12862 CFLAGS="$CFLAGS -belf"
12863 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12864 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12865 if test "${lt_cv_cc_needs_belf+set}" = set; then
12866 echo $ECHO_N "(cached) $ECHO_C" >&6
12869 ac_cpp='$CPP $CPPFLAGS'
12870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12874 cat >conftest.$ac_ext <<_ACEOF
12877 cat confdefs.h >>conftest.$ac_ext
12878 cat >>conftest.$ac_ext <<_ACEOF
12879 /* end confdefs.h. */
12889 rm -f conftest.$ac_objext conftest$ac_exeext
12890 if { (ac_try="$ac_link"
12891 case "(($ac_try" in
12892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893 *) ac_try_echo=$ac_try;;
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896 (eval "$ac_link") 2>conftest.er1
12898 grep -v '^ *+' conftest.er1 >conftest.err
12900 cat conftest.err >&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } &&
12903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12904 { (case "(($ac_try" in
12905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12906 *) ac_try_echo=$ac_try;;
12908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12909 (eval "$ac_try") 2>&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; } &&
12913 { ac_try='test -s conftest$ac_exeext'
12914 { (case "(($ac_try" in
12915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12916 *) ac_try_echo=$ac_try;;
12918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919 (eval "$ac_try") 2>&5
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; }; then
12923 lt_cv_cc_needs_belf=yes
12925 echo "$as_me: failed program was:" >&5
12926 sed 's/^/| /' conftest.$ac_ext >&5
12928 lt_cv_cc_needs_belf=no
12931 rm -f core conftest.err conftest.$ac_objext \
12932 conftest$ac_exeext conftest.$ac_ext
12934 ac_cpp='$CPP $CPPFLAGS'
12935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12940 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12941 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12942 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12943 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12944 CFLAGS="$SAVE_CFLAGS"
12948 # Find out which ABI we are using.
12949 echo 'int i;' > conftest.$ac_ext
12950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12951 (eval $ac_compile) 2>&5
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); }; then
12955 case `/usr/bin/file conftest.o` in
12957 case $lt_cv_prog_gnu_ld in
12958 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12959 *) LD="${LD-ld} -64" ;;
12970 need_locks="$enable_libtool_lock"
12975 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12976 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12977 (test "X$CXX" != "Xg++"))) ; then
12979 ac_cpp='$CXXCPP $CPPFLAGS'
12980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12983 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12984 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12985 if test -z "$CXXCPP"; then
12986 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12987 echo $ECHO_N "(cached) $ECHO_C" >&6
12989 # Double quotes because CXXCPP needs to be expanded
12990 for CXXCPP in "$CXX -E" "/lib/cpp"
12992 ac_preproc_ok=false
12993 for ac_cxx_preproc_warn_flag in '' yes
12995 # Use a header file that comes with gcc, so configuring glibc
12996 # with a fresh cross-compiler works.
12997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12998 # <limits.h> exists even on freestanding compilers.
12999 # On the NeXT, cc -E runs the code through the compiler's parser,
13000 # not just through cpp. "Syntax error" is here to catch this case.
13001 cat >conftest.$ac_ext <<_ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h. */
13008 # include <limits.h>
13010 # include <assert.h>
13014 if { (ac_try="$ac_cpp conftest.$ac_ext"
13015 case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13022 grep -v '^ *+' conftest.er1 >conftest.err
13024 cat conftest.err >&5
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); } >/dev/null; then
13027 if test -s conftest.err; then
13028 ac_cpp_err=$ac_cxx_preproc_warn_flag
13029 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13036 if test -z "$ac_cpp_err"; then
13039 echo "$as_me: failed program was:" >&5
13040 sed 's/^/| /' conftest.$ac_ext >&5
13042 # Broken: fails on valid input.
13046 rm -f conftest.err conftest.$ac_ext
13048 # OK, works on sane cases. Now check whether nonexistent headers
13049 # can be detected and how.
13050 cat >conftest.$ac_ext <<_ACEOF
13053 cat confdefs.h >>conftest.$ac_ext
13054 cat >>conftest.$ac_ext <<_ACEOF
13055 /* end confdefs.h. */
13056 #include <ac_nonexistent.h>
13058 if { (ac_try="$ac_cpp conftest.$ac_ext"
13059 case "(($ac_try" in
13060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13061 *) ac_try_echo=$ac_try;;
13063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13066 grep -v '^ *+' conftest.er1 >conftest.err
13068 cat conftest.err >&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); } >/dev/null; then
13071 if test -s conftest.err; then
13072 ac_cpp_err=$ac_cxx_preproc_warn_flag
13073 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13080 if test -z "$ac_cpp_err"; then
13081 # Broken: success on invalid input.
13084 echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.$ac_ext >&5
13087 # Passes both tests.
13092 rm -f conftest.err conftest.$ac_ext
13095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13096 rm -f conftest.err conftest.$ac_ext
13097 if $ac_preproc_ok; then
13102 ac_cv_prog_CXXCPP=$CXXCPP
13105 CXXCPP=$ac_cv_prog_CXXCPP
13107 ac_cv_prog_CXXCPP=$CXXCPP
13109 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13110 echo "${ECHO_T}$CXXCPP" >&6; }
13111 ac_preproc_ok=false
13112 for ac_cxx_preproc_warn_flag in '' yes
13114 # Use a header file that comes with gcc, so configuring glibc
13115 # with a fresh cross-compiler works.
13116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13117 # <limits.h> exists even on freestanding compilers.
13118 # On the NeXT, cc -E runs the code through the compiler's parser,
13119 # not just through cpp. "Syntax error" is here to catch this case.
13120 cat >conftest.$ac_ext <<_ACEOF
13123 cat confdefs.h >>conftest.$ac_ext
13124 cat >>conftest.$ac_ext <<_ACEOF
13125 /* end confdefs.h. */
13127 # include <limits.h>
13129 # include <assert.h>
13133 if { (ac_try="$ac_cpp conftest.$ac_ext"
13134 case "(($ac_try" in
13135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13136 *) ac_try_echo=$ac_try;;
13138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13141 grep -v '^ *+' conftest.er1 >conftest.err
13143 cat conftest.err >&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); } >/dev/null; then
13146 if test -s conftest.err; then
13147 ac_cpp_err=$ac_cxx_preproc_warn_flag
13148 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13155 if test -z "$ac_cpp_err"; then
13158 echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.$ac_ext >&5
13161 # Broken: fails on valid input.
13165 rm -f conftest.err conftest.$ac_ext
13167 # OK, works on sane cases. Now check whether nonexistent headers
13168 # can be detected and how.
13169 cat >conftest.$ac_ext <<_ACEOF
13172 cat confdefs.h >>conftest.$ac_ext
13173 cat >>conftest.$ac_ext <<_ACEOF
13174 /* end confdefs.h. */
13175 #include <ac_nonexistent.h>
13177 if { (ac_try="$ac_cpp conftest.$ac_ext"
13178 case "(($ac_try" in
13179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180 *) ac_try_echo=$ac_try;;
13182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13185 grep -v '^ *+' conftest.er1 >conftest.err
13187 cat conftest.err >&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); } >/dev/null; then
13190 if test -s conftest.err; then
13191 ac_cpp_err=$ac_cxx_preproc_warn_flag
13192 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13199 if test -z "$ac_cpp_err"; then
13200 # Broken: success on invalid input.
13203 echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13206 # Passes both tests.
13211 rm -f conftest.err conftest.$ac_ext
13214 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13215 rm -f conftest.err conftest.$ac_ext
13216 if $ac_preproc_ok; then
13219 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13220 See \`config.log' for more details." >&5
13221 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13222 See \`config.log' for more details." >&2;}
13223 { (exit 1); exit 1; }; }
13227 ac_cpp='$CXXCPP $CPPFLAGS'
13228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13236 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13237 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13238 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13239 if test -n "$ac_tool_prefix"; then
13240 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
13242 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13243 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13246 if test "${ac_cv_prog_F77+set}" = set; then
13247 echo $ECHO_N "(cached) $ECHO_C" >&6
13249 if test -n "$F77"; then
13250 ac_cv_prog_F77="$F77" # Let the user override the test.
13252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13253 for as_dir in $PATH
13256 test -z "$as_dir" && as_dir=.
13257 for ac_exec_ext in '' $ac_executable_extensions; do
13258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13259 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13269 F77=$ac_cv_prog_F77
13270 if test -n "$F77"; then
13271 { echo "$as_me:$LINENO: result: $F77" >&5
13272 echo "${ECHO_T}$F77" >&6; }
13274 { echo "$as_me:$LINENO: result: no" >&5
13275 echo "${ECHO_T}no" >&6; }
13279 test -n "$F77" && break
13282 if test -z "$F77"; then
13284 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
13286 # Extract the first word of "$ac_prog", so it can be a program name with args.
13287 set dummy $ac_prog; ac_word=$2
13288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13290 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13293 if test -n "$ac_ct_F77"; then
13294 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13297 for as_dir in $PATH
13300 test -z "$as_dir" && as_dir=.
13301 for ac_exec_ext in '' $ac_executable_extensions; do
13302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13303 ac_cv_prog_ac_ct_F77="$ac_prog"
13304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13313 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13314 if test -n "$ac_ct_F77"; then
13315 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13316 echo "${ECHO_T}$ac_ct_F77" >&6; }
13318 { echo "$as_me:$LINENO: result: no" >&5
13319 echo "${ECHO_T}no" >&6; }
13323 test -n "$ac_ct_F77" && break
13326 if test "x$ac_ct_F77" = x; then
13329 case $cross_compiling:$ac_tool_warned in
13331 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13332 whose name does not start with the host triplet. If you think this
13333 configuration is useful to you, please write to autoconf@gnu.org." >&5
13334 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13335 whose name does not start with the host triplet. If you think this
13336 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13337 ac_tool_warned=yes ;;
13344 # Provide some information about the compiler.
13345 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13346 ac_compiler=`set X $ac_compile; echo $2`
13347 { (ac_try="$ac_compiler --version >&5"
13348 case "(($ac_try" in
13349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350 *) ac_try_echo=$ac_try;;
13352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353 (eval "$ac_compiler --version >&5") 2>&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }
13357 { (ac_try="$ac_compiler -v >&5"
13358 case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_compiler -v >&5") 2>&5
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }
13367 { (ac_try="$ac_compiler -V >&5"
13368 case "(($ac_try" in
13369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370 *) ac_try_echo=$ac_try;;
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373 (eval "$ac_compiler -V >&5") 2>&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }
13379 # If we don't use `.F' as extension, the preprocessor is not run on the
13380 # input file. (Note that this only needs to work for GNU compilers.)
13381 ac_save_ext=$ac_ext
13383 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13384 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13385 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13386 echo $ECHO_N "(cached) $ECHO_C" >&6
13388 cat >conftest.$ac_ext <<_ACEOF
13396 rm -f conftest.$ac_objext
13397 if { (ac_try="$ac_compile"
13398 case "(($ac_try" in
13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400 *) ac_try_echo=$ac_try;;
13402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403 (eval "$ac_compile") 2>conftest.er1
13405 grep -v '^ *+' conftest.er1 >conftest.err
13407 cat conftest.err >&5
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); } &&
13410 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13411 { (case "(($ac_try" in
13412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413 *) ac_try_echo=$ac_try;;
13415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416 (eval "$ac_try") 2>&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; } &&
13420 { ac_try='test -s conftest.$ac_objext'
13421 { (case "(($ac_try" in
13422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423 *) ac_try_echo=$ac_try;;
13425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13426 (eval "$ac_try") 2>&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; }; then
13430 ac_compiler_gnu=yes
13432 echo "$as_me: failed program was:" >&5
13433 sed 's/^/| /' conftest.$ac_ext >&5
13438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13439 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13442 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13443 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13444 ac_ext=$ac_save_ext
13445 ac_test_FFLAGS=${FFLAGS+set}
13446 ac_save_FFLAGS=$FFLAGS
13448 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13449 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13450 if test "${ac_cv_prog_f77_g+set}" = set; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13454 cat >conftest.$ac_ext <<_ACEOF
13459 rm -f conftest.$ac_objext
13460 if { (ac_try="$ac_compile"
13461 case "(($ac_try" in
13462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463 *) ac_try_echo=$ac_try;;
13465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13466 (eval "$ac_compile") 2>conftest.er1
13468 grep -v '^ *+' conftest.er1 >conftest.err
13470 cat conftest.err >&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); } &&
13473 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13474 { (case "(($ac_try" in
13475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13476 *) ac_try_echo=$ac_try;;
13478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13479 (eval "$ac_try") 2>&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); }; } &&
13483 { ac_try='test -s conftest.$ac_objext'
13484 { (case "(($ac_try" in
13485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486 *) ac_try_echo=$ac_try;;
13488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489 (eval "$ac_try") 2>&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; }; then
13493 ac_cv_prog_f77_g=yes
13495 echo "$as_me: failed program was:" >&5
13496 sed 's/^/| /' conftest.$ac_ext >&5
13498 ac_cv_prog_f77_g=no
13501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13504 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13505 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13506 if test "$ac_test_FFLAGS" = set; then
13507 FFLAGS=$ac_save_FFLAGS
13508 elif test $ac_cv_prog_f77_g = yes; then
13509 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13515 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13522 G77=`test $ac_compiler_gnu = yes && echo yes`
13524 ac_cpp='$CPP $CPPFLAGS'
13525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13531 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13533 # find the maximum length of command line arguments
13534 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13535 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13536 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13537 echo $ECHO_N "(cached) $ECHO_C" >&6
13544 # On DJGPP, this test can blow up pretty badly due to problems in libc
13545 # (any single argument exceeding 2000 bytes causes a buffer overrun
13546 # during glob expansion). Even if it were fixed, the result of this
13547 # check would be larger than it should be.
13548 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13552 # Under GNU Hurd, this test is not required because there is
13553 # no limit to the length of command line arguments.
13554 # Libtool will interpret -1 as no limit whatsoever
13555 lt_cv_sys_max_cmd_len=-1;
13559 # On Win9x/ME, this test blows up -- it succeeds, but takes
13560 # about 5 minutes as the teststring grows exponentially.
13561 # Worse, since 9x/ME are not pre-emptively multitasking,
13562 # you end up with a "frozen" computer, even though with patience
13563 # the test eventually succeeds (with a max line length of 256k).
13564 # Instead, let's just punt: use the minimum linelength reported by
13565 # all of the supported platforms: 8192 (on NT/2K/XP).
13566 lt_cv_sys_max_cmd_len=8192;
13570 # On AmigaOS with pdksh, this test takes hours, literally.
13571 # So we just punt and use a minimum line length of 8192.
13572 lt_cv_sys_max_cmd_len=8192;
13575 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13576 # This has been around since 386BSD, at least. Likely further.
13577 if test -x /sbin/sysctl; then
13578 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13579 elif test -x /usr/sbin/sysctl; then
13580 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13582 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13584 # And add a safety zone
13585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13586 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13590 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13591 lt_cv_sys_max_cmd_len=196608
13595 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13596 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13597 # nice to cause kernel panics so lets avoid the loop below.
13598 # First set a reasonable default.
13599 lt_cv_sys_max_cmd_len=16384
13601 if test -x /sbin/sysconfig; then
13602 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13603 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13608 lt_cv_sys_max_cmd_len=102400
13610 sysv5* | sco5v6* | sysv4.2uw2*)
13611 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13612 if test -n "$kargmax"; then
13613 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13615 lt_cv_sys_max_cmd_len=32768
13619 # If test is not a shell built-in, we'll probably end up computing a
13620 # maximum length that is only half of the actual maximum length, but
13622 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13623 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13624 = "XX$teststring") >/dev/null 2>&1 &&
13625 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13626 lt_cv_sys_max_cmd_len=$new_result &&
13627 test $i != 17 # 1/2 MB should be enough
13630 teststring=$teststring$teststring
13633 # Add a significant safety factor because C++ compilers can tack on massive
13634 # amounts of additional arguments before passing them to the linker.
13635 # It appears as though 1/2 is a usable value.
13636 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13642 if test -n $lt_cv_sys_max_cmd_len ; then
13643 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13644 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13646 { echo "$as_me:$LINENO: result: none" >&5
13647 echo "${ECHO_T}none" >&6; }
13653 # Check for command to grab the raw symbol name followed by C symbol from nm.
13654 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13655 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13656 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13660 # These are sane defaults that work on at least a few old systems.
13661 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13663 # Character class describing NM global symbol codes.
13664 symcode='[BCDEGRST]'
13666 # Regexp to match symbols that can be accessed directly from C.
13667 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13669 # Transform an extracted symbol line into a proper C declaration
13670 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13672 # Transform an extracted symbol line into symbol name and symbol address
13673 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'"
13675 # Define system-specific variables.
13680 cygwin* | mingw* | pw32*)
13681 symcode='[ABCDGISTW]'
13683 hpux*) # Its linker distinguishes data from code symbols
13684 if test "$host_cpu" = ia64; then
13685 symcode='[ABCDEGRST]'
13687 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13688 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
13691 if test "$host_cpu" = ia64; then
13692 symcode='[ABCDGIRSTW]'
13693 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13694 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'"
13697 irix* | nonstopux*)
13698 symcode='[BCDEGRST]'
13701 symcode='[BCDEGQRST]'
13712 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13720 # Handle CRLF in mingw tool chain
13724 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13728 # If we're using GNU nm, then use its standard symbol codes.
13729 case `$NM -V 2>&1` in
13730 *GNU* | *'with BFD'*)
13731 symcode='[ABCDGIRSTW]' ;;
13734 # Try without a prefix undercore, then with it.
13735 for ac_symprfx in "" "_"; do
13737 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13738 symxfrm="\\1 $ac_symprfx\\2 \\2"
13740 # Write the raw and C identifiers.
13741 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13743 # Check to see that the pipe works correctly.
13747 cat > conftest.$ac_ext <<EOF
13752 void nm_test_func(){}
13756 int main(){nm_test_var='a';nm_test_func();return(0);}
13759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13760 (eval $ac_compile) 2>&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; then
13764 # Now try to grab the symbols.
13766 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13767 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } && test -s "$nlist"; then
13771 # Try sorting and uniquifying the output.
13772 if sort "$nlist" | uniq > "$nlist"T; then
13773 mv -f "$nlist"T "$nlist"
13778 # Make sure that we snagged all the symbols we need.
13779 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13780 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13781 cat <<EOF > conftest.$ac_ext
13787 # Now generate the symbol file.
13788 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13790 cat <<EOF >> conftest.$ac_ext
13791 #if defined (__STDC__) && __STDC__
13792 # define lt_ptr_t void *
13794 # define lt_ptr_t char *
13798 /* The mapping between symbol names and symbols. */
13803 lt_preloaded_symbols[] =
13806 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13807 cat <<\EOF >> conftest.$ac_ext
13815 # Now try linking the two files.
13816 mv conftest.$ac_objext conftstm.$ac_objext
13817 lt_save_LIBS="$LIBS"
13818 lt_save_CFLAGS="$CFLAGS"
13819 LIBS="conftstm.$ac_objext"
13820 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13822 (eval $ac_link) 2>&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13828 LIBS="$lt_save_LIBS"
13829 CFLAGS="$lt_save_CFLAGS"
13831 echo "cannot find nm_test_func in $nlist" >&5
13834 echo "cannot find nm_test_var in $nlist" >&5
13837 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13840 echo "$progname: failed program was:" >&5
13841 cat conftest.$ac_ext >&5
13843 rm -f conftest* conftst*
13845 # Do not use the global_symbol_pipe unless it works.
13846 if test "$pipe_works" = yes; then
13849 lt_cv_sys_global_symbol_pipe=
13855 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13856 lt_cv_sys_global_symbol_to_cdecl=
13858 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13859 { echo "$as_me:$LINENO: result: failed" >&5
13860 echo "${ECHO_T}failed" >&6; }
13862 { echo "$as_me:$LINENO: result: ok" >&5
13863 echo "${ECHO_T}ok" >&6; }
13866 { echo "$as_me:$LINENO: checking for objdir" >&5
13867 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13868 if test "${lt_cv_objdir+set}" = set; then
13869 echo $ECHO_N "(cached) $ECHO_C" >&6
13871 rm -f .libs 2>/dev/null
13872 mkdir .libs 2>/dev/null
13873 if test -d .libs; then
13876 # MS-DOS does not allow filenames that begin with a dot.
13879 rmdir .libs 2>/dev/null
13881 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13882 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13883 objdir=$lt_cv_objdir
13891 # AIX sometimes has problems with the GCC collect2 program. For some
13892 # reason, if we set the COLLECT_NAMES environment variable, the problems
13893 # vanish in a puff of smoke.
13894 if test "X${COLLECT_NAMES+set}" != Xset; then
13896 export COLLECT_NAMES
13901 # Sed substitution that helps us do robust quoting. It backslashifies
13902 # metacharacters that are still active within double-quoted strings.
13903 Xsed='sed -e 1s/^X//'
13904 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13906 # Same as above, but do not quote variable references.
13907 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13909 # Sed substitution to delay expansion of an escaped shell variable in a
13910 # double_quote_subst'ed string.
13911 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13913 # Sed substitution to avoid accidental globbing in evaled expressions
13914 no_glob_subst='s/\*/\\\*/g'
13919 # Global variables:
13920 default_ofile=mklib
13921 can_build_shared=yes
13923 # All known linkers require a `.a' archive for static linking (except MSVC,
13924 # which needs '.lib').
13926 ltmain="$ac_aux_dir/ltmain.sh"
13927 ofile="$default_ofile"
13928 with_gnu_ld="$lt_cv_prog_gnu_ld"
13930 if test -n "$ac_tool_prefix"; then
13931 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13932 set dummy ${ac_tool_prefix}ar; ac_word=$2
13933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13935 if test "${ac_cv_prog_AR+set}" = set; then
13936 echo $ECHO_N "(cached) $ECHO_C" >&6
13938 if test -n "$AR"; then
13939 ac_cv_prog_AR="$AR" # Let the user override the test.
13941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13942 for as_dir in $PATH
13945 test -z "$as_dir" && as_dir=.
13946 for ac_exec_ext in '' $ac_executable_extensions; do
13947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13948 ac_cv_prog_AR="${ac_tool_prefix}ar"
13949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13959 if test -n "$AR"; then
13960 { echo "$as_me:$LINENO: result: $AR" >&5
13961 echo "${ECHO_T}$AR" >&6; }
13963 { echo "$as_me:$LINENO: result: no" >&5
13964 echo "${ECHO_T}no" >&6; }
13969 if test -z "$ac_cv_prog_AR"; then
13971 # Extract the first word of "ar", so it can be a program name with args.
13972 set dummy ar; ac_word=$2
13973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13975 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13978 if test -n "$ac_ct_AR"; then
13979 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13982 for as_dir in $PATH
13985 test -z "$as_dir" && as_dir=.
13986 for ac_exec_ext in '' $ac_executable_extensions; do
13987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13988 ac_cv_prog_ac_ct_AR="ar"
13989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13998 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13999 if test -n "$ac_ct_AR"; then
14000 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14001 echo "${ECHO_T}$ac_ct_AR" >&6; }
14003 { echo "$as_me:$LINENO: result: no" >&5
14004 echo "${ECHO_T}no" >&6; }
14007 if test "x$ac_ct_AR" = x; then
14010 case $cross_compiling:$ac_tool_warned in
14012 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14013 whose name does not start with the host triplet. If you think this
14014 configuration is useful to you, please write to autoconf@gnu.org." >&5
14015 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14016 whose name does not start with the host triplet. If you think this
14017 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14018 ac_tool_warned=yes ;;
14023 AR="$ac_cv_prog_AR"
14026 if test -n "$ac_tool_prefix"; then
14027 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14028 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14031 if test "${ac_cv_prog_RANLIB+set}" = set; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14034 if test -n "$RANLIB"; then
14035 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14038 for as_dir in $PATH
14041 test -z "$as_dir" && as_dir=.
14042 for ac_exec_ext in '' $ac_executable_extensions; do
14043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14044 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14054 RANLIB=$ac_cv_prog_RANLIB
14055 if test -n "$RANLIB"; then
14056 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14057 echo "${ECHO_T}$RANLIB" >&6; }
14059 { echo "$as_me:$LINENO: result: no" >&5
14060 echo "${ECHO_T}no" >&6; }
14065 if test -z "$ac_cv_prog_RANLIB"; then
14066 ac_ct_RANLIB=$RANLIB
14067 # Extract the first word of "ranlib", so it can be a program name with args.
14068 set dummy ranlib; ac_word=$2
14069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14071 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14074 if test -n "$ac_ct_RANLIB"; then
14075 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14078 for as_dir in $PATH
14081 test -z "$as_dir" && as_dir=.
14082 for ac_exec_ext in '' $ac_executable_extensions; do
14083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14084 ac_cv_prog_ac_ct_RANLIB="ranlib"
14085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14094 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14095 if test -n "$ac_ct_RANLIB"; then
14096 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14097 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14099 { echo "$as_me:$LINENO: result: no" >&5
14100 echo "${ECHO_T}no" >&6; }
14103 if test "x$ac_ct_RANLIB" = x; then
14106 case $cross_compiling:$ac_tool_warned in
14108 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14109 whose name does not start with the host triplet. If you think this
14110 configuration is useful to you, please write to autoconf@gnu.org." >&5
14111 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14112 whose name does not start with the host triplet. If you think this
14113 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14114 ac_tool_warned=yes ;;
14116 RANLIB=$ac_ct_RANLIB
14119 RANLIB="$ac_cv_prog_RANLIB"
14122 if test -n "$ac_tool_prefix"; then
14123 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14124 set dummy ${ac_tool_prefix}strip; ac_word=$2
14125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14127 if test "${ac_cv_prog_STRIP+set}" = set; then
14128 echo $ECHO_N "(cached) $ECHO_C" >&6
14130 if test -n "$STRIP"; then
14131 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14134 for as_dir in $PATH
14137 test -z "$as_dir" && as_dir=.
14138 for ac_exec_ext in '' $ac_executable_extensions; do
14139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14140 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14150 STRIP=$ac_cv_prog_STRIP
14151 if test -n "$STRIP"; then
14152 { echo "$as_me:$LINENO: result: $STRIP" >&5
14153 echo "${ECHO_T}$STRIP" >&6; }
14155 { echo "$as_me:$LINENO: result: no" >&5
14156 echo "${ECHO_T}no" >&6; }
14161 if test -z "$ac_cv_prog_STRIP"; then
14163 # Extract the first word of "strip", so it can be a program name with args.
14164 set dummy strip; ac_word=$2
14165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14167 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14168 echo $ECHO_N "(cached) $ECHO_C" >&6
14170 if test -n "$ac_ct_STRIP"; then
14171 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14174 for as_dir in $PATH
14177 test -z "$as_dir" && as_dir=.
14178 for ac_exec_ext in '' $ac_executable_extensions; do
14179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14180 ac_cv_prog_ac_ct_STRIP="strip"
14181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14190 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14191 if test -n "$ac_ct_STRIP"; then
14192 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14193 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14195 { echo "$as_me:$LINENO: result: no" >&5
14196 echo "${ECHO_T}no" >&6; }
14199 if test "x$ac_ct_STRIP" = x; then
14202 case $cross_compiling:$ac_tool_warned in
14204 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14205 whose name does not start with the host triplet. If you think this
14206 configuration is useful to you, please write to autoconf@gnu.org." >&5
14207 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14208 whose name does not start with the host triplet. If you think this
14209 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14210 ac_tool_warned=yes ;;
14215 STRIP="$ac_cv_prog_STRIP"
14220 old_CFLAGS="$CFLAGS"
14222 # Set sane defaults for various variables
14223 test -z "$AR" && AR=ar
14224 test -z "$AR_FLAGS" && AR_FLAGS=cru
14225 test -z "$AS" && AS=as
14226 test -z "$CC" && CC=cc
14227 test -z "$LTCC" && LTCC=$CC
14228 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14229 test -z "$DLLTOOL" && DLLTOOL=dlltool
14230 test -z "$LD" && LD=ld
14231 test -z "$LN_S" && LN_S="ln -s"
14232 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14233 test -z "$NM" && NM=nm
14234 test -z "$SED" && SED=sed
14235 test -z "$OBJDUMP" && OBJDUMP=objdump
14236 test -z "$RANLIB" && RANLIB=:
14237 test -z "$STRIP" && STRIP=:
14238 test -z "$ac_objext" && ac_objext=o
14240 # Determine commands to create old-style static archives.
14241 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14242 old_postinstall_cmds='chmod 644 $oldlib'
14243 old_postuninstall_cmds=
14245 if test -n "$RANLIB"; then
14248 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14251 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14254 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14257 for cc_temp in $compiler""; do
14259 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14260 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14265 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14268 # Only perform the check for file, if the check method requires it
14269 case $deplibs_check_method in
14271 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14272 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14273 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14274 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14279 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14282 lt_save_MAGIC_CMD="$MAGIC_CMD"
14283 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14284 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14285 for ac_dir in $ac_dummy; do
14287 test -z "$ac_dir" && ac_dir=.
14288 if test -f $ac_dir/${ac_tool_prefix}file; then
14289 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14290 if test -n "$file_magic_test_file"; then
14291 case $deplibs_check_method in
14293 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14294 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14295 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14296 $EGREP "$file_magic_regex" > /dev/null; then
14301 *** Warning: the command libtool uses to detect shared libraries,
14302 *** $file_magic_cmd, produces output that libtool cannot recognize.
14303 *** The result is that libtool may fail to recognize shared libraries
14304 *** as such. This will affect the creation of libtool libraries that
14305 *** depend on shared libraries, but programs linked with such libtool
14306 *** libraries will work regardless of this problem. Nevertheless, you
14307 *** may want to report the problem to your system manager and/or to
14308 *** bug-libtool@gnu.org
14318 MAGIC_CMD="$lt_save_MAGIC_CMD"
14323 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14324 if test -n "$MAGIC_CMD"; then
14325 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14326 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14328 { echo "$as_me:$LINENO: result: no" >&5
14329 echo "${ECHO_T}no" >&6; }
14332 if test -z "$lt_cv_path_MAGIC_CMD"; then
14333 if test -n "$ac_tool_prefix"; then
14334 { echo "$as_me:$LINENO: checking for file" >&5
14335 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14336 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
14341 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14344 lt_save_MAGIC_CMD="$MAGIC_CMD"
14345 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14346 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14347 for ac_dir in $ac_dummy; do
14349 test -z "$ac_dir" && ac_dir=.
14350 if test -f $ac_dir/file; then
14351 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14352 if test -n "$file_magic_test_file"; then
14353 case $deplibs_check_method in
14355 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14356 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14357 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14358 $EGREP "$file_magic_regex" > /dev/null; then
14363 *** Warning: the command libtool uses to detect shared libraries,
14364 *** $file_magic_cmd, produces output that libtool cannot recognize.
14365 *** The result is that libtool may fail to recognize shared libraries
14366 *** as such. This will affect the creation of libtool libraries that
14367 *** depend on shared libraries, but programs linked with such libtool
14368 *** libraries will work regardless of this problem. Nevertheless, you
14369 *** may want to report the problem to your system manager and/or to
14370 *** bug-libtool@gnu.org
14380 MAGIC_CMD="$lt_save_MAGIC_CMD"
14385 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14386 if test -n "$MAGIC_CMD"; then
14387 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14388 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14390 { echo "$as_me:$LINENO: result: no" >&5
14391 echo "${ECHO_T}no" >&6; }
14404 enable_win32_dll=no
14406 # Check whether --enable-libtool-lock was given.
14407 if test "${enable_libtool_lock+set}" = set; then
14408 enableval=$enable_libtool_lock;
14411 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14414 # Check whether --with-pic was given.
14415 if test "${with_pic+set}" = set; then
14416 withval=$with_pic; pic_mode="$withval"
14421 test -z "$pic_mode" && pic_mode=default
14423 # Use C for the default configuration in the libtool script
14427 ac_cpp='$CPP $CPPFLAGS'
14428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14433 # Source file extension for C test sources.
14436 # Object file extension for compiled C test sources.
14440 # Code to be used in simple compile tests
14441 lt_simple_compile_test_code="int some_variable = 0;\n"
14443 # Code to be used in simple link tests
14444 lt_simple_link_test_code='int main(){return(0);}\n'
14447 # If no C compiler was specified, use CC.
14450 # If no C compiler flags were specified, use CFLAGS.
14451 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14453 # Allow CC to be a program name with arguments.
14457 # save warnings/boilerplate of simple test code
14458 ac_outfile=conftest.$ac_objext
14459 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14460 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14461 _lt_compiler_boilerplate=`cat conftest.err`
14464 ac_outfile=conftest.$ac_objext
14465 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14466 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14467 _lt_linker_boilerplate=`cat conftest.err`
14472 lt_prog_compiler_no_builtin_flag=
14474 if test "$GCC" = yes; then
14475 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14478 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14479 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14480 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14481 echo $ECHO_N "(cached) $ECHO_C" >&6
14483 lt_cv_prog_compiler_rtti_exceptions=no
14484 ac_outfile=conftest.$ac_objext
14485 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14486 lt_compiler_flag="-fno-rtti -fno-exceptions"
14487 # Insert the option either (1) after the last *FLAGS variable, or
14488 # (2) before a word containing "conftest.", or (3) at the end.
14489 # Note that $ac_compile itself does not contain backslashes and begins
14490 # with a dollar sign (not a hyphen), so the echo should work correctly.
14491 # The option is referenced via a variable to avoid confusing sed.
14492 lt_compile=`echo "$ac_compile" | $SED \
14493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14495 -e 's:$: $lt_compiler_flag:'`
14496 (eval echo "\"\$as_me:14496: $lt_compile\"" >&5)
14497 (eval "$lt_compile" 2>conftest.err)
14499 cat conftest.err >&5
14500 echo "$as_me:14500: \$? = $ac_status" >&5
14501 if (exit $ac_status) && test -s "$ac_outfile"; then
14502 # The compiler can only warn and ignore the option if not recognized
14503 # So say no if there are warnings other than the usual output.
14504 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14506 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14507 lt_cv_prog_compiler_rtti_exceptions=yes
14513 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14514 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14516 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14517 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14524 lt_prog_compiler_wl=
14525 lt_prog_compiler_pic=
14526 lt_prog_compiler_static=
14528 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14529 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14531 if test "$GCC" = yes; then
14532 lt_prog_compiler_wl='-Wl,'
14533 lt_prog_compiler_static='-static'
14537 # All AIX code is PIC.
14538 if test "$host_cpu" = ia64; then
14539 # AIX 5 now supports IA64 processor
14540 lt_prog_compiler_static='-Bstatic'
14545 # FIXME: we need at least 68020 code to build shared libraries, but
14546 # adding the `-m68020' flag to GCC prevents building anything better,
14548 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14551 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14552 # PIC is the default for these OSes.
14555 mingw* | pw32* | os2*)
14556 # This hack is so that the source file can tell whether it is being
14557 # built for inclusion in a dll (and should export symbols for example).
14558 lt_prog_compiler_pic='-DDLL_EXPORT'
14561 darwin* | rhapsody*)
14562 # PIC is the default on this platform
14563 # Common symbols not allowed in MH_DYLIB files
14564 lt_prog_compiler_pic='-fno-common'
14568 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14569 # Instead, we relocate shared libraries at runtime.
14573 # Just because we use GCC doesn't mean we suddenly get shared libraries
14574 # on systems that don't support them.
14575 lt_prog_compiler_can_build_shared=no
14580 if test -d /usr/nec; then
14581 lt_prog_compiler_pic=-Kconform_pic
14586 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14587 # not for PA HP-UX.
14593 lt_prog_compiler_pic='-fPIC'
14599 lt_prog_compiler_pic='-fPIC'
14603 # PORTME Check for flag to pass linker flags through the system compiler.
14606 lt_prog_compiler_wl='-Wl,'
14607 if test "$host_cpu" = ia64; then
14608 # AIX 5 now supports IA64 processor
14609 lt_prog_compiler_static='-Bstatic'
14611 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14615 # PIC is the default on this platform
14616 # Common symbols not allowed in MH_DYLIB files
14617 case $cc_basename in
14619 lt_prog_compiler_pic='-qnocommon'
14620 lt_prog_compiler_wl='-Wl,'
14625 mingw* | pw32* | os2*)
14626 # This hack is so that the source file can tell whether it is being
14627 # built for inclusion in a dll (and should export symbols for example).
14628 lt_prog_compiler_pic='-DDLL_EXPORT'
14631 hpux9* | hpux10* | hpux11*)
14632 lt_prog_compiler_wl='-Wl,'
14633 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14634 # not for PA HP-UX.
14640 lt_prog_compiler_pic='+Z'
14643 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14644 lt_prog_compiler_static='${wl}-a ${wl}archive'
14647 irix5* | irix6* | nonstopux*)
14648 lt_prog_compiler_wl='-Wl,'
14649 # PIC (with -KPIC) is the default.
14650 lt_prog_compiler_static='-non_shared'
14654 lt_prog_compiler_pic='-KPIC'
14655 lt_prog_compiler_static='-Bstatic'
14659 case $cc_basename in
14661 lt_prog_compiler_wl='-Wl,'
14662 lt_prog_compiler_pic='-KPIC'
14663 lt_prog_compiler_static='-static'
14665 pgcc* | pgf77* | pgf90* | pgf95*)
14666 # Portland Group compilers (*not* the Pentium gcc compiler,
14667 # which looks to be a dead project)
14668 lt_prog_compiler_wl='-Wl,'
14669 lt_prog_compiler_pic='-fpic'
14670 lt_prog_compiler_static='-Bstatic'
14673 lt_prog_compiler_wl='-Wl,'
14674 # All Alpha code is PIC.
14675 lt_prog_compiler_static='-non_shared'
14680 osf3* | osf4* | osf5*)
14681 lt_prog_compiler_wl='-Wl,'
14682 # All OSF/1 code is PIC.
14683 lt_prog_compiler_static='-non_shared'
14687 lt_prog_compiler_pic='-KPIC'
14688 lt_prog_compiler_static='-Bstatic'
14689 case $cc_basename in
14690 f77* | f90* | f95*)
14691 lt_prog_compiler_wl='-Qoption ld ';;
14693 lt_prog_compiler_wl='-Wl,';;
14698 lt_prog_compiler_wl='-Qoption ld '
14699 lt_prog_compiler_pic='-PIC'
14700 lt_prog_compiler_static='-Bstatic'
14703 sysv4 | sysv4.2uw2* | sysv4.3*)
14704 lt_prog_compiler_wl='-Wl,'
14705 lt_prog_compiler_pic='-KPIC'
14706 lt_prog_compiler_static='-Bstatic'
14710 if test -d /usr/nec ;then
14711 lt_prog_compiler_pic='-Kconform_pic'
14712 lt_prog_compiler_static='-Bstatic'
14716 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14717 lt_prog_compiler_wl='-Wl,'
14718 lt_prog_compiler_pic='-KPIC'
14719 lt_prog_compiler_static='-Bstatic'
14723 lt_prog_compiler_wl='-Wl,'
14724 lt_prog_compiler_can_build_shared=no
14728 lt_prog_compiler_pic='-pic'
14729 lt_prog_compiler_static='-Bstatic'
14733 lt_prog_compiler_can_build_shared=no
14738 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14739 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14742 # Check to make sure the PIC flag actually works.
14744 if test -n "$lt_prog_compiler_pic"; then
14746 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14747 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14748 if test "${lt_prog_compiler_pic_works+set}" = set; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14751 lt_prog_compiler_pic_works=no
14752 ac_outfile=conftest.$ac_objext
14753 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14754 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14755 # Insert the option either (1) after the last *FLAGS variable, or
14756 # (2) before a word containing "conftest.", or (3) at the end.
14757 # Note that $ac_compile itself does not contain backslashes and begins
14758 # with a dollar sign (not a hyphen), so the echo should work correctly.
14759 # The option is referenced via a variable to avoid confusing sed.
14760 lt_compile=`echo "$ac_compile" | $SED \
14761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14763 -e 's:$: $lt_compiler_flag:'`
14764 (eval echo "\"\$as_me:14764: $lt_compile\"" >&5)
14765 (eval "$lt_compile" 2>conftest.err)
14767 cat conftest.err >&5
14768 echo "$as_me:14768: \$? = $ac_status" >&5
14769 if (exit $ac_status) && test -s "$ac_outfile"; then
14770 # The compiler can only warn and ignore the option if not recognized
14771 # So say no if there are warnings other than the usual output.
14772 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14773 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14774 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14775 lt_prog_compiler_pic_works=yes
14781 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14782 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14784 if test x"$lt_prog_compiler_pic_works" = xyes; then
14785 case $lt_prog_compiler_pic in
14787 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14790 lt_prog_compiler_pic=
14791 lt_prog_compiler_can_build_shared=no
14796 # For platforms which do not support PIC, -DPIC is meaningless:
14798 lt_prog_compiler_pic=
14801 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14806 # Check to make sure the static flag actually works.
14808 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14809 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14810 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14811 if test "${lt_prog_compiler_static_works+set}" = set; then
14812 echo $ECHO_N "(cached) $ECHO_C" >&6
14814 lt_prog_compiler_static_works=no
14815 save_LDFLAGS="$LDFLAGS"
14816 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14817 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14818 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14819 # The linker can only warn and ignore the option if not recognized
14820 # So say no if there are warnings
14821 if test -s conftest.err; then
14822 # Append any errors to the config.log.
14823 cat conftest.err 1>&5
14824 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14826 if diff conftest.exp conftest.er2 >/dev/null; then
14827 lt_prog_compiler_static_works=yes
14830 lt_prog_compiler_static_works=yes
14834 LDFLAGS="$save_LDFLAGS"
14837 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14838 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14840 if test x"$lt_prog_compiler_static_works" = xyes; then
14843 lt_prog_compiler_static=
14847 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14848 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14849 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 lt_cv_prog_compiler_c_o=no
14853 $rm -r conftest 2>/dev/null
14857 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14859 lt_compiler_flag="-o out/conftest2.$ac_objext"
14860 # Insert the option either (1) after the last *FLAGS variable, or
14861 # (2) before a word containing "conftest.", or (3) at the end.
14862 # Note that $ac_compile itself does not contain backslashes and begins
14863 # with a dollar sign (not a hyphen), so the echo should work correctly.
14864 lt_compile=`echo "$ac_compile" | $SED \
14865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14867 -e 's:$: $lt_compiler_flag:'`
14868 (eval echo "\"\$as_me:14868: $lt_compile\"" >&5)
14869 (eval "$lt_compile" 2>out/conftest.err)
14871 cat out/conftest.err >&5
14872 echo "$as_me:14872: \$? = $ac_status" >&5
14873 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14875 # The compiler can only warn and ignore the option if not recognized
14876 # So say no if there are warnings
14877 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14878 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14879 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14880 lt_cv_prog_compiler_c_o=yes
14885 # SGI C++ compiler will create directory out/ii_files/ for
14886 # template instantiation
14887 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14888 $rm out/* && rmdir out
14894 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14895 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14898 hard_links="nottested"
14899 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14900 # do not overwrite the value of need_locks provided by the user
14901 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14902 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14905 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14907 ln conftest.a conftest.b 2>&5 || hard_links=no
14908 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14909 { echo "$as_me:$LINENO: result: $hard_links" >&5
14910 echo "${ECHO_T}$hard_links" >&6; }
14911 if test "$hard_links" = no; then
14912 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14913 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14920 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14921 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14924 allow_undefined_flag=
14925 enable_shared_with_static_runtimes=no
14927 archive_expsym_cmds=
14928 old_archive_From_new_cmds=
14929 old_archive_from_expsyms_cmds=
14930 export_dynamic_flag_spec=
14931 whole_archive_flag_spec=
14932 thread_safe_flag_spec=
14933 hardcode_libdir_flag_spec=
14934 hardcode_libdir_flag_spec_ld=
14935 hardcode_libdir_separator=
14937 hardcode_minus_L=no
14938 hardcode_shlibpath_var=unsupported
14939 link_all_deplibs=unknown
14940 hardcode_automatic=no
14942 module_expsym_cmds=
14943 always_export_symbols=no
14944 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14945 # include_expsyms should be a list of space-separated symbols to be *always*
14946 # included in the symbol list
14948 # exclude_expsyms can be an extended regexp of symbols to exclude
14949 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14950 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14951 # as well as any symbol that contains `d'.
14952 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14953 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14954 # platforms (ab)use it in PIC code, but their linkers get confused if
14955 # the symbol is explicitly referenced. Since portable code cannot
14956 # rely on this symbol name, it's probably fine to never include it in
14957 # preloaded symbol tables.
14958 extract_expsyms_cmds=
14959 # Just being paranoid about ensuring that cc_basename is set.
14960 for cc_temp in $compiler""; do
14962 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14963 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14968 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14971 cygwin* | mingw* | pw32*)
14972 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14973 # When not using gcc, we currently assume that we are using
14974 # Microsoft Visual C++.
14975 if test "$GCC" != yes; then
14980 # we just hope/assume this is gcc and not c89 (= MSVC++)
14989 if test "$with_gnu_ld" = yes; then
14990 # If archive_cmds runs LD, not CC, wlarc should be empty
14993 # Set some defaults for GNU ld with shared library support. These
14994 # are reset later if shared libraries are not supported. Putting them
14995 # here allows them to be overridden if necessary.
14996 runpath_var=LD_RUN_PATH
14997 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14998 export_dynamic_flag_spec='${wl}--export-dynamic'
14999 # ancient GNU ld didn't support --whole-archive et. al.
15000 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15001 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15003 whole_archive_flag_spec=
15005 supports_anon_versioning=no
15006 case `$LD -v 2>/dev/null` in
15007 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15008 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15009 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15010 *\ 2.11.*) ;; # other 2.11 versions
15011 *) supports_anon_versioning=yes ;;
15014 # See if GNU ld supports shared libraries.
15016 aix3* | aix4* | aix5*)
15017 # On AIX/PPC, the GNU linker is very broken
15018 if test "$host_cpu" != ia64; then
15022 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15023 *** to be unable to reliably create shared libraries on AIX.
15024 *** Therefore, libtool is disabling shared libraries support. If you
15025 *** really care for shared libraries, you may want to modify your PATH
15026 *** so that a non-GNU linker is found, and then restart.
15033 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)'
15034 hardcode_libdir_flag_spec='-L$libdir'
15035 hardcode_minus_L=yes
15037 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15038 # that the semantics of dynamic libraries on AmigaOS, at least up
15039 # to version 4, is to share data among multiple programs linked
15040 # with the same dynamic library. Since this doesn't match the
15041 # behavior of shared libraries on other platforms, we can't use
15047 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15048 allow_undefined_flag=unsupported
15049 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15050 # support --undefined. This deserves some investigation. FIXME
15051 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15057 cygwin* | mingw* | pw32*)
15058 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15059 # as there is no search path for DLLs.
15060 hardcode_libdir_flag_spec='-L$libdir'
15061 allow_undefined_flag=unsupported
15062 always_export_symbols=no
15063 enable_shared_with_static_runtimes=yes
15064 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15066 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15068 # If the export-symbols file already is a .def file (1st line
15069 # is EXPORTS), use it as is; otherwise, prepend...
15070 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15071 cp $export_symbols $output_objdir/$soname.def;
15073 echo EXPORTS > $output_objdir/$soname.def;
15074 cat $export_symbols >> $output_objdir/$soname.def;
15076 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15084 hardcode_shlibpath_var=no
15085 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15086 export_dynamic_flag_spec='${wl}-E'
15087 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15088 # Instead, shared libraries are loaded at an image base (0x10000000 by
15089 # default) and relocated if they conflict, which is a slow very memory
15090 # consuming and fragmenting process. To avoid this, we pick a random,
15091 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15092 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15093 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15094 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'
15098 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15100 case $cc_basename,$host_cpu in
15101 pgcc*) # Portland Group C compiler
15102 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'
15103 tmp_addflag=' $pic_flag'
15105 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15106 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'
15107 tmp_addflag=' $pic_flag -Mnomain' ;;
15108 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15109 tmp_addflag=' -i_dynamic' ;;
15110 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15111 tmp_addflag=' -i_dynamic -nofor_main' ;;
15112 ifc* | ifort*) # Intel Fortran compiler
15113 tmp_addflag=' -nofor_main' ;;
15115 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15117 if test $supports_anon_versioning = yes; then
15118 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15119 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15120 $echo "local: *; };" >> $output_objdir/$libname.ver~
15121 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15129 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15130 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15134 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15139 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15143 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15144 *** create shared libraries on Solaris systems. Therefore, libtool
15145 *** is disabling shared libraries support. We urge you to upgrade GNU
15146 *** binutils to release 2.9.1 or newer. Another option is to modify
15147 *** your PATH or compiler configuration so that the native linker is
15148 *** used, and then restart.
15151 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15153 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15159 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15160 case `$LD -v 2>&1` in
15161 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15165 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15166 *** reliably create shared libraries on SCO systems. Therefore, libtool
15167 *** is disabling shared libraries support. We urge you to upgrade GNU
15168 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15169 *** your PATH or compiler configuration so that the native linker is
15170 *** used, and then restart.
15175 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15176 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15178 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15187 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15189 hardcode_direct=yes
15190 hardcode_shlibpath_var=no
15194 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15195 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15196 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15203 if test "$ld_shlibs" = no; then
15205 hardcode_libdir_flag_spec=
15206 export_dynamic_flag_spec=
15207 whole_archive_flag_spec=
15210 # PORTME fill in a description of your system's linker (not GNU ld)
15213 allow_undefined_flag=unsupported
15214 always_export_symbols=yes
15215 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'
15216 # Note: this linker hardcodes the directories in LIBPATH if there
15217 # are no directories specified by -L.
15218 hardcode_minus_L=yes
15219 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15220 # Neither direct hardcoding nor static linking is supported with a
15222 hardcode_direct=unsupported
15227 if test "$host_cpu" = ia64; then
15228 # On IA64, the linker does run time linking by default, so we don't
15229 # have to do anything special.
15230 aix_use_runtimelinking=no
15231 exp_sym_flag='-Bexport'
15234 # If we're using GNU nm, then we don't want the "-C" option.
15235 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15236 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15237 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'
15239 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'
15241 aix_use_runtimelinking=no
15243 # Test if we are trying to use run time linking or normal
15244 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15245 # need to do runtime linking.
15246 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15247 for ld_flag in $LDFLAGS; do
15248 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15249 aix_use_runtimelinking=yes
15256 exp_sym_flag='-bexport'
15257 no_entry_flag='-bnoentry'
15260 # When large executables or shared objects are built, AIX ld can
15261 # have problems creating the table of contents. If linking a library
15262 # or program results in "error TOC overflow" add -mminimal-toc to
15263 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15264 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15267 hardcode_direct=yes
15268 hardcode_libdir_separator=':'
15269 link_all_deplibs=yes
15271 if test "$GCC" = yes; then
15272 case $host_os in aix4.[012]|aix4.[012].*)
15273 # We only want to do this on AIX 4.2 and lower, the check
15274 # below for broken collect2 doesn't work under 4.3+
15275 collect2name=`${CC} -print-prog-name=collect2`
15276 if test -f "$collect2name" && \
15277 strings "$collect2name" | grep resolve_lib_name >/dev/null
15279 # We have reworked collect2
15280 hardcode_direct=yes
15282 # We have old collect2
15283 hardcode_direct=unsupported
15284 # It fails to find uninstalled libraries when the uninstalled
15285 # path is not listed in the libpath. Setting hardcode_minus_L
15286 # to unsupported forces relinking
15287 hardcode_minus_L=yes
15288 hardcode_libdir_flag_spec='-L$libdir'
15289 hardcode_libdir_separator=
15293 shared_flag='-shared'
15294 if test "$aix_use_runtimelinking" = yes; then
15295 shared_flag="$shared_flag "'${wl}-G'
15299 if test "$host_cpu" = ia64; then
15300 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15301 # chokes on -Wl,-G. The following line is correct:
15304 if test "$aix_use_runtimelinking" = yes; then
15305 shared_flag='${wl}-G'
15307 shared_flag='${wl}-bM:SRE'
15312 # It seems that -bexpall does not export symbols beginning with
15313 # underscore (_), so it is better to generate a list of symbols to export.
15314 always_export_symbols=yes
15315 if test "$aix_use_runtimelinking" = yes; then
15316 # Warning - without using the other runtime loading flags (-brtl),
15317 # -berok will link without error, but may produce a broken library.
15318 allow_undefined_flag='-berok'
15319 # Determine the default libpath from the value encoded in an empty executable.
15320 cat >conftest.$ac_ext <<_ACEOF
15323 cat confdefs.h >>conftest.$ac_ext
15324 cat >>conftest.$ac_ext <<_ACEOF
15325 /* end confdefs.h. */
15335 rm -f conftest.$ac_objext conftest$ac_exeext
15336 if { (ac_try="$ac_link"
15337 case "(($ac_try" in
15338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339 *) ac_try_echo=$ac_try;;
15341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15342 (eval "$ac_link") 2>conftest.er1
15344 grep -v '^ *+' conftest.er1 >conftest.err
15346 cat conftest.err >&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); } &&
15349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15350 { (case "(($ac_try" in
15351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355 (eval "$ac_try") 2>&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; } &&
15359 { ac_try='test -s conftest$ac_exeext'
15360 { (case "(($ac_try" in
15361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362 *) ac_try_echo=$ac_try;;
15364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365 (eval "$ac_try") 2>&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); }; }; then
15370 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15372 # Check for a 64-bit object if we didn't find anything.
15373 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; }
15376 echo "$as_me: failed program was:" >&5
15377 sed 's/^/| /' conftest.$ac_ext >&5
15382 rm -f core conftest.err conftest.$ac_objext \
15383 conftest$ac_exeext conftest.$ac_ext
15384 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15386 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15387 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"
15389 if test "$host_cpu" = ia64; then
15390 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15391 allow_undefined_flag="-z nodefs"
15392 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"
15394 # Determine the default libpath from the value encoded in an empty executable.
15395 cat >conftest.$ac_ext <<_ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h. */
15410 rm -f conftest.$ac_objext conftest$ac_exeext
15411 if { (ac_try="$ac_link"
15412 case "(($ac_try" in
15413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15414 *) ac_try_echo=$ac_try;;
15416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15417 (eval "$ac_link") 2>conftest.er1
15419 grep -v '^ *+' conftest.er1 >conftest.err
15421 cat conftest.err >&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } &&
15424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15425 { (case "(($ac_try" in
15426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427 *) ac_try_echo=$ac_try;;
15429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15430 (eval "$ac_try") 2>&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); }; } &&
15434 { ac_try='test -s conftest$ac_exeext'
15435 { (case "(($ac_try" in
15436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15437 *) ac_try_echo=$ac_try;;
15439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15440 (eval "$ac_try") 2>&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; }; then
15445 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15447 # Check for a 64-bit object if we didn't find anything.
15448 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; }
15451 echo "$as_me: failed program was:" >&5
15452 sed 's/^/| /' conftest.$ac_ext >&5
15457 rm -f core conftest.err conftest.$ac_objext \
15458 conftest$ac_exeext conftest.$ac_ext
15459 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15461 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15462 # Warning - without using the other run time loading flags,
15463 # -berok will link without error, but may produce a broken library.
15464 no_undefined_flag=' ${wl}-bernotok'
15465 allow_undefined_flag=' ${wl}-berok'
15466 # Exported symbols can be pulled into shared objects from archives
15467 whole_archive_flag_spec='$convenience'
15468 archive_cmds_need_lc=yes
15469 # This is similar to how AIX traditionally builds its shared libraries.
15470 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'
15476 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)'
15477 hardcode_libdir_flag_spec='-L$libdir'
15478 hardcode_minus_L=yes
15479 # see comment about different semantics on the GNU ld section
15484 export_dynamic_flag_spec=-rdynamic
15487 cygwin* | mingw* | pw32*)
15488 # When not using gcc, we currently assume that we are using
15489 # Microsoft Visual C++.
15490 # hardcode_libdir_flag_spec is actually meaningless, as there is
15491 # no search path for DLLs.
15492 hardcode_libdir_flag_spec=' '
15493 allow_undefined_flag=unsupported
15494 # Tell ltmain to make .lib files, not .a files.
15496 # Tell ltmain to make .dll files, not .so files.
15498 # FIXME: Setting linknames here is a bad hack.
15499 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15500 # The linker will automatically build a .lib file if we build a DLL.
15501 old_archive_From_new_cmds='true'
15502 # FIXME: Should let the user specify the lib program.
15503 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15504 fix_srcfile_path='`cygpath -w "$srcfile"`'
15505 enable_shared_with_static_runtimes=yes
15508 darwin* | rhapsody*)
15510 rhapsody* | darwin1.[012])
15511 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15514 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15515 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15517 case ${MACOSX_DEPLOYMENT_TARGET} in
15519 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15522 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15528 archive_cmds_need_lc=no
15530 hardcode_automatic=yes
15531 hardcode_shlibpath_var=unsupported
15532 whole_archive_flag_spec=''
15533 link_all_deplibs=yes
15534 if test "$GCC" = yes ; then
15535 output_verbose_link_cmd='echo'
15536 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15537 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15538 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15539 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}'
15540 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}'
15542 case $cc_basename in
15544 output_verbose_link_cmd='echo'
15545 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15546 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15547 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15548 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}'
15549 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}'
15559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15560 hardcode_libdir_flag_spec='-L$libdir'
15561 hardcode_shlibpath_var=no
15568 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15569 # support. Future versions do this automatically, but an explicit c++rt0.o
15570 # does not break anything, and helps significantly (at the cost of a little
15573 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15574 hardcode_libdir_flag_spec='-R$libdir'
15575 hardcode_direct=yes
15576 hardcode_shlibpath_var=no
15579 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15581 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15582 hardcode_direct=yes
15583 hardcode_minus_L=yes
15584 hardcode_shlibpath_var=no
15587 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15588 freebsd* | kfreebsd*-gnu | dragonfly*)
15589 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15590 hardcode_libdir_flag_spec='-R$libdir'
15591 hardcode_direct=yes
15592 hardcode_shlibpath_var=no
15596 if test "$GCC" = yes; then
15597 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'
15599 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'
15601 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15602 hardcode_libdir_separator=:
15603 hardcode_direct=yes
15605 # hardcode_minus_L: Not really in the search PATH,
15606 # but as the default location of the library.
15607 hardcode_minus_L=yes
15608 export_dynamic_flag_spec='${wl}-E'
15612 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15613 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15615 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15617 if test "$with_gnu_ld" = no; then
15618 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15619 hardcode_libdir_separator=:
15621 hardcode_direct=yes
15622 export_dynamic_flag_spec='${wl}-E'
15624 # hardcode_minus_L: Not really in the search PATH,
15625 # but as the default location of the library.
15626 hardcode_minus_L=yes
15631 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15634 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15637 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15640 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15646 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15649 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15652 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15656 if test "$with_gnu_ld" = no; then
15657 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15658 hardcode_libdir_separator=:
15662 hardcode_libdir_flag_spec_ld='+b $libdir'
15664 hardcode_shlibpath_var=no
15667 hardcode_direct=yes
15668 export_dynamic_flag_spec='${wl}-E'
15670 # hardcode_minus_L: Not really in the search PATH,
15671 # but as the default location of the library.
15672 hardcode_minus_L=yes
15678 irix5* | irix6* | nonstopux*)
15679 if test "$GCC" = yes; then
15680 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'
15682 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'
15683 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15686 hardcode_libdir_separator=:
15687 link_all_deplibs=yes
15691 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15692 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15694 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15696 hardcode_libdir_flag_spec='-R$libdir'
15697 hardcode_direct=yes
15698 hardcode_shlibpath_var=no
15702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15703 hardcode_direct=yes
15704 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15705 hardcode_libdir_separator=:
15706 hardcode_shlibpath_var=no
15710 hardcode_direct=yes
15711 hardcode_shlibpath_var=no
15712 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15713 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15714 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15715 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15716 export_dynamic_flag_spec='${wl}-E'
15719 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15720 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15721 hardcode_libdir_flag_spec='-R$libdir'
15724 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15725 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15732 hardcode_libdir_flag_spec='-L$libdir'
15733 hardcode_minus_L=yes
15734 allow_undefined_flag=unsupported
15735 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'
15736 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15740 if test "$GCC" = yes; then
15741 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15742 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'
15744 allow_undefined_flag=' -expect_unresolved \*'
15745 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'
15747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15748 hardcode_libdir_separator=:
15751 osf4* | osf5*) # as osf3* with the addition of -msym flag
15752 if test "$GCC" = yes; then
15753 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15754 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'
15755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15757 allow_undefined_flag=' -expect_unresolved \*'
15758 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'
15759 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15760 $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'
15762 # Both c and cxx compiler support -rpath directly
15763 hardcode_libdir_flag_spec='-rpath $libdir'
15765 hardcode_libdir_separator=:
15769 no_undefined_flag=' -z text'
15770 if test "$GCC" = yes; then
15772 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15773 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15774 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15777 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15778 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15779 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15781 hardcode_libdir_flag_spec='-R$libdir'
15782 hardcode_shlibpath_var=no
15784 solaris2.[0-5] | solaris2.[0-5].*) ;;
15786 # The compiler driver will combine linker options so we
15787 # cannot just pass the convience library names through
15788 # without $wl, iff we do not link with $LD.
15789 # Luckily, gcc supports the same syntax we need for Sun Studio.
15790 # Supported since Solaris 2.6 (maybe 2.5.1?)
15793 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15795 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' ;;
15798 link_all_deplibs=yes
15802 if test "x$host_vendor" = xsequent; then
15803 # Use $CC to link under sequent, because it throws in some extra .o
15804 # files that make .init and .fini sections work.
15805 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15807 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15809 hardcode_libdir_flag_spec='-L$libdir'
15810 hardcode_direct=yes
15811 hardcode_minus_L=yes
15812 hardcode_shlibpath_var=no
15816 case $host_vendor in
15818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15819 hardcode_direct=yes # is this really true???
15822 ## LD is ld it makes a PLAMLIB
15823 ## CC just makes a GrossModule.
15824 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15825 reload_cmds='$CC -r -o $output$reload_objs'
15829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15830 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15833 runpath_var='LD_RUN_PATH'
15834 hardcode_shlibpath_var=no
15838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15839 hardcode_shlibpath_var=no
15840 export_dynamic_flag_spec='-Bexport'
15844 if test -d /usr/nec; then
15845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15846 hardcode_shlibpath_var=no
15847 runpath_var=LD_RUN_PATH
15848 hardcode_runpath_var=yes
15853 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15854 no_undefined_flag='${wl}-z,text'
15855 archive_cmds_need_lc=no
15856 hardcode_shlibpath_var=no
15857 runpath_var='LD_RUN_PATH'
15859 if test "$GCC" = yes; then
15860 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15861 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15863 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15864 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15868 sysv5* | sco3.2v5* | sco5v6*)
15869 # Note: We can NOT use -z defs as we might desire, because we do not
15870 # link with -lc, and that would cause any symbols used from libc to
15871 # always be unresolved, which means just about no library would
15872 # ever link correctly. If we're not using GNU ld we use -z text
15873 # though, which does catch some bad symbols but isn't as heavy-handed
15875 no_undefined_flag='${wl}-z,text'
15876 allow_undefined_flag='${wl}-z,nodefs'
15877 archive_cmds_need_lc=no
15878 hardcode_shlibpath_var=no
15879 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15880 hardcode_libdir_separator=':'
15881 link_all_deplibs=yes
15882 export_dynamic_flag_spec='${wl}-Bexport'
15883 runpath_var='LD_RUN_PATH'
15885 if test "$GCC" = yes; then
15886 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15887 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15889 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15890 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15896 hardcode_libdir_flag_spec='-L$libdir'
15897 hardcode_shlibpath_var=no
15906 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15907 echo "${ECHO_T}$ld_shlibs" >&6; }
15908 test "$ld_shlibs" = no && can_build_shared=no
15911 # Do we need to explicitly link libc?
15913 case "x$archive_cmds_need_lc" in
15915 # Assume -lc should be added
15916 archive_cmds_need_lc=yes
15918 if test "$enable_shared" = yes && test "$GCC" = yes; then
15919 case $archive_cmds in
15921 # FIXME: we may have to deal with multi-command sequences.
15924 # Test whether the compiler implicitly links with -lc since on some
15925 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15926 # to ld, don't add -lc before -lgcc.
15927 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15928 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15930 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15933 (eval $ac_compile) 2>&5
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); } 2>conftest.err; then
15939 libobjs=conftest.$ac_objext
15941 wl=$lt_prog_compiler_wl
15942 pic_flag=$lt_prog_compiler_pic
15948 lt_save_allow_undefined_flag=$allow_undefined_flag
15949 allow_undefined_flag=
15950 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15951 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); }
15956 archive_cmds_need_lc=no
15958 archive_cmds_need_lc=yes
15960 allow_undefined_flag=$lt_save_allow_undefined_flag
15962 cat conftest.err 1>&5
15965 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15966 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15973 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15974 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15975 library_names_spec=
15976 libname_spec='lib$name'
15980 postuninstall_cmds=
15984 shlibpath_overrides_runpath=unknown
15986 dynamic_linker="$host_os ld.so"
15987 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15988 if test "$GCC" = yes; then
15989 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15990 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15991 # if the path contains ";" then we assume it to be the separator
15992 # otherwise default to the standard path separator (i.e. ":") - it is
15993 # assumed that no part of a normal pathname contains ";" but that should
15994 # okay in the real world where ";" in dirpaths is itself problematic.
15995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16000 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16002 need_lib_prefix=unknown
16003 hardcode_into_libs=no
16005 # when you set need_version to no, make sure it does not cause -set_version
16006 # flags to be left without arguments
16007 need_version=unknown
16012 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16013 shlibpath_var=LIBPATH
16015 # AIX 3 has no versioning support, so we append a major version to the name.
16016 soname_spec='${libname}${release}${shared_ext}$major'
16023 hardcode_into_libs=yes
16024 if test "$host_cpu" = ia64; then
16025 # AIX 5 supports IA64
16026 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16027 shlibpath_var=LD_LIBRARY_PATH
16029 # With GCC up to 2.95.x, collect2 would create an import file
16030 # for dependence libraries. The import file would start with
16031 # the line `#! .'. This would cause the generated library to
16032 # depend on `.', always an invalid library. This was fixed in
16033 # development snapshots of GCC prior to 3.0.
16035 aix4 | aix4.[01] | aix4.[01].*)
16036 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16038 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16041 can_build_shared=no
16045 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16046 # soname into executable. Probably we can add versioning support to
16047 # collect2, so additional links can be useful in future.
16048 if test "$aix_use_runtimelinking" = yes; then
16049 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16050 # instead of lib<name>.a to let people know that these are not
16051 # typical AIX shared libraries.
16052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16054 # We preserve .a as extension for shared libraries through AIX4.2
16055 # and later when we are not doing run time linking.
16056 library_names_spec='${libname}${release}.a $libname.a'
16057 soname_spec='${libname}${release}${shared_ext}$major'
16059 shlibpath_var=LIBPATH
16064 library_names_spec='$libname.ixlibrary $libname.a'
16065 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16066 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'
16070 library_names_spec='${libname}${shared_ext}'
16071 dynamic_linker="$host_os ld.so"
16072 shlibpath_var=LIBRARY_PATH
16078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16079 soname_spec='${libname}${release}${shared_ext}$major'
16080 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16081 shlibpath_var=LD_LIBRARY_PATH
16082 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16083 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16084 # the default ld.so.conf also contains /usr/contrib/lib and
16085 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16086 # libtool to hard-code these into programs
16089 cygwin* | mingw* | pw32*)
16090 version_type=windows
16095 case $GCC,$host_os in
16096 yes,cygwin* | yes,mingw* | yes,pw32*)
16097 library_names_spec='$libname.dll.a'
16098 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16099 postinstall_cmds='base_file=`basename \${file}`~
16100 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16101 dldir=$destdir/`dirname \$dlpath`~
16102 test -d \$dldir || mkdir -p \$dldir~
16103 $install_prog $dir/$dlname \$dldir/$dlname~
16104 chmod a+x \$dldir/$dlname'
16105 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16106 dlpath=$dir/\$dldll~
16108 shlibpath_overrides_runpath=yes
16112 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16113 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16114 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16117 # MinGW DLLs use traditional 'lib' prefix
16118 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16119 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16120 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16121 # It is most probably a Windows format PATH printed by
16122 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16123 # path with ; separators, and with drive letters. We can handle the
16124 # drive letters (cygwin fileutils understands them), so leave them,
16125 # especially as we might pass files found there to a mingw objdump,
16126 # which wouldn't understand a cygwinified path. Ahh.
16127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16133 # pw32 DLLs use 'pw' prefix rather than 'lib'
16134 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16140 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16143 dynamic_linker='Win32 ld.exe'
16144 # FIXME: first we should search . and the directory the executable is in
16148 darwin* | rhapsody*)
16149 dynamic_linker="$host_os dyld"
16150 version_type=darwin
16153 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16154 soname_spec='${libname}${release}${major}$shared_ext'
16155 shlibpath_overrides_runpath=yes
16156 shlibpath_var=DYLD_LIBRARY_PATH
16157 shrext_cmds='.dylib'
16158 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16159 if test "$GCC" = yes; then
16160 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"`
16162 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16164 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16172 soname_spec='${libname}${release}${shared_ext}$major'
16173 shlibpath_var=LD_LIBRARY_PATH
16184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16185 soname_spec='${libname}${release}${shared_ext}$major'
16186 shlibpath_var=LD_LIBRARY_PATH
16187 shlibpath_overrides_runpath=no
16188 hardcode_into_libs=yes
16189 dynamic_linker='GNU ld.so'
16192 freebsd* | dragonfly*)
16193 # DragonFly does not have aout. When/if they implement a new
16194 # versioning mechanism, adjust this.
16195 if test -x /usr/bin/objformat; then
16196 objformat=`/usr/bin/objformat`
16199 freebsd[123]*) objformat=aout ;;
16200 *) objformat=elf ;;
16203 version_type=freebsd-$objformat
16204 case $version_type in
16206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16211 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16215 shlibpath_var=LD_LIBRARY_PATH
16218 shlibpath_overrides_runpath=yes
16220 freebsd3.[01]* | freebsdelf3.[01]*)
16221 shlibpath_overrides_runpath=yes
16222 hardcode_into_libs=yes
16224 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16225 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16226 shlibpath_overrides_runpath=no
16227 hardcode_into_libs=yes
16229 freebsd*) # from 4.6 on
16230 shlibpath_overrides_runpath=yes
16231 hardcode_into_libs=yes
16240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16241 soname_spec='${libname}${release}${shared_ext}$major'
16242 shlibpath_var=LD_LIBRARY_PATH
16243 hardcode_into_libs=yes
16246 hpux9* | hpux10* | hpux11*)
16247 # Give a soname corresponding to the major version so that dld.sl refuses to
16248 # link against other versions.
16255 hardcode_into_libs=yes
16256 dynamic_linker="$host_os dld.so"
16257 shlibpath_var=LD_LIBRARY_PATH
16258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16260 soname_spec='${libname}${release}${shared_ext}$major'
16261 if test "X$HPUX_IA64_MODE" = X32; then
16262 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16264 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16270 hardcode_into_libs=yes
16271 dynamic_linker="$host_os dld.sl"
16272 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16275 soname_spec='${libname}${release}${shared_ext}$major'
16276 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16277 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16281 dynamic_linker="$host_os dld.sl"
16282 shlibpath_var=SHLIB_PATH
16283 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16285 soname_spec='${libname}${release}${shared_ext}$major'
16288 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16289 postinstall_cmds='chmod 555 $lib'
16296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16297 soname_spec='${libname}${release}${shared_ext}$major'
16298 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16299 shlibpath_var=LD_LIBRARY_PATH
16300 shlibpath_overrides_runpath=no
16301 hardcode_into_libs=yes
16304 irix5* | irix6* | nonstopux*)
16306 nonstopux*) version_type=nonstopux ;;
16308 if test "$lt_cv_prog_gnu_ld" = yes; then
16316 soname_spec='${libname}${release}${shared_ext}$major'
16317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16319 irix5* | nonstopux*)
16320 libsuff= shlibsuff=
16323 case $LD in # libtool.m4 will add one of these switches to LD
16324 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16325 libsuff= shlibsuff= libmagic=32-bit;;
16326 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16327 libsuff=32 shlibsuff=N32 libmagic=N32;;
16328 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16329 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16330 *) libsuff= shlibsuff= libmagic=never-match;;
16334 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16335 shlibpath_overrides_runpath=no
16336 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16337 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16338 hardcode_into_libs=yes
16341 # No shared lib support for Linux oldld, aout, or coff.
16342 linux*oldld* | linux*aout* | linux*coff*)
16346 # This must be Linux ELF.
16351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16352 soname_spec='${libname}${release}${shared_ext}$major'
16353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16354 shlibpath_var=LD_LIBRARY_PATH
16355 shlibpath_overrides_runpath=no
16356 # This implies no fast_install, which is unacceptable.
16357 # Some rework will be needed to allow for fast_install
16358 # before this can be enabled.
16359 hardcode_into_libs=yes
16361 # Append ld.so.conf contents to the search path
16362 if test -f /etc/ld.so.conf; then
16363 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' ' '`
16364 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16367 # We used to test for /lib/ld.so.1 and disable shared libraries on
16368 # powerpc, because MkLinux only supported shared libraries with the
16369 # GNU dynamic linker. Since this was broken with cross compilers,
16370 # most powerpc-linux boxes support dynamic linking these days and
16371 # people can always --disable-shared, the test was removed, and we
16372 # assume the GNU/Linux dynamic linker is in use.
16373 dynamic_linker='GNU/Linux ld.so'
16380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16381 soname_spec='${libname}${release}${shared_ext}$major'
16382 shlibpath_var=LD_LIBRARY_PATH
16383 shlibpath_overrides_runpath=no
16384 hardcode_into_libs=yes
16385 dynamic_linker='GNU ld.so'
16392 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16395 dynamic_linker='NetBSD (a.out) ld.so'
16397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16398 soname_spec='${libname}${release}${shared_ext}$major'
16399 dynamic_linker='NetBSD ld.elf_so'
16401 shlibpath_var=LD_LIBRARY_PATH
16402 shlibpath_overrides_runpath=yes
16403 hardcode_into_libs=yes
16408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16409 shlibpath_var=LD_LIBRARY_PATH
16410 shlibpath_overrides_runpath=yes
16417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16418 soname_spec='${libname}${release}${shared_ext}$major'
16419 shlibpath_var=LD_LIBRARY_PATH
16420 shlibpath_overrides_runpath=yes
16425 sys_lib_dlsearch_path_spec="/usr/lib"
16427 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16429 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16430 *) need_version=no ;;
16432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16434 shlibpath_var=LD_LIBRARY_PATH
16435 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16437 openbsd2.[89] | openbsd2.[89].*)
16438 shlibpath_overrides_runpath=no
16441 shlibpath_overrides_runpath=yes
16445 shlibpath_overrides_runpath=yes
16450 libname_spec='$name'
16453 library_names_spec='$libname${shared_ext} $libname.a'
16454 dynamic_linker='OS/2 ld.exe'
16455 shlibpath_var=LIBPATH
16458 osf3* | osf4* | osf5*)
16462 soname_spec='${libname}${release}${shared_ext}$major'
16463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16464 shlibpath_var=LD_LIBRARY_PATH
16465 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16466 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16474 soname_spec='${libname}${release}${shared_ext}$major'
16475 shlibpath_var=LD_LIBRARY_PATH
16476 shlibpath_overrides_runpath=yes
16477 hardcode_into_libs=yes
16478 # ldd complains unless libraries are executable
16479 postinstall_cmds='chmod +x $lib'
16484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16485 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16486 shlibpath_var=LD_LIBRARY_PATH
16487 shlibpath_overrides_runpath=yes
16488 if test "$with_gnu_ld" = yes; then
16496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16497 soname_spec='${libname}${release}${shared_ext}$major'
16498 shlibpath_var=LD_LIBRARY_PATH
16499 case $host_vendor in
16501 shlibpath_overrides_runpath=no
16503 export_dynamic_flag_spec='${wl}-Blargedynsym'
16504 runpath_var=LD_RUN_PATH
16512 shlibpath_overrides_runpath=no
16513 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16519 if test -d /usr/nec ;then
16521 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16522 soname_spec='$libname${shared_ext}.$major'
16523 shlibpath_var=LD_LIBRARY_PATH
16527 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16528 version_type=freebsd-elf
16531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16532 soname_spec='${libname}${release}${shared_ext}$major'
16533 shlibpath_var=LD_LIBRARY_PATH
16534 hardcode_into_libs=yes
16535 if test "$with_gnu_ld" = yes; then
16536 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16537 shlibpath_overrides_runpath=no
16539 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16540 shlibpath_overrides_runpath=yes
16543 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16547 sys_lib_dlsearch_path_spec='/usr/lib'
16552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16553 soname_spec='${libname}${release}${shared_ext}$major'
16554 shlibpath_var=LD_LIBRARY_PATH
16561 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16562 echo "${ECHO_T}$dynamic_linker" >&6; }
16563 test "$dynamic_linker" = no && can_build_shared=no
16565 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16566 if test "$GCC" = yes; then
16567 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16570 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16571 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16573 if test -n "$hardcode_libdir_flag_spec" || \
16574 test -n "$runpath_var" || \
16575 test "X$hardcode_automatic" = "Xyes" ; then
16577 # We can hardcode non-existant directories.
16578 if test "$hardcode_direct" != no &&
16579 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16580 # have to relink, otherwise we might link with an installed library
16581 # when we should be linking with a yet-to-be-installed one
16582 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16583 test "$hardcode_minus_L" != no; then
16584 # Linking always hardcodes the temporary library directory.
16585 hardcode_action=relink
16587 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16588 hardcode_action=immediate
16591 # We cannot hardcode anything, or else we can only hardcode existing
16593 hardcode_action=unsupported
16595 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16596 echo "${ECHO_T}$hardcode_action" >&6; }
16598 if test "$hardcode_action" = relink; then
16599 # Fast installation is not supported
16600 enable_fast_install=no
16601 elif test "$shlibpath_overrides_runpath" = yes ||
16602 test "$enable_shared" = no; then
16603 # Fast installation is not necessary
16604 enable_fast_install=needless
16609 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16610 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16611 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16612 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16613 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16614 { echo "$as_me:$LINENO: result: yes" >&5
16615 echo "${ECHO_T}yes" >&6; }
16617 # FIXME - insert some real tests, host_os isn't really good enough
16620 if test -n "$STRIP" ; then
16621 striplib="$STRIP -x"
16622 { echo "$as_me:$LINENO: result: yes" >&5
16623 echo "${ECHO_T}yes" >&6; }
16625 { echo "$as_me:$LINENO: result: no" >&5
16626 echo "${ECHO_T}no" >&6; }
16630 { echo "$as_me:$LINENO: result: no" >&5
16631 echo "${ECHO_T}no" >&6; }
16636 if test "x$enable_dlopen" != xyes; then
16637 enable_dlopen=unknown
16638 enable_dlopen_self=unknown
16639 enable_dlopen_self_static=unknown
16646 lt_cv_dlopen="load_add_on"
16648 lt_cv_dlopen_self=yes
16652 lt_cv_dlopen="LoadLibrary"
16657 lt_cv_dlopen="dlopen"
16662 # if libdl is installed we need to link against it
16663 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16664 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16665 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16666 echo $ECHO_N "(cached) $ECHO_C" >&6
16668 ac_check_lib_save_LIBS=$LIBS
16670 cat >conftest.$ac_ext <<_ACEOF
16673 cat confdefs.h >>conftest.$ac_ext
16674 cat >>conftest.$ac_ext <<_ACEOF
16675 /* end confdefs.h. */
16677 /* Override any GCC internal prototype to avoid an error.
16678 Use char because int might match the return type of a GCC
16679 builtin and then its argument prototype would still apply. */
16692 rm -f conftest.$ac_objext conftest$ac_exeext
16693 if { (ac_try="$ac_link"
16694 case "(($ac_try" in
16695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696 *) ac_try_echo=$ac_try;;
16698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_link") 2>conftest.er1
16701 grep -v '^ *+' conftest.er1 >conftest.err
16703 cat conftest.err >&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } &&
16706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16707 { (case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712 (eval "$ac_try") 2>&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } &&
16716 { ac_try='test -s conftest$ac_exeext'
16717 { (case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_try") 2>&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; }; then
16726 ac_cv_lib_dl_dlopen=yes
16728 echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16731 ac_cv_lib_dl_dlopen=no
16734 rm -f core conftest.err conftest.$ac_objext \
16735 conftest$ac_exeext conftest.$ac_ext
16736 LIBS=$ac_check_lib_save_LIBS
16738 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16739 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16740 if test $ac_cv_lib_dl_dlopen = yes; then
16741 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16744 lt_cv_dlopen="dyld"
16746 lt_cv_dlopen_self=yes
16753 { echo "$as_me:$LINENO: checking for shl_load" >&5
16754 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16755 if test "${ac_cv_func_shl_load+set}" = set; then
16756 echo $ECHO_N "(cached) $ECHO_C" >&6
16758 cat >conftest.$ac_ext <<_ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16764 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16766 #define shl_load innocuous_shl_load
16768 /* System header to define __stub macros and hopefully few prototypes,
16769 which can conflict with char shl_load (); below.
16770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16771 <limits.h> exists even on freestanding compilers. */
16774 # include <limits.h>
16776 # include <assert.h>
16781 /* Override any GCC internal prototype to avoid an error.
16782 Use char because int might match the return type of a GCC
16783 builtin and then its argument prototype would still apply. */
16788 /* The GNU C library defines this for functions which it implements
16789 to always fail with ENOSYS. Some functions are actually named
16790 something starting with __ and the normal name is an alias. */
16791 #if defined __stub_shl_load || defined __stub___shl_load
16798 return shl_load ();
16803 rm -f conftest.$ac_objext conftest$ac_exeext
16804 if { (ac_try="$ac_link"
16805 case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810 (eval "$ac_link") 2>conftest.er1
16812 grep -v '^ *+' conftest.er1 >conftest.err
16814 cat conftest.err >&5
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); } &&
16817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16818 { (case "(($ac_try" in
16819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820 *) ac_try_echo=$ac_try;;
16822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823 (eval "$ac_try") 2>&5
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); }; } &&
16827 { ac_try='test -s conftest$ac_exeext'
16828 { (case "(($ac_try" in
16829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830 *) ac_try_echo=$ac_try;;
16832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833 (eval "$ac_try") 2>&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
16837 ac_cv_func_shl_load=yes
16839 echo "$as_me: failed program was:" >&5
16840 sed 's/^/| /' conftest.$ac_ext >&5
16842 ac_cv_func_shl_load=no
16845 rm -f core conftest.err conftest.$ac_objext \
16846 conftest$ac_exeext conftest.$ac_ext
16848 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16849 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16850 if test $ac_cv_func_shl_load = yes; then
16851 lt_cv_dlopen="shl_load"
16853 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16854 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16855 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16856 echo $ECHO_N "(cached) $ECHO_C" >&6
16858 ac_check_lib_save_LIBS=$LIBS
16860 cat >conftest.$ac_ext <<_ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h. */
16867 /* Override any GCC internal prototype to avoid an error.
16868 Use char because int might match the return type of a GCC
16869 builtin and then its argument prototype would still apply. */
16877 return shl_load ();
16882 rm -f conftest.$ac_objext conftest$ac_exeext
16883 if { (ac_try="$ac_link"
16884 case "(($ac_try" in
16885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886 *) ac_try_echo=$ac_try;;
16888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889 (eval "$ac_link") 2>conftest.er1
16891 grep -v '^ *+' conftest.er1 >conftest.err
16893 cat conftest.err >&5
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); } &&
16896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16897 { (case "(($ac_try" in
16898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899 *) ac_try_echo=$ac_try;;
16901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902 (eval "$ac_try") 2>&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); }; } &&
16906 { ac_try='test -s conftest$ac_exeext'
16907 { (case "(($ac_try" in
16908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909 *) ac_try_echo=$ac_try;;
16911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912 (eval "$ac_try") 2>&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; }; then
16916 ac_cv_lib_dld_shl_load=yes
16918 echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16921 ac_cv_lib_dld_shl_load=no
16924 rm -f core conftest.err conftest.$ac_objext \
16925 conftest$ac_exeext conftest.$ac_ext
16926 LIBS=$ac_check_lib_save_LIBS
16928 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16929 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16930 if test $ac_cv_lib_dld_shl_load = yes; then
16931 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16933 { echo "$as_me:$LINENO: checking for dlopen" >&5
16934 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16935 if test "${ac_cv_func_dlopen+set}" = set; then
16936 echo $ECHO_N "(cached) $ECHO_C" >&6
16938 cat >conftest.$ac_ext <<_ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h. */
16944 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16946 #define dlopen innocuous_dlopen
16948 /* System header to define __stub macros and hopefully few prototypes,
16949 which can conflict with char dlopen (); below.
16950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16951 <limits.h> exists even on freestanding compilers. */
16954 # include <limits.h>
16956 # include <assert.h>
16961 /* Override any GCC internal prototype to avoid an error.
16962 Use char because int might match the return type of a GCC
16963 builtin and then its argument prototype would still apply. */
16968 /* The GNU C library defines this for functions which it implements
16969 to always fail with ENOSYS. Some functions are actually named
16970 something starting with __ and the normal name is an alias. */
16971 #if defined __stub_dlopen || defined __stub___dlopen
16983 rm -f conftest.$ac_objext conftest$ac_exeext
16984 if { (ac_try="$ac_link"
16985 case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990 (eval "$ac_link") 2>conftest.er1
16992 grep -v '^ *+' conftest.er1 >conftest.err
16994 cat conftest.err >&5
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } &&
16997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16998 { (case "(($ac_try" in
16999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17000 *) ac_try_echo=$ac_try;;
17002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17003 (eval "$ac_try") 2>&5
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); }; } &&
17007 { ac_try='test -s conftest$ac_exeext'
17008 { (case "(($ac_try" in
17009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010 *) ac_try_echo=$ac_try;;
17012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013 (eval "$ac_try") 2>&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; }; then
17017 ac_cv_func_dlopen=yes
17019 echo "$as_me: failed program was:" >&5
17020 sed 's/^/| /' conftest.$ac_ext >&5
17022 ac_cv_func_dlopen=no
17025 rm -f core conftest.err conftest.$ac_objext \
17026 conftest$ac_exeext conftest.$ac_ext
17028 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17029 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17030 if test $ac_cv_func_dlopen = yes; then
17031 lt_cv_dlopen="dlopen"
17033 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17034 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17035 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17036 echo $ECHO_N "(cached) $ECHO_C" >&6
17038 ac_check_lib_save_LIBS=$LIBS
17040 cat >conftest.$ac_ext <<_ACEOF
17043 cat confdefs.h >>conftest.$ac_ext
17044 cat >>conftest.$ac_ext <<_ACEOF
17045 /* end confdefs.h. */
17047 /* Override any GCC internal prototype to avoid an error.
17048 Use char because int might match the return type of a GCC
17049 builtin and then its argument prototype would still apply. */
17062 rm -f conftest.$ac_objext conftest$ac_exeext
17063 if { (ac_try="$ac_link"
17064 case "(($ac_try" in
17065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066 *) ac_try_echo=$ac_try;;
17068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069 (eval "$ac_link") 2>conftest.er1
17071 grep -v '^ *+' conftest.er1 >conftest.err
17073 cat conftest.err >&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); } &&
17076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17077 { (case "(($ac_try" in
17078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079 *) ac_try_echo=$ac_try;;
17081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17082 (eval "$ac_try") 2>&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); }; } &&
17086 { ac_try='test -s conftest$ac_exeext'
17087 { (case "(($ac_try" in
17088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089 *) ac_try_echo=$ac_try;;
17091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092 (eval "$ac_try") 2>&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); }; }; then
17096 ac_cv_lib_dl_dlopen=yes
17098 echo "$as_me: failed program was:" >&5
17099 sed 's/^/| /' conftest.$ac_ext >&5
17101 ac_cv_lib_dl_dlopen=no
17104 rm -f core conftest.err conftest.$ac_objext \
17105 conftest$ac_exeext conftest.$ac_ext
17106 LIBS=$ac_check_lib_save_LIBS
17108 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17109 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17110 if test $ac_cv_lib_dl_dlopen = yes; then
17111 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17113 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17114 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17115 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17116 echo $ECHO_N "(cached) $ECHO_C" >&6
17118 ac_check_lib_save_LIBS=$LIBS
17119 LIBS="-lsvld $LIBS"
17120 cat >conftest.$ac_ext <<_ACEOF
17123 cat confdefs.h >>conftest.$ac_ext
17124 cat >>conftest.$ac_ext <<_ACEOF
17125 /* end confdefs.h. */
17127 /* Override any GCC internal prototype to avoid an error.
17128 Use char because int might match the return type of a GCC
17129 builtin and then its argument prototype would still apply. */
17142 rm -f conftest.$ac_objext conftest$ac_exeext
17143 if { (ac_try="$ac_link"
17144 case "(($ac_try" in
17145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146 *) ac_try_echo=$ac_try;;
17148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149 (eval "$ac_link") 2>conftest.er1
17151 grep -v '^ *+' conftest.er1 >conftest.err
17153 cat conftest.err >&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } &&
17156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17157 { (case "(($ac_try" in
17158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159 *) ac_try_echo=$ac_try;;
17161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17162 (eval "$ac_try") 2>&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); }; } &&
17166 { ac_try='test -s conftest$ac_exeext'
17167 { (case "(($ac_try" in
17168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172 (eval "$ac_try") 2>&5
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; }; then
17176 ac_cv_lib_svld_dlopen=yes
17178 echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17181 ac_cv_lib_svld_dlopen=no
17184 rm -f core conftest.err conftest.$ac_objext \
17185 conftest$ac_exeext conftest.$ac_ext
17186 LIBS=$ac_check_lib_save_LIBS
17188 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17189 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17190 if test $ac_cv_lib_svld_dlopen = yes; then
17191 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17193 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17194 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17195 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17196 echo $ECHO_N "(cached) $ECHO_C" >&6
17198 ac_check_lib_save_LIBS=$LIBS
17200 cat >conftest.$ac_ext <<_ACEOF
17203 cat confdefs.h >>conftest.$ac_ext
17204 cat >>conftest.$ac_ext <<_ACEOF
17205 /* end confdefs.h. */
17207 /* Override any GCC internal prototype to avoid an error.
17208 Use char because int might match the return type of a GCC
17209 builtin and then its argument prototype would still apply. */
17217 return dld_link ();
17222 rm -f conftest.$ac_objext conftest$ac_exeext
17223 if { (ac_try="$ac_link"
17224 case "(($ac_try" in
17225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17226 *) ac_try_echo=$ac_try;;
17228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17229 (eval "$ac_link") 2>conftest.er1
17231 grep -v '^ *+' conftest.er1 >conftest.err
17233 cat conftest.err >&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); } &&
17236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17237 { (case "(($ac_try" in
17238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239 *) ac_try_echo=$ac_try;;
17241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17242 (eval "$ac_try") 2>&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); }; } &&
17246 { ac_try='test -s conftest$ac_exeext'
17247 { (case "(($ac_try" in
17248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249 *) ac_try_echo=$ac_try;;
17251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252 (eval "$ac_try") 2>&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; }; then
17256 ac_cv_lib_dld_dld_link=yes
17258 echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.$ac_ext >&5
17261 ac_cv_lib_dld_dld_link=no
17264 rm -f core conftest.err conftest.$ac_objext \
17265 conftest$ac_exeext conftest.$ac_ext
17266 LIBS=$ac_check_lib_save_LIBS
17268 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17269 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17270 if test $ac_cv_lib_dld_dld_link = yes; then
17271 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17292 if test "x$lt_cv_dlopen" != xno; then
17298 case $lt_cv_dlopen in
17300 save_CPPFLAGS="$CPPFLAGS"
17301 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17303 save_LDFLAGS="$LDFLAGS"
17304 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17307 LIBS="$lt_cv_dlopen_libs $LIBS"
17309 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17310 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17311 if test "${lt_cv_dlopen_self+set}" = set; then
17312 echo $ECHO_N "(cached) $ECHO_C" >&6
17314 if test "$cross_compiling" = yes; then :
17315 lt_cv_dlopen_self=cross
17317 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17318 lt_status=$lt_dlunknown
17319 cat > conftest.$ac_ext <<EOF
17320 #line 17320 "configure"
17321 #include "confdefs.h"
17330 # define LT_DLGLOBAL RTLD_GLOBAL
17333 # define LT_DLGLOBAL DL_GLOBAL
17335 # define LT_DLGLOBAL 0
17339 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17340 find out it does not work in some platform. */
17341 #ifndef LT_DLLAZY_OR_NOW
17343 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17346 # define LT_DLLAZY_OR_NOW DL_LAZY
17349 # define LT_DLLAZY_OR_NOW RTLD_NOW
17352 # define LT_DLLAZY_OR_NOW DL_NOW
17354 # define LT_DLLAZY_OR_NOW 0
17362 extern "C" void exit (int);
17365 void fnord() { int i=42;}
17368 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17369 int status = $lt_dlunknown;
17373 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17374 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17375 /* dlclose (self); */
17383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17384 (eval $ac_link) 2>&5
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17388 (./conftest; exit; ) >&5 2>/dev/null
17390 case x$lt_status in
17391 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17392 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17393 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17396 # compilation failed
17397 lt_cv_dlopen_self=no
17404 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17405 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17407 if test "x$lt_cv_dlopen_self" = xyes; then
17408 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17409 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17410 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17411 if test "${lt_cv_dlopen_self_static+set}" = set; then
17412 echo $ECHO_N "(cached) $ECHO_C" >&6
17414 if test "$cross_compiling" = yes; then :
17415 lt_cv_dlopen_self_static=cross
17417 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17418 lt_status=$lt_dlunknown
17419 cat > conftest.$ac_ext <<EOF
17420 #line 17420 "configure"
17421 #include "confdefs.h"
17430 # define LT_DLGLOBAL RTLD_GLOBAL
17433 # define LT_DLGLOBAL DL_GLOBAL
17435 # define LT_DLGLOBAL 0
17439 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17440 find out it does not work in some platform. */
17441 #ifndef LT_DLLAZY_OR_NOW
17443 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17446 # define LT_DLLAZY_OR_NOW DL_LAZY
17449 # define LT_DLLAZY_OR_NOW RTLD_NOW
17452 # define LT_DLLAZY_OR_NOW DL_NOW
17454 # define LT_DLLAZY_OR_NOW 0
17462 extern "C" void exit (int);
17465 void fnord() { int i=42;}
17468 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17469 int status = $lt_dlunknown;
17473 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17474 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17475 /* dlclose (self); */
17483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17484 (eval $ac_link) 2>&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17488 (./conftest; exit; ) >&5 2>/dev/null
17490 case x$lt_status in
17491 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17492 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17493 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17496 # compilation failed
17497 lt_cv_dlopen_self_static=no
17504 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17505 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17508 CPPFLAGS="$save_CPPFLAGS"
17509 LDFLAGS="$save_LDFLAGS"
17514 case $lt_cv_dlopen_self in
17515 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17516 *) enable_dlopen_self=unknown ;;
17519 case $lt_cv_dlopen_self_static in
17520 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17521 *) enable_dlopen_self_static=unknown ;;
17526 # Report which library types will actually be built
17527 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17528 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17529 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17530 echo "${ECHO_T}$can_build_shared" >&6; }
17532 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17533 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17534 test "$can_build_shared" = "no" && enable_shared=no
17536 # On AIX, shared libraries and static libraries use the same namespace, and
17537 # are all built from PIC.
17540 test "$enable_shared" = yes && enable_static=no
17541 if test -n "$RANLIB"; then
17542 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17543 postinstall_cmds='$RANLIB $lib'
17548 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17549 test "$enable_shared" = yes && enable_static=no
17553 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17554 echo "${ECHO_T}$enable_shared" >&6; }
17556 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17557 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17558 # Make sure either enable_shared or enable_static is yes.
17559 test "$enable_shared" = yes || enable_static=yes
17560 { echo "$as_me:$LINENO: result: $enable_static" >&5
17561 echo "${ECHO_T}$enable_static" >&6; }
17563 # The else clause should only fire when bootstrapping the
17564 # libtool distribution, otherwise you forgot to ship ltmain.sh
17565 # with your package, and you will get complaints that there are
17566 # no rules to generate ltmain.sh.
17567 if test -f "$ltmain"; then
17568 # See if we are running on zsh, and set the options which allow our commands through
17569 # without removal of \ escapes.
17570 if test -n "${ZSH_VERSION+set}" ; then
17571 setopt NO_GLOB_SUBST
17573 # Now quote all the things that may contain metacharacters while being
17574 # careful not to overquote the AC_SUBSTed values. We take copies of the
17575 # variables and quote the copies for generation of the libtool script.
17576 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17578 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17579 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17580 deplibs_check_method reload_flag reload_cmds need_locks \
17581 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17582 lt_cv_sys_global_symbol_to_c_name_address \
17583 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17584 old_postinstall_cmds old_postuninstall_cmds \
17588 lt_prog_compiler_wl \
17589 lt_prog_compiler_pic \
17590 lt_prog_compiler_static \
17591 lt_prog_compiler_no_builtin_flag \
17592 export_dynamic_flag_spec \
17593 thread_safe_flag_spec \
17594 whole_archive_flag_spec \
17595 enable_shared_with_static_runtimes \
17597 old_archive_from_new_cmds \
17602 compiler_lib_search_path \
17604 archive_expsym_cmds \
17606 postuninstall_cmds \
17607 old_archive_from_expsyms_cmds \
17608 allow_undefined_flag \
17609 no_undefined_flag \
17610 export_symbols_cmds \
17611 hardcode_libdir_flag_spec \
17612 hardcode_libdir_flag_spec_ld \
17613 hardcode_libdir_separator \
17614 hardcode_automatic \
17616 module_expsym_cmds \
17617 lt_cv_prog_compiler_c_o \
17619 include_expsyms; do
17622 old_archive_cmds | \
17623 old_archive_from_new_cmds | \
17625 archive_expsym_cmds | \
17627 module_expsym_cmds | \
17628 old_archive_from_expsyms_cmds | \
17629 export_symbols_cmds | \
17630 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17631 postinstall_cmds | postuninstall_cmds | \
17632 old_postinstall_cmds | old_postuninstall_cmds | \
17633 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17634 # Double-quote double-evaled strings.
17635 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17638 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17644 *'\$0 --fallback-echo"')
17645 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17649 cfgfile="${ofile}T"
17650 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17652 { echo "$as_me:$LINENO: creating $ofile" >&5
17653 echo "$as_me: creating $ofile" >&6;}
17655 cat <<__EOF__ >> "$cfgfile"
17658 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17659 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17660 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17662 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17663 # Free Software Foundation, Inc.
17665 # This file is part of GNU Libtool:
17666 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17668 # This program is free software; you can redistribute it and/or modify
17669 # it under the terms of the GNU General Public License as published by
17670 # the Free Software Foundation; either version 2 of the License, or
17671 # (at your option) any later version.
17673 # This program is distributed in the hope that it will be useful, but
17674 # WITHOUT ANY WARRANTY; without even the implied warranty of
17675 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17676 # General Public License for more details.
17678 # You should have received a copy of the GNU General Public License
17679 # along with this program; if not, write to the Free Software
17680 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17682 # As a special exception to the GNU General Public License, if you
17683 # distribute this file as part of a program that contains a
17684 # configuration script generated by Autoconf, you may include it under
17685 # the same distribution terms that you use for the rest of that program.
17687 # A sed program that does not truncate output.
17690 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17691 Xsed="$SED -e 1s/^X//"
17693 # The HP-UX ksh and POSIX shell print the target directory to stdout
17694 # if CDPATH is set.
17695 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17697 # The names of the tagged configurations supported by this script.
17700 # ### BEGIN LIBTOOL CONFIG
17702 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17704 # Shell to use when invoking shell scripts.
17707 # Whether or not to build shared libraries.
17708 build_libtool_libs=$enable_shared
17710 # Whether or not to build static libraries.
17711 build_old_libs=$enable_static
17713 # Whether or not to add -lc for building shared libraries.
17714 build_libtool_need_lc=$archive_cmds_need_lc
17716 # Whether or not to disallow shared libs when runtime libs are static
17717 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17719 # Whether or not to optimize for fast installation.
17720 fast_install=$enable_fast_install
17723 host_alias=$host_alias
17727 # The build system.
17728 build_alias=$build_alias
17732 # An echo program that does not interpret backslashes.
17737 AR_FLAGS=$lt_AR_FLAGS
17742 # LTCC compiler flags.
17743 LTCFLAGS=$lt_LTCFLAGS
17745 # A language-specific compiler.
17748 # Is the compiler the GNU C compiler?
17754 # The linker used to build libraries.
17757 # Whether we need hard or soft links.
17760 # A BSD-compatible nm program.
17763 # A symbol stripping program
17766 # Used to examine libraries when file_magic_cmd begins "file"
17767 MAGIC_CMD=$MAGIC_CMD
17769 # Used on cygwin: DLL creation program.
17772 # Used on cygwin: object dumper.
17775 # Used on cygwin: assembler.
17778 # The name of the directory that contains temporary libtool files.
17781 # How to create reloadable object files.
17782 reload_flag=$lt_reload_flag
17783 reload_cmds=$lt_reload_cmds
17785 # How to pass a linker flag through the compiler.
17786 wl=$lt_lt_prog_compiler_wl
17788 # Object file suffix (normally "o").
17789 objext="$ac_objext"
17791 # Old archive suffix (normally "a").
17794 # Shared library suffix (normally ".so").
17795 shrext_cmds='$shrext_cmds'
17797 # Executable file suffix (normally "").
17800 # Additional compiler flags for building library objects.
17801 pic_flag=$lt_lt_prog_compiler_pic
17804 # What is the maximum length of a command?
17805 max_cmd_len=$lt_cv_sys_max_cmd_len
17807 # Does compiler simultaneously support -c and -o options?
17808 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17810 # Must we lock files when doing compilation?
17811 need_locks=$lt_need_locks
17813 # Do we need the lib prefix for modules?
17814 need_lib_prefix=$need_lib_prefix
17816 # Do we need a version for libraries?
17817 need_version=$need_version
17819 # Whether dlopen is supported.
17820 dlopen_support=$enable_dlopen
17822 # Whether dlopen of programs is supported.
17823 dlopen_self=$enable_dlopen_self
17825 # Whether dlopen of statically linked programs is supported.
17826 dlopen_self_static=$enable_dlopen_self_static
17828 # Compiler flag to prevent dynamic linking.
17829 link_static_flag=$lt_lt_prog_compiler_static
17831 # Compiler flag to turn off builtin functions.
17832 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17834 # Compiler flag to allow reflexive dlopens.
17835 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17837 # Compiler flag to generate shared objects directly from archives.
17838 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17840 # Compiler flag to generate thread-safe objects.
17841 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17843 # Library versioning type.
17844 version_type=$version_type
17846 # Format of library name prefix.
17847 libname_spec=$lt_libname_spec
17849 # List of archive names. First name is the real one, the rest are links.
17850 # The last name is the one that the linker finds with -lNAME.
17851 library_names_spec=$lt_library_names_spec
17853 # The coded name of the library, if different from the real name.
17854 soname_spec=$lt_soname_spec
17856 # Commands used to build and install an old-style archive.
17858 old_archive_cmds=$lt_old_archive_cmds
17859 old_postinstall_cmds=$lt_old_postinstall_cmds
17860 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17862 # Create an old-style archive from a shared archive.
17863 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17865 # Create a temporary old-style archive to link instead of a shared archive.
17866 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17868 # Commands used to build and install a shared archive.
17869 archive_cmds=$lt_archive_cmds
17870 archive_expsym_cmds=$lt_archive_expsym_cmds
17871 postinstall_cmds=$lt_postinstall_cmds
17872 postuninstall_cmds=$lt_postuninstall_cmds
17874 # Commands used to build a loadable module (assumed same as above if empty)
17875 module_cmds=$lt_module_cmds
17876 module_expsym_cmds=$lt_module_expsym_cmds
17878 # Commands to strip libraries.
17879 old_striplib=$lt_old_striplib
17880 striplib=$lt_striplib
17882 # Dependencies to place before the objects being linked to create a
17884 predep_objects=$lt_predep_objects
17886 # Dependencies to place after the objects being linked to create a
17888 postdep_objects=$lt_postdep_objects
17890 # Dependencies to place before the objects being linked to create a
17892 predeps=$lt_predeps
17894 # Dependencies to place after the objects being linked to create a
17896 postdeps=$lt_postdeps
17898 # The library search path used internally by the compiler when linking
17899 # a shared library.
17900 compiler_lib_search_path=$lt_compiler_lib_search_path
17902 # Method to check whether dependent libraries are shared objects.
17903 deplibs_check_method=$lt_deplibs_check_method
17905 # Command to use when deplibs_check_method == file_magic.
17906 file_magic_cmd=$lt_file_magic_cmd
17908 # Flag that allows shared libraries with undefined symbols to be built.
17909 allow_undefined_flag=$lt_allow_undefined_flag
17911 # Flag that forces no undefined symbols.
17912 no_undefined_flag=$lt_no_undefined_flag
17914 # Commands used to finish a libtool library installation in a directory.
17915 finish_cmds=$lt_finish_cmds
17917 # Same as above, but a single script fragment to be evaled but not shown.
17918 finish_eval=$lt_finish_eval
17920 # Take the output of nm and produce a listing of raw symbols and C names.
17921 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17923 # Transform the output of nm in a proper C declaration
17924 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17926 # Transform the output of nm in a C name address pair
17927 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17929 # This is the shared library runtime path variable.
17930 runpath_var=$runpath_var
17932 # This is the shared library path variable.
17933 shlibpath_var=$shlibpath_var
17935 # Is shlibpath searched before the hard-coded library search path?
17936 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17938 # How to hardcode a shared library path into an executable.
17939 hardcode_action=$hardcode_action
17941 # Whether we should hardcode library paths into libraries.
17942 hardcode_into_libs=$hardcode_into_libs
17944 # Flag to hardcode \$libdir into a binary during linking.
17945 # This must work even if \$libdir does not exist.
17946 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17948 # If ld is used when linking, flag to hardcode \$libdir into
17949 # a binary during linking. This must work even if \$libdir does
17951 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17953 # Whether we need a single -rpath flag with a separated argument.
17954 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17956 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17957 # resulting binary.
17958 hardcode_direct=$hardcode_direct
17960 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17961 # resulting binary.
17962 hardcode_minus_L=$hardcode_minus_L
17964 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17965 # the resulting binary.
17966 hardcode_shlibpath_var=$hardcode_shlibpath_var
17968 # Set to yes if building a shared library automatically hardcodes DIR into the library
17969 # and all subsequent libraries and executables linked against it.
17970 hardcode_automatic=$hardcode_automatic
17972 # Variables whose values should be saved in libtool wrapper scripts and
17973 # restored at relink time.
17974 variables_saved_for_relink="$variables_saved_for_relink"
17976 # Whether libtool must link a program against all its dependency libraries.
17977 link_all_deplibs=$link_all_deplibs
17979 # Compile-time system search path for libraries
17980 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17982 # Run-time system search path for libraries
17983 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17985 # Fix the shell variable \$srcfile for the compiler.
17986 fix_srcfile_path="$fix_srcfile_path"
17988 # Set to yes if exported symbols are required.
17989 always_export_symbols=$always_export_symbols
17991 # The commands to list exported symbols.
17992 export_symbols_cmds=$lt_export_symbols_cmds
17994 # The commands to extract the exported symbol list from a shared archive.
17995 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17997 # Symbols that should not be listed in the preloaded symbols.
17998 exclude_expsyms=$lt_exclude_expsyms
18000 # Symbols that must always be exported.
18001 include_expsyms=$lt_include_expsyms
18003 # ### END LIBTOOL CONFIG
18010 cat <<\EOF >> "$cfgfile"
18012 # AIX sometimes has problems with the GCC collect2 program. For some
18013 # reason, if we set the COLLECT_NAMES environment variable, the problems
18014 # vanish in a puff of smoke.
18015 if test "X${COLLECT_NAMES+set}" != Xset; then
18017 export COLLECT_NAMES
18023 # We use sed instead of cat because bash on DJGPP gets confused if
18024 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18025 # text mode, it properly converts lines to CR/LF. This bash problem
18026 # is reportedly fixed, but why not run on old versions too?
18027 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18029 mv -f "$cfgfile" "$ofile" || \
18030 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18034 # If there is no Makefile yet, we rely on a make rule to execute
18035 # `config.status --recheck' to rerun these tests and create the
18036 # libtool script then.
18037 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18038 if test -f "$ltmain_in"; then
18039 test -f Makefile && make "$ltmain"
18045 ac_cpp='$CPP $CPPFLAGS'
18046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18053 # Check whether --with-tags was given.
18054 if test "${with_tags+set}" = set; then
18055 withval=$with_tags; tagnames="$withval"
18059 if test -f "$ltmain" && test -n "$tagnames"; then
18060 if test ! -f "${ofile}"; then
18061 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18062 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18065 if test -z "$LTCC"; then
18066 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18067 if test -z "$LTCC"; then
18068 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18069 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18071 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18072 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18075 if test -z "$LTCFLAGS"; then
18076 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18079 # Extract list of available tagged configurations in $ofile.
18080 # Note that this assumes the entire list is on one line.
18081 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18083 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18084 for tagname in $tagnames; do
18086 # Check whether tagname contains only valid characters
18087 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18089 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18090 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18091 { (exit 1); exit 1; }; }
18095 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18097 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18098 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18099 { (exit 1); exit 1; }; }
18102 # Update the list of available tags.
18103 if test -n "$tagname"; then
18104 echo appending configuration tag \"$tagname\" to $ofile
18108 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18109 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18110 (test "X$CXX" != "Xg++"))) ; then
18112 ac_cpp='$CXXCPP $CPPFLAGS'
18113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18120 archive_cmds_need_lc_CXX=no
18121 allow_undefined_flag_CXX=
18122 always_export_symbols_CXX=no
18123 archive_expsym_cmds_CXX=
18124 export_dynamic_flag_spec_CXX=
18125 hardcode_direct_CXX=no
18126 hardcode_libdir_flag_spec_CXX=
18127 hardcode_libdir_flag_spec_ld_CXX=
18128 hardcode_libdir_separator_CXX=
18129 hardcode_minus_L_CXX=no
18130 hardcode_shlibpath_var_CXX=unsupported
18131 hardcode_automatic_CXX=no
18133 module_expsym_cmds_CXX=
18134 link_all_deplibs_CXX=unknown
18135 old_archive_cmds_CXX=$old_archive_cmds
18136 no_undefined_flag_CXX=
18137 whole_archive_flag_spec_CXX=
18138 enable_shared_with_static_runtimes_CXX=no
18140 # Dependencies to place before and after the object being linked:
18141 predep_objects_CXX=
18142 postdep_objects_CXX=
18145 compiler_lib_search_path_CXX=
18147 # Source file extension for C++ test sources.
18150 # Object file extension for compiled C++ test sources.
18154 # Code to be used in simple compile tests
18155 lt_simple_compile_test_code="int some_variable = 0;\n"
18157 # Code to be used in simple link tests
18158 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18160 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18162 # If no C compiler was specified, use CC.
18165 # If no C compiler flags were specified, use CFLAGS.
18166 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18168 # Allow CC to be a program name with arguments.
18172 # save warnings/boilerplate of simple test code
18173 ac_outfile=conftest.$ac_objext
18174 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18175 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18176 _lt_compiler_boilerplate=`cat conftest.err`
18179 ac_outfile=conftest.$ac_objext
18180 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18181 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18182 _lt_linker_boilerplate=`cat conftest.err`
18186 # Allow CC to be a program name with arguments.
18191 lt_save_with_gnu_ld=$with_gnu_ld
18192 lt_save_path_LD=$lt_cv_path_LD
18193 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18194 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18196 $as_unset lt_cv_prog_gnu_ld
18198 if test -n "${lt_cv_path_LDCXX+set}"; then
18199 lt_cv_path_LD=$lt_cv_path_LDCXX
18201 $as_unset lt_cv_path_LD
18203 test -z "${LDCXX+set}" || LD=$LDCXX
18207 for cc_temp in $compiler""; do
18209 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18210 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18215 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18218 # We don't want -fno-exception wen compiling C++ code, so set the
18219 # no_builtin_flag separately
18220 if test "$GXX" = yes; then
18221 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18223 lt_prog_compiler_no_builtin_flag_CXX=
18226 if test "$GXX" = yes; then
18227 # Set up default GNU C++ configuration
18230 # Check whether --with-gnu-ld was given.
18231 if test "${with_gnu_ld+set}" = set; then
18232 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18238 if test "$GCC" = yes; then
18239 # Check if gcc -print-prog-name=ld gives a path.
18240 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18241 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18244 # gcc leaves a trailing carriage return which upsets mingw
18245 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18247 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18250 # Accept absolute paths.
18252 re_direlt='/[^/][^/]*/\.\./'
18253 # Canonicalize the pathname of ld
18254 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18255 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18256 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18258 test -z "$LD" && LD="$ac_prog"
18261 # If it fails, then pretend we aren't using GCC.
18265 # If it is relative, then search for the first ld in PATH.
18266 with_gnu_ld=unknown
18269 elif test "$with_gnu_ld" = yes; then
18270 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18271 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18273 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18274 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18276 if test "${lt_cv_path_LD+set}" = set; then
18277 echo $ECHO_N "(cached) $ECHO_C" >&6
18279 if test -z "$LD"; then
18280 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18281 for ac_dir in $PATH; do
18283 test -z "$ac_dir" && ac_dir=.
18284 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18285 lt_cv_path_LD="$ac_dir/$ac_prog"
18286 # Check to see if the program is GNU ld. I'd rather use --version,
18287 # but apparently some variants of GNU ld only accept -v.
18288 # Break only if it was the GNU/non-GNU ld that we prefer.
18289 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18290 *GNU* | *'with BFD'*)
18291 test "$with_gnu_ld" != no && break
18294 test "$with_gnu_ld" != yes && break
18301 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18305 LD="$lt_cv_path_LD"
18306 if test -n "$LD"; then
18307 { echo "$as_me:$LINENO: result: $LD" >&5
18308 echo "${ECHO_T}$LD" >&6; }
18310 { echo "$as_me:$LINENO: result: no" >&5
18311 echo "${ECHO_T}no" >&6; }
18313 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18314 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18315 { (exit 1); exit 1; }; }
18316 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18317 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18318 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18319 echo $ECHO_N "(cached) $ECHO_C" >&6
18321 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18322 case `$LD -v 2>&1 </dev/null` in
18323 *GNU* | *'with BFD'*)
18324 lt_cv_prog_gnu_ld=yes
18327 lt_cv_prog_gnu_ld=no
18331 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18332 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18333 with_gnu_ld=$lt_cv_prog_gnu_ld
18337 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18338 # archiving commands below assume that GNU ld is being used.
18339 if test "$with_gnu_ld" = yes; then
18340 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18341 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'
18343 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18344 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18346 # If archive_cmds runs LD, not CC, wlarc should be empty
18347 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18348 # investigate it a little bit more. (MM)
18351 # ancient GNU ld didn't support --whole-archive et. al.
18352 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18353 grep 'no-whole-archive' > /dev/null; then
18354 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18356 whole_archive_flag_spec_CXX=
18362 # A generic and very simple default shared library creation
18363 # command for GNU C++ for the case where it uses the native
18364 # linker, instead of GNU ld. If possible, this setting should
18365 # overridden to take advantage of the native linker features on
18366 # the platform it is being used on.
18367 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18370 # Commands to make compiler produce verbose output that lists
18371 # what "hidden" libraries, object files and flags are used when
18372 # linking a shared library.
18373 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18381 # PORTME: fill in a description of your system's C++ link characteristics
18382 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18383 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18387 # FIXME: insert proper C++ library support
18391 if test "$host_cpu" = ia64; then
18392 # On IA64, the linker does run time linking by default, so we don't
18393 # have to do anything special.
18394 aix_use_runtimelinking=no
18395 exp_sym_flag='-Bexport'
18398 aix_use_runtimelinking=no
18400 # Test if we are trying to use run time linking or normal
18401 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18402 # need to do runtime linking.
18403 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18404 for ld_flag in $LDFLAGS; do
18407 aix_use_runtimelinking=yes
18415 exp_sym_flag='-bexport'
18416 no_entry_flag='-bnoentry'
18419 # When large executables or shared objects are built, AIX ld can
18420 # have problems creating the table of contents. If linking a library
18421 # or program results in "error TOC overflow" add -mminimal-toc to
18422 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18423 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18425 archive_cmds_CXX=''
18426 hardcode_direct_CXX=yes
18427 hardcode_libdir_separator_CXX=':'
18428 link_all_deplibs_CXX=yes
18430 if test "$GXX" = yes; then
18431 case $host_os in aix4.[012]|aix4.[012].*)
18432 # We only want to do this on AIX 4.2 and lower, the check
18433 # below for broken collect2 doesn't work under 4.3+
18434 collect2name=`${CC} -print-prog-name=collect2`
18435 if test -f "$collect2name" && \
18436 strings "$collect2name" | grep resolve_lib_name >/dev/null
18438 # We have reworked collect2
18439 hardcode_direct_CXX=yes
18441 # We have old collect2
18442 hardcode_direct_CXX=unsupported
18443 # It fails to find uninstalled libraries when the uninstalled
18444 # path is not listed in the libpath. Setting hardcode_minus_L
18445 # to unsupported forces relinking
18446 hardcode_minus_L_CXX=yes
18447 hardcode_libdir_flag_spec_CXX='-L$libdir'
18448 hardcode_libdir_separator_CXX=
18452 shared_flag='-shared'
18453 if test "$aix_use_runtimelinking" = yes; then
18454 shared_flag="$shared_flag "'${wl}-G'
18458 if test "$host_cpu" = ia64; then
18459 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18460 # chokes on -Wl,-G. The following line is correct:
18463 if test "$aix_use_runtimelinking" = yes; then
18464 shared_flag='${wl}-G'
18466 shared_flag='${wl}-bM:SRE'
18471 # It seems that -bexpall does not export symbols beginning with
18472 # underscore (_), so it is better to generate a list of symbols to export.
18473 always_export_symbols_CXX=yes
18474 if test "$aix_use_runtimelinking" = yes; then
18475 # Warning - without using the other runtime loading flags (-brtl),
18476 # -berok will link without error, but may produce a broken library.
18477 allow_undefined_flag_CXX='-berok'
18478 # Determine the default libpath from the value encoded in an empty executable.
18479 cat >conftest.$ac_ext <<_ACEOF
18482 cat confdefs.h >>conftest.$ac_ext
18483 cat >>conftest.$ac_ext <<_ACEOF
18484 /* end confdefs.h. */
18494 rm -f conftest.$ac_objext conftest$ac_exeext
18495 if { (ac_try="$ac_link"
18496 case "(($ac_try" in
18497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498 *) ac_try_echo=$ac_try;;
18500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501 (eval "$ac_link") 2>conftest.er1
18503 grep -v '^ *+' conftest.er1 >conftest.err
18505 cat conftest.err >&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); } &&
18508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18509 { (case "(($ac_try" in
18510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511 *) ac_try_echo=$ac_try;;
18513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514 (eval "$ac_try") 2>&5
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }; } &&
18518 { ac_try='test -s conftest$ac_exeext'
18519 { (case "(($ac_try" in
18520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521 *) ac_try_echo=$ac_try;;
18523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524 (eval "$ac_try") 2>&5
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; }; then
18529 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18531 # Check for a 64-bit object if we didn't find anything.
18532 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; }
18535 echo "$as_me: failed program was:" >&5
18536 sed 's/^/| /' conftest.$ac_ext >&5
18541 rm -f core conftest.err conftest.$ac_objext \
18542 conftest$ac_exeext conftest.$ac_ext
18543 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18545 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18547 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"
18549 if test "$host_cpu" = ia64; then
18550 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18551 allow_undefined_flag_CXX="-z nodefs"
18552 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"
18554 # Determine the default libpath from the value encoded in an empty executable.
18555 cat >conftest.$ac_ext <<_ACEOF
18558 cat confdefs.h >>conftest.$ac_ext
18559 cat >>conftest.$ac_ext <<_ACEOF
18560 /* end confdefs.h. */
18570 rm -f conftest.$ac_objext conftest$ac_exeext
18571 if { (ac_try="$ac_link"
18572 case "(($ac_try" in
18573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18574 *) ac_try_echo=$ac_try;;
18576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18577 (eval "$ac_link") 2>conftest.er1
18579 grep -v '^ *+' conftest.er1 >conftest.err
18581 cat conftest.err >&5
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); } &&
18584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18585 { (case "(($ac_try" in
18586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587 *) ac_try_echo=$ac_try;;
18589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18590 (eval "$ac_try") 2>&5
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); }; } &&
18594 { ac_try='test -s conftest$ac_exeext'
18595 { (case "(($ac_try" in
18596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18597 *) ac_try_echo=$ac_try;;
18599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18600 (eval "$ac_try") 2>&5
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); }; }; then
18605 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18607 # Check for a 64-bit object if we didn't find anything.
18608 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; }
18611 echo "$as_me: failed program was:" >&5
18612 sed 's/^/| /' conftest.$ac_ext >&5
18617 rm -f core conftest.err conftest.$ac_objext \
18618 conftest$ac_exeext conftest.$ac_ext
18619 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18621 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18622 # Warning - without using the other run time loading flags,
18623 # -berok will link without error, but may produce a broken library.
18624 no_undefined_flag_CXX=' ${wl}-bernotok'
18625 allow_undefined_flag_CXX=' ${wl}-berok'
18626 # Exported symbols can be pulled into shared objects from archives
18627 whole_archive_flag_spec_CXX='$convenience'
18628 archive_cmds_need_lc_CXX=yes
18629 # This is similar to how AIX traditionally builds its shared libraries.
18630 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'
18636 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18637 allow_undefined_flag_CXX=unsupported
18638 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18639 # support --undefined. This deserves some investigation. FIXME
18640 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18647 case $cc_basename in
18649 # FIXME: insert proper C++ library support
18655 cygwin* | mingw* | pw32*)
18656 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18657 # as there is no search path for DLLs.
18658 hardcode_libdir_flag_spec_CXX='-L$libdir'
18659 allow_undefined_flag_CXX=unsupported
18660 always_export_symbols_CXX=no
18661 enable_shared_with_static_runtimes_CXX=yes
18663 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18664 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'
18665 # If the export-symbols file already is a .def file (1st line
18666 # is EXPORTS), use it as is; otherwise, prepend...
18667 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18668 cp $export_symbols $output_objdir/$soname.def;
18670 echo EXPORTS > $output_objdir/$soname.def;
18671 cat $export_symbols >> $output_objdir/$soname.def;
18673 $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'
18678 darwin* | rhapsody*)
18680 rhapsody* | darwin1.[012])
18681 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18684 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18685 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18687 case ${MACOSX_DEPLOYMENT_TARGET} in
18689 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18692 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18698 archive_cmds_need_lc_CXX=no
18699 hardcode_direct_CXX=no
18700 hardcode_automatic_CXX=yes
18701 hardcode_shlibpath_var_CXX=unsupported
18702 whole_archive_flag_spec_CXX=''
18703 link_all_deplibs_CXX=yes
18705 if test "$GXX" = yes ; then
18706 lt_int_apple_cc_single_mod=no
18707 output_verbose_link_cmd='echo'
18708 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18709 lt_int_apple_cc_single_mod=yes
18711 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18712 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18714 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'
18716 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18717 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18718 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18719 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}'
18721 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}'
18723 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}'
18725 case $cc_basename in
18727 output_verbose_link_cmd='echo'
18728 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'
18729 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18730 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18731 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}'
18732 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}'
18742 case $cc_basename in
18744 # FIXME: insert proper C++ library support
18748 # Green Hills C++ Compiler
18749 # FIXME: insert proper C++ library support
18753 # FIXME: insert proper C++ library support
18759 # C++ shared libraries reported to be fairly broken before switch to ELF
18763 archive_cmds_need_lc_CXX=no
18765 freebsd* | kfreebsd*-gnu | dragonfly*)
18766 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18773 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18774 hardcode_libdir_separator_CXX=:
18775 export_dynamic_flag_spec_CXX='${wl}-E'
18776 hardcode_direct_CXX=yes
18777 hardcode_minus_L_CXX=yes # Not in the search PATH,
18778 # but as the default
18779 # location of the library.
18781 case $cc_basename in
18783 # FIXME: insert proper C++ library support
18787 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'
18788 # Commands to make compiler produce verbose output that lists
18789 # what "hidden" libraries, object files and flags are used when
18790 # linking a shared library.
18792 # There doesn't appear to be a way to prevent this compiler from
18793 # explicitly linking system object files so we need to strip them
18794 # from the output so that they don't get included in the library
18796 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'
18799 if test "$GXX" = yes; then
18800 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'
18802 # FIXME: insert proper C++ library support
18809 if test $with_gnu_ld = no; then
18810 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18811 hardcode_libdir_separator_CXX=:
18815 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18818 export_dynamic_flag_spec_CXX='${wl}-E'
18824 hardcode_direct_CXX=no
18825 hardcode_shlibpath_var_CXX=no
18828 hardcode_direct_CXX=yes
18829 hardcode_minus_L_CXX=yes # Not in the search PATH,
18830 # but as the default
18831 # location of the library.
18835 case $cc_basename in
18837 # FIXME: insert proper C++ library support
18843 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18846 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18849 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18852 # Commands to make compiler produce verbose output that lists
18853 # what "hidden" libraries, object files and flags are used when
18854 # linking a shared library.
18856 # There doesn't appear to be a way to prevent this compiler from
18857 # explicitly linking system object files so we need to strip them
18858 # from the output so that they don't get included in the library
18860 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'
18863 if test "$GXX" = yes; then
18864 if test $with_gnu_ld = no; then
18867 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18870 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18873 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'
18878 # FIXME: insert proper C++ library support
18885 hardcode_direct_CXX=no
18886 hardcode_shlibpath_var_CXX=no
18887 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18888 export_dynamic_flag_spec_CXX='${wl}-E'
18889 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18890 # Instead, shared libraries are loaded at an image base (0x10000000 by
18891 # default) and relocated if they conflict, which is a slow very memory
18892 # consuming and fragmenting process. To avoid this, we pick a random,
18893 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18894 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18895 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'
18896 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'
18899 case $cc_basename in
18902 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'
18904 # Archives containing C++ object files must be created using
18905 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18906 # necessary to make sure instantiated templates are included
18908 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18911 if test "$GXX" = yes; then
18912 if test "$with_gnu_ld" = no; then
18913 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18915 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'
18918 link_all_deplibs_CXX=yes
18921 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18922 hardcode_libdir_separator_CXX=:
18925 case $cc_basename in
18927 # Kuck and Associates, Inc. (KAI) C++ Compiler
18929 # KCC will only create a shared library if the output file
18930 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18931 # to its proper name (with version) after linking.
18932 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'
18933 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'
18934 # Commands to make compiler produce verbose output that lists
18935 # what "hidden" libraries, object files and flags are used when
18936 # linking a shared library.
18938 # There doesn't appear to be a way to prevent this compiler from
18939 # explicitly linking system object files so we need to strip them
18940 # from the output so that they don't get included in the library
18942 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'
18944 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18945 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18947 # Archives containing C++ object files must be created using
18948 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18949 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18954 # version 8.0 and above of icpc choke on multiply defined symbols
18955 # if we add $predep_objects and $postdep_objects, however 7.1 and
18956 # earlier do not add the objects themselves.
18957 case `$CC -V 2>&1` in
18959 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18960 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'
18962 *) # Version 8.0 or newer
18965 ia64*) tmp_idyn=' -i_dynamic';;
18967 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18968 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'
18971 archive_cmds_need_lc_CXX=no
18972 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18973 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18974 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18977 # Portland Group C++ compiler
18978 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18979 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'
18981 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18982 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18983 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'
18987 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18988 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'
18990 runpath_var=LD_RUN_PATH
18991 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18992 hardcode_libdir_separator_CXX=:
18994 # Commands to make compiler produce verbose output that lists
18995 # what "hidden" libraries, object files and flags are used when
18996 # linking a shared library.
18998 # There doesn't appear to be a way to prevent this compiler from
18999 # explicitly linking system object files so we need to strip them
19000 # from the output so that they don't get included in the library
19002 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'
19007 # FIXME: insert proper C++ library support
19011 # FIXME: insert proper C++ library support
19015 case $cc_basename in
19017 # FIXME: insert proper C++ library support
19021 # FIXME: insert proper C++ library support
19027 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19028 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19030 hardcode_libdir_flag_spec_CXX='-R$libdir'
19031 hardcode_direct_CXX=yes
19032 hardcode_shlibpath_var_CXX=no
19034 # Workaround some broken pre-1.5 toolchains
19035 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19038 # C++ shared libraries are fairly broken
19042 hardcode_direct_CXX=yes
19043 hardcode_shlibpath_var_CXX=no
19044 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19045 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19046 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19047 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19048 export_dynamic_flag_spec_CXX='${wl}-E'
19049 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19051 output_verbose_link_cmd='echo'
19054 case $cc_basename in
19056 # Kuck and Associates, Inc. (KAI) C++ Compiler
19058 # KCC will only create a shared library if the output file
19059 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19060 # to its proper name (with version) after linking.
19061 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'
19063 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19064 hardcode_libdir_separator_CXX=:
19066 # Archives containing C++ object files must be created using
19067 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19068 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19072 # Rational C++ 2.4.1
19073 # FIXME: insert proper C++ library support
19077 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19078 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'
19080 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19081 hardcode_libdir_separator_CXX=:
19083 # Commands to make compiler produce verbose output that lists
19084 # what "hidden" libraries, object files and flags are used when
19085 # linking a shared library.
19087 # There doesn't appear to be a way to prevent this compiler from
19088 # explicitly linking system object files so we need to strip them
19089 # from the output so that they don't get included in the library
19091 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'
19094 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19095 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19096 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'
19098 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19099 hardcode_libdir_separator_CXX=:
19101 # Commands to make compiler produce verbose output that lists
19102 # what "hidden" libraries, object files and flags are used when
19103 # linking a shared library.
19104 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19107 # FIXME: insert proper C++ library support
19114 case $cc_basename in
19116 # Kuck and Associates, Inc. (KAI) C++ Compiler
19118 # KCC will only create a shared library if the output file
19119 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19120 # to its proper name (with version) after linking.
19121 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'
19123 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19124 hardcode_libdir_separator_CXX=:
19126 # Archives containing C++ object files must be created using
19127 # the KAI C++ compiler.
19128 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19131 # Rational C++ 2.4.1
19132 # FIXME: insert proper C++ library support
19136 allow_undefined_flag_CXX=' -expect_unresolved \*'
19137 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'
19138 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19139 echo "-hidden">> $lib.exp~
19140 $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~
19143 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19144 hardcode_libdir_separator_CXX=:
19146 # Commands to make compiler produce verbose output that lists
19147 # what "hidden" libraries, object files and flags are used when
19148 # linking a shared library.
19150 # There doesn't appear to be a way to prevent this compiler from
19151 # explicitly linking system object files so we need to strip them
19152 # from the output so that they don't get included in the library
19154 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'
19157 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19158 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19159 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'
19161 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19162 hardcode_libdir_separator_CXX=:
19164 # Commands to make compiler produce verbose output that lists
19165 # what "hidden" libraries, object files and flags are used when
19166 # linking a shared library.
19167 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19170 # FIXME: insert proper C++ library support
19177 # FIXME: insert proper C++ library support
19181 case $cc_basename in
19184 # FIXME: insert proper C++ library support
19189 # FIXME: insert proper C++ library support
19193 # FIXME: insert proper C++ library support
19199 case $cc_basename in
19201 # Sun C++ 4.2, 5.x and Centerline C++
19202 archive_cmds_need_lc_CXX=yes
19203 no_undefined_flag_CXX=' -zdefs'
19204 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19205 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19206 $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'
19208 hardcode_libdir_flag_spec_CXX='-R$libdir'
19209 hardcode_shlibpath_var_CXX=no
19211 solaris2.[0-5] | solaris2.[0-5].*) ;;
19213 # The C++ compiler is used as linker so we must use $wl
19214 # flag to pass the commands to the underlying system
19215 # linker. We must also pass each convience library through
19216 # to the system linker between allextract/defaultextract.
19217 # The C++ compiler will combine linker options so we
19218 # cannot just pass the convience library names through
19220 # Supported since Solaris 2.6 (maybe 2.5.1?)
19221 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'
19224 link_all_deplibs_CXX=yes
19226 output_verbose_link_cmd='echo'
19228 # Archives containing C++ object files must be created using
19229 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19230 # necessary to make sure instantiated templates are included
19232 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19235 # Green Hills C++ Compiler
19236 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19238 # The C++ compiler must be used to create the archive.
19239 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19242 # GNU C++ compiler with Solaris linker
19243 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19244 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19245 if $CC --version | grep -v '^2\.7' > /dev/null; then
19246 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19247 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19248 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19250 # Commands to make compiler produce verbose output that lists
19251 # what "hidden" libraries, object files and flags are used when
19252 # linking a shared library.
19253 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19255 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19257 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19258 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19259 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19261 # Commands to make compiler produce verbose output that lists
19262 # what "hidden" libraries, object files and flags are used when
19263 # linking a shared library.
19264 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19267 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19272 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19273 no_undefined_flag_CXX='${wl}-z,text'
19274 archive_cmds_need_lc_CXX=no
19275 hardcode_shlibpath_var_CXX=no
19276 runpath_var='LD_RUN_PATH'
19278 case $cc_basename in
19280 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19281 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19284 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19285 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19289 sysv5* | sco3.2v5* | sco5v6*)
19290 # Note: We can NOT use -z defs as we might desire, because we do not
19291 # link with -lc, and that would cause any symbols used from libc to
19292 # always be unresolved, which means just about no library would
19293 # ever link correctly. If we're not using GNU ld we use -z text
19294 # though, which does catch some bad symbols but isn't as heavy-handed
19296 # For security reasons, it is highly recommended that you always
19297 # use absolute paths for naming shared libraries, and exclude the
19298 # DT_RUNPATH tag from executables and libraries. But doing so
19299 # requires that you compile everything twice, which is a pain.
19300 # So that behaviour is only enabled if SCOABSPATH is set to a
19301 # non-empty value in the environment. Most likely only useful for
19302 # creating official distributions of packages.
19303 # This is a hack until libtool officially supports absolute path
19304 # names for shared libraries.
19305 no_undefined_flag_CXX='${wl}-z,text'
19306 allow_undefined_flag_CXX='${wl}-z,nodefs'
19307 archive_cmds_need_lc_CXX=no
19308 hardcode_shlibpath_var_CXX=no
19309 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19310 hardcode_libdir_separator_CXX=':'
19311 link_all_deplibs_CXX=yes
19312 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19313 runpath_var='LD_RUN_PATH'
19315 case $cc_basename in
19317 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19318 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19321 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19322 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19327 case $cc_basename in
19329 # NonStop-UX NCC 3.20
19330 # FIXME: insert proper C++ library support
19334 # FIXME: insert proper C++ library support
19340 # FIXME: insert proper C++ library support
19344 # FIXME: insert proper C++ library support
19348 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19349 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19350 test "$ld_shlibs_CXX" = no && can_build_shared=no
19356 cat > conftest.$ac_ext <<EOF
19360 Foo (void) { a = 0; }
19366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19367 (eval $ac_compile) 2>&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; then
19371 # Parse the compiler output and extract the necessary
19372 # objects, libraries and library flags.
19374 # Sentinel used to keep track of whether or not we are before
19375 # the conftest object file.
19376 pre_test_object_deps_done=no
19378 # The `*' in the case matches for architectures that use `case' in
19379 # $output_verbose_cmd can trigger glob expansion during the loop
19380 # eval without this substitution.
19381 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19383 for p in `eval $output_verbose_link_cmd`; do
19387 # Some compilers place space between "-{L,R}" and the path.
19388 # Remove the space.
19389 if test $p = "-L" \
19390 || test $p = "-R"; then
19397 if test "$pre_test_object_deps_done" = no; then
19400 # Internal compiler library paths should come after those
19401 # provided the user. The postdeps already come after the
19402 # user supplied libs so there is no need to process them.
19403 if test -z "$compiler_lib_search_path_CXX"; then
19404 compiler_lib_search_path_CXX="${prev}${p}"
19406 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19409 # The "-l" case would never come before the object being
19410 # linked, so don't bother handling this case.
19413 if test -z "$postdeps_CXX"; then
19414 postdeps_CXX="${prev}${p}"
19416 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19422 # This assumes that the test object file only shows up
19423 # once in the compiler output.
19424 if test "$p" = "conftest.$objext"; then
19425 pre_test_object_deps_done=yes
19429 if test "$pre_test_object_deps_done" = no; then
19430 if test -z "$predep_objects_CXX"; then
19431 predep_objects_CXX="$p"
19433 predep_objects_CXX="$predep_objects_CXX $p"
19436 if test -z "$postdep_objects_CXX"; then
19437 postdep_objects_CXX="$p"
19439 postdep_objects_CXX="$postdep_objects_CXX $p"
19444 *) ;; # Ignore the rest.
19452 echo "libtool.m4: error: problem compiling CXX test program"
19455 $rm -f confest.$objext
19457 # PORTME: override above test on systems where it is broken
19460 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19461 # hack all around it, let's just trust "g++" to DTRT.
19462 predep_objects_CXX=
19463 postdep_objects_CXX=
19468 case $cc_basename in
19470 # Adding this requires a known-good setup of shared libraries for
19471 # Sun compiler versions before 5.6, else PIC objects from an old
19472 # archive will be linked into the output, leading to subtle bugs.
19473 postdeps_CXX='-lCstd -lCrun'
19480 case " $postdeps_CXX " in
19481 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19484 lt_prog_compiler_wl_CXX=
19485 lt_prog_compiler_pic_CXX=
19486 lt_prog_compiler_static_CXX=
19488 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19489 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19491 # C++ specific cases for pic, static, wl, etc.
19492 if test "$GXX" = yes; then
19493 lt_prog_compiler_wl_CXX='-Wl,'
19494 lt_prog_compiler_static_CXX='-static'
19498 # All AIX code is PIC.
19499 if test "$host_cpu" = ia64; then
19500 # AIX 5 now supports IA64 processor
19501 lt_prog_compiler_static_CXX='-Bstatic'
19505 # FIXME: we need at least 68020 code to build shared libraries, but
19506 # adding the `-m68020' flag to GCC prevents building anything better,
19508 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19510 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19511 # PIC is the default for these OSes.
19513 mingw* | os2* | pw32*)
19514 # This hack is so that the source file can tell whether it is being
19515 # built for inclusion in a dll (and should export symbols for example).
19516 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19518 darwin* | rhapsody*)
19519 # PIC is the default on this platform
19520 # Common symbols not allowed in MH_DYLIB files
19521 lt_prog_compiler_pic_CXX='-fno-common'
19524 # DJGPP does not support shared libraries at all
19525 lt_prog_compiler_pic_CXX=
19528 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19529 # Instead, we relocate shared libraries at runtime.
19532 if test -d /usr/nec; then
19533 lt_prog_compiler_pic_CXX=-Kconform_pic
19537 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19538 # not for PA HP-UX.
19543 lt_prog_compiler_pic_CXX='-fPIC'
19548 lt_prog_compiler_pic_CXX='-fPIC'
19554 # All AIX code is PIC.
19555 if test "$host_cpu" = ia64; then
19556 # AIX 5 now supports IA64 processor
19557 lt_prog_compiler_static_CXX='-Bstatic'
19559 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19563 case $cc_basename in
19565 # Green Hills C++ Compiler
19566 # _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"
19571 # PIC is the default on this platform
19572 # Common symbols not allowed in MH_DYLIB files
19573 case $cc_basename in
19575 lt_prog_compiler_pic_CXX='-qnocommon'
19576 lt_prog_compiler_wl_CXX='-Wl,'
19581 case $cc_basename in
19583 lt_prog_compiler_pic_CXX='-KPIC'
19586 # Green Hills C++ Compiler
19587 lt_prog_compiler_pic_CXX='-pic'
19593 freebsd* | kfreebsd*-gnu | dragonfly*)
19594 # FreeBSD uses GNU C++
19596 hpux9* | hpux10* | hpux11*)
19597 case $cc_basename in
19599 lt_prog_compiler_wl_CXX='-Wl,'
19600 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19601 if test "$host_cpu" != ia64; then
19602 lt_prog_compiler_pic_CXX='+Z'
19606 lt_prog_compiler_wl_CXX='-Wl,'
19607 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19613 lt_prog_compiler_pic_CXX='+Z'
19622 # This is c89, which is MS Visual C++ (no shared libs)
19623 # Anyone wants to do a port?
19625 irix5* | irix6* | nonstopux*)
19626 case $cc_basename in
19628 lt_prog_compiler_wl_CXX='-Wl,'
19629 lt_prog_compiler_static_CXX='-non_shared'
19630 # CC pic flag -KPIC is the default.
19637 case $cc_basename in
19640 lt_prog_compiler_wl_CXX='--backend -Wl,'
19641 lt_prog_compiler_pic_CXX='-fPIC'
19645 lt_prog_compiler_wl_CXX='-Wl,'
19646 lt_prog_compiler_pic_CXX='-KPIC'
19647 lt_prog_compiler_static_CXX='-static'
19650 # Portland Group C++ compiler.
19651 lt_prog_compiler_wl_CXX='-Wl,'
19652 lt_prog_compiler_pic_CXX='-fpic'
19653 lt_prog_compiler_static_CXX='-Bstatic'
19657 # Make sure the PIC flag is empty. It appears that all Alpha
19658 # Linux and Compaq Tru64 Unix objects are PIC.
19659 lt_prog_compiler_pic_CXX=
19660 lt_prog_compiler_static_CXX='-non_shared'
19671 case $cc_basename in
19673 lt_prog_compiler_pic_CXX='-W c,exportall'
19681 osf3* | osf4* | osf5*)
19682 case $cc_basename in
19684 lt_prog_compiler_wl_CXX='--backend -Wl,'
19687 # Rational C++ 2.4.1
19688 lt_prog_compiler_pic_CXX='-pic'
19691 # Digital/Compaq C++
19692 lt_prog_compiler_wl_CXX='-Wl,'
19693 # Make sure the PIC flag is empty. It appears that all Alpha
19694 # Linux and Compaq Tru64 Unix objects are PIC.
19695 lt_prog_compiler_pic_CXX=
19696 lt_prog_compiler_static_CXX='-non_shared'
19705 case $cc_basename in
19707 # Sun C++ 4.2, 5.x and Centerline C++
19708 lt_prog_compiler_pic_CXX='-KPIC'
19709 lt_prog_compiler_static_CXX='-Bstatic'
19710 lt_prog_compiler_wl_CXX='-Qoption ld '
19713 # Green Hills C++ Compiler
19714 lt_prog_compiler_pic_CXX='-PIC'
19721 case $cc_basename in
19724 lt_prog_compiler_pic_CXX='-pic'
19725 lt_prog_compiler_static_CXX='-Bstatic'
19729 lt_prog_compiler_pic_CXX='-pic'
19736 case $cc_basename in
19738 # NonStop-UX NCC 3.20
19739 lt_prog_compiler_pic_CXX='-KPIC'
19745 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19746 case $cc_basename in
19748 lt_prog_compiler_wl_CXX='-Wl,'
19749 lt_prog_compiler_pic_CXX='-KPIC'
19750 lt_prog_compiler_static_CXX='-Bstatic'
19757 lt_prog_compiler_can_build_shared_CXX=no
19762 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19763 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19766 # Check to make sure the PIC flag actually works.
19768 if test -n "$lt_prog_compiler_pic_CXX"; then
19770 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19771 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19772 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19773 echo $ECHO_N "(cached) $ECHO_C" >&6
19775 lt_prog_compiler_pic_works_CXX=no
19776 ac_outfile=conftest.$ac_objext
19777 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19778 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19779 # Insert the option either (1) after the last *FLAGS variable, or
19780 # (2) before a word containing "conftest.", or (3) at the end.
19781 # Note that $ac_compile itself does not contain backslashes and begins
19782 # with a dollar sign (not a hyphen), so the echo should work correctly.
19783 # The option is referenced via a variable to avoid confusing sed.
19784 lt_compile=`echo "$ac_compile" | $SED \
19785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19787 -e 's:$: $lt_compiler_flag:'`
19788 (eval echo "\"\$as_me:19788: $lt_compile\"" >&5)
19789 (eval "$lt_compile" 2>conftest.err)
19791 cat conftest.err >&5
19792 echo "$as_me:19792: \$? = $ac_status" >&5
19793 if (exit $ac_status) && test -s "$ac_outfile"; then
19794 # The compiler can only warn and ignore the option if not recognized
19795 # So say no if there are warnings other than the usual output.
19796 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19798 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19799 lt_prog_compiler_pic_works_CXX=yes
19805 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19806 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19808 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19809 case $lt_prog_compiler_pic_CXX in
19811 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19814 lt_prog_compiler_pic_CXX=
19815 lt_prog_compiler_can_build_shared_CXX=no
19820 # For platforms which do not support PIC, -DPIC is meaningless:
19822 lt_prog_compiler_pic_CXX=
19825 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19830 # Check to make sure the static flag actually works.
19832 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19833 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19834 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19835 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19836 echo $ECHO_N "(cached) $ECHO_C" >&6
19838 lt_prog_compiler_static_works_CXX=no
19839 save_LDFLAGS="$LDFLAGS"
19840 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19841 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19842 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19843 # The linker can only warn and ignore the option if not recognized
19844 # So say no if there are warnings
19845 if test -s conftest.err; then
19846 # Append any errors to the config.log.
19847 cat conftest.err 1>&5
19848 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19849 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19850 if diff conftest.exp conftest.er2 >/dev/null; then
19851 lt_prog_compiler_static_works_CXX=yes
19854 lt_prog_compiler_static_works_CXX=yes
19858 LDFLAGS="$save_LDFLAGS"
19861 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19862 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19864 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19867 lt_prog_compiler_static_CXX=
19871 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19872 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19873 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19874 echo $ECHO_N "(cached) $ECHO_C" >&6
19876 lt_cv_prog_compiler_c_o_CXX=no
19877 $rm -r conftest 2>/dev/null
19881 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19883 lt_compiler_flag="-o out/conftest2.$ac_objext"
19884 # Insert the option either (1) after the last *FLAGS variable, or
19885 # (2) before a word containing "conftest.", or (3) at the end.
19886 # Note that $ac_compile itself does not contain backslashes and begins
19887 # with a dollar sign (not a hyphen), so the echo should work correctly.
19888 lt_compile=`echo "$ac_compile" | $SED \
19889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19891 -e 's:$: $lt_compiler_flag:'`
19892 (eval echo "\"\$as_me:19892: $lt_compile\"" >&5)
19893 (eval "$lt_compile" 2>out/conftest.err)
19895 cat out/conftest.err >&5
19896 echo "$as_me:19896: \$? = $ac_status" >&5
19897 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19899 # The compiler can only warn and ignore the option if not recognized
19900 # So say no if there are warnings
19901 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19902 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19903 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19904 lt_cv_prog_compiler_c_o_CXX=yes
19909 # SGI C++ compiler will create directory out/ii_files/ for
19910 # template instantiation
19911 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19912 $rm out/* && rmdir out
19918 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19919 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19922 hard_links="nottested"
19923 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19924 # do not overwrite the value of need_locks provided by the user
19925 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19926 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19929 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19931 ln conftest.a conftest.b 2>&5 || hard_links=no
19932 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19933 { echo "$as_me:$LINENO: result: $hard_links" >&5
19934 echo "${ECHO_T}$hard_links" >&6; }
19935 if test "$hard_links" = no; then
19936 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19937 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19944 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19945 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19947 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19950 # If we're using GNU nm, then we don't want the "-C" option.
19951 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19952 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19953 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'
19955 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'
19959 export_symbols_cmds_CXX="$ltdll_cmds"
19962 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'
19965 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19969 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19970 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19971 test "$ld_shlibs_CXX" = no && can_build_shared=no
19974 # Do we need to explicitly link libc?
19976 case "x$archive_cmds_need_lc_CXX" in
19978 # Assume -lc should be added
19979 archive_cmds_need_lc_CXX=yes
19981 if test "$enable_shared" = yes && test "$GCC" = yes; then
19982 case $archive_cmds_CXX in
19984 # FIXME: we may have to deal with multi-command sequences.
19987 # Test whether the compiler implicitly links with -lc since on some
19988 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19989 # to ld, don't add -lc before -lgcc.
19990 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19991 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19993 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19996 (eval $ac_compile) 2>&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } 2>conftest.err; then
20002 libobjs=conftest.$ac_objext
20004 wl=$lt_prog_compiler_wl_CXX
20005 pic_flag=$lt_prog_compiler_pic_CXX
20011 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20012 allow_undefined_flag_CXX=
20013 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20014 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); }
20019 archive_cmds_need_lc_CXX=no
20021 archive_cmds_need_lc_CXX=yes
20023 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20025 cat conftest.err 1>&5
20028 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20029 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20036 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20037 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20038 library_names_spec=
20039 libname_spec='lib$name'
20043 postuninstall_cmds=
20047 shlibpath_overrides_runpath=unknown
20049 dynamic_linker="$host_os ld.so"
20050 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20051 if test "$GCC" = yes; then
20052 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20053 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20054 # if the path contains ";" then we assume it to be the separator
20055 # otherwise default to the standard path separator (i.e. ":") - it is
20056 # assumed that no part of a normal pathname contains ";" but that should
20057 # okay in the real world where ";" in dirpaths is itself problematic.
20058 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20060 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20063 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20065 need_lib_prefix=unknown
20066 hardcode_into_libs=no
20068 # when you set need_version to no, make sure it does not cause -set_version
20069 # flags to be left without arguments
20070 need_version=unknown
20075 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20076 shlibpath_var=LIBPATH
20078 # AIX 3 has no versioning support, so we append a major version to the name.
20079 soname_spec='${libname}${release}${shared_ext}$major'
20086 hardcode_into_libs=yes
20087 if test "$host_cpu" = ia64; then
20088 # AIX 5 supports IA64
20089 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20090 shlibpath_var=LD_LIBRARY_PATH
20092 # With GCC up to 2.95.x, collect2 would create an import file
20093 # for dependence libraries. The import file would start with
20094 # the line `#! .'. This would cause the generated library to
20095 # depend on `.', always an invalid library. This was fixed in
20096 # development snapshots of GCC prior to 3.0.
20098 aix4 | aix4.[01] | aix4.[01].*)
20099 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20101 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20104 can_build_shared=no
20108 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20109 # soname into executable. Probably we can add versioning support to
20110 # collect2, so additional links can be useful in future.
20111 if test "$aix_use_runtimelinking" = yes; then
20112 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20113 # instead of lib<name>.a to let people know that these are not
20114 # typical AIX shared libraries.
20115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20117 # We preserve .a as extension for shared libraries through AIX4.2
20118 # and later when we are not doing run time linking.
20119 library_names_spec='${libname}${release}.a $libname.a'
20120 soname_spec='${libname}${release}${shared_ext}$major'
20122 shlibpath_var=LIBPATH
20127 library_names_spec='$libname.ixlibrary $libname.a'
20128 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20129 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'
20133 library_names_spec='${libname}${shared_ext}'
20134 dynamic_linker="$host_os ld.so"
20135 shlibpath_var=LIBRARY_PATH
20141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20142 soname_spec='${libname}${release}${shared_ext}$major'
20143 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20144 shlibpath_var=LD_LIBRARY_PATH
20145 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20146 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20147 # the default ld.so.conf also contains /usr/contrib/lib and
20148 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20149 # libtool to hard-code these into programs
20152 cygwin* | mingw* | pw32*)
20153 version_type=windows
20158 case $GCC,$host_os in
20159 yes,cygwin* | yes,mingw* | yes,pw32*)
20160 library_names_spec='$libname.dll.a'
20161 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20162 postinstall_cmds='base_file=`basename \${file}`~
20163 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20164 dldir=$destdir/`dirname \$dlpath`~
20165 test -d \$dldir || mkdir -p \$dldir~
20166 $install_prog $dir/$dlname \$dldir/$dlname~
20167 chmod a+x \$dldir/$dlname'
20168 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20169 dlpath=$dir/\$dldll~
20171 shlibpath_overrides_runpath=yes
20175 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20176 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20177 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20180 # MinGW DLLs use traditional 'lib' prefix
20181 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20182 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20183 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20184 # It is most probably a Windows format PATH printed by
20185 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20186 # path with ; separators, and with drive letters. We can handle the
20187 # drive letters (cygwin fileutils understands them), so leave them,
20188 # especially as we might pass files found there to a mingw objdump,
20189 # which wouldn't understand a cygwinified path. Ahh.
20190 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20192 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20196 # pw32 DLLs use 'pw' prefix rather than 'lib'
20197 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20203 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20206 dynamic_linker='Win32 ld.exe'
20207 # FIXME: first we should search . and the directory the executable is in
20211 darwin* | rhapsody*)
20212 dynamic_linker="$host_os dyld"
20213 version_type=darwin
20216 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20217 soname_spec='${libname}${release}${major}$shared_ext'
20218 shlibpath_overrides_runpath=yes
20219 shlibpath_var=DYLD_LIBRARY_PATH
20220 shrext_cmds='.dylib'
20221 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20222 if test "$GCC" = yes; then
20223 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"`
20225 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20227 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20235 soname_spec='${libname}${release}${shared_ext}$major'
20236 shlibpath_var=LD_LIBRARY_PATH
20247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20248 soname_spec='${libname}${release}${shared_ext}$major'
20249 shlibpath_var=LD_LIBRARY_PATH
20250 shlibpath_overrides_runpath=no
20251 hardcode_into_libs=yes
20252 dynamic_linker='GNU ld.so'
20255 freebsd* | dragonfly*)
20256 # DragonFly does not have aout. When/if they implement a new
20257 # versioning mechanism, adjust this.
20258 if test -x /usr/bin/objformat; then
20259 objformat=`/usr/bin/objformat`
20262 freebsd[123]*) objformat=aout ;;
20263 *) objformat=elf ;;
20266 version_type=freebsd-$objformat
20267 case $version_type in
20269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20274 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20278 shlibpath_var=LD_LIBRARY_PATH
20281 shlibpath_overrides_runpath=yes
20283 freebsd3.[01]* | freebsdelf3.[01]*)
20284 shlibpath_overrides_runpath=yes
20285 hardcode_into_libs=yes
20287 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20288 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20289 shlibpath_overrides_runpath=no
20290 hardcode_into_libs=yes
20292 freebsd*) # from 4.6 on
20293 shlibpath_overrides_runpath=yes
20294 hardcode_into_libs=yes
20303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20304 soname_spec='${libname}${release}${shared_ext}$major'
20305 shlibpath_var=LD_LIBRARY_PATH
20306 hardcode_into_libs=yes
20309 hpux9* | hpux10* | hpux11*)
20310 # Give a soname corresponding to the major version so that dld.sl refuses to
20311 # link against other versions.
20318 hardcode_into_libs=yes
20319 dynamic_linker="$host_os dld.so"
20320 shlibpath_var=LD_LIBRARY_PATH
20321 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20323 soname_spec='${libname}${release}${shared_ext}$major'
20324 if test "X$HPUX_IA64_MODE" = X32; then
20325 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20327 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20329 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20333 hardcode_into_libs=yes
20334 dynamic_linker="$host_os dld.sl"
20335 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20336 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20338 soname_spec='${libname}${release}${shared_ext}$major'
20339 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20340 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20344 dynamic_linker="$host_os dld.sl"
20345 shlibpath_var=SHLIB_PATH
20346 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20348 soname_spec='${libname}${release}${shared_ext}$major'
20351 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20352 postinstall_cmds='chmod 555 $lib'
20359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20360 soname_spec='${libname}${release}${shared_ext}$major'
20361 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20362 shlibpath_var=LD_LIBRARY_PATH
20363 shlibpath_overrides_runpath=no
20364 hardcode_into_libs=yes
20367 irix5* | irix6* | nonstopux*)
20369 nonstopux*) version_type=nonstopux ;;
20371 if test "$lt_cv_prog_gnu_ld" = yes; then
20379 soname_spec='${libname}${release}${shared_ext}$major'
20380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20382 irix5* | nonstopux*)
20383 libsuff= shlibsuff=
20386 case $LD in # libtool.m4 will add one of these switches to LD
20387 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20388 libsuff= shlibsuff= libmagic=32-bit;;
20389 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20390 libsuff=32 shlibsuff=N32 libmagic=N32;;
20391 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20392 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20393 *) libsuff= shlibsuff= libmagic=never-match;;
20397 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20398 shlibpath_overrides_runpath=no
20399 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20400 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20401 hardcode_into_libs=yes
20404 # No shared lib support for Linux oldld, aout, or coff.
20405 linux*oldld* | linux*aout* | linux*coff*)
20409 # This must be Linux ELF.
20414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20415 soname_spec='${libname}${release}${shared_ext}$major'
20416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20417 shlibpath_var=LD_LIBRARY_PATH
20418 shlibpath_overrides_runpath=no
20419 # This implies no fast_install, which is unacceptable.
20420 # Some rework will be needed to allow for fast_install
20421 # before this can be enabled.
20422 hardcode_into_libs=yes
20424 # Append ld.so.conf contents to the search path
20425 if test -f /etc/ld.so.conf; then
20426 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' ' '`
20427 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20430 # We used to test for /lib/ld.so.1 and disable shared libraries on
20431 # powerpc, because MkLinux only supported shared libraries with the
20432 # GNU dynamic linker. Since this was broken with cross compilers,
20433 # most powerpc-linux boxes support dynamic linking these days and
20434 # people can always --disable-shared, the test was removed, and we
20435 # assume the GNU/Linux dynamic linker is in use.
20436 dynamic_linker='GNU/Linux ld.so'
20443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20444 soname_spec='${libname}${release}${shared_ext}$major'
20445 shlibpath_var=LD_LIBRARY_PATH
20446 shlibpath_overrides_runpath=no
20447 hardcode_into_libs=yes
20448 dynamic_linker='GNU ld.so'
20455 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20458 dynamic_linker='NetBSD (a.out) ld.so'
20460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20461 soname_spec='${libname}${release}${shared_ext}$major'
20462 dynamic_linker='NetBSD ld.elf_so'
20464 shlibpath_var=LD_LIBRARY_PATH
20465 shlibpath_overrides_runpath=yes
20466 hardcode_into_libs=yes
20471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20472 shlibpath_var=LD_LIBRARY_PATH
20473 shlibpath_overrides_runpath=yes
20480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20481 soname_spec='${libname}${release}${shared_ext}$major'
20482 shlibpath_var=LD_LIBRARY_PATH
20483 shlibpath_overrides_runpath=yes
20488 sys_lib_dlsearch_path_spec="/usr/lib"
20490 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20492 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20493 *) need_version=no ;;
20495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20497 shlibpath_var=LD_LIBRARY_PATH
20498 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20500 openbsd2.[89] | openbsd2.[89].*)
20501 shlibpath_overrides_runpath=no
20504 shlibpath_overrides_runpath=yes
20508 shlibpath_overrides_runpath=yes
20513 libname_spec='$name'
20516 library_names_spec='$libname${shared_ext} $libname.a'
20517 dynamic_linker='OS/2 ld.exe'
20518 shlibpath_var=LIBPATH
20521 osf3* | osf4* | osf5*)
20525 soname_spec='${libname}${release}${shared_ext}$major'
20526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20527 shlibpath_var=LD_LIBRARY_PATH
20528 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20529 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20537 soname_spec='${libname}${release}${shared_ext}$major'
20538 shlibpath_var=LD_LIBRARY_PATH
20539 shlibpath_overrides_runpath=yes
20540 hardcode_into_libs=yes
20541 # ldd complains unless libraries are executable
20542 postinstall_cmds='chmod +x $lib'
20547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20548 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20549 shlibpath_var=LD_LIBRARY_PATH
20550 shlibpath_overrides_runpath=yes
20551 if test "$with_gnu_ld" = yes; then
20559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20560 soname_spec='${libname}${release}${shared_ext}$major'
20561 shlibpath_var=LD_LIBRARY_PATH
20562 case $host_vendor in
20564 shlibpath_overrides_runpath=no
20566 export_dynamic_flag_spec='${wl}-Blargedynsym'
20567 runpath_var=LD_RUN_PATH
20575 shlibpath_overrides_runpath=no
20576 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20582 if test -d /usr/nec ;then
20584 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20585 soname_spec='$libname${shared_ext}.$major'
20586 shlibpath_var=LD_LIBRARY_PATH
20590 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20591 version_type=freebsd-elf
20594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20595 soname_spec='${libname}${release}${shared_ext}$major'
20596 shlibpath_var=LD_LIBRARY_PATH
20597 hardcode_into_libs=yes
20598 if test "$with_gnu_ld" = yes; then
20599 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20600 shlibpath_overrides_runpath=no
20602 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20603 shlibpath_overrides_runpath=yes
20606 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20610 sys_lib_dlsearch_path_spec='/usr/lib'
20615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20616 soname_spec='${libname}${release}${shared_ext}$major'
20617 shlibpath_var=LD_LIBRARY_PATH
20624 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20625 echo "${ECHO_T}$dynamic_linker" >&6; }
20626 test "$dynamic_linker" = no && can_build_shared=no
20628 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20629 if test "$GCC" = yes; then
20630 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20633 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20634 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20635 hardcode_action_CXX=
20636 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20637 test -n "$runpath_var_CXX" || \
20638 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20640 # We can hardcode non-existant directories.
20641 if test "$hardcode_direct_CXX" != no &&
20642 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20643 # have to relink, otherwise we might link with an installed library
20644 # when we should be linking with a yet-to-be-installed one
20645 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20646 test "$hardcode_minus_L_CXX" != no; then
20647 # Linking always hardcodes the temporary library directory.
20648 hardcode_action_CXX=relink
20650 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20651 hardcode_action_CXX=immediate
20654 # We cannot hardcode anything, or else we can only hardcode existing
20656 hardcode_action_CXX=unsupported
20658 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20659 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20661 if test "$hardcode_action_CXX" = relink; then
20662 # Fast installation is not supported
20663 enable_fast_install=no
20664 elif test "$shlibpath_overrides_runpath" = yes ||
20665 test "$enable_shared" = no; then
20666 # Fast installation is not necessary
20667 enable_fast_install=needless
20671 # The else clause should only fire when bootstrapping the
20672 # libtool distribution, otherwise you forgot to ship ltmain.sh
20673 # with your package, and you will get complaints that there are
20674 # no rules to generate ltmain.sh.
20675 if test -f "$ltmain"; then
20676 # See if we are running on zsh, and set the options which allow our commands through
20677 # without removal of \ escapes.
20678 if test -n "${ZSH_VERSION+set}" ; then
20679 setopt NO_GLOB_SUBST
20681 # Now quote all the things that may contain metacharacters while being
20682 # careful not to overquote the AC_SUBSTed values. We take copies of the
20683 # variables and quote the copies for generation of the libtool script.
20684 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20686 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20687 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20688 deplibs_check_method reload_flag reload_cmds need_locks \
20689 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20690 lt_cv_sys_global_symbol_to_c_name_address \
20691 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20692 old_postinstall_cmds old_postuninstall_cmds \
20696 lt_prog_compiler_wl_CXX \
20697 lt_prog_compiler_pic_CXX \
20698 lt_prog_compiler_static_CXX \
20699 lt_prog_compiler_no_builtin_flag_CXX \
20700 export_dynamic_flag_spec_CXX \
20701 thread_safe_flag_spec_CXX \
20702 whole_archive_flag_spec_CXX \
20703 enable_shared_with_static_runtimes_CXX \
20704 old_archive_cmds_CXX \
20705 old_archive_from_new_cmds_CXX \
20706 predep_objects_CXX \
20707 postdep_objects_CXX \
20710 compiler_lib_search_path_CXX \
20712 archive_expsym_cmds_CXX \
20713 postinstall_cmds_CXX \
20714 postuninstall_cmds_CXX \
20715 old_archive_from_expsyms_cmds_CXX \
20716 allow_undefined_flag_CXX \
20717 no_undefined_flag_CXX \
20718 export_symbols_cmds_CXX \
20719 hardcode_libdir_flag_spec_CXX \
20720 hardcode_libdir_flag_spec_ld_CXX \
20721 hardcode_libdir_separator_CXX \
20722 hardcode_automatic_CXX \
20724 module_expsym_cmds_CXX \
20725 lt_cv_prog_compiler_c_o_CXX \
20726 exclude_expsyms_CXX \
20727 include_expsyms_CXX; do
20730 old_archive_cmds_CXX | \
20731 old_archive_from_new_cmds_CXX | \
20732 archive_cmds_CXX | \
20733 archive_expsym_cmds_CXX | \
20734 module_cmds_CXX | \
20735 module_expsym_cmds_CXX | \
20736 old_archive_from_expsyms_cmds_CXX | \
20737 export_symbols_cmds_CXX | \
20738 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20739 postinstall_cmds | postuninstall_cmds | \
20740 old_postinstall_cmds | old_postuninstall_cmds | \
20741 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20742 # Double-quote double-evaled strings.
20743 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20746 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20752 *'\$0 --fallback-echo"')
20753 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20759 cat <<__EOF__ >> "$cfgfile"
20760 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20762 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20764 # Shell to use when invoking shell scripts.
20767 # Whether or not to build shared libraries.
20768 build_libtool_libs=$enable_shared
20770 # Whether or not to build static libraries.
20771 build_old_libs=$enable_static
20773 # Whether or not to add -lc for building shared libraries.
20774 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20776 # Whether or not to disallow shared libs when runtime libs are static
20777 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20779 # Whether or not to optimize for fast installation.
20780 fast_install=$enable_fast_install
20783 host_alias=$host_alias
20787 # The build system.
20788 build_alias=$build_alias
20792 # An echo program that does not interpret backslashes.
20797 AR_FLAGS=$lt_AR_FLAGS
20802 # LTCC compiler flags.
20803 LTCFLAGS=$lt_LTCFLAGS
20805 # A language-specific compiler.
20806 CC=$lt_compiler_CXX
20808 # Is the compiler the GNU C compiler?
20814 # The linker used to build libraries.
20817 # Whether we need hard or soft links.
20820 # A BSD-compatible nm program.
20823 # A symbol stripping program
20826 # Used to examine libraries when file_magic_cmd begins "file"
20827 MAGIC_CMD=$MAGIC_CMD
20829 # Used on cygwin: DLL creation program.
20832 # Used on cygwin: object dumper.
20835 # Used on cygwin: assembler.
20838 # The name of the directory that contains temporary libtool files.
20841 # How to create reloadable object files.
20842 reload_flag=$lt_reload_flag
20843 reload_cmds=$lt_reload_cmds
20845 # How to pass a linker flag through the compiler.
20846 wl=$lt_lt_prog_compiler_wl_CXX
20848 # Object file suffix (normally "o").
20849 objext="$ac_objext"
20851 # Old archive suffix (normally "a").
20854 # Shared library suffix (normally ".so").
20855 shrext_cmds='$shrext_cmds'
20857 # Executable file suffix (normally "").
20860 # Additional compiler flags for building library objects.
20861 pic_flag=$lt_lt_prog_compiler_pic_CXX
20864 # What is the maximum length of a command?
20865 max_cmd_len=$lt_cv_sys_max_cmd_len
20867 # Does compiler simultaneously support -c and -o options?
20868 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20870 # Must we lock files when doing compilation?
20871 need_locks=$lt_need_locks
20873 # Do we need the lib prefix for modules?
20874 need_lib_prefix=$need_lib_prefix
20876 # Do we need a version for libraries?
20877 need_version=$need_version
20879 # Whether dlopen is supported.
20880 dlopen_support=$enable_dlopen
20882 # Whether dlopen of programs is supported.
20883 dlopen_self=$enable_dlopen_self
20885 # Whether dlopen of statically linked programs is supported.
20886 dlopen_self_static=$enable_dlopen_self_static
20888 # Compiler flag to prevent dynamic linking.
20889 link_static_flag=$lt_lt_prog_compiler_static_CXX
20891 # Compiler flag to turn off builtin functions.
20892 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20894 # Compiler flag to allow reflexive dlopens.
20895 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20897 # Compiler flag to generate shared objects directly from archives.
20898 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20900 # Compiler flag to generate thread-safe objects.
20901 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20903 # Library versioning type.
20904 version_type=$version_type
20906 # Format of library name prefix.
20907 libname_spec=$lt_libname_spec
20909 # List of archive names. First name is the real one, the rest are links.
20910 # The last name is the one that the linker finds with -lNAME.
20911 library_names_spec=$lt_library_names_spec
20913 # The coded name of the library, if different from the real name.
20914 soname_spec=$lt_soname_spec
20916 # Commands used to build and install an old-style archive.
20918 old_archive_cmds=$lt_old_archive_cmds_CXX
20919 old_postinstall_cmds=$lt_old_postinstall_cmds
20920 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20922 # Create an old-style archive from a shared archive.
20923 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20925 # Create a temporary old-style archive to link instead of a shared archive.
20926 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20928 # Commands used to build and install a shared archive.
20929 archive_cmds=$lt_archive_cmds_CXX
20930 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20931 postinstall_cmds=$lt_postinstall_cmds
20932 postuninstall_cmds=$lt_postuninstall_cmds
20934 # Commands used to build a loadable module (assumed same as above if empty)
20935 module_cmds=$lt_module_cmds_CXX
20936 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20938 # Commands to strip libraries.
20939 old_striplib=$lt_old_striplib
20940 striplib=$lt_striplib
20942 # Dependencies to place before the objects being linked to create a
20944 predep_objects=$lt_predep_objects_CXX
20946 # Dependencies to place after the objects being linked to create a
20948 postdep_objects=$lt_postdep_objects_CXX
20950 # Dependencies to place before the objects being linked to create a
20952 predeps=$lt_predeps_CXX
20954 # Dependencies to place after the objects being linked to create a
20956 postdeps=$lt_postdeps_CXX
20958 # The library search path used internally by the compiler when linking
20959 # a shared library.
20960 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20962 # Method to check whether dependent libraries are shared objects.
20963 deplibs_check_method=$lt_deplibs_check_method
20965 # Command to use when deplibs_check_method == file_magic.
20966 file_magic_cmd=$lt_file_magic_cmd
20968 # Flag that allows shared libraries with undefined symbols to be built.
20969 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20971 # Flag that forces no undefined symbols.
20972 no_undefined_flag=$lt_no_undefined_flag_CXX
20974 # Commands used to finish a libtool library installation in a directory.
20975 finish_cmds=$lt_finish_cmds
20977 # Same as above, but a single script fragment to be evaled but not shown.
20978 finish_eval=$lt_finish_eval
20980 # Take the output of nm and produce a listing of raw symbols and C names.
20981 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20983 # Transform the output of nm in a proper C declaration
20984 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20986 # Transform the output of nm in a C name address pair
20987 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20989 # This is the shared library runtime path variable.
20990 runpath_var=$runpath_var
20992 # This is the shared library path variable.
20993 shlibpath_var=$shlibpath_var
20995 # Is shlibpath searched before the hard-coded library search path?
20996 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20998 # How to hardcode a shared library path into an executable.
20999 hardcode_action=$hardcode_action_CXX
21001 # Whether we should hardcode library paths into libraries.
21002 hardcode_into_libs=$hardcode_into_libs
21004 # Flag to hardcode \$libdir into a binary during linking.
21005 # This must work even if \$libdir does not exist.
21006 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21008 # If ld is used when linking, flag to hardcode \$libdir into
21009 # a binary during linking. This must work even if \$libdir does
21011 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21013 # Whether we need a single -rpath flag with a separated argument.
21014 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21016 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21017 # resulting binary.
21018 hardcode_direct=$hardcode_direct_CXX
21020 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21021 # resulting binary.
21022 hardcode_minus_L=$hardcode_minus_L_CXX
21024 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21025 # the resulting binary.
21026 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21028 # Set to yes if building a shared library automatically hardcodes DIR into the library
21029 # and all subsequent libraries and executables linked against it.
21030 hardcode_automatic=$hardcode_automatic_CXX
21032 # Variables whose values should be saved in libtool wrapper scripts and
21033 # restored at relink time.
21034 variables_saved_for_relink="$variables_saved_for_relink"
21036 # Whether libtool must link a program against all its dependency libraries.
21037 link_all_deplibs=$link_all_deplibs_CXX
21039 # Compile-time system search path for libraries
21040 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21042 # Run-time system search path for libraries
21043 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21045 # Fix the shell variable \$srcfile for the compiler.
21046 fix_srcfile_path="$fix_srcfile_path_CXX"
21048 # Set to yes if exported symbols are required.
21049 always_export_symbols=$always_export_symbols_CXX
21051 # The commands to list exported symbols.
21052 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21054 # The commands to extract the exported symbol list from a shared archive.
21055 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21057 # Symbols that should not be listed in the preloaded symbols.
21058 exclude_expsyms=$lt_exclude_expsyms_CXX
21060 # Symbols that must always be exported.
21061 include_expsyms=$lt_include_expsyms_CXX
21063 # ### END LIBTOOL TAG CONFIG: $tagname
21069 # If there is no Makefile yet, we rely on a make rule to execute
21070 # `config.status --recheck' to rerun these tests and create the
21071 # libtool script then.
21072 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21073 if test -f "$ltmain_in"; then
21074 test -f Makefile && make "$ltmain"
21080 ac_cpp='$CPP $CPPFLAGS'
21081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21089 with_gnu_ldcxx=$with_gnu_ld
21090 with_gnu_ld=$lt_save_with_gnu_ld
21091 lt_cv_path_LDCXX=$lt_cv_path_LD
21092 lt_cv_path_LD=$lt_save_path_LD
21093 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21094 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21102 if test -n "$F77" && test "X$F77" != "Xno"; then
21105 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21106 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21107 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21110 archive_cmds_need_lc_F77=no
21111 allow_undefined_flag_F77=
21112 always_export_symbols_F77=no
21113 archive_expsym_cmds_F77=
21114 export_dynamic_flag_spec_F77=
21115 hardcode_direct_F77=no
21116 hardcode_libdir_flag_spec_F77=
21117 hardcode_libdir_flag_spec_ld_F77=
21118 hardcode_libdir_separator_F77=
21119 hardcode_minus_L_F77=no
21120 hardcode_automatic_F77=no
21122 module_expsym_cmds_F77=
21123 link_all_deplibs_F77=unknown
21124 old_archive_cmds_F77=$old_archive_cmds
21125 no_undefined_flag_F77=
21126 whole_archive_flag_spec_F77=
21127 enable_shared_with_static_runtimes_F77=no
21129 # Source file extension for f77 test sources.
21132 # Object file extension for compiled f77 test sources.
21136 # Code to be used in simple compile tests
21137 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21139 # Code to be used in simple link tests
21140 lt_simple_link_test_code=" program t\n end\n"
21142 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21144 # If no C compiler was specified, use CC.
21147 # If no C compiler flags were specified, use CFLAGS.
21148 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21150 # Allow CC to be a program name with arguments.
21154 # save warnings/boilerplate of simple test code
21155 ac_outfile=conftest.$ac_objext
21156 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21157 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21158 _lt_compiler_boilerplate=`cat conftest.err`
21161 ac_outfile=conftest.$ac_objext
21162 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21163 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21164 _lt_linker_boilerplate=`cat conftest.err`
21168 # Allow CC to be a program name with arguments.
21173 for cc_temp in $compiler""; do
21175 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21176 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21181 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21184 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21185 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21186 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21187 echo "${ECHO_T}$can_build_shared" >&6; }
21189 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21190 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21191 test "$can_build_shared" = "no" && enable_shared=no
21193 # On AIX, shared libraries and static libraries use the same namespace, and
21194 # are all built from PIC.
21197 test "$enable_shared" = yes && enable_static=no
21198 if test -n "$RANLIB"; then
21199 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21200 postinstall_cmds='$RANLIB $lib'
21204 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21205 test "$enable_shared" = yes && enable_static=no
21209 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21210 echo "${ECHO_T}$enable_shared" >&6; }
21212 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21213 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21214 # Make sure either enable_shared or enable_static is yes.
21215 test "$enable_shared" = yes || enable_static=yes
21216 { echo "$as_me:$LINENO: result: $enable_static" >&5
21217 echo "${ECHO_T}$enable_static" >&6; }
21222 lt_prog_compiler_wl_F77=
21223 lt_prog_compiler_pic_F77=
21224 lt_prog_compiler_static_F77=
21226 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21227 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21229 if test "$GCC" = yes; then
21230 lt_prog_compiler_wl_F77='-Wl,'
21231 lt_prog_compiler_static_F77='-static'
21235 # All AIX code is PIC.
21236 if test "$host_cpu" = ia64; then
21237 # AIX 5 now supports IA64 processor
21238 lt_prog_compiler_static_F77='-Bstatic'
21243 # FIXME: we need at least 68020 code to build shared libraries, but
21244 # adding the `-m68020' flag to GCC prevents building anything better,
21246 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21249 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21250 # PIC is the default for these OSes.
21253 mingw* | pw32* | os2*)
21254 # This hack is so that the source file can tell whether it is being
21255 # built for inclusion in a dll (and should export symbols for example).
21256 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21259 darwin* | rhapsody*)
21260 # PIC is the default on this platform
21261 # Common symbols not allowed in MH_DYLIB files
21262 lt_prog_compiler_pic_F77='-fno-common'
21266 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21267 # Instead, we relocate shared libraries at runtime.
21271 # Just because we use GCC doesn't mean we suddenly get shared libraries
21272 # on systems that don't support them.
21273 lt_prog_compiler_can_build_shared_F77=no
21278 if test -d /usr/nec; then
21279 lt_prog_compiler_pic_F77=-Kconform_pic
21284 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21285 # not for PA HP-UX.
21291 lt_prog_compiler_pic_F77='-fPIC'
21297 lt_prog_compiler_pic_F77='-fPIC'
21301 # PORTME Check for flag to pass linker flags through the system compiler.
21304 lt_prog_compiler_wl_F77='-Wl,'
21305 if test "$host_cpu" = ia64; then
21306 # AIX 5 now supports IA64 processor
21307 lt_prog_compiler_static_F77='-Bstatic'
21309 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21313 # PIC is the default on this platform
21314 # Common symbols not allowed in MH_DYLIB files
21315 case $cc_basename in
21317 lt_prog_compiler_pic_F77='-qnocommon'
21318 lt_prog_compiler_wl_F77='-Wl,'
21323 mingw* | pw32* | os2*)
21324 # This hack is so that the source file can tell whether it is being
21325 # built for inclusion in a dll (and should export symbols for example).
21326 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21329 hpux9* | hpux10* | hpux11*)
21330 lt_prog_compiler_wl_F77='-Wl,'
21331 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21332 # not for PA HP-UX.
21338 lt_prog_compiler_pic_F77='+Z'
21341 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21342 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21345 irix5* | irix6* | nonstopux*)
21346 lt_prog_compiler_wl_F77='-Wl,'
21347 # PIC (with -KPIC) is the default.
21348 lt_prog_compiler_static_F77='-non_shared'
21352 lt_prog_compiler_pic_F77='-KPIC'
21353 lt_prog_compiler_static_F77='-Bstatic'
21357 case $cc_basename in
21359 lt_prog_compiler_wl_F77='-Wl,'
21360 lt_prog_compiler_pic_F77='-KPIC'
21361 lt_prog_compiler_static_F77='-static'
21363 pgcc* | pgf77* | pgf90* | pgf95*)
21364 # Portland Group compilers (*not* the Pentium gcc compiler,
21365 # which looks to be a dead project)
21366 lt_prog_compiler_wl_F77='-Wl,'
21367 lt_prog_compiler_pic_F77='-fpic'
21368 lt_prog_compiler_static_F77='-Bstatic'
21371 lt_prog_compiler_wl_F77='-Wl,'
21372 # All Alpha code is PIC.
21373 lt_prog_compiler_static_F77='-non_shared'
21378 osf3* | osf4* | osf5*)
21379 lt_prog_compiler_wl_F77='-Wl,'
21380 # All OSF/1 code is PIC.
21381 lt_prog_compiler_static_F77='-non_shared'
21385 lt_prog_compiler_pic_F77='-KPIC'
21386 lt_prog_compiler_static_F77='-Bstatic'
21387 case $cc_basename in
21388 f77* | f90* | f95*)
21389 lt_prog_compiler_wl_F77='-Qoption ld ';;
21391 lt_prog_compiler_wl_F77='-Wl,';;
21396 lt_prog_compiler_wl_F77='-Qoption ld '
21397 lt_prog_compiler_pic_F77='-PIC'
21398 lt_prog_compiler_static_F77='-Bstatic'
21401 sysv4 | sysv4.2uw2* | sysv4.3*)
21402 lt_prog_compiler_wl_F77='-Wl,'
21403 lt_prog_compiler_pic_F77='-KPIC'
21404 lt_prog_compiler_static_F77='-Bstatic'
21408 if test -d /usr/nec ;then
21409 lt_prog_compiler_pic_F77='-Kconform_pic'
21410 lt_prog_compiler_static_F77='-Bstatic'
21414 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21415 lt_prog_compiler_wl_F77='-Wl,'
21416 lt_prog_compiler_pic_F77='-KPIC'
21417 lt_prog_compiler_static_F77='-Bstatic'
21421 lt_prog_compiler_wl_F77='-Wl,'
21422 lt_prog_compiler_can_build_shared_F77=no
21426 lt_prog_compiler_pic_F77='-pic'
21427 lt_prog_compiler_static_F77='-Bstatic'
21431 lt_prog_compiler_can_build_shared_F77=no
21436 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21437 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21440 # Check to make sure the PIC flag actually works.
21442 if test -n "$lt_prog_compiler_pic_F77"; then
21444 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21445 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21446 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21447 echo $ECHO_N "(cached) $ECHO_C" >&6
21449 lt_prog_compiler_pic_works_F77=no
21450 ac_outfile=conftest.$ac_objext
21451 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21452 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21453 # Insert the option either (1) after the last *FLAGS variable, or
21454 # (2) before a word containing "conftest.", or (3) at the end.
21455 # Note that $ac_compile itself does not contain backslashes and begins
21456 # with a dollar sign (not a hyphen), so the echo should work correctly.
21457 # The option is referenced via a variable to avoid confusing sed.
21458 lt_compile=`echo "$ac_compile" | $SED \
21459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21461 -e 's:$: $lt_compiler_flag:'`
21462 (eval echo "\"\$as_me:21462: $lt_compile\"" >&5)
21463 (eval "$lt_compile" 2>conftest.err)
21465 cat conftest.err >&5
21466 echo "$as_me:21466: \$? = $ac_status" >&5
21467 if (exit $ac_status) && test -s "$ac_outfile"; then
21468 # The compiler can only warn and ignore the option if not recognized
21469 # So say no if there are warnings other than the usual output.
21470 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21472 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21473 lt_prog_compiler_pic_works_F77=yes
21479 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21480 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21482 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21483 case $lt_prog_compiler_pic_F77 in
21485 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21488 lt_prog_compiler_pic_F77=
21489 lt_prog_compiler_can_build_shared_F77=no
21494 # For platforms which do not support PIC, -DPIC is meaningless:
21496 lt_prog_compiler_pic_F77=
21499 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21504 # Check to make sure the static flag actually works.
21506 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21507 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21508 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21509 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21510 echo $ECHO_N "(cached) $ECHO_C" >&6
21512 lt_prog_compiler_static_works_F77=no
21513 save_LDFLAGS="$LDFLAGS"
21514 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21515 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21516 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21517 # The linker can only warn and ignore the option if not recognized
21518 # So say no if there are warnings
21519 if test -s conftest.err; then
21520 # Append any errors to the config.log.
21521 cat conftest.err 1>&5
21522 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21524 if diff conftest.exp conftest.er2 >/dev/null; then
21525 lt_prog_compiler_static_works_F77=yes
21528 lt_prog_compiler_static_works_F77=yes
21532 LDFLAGS="$save_LDFLAGS"
21535 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21536 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21538 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21541 lt_prog_compiler_static_F77=
21545 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21546 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21547 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21548 echo $ECHO_N "(cached) $ECHO_C" >&6
21550 lt_cv_prog_compiler_c_o_F77=no
21551 $rm -r conftest 2>/dev/null
21555 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21557 lt_compiler_flag="-o out/conftest2.$ac_objext"
21558 # Insert the option either (1) after the last *FLAGS variable, or
21559 # (2) before a word containing "conftest.", or (3) at the end.
21560 # Note that $ac_compile itself does not contain backslashes and begins
21561 # with a dollar sign (not a hyphen), so the echo should work correctly.
21562 lt_compile=`echo "$ac_compile" | $SED \
21563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21565 -e 's:$: $lt_compiler_flag:'`
21566 (eval echo "\"\$as_me:21566: $lt_compile\"" >&5)
21567 (eval "$lt_compile" 2>out/conftest.err)
21569 cat out/conftest.err >&5
21570 echo "$as_me:21570: \$? = $ac_status" >&5
21571 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21573 # The compiler can only warn and ignore the option if not recognized
21574 # So say no if there are warnings
21575 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21576 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21577 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21578 lt_cv_prog_compiler_c_o_F77=yes
21583 # SGI C++ compiler will create directory out/ii_files/ for
21584 # template instantiation
21585 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21586 $rm out/* && rmdir out
21592 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21593 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21596 hard_links="nottested"
21597 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21598 # do not overwrite the value of need_locks provided by the user
21599 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21600 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21605 ln conftest.a conftest.b 2>&5 || hard_links=no
21606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21607 { echo "$as_me:$LINENO: result: $hard_links" >&5
21608 echo "${ECHO_T}$hard_links" >&6; }
21609 if test "$hard_links" = no; then
21610 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21611 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21618 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21619 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21622 allow_undefined_flag_F77=
21623 enable_shared_with_static_runtimes_F77=no
21625 archive_expsym_cmds_F77=
21626 old_archive_From_new_cmds_F77=
21627 old_archive_from_expsyms_cmds_F77=
21628 export_dynamic_flag_spec_F77=
21629 whole_archive_flag_spec_F77=
21630 thread_safe_flag_spec_F77=
21631 hardcode_libdir_flag_spec_F77=
21632 hardcode_libdir_flag_spec_ld_F77=
21633 hardcode_libdir_separator_F77=
21634 hardcode_direct_F77=no
21635 hardcode_minus_L_F77=no
21636 hardcode_shlibpath_var_F77=unsupported
21637 link_all_deplibs_F77=unknown
21638 hardcode_automatic_F77=no
21640 module_expsym_cmds_F77=
21641 always_export_symbols_F77=no
21642 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21643 # include_expsyms should be a list of space-separated symbols to be *always*
21644 # included in the symbol list
21645 include_expsyms_F77=
21646 # exclude_expsyms can be an extended regexp of symbols to exclude
21647 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21648 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21649 # as well as any symbol that contains `d'.
21650 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21651 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21652 # platforms (ab)use it in PIC code, but their linkers get confused if
21653 # the symbol is explicitly referenced. Since portable code cannot
21654 # rely on this symbol name, it's probably fine to never include it in
21655 # preloaded symbol tables.
21656 extract_expsyms_cmds=
21657 # Just being paranoid about ensuring that cc_basename is set.
21658 for cc_temp in $compiler""; do
21660 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21661 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21666 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21669 cygwin* | mingw* | pw32*)
21670 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21671 # When not using gcc, we currently assume that we are using
21672 # Microsoft Visual C++.
21673 if test "$GCC" != yes; then
21678 # we just hope/assume this is gcc and not c89 (= MSVC++)
21687 if test "$with_gnu_ld" = yes; then
21688 # If archive_cmds runs LD, not CC, wlarc should be empty
21691 # Set some defaults for GNU ld with shared library support. These
21692 # are reset later if shared libraries are not supported. Putting them
21693 # here allows them to be overridden if necessary.
21694 runpath_var=LD_RUN_PATH
21695 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21696 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21697 # ancient GNU ld didn't support --whole-archive et. al.
21698 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21699 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21701 whole_archive_flag_spec_F77=
21703 supports_anon_versioning=no
21704 case `$LD -v 2>/dev/null` in
21705 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21706 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21707 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21708 *\ 2.11.*) ;; # other 2.11 versions
21709 *) supports_anon_versioning=yes ;;
21712 # See if GNU ld supports shared libraries.
21714 aix3* | aix4* | aix5*)
21715 # On AIX/PPC, the GNU linker is very broken
21716 if test "$host_cpu" != ia64; then
21720 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21721 *** to be unable to reliably create shared libraries on AIX.
21722 *** Therefore, libtool is disabling shared libraries support. If you
21723 *** really care for shared libraries, you may want to modify your PATH
21724 *** so that a non-GNU linker is found, and then restart.
21731 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)'
21732 hardcode_libdir_flag_spec_F77='-L$libdir'
21733 hardcode_minus_L_F77=yes
21735 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21736 # that the semantics of dynamic libraries on AmigaOS, at least up
21737 # to version 4, is to share data among multiple programs linked
21738 # with the same dynamic library. Since this doesn't match the
21739 # behavior of shared libraries on other platforms, we can't use
21745 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21746 allow_undefined_flag_F77=unsupported
21747 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21748 # support --undefined. This deserves some investigation. FIXME
21749 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21755 cygwin* | mingw* | pw32*)
21756 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21757 # as there is no search path for DLLs.
21758 hardcode_libdir_flag_spec_F77='-L$libdir'
21759 allow_undefined_flag_F77=unsupported
21760 always_export_symbols_F77=no
21761 enable_shared_with_static_runtimes_F77=yes
21762 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21764 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21765 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21766 # If the export-symbols file already is a .def file (1st line
21767 # is EXPORTS), use it as is; otherwise, prepend...
21768 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21769 cp $export_symbols $output_objdir/$soname.def;
21771 echo EXPORTS > $output_objdir/$soname.def;
21772 cat $export_symbols >> $output_objdir/$soname.def;
21774 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21781 hardcode_direct_F77=no
21782 hardcode_shlibpath_var_F77=no
21783 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21784 export_dynamic_flag_spec_F77='${wl}-E'
21785 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21786 # Instead, shared libraries are loaded at an image base (0x10000000 by
21787 # default) and relocated if they conflict, which is a slow very memory
21788 # consuming and fragmenting process. To avoid this, we pick a random,
21789 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21790 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21791 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'
21792 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'
21796 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21798 case $cc_basename,$host_cpu in
21799 pgcc*) # Portland Group C compiler
21800 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'
21801 tmp_addflag=' $pic_flag'
21803 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21804 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'
21805 tmp_addflag=' $pic_flag -Mnomain' ;;
21806 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21807 tmp_addflag=' -i_dynamic' ;;
21808 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21809 tmp_addflag=' -i_dynamic -nofor_main' ;;
21810 ifc* | ifort*) # Intel Fortran compiler
21811 tmp_addflag=' -nofor_main' ;;
21813 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21815 if test $supports_anon_versioning = yes; then
21816 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21817 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21818 $echo "local: *; };" >> $output_objdir/$libname.ver~
21819 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21827 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21828 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21831 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21832 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21837 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21841 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21842 *** create shared libraries on Solaris systems. Therefore, libtool
21843 *** is disabling shared libraries support. We urge you to upgrade GNU
21844 *** binutils to release 2.9.1 or newer. Another option is to modify
21845 *** your PATH or compiler configuration so that the native linker is
21846 *** used, and then restart.
21849 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21850 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21851 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21857 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21858 case `$LD -v 2>&1` in
21859 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21863 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21864 *** reliably create shared libraries on SCO systems. Therefore, libtool
21865 *** is disabling shared libraries support. We urge you to upgrade GNU
21866 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21867 *** your PATH or compiler configuration so that the native linker is
21868 *** used, and then restart.
21873 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21874 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21875 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21876 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21885 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21887 hardcode_direct_F77=yes
21888 hardcode_shlibpath_var_F77=no
21892 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21893 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21894 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21901 if test "$ld_shlibs_F77" = no; then
21903 hardcode_libdir_flag_spec_F77=
21904 export_dynamic_flag_spec_F77=
21905 whole_archive_flag_spec_F77=
21908 # PORTME fill in a description of your system's linker (not GNU ld)
21911 allow_undefined_flag_F77=unsupported
21912 always_export_symbols_F77=yes
21913 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'
21914 # Note: this linker hardcodes the directories in LIBPATH if there
21915 # are no directories specified by -L.
21916 hardcode_minus_L_F77=yes
21917 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21918 # Neither direct hardcoding nor static linking is supported with a
21920 hardcode_direct_F77=unsupported
21925 if test "$host_cpu" = ia64; then
21926 # On IA64, the linker does run time linking by default, so we don't
21927 # have to do anything special.
21928 aix_use_runtimelinking=no
21929 exp_sym_flag='-Bexport'
21932 # If we're using GNU nm, then we don't want the "-C" option.
21933 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21934 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21935 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'
21937 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'
21939 aix_use_runtimelinking=no
21941 # Test if we are trying to use run time linking or normal
21942 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21943 # need to do runtime linking.
21944 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21945 for ld_flag in $LDFLAGS; do
21946 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21947 aix_use_runtimelinking=yes
21954 exp_sym_flag='-bexport'
21955 no_entry_flag='-bnoentry'
21958 # When large executables or shared objects are built, AIX ld can
21959 # have problems creating the table of contents. If linking a library
21960 # or program results in "error TOC overflow" add -mminimal-toc to
21961 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21962 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21964 archive_cmds_F77=''
21965 hardcode_direct_F77=yes
21966 hardcode_libdir_separator_F77=':'
21967 link_all_deplibs_F77=yes
21969 if test "$GCC" = yes; then
21970 case $host_os in aix4.[012]|aix4.[012].*)
21971 # We only want to do this on AIX 4.2 and lower, the check
21972 # below for broken collect2 doesn't work under 4.3+
21973 collect2name=`${CC} -print-prog-name=collect2`
21974 if test -f "$collect2name" && \
21975 strings "$collect2name" | grep resolve_lib_name >/dev/null
21977 # We have reworked collect2
21978 hardcode_direct_F77=yes
21980 # We have old collect2
21981 hardcode_direct_F77=unsupported
21982 # It fails to find uninstalled libraries when the uninstalled
21983 # path is not listed in the libpath. Setting hardcode_minus_L
21984 # to unsupported forces relinking
21985 hardcode_minus_L_F77=yes
21986 hardcode_libdir_flag_spec_F77='-L$libdir'
21987 hardcode_libdir_separator_F77=
21991 shared_flag='-shared'
21992 if test "$aix_use_runtimelinking" = yes; then
21993 shared_flag="$shared_flag "'${wl}-G'
21997 if test "$host_cpu" = ia64; then
21998 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21999 # chokes on -Wl,-G. The following line is correct:
22002 if test "$aix_use_runtimelinking" = yes; then
22003 shared_flag='${wl}-G'
22005 shared_flag='${wl}-bM:SRE'
22010 # It seems that -bexpall does not export symbols beginning with
22011 # underscore (_), so it is better to generate a list of symbols to export.
22012 always_export_symbols_F77=yes
22013 if test "$aix_use_runtimelinking" = yes; then
22014 # Warning - without using the other runtime loading flags (-brtl),
22015 # -berok will link without error, but may produce a broken library.
22016 allow_undefined_flag_F77='-berok'
22017 # Determine the default libpath from the value encoded in an empty executable.
22018 cat >conftest.$ac_ext <<_ACEOF
22023 rm -f conftest.$ac_objext conftest$ac_exeext
22024 if { (ac_try="$ac_link"
22025 case "(($ac_try" in
22026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22027 *) ac_try_echo=$ac_try;;
22029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22030 (eval "$ac_link") 2>conftest.er1
22032 grep -v '^ *+' conftest.er1 >conftest.err
22034 cat conftest.err >&5
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); } &&
22037 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22038 { (case "(($ac_try" in
22039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22040 *) ac_try_echo=$ac_try;;
22042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22043 (eval "$ac_try") 2>&5
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); }; } &&
22047 { ac_try='test -s conftest$ac_exeext'
22048 { (case "(($ac_try" in
22049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050 *) ac_try_echo=$ac_try;;
22052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22053 (eval "$ac_try") 2>&5
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); }; }; then
22058 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22060 # Check for a 64-bit object if we didn't find anything.
22061 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; }
22064 echo "$as_me: failed program was:" >&5
22065 sed 's/^/| /' conftest.$ac_ext >&5
22070 rm -f core conftest.err conftest.$ac_objext \
22071 conftest$ac_exeext conftest.$ac_ext
22072 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22074 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22075 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"
22077 if test "$host_cpu" = ia64; then
22078 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22079 allow_undefined_flag_F77="-z nodefs"
22080 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"
22082 # Determine the default libpath from the value encoded in an empty executable.
22083 cat >conftest.$ac_ext <<_ACEOF
22088 rm -f conftest.$ac_objext conftest$ac_exeext
22089 if { (ac_try="$ac_link"
22090 case "(($ac_try" in
22091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22092 *) ac_try_echo=$ac_try;;
22094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22095 (eval "$ac_link") 2>conftest.er1
22097 grep -v '^ *+' conftest.er1 >conftest.err
22099 cat conftest.err >&5
22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); } &&
22102 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22103 { (case "(($ac_try" in
22104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22105 *) ac_try_echo=$ac_try;;
22107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108 (eval "$ac_try") 2>&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); }; } &&
22112 { ac_try='test -s conftest$ac_exeext'
22113 { (case "(($ac_try" in
22114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22115 *) ac_try_echo=$ac_try;;
22117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22118 (eval "$ac_try") 2>&5
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); }; }; then
22123 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22125 # Check for a 64-bit object if we didn't find anything.
22126 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; }
22129 echo "$as_me: failed program was:" >&5
22130 sed 's/^/| /' conftest.$ac_ext >&5
22135 rm -f core conftest.err conftest.$ac_objext \
22136 conftest$ac_exeext conftest.$ac_ext
22137 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22139 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22140 # Warning - without using the other run time loading flags,
22141 # -berok will link without error, but may produce a broken library.
22142 no_undefined_flag_F77=' ${wl}-bernotok'
22143 allow_undefined_flag_F77=' ${wl}-berok'
22144 # Exported symbols can be pulled into shared objects from archives
22145 whole_archive_flag_spec_F77='$convenience'
22146 archive_cmds_need_lc_F77=yes
22147 # This is similar to how AIX traditionally builds its shared libraries.
22148 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'
22154 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)'
22155 hardcode_libdir_flag_spec_F77='-L$libdir'
22156 hardcode_minus_L_F77=yes
22157 # see comment about different semantics on the GNU ld section
22162 export_dynamic_flag_spec_F77=-rdynamic
22165 cygwin* | mingw* | pw32*)
22166 # When not using gcc, we currently assume that we are using
22167 # Microsoft Visual C++.
22168 # hardcode_libdir_flag_spec is actually meaningless, as there is
22169 # no search path for DLLs.
22170 hardcode_libdir_flag_spec_F77=' '
22171 allow_undefined_flag_F77=unsupported
22172 # Tell ltmain to make .lib files, not .a files.
22174 # Tell ltmain to make .dll files, not .so files.
22176 # FIXME: Setting linknames here is a bad hack.
22177 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22178 # The linker will automatically build a .lib file if we build a DLL.
22179 old_archive_From_new_cmds_F77='true'
22180 # FIXME: Should let the user specify the lib program.
22181 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22182 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22183 enable_shared_with_static_runtimes_F77=yes
22186 darwin* | rhapsody*)
22188 rhapsody* | darwin1.[012])
22189 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22192 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22193 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22195 case ${MACOSX_DEPLOYMENT_TARGET} in
22197 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22200 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22206 archive_cmds_need_lc_F77=no
22207 hardcode_direct_F77=no
22208 hardcode_automatic_F77=yes
22209 hardcode_shlibpath_var_F77=unsupported
22210 whole_archive_flag_spec_F77=''
22211 link_all_deplibs_F77=yes
22212 if test "$GCC" = yes ; then
22213 output_verbose_link_cmd='echo'
22214 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22215 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22216 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22217 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}'
22218 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}'
22220 case $cc_basename in
22222 output_verbose_link_cmd='echo'
22223 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22224 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22225 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22226 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}'
22227 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}'
22237 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22238 hardcode_libdir_flag_spec_F77='-L$libdir'
22239 hardcode_shlibpath_var_F77=no
22246 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22247 # support. Future versions do this automatically, but an explicit c++rt0.o
22248 # does not break anything, and helps significantly (at the cost of a little
22251 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22252 hardcode_libdir_flag_spec_F77='-R$libdir'
22253 hardcode_direct_F77=yes
22254 hardcode_shlibpath_var_F77=no
22257 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22259 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22260 hardcode_direct_F77=yes
22261 hardcode_minus_L_F77=yes
22262 hardcode_shlibpath_var_F77=no
22265 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22266 freebsd* | kfreebsd*-gnu | dragonfly*)
22267 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22268 hardcode_libdir_flag_spec_F77='-R$libdir'
22269 hardcode_direct_F77=yes
22270 hardcode_shlibpath_var_F77=no
22274 if test "$GCC" = yes; then
22275 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'
22277 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'
22279 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22280 hardcode_libdir_separator_F77=:
22281 hardcode_direct_F77=yes
22283 # hardcode_minus_L: Not really in the search PATH,
22284 # but as the default location of the library.
22285 hardcode_minus_L_F77=yes
22286 export_dynamic_flag_spec_F77='${wl}-E'
22290 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22291 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22293 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22295 if test "$with_gnu_ld" = no; then
22296 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22297 hardcode_libdir_separator_F77=:
22299 hardcode_direct_F77=yes
22300 export_dynamic_flag_spec_F77='${wl}-E'
22302 # hardcode_minus_L: Not really in the search PATH,
22303 # but as the default location of the library.
22304 hardcode_minus_L_F77=yes
22309 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22312 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22315 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22318 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22324 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22327 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22330 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22334 if test "$with_gnu_ld" = no; then
22335 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22336 hardcode_libdir_separator_F77=:
22340 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22341 hardcode_direct_F77=no
22342 hardcode_shlibpath_var_F77=no
22345 hardcode_direct_F77=yes
22346 export_dynamic_flag_spec_F77='${wl}-E'
22348 # hardcode_minus_L: Not really in the search PATH,
22349 # but as the default location of the library.
22350 hardcode_minus_L_F77=yes
22356 irix5* | irix6* | nonstopux*)
22357 if test "$GCC" = yes; then
22358 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'
22360 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'
22361 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22363 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22364 hardcode_libdir_separator_F77=:
22365 link_all_deplibs_F77=yes
22369 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22370 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22372 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22374 hardcode_libdir_flag_spec_F77='-R$libdir'
22375 hardcode_direct_F77=yes
22376 hardcode_shlibpath_var_F77=no
22380 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22381 hardcode_direct_F77=yes
22382 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22383 hardcode_libdir_separator_F77=:
22384 hardcode_shlibpath_var_F77=no
22388 hardcode_direct_F77=yes
22389 hardcode_shlibpath_var_F77=no
22390 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22391 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22392 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22393 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22394 export_dynamic_flag_spec_F77='${wl}-E'
22397 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22398 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22399 hardcode_libdir_flag_spec_F77='-R$libdir'
22402 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22403 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22410 hardcode_libdir_flag_spec_F77='-L$libdir'
22411 hardcode_minus_L_F77=yes
22412 allow_undefined_flag_F77=unsupported
22413 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'
22414 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22418 if test "$GCC" = yes; then
22419 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22420 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'
22422 allow_undefined_flag_F77=' -expect_unresolved \*'
22423 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'
22425 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22426 hardcode_libdir_separator_F77=:
22429 osf4* | osf5*) # as osf3* with the addition of -msym flag
22430 if test "$GCC" = yes; then
22431 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22432 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'
22433 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22435 allow_undefined_flag_F77=' -expect_unresolved \*'
22436 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'
22437 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~
22438 $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'
22440 # Both c and cxx compiler support -rpath directly
22441 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22443 hardcode_libdir_separator_F77=:
22447 no_undefined_flag_F77=' -z text'
22448 if test "$GCC" = yes; then
22450 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22451 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22452 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22455 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22456 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22457 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22459 hardcode_libdir_flag_spec_F77='-R$libdir'
22460 hardcode_shlibpath_var_F77=no
22462 solaris2.[0-5] | solaris2.[0-5].*) ;;
22464 # The compiler driver will combine linker options so we
22465 # cannot just pass the convience library names through
22466 # without $wl, iff we do not link with $LD.
22467 # Luckily, gcc supports the same syntax we need for Sun Studio.
22468 # Supported since Solaris 2.6 (maybe 2.5.1?)
22471 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22473 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' ;;
22476 link_all_deplibs_F77=yes
22480 if test "x$host_vendor" = xsequent; then
22481 # Use $CC to link under sequent, because it throws in some extra .o
22482 # files that make .init and .fini sections work.
22483 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22485 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22487 hardcode_libdir_flag_spec_F77='-L$libdir'
22488 hardcode_direct_F77=yes
22489 hardcode_minus_L_F77=yes
22490 hardcode_shlibpath_var_F77=no
22494 case $host_vendor in
22496 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22497 hardcode_direct_F77=yes # is this really true???
22500 ## LD is ld it makes a PLAMLIB
22501 ## CC just makes a GrossModule.
22502 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22503 reload_cmds_F77='$CC -r -o $output$reload_objs'
22504 hardcode_direct_F77=no
22507 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22508 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22511 runpath_var='LD_RUN_PATH'
22512 hardcode_shlibpath_var_F77=no
22516 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22517 hardcode_shlibpath_var_F77=no
22518 export_dynamic_flag_spec_F77='-Bexport'
22522 if test -d /usr/nec; then
22523 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22524 hardcode_shlibpath_var_F77=no
22525 runpath_var=LD_RUN_PATH
22526 hardcode_runpath_var=yes
22531 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22532 no_undefined_flag_F77='${wl}-z,text'
22533 archive_cmds_need_lc_F77=no
22534 hardcode_shlibpath_var_F77=no
22535 runpath_var='LD_RUN_PATH'
22537 if test "$GCC" = yes; then
22538 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22539 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22541 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22542 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22546 sysv5* | sco3.2v5* | sco5v6*)
22547 # Note: We can NOT use -z defs as we might desire, because we do not
22548 # link with -lc, and that would cause any symbols used from libc to
22549 # always be unresolved, which means just about no library would
22550 # ever link correctly. If we're not using GNU ld we use -z text
22551 # though, which does catch some bad symbols but isn't as heavy-handed
22553 no_undefined_flag_F77='${wl}-z,text'
22554 allow_undefined_flag_F77='${wl}-z,nodefs'
22555 archive_cmds_need_lc_F77=no
22556 hardcode_shlibpath_var_F77=no
22557 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22558 hardcode_libdir_separator_F77=':'
22559 link_all_deplibs_F77=yes
22560 export_dynamic_flag_spec_F77='${wl}-Bexport'
22561 runpath_var='LD_RUN_PATH'
22563 if test "$GCC" = yes; then
22564 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22565 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22567 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22568 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22573 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22574 hardcode_libdir_flag_spec_F77='-L$libdir'
22575 hardcode_shlibpath_var_F77=no
22584 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22585 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22586 test "$ld_shlibs_F77" = no && can_build_shared=no
22589 # Do we need to explicitly link libc?
22591 case "x$archive_cmds_need_lc_F77" in
22593 # Assume -lc should be added
22594 archive_cmds_need_lc_F77=yes
22596 if test "$enable_shared" = yes && test "$GCC" = yes; then
22597 case $archive_cmds_F77 in
22599 # FIXME: we may have to deal with multi-command sequences.
22602 # Test whether the compiler implicitly links with -lc since on some
22603 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22604 # to ld, don't add -lc before -lgcc.
22605 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22606 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22608 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22611 (eval $ac_compile) 2>&5
22613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614 (exit $ac_status); } 2>conftest.err; then
22617 libobjs=conftest.$ac_objext
22619 wl=$lt_prog_compiler_wl_F77
22620 pic_flag=$lt_prog_compiler_pic_F77
22626 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22627 allow_undefined_flag_F77=
22628 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22629 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); }
22634 archive_cmds_need_lc_F77=no
22636 archive_cmds_need_lc_F77=yes
22638 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22640 cat conftest.err 1>&5
22643 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22644 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22651 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22652 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22653 library_names_spec=
22654 libname_spec='lib$name'
22658 postuninstall_cmds=
22662 shlibpath_overrides_runpath=unknown
22664 dynamic_linker="$host_os ld.so"
22665 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22666 if test "$GCC" = yes; then
22667 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22668 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22669 # if the path contains ";" then we assume it to be the separator
22670 # otherwise default to the standard path separator (i.e. ":") - it is
22671 # assumed that no part of a normal pathname contains ";" but that should
22672 # okay in the real world where ";" in dirpaths is itself problematic.
22673 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22675 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22678 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22680 need_lib_prefix=unknown
22681 hardcode_into_libs=no
22683 # when you set need_version to no, make sure it does not cause -set_version
22684 # flags to be left without arguments
22685 need_version=unknown
22690 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22691 shlibpath_var=LIBPATH
22693 # AIX 3 has no versioning support, so we append a major version to the name.
22694 soname_spec='${libname}${release}${shared_ext}$major'
22701 hardcode_into_libs=yes
22702 if test "$host_cpu" = ia64; then
22703 # AIX 5 supports IA64
22704 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22705 shlibpath_var=LD_LIBRARY_PATH
22707 # With GCC up to 2.95.x, collect2 would create an import file
22708 # for dependence libraries. The import file would start with
22709 # the line `#! .'. This would cause the generated library to
22710 # depend on `.', always an invalid library. This was fixed in
22711 # development snapshots of GCC prior to 3.0.
22713 aix4 | aix4.[01] | aix4.[01].*)
22714 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22716 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22719 can_build_shared=no
22723 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22724 # soname into executable. Probably we can add versioning support to
22725 # collect2, so additional links can be useful in future.
22726 if test "$aix_use_runtimelinking" = yes; then
22727 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22728 # instead of lib<name>.a to let people know that these are not
22729 # typical AIX shared libraries.
22730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22732 # We preserve .a as extension for shared libraries through AIX4.2
22733 # and later when we are not doing run time linking.
22734 library_names_spec='${libname}${release}.a $libname.a'
22735 soname_spec='${libname}${release}${shared_ext}$major'
22737 shlibpath_var=LIBPATH
22742 library_names_spec='$libname.ixlibrary $libname.a'
22743 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22744 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'
22748 library_names_spec='${libname}${shared_ext}'
22749 dynamic_linker="$host_os ld.so"
22750 shlibpath_var=LIBRARY_PATH
22756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22757 soname_spec='${libname}${release}${shared_ext}$major'
22758 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22759 shlibpath_var=LD_LIBRARY_PATH
22760 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22761 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22762 # the default ld.so.conf also contains /usr/contrib/lib and
22763 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22764 # libtool to hard-code these into programs
22767 cygwin* | mingw* | pw32*)
22768 version_type=windows
22773 case $GCC,$host_os in
22774 yes,cygwin* | yes,mingw* | yes,pw32*)
22775 library_names_spec='$libname.dll.a'
22776 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22777 postinstall_cmds='base_file=`basename \${file}`~
22778 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22779 dldir=$destdir/`dirname \$dlpath`~
22780 test -d \$dldir || mkdir -p \$dldir~
22781 $install_prog $dir/$dlname \$dldir/$dlname~
22782 chmod a+x \$dldir/$dlname'
22783 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22784 dlpath=$dir/\$dldll~
22786 shlibpath_overrides_runpath=yes
22790 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22791 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22792 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22795 # MinGW DLLs use traditional 'lib' prefix
22796 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22797 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22798 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22799 # It is most probably a Windows format PATH printed by
22800 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22801 # path with ; separators, and with drive letters. We can handle the
22802 # drive letters (cygwin fileutils understands them), so leave them,
22803 # especially as we might pass files found there to a mingw objdump,
22804 # which wouldn't understand a cygwinified path. Ahh.
22805 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22807 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22811 # pw32 DLLs use 'pw' prefix rather than 'lib'
22812 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22818 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22821 dynamic_linker='Win32 ld.exe'
22822 # FIXME: first we should search . and the directory the executable is in
22826 darwin* | rhapsody*)
22827 dynamic_linker="$host_os dyld"
22828 version_type=darwin
22831 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22832 soname_spec='${libname}${release}${major}$shared_ext'
22833 shlibpath_overrides_runpath=yes
22834 shlibpath_var=DYLD_LIBRARY_PATH
22835 shrext_cmds='.dylib'
22836 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22837 if test "$GCC" = yes; then
22838 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"`
22840 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22842 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22850 soname_spec='${libname}${release}${shared_ext}$major'
22851 shlibpath_var=LD_LIBRARY_PATH
22862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22863 soname_spec='${libname}${release}${shared_ext}$major'
22864 shlibpath_var=LD_LIBRARY_PATH
22865 shlibpath_overrides_runpath=no
22866 hardcode_into_libs=yes
22867 dynamic_linker='GNU ld.so'
22870 freebsd* | dragonfly*)
22871 # DragonFly does not have aout. When/if they implement a new
22872 # versioning mechanism, adjust this.
22873 if test -x /usr/bin/objformat; then
22874 objformat=`/usr/bin/objformat`
22877 freebsd[123]*) objformat=aout ;;
22878 *) objformat=elf ;;
22881 version_type=freebsd-$objformat
22882 case $version_type in
22884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22889 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22893 shlibpath_var=LD_LIBRARY_PATH
22896 shlibpath_overrides_runpath=yes
22898 freebsd3.[01]* | freebsdelf3.[01]*)
22899 shlibpath_overrides_runpath=yes
22900 hardcode_into_libs=yes
22902 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22903 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22904 shlibpath_overrides_runpath=no
22905 hardcode_into_libs=yes
22907 freebsd*) # from 4.6 on
22908 shlibpath_overrides_runpath=yes
22909 hardcode_into_libs=yes
22918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22919 soname_spec='${libname}${release}${shared_ext}$major'
22920 shlibpath_var=LD_LIBRARY_PATH
22921 hardcode_into_libs=yes
22924 hpux9* | hpux10* | hpux11*)
22925 # Give a soname corresponding to the major version so that dld.sl refuses to
22926 # link against other versions.
22933 hardcode_into_libs=yes
22934 dynamic_linker="$host_os dld.so"
22935 shlibpath_var=LD_LIBRARY_PATH
22936 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22938 soname_spec='${libname}${release}${shared_ext}$major'
22939 if test "X$HPUX_IA64_MODE" = X32; then
22940 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22942 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22944 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22948 hardcode_into_libs=yes
22949 dynamic_linker="$host_os dld.sl"
22950 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22953 soname_spec='${libname}${release}${shared_ext}$major'
22954 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22955 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22959 dynamic_linker="$host_os dld.sl"
22960 shlibpath_var=SHLIB_PATH
22961 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22963 soname_spec='${libname}${release}${shared_ext}$major'
22966 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22967 postinstall_cmds='chmod 555 $lib'
22974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22975 soname_spec='${libname}${release}${shared_ext}$major'
22976 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22977 shlibpath_var=LD_LIBRARY_PATH
22978 shlibpath_overrides_runpath=no
22979 hardcode_into_libs=yes
22982 irix5* | irix6* | nonstopux*)
22984 nonstopux*) version_type=nonstopux ;;
22986 if test "$lt_cv_prog_gnu_ld" = yes; then
22994 soname_spec='${libname}${release}${shared_ext}$major'
22995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22997 irix5* | nonstopux*)
22998 libsuff= shlibsuff=
23001 case $LD in # libtool.m4 will add one of these switches to LD
23002 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23003 libsuff= shlibsuff= libmagic=32-bit;;
23004 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23005 libsuff=32 shlibsuff=N32 libmagic=N32;;
23006 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23007 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23008 *) libsuff= shlibsuff= libmagic=never-match;;
23012 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23013 shlibpath_overrides_runpath=no
23014 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23015 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23016 hardcode_into_libs=yes
23019 # No shared lib support for Linux oldld, aout, or coff.
23020 linux*oldld* | linux*aout* | linux*coff*)
23024 # This must be Linux ELF.
23029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23030 soname_spec='${libname}${release}${shared_ext}$major'
23031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23032 shlibpath_var=LD_LIBRARY_PATH
23033 shlibpath_overrides_runpath=no
23034 # This implies no fast_install, which is unacceptable.
23035 # Some rework will be needed to allow for fast_install
23036 # before this can be enabled.
23037 hardcode_into_libs=yes
23039 # Append ld.so.conf contents to the search path
23040 if test -f /etc/ld.so.conf; then
23041 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' ' '`
23042 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23045 # We used to test for /lib/ld.so.1 and disable shared libraries on
23046 # powerpc, because MkLinux only supported shared libraries with the
23047 # GNU dynamic linker. Since this was broken with cross compilers,
23048 # most powerpc-linux boxes support dynamic linking these days and
23049 # people can always --disable-shared, the test was removed, and we
23050 # assume the GNU/Linux dynamic linker is in use.
23051 dynamic_linker='GNU/Linux ld.so'
23058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23059 soname_spec='${libname}${release}${shared_ext}$major'
23060 shlibpath_var=LD_LIBRARY_PATH
23061 shlibpath_overrides_runpath=no
23062 hardcode_into_libs=yes
23063 dynamic_linker='GNU ld.so'
23070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23073 dynamic_linker='NetBSD (a.out) ld.so'
23075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23076 soname_spec='${libname}${release}${shared_ext}$major'
23077 dynamic_linker='NetBSD ld.elf_so'
23079 shlibpath_var=LD_LIBRARY_PATH
23080 shlibpath_overrides_runpath=yes
23081 hardcode_into_libs=yes
23086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23087 shlibpath_var=LD_LIBRARY_PATH
23088 shlibpath_overrides_runpath=yes
23095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23096 soname_spec='${libname}${release}${shared_ext}$major'
23097 shlibpath_var=LD_LIBRARY_PATH
23098 shlibpath_overrides_runpath=yes
23103 sys_lib_dlsearch_path_spec="/usr/lib"
23105 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23107 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23108 *) need_version=no ;;
23110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23112 shlibpath_var=LD_LIBRARY_PATH
23113 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23115 openbsd2.[89] | openbsd2.[89].*)
23116 shlibpath_overrides_runpath=no
23119 shlibpath_overrides_runpath=yes
23123 shlibpath_overrides_runpath=yes
23128 libname_spec='$name'
23131 library_names_spec='$libname${shared_ext} $libname.a'
23132 dynamic_linker='OS/2 ld.exe'
23133 shlibpath_var=LIBPATH
23136 osf3* | osf4* | osf5*)
23140 soname_spec='${libname}${release}${shared_ext}$major'
23141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23142 shlibpath_var=LD_LIBRARY_PATH
23143 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23144 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23152 soname_spec='${libname}${release}${shared_ext}$major'
23153 shlibpath_var=LD_LIBRARY_PATH
23154 shlibpath_overrides_runpath=yes
23155 hardcode_into_libs=yes
23156 # ldd complains unless libraries are executable
23157 postinstall_cmds='chmod +x $lib'
23162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23163 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23164 shlibpath_var=LD_LIBRARY_PATH
23165 shlibpath_overrides_runpath=yes
23166 if test "$with_gnu_ld" = yes; then
23174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23175 soname_spec='${libname}${release}${shared_ext}$major'
23176 shlibpath_var=LD_LIBRARY_PATH
23177 case $host_vendor in
23179 shlibpath_overrides_runpath=no
23181 export_dynamic_flag_spec='${wl}-Blargedynsym'
23182 runpath_var=LD_RUN_PATH
23190 shlibpath_overrides_runpath=no
23191 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23197 if test -d /usr/nec ;then
23199 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23200 soname_spec='$libname${shared_ext}.$major'
23201 shlibpath_var=LD_LIBRARY_PATH
23205 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23206 version_type=freebsd-elf
23209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23210 soname_spec='${libname}${release}${shared_ext}$major'
23211 shlibpath_var=LD_LIBRARY_PATH
23212 hardcode_into_libs=yes
23213 if test "$with_gnu_ld" = yes; then
23214 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23215 shlibpath_overrides_runpath=no
23217 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23218 shlibpath_overrides_runpath=yes
23221 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23225 sys_lib_dlsearch_path_spec='/usr/lib'
23230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23231 soname_spec='${libname}${release}${shared_ext}$major'
23232 shlibpath_var=LD_LIBRARY_PATH
23239 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23240 echo "${ECHO_T}$dynamic_linker" >&6; }
23241 test "$dynamic_linker" = no && can_build_shared=no
23243 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23244 if test "$GCC" = yes; then
23245 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23248 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23249 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23250 hardcode_action_F77=
23251 if test -n "$hardcode_libdir_flag_spec_F77" || \
23252 test -n "$runpath_var_F77" || \
23253 test "X$hardcode_automatic_F77" = "Xyes" ; then
23255 # We can hardcode non-existant directories.
23256 if test "$hardcode_direct_F77" != no &&
23257 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23258 # have to relink, otherwise we might link with an installed library
23259 # when we should be linking with a yet-to-be-installed one
23260 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23261 test "$hardcode_minus_L_F77" != no; then
23262 # Linking always hardcodes the temporary library directory.
23263 hardcode_action_F77=relink
23265 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23266 hardcode_action_F77=immediate
23269 # We cannot hardcode anything, or else we can only hardcode existing
23271 hardcode_action_F77=unsupported
23273 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23274 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23276 if test "$hardcode_action_F77" = relink; then
23277 # Fast installation is not supported
23278 enable_fast_install=no
23279 elif test "$shlibpath_overrides_runpath" = yes ||
23280 test "$enable_shared" = no; then
23281 # Fast installation is not necessary
23282 enable_fast_install=needless
23286 # The else clause should only fire when bootstrapping the
23287 # libtool distribution, otherwise you forgot to ship ltmain.sh
23288 # with your package, and you will get complaints that there are
23289 # no rules to generate ltmain.sh.
23290 if test -f "$ltmain"; then
23291 # See if we are running on zsh, and set the options which allow our commands through
23292 # without removal of \ escapes.
23293 if test -n "${ZSH_VERSION+set}" ; then
23294 setopt NO_GLOB_SUBST
23296 # Now quote all the things that may contain metacharacters while being
23297 # careful not to overquote the AC_SUBSTed values. We take copies of the
23298 # variables and quote the copies for generation of the libtool script.
23299 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23301 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23302 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23303 deplibs_check_method reload_flag reload_cmds need_locks \
23304 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23305 lt_cv_sys_global_symbol_to_c_name_address \
23306 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23307 old_postinstall_cmds old_postuninstall_cmds \
23311 lt_prog_compiler_wl_F77 \
23312 lt_prog_compiler_pic_F77 \
23313 lt_prog_compiler_static_F77 \
23314 lt_prog_compiler_no_builtin_flag_F77 \
23315 export_dynamic_flag_spec_F77 \
23316 thread_safe_flag_spec_F77 \
23317 whole_archive_flag_spec_F77 \
23318 enable_shared_with_static_runtimes_F77 \
23319 old_archive_cmds_F77 \
23320 old_archive_from_new_cmds_F77 \
23321 predep_objects_F77 \
23322 postdep_objects_F77 \
23325 compiler_lib_search_path_F77 \
23327 archive_expsym_cmds_F77 \
23328 postinstall_cmds_F77 \
23329 postuninstall_cmds_F77 \
23330 old_archive_from_expsyms_cmds_F77 \
23331 allow_undefined_flag_F77 \
23332 no_undefined_flag_F77 \
23333 export_symbols_cmds_F77 \
23334 hardcode_libdir_flag_spec_F77 \
23335 hardcode_libdir_flag_spec_ld_F77 \
23336 hardcode_libdir_separator_F77 \
23337 hardcode_automatic_F77 \
23339 module_expsym_cmds_F77 \
23340 lt_cv_prog_compiler_c_o_F77 \
23341 exclude_expsyms_F77 \
23342 include_expsyms_F77; do
23345 old_archive_cmds_F77 | \
23346 old_archive_from_new_cmds_F77 | \
23347 archive_cmds_F77 | \
23348 archive_expsym_cmds_F77 | \
23349 module_cmds_F77 | \
23350 module_expsym_cmds_F77 | \
23351 old_archive_from_expsyms_cmds_F77 | \
23352 export_symbols_cmds_F77 | \
23353 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23354 postinstall_cmds | postuninstall_cmds | \
23355 old_postinstall_cmds | old_postuninstall_cmds | \
23356 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23357 # Double-quote double-evaled strings.
23358 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23361 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23367 *'\$0 --fallback-echo"')
23368 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23374 cat <<__EOF__ >> "$cfgfile"
23375 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23377 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23379 # Shell to use when invoking shell scripts.
23382 # Whether or not to build shared libraries.
23383 build_libtool_libs=$enable_shared
23385 # Whether or not to build static libraries.
23386 build_old_libs=$enable_static
23388 # Whether or not to add -lc for building shared libraries.
23389 build_libtool_need_lc=$archive_cmds_need_lc_F77
23391 # Whether or not to disallow shared libs when runtime libs are static
23392 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23394 # Whether or not to optimize for fast installation.
23395 fast_install=$enable_fast_install
23398 host_alias=$host_alias
23402 # The build system.
23403 build_alias=$build_alias
23407 # An echo program that does not interpret backslashes.
23412 AR_FLAGS=$lt_AR_FLAGS
23417 # LTCC compiler flags.
23418 LTCFLAGS=$lt_LTCFLAGS
23420 # A language-specific compiler.
23421 CC=$lt_compiler_F77
23423 # Is the compiler the GNU C compiler?
23429 # The linker used to build libraries.
23432 # Whether we need hard or soft links.
23435 # A BSD-compatible nm program.
23438 # A symbol stripping program
23441 # Used to examine libraries when file_magic_cmd begins "file"
23442 MAGIC_CMD=$MAGIC_CMD
23444 # Used on cygwin: DLL creation program.
23447 # Used on cygwin: object dumper.
23450 # Used on cygwin: assembler.
23453 # The name of the directory that contains temporary libtool files.
23456 # How to create reloadable object files.
23457 reload_flag=$lt_reload_flag
23458 reload_cmds=$lt_reload_cmds
23460 # How to pass a linker flag through the compiler.
23461 wl=$lt_lt_prog_compiler_wl_F77
23463 # Object file suffix (normally "o").
23464 objext="$ac_objext"
23466 # Old archive suffix (normally "a").
23469 # Shared library suffix (normally ".so").
23470 shrext_cmds='$shrext_cmds'
23472 # Executable file suffix (normally "").
23475 # Additional compiler flags for building library objects.
23476 pic_flag=$lt_lt_prog_compiler_pic_F77
23479 # What is the maximum length of a command?
23480 max_cmd_len=$lt_cv_sys_max_cmd_len
23482 # Does compiler simultaneously support -c and -o options?
23483 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23485 # Must we lock files when doing compilation?
23486 need_locks=$lt_need_locks
23488 # Do we need the lib prefix for modules?
23489 need_lib_prefix=$need_lib_prefix
23491 # Do we need a version for libraries?
23492 need_version=$need_version
23494 # Whether dlopen is supported.
23495 dlopen_support=$enable_dlopen
23497 # Whether dlopen of programs is supported.
23498 dlopen_self=$enable_dlopen_self
23500 # Whether dlopen of statically linked programs is supported.
23501 dlopen_self_static=$enable_dlopen_self_static
23503 # Compiler flag to prevent dynamic linking.
23504 link_static_flag=$lt_lt_prog_compiler_static_F77
23506 # Compiler flag to turn off builtin functions.
23507 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23509 # Compiler flag to allow reflexive dlopens.
23510 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23512 # Compiler flag to generate shared objects directly from archives.
23513 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23515 # Compiler flag to generate thread-safe objects.
23516 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23518 # Library versioning type.
23519 version_type=$version_type
23521 # Format of library name prefix.
23522 libname_spec=$lt_libname_spec
23524 # List of archive names. First name is the real one, the rest are links.
23525 # The last name is the one that the linker finds with -lNAME.
23526 library_names_spec=$lt_library_names_spec
23528 # The coded name of the library, if different from the real name.
23529 soname_spec=$lt_soname_spec
23531 # Commands used to build and install an old-style archive.
23533 old_archive_cmds=$lt_old_archive_cmds_F77
23534 old_postinstall_cmds=$lt_old_postinstall_cmds
23535 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23537 # Create an old-style archive from a shared archive.
23538 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23540 # Create a temporary old-style archive to link instead of a shared archive.
23541 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23543 # Commands used to build and install a shared archive.
23544 archive_cmds=$lt_archive_cmds_F77
23545 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23546 postinstall_cmds=$lt_postinstall_cmds
23547 postuninstall_cmds=$lt_postuninstall_cmds
23549 # Commands used to build a loadable module (assumed same as above if empty)
23550 module_cmds=$lt_module_cmds_F77
23551 module_expsym_cmds=$lt_module_expsym_cmds_F77
23553 # Commands to strip libraries.
23554 old_striplib=$lt_old_striplib
23555 striplib=$lt_striplib
23557 # Dependencies to place before the objects being linked to create a
23559 predep_objects=$lt_predep_objects_F77
23561 # Dependencies to place after the objects being linked to create a
23563 postdep_objects=$lt_postdep_objects_F77
23565 # Dependencies to place before the objects being linked to create a
23567 predeps=$lt_predeps_F77
23569 # Dependencies to place after the objects being linked to create a
23571 postdeps=$lt_postdeps_F77
23573 # The library search path used internally by the compiler when linking
23574 # a shared library.
23575 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23577 # Method to check whether dependent libraries are shared objects.
23578 deplibs_check_method=$lt_deplibs_check_method
23580 # Command to use when deplibs_check_method == file_magic.
23581 file_magic_cmd=$lt_file_magic_cmd
23583 # Flag that allows shared libraries with undefined symbols to be built.
23584 allow_undefined_flag=$lt_allow_undefined_flag_F77
23586 # Flag that forces no undefined symbols.
23587 no_undefined_flag=$lt_no_undefined_flag_F77
23589 # Commands used to finish a libtool library installation in a directory.
23590 finish_cmds=$lt_finish_cmds
23592 # Same as above, but a single script fragment to be evaled but not shown.
23593 finish_eval=$lt_finish_eval
23595 # Take the output of nm and produce a listing of raw symbols and C names.
23596 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23598 # Transform the output of nm in a proper C declaration
23599 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23601 # Transform the output of nm in a C name address pair
23602 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23604 # This is the shared library runtime path variable.
23605 runpath_var=$runpath_var
23607 # This is the shared library path variable.
23608 shlibpath_var=$shlibpath_var
23610 # Is shlibpath searched before the hard-coded library search path?
23611 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23613 # How to hardcode a shared library path into an executable.
23614 hardcode_action=$hardcode_action_F77
23616 # Whether we should hardcode library paths into libraries.
23617 hardcode_into_libs=$hardcode_into_libs
23619 # Flag to hardcode \$libdir into a binary during linking.
23620 # This must work even if \$libdir does not exist.
23621 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23623 # If ld is used when linking, flag to hardcode \$libdir into
23624 # a binary during linking. This must work even if \$libdir does
23626 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23628 # Whether we need a single -rpath flag with a separated argument.
23629 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23631 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23632 # resulting binary.
23633 hardcode_direct=$hardcode_direct_F77
23635 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23636 # resulting binary.
23637 hardcode_minus_L=$hardcode_minus_L_F77
23639 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23640 # the resulting binary.
23641 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23643 # Set to yes if building a shared library automatically hardcodes DIR into the library
23644 # and all subsequent libraries and executables linked against it.
23645 hardcode_automatic=$hardcode_automatic_F77
23647 # Variables whose values should be saved in libtool wrapper scripts and
23648 # restored at relink time.
23649 variables_saved_for_relink="$variables_saved_for_relink"
23651 # Whether libtool must link a program against all its dependency libraries.
23652 link_all_deplibs=$link_all_deplibs_F77
23654 # Compile-time system search path for libraries
23655 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23657 # Run-time system search path for libraries
23658 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23660 # Fix the shell variable \$srcfile for the compiler.
23661 fix_srcfile_path="$fix_srcfile_path_F77"
23663 # Set to yes if exported symbols are required.
23664 always_export_symbols=$always_export_symbols_F77
23666 # The commands to list exported symbols.
23667 export_symbols_cmds=$lt_export_symbols_cmds_F77
23669 # The commands to extract the exported symbol list from a shared archive.
23670 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23672 # Symbols that should not be listed in the preloaded symbols.
23673 exclude_expsyms=$lt_exclude_expsyms_F77
23675 # Symbols that must always be exported.
23676 include_expsyms=$lt_include_expsyms_F77
23678 # ### END LIBTOOL TAG CONFIG: $tagname
23684 # If there is no Makefile yet, we rely on a make rule to execute
23685 # `config.status --recheck' to rerun these tests and create the
23686 # libtool script then.
23687 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23688 if test -f "$ltmain_in"; then
23689 test -f Makefile && make "$ltmain"
23695 ac_cpp='$CPP $CPPFLAGS'
23696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23708 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23710 ac_cpp='$CPP $CPPFLAGS'
23711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23716 # Source file extension for Java test sources.
23719 # Object file extension for compiled Java test sources.
23723 # Code to be used in simple compile tests
23724 lt_simple_compile_test_code="class foo {}\n"
23726 # Code to be used in simple link tests
23727 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23729 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23731 # If no C compiler was specified, use CC.
23734 # If no C compiler flags were specified, use CFLAGS.
23735 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23737 # Allow CC to be a program name with arguments.
23741 # save warnings/boilerplate of simple test code
23742 ac_outfile=conftest.$ac_objext
23743 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23744 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23745 _lt_compiler_boilerplate=`cat conftest.err`
23748 ac_outfile=conftest.$ac_objext
23749 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23750 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23751 _lt_linker_boilerplate=`cat conftest.err`
23755 # Allow CC to be a program name with arguments.
23760 for cc_temp in $compiler""; do
23762 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23763 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23768 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23771 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23772 archive_cmds_need_lc_GCJ=no
23774 old_archive_cmds_GCJ=$old_archive_cmds
23777 lt_prog_compiler_no_builtin_flag_GCJ=
23779 if test "$GCC" = yes; then
23780 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23783 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23784 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23785 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23786 echo $ECHO_N "(cached) $ECHO_C" >&6
23788 lt_cv_prog_compiler_rtti_exceptions=no
23789 ac_outfile=conftest.$ac_objext
23790 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23791 lt_compiler_flag="-fno-rtti -fno-exceptions"
23792 # Insert the option either (1) after the last *FLAGS variable, or
23793 # (2) before a word containing "conftest.", or (3) at the end.
23794 # Note that $ac_compile itself does not contain backslashes and begins
23795 # with a dollar sign (not a hyphen), so the echo should work correctly.
23796 # The option is referenced via a variable to avoid confusing sed.
23797 lt_compile=`echo "$ac_compile" | $SED \
23798 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23800 -e 's:$: $lt_compiler_flag:'`
23801 (eval echo "\"\$as_me:23801: $lt_compile\"" >&5)
23802 (eval "$lt_compile" 2>conftest.err)
23804 cat conftest.err >&5
23805 echo "$as_me:23805: \$? = $ac_status" >&5
23806 if (exit $ac_status) && test -s "$ac_outfile"; then
23807 # The compiler can only warn and ignore the option if not recognized
23808 # So say no if there are warnings other than the usual output.
23809 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23810 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23811 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23812 lt_cv_prog_compiler_rtti_exceptions=yes
23818 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23819 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23821 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23822 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23829 lt_prog_compiler_wl_GCJ=
23830 lt_prog_compiler_pic_GCJ=
23831 lt_prog_compiler_static_GCJ=
23833 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23834 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23836 if test "$GCC" = yes; then
23837 lt_prog_compiler_wl_GCJ='-Wl,'
23838 lt_prog_compiler_static_GCJ='-static'
23842 # All AIX code is PIC.
23843 if test "$host_cpu" = ia64; then
23844 # AIX 5 now supports IA64 processor
23845 lt_prog_compiler_static_GCJ='-Bstatic'
23850 # FIXME: we need at least 68020 code to build shared libraries, but
23851 # adding the `-m68020' flag to GCC prevents building anything better,
23853 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23856 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23857 # PIC is the default for these OSes.
23860 mingw* | pw32* | os2*)
23861 # This hack is so that the source file can tell whether it is being
23862 # built for inclusion in a dll (and should export symbols for example).
23863 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23866 darwin* | rhapsody*)
23867 # PIC is the default on this platform
23868 # Common symbols not allowed in MH_DYLIB files
23869 lt_prog_compiler_pic_GCJ='-fno-common'
23873 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23874 # Instead, we relocate shared libraries at runtime.
23878 # Just because we use GCC doesn't mean we suddenly get shared libraries
23879 # on systems that don't support them.
23880 lt_prog_compiler_can_build_shared_GCJ=no
23885 if test -d /usr/nec; then
23886 lt_prog_compiler_pic_GCJ=-Kconform_pic
23891 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23892 # not for PA HP-UX.
23898 lt_prog_compiler_pic_GCJ='-fPIC'
23904 lt_prog_compiler_pic_GCJ='-fPIC'
23908 # PORTME Check for flag to pass linker flags through the system compiler.
23911 lt_prog_compiler_wl_GCJ='-Wl,'
23912 if test "$host_cpu" = ia64; then
23913 # AIX 5 now supports IA64 processor
23914 lt_prog_compiler_static_GCJ='-Bstatic'
23916 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23920 # PIC is the default on this platform
23921 # Common symbols not allowed in MH_DYLIB files
23922 case $cc_basename in
23924 lt_prog_compiler_pic_GCJ='-qnocommon'
23925 lt_prog_compiler_wl_GCJ='-Wl,'
23930 mingw* | pw32* | os2*)
23931 # This hack is so that the source file can tell whether it is being
23932 # built for inclusion in a dll (and should export symbols for example).
23933 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23936 hpux9* | hpux10* | hpux11*)
23937 lt_prog_compiler_wl_GCJ='-Wl,'
23938 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23939 # not for PA HP-UX.
23945 lt_prog_compiler_pic_GCJ='+Z'
23948 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23949 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23952 irix5* | irix6* | nonstopux*)
23953 lt_prog_compiler_wl_GCJ='-Wl,'
23954 # PIC (with -KPIC) is the default.
23955 lt_prog_compiler_static_GCJ='-non_shared'
23959 lt_prog_compiler_pic_GCJ='-KPIC'
23960 lt_prog_compiler_static_GCJ='-Bstatic'
23964 case $cc_basename in
23966 lt_prog_compiler_wl_GCJ='-Wl,'
23967 lt_prog_compiler_pic_GCJ='-KPIC'
23968 lt_prog_compiler_static_GCJ='-static'
23970 pgcc* | pgf77* | pgf90* | pgf95*)
23971 # Portland Group compilers (*not* the Pentium gcc compiler,
23972 # which looks to be a dead project)
23973 lt_prog_compiler_wl_GCJ='-Wl,'
23974 lt_prog_compiler_pic_GCJ='-fpic'
23975 lt_prog_compiler_static_GCJ='-Bstatic'
23978 lt_prog_compiler_wl_GCJ='-Wl,'
23979 # All Alpha code is PIC.
23980 lt_prog_compiler_static_GCJ='-non_shared'
23985 osf3* | osf4* | osf5*)
23986 lt_prog_compiler_wl_GCJ='-Wl,'
23987 # All OSF/1 code is PIC.
23988 lt_prog_compiler_static_GCJ='-non_shared'
23992 lt_prog_compiler_pic_GCJ='-KPIC'
23993 lt_prog_compiler_static_GCJ='-Bstatic'
23994 case $cc_basename in
23995 f77* | f90* | f95*)
23996 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23998 lt_prog_compiler_wl_GCJ='-Wl,';;
24003 lt_prog_compiler_wl_GCJ='-Qoption ld '
24004 lt_prog_compiler_pic_GCJ='-PIC'
24005 lt_prog_compiler_static_GCJ='-Bstatic'
24008 sysv4 | sysv4.2uw2* | sysv4.3*)
24009 lt_prog_compiler_wl_GCJ='-Wl,'
24010 lt_prog_compiler_pic_GCJ='-KPIC'
24011 lt_prog_compiler_static_GCJ='-Bstatic'
24015 if test -d /usr/nec ;then
24016 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24017 lt_prog_compiler_static_GCJ='-Bstatic'
24021 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24022 lt_prog_compiler_wl_GCJ='-Wl,'
24023 lt_prog_compiler_pic_GCJ='-KPIC'
24024 lt_prog_compiler_static_GCJ='-Bstatic'
24028 lt_prog_compiler_wl_GCJ='-Wl,'
24029 lt_prog_compiler_can_build_shared_GCJ=no
24033 lt_prog_compiler_pic_GCJ='-pic'
24034 lt_prog_compiler_static_GCJ='-Bstatic'
24038 lt_prog_compiler_can_build_shared_GCJ=no
24043 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24044 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24047 # Check to make sure the PIC flag actually works.
24049 if test -n "$lt_prog_compiler_pic_GCJ"; then
24051 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24052 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24053 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24054 echo $ECHO_N "(cached) $ECHO_C" >&6
24056 lt_prog_compiler_pic_works_GCJ=no
24057 ac_outfile=conftest.$ac_objext
24058 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24059 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24060 # Insert the option either (1) after the last *FLAGS variable, or
24061 # (2) before a word containing "conftest.", or (3) at the end.
24062 # Note that $ac_compile itself does not contain backslashes and begins
24063 # with a dollar sign (not a hyphen), so the echo should work correctly.
24064 # The option is referenced via a variable to avoid confusing sed.
24065 lt_compile=`echo "$ac_compile" | $SED \
24066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24068 -e 's:$: $lt_compiler_flag:'`
24069 (eval echo "\"\$as_me:24069: $lt_compile\"" >&5)
24070 (eval "$lt_compile" 2>conftest.err)
24072 cat conftest.err >&5
24073 echo "$as_me:24073: \$? = $ac_status" >&5
24074 if (exit $ac_status) && test -s "$ac_outfile"; then
24075 # The compiler can only warn and ignore the option if not recognized
24076 # So say no if there are warnings other than the usual output.
24077 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24078 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24079 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24080 lt_prog_compiler_pic_works_GCJ=yes
24086 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24087 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24089 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24090 case $lt_prog_compiler_pic_GCJ in
24092 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24095 lt_prog_compiler_pic_GCJ=
24096 lt_prog_compiler_can_build_shared_GCJ=no
24101 # For platforms which do not support PIC, -DPIC is meaningless:
24103 lt_prog_compiler_pic_GCJ=
24106 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24111 # Check to make sure the static flag actually works.
24113 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24114 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24115 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24116 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24117 echo $ECHO_N "(cached) $ECHO_C" >&6
24119 lt_prog_compiler_static_works_GCJ=no
24120 save_LDFLAGS="$LDFLAGS"
24121 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24122 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24123 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24124 # The linker can only warn and ignore the option if not recognized
24125 # So say no if there are warnings
24126 if test -s conftest.err; then
24127 # Append any errors to the config.log.
24128 cat conftest.err 1>&5
24129 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24131 if diff conftest.exp conftest.er2 >/dev/null; then
24132 lt_prog_compiler_static_works_GCJ=yes
24135 lt_prog_compiler_static_works_GCJ=yes
24139 LDFLAGS="$save_LDFLAGS"
24142 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24143 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24145 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24148 lt_prog_compiler_static_GCJ=
24152 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24153 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24154 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24155 echo $ECHO_N "(cached) $ECHO_C" >&6
24157 lt_cv_prog_compiler_c_o_GCJ=no
24158 $rm -r conftest 2>/dev/null
24162 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24164 lt_compiler_flag="-o out/conftest2.$ac_objext"
24165 # Insert the option either (1) after the last *FLAGS variable, or
24166 # (2) before a word containing "conftest.", or (3) at the end.
24167 # Note that $ac_compile itself does not contain backslashes and begins
24168 # with a dollar sign (not a hyphen), so the echo should work correctly.
24169 lt_compile=`echo "$ac_compile" | $SED \
24170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24172 -e 's:$: $lt_compiler_flag:'`
24173 (eval echo "\"\$as_me:24173: $lt_compile\"" >&5)
24174 (eval "$lt_compile" 2>out/conftest.err)
24176 cat out/conftest.err >&5
24177 echo "$as_me:24177: \$? = $ac_status" >&5
24178 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24180 # The compiler can only warn and ignore the option if not recognized
24181 # So say no if there are warnings
24182 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24183 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24184 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24185 lt_cv_prog_compiler_c_o_GCJ=yes
24190 # SGI C++ compiler will create directory out/ii_files/ for
24191 # template instantiation
24192 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24193 $rm out/* && rmdir out
24199 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24200 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24203 hard_links="nottested"
24204 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24205 # do not overwrite the value of need_locks provided by the user
24206 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24207 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24210 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24212 ln conftest.a conftest.b 2>&5 || hard_links=no
24213 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24214 { echo "$as_me:$LINENO: result: $hard_links" >&5
24215 echo "${ECHO_T}$hard_links" >&6; }
24216 if test "$hard_links" = no; then
24217 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24218 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24225 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24226 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24229 allow_undefined_flag_GCJ=
24230 enable_shared_with_static_runtimes_GCJ=no
24232 archive_expsym_cmds_GCJ=
24233 old_archive_From_new_cmds_GCJ=
24234 old_archive_from_expsyms_cmds_GCJ=
24235 export_dynamic_flag_spec_GCJ=
24236 whole_archive_flag_spec_GCJ=
24237 thread_safe_flag_spec_GCJ=
24238 hardcode_libdir_flag_spec_GCJ=
24239 hardcode_libdir_flag_spec_ld_GCJ=
24240 hardcode_libdir_separator_GCJ=
24241 hardcode_direct_GCJ=no
24242 hardcode_minus_L_GCJ=no
24243 hardcode_shlibpath_var_GCJ=unsupported
24244 link_all_deplibs_GCJ=unknown
24245 hardcode_automatic_GCJ=no
24247 module_expsym_cmds_GCJ=
24248 always_export_symbols_GCJ=no
24249 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24250 # include_expsyms should be a list of space-separated symbols to be *always*
24251 # included in the symbol list
24252 include_expsyms_GCJ=
24253 # exclude_expsyms can be an extended regexp of symbols to exclude
24254 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24255 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24256 # as well as any symbol that contains `d'.
24257 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24258 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24259 # platforms (ab)use it in PIC code, but their linkers get confused if
24260 # the symbol is explicitly referenced. Since portable code cannot
24261 # rely on this symbol name, it's probably fine to never include it in
24262 # preloaded symbol tables.
24263 extract_expsyms_cmds=
24264 # Just being paranoid about ensuring that cc_basename is set.
24265 for cc_temp in $compiler""; do
24267 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24268 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24273 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24276 cygwin* | mingw* | pw32*)
24277 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24278 # When not using gcc, we currently assume that we are using
24279 # Microsoft Visual C++.
24280 if test "$GCC" != yes; then
24285 # we just hope/assume this is gcc and not c89 (= MSVC++)
24294 if test "$with_gnu_ld" = yes; then
24295 # If archive_cmds runs LD, not CC, wlarc should be empty
24298 # Set some defaults for GNU ld with shared library support. These
24299 # are reset later if shared libraries are not supported. Putting them
24300 # here allows them to be overridden if necessary.
24301 runpath_var=LD_RUN_PATH
24302 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24303 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24304 # ancient GNU ld didn't support --whole-archive et. al.
24305 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24306 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24308 whole_archive_flag_spec_GCJ=
24310 supports_anon_versioning=no
24311 case `$LD -v 2>/dev/null` in
24312 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24313 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24314 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24315 *\ 2.11.*) ;; # other 2.11 versions
24316 *) supports_anon_versioning=yes ;;
24319 # See if GNU ld supports shared libraries.
24321 aix3* | aix4* | aix5*)
24322 # On AIX/PPC, the GNU linker is very broken
24323 if test "$host_cpu" != ia64; then
24327 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24328 *** to be unable to reliably create shared libraries on AIX.
24329 *** Therefore, libtool is disabling shared libraries support. If you
24330 *** really care for shared libraries, you may want to modify your PATH
24331 *** so that a non-GNU linker is found, and then restart.
24338 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)'
24339 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24340 hardcode_minus_L_GCJ=yes
24342 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24343 # that the semantics of dynamic libraries on AmigaOS, at least up
24344 # to version 4, is to share data among multiple programs linked
24345 # with the same dynamic library. Since this doesn't match the
24346 # behavior of shared libraries on other platforms, we can't use
24352 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24353 allow_undefined_flag_GCJ=unsupported
24354 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24355 # support --undefined. This deserves some investigation. FIXME
24356 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24362 cygwin* | mingw* | pw32*)
24363 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24364 # as there is no search path for DLLs.
24365 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24366 allow_undefined_flag_GCJ=unsupported
24367 always_export_symbols_GCJ=no
24368 enable_shared_with_static_runtimes_GCJ=yes
24369 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24371 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24372 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24373 # If the export-symbols file already is a .def file (1st line
24374 # is EXPORTS), use it as is; otherwise, prepend...
24375 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24376 cp $export_symbols $output_objdir/$soname.def;
24378 echo EXPORTS > $output_objdir/$soname.def;
24379 cat $export_symbols >> $output_objdir/$soname.def;
24381 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24388 hardcode_direct_GCJ=no
24389 hardcode_shlibpath_var_GCJ=no
24390 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24391 export_dynamic_flag_spec_GCJ='${wl}-E'
24392 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24393 # Instead, shared libraries are loaded at an image base (0x10000000 by
24394 # default) and relocated if they conflict, which is a slow very memory
24395 # consuming and fragmenting process. To avoid this, we pick a random,
24396 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24397 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24398 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'
24399 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'
24403 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24405 case $cc_basename,$host_cpu in
24406 pgcc*) # Portland Group C compiler
24407 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'
24408 tmp_addflag=' $pic_flag'
24410 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24411 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'
24412 tmp_addflag=' $pic_flag -Mnomain' ;;
24413 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24414 tmp_addflag=' -i_dynamic' ;;
24415 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24416 tmp_addflag=' -i_dynamic -nofor_main' ;;
24417 ifc* | ifort*) # Intel Fortran compiler
24418 tmp_addflag=' -nofor_main' ;;
24420 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24422 if test $supports_anon_versioning = yes; then
24423 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24424 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24425 $echo "local: *; };" >> $output_objdir/$libname.ver~
24426 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24434 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24435 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24438 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24439 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24444 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24448 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24449 *** create shared libraries on Solaris systems. Therefore, libtool
24450 *** is disabling shared libraries support. We urge you to upgrade GNU
24451 *** binutils to release 2.9.1 or newer. Another option is to modify
24452 *** your PATH or compiler configuration so that the native linker is
24453 *** used, and then restart.
24456 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24457 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24458 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24464 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24465 case `$LD -v 2>&1` in
24466 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24470 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24471 *** reliably create shared libraries on SCO systems. Therefore, libtool
24472 *** is disabling shared libraries support. We urge you to upgrade GNU
24473 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24474 *** your PATH or compiler configuration so that the native linker is
24475 *** used, and then restart.
24480 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24481 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24482 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24483 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24492 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24494 hardcode_direct_GCJ=yes
24495 hardcode_shlibpath_var_GCJ=no
24499 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24500 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24501 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24508 if test "$ld_shlibs_GCJ" = no; then
24510 hardcode_libdir_flag_spec_GCJ=
24511 export_dynamic_flag_spec_GCJ=
24512 whole_archive_flag_spec_GCJ=
24515 # PORTME fill in a description of your system's linker (not GNU ld)
24518 allow_undefined_flag_GCJ=unsupported
24519 always_export_symbols_GCJ=yes
24520 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'
24521 # Note: this linker hardcodes the directories in LIBPATH if there
24522 # are no directories specified by -L.
24523 hardcode_minus_L_GCJ=yes
24524 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24525 # Neither direct hardcoding nor static linking is supported with a
24527 hardcode_direct_GCJ=unsupported
24532 if test "$host_cpu" = ia64; then
24533 # On IA64, the linker does run time linking by default, so we don't
24534 # have to do anything special.
24535 aix_use_runtimelinking=no
24536 exp_sym_flag='-Bexport'
24539 # If we're using GNU nm, then we don't want the "-C" option.
24540 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24541 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24542 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'
24544 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'
24546 aix_use_runtimelinking=no
24548 # Test if we are trying to use run time linking or normal
24549 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24550 # need to do runtime linking.
24551 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24552 for ld_flag in $LDFLAGS; do
24553 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24554 aix_use_runtimelinking=yes
24561 exp_sym_flag='-bexport'
24562 no_entry_flag='-bnoentry'
24565 # When large executables or shared objects are built, AIX ld can
24566 # have problems creating the table of contents. If linking a library
24567 # or program results in "error TOC overflow" add -mminimal-toc to
24568 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24569 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24571 archive_cmds_GCJ=''
24572 hardcode_direct_GCJ=yes
24573 hardcode_libdir_separator_GCJ=':'
24574 link_all_deplibs_GCJ=yes
24576 if test "$GCC" = yes; then
24577 case $host_os in aix4.[012]|aix4.[012].*)
24578 # We only want to do this on AIX 4.2 and lower, the check
24579 # below for broken collect2 doesn't work under 4.3+
24580 collect2name=`${CC} -print-prog-name=collect2`
24581 if test -f "$collect2name" && \
24582 strings "$collect2name" | grep resolve_lib_name >/dev/null
24584 # We have reworked collect2
24585 hardcode_direct_GCJ=yes
24587 # We have old collect2
24588 hardcode_direct_GCJ=unsupported
24589 # It fails to find uninstalled libraries when the uninstalled
24590 # path is not listed in the libpath. Setting hardcode_minus_L
24591 # to unsupported forces relinking
24592 hardcode_minus_L_GCJ=yes
24593 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24594 hardcode_libdir_separator_GCJ=
24598 shared_flag='-shared'
24599 if test "$aix_use_runtimelinking" = yes; then
24600 shared_flag="$shared_flag "'${wl}-G'
24604 if test "$host_cpu" = ia64; then
24605 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24606 # chokes on -Wl,-G. The following line is correct:
24609 if test "$aix_use_runtimelinking" = yes; then
24610 shared_flag='${wl}-G'
24612 shared_flag='${wl}-bM:SRE'
24617 # It seems that -bexpall does not export symbols beginning with
24618 # underscore (_), so it is better to generate a list of symbols to export.
24619 always_export_symbols_GCJ=yes
24620 if test "$aix_use_runtimelinking" = yes; then
24621 # Warning - without using the other runtime loading flags (-brtl),
24622 # -berok will link without error, but may produce a broken library.
24623 allow_undefined_flag_GCJ='-berok'
24624 # Determine the default libpath from the value encoded in an empty executable.
24625 cat >conftest.$ac_ext <<_ACEOF
24628 cat confdefs.h >>conftest.$ac_ext
24629 cat >>conftest.$ac_ext <<_ACEOF
24630 /* end confdefs.h. */
24640 rm -f conftest.$ac_objext conftest$ac_exeext
24641 if { (ac_try="$ac_link"
24642 case "(($ac_try" in
24643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24644 *) ac_try_echo=$ac_try;;
24646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24647 (eval "$ac_link") 2>conftest.er1
24649 grep -v '^ *+' conftest.er1 >conftest.err
24651 cat conftest.err >&5
24652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653 (exit $ac_status); } &&
24654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24655 { (case "(($ac_try" in
24656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24657 *) ac_try_echo=$ac_try;;
24659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24660 (eval "$ac_try") 2>&5
24662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663 (exit $ac_status); }; } &&
24664 { ac_try='test -s conftest$ac_exeext'
24665 { (case "(($ac_try" in
24666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24667 *) ac_try_echo=$ac_try;;
24669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24670 (eval "$ac_try") 2>&5
24672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673 (exit $ac_status); }; }; then
24675 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24677 # Check for a 64-bit object if we didn't find anything.
24678 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; }
24681 echo "$as_me: failed program was:" >&5
24682 sed 's/^/| /' conftest.$ac_ext >&5
24687 rm -f core conftest.err conftest.$ac_objext \
24688 conftest$ac_exeext conftest.$ac_ext
24689 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24691 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24692 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"
24694 if test "$host_cpu" = ia64; then
24695 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24696 allow_undefined_flag_GCJ="-z nodefs"
24697 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"
24699 # Determine the default libpath from the value encoded in an empty executable.
24700 cat >conftest.$ac_ext <<_ACEOF
24703 cat confdefs.h >>conftest.$ac_ext
24704 cat >>conftest.$ac_ext <<_ACEOF
24705 /* end confdefs.h. */
24715 rm -f conftest.$ac_objext conftest$ac_exeext
24716 if { (ac_try="$ac_link"
24717 case "(($ac_try" in
24718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24719 *) ac_try_echo=$ac_try;;
24721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24722 (eval "$ac_link") 2>conftest.er1
24724 grep -v '^ *+' conftest.er1 >conftest.err
24726 cat conftest.err >&5
24727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728 (exit $ac_status); } &&
24729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24730 { (case "(($ac_try" in
24731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24732 *) ac_try_echo=$ac_try;;
24734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24735 (eval "$ac_try") 2>&5
24737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738 (exit $ac_status); }; } &&
24739 { ac_try='test -s conftest$ac_exeext'
24740 { (case "(($ac_try" in
24741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24742 *) ac_try_echo=$ac_try;;
24744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24745 (eval "$ac_try") 2>&5
24747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748 (exit $ac_status); }; }; then
24750 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24752 # Check for a 64-bit object if we didn't find anything.
24753 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; }
24756 echo "$as_me: failed program was:" >&5
24757 sed 's/^/| /' conftest.$ac_ext >&5
24762 rm -f core conftest.err conftest.$ac_objext \
24763 conftest$ac_exeext conftest.$ac_ext
24764 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24766 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24767 # Warning - without using the other run time loading flags,
24768 # -berok will link without error, but may produce a broken library.
24769 no_undefined_flag_GCJ=' ${wl}-bernotok'
24770 allow_undefined_flag_GCJ=' ${wl}-berok'
24771 # Exported symbols can be pulled into shared objects from archives
24772 whole_archive_flag_spec_GCJ='$convenience'
24773 archive_cmds_need_lc_GCJ=yes
24774 # This is similar to how AIX traditionally builds its shared libraries.
24775 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'
24781 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)'
24782 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24783 hardcode_minus_L_GCJ=yes
24784 # see comment about different semantics on the GNU ld section
24789 export_dynamic_flag_spec_GCJ=-rdynamic
24792 cygwin* | mingw* | pw32*)
24793 # When not using gcc, we currently assume that we are using
24794 # Microsoft Visual C++.
24795 # hardcode_libdir_flag_spec is actually meaningless, as there is
24796 # no search path for DLLs.
24797 hardcode_libdir_flag_spec_GCJ=' '
24798 allow_undefined_flag_GCJ=unsupported
24799 # Tell ltmain to make .lib files, not .a files.
24801 # Tell ltmain to make .dll files, not .so files.
24803 # FIXME: Setting linknames here is a bad hack.
24804 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24805 # The linker will automatically build a .lib file if we build a DLL.
24806 old_archive_From_new_cmds_GCJ='true'
24807 # FIXME: Should let the user specify the lib program.
24808 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24809 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24810 enable_shared_with_static_runtimes_GCJ=yes
24813 darwin* | rhapsody*)
24815 rhapsody* | darwin1.[012])
24816 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24819 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24820 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24822 case ${MACOSX_DEPLOYMENT_TARGET} in
24824 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24827 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24833 archive_cmds_need_lc_GCJ=no
24834 hardcode_direct_GCJ=no
24835 hardcode_automatic_GCJ=yes
24836 hardcode_shlibpath_var_GCJ=unsupported
24837 whole_archive_flag_spec_GCJ=''
24838 link_all_deplibs_GCJ=yes
24839 if test "$GCC" = yes ; then
24840 output_verbose_link_cmd='echo'
24841 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24842 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24843 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24844 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}'
24845 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}'
24847 case $cc_basename in
24849 output_verbose_link_cmd='echo'
24850 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24851 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24852 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24853 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}'
24854 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}'
24864 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24865 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24866 hardcode_shlibpath_var_GCJ=no
24873 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24874 # support. Future versions do this automatically, but an explicit c++rt0.o
24875 # does not break anything, and helps significantly (at the cost of a little
24878 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24879 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24880 hardcode_direct_GCJ=yes
24881 hardcode_shlibpath_var_GCJ=no
24884 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24886 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24887 hardcode_direct_GCJ=yes
24888 hardcode_minus_L_GCJ=yes
24889 hardcode_shlibpath_var_GCJ=no
24892 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24893 freebsd* | kfreebsd*-gnu | dragonfly*)
24894 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24895 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24896 hardcode_direct_GCJ=yes
24897 hardcode_shlibpath_var_GCJ=no
24901 if test "$GCC" = yes; then
24902 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'
24904 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'
24906 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24907 hardcode_libdir_separator_GCJ=:
24908 hardcode_direct_GCJ=yes
24910 # hardcode_minus_L: Not really in the search PATH,
24911 # but as the default location of the library.
24912 hardcode_minus_L_GCJ=yes
24913 export_dynamic_flag_spec_GCJ='${wl}-E'
24917 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24918 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24920 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24922 if test "$with_gnu_ld" = no; then
24923 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24924 hardcode_libdir_separator_GCJ=:
24926 hardcode_direct_GCJ=yes
24927 export_dynamic_flag_spec_GCJ='${wl}-E'
24929 # hardcode_minus_L: Not really in the search PATH,
24930 # but as the default location of the library.
24931 hardcode_minus_L_GCJ=yes
24936 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24939 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24942 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24945 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24951 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24954 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24957 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24961 if test "$with_gnu_ld" = no; then
24962 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24963 hardcode_libdir_separator_GCJ=:
24967 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24968 hardcode_direct_GCJ=no
24969 hardcode_shlibpath_var_GCJ=no
24972 hardcode_direct_GCJ=yes
24973 export_dynamic_flag_spec_GCJ='${wl}-E'
24975 # hardcode_minus_L: Not really in the search PATH,
24976 # but as the default location of the library.
24977 hardcode_minus_L_GCJ=yes
24983 irix5* | irix6* | nonstopux*)
24984 if test "$GCC" = yes; then
24985 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'
24987 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'
24988 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24990 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24991 hardcode_libdir_separator_GCJ=:
24992 link_all_deplibs_GCJ=yes
24996 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24997 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24999 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25001 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25002 hardcode_direct_GCJ=yes
25003 hardcode_shlibpath_var_GCJ=no
25007 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25008 hardcode_direct_GCJ=yes
25009 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25010 hardcode_libdir_separator_GCJ=:
25011 hardcode_shlibpath_var_GCJ=no
25015 hardcode_direct_GCJ=yes
25016 hardcode_shlibpath_var_GCJ=no
25017 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25018 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25019 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25020 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25021 export_dynamic_flag_spec_GCJ='${wl}-E'
25024 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25025 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25026 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25029 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25030 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25037 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25038 hardcode_minus_L_GCJ=yes
25039 allow_undefined_flag_GCJ=unsupported
25040 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'
25041 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25045 if test "$GCC" = yes; then
25046 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25047 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'
25049 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25050 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'
25052 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25053 hardcode_libdir_separator_GCJ=:
25056 osf4* | osf5*) # as osf3* with the addition of -msym flag
25057 if test "$GCC" = yes; then
25058 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25059 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'
25060 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25062 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25063 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'
25064 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~
25065 $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'
25067 # Both c and cxx compiler support -rpath directly
25068 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25070 hardcode_libdir_separator_GCJ=:
25074 no_undefined_flag_GCJ=' -z text'
25075 if test "$GCC" = yes; then
25077 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25078 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25079 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25082 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25083 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25084 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25086 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25087 hardcode_shlibpath_var_GCJ=no
25089 solaris2.[0-5] | solaris2.[0-5].*) ;;
25091 # The compiler driver will combine linker options so we
25092 # cannot just pass the convience library names through
25093 # without $wl, iff we do not link with $LD.
25094 # Luckily, gcc supports the same syntax we need for Sun Studio.
25095 # Supported since Solaris 2.6 (maybe 2.5.1?)
25098 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25100 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' ;;
25103 link_all_deplibs_GCJ=yes
25107 if test "x$host_vendor" = xsequent; then
25108 # Use $CC to link under sequent, because it throws in some extra .o
25109 # files that make .init and .fini sections work.
25110 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25112 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25114 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25115 hardcode_direct_GCJ=yes
25116 hardcode_minus_L_GCJ=yes
25117 hardcode_shlibpath_var_GCJ=no
25121 case $host_vendor in
25123 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25124 hardcode_direct_GCJ=yes # is this really true???
25127 ## LD is ld it makes a PLAMLIB
25128 ## CC just makes a GrossModule.
25129 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25130 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25131 hardcode_direct_GCJ=no
25134 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25135 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25138 runpath_var='LD_RUN_PATH'
25139 hardcode_shlibpath_var_GCJ=no
25143 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25144 hardcode_shlibpath_var_GCJ=no
25145 export_dynamic_flag_spec_GCJ='-Bexport'
25149 if test -d /usr/nec; then
25150 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25151 hardcode_shlibpath_var_GCJ=no
25152 runpath_var=LD_RUN_PATH
25153 hardcode_runpath_var=yes
25158 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25159 no_undefined_flag_GCJ='${wl}-z,text'
25160 archive_cmds_need_lc_GCJ=no
25161 hardcode_shlibpath_var_GCJ=no
25162 runpath_var='LD_RUN_PATH'
25164 if test "$GCC" = yes; then
25165 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25166 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25168 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25169 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25173 sysv5* | sco3.2v5* | sco5v6*)
25174 # Note: We can NOT use -z defs as we might desire, because we do not
25175 # link with -lc, and that would cause any symbols used from libc to
25176 # always be unresolved, which means just about no library would
25177 # ever link correctly. If we're not using GNU ld we use -z text
25178 # though, which does catch some bad symbols but isn't as heavy-handed
25180 no_undefined_flag_GCJ='${wl}-z,text'
25181 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25182 archive_cmds_need_lc_GCJ=no
25183 hardcode_shlibpath_var_GCJ=no
25184 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25185 hardcode_libdir_separator_GCJ=':'
25186 link_all_deplibs_GCJ=yes
25187 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25188 runpath_var='LD_RUN_PATH'
25190 if test "$GCC" = yes; then
25191 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25192 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25194 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25195 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25200 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25201 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25202 hardcode_shlibpath_var_GCJ=no
25211 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25212 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25213 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25216 # Do we need to explicitly link libc?
25218 case "x$archive_cmds_need_lc_GCJ" in
25220 # Assume -lc should be added
25221 archive_cmds_need_lc_GCJ=yes
25223 if test "$enable_shared" = yes && test "$GCC" = yes; then
25224 case $archive_cmds_GCJ in
25226 # FIXME: we may have to deal with multi-command sequences.
25229 # Test whether the compiler implicitly links with -lc since on some
25230 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25231 # to ld, don't add -lc before -lgcc.
25232 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25233 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25235 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25238 (eval $ac_compile) 2>&5
25240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241 (exit $ac_status); } 2>conftest.err; then
25244 libobjs=conftest.$ac_objext
25246 wl=$lt_prog_compiler_wl_GCJ
25247 pic_flag=$lt_prog_compiler_pic_GCJ
25253 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25254 allow_undefined_flag_GCJ=
25255 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25256 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259 (exit $ac_status); }
25261 archive_cmds_need_lc_GCJ=no
25263 archive_cmds_need_lc_GCJ=yes
25265 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25267 cat conftest.err 1>&5
25270 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25271 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25278 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25279 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25280 library_names_spec=
25281 libname_spec='lib$name'
25285 postuninstall_cmds=
25289 shlibpath_overrides_runpath=unknown
25291 dynamic_linker="$host_os ld.so"
25292 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25293 if test "$GCC" = yes; then
25294 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25295 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25296 # if the path contains ";" then we assume it to be the separator
25297 # otherwise default to the standard path separator (i.e. ":") - it is
25298 # assumed that no part of a normal pathname contains ";" but that should
25299 # okay in the real world where ";" in dirpaths is itself problematic.
25300 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25302 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25305 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25307 need_lib_prefix=unknown
25308 hardcode_into_libs=no
25310 # when you set need_version to no, make sure it does not cause -set_version
25311 # flags to be left without arguments
25312 need_version=unknown
25317 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25318 shlibpath_var=LIBPATH
25320 # AIX 3 has no versioning support, so we append a major version to the name.
25321 soname_spec='${libname}${release}${shared_ext}$major'
25328 hardcode_into_libs=yes
25329 if test "$host_cpu" = ia64; then
25330 # AIX 5 supports IA64
25331 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25332 shlibpath_var=LD_LIBRARY_PATH
25334 # With GCC up to 2.95.x, collect2 would create an import file
25335 # for dependence libraries. The import file would start with
25336 # the line `#! .'. This would cause the generated library to
25337 # depend on `.', always an invalid library. This was fixed in
25338 # development snapshots of GCC prior to 3.0.
25340 aix4 | aix4.[01] | aix4.[01].*)
25341 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25343 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25346 can_build_shared=no
25350 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25351 # soname into executable. Probably we can add versioning support to
25352 # collect2, so additional links can be useful in future.
25353 if test "$aix_use_runtimelinking" = yes; then
25354 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25355 # instead of lib<name>.a to let people know that these are not
25356 # typical AIX shared libraries.
25357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25359 # We preserve .a as extension for shared libraries through AIX4.2
25360 # and later when we are not doing run time linking.
25361 library_names_spec='${libname}${release}.a $libname.a'
25362 soname_spec='${libname}${release}${shared_ext}$major'
25364 shlibpath_var=LIBPATH
25369 library_names_spec='$libname.ixlibrary $libname.a'
25370 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25371 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'
25375 library_names_spec='${libname}${shared_ext}'
25376 dynamic_linker="$host_os ld.so"
25377 shlibpath_var=LIBRARY_PATH
25383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25384 soname_spec='${libname}${release}${shared_ext}$major'
25385 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25386 shlibpath_var=LD_LIBRARY_PATH
25387 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25388 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25389 # the default ld.so.conf also contains /usr/contrib/lib and
25390 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25391 # libtool to hard-code these into programs
25394 cygwin* | mingw* | pw32*)
25395 version_type=windows
25400 case $GCC,$host_os in
25401 yes,cygwin* | yes,mingw* | yes,pw32*)
25402 library_names_spec='$libname.dll.a'
25403 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25404 postinstall_cmds='base_file=`basename \${file}`~
25405 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25406 dldir=$destdir/`dirname \$dlpath`~
25407 test -d \$dldir || mkdir -p \$dldir~
25408 $install_prog $dir/$dlname \$dldir/$dlname~
25409 chmod a+x \$dldir/$dlname'
25410 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25411 dlpath=$dir/\$dldll~
25413 shlibpath_overrides_runpath=yes
25417 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25418 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25419 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25422 # MinGW DLLs use traditional 'lib' prefix
25423 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25424 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25425 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25426 # It is most probably a Windows format PATH printed by
25427 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25428 # path with ; separators, and with drive letters. We can handle the
25429 # drive letters (cygwin fileutils understands them), so leave them,
25430 # especially as we might pass files found there to a mingw objdump,
25431 # which wouldn't understand a cygwinified path. Ahh.
25432 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25434 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25438 # pw32 DLLs use 'pw' prefix rather than 'lib'
25439 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25445 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25448 dynamic_linker='Win32 ld.exe'
25449 # FIXME: first we should search . and the directory the executable is in
25453 darwin* | rhapsody*)
25454 dynamic_linker="$host_os dyld"
25455 version_type=darwin
25458 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25459 soname_spec='${libname}${release}${major}$shared_ext'
25460 shlibpath_overrides_runpath=yes
25461 shlibpath_var=DYLD_LIBRARY_PATH
25462 shrext_cmds='.dylib'
25463 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25464 if test "$GCC" = yes; then
25465 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"`
25467 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25469 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25477 soname_spec='${libname}${release}${shared_ext}$major'
25478 shlibpath_var=LD_LIBRARY_PATH
25489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25490 soname_spec='${libname}${release}${shared_ext}$major'
25491 shlibpath_var=LD_LIBRARY_PATH
25492 shlibpath_overrides_runpath=no
25493 hardcode_into_libs=yes
25494 dynamic_linker='GNU ld.so'
25497 freebsd* | dragonfly*)
25498 # DragonFly does not have aout. When/if they implement a new
25499 # versioning mechanism, adjust this.
25500 if test -x /usr/bin/objformat; then
25501 objformat=`/usr/bin/objformat`
25504 freebsd[123]*) objformat=aout ;;
25505 *) objformat=elf ;;
25508 version_type=freebsd-$objformat
25509 case $version_type in
25511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25516 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25520 shlibpath_var=LD_LIBRARY_PATH
25523 shlibpath_overrides_runpath=yes
25525 freebsd3.[01]* | freebsdelf3.[01]*)
25526 shlibpath_overrides_runpath=yes
25527 hardcode_into_libs=yes
25529 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25530 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25531 shlibpath_overrides_runpath=no
25532 hardcode_into_libs=yes
25534 freebsd*) # from 4.6 on
25535 shlibpath_overrides_runpath=yes
25536 hardcode_into_libs=yes
25545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25546 soname_spec='${libname}${release}${shared_ext}$major'
25547 shlibpath_var=LD_LIBRARY_PATH
25548 hardcode_into_libs=yes
25551 hpux9* | hpux10* | hpux11*)
25552 # Give a soname corresponding to the major version so that dld.sl refuses to
25553 # link against other versions.
25560 hardcode_into_libs=yes
25561 dynamic_linker="$host_os dld.so"
25562 shlibpath_var=LD_LIBRARY_PATH
25563 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25565 soname_spec='${libname}${release}${shared_ext}$major'
25566 if test "X$HPUX_IA64_MODE" = X32; then
25567 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25569 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25575 hardcode_into_libs=yes
25576 dynamic_linker="$host_os dld.sl"
25577 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25578 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25580 soname_spec='${libname}${release}${shared_ext}$major'
25581 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25582 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25586 dynamic_linker="$host_os dld.sl"
25587 shlibpath_var=SHLIB_PATH
25588 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25590 soname_spec='${libname}${release}${shared_ext}$major'
25593 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25594 postinstall_cmds='chmod 555 $lib'
25601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25602 soname_spec='${libname}${release}${shared_ext}$major'
25603 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25604 shlibpath_var=LD_LIBRARY_PATH
25605 shlibpath_overrides_runpath=no
25606 hardcode_into_libs=yes
25609 irix5* | irix6* | nonstopux*)
25611 nonstopux*) version_type=nonstopux ;;
25613 if test "$lt_cv_prog_gnu_ld" = yes; then
25621 soname_spec='${libname}${release}${shared_ext}$major'
25622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25624 irix5* | nonstopux*)
25625 libsuff= shlibsuff=
25628 case $LD in # libtool.m4 will add one of these switches to LD
25629 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25630 libsuff= shlibsuff= libmagic=32-bit;;
25631 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25632 libsuff=32 shlibsuff=N32 libmagic=N32;;
25633 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25634 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25635 *) libsuff= shlibsuff= libmagic=never-match;;
25639 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25640 shlibpath_overrides_runpath=no
25641 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25642 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25643 hardcode_into_libs=yes
25646 # No shared lib support for Linux oldld, aout, or coff.
25647 linux*oldld* | linux*aout* | linux*coff*)
25651 # This must be Linux ELF.
25656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25657 soname_spec='${libname}${release}${shared_ext}$major'
25658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25659 shlibpath_var=LD_LIBRARY_PATH
25660 shlibpath_overrides_runpath=no
25661 # This implies no fast_install, which is unacceptable.
25662 # Some rework will be needed to allow for fast_install
25663 # before this can be enabled.
25664 hardcode_into_libs=yes
25666 # Append ld.so.conf contents to the search path
25667 if test -f /etc/ld.so.conf; then
25668 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' ' '`
25669 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25672 # We used to test for /lib/ld.so.1 and disable shared libraries on
25673 # powerpc, because MkLinux only supported shared libraries with the
25674 # GNU dynamic linker. Since this was broken with cross compilers,
25675 # most powerpc-linux boxes support dynamic linking these days and
25676 # people can always --disable-shared, the test was removed, and we
25677 # assume the GNU/Linux dynamic linker is in use.
25678 dynamic_linker='GNU/Linux ld.so'
25685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25686 soname_spec='${libname}${release}${shared_ext}$major'
25687 shlibpath_var=LD_LIBRARY_PATH
25688 shlibpath_overrides_runpath=no
25689 hardcode_into_libs=yes
25690 dynamic_linker='GNU ld.so'
25697 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25700 dynamic_linker='NetBSD (a.out) ld.so'
25702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25703 soname_spec='${libname}${release}${shared_ext}$major'
25704 dynamic_linker='NetBSD ld.elf_so'
25706 shlibpath_var=LD_LIBRARY_PATH
25707 shlibpath_overrides_runpath=yes
25708 hardcode_into_libs=yes
25713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25714 shlibpath_var=LD_LIBRARY_PATH
25715 shlibpath_overrides_runpath=yes
25722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25723 soname_spec='${libname}${release}${shared_ext}$major'
25724 shlibpath_var=LD_LIBRARY_PATH
25725 shlibpath_overrides_runpath=yes
25730 sys_lib_dlsearch_path_spec="/usr/lib"
25732 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25734 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25735 *) need_version=no ;;
25737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25739 shlibpath_var=LD_LIBRARY_PATH
25740 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25742 openbsd2.[89] | openbsd2.[89].*)
25743 shlibpath_overrides_runpath=no
25746 shlibpath_overrides_runpath=yes
25750 shlibpath_overrides_runpath=yes
25755 libname_spec='$name'
25758 library_names_spec='$libname${shared_ext} $libname.a'
25759 dynamic_linker='OS/2 ld.exe'
25760 shlibpath_var=LIBPATH
25763 osf3* | osf4* | osf5*)
25767 soname_spec='${libname}${release}${shared_ext}$major'
25768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25769 shlibpath_var=LD_LIBRARY_PATH
25770 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25771 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25779 soname_spec='${libname}${release}${shared_ext}$major'
25780 shlibpath_var=LD_LIBRARY_PATH
25781 shlibpath_overrides_runpath=yes
25782 hardcode_into_libs=yes
25783 # ldd complains unless libraries are executable
25784 postinstall_cmds='chmod +x $lib'
25789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25790 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25791 shlibpath_var=LD_LIBRARY_PATH
25792 shlibpath_overrides_runpath=yes
25793 if test "$with_gnu_ld" = yes; then
25801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25802 soname_spec='${libname}${release}${shared_ext}$major'
25803 shlibpath_var=LD_LIBRARY_PATH
25804 case $host_vendor in
25806 shlibpath_overrides_runpath=no
25808 export_dynamic_flag_spec='${wl}-Blargedynsym'
25809 runpath_var=LD_RUN_PATH
25817 shlibpath_overrides_runpath=no
25818 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25824 if test -d /usr/nec ;then
25826 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25827 soname_spec='$libname${shared_ext}.$major'
25828 shlibpath_var=LD_LIBRARY_PATH
25832 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25833 version_type=freebsd-elf
25836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25837 soname_spec='${libname}${release}${shared_ext}$major'
25838 shlibpath_var=LD_LIBRARY_PATH
25839 hardcode_into_libs=yes
25840 if test "$with_gnu_ld" = yes; then
25841 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25842 shlibpath_overrides_runpath=no
25844 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25845 shlibpath_overrides_runpath=yes
25848 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25852 sys_lib_dlsearch_path_spec='/usr/lib'
25857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25858 soname_spec='${libname}${release}${shared_ext}$major'
25859 shlibpath_var=LD_LIBRARY_PATH
25866 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25867 echo "${ECHO_T}$dynamic_linker" >&6; }
25868 test "$dynamic_linker" = no && can_build_shared=no
25870 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25871 if test "$GCC" = yes; then
25872 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25875 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25876 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25877 hardcode_action_GCJ=
25878 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25879 test -n "$runpath_var_GCJ" || \
25880 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25882 # We can hardcode non-existant directories.
25883 if test "$hardcode_direct_GCJ" != no &&
25884 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25885 # have to relink, otherwise we might link with an installed library
25886 # when we should be linking with a yet-to-be-installed one
25887 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25888 test "$hardcode_minus_L_GCJ" != no; then
25889 # Linking always hardcodes the temporary library directory.
25890 hardcode_action_GCJ=relink
25892 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25893 hardcode_action_GCJ=immediate
25896 # We cannot hardcode anything, or else we can only hardcode existing
25898 hardcode_action_GCJ=unsupported
25900 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25901 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25903 if test "$hardcode_action_GCJ" = relink; then
25904 # Fast installation is not supported
25905 enable_fast_install=no
25906 elif test "$shlibpath_overrides_runpath" = yes ||
25907 test "$enable_shared" = no; then
25908 # Fast installation is not necessary
25909 enable_fast_install=needless
25913 # The else clause should only fire when bootstrapping the
25914 # libtool distribution, otherwise you forgot to ship ltmain.sh
25915 # with your package, and you will get complaints that there are
25916 # no rules to generate ltmain.sh.
25917 if test -f "$ltmain"; then
25918 # See if we are running on zsh, and set the options which allow our commands through
25919 # without removal of \ escapes.
25920 if test -n "${ZSH_VERSION+set}" ; then
25921 setopt NO_GLOB_SUBST
25923 # Now quote all the things that may contain metacharacters while being
25924 # careful not to overquote the AC_SUBSTed values. We take copies of the
25925 # variables and quote the copies for generation of the libtool script.
25926 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25928 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25929 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25930 deplibs_check_method reload_flag reload_cmds need_locks \
25931 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25932 lt_cv_sys_global_symbol_to_c_name_address \
25933 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25934 old_postinstall_cmds old_postuninstall_cmds \
25938 lt_prog_compiler_wl_GCJ \
25939 lt_prog_compiler_pic_GCJ \
25940 lt_prog_compiler_static_GCJ \
25941 lt_prog_compiler_no_builtin_flag_GCJ \
25942 export_dynamic_flag_spec_GCJ \
25943 thread_safe_flag_spec_GCJ \
25944 whole_archive_flag_spec_GCJ \
25945 enable_shared_with_static_runtimes_GCJ \
25946 old_archive_cmds_GCJ \
25947 old_archive_from_new_cmds_GCJ \
25948 predep_objects_GCJ \
25949 postdep_objects_GCJ \
25952 compiler_lib_search_path_GCJ \
25954 archive_expsym_cmds_GCJ \
25955 postinstall_cmds_GCJ \
25956 postuninstall_cmds_GCJ \
25957 old_archive_from_expsyms_cmds_GCJ \
25958 allow_undefined_flag_GCJ \
25959 no_undefined_flag_GCJ \
25960 export_symbols_cmds_GCJ \
25961 hardcode_libdir_flag_spec_GCJ \
25962 hardcode_libdir_flag_spec_ld_GCJ \
25963 hardcode_libdir_separator_GCJ \
25964 hardcode_automatic_GCJ \
25966 module_expsym_cmds_GCJ \
25967 lt_cv_prog_compiler_c_o_GCJ \
25968 exclude_expsyms_GCJ \
25969 include_expsyms_GCJ; do
25972 old_archive_cmds_GCJ | \
25973 old_archive_from_new_cmds_GCJ | \
25974 archive_cmds_GCJ | \
25975 archive_expsym_cmds_GCJ | \
25976 module_cmds_GCJ | \
25977 module_expsym_cmds_GCJ | \
25978 old_archive_from_expsyms_cmds_GCJ | \
25979 export_symbols_cmds_GCJ | \
25980 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25981 postinstall_cmds | postuninstall_cmds | \
25982 old_postinstall_cmds | old_postuninstall_cmds | \
25983 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25984 # Double-quote double-evaled strings.
25985 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25988 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25994 *'\$0 --fallback-echo"')
25995 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26001 cat <<__EOF__ >> "$cfgfile"
26002 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26004 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26006 # Shell to use when invoking shell scripts.
26009 # Whether or not to build shared libraries.
26010 build_libtool_libs=$enable_shared
26012 # Whether or not to build static libraries.
26013 build_old_libs=$enable_static
26015 # Whether or not to add -lc for building shared libraries.
26016 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26018 # Whether or not to disallow shared libs when runtime libs are static
26019 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26021 # Whether or not to optimize for fast installation.
26022 fast_install=$enable_fast_install
26025 host_alias=$host_alias
26029 # The build system.
26030 build_alias=$build_alias
26034 # An echo program that does not interpret backslashes.
26039 AR_FLAGS=$lt_AR_FLAGS
26044 # LTCC compiler flags.
26045 LTCFLAGS=$lt_LTCFLAGS
26047 # A language-specific compiler.
26048 CC=$lt_compiler_GCJ
26050 # Is the compiler the GNU C compiler?
26056 # The linker used to build libraries.
26059 # Whether we need hard or soft links.
26062 # A BSD-compatible nm program.
26065 # A symbol stripping program
26068 # Used to examine libraries when file_magic_cmd begins "file"
26069 MAGIC_CMD=$MAGIC_CMD
26071 # Used on cygwin: DLL creation program.
26074 # Used on cygwin: object dumper.
26077 # Used on cygwin: assembler.
26080 # The name of the directory that contains temporary libtool files.
26083 # How to create reloadable object files.
26084 reload_flag=$lt_reload_flag
26085 reload_cmds=$lt_reload_cmds
26087 # How to pass a linker flag through the compiler.
26088 wl=$lt_lt_prog_compiler_wl_GCJ
26090 # Object file suffix (normally "o").
26091 objext="$ac_objext"
26093 # Old archive suffix (normally "a").
26096 # Shared library suffix (normally ".so").
26097 shrext_cmds='$shrext_cmds'
26099 # Executable file suffix (normally "").
26102 # Additional compiler flags for building library objects.
26103 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26106 # What is the maximum length of a command?
26107 max_cmd_len=$lt_cv_sys_max_cmd_len
26109 # Does compiler simultaneously support -c and -o options?
26110 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26112 # Must we lock files when doing compilation?
26113 need_locks=$lt_need_locks
26115 # Do we need the lib prefix for modules?
26116 need_lib_prefix=$need_lib_prefix
26118 # Do we need a version for libraries?
26119 need_version=$need_version
26121 # Whether dlopen is supported.
26122 dlopen_support=$enable_dlopen
26124 # Whether dlopen of programs is supported.
26125 dlopen_self=$enable_dlopen_self
26127 # Whether dlopen of statically linked programs is supported.
26128 dlopen_self_static=$enable_dlopen_self_static
26130 # Compiler flag to prevent dynamic linking.
26131 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26133 # Compiler flag to turn off builtin functions.
26134 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26136 # Compiler flag to allow reflexive dlopens.
26137 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26139 # Compiler flag to generate shared objects directly from archives.
26140 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26142 # Compiler flag to generate thread-safe objects.
26143 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26145 # Library versioning type.
26146 version_type=$version_type
26148 # Format of library name prefix.
26149 libname_spec=$lt_libname_spec
26151 # List of archive names. First name is the real one, the rest are links.
26152 # The last name is the one that the linker finds with -lNAME.
26153 library_names_spec=$lt_library_names_spec
26155 # The coded name of the library, if different from the real name.
26156 soname_spec=$lt_soname_spec
26158 # Commands used to build and install an old-style archive.
26160 old_archive_cmds=$lt_old_archive_cmds_GCJ
26161 old_postinstall_cmds=$lt_old_postinstall_cmds
26162 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26164 # Create an old-style archive from a shared archive.
26165 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26167 # Create a temporary old-style archive to link instead of a shared archive.
26168 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26170 # Commands used to build and install a shared archive.
26171 archive_cmds=$lt_archive_cmds_GCJ
26172 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26173 postinstall_cmds=$lt_postinstall_cmds
26174 postuninstall_cmds=$lt_postuninstall_cmds
26176 # Commands used to build a loadable module (assumed same as above if empty)
26177 module_cmds=$lt_module_cmds_GCJ
26178 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26180 # Commands to strip libraries.
26181 old_striplib=$lt_old_striplib
26182 striplib=$lt_striplib
26184 # Dependencies to place before the objects being linked to create a
26186 predep_objects=$lt_predep_objects_GCJ
26188 # Dependencies to place after the objects being linked to create a
26190 postdep_objects=$lt_postdep_objects_GCJ
26192 # Dependencies to place before the objects being linked to create a
26194 predeps=$lt_predeps_GCJ
26196 # Dependencies to place after the objects being linked to create a
26198 postdeps=$lt_postdeps_GCJ
26200 # The library search path used internally by the compiler when linking
26201 # a shared library.
26202 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26204 # Method to check whether dependent libraries are shared objects.
26205 deplibs_check_method=$lt_deplibs_check_method
26207 # Command to use when deplibs_check_method == file_magic.
26208 file_magic_cmd=$lt_file_magic_cmd
26210 # Flag that allows shared libraries with undefined symbols to be built.
26211 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26213 # Flag that forces no undefined symbols.
26214 no_undefined_flag=$lt_no_undefined_flag_GCJ
26216 # Commands used to finish a libtool library installation in a directory.
26217 finish_cmds=$lt_finish_cmds
26219 # Same as above, but a single script fragment to be evaled but not shown.
26220 finish_eval=$lt_finish_eval
26222 # Take the output of nm and produce a listing of raw symbols and C names.
26223 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26225 # Transform the output of nm in a proper C declaration
26226 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26228 # Transform the output of nm in a C name address pair
26229 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26231 # This is the shared library runtime path variable.
26232 runpath_var=$runpath_var
26234 # This is the shared library path variable.
26235 shlibpath_var=$shlibpath_var
26237 # Is shlibpath searched before the hard-coded library search path?
26238 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26240 # How to hardcode a shared library path into an executable.
26241 hardcode_action=$hardcode_action_GCJ
26243 # Whether we should hardcode library paths into libraries.
26244 hardcode_into_libs=$hardcode_into_libs
26246 # Flag to hardcode \$libdir into a binary during linking.
26247 # This must work even if \$libdir does not exist.
26248 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26250 # If ld is used when linking, flag to hardcode \$libdir into
26251 # a binary during linking. This must work even if \$libdir does
26253 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26255 # Whether we need a single -rpath flag with a separated argument.
26256 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26258 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26259 # resulting binary.
26260 hardcode_direct=$hardcode_direct_GCJ
26262 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26263 # resulting binary.
26264 hardcode_minus_L=$hardcode_minus_L_GCJ
26266 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26267 # the resulting binary.
26268 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26270 # Set to yes if building a shared library automatically hardcodes DIR into the library
26271 # and all subsequent libraries and executables linked against it.
26272 hardcode_automatic=$hardcode_automatic_GCJ
26274 # Variables whose values should be saved in libtool wrapper scripts and
26275 # restored at relink time.
26276 variables_saved_for_relink="$variables_saved_for_relink"
26278 # Whether libtool must link a program against all its dependency libraries.
26279 link_all_deplibs=$link_all_deplibs_GCJ
26281 # Compile-time system search path for libraries
26282 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26284 # Run-time system search path for libraries
26285 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26287 # Fix the shell variable \$srcfile for the compiler.
26288 fix_srcfile_path="$fix_srcfile_path_GCJ"
26290 # Set to yes if exported symbols are required.
26291 always_export_symbols=$always_export_symbols_GCJ
26293 # The commands to list exported symbols.
26294 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26296 # The commands to extract the exported symbol list from a shared archive.
26297 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26299 # Symbols that should not be listed in the preloaded symbols.
26300 exclude_expsyms=$lt_exclude_expsyms_GCJ
26302 # Symbols that must always be exported.
26303 include_expsyms=$lt_include_expsyms_GCJ
26305 # ### END LIBTOOL TAG CONFIG: $tagname
26311 # If there is no Makefile yet, we rely on a make rule to execute
26312 # `config.status --recheck' to rerun these tests and create the
26313 # libtool script then.
26314 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26315 if test -f "$ltmain_in"; then
26316 test -f Makefile && make "$ltmain"
26322 ac_cpp='$CPP $CPPFLAGS'
26323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26336 ac_cpp='$CPP $CPPFLAGS'
26337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26342 # Source file extension for RC test sources.
26345 # Object file extension for compiled RC test sources.
26349 # Code to be used in simple compile tests
26350 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26352 # Code to be used in simple link tests
26353 lt_simple_link_test_code="$lt_simple_compile_test_code"
26355 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26357 # If no C compiler was specified, use CC.
26360 # If no C compiler flags were specified, use CFLAGS.
26361 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26363 # Allow CC to be a program name with arguments.
26367 # save warnings/boilerplate of simple test code
26368 ac_outfile=conftest.$ac_objext
26369 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26370 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26371 _lt_compiler_boilerplate=`cat conftest.err`
26374 ac_outfile=conftest.$ac_objext
26375 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26376 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26377 _lt_linker_boilerplate=`cat conftest.err`
26381 # Allow CC to be a program name with arguments.
26386 for cc_temp in $compiler""; do
26388 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26389 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26394 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26396 lt_cv_prog_compiler_c_o_RC=yes
26398 # The else clause should only fire when bootstrapping the
26399 # libtool distribution, otherwise you forgot to ship ltmain.sh
26400 # with your package, and you will get complaints that there are
26401 # no rules to generate ltmain.sh.
26402 if test -f "$ltmain"; then
26403 # See if we are running on zsh, and set the options which allow our commands through
26404 # without removal of \ escapes.
26405 if test -n "${ZSH_VERSION+set}" ; then
26406 setopt NO_GLOB_SUBST
26408 # Now quote all the things that may contain metacharacters while being
26409 # careful not to overquote the AC_SUBSTed values. We take copies of the
26410 # variables and quote the copies for generation of the libtool script.
26411 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26413 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26414 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26415 deplibs_check_method reload_flag reload_cmds need_locks \
26416 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26417 lt_cv_sys_global_symbol_to_c_name_address \
26418 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26419 old_postinstall_cmds old_postuninstall_cmds \
26423 lt_prog_compiler_wl_RC \
26424 lt_prog_compiler_pic_RC \
26425 lt_prog_compiler_static_RC \
26426 lt_prog_compiler_no_builtin_flag_RC \
26427 export_dynamic_flag_spec_RC \
26428 thread_safe_flag_spec_RC \
26429 whole_archive_flag_spec_RC \
26430 enable_shared_with_static_runtimes_RC \
26431 old_archive_cmds_RC \
26432 old_archive_from_new_cmds_RC \
26433 predep_objects_RC \
26434 postdep_objects_RC \
26437 compiler_lib_search_path_RC \
26439 archive_expsym_cmds_RC \
26440 postinstall_cmds_RC \
26441 postuninstall_cmds_RC \
26442 old_archive_from_expsyms_cmds_RC \
26443 allow_undefined_flag_RC \
26444 no_undefined_flag_RC \
26445 export_symbols_cmds_RC \
26446 hardcode_libdir_flag_spec_RC \
26447 hardcode_libdir_flag_spec_ld_RC \
26448 hardcode_libdir_separator_RC \
26449 hardcode_automatic_RC \
26451 module_expsym_cmds_RC \
26452 lt_cv_prog_compiler_c_o_RC \
26453 exclude_expsyms_RC \
26454 include_expsyms_RC; do
26457 old_archive_cmds_RC | \
26458 old_archive_from_new_cmds_RC | \
26459 archive_cmds_RC | \
26460 archive_expsym_cmds_RC | \
26462 module_expsym_cmds_RC | \
26463 old_archive_from_expsyms_cmds_RC | \
26464 export_symbols_cmds_RC | \
26465 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26466 postinstall_cmds | postuninstall_cmds | \
26467 old_postinstall_cmds | old_postuninstall_cmds | \
26468 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26469 # Double-quote double-evaled strings.
26470 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26473 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26479 *'\$0 --fallback-echo"')
26480 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26486 cat <<__EOF__ >> "$cfgfile"
26487 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26489 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26491 # Shell to use when invoking shell scripts.
26494 # Whether or not to build shared libraries.
26495 build_libtool_libs=$enable_shared
26497 # Whether or not to build static libraries.
26498 build_old_libs=$enable_static
26500 # Whether or not to add -lc for building shared libraries.
26501 build_libtool_need_lc=$archive_cmds_need_lc_RC
26503 # Whether or not to disallow shared libs when runtime libs are static
26504 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26506 # Whether or not to optimize for fast installation.
26507 fast_install=$enable_fast_install
26510 host_alias=$host_alias
26514 # The build system.
26515 build_alias=$build_alias
26519 # An echo program that does not interpret backslashes.
26524 AR_FLAGS=$lt_AR_FLAGS
26529 # LTCC compiler flags.
26530 LTCFLAGS=$lt_LTCFLAGS
26532 # A language-specific compiler.
26535 # Is the compiler the GNU C compiler?
26541 # The linker used to build libraries.
26544 # Whether we need hard or soft links.
26547 # A BSD-compatible nm program.
26550 # A symbol stripping program
26553 # Used to examine libraries when file_magic_cmd begins "file"
26554 MAGIC_CMD=$MAGIC_CMD
26556 # Used on cygwin: DLL creation program.
26559 # Used on cygwin: object dumper.
26562 # Used on cygwin: assembler.
26565 # The name of the directory that contains temporary libtool files.
26568 # How to create reloadable object files.
26569 reload_flag=$lt_reload_flag
26570 reload_cmds=$lt_reload_cmds
26572 # How to pass a linker flag through the compiler.
26573 wl=$lt_lt_prog_compiler_wl_RC
26575 # Object file suffix (normally "o").
26576 objext="$ac_objext"
26578 # Old archive suffix (normally "a").
26581 # Shared library suffix (normally ".so").
26582 shrext_cmds='$shrext_cmds'
26584 # Executable file suffix (normally "").
26587 # Additional compiler flags for building library objects.
26588 pic_flag=$lt_lt_prog_compiler_pic_RC
26591 # What is the maximum length of a command?
26592 max_cmd_len=$lt_cv_sys_max_cmd_len
26594 # Does compiler simultaneously support -c and -o options?
26595 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26597 # Must we lock files when doing compilation?
26598 need_locks=$lt_need_locks
26600 # Do we need the lib prefix for modules?
26601 need_lib_prefix=$need_lib_prefix
26603 # Do we need a version for libraries?
26604 need_version=$need_version
26606 # Whether dlopen is supported.
26607 dlopen_support=$enable_dlopen
26609 # Whether dlopen of programs is supported.
26610 dlopen_self=$enable_dlopen_self
26612 # Whether dlopen of statically linked programs is supported.
26613 dlopen_self_static=$enable_dlopen_self_static
26615 # Compiler flag to prevent dynamic linking.
26616 link_static_flag=$lt_lt_prog_compiler_static_RC
26618 # Compiler flag to turn off builtin functions.
26619 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26621 # Compiler flag to allow reflexive dlopens.
26622 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26624 # Compiler flag to generate shared objects directly from archives.
26625 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26627 # Compiler flag to generate thread-safe objects.
26628 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26630 # Library versioning type.
26631 version_type=$version_type
26633 # Format of library name prefix.
26634 libname_spec=$lt_libname_spec
26636 # List of archive names. First name is the real one, the rest are links.
26637 # The last name is the one that the linker finds with -lNAME.
26638 library_names_spec=$lt_library_names_spec
26640 # The coded name of the library, if different from the real name.
26641 soname_spec=$lt_soname_spec
26643 # Commands used to build and install an old-style archive.
26645 old_archive_cmds=$lt_old_archive_cmds_RC
26646 old_postinstall_cmds=$lt_old_postinstall_cmds
26647 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26649 # Create an old-style archive from a shared archive.
26650 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26652 # Create a temporary old-style archive to link instead of a shared archive.
26653 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26655 # Commands used to build and install a shared archive.
26656 archive_cmds=$lt_archive_cmds_RC
26657 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26658 postinstall_cmds=$lt_postinstall_cmds
26659 postuninstall_cmds=$lt_postuninstall_cmds
26661 # Commands used to build a loadable module (assumed same as above if empty)
26662 module_cmds=$lt_module_cmds_RC
26663 module_expsym_cmds=$lt_module_expsym_cmds_RC
26665 # Commands to strip libraries.
26666 old_striplib=$lt_old_striplib
26667 striplib=$lt_striplib
26669 # Dependencies to place before the objects being linked to create a
26671 predep_objects=$lt_predep_objects_RC
26673 # Dependencies to place after the objects being linked to create a
26675 postdep_objects=$lt_postdep_objects_RC
26677 # Dependencies to place before the objects being linked to create a
26679 predeps=$lt_predeps_RC
26681 # Dependencies to place after the objects being linked to create a
26683 postdeps=$lt_postdeps_RC
26685 # The library search path used internally by the compiler when linking
26686 # a shared library.
26687 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26689 # Method to check whether dependent libraries are shared objects.
26690 deplibs_check_method=$lt_deplibs_check_method
26692 # Command to use when deplibs_check_method == file_magic.
26693 file_magic_cmd=$lt_file_magic_cmd
26695 # Flag that allows shared libraries with undefined symbols to be built.
26696 allow_undefined_flag=$lt_allow_undefined_flag_RC
26698 # Flag that forces no undefined symbols.
26699 no_undefined_flag=$lt_no_undefined_flag_RC
26701 # Commands used to finish a libtool library installation in a directory.
26702 finish_cmds=$lt_finish_cmds
26704 # Same as above, but a single script fragment to be evaled but not shown.
26705 finish_eval=$lt_finish_eval
26707 # Take the output of nm and produce a listing of raw symbols and C names.
26708 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26710 # Transform the output of nm in a proper C declaration
26711 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26713 # Transform the output of nm in a C name address pair
26714 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26716 # This is the shared library runtime path variable.
26717 runpath_var=$runpath_var
26719 # This is the shared library path variable.
26720 shlibpath_var=$shlibpath_var
26722 # Is shlibpath searched before the hard-coded library search path?
26723 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26725 # How to hardcode a shared library path into an executable.
26726 hardcode_action=$hardcode_action_RC
26728 # Whether we should hardcode library paths into libraries.
26729 hardcode_into_libs=$hardcode_into_libs
26731 # Flag to hardcode \$libdir into a binary during linking.
26732 # This must work even if \$libdir does not exist.
26733 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26735 # If ld is used when linking, flag to hardcode \$libdir into
26736 # a binary during linking. This must work even if \$libdir does
26738 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26740 # Whether we need a single -rpath flag with a separated argument.
26741 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26743 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26744 # resulting binary.
26745 hardcode_direct=$hardcode_direct_RC
26747 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26748 # resulting binary.
26749 hardcode_minus_L=$hardcode_minus_L_RC
26751 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26752 # the resulting binary.
26753 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26755 # Set to yes if building a shared library automatically hardcodes DIR into the library
26756 # and all subsequent libraries and executables linked against it.
26757 hardcode_automatic=$hardcode_automatic_RC
26759 # Variables whose values should be saved in libtool wrapper scripts and
26760 # restored at relink time.
26761 variables_saved_for_relink="$variables_saved_for_relink"
26763 # Whether libtool must link a program against all its dependency libraries.
26764 link_all_deplibs=$link_all_deplibs_RC
26766 # Compile-time system search path for libraries
26767 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26769 # Run-time system search path for libraries
26770 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26772 # Fix the shell variable \$srcfile for the compiler.
26773 fix_srcfile_path="$fix_srcfile_path_RC"
26775 # Set to yes if exported symbols are required.
26776 always_export_symbols=$always_export_symbols_RC
26778 # The commands to list exported symbols.
26779 export_symbols_cmds=$lt_export_symbols_cmds_RC
26781 # The commands to extract the exported symbol list from a shared archive.
26782 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26784 # Symbols that should not be listed in the preloaded symbols.
26785 exclude_expsyms=$lt_exclude_expsyms_RC
26787 # Symbols that must always be exported.
26788 include_expsyms=$lt_include_expsyms_RC
26790 # ### END LIBTOOL TAG CONFIG: $tagname
26796 # If there is no Makefile yet, we rely on a make rule to execute
26797 # `config.status --recheck' to rerun these tests and create the
26798 # libtool script then.
26799 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26800 if test -f "$ltmain_in"; then
26801 test -f Makefile && make "$ltmain"
26807 ac_cpp='$CPP $CPPFLAGS'
26808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26817 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26818 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26819 { (exit 1); exit 1; }; }
26823 # Append the new tag name to the list of available tags.
26824 if test -n "$tagname" ; then
26825 available_tags="$available_tags $tagname"
26831 # Now substitute the updated list of available tags.
26832 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26833 mv "${ofile}T" "$ofile"
26837 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26838 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26839 { (exit 1); exit 1; }; }
26845 # This can be used to rebuild libtool when needed
26846 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26848 # Always use our own libtool.
26849 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26851 # Prevent multiple expansion
26873 if test "$lt_cv_dlopen_self" = "yes" ; then
26875 cat >>confdefs.h <<\_ACEOF
26876 #define CAN_DLOPEN_SELF 1
26881 if test "$WITH_LLVMGCCDIR" = "default" ; then
26882 LLVMGCC="llvm-gcc${EXEEXT}"
26883 LLVMGXX="llvm-g++${EXEEXT}"
26884 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26885 set dummy $LLVMGCC; ac_word=$2
26886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26888 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26889 echo $ECHO_N "(cached) $ECHO_C" >&6
26893 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26897 for as_dir in $PATH
26900 test -z "$as_dir" && as_dir=.
26901 for ac_exec_ext in '' $ac_executable_extensions; do
26902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26903 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26914 LLVMGCC=$ac_cv_path_LLVMGCC
26915 if test -n "$LLVMGCC"; then
26916 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26917 echo "${ECHO_T}$LLVMGCC" >&6; }
26919 { echo "$as_me:$LINENO: result: no" >&5
26920 echo "${ECHO_T}no" >&6; }
26924 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26925 set dummy $LLVMGXX; ac_word=$2
26926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26928 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26929 echo $ECHO_N "(cached) $ECHO_C" >&6
26933 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26937 for as_dir in $PATH
26940 test -z "$as_dir" && as_dir=.
26941 for ac_exec_ext in '' $ac_executable_extensions; do
26942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26943 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26954 LLVMGXX=$ac_cv_path_LLVMGXX
26955 if test -n "$LLVMGXX"; then
26956 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26957 echo "${ECHO_T}$LLVMGXX" >&6; }
26959 { echo "$as_me:$LINENO: result: no" >&5
26960 echo "${ECHO_T}no" >&6; }
26965 if test -z "$LLVMGCC"; then
26966 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26968 if test -z "$LLVMGXX"; then
26969 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26977 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26978 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26991 if test "$GCC" != "yes" && test "$ICC" != "yes"
26993 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26994 echo "$as_me: error: gcc|icc required but not found" >&2;}
26995 { (exit 1); exit 1; }; }
26998 if test "$GXX" != "yes" && test "$IXX" != "yes"
27000 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27001 echo "$as_me: error: g++|icc required but not found" >&2;}
27002 { (exit 1); exit 1; }; }
27005 if test "$GCC" = "yes"
27007 cat >conftest.$ac_ext <<_ACEOF
27008 #if !defined(__GNUC__) || __GNUC__ < 3
27009 #error Unsupported GCC version
27013 rm -f conftest.$ac_objext
27014 if { (ac_try="$ac_compile"
27015 case "(($ac_try" in
27016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27017 *) ac_try_echo=$ac_try;;
27019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27020 (eval "$ac_compile") 2>conftest.er1
27022 grep -v '^ *+' conftest.er1 >conftest.err
27024 cat conftest.err >&5
27025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026 (exit $ac_status); } &&
27027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27028 { (case "(($ac_try" in
27029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27030 *) ac_try_echo=$ac_try;;
27032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27033 (eval "$ac_try") 2>&5
27035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036 (exit $ac_status); }; } &&
27037 { ac_try='test -s conftest.$ac_objext'
27038 { (case "(($ac_try" in
27039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27040 *) ac_try_echo=$ac_try;;
27042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27043 (eval "$ac_try") 2>&5
27045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046 (exit $ac_status); }; }; then
27049 echo "$as_me: failed program was:" >&5
27050 sed 's/^/| /' conftest.$ac_ext >&5
27052 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27053 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27054 { (exit 1); exit 1; }; }
27057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27060 if test -z "$llvm_cv_gnu_make_command"
27062 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27063 echo "$as_me: error: GNU Make required but not found" >&2;}
27064 { (exit 1); exit 1; }; }
27067 { echo "$as_me:$LINENO: result: ok" >&5
27068 echo "${ECHO_T}ok" >&6; }
27072 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27073 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27074 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27075 echo $ECHO_N "(cached) $ECHO_C" >&6
27077 ac_check_lib_save_LIBS=$LIBS
27079 cat >conftest.$ac_ext <<_ACEOF
27082 cat confdefs.h >>conftest.$ac_ext
27083 cat >>conftest.$ac_ext <<_ACEOF
27084 /* end confdefs.h. */
27086 /* Override any GCC internal prototype to avoid an error.
27087 Use char because int might match the return type of a GCC
27088 builtin and then its argument prototype would still apply. */
27096 return elf_begin ();
27101 rm -f conftest.$ac_objext conftest$ac_exeext
27102 if { (ac_try="$ac_link"
27103 case "(($ac_try" in
27104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27105 *) ac_try_echo=$ac_try;;
27107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27108 (eval "$ac_link") 2>conftest.er1
27110 grep -v '^ *+' conftest.er1 >conftest.err
27112 cat conftest.err >&5
27113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114 (exit $ac_status); } &&
27115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27116 { (case "(($ac_try" in
27117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27118 *) ac_try_echo=$ac_try;;
27120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27121 (eval "$ac_try") 2>&5
27123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124 (exit $ac_status); }; } &&
27125 { ac_try='test -s conftest$ac_exeext'
27126 { (case "(($ac_try" in
27127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27128 *) ac_try_echo=$ac_try;;
27130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27131 (eval "$ac_try") 2>&5
27133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134 (exit $ac_status); }; }; then
27135 ac_cv_lib_elf_elf_begin=yes
27137 echo "$as_me: failed program was:" >&5
27138 sed 's/^/| /' conftest.$ac_ext >&5
27140 ac_cv_lib_elf_elf_begin=no
27143 rm -f core conftest.err conftest.$ac_objext \
27144 conftest$ac_exeext conftest.$ac_ext
27145 LIBS=$ac_check_lib_save_LIBS
27147 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27148 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27149 if test $ac_cv_lib_elf_elf_begin = yes; then
27150 cat >>confdefs.h <<_ACEOF
27151 #define HAVE_LIBELF 1
27159 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27160 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27161 if test "${ac_cv_lib_m_sin+set}" = set; then
27162 echo $ECHO_N "(cached) $ECHO_C" >&6
27164 ac_check_lib_save_LIBS=$LIBS
27166 cat >conftest.$ac_ext <<_ACEOF
27169 cat confdefs.h >>conftest.$ac_ext
27170 cat >>conftest.$ac_ext <<_ACEOF
27171 /* end confdefs.h. */
27173 /* Override any GCC internal prototype to avoid an error.
27174 Use char because int might match the return type of a GCC
27175 builtin and then its argument prototype would still apply. */
27188 rm -f conftest.$ac_objext conftest$ac_exeext
27189 if { (ac_try="$ac_link"
27190 case "(($ac_try" in
27191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27192 *) ac_try_echo=$ac_try;;
27194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27195 (eval "$ac_link") 2>conftest.er1
27197 grep -v '^ *+' conftest.er1 >conftest.err
27199 cat conftest.err >&5
27200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201 (exit $ac_status); } &&
27202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27203 { (case "(($ac_try" in
27204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27205 *) ac_try_echo=$ac_try;;
27207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27208 (eval "$ac_try") 2>&5
27210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211 (exit $ac_status); }; } &&
27212 { ac_try='test -s conftest$ac_exeext'
27213 { (case "(($ac_try" in
27214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27215 *) ac_try_echo=$ac_try;;
27217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27218 (eval "$ac_try") 2>&5
27220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221 (exit $ac_status); }; }; then
27222 ac_cv_lib_m_sin=yes
27224 echo "$as_me: failed program was:" >&5
27225 sed 's/^/| /' conftest.$ac_ext >&5
27230 rm -f core conftest.err conftest.$ac_objext \
27231 conftest$ac_exeext conftest.$ac_ext
27232 LIBS=$ac_check_lib_save_LIBS
27234 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27235 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27236 if test $ac_cv_lib_m_sin = yes; then
27237 cat >>confdefs.h <<_ACEOF
27238 #define HAVE_LIBM 1
27245 if test "$llvm_cv_os_type" = "MingW" ; then
27247 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27248 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27249 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27250 echo $ECHO_N "(cached) $ECHO_C" >&6
27252 ac_check_lib_save_LIBS=$LIBS
27253 LIBS="-limagehlp $LIBS"
27254 cat >conftest.$ac_ext <<_ACEOF
27257 cat confdefs.h >>conftest.$ac_ext
27258 cat >>conftest.$ac_ext <<_ACEOF
27259 /* end confdefs.h. */
27270 rm -f conftest.$ac_objext conftest$ac_exeext
27271 if { (ac_try="$ac_link"
27272 case "(($ac_try" in
27273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27274 *) ac_try_echo=$ac_try;;
27276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27277 (eval "$ac_link") 2>conftest.er1
27279 grep -v '^ *+' conftest.er1 >conftest.err
27281 cat conftest.err >&5
27282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27283 (exit $ac_status); } &&
27284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27285 { (case "(($ac_try" in
27286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27287 *) ac_try_echo=$ac_try;;
27289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27290 (eval "$ac_try") 2>&5
27292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293 (exit $ac_status); }; } &&
27294 { ac_try='test -s conftest$ac_exeext'
27295 { (case "(($ac_try" in
27296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27297 *) ac_try_echo=$ac_try;;
27299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27300 (eval "$ac_try") 2>&5
27302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303 (exit $ac_status); }; }; then
27304 ac_cv_lib_imagehlp_main=yes
27306 echo "$as_me: failed program was:" >&5
27307 sed 's/^/| /' conftest.$ac_ext >&5
27309 ac_cv_lib_imagehlp_main=no
27312 rm -f core conftest.err conftest.$ac_objext \
27313 conftest$ac_exeext conftest.$ac_ext
27314 LIBS=$ac_check_lib_save_LIBS
27316 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27317 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27318 if test $ac_cv_lib_imagehlp_main = yes; then
27319 cat >>confdefs.h <<_ACEOF
27320 #define HAVE_LIBIMAGEHLP 1
27323 LIBS="-limagehlp $LIBS"
27328 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27329 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27330 if test "${ac_cv_lib_psapi_main+set}" = set; then
27331 echo $ECHO_N "(cached) $ECHO_C" >&6
27333 ac_check_lib_save_LIBS=$LIBS
27334 LIBS="-lpsapi $LIBS"
27335 cat >conftest.$ac_ext <<_ACEOF
27338 cat confdefs.h >>conftest.$ac_ext
27339 cat >>conftest.$ac_ext <<_ACEOF
27340 /* end confdefs.h. */
27351 rm -f conftest.$ac_objext conftest$ac_exeext
27352 if { (ac_try="$ac_link"
27353 case "(($ac_try" in
27354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27355 *) ac_try_echo=$ac_try;;
27357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27358 (eval "$ac_link") 2>conftest.er1
27360 grep -v '^ *+' conftest.er1 >conftest.err
27362 cat conftest.err >&5
27363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364 (exit $ac_status); } &&
27365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27366 { (case "(($ac_try" in
27367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27368 *) ac_try_echo=$ac_try;;
27370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27371 (eval "$ac_try") 2>&5
27373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374 (exit $ac_status); }; } &&
27375 { ac_try='test -s conftest$ac_exeext'
27376 { (case "(($ac_try" in
27377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27378 *) ac_try_echo=$ac_try;;
27380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27381 (eval "$ac_try") 2>&5
27383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384 (exit $ac_status); }; }; then
27385 ac_cv_lib_psapi_main=yes
27387 echo "$as_me: failed program was:" >&5
27388 sed 's/^/| /' conftest.$ac_ext >&5
27390 ac_cv_lib_psapi_main=no
27393 rm -f core conftest.err conftest.$ac_objext \
27394 conftest$ac_exeext conftest.$ac_ext
27395 LIBS=$ac_check_lib_save_LIBS
27397 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27398 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27399 if test $ac_cv_lib_psapi_main = yes; then
27400 cat >>confdefs.h <<_ACEOF
27401 #define HAVE_LIBPSAPI 1
27404 LIBS="-lpsapi $LIBS"
27410 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27411 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27412 if test "${ac_cv_search_dlopen+set}" = set; then
27413 echo $ECHO_N "(cached) $ECHO_C" >&6
27415 ac_func_search_save_LIBS=$LIBS
27416 cat >conftest.$ac_ext <<_ACEOF
27419 cat confdefs.h >>conftest.$ac_ext
27420 cat >>conftest.$ac_ext <<_ACEOF
27421 /* end confdefs.h. */
27423 /* Override any GCC internal prototype to avoid an error.
27424 Use char because int might match the return type of a GCC
27425 builtin and then its argument prototype would still apply. */
27438 for ac_lib in '' dl; do
27439 if test -z "$ac_lib"; then
27440 ac_res="none required"
27443 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27445 rm -f conftest.$ac_objext conftest$ac_exeext
27446 if { (ac_try="$ac_link"
27447 case "(($ac_try" in
27448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27449 *) ac_try_echo=$ac_try;;
27451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27452 (eval "$ac_link") 2>conftest.er1
27454 grep -v '^ *+' conftest.er1 >conftest.err
27456 cat conftest.err >&5
27457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458 (exit $ac_status); } &&
27459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27460 { (case "(($ac_try" in
27461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27462 *) ac_try_echo=$ac_try;;
27464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27465 (eval "$ac_try") 2>&5
27467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468 (exit $ac_status); }; } &&
27469 { ac_try='test -s conftest$ac_exeext'
27470 { (case "(($ac_try" in
27471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27472 *) ac_try_echo=$ac_try;;
27474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27475 (eval "$ac_try") 2>&5
27477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478 (exit $ac_status); }; }; then
27479 ac_cv_search_dlopen=$ac_res
27481 echo "$as_me: failed program was:" >&5
27482 sed 's/^/| /' conftest.$ac_ext >&5
27487 rm -f core conftest.err conftest.$ac_objext \
27489 if test "${ac_cv_search_dlopen+set}" = set; then
27493 if test "${ac_cv_search_dlopen+set}" = set; then
27496 ac_cv_search_dlopen=no
27498 rm conftest.$ac_ext
27499 LIBS=$ac_func_search_save_LIBS
27501 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27502 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27503 ac_res=$ac_cv_search_dlopen
27504 if test "$ac_res" != no; then
27505 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27507 cat >>confdefs.h <<\_ACEOF
27508 #define HAVE_DLOPEN 1
27512 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27513 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27517 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27518 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27519 if test "${ac_cv_search_mallinfo+set}" = set; then
27520 echo $ECHO_N "(cached) $ECHO_C" >&6
27522 ac_func_search_save_LIBS=$LIBS
27523 cat >conftest.$ac_ext <<_ACEOF
27526 cat confdefs.h >>conftest.$ac_ext
27527 cat >>conftest.$ac_ext <<_ACEOF
27528 /* end confdefs.h. */
27530 /* Override any GCC internal prototype to avoid an error.
27531 Use char because int might match the return type of a GCC
27532 builtin and then its argument prototype would still apply. */
27540 return mallinfo ();
27545 for ac_lib in '' malloc; do
27546 if test -z "$ac_lib"; then
27547 ac_res="none required"
27550 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27552 rm -f conftest.$ac_objext conftest$ac_exeext
27553 if { (ac_try="$ac_link"
27554 case "(($ac_try" in
27555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27556 *) ac_try_echo=$ac_try;;
27558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27559 (eval "$ac_link") 2>conftest.er1
27561 grep -v '^ *+' conftest.er1 >conftest.err
27563 cat conftest.err >&5
27564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565 (exit $ac_status); } &&
27566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27567 { (case "(($ac_try" in
27568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27569 *) ac_try_echo=$ac_try;;
27571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27572 (eval "$ac_try") 2>&5
27574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575 (exit $ac_status); }; } &&
27576 { ac_try='test -s conftest$ac_exeext'
27577 { (case "(($ac_try" in
27578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27579 *) ac_try_echo=$ac_try;;
27581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27582 (eval "$ac_try") 2>&5
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); }; }; then
27586 ac_cv_search_mallinfo=$ac_res
27588 echo "$as_me: failed program was:" >&5
27589 sed 's/^/| /' conftest.$ac_ext >&5
27594 rm -f core conftest.err conftest.$ac_objext \
27596 if test "${ac_cv_search_mallinfo+set}" = set; then
27600 if test "${ac_cv_search_mallinfo+set}" = set; then
27603 ac_cv_search_mallinfo=no
27605 rm conftest.$ac_ext
27606 LIBS=$ac_func_search_save_LIBS
27608 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27609 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27610 ac_res=$ac_cv_search_mallinfo
27611 if test "$ac_res" != no; then
27612 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27614 cat >>confdefs.h <<\_ACEOF
27615 #define HAVE_MALLINFO 1
27621 if test "$ENABLE_THREADS" -eq 1 ; then
27623 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27624 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27625 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27626 echo $ECHO_N "(cached) $ECHO_C" >&6
27628 ac_check_lib_save_LIBS=$LIBS
27629 LIBS="-lpthread $LIBS"
27630 cat >conftest.$ac_ext <<_ACEOF
27633 cat confdefs.h >>conftest.$ac_ext
27634 cat >>conftest.$ac_ext <<_ACEOF
27635 /* end confdefs.h. */
27637 /* Override any GCC internal prototype to avoid an error.
27638 Use char because int might match the return type of a GCC
27639 builtin and then its argument prototype would still apply. */
27643 char pthread_mutex_init ();
27647 return pthread_mutex_init ();
27652 rm -f conftest.$ac_objext conftest$ac_exeext
27653 if { (ac_try="$ac_link"
27654 case "(($ac_try" in
27655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27656 *) ac_try_echo=$ac_try;;
27658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27659 (eval "$ac_link") 2>conftest.er1
27661 grep -v '^ *+' conftest.er1 >conftest.err
27663 cat conftest.err >&5
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); } &&
27666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27667 { (case "(($ac_try" in
27668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27669 *) ac_try_echo=$ac_try;;
27671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27672 (eval "$ac_try") 2>&5
27674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675 (exit $ac_status); }; } &&
27676 { ac_try='test -s conftest$ac_exeext'
27677 { (case "(($ac_try" in
27678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27679 *) ac_try_echo=$ac_try;;
27681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27682 (eval "$ac_try") 2>&5
27684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685 (exit $ac_status); }; }; then
27686 ac_cv_lib_pthread_pthread_mutex_init=yes
27688 echo "$as_me: failed program was:" >&5
27689 sed 's/^/| /' conftest.$ac_ext >&5
27691 ac_cv_lib_pthread_pthread_mutex_init=no
27694 rm -f core conftest.err conftest.$ac_objext \
27695 conftest$ac_exeext conftest.$ac_ext
27696 LIBS=$ac_check_lib_save_LIBS
27698 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27699 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27700 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27701 cat >>confdefs.h <<_ACEOF
27702 #define HAVE_LIBPTHREAD 1
27705 LIBS="-lpthread $LIBS"
27709 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27710 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27711 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27712 echo $ECHO_N "(cached) $ECHO_C" >&6
27714 ac_func_search_save_LIBS=$LIBS
27715 cat >conftest.$ac_ext <<_ACEOF
27718 cat confdefs.h >>conftest.$ac_ext
27719 cat >>conftest.$ac_ext <<_ACEOF
27720 /* end confdefs.h. */
27722 /* Override any GCC internal prototype to avoid an error.
27723 Use char because int might match the return type of a GCC
27724 builtin and then its argument prototype would still apply. */
27728 char pthread_mutex_lock ();
27732 return pthread_mutex_lock ();
27737 for ac_lib in '' pthread; do
27738 if test -z "$ac_lib"; then
27739 ac_res="none required"
27742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27744 rm -f conftest.$ac_objext conftest$ac_exeext
27745 if { (ac_try="$ac_link"
27746 case "(($ac_try" in
27747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27748 *) ac_try_echo=$ac_try;;
27750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27751 (eval "$ac_link") 2>conftest.er1
27753 grep -v '^ *+' conftest.er1 >conftest.err
27755 cat conftest.err >&5
27756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27757 (exit $ac_status); } &&
27758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27759 { (case "(($ac_try" in
27760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27761 *) ac_try_echo=$ac_try;;
27763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27764 (eval "$ac_try") 2>&5
27766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767 (exit $ac_status); }; } &&
27768 { ac_try='test -s conftest$ac_exeext'
27769 { (case "(($ac_try" in
27770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27771 *) ac_try_echo=$ac_try;;
27773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27774 (eval "$ac_try") 2>&5
27776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777 (exit $ac_status); }; }; then
27778 ac_cv_search_pthread_mutex_lock=$ac_res
27780 echo "$as_me: failed program was:" >&5
27781 sed 's/^/| /' conftest.$ac_ext >&5
27786 rm -f core conftest.err conftest.$ac_objext \
27788 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27792 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27795 ac_cv_search_pthread_mutex_lock=no
27797 rm conftest.$ac_ext
27798 LIBS=$ac_func_search_save_LIBS
27800 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27801 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27802 ac_res=$ac_cv_search_pthread_mutex_lock
27803 if test "$ac_res" != no; then
27804 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27806 cat >>confdefs.h <<\_ACEOF
27807 #define HAVE_PTHREAD_MUTEX_LOCK 1
27815 # Check whether --with-udis86 was given.
27816 if test "${with_udis86+set}" = set; then
27817 withval=$with_udis86;
27822 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27825 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27826 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27827 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27828 echo $ECHO_N "(cached) $ECHO_C" >&6
27830 ac_check_lib_save_LIBS=$LIBS
27831 LIBS="-ludis86 $LIBS"
27832 cat >conftest.$ac_ext <<_ACEOF
27835 cat confdefs.h >>conftest.$ac_ext
27836 cat >>conftest.$ac_ext <<_ACEOF
27837 /* end confdefs.h. */
27839 /* Override any GCC internal prototype to avoid an error.
27840 Use char because int might match the return type of a GCC
27841 builtin and then its argument prototype would still apply. */
27854 rm -f conftest.$ac_objext conftest$ac_exeext
27855 if { (ac_try="$ac_link"
27856 case "(($ac_try" in
27857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27858 *) ac_try_echo=$ac_try;;
27860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27861 (eval "$ac_link") 2>conftest.er1
27863 grep -v '^ *+' conftest.er1 >conftest.err
27865 cat conftest.err >&5
27866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867 (exit $ac_status); } &&
27868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27869 { (case "(($ac_try" in
27870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27871 *) ac_try_echo=$ac_try;;
27873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27874 (eval "$ac_try") 2>&5
27876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877 (exit $ac_status); }; } &&
27878 { ac_try='test -s conftest$ac_exeext'
27879 { (case "(($ac_try" in
27880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27881 *) ac_try_echo=$ac_try;;
27883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27884 (eval "$ac_try") 2>&5
27886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887 (exit $ac_status); }; }; then
27888 ac_cv_lib_udis86_ud_init=yes
27890 echo "$as_me: failed program was:" >&5
27891 sed 's/^/| /' conftest.$ac_ext >&5
27893 ac_cv_lib_udis86_ud_init=no
27896 rm -f core conftest.err conftest.$ac_objext \
27897 conftest$ac_exeext conftest.$ac_ext
27898 LIBS=$ac_check_lib_save_LIBS
27900 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27901 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27902 if test $ac_cv_lib_udis86_ud_init = yes; then
27903 cat >>confdefs.h <<_ACEOF
27904 #define HAVE_LIBUDIS86 1
27907 LIBS="-ludis86 $LIBS"
27911 echo "Error! You need to have libudis86 around."
27923 cat >>confdefs.h <<_ACEOF
27924 #define USE_UDIS86 $USE_UDIS86
27934 ac_header_dirent=no
27935 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27936 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27937 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27938 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27940 echo $ECHO_N "(cached) $ECHO_C" >&6
27942 cat >conftest.$ac_ext <<_ACEOF
27945 cat confdefs.h >>conftest.$ac_ext
27946 cat >>conftest.$ac_ext <<_ACEOF
27947 /* end confdefs.h. */
27948 #include <sys/types.h>
27960 rm -f conftest.$ac_objext
27961 if { (ac_try="$ac_compile"
27962 case "(($ac_try" in
27963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27964 *) ac_try_echo=$ac_try;;
27966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27967 (eval "$ac_compile") 2>conftest.er1
27969 grep -v '^ *+' conftest.er1 >conftest.err
27971 cat conftest.err >&5
27972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973 (exit $ac_status); } &&
27974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27975 { (case "(($ac_try" in
27976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27977 *) ac_try_echo=$ac_try;;
27979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27980 (eval "$ac_try") 2>&5
27982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983 (exit $ac_status); }; } &&
27984 { ac_try='test -s conftest.$ac_objext'
27985 { (case "(($ac_try" in
27986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27987 *) ac_try_echo=$ac_try;;
27989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27990 (eval "$ac_try") 2>&5
27992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993 (exit $ac_status); }; }; then
27994 eval "$as_ac_Header=yes"
27996 echo "$as_me: failed program was:" >&5
27997 sed 's/^/| /' conftest.$ac_ext >&5
27999 eval "$as_ac_Header=no"
28002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28004 ac_res=`eval echo '${'$as_ac_Header'}'`
28005 { echo "$as_me:$LINENO: result: $ac_res" >&5
28006 echo "${ECHO_T}$ac_res" >&6; }
28007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28008 cat >>confdefs.h <<_ACEOF
28009 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28012 ac_header_dirent=$ac_hdr; break
28016 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28017 if test $ac_header_dirent = dirent.h; then
28018 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28019 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28020 if test "${ac_cv_search_opendir+set}" = set; then
28021 echo $ECHO_N "(cached) $ECHO_C" >&6
28023 ac_func_search_save_LIBS=$LIBS
28024 cat >conftest.$ac_ext <<_ACEOF
28027 cat confdefs.h >>conftest.$ac_ext
28028 cat >>conftest.$ac_ext <<_ACEOF
28029 /* end confdefs.h. */
28031 /* Override any GCC internal prototype to avoid an error.
28032 Use char because int might match the return type of a GCC
28033 builtin and then its argument prototype would still apply. */
28046 for ac_lib in '' dir; do
28047 if test -z "$ac_lib"; then
28048 ac_res="none required"
28051 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28053 rm -f conftest.$ac_objext conftest$ac_exeext
28054 if { (ac_try="$ac_link"
28055 case "(($ac_try" in
28056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28057 *) ac_try_echo=$ac_try;;
28059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28060 (eval "$ac_link") 2>conftest.er1
28062 grep -v '^ *+' conftest.er1 >conftest.err
28064 cat conftest.err >&5
28065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066 (exit $ac_status); } &&
28067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28068 { (case "(($ac_try" in
28069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28070 *) ac_try_echo=$ac_try;;
28072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28073 (eval "$ac_try") 2>&5
28075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076 (exit $ac_status); }; } &&
28077 { ac_try='test -s conftest$ac_exeext'
28078 { (case "(($ac_try" in
28079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28080 *) ac_try_echo=$ac_try;;
28082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28083 (eval "$ac_try") 2>&5
28085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086 (exit $ac_status); }; }; then
28087 ac_cv_search_opendir=$ac_res
28089 echo "$as_me: failed program was:" >&5
28090 sed 's/^/| /' conftest.$ac_ext >&5
28095 rm -f core conftest.err conftest.$ac_objext \
28097 if test "${ac_cv_search_opendir+set}" = set; then
28101 if test "${ac_cv_search_opendir+set}" = set; then
28104 ac_cv_search_opendir=no
28106 rm conftest.$ac_ext
28107 LIBS=$ac_func_search_save_LIBS
28109 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28110 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28111 ac_res=$ac_cv_search_opendir
28112 if test "$ac_res" != no; then
28113 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28118 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28119 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28120 if test "${ac_cv_search_opendir+set}" = set; then
28121 echo $ECHO_N "(cached) $ECHO_C" >&6
28123 ac_func_search_save_LIBS=$LIBS
28124 cat >conftest.$ac_ext <<_ACEOF
28127 cat confdefs.h >>conftest.$ac_ext
28128 cat >>conftest.$ac_ext <<_ACEOF
28129 /* end confdefs.h. */
28131 /* Override any GCC internal prototype to avoid an error.
28132 Use char because int might match the return type of a GCC
28133 builtin and then its argument prototype would still apply. */
28146 for ac_lib in '' x; do
28147 if test -z "$ac_lib"; then
28148 ac_res="none required"
28151 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28153 rm -f conftest.$ac_objext conftest$ac_exeext
28154 if { (ac_try="$ac_link"
28155 case "(($ac_try" in
28156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28157 *) ac_try_echo=$ac_try;;
28159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28160 (eval "$ac_link") 2>conftest.er1
28162 grep -v '^ *+' conftest.er1 >conftest.err
28164 cat conftest.err >&5
28165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28166 (exit $ac_status); } &&
28167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28168 { (case "(($ac_try" in
28169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28170 *) ac_try_echo=$ac_try;;
28172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28173 (eval "$ac_try") 2>&5
28175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28176 (exit $ac_status); }; } &&
28177 { ac_try='test -s conftest$ac_exeext'
28178 { (case "(($ac_try" in
28179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28180 *) ac_try_echo=$ac_try;;
28182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28183 (eval "$ac_try") 2>&5
28185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28186 (exit $ac_status); }; }; then
28187 ac_cv_search_opendir=$ac_res
28189 echo "$as_me: failed program was:" >&5
28190 sed 's/^/| /' conftest.$ac_ext >&5
28195 rm -f core conftest.err conftest.$ac_objext \
28197 if test "${ac_cv_search_opendir+set}" = set; then
28201 if test "${ac_cv_search_opendir+set}" = set; then
28204 ac_cv_search_opendir=no
28206 rm conftest.$ac_ext
28207 LIBS=$ac_func_search_save_LIBS
28209 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28210 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28211 ac_res=$ac_cv_search_opendir
28212 if test "$ac_res" != no; then
28213 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28219 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28220 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28221 if test "${ac_cv_header_mmap_anon+set}" = set; then
28222 echo $ECHO_N "(cached) $ECHO_C" >&6
28225 ac_cpp='$CPP $CPPFLAGS'
28226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28230 cat >conftest.$ac_ext <<_ACEOF
28233 cat confdefs.h >>conftest.$ac_ext
28234 cat >>conftest.$ac_ext <<_ACEOF
28235 /* end confdefs.h. */
28236 #include <sys/mman.h>
28237 #include <unistd.h>
28242 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28247 rm -f conftest.$ac_objext
28248 if { (ac_try="$ac_compile"
28249 case "(($ac_try" in
28250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28251 *) ac_try_echo=$ac_try;;
28253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28254 (eval "$ac_compile") 2>conftest.er1
28256 grep -v '^ *+' conftest.er1 >conftest.err
28258 cat conftest.err >&5
28259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260 (exit $ac_status); } &&
28261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28262 { (case "(($ac_try" in
28263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28264 *) ac_try_echo=$ac_try;;
28266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28267 (eval "$ac_try") 2>&5
28269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270 (exit $ac_status); }; } &&
28271 { ac_try='test -s conftest.$ac_objext'
28272 { (case "(($ac_try" in
28273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28274 *) ac_try_echo=$ac_try;;
28276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28277 (eval "$ac_try") 2>&5
28279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280 (exit $ac_status); }; }; then
28281 ac_cv_header_mmap_anon=yes
28283 echo "$as_me: failed program was:" >&5
28284 sed 's/^/| /' conftest.$ac_ext >&5
28286 ac_cv_header_mmap_anon=no
28289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28291 ac_cpp='$CPP $CPPFLAGS'
28292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28298 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28299 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28300 if test "$ac_cv_header_mmap_anon" = yes; then
28302 cat >>confdefs.h <<\_ACEOF
28303 #define HAVE_MMAP_ANONYMOUS 1
28308 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28309 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28310 if test "${ac_cv_header_stat_broken+set}" = set; then
28311 echo $ECHO_N "(cached) $ECHO_C" >&6
28313 cat >conftest.$ac_ext <<_ACEOF
28316 cat confdefs.h >>conftest.$ac_ext
28317 cat >>conftest.$ac_ext <<_ACEOF
28318 /* end confdefs.h. */
28319 #include <sys/types.h>
28320 #include <sys/stat.h>
28322 #if defined S_ISBLK && defined S_IFDIR
28323 # if S_ISBLK (S_IFDIR)
28328 #if defined S_ISBLK && defined S_IFCHR
28329 # if S_ISBLK (S_IFCHR)
28334 #if defined S_ISLNK && defined S_IFREG
28335 # if S_ISLNK (S_IFREG)
28340 #if defined S_ISSOCK && defined S_IFREG
28341 # if S_ISSOCK (S_IFREG)
28347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28348 $EGREP "You lose" >/dev/null 2>&1; then
28349 ac_cv_header_stat_broken=yes
28351 ac_cv_header_stat_broken=no
28356 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28357 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28358 if test $ac_cv_header_stat_broken = yes; then
28360 cat >>confdefs.h <<\_ACEOF
28361 #define STAT_MACROS_BROKEN 1
28366 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28367 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28368 if test "${ac_cv_header_stdc+set}" = set; then
28369 echo $ECHO_N "(cached) $ECHO_C" >&6
28371 cat >conftest.$ac_ext <<_ACEOF
28374 cat confdefs.h >>conftest.$ac_ext
28375 cat >>conftest.$ac_ext <<_ACEOF
28376 /* end confdefs.h. */
28377 #include <stdlib.h>
28378 #include <stdarg.h>
28379 #include <string.h>
28390 rm -f conftest.$ac_objext
28391 if { (ac_try="$ac_compile"
28392 case "(($ac_try" in
28393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28394 *) ac_try_echo=$ac_try;;
28396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28397 (eval "$ac_compile") 2>conftest.er1
28399 grep -v '^ *+' conftest.er1 >conftest.err
28401 cat conftest.err >&5
28402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28403 (exit $ac_status); } &&
28404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28405 { (case "(($ac_try" in
28406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28407 *) ac_try_echo=$ac_try;;
28409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28410 (eval "$ac_try") 2>&5
28412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413 (exit $ac_status); }; } &&
28414 { ac_try='test -s conftest.$ac_objext'
28415 { (case "(($ac_try" in
28416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28417 *) ac_try_echo=$ac_try;;
28419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28420 (eval "$ac_try") 2>&5
28422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423 (exit $ac_status); }; }; then
28424 ac_cv_header_stdc=yes
28426 echo "$as_me: failed program was:" >&5
28427 sed 's/^/| /' conftest.$ac_ext >&5
28429 ac_cv_header_stdc=no
28432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28434 if test $ac_cv_header_stdc = yes; then
28435 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28436 cat >conftest.$ac_ext <<_ACEOF
28439 cat confdefs.h >>conftest.$ac_ext
28440 cat >>conftest.$ac_ext <<_ACEOF
28441 /* end confdefs.h. */
28442 #include <string.h>
28445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28446 $EGREP "memchr" >/dev/null 2>&1; then
28449 ac_cv_header_stdc=no
28455 if test $ac_cv_header_stdc = yes; then
28456 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28457 cat >conftest.$ac_ext <<_ACEOF
28460 cat confdefs.h >>conftest.$ac_ext
28461 cat >>conftest.$ac_ext <<_ACEOF
28462 /* end confdefs.h. */
28463 #include <stdlib.h>
28466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28467 $EGREP "free" >/dev/null 2>&1; then
28470 ac_cv_header_stdc=no
28476 if test $ac_cv_header_stdc = yes; then
28477 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28478 if test "$cross_compiling" = yes; then
28481 cat >conftest.$ac_ext <<_ACEOF
28484 cat confdefs.h >>conftest.$ac_ext
28485 cat >>conftest.$ac_ext <<_ACEOF
28486 /* end confdefs.h. */
28488 #include <stdlib.h>
28489 #if ((' ' & 0x0FF) == 0x020)
28490 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28491 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28493 # define ISLOWER(c) \
28494 (('a' <= (c) && (c) <= 'i') \
28495 || ('j' <= (c) && (c) <= 'r') \
28496 || ('s' <= (c) && (c) <= 'z'))
28497 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28500 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28505 for (i = 0; i < 256; i++)
28506 if (XOR (islower (i), ISLOWER (i))
28507 || toupper (i) != TOUPPER (i))
28512 rm -f conftest$ac_exeext
28513 if { (ac_try="$ac_link"
28514 case "(($ac_try" in
28515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28516 *) ac_try_echo=$ac_try;;
28518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28519 (eval "$ac_link") 2>&5
28521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28523 { (case "(($ac_try" in
28524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28525 *) ac_try_echo=$ac_try;;
28527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28528 (eval "$ac_try") 2>&5
28530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28531 (exit $ac_status); }; }; then
28534 echo "$as_me: program exited with status $ac_status" >&5
28535 echo "$as_me: failed program was:" >&5
28536 sed 's/^/| /' conftest.$ac_ext >&5
28538 ( exit $ac_status )
28539 ac_cv_header_stdc=no
28541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28547 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28548 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28549 if test $ac_cv_header_stdc = yes; then
28551 cat >>confdefs.h <<\_ACEOF
28552 #define STDC_HEADERS 1
28557 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28558 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28559 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28560 echo $ECHO_N "(cached) $ECHO_C" >&6
28562 cat >conftest.$ac_ext <<_ACEOF
28565 cat confdefs.h >>conftest.$ac_ext
28566 cat >>conftest.$ac_ext <<_ACEOF
28567 /* end confdefs.h. */
28568 #include <sys/types.h>
28569 #include <sys/wait.h>
28570 #ifndef WEXITSTATUS
28571 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28574 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28582 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28587 rm -f conftest.$ac_objext
28588 if { (ac_try="$ac_compile"
28589 case "(($ac_try" in
28590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28591 *) ac_try_echo=$ac_try;;
28593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28594 (eval "$ac_compile") 2>conftest.er1
28596 grep -v '^ *+' conftest.er1 >conftest.err
28598 cat conftest.err >&5
28599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600 (exit $ac_status); } &&
28601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28602 { (case "(($ac_try" in
28603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28604 *) ac_try_echo=$ac_try;;
28606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28607 (eval "$ac_try") 2>&5
28609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610 (exit $ac_status); }; } &&
28611 { ac_try='test -s conftest.$ac_objext'
28612 { (case "(($ac_try" in
28613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28614 *) ac_try_echo=$ac_try;;
28616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28617 (eval "$ac_try") 2>&5
28619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28620 (exit $ac_status); }; }; then
28621 ac_cv_header_sys_wait_h=yes
28623 echo "$as_me: failed program was:" >&5
28624 sed 's/^/| /' conftest.$ac_ext >&5
28626 ac_cv_header_sys_wait_h=no
28629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28631 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28632 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28633 if test $ac_cv_header_sys_wait_h = yes; then
28635 cat >>confdefs.h <<\_ACEOF
28636 #define HAVE_SYS_WAIT_H 1
28641 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28642 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28643 if test "${ac_cv_header_time+set}" = set; then
28644 echo $ECHO_N "(cached) $ECHO_C" >&6
28646 cat >conftest.$ac_ext <<_ACEOF
28649 cat confdefs.h >>conftest.$ac_ext
28650 cat >>conftest.$ac_ext <<_ACEOF
28651 /* end confdefs.h. */
28652 #include <sys/types.h>
28653 #include <sys/time.h>
28659 if ((struct tm *) 0)
28665 rm -f conftest.$ac_objext
28666 if { (ac_try="$ac_compile"
28667 case "(($ac_try" in
28668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28669 *) ac_try_echo=$ac_try;;
28671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28672 (eval "$ac_compile") 2>conftest.er1
28674 grep -v '^ *+' conftest.er1 >conftest.err
28676 cat conftest.err >&5
28677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678 (exit $ac_status); } &&
28679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28680 { (case "(($ac_try" in
28681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28682 *) ac_try_echo=$ac_try;;
28684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28685 (eval "$ac_try") 2>&5
28687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); }; } &&
28689 { ac_try='test -s conftest.$ac_objext'
28690 { (case "(($ac_try" in
28691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28692 *) ac_try_echo=$ac_try;;
28694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28695 (eval "$ac_try") 2>&5
28697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28698 (exit $ac_status); }; }; then
28699 ac_cv_header_time=yes
28701 echo "$as_me: failed program was:" >&5
28702 sed 's/^/| /' conftest.$ac_ext >&5
28704 ac_cv_header_time=no
28707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28709 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28710 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28711 if test $ac_cv_header_time = yes; then
28713 cat >>confdefs.h <<\_ACEOF
28714 #define TIME_WITH_SYS_TIME 1
28726 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28733 echo $ECHO_N "(cached) $ECHO_C" >&6
28735 ac_res=`eval echo '${'$as_ac_Header'}'`
28736 { echo "$as_me:$LINENO: result: $ac_res" >&5
28737 echo "${ECHO_T}$ac_res" >&6; }
28739 # Is the header compilable?
28740 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28742 cat >conftest.$ac_ext <<_ACEOF
28745 cat confdefs.h >>conftest.$ac_ext
28746 cat >>conftest.$ac_ext <<_ACEOF
28747 /* end confdefs.h. */
28748 $ac_includes_default
28749 #include <$ac_header>
28751 rm -f conftest.$ac_objext
28752 if { (ac_try="$ac_compile"
28753 case "(($ac_try" in
28754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28755 *) ac_try_echo=$ac_try;;
28757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28758 (eval "$ac_compile") 2>conftest.er1
28760 grep -v '^ *+' conftest.er1 >conftest.err
28762 cat conftest.err >&5
28763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28764 (exit $ac_status); } &&
28765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28766 { (case "(($ac_try" in
28767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28768 *) ac_try_echo=$ac_try;;
28770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28771 (eval "$ac_try") 2>&5
28773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774 (exit $ac_status); }; } &&
28775 { ac_try='test -s conftest.$ac_objext'
28776 { (case "(($ac_try" in
28777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28778 *) ac_try_echo=$ac_try;;
28780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28781 (eval "$ac_try") 2>&5
28783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784 (exit $ac_status); }; }; then
28785 ac_header_compiler=yes
28787 echo "$as_me: failed program was:" >&5
28788 sed 's/^/| /' conftest.$ac_ext >&5
28790 ac_header_compiler=no
28793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28794 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28795 echo "${ECHO_T}$ac_header_compiler" >&6; }
28797 # Is the header present?
28798 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28800 cat >conftest.$ac_ext <<_ACEOF
28803 cat confdefs.h >>conftest.$ac_ext
28804 cat >>conftest.$ac_ext <<_ACEOF
28805 /* end confdefs.h. */
28806 #include <$ac_header>
28808 if { (ac_try="$ac_cpp conftest.$ac_ext"
28809 case "(($ac_try" in
28810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28811 *) ac_try_echo=$ac_try;;
28813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28816 grep -v '^ *+' conftest.er1 >conftest.err
28818 cat conftest.err >&5
28819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820 (exit $ac_status); } >/dev/null; then
28821 if test -s conftest.err; then
28822 ac_cpp_err=$ac_c_preproc_warn_flag
28823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28830 if test -z "$ac_cpp_err"; then
28831 ac_header_preproc=yes
28833 echo "$as_me: failed program was:" >&5
28834 sed 's/^/| /' conftest.$ac_ext >&5
28836 ac_header_preproc=no
28839 rm -f conftest.err conftest.$ac_ext
28840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28841 echo "${ECHO_T}$ac_header_preproc" >&6; }
28843 # So? What about this header?
28844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28850 ac_header_preproc=yes
28853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28866 ## ----------------------------------- ##
28867 ## Report this to llvmbugs@cs.uiuc.edu ##
28868 ## ----------------------------------- ##
28870 ) | sed "s/^/$as_me: WARNING: /" >&2
28873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28876 echo $ECHO_N "(cached) $ECHO_C" >&6
28878 eval "$as_ac_Header=\$ac_header_preproc"
28880 ac_res=`eval echo '${'$as_ac_Header'}'`
28881 { echo "$as_me:$LINENO: result: $ac_res" >&5
28882 echo "${ECHO_T}$ac_res" >&6; }
28885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28886 cat >>confdefs.h <<_ACEOF
28887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28900 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28907 echo $ECHO_N "(cached) $ECHO_C" >&6
28909 ac_res=`eval echo '${'$as_ac_Header'}'`
28910 { echo "$as_me:$LINENO: result: $ac_res" >&5
28911 echo "${ECHO_T}$ac_res" >&6; }
28913 # Is the header compilable?
28914 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28916 cat >conftest.$ac_ext <<_ACEOF
28919 cat confdefs.h >>conftest.$ac_ext
28920 cat >>conftest.$ac_ext <<_ACEOF
28921 /* end confdefs.h. */
28922 $ac_includes_default
28923 #include <$ac_header>
28925 rm -f conftest.$ac_objext
28926 if { (ac_try="$ac_compile"
28927 case "(($ac_try" in
28928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28929 *) ac_try_echo=$ac_try;;
28931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28932 (eval "$ac_compile") 2>conftest.er1
28934 grep -v '^ *+' conftest.er1 >conftest.err
28936 cat conftest.err >&5
28937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938 (exit $ac_status); } &&
28939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28940 { (case "(($ac_try" in
28941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28942 *) ac_try_echo=$ac_try;;
28944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28945 (eval "$ac_try") 2>&5
28947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948 (exit $ac_status); }; } &&
28949 { ac_try='test -s conftest.$ac_objext'
28950 { (case "(($ac_try" in
28951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28952 *) ac_try_echo=$ac_try;;
28954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28955 (eval "$ac_try") 2>&5
28957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28958 (exit $ac_status); }; }; then
28959 ac_header_compiler=yes
28961 echo "$as_me: failed program was:" >&5
28962 sed 's/^/| /' conftest.$ac_ext >&5
28964 ac_header_compiler=no
28967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28968 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28969 echo "${ECHO_T}$ac_header_compiler" >&6; }
28971 # Is the header present?
28972 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28974 cat >conftest.$ac_ext <<_ACEOF
28977 cat confdefs.h >>conftest.$ac_ext
28978 cat >>conftest.$ac_ext <<_ACEOF
28979 /* end confdefs.h. */
28980 #include <$ac_header>
28982 if { (ac_try="$ac_cpp conftest.$ac_ext"
28983 case "(($ac_try" in
28984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28985 *) ac_try_echo=$ac_try;;
28987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28990 grep -v '^ *+' conftest.er1 >conftest.err
28992 cat conftest.err >&5
28993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28994 (exit $ac_status); } >/dev/null; then
28995 if test -s conftest.err; then
28996 ac_cpp_err=$ac_c_preproc_warn_flag
28997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29004 if test -z "$ac_cpp_err"; then
29005 ac_header_preproc=yes
29007 echo "$as_me: failed program was:" >&5
29008 sed 's/^/| /' conftest.$ac_ext >&5
29010 ac_header_preproc=no
29013 rm -f conftest.err conftest.$ac_ext
29014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29015 echo "${ECHO_T}$ac_header_preproc" >&6; }
29017 # So? What about this header?
29018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29024 ac_header_preproc=yes
29027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29030 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29034 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29040 ## ----------------------------------- ##
29041 ## Report this to llvmbugs@cs.uiuc.edu ##
29042 ## ----------------------------------- ##
29044 ) | sed "s/^/$as_me: WARNING: /" >&2
29047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29050 echo $ECHO_N "(cached) $ECHO_C" >&6
29052 eval "$as_ac_Header=\$ac_header_preproc"
29054 ac_res=`eval echo '${'$as_ac_Header'}'`
29055 { echo "$as_me:$LINENO: result: $ac_res" >&5
29056 echo "${ECHO_T}$ac_res" >&6; }
29059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29060 cat >>confdefs.h <<_ACEOF
29061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29069 for ac_header in windows.h
29071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29076 echo $ECHO_N "(cached) $ECHO_C" >&6
29078 ac_res=`eval echo '${'$as_ac_Header'}'`
29079 { echo "$as_me:$LINENO: result: $ac_res" >&5
29080 echo "${ECHO_T}$ac_res" >&6; }
29082 # Is the header compilable?
29083 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29085 cat >conftest.$ac_ext <<_ACEOF
29088 cat confdefs.h >>conftest.$ac_ext
29089 cat >>conftest.$ac_ext <<_ACEOF
29090 /* end confdefs.h. */
29091 $ac_includes_default
29092 #include <$ac_header>
29094 rm -f conftest.$ac_objext
29095 if { (ac_try="$ac_compile"
29096 case "(($ac_try" in
29097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29098 *) ac_try_echo=$ac_try;;
29100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29101 (eval "$ac_compile") 2>conftest.er1
29103 grep -v '^ *+' conftest.er1 >conftest.err
29105 cat conftest.err >&5
29106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29107 (exit $ac_status); } &&
29108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29109 { (case "(($ac_try" in
29110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29111 *) ac_try_echo=$ac_try;;
29113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29114 (eval "$ac_try") 2>&5
29116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117 (exit $ac_status); }; } &&
29118 { ac_try='test -s conftest.$ac_objext'
29119 { (case "(($ac_try" in
29120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29121 *) ac_try_echo=$ac_try;;
29123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29124 (eval "$ac_try") 2>&5
29126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127 (exit $ac_status); }; }; then
29128 ac_header_compiler=yes
29130 echo "$as_me: failed program was:" >&5
29131 sed 's/^/| /' conftest.$ac_ext >&5
29133 ac_header_compiler=no
29136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29137 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29138 echo "${ECHO_T}$ac_header_compiler" >&6; }
29140 # Is the header present?
29141 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29142 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29143 cat >conftest.$ac_ext <<_ACEOF
29146 cat confdefs.h >>conftest.$ac_ext
29147 cat >>conftest.$ac_ext <<_ACEOF
29148 /* end confdefs.h. */
29149 #include <$ac_header>
29151 if { (ac_try="$ac_cpp conftest.$ac_ext"
29152 case "(($ac_try" in
29153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29154 *) ac_try_echo=$ac_try;;
29156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29159 grep -v '^ *+' conftest.er1 >conftest.err
29161 cat conftest.err >&5
29162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163 (exit $ac_status); } >/dev/null; then
29164 if test -s conftest.err; then
29165 ac_cpp_err=$ac_c_preproc_warn_flag
29166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29173 if test -z "$ac_cpp_err"; then
29174 ac_header_preproc=yes
29176 echo "$as_me: failed program was:" >&5
29177 sed 's/^/| /' conftest.$ac_ext >&5
29179 ac_header_preproc=no
29182 rm -f conftest.err conftest.$ac_ext
29183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29184 echo "${ECHO_T}$ac_header_preproc" >&6; }
29186 # So? What about this header?
29187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29193 ac_header_preproc=yes
29196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29199 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29203 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29209 ## ----------------------------------- ##
29210 ## Report this to llvmbugs@cs.uiuc.edu ##
29211 ## ----------------------------------- ##
29213 ) | sed "s/^/$as_me: WARNING: /" >&2
29216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29219 echo $ECHO_N "(cached) $ECHO_C" >&6
29221 eval "$as_ac_Header=\$ac_header_preproc"
29223 ac_res=`eval echo '${'$as_ac_Header'}'`
29224 { echo "$as_me:$LINENO: result: $ac_res" >&5
29225 echo "${ECHO_T}$ac_res" >&6; }
29228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29229 cat >>confdefs.h <<_ACEOF
29230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29241 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29248 echo $ECHO_N "(cached) $ECHO_C" >&6
29250 ac_res=`eval echo '${'$as_ac_Header'}'`
29251 { echo "$as_me:$LINENO: result: $ac_res" >&5
29252 echo "${ECHO_T}$ac_res" >&6; }
29254 # Is the header compilable?
29255 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29257 cat >conftest.$ac_ext <<_ACEOF
29260 cat confdefs.h >>conftest.$ac_ext
29261 cat >>conftest.$ac_ext <<_ACEOF
29262 /* end confdefs.h. */
29263 $ac_includes_default
29264 #include <$ac_header>
29266 rm -f conftest.$ac_objext
29267 if { (ac_try="$ac_compile"
29268 case "(($ac_try" in
29269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29270 *) ac_try_echo=$ac_try;;
29272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29273 (eval "$ac_compile") 2>conftest.er1
29275 grep -v '^ *+' conftest.er1 >conftest.err
29277 cat conftest.err >&5
29278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29279 (exit $ac_status); } &&
29280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29281 { (case "(($ac_try" in
29282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29283 *) ac_try_echo=$ac_try;;
29285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29286 (eval "$ac_try") 2>&5
29288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29289 (exit $ac_status); }; } &&
29290 { ac_try='test -s conftest.$ac_objext'
29291 { (case "(($ac_try" in
29292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29293 *) ac_try_echo=$ac_try;;
29295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29296 (eval "$ac_try") 2>&5
29298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29299 (exit $ac_status); }; }; then
29300 ac_header_compiler=yes
29302 echo "$as_me: failed program was:" >&5
29303 sed 's/^/| /' conftest.$ac_ext >&5
29305 ac_header_compiler=no
29308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29309 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29310 echo "${ECHO_T}$ac_header_compiler" >&6; }
29312 # Is the header present?
29313 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29315 cat >conftest.$ac_ext <<_ACEOF
29318 cat confdefs.h >>conftest.$ac_ext
29319 cat >>conftest.$ac_ext <<_ACEOF
29320 /* end confdefs.h. */
29321 #include <$ac_header>
29323 if { (ac_try="$ac_cpp conftest.$ac_ext"
29324 case "(($ac_try" in
29325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29326 *) ac_try_echo=$ac_try;;
29328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29331 grep -v '^ *+' conftest.er1 >conftest.err
29333 cat conftest.err >&5
29334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335 (exit $ac_status); } >/dev/null; then
29336 if test -s conftest.err; then
29337 ac_cpp_err=$ac_c_preproc_warn_flag
29338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29345 if test -z "$ac_cpp_err"; then
29346 ac_header_preproc=yes
29348 echo "$as_me: failed program was:" >&5
29349 sed 's/^/| /' conftest.$ac_ext >&5
29351 ac_header_preproc=no
29354 rm -f conftest.err conftest.$ac_ext
29355 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29356 echo "${ECHO_T}$ac_header_preproc" >&6; }
29358 # So? What about this header?
29359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29365 ac_header_preproc=yes
29368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29375 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29381 ## ----------------------------------- ##
29382 ## Report this to llvmbugs@cs.uiuc.edu ##
29383 ## ----------------------------------- ##
29385 ) | sed "s/^/$as_me: WARNING: /" >&2
29388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29391 echo $ECHO_N "(cached) $ECHO_C" >&6
29393 eval "$as_ac_Header=\$ac_header_preproc"
29395 ac_res=`eval echo '${'$as_ac_Header'}'`
29396 { echo "$as_me:$LINENO: result: $ac_res" >&5
29397 echo "${ECHO_T}$ac_res" >&6; }
29400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29401 cat >>confdefs.h <<_ACEOF
29402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29412 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29419 echo $ECHO_N "(cached) $ECHO_C" >&6
29421 ac_res=`eval echo '${'$as_ac_Header'}'`
29422 { echo "$as_me:$LINENO: result: $ac_res" >&5
29423 echo "${ECHO_T}$ac_res" >&6; }
29425 # Is the header compilable?
29426 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29428 cat >conftest.$ac_ext <<_ACEOF
29431 cat confdefs.h >>conftest.$ac_ext
29432 cat >>conftest.$ac_ext <<_ACEOF
29433 /* end confdefs.h. */
29434 $ac_includes_default
29435 #include <$ac_header>
29437 rm -f conftest.$ac_objext
29438 if { (ac_try="$ac_compile"
29439 case "(($ac_try" in
29440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29441 *) ac_try_echo=$ac_try;;
29443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29444 (eval "$ac_compile") 2>conftest.er1
29446 grep -v '^ *+' conftest.er1 >conftest.err
29448 cat conftest.err >&5
29449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450 (exit $ac_status); } &&
29451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29452 { (case "(($ac_try" in
29453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29454 *) ac_try_echo=$ac_try;;
29456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29457 (eval "$ac_try") 2>&5
29459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29460 (exit $ac_status); }; } &&
29461 { ac_try='test -s conftest.$ac_objext'
29462 { (case "(($ac_try" in
29463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29464 *) ac_try_echo=$ac_try;;
29466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29467 (eval "$ac_try") 2>&5
29469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470 (exit $ac_status); }; }; then
29471 ac_header_compiler=yes
29473 echo "$as_me: failed program was:" >&5
29474 sed 's/^/| /' conftest.$ac_ext >&5
29476 ac_header_compiler=no
29479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29481 echo "${ECHO_T}$ac_header_compiler" >&6; }
29483 # Is the header present?
29484 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29486 cat >conftest.$ac_ext <<_ACEOF
29489 cat confdefs.h >>conftest.$ac_ext
29490 cat >>conftest.$ac_ext <<_ACEOF
29491 /* end confdefs.h. */
29492 #include <$ac_header>
29494 if { (ac_try="$ac_cpp conftest.$ac_ext"
29495 case "(($ac_try" in
29496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29497 *) ac_try_echo=$ac_try;;
29499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29502 grep -v '^ *+' conftest.er1 >conftest.err
29504 cat conftest.err >&5
29505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506 (exit $ac_status); } >/dev/null; then
29507 if test -s conftest.err; then
29508 ac_cpp_err=$ac_c_preproc_warn_flag
29509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29516 if test -z "$ac_cpp_err"; then
29517 ac_header_preproc=yes
29519 echo "$as_me: failed program was:" >&5
29520 sed 's/^/| /' conftest.$ac_ext >&5
29522 ac_header_preproc=no
29525 rm -f conftest.err conftest.$ac_ext
29526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29527 echo "${ECHO_T}$ac_header_preproc" >&6; }
29529 # So? What about this header?
29530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29536 ac_header_preproc=yes
29539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29546 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29552 ## ----------------------------------- ##
29553 ## Report this to llvmbugs@cs.uiuc.edu ##
29554 ## ----------------------------------- ##
29556 ) | sed "s/^/$as_me: WARNING: /" >&2
29559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29562 echo $ECHO_N "(cached) $ECHO_C" >&6
29564 eval "$as_ac_Header=\$ac_header_preproc"
29566 ac_res=`eval echo '${'$as_ac_Header'}'`
29567 { echo "$as_me:$LINENO: result: $ac_res" >&5
29568 echo "${ECHO_T}$ac_res" >&6; }
29571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29572 cat >>confdefs.h <<_ACEOF
29573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29580 if test "$ENABLE_THREADS" -eq 1 ; then
29582 for ac_header in pthread.h
29584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29589 echo $ECHO_N "(cached) $ECHO_C" >&6
29591 ac_res=`eval echo '${'$as_ac_Header'}'`
29592 { echo "$as_me:$LINENO: result: $ac_res" >&5
29593 echo "${ECHO_T}$ac_res" >&6; }
29595 # Is the header compilable?
29596 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29598 cat >conftest.$ac_ext <<_ACEOF
29601 cat confdefs.h >>conftest.$ac_ext
29602 cat >>conftest.$ac_ext <<_ACEOF
29603 /* end confdefs.h. */
29604 $ac_includes_default
29605 #include <$ac_header>
29607 rm -f conftest.$ac_objext
29608 if { (ac_try="$ac_compile"
29609 case "(($ac_try" in
29610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29611 *) ac_try_echo=$ac_try;;
29613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29614 (eval "$ac_compile") 2>conftest.er1
29616 grep -v '^ *+' conftest.er1 >conftest.err
29618 cat conftest.err >&5
29619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29620 (exit $ac_status); } &&
29621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29622 { (case "(($ac_try" in
29623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29624 *) ac_try_echo=$ac_try;;
29626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29627 (eval "$ac_try") 2>&5
29629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29630 (exit $ac_status); }; } &&
29631 { ac_try='test -s conftest.$ac_objext'
29632 { (case "(($ac_try" in
29633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29634 *) ac_try_echo=$ac_try;;
29636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29637 (eval "$ac_try") 2>&5
29639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29640 (exit $ac_status); }; }; then
29641 ac_header_compiler=yes
29643 echo "$as_me: failed program was:" >&5
29644 sed 's/^/| /' conftest.$ac_ext >&5
29646 ac_header_compiler=no
29649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29651 echo "${ECHO_T}$ac_header_compiler" >&6; }
29653 # Is the header present?
29654 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29656 cat >conftest.$ac_ext <<_ACEOF
29659 cat confdefs.h >>conftest.$ac_ext
29660 cat >>conftest.$ac_ext <<_ACEOF
29661 /* end confdefs.h. */
29662 #include <$ac_header>
29664 if { (ac_try="$ac_cpp conftest.$ac_ext"
29665 case "(($ac_try" in
29666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29667 *) ac_try_echo=$ac_try;;
29669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29672 grep -v '^ *+' conftest.er1 >conftest.err
29674 cat conftest.err >&5
29675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676 (exit $ac_status); } >/dev/null; then
29677 if test -s conftest.err; then
29678 ac_cpp_err=$ac_c_preproc_warn_flag
29679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29686 if test -z "$ac_cpp_err"; then
29687 ac_header_preproc=yes
29689 echo "$as_me: failed program was:" >&5
29690 sed 's/^/| /' conftest.$ac_ext >&5
29692 ac_header_preproc=no
29695 rm -f conftest.err conftest.$ac_ext
29696 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29697 echo "${ECHO_T}$ac_header_preproc" >&6; }
29699 # So? What about this header?
29700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29705 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29706 ac_header_preproc=yes
29709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29712 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29714 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29716 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29720 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29722 ## ----------------------------------- ##
29723 ## Report this to llvmbugs@cs.uiuc.edu ##
29724 ## ----------------------------------- ##
29726 ) | sed "s/^/$as_me: WARNING: /" >&2
29729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29732 echo $ECHO_N "(cached) $ECHO_C" >&6
29734 eval "$as_ac_Header=\$ac_header_preproc"
29736 ac_res=`eval echo '${'$as_ac_Header'}'`
29737 { echo "$as_me:$LINENO: result: $ac_res" >&5
29738 echo "${ECHO_T}$ac_res" >&6; }
29741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29742 cat >>confdefs.h <<_ACEOF
29743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29761 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29762 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29763 if test "${ac_cv_huge_val_sanity+set}" = set; then
29764 echo $ECHO_N "(cached) $ECHO_C" >&6
29768 ac_cpp='$CXXCPP $CPPFLAGS'
29769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29774 if test "$cross_compiling" = yes; then
29775 ac_cv_huge_val_sanity=yes
29777 cat >conftest.$ac_ext <<_ACEOF
29780 cat confdefs.h >>conftest.$ac_ext
29781 cat >>conftest.$ac_ext <<_ACEOF
29782 /* end confdefs.h. */
29787 double x = HUGE_VAL; return x != x;
29792 rm -f conftest$ac_exeext
29793 if { (ac_try="$ac_link"
29794 case "(($ac_try" in
29795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29796 *) ac_try_echo=$ac_try;;
29798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29799 (eval "$ac_link") 2>&5
29801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29803 { (case "(($ac_try" in
29804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29805 *) ac_try_echo=$ac_try;;
29807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29808 (eval "$ac_try") 2>&5
29810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29811 (exit $ac_status); }; }; then
29812 ac_cv_huge_val_sanity=yes
29814 echo "$as_me: program exited with status $ac_status" >&5
29815 echo "$as_me: failed program was:" >&5
29816 sed 's/^/| /' conftest.$ac_ext >&5
29818 ( exit $ac_status )
29819 ac_cv_huge_val_sanity=no
29821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29826 ac_cpp='$CPP $CPPFLAGS'
29827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29833 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29834 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29835 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29838 { echo "$as_me:$LINENO: checking for pid_t" >&5
29839 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29840 if test "${ac_cv_type_pid_t+set}" = set; then
29841 echo $ECHO_N "(cached) $ECHO_C" >&6
29843 cat >conftest.$ac_ext <<_ACEOF
29846 cat confdefs.h >>conftest.$ac_ext
29847 cat >>conftest.$ac_ext <<_ACEOF
29848 /* end confdefs.h. */
29849 $ac_includes_default
29850 typedef pid_t ac__type_new_;
29854 if ((ac__type_new_ *) 0)
29856 if (sizeof (ac__type_new_))
29862 rm -f conftest.$ac_objext
29863 if { (ac_try="$ac_compile"
29864 case "(($ac_try" in
29865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29866 *) ac_try_echo=$ac_try;;
29868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29869 (eval "$ac_compile") 2>conftest.er1
29871 grep -v '^ *+' conftest.er1 >conftest.err
29873 cat conftest.err >&5
29874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29875 (exit $ac_status); } &&
29876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29877 { (case "(($ac_try" in
29878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29879 *) ac_try_echo=$ac_try;;
29881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29882 (eval "$ac_try") 2>&5
29884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885 (exit $ac_status); }; } &&
29886 { ac_try='test -s conftest.$ac_objext'
29887 { (case "(($ac_try" in
29888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29889 *) ac_try_echo=$ac_try;;
29891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29892 (eval "$ac_try") 2>&5
29894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895 (exit $ac_status); }; }; then
29896 ac_cv_type_pid_t=yes
29898 echo "$as_me: failed program was:" >&5
29899 sed 's/^/| /' conftest.$ac_ext >&5
29901 ac_cv_type_pid_t=no
29904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29906 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29907 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29908 if test $ac_cv_type_pid_t = yes; then
29912 cat >>confdefs.h <<_ACEOF
29918 { echo "$as_me:$LINENO: checking for size_t" >&5
29919 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29920 if test "${ac_cv_type_size_t+set}" = set; then
29921 echo $ECHO_N "(cached) $ECHO_C" >&6
29923 cat >conftest.$ac_ext <<_ACEOF
29926 cat confdefs.h >>conftest.$ac_ext
29927 cat >>conftest.$ac_ext <<_ACEOF
29928 /* end confdefs.h. */
29929 $ac_includes_default
29930 typedef size_t ac__type_new_;
29934 if ((ac__type_new_ *) 0)
29936 if (sizeof (ac__type_new_))
29942 rm -f conftest.$ac_objext
29943 if { (ac_try="$ac_compile"
29944 case "(($ac_try" in
29945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29946 *) ac_try_echo=$ac_try;;
29948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29949 (eval "$ac_compile") 2>conftest.er1
29951 grep -v '^ *+' conftest.er1 >conftest.err
29953 cat conftest.err >&5
29954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29955 (exit $ac_status); } &&
29956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29957 { (case "(($ac_try" in
29958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29959 *) ac_try_echo=$ac_try;;
29961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29962 (eval "$ac_try") 2>&5
29964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29965 (exit $ac_status); }; } &&
29966 { ac_try='test -s conftest.$ac_objext'
29967 { (case "(($ac_try" in
29968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29969 *) ac_try_echo=$ac_try;;
29971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29972 (eval "$ac_try") 2>&5
29974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975 (exit $ac_status); }; }; then
29976 ac_cv_type_size_t=yes
29978 echo "$as_me: failed program was:" >&5
29979 sed 's/^/| /' conftest.$ac_ext >&5
29981 ac_cv_type_size_t=no
29984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29986 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29987 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29988 if test $ac_cv_type_size_t = yes; then
29992 cat >>confdefs.h <<_ACEOF
29993 #define size_t unsigned int
29998 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29999 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30000 if test "${ac_cv_type_signal+set}" = set; then
30001 echo $ECHO_N "(cached) $ECHO_C" >&6
30003 cat >conftest.$ac_ext <<_ACEOF
30006 cat confdefs.h >>conftest.$ac_ext
30007 cat >>conftest.$ac_ext <<_ACEOF
30008 /* end confdefs.h. */
30009 #include <sys/types.h>
30010 #include <signal.h>
30015 return *(signal (0, 0)) (0) == 1;
30020 rm -f conftest.$ac_objext
30021 if { (ac_try="$ac_compile"
30022 case "(($ac_try" in
30023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30024 *) ac_try_echo=$ac_try;;
30026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30027 (eval "$ac_compile") 2>conftest.er1
30029 grep -v '^ *+' conftest.er1 >conftest.err
30031 cat conftest.err >&5
30032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30033 (exit $ac_status); } &&
30034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30035 { (case "(($ac_try" in
30036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30037 *) ac_try_echo=$ac_try;;
30039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30040 (eval "$ac_try") 2>&5
30042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30043 (exit $ac_status); }; } &&
30044 { ac_try='test -s conftest.$ac_objext'
30045 { (case "(($ac_try" in
30046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30047 *) ac_try_echo=$ac_try;;
30049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30050 (eval "$ac_try") 2>&5
30052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053 (exit $ac_status); }; }; then
30054 ac_cv_type_signal=int
30056 echo "$as_me: failed program was:" >&5
30057 sed 's/^/| /' conftest.$ac_ext >&5
30059 ac_cv_type_signal=void
30062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30064 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30065 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30067 cat >>confdefs.h <<_ACEOF
30068 #define RETSIGTYPE $ac_cv_type_signal
30072 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30073 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30074 if test "${ac_cv_struct_tm+set}" = set; then
30075 echo $ECHO_N "(cached) $ECHO_C" >&6
30077 cat >conftest.$ac_ext <<_ACEOF
30080 cat confdefs.h >>conftest.$ac_ext
30081 cat >>conftest.$ac_ext <<_ACEOF
30082 /* end confdefs.h. */
30083 #include <sys/types.h>
30089 struct tm *tp; tp->tm_sec;
30094 rm -f conftest.$ac_objext
30095 if { (ac_try="$ac_compile"
30096 case "(($ac_try" in
30097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30098 *) ac_try_echo=$ac_try;;
30100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30101 (eval "$ac_compile") 2>conftest.er1
30103 grep -v '^ *+' conftest.er1 >conftest.err
30105 cat conftest.err >&5
30106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30107 (exit $ac_status); } &&
30108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30109 { (case "(($ac_try" in
30110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30111 *) ac_try_echo=$ac_try;;
30113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30114 (eval "$ac_try") 2>&5
30116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30117 (exit $ac_status); }; } &&
30118 { ac_try='test -s conftest.$ac_objext'
30119 { (case "(($ac_try" in
30120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30121 *) ac_try_echo=$ac_try;;
30123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30124 (eval "$ac_try") 2>&5
30126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127 (exit $ac_status); }; }; then
30128 ac_cv_struct_tm=time.h
30130 echo "$as_me: failed program was:" >&5
30131 sed 's/^/| /' conftest.$ac_ext >&5
30133 ac_cv_struct_tm=sys/time.h
30136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30138 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30139 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30140 if test $ac_cv_struct_tm = sys/time.h; then
30142 cat >>confdefs.h <<\_ACEOF
30143 #define TM_IN_SYS_TIME 1
30148 { echo "$as_me:$LINENO: checking for int64_t" >&5
30149 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30150 if test "${ac_cv_type_int64_t+set}" = set; then
30151 echo $ECHO_N "(cached) $ECHO_C" >&6
30153 cat >conftest.$ac_ext <<_ACEOF
30156 cat confdefs.h >>conftest.$ac_ext
30157 cat >>conftest.$ac_ext <<_ACEOF
30158 /* end confdefs.h. */
30159 $ac_includes_default
30160 typedef int64_t ac__type_new_;
30164 if ((ac__type_new_ *) 0)
30166 if (sizeof (ac__type_new_))
30172 rm -f conftest.$ac_objext
30173 if { (ac_try="$ac_compile"
30174 case "(($ac_try" in
30175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30176 *) ac_try_echo=$ac_try;;
30178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30179 (eval "$ac_compile") 2>conftest.er1
30181 grep -v '^ *+' conftest.er1 >conftest.err
30183 cat conftest.err >&5
30184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30185 (exit $ac_status); } &&
30186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30187 { (case "(($ac_try" in
30188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30189 *) ac_try_echo=$ac_try;;
30191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30192 (eval "$ac_try") 2>&5
30194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195 (exit $ac_status); }; } &&
30196 { ac_try='test -s conftest.$ac_objext'
30197 { (case "(($ac_try" in
30198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30199 *) ac_try_echo=$ac_try;;
30201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30202 (eval "$ac_try") 2>&5
30204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205 (exit $ac_status); }; }; then
30206 ac_cv_type_int64_t=yes
30208 echo "$as_me: failed program was:" >&5
30209 sed 's/^/| /' conftest.$ac_ext >&5
30211 ac_cv_type_int64_t=no
30214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30216 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30217 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30218 if test $ac_cv_type_int64_t = yes; then
30220 cat >>confdefs.h <<_ACEOF
30221 #define HAVE_INT64_T 1
30226 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30227 echo "$as_me: error: Type int64_t required but not found" >&2;}
30228 { (exit 1); exit 1; }; }
30231 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30232 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30233 if test "${ac_cv_type_uint64_t+set}" = set; then
30234 echo $ECHO_N "(cached) $ECHO_C" >&6
30236 cat >conftest.$ac_ext <<_ACEOF
30239 cat confdefs.h >>conftest.$ac_ext
30240 cat >>conftest.$ac_ext <<_ACEOF
30241 /* end confdefs.h. */
30242 $ac_includes_default
30243 typedef uint64_t ac__type_new_;
30247 if ((ac__type_new_ *) 0)
30249 if (sizeof (ac__type_new_))
30255 rm -f conftest.$ac_objext
30256 if { (ac_try="$ac_compile"
30257 case "(($ac_try" in
30258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30259 *) ac_try_echo=$ac_try;;
30261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30262 (eval "$ac_compile") 2>conftest.er1
30264 grep -v '^ *+' conftest.er1 >conftest.err
30266 cat conftest.err >&5
30267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268 (exit $ac_status); } &&
30269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30270 { (case "(($ac_try" in
30271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30272 *) ac_try_echo=$ac_try;;
30274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30275 (eval "$ac_try") 2>&5
30277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278 (exit $ac_status); }; } &&
30279 { ac_try='test -s conftest.$ac_objext'
30280 { (case "(($ac_try" in
30281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30282 *) ac_try_echo=$ac_try;;
30284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30285 (eval "$ac_try") 2>&5
30287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30288 (exit $ac_status); }; }; then
30289 ac_cv_type_uint64_t=yes
30291 echo "$as_me: failed program was:" >&5
30292 sed 's/^/| /' conftest.$ac_ext >&5
30294 ac_cv_type_uint64_t=no
30297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30299 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30300 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30301 if test $ac_cv_type_uint64_t = yes; then
30303 cat >>confdefs.h <<_ACEOF
30304 #define HAVE_UINT64_T 1
30309 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30310 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30311 if test "${ac_cv_type_u_int64_t+set}" = set; then
30312 echo $ECHO_N "(cached) $ECHO_C" >&6
30314 cat >conftest.$ac_ext <<_ACEOF
30317 cat confdefs.h >>conftest.$ac_ext
30318 cat >>conftest.$ac_ext <<_ACEOF
30319 /* end confdefs.h. */
30320 $ac_includes_default
30321 typedef u_int64_t ac__type_new_;
30325 if ((ac__type_new_ *) 0)
30327 if (sizeof (ac__type_new_))
30333 rm -f conftest.$ac_objext
30334 if { (ac_try="$ac_compile"
30335 case "(($ac_try" in
30336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30337 *) ac_try_echo=$ac_try;;
30339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30340 (eval "$ac_compile") 2>conftest.er1
30342 grep -v '^ *+' conftest.er1 >conftest.err
30344 cat conftest.err >&5
30345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30346 (exit $ac_status); } &&
30347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30348 { (case "(($ac_try" in
30349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30350 *) ac_try_echo=$ac_try;;
30352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30353 (eval "$ac_try") 2>&5
30355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356 (exit $ac_status); }; } &&
30357 { ac_try='test -s conftest.$ac_objext'
30358 { (case "(($ac_try" in
30359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30360 *) ac_try_echo=$ac_try;;
30362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30363 (eval "$ac_try") 2>&5
30365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366 (exit $ac_status); }; }; then
30367 ac_cv_type_u_int64_t=yes
30369 echo "$as_me: failed program was:" >&5
30370 sed 's/^/| /' conftest.$ac_ext >&5
30372 ac_cv_type_u_int64_t=no
30375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30377 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30378 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30379 if test $ac_cv_type_u_int64_t = yes; then
30381 cat >>confdefs.h <<_ACEOF
30382 #define HAVE_U_INT64_T 1
30387 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30388 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30389 { (exit 1); exit 1; }; }
30403 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30406 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30408 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30409 echo $ECHO_N "(cached) $ECHO_C" >&6
30411 cat >conftest.$ac_ext <<_ACEOF
30414 cat confdefs.h >>conftest.$ac_ext
30415 cat >>conftest.$ac_ext <<_ACEOF
30416 /* end confdefs.h. */
30417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30419 #define $ac_func innocuous_$ac_func
30421 /* System header to define __stub macros and hopefully few prototypes,
30422 which can conflict with char $ac_func (); below.
30423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30424 <limits.h> exists even on freestanding compilers. */
30427 # include <limits.h>
30429 # include <assert.h>
30434 /* Override any GCC internal prototype to avoid an error.
30435 Use char because int might match the return type of a GCC
30436 builtin and then its argument prototype would still apply. */
30441 /* The GNU C library defines this for functions which it implements
30442 to always fail with ENOSYS. Some functions are actually named
30443 something starting with __ and the normal name is an alias. */
30444 #if defined __stub_$ac_func || defined __stub___$ac_func
30451 return $ac_func ();
30456 rm -f conftest.$ac_objext conftest$ac_exeext
30457 if { (ac_try="$ac_link"
30458 case "(($ac_try" in
30459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30460 *) ac_try_echo=$ac_try;;
30462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30463 (eval "$ac_link") 2>conftest.er1
30465 grep -v '^ *+' conftest.er1 >conftest.err
30467 cat conftest.err >&5
30468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469 (exit $ac_status); } &&
30470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30471 { (case "(($ac_try" in
30472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30473 *) ac_try_echo=$ac_try;;
30475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30476 (eval "$ac_try") 2>&5
30478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479 (exit $ac_status); }; } &&
30480 { ac_try='test -s conftest$ac_exeext'
30481 { (case "(($ac_try" in
30482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30483 *) ac_try_echo=$ac_try;;
30485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30486 (eval "$ac_try") 2>&5
30488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489 (exit $ac_status); }; }; then
30490 eval "$as_ac_var=yes"
30492 echo "$as_me: failed program was:" >&5
30493 sed 's/^/| /' conftest.$ac_ext >&5
30495 eval "$as_ac_var=no"
30498 rm -f core conftest.err conftest.$ac_objext \
30499 conftest$ac_exeext conftest.$ac_ext
30501 ac_res=`eval echo '${'$as_ac_var'}'`
30502 { echo "$as_me:$LINENO: result: $ac_res" >&5
30503 echo "${ECHO_T}$ac_res" >&6; }
30504 if test `eval echo '${'$as_ac_var'}'` = yes; then
30505 cat >>confdefs.h <<_ACEOF
30506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30516 for ac_func in powf fmodf strtof round
30518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30519 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30522 echo $ECHO_N "(cached) $ECHO_C" >&6
30524 cat >conftest.$ac_ext <<_ACEOF
30527 cat confdefs.h >>conftest.$ac_ext
30528 cat >>conftest.$ac_ext <<_ACEOF
30529 /* end confdefs.h. */
30530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30532 #define $ac_func innocuous_$ac_func
30534 /* System header to define __stub macros and hopefully few prototypes,
30535 which can conflict with char $ac_func (); below.
30536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30537 <limits.h> exists even on freestanding compilers. */
30540 # include <limits.h>
30542 # include <assert.h>
30547 /* Override any GCC internal prototype to avoid an error.
30548 Use char because int might match the return type of a GCC
30549 builtin and then its argument prototype would still apply. */
30554 /* The GNU C library defines this for functions which it implements
30555 to always fail with ENOSYS. Some functions are actually named
30556 something starting with __ and the normal name is an alias. */
30557 #if defined __stub_$ac_func || defined __stub___$ac_func
30564 return $ac_func ();
30569 rm -f conftest.$ac_objext conftest$ac_exeext
30570 if { (ac_try="$ac_link"
30571 case "(($ac_try" in
30572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30573 *) ac_try_echo=$ac_try;;
30575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30576 (eval "$ac_link") 2>conftest.er1
30578 grep -v '^ *+' conftest.er1 >conftest.err
30580 cat conftest.err >&5
30581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582 (exit $ac_status); } &&
30583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30584 { (case "(($ac_try" in
30585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30586 *) ac_try_echo=$ac_try;;
30588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30589 (eval "$ac_try") 2>&5
30591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592 (exit $ac_status); }; } &&
30593 { ac_try='test -s conftest$ac_exeext'
30594 { (case "(($ac_try" in
30595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30596 *) ac_try_echo=$ac_try;;
30598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30599 (eval "$ac_try") 2>&5
30601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30602 (exit $ac_status); }; }; then
30603 eval "$as_ac_var=yes"
30605 echo "$as_me: failed program was:" >&5
30606 sed 's/^/| /' conftest.$ac_ext >&5
30608 eval "$as_ac_var=no"
30611 rm -f core conftest.err conftest.$ac_objext \
30612 conftest$ac_exeext conftest.$ac_ext
30614 ac_res=`eval echo '${'$as_ac_var'}'`
30615 { echo "$as_me:$LINENO: result: $ac_res" >&5
30616 echo "${ECHO_T}$ac_res" >&6; }
30617 if test `eval echo '${'$as_ac_var'}'` = yes; then
30618 cat >>confdefs.h <<_ACEOF
30619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30630 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30633 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30635 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30636 echo $ECHO_N "(cached) $ECHO_C" >&6
30638 cat >conftest.$ac_ext <<_ACEOF
30641 cat confdefs.h >>conftest.$ac_ext
30642 cat >>conftest.$ac_ext <<_ACEOF
30643 /* end confdefs.h. */
30644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30646 #define $ac_func innocuous_$ac_func
30648 /* System header to define __stub macros and hopefully few prototypes,
30649 which can conflict with char $ac_func (); below.
30650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30651 <limits.h> exists even on freestanding compilers. */
30654 # include <limits.h>
30656 # include <assert.h>
30661 /* Override any GCC internal prototype to avoid an error.
30662 Use char because int might match the return type of a GCC
30663 builtin and then its argument prototype would still apply. */
30668 /* The GNU C library defines this for functions which it implements
30669 to always fail with ENOSYS. Some functions are actually named
30670 something starting with __ and the normal name is an alias. */
30671 #if defined __stub_$ac_func || defined __stub___$ac_func
30678 return $ac_func ();
30683 rm -f conftest.$ac_objext conftest$ac_exeext
30684 if { (ac_try="$ac_link"
30685 case "(($ac_try" in
30686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30687 *) ac_try_echo=$ac_try;;
30689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30690 (eval "$ac_link") 2>conftest.er1
30692 grep -v '^ *+' conftest.er1 >conftest.err
30694 cat conftest.err >&5
30695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30696 (exit $ac_status); } &&
30697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30698 { (case "(($ac_try" in
30699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30700 *) ac_try_echo=$ac_try;;
30702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30703 (eval "$ac_try") 2>&5
30705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30706 (exit $ac_status); }; } &&
30707 { ac_try='test -s conftest$ac_exeext'
30708 { (case "(($ac_try" in
30709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30710 *) ac_try_echo=$ac_try;;
30712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30713 (eval "$ac_try") 2>&5
30715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30716 (exit $ac_status); }; }; then
30717 eval "$as_ac_var=yes"
30719 echo "$as_me: failed program was:" >&5
30720 sed 's/^/| /' conftest.$ac_ext >&5
30722 eval "$as_ac_var=no"
30725 rm -f core conftest.err conftest.$ac_objext \
30726 conftest$ac_exeext conftest.$ac_ext
30728 ac_res=`eval echo '${'$as_ac_var'}'`
30729 { echo "$as_me:$LINENO: result: $ac_res" >&5
30730 echo "${ECHO_T}$ac_res" >&6; }
30731 if test `eval echo '${'$as_ac_var'}'` = yes; then
30732 cat >>confdefs.h <<_ACEOF
30733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30742 for ac_func in isatty mkdtemp mkstemp
30744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30745 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30747 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30748 echo $ECHO_N "(cached) $ECHO_C" >&6
30750 cat >conftest.$ac_ext <<_ACEOF
30753 cat confdefs.h >>conftest.$ac_ext
30754 cat >>conftest.$ac_ext <<_ACEOF
30755 /* end confdefs.h. */
30756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30758 #define $ac_func innocuous_$ac_func
30760 /* System header to define __stub macros and hopefully few prototypes,
30761 which can conflict with char $ac_func (); below.
30762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30763 <limits.h> exists even on freestanding compilers. */
30766 # include <limits.h>
30768 # include <assert.h>
30773 /* Override any GCC internal prototype to avoid an error.
30774 Use char because int might match the return type of a GCC
30775 builtin and then its argument prototype would still apply. */
30780 /* The GNU C library defines this for functions which it implements
30781 to always fail with ENOSYS. Some functions are actually named
30782 something starting with __ and the normal name is an alias. */
30783 #if defined __stub_$ac_func || defined __stub___$ac_func
30790 return $ac_func ();
30795 rm -f conftest.$ac_objext conftest$ac_exeext
30796 if { (ac_try="$ac_link"
30797 case "(($ac_try" in
30798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30799 *) ac_try_echo=$ac_try;;
30801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30802 (eval "$ac_link") 2>conftest.er1
30804 grep -v '^ *+' conftest.er1 >conftest.err
30806 cat conftest.err >&5
30807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30808 (exit $ac_status); } &&
30809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30810 { (case "(($ac_try" in
30811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30812 *) ac_try_echo=$ac_try;;
30814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30815 (eval "$ac_try") 2>&5
30817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30818 (exit $ac_status); }; } &&
30819 { ac_try='test -s conftest$ac_exeext'
30820 { (case "(($ac_try" in
30821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30822 *) ac_try_echo=$ac_try;;
30824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30825 (eval "$ac_try") 2>&5
30827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30828 (exit $ac_status); }; }; then
30829 eval "$as_ac_var=yes"
30831 echo "$as_me: failed program was:" >&5
30832 sed 's/^/| /' conftest.$ac_ext >&5
30834 eval "$as_ac_var=no"
30837 rm -f core conftest.err conftest.$ac_objext \
30838 conftest$ac_exeext conftest.$ac_ext
30840 ac_res=`eval echo '${'$as_ac_var'}'`
30841 { echo "$as_me:$LINENO: result: $ac_res" >&5
30842 echo "${ECHO_T}$ac_res" >&6; }
30843 if test `eval echo '${'$as_ac_var'}'` = yes; then
30844 cat >>confdefs.h <<_ACEOF
30845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30858 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30861 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30863 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30864 echo $ECHO_N "(cached) $ECHO_C" >&6
30866 cat >conftest.$ac_ext <<_ACEOF
30869 cat confdefs.h >>conftest.$ac_ext
30870 cat >>conftest.$ac_ext <<_ACEOF
30871 /* end confdefs.h. */
30872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30874 #define $ac_func innocuous_$ac_func
30876 /* System header to define __stub macros and hopefully few prototypes,
30877 which can conflict with char $ac_func (); below.
30878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30879 <limits.h> exists even on freestanding compilers. */
30882 # include <limits.h>
30884 # include <assert.h>
30889 /* Override any GCC internal prototype to avoid an error.
30890 Use char because int might match the return type of a GCC
30891 builtin and then its argument prototype would still apply. */
30896 /* The GNU C library defines this for functions which it implements
30897 to always fail with ENOSYS. Some functions are actually named
30898 something starting with __ and the normal name is an alias. */
30899 #if defined __stub_$ac_func || defined __stub___$ac_func
30906 return $ac_func ();
30911 rm -f conftest.$ac_objext conftest$ac_exeext
30912 if { (ac_try="$ac_link"
30913 case "(($ac_try" in
30914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30915 *) ac_try_echo=$ac_try;;
30917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30918 (eval "$ac_link") 2>conftest.er1
30920 grep -v '^ *+' conftest.er1 >conftest.err
30922 cat conftest.err >&5
30923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30924 (exit $ac_status); } &&
30925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30926 { (case "(($ac_try" in
30927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30928 *) ac_try_echo=$ac_try;;
30930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30931 (eval "$ac_try") 2>&5
30933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30934 (exit $ac_status); }; } &&
30935 { ac_try='test -s conftest$ac_exeext'
30936 { (case "(($ac_try" in
30937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30938 *) ac_try_echo=$ac_try;;
30940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30941 (eval "$ac_try") 2>&5
30943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944 (exit $ac_status); }; }; then
30945 eval "$as_ac_var=yes"
30947 echo "$as_me: failed program was:" >&5
30948 sed 's/^/| /' conftest.$ac_ext >&5
30950 eval "$as_ac_var=no"
30953 rm -f core conftest.err conftest.$ac_objext \
30954 conftest$ac_exeext conftest.$ac_ext
30956 ac_res=`eval echo '${'$as_ac_var'}'`
30957 { echo "$as_me:$LINENO: result: $ac_res" >&5
30958 echo "${ECHO_T}$ac_res" >&6; }
30959 if test `eval echo '${'$as_ac_var'}'` = yes; then
30960 cat >>confdefs.h <<_ACEOF
30961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30971 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30974 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30976 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30977 echo $ECHO_N "(cached) $ECHO_C" >&6
30979 cat >conftest.$ac_ext <<_ACEOF
30982 cat confdefs.h >>conftest.$ac_ext
30983 cat >>conftest.$ac_ext <<_ACEOF
30984 /* end confdefs.h. */
30985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30987 #define $ac_func innocuous_$ac_func
30989 /* System header to define __stub macros and hopefully few prototypes,
30990 which can conflict with char $ac_func (); below.
30991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30992 <limits.h> exists even on freestanding compilers. */
30995 # include <limits.h>
30997 # include <assert.h>
31002 /* Override any GCC internal prototype to avoid an error.
31003 Use char because int might match the return type of a GCC
31004 builtin and then its argument prototype would still apply. */
31009 /* The GNU C library defines this for functions which it implements
31010 to always fail with ENOSYS. Some functions are actually named
31011 something starting with __ and the normal name is an alias. */
31012 #if defined __stub_$ac_func || defined __stub___$ac_func
31019 return $ac_func ();
31024 rm -f conftest.$ac_objext conftest$ac_exeext
31025 if { (ac_try="$ac_link"
31026 case "(($ac_try" in
31027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31028 *) ac_try_echo=$ac_try;;
31030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31031 (eval "$ac_link") 2>conftest.er1
31033 grep -v '^ *+' conftest.er1 >conftest.err
31035 cat conftest.err >&5
31036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31037 (exit $ac_status); } &&
31038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31039 { (case "(($ac_try" in
31040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31041 *) ac_try_echo=$ac_try;;
31043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31044 (eval "$ac_try") 2>&5
31046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31047 (exit $ac_status); }; } &&
31048 { ac_try='test -s conftest$ac_exeext'
31049 { (case "(($ac_try" in
31050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31051 *) ac_try_echo=$ac_try;;
31053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31054 (eval "$ac_try") 2>&5
31056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057 (exit $ac_status); }; }; then
31058 eval "$as_ac_var=yes"
31060 echo "$as_me: failed program was:" >&5
31061 sed 's/^/| /' conftest.$ac_ext >&5
31063 eval "$as_ac_var=no"
31066 rm -f core conftest.err conftest.$ac_objext \
31067 conftest$ac_exeext conftest.$ac_ext
31069 ac_res=`eval echo '${'$as_ac_var'}'`
31070 { echo "$as_me:$LINENO: result: $ac_res" >&5
31071 echo "${ECHO_T}$ac_res" >&6; }
31072 if test `eval echo '${'$as_ac_var'}'` = yes; then
31073 cat >>confdefs.h <<_ACEOF
31074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31084 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31087 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31089 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31090 echo $ECHO_N "(cached) $ECHO_C" >&6
31092 cat >conftest.$ac_ext <<_ACEOF
31095 cat confdefs.h >>conftest.$ac_ext
31096 cat >>conftest.$ac_ext <<_ACEOF
31097 /* end confdefs.h. */
31098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31100 #define $ac_func innocuous_$ac_func
31102 /* System header to define __stub macros and hopefully few prototypes,
31103 which can conflict with char $ac_func (); below.
31104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31105 <limits.h> exists even on freestanding compilers. */
31108 # include <limits.h>
31110 # include <assert.h>
31115 /* Override any GCC internal prototype to avoid an error.
31116 Use char because int might match the return type of a GCC
31117 builtin and then its argument prototype would still apply. */
31122 /* The GNU C library defines this for functions which it implements
31123 to always fail with ENOSYS. Some functions are actually named
31124 something starting with __ and the normal name is an alias. */
31125 #if defined __stub_$ac_func || defined __stub___$ac_func
31132 return $ac_func ();
31137 rm -f conftest.$ac_objext conftest$ac_exeext
31138 if { (ac_try="$ac_link"
31139 case "(($ac_try" in
31140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31141 *) ac_try_echo=$ac_try;;
31143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31144 (eval "$ac_link") 2>conftest.er1
31146 grep -v '^ *+' conftest.er1 >conftest.err
31148 cat conftest.err >&5
31149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31150 (exit $ac_status); } &&
31151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31152 { (case "(($ac_try" in
31153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31154 *) ac_try_echo=$ac_try;;
31156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31157 (eval "$ac_try") 2>&5
31159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160 (exit $ac_status); }; } &&
31161 { ac_try='test -s conftest$ac_exeext'
31162 { (case "(($ac_try" in
31163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31164 *) ac_try_echo=$ac_try;;
31166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31167 (eval "$ac_try") 2>&5
31169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170 (exit $ac_status); }; }; then
31171 eval "$as_ac_var=yes"
31173 echo "$as_me: failed program was:" >&5
31174 sed 's/^/| /' conftest.$ac_ext >&5
31176 eval "$as_ac_var=no"
31179 rm -f core conftest.err conftest.$ac_objext \
31180 conftest$ac_exeext conftest.$ac_ext
31182 ac_res=`eval echo '${'$as_ac_var'}'`
31183 { echo "$as_me:$LINENO: result: $ac_res" >&5
31184 echo "${ECHO_T}$ac_res" >&6; }
31185 if test `eval echo '${'$as_ac_var'}'` = yes; then
31186 cat >>confdefs.h <<_ACEOF
31187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31193 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31194 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31195 if test "${llvm_cv_c_printf_a+set}" = set; then
31196 echo $ECHO_N "(cached) $ECHO_C" >&6
31199 ac_cpp='$CPP $CPPFLAGS'
31200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31204 if test "$cross_compiling" = yes; then
31205 llvmac_cv_c_printf_a=no
31207 cat >conftest.$ac_ext <<_ACEOF
31211 cat confdefs.h >>conftest.$ac_ext
31212 cat >>conftest.$ac_ext <<_ACEOF
31213 /* end confdefs.h. */
31216 #include <stdlib.h>
31222 volatile double A, B;
31226 sprintf(Buffer, "%a", A);
31230 if (A != 0x1.999999999999ap-4)
31237 rm -f conftest$ac_exeext
31238 if { (ac_try="$ac_link"
31239 case "(($ac_try" in
31240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31241 *) ac_try_echo=$ac_try;;
31243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31244 (eval "$ac_link") 2>&5
31246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31248 { (case "(($ac_try" in
31249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31250 *) ac_try_echo=$ac_try;;
31252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31253 (eval "$ac_try") 2>&5
31255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31256 (exit $ac_status); }; }; then
31257 llvm_cv_c_printf_a=yes
31259 echo "$as_me: program exited with status $ac_status" >&5
31260 echo "$as_me: failed program was:" >&5
31261 sed 's/^/| /' conftest.$ac_ext >&5
31263 ( exit $ac_status )
31264 llvmac_cv_c_printf_a=no
31266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31271 ac_cpp='$CPP $CPPFLAGS'
31272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31277 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31278 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31279 if test "$llvm_cv_c_printf_a" = "yes"; then
31281 cat >>confdefs.h <<\_ACEOF
31282 #define HAVE_PRINTF_A 1
31287 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31288 # for constant arguments. Useless!
31289 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31290 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31291 if test "${ac_cv_working_alloca_h+set}" = set; then
31292 echo $ECHO_N "(cached) $ECHO_C" >&6
31294 cat >conftest.$ac_ext <<_ACEOF
31297 cat confdefs.h >>conftest.$ac_ext
31298 cat >>conftest.$ac_ext <<_ACEOF
31299 /* end confdefs.h. */
31300 #include <alloca.h>
31304 char *p = (char *) alloca (2 * sizeof (int));
31310 rm -f conftest.$ac_objext conftest$ac_exeext
31311 if { (ac_try="$ac_link"
31312 case "(($ac_try" in
31313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31314 *) ac_try_echo=$ac_try;;
31316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31317 (eval "$ac_link") 2>conftest.er1
31319 grep -v '^ *+' conftest.er1 >conftest.err
31321 cat conftest.err >&5
31322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31323 (exit $ac_status); } &&
31324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31325 { (case "(($ac_try" in
31326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31327 *) ac_try_echo=$ac_try;;
31329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31330 (eval "$ac_try") 2>&5
31332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31333 (exit $ac_status); }; } &&
31334 { ac_try='test -s conftest$ac_exeext'
31335 { (case "(($ac_try" in
31336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31337 *) ac_try_echo=$ac_try;;
31339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31340 (eval "$ac_try") 2>&5
31342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343 (exit $ac_status); }; }; then
31344 ac_cv_working_alloca_h=yes
31346 echo "$as_me: failed program was:" >&5
31347 sed 's/^/| /' conftest.$ac_ext >&5
31349 ac_cv_working_alloca_h=no
31352 rm -f core conftest.err conftest.$ac_objext \
31353 conftest$ac_exeext conftest.$ac_ext
31355 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31356 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31357 if test $ac_cv_working_alloca_h = yes; then
31359 cat >>confdefs.h <<\_ACEOF
31360 #define HAVE_ALLOCA_H 1
31365 { echo "$as_me:$LINENO: checking for alloca" >&5
31366 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31367 if test "${ac_cv_func_alloca_works+set}" = set; then
31368 echo $ECHO_N "(cached) $ECHO_C" >&6
31370 cat >conftest.$ac_ext <<_ACEOF
31373 cat confdefs.h >>conftest.$ac_ext
31374 cat >>conftest.$ac_ext <<_ACEOF
31375 /* end confdefs.h. */
31377 # define alloca __builtin_alloca
31380 # include <malloc.h>
31381 # define alloca _alloca
31384 # include <alloca.h>
31389 # ifndef alloca /* predefined by HP cc +Olibcalls */
31400 char *p = (char *) alloca (1);
31406 rm -f conftest.$ac_objext conftest$ac_exeext
31407 if { (ac_try="$ac_link"
31408 case "(($ac_try" in
31409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31410 *) ac_try_echo=$ac_try;;
31412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31413 (eval "$ac_link") 2>conftest.er1
31415 grep -v '^ *+' conftest.er1 >conftest.err
31417 cat conftest.err >&5
31418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31419 (exit $ac_status); } &&
31420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31421 { (case "(($ac_try" in
31422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31423 *) ac_try_echo=$ac_try;;
31425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31426 (eval "$ac_try") 2>&5
31428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31429 (exit $ac_status); }; } &&
31430 { ac_try='test -s conftest$ac_exeext'
31431 { (case "(($ac_try" in
31432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31433 *) ac_try_echo=$ac_try;;
31435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31436 (eval "$ac_try") 2>&5
31438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31439 (exit $ac_status); }; }; then
31440 ac_cv_func_alloca_works=yes
31442 echo "$as_me: failed program was:" >&5
31443 sed 's/^/| /' conftest.$ac_ext >&5
31445 ac_cv_func_alloca_works=no
31448 rm -f core conftest.err conftest.$ac_objext \
31449 conftest$ac_exeext conftest.$ac_ext
31451 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31452 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31454 if test $ac_cv_func_alloca_works = yes; then
31456 cat >>confdefs.h <<\_ACEOF
31457 #define HAVE_ALLOCA 1
31461 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31462 # that cause trouble. Some versions do not even contain alloca or
31463 # contain a buggy version. If you still want to use their alloca,
31464 # use ar to extract alloca.o from them instead of compiling alloca.c.
31466 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31468 cat >>confdefs.h <<\_ACEOF
31473 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31474 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31475 if test "${ac_cv_os_cray+set}" = set; then
31476 echo $ECHO_N "(cached) $ECHO_C" >&6
31478 cat >conftest.$ac_ext <<_ACEOF
31481 cat confdefs.h >>conftest.$ac_ext
31482 cat >>conftest.$ac_ext <<_ACEOF
31483 /* end confdefs.h. */
31484 #if defined CRAY && ! defined CRAY2
31491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31492 $EGREP "webecray" >/dev/null 2>&1; then
31500 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31501 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31502 if test $ac_cv_os_cray = yes; then
31503 for ac_func in _getb67 GETB67 getb67; do
31504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31505 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31508 echo $ECHO_N "(cached) $ECHO_C" >&6
31510 cat >conftest.$ac_ext <<_ACEOF
31513 cat confdefs.h >>conftest.$ac_ext
31514 cat >>conftest.$ac_ext <<_ACEOF
31515 /* end confdefs.h. */
31516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31518 #define $ac_func innocuous_$ac_func
31520 /* System header to define __stub macros and hopefully few prototypes,
31521 which can conflict with char $ac_func (); below.
31522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31523 <limits.h> exists even on freestanding compilers. */
31526 # include <limits.h>
31528 # include <assert.h>
31533 /* Override any GCC internal prototype to avoid an error.
31534 Use char because int might match the return type of a GCC
31535 builtin and then its argument prototype would still apply. */
31540 /* The GNU C library defines this for functions which it implements
31541 to always fail with ENOSYS. Some functions are actually named
31542 something starting with __ and the normal name is an alias. */
31543 #if defined __stub_$ac_func || defined __stub___$ac_func
31550 return $ac_func ();
31555 rm -f conftest.$ac_objext conftest$ac_exeext
31556 if { (ac_try="$ac_link"
31557 case "(($ac_try" in
31558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31559 *) ac_try_echo=$ac_try;;
31561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31562 (eval "$ac_link") 2>conftest.er1
31564 grep -v '^ *+' conftest.er1 >conftest.err
31566 cat conftest.err >&5
31567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31568 (exit $ac_status); } &&
31569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31570 { (case "(($ac_try" in
31571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31572 *) ac_try_echo=$ac_try;;
31574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31575 (eval "$ac_try") 2>&5
31577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31578 (exit $ac_status); }; } &&
31579 { ac_try='test -s conftest$ac_exeext'
31580 { (case "(($ac_try" in
31581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31582 *) ac_try_echo=$ac_try;;
31584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31585 (eval "$ac_try") 2>&5
31587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31588 (exit $ac_status); }; }; then
31589 eval "$as_ac_var=yes"
31591 echo "$as_me: failed program was:" >&5
31592 sed 's/^/| /' conftest.$ac_ext >&5
31594 eval "$as_ac_var=no"
31597 rm -f core conftest.err conftest.$ac_objext \
31598 conftest$ac_exeext conftest.$ac_ext
31600 ac_res=`eval echo '${'$as_ac_var'}'`
31601 { echo "$as_me:$LINENO: result: $ac_res" >&5
31602 echo "${ECHO_T}$ac_res" >&6; }
31603 if test `eval echo '${'$as_ac_var'}'` = yes; then
31605 cat >>confdefs.h <<_ACEOF
31606 #define CRAY_STACKSEG_END $ac_func
31615 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31616 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31617 if test "${ac_cv_c_stack_direction+set}" = set; then
31618 echo $ECHO_N "(cached) $ECHO_C" >&6
31620 if test "$cross_compiling" = yes; then
31621 ac_cv_c_stack_direction=0
31623 cat >conftest.$ac_ext <<_ACEOF
31626 cat confdefs.h >>conftest.$ac_ext
31627 cat >>conftest.$ac_ext <<_ACEOF
31628 /* end confdefs.h. */
31629 $ac_includes_default
31631 find_stack_direction ()
31633 static char *addr = 0;
31638 return find_stack_direction ();
31641 return (&dummy > addr) ? 1 : -1;
31647 return find_stack_direction () < 0;
31650 rm -f conftest$ac_exeext
31651 if { (ac_try="$ac_link"
31652 case "(($ac_try" in
31653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31654 *) ac_try_echo=$ac_try;;
31656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31657 (eval "$ac_link") 2>&5
31659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31661 { (case "(($ac_try" in
31662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31663 *) ac_try_echo=$ac_try;;
31665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31666 (eval "$ac_try") 2>&5
31668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31669 (exit $ac_status); }; }; then
31670 ac_cv_c_stack_direction=1
31672 echo "$as_me: program exited with status $ac_status" >&5
31673 echo "$as_me: failed program was:" >&5
31674 sed 's/^/| /' conftest.$ac_ext >&5
31676 ( exit $ac_status )
31677 ac_cv_c_stack_direction=-1
31679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31684 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31685 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31687 cat >>confdefs.h <<_ACEOF
31688 #define STACK_DIRECTION $ac_cv_c_stack_direction
31695 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31696 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31697 if test "${ac_cv_func_rand48+set}" = set; then
31698 echo $ECHO_N "(cached) $ECHO_C" >&6
31701 ac_cpp='$CXXCPP $CPPFLAGS'
31702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31706 cat >conftest.$ac_ext <<_ACEOF
31709 cat confdefs.h >>conftest.$ac_ext
31710 cat >>conftest.$ac_ext <<_ACEOF
31711 /* end confdefs.h. */
31712 #include <stdlib.h>
31716 srand48(0);lrand48();drand48();
31721 rm -f conftest.$ac_objext
31722 if { (ac_try="$ac_compile"
31723 case "(($ac_try" in
31724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31725 *) ac_try_echo=$ac_try;;
31727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31728 (eval "$ac_compile") 2>conftest.er1
31730 grep -v '^ *+' conftest.er1 >conftest.err
31732 cat conftest.err >&5
31733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31734 (exit $ac_status); } &&
31735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31736 { (case "(($ac_try" in
31737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31738 *) ac_try_echo=$ac_try;;
31740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31741 (eval "$ac_try") 2>&5
31743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31744 (exit $ac_status); }; } &&
31745 { ac_try='test -s conftest.$ac_objext'
31746 { (case "(($ac_try" in
31747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31748 *) ac_try_echo=$ac_try;;
31750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31751 (eval "$ac_try") 2>&5
31753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31754 (exit $ac_status); }; }; then
31755 ac_cv_func_rand48=yes
31757 echo "$as_me: failed program was:" >&5
31758 sed 's/^/| /' conftest.$ac_ext >&5
31760 ac_cv_func_rand48=no
31763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31765 ac_cpp='$CPP $CPPFLAGS'
31766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31771 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31772 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31774 if test "$ac_cv_func_rand48" = "yes" ; then
31776 cat >>confdefs.h <<\_ACEOF
31777 #define HAVE_RAND48 1
31783 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31784 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31785 if test "${ac_cv_cxx_namespaces+set}" = set; then
31786 echo $ECHO_N "(cached) $ECHO_C" >&6
31789 ac_cpp='$CXXCPP $CPPFLAGS'
31790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31794 cat >conftest.$ac_ext <<_ACEOF
31797 cat confdefs.h >>conftest.$ac_ext
31798 cat >>conftest.$ac_ext <<_ACEOF
31799 /* end confdefs.h. */
31800 namespace Outer { namespace Inner { int i = 0; }}
31804 using namespace Outer::Inner; return i;
31809 rm -f conftest.$ac_objext
31810 if { (ac_try="$ac_compile"
31811 case "(($ac_try" in
31812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31813 *) ac_try_echo=$ac_try;;
31815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31816 (eval "$ac_compile") 2>conftest.er1
31818 grep -v '^ *+' conftest.er1 >conftest.err
31820 cat conftest.err >&5
31821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31822 (exit $ac_status); } &&
31823 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31824 { (case "(($ac_try" in
31825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31826 *) ac_try_echo=$ac_try;;
31828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31829 (eval "$ac_try") 2>&5
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); }; } &&
31833 { ac_try='test -s conftest.$ac_objext'
31834 { (case "(($ac_try" in
31835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31836 *) ac_try_echo=$ac_try;;
31838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31839 (eval "$ac_try") 2>&5
31841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842 (exit $ac_status); }; }; then
31843 ac_cv_cxx_namespaces=yes
31845 echo "$as_me: failed program was:" >&5
31846 sed 's/^/| /' conftest.$ac_ext >&5
31848 ac_cv_cxx_namespaces=no
31851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31853 ac_cpp='$CPP $CPPFLAGS'
31854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31860 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31861 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31862 if test "$ac_cv_cxx_namespaces" = yes; then
31864 cat >>confdefs.h <<\_ACEOF
31865 #define HAVE_NAMESPACES
31870 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31871 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31872 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31873 echo $ECHO_N "(cached) $ECHO_C" >&6
31877 ac_cpp='$CXXCPP $CPPFLAGS'
31878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31882 cat >conftest.$ac_ext <<_ACEOF
31885 cat confdefs.h >>conftest.$ac_ext
31886 cat >>conftest.$ac_ext <<_ACEOF
31887 /* end confdefs.h. */
31888 #include <ext/hash_map>
31889 #ifdef HAVE_NAMESPACES
31890 using namespace std;
31895 hash_map<int, int> t;
31900 rm -f conftest.$ac_objext
31901 if { (ac_try="$ac_compile"
31902 case "(($ac_try" in
31903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31904 *) ac_try_echo=$ac_try;;
31906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31907 (eval "$ac_compile") 2>conftest.er1
31909 grep -v '^ *+' conftest.er1 >conftest.err
31911 cat conftest.err >&5
31912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31913 (exit $ac_status); } &&
31914 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31915 { (case "(($ac_try" in
31916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31917 *) ac_try_echo=$ac_try;;
31919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31920 (eval "$ac_try") 2>&5
31922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31923 (exit $ac_status); }; } &&
31924 { ac_try='test -s conftest.$ac_objext'
31925 { (case "(($ac_try" in
31926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31927 *) ac_try_echo=$ac_try;;
31929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31930 (eval "$ac_try") 2>&5
31932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31933 (exit $ac_status); }; }; then
31934 ac_cv_cxx_have_std_ext_hash_map=yes
31936 echo "$as_me: failed program was:" >&5
31937 sed 's/^/| /' conftest.$ac_ext >&5
31939 ac_cv_cxx_have_std_ext_hash_map=no
31942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31944 ac_cpp='$CPP $CPPFLAGS'
31945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31950 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31951 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31952 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31955 cat >>confdefs.h <<\_ACEOF
31956 #define HAVE_STD_EXT_HASH_MAP 1
31961 cat >>confdefs.h <<\_ACEOF
31962 #define HAVE_STD_EXT_HASH_MAP 0
31967 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31968 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31969 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31970 echo $ECHO_N "(cached) $ECHO_C" >&6
31974 ac_cpp='$CXXCPP $CPPFLAGS'
31975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31979 cat >conftest.$ac_ext <<_ACEOF
31982 cat confdefs.h >>conftest.$ac_ext
31983 cat >>conftest.$ac_ext <<_ACEOF
31984 /* end confdefs.h. */
31985 #include <ext/hash_map>
31986 #ifdef HAVE_NAMESPACES
31987 using namespace __gnu_cxx;
31992 hash_map<int,int> t;
31997 rm -f conftest.$ac_objext
31998 if { (ac_try="$ac_compile"
31999 case "(($ac_try" in
32000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32001 *) ac_try_echo=$ac_try;;
32003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32004 (eval "$ac_compile") 2>conftest.er1
32006 grep -v '^ *+' conftest.er1 >conftest.err
32008 cat conftest.err >&5
32009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010 (exit $ac_status); } &&
32011 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32012 { (case "(($ac_try" in
32013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32014 *) ac_try_echo=$ac_try;;
32016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32017 (eval "$ac_try") 2>&5
32019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32020 (exit $ac_status); }; } &&
32021 { ac_try='test -s conftest.$ac_objext'
32022 { (case "(($ac_try" in
32023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32024 *) ac_try_echo=$ac_try;;
32026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32027 (eval "$ac_try") 2>&5
32029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030 (exit $ac_status); }; }; then
32031 ac_cv_cxx_have_gnu_ext_hash_map=yes
32033 echo "$as_me: failed program was:" >&5
32034 sed 's/^/| /' conftest.$ac_ext >&5
32036 ac_cv_cxx_have_gnu_ext_hash_map=no
32039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32041 ac_cpp='$CPP $CPPFLAGS'
32042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32047 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32048 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32049 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32052 cat >>confdefs.h <<\_ACEOF
32053 #define HAVE_GNU_EXT_HASH_MAP 1
32058 cat >>confdefs.h <<\_ACEOF
32059 #define HAVE_GNU_EXT_HASH_MAP 0
32064 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32065 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32066 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32067 echo $ECHO_N "(cached) $ECHO_C" >&6
32071 ac_cpp='$CXXCPP $CPPFLAGS'
32072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32076 cat >conftest.$ac_ext <<_ACEOF
32079 cat confdefs.h >>conftest.$ac_ext
32080 cat >>conftest.$ac_ext <<_ACEOF
32081 /* end confdefs.h. */
32082 #include <hash_map>
32086 hash_map<int,int> t;
32091 rm -f conftest.$ac_objext
32092 if { (ac_try="$ac_compile"
32093 case "(($ac_try" in
32094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32095 *) ac_try_echo=$ac_try;;
32097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32098 (eval "$ac_compile") 2>conftest.er1
32100 grep -v '^ *+' conftest.er1 >conftest.err
32102 cat conftest.err >&5
32103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32104 (exit $ac_status); } &&
32105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32106 { (case "(($ac_try" in
32107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32108 *) ac_try_echo=$ac_try;;
32110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32111 (eval "$ac_try") 2>&5
32113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32114 (exit $ac_status); }; } &&
32115 { ac_try='test -s conftest.$ac_objext'
32116 { (case "(($ac_try" in
32117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32118 *) ac_try_echo=$ac_try;;
32120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32121 (eval "$ac_try") 2>&5
32123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32124 (exit $ac_status); }; }; then
32125 ac_cv_cxx_have_global_hash_map=yes
32127 echo "$as_me: failed program was:" >&5
32128 sed 's/^/| /' conftest.$ac_ext >&5
32130 ac_cv_cxx_have_global_hash_map=no
32133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32135 ac_cpp='$CPP $CPPFLAGS'
32136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32141 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32142 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32143 if test "$ac_cv_cxx_have_global_hash_map" = yes
32146 cat >>confdefs.h <<\_ACEOF
32147 #define HAVE_GLOBAL_HASH_MAP 1
32152 cat >>confdefs.h <<\_ACEOF
32153 #define HAVE_GLOBAL_HASH_MAP 0
32158 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32159 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32160 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32161 echo $ECHO_N "(cached) $ECHO_C" >&6
32165 ac_cpp='$CXXCPP $CPPFLAGS'
32166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32170 cat >conftest.$ac_ext <<_ACEOF
32173 cat confdefs.h >>conftest.$ac_ext
32174 cat >>conftest.$ac_ext <<_ACEOF
32175 /* end confdefs.h. */
32176 #include <ext/hash_set>
32177 #ifdef HAVE_NAMESPACES
32178 using namespace std;
32188 rm -f conftest.$ac_objext
32189 if { (ac_try="$ac_compile"
32190 case "(($ac_try" in
32191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32192 *) ac_try_echo=$ac_try;;
32194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32195 (eval "$ac_compile") 2>conftest.er1
32197 grep -v '^ *+' conftest.er1 >conftest.err
32199 cat conftest.err >&5
32200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32201 (exit $ac_status); } &&
32202 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32203 { (case "(($ac_try" in
32204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32205 *) ac_try_echo=$ac_try;;
32207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32208 (eval "$ac_try") 2>&5
32210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211 (exit $ac_status); }; } &&
32212 { ac_try='test -s conftest.$ac_objext'
32213 { (case "(($ac_try" in
32214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32215 *) ac_try_echo=$ac_try;;
32217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32218 (eval "$ac_try") 2>&5
32220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32221 (exit $ac_status); }; }; then
32222 ac_cv_cxx_have_std_ext_hash_set=yes
32224 echo "$as_me: failed program was:" >&5
32225 sed 's/^/| /' conftest.$ac_ext >&5
32227 ac_cv_cxx_have_std_ext_hash_set=no
32230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32232 ac_cpp='$CPP $CPPFLAGS'
32233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32238 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32239 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32240 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32243 cat >>confdefs.h <<\_ACEOF
32244 #define HAVE_STD_EXT_HASH_SET 1
32249 cat >>confdefs.h <<\_ACEOF
32250 #define HAVE_STD_EXT_HASH_SET 0
32255 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32256 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32257 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32258 echo $ECHO_N "(cached) $ECHO_C" >&6
32262 ac_cpp='$CXXCPP $CPPFLAGS'
32263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32267 cat >conftest.$ac_ext <<_ACEOF
32270 cat confdefs.h >>conftest.$ac_ext
32271 cat >>conftest.$ac_ext <<_ACEOF
32272 /* end confdefs.h. */
32273 #include <ext/hash_set>
32274 #ifdef HAVE_NAMESPACES
32275 using namespace __gnu_cxx;
32285 rm -f conftest.$ac_objext
32286 if { (ac_try="$ac_compile"
32287 case "(($ac_try" in
32288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32289 *) ac_try_echo=$ac_try;;
32291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32292 (eval "$ac_compile") 2>conftest.er1
32294 grep -v '^ *+' conftest.er1 >conftest.err
32296 cat conftest.err >&5
32297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32298 (exit $ac_status); } &&
32299 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32300 { (case "(($ac_try" in
32301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32302 *) ac_try_echo=$ac_try;;
32304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32305 (eval "$ac_try") 2>&5
32307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32308 (exit $ac_status); }; } &&
32309 { ac_try='test -s conftest.$ac_objext'
32310 { (case "(($ac_try" in
32311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32312 *) ac_try_echo=$ac_try;;
32314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32315 (eval "$ac_try") 2>&5
32317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32318 (exit $ac_status); }; }; then
32319 ac_cv_cxx_have_gnu_ext_hash_set=yes
32321 echo "$as_me: failed program was:" >&5
32322 sed 's/^/| /' conftest.$ac_ext >&5
32324 ac_cv_cxx_have_gnu_ext_hash_set=no
32327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32329 ac_cpp='$CPP $CPPFLAGS'
32330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32335 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32336 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32337 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32340 cat >>confdefs.h <<\_ACEOF
32341 #define HAVE_GNU_EXT_HASH_SET 1
32346 cat >>confdefs.h <<\_ACEOF
32347 #define HAVE_GNU_EXT_HASH_SET 0
32352 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32353 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32354 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32355 echo $ECHO_N "(cached) $ECHO_C" >&6
32359 ac_cpp='$CXXCPP $CPPFLAGS'
32360 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32361 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32362 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32364 cat >conftest.$ac_ext <<_ACEOF
32367 cat confdefs.h >>conftest.$ac_ext
32368 cat >>conftest.$ac_ext <<_ACEOF
32369 /* end confdefs.h. */
32370 #include <hash_set>
32374 hash_set<int> t; return 0;
32379 rm -f conftest.$ac_objext
32380 if { (ac_try="$ac_compile"
32381 case "(($ac_try" in
32382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32383 *) ac_try_echo=$ac_try;;
32385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32386 (eval "$ac_compile") 2>conftest.er1
32388 grep -v '^ *+' conftest.er1 >conftest.err
32390 cat conftest.err >&5
32391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32392 (exit $ac_status); } &&
32393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32394 { (case "(($ac_try" in
32395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32396 *) ac_try_echo=$ac_try;;
32398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32399 (eval "$ac_try") 2>&5
32401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32402 (exit $ac_status); }; } &&
32403 { ac_try='test -s conftest.$ac_objext'
32404 { (case "(($ac_try" in
32405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32406 *) ac_try_echo=$ac_try;;
32408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32409 (eval "$ac_try") 2>&5
32411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32412 (exit $ac_status); }; }; then
32413 ac_cv_cxx_have_global_hash_set=yes
32415 echo "$as_me: failed program was:" >&5
32416 sed 's/^/| /' conftest.$ac_ext >&5
32418 ac_cv_cxx_have_global_hash_set=no
32421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32423 ac_cpp='$CPP $CPPFLAGS'
32424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32429 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32430 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32431 if test "$ac_cv_cxx_have_global_hash_set" = yes
32434 cat >>confdefs.h <<\_ACEOF
32435 #define HAVE_GLOBAL_HASH_SET 1
32440 cat >>confdefs.h <<\_ACEOF
32441 #define HAVE_GLOBAL_HASH_SET 0
32446 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32447 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32448 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32449 echo $ECHO_N "(cached) $ECHO_C" >&6
32453 ac_cpp='$CXXCPP $CPPFLAGS'
32454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32458 cat >conftest.$ac_ext <<_ACEOF
32461 cat confdefs.h >>conftest.$ac_ext
32462 cat >>conftest.$ac_ext <<_ACEOF
32463 /* end confdefs.h. */
32464 #include <iterator>
32465 #ifdef HAVE_NAMESPACES
32466 using namespace std;
32471 iterator<int,int,int> t; return 0;
32476 rm -f conftest.$ac_objext
32477 if { (ac_try="$ac_compile"
32478 case "(($ac_try" in
32479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32480 *) ac_try_echo=$ac_try;;
32482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32483 (eval "$ac_compile") 2>conftest.er1
32485 grep -v '^ *+' conftest.er1 >conftest.err
32487 cat conftest.err >&5
32488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489 (exit $ac_status); } &&
32490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32491 { (case "(($ac_try" in
32492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32493 *) ac_try_echo=$ac_try;;
32495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32496 (eval "$ac_try") 2>&5
32498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499 (exit $ac_status); }; } &&
32500 { ac_try='test -s conftest.$ac_objext'
32501 { (case "(($ac_try" in
32502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32503 *) ac_try_echo=$ac_try;;
32505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32506 (eval "$ac_try") 2>&5
32508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509 (exit $ac_status); }; }; then
32510 ac_cv_cxx_have_std_iterator=yes
32512 echo "$as_me: failed program was:" >&5
32513 sed 's/^/| /' conftest.$ac_ext >&5
32515 ac_cv_cxx_have_std_iterator=no
32518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32520 ac_cpp='$CPP $CPPFLAGS'
32521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32527 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32528 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32529 if test "$ac_cv_cxx_have_std_iterator" = yes
32532 cat >>confdefs.h <<\_ACEOF
32533 #define HAVE_STD_ITERATOR 1
32538 cat >>confdefs.h <<\_ACEOF
32539 #define HAVE_STD_ITERATOR 0
32544 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32545 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32546 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32547 echo $ECHO_N "(cached) $ECHO_C" >&6
32551 ac_cpp='$CXXCPP $CPPFLAGS'
32552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32556 cat >conftest.$ac_ext <<_ACEOF
32559 cat confdefs.h >>conftest.$ac_ext
32560 cat >>conftest.$ac_ext <<_ACEOF
32561 /* end confdefs.h. */
32562 #include <iterator>
32563 #ifdef HAVE_NAMESPACES
32564 using namespace std;
32569 bidirectional_iterator<int,int> t; return 0;
32574 rm -f conftest.$ac_objext
32575 if { (ac_try="$ac_compile"
32576 case "(($ac_try" in
32577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32578 *) ac_try_echo=$ac_try;;
32580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32581 (eval "$ac_compile") 2>conftest.er1
32583 grep -v '^ *+' conftest.er1 >conftest.err
32585 cat conftest.err >&5
32586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32587 (exit $ac_status); } &&
32588 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32589 { (case "(($ac_try" in
32590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32591 *) ac_try_echo=$ac_try;;
32593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32594 (eval "$ac_try") 2>&5
32596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32597 (exit $ac_status); }; } &&
32598 { ac_try='test -s conftest.$ac_objext'
32599 { (case "(($ac_try" in
32600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32601 *) ac_try_echo=$ac_try;;
32603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32604 (eval "$ac_try") 2>&5
32606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32607 (exit $ac_status); }; }; then
32608 ac_cv_cxx_have_bi_iterator=yes
32610 echo "$as_me: failed program was:" >&5
32611 sed 's/^/| /' conftest.$ac_ext >&5
32613 ac_cv_cxx_have_bi_iterator=no
32616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32618 ac_cpp='$CPP $CPPFLAGS'
32619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32625 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32626 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32627 if test "$ac_cv_cxx_have_bi_iterator" = yes
32630 cat >>confdefs.h <<\_ACEOF
32631 #define HAVE_BI_ITERATOR 1
32636 cat >>confdefs.h <<\_ACEOF
32637 #define HAVE_BI_ITERATOR 0
32642 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32643 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32644 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32645 echo $ECHO_N "(cached) $ECHO_C" >&6
32649 ac_cpp='$CXXCPP $CPPFLAGS'
32650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32654 cat >conftest.$ac_ext <<_ACEOF
32657 cat confdefs.h >>conftest.$ac_ext
32658 cat >>conftest.$ac_ext <<_ACEOF
32659 /* end confdefs.h. */
32660 #include <iterator>
32661 #ifdef HAVE_NAMESPACES
32662 using namespace std;
32667 forward_iterator<int,int> t; return 0;
32672 rm -f conftest.$ac_objext
32673 if { (ac_try="$ac_compile"
32674 case "(($ac_try" in
32675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32676 *) ac_try_echo=$ac_try;;
32678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32679 (eval "$ac_compile") 2>conftest.er1
32681 grep -v '^ *+' conftest.er1 >conftest.err
32683 cat conftest.err >&5
32684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32685 (exit $ac_status); } &&
32686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32687 { (case "(($ac_try" in
32688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32689 *) ac_try_echo=$ac_try;;
32691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32692 (eval "$ac_try") 2>&5
32694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32695 (exit $ac_status); }; } &&
32696 { ac_try='test -s conftest.$ac_objext'
32697 { (case "(($ac_try" in
32698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32699 *) ac_try_echo=$ac_try;;
32701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32702 (eval "$ac_try") 2>&5
32704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705 (exit $ac_status); }; }; then
32706 ac_cv_cxx_have_fwd_iterator=yes
32708 echo "$as_me: failed program was:" >&5
32709 sed 's/^/| /' conftest.$ac_ext >&5
32711 ac_cv_cxx_have_fwd_iterator=no
32714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32716 ac_cpp='$CPP $CPPFLAGS'
32717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32723 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32724 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32725 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32728 cat >>confdefs.h <<\_ACEOF
32729 #define HAVE_FWD_ITERATOR 1
32734 cat >>confdefs.h <<\_ACEOF
32735 #define HAVE_FWD_ITERATOR 0
32741 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32742 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32743 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32744 echo $ECHO_N "(cached) $ECHO_C" >&6
32747 ac_cpp='$CXXCPP $CPPFLAGS'
32748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32752 cat >conftest.$ac_ext <<_ACEOF
32755 cat confdefs.h >>conftest.$ac_ext
32756 cat >>conftest.$ac_ext <<_ACEOF
32757 /* end confdefs.h. */
32767 rm -f conftest.$ac_objext
32768 if { (ac_try="$ac_compile"
32769 case "(($ac_try" in
32770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32771 *) ac_try_echo=$ac_try;;
32773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32774 (eval "$ac_compile") 2>conftest.er1
32776 grep -v '^ *+' conftest.er1 >conftest.err
32778 cat conftest.err >&5
32779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780 (exit $ac_status); } &&
32781 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32782 { (case "(($ac_try" in
32783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32784 *) ac_try_echo=$ac_try;;
32786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32787 (eval "$ac_try") 2>&5
32789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32790 (exit $ac_status); }; } &&
32791 { ac_try='test -s conftest.$ac_objext'
32792 { (case "(($ac_try" in
32793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32794 *) ac_try_echo=$ac_try;;
32796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32797 (eval "$ac_try") 2>&5
32799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32800 (exit $ac_status); }; }; then
32801 ac_cv_func_isnan_in_math_h=yes
32803 echo "$as_me: failed program was:" >&5
32804 sed 's/^/| /' conftest.$ac_ext >&5
32806 ac_cv_func_isnan_in_math_h=no
32809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32811 ac_cpp='$CPP $CPPFLAGS'
32812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32817 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32818 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32821 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32823 cat >>confdefs.h <<\_ACEOF
32824 #define HAVE_ISNAN_IN_MATH_H 1
32829 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32830 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32831 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32832 echo $ECHO_N "(cached) $ECHO_C" >&6
32835 ac_cpp='$CXXCPP $CPPFLAGS'
32836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32840 cat >conftest.$ac_ext <<_ACEOF
32843 cat confdefs.h >>conftest.$ac_ext
32844 cat >>conftest.$ac_ext <<_ACEOF
32845 /* end confdefs.h. */
32855 rm -f conftest.$ac_objext
32856 if { (ac_try="$ac_compile"
32857 case "(($ac_try" in
32858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32859 *) ac_try_echo=$ac_try;;
32861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32862 (eval "$ac_compile") 2>conftest.er1
32864 grep -v '^ *+' conftest.er1 >conftest.err
32866 cat conftest.err >&5
32867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32868 (exit $ac_status); } &&
32869 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32870 { (case "(($ac_try" in
32871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32872 *) ac_try_echo=$ac_try;;
32874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32875 (eval "$ac_try") 2>&5
32877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32878 (exit $ac_status); }; } &&
32879 { ac_try='test -s conftest.$ac_objext'
32880 { (case "(($ac_try" in
32881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32882 *) ac_try_echo=$ac_try;;
32884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32885 (eval "$ac_try") 2>&5
32887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32888 (exit $ac_status); }; }; then
32889 ac_cv_func_isnan_in_cmath=yes
32891 echo "$as_me: failed program was:" >&5
32892 sed 's/^/| /' conftest.$ac_ext >&5
32894 ac_cv_func_isnan_in_cmath=no
32897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32899 ac_cpp='$CPP $CPPFLAGS'
32900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32905 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32906 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32908 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32910 cat >>confdefs.h <<\_ACEOF
32911 #define HAVE_ISNAN_IN_CMATH 1
32916 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32917 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32918 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32919 echo $ECHO_N "(cached) $ECHO_C" >&6
32922 ac_cpp='$CXXCPP $CPPFLAGS'
32923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32927 cat >conftest.$ac_ext <<_ACEOF
32930 cat confdefs.h >>conftest.$ac_ext
32931 cat >>conftest.$ac_ext <<_ACEOF
32932 /* end confdefs.h. */
32937 float f; std::isnan(f);
32942 rm -f conftest.$ac_objext
32943 if { (ac_try="$ac_compile"
32944 case "(($ac_try" in
32945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32946 *) ac_try_echo=$ac_try;;
32948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32949 (eval "$ac_compile") 2>conftest.er1
32951 grep -v '^ *+' conftest.er1 >conftest.err
32953 cat conftest.err >&5
32954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32955 (exit $ac_status); } &&
32956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32957 { (case "(($ac_try" in
32958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32959 *) ac_try_echo=$ac_try;;
32961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32962 (eval "$ac_try") 2>&5
32964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32965 (exit $ac_status); }; } &&
32966 { ac_try='test -s conftest.$ac_objext'
32967 { (case "(($ac_try" in
32968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32969 *) ac_try_echo=$ac_try;;
32971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32972 (eval "$ac_try") 2>&5
32974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975 (exit $ac_status); }; }; then
32976 ac_cv_func_std_isnan_in_cmath=yes
32978 echo "$as_me: failed program was:" >&5
32979 sed 's/^/| /' conftest.$ac_ext >&5
32981 ac_cv_func_std_isnan_in_cmath=no
32984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32986 ac_cpp='$CPP $CPPFLAGS'
32987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32992 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32993 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32995 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32997 cat >>confdefs.h <<\_ACEOF
32998 #define HAVE_STD_ISNAN_IN_CMATH 1
33004 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33005 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33006 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33007 echo $ECHO_N "(cached) $ECHO_C" >&6
33010 ac_cpp='$CXXCPP $CPPFLAGS'
33011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33015 cat >conftest.$ac_ext <<_ACEOF
33018 cat confdefs.h >>conftest.$ac_ext
33019 cat >>conftest.$ac_ext <<_ACEOF
33020 /* end confdefs.h. */
33030 rm -f conftest.$ac_objext
33031 if { (ac_try="$ac_compile"
33032 case "(($ac_try" in
33033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33034 *) ac_try_echo=$ac_try;;
33036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33037 (eval "$ac_compile") 2>conftest.er1
33039 grep -v '^ *+' conftest.er1 >conftest.err
33041 cat conftest.err >&5
33042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043 (exit $ac_status); } &&
33044 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33045 { (case "(($ac_try" in
33046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33047 *) ac_try_echo=$ac_try;;
33049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33050 (eval "$ac_try") 2>&5
33052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053 (exit $ac_status); }; } &&
33054 { ac_try='test -s conftest.$ac_objext'
33055 { (case "(($ac_try" in
33056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33057 *) ac_try_echo=$ac_try;;
33059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33060 (eval "$ac_try") 2>&5
33062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33063 (exit $ac_status); }; }; then
33064 ac_cv_func_isinf_in_math_h=yes
33066 echo "$as_me: failed program was:" >&5
33067 sed 's/^/| /' conftest.$ac_ext >&5
33069 ac_cv_func_isinf_in_math_h=no
33072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33074 ac_cpp='$CPP $CPPFLAGS'
33075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33080 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33081 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33083 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33085 cat >>confdefs.h <<\_ACEOF
33086 #define HAVE_ISINF_IN_MATH_H 1
33091 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33092 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33093 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33094 echo $ECHO_N "(cached) $ECHO_C" >&6
33097 ac_cpp='$CXXCPP $CPPFLAGS'
33098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33102 cat >conftest.$ac_ext <<_ACEOF
33105 cat confdefs.h >>conftest.$ac_ext
33106 cat >>conftest.$ac_ext <<_ACEOF
33107 /* end confdefs.h. */
33117 rm -f conftest.$ac_objext
33118 if { (ac_try="$ac_compile"
33119 case "(($ac_try" in
33120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33121 *) ac_try_echo=$ac_try;;
33123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33124 (eval "$ac_compile") 2>conftest.er1
33126 grep -v '^ *+' conftest.er1 >conftest.err
33128 cat conftest.err >&5
33129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33130 (exit $ac_status); } &&
33131 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33132 { (case "(($ac_try" in
33133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33134 *) ac_try_echo=$ac_try;;
33136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33137 (eval "$ac_try") 2>&5
33139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140 (exit $ac_status); }; } &&
33141 { ac_try='test -s conftest.$ac_objext'
33142 { (case "(($ac_try" in
33143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33144 *) ac_try_echo=$ac_try;;
33146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33147 (eval "$ac_try") 2>&5
33149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150 (exit $ac_status); }; }; then
33151 ac_cv_func_isinf_in_cmath=yes
33153 echo "$as_me: failed program was:" >&5
33154 sed 's/^/| /' conftest.$ac_ext >&5
33156 ac_cv_func_isinf_in_cmath=no
33159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33161 ac_cpp='$CPP $CPPFLAGS'
33162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33167 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33168 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33170 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33172 cat >>confdefs.h <<\_ACEOF
33173 #define HAVE_ISINF_IN_CMATH 1
33178 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33179 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33180 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33181 echo $ECHO_N "(cached) $ECHO_C" >&6
33184 ac_cpp='$CXXCPP $CPPFLAGS'
33185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33189 cat >conftest.$ac_ext <<_ACEOF
33192 cat confdefs.h >>conftest.$ac_ext
33193 cat >>conftest.$ac_ext <<_ACEOF
33194 /* end confdefs.h. */
33199 float f; std::isinf(f)}
33204 rm -f conftest.$ac_objext
33205 if { (ac_try="$ac_compile"
33206 case "(($ac_try" in
33207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33208 *) ac_try_echo=$ac_try;;
33210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33211 (eval "$ac_compile") 2>conftest.er1
33213 grep -v '^ *+' conftest.er1 >conftest.err
33215 cat conftest.err >&5
33216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33217 (exit $ac_status); } &&
33218 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33219 { (case "(($ac_try" in
33220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33221 *) ac_try_echo=$ac_try;;
33223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33224 (eval "$ac_try") 2>&5
33226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33227 (exit $ac_status); }; } &&
33228 { ac_try='test -s conftest.$ac_objext'
33229 { (case "(($ac_try" in
33230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33231 *) ac_try_echo=$ac_try;;
33233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33234 (eval "$ac_try") 2>&5
33236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33237 (exit $ac_status); }; }; then
33238 ac_cv_func_std_isinf_in_cmath=yes
33240 echo "$as_me: failed program was:" >&5
33241 sed 's/^/| /' conftest.$ac_ext >&5
33243 ac_cv_func_std_isinf_in_cmath=no
33246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33248 ac_cpp='$CPP $CPPFLAGS'
33249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33254 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33255 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33257 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33259 cat >>confdefs.h <<\_ACEOF
33260 #define HAVE_STD_ISINF_IN_CMATH 1
33265 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33266 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33267 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33268 echo $ECHO_N "(cached) $ECHO_C" >&6
33271 ac_cpp='$CXXCPP $CPPFLAGS'
33272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33276 cat >conftest.$ac_ext <<_ACEOF
33279 cat confdefs.h >>conftest.$ac_ext
33280 cat >>conftest.$ac_ext <<_ACEOF
33281 /* end confdefs.h. */
33282 #include <ieeefp.h>
33286 float f; finite(f);
33291 rm -f conftest.$ac_objext
33292 if { (ac_try="$ac_compile"
33293 case "(($ac_try" in
33294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33295 *) ac_try_echo=$ac_try;;
33297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33298 (eval "$ac_compile") 2>conftest.er1
33300 grep -v '^ *+' conftest.er1 >conftest.err
33302 cat conftest.err >&5
33303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33304 (exit $ac_status); } &&
33305 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33306 { (case "(($ac_try" in
33307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33308 *) ac_try_echo=$ac_try;;
33310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33311 (eval "$ac_try") 2>&5
33313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33314 (exit $ac_status); }; } &&
33315 { ac_try='test -s conftest.$ac_objext'
33316 { (case "(($ac_try" in
33317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33318 *) ac_try_echo=$ac_try;;
33320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33321 (eval "$ac_try") 2>&5
33323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324 (exit $ac_status); }; }; then
33325 ac_cv_func_finite_in_ieeefp_h=yes
33327 echo "$as_me: failed program was:" >&5
33328 sed 's/^/| /' conftest.$ac_ext >&5
33330 ac_cv_func_finite_in_ieeefp_h=no
33333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33335 ac_cpp='$CPP $CPPFLAGS'
33336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33341 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33342 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33344 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33346 cat >>confdefs.h <<\_ACEOF
33347 #define HAVE_FINITE_IN_IEEEFP_H 1
33354 if test "$llvm_cv_platform_type" = "Unix" ; then
33357 for ac_header in stdlib.h unistd.h
33359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33364 echo $ECHO_N "(cached) $ECHO_C" >&6
33366 ac_res=`eval echo '${'$as_ac_Header'}'`
33367 { echo "$as_me:$LINENO: result: $ac_res" >&5
33368 echo "${ECHO_T}$ac_res" >&6; }
33370 # Is the header compilable?
33371 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33373 cat >conftest.$ac_ext <<_ACEOF
33376 cat confdefs.h >>conftest.$ac_ext
33377 cat >>conftest.$ac_ext <<_ACEOF
33378 /* end confdefs.h. */
33379 $ac_includes_default
33380 #include <$ac_header>
33382 rm -f conftest.$ac_objext
33383 if { (ac_try="$ac_compile"
33384 case "(($ac_try" in
33385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33386 *) ac_try_echo=$ac_try;;
33388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33389 (eval "$ac_compile") 2>conftest.er1
33391 grep -v '^ *+' conftest.er1 >conftest.err
33393 cat conftest.err >&5
33394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33395 (exit $ac_status); } &&
33396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33397 { (case "(($ac_try" in
33398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33399 *) ac_try_echo=$ac_try;;
33401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33402 (eval "$ac_try") 2>&5
33404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33405 (exit $ac_status); }; } &&
33406 { ac_try='test -s conftest.$ac_objext'
33407 { (case "(($ac_try" in
33408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33409 *) ac_try_echo=$ac_try;;
33411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33412 (eval "$ac_try") 2>&5
33414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33415 (exit $ac_status); }; }; then
33416 ac_header_compiler=yes
33418 echo "$as_me: failed program was:" >&5
33419 sed 's/^/| /' conftest.$ac_ext >&5
33421 ac_header_compiler=no
33424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33426 echo "${ECHO_T}$ac_header_compiler" >&6; }
33428 # Is the header present?
33429 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33431 cat >conftest.$ac_ext <<_ACEOF
33434 cat confdefs.h >>conftest.$ac_ext
33435 cat >>conftest.$ac_ext <<_ACEOF
33436 /* end confdefs.h. */
33437 #include <$ac_header>
33439 if { (ac_try="$ac_cpp conftest.$ac_ext"
33440 case "(($ac_try" in
33441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33442 *) ac_try_echo=$ac_try;;
33444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33447 grep -v '^ *+' conftest.er1 >conftest.err
33449 cat conftest.err >&5
33450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33451 (exit $ac_status); } >/dev/null; then
33452 if test -s conftest.err; then
33453 ac_cpp_err=$ac_c_preproc_warn_flag
33454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33461 if test -z "$ac_cpp_err"; then
33462 ac_header_preproc=yes
33464 echo "$as_me: failed program was:" >&5
33465 sed 's/^/| /' conftest.$ac_ext >&5
33467 ac_header_preproc=no
33470 rm -f conftest.err conftest.$ac_ext
33471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33472 echo "${ECHO_T}$ac_header_preproc" >&6; }
33474 # So? What about this header?
33475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33481 ac_header_preproc=yes
33484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33497 ## ----------------------------------- ##
33498 ## Report this to llvmbugs@cs.uiuc.edu ##
33499 ## ----------------------------------- ##
33501 ) | sed "s/^/$as_me: WARNING: /" >&2
33504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33507 echo $ECHO_N "(cached) $ECHO_C" >&6
33509 eval "$as_ac_Header=\$ac_header_preproc"
33511 ac_res=`eval echo '${'$as_ac_Header'}'`
33512 { echo "$as_me:$LINENO: result: $ac_res" >&5
33513 echo "${ECHO_T}$ac_res" >&6; }
33516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33517 cat >>confdefs.h <<_ACEOF
33518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33526 for ac_func in getpagesize
33528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33529 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33531 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33532 echo $ECHO_N "(cached) $ECHO_C" >&6
33534 cat >conftest.$ac_ext <<_ACEOF
33537 cat confdefs.h >>conftest.$ac_ext
33538 cat >>conftest.$ac_ext <<_ACEOF
33539 /* end confdefs.h. */
33540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33542 #define $ac_func innocuous_$ac_func
33544 /* System header to define __stub macros and hopefully few prototypes,
33545 which can conflict with char $ac_func (); below.
33546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33547 <limits.h> exists even on freestanding compilers. */
33550 # include <limits.h>
33552 # include <assert.h>
33557 /* Override any GCC internal prototype to avoid an error.
33558 Use char because int might match the return type of a GCC
33559 builtin and then its argument prototype would still apply. */
33564 /* The GNU C library defines this for functions which it implements
33565 to always fail with ENOSYS. Some functions are actually named
33566 something starting with __ and the normal name is an alias. */
33567 #if defined __stub_$ac_func || defined __stub___$ac_func
33574 return $ac_func ();
33579 rm -f conftest.$ac_objext conftest$ac_exeext
33580 if { (ac_try="$ac_link"
33581 case "(($ac_try" in
33582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33583 *) ac_try_echo=$ac_try;;
33585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33586 (eval "$ac_link") 2>conftest.er1
33588 grep -v '^ *+' conftest.er1 >conftest.err
33590 cat conftest.err >&5
33591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33592 (exit $ac_status); } &&
33593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33594 { (case "(($ac_try" in
33595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33596 *) ac_try_echo=$ac_try;;
33598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33599 (eval "$ac_try") 2>&5
33601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33602 (exit $ac_status); }; } &&
33603 { ac_try='test -s conftest$ac_exeext'
33604 { (case "(($ac_try" in
33605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33606 *) ac_try_echo=$ac_try;;
33608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33609 (eval "$ac_try") 2>&5
33611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33612 (exit $ac_status); }; }; then
33613 eval "$as_ac_var=yes"
33615 echo "$as_me: failed program was:" >&5
33616 sed 's/^/| /' conftest.$ac_ext >&5
33618 eval "$as_ac_var=no"
33621 rm -f core conftest.err conftest.$ac_objext \
33622 conftest$ac_exeext conftest.$ac_ext
33624 ac_res=`eval echo '${'$as_ac_var'}'`
33625 { echo "$as_me:$LINENO: result: $ac_res" >&5
33626 echo "${ECHO_T}$ac_res" >&6; }
33627 if test `eval echo '${'$as_ac_var'}'` = yes; then
33628 cat >>confdefs.h <<_ACEOF
33629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33635 { echo "$as_me:$LINENO: checking for working mmap" >&5
33636 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33637 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33638 echo $ECHO_N "(cached) $ECHO_C" >&6
33640 if test "$cross_compiling" = yes; then
33641 ac_cv_func_mmap_fixed_mapped=no
33643 cat >conftest.$ac_ext <<_ACEOF
33646 cat confdefs.h >>conftest.$ac_ext
33647 cat >>conftest.$ac_ext <<_ACEOF
33648 /* end confdefs.h. */
33649 $ac_includes_default
33650 /* malloc might have been renamed as rpl_malloc. */
33653 /* Thanks to Mike Haertel and Jim Avera for this test.
33654 Here is a matrix of mmap possibilities:
33655 mmap private not fixed
33656 mmap private fixed at somewhere currently unmapped
33657 mmap private fixed at somewhere already mapped
33658 mmap shared not fixed
33659 mmap shared fixed at somewhere currently unmapped
33660 mmap shared fixed at somewhere already mapped
33661 For private mappings, we should verify that changes cannot be read()
33662 back from the file, nor mmap's back from the file at a different
33663 address. (There have been systems where private was not correctly
33664 implemented like the infamous i386 svr4.0, and systems where the
33665 VM page cache was not coherent with the file system buffer cache
33666 like early versions of FreeBSD and possibly contemporary NetBSD.)
33667 For shared mappings, we should conversely verify that changes get
33668 propagated back to all the places they're supposed to be.
33670 Grep wants private fixed already mapped.
33671 The main things grep needs to know about mmap are:
33672 * does it exist and is it safe to write into the mmap'd area
33673 * how to use it (BSD variants) */
33676 #include <sys/mman.h>
33678 #if !STDC_HEADERS && !HAVE_STDLIB_H
33682 /* This mess was copied from the GNU getpagesize.h. */
33683 #if !HAVE_GETPAGESIZE
33684 /* Assume that all systems that can run configure have sys/param.h. */
33685 # if !HAVE_SYS_PARAM_H
33686 # define HAVE_SYS_PARAM_H 1
33689 # ifdef _SC_PAGESIZE
33690 # define getpagesize() sysconf(_SC_PAGESIZE)
33691 # else /* no _SC_PAGESIZE */
33692 # if HAVE_SYS_PARAM_H
33693 # include <sys/param.h>
33694 # ifdef EXEC_PAGESIZE
33695 # define getpagesize() EXEC_PAGESIZE
33696 # else /* no EXEC_PAGESIZE */
33698 # define getpagesize() NBPG * CLSIZE
33701 # endif /* no CLSIZE */
33702 # else /* no NBPG */
33704 # define getpagesize() NBPC
33705 # else /* no NBPC */
33707 # define getpagesize() PAGESIZE
33708 # endif /* PAGESIZE */
33709 # endif /* no NBPC */
33710 # endif /* no NBPG */
33711 # endif /* no EXEC_PAGESIZE */
33712 # else /* no HAVE_SYS_PARAM_H */
33713 # define getpagesize() 8192 /* punt totally */
33714 # endif /* no HAVE_SYS_PARAM_H */
33715 # endif /* no _SC_PAGESIZE */
33717 #endif /* no HAVE_GETPAGESIZE */
33722 char *data, *data2, *data3;
33726 pagesize = getpagesize ();
33728 /* First, make a file with some known garbage in it. */
33729 data = (char *) malloc (pagesize);
33732 for (i = 0; i < pagesize; ++i)
33733 *(data + i) = rand ();
33735 fd = creat ("conftest.mmap", 0600);
33738 if (write (fd, data, pagesize) != pagesize)
33742 /* Next, try to mmap the file at a fixed address which already has
33743 something else allocated at it. If we can, also make sure that
33744 we see the same garbage. */
33745 fd = open ("conftest.mmap", O_RDWR);
33748 data2 = (char *) malloc (2 * pagesize);
33751 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33752 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33753 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33755 for (i = 0; i < pagesize; ++i)
33756 if (*(data + i) != *(data2 + i))
33759 /* Finally, make sure that changes to the mapped area do not
33760 percolate back to the file as seen by read(). (This is a bug on
33761 some variants of i386 svr4.0.) */
33762 for (i = 0; i < pagesize; ++i)
33763 *(data2 + i) = *(data2 + i) + 1;
33764 data3 = (char *) malloc (pagesize);
33767 if (read (fd, data3, pagesize) != pagesize)
33769 for (i = 0; i < pagesize; ++i)
33770 if (*(data + i) != *(data3 + i))
33776 rm -f conftest$ac_exeext
33777 if { (ac_try="$ac_link"
33778 case "(($ac_try" in
33779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33780 *) ac_try_echo=$ac_try;;
33782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33783 (eval "$ac_link") 2>&5
33785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33787 { (case "(($ac_try" in
33788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33789 *) ac_try_echo=$ac_try;;
33791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33792 (eval "$ac_try") 2>&5
33794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33795 (exit $ac_status); }; }; then
33796 ac_cv_func_mmap_fixed_mapped=yes
33798 echo "$as_me: program exited with status $ac_status" >&5
33799 echo "$as_me: failed program was:" >&5
33800 sed 's/^/| /' conftest.$ac_ext >&5
33802 ( exit $ac_status )
33803 ac_cv_func_mmap_fixed_mapped=no
33805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33810 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33811 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33812 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33814 cat >>confdefs.h <<\_ACEOF
33815 #define HAVE_MMAP 1
33819 rm -f conftest.mmap
33821 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33822 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33823 if test "${ac_cv_func_mmap_file+set}" = set; then
33824 echo $ECHO_N "(cached) $ECHO_C" >&6
33827 ac_cpp='$CPP $CPPFLAGS'
33828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33832 if test "$cross_compiling" = yes; then
33833 ac_cv_func_mmap_file=no
33835 cat >conftest.$ac_ext <<_ACEOF
33839 cat confdefs.h >>conftest.$ac_ext
33840 cat >>conftest.$ac_ext <<_ACEOF
33841 /* end confdefs.h. */
33843 #include <sys/types.h>
33844 #include <sys/mman.h>
33852 fd = creat ("foo",0777);
33853 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33855 return (fd != (int) MAP_FAILED);
33860 rm -f conftest$ac_exeext
33861 if { (ac_try="$ac_link"
33862 case "(($ac_try" in
33863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33864 *) ac_try_echo=$ac_try;;
33866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33867 (eval "$ac_link") 2>&5
33869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33871 { (case "(($ac_try" in
33872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33873 *) ac_try_echo=$ac_try;;
33875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33876 (eval "$ac_try") 2>&5
33878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33879 (exit $ac_status); }; }; then
33880 ac_cv_func_mmap_file=yes
33882 echo "$as_me: program exited with status $ac_status" >&5
33883 echo "$as_me: failed program was:" >&5
33884 sed 's/^/| /' conftest.$ac_ext >&5
33886 ( exit $ac_status )
33887 ac_cv_func_mmap_file=no
33889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33894 ac_cpp='$CPP $CPPFLAGS'
33895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33901 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33902 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33903 if test "$ac_cv_func_mmap_file" = yes; then
33905 cat >>confdefs.h <<\_ACEOF
33906 #define HAVE_MMAP_FILE
33913 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33914 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33915 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33916 echo $ECHO_N "(cached) $ECHO_C" >&6
33918 if test "$llvm_cv_os_type" = "Interix" ; then
33919 ac_cv_need_dev_zero_for_mmap=yes
33921 ac_cv_need_dev_zero_for_mmap=no
33925 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33926 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33927 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33929 cat >>confdefs.h <<\_ACEOF
33930 #define NEED_DEV_ZERO_FOR_MMAP 1
33935 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33937 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33938 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33940 if test "$ac_cv_func_mmap_file" = "no"
33942 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33943 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33949 for ac_func in __dso_handle
33951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33955 echo $ECHO_N "(cached) $ECHO_C" >&6
33957 cat >conftest.$ac_ext <<_ACEOF
33960 cat confdefs.h >>conftest.$ac_ext
33961 cat >>conftest.$ac_ext <<_ACEOF
33962 /* end confdefs.h. */
33963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33965 #define $ac_func innocuous_$ac_func
33967 /* System header to define __stub macros and hopefully few prototypes,
33968 which can conflict with char $ac_func (); below.
33969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33970 <limits.h> exists even on freestanding compilers. */
33973 # include <limits.h>
33975 # include <assert.h>
33980 /* Override any GCC internal prototype to avoid an error.
33981 Use char because int might match the return type of a GCC
33982 builtin and then its argument prototype would still apply. */
33987 /* The GNU C library defines this for functions which it implements
33988 to always fail with ENOSYS. Some functions are actually named
33989 something starting with __ and the normal name is an alias. */
33990 #if defined __stub_$ac_func || defined __stub___$ac_func
33997 return $ac_func ();
34002 rm -f conftest.$ac_objext conftest$ac_exeext
34003 if { (ac_try="$ac_link"
34004 case "(($ac_try" in
34005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34006 *) ac_try_echo=$ac_try;;
34008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34009 (eval "$ac_link") 2>conftest.er1
34011 grep -v '^ *+' conftest.er1 >conftest.err
34013 cat conftest.err >&5
34014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34015 (exit $ac_status); } &&
34016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34017 { (case "(($ac_try" in
34018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34019 *) ac_try_echo=$ac_try;;
34021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34022 (eval "$ac_try") 2>&5
34024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025 (exit $ac_status); }; } &&
34026 { ac_try='test -s conftest$ac_exeext'
34027 { (case "(($ac_try" in
34028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34029 *) ac_try_echo=$ac_try;;
34031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34032 (eval "$ac_try") 2>&5
34034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34035 (exit $ac_status); }; }; then
34036 eval "$as_ac_var=yes"
34038 echo "$as_me: failed program was:" >&5
34039 sed 's/^/| /' conftest.$ac_ext >&5
34041 eval "$as_ac_var=no"
34044 rm -f core conftest.err conftest.$ac_objext \
34045 conftest$ac_exeext conftest.$ac_ext
34047 ac_res=`eval echo '${'$as_ac_var'}'`
34048 { echo "$as_me:$LINENO: result: $ac_res" >&5
34049 echo "${ECHO_T}$ac_res" >&6; }
34050 if test `eval echo '${'$as_ac_var'}'` = yes; then
34051 cat >>confdefs.h <<_ACEOF
34052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34059 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34060 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34061 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34062 echo $ECHO_N "(cached) $ECHO_C" >&6
34064 llvm_cv_llvmgcc_sanity="no"
34065 if test -x "$LLVMGCC" ; then
34066 cp /dev/null conftest.c
34067 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34068 grep 'target datalayout =' > /dev/null 2>&1
34069 if test $? -eq 0 ; then
34070 llvm_cv_llvmgcc_sanity="yes"
34075 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34076 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34078 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34079 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34080 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34081 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34082 LLVMCC1=$llvmcc1path
34084 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34085 LLVMCC1PLUS=$llvmcc1pluspath
34087 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34088 LLVMGCCDIR=$llvmgccdir
34090 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34091 LLVMGCCLIBEXEC=$llvmgcclibexec
34093 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34094 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34095 LLVMGCC_VERSION=$llvmgccversion
34097 LLVMGCC_MAJVERS=$llvmgccmajvers
34099 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34100 LLVMGCC_LANGS=$llvmgcclangs
34102 { echo "$as_me:$LINENO: result: ok" >&5
34103 echo "${ECHO_T}ok" >&6; }
34106 SHLIBEXT=$libltdl_cv_shlibext
34109 # Translate the various configuration directories and other basic
34110 # information into substitutions that will end up in Makefile.config.in
34111 # that these configured values can be used by the makefiles
34112 if test "${prefix}" = "NONE" ; then
34113 prefix="/usr/local"
34115 eval LLVM_PREFIX="${prefix}";
34116 eval LLVM_BINDIR="${prefix}/bin";
34117 eval LLVM_LIBDIR="${prefix}/lib";
34118 eval LLVM_DATADIR="${prefix}/share/llvm";
34119 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34120 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34121 eval LLVM_INCLUDEDIR="${prefix}/include";
34122 eval LLVM_INFODIR="${prefix}/info";
34123 eval LLVM_MANDIR="${prefix}/man";
34124 LLVM_CONFIGTIME=`date`
34136 # Place the various directores into the config.h file as #defines so that we
34137 # can know about the installation paths within LLVM.
34139 cat >>confdefs.h <<_ACEOF
34140 #define LLVM_PREFIX "$LLVM_PREFIX"
34144 cat >>confdefs.h <<_ACEOF
34145 #define LLVM_BINDIR "$LLVM_BINDIR"
34149 cat >>confdefs.h <<_ACEOF
34150 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34154 cat >>confdefs.h <<_ACEOF
34155 #define LLVM_DATADIR "$LLVM_DATADIR"
34159 cat >>confdefs.h <<_ACEOF
34160 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34164 cat >>confdefs.h <<_ACEOF
34165 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34169 cat >>confdefs.h <<_ACEOF
34170 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34174 cat >>confdefs.h <<_ACEOF
34175 #define LLVM_INFODIR "$LLVM_INFODIR"
34179 cat >>confdefs.h <<_ACEOF
34180 #define LLVM_MANDIR "$LLVM_MANDIR"
34184 cat >>confdefs.h <<_ACEOF
34185 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34189 cat >>confdefs.h <<_ACEOF
34190 #define LLVM_HOSTTRIPLE "$host"
34194 # Determine which bindings to build.
34195 if test "$BINDINGS_TO_BUILD" = auto ; then
34196 BINDINGS_TO_BUILD=""
34197 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34198 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34201 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34204 # This isn't really configurey, but it avoids having to repeat the list in
34209 # Do any work necessary to ensure that bindings have what they need.
34210 binding_prereqs_failed=0
34211 for a_binding in $BINDINGS_TO_BUILD ; do
34212 case "$a_binding" in
34214 if test "x$OCAMLC" = x ; then
34215 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34216 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34217 binding_prereqs_failed=1
34219 if test "x$OCAMLDEP" = x ; then
34220 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34221 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34222 binding_prereqs_failed=1
34224 if test "x$OCAMLOPT" = x ; then
34225 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34226 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34228 if test "x$with_ocaml_libdir" != xauto ; then
34229 OCAML_LIBDIR=$with_ocaml_libdir
34232 ocaml_stdlib="`"$OCAMLC" -where`"
34233 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34235 # ocaml stdlib is beneath our prefix; use stdlib
34236 OCAML_LIBDIR=$ocaml_stdlib
34239 # ocaml stdlib is outside our prefix; use libdir/ocaml
34240 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34247 if test "$binding_prereqs_failed" = 1 ; then
34248 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34249 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34250 { (exit 1); exit 1; }; }
34255 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34257 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34259 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
34261 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
34263 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
34266 ac_config_files="$ac_config_files Makefile.config"
34269 ac_config_files="$ac_config_files llvm.spec"
34272 ac_config_files="$ac_config_files docs/doxygen.cfg"
34275 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34278 ac_config_commands="$ac_config_commands setup"
34280 ac_config_commands="$ac_config_commands Makefile"
34283 ac_config_commands="$ac_config_commands Makefile.common"
34286 ac_config_commands="$ac_config_commands examples/Makefile"
34289 ac_config_commands="$ac_config_commands lib/Makefile"
34292 ac_config_commands="$ac_config_commands runtime/Makefile"
34295 ac_config_commands="$ac_config_commands test/Makefile"
34298 ac_config_commands="$ac_config_commands test/Makefile.tests"
34301 ac_config_commands="$ac_config_commands tools/Makefile"
34304 ac_config_commands="$ac_config_commands utils/Makefile"
34307 ac_config_commands="$ac_config_commands projects/Makefile"
34310 ac_config_commands="$ac_config_commands bindings/Makefile"
34313 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34317 cat >confcache <<\_ACEOF
34318 # This file is a shell script that caches the results of configure
34319 # tests run on this system so they can be shared between configure
34320 # scripts and configure runs, see configure's option --config-cache.
34321 # It is not useful on other systems. If it contains results you don't
34322 # want to keep, you may remove or edit it.
34324 # config.status only pays attention to the cache file if you give it
34325 # the --recheck option to rerun configure.
34327 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34328 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34329 # following values.
34333 # The following way of writing the cache mishandles newlines in values,
34334 # but we know of no workaround that is simple, portable, and efficient.
34335 # So, we kill variables containing newlines.
34336 # Ultrix sh set writes to stderr and can't be redirected directly,
34337 # and sets the high bit in the cache file unless we assign to the vars.
34339 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34340 eval ac_val=\$$ac_var
34344 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34345 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34348 _ | IFS | as_nl) ;; #(
34349 *) $as_unset $ac_var ;;
34355 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34356 *${as_nl}ac_space=\ *)
34357 # `set' does not quote correctly, so add quotes (double-quote
34358 # substitution turns \\\\ into \\, and sed turns \\ into \).
34361 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34364 # `set' quotes correctly as required by POSIX, so do not add quotes.
34365 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34374 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34376 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34378 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34379 if test -w "$cache_file"; then
34380 test "x$cache_file" != "x/dev/null" &&
34381 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34382 echo "$as_me: updating cache $cache_file" >&6;}
34383 cat confcache >$cache_file
34385 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34386 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34391 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34392 # Let make expand exec_prefix.
34393 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34395 DEFS=-DHAVE_CONFIG_H
34399 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34400 # 1. Remove the extension, and $U if already installed.
34401 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34402 ac_i=`echo "$ac_i" | sed "$ac_script"`
34403 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34404 # will be set to the directory where LIBOBJS objects are built.
34405 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34406 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34408 LIBOBJS=$ac_libobjs
34410 LTLIBOBJS=$ac_ltlibobjs
34413 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34414 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34415 Usually this means the macro was only invoked conditionally." >&5
34416 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34417 Usually this means the macro was only invoked conditionally." >&2;}
34418 { (exit 1); exit 1; }; }
34420 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34421 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34422 Usually this means the macro was only invoked conditionally." >&5
34423 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34424 Usually this means the macro was only invoked conditionally." >&2;}
34425 { (exit 1); exit 1; }; }
34428 : ${CONFIG_STATUS=./config.status}
34429 ac_clean_files_save=$ac_clean_files
34430 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34431 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34432 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34433 cat >$CONFIG_STATUS <<_ACEOF
34435 # Generated by $as_me.
34436 # Run this file to recreate the current configuration.
34437 # Compiler output produced by configure, useful for debugging
34438 # configure, is in config.log if it exists.
34441 ac_cs_recheck=false
34443 SHELL=\${CONFIG_SHELL-$SHELL}
34446 cat >>$CONFIG_STATUS <<\_ACEOF
34447 ## --------------------- ##
34448 ## M4sh Initialization. ##
34449 ## --------------------- ##
34451 # Be Bourne compatible
34452 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34455 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34456 # is contrary to our usage. Disable this feature.
34457 alias -g '${1+"$@"}'='"$@"'
34458 setopt NO_GLOB_SUBST
34460 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34462 BIN_SH=xpg4; export BIN_SH # for Tru64
34463 DUALCASE=1; export DUALCASE # for MKS sh
34467 # Avoid depending upon Character Ranges.
34468 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34469 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34470 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34471 as_cr_digits='0123456789'
34472 as_cr_alnum=$as_cr_Letters$as_cr_digits
34474 # The user is always right.
34475 if test "${PATH_SEPARATOR+set}" != set; then
34476 echo "#! /bin/sh" >conf$$.sh
34477 echo "exit 0" >>conf$$.sh
34479 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34487 # Support unset when possible.
34488 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34496 # We need space, tab and new line, in precisely that order. Quoting is
34497 # there to prevent editors from complaining about space-tab.
34498 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34499 # splitting by setting IFS to empty value.)
34504 # Find who we are. Look in the path if we contain no directory separator.
34506 *[\\/]* ) as_myself=$0 ;;
34507 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34508 for as_dir in $PATH
34511 test -z "$as_dir" && as_dir=.
34512 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34518 # We did not find ourselves, most probably we were run as `sh COMMAND'
34519 # in which case we are not to be found in the path.
34520 if test "x$as_myself" = x; then
34523 if test ! -f "$as_myself"; then
34524 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34525 { (exit 1); exit 1; }
34528 # Work around bugs in pre-3.0 UWIN ksh.
34529 for as_var in ENV MAIL MAILPATH
34530 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34538 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34539 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34540 LC_TELEPHONE LC_TIME
34542 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34543 eval $as_var=C; export $as_var
34545 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34549 # Required to use basename.
34550 if expr a : '\(a\)' >/dev/null 2>&1 &&
34551 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34557 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34558 as_basename=basename
34564 # Name of the executable.
34565 as_me=`$as_basename -- "$0" ||
34566 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34567 X"$0" : 'X\(//\)$' \| \
34568 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34570 sed '/^.*\/\([^/][^/]*\)\/*$/{
34589 as_lineno_1=$LINENO
34590 as_lineno_2=$LINENO
34591 test "x$as_lineno_1" != "x$as_lineno_2" &&
34592 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34594 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34595 # uniformly replaced by the line number. The first 'sed' inserts a
34596 # line-number line after each line using $LINENO; the second 'sed'
34597 # does the real work. The second script uses 'N' to pair each
34598 # line-number line with the line containing $LINENO, and appends
34599 # trailing '-' during substitution so that $LINENO is not a special
34600 # case at line end.
34601 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34602 # scripts with optimization help from Paolo Bonzini. Blame Lee
34603 # E. McMahon (1931-1989) for sed's syntax. :-)
34615 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34618 ' >$as_me.lineno &&
34619 chmod +x "$as_me.lineno" ||
34620 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34621 { (exit 1); exit 1; }; }
34623 # Don't try to exec as it changes $[0], causing all sort of problems
34624 # (the dirname of $[0] is not the place where we might find the
34625 # original and so on. Autoconf is especially sensitive to this).
34626 . "./$as_me.lineno"
34627 # Exit status is that of the last command.
34632 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34638 ECHO_C= ECHO_N= ECHO_T=
34639 case `echo -n x` in
34641 case `echo 'x\c'` in
34642 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34649 if expr a : '\(a\)' >/dev/null 2>&1 &&
34650 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34656 rm -f conf$$ conf$$.exe conf$$.file
34657 if test -d conf$$.dir; then
34658 rm -f conf$$.dir/conf$$.file
34664 if ln -s conf$$.file conf$$ 2>/dev/null; then
34666 # ... but there are two gotchas:
34667 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34668 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34669 # In both cases, we have to default to `cp -p'.
34670 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34672 elif ln conf$$.file conf$$ 2>/dev/null; then
34677 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34678 rmdir conf$$.dir 2>/dev/null
34680 if mkdir -p . 2>/dev/null; then
34683 test -d ./-p && rmdir ./-p
34687 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34688 # systems may use methods other than mode bits to determine executability.
34689 cat >conf$$.file <<_ASEOF
34693 chmod +x conf$$.file
34694 if test -x conf$$.file >/dev/null 2>&1; then
34695 as_executable_p="test -x"
34701 # Sed expression to map a string onto a valid CPP name.
34702 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34704 # Sed expression to map a string onto a valid variable name.
34705 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34710 # Save the log message, to keep $[0] and so on meaningful, and to
34711 # report actual input values of CONFIG_FILES etc. instead of their
34712 # values after options handling.
34714 This file was extended by llvm $as_me 2.4svn, which was
34715 generated by GNU Autoconf 2.60. Invocation command line was
34717 CONFIG_FILES = $CONFIG_FILES
34718 CONFIG_HEADERS = $CONFIG_HEADERS
34719 CONFIG_LINKS = $CONFIG_LINKS
34720 CONFIG_COMMANDS = $CONFIG_COMMANDS
34723 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34728 cat >>$CONFIG_STATUS <<_ACEOF
34729 # Files that config.status was made for.
34730 config_files="$ac_config_files"
34731 config_headers="$ac_config_headers"
34732 config_commands="$ac_config_commands"
34736 cat >>$CONFIG_STATUS <<\_ACEOF
34738 \`$as_me' instantiates files from templates according to the
34739 current configuration.
34741 Usage: $0 [OPTIONS] [FILE]...
34743 -h, --help print this help, then exit
34744 -V, --version print version number, then exit
34745 -q, --quiet do not print progress messages
34746 -d, --debug don't remove temporary files
34747 --recheck update $as_me by reconfiguring in the same conditions
34748 --file=FILE[:TEMPLATE]
34749 instantiate the configuration file FILE
34750 --header=FILE[:TEMPLATE]
34751 instantiate the configuration header FILE
34753 Configuration files:
34756 Configuration headers:
34759 Configuration commands:
34762 Report bugs to <bug-autoconf@gnu.org>."
34765 cat >>$CONFIG_STATUS <<_ACEOF
34767 llvm config.status 2.4svn
34768 configured by $0, generated by GNU Autoconf 2.60,
34769 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34771 Copyright (C) 2006 Free Software Foundation, Inc.
34772 This config.status script is free software; the Free Software Foundation
34773 gives unlimited permission to copy, distribute and modify it."
34780 cat >>$CONFIG_STATUS <<\_ACEOF
34781 # If no file are specified by the user, then we need to provide default
34782 # value. By we need to know if files were specified by the user.
34788 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34789 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34800 # Handling of the options.
34801 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34803 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34804 echo "$ac_cs_version"; exit ;;
34805 --debug | --debu | --deb | --de | --d | -d )
34807 --file | --fil | --fi | --f )
34809 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34810 ac_need_defaults=false;;
34811 --header | --heade | --head | --hea )
34813 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34814 ac_need_defaults=false;;
34816 # Conflict between --help and --header
34817 { echo "$as_me: error: ambiguous option: $1
34818 Try \`$0 --help' for more information." >&2
34819 { (exit 1); exit 1; }; };;
34820 --help | --hel | -h )
34821 echo "$ac_cs_usage"; exit ;;
34822 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34823 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34826 # This is an error.
34827 -*) { echo "$as_me: error: unrecognized option: $1
34828 Try \`$0 --help' for more information." >&2
34829 { (exit 1); exit 1; }; } ;;
34831 *) ac_config_targets="$ac_config_targets $1"
34832 ac_need_defaults=false ;;
34838 ac_configure_extra_args=
34840 if $ac_cs_silent; then
34842 ac_configure_extra_args="$ac_configure_extra_args --silent"
34846 cat >>$CONFIG_STATUS <<_ACEOF
34847 if \$ac_cs_recheck; then
34848 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34849 CONFIG_SHELL=$SHELL
34850 export CONFIG_SHELL
34851 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34855 cat >>$CONFIG_STATUS <<\_ACEOF
34859 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34860 ## Running $as_me. ##
34866 cat >>$CONFIG_STATUS <<_ACEOF
34870 llvm_src="${srcdir}"
34874 cat >>$CONFIG_STATUS <<\_ACEOF
34876 # Handling of arguments.
34877 for ac_config_target in $ac_config_targets
34879 case $ac_config_target in
34880 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34881 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34882 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34883 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34884 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34885 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34886 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34887 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34888 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34889 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34890 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34891 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34892 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34893 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34894 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34895 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34896 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34897 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34898 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34899 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34900 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34901 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34903 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34904 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34905 { (exit 1); exit 1; }; };;
34910 # If the user did not use the arguments to specify the items to instantiate,
34911 # then the envvar interface is used. Set only those that are not.
34912 # We use the long form for the default assignment because of an extremely
34913 # bizarre bug on SunOS 4.1.3.
34914 if $ac_need_defaults; then
34915 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34916 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34917 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34920 # Have a temporary directory for convenience. Make it in the build tree
34921 # simply because there is no reason against having it here, and in addition,
34922 # creating and moving files from /tmp can sometimes cause problems.
34923 # Hook for its removal unless debugging.
34924 # Note that there is a small window in which the directory will not be cleaned:
34925 # after its creation but before its name has been assigned to `$tmp'.
34929 trap 'exit_status=$?
34930 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34932 trap '{ (exit 1); exit 1; }' 1 2 13 15
34934 # Create a (secure) tmp directory for tmp files.
34937 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34938 test -n "$tmp" && test -d "$tmp"
34941 tmp=./conf$$-$RANDOM
34942 (umask 077 && mkdir "$tmp")
34945 echo "$me: cannot create a temporary directory in ." >&2
34946 { (exit 1); exit 1; }
34950 # Set up the sed scripts for CONFIG_FILES section.
34953 # No need to generate the scripts if there are no CONFIG_FILES.
34954 # This happens for instance when ./config.status config.h
34955 if test -n "$CONFIG_FILES"; then
34962 for ac_last_try in false false false false false :; do
34963 cat >conf$$subs.sed <<_ACEOF
34964 SHELL!$SHELL$ac_delim
34965 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34966 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34967 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34968 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34969 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34970 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34971 exec_prefix!$exec_prefix$ac_delim
34972 prefix!$prefix$ac_delim
34973 program_transform_name!$program_transform_name$ac_delim
34974 bindir!$bindir$ac_delim
34975 sbindir!$sbindir$ac_delim
34976 libexecdir!$libexecdir$ac_delim
34977 datarootdir!$datarootdir$ac_delim
34978 datadir!$datadir$ac_delim
34979 sysconfdir!$sysconfdir$ac_delim
34980 sharedstatedir!$sharedstatedir$ac_delim
34981 localstatedir!$localstatedir$ac_delim
34982 includedir!$includedir$ac_delim
34983 oldincludedir!$oldincludedir$ac_delim
34984 docdir!$docdir$ac_delim
34985 infodir!$infodir$ac_delim
34986 htmldir!$htmldir$ac_delim
34987 dvidir!$dvidir$ac_delim
34988 pdfdir!$pdfdir$ac_delim
34989 psdir!$psdir$ac_delim
34990 libdir!$libdir$ac_delim
34991 localedir!$localedir$ac_delim
34992 mandir!$mandir$ac_delim
34993 DEFS!$DEFS$ac_delim
34994 ECHO_C!$ECHO_C$ac_delim
34995 ECHO_N!$ECHO_N$ac_delim
34996 ECHO_T!$ECHO_T$ac_delim
34997 LIBS!$LIBS$ac_delim
34998 build_alias!$build_alias$ac_delim
34999 host_alias!$host_alias$ac_delim
35000 target_alias!$target_alias$ac_delim
35001 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35002 subdirs!$subdirs$ac_delim
35003 build!$build$ac_delim
35004 build_cpu!$build_cpu$ac_delim
35005 build_vendor!$build_vendor$ac_delim
35006 build_os!$build_os$ac_delim
35007 host!$host$ac_delim
35008 host_cpu!$host_cpu$ac_delim
35009 host_vendor!$host_vendor$ac_delim
35010 host_os!$host_os$ac_delim
35011 target!$target$ac_delim
35012 target_cpu!$target_cpu$ac_delim
35013 target_vendor!$target_vendor$ac_delim
35014 target_os!$target_os$ac_delim
35016 LINKALL!$LINKALL$ac_delim
35017 NOLINKALL!$NOLINKALL$ac_delim
35018 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35019 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35020 ARCH!$ARCH$ac_delim
35021 ENDIAN!$ENDIAN$ac_delim
35023 CFLAGS!$CFLAGS$ac_delim
35024 LDFLAGS!$LDFLAGS$ac_delim
35025 CPPFLAGS!$CPPFLAGS$ac_delim
35026 ac_ct_CC!$ac_ct_CC$ac_delim
35027 EXEEXT!$EXEEXT$ac_delim
35028 OBJEXT!$OBJEXT$ac_delim
35030 GREP!$GREP$ac_delim
35031 EGREP!$EGREP$ac_delim
35032 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35033 BUILD_CC!$BUILD_CC$ac_delim
35034 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35035 CVSBUILD!$CVSBUILD$ac_delim
35036 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35037 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35038 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35039 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35040 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35042 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35043 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35044 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35045 ENABLE_PIC!$ENABLE_PIC$ac_delim
35046 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35047 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35048 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35050 CXXFLAGS!$CXXFLAGS$ac_delim
35051 ac_ct_CXX!$ac_ct_CXX$ac_delim
35053 LEXLIB!$LEXLIB$ac_delim
35054 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35055 FLEX!$FLEX$ac_delim
35056 YACC!$YACC$ac_delim
35057 YFLAGS!$YFLAGS$ac_delim
35058 BISON!$BISON$ac_delim
35060 ifGNUmake!$ifGNUmake$ac_delim
35063 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35065 elif $ac_last_try; then
35066 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35067 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35068 { (exit 1); exit 1; }; }
35070 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35074 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35075 if test -n "$ac_eof"; then
35076 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35077 ac_eof=`expr $ac_eof + 1`
35080 cat >>$CONFIG_STATUS <<_ACEOF
35081 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35082 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35085 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35086 s/^/s,@/; s/!/@,|#_!!_#|/
35089 s/'"$ac_delim"'$/,g/; t
35091 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35092 ' >>$CONFIG_STATUS <conf$$subs.sed
35093 rm -f conf$$subs.sed
35094 cat >>$CONFIG_STATUS <<_ACEOF
35100 for ac_last_try in false false false false false :; do
35101 cat >conf$$subs.sed <<_ACEOF
35102 LN_S!$LN_S$ac_delim
35105 DATE!$DATE$ac_delim
35106 FIND!$FIND$ac_delim
35107 MKDIR!$MKDIR$ac_delim
35109 RANLIB!$RANLIB$ac_delim
35113 BINPWD!$BINPWD$ac_delim
35114 GRAPHVIZ!$GRAPHVIZ$ac_delim
35117 DOTTY!$DOTTY$ac_delim
35118 PERL!$PERL$ac_delim
35119 HAVE_PERL!$HAVE_PERL$ac_delim
35120 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35121 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35122 INSTALL_DATA!$INSTALL_DATA$ac_delim
35123 BZIP2!$BZIP2$ac_delim
35124 DOXYGEN!$DOXYGEN$ac_delim
35125 GROFF!$GROFF$ac_delim
35126 GZIP!$GZIP$ac_delim
35127 POD2HTML!$POD2HTML$ac_delim
35128 POD2MAN!$POD2MAN$ac_delim
35129 RUNTEST!$RUNTEST$ac_delim
35130 TCLSH!$TCLSH$ac_delim
35132 OCAMLC!$OCAMLC$ac_delim
35133 OCAMLOPT!$OCAMLOPT$ac_delim
35134 OCAMLDEP!$OCAMLDEP$ac_delim
35135 OCAMLDOC!$OCAMLDOC$ac_delim
35136 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35137 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35138 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35139 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35140 LIBADD_DL!$LIBADD_DL$ac_delim
35141 ECHO!$ECHO$ac_delim
35143 STRIP!$STRIP$ac_delim
35144 CXXCPP!$CXXCPP$ac_delim
35146 FFLAGS!$FFLAGS$ac_delim
35147 ac_ct_F77!$ac_ct_F77$ac_delim
35148 LIBTOOL!$LIBTOOL$ac_delim
35149 LLVMGCC!$LLVMGCC$ac_delim
35150 LLVMGXX!$LLVMGXX$ac_delim
35151 USE_UDIS86!$USE_UDIS86$ac_delim
35152 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35153 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35154 ALLOCA!$ALLOCA$ac_delim
35155 MMAP_FILE!$MMAP_FILE$ac_delim
35156 LLVMCC1!$LLVMCC1$ac_delim
35157 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35158 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35159 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35160 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35161 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35162 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35163 SHLIBEXT!$SHLIBEXT$ac_delim
35164 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35165 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35166 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35167 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35168 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35169 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35170 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35171 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35172 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35173 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35174 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35175 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35176 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35177 LIBOBJS!$LIBOBJS$ac_delim
35178 LTLIBOBJS!$LTLIBOBJS$ac_delim
35181 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
35183 elif $ac_last_try; then
35184 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35185 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35186 { (exit 1); exit 1; }; }
35188 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35192 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35193 if test -n "$ac_eof"; then
35194 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35195 ac_eof=`expr $ac_eof + 1`
35198 cat >>$CONFIG_STATUS <<_ACEOF
35199 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35200 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35203 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35204 s/^/s,@/; s/!/@,|#_!!_#|/
35207 s/'"$ac_delim"'$/,g/; t
35209 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35210 ' >>$CONFIG_STATUS <conf$$subs.sed
35211 rm -f conf$$subs.sed
35212 cat >>$CONFIG_STATUS <<_ACEOF
35219 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35220 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35221 # trailing colons and then remove the whole line if VPATH becomes empty
35222 # (actually we leave an empty line to preserve line numbers).
35223 if test "x$srcdir" = x.; then
35224 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35225 s/:*\$(srcdir):*/:/
35226 s/:*\${srcdir}:*/:/
35228 s/^\([^=]*=[ ]*\):*/\1/
35234 cat >>$CONFIG_STATUS <<\_ACEOF
35235 fi # test -n "$CONFIG_FILES"
35238 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35241 :[FHLC]) ac_mode=$ac_tag; continue;;
35243 case $ac_mode$ac_tag in
35245 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35246 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35247 { (exit 1); exit 1; }; };;
35248 :[FH]-) ac_tag=-:-;;
35249 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35266 -) ac_f="$tmp/stdin";;
35267 *) # Look for the file first in the build tree, then in the source tree
35268 # (if the path is not absolute). The absolute path cannot be DOS-style,
35269 # because $ac_f cannot contain `:'.
35273 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35275 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35276 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35277 { (exit 1); exit 1; }; };;
35279 ac_file_inputs="$ac_file_inputs $ac_f"
35282 # Let's still pretend it is `configure' which instantiates (i.e., don't
35283 # use $as_me), people would be surprised to read:
35284 # /* config.h. Generated by config.status. */
35285 configure_input="Generated from "`IFS=:
35286 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35287 if test x"$ac_file" != x-; then
35288 configure_input="$ac_file. $configure_input"
35289 { echo "$as_me:$LINENO: creating $ac_file" >&5
35290 echo "$as_me: creating $ac_file" >&6;}
35294 *:-:* | *:-) cat >"$tmp/stdin";;
35299 ac_dir=`$as_dirname -- "$ac_file" ||
35300 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35301 X"$ac_file" : 'X\(//\)[^/]' \| \
35302 X"$ac_file" : 'X\(//\)$' \| \
35303 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35309 /^X\(\/\/\)[^/].*/{
35324 -*) as_dir=./$as_dir;;
35326 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35330 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35331 *) as_qdir=$as_dir;;
35333 as_dirs="'$as_qdir' $as_dirs"
35334 as_dir=`$as_dirname -- "$as_dir" ||
35335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35336 X"$as_dir" : 'X\(//\)[^/]' \| \
35337 X"$as_dir" : 'X\(//\)$' \| \
35338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35344 /^X\(\/\/\)[^/].*/{
35357 test -d "$as_dir" && break
35359 test -z "$as_dirs" || eval "mkdir $as_dirs"
35360 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35361 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35362 { (exit 1); exit 1; }; }; }
35366 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35368 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35369 # A ".." for each directory in $ac_dir_suffix.
35370 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35371 case $ac_top_builddir_sub in
35372 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35373 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35376 ac_abs_top_builddir=$ac_pwd
35377 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35378 # for backward compatibility:
35379 ac_top_builddir=$ac_top_build_prefix
35382 .) # We are building in place.
35384 ac_top_srcdir=$ac_top_builddir_sub
35385 ac_abs_top_srcdir=$ac_pwd ;;
35386 [\\/]* | ?:[\\/]* ) # Absolute name.
35387 ac_srcdir=$srcdir$ac_dir_suffix;
35388 ac_top_srcdir=$srcdir
35389 ac_abs_top_srcdir=$srcdir ;;
35390 *) # Relative name.
35391 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35392 ac_top_srcdir=$ac_top_build_prefix$srcdir
35393 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35395 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35405 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35406 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35410 cat >>$CONFIG_STATUS <<\_ACEOF
35411 # If the template does not know about datarootdir, expand it.
35412 # FIXME: This hack should be removed a few years after 2.60.
35413 ac_datarootdir_hack=; ac_datarootdir_seen=
35415 case `sed -n '/datarootdir/ {
35424 ' $ac_file_inputs` in
35425 *datarootdir*) ac_datarootdir_seen=yes;;
35426 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35427 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35428 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35430 cat >>$CONFIG_STATUS <<_ACEOF
35431 ac_datarootdir_hack='
35432 s&@datadir@&$datadir&g
35433 s&@docdir@&$docdir&g
35434 s&@infodir@&$infodir&g
35435 s&@localedir@&$localedir&g
35436 s&@mandir@&$mandir&g
35437 s&\\\${datarootdir}&$datarootdir&g' ;;
35441 # Neutralize VPATH when `$srcdir' = `.'.
35442 # Shell code in configure.ac might set extrasub.
35443 # FIXME: do we really want to maintain this feature?
35444 cat >>$CONFIG_STATUS <<_ACEOF
35448 cat >>$CONFIG_STATUS <<\_ACEOF
35450 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35451 s&@configure_input@&$configure_input&;t t
35452 s&@top_builddir@&$ac_top_builddir_sub&;t t
35453 s&@srcdir@&$ac_srcdir&;t t
35454 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35455 s&@top_srcdir@&$ac_top_srcdir&;t t
35456 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35457 s&@builddir@&$ac_builddir&;t t
35458 s&@abs_builddir@&$ac_abs_builddir&;t t
35459 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35460 s&@INSTALL@&$ac_INSTALL&;t t
35461 $ac_datarootdir_hack
35462 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35464 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35465 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35466 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35467 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35468 which seems to be undefined. Please make sure it is defined." >&5
35469 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35470 which seems to be undefined. Please make sure it is defined." >&2;}
35474 -) cat "$tmp/out"; rm -f "$tmp/out";;
35475 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35484 # Transform confdefs.h into a sed script `conftest.defines', that
35485 # substitutes the proper values into config.h.in to produce config.h.
35486 rm -f conftest.defines conftest.tail
35487 # First, append a space to every undef/define line, to ease matching.
35488 echo 's/$/ /' >conftest.defines
35489 # Then, protect against being on the right side of a sed subst, or in
35490 # an unquoted here document, in config.status. If some macros were
35491 # called several times there might be several #defines for the same
35492 # symbol, which is useless. But do not sort them, since the last
35493 # AC_DEFINE must be honored.
35494 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35495 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35496 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35497 # PARAMS is the parameter list in the macro definition--in most cases, it's
35498 # just an empty string.
35499 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35500 ac_dB='\\)[ (].*,\\1define\\2'
35508 s/^[ ]*#[ ]*define[ ][ ]*//
35513 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35514 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35515 ' >>conftest.defines
35517 # Remove the space that was appended to ease matching.
35518 # Then replace #undef with comments. This is necessary, for
35519 # example, in the case of _POSIX_SOURCE, which is predefined and required
35520 # on some systems where configure will not decide to define it.
35521 # (The regexp can be short, since the line contains either #define or #undef.)
35523 s,^[ #]*u.*,/* & */,' >>conftest.defines
35525 # Break up conftest.defines:
35526 ac_max_sed_lines=50
35528 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35529 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35530 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35532 ac_in='$ac_file_inputs'
35533 ac_out='"$tmp/out1"'
35534 ac_nxt='"$tmp/out2"'
35538 # Write a here document:
35539 cat >>$CONFIG_STATUS <<_ACEOF
35540 # First, check the format of the line:
35541 cat >"\$tmp/defines.sed" <<\\CEOF
35542 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35543 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35547 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35549 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35550 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35551 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35552 grep . conftest.tail >/dev/null || break
35553 rm -f conftest.defines
35554 mv conftest.tail conftest.defines
35556 rm -f conftest.defines conftest.tail
35558 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35559 cat >>$CONFIG_STATUS <<\_ACEOF
35560 if test x"$ac_file" != x-; then
35561 echo "/* $configure_input */" >"$tmp/config.h"
35562 cat "$ac_result" >>"$tmp/config.h"
35563 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35564 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35565 echo "$as_me: $ac_file is unchanged" >&6;}
35568 mv "$tmp/config.h" $ac_file
35571 echo "/* $configure_input */"
35577 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35578 echo "$as_me: executing $ac_file commands" >&6;}
35583 case $ac_file$ac_mode in
35584 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35585 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35586 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35587 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35588 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35589 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35590 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35591 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35592 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35593 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35594 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35595 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35596 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35597 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35598 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35599 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35600 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35601 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35602 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35603 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35604 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35605 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35606 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35607 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35613 { (exit 0); exit 0; }
35615 chmod +x $CONFIG_STATUS
35616 ac_clean_files=$ac_clean_files_save
35619 # configure is writing to config.log, and then calls config.status.
35620 # config.status does its own redirection, appending to config.log.
35621 # Unfortunately, on DOS this fails, as config.log is still kept open
35622 # by configure, so config.status won't be able to write to it; its
35623 # output is simply discarded. So we exec the FD to /dev/null,
35624 # effectively closing config.log, so it can be properly (re)opened and
35625 # appended to by config.status. When coming back to configure, we
35626 # need to make the FD available again.
35627 if test "$no_create" != yes; then
35629 ac_config_status_args=
35630 test "$silent" = yes &&
35631 ac_config_status_args="$ac_config_status_args --quiet"
35633 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35635 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35636 # would make configure fail if this is the last instruction.
35637 $ac_cs_success || { (exit 1); exit 1; }
35641 # CONFIG_SUBDIRS section.
35643 if test "$no_recursion" != yes; then
35645 # Remove --cache-file and --srcdir arguments so they do not pile up.
35646 ac_sub_configure_args=
35648 eval "set x $ac_configure_args"
35652 if test -n "$ac_prev"; then
35657 -cache-file | --cache-file | --cache-fil | --cache-fi \
35658 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35659 ac_prev=cache_file ;;
35660 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35661 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35664 --config-cache | -C)
35666 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35668 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35670 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35672 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35676 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35678 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35682 # Always prepend --prefix to ensure using the same prefix
35683 # in subdir configurations.
35684 ac_arg="--prefix=$prefix"
35686 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35688 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35691 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35693 # Do not complain, so a configure script can configure whichever
35694 # parts of a large source tree are present.
35695 test -d "$srcdir/$ac_dir" || continue
35697 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35698 echo "$as_me:$LINENO: $ac_msg" >&5
35702 -*) as_dir=./$as_dir;;
35704 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35708 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35709 *) as_qdir=$as_dir;;
35711 as_dirs="'$as_qdir' $as_dirs"
35712 as_dir=`$as_dirname -- "$as_dir" ||
35713 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35714 X"$as_dir" : 'X\(//\)[^/]' \| \
35715 X"$as_dir" : 'X\(//\)$' \| \
35716 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35722 /^X\(\/\/\)[^/].*/{
35735 test -d "$as_dir" && break
35737 test -z "$as_dirs" || eval "mkdir $as_dirs"
35738 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35739 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35740 { (exit 1); exit 1; }; }; }
35744 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35746 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35747 # A ".." for each directory in $ac_dir_suffix.
35748 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35749 case $ac_top_builddir_sub in
35750 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35751 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35754 ac_abs_top_builddir=$ac_pwd
35755 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35756 # for backward compatibility:
35757 ac_top_builddir=$ac_top_build_prefix
35760 .) # We are building in place.
35762 ac_top_srcdir=$ac_top_builddir_sub
35763 ac_abs_top_srcdir=$ac_pwd ;;
35764 [\\/]* | ?:[\\/]* ) # Absolute name.
35765 ac_srcdir=$srcdir$ac_dir_suffix;
35766 ac_top_srcdir=$srcdir
35767 ac_abs_top_srcdir=$srcdir ;;
35768 *) # Relative name.
35769 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35770 ac_top_srcdir=$ac_top_build_prefix$srcdir
35771 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35773 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35778 # Check for guested configure; otherwise get Cygnus style configure.
35779 if test -f "$ac_srcdir/configure.gnu"; then
35780 ac_sub_configure=$ac_srcdir/configure.gnu
35781 elif test -f "$ac_srcdir/configure"; then
35782 ac_sub_configure=$ac_srcdir/configure
35783 elif test -f "$ac_srcdir/configure.in"; then
35784 # This should be Cygnus configure.
35785 ac_sub_configure=$ac_aux_dir/configure
35787 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35788 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35792 # The recursion is here.
35793 if test -n "$ac_sub_configure"; then
35794 # Make the cache file name correct relative to the subdirectory.
35795 case $cache_file in
35796 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35797 *) # Relative name.
35798 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35801 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35802 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35803 # The eval makes quoting arguments work.
35804 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35805 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35806 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35807 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35808 { (exit 1); exit 1; }; }