2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.6svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be 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.6svn'
719 PACKAGE_STRING='llvm 2.6svn'
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
834 ENABLE_EXPENSIVE_CHECKS
895 CONVENIENCE_LTDL_TRUE
896 CONVENIENCE_LTDL_FALSE
935 ENABLE_VISIBILITY_INLINES_HIDDEN
939 ac_precious_vars='build_alias
955 ac_subdirs_all='projects/sample
957 projects/llvm-stacker
964 projects/llvm-poolalloc
966 projects/llvm-kernel'
968 # Initialize some variables set by options.
970 ac_init_version=false
971 # The variables have the same names as the options, with
972 # dashes changed to underlines.
980 program_transform_name=s,x,x,
988 # Installation directory options.
989 # These are left unexpanded so users can "make install exec_prefix=/foo"
990 # and all the variables that are supposed to be based on exec_prefix
991 # by default will actually change.
992 # Use braces instead of parens because sh, perl, etc. also accept them.
993 # (The list follows the same order as the GNU Coding Standards.)
994 bindir='${exec_prefix}/bin'
995 sbindir='${exec_prefix}/sbin'
996 libexecdir='${exec_prefix}/libexec'
997 datarootdir='${prefix}/share'
998 datadir='${datarootdir}'
999 sysconfdir='${prefix}/etc'
1000 sharedstatedir='${prefix}/com'
1001 localstatedir='${prefix}/var'
1002 includedir='${prefix}/include'
1003 oldincludedir='/usr/include'
1004 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1005 infodir='${datarootdir}/info'
1010 libdir='${exec_prefix}/lib'
1011 localedir='${datarootdir}/locale'
1012 mandir='${datarootdir}/man'
1018 # If the previous option needs an argument, assign it.
1019 if test -n "$ac_prev"; then
1020 eval $ac_prev=\$ac_option
1026 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1030 # Accept the important Cygnus configure options, so we can diagnose typos.
1032 case $ac_dashdash$ac_option in
1036 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1038 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1039 bindir=$ac_optarg ;;
1041 -build | --build | --buil | --bui | --bu)
1042 ac_prev=build_alias ;;
1043 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1044 build_alias=$ac_optarg ;;
1046 -cache-file | --cache-file | --cache-fil | --cache-fi \
1047 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1048 ac_prev=cache_file ;;
1049 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1050 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1051 cache_file=$ac_optarg ;;
1053 --config-cache | -C)
1054 cache_file=config.cache ;;
1056 -datadir | --datadir | --datadi | --datad)
1058 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1059 datadir=$ac_optarg ;;
1061 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1062 | --dataroo | --dataro | --datar)
1063 ac_prev=datarootdir ;;
1064 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1065 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1066 datarootdir=$ac_optarg ;;
1068 -disable-* | --disable-*)
1069 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1072 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1075 eval enable_$ac_feature=no ;;
1077 -docdir | --docdir | --docdi | --doc | --do)
1079 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1080 docdir=$ac_optarg ;;
1082 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1084 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1085 dvidir=$ac_optarg ;;
1087 -enable-* | --enable-*)
1088 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1091 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1092 { (exit 1); exit 1; }; }
1093 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1094 eval enable_$ac_feature=\$ac_optarg ;;
1096 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1097 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1098 | --exec | --exe | --ex)
1099 ac_prev=exec_prefix ;;
1100 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1101 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1102 | --exec=* | --exe=* | --ex=*)
1103 exec_prefix=$ac_optarg ;;
1105 -gas | --gas | --ga | --g)
1106 # Obsolete; use --with-gas.
1109 -help | --help | --hel | --he | -h)
1110 ac_init_help=long ;;
1111 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1112 ac_init_help=recursive ;;
1113 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1114 ac_init_help=short ;;
1116 -host | --host | --hos | --ho)
1117 ac_prev=host_alias ;;
1118 -host=* | --host=* | --hos=* | --ho=*)
1119 host_alias=$ac_optarg ;;
1121 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125 htmldir=$ac_optarg ;;
1127 -includedir | --includedir | --includedi | --included | --include \
1128 | --includ | --inclu | --incl | --inc)
1129 ac_prev=includedir ;;
1130 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1131 | --includ=* | --inclu=* | --incl=* | --inc=*)
1132 includedir=$ac_optarg ;;
1134 -infodir | --infodir | --infodi | --infod | --info | --inf)
1136 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1137 infodir=$ac_optarg ;;
1139 -libdir | --libdir | --libdi | --libd)
1141 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1142 libdir=$ac_optarg ;;
1144 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1145 | --libexe | --libex | --libe)
1146 ac_prev=libexecdir ;;
1147 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1148 | --libexe=* | --libex=* | --libe=*)
1149 libexecdir=$ac_optarg ;;
1151 -localedir | --localedir | --localedi | --localed | --locale)
1152 ac_prev=localedir ;;
1153 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1154 localedir=$ac_optarg ;;
1156 -localstatedir | --localstatedir | --localstatedi | --localstated \
1157 | --localstate | --localstat | --localsta | --localst | --locals)
1158 ac_prev=localstatedir ;;
1159 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1160 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1161 localstatedir=$ac_optarg ;;
1163 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1166 mandir=$ac_optarg ;;
1168 -nfp | --nfp | --nf)
1169 # Obsolete; use --without-fp.
1172 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1173 | --no-cr | --no-c | -n)
1176 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1177 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1180 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1181 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1182 | --oldin | --oldi | --old | --ol | --o)
1183 ac_prev=oldincludedir ;;
1184 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1185 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1186 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1187 oldincludedir=$ac_optarg ;;
1189 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1192 prefix=$ac_optarg ;;
1194 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1195 | --program-pre | --program-pr | --program-p)
1196 ac_prev=program_prefix ;;
1197 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1198 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1199 program_prefix=$ac_optarg ;;
1201 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1202 | --program-suf | --program-su | --program-s)
1203 ac_prev=program_suffix ;;
1204 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1205 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1206 program_suffix=$ac_optarg ;;
1208 -program-transform-name | --program-transform-name \
1209 | --program-transform-nam | --program-transform-na \
1210 | --program-transform-n | --program-transform- \
1211 | --program-transform | --program-transfor \
1212 | --program-transfo | --program-transf \
1213 | --program-trans | --program-tran \
1214 | --progr-tra | --program-tr | --program-t)
1215 ac_prev=program_transform_name ;;
1216 -program-transform-name=* | --program-transform-name=* \
1217 | --program-transform-nam=* | --program-transform-na=* \
1218 | --program-transform-n=* | --program-transform-=* \
1219 | --program-transform=* | --program-transfor=* \
1220 | --program-transfo=* | --program-transf=* \
1221 | --program-trans=* | --program-tran=* \
1222 | --progr-tra=* | --program-tr=* | --program-t=*)
1223 program_transform_name=$ac_optarg ;;
1225 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1228 pdfdir=$ac_optarg ;;
1230 -psdir | --psdir | --psdi | --psd | --ps)
1232 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1236 | -silent | --silent | --silen | --sile | --sil)
1239 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1241 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1243 sbindir=$ac_optarg ;;
1245 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1246 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1247 | --sharedst | --shareds | --shared | --share | --shar \
1249 ac_prev=sharedstatedir ;;
1250 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1251 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1252 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1254 sharedstatedir=$ac_optarg ;;
1256 -site | --site | --sit)
1258 -site=* | --site=* | --sit=*)
1261 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1263 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1264 srcdir=$ac_optarg ;;
1266 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1267 | --syscon | --sysco | --sysc | --sys | --sy)
1268 ac_prev=sysconfdir ;;
1269 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1270 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1271 sysconfdir=$ac_optarg ;;
1273 -target | --target | --targe | --targ | --tar | --ta | --t)
1274 ac_prev=target_alias ;;
1275 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1276 target_alias=$ac_optarg ;;
1278 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1281 -version | --version | --versio | --versi | --vers | -V)
1282 ac_init_version=: ;;
1285 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1286 # Reject names that are not valid shell variable names.
1287 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1288 { echo "$as_me: error: invalid package name: $ac_package" >&2
1289 { (exit 1); exit 1; }; }
1290 ac_package=`echo $ac_package| sed 's/-/_/g'`
1291 eval with_$ac_package=\$ac_optarg ;;
1293 -without-* | --without-*)
1294 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1297 { echo "$as_me: error: invalid package name: $ac_package" >&2
1298 { (exit 1); exit 1; }; }
1299 ac_package=`echo $ac_package | sed 's/-/_/g'`
1300 eval with_$ac_package=no ;;
1303 # Obsolete; use --with-x.
1306 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1307 | --x-incl | --x-inc | --x-in | --x-i)
1308 ac_prev=x_includes ;;
1309 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1310 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1311 x_includes=$ac_optarg ;;
1313 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1314 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1315 ac_prev=x_libraries ;;
1316 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1317 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1318 x_libraries=$ac_optarg ;;
1320 -*) { echo "$as_me: error: unrecognized option: $ac_option
1321 Try \`$0 --help' for more information." >&2
1322 { (exit 1); exit 1; }; }
1326 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1327 # Reject names that are not valid shell variable names.
1328 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1329 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1330 { (exit 1); exit 1; }; }
1331 eval $ac_envvar=\$ac_optarg
1332 export $ac_envvar ;;
1335 # FIXME: should be removed in autoconf 3.0.
1336 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1337 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1338 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1339 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1345 if test -n "$ac_prev"; then
1346 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1347 { echo "$as_me: error: missing argument to $ac_option" >&2
1348 { (exit 1); exit 1; }; }
1351 # Be sure to have absolute directory names.
1352 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1353 datadir sysconfdir sharedstatedir localstatedir includedir \
1354 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1355 libdir localedir mandir
1357 eval ac_val=\$$ac_var
1359 [\\/$]* | ?:[\\/]* ) continue;;
1360 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1362 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1363 { (exit 1); exit 1; }; }
1366 # There might be people who depend on the old broken behavior: `$host'
1367 # used to hold the argument of --host etc.
1368 # FIXME: To remove some day.
1371 target=$target_alias
1373 # FIXME: To remove some day.
1374 if test "x$host_alias" != x; then
1375 if test "x$build_alias" = x; then
1376 cross_compiling=maybe
1377 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1378 If a cross compiler is detected then cross compile mode will be used." >&2
1379 elif test "x$build_alias" != "x$host_alias"; then
1385 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1387 test "$silent" = yes && exec 6>/dev/null
1390 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1391 ac_ls_di=`ls -di .` &&
1392 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1393 { echo "$as_me: error: Working directory cannot be determined" >&2
1394 { (exit 1); exit 1; }; }
1395 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1396 { echo "$as_me: error: pwd does not report name of working directory" >&2
1397 { (exit 1); exit 1; }; }
1400 # Find the source files, if location was not specified.
1401 if test -z "$srcdir"; then
1402 ac_srcdir_defaulted=yes
1403 # Try the directory containing this script, then the parent directory.
1404 ac_confdir=`$as_dirname -- "$0" ||
1405 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1406 X"$0" : 'X\(//\)[^/]' \| \
1407 X"$0" : 'X\(//\)$' \| \
1408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1428 if test ! -r "$srcdir/$ac_unique_file"; then
1432 ac_srcdir_defaulted=no
1434 if test ! -r "$srcdir/$ac_unique_file"; then
1435 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1436 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1437 { (exit 1); exit 1; }; }
1439 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1441 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1442 { (exit 1); exit 1; }; }
1444 # When building in place, set srcdir=.
1445 if test "$ac_abs_confdir" = "$ac_pwd"; then
1448 # Remove unnecessary trailing slashes from srcdir.
1449 # Double slashes in file names in object file debugging info
1450 # mess up M-x gdb in Emacs.
1452 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1454 for ac_var in $ac_precious_vars; do
1455 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1456 eval ac_env_${ac_var}_value=\$${ac_var}
1457 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1458 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1462 # Report the --help message.
1464 if test "$ac_init_help" = "long"; then
1465 # Omit some internal or obsolete options to make the list less imposing.
1466 # This message is too long to be a string in the A/UX 3.1 sh.
1468 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1470 Usage: $0 [OPTION]... [VAR=VALUE]...
1472 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1473 VAR=VALUE. See below for descriptions of some of the useful variables.
1475 Defaults for the options are specified in brackets.
1478 -h, --help display this help and exit
1479 --help=short display options specific to this package
1480 --help=recursive display the short help of all the included packages
1481 -V, --version display version information and exit
1482 -q, --quiet, --silent do not print \`checking...' messages
1483 --cache-file=FILE cache test results in FILE [disabled]
1484 -C, --config-cache alias for \`--cache-file=config.cache'
1485 -n, --no-create do not create output files
1486 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1488 Installation directories:
1489 --prefix=PREFIX install architecture-independent files in PREFIX
1490 [$ac_default_prefix]
1491 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1494 By default, \`make install' will install all the files in
1495 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1496 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1497 for instance \`--prefix=\$HOME'.
1499 For better control, use the options below.
1501 Fine tuning of the installation directories:
1502 --bindir=DIR user executables [EPREFIX/bin]
1503 --sbindir=DIR system admin executables [EPREFIX/sbin]
1504 --libexecdir=DIR program executables [EPREFIX/libexec]
1505 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1506 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1507 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1508 --libdir=DIR object code libraries [EPREFIX/lib]
1509 --includedir=DIR C header files [PREFIX/include]
1510 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1511 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1512 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1513 --infodir=DIR info documentation [DATAROOTDIR/info]
1514 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1515 --mandir=DIR man documentation [DATAROOTDIR/man]
1516 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1517 --htmldir=DIR html documentation [DOCDIR]
1518 --dvidir=DIR dvi documentation [DOCDIR]
1519 --pdfdir=DIR pdf documentation [DOCDIR]
1520 --psdir=DIR ps documentation [DOCDIR]
1526 --build=BUILD configure for building on BUILD [guessed]
1527 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1528 --target=TARGET configure for building compilers for TARGET [HOST]
1532 if test -n "$ac_init_help"; then
1533 case $ac_init_help in
1534 short | recursive ) echo "Configuration of llvm 2.6svn:";;
1539 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1540 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1543 --enable-expensive-checks
1545 --enable-debug-runtime
1546 --enable-jit Enable Just In Time Compiling (default is YES)
1547 --enable-doxygen Build doxygen documentation (default is NO)
1548 --enable-threads Use threads if available (default is YES)
1549 --enable-pic Build LLVM with Position Independent Code (default
1551 --enable-targets Build specific host targets:
1552 all,host-only,{target-name} (default=all)
1553 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1555 --enable-bindings Build specific language bindings:
1556 all,auto,none,{binding-name} (default=auto)
1557 --enable-ltdl-install install libltdl
1558 --enable-shared[=PKGS] build shared libraries
1560 --enable-static[=PKGS] build static libraries
1562 --enable-fast-install[=PKGS]
1563 optimize for fast installation
1565 --disable-libtool-lock avoid locking (might break parallel builds)
1568 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1569 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1570 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1572 --with-llvmgcc Specify location of llvm-gcc driver (default
1574 --with-llvmgxx Specify location of llvm-g++ driver (default
1576 --with-extra-options Specify addtional options to compile LLVM with
1577 --with-ocaml-libdir Specify install location for ocaml bindings (default
1579 --with-binutils-include Specify path to binutils/include/ containing
1580 plugin-api.h file for gold plugin.
1581 --with-tclinclude directory where tcl headers are
1582 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1583 --with-pic try to use only PIC/non-PIC objects [default=use
1585 --with-tags[=TAGS] include additional configurations [automatic]
1586 --with-udis86=<path> Use udis86 external x86 disassembler library
1588 Some influential environment variables:
1589 CC C compiler command
1590 CFLAGS C compiler flags
1591 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1592 nonstandard directory <lib dir>
1593 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1594 you have headers in a nonstandard directory <include dir>
1596 CXX C++ compiler command
1597 CXXFLAGS C++ compiler flags
1598 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1599 the first program found out of: `bison -y', `byacc', `yacc'.
1600 YFLAGS The list of arguments that will be passed by default to $YACC.
1601 This script will default YFLAGS to the empty string to avoid a
1602 default value of `-d' given by some make applications.
1603 CXXCPP C++ preprocessor
1604 F77 Fortran 77 compiler command
1605 FFLAGS Fortran 77 compiler flags
1607 Use these variables to override the choices made by `configure' or to help
1608 it to find libraries and programs with nonstandard names/locations.
1610 Report bugs to <llvmbugs@cs.uiuc.edu>.
1615 if test "$ac_init_help" = "recursive"; then
1616 # If there are subdirs, report their specific --help.
1617 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1618 test -d "$ac_dir" || continue
1622 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1625 # A ".." for each directory in $ac_dir_suffix.
1626 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1627 case $ac_top_builddir_sub in
1628 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1632 ac_abs_top_builddir=$ac_pwd
1633 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1634 # for backward compatibility:
1635 ac_top_builddir=$ac_top_build_prefix
1638 .) # We are building in place.
1640 ac_top_srcdir=$ac_top_builddir_sub
1641 ac_abs_top_srcdir=$ac_pwd ;;
1642 [\\/]* | ?:[\\/]* ) # Absolute name.
1643 ac_srcdir=$srcdir$ac_dir_suffix;
1644 ac_top_srcdir=$srcdir
1645 ac_abs_top_srcdir=$srcdir ;;
1647 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1648 ac_top_srcdir=$ac_top_build_prefix$srcdir
1649 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1651 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1653 cd "$ac_dir" || { ac_status=$?; continue; }
1654 # Check for guested configure.
1655 if test -f "$ac_srcdir/configure.gnu"; then
1657 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1658 elif test -f "$ac_srcdir/configure"; then
1660 $SHELL "$ac_srcdir/configure" --help=recursive
1662 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1664 cd "$ac_pwd" || { ac_status=$?; break; }
1668 test -n "$ac_init_help" && exit $ac_status
1669 if $ac_init_version; then
1671 llvm configure 2.6svn
1672 generated by GNU Autoconf 2.60
1674 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1675 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1676 This configure script is free software; the Free Software Foundation
1677 gives unlimited permission to copy, distribute and modify it.
1679 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1683 cat >config.log <<_ACEOF
1684 This file contains any messages produced by compilers while
1685 running configure, to aid debugging if configure makes a mistake.
1687 It was created by llvm $as_me 2.6svn, which was
1688 generated by GNU Autoconf 2.60. Invocation command line was
1700 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1701 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1702 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1703 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1704 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1706 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1707 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1709 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1710 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1711 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1712 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1713 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1714 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1715 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723 test -z "$as_dir" && as_dir=.
1724 echo "PATH: $as_dir"
1740 # Keep a trace of the command line.
1741 # Strip out --no-create and --no-recursion so they do not pile up.
1742 # Strip out --silent because we don't want to record it for future runs.
1743 # Also quote any args containing shell meta-characters.
1744 # Make two passes to allow for proper duplicate-argument suppression.
1748 ac_must_keep_next=false
1754 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1755 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1756 | -silent | --silent | --silen | --sile | --sil)
1759 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1762 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1764 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1765 if test $ac_must_keep_next = true; then
1766 ac_must_keep_next=false # Got value, back to normal.
1769 *=* | --config-cache | -C | -disable-* | --disable-* \
1770 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1771 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1772 | -with-* | --with-* | -without-* | --without-* | --x)
1773 case "$ac_configure_args0 " in
1774 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1777 -* ) ac_must_keep_next=true ;;
1780 ac_configure_args="$ac_configure_args '$ac_arg'"
1785 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1786 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1788 # When interrupted or exit'd, cleanup temporary files, and complete
1789 # config.log. We remove comments because anyway the quotes in there
1790 # would cause problems or look ugly.
1791 # WARNING: Use '\'' to represent an apostrophe within the trap.
1792 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1793 trap 'exit_status=$?
1794 # Save into config.log some information that might help in debugging.
1799 ## ---------------- ##
1800 ## Cache variables. ##
1801 ## ---------------- ##
1804 # The following way of writing the cache mishandles newlines in values,
1806 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1807 eval ac_val=\$$ac_var
1811 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1812 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1815 _ | IFS | as_nl) ;; #(
1816 *) $as_unset $ac_var ;;
1821 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1822 *${as_nl}ac_space=\ *)
1824 "s/'\''/'\''\\\\'\'''\''/g;
1825 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1828 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1836 ## ----------------- ##
1837 ## Output variables. ##
1838 ## ----------------- ##
1841 for ac_var in $ac_subst_vars
1843 eval ac_val=\$$ac_var
1845 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1847 echo "$ac_var='\''$ac_val'\''"
1851 if test -n "$ac_subst_files"; then
1853 ## ------------------- ##
1854 ## File substitutions. ##
1855 ## ------------------- ##
1858 for ac_var in $ac_subst_files
1860 eval ac_val=\$$ac_var
1862 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1864 echo "$ac_var='\''$ac_val'\''"
1869 if test -s confdefs.h; then
1879 test "$ac_signal" != 0 &&
1880 echo "$as_me: caught signal $ac_signal"
1881 echo "$as_me: exit $exit_status"
1883 rm -f core *.core core.conftest.* &&
1884 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1887 for ac_signal in 1 2 13 15; do
1888 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1892 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1893 rm -f -r conftest* confdefs.h
1895 # Predefined preprocessor variables.
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_NAME "$PACKAGE_NAME"
1902 cat >>confdefs.h <<_ACEOF
1903 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1907 cat >>confdefs.h <<_ACEOF
1908 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_STRING "$PACKAGE_STRING"
1917 cat >>confdefs.h <<_ACEOF
1918 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1922 # Let the site file select an alternate cache file if it wants to.
1923 # Prefer explicitly selected file to automatically selected ones.
1924 if test -n "$CONFIG_SITE"; then
1925 set x "$CONFIG_SITE"
1926 elif test "x$prefix" != xNONE; then
1927 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1929 set x "$ac_default_prefix/share/config.site" \
1930 "$ac_default_prefix/etc/config.site"
1935 if test -r "$ac_site_file"; then
1936 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1937 echo "$as_me: loading site script $ac_site_file" >&6;}
1938 sed 's/^/| /' "$ac_site_file" >&5
1943 if test -r "$cache_file"; then
1944 # Some versions of bash will fail to source /dev/null (special
1945 # files actually), so we avoid doing that.
1946 if test -f "$cache_file"; then
1947 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1948 echo "$as_me: loading cache $cache_file" >&6;}
1950 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1951 *) . "./$cache_file";;
1955 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1956 echo "$as_me: creating cache $cache_file" >&6;}
1960 # Check that the precious variables saved in the cache have kept the same
1962 ac_cache_corrupted=false
1963 for ac_var in $ac_precious_vars; do
1964 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1965 eval ac_new_set=\$ac_env_${ac_var}_set
1966 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1967 eval ac_new_val=\$ac_env_${ac_var}_value
1968 case $ac_old_set,$ac_new_set in
1970 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1971 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1972 ac_cache_corrupted=: ;;
1974 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1975 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1976 ac_cache_corrupted=: ;;
1979 if test "x$ac_old_val" != "x$ac_new_val"; then
1980 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1981 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1982 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1983 echo "$as_me: former value: $ac_old_val" >&2;}
1984 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1985 echo "$as_me: current value: $ac_new_val" >&2;}
1986 ac_cache_corrupted=:
1989 # Pass precious variables to config.status.
1990 if test "$ac_new_set" = set; then
1992 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1993 *) ac_arg=$ac_var=$ac_new_val ;;
1995 case " $ac_configure_args " in
1996 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1997 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2001 if $ac_cache_corrupted; then
2002 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2003 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2004 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2005 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2006 { (exit 1); exit 1; }; }
2034 ac_cpp='$CPP $CPPFLAGS'
2035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2041 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2050 for ac_dir in autoconf "$srcdir"/autoconf; do
2051 if test -f "$ac_dir/install-sh"; then
2053 ac_install_sh="$ac_aux_dir/install-sh -c"
2055 elif test -f "$ac_dir/install.sh"; then
2057 ac_install_sh="$ac_aux_dir/install.sh -c"
2059 elif test -f "$ac_dir/shtool"; then
2061 ac_install_sh="$ac_aux_dir/shtool install -c"
2065 if test -z "$ac_aux_dir"; then
2066 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2067 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2068 { (exit 1); exit 1; }; }
2071 # These three variables are undocumented and unsupported,
2072 # and are intended to be withdrawn in a future Autoconf release.
2073 # They can cause serious problems if a builder's source tree is in a directory
2074 # whose full name contains unusual characters.
2075 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2076 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2077 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2081 if test ${srcdir} != "." ; then
2082 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2083 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2084 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2085 { (exit 1); exit 1; }; }
2089 for i in `ls ${srcdir}/projects`
2091 if test -d ${srcdir}/projects/${i} ; then
2094 sample) subdirs="$subdirs projects/sample"
2096 privbracket) subdirs="$subdirs projects/privbracket"
2098 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2100 # llvm-test is the old name of the test-suite, kept here for backwards
2102 llvm-test) subdirs="$subdirs projects/llvm-test"
2104 test-suite) subdirs="$subdirs projects/test-suite"
2106 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2108 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2110 llvm-java) subdirs="$subdirs projects/llvm-java"
2112 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2114 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2116 poolalloc) subdirs="$subdirs projects/poolalloc"
2118 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2121 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2122 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2129 # Make sure we can run config.sub.
2130 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2131 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2132 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2133 { (exit 1); exit 1; }; }
2135 { echo "$as_me:$LINENO: checking build system type" >&5
2136 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2137 if test "${ac_cv_build+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 ac_build_alias=$build_alias
2141 test "x$ac_build_alias" = x &&
2142 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2143 test "x$ac_build_alias" = x &&
2144 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2145 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2146 { (exit 1); exit 1; }; }
2147 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2148 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2149 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2150 { (exit 1); exit 1; }; }
2153 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2154 echo "${ECHO_T}$ac_cv_build" >&6; }
2155 case $ac_cv_build in
2157 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2158 echo "$as_me: error: invalid value of canonical build" >&2;}
2159 { (exit 1); exit 1; }; };;
2162 ac_save_IFS=$IFS; IFS='-'
2168 # Remember, the first character of IFS is used to create $*,
2169 # except with old shells:
2172 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2175 { echo "$as_me:$LINENO: checking host system type" >&5
2176 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2177 if test "${ac_cv_host+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 if test "x$host_alias" = x; then
2181 ac_cv_host=$ac_cv_build
2183 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2184 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2185 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2186 { (exit 1); exit 1; }; }
2190 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2191 echo "${ECHO_T}$ac_cv_host" >&6; }
2194 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2195 echo "$as_me: error: invalid value of canonical host" >&2;}
2196 { (exit 1); exit 1; }; };;
2199 ac_save_IFS=$IFS; IFS='-'
2205 # Remember, the first character of IFS is used to create $*,
2206 # except with old shells:
2209 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2212 { echo "$as_me:$LINENO: checking target system type" >&5
2213 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2214 if test "${ac_cv_target+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 if test "x$target_alias" = x; then
2218 ac_cv_target=$ac_cv_host
2220 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2221 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2222 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2223 { (exit 1); exit 1; }; }
2227 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2228 echo "${ECHO_T}$ac_cv_target" >&6; }
2229 case $ac_cv_target in
2231 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2232 echo "$as_me: error: invalid value of canonical target" >&2;}
2233 { (exit 1); exit 1; }; };;
2235 target=$ac_cv_target
2236 ac_save_IFS=$IFS; IFS='-'
2242 # Remember, the first character of IFS is used to create $*,
2243 # except with old shells:
2246 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2249 # The aliases save the names the user supplied, while $host etc.
2250 # will get canonicalized.
2251 test -n "$target_alias" &&
2252 test "$program_prefix$program_suffix$program_transform_name" = \
2254 program_prefix=${target_alias}-
2256 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2257 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2258 if test "${llvm_cv_os_type+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 llvm_cv_link_all_option="-Wl,--whole-archive"
2264 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2265 llvm_cv_os_type="AIX"
2266 llvm_cv_platform_type="Unix" ;;
2268 llvm_cv_link_all_option="-Wl,--whole-archive"
2269 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2270 llvm_cv_os_type="IRIX"
2271 llvm_cv_platform_type="Unix" ;;
2273 llvm_cv_link_all_option="-Wl,--whole-archive"
2274 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2275 llvm_cv_os_type="Cygwin"
2276 llvm_cv_platform_type="Unix" ;;
2278 llvm_cv_link_all_option="-Wl,-all_load"
2279 llvm_cv_no_link_all_option="-Wl,-noall_load"
2280 llvm_cv_os_type="Darwin"
2281 llvm_cv_platform_type="Unix" ;;
2283 llvm_cv_link_all_option="-Wl,--whole-archive"
2284 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2285 llvm_cv_os_type="FreeBSD"
2286 llvm_cv_platform_type="Unix" ;;
2288 llvm_cv_link_all_option="-Wl,--whole-archive"
2289 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2290 llvm_cv_os_type="OpenBSD"
2291 llvm_cv_platform_type="Unix" ;;
2293 llvm_cv_link_all_option="-Wl,--whole-archive"
2294 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2295 llvm_cv_os_type="NetBSD"
2296 llvm_cv_platform_type="Unix" ;;
2298 llvm_cv_link_all_option="-Wl,--whole-archive"
2299 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2300 llvm_cv_os_type="DragonFly"
2301 llvm_cv_platform_type="Unix" ;;
2303 llvm_cv_link_all_option="-Wl,--whole-archive"
2304 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2305 llvm_cv_os_type="HP-UX"
2306 llvm_cv_platform_type="Unix" ;;
2308 llvm_cv_link_all_option="-Wl,--whole-archive"
2309 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2310 llvm_cv_os_type="Interix"
2311 llvm_cv_platform_type="Unix" ;;
2313 llvm_cv_link_all_option="-Wl,--whole-archive"
2314 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2315 llvm_cv_os_type="Linux"
2316 llvm_cv_platform_type="Unix" ;;
2318 llvm_cv_link_all_option="-Wl,-z,allextract"
2319 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2320 llvm_cv_os_type="SunOS"
2321 llvm_cv_platform_type="Unix" ;;
2323 llvm_cv_link_all_option="-Wl,--whole-archive"
2324 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2325 llvm_cv_os_type="Win32"
2326 llvm_cv_platform_type="Win32" ;;
2328 llvm_cv_link_all_option="-Wl,--whole-archive"
2329 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2330 llvm_cv_os_type="MingW"
2331 llvm_cv_platform_type="Win32" ;;
2333 llvm_cv_link_all_option=""
2334 llvm_cv_no_link_all_option=""
2335 llvm_cv_os_type="Unknown"
2336 llvm_cv_platform_type="Unknown" ;;
2339 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2340 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2342 if test "$llvm_cv_os_type" = "Unknown" ; then
2343 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2344 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2345 { (exit 1); exit 1; }; }
2351 LINKALL=$llvm_cv_link_all_option
2353 NOLINKALL=$llvm_cv_no_link_all_option
2356 case $llvm_cv_platform_type in
2359 cat >>confdefs.h <<\_ACEOF
2360 #define LLVM_ON_UNIX 1
2370 cat >>confdefs.h <<\_ACEOF
2371 #define LLVM_ON_WIN32 1
2381 { echo "$as_me:$LINENO: checking target architecture" >&5
2382 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2383 if test "${llvm_cv_target_arch+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 i?86-*) llvm_cv_target_arch="x86" ;;
2388 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2389 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2390 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2391 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2392 ia64-*) llvm_cv_target_arch="IA64" ;;
2393 arm-*) llvm_cv_target_arch="ARM" ;;
2394 mips-*) llvm_cv_target_arch="Mips" ;;
2395 pic16-*) llvm_cv_target_arch="PIC16" ;;
2396 xcore-*) llvm_cv_target_arch="XCore" ;;
2397 *) llvm_cv_target_arch="Unknown" ;;
2400 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2401 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2403 if test "$llvm_cv_target_arch" = "Unknown" ; then
2404 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2405 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2408 ARCH=$llvm_cv_target_arch
2412 ac_cpp='$CPP $CPPFLAGS'
2413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2416 if test -n "$ac_tool_prefix"; then
2417 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2418 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2421 if test "${ac_cv_prog_CC+set}" = set; then
2422 echo $ECHO_N "(cached) $ECHO_C" >&6
2424 if test -n "$CC"; then
2425 ac_cv_prog_CC="$CC" # Let the user override the test.
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 test -z "$as_dir" && as_dir=.
2432 for ac_exec_ext in '' $ac_executable_extensions; do
2433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2434 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 if test -n "$CC"; then
2446 { echo "$as_me:$LINENO: result: $CC" >&5
2447 echo "${ECHO_T}$CC" >&6; }
2449 { echo "$as_me:$LINENO: result: no" >&5
2450 echo "${ECHO_T}no" >&6; }
2455 if test -z "$ac_cv_prog_CC"; then
2457 # Extract the first word of "gcc", so it can be a program name with args.
2458 set dummy gcc; ac_word=$2
2459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 if test -n "$ac_ct_CC"; then
2465 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 test -z "$as_dir" && as_dir=.
2472 for ac_exec_ext in '' $ac_executable_extensions; do
2473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2474 ac_cv_prog_ac_ct_CC="gcc"
2475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2485 if test -n "$ac_ct_CC"; then
2486 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2487 echo "${ECHO_T}$ac_ct_CC" >&6; }
2489 { echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6; }
2493 if test "x$ac_ct_CC" = x; then
2496 case $cross_compiling:$ac_tool_warned in
2498 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2499 whose name does not start with the host triplet. If you think this
2500 configuration is useful to you, please write to autoconf@gnu.org." >&5
2501 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2502 whose name does not start with the host triplet. If you think this
2503 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2504 ac_tool_warned=yes ;;
2512 if test -z "$CC"; then
2513 if test -n "$ac_tool_prefix"; then
2514 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2515 set dummy ${ac_tool_prefix}cc; ac_word=$2
2516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2518 if test "${ac_cv_prog_CC+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2521 if test -n "$CC"; then
2522 ac_cv_prog_CC="$CC" # Let the user override the test.
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 test -z "$as_dir" && as_dir=.
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2531 ac_cv_prog_CC="${ac_tool_prefix}cc"
2532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 if test -n "$CC"; then
2543 { echo "$as_me:$LINENO: result: $CC" >&5
2544 echo "${ECHO_T}$CC" >&6; }
2546 { echo "$as_me:$LINENO: result: no" >&5
2547 echo "${ECHO_T}no" >&6; }
2553 if test -z "$CC"; then
2554 # Extract the first word of "cc", so it can be a program name with args.
2555 set dummy cc; ac_word=$2
2556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2558 if test "${ac_cv_prog_CC+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 if test -n "$CC"; then
2562 ac_cv_prog_CC="$CC" # Let the user override the test.
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2572 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2573 ac_prog_rejected=yes
2577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 if test $ac_prog_rejected = yes; then
2585 # We found a bogon in the path, so make sure we never use it.
2586 set dummy $ac_cv_prog_CC
2588 if test $# != 0; then
2589 # We chose a different compiler from the bogus one.
2590 # However, it has the same basename, so the bogon will be chosen
2591 # first if we set CC to just the basename; use the full file name.
2593 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2599 if test -n "$CC"; then
2600 { echo "$as_me:$LINENO: result: $CC" >&5
2601 echo "${ECHO_T}$CC" >&6; }
2603 { echo "$as_me:$LINENO: result: no" >&5
2604 echo "${ECHO_T}no" >&6; }
2609 if test -z "$CC"; then
2610 if test -n "$ac_tool_prefix"; then
2611 for ac_prog in cl.exe
2613 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2614 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2617 if test "${ac_cv_prog_CC+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 if test -n "$CC"; then
2621 ac_cv_prog_CC="$CC" # Let the user override the test.
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2630 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2641 if test -n "$CC"; then
2642 { echo "$as_me:$LINENO: result: $CC" >&5
2643 echo "${ECHO_T}$CC" >&6; }
2645 { echo "$as_me:$LINENO: result: no" >&5
2646 echo "${ECHO_T}no" >&6; }
2650 test -n "$CC" && break
2653 if test -z "$CC"; then
2655 for ac_prog in cl.exe
2657 # Extract the first word of "$ac_prog", so it can be a program name with args.
2658 set dummy $ac_prog; ac_word=$2
2659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2661 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 if test -n "$ac_ct_CC"; then
2665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2674 ac_cv_prog_ac_ct_CC="$ac_prog"
2675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2685 if test -n "$ac_ct_CC"; then
2686 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2687 echo "${ECHO_T}$ac_ct_CC" >&6; }
2689 { echo "$as_me:$LINENO: result: no" >&5
2690 echo "${ECHO_T}no" >&6; }
2694 test -n "$ac_ct_CC" && break
2697 if test "x$ac_ct_CC" = x; then
2700 case $cross_compiling:$ac_tool_warned in
2702 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2703 whose name does not start with the host triplet. If you think this
2704 configuration is useful to you, please write to autoconf@gnu.org." >&5
2705 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2706 whose name does not start with the host triplet. If you think this
2707 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2708 ac_tool_warned=yes ;;
2717 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2718 See \`config.log' for more details." >&5
2719 echo "$as_me: error: no acceptable C compiler found in \$PATH
2720 See \`config.log' for more details." >&2;}
2721 { (exit 1); exit 1; }; }
2723 # Provide some information about the compiler.
2724 echo "$as_me:$LINENO: checking for C compiler version" >&5
2725 ac_compiler=`set X $ac_compile; echo $2`
2726 { (ac_try="$ac_compiler --version >&5"
2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732 (eval "$ac_compiler --version >&5") 2>&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }
2736 { (ac_try="$ac_compiler -v >&5"
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742 (eval "$ac_compiler -v >&5") 2>&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }
2746 { (ac_try="$ac_compiler -V >&5"
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752 (eval "$ac_compiler -V >&5") 2>&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }
2757 cat >conftest.$ac_ext <<_ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2772 ac_clean_files_save=$ac_clean_files
2773 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2774 # Try to create an executable without -o first, disregard a.out.
2775 # It will help us diagnose broken compilers, and finding out an intuition
2777 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2778 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2779 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2781 # List of possible output files, starting from the most likely.
2782 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2783 # only as a last resort. b.out is created by i960 compilers.
2784 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2786 # The IRIX 6 linker writes into existing files which may not be
2787 # executable, retaining their permissions. Remove them first so a
2788 # subsequent execution test works.
2790 for ac_file in $ac_files
2793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2794 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2799 if { (ac_try="$ac_link_default"
2801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802 *) ac_try_echo=$ac_try;;
2804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2805 (eval "$ac_link_default") 2>&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; then
2809 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2810 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2811 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2812 # so that the user can short-circuit this test for compilers unknown to
2814 for ac_file in $ac_files
2816 test -f "$ac_file" || continue
2818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2821 # We found the default executable, but exeext='' is most
2825 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2827 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2829 # We set ac_cv_exeext here because the later test for it is not
2830 # safe: cross compilers may not add the suffix if given an `-o'
2831 # argument, so we may need to know it at that point already.
2832 # Even if this section looks crufty: it has the advantage of
2839 test "$ac_cv_exeext" = no && ac_cv_exeext=
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2845 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2846 See \`config.log' for more details." >&5
2847 echo "$as_me: error: C compiler cannot create executables
2848 See \`config.log' for more details." >&2;}
2849 { (exit 77); exit 77; }; }
2852 ac_exeext=$ac_cv_exeext
2853 { echo "$as_me:$LINENO: result: $ac_file" >&5
2854 echo "${ECHO_T}$ac_file" >&6; }
2856 # Check that the compiler produces executables we can run. If not, either
2857 # the compiler is broken, or we cross compile.
2858 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2859 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2860 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2861 # If not cross compiling, check that we can run a simple program.
2862 if test "$cross_compiling" != yes; then
2863 if { ac_try='./$ac_file'
2864 { (case "(($ac_try" in
2865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2869 (eval "$ac_try") 2>&5
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }; }; then
2875 if test "$cross_compiling" = maybe; then
2878 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2879 If you meant to cross compile, use \`--host'.
2880 See \`config.log' for more details." >&5
2881 echo "$as_me: error: cannot run C compiled programs.
2882 If you meant to cross compile, use \`--host'.
2883 See \`config.log' for more details." >&2;}
2884 { (exit 1); exit 1; }; }
2888 { echo "$as_me:$LINENO: result: yes" >&5
2889 echo "${ECHO_T}yes" >&6; }
2891 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2892 ac_clean_files=$ac_clean_files_save
2893 # Check that the compiler produces executables we can run. If not, either
2894 # the compiler is broken, or we cross compile.
2895 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2896 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2897 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2898 echo "${ECHO_T}$cross_compiling" >&6; }
2900 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2901 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2902 if { (ac_try="$ac_link"
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_link") 2>&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; then
2912 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2913 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2914 # work properly (i.e., refer to `conftest.exe'), while it won't with
2916 for ac_file in conftest.exe conftest conftest.*; do
2917 test -f "$ac_file" || continue
2919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2920 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2926 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2927 See \`config.log' for more details." >&5
2928 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2929 See \`config.log' for more details." >&2;}
2930 { (exit 1); exit 1; }; }
2933 rm -f conftest$ac_cv_exeext
2934 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2935 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2937 rm -f conftest.$ac_ext
2938 EXEEXT=$ac_cv_exeext
2940 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2941 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2942 if test "${ac_cv_objext+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2945 cat >conftest.$ac_ext <<_ACEOF
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h. */
2960 rm -f conftest.o conftest.obj
2961 if { (ac_try="$ac_compile"
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_compile") 2>&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; then
2971 for ac_file in conftest.o conftest.obj conftest.*; do
2972 test -f "$ac_file" || continue;
2974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2975 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2980 echo "$as_me: failed program was:" >&5
2981 sed 's/^/| /' conftest.$ac_ext >&5
2983 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2984 See \`config.log' for more details." >&5
2985 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2986 See \`config.log' for more details." >&2;}
2987 { (exit 1); exit 1; }; }
2990 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2992 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2993 echo "${ECHO_T}$ac_cv_objext" >&6; }
2994 OBJEXT=$ac_cv_objext
2996 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2997 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2998 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 cat >conftest.$ac_ext <<_ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3019 rm -f conftest.$ac_objext
3020 if { (ac_try="$ac_compile"
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026 (eval "$ac_compile") 2>conftest.er1
3028 grep -v '^ *+' conftest.er1 >conftest.err
3030 cat conftest.err >&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } &&
3033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3034 { (case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039 (eval "$ac_try") 2>&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; } &&
3043 { ac_try='test -s conftest.$ac_objext'
3044 { (case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_try") 2>&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }; }; then
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3062 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3065 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3066 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3067 GCC=`test $ac_compiler_gnu = yes && echo yes`
3068 ac_test_CFLAGS=${CFLAGS+set}
3069 ac_save_CFLAGS=$CFLAGS
3070 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3071 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3072 if test "${ac_cv_prog_cc_g+set}" = set; then
3073 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 ac_save_c_werror_flag=$ac_c_werror_flag
3076 ac_c_werror_flag=yes
3079 cat >conftest.$ac_ext <<_ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3094 rm -f conftest.$ac_objext
3095 if { (ac_try="$ac_compile"
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_compile") 2>conftest.er1
3103 grep -v '^ *+' conftest.er1 >conftest.err
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } &&
3108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3109 { (case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114 (eval "$ac_try") 2>&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; } &&
3118 { ac_try='test -s conftest.$ac_objext'
3119 { (case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_try") 2>&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; }; then
3130 echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3134 cat >conftest.$ac_ext <<_ACEOF
3137 cat confdefs.h >>conftest.$ac_ext
3138 cat >>conftest.$ac_ext <<_ACEOF
3139 /* end confdefs.h. */
3149 rm -f conftest.$ac_objext
3150 if { (ac_try="$ac_compile"
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_compile") 2>conftest.er1
3158 grep -v '^ *+' conftest.er1 >conftest.err
3160 cat conftest.err >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); } &&
3163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3164 { (case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169 (eval "$ac_try") 2>&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }; } &&
3173 { ac_try='test -s conftest.$ac_objext'
3174 { (case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_try") 2>&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3185 echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3188 ac_c_werror_flag=$ac_save_c_werror_flag
3190 cat >conftest.$ac_ext <<_ACEOF
3193 cat confdefs.h >>conftest.$ac_ext
3194 cat >>conftest.$ac_ext <<_ACEOF
3195 /* end confdefs.h. */
3205 rm -f conftest.$ac_objext
3206 if { (ac_try="$ac_compile"
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3212 (eval "$ac_compile") 2>conftest.er1
3214 grep -v '^ *+' conftest.er1 >conftest.err
3216 cat conftest.err >&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); } &&
3219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3220 { (case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3225 (eval "$ac_try") 2>&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; } &&
3229 { ac_try='test -s conftest.$ac_objext'
3230 { (case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_try") 2>&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; }; then
3241 echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3254 ac_c_werror_flag=$ac_save_c_werror_flag
3256 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3257 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3258 if test "$ac_test_CFLAGS" = set; then
3259 CFLAGS=$ac_save_CFLAGS
3260 elif test $ac_cv_prog_cc_g = yes; then
3261 if test "$GCC" = yes; then
3267 if test "$GCC" = yes; then
3273 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3274 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3275 if test "${ac_cv_prog_cc_c89+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 ac_cv_prog_cc_c89=no
3280 cat >conftest.$ac_ext <<_ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h. */
3288 #include <sys/types.h>
3289 #include <sys/stat.h>
3290 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3291 struct buf { int x; };
3292 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3293 static char *e (p, i)
3299 static char *f (char * (*g) (char **, int), char **p, ...)
3304 s = g (p, va_arg (v,int));
3309 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3310 function prototypes and stuff, but not '\xHH' hex character constants.
3311 These don't provoke an error unfortunately, instead are silently treated
3312 as 'x'. The following induces an error, until -std is added to get
3313 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3314 array size at least. It's necessary to write '\x00'==0 to get something
3315 that's true only with -std. */
3316 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3318 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3319 inside strings and character constants. */
3321 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3323 int test (int i, double x);
3324 struct s1 {int (*f) (int a);};
3325 struct s2 {int (*f) (double a);};
3326 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3332 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3337 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3338 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3340 CC="$ac_save_CC $ac_arg"
3341 rm -f conftest.$ac_objext
3342 if { (ac_try="$ac_compile"
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348 (eval "$ac_compile") 2>conftest.er1
3350 grep -v '^ *+' conftest.er1 >conftest.err
3352 cat conftest.err >&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); } &&
3355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3356 { (case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3361 (eval "$ac_try") 2>&5
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }; } &&
3365 { ac_try='test -s conftest.$ac_objext'
3366 { (case "(($ac_try" in
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371 (eval "$ac_try") 2>&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; }; then
3375 ac_cv_prog_cc_c89=$ac_arg
3377 echo "$as_me: failed program was:" >&5
3378 sed 's/^/| /' conftest.$ac_ext >&5
3383 rm -f core conftest.err conftest.$ac_objext
3384 test "x$ac_cv_prog_cc_c89" != "xno" && break
3386 rm -f conftest.$ac_ext
3391 case "x$ac_cv_prog_cc_c89" in
3393 { echo "$as_me:$LINENO: result: none needed" >&5
3394 echo "${ECHO_T}none needed" >&6; } ;;
3396 { echo "$as_me:$LINENO: result: unsupported" >&5
3397 echo "${ECHO_T}unsupported" >&6; } ;;
3399 CC="$CC $ac_cv_prog_cc_c89"
3400 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3401 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3406 ac_cpp='$CPP $CPPFLAGS'
3407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3413 ac_cpp='$CPP $CPPFLAGS'
3414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3417 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3418 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3419 # On Suns, sometimes $CPP names a directory.
3420 if test -n "$CPP" && test -d "$CPP"; then
3423 if test -z "$CPP"; then
3424 if test "${ac_cv_prog_CPP+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 # Double quotes because CPP needs to be expanded
3428 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3431 for ac_c_preproc_warn_flag in '' yes
3433 # Use a header file that comes with gcc, so configuring glibc
3434 # with a fresh cross-compiler works.
3435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3436 # <limits.h> exists even on freestanding compilers.
3437 # On the NeXT, cc -E runs the code through the compiler's parser,
3438 # not just through cpp. "Syntax error" is here to catch this case.
3439 cat >conftest.$ac_ext <<_ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h. */
3446 # include <limits.h>
3448 # include <assert.h>
3452 if { (ac_try="$ac_cpp conftest.$ac_ext"
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3460 grep -v '^ *+' conftest.er1 >conftest.err
3462 cat conftest.err >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); } >/dev/null; then
3465 if test -s conftest.err; then
3466 ac_cpp_err=$ac_c_preproc_warn_flag
3467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3474 if test -z "$ac_cpp_err"; then
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.$ac_ext >&5
3480 # Broken: fails on valid input.
3484 rm -f conftest.err conftest.$ac_ext
3486 # OK, works on sane cases. Now check whether nonexistent headers
3487 # can be detected and how.
3488 cat >conftest.$ac_ext <<_ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3494 #include <ac_nonexistent.h>
3496 if { (ac_try="$ac_cpp conftest.$ac_ext"
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3504 grep -v '^ *+' conftest.er1 >conftest.err
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } >/dev/null; then
3509 if test -s conftest.err; then
3510 ac_cpp_err=$ac_c_preproc_warn_flag
3511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3518 if test -z "$ac_cpp_err"; then
3519 # Broken: success on invalid input.
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3525 # Passes both tests.
3530 rm -f conftest.err conftest.$ac_ext
3533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3534 rm -f conftest.err conftest.$ac_ext
3535 if $ac_preproc_ok; then
3547 { echo "$as_me:$LINENO: result: $CPP" >&5
3548 echo "${ECHO_T}$CPP" >&6; }
3550 for ac_c_preproc_warn_flag in '' yes
3552 # Use a header file that comes with gcc, so configuring glibc
3553 # with a fresh cross-compiler works.
3554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3555 # <limits.h> exists even on freestanding compilers.
3556 # On the NeXT, cc -E runs the code through the compiler's parser,
3557 # not just through cpp. "Syntax error" is here to catch this case.
3558 cat >conftest.$ac_ext <<_ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3565 # include <limits.h>
3567 # include <assert.h>
3571 if { (ac_try="$ac_cpp conftest.$ac_ext"
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3579 grep -v '^ *+' conftest.er1 >conftest.err
3581 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } >/dev/null; then
3584 if test -s conftest.err; then
3585 ac_cpp_err=$ac_c_preproc_warn_flag
3586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3593 if test -z "$ac_cpp_err"; then
3596 echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.$ac_ext >&5
3599 # Broken: fails on valid input.
3603 rm -f conftest.err conftest.$ac_ext
3605 # OK, works on sane cases. Now check whether nonexistent headers
3606 # can be detected and how.
3607 cat >conftest.$ac_ext <<_ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3613 #include <ac_nonexistent.h>
3615 if { (ac_try="$ac_cpp conftest.$ac_ext"
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3623 grep -v '^ *+' conftest.er1 >conftest.err
3625 cat conftest.err >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } >/dev/null; then
3628 if test -s conftest.err; then
3629 ac_cpp_err=$ac_c_preproc_warn_flag
3630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3637 if test -z "$ac_cpp_err"; then
3638 # Broken: success on invalid input.
3641 echo "$as_me: failed program was:" >&5
3642 sed 's/^/| /' conftest.$ac_ext >&5
3644 # Passes both tests.
3649 rm -f conftest.err conftest.$ac_ext
3652 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3653 rm -f conftest.err conftest.$ac_ext
3654 if $ac_preproc_ok; then
3657 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3658 See \`config.log' for more details." >&5
3659 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3660 See \`config.log' for more details." >&2;}
3661 { (exit 1); exit 1; }; }
3665 ac_cpp='$CPP $CPPFLAGS'
3666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3671 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3672 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3673 if test "${ac_cv_path_GREP+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 # Extract the first word of "grep ggrep" to use in msg output
3677 if test -z "$GREP"; then
3678 set dummy grep ggrep; ac_prog_name=$2
3679 if test "${ac_cv_path_GREP+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 ac_path_GREP_found=false
3683 # Loop through the user's path and test for each of PROGNAME-LIST
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3688 test -z "$as_dir" && as_dir=.
3689 for ac_prog in grep ggrep; do
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3692 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3693 # Check for GNU ac_path_GREP and select it if it is found.
3694 # Check for GNU $ac_path_GREP
3695 case `"$ac_path_GREP" --version 2>&1` in
3697 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3700 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3703 cat "conftest.in" "conftest.in" >"conftest.tmp"
3704 mv "conftest.tmp" "conftest.in"
3705 cp "conftest.in" "conftest.nl"
3706 echo 'GREP' >> "conftest.nl"
3707 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3708 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3709 ac_count=`expr $ac_count + 1`
3710 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3711 # Best one so far, save it but keep looking for a better one
3712 ac_cv_path_GREP="$ac_path_GREP"
3713 ac_path_GREP_max=$ac_count
3715 # 10*(2^10) chars as input seems more than enough
3716 test $ac_count -gt 10 && break
3718 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3722 $ac_path_GREP_found && break 3
3732 GREP="$ac_cv_path_GREP"
3733 if test -z "$GREP"; then
3734 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3735 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3736 { (exit 1); exit 1; }; }
3740 ac_cv_path_GREP=$GREP
3745 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3746 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3747 GREP="$ac_cv_path_GREP"
3750 { echo "$as_me:$LINENO: checking for egrep" >&5
3751 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3752 if test "${ac_cv_path_EGREP+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3756 then ac_cv_path_EGREP="$GREP -E"
3758 # Extract the first word of "egrep" to use in msg output
3759 if test -z "$EGREP"; then
3760 set dummy egrep; ac_prog_name=$2
3761 if test "${ac_cv_path_EGREP+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 ac_path_EGREP_found=false
3765 # Loop through the user's path and test for each of PROGNAME-LIST
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3770 test -z "$as_dir" && as_dir=.
3771 for ac_prog in egrep; do
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3774 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3775 # Check for GNU ac_path_EGREP and select it if it is found.
3776 # Check for GNU $ac_path_EGREP
3777 case `"$ac_path_EGREP" --version 2>&1` in
3779 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3782 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3785 cat "conftest.in" "conftest.in" >"conftest.tmp"
3786 mv "conftest.tmp" "conftest.in"
3787 cp "conftest.in" "conftest.nl"
3788 echo 'EGREP' >> "conftest.nl"
3789 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3790 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3791 ac_count=`expr $ac_count + 1`
3792 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3793 # Best one so far, save it but keep looking for a better one
3794 ac_cv_path_EGREP="$ac_path_EGREP"
3795 ac_path_EGREP_max=$ac_count
3797 # 10*(2^10) chars as input seems more than enough
3798 test $ac_count -gt 10 && break
3800 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3804 $ac_path_EGREP_found && break 3
3814 EGREP="$ac_cv_path_EGREP"
3815 if test -z "$EGREP"; then
3816 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3817 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3818 { (exit 1); exit 1; }; }
3822 ac_cv_path_EGREP=$EGREP
3828 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3829 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3830 EGREP="$ac_cv_path_EGREP"
3833 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3834 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3835 if test "${ac_cv_header_stdc+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 cat >conftest.$ac_ext <<_ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3857 rm -f conftest.$ac_objext
3858 if { (ac_try="$ac_compile"
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3864 (eval "$ac_compile") 2>conftest.er1
3866 grep -v '^ *+' conftest.er1 >conftest.err
3868 cat conftest.err >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } &&
3871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3872 { (case "(($ac_try" in
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877 (eval "$ac_try") 2>&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; } &&
3881 { ac_try='test -s conftest.$ac_objext'
3882 { (case "(($ac_try" in
3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3887 (eval "$ac_try") 2>&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); }; }; then
3891 ac_cv_header_stdc=yes
3893 echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3896 ac_cv_header_stdc=no
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901 if test $ac_cv_header_stdc = yes; then
3902 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3903 cat >conftest.$ac_ext <<_ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3913 $EGREP "memchr" >/dev/null 2>&1; then
3916 ac_cv_header_stdc=no
3922 if test $ac_cv_header_stdc = yes; then
3923 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3924 cat >conftest.$ac_ext <<_ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3934 $EGREP "free" >/dev/null 2>&1; then
3937 ac_cv_header_stdc=no
3943 if test $ac_cv_header_stdc = yes; then
3944 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3945 if test "$cross_compiling" = yes; then
3948 cat >conftest.$ac_ext <<_ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h. */
3956 #if ((' ' & 0x0FF) == 0x020)
3957 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3958 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3960 # define ISLOWER(c) \
3961 (('a' <= (c) && (c) <= 'i') \
3962 || ('j' <= (c) && (c) <= 'r') \
3963 || ('s' <= (c) && (c) <= 'z'))
3964 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3967 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3972 for (i = 0; i < 256; i++)
3973 if (XOR (islower (i), ISLOWER (i))
3974 || toupper (i) != TOUPPER (i))
3979 rm -f conftest$ac_exeext
3980 if { (ac_try="$ac_link"
3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3986 (eval "$ac_link") 2>&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3990 { (case "(($ac_try" in
3991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992 *) ac_try_echo=$ac_try;;
3994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3995 (eval "$ac_try") 2>&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; }; then
4001 echo "$as_me: program exited with status $ac_status" >&5
4002 echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4006 ac_cv_header_stdc=no
4008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4014 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4015 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4016 if test $ac_cv_header_stdc = yes; then
4018 cat >>confdefs.h <<\_ACEOF
4019 #define STDC_HEADERS 1
4024 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4034 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4035 inttypes.h stdint.h unistd.h
4037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 cat >conftest.$ac_ext <<_ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4049 $ac_includes_default
4051 #include <$ac_header>
4053 rm -f conftest.$ac_objext
4054 if { (ac_try="$ac_compile"
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060 (eval "$ac_compile") 2>conftest.er1
4062 grep -v '^ *+' conftest.er1 >conftest.err
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } &&
4067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4068 { (case "(($ac_try" in
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073 (eval "$ac_try") 2>&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; } &&
4077 { ac_try='test -s conftest.$ac_objext'
4078 { (case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_try") 2>&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
4087 eval "$as_ac_Header=yes"
4089 echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4092 eval "$as_ac_Header=no"
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 ac_res=`eval echo '${'$as_ac_Header'}'`
4098 { echo "$as_me:$LINENO: result: $ac_res" >&5
4099 echo "${ECHO_T}$ac_res" >&6; }
4100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4101 cat >>confdefs.h <<_ACEOF
4102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4110 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4111 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4112 if test "${ac_cv_c_bigendian+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 # See if sys/param.h defines the BYTE_ORDER macro.
4116 cat >conftest.$ac_ext <<_ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4122 #include <sys/types.h>
4123 #include <sys/param.h>
4128 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4136 rm -f conftest.$ac_objext
4137 if { (ac_try="$ac_compile"
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_compile") 2>conftest.er1
4145 grep -v '^ *+' conftest.er1 >conftest.err
4147 cat conftest.err >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } &&
4150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4151 { (case "(($ac_try" in
4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156 (eval "$ac_try") 2>&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; } &&
4160 { ac_try='test -s conftest.$ac_objext'
4161 { (case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166 (eval "$ac_try") 2>&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; }; then
4170 # It does; now see whether it defined to BIG_ENDIAN or not.
4171 cat >conftest.$ac_ext <<_ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4177 #include <sys/types.h>
4178 #include <sys/param.h>
4183 #if BYTE_ORDER != BIG_ENDIAN
4191 rm -f conftest.$ac_objext
4192 if { (ac_try="$ac_compile"
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198 (eval "$ac_compile") 2>conftest.er1
4200 grep -v '^ *+' conftest.er1 >conftest.err
4202 cat conftest.err >&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); } &&
4205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4206 { (case "(($ac_try" in
4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4211 (eval "$ac_try") 2>&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; } &&
4215 { ac_try='test -s conftest.$ac_objext'
4216 { (case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_try") 2>&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; }; then
4225 ac_cv_c_bigendian=yes
4227 echo "$as_me: failed program was:" >&5
4228 sed 's/^/| /' conftest.$ac_ext >&5
4230 ac_cv_c_bigendian=no
4233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235 echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.$ac_ext >&5
4238 # It does not; compile a test program.
4239 if test "$cross_compiling" = yes; then
4240 # try to guess the endianness by grepping values into an object file
4241 ac_cv_c_bigendian=unknown
4242 cat >conftest.$ac_ext <<_ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h. */
4248 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4249 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4250 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4251 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4252 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4253 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4257 _ascii (); _ebcdic ();
4262 rm -f conftest.$ac_objext
4263 if { (ac_try="$ac_compile"
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269 (eval "$ac_compile") 2>conftest.er1
4271 grep -v '^ *+' conftest.er1 >conftest.err
4273 cat conftest.err >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } &&
4276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4277 { (case "(($ac_try" in
4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282 (eval "$ac_try") 2>&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; } &&
4286 { ac_try='test -s conftest.$ac_objext'
4287 { (case "(($ac_try" in
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292 (eval "$ac_try") 2>&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; }; then
4296 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4297 ac_cv_c_bigendian=yes
4299 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4300 if test "$ac_cv_c_bigendian" = unknown; then
4301 ac_cv_c_bigendian=no
4303 # finding both strings is unlikely to happen, but who knows?
4304 ac_cv_c_bigendian=unknown
4308 echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316 cat >conftest.$ac_ext <<_ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4322 $ac_includes_default
4327 /* Are we little or big endian? From Harbison&Steele. */
4331 char c[sizeof (long int)];
4334 return u.c[sizeof (long int) - 1] == 1;
4340 rm -f conftest$ac_exeext
4341 if { (ac_try="$ac_link"
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347 (eval "$ac_link") 2>&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4351 { (case "(($ac_try" in
4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353 *) ac_try_echo=$ac_try;;
4355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4356 (eval "$ac_try") 2>&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; }; then
4360 ac_cv_c_bigendian=no
4362 echo "$as_me: program exited with status $ac_status" >&5
4363 echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4367 ac_cv_c_bigendian=yes
4369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4378 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4379 case $ac_cv_c_bigendian in
4387 { { echo "$as_me:$LINENO: error: unknown endianness
4388 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4389 echo "$as_me: error: unknown endianness
4390 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4391 { (exit 1); exit 1; }; } ;;
4395 if test "$cross_compiling" = yes; then
4396 LLVM_CROSS_COMPILING=1
4399 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4400 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4401 if test "${ac_cv_build_exeext+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4405 ac_cv_build_exeext=.exe
4407 ac_build_prefix=${build_alias}-
4409 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4410 set dummy ${ac_build_prefix}gcc; ac_word=$2
4411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4413 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 if test -n "$BUILD_CC"; then
4417 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 test -z "$as_dir" && as_dir=.
4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4426 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4436 BUILD_CC=$ac_cv_prog_BUILD_CC
4437 if test -n "$BUILD_CC"; then
4438 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4439 echo "${ECHO_T}$BUILD_CC" >&6; }
4441 { echo "$as_me:$LINENO: result: no" >&5
4442 echo "${ECHO_T}no" >&6; }
4446 if test -z "$BUILD_CC"; then
4447 # Extract the first word of "gcc", so it can be a program name with args.
4448 set dummy gcc; ac_word=$2
4449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4451 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 if test -n "$BUILD_CC"; then
4455 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4464 ac_cv_prog_BUILD_CC="gcc"
4465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 BUILD_CC=$ac_cv_prog_BUILD_CC
4475 if test -n "$BUILD_CC"; then
4476 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4477 echo "${ECHO_T}$BUILD_CC" >&6; }
4479 { echo "$as_me:$LINENO: result: no" >&5
4480 echo "${ECHO_T}no" >&6; }
4484 if test -z "$BUILD_CC"; then
4485 # Extract the first word of "cc", so it can be a program name with args.
4486 set dummy cc; ac_word=$2
4487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4489 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4492 if test -n "$BUILD_CC"; then
4493 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 test -z "$as_dir" && as_dir=.
4501 for ac_exec_ext in '' $ac_executable_extensions; do
4502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4503 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4504 ac_prog_rejected=yes
4507 ac_cv_prog_BUILD_CC="cc"
4508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 if test $ac_prog_rejected = yes; then
4516 # We found a bogon in the path, so make sure we never use it.
4517 set dummy $ac_cv_prog_BUILD_CC
4519 if test $# != 0; then
4520 # We chose a different compiler from the bogus one.
4521 # However, it has the same basename, so the bogon will be chosen
4522 # first if we set BUILD_CC to just the basename; use the full file name.
4524 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4529 BUILD_CC=$ac_cv_prog_BUILD_CC
4530 if test -n "$BUILD_CC"; then
4531 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4532 echo "${ECHO_T}$BUILD_CC" >&6; }
4534 { echo "$as_me:$LINENO: result: no" >&5
4535 echo "${ECHO_T}no" >&6; }
4541 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4542 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4543 { (exit 1); exit 1; }; }
4544 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4546 echo 'int main () { return 0; }' > conftest.$ac_ext
4548 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4549 (eval $ac_build_link) 2>&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; then
4553 for file in conftest.*; do
4555 *.c | *.o | *.obj | *.dSYM) ;;
4556 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4560 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4561 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4562 { (exit 1); exit 1; }; }
4565 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4570 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4571 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4572 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4573 ac_build_exeext=$BUILD_EXEEXT
4575 ac_build_prefix=${build_alias}-
4576 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4577 set dummy ${ac_build_prefix}g++; ac_word=$2
4578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4580 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 if test -n "$BUILD_CXX"; then
4584 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4593 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4604 if test -n "$BUILD_CXX"; then
4605 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4606 echo "${ECHO_T}$BUILD_CXX" >&6; }
4608 { echo "$as_me:$LINENO: result: no" >&5
4609 echo "${ECHO_T}no" >&6; }
4613 if test -z "$BUILD_CXX"; then
4614 # Extract the first word of "g++", so it can be a program name with args.
4615 set dummy g++; ac_word=$2
4616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4618 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 if test -n "$BUILD_CXX"; then
4622 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 test -z "$as_dir" && as_dir=.
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4631 ac_cv_prog_BUILD_CXX="g++"
4632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4642 if test -n "$BUILD_CXX"; then
4643 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4644 echo "${ECHO_T}$BUILD_CXX" >&6; }
4646 { echo "$as_me:$LINENO: result: no" >&5
4647 echo "${ECHO_T}no" >&6; }
4651 if test -z "$BUILD_CXX"; then
4652 # Extract the first word of "c++", so it can be a program name with args.
4653 set dummy c++; ac_word=$2
4654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4656 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 if test -n "$BUILD_CXX"; then
4660 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4670 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4671 ac_prog_rejected=yes
4674 ac_cv_prog_BUILD_CXX="c++"
4675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 if test $ac_prog_rejected = yes; then
4683 # We found a bogon in the path, so make sure we never use it.
4684 set dummy $ac_cv_prog_BUILD_CXX
4686 if test $# != 0; then
4687 # We chose a different compiler from the bogus one.
4688 # However, it has the same basename, so the bogon will be chosen
4689 # first if we set BUILD_CXX to just the basename; use the full file name.
4691 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4696 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4697 if test -n "$BUILD_CXX"; then
4698 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4699 echo "${ECHO_T}$BUILD_CXX" >&6; }
4701 { echo "$as_me:$LINENO: result: no" >&5
4702 echo "${ECHO_T}no" >&6; }
4709 LLVM_CROSS_COMPILING=0
4713 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4724 # Check whether --enable-optimized was given.
4725 if test "${enable_optimized+set}" = set; then
4726 enableval=$enable_optimized;
4731 if test ${enableval} = "no" ; then
4735 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4739 # Check whether --enable-assertions was given.
4740 if test "${enable_assertions+set}" = set; then
4741 enableval=$enable_assertions;
4746 if test ${enableval} = "yes" ; then
4750 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4754 # Check whether --enable-expensive-checks was given.
4755 if test "${enable_expensive_checks+set}" = set; then
4756 enableval=$enable_expensive_checks;
4761 if test ${enableval} = "yes" ; then
4762 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4764 EXPENSIVE_CHECKS=yes
4767 ENABLE_EXPENSIVE_CHECKS=
4773 # Check whether --enable-debug-runtime was given.
4774 if test "${enable_debug_runtime+set}" = set; then
4775 enableval=$enable_debug_runtime;
4780 if test ${enableval} = "no" ; then
4784 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4788 # Check whether --enable-jit was given.
4789 if test "${enable_jit+set}" = set; then
4790 enableval=$enable_jit;
4795 if test ${enableval} = "no"
4800 case "$llvm_cv_target_arch" in
4801 x86) TARGET_HAS_JIT=1
4803 Sparc) TARGET_HAS_JIT=0
4805 PowerPC) TARGET_HAS_JIT=1
4807 x86_64) TARGET_HAS_JIT=1
4809 Alpha) TARGET_HAS_JIT=1
4811 IA64) TARGET_HAS_JIT=0
4813 ARM) TARGET_HAS_JIT=0
4815 Mips) TARGET_HAS_JIT=0
4817 PIC16) TARGET_HAS_JIT=0
4819 XCore) TARGET_HAS_JIT=0
4826 # Check whether --enable-doxygen was given.
4827 if test "${enable_doxygen+set}" = set; then
4828 enableval=$enable_doxygen;
4833 case "$enableval" in
4834 yes) ENABLE_DOXYGEN=1
4836 no) ENABLE_DOXYGEN=0
4838 default) ENABLE_DOXYGEN=0
4840 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4841 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4842 { (exit 1); exit 1; }; } ;;
4845 # Check whether --enable-threads was given.
4846 if test "${enable_threads+set}" = set; then
4847 enableval=$enable_threads;
4852 case "$enableval" in
4853 yes) ENABLE_THREADS=1
4855 no) ENABLE_THREADS=0
4857 default) ENABLE_THREADS=1
4859 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4860 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4861 { (exit 1); exit 1; }; } ;;
4864 cat >>confdefs.h <<_ACEOF
4865 #define ENABLE_THREADS $ENABLE_THREADS
4869 # Check whether --enable-pic was given.
4870 if test "${enable_pic+set}" = set; then
4871 enableval=$enable_pic;
4876 case "$enableval" in
4881 default) ENABLE_PIC=0
4883 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4884 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4885 { (exit 1); exit 1; }; } ;;
4888 cat >>confdefs.h <<_ACEOF
4889 #define ENABLE_PIC $ENABLE_PIC
4894 # Check whether --enable-targets was given.
4895 if test "${enable_targets+set}" = set; then
4896 enableval=$enable_targets;
4901 case "$enableval" in
4902 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
4904 case "$llvm_cv_target_arch" in
4905 x86) TARGETS_TO_BUILD="X86" ;;
4906 x86_64) TARGETS_TO_BUILD="X86" ;;
4907 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4908 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4909 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4910 IA64) TARGETS_TO_BUILD="IA64" ;;
4911 ARM) TARGETS_TO_BUILD="ARM" ;;
4912 Mips) TARGETS_TO_BUILD="Mips" ;;
4913 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4914 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4915 XCore) TARGETS_TO_BUILD="XCore" ;;
4916 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4917 echo "$as_me: error: Can not set target to build" >&2;}
4918 { (exit 1); exit 1; }; } ;;
4921 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4923 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4924 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4925 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4926 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4927 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4928 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4929 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4930 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4931 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4932 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4933 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4934 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4935 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4936 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4937 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4938 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4939 { (exit 1); exit 1; }; } ;;
4944 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4947 # Check whether --enable-cbe-printf-a was given.
4948 if test "${enable_cbe_printf_a+set}" = set; then
4949 enableval=$enable_cbe_printf_a;
4954 case "$enableval" in
4955 yes) ENABLE_CBE_PRINTF_A=1
4957 no) ENABLE_CBE_PRINTF_A=0
4959 default) ENABLE_CBE_PRINTF_A=1
4961 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4962 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4963 { (exit 1); exit 1; }; } ;;
4966 cat >>confdefs.h <<_ACEOF
4967 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4972 # Check whether --with-llvmgccdir was given.
4973 if test "${with_llvmgccdir+set}" = set; then
4974 withval=$with_llvmgccdir;
4980 default) WITH_LLVMGCCDIR=default ;;
4981 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4982 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4983 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4984 { (exit 1); exit 1; }; } ;;
4988 # Check whether --with-llvmgcc was given.
4989 if test "${with_llvmgcc+set}" = set; then
4990 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4996 # Check whether --with-llvmgxx was given.
4997 if test "${with_llvmgxx+set}" = set; then
4998 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5003 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5004 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5005 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5006 { (exit 1); exit 1; }; };
5009 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5010 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5011 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5012 { (exit 1); exit 1; }; };
5016 # Check whether --with-extra-options was given.
5017 if test "${with_extra_options+set}" = set; then
5018 withval=$with_extra_options;
5024 default) EXTRA_OPTIONS= ;;
5025 *) EXTRA_OPTIONS=$withval ;;
5027 EXTRA_OPTIONS=$EXTRA_OPTIONS
5030 # Check whether --enable-bindings was given.
5031 if test "${enable_bindings+set}" = set; then
5032 enableval=$enable_bindings;
5037 BINDINGS_TO_BUILD=""
5038 case "$enableval" in
5039 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5040 all ) BINDINGS_TO_BUILD="ocaml" ;;
5041 none | no) BINDINGS_TO_BUILD="" ;;
5042 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5043 case "$a_binding" in
5044 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5045 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5046 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5047 { (exit 1); exit 1; }; } ;;
5054 # Check whether --with-ocaml-libdir was given.
5055 if test "${with_ocaml_libdir+set}" = set; then
5056 withval=$with_ocaml_libdir;
5062 auto) with_ocaml_libdir="$withval" ;;
5063 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5064 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5065 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5066 { (exit 1); exit 1; }; } ;;
5070 # Check whether --with-binutils-include was given.
5071 if test "${with_binutils_include+set}" = set; then
5072 withval=$with_binutils_include;
5078 default) WITH_BINUTILS_INCDIR=default ;;
5079 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5080 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5081 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5082 { (exit 1); exit 1; }; } ;;
5084 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5085 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5087 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5088 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5089 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5090 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5091 { (exit 1); exit 1; }; };
5097 ac_cpp='$CPP $CPPFLAGS'
5098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5101 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5102 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5103 # On Suns, sometimes $CPP names a directory.
5104 if test -n "$CPP" && test -d "$CPP"; then
5107 if test -z "$CPP"; then
5108 if test "${ac_cv_prog_CPP+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 # Double quotes because CPP needs to be expanded
5112 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5115 for ac_c_preproc_warn_flag in '' yes
5117 # Use a header file that comes with gcc, so configuring glibc
5118 # with a fresh cross-compiler works.
5119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5120 # <limits.h> exists even on freestanding compilers.
5121 # On the NeXT, cc -E runs the code through the compiler's parser,
5122 # not just through cpp. "Syntax error" is here to catch this case.
5123 cat >conftest.$ac_ext <<_ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5130 # include <limits.h>
5132 # include <assert.h>
5136 if { (ac_try="$ac_cpp conftest.$ac_ext"
5138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139 *) ac_try_echo=$ac_try;;
5141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5144 grep -v '^ *+' conftest.er1 >conftest.err
5146 cat conftest.err >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } >/dev/null; then
5149 if test -s conftest.err; then
5150 ac_cpp_err=$ac_c_preproc_warn_flag
5151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5158 if test -z "$ac_cpp_err"; then
5161 echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5164 # Broken: fails on valid input.
5168 rm -f conftest.err conftest.$ac_ext
5170 # OK, works on sane cases. Now check whether nonexistent headers
5171 # can be detected and how.
5172 cat >conftest.$ac_ext <<_ACEOF
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
5177 /* end confdefs.h. */
5178 #include <ac_nonexistent.h>
5180 if { (ac_try="$ac_cpp conftest.$ac_ext"
5182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183 *) ac_try_echo=$ac_try;;
5185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5188 grep -v '^ *+' conftest.er1 >conftest.err
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } >/dev/null; then
5193 if test -s conftest.err; then
5194 ac_cpp_err=$ac_c_preproc_warn_flag
5195 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5202 if test -z "$ac_cpp_err"; then
5203 # Broken: success on invalid input.
5206 echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5209 # Passes both tests.
5214 rm -f conftest.err conftest.$ac_ext
5217 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5218 rm -f conftest.err conftest.$ac_ext
5219 if $ac_preproc_ok; then
5231 { echo "$as_me:$LINENO: result: $CPP" >&5
5232 echo "${ECHO_T}$CPP" >&6; }
5234 for ac_c_preproc_warn_flag in '' yes
5236 # Use a header file that comes with gcc, so configuring glibc
5237 # with a fresh cross-compiler works.
5238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5239 # <limits.h> exists even on freestanding compilers.
5240 # On the NeXT, cc -E runs the code through the compiler's parser,
5241 # not just through cpp. "Syntax error" is here to catch this case.
5242 cat >conftest.$ac_ext <<_ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5249 # include <limits.h>
5251 # include <assert.h>
5255 if { (ac_try="$ac_cpp conftest.$ac_ext"
5257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258 *) ac_try_echo=$ac_try;;
5260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5263 grep -v '^ *+' conftest.er1 >conftest.err
5265 cat conftest.err >&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); } >/dev/null; then
5268 if test -s conftest.err; then
5269 ac_cpp_err=$ac_c_preproc_warn_flag
5270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5277 if test -z "$ac_cpp_err"; then
5280 echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.$ac_ext >&5
5283 # Broken: fails on valid input.
5287 rm -f conftest.err conftest.$ac_ext
5289 # OK, works on sane cases. Now check whether nonexistent headers
5290 # can be detected and how.
5291 cat >conftest.$ac_ext <<_ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5297 #include <ac_nonexistent.h>
5299 if { (ac_try="$ac_cpp conftest.$ac_ext"
5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302 *) ac_try_echo=$ac_try;;
5304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5307 grep -v '^ *+' conftest.er1 >conftest.err
5309 cat conftest.err >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } >/dev/null; then
5312 if test -s conftest.err; then
5313 ac_cpp_err=$ac_c_preproc_warn_flag
5314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5321 if test -z "$ac_cpp_err"; then
5322 # Broken: success on invalid input.
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5328 # Passes both tests.
5333 rm -f conftest.err conftest.$ac_ext
5336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5337 rm -f conftest.err conftest.$ac_ext
5338 if $ac_preproc_ok; then
5341 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5342 See \`config.log' for more details." >&5
5343 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5344 See \`config.log' for more details." >&2;}
5345 { (exit 1); exit 1; }; }
5349 ac_cpp='$CPP $CPPFLAGS'
5350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5355 ac_cpp='$CPP $CPPFLAGS'
5356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5359 if test -n "$ac_tool_prefix"; then
5362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5366 if test "${ac_cv_prog_CC+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 if test -n "$CC"; then
5370 ac_cv_prog_CC="$CC" # Let the user override the test.
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5379 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5390 if test -n "$CC"; then
5391 { echo "$as_me:$LINENO: result: $CC" >&5
5392 echo "${ECHO_T}$CC" >&6; }
5394 { echo "$as_me:$LINENO: result: no" >&5
5395 echo "${ECHO_T}no" >&6; }
5399 test -n "$CC" && break
5402 if test -z "$CC"; then
5406 # Extract the first word of "$ac_prog", so it can be a program name with args.
5407 set dummy $ac_prog; ac_word=$2
5408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5410 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 if test -n "$ac_ct_CC"; then
5414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 test -z "$as_dir" && as_dir=.
5421 for ac_exec_ext in '' $ac_executable_extensions; do
5422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5423 ac_cv_prog_ac_ct_CC="$ac_prog"
5424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5434 if test -n "$ac_ct_CC"; then
5435 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5436 echo "${ECHO_T}$ac_ct_CC" >&6; }
5438 { echo "$as_me:$LINENO: result: no" >&5
5439 echo "${ECHO_T}no" >&6; }
5443 test -n "$ac_ct_CC" && break
5446 if test "x$ac_ct_CC" = x; then
5449 case $cross_compiling:$ac_tool_warned in
5451 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5452 whose name does not start with the host triplet. If you think this
5453 configuration is useful to you, please write to autoconf@gnu.org." >&5
5454 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5455 whose name does not start with the host triplet. If you think this
5456 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5457 ac_tool_warned=yes ;;
5464 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5465 See \`config.log' for more details." >&5
5466 echo "$as_me: error: no acceptable C compiler found in \$PATH
5467 See \`config.log' for more details." >&2;}
5468 { (exit 1); exit 1; }; }
5470 # Provide some information about the compiler.
5471 echo "$as_me:$LINENO: checking for C compiler version" >&5
5472 ac_compiler=`set X $ac_compile; echo $2`
5473 { (ac_try="$ac_compiler --version >&5"
5475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5476 *) ac_try_echo=$ac_try;;
5478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5479 (eval "$ac_compiler --version >&5") 2>&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }
5483 { (ac_try="$ac_compiler -v >&5"
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_compiler -v >&5") 2>&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }
5493 { (ac_try="$ac_compiler -V >&5"
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499 (eval "$ac_compiler -V >&5") 2>&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }
5504 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5505 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5506 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 cat >conftest.$ac_ext <<_ACEOF
5512 cat confdefs.h >>conftest.$ac_ext
5513 cat >>conftest.$ac_ext <<_ACEOF
5514 /* 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
5570 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5573 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5574 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5575 GCC=`test $ac_compiler_gnu = yes && echo yes`
5576 ac_test_CFLAGS=${CFLAGS+set}
5577 ac_save_CFLAGS=$CFLAGS
5578 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5579 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5580 if test "${ac_cv_prog_cc_g+set}" = set; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5583 ac_save_c_werror_flag=$ac_c_werror_flag
5584 ac_c_werror_flag=yes
5587 cat >conftest.$ac_ext <<_ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h. */
5602 rm -f conftest.$ac_objext
5603 if { (ac_try="$ac_compile"
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5609 (eval "$ac_compile") 2>conftest.er1
5611 grep -v '^ *+' conftest.er1 >conftest.err
5613 cat conftest.err >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } &&
5616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5617 { (case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622 (eval "$ac_try") 2>&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; } &&
5626 { ac_try='test -s conftest.$ac_objext'
5627 { (case "(($ac_try" in
5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5632 (eval "$ac_try") 2>&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); }; }; then
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5642 cat >conftest.$ac_ext <<_ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5657 rm -f conftest.$ac_objext
5658 if { (ac_try="$ac_compile"
5660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661 *) ac_try_echo=$ac_try;;
5663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5664 (eval "$ac_compile") 2>conftest.er1
5666 grep -v '^ *+' conftest.er1 >conftest.err
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5672 { (case "(($ac_try" in
5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674 *) ac_try_echo=$ac_try;;
5676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677 (eval "$ac_try") 2>&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; } &&
5681 { ac_try='test -s conftest.$ac_objext'
5682 { (case "(($ac_try" in
5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687 (eval "$ac_try") 2>&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; }; then
5693 echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.$ac_ext >&5
5696 ac_c_werror_flag=$ac_save_c_werror_flag
5698 cat >conftest.$ac_ext <<_ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5713 rm -f conftest.$ac_objext
5714 if { (ac_try="$ac_compile"
5716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717 *) ac_try_echo=$ac_try;;
5719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720 (eval "$ac_compile") 2>conftest.er1
5722 grep -v '^ *+' conftest.er1 >conftest.err
5724 cat conftest.err >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } &&
5727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5728 { (case "(($ac_try" in
5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730 *) ac_try_echo=$ac_try;;
5732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733 (eval "$ac_try") 2>&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; } &&
5737 { ac_try='test -s conftest.$ac_objext'
5738 { (case "(($ac_try" in
5739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743 (eval "$ac_try") 2>&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; }; then
5749 echo "$as_me: failed program was:" >&5
5750 sed 's/^/| /' conftest.$ac_ext >&5
5755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762 ac_c_werror_flag=$ac_save_c_werror_flag
5764 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5765 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5766 if test "$ac_test_CFLAGS" = set; then
5767 CFLAGS=$ac_save_CFLAGS
5768 elif test $ac_cv_prog_cc_g = yes; then
5769 if test "$GCC" = yes; then
5775 if test "$GCC" = yes; then
5781 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5782 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5783 if test "${ac_cv_prog_cc_c89+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 ac_cv_prog_cc_c89=no
5788 cat >conftest.$ac_ext <<_ACEOF
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h. */
5796 #include <sys/types.h>
5797 #include <sys/stat.h>
5798 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5799 struct buf { int x; };
5800 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5801 static char *e (p, i)
5807 static char *f (char * (*g) (char **, int), char **p, ...)
5812 s = g (p, va_arg (v,int));
5817 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5818 function prototypes and stuff, but not '\xHH' hex character constants.
5819 These don't provoke an error unfortunately, instead are silently treated
5820 as 'x'. The following induces an error, until -std is added to get
5821 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5822 array size at least. It's necessary to write '\x00'==0 to get something
5823 that's true only with -std. */
5824 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5826 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5827 inside strings and character constants. */
5829 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5831 int test (int i, double x);
5832 struct s1 {int (*f) (int a);};
5833 struct s2 {int (*f) (double a);};
5834 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5840 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5845 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5846 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5848 CC="$ac_save_CC $ac_arg"
5849 rm -f conftest.$ac_objext
5850 if { (ac_try="$ac_compile"
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_compile") 2>conftest.er1
5858 grep -v '^ *+' conftest.er1 >conftest.err
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5864 { (case "(($ac_try" in
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869 (eval "$ac_try") 2>&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; } &&
5873 { ac_try='test -s conftest.$ac_objext'
5874 { (case "(($ac_try" in
5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 (eval "$ac_try") 2>&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; }; then
5883 ac_cv_prog_cc_c89=$ac_arg
5885 echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5891 rm -f core conftest.err conftest.$ac_objext
5892 test "x$ac_cv_prog_cc_c89" != "xno" && break
5894 rm -f conftest.$ac_ext
5899 case "x$ac_cv_prog_cc_c89" in
5901 { echo "$as_me:$LINENO: result: none needed" >&5
5902 echo "${ECHO_T}none needed" >&6; } ;;
5904 { echo "$as_me:$LINENO: result: unsupported" >&5
5905 echo "${ECHO_T}unsupported" >&6; } ;;
5907 CC="$CC $ac_cv_prog_cc_c89"
5908 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5909 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5914 ac_cpp='$CPP $CPPFLAGS'
5915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5920 ac_cpp='$CXXCPP $CPPFLAGS'
5921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5924 if test -z "$CXX"; then
5925 if test -n "$CCC"; then
5928 if test -n "$ac_tool_prefix"; then
5931 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5932 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5935 if test "${ac_cv_prog_CXX+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 if test -n "$CXX"; then
5939 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 test -z "$as_dir" && as_dir=.
5946 for ac_exec_ext in '' $ac_executable_extensions; do
5947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5948 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5959 if test -n "$CXX"; then
5960 { echo "$as_me:$LINENO: result: $CXX" >&5
5961 echo "${ECHO_T}$CXX" >&6; }
5963 { echo "$as_me:$LINENO: result: no" >&5
5964 echo "${ECHO_T}no" >&6; }
5968 test -n "$CXX" && break
5971 if test -z "$CXX"; then
5975 # Extract the first word of "$ac_prog", so it can be a program name with args.
5976 set dummy $ac_prog; ac_word=$2
5977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5979 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 if test -n "$ac_ct_CXX"; then
5983 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989 test -z "$as_dir" && as_dir=.
5990 for ac_exec_ext in '' $ac_executable_extensions; do
5991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5992 ac_cv_prog_ac_ct_CXX="$ac_prog"
5993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6002 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6003 if test -n "$ac_ct_CXX"; then
6004 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6005 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6007 { echo "$as_me:$LINENO: result: no" >&5
6008 echo "${ECHO_T}no" >&6; }
6012 test -n "$ac_ct_CXX" && break
6015 if test "x$ac_ct_CXX" = x; then
6018 case $cross_compiling:$ac_tool_warned in
6020 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6021 whose name does not start with the host triplet. If you think this
6022 configuration is useful to you, please write to autoconf@gnu.org." >&5
6023 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6024 whose name does not start with the host triplet. If you think this
6025 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6026 ac_tool_warned=yes ;;
6034 # Provide some information about the compiler.
6035 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6036 ac_compiler=`set X $ac_compile; echo $2`
6037 { (ac_try="$ac_compiler --version >&5"
6039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6040 *) ac_try_echo=$ac_try;;
6042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6043 (eval "$ac_compiler --version >&5") 2>&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); }
6047 { (ac_try="$ac_compiler -v >&5"
6049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6050 *) ac_try_echo=$ac_try;;
6052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6053 (eval "$ac_compiler -v >&5") 2>&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }
6057 { (ac_try="$ac_compiler -V >&5"
6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060 *) ac_try_echo=$ac_try;;
6062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063 (eval "$ac_compiler -V >&5") 2>&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }
6068 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6069 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6070 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 cat >conftest.$ac_ext <<_ACEOF
6076 cat confdefs.h >>conftest.$ac_ext
6077 cat >>conftest.$ac_ext <<_ACEOF
6078 /* 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
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
6134 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6137 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6138 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6139 GXX=`test $ac_compiler_gnu = yes && echo yes`
6140 ac_test_CXXFLAGS=${CXXFLAGS+set}
6141 ac_save_CXXFLAGS=$CXXFLAGS
6142 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6143 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6144 if test "${ac_cv_prog_cxx_g+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6147 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6148 ac_cxx_werror_flag=yes
6151 cat >conftest.$ac_ext <<_ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h. */
6166 rm -f conftest.$ac_objext
6167 if { (ac_try="$ac_compile"
6169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170 *) ac_try_echo=$ac_try;;
6172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173 (eval "$ac_compile") 2>conftest.er1
6175 grep -v '^ *+' conftest.er1 >conftest.err
6177 cat conftest.err >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } &&
6180 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6181 { (case "(($ac_try" in
6182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6183 *) ac_try_echo=$ac_try;;
6185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6186 (eval "$ac_try") 2>&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; } &&
6190 { ac_try='test -s conftest.$ac_objext'
6191 { (case "(($ac_try" in
6192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193 *) ac_try_echo=$ac_try;;
6195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196 (eval "$ac_try") 2>&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; }; then
6200 ac_cv_prog_cxx_g=yes
6202 echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6206 cat >conftest.$ac_ext <<_ACEOF
6209 cat confdefs.h >>conftest.$ac_ext
6210 cat >>conftest.$ac_ext <<_ACEOF
6211 /* end confdefs.h. */
6221 rm -f conftest.$ac_objext
6222 if { (ac_try="$ac_compile"
6224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225 *) ac_try_echo=$ac_try;;
6227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6228 (eval "$ac_compile") 2>conftest.er1
6230 grep -v '^ *+' conftest.er1 >conftest.err
6232 cat conftest.err >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); } &&
6235 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6236 { (case "(($ac_try" in
6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241 (eval "$ac_try") 2>&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try='test -s conftest.$ac_objext'
6246 { (case "(($ac_try" in
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_try") 2>&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; }; then
6257 echo "$as_me: failed program was:" >&5
6258 sed 's/^/| /' conftest.$ac_ext >&5
6260 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6262 cat >conftest.$ac_ext <<_ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h. */
6277 rm -f conftest.$ac_objext
6278 if { (ac_try="$ac_compile"
6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281 *) ac_try_echo=$ac_try;;
6283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284 (eval "$ac_compile") 2>conftest.er1
6286 grep -v '^ *+' conftest.er1 >conftest.err
6288 cat conftest.err >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } &&
6291 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6292 { (case "(($ac_try" in
6293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6294 *) ac_try_echo=$ac_try;;
6296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6297 (eval "$ac_try") 2>&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; } &&
6301 { ac_try='test -s conftest.$ac_objext'
6302 { (case "(($ac_try" in
6303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304 *) ac_try_echo=$ac_try;;
6306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6307 (eval "$ac_try") 2>&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; }; then
6311 ac_cv_prog_cxx_g=yes
6313 echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.$ac_ext >&5
6319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6328 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6329 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6330 if test "$ac_test_CXXFLAGS" = set; then
6331 CXXFLAGS=$ac_save_CXXFLAGS
6332 elif test $ac_cv_prog_cxx_g = yes; then
6333 if test "$GXX" = yes; then
6339 if test "$GXX" = yes; then
6346 ac_cpp='$CPP $CPPFLAGS'
6347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6351 { echo "$as_me:$LINENO: checking " >&5
6352 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6353 if test "${ac_cv_has_flex+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6356 for ac_prog in flex lex
6358 # Extract the first word of "$ac_prog", so it can be a program name with args.
6359 set dummy $ac_prog; ac_word=$2
6360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6362 if test "${ac_cv_prog_LEX+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 if test -n "$LEX"; then
6366 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6375 ac_cv_prog_LEX="$ac_prog"
6376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6386 if test -n "$LEX"; then
6387 { echo "$as_me:$LINENO: result: $LEX" >&5
6388 echo "${ECHO_T}$LEX" >&6; }
6390 { echo "$as_me:$LINENO: result: no" >&5
6391 echo "${ECHO_T}no" >&6; }
6395 test -n "$LEX" && break
6397 test -n "$LEX" || LEX=":"
6399 if test -z "$LEXLIB"
6401 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6402 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6403 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6406 ac_check_lib_save_LIBS=$LIBS
6408 cat >conftest.$ac_ext <<_ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6415 /* Override any GCC internal prototype to avoid an error.
6416 Use char because int might match the return type of a GCC
6417 builtin and then its argument prototype would still apply. */
6430 rm -f conftest.$ac_objext conftest$ac_exeext
6431 if { (ac_try="$ac_link"
6433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6434 *) ac_try_echo=$ac_try;;
6436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6437 (eval "$ac_link") 2>conftest.er1
6439 grep -v '^ *+' conftest.er1 >conftest.err
6441 cat conftest.err >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } &&
6444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6445 { (case "(($ac_try" in
6446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6447 *) ac_try_echo=$ac_try;;
6449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6450 (eval "$ac_try") 2>&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; } &&
6454 { ac_try='test -s conftest$ac_exeext'
6455 { (case "(($ac_try" in
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_try") 2>&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; }; then
6464 ac_cv_lib_fl_yywrap=yes
6466 echo "$as_me: failed program was:" >&5
6467 sed 's/^/| /' conftest.$ac_ext >&5
6469 ac_cv_lib_fl_yywrap=no
6472 rm -f core conftest.err conftest.$ac_objext \
6473 conftest$ac_exeext conftest.$ac_ext
6474 LIBS=$ac_check_lib_save_LIBS
6476 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6477 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6478 if test $ac_cv_lib_fl_yywrap = yes; then
6481 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6482 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6483 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 ac_check_lib_save_LIBS=$LIBS
6488 cat >conftest.$ac_ext <<_ACEOF
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h. */
6495 /* Override any GCC internal prototype to avoid an error.
6496 Use char because int might match the return type of a GCC
6497 builtin and then its argument prototype would still apply. */
6510 rm -f conftest.$ac_objext conftest$ac_exeext
6511 if { (ac_try="$ac_link"
6513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514 *) ac_try_echo=$ac_try;;
6516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6517 (eval "$ac_link") 2>conftest.er1
6519 grep -v '^ *+' conftest.er1 >conftest.err
6521 cat conftest.err >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } &&
6524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6525 { (case "(($ac_try" in
6526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6527 *) ac_try_echo=$ac_try;;
6529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6530 (eval "$ac_try") 2>&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; } &&
6534 { ac_try='test -s conftest$ac_exeext'
6535 { (case "(($ac_try" in
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_try") 2>&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; }; then
6544 ac_cv_lib_l_yywrap=yes
6546 echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6549 ac_cv_lib_l_yywrap=no
6552 rm -f core conftest.err conftest.$ac_objext \
6553 conftest$ac_exeext conftest.$ac_ext
6554 LIBS=$ac_check_lib_save_LIBS
6556 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6557 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6558 if test $ac_cv_lib_l_yywrap = yes; then
6566 if test "x$LEX" != "x:"; then
6567 { echo "$as_me:$LINENO: checking lex output file root" >&5
6568 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6569 if test "${ac_cv_prog_lex_root+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 # The minimal lex program is just a single line: %%. But some broken lexes
6573 # (Solaris, I think it was) want two %% lines, so accommodate them.
6574 cat >conftest.l <<_ACEOF
6578 { (ac_try="$LEX conftest.l"
6580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6584 (eval "$LEX conftest.l") 2>&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }
6588 if test -f lex.yy.c; then
6589 ac_cv_prog_lex_root=lex.yy
6590 elif test -f lexyy.c; then
6591 ac_cv_prog_lex_root=lexyy
6593 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6594 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6595 { (exit 1); exit 1; }; }
6598 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6599 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6601 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6603 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6604 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6605 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 # POSIX says lex can declare yytext either as a pointer or an array; the
6609 # default is implementation-dependent. Figure out which it is, since
6610 # not all implementations provide the %pointer and %array declarations.
6611 ac_cv_prog_lex_yytext_pointer=no
6612 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6614 LIBS="$LIBS $LEXLIB"
6615 cat >conftest.$ac_ext <<_ACEOF
6616 `cat $LEX_OUTPUT_ROOT.c`
6618 rm -f conftest.$ac_objext conftest$ac_exeext
6619 if { (ac_try="$ac_link"
6621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6622 *) ac_try_echo=$ac_try;;
6624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6625 (eval "$ac_link") 2>conftest.er1
6627 grep -v '^ *+' conftest.er1 >conftest.err
6629 cat conftest.err >&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); } &&
6632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6633 { (case "(($ac_try" in
6634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6635 *) ac_try_echo=$ac_try;;
6637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6638 (eval "$ac_try") 2>&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; } &&
6642 { ac_try='test -s conftest$ac_exeext'
6643 { (case "(($ac_try" in
6644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6645 *) ac_try_echo=$ac_try;;
6647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6648 (eval "$ac_try") 2>&5
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); }; }; then
6652 ac_cv_prog_lex_yytext_pointer=yes
6654 echo "$as_me: failed program was:" >&5
6655 sed 's/^/| /' conftest.$ac_ext >&5
6660 rm -f core conftest.err conftest.$ac_objext \
6661 conftest$ac_exeext conftest.$ac_ext
6663 rm -f "${LEX_OUTPUT_ROOT}.c"
6666 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6667 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6668 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6670 cat >>confdefs.h <<\_ACEOF
6671 #define YYTEXT_POINTER 1
6679 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6680 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6681 if test "$LEX" != "flex"; then
6682 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6683 echo "$as_me: error: flex not found but required" >&2;}
6684 { (exit 1); exit 1; }; }
6690 { echo "$as_me:$LINENO: checking " >&5
6691 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6692 if test "${llvm_cv_has_bison+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 for ac_prog in 'bison -y' byacc
6697 # Extract the first word of "$ac_prog", so it can be a program name with args.
6698 set dummy $ac_prog; 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_prog_YACC+set}" = set; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 if test -n "$YACC"; then
6705 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
6713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6714 ac_cv_prog_YACC="$ac_prog"
6715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 YACC=$ac_cv_prog_YACC
6725 if test -n "$YACC"; then
6726 { echo "$as_me:$LINENO: result: $YACC" >&5
6727 echo "${ECHO_T}$YACC" >&6; }
6729 { echo "$as_me:$LINENO: result: no" >&5
6730 echo "${ECHO_T}no" >&6; }
6734 test -n "$YACC" && break
6736 test -n "$YACC" || YACC="yacc"
6739 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6740 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6741 if test "$YACC" != "bison -y"; then
6743 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6744 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6750 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6751 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6752 if test "${lt_cv_path_NM+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 if test -n "$NM"; then
6756 # Let the user override the test.
6759 lt_nm_to_check="${ac_tool_prefix}nm"
6760 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6761 lt_nm_to_check="$lt_nm_to_check nm"
6763 for lt_tmp_nm in $lt_nm_to_check; do
6764 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6765 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6767 test -z "$ac_dir" && ac_dir=.
6768 tmp_nm="$ac_dir/$lt_tmp_nm"
6769 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6770 # Check to see if the nm accepts a BSD-compat flag.
6771 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6772 # nm: unknown option "B" ignored
6773 # Tru64's nm complains that /dev/null is an invalid object file
6774 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6775 */dev/null* | *'Invalid file or object type'*)
6776 lt_cv_path_NM="$tmp_nm -B"
6780 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6782 lt_cv_path_NM="$tmp_nm -p"
6786 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6787 continue # so that we can try to find one that supports BSD flags
6796 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6799 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6800 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6805 { echo "$as_me:$LINENO: checking for GNU make" >&5
6806 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6807 if test "${llvm_cv_gnu_make_command+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6810 llvm_cv_gnu_make_command=''
6811 for a in "$MAKE" make gmake gnumake ; do
6812 if test -z "$a" ; then continue ; fi ;
6813 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6815 llvm_cv_gnu_make_command=$a ;
6820 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6821 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6822 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6826 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6827 echo "${ECHO_T}\"Not found\"" >&6; };
6831 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6832 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6834 if test "$LN_S" = "ln -s"; then
6835 { echo "$as_me:$LINENO: result: yes" >&5
6836 echo "${ECHO_T}yes" >&6; }
6838 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6839 echo "${ECHO_T}no, using $LN_S" >&6; }
6842 # Extract the first word of "cmp", so it can be a program name with args.
6843 set dummy cmp; ac_word=$2
6844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6846 if test "${ac_cv_path_CMP+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6851 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6861 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6874 if test -n "$CMP"; then
6875 { echo "$as_me:$LINENO: result: $CMP" >&5
6876 echo "${ECHO_T}$CMP" >&6; }
6878 { echo "$as_me:$LINENO: result: no" >&5
6879 echo "${ECHO_T}no" >&6; }
6883 # Extract the first word of "cp", so it can be a program name with args.
6884 set dummy cp; ac_word=$2
6885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6887 if test "${ac_cv_path_CP+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 test -z "$as_dir" && as_dir=.
6900 for ac_exec_ext in '' $ac_executable_extensions; do
6901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6902 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6915 if test -n "$CP"; then
6916 { echo "$as_me:$LINENO: result: $CP" >&5
6917 echo "${ECHO_T}$CP" >&6; }
6919 { echo "$as_me:$LINENO: result: no" >&5
6920 echo "${ECHO_T}no" >&6; }
6924 # Extract the first word of "date", so it can be a program name with args.
6925 set dummy date; ac_word=$2
6926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6928 if test "${ac_cv_path_DATE+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 test -z "$as_dir" && as_dir=.
6941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6943 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6955 DATE=$ac_cv_path_DATE
6956 if test -n "$DATE"; then
6957 { echo "$as_me:$LINENO: result: $DATE" >&5
6958 echo "${ECHO_T}$DATE" >&6; }
6960 { echo "$as_me:$LINENO: result: no" >&5
6961 echo "${ECHO_T}no" >&6; }
6965 # Extract the first word of "find", so it can be a program name with args.
6966 set dummy find; ac_word=$2
6967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6969 if test "${ac_cv_path_FIND+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6974 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6984 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6996 FIND=$ac_cv_path_FIND
6997 if test -n "$FIND"; then
6998 { echo "$as_me:$LINENO: result: $FIND" >&5
6999 echo "${ECHO_T}$FIND" >&6; }
7001 { echo "$as_me:$LINENO: result: no" >&5
7002 echo "${ECHO_T}no" >&6; }
7006 # Extract the first word of "grep", so it can be a program name with args.
7007 set dummy grep; ac_word=$2
7008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7010 if test "${ac_cv_path_GREP+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7015 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7025 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
7026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7037 GREP=$ac_cv_path_GREP
7038 if test -n "$GREP"; then
7039 { echo "$as_me:$LINENO: result: $GREP" >&5
7040 echo "${ECHO_T}$GREP" >&6; }
7042 { echo "$as_me:$LINENO: result: no" >&5
7043 echo "${ECHO_T}no" >&6; }
7047 # Extract the first word of "mkdir", so it can be a program name with args.
7048 set dummy mkdir; ac_word=$2
7049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7051 if test "${ac_cv_path_MKDIR+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 test -z "$as_dir" && as_dir=.
7064 for ac_exec_ext in '' $ac_executable_extensions; do
7065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7066 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7074 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7078 MKDIR=$ac_cv_path_MKDIR
7079 if test -n "$MKDIR"; then
7080 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7081 echo "${ECHO_T}$MKDIR" >&6; }
7083 { echo "$as_me:$LINENO: result: no" >&5
7084 echo "${ECHO_T}no" >&6; }
7088 # Extract the first word of "mv", so it can be a program name with args.
7089 set dummy mv; ac_word=$2
7090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7092 if test "${ac_cv_path_MV+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7097 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 test -z "$as_dir" && as_dir=.
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7107 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7120 if test -n "$MV"; then
7121 { echo "$as_me:$LINENO: result: $MV" >&5
7122 echo "${ECHO_T}$MV" >&6; }
7124 { echo "$as_me:$LINENO: result: no" >&5
7125 echo "${ECHO_T}no" >&6; }
7129 if test -n "$ac_tool_prefix"; then
7130 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7131 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134 if test "${ac_cv_prog_RANLIB+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7137 if test -n "$RANLIB"; then
7138 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144 test -z "$as_dir" && as_dir=.
7145 for ac_exec_ext in '' $ac_executable_extensions; do
7146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7147 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 RANLIB=$ac_cv_prog_RANLIB
7158 if test -n "$RANLIB"; then
7159 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7160 echo "${ECHO_T}$RANLIB" >&6; }
7162 { echo "$as_me:$LINENO: result: no" >&5
7163 echo "${ECHO_T}no" >&6; }
7168 if test -z "$ac_cv_prog_RANLIB"; then
7169 ac_ct_RANLIB=$RANLIB
7170 # Extract the first word of "ranlib", so it can be a program name with args.
7171 set dummy ranlib; ac_word=$2
7172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7174 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 if test -n "$ac_ct_RANLIB"; then
7178 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 test -z "$as_dir" && as_dir=.
7185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7187 ac_cv_prog_ac_ct_RANLIB="ranlib"
7188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7198 if test -n "$ac_ct_RANLIB"; then
7199 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7200 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7202 { echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6; }
7206 if test "x$ac_ct_RANLIB" = x; then
7209 case $cross_compiling:$ac_tool_warned in
7211 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7212 whose name does not start with the host triplet. If you think this
7213 configuration is useful to you, please write to autoconf@gnu.org." >&5
7214 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7215 whose name does not start with the host triplet. If you think this
7216 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7217 ac_tool_warned=yes ;;
7219 RANLIB=$ac_ct_RANLIB
7222 RANLIB="$ac_cv_prog_RANLIB"
7225 # Extract the first word of "rm", so it can be a program name with args.
7226 set dummy rm; ac_word=$2
7227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7229 if test "${ac_cv_path_RM+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 test -z "$as_dir" && as_dir=.
7242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7244 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7257 if test -n "$RM"; then
7258 { echo "$as_me:$LINENO: result: $RM" >&5
7259 echo "${ECHO_T}$RM" >&6; }
7261 { echo "$as_me:$LINENO: result: no" >&5
7262 echo "${ECHO_T}no" >&6; }
7266 # Extract the first word of "sed", so it can be a program name with args.
7267 set dummy sed; ac_word=$2
7268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7270 if test "${ac_cv_path_SED+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7285 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7293 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7298 if test -n "$SED"; then
7299 { echo "$as_me:$LINENO: result: $SED" >&5
7300 echo "${ECHO_T}$SED" >&6; }
7302 { echo "$as_me:$LINENO: result: no" >&5
7303 echo "${ECHO_T}no" >&6; }
7307 # Extract the first word of "tar", so it can be a program name with args.
7308 set dummy tar; ac_word=$2
7309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7311 if test "${ac_cv_path_TAR+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7316 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323 test -z "$as_dir" && as_dir=.
7324 for ac_exec_ext in '' $ac_executable_extensions; do
7325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7326 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7339 if test -n "$TAR"; then
7340 { echo "$as_me:$LINENO: result: $TAR" >&5
7341 echo "${ECHO_T}$TAR" >&6; }
7343 { echo "$as_me:$LINENO: result: no" >&5
7344 echo "${ECHO_T}no" >&6; }
7348 # Extract the first word of "pwd", so it can be a program name with args.
7349 set dummy pwd; ac_word=$2
7350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7352 if test "${ac_cv_path_BINPWD+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7357 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7367 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7379 BINPWD=$ac_cv_path_BINPWD
7380 if test -n "$BINPWD"; then
7381 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7382 echo "${ECHO_T}$BINPWD" >&6; }
7384 { echo "$as_me:$LINENO: result: no" >&5
7385 echo "${ECHO_T}no" >&6; }
7390 # Extract the first word of "Graphviz", so it can be a program name with args.
7391 set dummy Graphviz; ac_word=$2
7392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7394 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7399 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7409 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7421 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7422 if test -n "$GRAPHVIZ"; then
7423 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7424 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7426 { echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6; }
7431 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7433 cat >>confdefs.h <<\_ACEOF
7434 #define HAVE_GRAPHVIZ 1
7437 if test "$llvm_cv_os_type" = "MingW" ; then
7438 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7441 cat >>confdefs.h <<_ACEOF
7442 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7446 # Extract the first word of "dot", so it can be a program name with args.
7447 set dummy dot; ac_word=$2
7448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7450 if test "${ac_cv_path_DOT+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7465 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7478 if test -n "$DOT"; then
7479 { echo "$as_me:$LINENO: result: $DOT" >&5
7480 echo "${ECHO_T}$DOT" >&6; }
7482 { echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6; }
7487 if test "$DOT" != "echo dot" ; then
7489 cat >>confdefs.h <<\_ACEOF
7493 if test "$llvm_cv_os_type" = "MingW" ; then
7494 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7497 cat >>confdefs.h <<_ACEOF
7498 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7502 for ac_prog in gv gsview32
7504 # Extract the first word of "$ac_prog", so it can be a program name with args.
7505 set dummy $ac_prog; ac_word=$2
7506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508 if test "${ac_cv_path_GV+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7523 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 if test -n "$GV"; then
7536 { echo "$as_me:$LINENO: result: $GV" >&5
7537 echo "${ECHO_T}$GV" >&6; }
7539 { echo "$as_me:$LINENO: result: no" >&5
7540 echo "${ECHO_T}no" >&6; }
7544 test -n "$GV" && break
7546 test -n "$GV" || GV="echo gv"
7548 if test "$GV" != "echo gv" ; then
7550 cat >>confdefs.h <<\_ACEOF
7554 if test "$llvm_cv_os_type" = "MingW" ; then
7555 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7558 cat >>confdefs.h <<_ACEOF
7559 #define LLVM_PATH_GV "$GV${EXEEXT}"
7563 # Extract the first word of "dotty", so it can be a program name with args.
7564 set dummy dotty; ac_word=$2
7565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7567 if test "${ac_cv_path_DOTTY+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7572 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7582 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7590 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7594 DOTTY=$ac_cv_path_DOTTY
7595 if test -n "$DOTTY"; then
7596 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7597 echo "${ECHO_T}$DOTTY" >&6; }
7599 { echo "$as_me:$LINENO: result: no" >&5
7600 echo "${ECHO_T}no" >&6; }
7604 if test "$DOTTY" != "echo dotty" ; then
7606 cat >>confdefs.h <<\_ACEOF
7607 #define HAVE_DOTTY 1
7610 if test "$llvm_cv_os_type" = "MingW" ; then
7611 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7614 cat >>confdefs.h <<_ACEOF
7615 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7621 # Extract the first word of "perl", so it can be a program name with args.
7622 set dummy perl; ac_word=$2
7623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7625 if test "${ac_cv_path_PERL+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7630 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 test -z "$as_dir" && as_dir=.
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7640 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7648 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7652 PERL=$ac_cv_path_PERL
7653 if test -n "$PERL"; then
7654 { echo "$as_me:$LINENO: result: $PERL" >&5
7655 echo "${ECHO_T}$PERL" >&6; }
7657 { echo "$as_me:$LINENO: result: no" >&5
7658 echo "${ECHO_T}no" >&6; }
7662 if test "$PERL" != "none"; then
7663 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7664 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7665 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7666 { echo "$as_me:$LINENO: result: yes" >&5
7667 echo "${ECHO_T}yes" >&6; }
7670 { echo "$as_me:$LINENO: result: not found" >&5
7671 echo "${ECHO_T}not found" >&6; }
7676 if test x"$PERL" = xnone; then
7679 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7680 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7681 { (exit 1); exit 1; }; }
7687 # Find a good install program. We prefer a C program (faster),
7688 # so one script is as good as another. But avoid the broken or
7689 # incompatible versions:
7690 # SysV /etc/install, /usr/sbin/install
7691 # SunOS /usr/etc/install
7692 # IRIX /sbin/install
7694 # AmigaOS /C/install, which installs bootblocks on floppy discs
7695 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7696 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7697 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7698 # OS/2's system install, which has a completely different semantic
7699 # ./install, which can be erroneously created by make from ./install.sh.
7700 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7701 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7702 if test -z "$INSTALL"; then
7703 if test "${ac_cv_path_install+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 test -z "$as_dir" && as_dir=.
7711 # Account for people who put trailing slashes in PATH elements.
7713 ./ | .// | /cC/* | \
7714 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7715 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7718 # OSF1 and SCO ODT 3.0 have their own names for install.
7719 # Don't use installbsd from OSF since it installs stuff as root
7721 for ac_prog in ginstall scoinst install; do
7722 for ac_exec_ext in '' $ac_executable_extensions; do
7723 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7724 if test $ac_prog = install &&
7725 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7726 # AIX install. It has an incompatible calling convention.
7728 elif test $ac_prog = install &&
7729 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7730 # program-specific install script used by HP pwplus--don't use.
7733 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7746 if test "${ac_cv_path_install+set}" = set; then
7747 INSTALL=$ac_cv_path_install
7749 # As a last resort, use the slow shell script. Don't cache a
7750 # value for INSTALL within a source directory, because that will
7751 # break other packages using the cache if that directory is
7752 # removed, or if the value is a relative name.
7753 INSTALL=$ac_install_sh
7756 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7757 echo "${ECHO_T}$INSTALL" >&6; }
7759 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7760 # It thinks the first close brace ends the variable substitution.
7761 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7763 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7765 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7768 # Extract the first word of "bzip2", so it can be a program name with args.
7769 set dummy bzip2; ac_word=$2
7770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7772 if test "${ac_cv_path_BZIP2+set}" = set; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7787 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7798 BZIP2=$ac_cv_path_BZIP2
7799 if test -n "$BZIP2"; then
7800 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7801 echo "${ECHO_T}$BZIP2" >&6; }
7803 { echo "$as_me:$LINENO: result: no" >&5
7804 echo "${ECHO_T}no" >&6; }
7808 # Extract the first word of "doxygen", so it can be a program name with args.
7809 set dummy doxygen; ac_word=$2
7810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7812 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7827 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7838 DOXYGEN=$ac_cv_path_DOXYGEN
7839 if test -n "$DOXYGEN"; then
7840 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7841 echo "${ECHO_T}$DOXYGEN" >&6; }
7843 { echo "$as_me:$LINENO: result: no" >&5
7844 echo "${ECHO_T}no" >&6; }
7848 # Extract the first word of "groff", so it can be a program name with args.
7849 set dummy groff; ac_word=$2
7850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7852 if test "${ac_cv_path_GROFF+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7857 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 test -z "$as_dir" && as_dir=.
7865 for ac_exec_ext in '' $ac_executable_extensions; do
7866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7867 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 GROFF=$ac_cv_path_GROFF
7879 if test -n "$GROFF"; then
7880 { echo "$as_me:$LINENO: result: $GROFF" >&5
7881 echo "${ECHO_T}$GROFF" >&6; }
7883 { echo "$as_me:$LINENO: result: no" >&5
7884 echo "${ECHO_T}no" >&6; }
7888 # Extract the first word of "gzip", so it can be a program name with args.
7889 set dummy gzip; ac_word=$2
7890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7892 if test "${ac_cv_path_GZIP+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7897 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904 test -z "$as_dir" && as_dir=.
7905 for ac_exec_ext in '' $ac_executable_extensions; do
7906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7907 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 GZIP=$ac_cv_path_GZIP
7919 if test -n "$GZIP"; then
7920 { echo "$as_me:$LINENO: result: $GZIP" >&5
7921 echo "${ECHO_T}$GZIP" >&6; }
7923 { echo "$as_me:$LINENO: result: no" >&5
7924 echo "${ECHO_T}no" >&6; }
7928 # Extract the first word of "pod2html", so it can be a program name with args.
7929 set dummy pod2html; ac_word=$2
7930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7932 if test "${ac_cv_path_POD2HTML+set}" = set; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7937 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 test -z "$as_dir" && as_dir=.
7945 for ac_exec_ext in '' $ac_executable_extensions; do
7946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7947 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 POD2HTML=$ac_cv_path_POD2HTML
7959 if test -n "$POD2HTML"; then
7960 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7961 echo "${ECHO_T}$POD2HTML" >&6; }
7963 { echo "$as_me:$LINENO: result: no" >&5
7964 echo "${ECHO_T}no" >&6; }
7968 # Extract the first word of "pod2man", so it can be a program name with args.
7969 set dummy pod2man; ac_word=$2
7970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7972 if test "${ac_cv_path_POD2MAN+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7987 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 POD2MAN=$ac_cv_path_POD2MAN
7999 if test -n "$POD2MAN"; then
8000 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8001 echo "${ECHO_T}$POD2MAN" >&6; }
8003 { echo "$as_me:$LINENO: result: no" >&5
8004 echo "${ECHO_T}no" >&6; }
8008 # Extract the first word of "runtest", so it can be a program name with args.
8009 set dummy runtest; ac_word=$2
8010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8012 if test "${ac_cv_path_RUNTEST+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8017 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8027 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 RUNTEST=$ac_cv_path_RUNTEST
8039 if test -n "$RUNTEST"; then
8040 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8041 echo "${ECHO_T}$RUNTEST" >&6; }
8043 { echo "$as_me:$LINENO: result: no" >&5
8044 echo "${ECHO_T}no" >&6; }
8050 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8051 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8053 # Check whether --with-tclinclude was given.
8054 if test "${with_tclinclude+set}" = set; then
8055 withval=$with_tclinclude; with_tclinclude=${withval}
8060 if test "${ac_cv_path_tclsh+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 if test x"${with_tclinclude}" != x ; then
8065 if test -f ${with_tclinclude}/tclsh ; then
8066 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8067 elif test -f ${with_tclinclude}/src/tclsh ; then
8068 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8070 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8071 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8072 { (exit 1); exit 1; }; }
8076 if test x"${ac_cv_path_tclsh}" = x ; then
8077 { echo "$as_me:$LINENO: result: none" >&5
8078 echo "${ECHO_T}none" >&6; }
8079 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
8081 # Extract the first word of "$ac_prog", so it can be a program name with args.
8082 set dummy $ac_prog; ac_word=$2
8083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8085 if test "${ac_cv_path_TCLSH+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8090 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 test -z "$as_dir" && as_dir=.
8098 for ac_exec_ext in '' $ac_executable_extensions; do
8099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8100 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8111 TCLSH=$ac_cv_path_TCLSH
8112 if test -n "$TCLSH"; then
8113 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8114 echo "${ECHO_T}$TCLSH" >&6; }
8116 { echo "$as_me:$LINENO: result: no" >&5
8117 echo "${ECHO_T}no" >&6; }
8121 test -n "$TCLSH" && break
8124 if test x"${TCLSH}" = x ; then
8125 ac_cv_path_tclsh='';
8127 ac_cv_path_tclsh="${TCLSH}";
8130 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8131 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8132 TCLSH="${ac_cv_path_tclsh}"
8138 # Extract the first word of "zip", so it can be a program name with args.
8139 set dummy zip; ac_word=$2
8140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8142 if test "${ac_cv_path_ZIP+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154 test -z "$as_dir" && as_dir=.
8155 for ac_exec_ext in '' $ac_executable_extensions; do
8156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8157 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8169 if test -n "$ZIP"; then
8170 { echo "$as_me:$LINENO: result: $ZIP" >&5
8171 echo "${ECHO_T}$ZIP" >&6; }
8173 { echo "$as_me:$LINENO: result: no" >&5
8174 echo "${ECHO_T}no" >&6; }
8178 for ac_prog in ocamlc
8180 # Extract the first word of "$ac_prog", so it can be a program name with args.
8181 set dummy $ac_prog; ac_word=$2
8182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8184 if test "${ac_cv_path_OCAMLC+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8189 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8196 test -z "$as_dir" && as_dir=.
8197 for ac_exec_ext in '' $ac_executable_extensions; do
8198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8199 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8210 OCAMLC=$ac_cv_path_OCAMLC
8211 if test -n "$OCAMLC"; then
8212 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8213 echo "${ECHO_T}$OCAMLC" >&6; }
8215 { echo "$as_me:$LINENO: result: no" >&5
8216 echo "${ECHO_T}no" >&6; }
8220 test -n "$OCAMLC" && break
8223 for ac_prog in ocamlopt
8225 # Extract the first word of "$ac_prog", so it can be a program name with args.
8226 set dummy $ac_prog; ac_word=$2
8227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8229 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8234 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241 test -z "$as_dir" && as_dir=.
8242 for ac_exec_ext in '' $ac_executable_extensions; do
8243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8244 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8255 OCAMLOPT=$ac_cv_path_OCAMLOPT
8256 if test -n "$OCAMLOPT"; then
8257 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8258 echo "${ECHO_T}$OCAMLOPT" >&6; }
8260 { echo "$as_me:$LINENO: result: no" >&5
8261 echo "${ECHO_T}no" >&6; }
8265 test -n "$OCAMLOPT" && break
8268 for ac_prog in ocamldep
8270 # Extract the first word of "$ac_prog", so it can be a program name with args.
8271 set dummy $ac_prog; ac_word=$2
8272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8274 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8279 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286 test -z "$as_dir" && as_dir=.
8287 for ac_exec_ext in '' $ac_executable_extensions; do
8288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8289 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8300 OCAMLDEP=$ac_cv_path_OCAMLDEP
8301 if test -n "$OCAMLDEP"; then
8302 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8303 echo "${ECHO_T}$OCAMLDEP" >&6; }
8305 { echo "$as_me:$LINENO: result: no" >&5
8306 echo "${ECHO_T}no" >&6; }
8310 test -n "$OCAMLDEP" && break
8313 for ac_prog in ocamldoc
8315 # Extract the first word of "$ac_prog", so it can be a program name with args.
8316 set dummy $ac_prog; ac_word=$2
8317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8319 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8320 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331 test -z "$as_dir" && as_dir=.
8332 for ac_exec_ext in '' $ac_executable_extensions; do
8333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8334 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8345 OCAMLDOC=$ac_cv_path_OCAMLDOC
8346 if test -n "$OCAMLDOC"; then
8347 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8348 echo "${ECHO_T}$OCAMLDOC" >&6; }
8350 { echo "$as_me:$LINENO: result: no" >&5
8351 echo "${ECHO_T}no" >&6; }
8355 test -n "$OCAMLDOC" && break
8358 for ac_prog in gas as
8360 # Extract the first word of "$ac_prog", so it can be a program name with args.
8361 set dummy $ac_prog; ac_word=$2
8362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8364 if test "${ac_cv_path_GAS+set}" = set; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8376 test -z "$as_dir" && as_dir=.
8377 for ac_exec_ext in '' $ac_executable_extensions; do
8378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8379 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8391 if test -n "$GAS"; then
8392 { echo "$as_me:$LINENO: result: $GAS" >&5
8393 echo "${ECHO_T}$GAS" >&6; }
8395 { echo "$as_me:$LINENO: result: no" >&5
8396 echo "${ECHO_T}no" >&6; }
8400 test -n "$GAS" && break
8404 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8405 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8406 if test "${llvm_cv_link_use_r+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8410 ac_cpp='$CPP $CPPFLAGS'
8411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8416 CFLAGS="$CFLAGS -Wl,-R."
8417 cat >conftest.$ac_ext <<_ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h. */
8427 int main() { return 0; }
8432 rm -f conftest.$ac_objext conftest$ac_exeext
8433 if { (ac_try="$ac_link"
8435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436 *) ac_try_echo=$ac_try;;
8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439 (eval "$ac_link") 2>conftest.er1
8441 grep -v '^ *+' conftest.er1 >conftest.err
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } &&
8446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8447 { (case "(($ac_try" in
8448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8449 *) ac_try_echo=$ac_try;;
8451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8452 (eval "$ac_try") 2>&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; } &&
8456 { ac_try='test -s conftest$ac_exeext'
8457 { (case "(($ac_try" in
8458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459 *) ac_try_echo=$ac_try;;
8461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462 (eval "$ac_try") 2>&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 llvm_cv_link_use_r=yes
8468 echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.$ac_ext >&5
8471 llvm_cv_link_use_r=no
8474 rm -f core conftest.err conftest.$ac_objext \
8475 conftest$ac_exeext conftest.$ac_ext
8478 ac_cpp='$CPP $CPPFLAGS'
8479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8485 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8486 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8487 if test "$llvm_cv_link_use_r" = yes ; then
8489 cat >>confdefs.h <<\_ACEOF
8490 #define HAVE_LINK_R 1
8498 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8499 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8500 if test "${ac_cv_c_const+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 cat >conftest.$ac_ext <<_ACEOF
8506 cat confdefs.h >>conftest.$ac_ext
8507 cat >>conftest.$ac_ext <<_ACEOF
8508 /* end confdefs.h. */
8513 /* FIXME: Include the comments suggested by Paul. */
8515 /* Ultrix mips cc rejects this. */
8516 typedef int charset[2];
8518 /* SunOS 4.1.1 cc rejects this. */
8519 char const *const *ccp;
8521 /* NEC SVR4.0.2 mips cc rejects this. */
8522 struct point {int x, y;};
8523 static struct point const zero = {0,0};
8524 /* AIX XL C 1.02.0.0 rejects this.
8525 It does not let you subtract one const X* pointer from another in
8526 an arm of an if-expression whose if-part is not a constant
8528 const char *g = "string";
8529 ccp = &g + (g ? g-g : 0);
8530 /* HPUX 7.0 cc rejects these. */
8533 ccp = (char const *const *) p;
8534 { /* SCO 3.2v4 cc rejects this. */
8536 char const *s = 0 ? (char *) 0 : (char const *) 0;
8541 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8543 const int *foo = &x[0];
8546 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8547 typedef const int *iptr;
8551 { /* AIX XL C 1.02.0.0 rejects this saying
8552 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8553 struct s { int j; const int *ap[3]; };
8554 struct s *b; b->j = 5;
8556 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8560 return !x[0] && !zero.x;
8567 rm -f conftest.$ac_objext
8568 if { (ac_try="$ac_compile"
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574 (eval "$ac_compile") 2>conftest.er1
8576 grep -v '^ *+' conftest.er1 >conftest.err
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8582 { (case "(($ac_try" in
8583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584 *) ac_try_echo=$ac_try;;
8586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587 (eval "$ac_try") 2>&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); }; } &&
8591 { ac_try='test -s conftest.$ac_objext'
8592 { (case "(($ac_try" in
8593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594 *) ac_try_echo=$ac_try;;
8596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597 (eval "$ac_try") 2>&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; }; then
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8611 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8612 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8613 if test $ac_cv_c_const = no; then
8615 cat >>confdefs.h <<\_ACEOF
8627 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8628 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8629 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8630 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8634 cat >conftest.$ac_ext <<_ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8640 #include <sys/types.h>
8652 rm -f conftest.$ac_objext
8653 if { (ac_try="$ac_compile"
8655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656 *) ac_try_echo=$ac_try;;
8658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8659 (eval "$ac_compile") 2>conftest.er1
8661 grep -v '^ *+' conftest.er1 >conftest.err
8663 cat conftest.err >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); } &&
8666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8667 { (case "(($ac_try" in
8668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8669 *) ac_try_echo=$ac_try;;
8671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8672 (eval "$ac_try") 2>&5
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }; } &&
8676 { ac_try='test -s conftest.$ac_objext'
8677 { (case "(($ac_try" in
8678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679 *) ac_try_echo=$ac_try;;
8681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8682 (eval "$ac_try") 2>&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; }; then
8686 eval "$as_ac_Header=yes"
8688 echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.$ac_ext >&5
8691 eval "$as_ac_Header=no"
8694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8696 ac_res=`eval echo '${'$as_ac_Header'}'`
8697 { echo "$as_me:$LINENO: result: $ac_res" >&5
8698 echo "${ECHO_T}$ac_res" >&6; }
8699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8700 cat >>confdefs.h <<_ACEOF
8701 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8704 ac_header_dirent=$ac_hdr; break
8708 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8709 if test $ac_header_dirent = dirent.h; then
8710 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8711 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8712 if test "${ac_cv_search_opendir+set}" = set; then
8713 echo $ECHO_N "(cached) $ECHO_C" >&6
8715 ac_func_search_save_LIBS=$LIBS
8716 cat >conftest.$ac_ext <<_ACEOF
8719 cat confdefs.h >>conftest.$ac_ext
8720 cat >>conftest.$ac_ext <<_ACEOF
8721 /* end confdefs.h. */
8723 /* Override any GCC internal prototype to avoid an error.
8724 Use char because int might match the return type of a GCC
8725 builtin and then its argument prototype would still apply. */
8738 for ac_lib in '' dir; do
8739 if test -z "$ac_lib"; then
8740 ac_res="none required"
8743 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8745 rm -f conftest.$ac_objext conftest$ac_exeext
8746 if { (ac_try="$ac_link"
8748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8749 *) ac_try_echo=$ac_try;;
8751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8752 (eval "$ac_link") 2>conftest.er1
8754 grep -v '^ *+' conftest.er1 >conftest.err
8756 cat conftest.err >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } &&
8759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8760 { (case "(($ac_try" in
8761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762 *) ac_try_echo=$ac_try;;
8764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8765 (eval "$ac_try") 2>&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; } &&
8769 { ac_try='test -s conftest$ac_exeext'
8770 { (case "(($ac_try" in
8771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772 *) ac_try_echo=$ac_try;;
8774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8775 (eval "$ac_try") 2>&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; }; then
8779 ac_cv_search_opendir=$ac_res
8781 echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8787 rm -f core conftest.err conftest.$ac_objext \
8789 if test "${ac_cv_search_opendir+set}" = set; then
8793 if test "${ac_cv_search_opendir+set}" = set; then
8796 ac_cv_search_opendir=no
8799 LIBS=$ac_func_search_save_LIBS
8801 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8802 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8803 ac_res=$ac_cv_search_opendir
8804 if test "$ac_res" != no; then
8805 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8810 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8811 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8812 if test "${ac_cv_search_opendir+set}" = set; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8815 ac_func_search_save_LIBS=$LIBS
8816 cat >conftest.$ac_ext <<_ACEOF
8819 cat confdefs.h >>conftest.$ac_ext
8820 cat >>conftest.$ac_ext <<_ACEOF
8821 /* end confdefs.h. */
8823 /* Override any GCC internal prototype to avoid an error.
8824 Use char because int might match the return type of a GCC
8825 builtin and then its argument prototype would still apply. */
8838 for ac_lib in '' x; do
8839 if test -z "$ac_lib"; then
8840 ac_res="none required"
8843 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8845 rm -f conftest.$ac_objext conftest$ac_exeext
8846 if { (ac_try="$ac_link"
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852 (eval "$ac_link") 2>conftest.er1
8854 grep -v '^ *+' conftest.er1 >conftest.err
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8860 { (case "(($ac_try" in
8861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862 *) ac_try_echo=$ac_try;;
8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865 (eval "$ac_try") 2>&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; } &&
8869 { ac_try='test -s conftest$ac_exeext'
8870 { (case "(($ac_try" in
8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875 (eval "$ac_try") 2>&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); }; }; then
8879 ac_cv_search_opendir=$ac_res
8881 echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8887 rm -f core conftest.err conftest.$ac_objext \
8889 if test "${ac_cv_search_opendir+set}" = set; then
8893 if test "${ac_cv_search_opendir+set}" = set; then
8896 ac_cv_search_opendir=no
8899 LIBS=$ac_func_search_save_LIBS
8901 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8902 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8903 ac_res=$ac_cv_search_opendir
8904 if test "$ac_res" != no; then
8905 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8912 for ac_header in dlfcn.h
8914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8921 ac_res=`eval echo '${'$as_ac_Header'}'`
8922 { echo "$as_me:$LINENO: result: $ac_res" >&5
8923 echo "${ECHO_T}$ac_res" >&6; }
8925 # Is the header compilable?
8926 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8928 cat >conftest.$ac_ext <<_ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h. */
8934 $ac_includes_default
8935 #include <$ac_header>
8937 rm -f conftest.$ac_objext
8938 if { (ac_try="$ac_compile"
8940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8941 *) ac_try_echo=$ac_try;;
8943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8944 (eval "$ac_compile") 2>conftest.er1
8946 grep -v '^ *+' conftest.er1 >conftest.err
8948 cat conftest.err >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } &&
8951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8952 { (case "(($ac_try" in
8953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8954 *) ac_try_echo=$ac_try;;
8956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8957 (eval "$ac_try") 2>&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; } &&
8961 { ac_try='test -s conftest.$ac_objext'
8962 { (case "(($ac_try" in
8963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8964 *) ac_try_echo=$ac_try;;
8966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8967 (eval "$ac_try") 2>&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); }; }; then
8971 ac_header_compiler=yes
8973 echo "$as_me: failed program was:" >&5
8974 sed 's/^/| /' conftest.$ac_ext >&5
8976 ac_header_compiler=no
8979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8981 echo "${ECHO_T}$ac_header_compiler" >&6; }
8983 # Is the header present?
8984 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8986 cat >conftest.$ac_ext <<_ACEOF
8989 cat confdefs.h >>conftest.$ac_ext
8990 cat >>conftest.$ac_ext <<_ACEOF
8991 /* end confdefs.h. */
8992 #include <$ac_header>
8994 if { (ac_try="$ac_cpp conftest.$ac_ext"
8996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8997 *) ac_try_echo=$ac_try;;
8999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9002 grep -v '^ *+' conftest.er1 >conftest.err
9004 cat conftest.err >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); } >/dev/null; then
9007 if test -s conftest.err; then
9008 ac_cpp_err=$ac_c_preproc_warn_flag
9009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9016 if test -z "$ac_cpp_err"; then
9017 ac_header_preproc=yes
9019 echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.$ac_ext >&5
9022 ac_header_preproc=no
9025 rm -f conftest.err conftest.$ac_ext
9026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9027 echo "${ECHO_T}$ac_header_preproc" >&6; }
9029 # So? What about this header?
9030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9036 ac_header_preproc=yes
9039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9046 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9052 ## ----------------------------------- ##
9053 ## Report this to llvmbugs@cs.uiuc.edu ##
9054 ## ----------------------------------- ##
9056 ) | sed "s/^/$as_me: WARNING: /" >&2
9059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9064 eval "$as_ac_Header=\$ac_header_preproc"
9066 ac_res=`eval echo '${'$as_ac_Header'}'`
9067 { echo "$as_me:$LINENO: result: $ac_res" >&5
9068 echo "${ECHO_T}$ac_res" >&6; }
9071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9072 cat >>confdefs.h <<_ACEOF
9073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9080 # Check whether --enable-ltdl-install was given.
9081 if test "${enable_ltdl_install+set}" = set; then
9082 enableval=$enable_ltdl_install;
9088 if test x"${enable_ltdl_install-no}" != xno; then
9090 INSTALL_LTDL_FALSE='#'
9092 INSTALL_LTDL_TRUE='#'
9098 if test x"${enable_ltdl_convenience-no}" != xno; then
9099 CONVENIENCE_LTDL_TRUE=
9100 CONVENIENCE_LTDL_FALSE='#'
9102 CONVENIENCE_LTDL_TRUE='#'
9103 CONVENIENCE_LTDL_FALSE=
9107 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9108 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9110 libname_spec='lib$name'
9118 shlibpath_overrides_runpath=unknown
9120 dynamic_linker="$host_os ld.so"
9121 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9122 if test "$GCC" = yes; then
9123 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9124 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9125 # if the path contains ";" then we assume it to be the separator
9126 # otherwise default to the standard path separator (i.e. ":") - it is
9127 # assumed that no part of a normal pathname contains ";" but that should
9128 # okay in the real world where ";" in dirpaths is itself problematic.
9129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9131 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9134 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9136 need_lib_prefix=unknown
9137 hardcode_into_libs=no
9139 # when you set need_version to no, make sure it does not cause -set_version
9140 # flags to be left without arguments
9141 need_version=unknown
9146 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9147 shlibpath_var=LIBPATH
9149 # AIX 3 has no versioning support, so we append a major version to the name.
9150 soname_spec='${libname}${release}${shared_ext}$major'
9157 hardcode_into_libs=yes
9158 if test "$host_cpu" = ia64; then
9159 # AIX 5 supports IA64
9160 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9161 shlibpath_var=LD_LIBRARY_PATH
9163 # With GCC up to 2.95.x, collect2 would create an import file
9164 # for dependence libraries. The import file would start with
9165 # the line `#! .'. This would cause the generated library to
9166 # depend on `.', always an invalid library. This was fixed in
9167 # development snapshots of GCC prior to 3.0.
9169 aix4 | aix4.[01] | aix4.[01].*)
9170 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9172 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9179 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9180 # soname into executable. Probably we can add versioning support to
9181 # collect2, so additional links can be useful in future.
9182 if test "$aix_use_runtimelinking" = yes; then
9183 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9184 # instead of lib<name>.a to let people know that these are not
9185 # typical AIX shared libraries.
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9188 # We preserve .a as extension for shared libraries through AIX4.2
9189 # and later when we are not doing run time linking.
9190 library_names_spec='${libname}${release}.a $libname.a'
9191 soname_spec='${libname}${release}${shared_ext}$major'
9193 shlibpath_var=LIBPATH
9198 library_names_spec='$libname.ixlibrary $libname.a'
9199 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9200 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'
9204 library_names_spec='${libname}${shared_ext}'
9205 dynamic_linker="$host_os ld.so"
9206 shlibpath_var=LIBRARY_PATH
9212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9213 soname_spec='${libname}${release}${shared_ext}$major'
9214 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9215 shlibpath_var=LD_LIBRARY_PATH
9216 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9217 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9218 # the default ld.so.conf also contains /usr/contrib/lib and
9219 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9220 # libtool to hard-code these into programs
9223 cygwin* | mingw* | pw32*)
9224 version_type=windows
9229 case $GCC,$host_os in
9230 yes,cygwin* | yes,mingw* | yes,pw32*)
9231 library_names_spec='$libname.dll.a'
9232 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9233 postinstall_cmds='base_file=`basename \${file}`~
9234 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9235 dldir=$destdir/`dirname \$dlpath`~
9236 test -d \$dldir || mkdir -p \$dldir~
9237 $install_prog $dir/$dlname \$dldir/$dlname~
9238 chmod a+x \$dldir/$dlname'
9239 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9240 dlpath=$dir/\$dldll~
9242 shlibpath_overrides_runpath=yes
9246 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9247 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9248 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9251 # MinGW DLLs use traditional 'lib' prefix
9252 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9253 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9254 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9255 # It is most probably a Windows format PATH printed by
9256 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9257 # path with ; separators, and with drive letters. We can handle the
9258 # drive letters (cygwin fileutils understands them), so leave them,
9259 # especially as we might pass files found there to a mingw objdump,
9260 # which wouldn't understand a cygwinified path. Ahh.
9261 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9263 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9267 # pw32 DLLs use 'pw' prefix rather than 'lib'
9268 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9274 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9277 dynamic_linker='Win32 ld.exe'
9278 # FIXME: first we should search . and the directory the executable is in
9282 darwin* | rhapsody*)
9283 dynamic_linker="$host_os dyld"
9287 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9288 soname_spec='${libname}${release}${major}$shared_ext'
9289 shlibpath_overrides_runpath=yes
9290 shlibpath_var=DYLD_LIBRARY_PATH
9291 shrext_cmds='.dylib'
9292 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9293 if test "$GCC" = yes; then
9294 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"`
9296 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9298 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9306 soname_spec='${libname}${release}${shared_ext}$major'
9307 shlibpath_var=LD_LIBRARY_PATH
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9319 soname_spec='${libname}${release}${shared_ext}$major'
9320 shlibpath_var=LD_LIBRARY_PATH
9321 shlibpath_overrides_runpath=no
9322 hardcode_into_libs=yes
9323 dynamic_linker='GNU ld.so'
9326 freebsd* | dragonfly*)
9327 # DragonFly does not have aout. When/if they implement a new
9328 # versioning mechanism, adjust this.
9329 if test -x /usr/bin/objformat; then
9330 objformat=`/usr/bin/objformat`
9333 freebsd[123]*) objformat=aout ;;
9337 version_type=freebsd-$objformat
9338 case $version_type in
9340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9345 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9349 shlibpath_var=LD_LIBRARY_PATH
9352 shlibpath_overrides_runpath=yes
9354 freebsd3.[01]* | freebsdelf3.[01]*)
9355 shlibpath_overrides_runpath=yes
9356 hardcode_into_libs=yes
9358 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9359 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9360 shlibpath_overrides_runpath=no
9361 hardcode_into_libs=yes
9363 freebsd*) # from 4.6 on
9364 shlibpath_overrides_runpath=yes
9365 hardcode_into_libs=yes
9374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9375 soname_spec='${libname}${release}${shared_ext}$major'
9376 shlibpath_var=LD_LIBRARY_PATH
9377 hardcode_into_libs=yes
9380 hpux9* | hpux10* | hpux11*)
9381 # Give a soname corresponding to the major version so that dld.sl refuses to
9382 # link against other versions.
9389 hardcode_into_libs=yes
9390 dynamic_linker="$host_os dld.so"
9391 shlibpath_var=LD_LIBRARY_PATH
9392 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9394 soname_spec='${libname}${release}${shared_ext}$major'
9395 if test "X$HPUX_IA64_MODE" = X32; then
9396 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9398 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9400 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9404 hardcode_into_libs=yes
9405 dynamic_linker="$host_os dld.sl"
9406 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9407 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9409 soname_spec='${libname}${release}${shared_ext}$major'
9410 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9411 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9415 dynamic_linker="$host_os dld.sl"
9416 shlibpath_var=SHLIB_PATH
9417 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9419 soname_spec='${libname}${release}${shared_ext}$major'
9422 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9423 postinstall_cmds='chmod 555 $lib'
9430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9431 soname_spec='${libname}${release}${shared_ext}$major'
9432 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9433 shlibpath_var=LD_LIBRARY_PATH
9434 shlibpath_overrides_runpath=no
9435 hardcode_into_libs=yes
9438 irix5* | irix6* | nonstopux*)
9440 nonstopux*) version_type=nonstopux ;;
9442 if test "$lt_cv_prog_gnu_ld" = yes; then
9450 soname_spec='${libname}${release}${shared_ext}$major'
9451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9453 irix5* | nonstopux*)
9457 case $LD in # libtool.m4 will add one of these switches to LD
9458 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9459 libsuff= shlibsuff= libmagic=32-bit;;
9460 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9461 libsuff=32 shlibsuff=N32 libmagic=N32;;
9462 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9463 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9464 *) libsuff= shlibsuff= libmagic=never-match;;
9468 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9469 shlibpath_overrides_runpath=no
9470 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9471 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9472 hardcode_into_libs=yes
9475 # No shared lib support for Linux oldld, aout, or coff.
9476 linux*oldld* | linux*aout* | linux*coff*)
9480 # This must be Linux ELF.
9485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9486 soname_spec='${libname}${release}${shared_ext}$major'
9487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9488 shlibpath_var=LD_LIBRARY_PATH
9489 shlibpath_overrides_runpath=no
9490 # This implies no fast_install, which is unacceptable.
9491 # Some rework will be needed to allow for fast_install
9492 # before this can be enabled.
9493 hardcode_into_libs=yes
9495 # Append ld.so.conf contents to the search path
9496 if test -f /etc/ld.so.conf; then
9497 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' ' '`
9498 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9501 # We used to test for /lib/ld.so.1 and disable shared libraries on
9502 # powerpc, because MkLinux only supported shared libraries with the
9503 # GNU dynamic linker. Since this was broken with cross compilers,
9504 # most powerpc-linux boxes support dynamic linking these days and
9505 # people can always --disable-shared, the test was removed, and we
9506 # assume the GNU/Linux dynamic linker is in use.
9507 dynamic_linker='GNU/Linux ld.so'
9514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9515 soname_spec='${libname}${release}${shared_ext}$major'
9516 shlibpath_var=LD_LIBRARY_PATH
9517 shlibpath_overrides_runpath=no
9518 hardcode_into_libs=yes
9519 dynamic_linker='GNU ld.so'
9526 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9529 dynamic_linker='NetBSD (a.out) ld.so'
9531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9532 soname_spec='${libname}${release}${shared_ext}$major'
9533 dynamic_linker='NetBSD ld.elf_so'
9535 shlibpath_var=LD_LIBRARY_PATH
9536 shlibpath_overrides_runpath=yes
9537 hardcode_into_libs=yes
9542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543 shlibpath_var=LD_LIBRARY_PATH
9544 shlibpath_overrides_runpath=yes
9551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9552 soname_spec='${libname}${release}${shared_ext}$major'
9553 shlibpath_var=LD_LIBRARY_PATH
9554 shlibpath_overrides_runpath=yes
9559 sys_lib_dlsearch_path_spec="/usr/lib"
9561 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9563 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9564 *) need_version=no ;;
9566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9568 shlibpath_var=LD_LIBRARY_PATH
9569 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9571 openbsd2.[89] | openbsd2.[89].*)
9572 shlibpath_overrides_runpath=no
9575 shlibpath_overrides_runpath=yes
9579 shlibpath_overrides_runpath=yes
9584 libname_spec='$name'
9587 library_names_spec='$libname${shared_ext} $libname.a'
9588 dynamic_linker='OS/2 ld.exe'
9589 shlibpath_var=LIBPATH
9592 osf3* | osf4* | osf5*)
9596 soname_spec='${libname}${release}${shared_ext}$major'
9597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598 shlibpath_var=LD_LIBRARY_PATH
9599 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9600 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9608 soname_spec='${libname}${release}${shared_ext}$major'
9609 shlibpath_var=LD_LIBRARY_PATH
9610 shlibpath_overrides_runpath=yes
9611 hardcode_into_libs=yes
9612 # ldd complains unless libraries are executable
9613 postinstall_cmds='chmod +x $lib'
9618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9619 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9620 shlibpath_var=LD_LIBRARY_PATH
9621 shlibpath_overrides_runpath=yes
9622 if test "$with_gnu_ld" = yes; then
9630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9631 soname_spec='${libname}${release}${shared_ext}$major'
9632 shlibpath_var=LD_LIBRARY_PATH
9633 case $host_vendor in
9635 shlibpath_overrides_runpath=no
9637 export_dynamic_flag_spec='${wl}-Blargedynsym'
9638 runpath_var=LD_RUN_PATH
9646 shlibpath_overrides_runpath=no
9647 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9653 if test -d /usr/nec ;then
9655 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9656 soname_spec='$libname${shared_ext}.$major'
9657 shlibpath_var=LD_LIBRARY_PATH
9661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9662 version_type=freebsd-elf
9665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9666 soname_spec='${libname}${release}${shared_ext}$major'
9667 shlibpath_var=LD_LIBRARY_PATH
9668 hardcode_into_libs=yes
9669 if test "$with_gnu_ld" = yes; then
9670 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9671 shlibpath_overrides_runpath=no
9673 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9674 shlibpath_overrides_runpath=yes
9677 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9681 sys_lib_dlsearch_path_spec='/usr/lib'
9686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9687 soname_spec='${libname}${release}${shared_ext}$major'
9688 shlibpath_var=LD_LIBRARY_PATH
9695 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9696 echo "${ECHO_T}$dynamic_linker" >&6; }
9697 test "$dynamic_linker" = no && can_build_shared=no
9699 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9700 if test "$GCC" = yes; then
9701 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9705 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9706 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9707 if test "${libltdl_cv_shlibext+set}" = set; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 eval libltdl_cv_shlibext=$shrext_cmds
9715 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9716 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9717 if test -n "$libltdl_cv_shlibext"; then
9719 cat >>confdefs.h <<_ACEOF
9720 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9726 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9727 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9728 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9729 echo $ECHO_N "(cached) $ECHO_C" >&6
9731 libltdl_cv_shlibpath_var="$shlibpath_var"
9733 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9734 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9735 if test -n "$libltdl_cv_shlibpath_var"; then
9737 cat >>confdefs.h <<_ACEOF
9738 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9744 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9745 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9746 if test "${libltdl_cv_sys_search_path+set}" = set; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
9749 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9751 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9752 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9753 if test -n "$libltdl_cv_sys_search_path"; then
9755 for dir in $libltdl_cv_sys_search_path; do
9756 if test -z "$sys_search_path"; then
9757 sys_search_path="$dir"
9759 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9763 cat >>confdefs.h <<_ACEOF
9764 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9769 { echo "$as_me:$LINENO: checking for objdir" >&5
9770 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9771 if test "${libltdl_cv_objdir+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 libltdl_cv_objdir="$objdir"
9775 if test -n "$objdir"; then
9778 rm -f .libs 2>/dev/null
9779 mkdir .libs 2>/dev/null
9780 if test -d .libs; then
9781 libltdl_cv_objdir=.libs
9783 # MS-DOS does not allow filenames that begin with a dot.
9784 libltdl_cv_objdir=_libs
9786 rmdir .libs 2>/dev/null
9790 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9791 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9793 cat >>confdefs.h <<_ACEOF
9794 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9802 # Check for command to grab the raw symbol name followed by C symbol from nm.
9803 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9804 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9805 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9806 echo $ECHO_N "(cached) $ECHO_C" >&6
9809 # These are sane defaults that work on at least a few old systems.
9810 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9812 # Character class describing NM global symbol codes.
9813 symcode='[BCDEGRST]'
9815 # Regexp to match symbols that can be accessed directly from C.
9816 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9818 # Transform an extracted symbol line into a proper C declaration
9819 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9821 # Transform an extracted symbol line into symbol name and symbol address
9822 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'"
9824 # Define system-specific variables.
9829 cygwin* | mingw* | pw32*)
9830 symcode='[ABCDGISTW]'
9832 hpux*) # Its linker distinguishes data from code symbols
9833 if test "$host_cpu" = ia64; then
9834 symcode='[ABCDEGRST]'
9836 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9837 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'"
9840 if test "$host_cpu" = ia64; then
9841 symcode='[ABCDGIRSTW]'
9842 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9843 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'"
9847 symcode='[BCDEGRST]'
9850 symcode='[BCDEGQRST]'
9861 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9869 # Handle CRLF in mingw tool chain
9873 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9877 # If we're using GNU nm, then use its standard symbol codes.
9878 case `$NM -V 2>&1` in
9879 *GNU* | *'with BFD'*)
9880 symcode='[ABCDGIRSTW]' ;;
9883 # Try without a prefix undercore, then with it.
9884 for ac_symprfx in "" "_"; do
9886 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9887 symxfrm="\\1 $ac_symprfx\\2 \\2"
9889 # Write the raw and C identifiers.
9890 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9892 # Check to see that the pipe works correctly.
9896 cat > conftest.$ac_ext <<EOF
9901 void nm_test_func(){}
9905 int main(){nm_test_var='a';nm_test_func();return(0);}
9908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9909 (eval $ac_compile) 2>&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); }; then
9913 # Now try to grab the symbols.
9915 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9916 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); } && test -s "$nlist"; then
9920 # Try sorting and uniquifying the output.
9921 if sort "$nlist" | uniq > "$nlist"T; then
9922 mv -f "$nlist"T "$nlist"
9927 # Make sure that we snagged all the symbols we need.
9928 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9929 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9930 cat <<EOF > conftest.$ac_ext
9936 # Now generate the symbol file.
9937 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9939 cat <<EOF >> conftest.$ac_ext
9940 #if defined (__STDC__) && __STDC__
9941 # define lt_ptr_t void *
9943 # define lt_ptr_t char *
9947 /* The mapping between symbol names and symbols. */
9952 lt_preloaded_symbols[] =
9955 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9956 cat <<\EOF >> conftest.$ac_ext
9964 # Now try linking the two files.
9965 mv conftest.$ac_objext conftstm.$ac_objext
9966 lt_save_LIBS="$LIBS"
9967 lt_save_CFLAGS="$CFLAGS"
9968 LIBS="conftstm.$ac_objext"
9969 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9971 (eval $ac_link) 2>&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9977 LIBS="$lt_save_LIBS"
9978 CFLAGS="$lt_save_CFLAGS"
9980 echo "cannot find nm_test_func in $nlist" >&5
9983 echo "cannot find nm_test_var in $nlist" >&5
9986 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9989 echo "$progname: failed program was:" >&5
9990 cat conftest.$ac_ext >&5
9992 rm -f conftest* conftst*
9994 # Do not use the global_symbol_pipe unless it works.
9995 if test "$pipe_works" = yes; then
9998 lt_cv_sys_global_symbol_pipe=
10004 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10005 lt_cv_sys_global_symbol_to_cdecl=
10007 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10008 { echo "$as_me:$LINENO: result: failed" >&5
10009 echo "${ECHO_T}failed" >&6; }
10011 { echo "$as_me:$LINENO: result: ok" >&5
10012 echo "${ECHO_T}ok" >&6; }
10016 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10017 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10018 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10021 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10022 libltdl_cv_preloaded_symbols=yes
10024 libltdl_cv_preloaded_symbols=no
10028 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10029 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10030 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10032 cat >>confdefs.h <<\_ACEOF
10033 #define HAVE_PRELOADED_SYMBOLS 1
10041 ac_cpp='$CPP $CPPFLAGS'
10042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10047 { echo "$as_me:$LINENO: checking for shl_load" >&5
10048 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10049 if test "${ac_cv_func_shl_load+set}" = set; then
10050 echo $ECHO_N "(cached) $ECHO_C" >&6
10052 cat >conftest.$ac_ext <<_ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h. */
10058 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10060 #define shl_load innocuous_shl_load
10062 /* System header to define __stub macros and hopefully few prototypes,
10063 which can conflict with char shl_load (); below.
10064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10065 <limits.h> exists even on freestanding compilers. */
10068 # include <limits.h>
10070 # include <assert.h>
10075 /* Override any GCC internal prototype to avoid an error.
10076 Use char because int might match the return type of a GCC
10077 builtin and then its argument prototype would still apply. */
10082 /* The GNU C library defines this for functions which it implements
10083 to always fail with ENOSYS. Some functions are actually named
10084 something starting with __ and the normal name is an alias. */
10085 #if defined __stub_shl_load || defined __stub___shl_load
10092 return shl_load ();
10097 rm -f conftest.$ac_objext conftest$ac_exeext
10098 if { (ac_try="$ac_link"
10099 case "(($ac_try" in
10100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101 *) ac_try_echo=$ac_try;;
10103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10104 (eval "$ac_link") 2>conftest.er1
10106 grep -v '^ *+' conftest.er1 >conftest.err
10108 cat conftest.err >&5
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); } &&
10111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10112 { (case "(($ac_try" in
10113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114 *) ac_try_echo=$ac_try;;
10116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117 (eval "$ac_try") 2>&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); }; } &&
10121 { ac_try='test -s conftest$ac_exeext'
10122 { (case "(($ac_try" in
10123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124 *) ac_try_echo=$ac_try;;
10126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10127 (eval "$ac_try") 2>&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); }; }; then
10131 ac_cv_func_shl_load=yes
10133 echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.$ac_ext >&5
10136 ac_cv_func_shl_load=no
10139 rm -f core conftest.err conftest.$ac_objext \
10140 conftest$ac_exeext conftest.$ac_ext
10142 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10143 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10144 if test $ac_cv_func_shl_load = yes; then
10146 cat >>confdefs.h <<\_ACEOF
10147 #define HAVE_SHL_LOAD 1
10151 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10152 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10153 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 ac_check_lib_save_LIBS=$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. */
10175 return shl_load ();
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_dld_shl_load=yes
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10219 ac_cv_lib_dld_shl_load=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_dld_shl_load" >&5
10227 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10228 if test $ac_cv_lib_dld_shl_load = yes; then
10230 cat >>confdefs.h <<\_ACEOF
10231 #define HAVE_SHL_LOAD 1
10234 LIBADD_DL="$LIBADD_DL -ldld"
10236 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10237 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10238 if test "${ac_cv_lib_dl_dlopen+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. */
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_dl_dlopen=yes
10301 echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10304 ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
10312 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10313 if test $ac_cv_lib_dl_dlopen = yes; then
10315 cat >>confdefs.h <<\_ACEOF
10316 #define HAVE_LIBDL 1
10319 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10321 cat >conftest.$ac_ext <<_ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h. */
10328 # include <dlfcn.h>
10339 rm -f conftest.$ac_objext conftest$ac_exeext
10340 if { (ac_try="$ac_link"
10341 case "(($ac_try" in
10342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343 *) ac_try_echo=$ac_try;;
10345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346 (eval "$ac_link") 2>conftest.er1
10348 grep -v '^ *+' conftest.er1 >conftest.err
10350 cat conftest.err >&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); } &&
10353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10354 { (case "(($ac_try" in
10355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356 *) ac_try_echo=$ac_try;;
10358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10359 (eval "$ac_try") 2>&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; } &&
10363 { ac_try='test -s conftest$ac_exeext'
10364 { (case "(($ac_try" in
10365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366 *) ac_try_echo=$ac_try;;
10368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369 (eval "$ac_try") 2>&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); }; }; then
10374 cat >>confdefs.h <<\_ACEOF
10375 #define HAVE_LIBDL 1
10377 libltdl_cv_func_dlopen="yes"
10379 echo "$as_me: failed program was:" >&5
10380 sed 's/^/| /' conftest.$ac_ext >&5
10382 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10383 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10384 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 ac_check_lib_save_LIBS=$LIBS
10388 LIBS="-lsvld $LIBS"
10389 cat >conftest.$ac_ext <<_ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10396 /* Override any GCC internal prototype to avoid an error.
10397 Use char because int might match the return type of a GCC
10398 builtin and then its argument prototype would still apply. */
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (ac_try="$ac_link"
10413 case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_link") 2>conftest.er1
10420 grep -v '^ *+' conftest.er1 >conftest.err
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } &&
10425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10426 { (case "(($ac_try" in
10427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428 *) ac_try_echo=$ac_try;;
10430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10431 (eval "$ac_try") 2>&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; } &&
10435 { ac_try='test -s conftest$ac_exeext'
10436 { (case "(($ac_try" in
10437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438 *) ac_try_echo=$ac_try;;
10440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10441 (eval "$ac_try") 2>&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; }; then
10445 ac_cv_lib_svld_dlopen=yes
10447 echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10450 ac_cv_lib_svld_dlopen=no
10453 rm -f core conftest.err conftest.$ac_objext \
10454 conftest$ac_exeext conftest.$ac_ext
10455 LIBS=$ac_check_lib_save_LIBS
10457 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10458 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10459 if test $ac_cv_lib_svld_dlopen = yes; then
10461 cat >>confdefs.h <<\_ACEOF
10462 #define HAVE_LIBDL 1
10465 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10467 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10468 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10469 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 ac_check_lib_save_LIBS=$LIBS
10474 cat >conftest.$ac_ext <<_ACEOF
10477 cat confdefs.h >>conftest.$ac_ext
10478 cat >>conftest.$ac_ext <<_ACEOF
10479 /* end confdefs.h. */
10481 /* Override any GCC internal prototype to avoid an error.
10482 Use char because int might match the return type of a GCC
10483 builtin and then its argument prototype would still apply. */
10491 return dld_link ();
10496 rm -f conftest.$ac_objext conftest$ac_exeext
10497 if { (ac_try="$ac_link"
10498 case "(($ac_try" in
10499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10500 *) ac_try_echo=$ac_try;;
10502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10503 (eval "$ac_link") 2>conftest.er1
10505 grep -v '^ *+' conftest.er1 >conftest.err
10507 cat conftest.err >&5
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); } &&
10510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10511 { (case "(($ac_try" in
10512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513 *) ac_try_echo=$ac_try;;
10515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516 (eval "$ac_try") 2>&5
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); }; } &&
10520 { ac_try='test -s conftest$ac_exeext'
10521 { (case "(($ac_try" in
10522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10523 *) ac_try_echo=$ac_try;;
10525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10526 (eval "$ac_try") 2>&5
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); }; }; then
10530 ac_cv_lib_dld_dld_link=yes
10532 echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10535 ac_cv_lib_dld_dld_link=no
10538 rm -f core conftest.err conftest.$ac_objext \
10539 conftest$ac_exeext conftest.$ac_ext
10540 LIBS=$ac_check_lib_save_LIBS
10542 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10543 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10544 if test $ac_cv_lib_dld_dld_link = yes; then
10546 cat >>confdefs.h <<\_ACEOF
10550 LIBADD_DL="$LIBADD_DL -ldld"
10552 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10553 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10554 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10557 cat >conftest.$ac_ext <<_ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h. */
10563 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10565 #define _dyld_func_lookup innocuous__dyld_func_lookup
10567 /* System header to define __stub macros and hopefully few prototypes,
10568 which can conflict with char _dyld_func_lookup (); below.
10569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10570 <limits.h> exists even on freestanding compilers. */
10573 # include <limits.h>
10575 # include <assert.h>
10578 #undef _dyld_func_lookup
10580 /* Override any GCC internal prototype to avoid an error.
10581 Use char because int might match the return type of a GCC
10582 builtin and then its argument prototype would still apply. */
10586 char _dyld_func_lookup ();
10587 /* The GNU C library defines this for functions which it implements
10588 to always fail with ENOSYS. Some functions are actually named
10589 something starting with __ and the normal name is an alias. */
10590 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10597 return _dyld_func_lookup ();
10602 rm -f conftest.$ac_objext conftest$ac_exeext
10603 if { (ac_try="$ac_link"
10604 case "(($ac_try" in
10605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606 *) ac_try_echo=$ac_try;;
10608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10609 (eval "$ac_link") 2>conftest.er1
10611 grep -v '^ *+' conftest.er1 >conftest.err
10613 cat conftest.err >&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } &&
10616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10617 { (case "(($ac_try" in
10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622 (eval "$ac_try") 2>&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; } &&
10626 { ac_try='test -s conftest$ac_exeext'
10627 { (case "(($ac_try" in
10628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629 *) ac_try_echo=$ac_try;;
10631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632 (eval "$ac_try") 2>&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; }; then
10636 ac_cv_func__dyld_func_lookup=yes
10638 echo "$as_me: failed program was:" >&5
10639 sed 's/^/| /' conftest.$ac_ext >&5
10641 ac_cv_func__dyld_func_lookup=no
10644 rm -f core conftest.err conftest.$ac_objext \
10645 conftest$ac_exeext conftest.$ac_ext
10647 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10648 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10649 if test $ac_cv_func__dyld_func_lookup = yes; then
10651 cat >>confdefs.h <<\_ACEOF
10652 #define HAVE_DYLD 1
10666 rm -f core conftest.err conftest.$ac_objext \
10667 conftest$ac_exeext conftest.$ac_ext
10678 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10680 lt_save_LIBS="$LIBS"
10681 LIBS="$LIBS $LIBADD_DL"
10683 for ac_func in dlerror
10685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10686 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10688 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10691 cat >conftest.$ac_ext <<_ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h. */
10697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10699 #define $ac_func innocuous_$ac_func
10701 /* System header to define __stub macros and hopefully few prototypes,
10702 which can conflict with char $ac_func (); below.
10703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10704 <limits.h> exists even on freestanding compilers. */
10707 # include <limits.h>
10709 # include <assert.h>
10714 /* Override any GCC internal prototype to avoid an error.
10715 Use char because int might match the return type of a GCC
10716 builtin and then its argument prototype would still apply. */
10721 /* The GNU C library defines this for functions which it implements
10722 to always fail with ENOSYS. Some functions are actually named
10723 something starting with __ and the normal name is an alias. */
10724 #if defined __stub_$ac_func || defined __stub___$ac_func
10731 return $ac_func ();
10736 rm -f conftest.$ac_objext conftest$ac_exeext
10737 if { (ac_try="$ac_link"
10738 case "(($ac_try" in
10739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10740 *) ac_try_echo=$ac_try;;
10742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10743 (eval "$ac_link") 2>conftest.er1
10745 grep -v '^ *+' conftest.er1 >conftest.err
10747 cat conftest.err >&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } &&
10750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10751 { (case "(($ac_try" in
10752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753 *) ac_try_echo=$ac_try;;
10755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10756 (eval "$ac_try") 2>&5
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); }; } &&
10760 { ac_try='test -s conftest$ac_exeext'
10761 { (case "(($ac_try" in
10762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763 *) ac_try_echo=$ac_try;;
10765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766 (eval "$ac_try") 2>&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }; }; then
10770 eval "$as_ac_var=yes"
10772 echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10775 eval "$as_ac_var=no"
10778 rm -f core conftest.err conftest.$ac_objext \
10779 conftest$ac_exeext conftest.$ac_ext
10781 ac_res=`eval echo '${'$as_ac_var'}'`
10782 { echo "$as_me:$LINENO: result: $ac_res" >&5
10783 echo "${ECHO_T}$ac_res" >&6; }
10784 if test `eval echo '${'$as_ac_var'}'` = yes; then
10785 cat >>confdefs.h <<_ACEOF
10786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10792 LIBS="$lt_save_LIBS"
10795 ac_cpp='$CPP $CPPFLAGS'
10796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10802 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10803 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10804 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10807 ac_cv_sys_symbol_underscore=no
10808 cat > conftest.$ac_ext <<EOF
10809 void nm_test_func(){}
10810 int main(){nm_test_func;return 0;}
10812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10813 (eval $ac_compile) 2>&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; then
10817 # Now try to grab the symbols.
10818 ac_nlist=conftest.nm
10819 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10820 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } && test -s "$ac_nlist"; then
10824 # See whether the symbols have a leading underscore.
10825 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10826 ac_cv_sys_symbol_underscore=yes
10828 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10831 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10835 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10838 echo "configure: failed program was:" >&5
10844 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10845 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10848 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10849 if test x"$libltdl_cv_func_dlopen" = xyes ||
10850 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10851 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10852 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10853 if test "${libltdl_cv_need_uscore+set}" = set; then
10854 echo $ECHO_N "(cached) $ECHO_C" >&6
10856 libltdl_cv_need_uscore=unknown
10858 LIBS="$LIBS $LIBADD_DL"
10859 if test "$cross_compiling" = yes; then :
10860 libltdl_cv_need_uscore=cross
10862 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10863 lt_status=$lt_dlunknown
10864 cat > conftest.$ac_ext <<EOF
10865 #line 10865 "configure"
10866 #include "confdefs.h"
10875 # define LT_DLGLOBAL RTLD_GLOBAL
10878 # define LT_DLGLOBAL DL_GLOBAL
10880 # define LT_DLGLOBAL 0
10884 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10885 find out it does not work in some platform. */
10886 #ifndef LT_DLLAZY_OR_NOW
10888 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10891 # define LT_DLLAZY_OR_NOW DL_LAZY
10894 # define LT_DLLAZY_OR_NOW RTLD_NOW
10897 # define LT_DLLAZY_OR_NOW DL_NOW
10899 # define LT_DLLAZY_OR_NOW 0
10907 extern "C" void exit (int);
10910 void fnord() { int i=42;}
10913 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10914 int status = $lt_dlunknown;
10918 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10919 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10920 /* dlclose (self); */
10928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10929 (eval $ac_link) 2>&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10933 (./conftest; exit; ) >&5 2>/dev/null
10935 case x$lt_status in
10936 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10937 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10938 x$lt_dlunknown|x*) ;;
10941 # compilation failed
10950 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10951 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10955 if test x"$libltdl_cv_need_uscore" = xyes; then
10957 cat >>confdefs.h <<\_ACEOF
10958 #define NEED_USCORE 1
10964 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10965 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10966 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10967 echo $ECHO_N "(cached) $ECHO_C" >&6
10969 # PORTME does your system automatically load deplibs for dlopen?
10970 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10971 # For now, we just catch OSes we know something about -- in the
10972 # future, we'll try test this programmatically.
10973 libltdl_cv_sys_dlopen_deplibs=unknown
10975 aix3*|aix4.1.*|aix4.2.*)
10976 # Unknown whether this is true for these versions of AIX, but
10977 # we want this `case' here to explicitly catch those versions.
10978 libltdl_cv_sys_dlopen_deplibs=unknown
10981 libltdl_cv_sys_dlopen_deplibs=yes
10984 # Assuming the user has installed a libdl from somewhere, this is true
10985 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10986 libltdl_cv_sys_dlopen_deplibs=yes
10988 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10989 # GNU and its variants, using gnu ld.so (Glibc)
10990 libltdl_cv_sys_dlopen_deplibs=yes
10993 libltdl_cv_sys_dlopen_deplibs=yes
10996 libltdl_cv_sys_dlopen_deplibs=yes
10998 irix[12345]*|irix6.[01]*)
10999 # Catch all versions of IRIX before 6.2, and indicate that we don't
11000 # know how it worked for any of those versions.
11001 libltdl_cv_sys_dlopen_deplibs=unknown
11004 # The case above catches anything before 6.2, and it's known that
11005 # at 6.2 and later dlopen does load deplibs.
11006 libltdl_cv_sys_dlopen_deplibs=yes
11009 libltdl_cv_sys_dlopen_deplibs=yes
11012 libltdl_cv_sys_dlopen_deplibs=yes
11015 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11016 # it did *not* use an RPATH in a shared library to find objects the
11017 # library depends on, so we explictly say `no'.
11018 libltdl_cv_sys_dlopen_deplibs=no
11020 osf5.0|osf5.0a|osf5.1)
11021 # dlopen *does* load deplibs and with the right loader patch applied
11022 # it even uses RPATH in a shared library to search for shared objects
11023 # that the library depends on, but there's no easy way to know if that
11024 # patch is installed. Since this is the case, all we can really
11025 # say is unknown -- it depends on the patch being installed. If
11026 # it is, this changes to `yes'. Without it, it would be `no'.
11027 libltdl_cv_sys_dlopen_deplibs=unknown
11030 # the two cases above should catch all versions of osf <= 5.1. Read
11031 # the comments above for what we know about them.
11032 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11033 # is used to find them so we can finally say `yes'.
11034 libltdl_cv_sys_dlopen_deplibs=yes
11037 libltdl_cv_sys_dlopen_deplibs=yes
11039 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11040 libltdl_cv_sys_dlopen_deplibs=yes
11045 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11046 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11047 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11049 cat >>confdefs.h <<\_ACEOF
11050 #define LTDL_DLOPEN_DEPLIBS 1
11056 for ac_header in argz.h
11058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11060 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11065 ac_res=`eval echo '${'$as_ac_Header'}'`
11066 { echo "$as_me:$LINENO: result: $ac_res" >&5
11067 echo "${ECHO_T}$ac_res" >&6; }
11069 # Is the header compilable?
11070 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11071 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11072 cat >conftest.$ac_ext <<_ACEOF
11075 cat confdefs.h >>conftest.$ac_ext
11076 cat >>conftest.$ac_ext <<_ACEOF
11077 /* end confdefs.h. */
11078 $ac_includes_default
11079 #include <$ac_header>
11081 rm -f conftest.$ac_objext
11082 if { (ac_try="$ac_compile"
11083 case "(($ac_try" in
11084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085 *) ac_try_echo=$ac_try;;
11087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088 (eval "$ac_compile") 2>conftest.er1
11090 grep -v '^ *+' conftest.er1 >conftest.err
11092 cat conftest.err >&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); } &&
11095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11096 { (case "(($ac_try" in
11097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098 *) ac_try_echo=$ac_try;;
11100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11101 (eval "$ac_try") 2>&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); }; } &&
11105 { ac_try='test -s conftest.$ac_objext'
11106 { (case "(($ac_try" in
11107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111 (eval "$ac_try") 2>&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; }; then
11115 ac_header_compiler=yes
11117 echo "$as_me: failed program was:" >&5
11118 sed 's/^/| /' conftest.$ac_ext >&5
11120 ac_header_compiler=no
11123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11124 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11125 echo "${ECHO_T}$ac_header_compiler" >&6; }
11127 # Is the header present?
11128 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11130 cat >conftest.$ac_ext <<_ACEOF
11133 cat confdefs.h >>conftest.$ac_ext
11134 cat >>conftest.$ac_ext <<_ACEOF
11135 /* end confdefs.h. */
11136 #include <$ac_header>
11138 if { (ac_try="$ac_cpp conftest.$ac_ext"
11139 case "(($ac_try" in
11140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11141 *) ac_try_echo=$ac_try;;
11143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11146 grep -v '^ *+' conftest.er1 >conftest.err
11148 cat conftest.err >&5
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); } >/dev/null; then
11151 if test -s conftest.err; then
11152 ac_cpp_err=$ac_c_preproc_warn_flag
11153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11160 if test -z "$ac_cpp_err"; then
11161 ac_header_preproc=yes
11163 echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.$ac_ext >&5
11166 ac_header_preproc=no
11169 rm -f conftest.err conftest.$ac_ext
11170 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11171 echo "${ECHO_T}$ac_header_preproc" >&6; }
11173 # So? What about this header?
11174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11180 ac_header_preproc=yes
11183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11186 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11190 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11196 ## ----------------------------------- ##
11197 ## Report this to llvmbugs@cs.uiuc.edu ##
11198 ## ----------------------------------- ##
11200 ) | sed "s/^/$as_me: WARNING: /" >&2
11203 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11208 eval "$as_ac_Header=\$ac_header_preproc"
11210 ac_res=`eval echo '${'$as_ac_Header'}'`
11211 { echo "$as_me:$LINENO: result: $ac_res" >&5
11212 echo "${ECHO_T}$ac_res" >&6; }
11215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11216 cat >>confdefs.h <<_ACEOF
11217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11225 { echo "$as_me:$LINENO: checking for error_t" >&5
11226 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11227 if test "${ac_cv_type_error_t+set}" = set; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
11230 cat >conftest.$ac_ext <<_ACEOF
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h. */
11240 typedef error_t ac__type_new_;
11244 if ((ac__type_new_ *) 0)
11246 if (sizeof (ac__type_new_))
11252 rm -f conftest.$ac_objext
11253 if { (ac_try="$ac_compile"
11254 case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_compile") 2>conftest.er1
11261 grep -v '^ *+' conftest.er1 >conftest.err
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } &&
11266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11267 { (case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_try") 2>&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest.$ac_objext'
11277 { (case "(($ac_try" in
11278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279 *) ac_try_echo=$ac_try;;
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_try") 2>&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
11286 ac_cv_type_error_t=yes
11288 echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11291 ac_cv_type_error_t=no
11294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11296 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11297 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11298 if test $ac_cv_type_error_t = yes; then
11300 cat >>confdefs.h <<_ACEOF
11301 #define HAVE_ERROR_T 1
11307 cat >>confdefs.h <<\_ACEOF
11308 #define error_t int
11319 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11322 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11327 cat >conftest.$ac_ext <<_ACEOF
11330 cat confdefs.h >>conftest.$ac_ext
11331 cat >>conftest.$ac_ext <<_ACEOF
11332 /* end confdefs.h. */
11333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11335 #define $ac_func innocuous_$ac_func
11337 /* System header to define __stub macros and hopefully few prototypes,
11338 which can conflict with char $ac_func (); below.
11339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11340 <limits.h> exists even on freestanding compilers. */
11343 # include <limits.h>
11345 # include <assert.h>
11350 /* Override any GCC internal prototype to avoid an error.
11351 Use char because int might match the return type of a GCC
11352 builtin and then its argument prototype would still apply. */
11357 /* The GNU C library defines this for functions which it implements
11358 to always fail with ENOSYS. Some functions are actually named
11359 something starting with __ and the normal name is an alias. */
11360 #if defined __stub_$ac_func || defined __stub___$ac_func
11367 return $ac_func ();
11372 rm -f conftest.$ac_objext conftest$ac_exeext
11373 if { (ac_try="$ac_link"
11374 case "(($ac_try" in
11375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11376 *) ac_try_echo=$ac_try;;
11378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11379 (eval "$ac_link") 2>conftest.er1
11381 grep -v '^ *+' conftest.er1 >conftest.err
11383 cat conftest.err >&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); } &&
11386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11387 { (case "(($ac_try" in
11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389 *) ac_try_echo=$ac_try;;
11391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392 (eval "$ac_try") 2>&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; } &&
11396 { ac_try='test -s conftest$ac_exeext'
11397 { (case "(($ac_try" in
11398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11399 *) ac_try_echo=$ac_try;;
11401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11402 (eval "$ac_try") 2>&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; }; then
11406 eval "$as_ac_var=yes"
11408 echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.$ac_ext >&5
11411 eval "$as_ac_var=no"
11414 rm -f core conftest.err conftest.$ac_objext \
11415 conftest$ac_exeext conftest.$ac_ext
11417 ac_res=`eval echo '${'$as_ac_var'}'`
11418 { echo "$as_me:$LINENO: result: $ac_res" >&5
11419 echo "${ECHO_T}$ac_res" >&6; }
11420 if test `eval echo '${'$as_ac_var'}'` = yes; then
11421 cat >>confdefs.h <<_ACEOF
11422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11455 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11463 echo $ECHO_N "(cached) $ECHO_C" >&6
11465 ac_res=`eval echo '${'$as_ac_Header'}'`
11466 { echo "$as_me:$LINENO: result: $ac_res" >&5
11467 echo "${ECHO_T}$ac_res" >&6; }
11469 # Is the header compilable?
11470 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11472 cat >conftest.$ac_ext <<_ACEOF
11475 cat confdefs.h >>conftest.$ac_ext
11476 cat >>conftest.$ac_ext <<_ACEOF
11477 /* end confdefs.h. */
11478 $ac_includes_default
11479 #include <$ac_header>
11481 rm -f conftest.$ac_objext
11482 if { (ac_try="$ac_compile"
11483 case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488 (eval "$ac_compile") 2>conftest.er1
11490 grep -v '^ *+' conftest.er1 >conftest.err
11492 cat conftest.err >&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } &&
11495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11496 { (case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11501 (eval "$ac_try") 2>&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; } &&
11505 { ac_try='test -s conftest.$ac_objext'
11506 { (case "(($ac_try" in
11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511 (eval "$ac_try") 2>&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); }; }; then
11515 ac_header_compiler=yes
11517 echo "$as_me: failed program was:" >&5
11518 sed 's/^/| /' conftest.$ac_ext >&5
11520 ac_header_compiler=no
11523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11525 echo "${ECHO_T}$ac_header_compiler" >&6; }
11527 # Is the header present?
11528 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11530 cat >conftest.$ac_ext <<_ACEOF
11533 cat confdefs.h >>conftest.$ac_ext
11534 cat >>conftest.$ac_ext <<_ACEOF
11535 /* end confdefs.h. */
11536 #include <$ac_header>
11538 if { (ac_try="$ac_cpp conftest.$ac_ext"
11539 case "(($ac_try" in
11540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541 *) ac_try_echo=$ac_try;;
11543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11546 grep -v '^ *+' conftest.er1 >conftest.err
11548 cat conftest.err >&5
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); } >/dev/null; then
11551 if test -s conftest.err; then
11552 ac_cpp_err=$ac_c_preproc_warn_flag
11553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11560 if test -z "$ac_cpp_err"; then
11561 ac_header_preproc=yes
11563 echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.$ac_ext >&5
11566 ac_header_preproc=no
11569 rm -f conftest.err conftest.$ac_ext
11570 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11571 echo "${ECHO_T}$ac_header_preproc" >&6; }
11573 # So? What about this header?
11574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11580 ac_header_preproc=yes
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11590 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11596 ## ----------------------------------- ##
11597 ## Report this to llvmbugs@cs.uiuc.edu ##
11598 ## ----------------------------------- ##
11600 ) | sed "s/^/$as_me: WARNING: /" >&2
11603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11606 echo $ECHO_N "(cached) $ECHO_C" >&6
11608 eval "$as_ac_Header=\$ac_header_preproc"
11610 ac_res=`eval echo '${'$as_ac_Header'}'`
11611 { echo "$as_me:$LINENO: result: $ac_res" >&5
11612 echo "${ECHO_T}$ac_res" >&6; }
11615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11616 cat >>confdefs.h <<_ACEOF
11617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11628 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11635 echo $ECHO_N "(cached) $ECHO_C" >&6
11637 ac_res=`eval echo '${'$as_ac_Header'}'`
11638 { echo "$as_me:$LINENO: result: $ac_res" >&5
11639 echo "${ECHO_T}$ac_res" >&6; }
11641 # Is the header compilable?
11642 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11644 cat >conftest.$ac_ext <<_ACEOF
11647 cat confdefs.h >>conftest.$ac_ext
11648 cat >>conftest.$ac_ext <<_ACEOF
11649 /* end confdefs.h. */
11650 $ac_includes_default
11651 #include <$ac_header>
11653 rm -f conftest.$ac_objext
11654 if { (ac_try="$ac_compile"
11655 case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_compile") 2>conftest.er1
11662 grep -v '^ *+' conftest.er1 >conftest.err
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } &&
11667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11668 { (case "(($ac_try" in
11669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670 *) ac_try_echo=$ac_try;;
11672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673 (eval "$ac_try") 2>&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); }; } &&
11677 { ac_try='test -s conftest.$ac_objext'
11678 { (case "(($ac_try" in
11679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680 *) ac_try_echo=$ac_try;;
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_try") 2>&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; }; then
11687 ac_header_compiler=yes
11689 echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11692 ac_header_compiler=no
11695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11696 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11697 echo "${ECHO_T}$ac_header_compiler" >&6; }
11699 # Is the header present?
11700 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11702 cat >conftest.$ac_ext <<_ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h. */
11708 #include <$ac_header>
11710 if { (ac_try="$ac_cpp conftest.$ac_ext"
11711 case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11718 grep -v '^ *+' conftest.er1 >conftest.err
11720 cat conftest.err >&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } >/dev/null; then
11723 if test -s conftest.err; then
11724 ac_cpp_err=$ac_c_preproc_warn_flag
11725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11732 if test -z "$ac_cpp_err"; then
11733 ac_header_preproc=yes
11735 echo "$as_me: failed program was:" >&5
11736 sed 's/^/| /' conftest.$ac_ext >&5
11738 ac_header_preproc=no
11741 rm -f conftest.err conftest.$ac_ext
11742 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11743 echo "${ECHO_T}$ac_header_preproc" >&6; }
11745 # So? What about this header?
11746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11752 ac_header_preproc=yes
11755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11758 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11759 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11761 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11762 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11765 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11768 ## ----------------------------------- ##
11769 ## Report this to llvmbugs@cs.uiuc.edu ##
11770 ## ----------------------------------- ##
11772 ) | sed "s/^/$as_me: WARNING: /" >&2
11775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11778 echo $ECHO_N "(cached) $ECHO_C" >&6
11780 eval "$as_ac_Header=\$ac_header_preproc"
11782 ac_res=`eval echo '${'$as_ac_Header'}'`
11783 { echo "$as_me:$LINENO: result: $ac_res" >&5
11784 echo "${ECHO_T}$ac_res" >&6; }
11787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11788 cat >>confdefs.h <<_ACEOF
11789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11798 for ac_header in string.h strings.h
11800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11805 echo $ECHO_N "(cached) $ECHO_C" >&6
11807 ac_res=`eval echo '${'$as_ac_Header'}'`
11808 { echo "$as_me:$LINENO: result: $ac_res" >&5
11809 echo "${ECHO_T}$ac_res" >&6; }
11811 # Is the header compilable?
11812 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11814 cat >conftest.$ac_ext <<_ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h. */
11820 $ac_includes_default
11821 #include <$ac_header>
11823 rm -f conftest.$ac_objext
11824 if { (ac_try="$ac_compile"
11825 case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830 (eval "$ac_compile") 2>conftest.er1
11832 grep -v '^ *+' conftest.er1 >conftest.err
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } &&
11837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11838 { (case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843 (eval "$ac_try") 2>&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }; } &&
11847 { ac_try='test -s conftest.$ac_objext'
11848 { (case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_try") 2>&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); }; }; then
11857 ac_header_compiler=yes
11859 echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11862 ac_header_compiler=no
11865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11867 echo "${ECHO_T}$ac_header_compiler" >&6; }
11869 # Is the header present?
11870 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11872 cat >conftest.$ac_ext <<_ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h. */
11878 #include <$ac_header>
11880 if { (ac_try="$ac_cpp conftest.$ac_ext"
11881 case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11888 grep -v '^ *+' conftest.er1 >conftest.err
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } >/dev/null; then
11893 if test -s conftest.err; then
11894 ac_cpp_err=$ac_c_preproc_warn_flag
11895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11902 if test -z "$ac_cpp_err"; then
11903 ac_header_preproc=yes
11905 echo "$as_me: failed program was:" >&5
11906 sed 's/^/| /' conftest.$ac_ext >&5
11908 ac_header_preproc=no
11911 rm -f conftest.err conftest.$ac_ext
11912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11913 echo "${ECHO_T}$ac_header_preproc" >&6; }
11915 # So? What about this header?
11916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11922 ac_header_preproc=yes
11925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11932 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11938 ## ----------------------------------- ##
11939 ## Report this to llvmbugs@cs.uiuc.edu ##
11940 ## ----------------------------------- ##
11942 ) | sed "s/^/$as_me: WARNING: /" >&2
11945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 eval "$as_ac_Header=\$ac_header_preproc"
11952 ac_res=`eval echo '${'$as_ac_Header'}'`
11953 { echo "$as_me:$LINENO: result: $ac_res" >&5
11954 echo "${ECHO_T}$ac_res" >&6; }
11957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11958 cat >>confdefs.h <<_ACEOF
11959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11969 for ac_func in strchr index
11971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11972 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11974 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11977 cat >conftest.$ac_ext <<_ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h. */
11983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11985 #define $ac_func innocuous_$ac_func
11987 /* System header to define __stub macros and hopefully few prototypes,
11988 which can conflict with char $ac_func (); below.
11989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11990 <limits.h> exists even on freestanding compilers. */
11993 # include <limits.h>
11995 # include <assert.h>
12000 /* Override any GCC internal prototype to avoid an error.
12001 Use char because int might match the return type of a GCC
12002 builtin and then its argument prototype would still apply. */
12007 /* The GNU C library defines this for functions which it implements
12008 to always fail with ENOSYS. Some functions are actually named
12009 something starting with __ and the normal name is an alias. */
12010 #if defined __stub_$ac_func || defined __stub___$ac_func
12017 return $ac_func ();
12022 rm -f conftest.$ac_objext conftest$ac_exeext
12023 if { (ac_try="$ac_link"
12024 case "(($ac_try" in
12025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026 *) ac_try_echo=$ac_try;;
12028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12029 (eval "$ac_link") 2>conftest.er1
12031 grep -v '^ *+' conftest.er1 >conftest.err
12033 cat conftest.err >&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } &&
12036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12037 { (case "(($ac_try" in
12038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039 *) ac_try_echo=$ac_try;;
12041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12042 (eval "$ac_try") 2>&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; } &&
12046 { ac_try='test -s conftest$ac_exeext'
12047 { (case "(($ac_try" in
12048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049 *) ac_try_echo=$ac_try;;
12051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052 (eval "$ac_try") 2>&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; }; then
12056 eval "$as_ac_var=yes"
12058 echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12061 eval "$as_ac_var=no"
12064 rm -f core conftest.err conftest.$ac_objext \
12065 conftest$ac_exeext conftest.$ac_ext
12067 ac_res=`eval echo '${'$as_ac_var'}'`
12068 { echo "$as_me:$LINENO: result: $ac_res" >&5
12069 echo "${ECHO_T}$ac_res" >&6; }
12070 if test `eval echo '${'$as_ac_var'}'` = yes; then
12071 cat >>confdefs.h <<_ACEOF
12072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12080 for ac_func in strrchr rindex
12082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12083 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12088 cat >conftest.$ac_ext <<_ACEOF
12091 cat confdefs.h >>conftest.$ac_ext
12092 cat >>conftest.$ac_ext <<_ACEOF
12093 /* end confdefs.h. */
12094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12096 #define $ac_func innocuous_$ac_func
12098 /* System header to define __stub macros and hopefully few prototypes,
12099 which can conflict with char $ac_func (); below.
12100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12101 <limits.h> exists even on freestanding compilers. */
12104 # include <limits.h>
12106 # include <assert.h>
12111 /* Override any GCC internal prototype to avoid an error.
12112 Use char because int might match the return type of a GCC
12113 builtin and then its argument prototype would still apply. */
12118 /* The GNU C library defines this for functions which it implements
12119 to always fail with ENOSYS. Some functions are actually named
12120 something starting with __ and the normal name is an alias. */
12121 #if defined __stub_$ac_func || defined __stub___$ac_func
12128 return $ac_func ();
12133 rm -f conftest.$ac_objext conftest$ac_exeext
12134 if { (ac_try="$ac_link"
12135 case "(($ac_try" in
12136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12137 *) ac_try_echo=$ac_try;;
12139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12140 (eval "$ac_link") 2>conftest.er1
12142 grep -v '^ *+' conftest.er1 >conftest.err
12144 cat conftest.err >&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); } &&
12147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12148 { (case "(($ac_try" in
12149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150 *) ac_try_echo=$ac_try;;
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153 (eval "$ac_try") 2>&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; } &&
12157 { ac_try='test -s conftest$ac_exeext'
12158 { (case "(($ac_try" in
12159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12160 *) ac_try_echo=$ac_try;;
12162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12163 (eval "$ac_try") 2>&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); }; }; then
12167 eval "$as_ac_var=yes"
12169 echo "$as_me: failed program was:" >&5
12170 sed 's/^/| /' conftest.$ac_ext >&5
12172 eval "$as_ac_var=no"
12175 rm -f core conftest.err conftest.$ac_objext \
12176 conftest$ac_exeext conftest.$ac_ext
12178 ac_res=`eval echo '${'$as_ac_var'}'`
12179 { echo "$as_me:$LINENO: result: $ac_res" >&5
12180 echo "${ECHO_T}$ac_res" >&6; }
12181 if test `eval echo '${'$as_ac_var'}'` = yes; then
12182 cat >>confdefs.h <<_ACEOF
12183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12191 for ac_func in memcpy bcopy
12193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12194 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12196 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12197 echo $ECHO_N "(cached) $ECHO_C" >&6
12199 cat >conftest.$ac_ext <<_ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h. */
12205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12207 #define $ac_func innocuous_$ac_func
12209 /* System header to define __stub macros and hopefully few prototypes,
12210 which can conflict with char $ac_func (); below.
12211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12212 <limits.h> exists even on freestanding compilers. */
12215 # include <limits.h>
12217 # include <assert.h>
12222 /* Override any GCC internal prototype to avoid an error.
12223 Use char because int might match the return type of a GCC
12224 builtin and then its argument prototype would still apply. */
12229 /* The GNU C library defines this for functions which it implements
12230 to always fail with ENOSYS. Some functions are actually named
12231 something starting with __ and the normal name is an alias. */
12232 #if defined __stub_$ac_func || defined __stub___$ac_func
12239 return $ac_func ();
12244 rm -f conftest.$ac_objext conftest$ac_exeext
12245 if { (ac_try="$ac_link"
12246 case "(($ac_try" in
12247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248 *) ac_try_echo=$ac_try;;
12250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251 (eval "$ac_link") 2>conftest.er1
12253 grep -v '^ *+' conftest.er1 >conftest.err
12255 cat conftest.err >&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); } &&
12258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12259 { (case "(($ac_try" in
12260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261 *) ac_try_echo=$ac_try;;
12263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12264 (eval "$ac_try") 2>&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }; } &&
12268 { ac_try='test -s conftest$ac_exeext'
12269 { (case "(($ac_try" in
12270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271 *) ac_try_echo=$ac_try;;
12273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274 (eval "$ac_try") 2>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; }; then
12278 eval "$as_ac_var=yes"
12280 echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12283 eval "$as_ac_var=no"
12286 rm -f core conftest.err conftest.$ac_objext \
12287 conftest$ac_exeext conftest.$ac_ext
12289 ac_res=`eval echo '${'$as_ac_var'}'`
12290 { echo "$as_me:$LINENO: result: $ac_res" >&5
12291 echo "${ECHO_T}$ac_res" >&6; }
12292 if test `eval echo '${'$as_ac_var'}'` = yes; then
12293 cat >>confdefs.h <<_ACEOF
12294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12302 for ac_func in memmove strcmp
12304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12305 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12307 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12310 cat >conftest.$ac_ext <<_ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12318 #define $ac_func innocuous_$ac_func
12320 /* System header to define __stub macros and hopefully few prototypes,
12321 which can conflict with char $ac_func (); below.
12322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12323 <limits.h> exists even on freestanding compilers. */
12326 # include <limits.h>
12328 # include <assert.h>
12333 /* Override any GCC internal prototype to avoid an error.
12334 Use char because int might match the return type of a GCC
12335 builtin and then its argument prototype would still apply. */
12340 /* The GNU C library defines this for functions which it implements
12341 to always fail with ENOSYS. Some functions are actually named
12342 something starting with __ and the normal name is an alias. */
12343 #if defined __stub_$ac_func || defined __stub___$ac_func
12350 return $ac_func ();
12355 rm -f conftest.$ac_objext conftest$ac_exeext
12356 if { (ac_try="$ac_link"
12357 case "(($ac_try" in
12358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359 *) ac_try_echo=$ac_try;;
12361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362 (eval "$ac_link") 2>conftest.er1
12364 grep -v '^ *+' conftest.er1 >conftest.err
12366 cat conftest.err >&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); } &&
12369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12370 { (case "(($ac_try" in
12371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372 *) ac_try_echo=$ac_try;;
12374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375 (eval "$ac_try") 2>&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; } &&
12379 { ac_try='test -s conftest$ac_exeext'
12380 { (case "(($ac_try" in
12381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382 *) ac_try_echo=$ac_try;;
12384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12385 (eval "$ac_try") 2>&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; }; then
12389 eval "$as_ac_var=yes"
12391 echo "$as_me: failed program was:" >&5
12392 sed 's/^/| /' conftest.$ac_ext >&5
12394 eval "$as_ac_var=no"
12397 rm -f core conftest.err conftest.$ac_objext \
12398 conftest$ac_exeext conftest.$ac_ext
12400 ac_res=`eval echo '${'$as_ac_var'}'`
12401 { echo "$as_me:$LINENO: result: $ac_res" >&5
12402 echo "${ECHO_T}$ac_res" >&6; }
12403 if test `eval echo '${'$as_ac_var'}'` = yes; then
12404 cat >>confdefs.h <<_ACEOF
12405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12414 for ac_func in closedir opendir readdir
12416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12417 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12419 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12420 echo $ECHO_N "(cached) $ECHO_C" >&6
12422 cat >conftest.$ac_ext <<_ACEOF
12425 cat confdefs.h >>conftest.$ac_ext
12426 cat >>conftest.$ac_ext <<_ACEOF
12427 /* end confdefs.h. */
12428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12430 #define $ac_func innocuous_$ac_func
12432 /* System header to define __stub macros and hopefully few prototypes,
12433 which can conflict with char $ac_func (); below.
12434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12435 <limits.h> exists even on freestanding compilers. */
12438 # include <limits.h>
12440 # include <assert.h>
12445 /* Override any GCC internal prototype to avoid an error.
12446 Use char because int might match the return type of a GCC
12447 builtin and then its argument prototype would still apply. */
12452 /* The GNU C library defines this for functions which it implements
12453 to always fail with ENOSYS. Some functions are actually named
12454 something starting with __ and the normal name is an alias. */
12455 #if defined __stub_$ac_func || defined __stub___$ac_func
12462 return $ac_func ();
12467 rm -f conftest.$ac_objext conftest$ac_exeext
12468 if { (ac_try="$ac_link"
12469 case "(($ac_try" in
12470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12471 *) ac_try_echo=$ac_try;;
12473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12474 (eval "$ac_link") 2>conftest.er1
12476 grep -v '^ *+' conftest.er1 >conftest.err
12478 cat conftest.err >&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); } &&
12481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12482 { (case "(($ac_try" in
12483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12484 *) ac_try_echo=$ac_try;;
12486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12487 (eval "$ac_try") 2>&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; } &&
12491 { ac_try='test -s conftest$ac_exeext'
12492 { (case "(($ac_try" in
12493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12494 *) ac_try_echo=$ac_try;;
12496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12497 (eval "$ac_try") 2>&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; }; then
12501 eval "$as_ac_var=yes"
12503 echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12506 eval "$as_ac_var=no"
12509 rm -f core conftest.err conftest.$ac_objext \
12510 conftest$ac_exeext conftest.$ac_ext
12512 ac_res=`eval echo '${'$as_ac_var'}'`
12513 { echo "$as_me:$LINENO: result: $ac_res" >&5
12514 echo "${ECHO_T}$ac_res" >&6; }
12515 if test `eval echo '${'$as_ac_var'}'` = yes; then
12516 cat >>confdefs.h <<_ACEOF
12517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12524 # Check whether --enable-shared was given.
12525 if test "${enable_shared+set}" = set; then
12526 enableval=$enable_shared; p=${PACKAGE-default}
12528 yes) enable_shared=yes ;;
12529 no) enable_shared=no ;;
12532 # Look at the argument we got. We use all the common list separators.
12533 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12534 for pkg in $enableval; do
12536 if test "X$pkg" = "X$p"; then
12548 # Check whether --enable-static was given.
12549 if test "${enable_static+set}" = set; then
12550 enableval=$enable_static; p=${PACKAGE-default}
12552 yes) enable_static=yes ;;
12553 no) enable_static=no ;;
12556 # Look at the argument we got. We use all the common list separators.
12557 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12558 for pkg in $enableval; do
12560 if test "X$pkg" = "X$p"; then
12572 # Check whether --enable-fast-install was given.
12573 if test "${enable_fast_install+set}" = set; then
12574 enableval=$enable_fast_install; p=${PACKAGE-default}
12576 yes) enable_fast_install=yes ;;
12577 no) enable_fast_install=no ;;
12579 enable_fast_install=no
12580 # Look at the argument we got. We use all the common list separators.
12581 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12582 for pkg in $enableval; do
12584 if test "X$pkg" = "X$p"; then
12585 enable_fast_install=yes
12592 enable_fast_install=yes
12596 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12597 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12598 if test "${lt_cv_path_SED+set}" = set; then
12599 echo $ECHO_N "(cached) $ECHO_C" >&6
12601 # Loop through the user's path and test for sed and gsed.
12602 # Then use that list of sed's as ones to test for truncation.
12603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12604 for as_dir in $PATH
12607 test -z "$as_dir" && as_dir=.
12608 for lt_ac_prog in sed gsed; do
12609 for ac_exec_ext in '' $ac_executable_extensions; do
12610 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12611 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12618 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12619 # along with /bin/sed that truncates output.
12620 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12621 test ! -f $lt_ac_sed && continue
12622 cat /dev/null > conftest.in
12624 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12625 # Check for GNU sed and select it if it is found.
12626 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12627 lt_cv_path_SED=$lt_ac_sed
12631 cat conftest.in conftest.in >conftest.tmp
12632 mv conftest.tmp conftest.in
12633 cp conftest.in conftest.nl
12635 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12636 cmp -s conftest.out conftest.nl || break
12637 # 10000 chars as input seems more than enough
12638 test $lt_ac_count -gt 10 && break
12639 lt_ac_count=`expr $lt_ac_count + 1`
12640 if test $lt_ac_count -gt $lt_ac_max; then
12641 lt_ac_max=$lt_ac_count
12642 lt_cv_path_SED=$lt_ac_sed
12649 SED=$lt_cv_path_SED
12650 { echo "$as_me:$LINENO: result: $SED" >&5
12651 echo "${ECHO_T}$SED" >&6; }
12654 # Check whether --with-gnu-ld was given.
12655 if test "${with_gnu_ld+set}" = set; then
12656 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12662 if test "$GCC" = yes; then
12663 # Check if gcc -print-prog-name=ld gives a path.
12664 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12665 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12668 # gcc leaves a trailing carriage return which upsets mingw
12669 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12671 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12674 # Accept absolute paths.
12676 re_direlt='/[^/][^/]*/\.\./'
12677 # Canonicalize the pathname of ld
12678 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12679 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12680 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12682 test -z "$LD" && LD="$ac_prog"
12685 # If it fails, then pretend we aren't using GCC.
12689 # If it is relative, then search for the first ld in PATH.
12690 with_gnu_ld=unknown
12693 elif test "$with_gnu_ld" = yes; then
12694 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12695 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12697 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12698 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12700 if test "${lt_cv_path_LD+set}" = set; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
12703 if test -z "$LD"; then
12704 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12705 for ac_dir in $PATH; do
12707 test -z "$ac_dir" && ac_dir=.
12708 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12709 lt_cv_path_LD="$ac_dir/$ac_prog"
12710 # Check to see if the program is GNU ld. I'd rather use --version,
12711 # but apparently some variants of GNU ld only accept -v.
12712 # Break only if it was the GNU/non-GNU ld that we prefer.
12713 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12714 *GNU* | *'with BFD'*)
12715 test "$with_gnu_ld" != no && break
12718 test "$with_gnu_ld" != yes && break
12725 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12729 LD="$lt_cv_path_LD"
12730 if test -n "$LD"; then
12731 { echo "$as_me:$LINENO: result: $LD" >&5
12732 echo "${ECHO_T}$LD" >&6; }
12734 { echo "$as_me:$LINENO: result: no" >&5
12735 echo "${ECHO_T}no" >&6; }
12737 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12738 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12739 { (exit 1); exit 1; }; }
12740 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12741 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12742 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12745 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12746 case `$LD -v 2>&1 </dev/null` in
12747 *GNU* | *'with BFD'*)
12748 lt_cv_prog_gnu_ld=yes
12751 lt_cv_prog_gnu_ld=no
12755 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12756 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12757 with_gnu_ld=$lt_cv_prog_gnu_ld
12760 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12761 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12762 if test "${lt_cv_ld_reload_flag+set}" = set; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12765 lt_cv_ld_reload_flag='-r'
12767 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12768 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12769 reload_flag=$lt_cv_ld_reload_flag
12770 case $reload_flag in
12772 *) reload_flag=" $reload_flag" ;;
12774 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12777 if test "$GCC" = yes; then
12778 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12780 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12785 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12786 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12787 if test "${lt_cv_deplibs_check_method+set}" = set; then
12788 echo $ECHO_N "(cached) $ECHO_C" >&6
12790 lt_cv_file_magic_cmd='$MAGIC_CMD'
12791 lt_cv_file_magic_test_file=
12792 lt_cv_deplibs_check_method='unknown'
12793 # Need to set the preceding variable on all platforms that support
12794 # interlibrary dependencies.
12795 # 'none' -- dependencies not supported.
12796 # `unknown' -- same as none, but documents that we really don't know.
12797 # 'pass_all' -- all dependencies passed with no checks.
12798 # 'test_compile' -- check by making test program.
12799 # 'file_magic [[regex]]' -- check by looking for files in library path
12800 # which responds to the $file_magic_cmd with a given extended regex.
12801 # If you have `file' or equivalent on your system and you're not sure
12802 # whether `pass_all' will *always* work, you probably want this one.
12806 lt_cv_deplibs_check_method=pass_all
12810 lt_cv_deplibs_check_method=pass_all
12814 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12815 lt_cv_file_magic_cmd='/usr/bin/file -L'
12816 lt_cv_file_magic_test_file=/shlib/libc.so
12820 # func_win32_libid is a shell function defined in ltmain.sh
12821 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12822 lt_cv_file_magic_cmd='func_win32_libid'
12826 # Base MSYS/MinGW do not provide the 'file' command needed by
12827 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12828 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12829 lt_cv_file_magic_cmd='$OBJDUMP -f'
12832 darwin* | rhapsody*)
12833 lt_cv_deplibs_check_method=pass_all
12836 freebsd* | kfreebsd*-gnu | dragonfly*)
12837 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12840 # Not sure whether the presence of OpenBSD here was a mistake.
12841 # Let's accept both of them until this is cleared up.
12842 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12843 lt_cv_file_magic_cmd=/usr/bin/file
12844 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12848 lt_cv_deplibs_check_method=pass_all
12853 lt_cv_deplibs_check_method=pass_all
12856 hpux10.20* | hpux11*)
12857 lt_cv_file_magic_cmd=/usr/bin/file
12860 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12861 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12864 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]'
12865 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12868 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12869 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12875 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12876 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12879 irix5* | irix6* | nonstopux*)
12881 *-32|*"-32 ") libmagic=32-bit;;
12882 *-n32|*"-n32 ") libmagic=N32;;
12883 *-64|*"-64 ") libmagic=64-bit;;
12884 *) libmagic=never-match;;
12886 lt_cv_deplibs_check_method=pass_all
12889 # This must be Linux ELF.
12891 lt_cv_deplibs_check_method=pass_all
12895 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12896 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12898 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12903 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12904 lt_cv_file_magic_cmd=/usr/bin/file
12905 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12909 lt_cv_deplibs_check_method=unknown
12913 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12914 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12916 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12920 osf3* | osf4* | osf5*)
12921 lt_cv_deplibs_check_method=pass_all
12925 lt_cv_deplibs_check_method=pass_all
12929 case $host_vendor in
12931 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]'
12932 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12935 lt_cv_deplibs_check_method=pass_all
12938 lt_cv_file_magic_cmd='/bin/file'
12939 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12942 lt_cv_file_magic_cmd='/bin/file'
12943 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12944 lt_cv_file_magic_test_file=/lib/libc.so
12947 lt_cv_deplibs_check_method=pass_all
12950 lt_cv_deplibs_check_method=pass_all
12955 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12956 lt_cv_deplibs_check_method=pass_all
12961 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12962 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12963 file_magic_cmd=$lt_cv_file_magic_cmd
12964 deplibs_check_method=$lt_cv_deplibs_check_method
12965 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12969 # If no C compiler was specified, use CC.
12972 # If no C compiler flags were specified, use CFLAGS.
12973 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12975 # Allow CC to be a program name with arguments.
12978 # Check whether --enable-libtool-lock was given.
12979 if test "${enable_libtool_lock+set}" = set; then
12980 enableval=$enable_libtool_lock;
12983 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12985 # Some flags need to be propagated to the compiler or linker for good
12989 # Find out which ABI we are using.
12990 echo 'int i;' > conftest.$ac_ext
12991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12992 (eval $ac_compile) 2>&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; then
12996 case `/usr/bin/file conftest.$ac_objext` in
12998 HPUX_IA64_MODE="32"
13001 HPUX_IA64_MODE="64"
13008 # Find out which ABI we are using.
13009 echo '#line 13009 "configure"' > conftest.$ac_ext
13010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13011 (eval $ac_compile) 2>&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; then
13015 if test "$lt_cv_prog_gnu_ld" = yes; then
13016 case `/usr/bin/file conftest.$ac_objext` in
13018 LD="${LD-ld} -melf32bsmip"
13021 LD="${LD-ld} -melf32bmipn32"
13024 LD="${LD-ld} -melf64bmip"
13028 case `/usr/bin/file conftest.$ac_objext` in
13044 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13045 # Find out which ABI we are using.
13046 echo 'int i;' > conftest.$ac_ext
13047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13048 (eval $ac_compile) 2>&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; then
13052 case `/usr/bin/file conftest.o` in
13056 LD="${LD-ld} -m elf_i386"
13058 ppc64-*linux*|powerpc64-*linux*)
13059 LD="${LD-ld} -m elf32ppclinux"
13062 LD="${LD-ld} -m elf_s390"
13065 LD="${LD-ld} -m elf32_sparc"
13072 LD="${LD-ld} -m elf_x86_64"
13074 ppc*-*linux*|powerpc*-*linux*)
13075 LD="${LD-ld} -m elf64ppc"
13078 LD="${LD-ld} -m elf64_s390"
13081 LD="${LD-ld} -m elf64_sparc"
13091 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13092 SAVE_CFLAGS="$CFLAGS"
13093 CFLAGS="$CFLAGS -belf"
13094 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13095 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13096 if test "${lt_cv_cc_needs_belf+set}" = set; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13100 ac_cpp='$CPP $CPPFLAGS'
13101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13105 cat >conftest.$ac_ext <<_ACEOF
13108 cat confdefs.h >>conftest.$ac_ext
13109 cat >>conftest.$ac_ext <<_ACEOF
13110 /* end confdefs.h. */
13120 rm -f conftest.$ac_objext conftest$ac_exeext
13121 if { (ac_try="$ac_link"
13122 case "(($ac_try" in
13123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124 *) ac_try_echo=$ac_try;;
13126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127 (eval "$ac_link") 2>conftest.er1
13129 grep -v '^ *+' conftest.er1 >conftest.err
13131 cat conftest.err >&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); } &&
13134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13135 { (case "(($ac_try" in
13136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13137 *) ac_try_echo=$ac_try;;
13139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13140 (eval "$ac_try") 2>&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; } &&
13144 { ac_try='test -s conftest$ac_exeext'
13145 { (case "(($ac_try" in
13146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147 *) ac_try_echo=$ac_try;;
13149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150 (eval "$ac_try") 2>&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; }; then
13154 lt_cv_cc_needs_belf=yes
13156 echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13159 lt_cv_cc_needs_belf=no
13162 rm -f core conftest.err conftest.$ac_objext \
13163 conftest$ac_exeext conftest.$ac_ext
13165 ac_cpp='$CPP $CPPFLAGS'
13166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13171 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13172 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13173 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13174 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13175 CFLAGS="$SAVE_CFLAGS"
13179 # Find out which ABI we are using.
13180 echo 'int i;' > conftest.$ac_ext
13181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13182 (eval $ac_compile) 2>&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; then
13186 case `/usr/bin/file conftest.o` in
13188 case $lt_cv_prog_gnu_ld in
13189 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13190 *) LD="${LD-ld} -64" ;;
13201 need_locks="$enable_libtool_lock"
13206 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13207 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13208 (test "X$CXX" != "Xg++"))) ; then
13210 ac_cpp='$CXXCPP $CPPFLAGS'
13211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13214 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13215 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13216 if test -z "$CXXCPP"; then
13217 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
13220 # Double quotes because CXXCPP needs to be expanded
13221 for CXXCPP in "$CXX -E" "/lib/cpp"
13223 ac_preproc_ok=false
13224 for ac_cxx_preproc_warn_flag in '' yes
13226 # Use a header file that comes with gcc, so configuring glibc
13227 # with a fresh cross-compiler works.
13228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13229 # <limits.h> exists even on freestanding compilers.
13230 # On the NeXT, cc -E runs the code through the compiler's parser,
13231 # not just through cpp. "Syntax error" is here to catch this case.
13232 cat >conftest.$ac_ext <<_ACEOF
13235 cat confdefs.h >>conftest.$ac_ext
13236 cat >>conftest.$ac_ext <<_ACEOF
13237 /* end confdefs.h. */
13239 # include <limits.h>
13241 # include <assert.h>
13245 if { (ac_try="$ac_cpp conftest.$ac_ext"
13246 case "(($ac_try" in
13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13253 grep -v '^ *+' conftest.er1 >conftest.err
13255 cat conftest.err >&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } >/dev/null; then
13258 if test -s conftest.err; then
13259 ac_cpp_err=$ac_cxx_preproc_warn_flag
13260 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13267 if test -z "$ac_cpp_err"; then
13270 echo "$as_me: failed program was:" >&5
13271 sed 's/^/| /' conftest.$ac_ext >&5
13273 # Broken: fails on valid input.
13277 rm -f conftest.err conftest.$ac_ext
13279 # OK, works on sane cases. Now check whether nonexistent headers
13280 # can be detected and how.
13281 cat >conftest.$ac_ext <<_ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13287 #include <ac_nonexistent.h>
13289 if { (ac_try="$ac_cpp conftest.$ac_ext"
13290 case "(($ac_try" in
13291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292 *) ac_try_echo=$ac_try;;
13294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13297 grep -v '^ *+' conftest.er1 >conftest.err
13299 cat conftest.err >&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); } >/dev/null; then
13302 if test -s conftest.err; then
13303 ac_cpp_err=$ac_cxx_preproc_warn_flag
13304 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13311 if test -z "$ac_cpp_err"; then
13312 # Broken: success on invalid input.
13315 echo "$as_me: failed program was:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13318 # Passes both tests.
13323 rm -f conftest.err conftest.$ac_ext
13326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13327 rm -f conftest.err conftest.$ac_ext
13328 if $ac_preproc_ok; then
13333 ac_cv_prog_CXXCPP=$CXXCPP
13336 CXXCPP=$ac_cv_prog_CXXCPP
13338 ac_cv_prog_CXXCPP=$CXXCPP
13340 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13341 echo "${ECHO_T}$CXXCPP" >&6; }
13342 ac_preproc_ok=false
13343 for ac_cxx_preproc_warn_flag in '' yes
13345 # Use a header file that comes with gcc, so configuring glibc
13346 # with a fresh cross-compiler works.
13347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13348 # <limits.h> exists even on freestanding compilers.
13349 # On the NeXT, cc -E runs the code through the compiler's parser,
13350 # not just through cpp. "Syntax error" is here to catch this case.
13351 cat >conftest.$ac_ext <<_ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h. */
13358 # include <limits.h>
13360 # include <assert.h>
13364 if { (ac_try="$ac_cpp conftest.$ac_ext"
13365 case "(($ac_try" in
13366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367 *) ac_try_echo=$ac_try;;
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13372 grep -v '^ *+' conftest.er1 >conftest.err
13374 cat conftest.err >&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } >/dev/null; then
13377 if test -s conftest.err; then
13378 ac_cpp_err=$ac_cxx_preproc_warn_flag
13379 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13386 if test -z "$ac_cpp_err"; then
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13392 # Broken: fails on valid input.
13396 rm -f conftest.err conftest.$ac_ext
13398 # OK, works on sane cases. Now check whether nonexistent headers
13399 # can be detected and how.
13400 cat >conftest.$ac_ext <<_ACEOF
13403 cat confdefs.h >>conftest.$ac_ext
13404 cat >>conftest.$ac_ext <<_ACEOF
13405 /* end confdefs.h. */
13406 #include <ac_nonexistent.h>
13408 if { (ac_try="$ac_cpp conftest.$ac_ext"
13409 case "(($ac_try" in
13410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13416 grep -v '^ *+' conftest.er1 >conftest.err
13418 cat conftest.err >&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } >/dev/null; then
13421 if test -s conftest.err; then
13422 ac_cpp_err=$ac_cxx_preproc_warn_flag
13423 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13430 if test -z "$ac_cpp_err"; then
13431 # Broken: success on invalid input.
13434 echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13437 # Passes both tests.
13442 rm -f conftest.err conftest.$ac_ext
13445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13446 rm -f conftest.err conftest.$ac_ext
13447 if $ac_preproc_ok; then
13450 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13451 See \`config.log' for more details." >&5
13452 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13453 See \`config.log' for more details." >&2;}
13454 { (exit 1); exit 1; }; }
13458 ac_cpp='$CXXCPP $CPPFLAGS'
13459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13467 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13468 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13469 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13470 if test -n "$ac_tool_prefix"; then
13471 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
13473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13477 if test "${ac_cv_prog_F77+set}" = set; then
13478 echo $ECHO_N "(cached) $ECHO_C" >&6
13480 if test -n "$F77"; then
13481 ac_cv_prog_F77="$F77" # Let the user override the test.
13483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13484 for as_dir in $PATH
13487 test -z "$as_dir" && as_dir=.
13488 for ac_exec_ext in '' $ac_executable_extensions; do
13489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13490 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13500 F77=$ac_cv_prog_F77
13501 if test -n "$F77"; then
13502 { echo "$as_me:$LINENO: result: $F77" >&5
13503 echo "${ECHO_T}$F77" >&6; }
13505 { echo "$as_me:$LINENO: result: no" >&5
13506 echo "${ECHO_T}no" >&6; }
13510 test -n "$F77" && break
13513 if test -z "$F77"; then
13515 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
13517 # Extract the first word of "$ac_prog", so it can be a program name with args.
13518 set dummy $ac_prog; ac_word=$2
13519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13521 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13522 echo $ECHO_N "(cached) $ECHO_C" >&6
13524 if test -n "$ac_ct_F77"; then
13525 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13528 for as_dir in $PATH
13531 test -z "$as_dir" && as_dir=.
13532 for ac_exec_ext in '' $ac_executable_extensions; do
13533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13534 ac_cv_prog_ac_ct_F77="$ac_prog"
13535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13544 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13545 if test -n "$ac_ct_F77"; then
13546 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13547 echo "${ECHO_T}$ac_ct_F77" >&6; }
13549 { echo "$as_me:$LINENO: result: no" >&5
13550 echo "${ECHO_T}no" >&6; }
13554 test -n "$ac_ct_F77" && break
13557 if test "x$ac_ct_F77" = x; then
13560 case $cross_compiling:$ac_tool_warned in
13562 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13563 whose name does not start with the host triplet. If you think this
13564 configuration is useful to you, please write to autoconf@gnu.org." >&5
13565 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13566 whose name does not start with the host triplet. If you think this
13567 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13568 ac_tool_warned=yes ;;
13575 # Provide some information about the compiler.
13576 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13577 ac_compiler=`set X $ac_compile; echo $2`
13578 { (ac_try="$ac_compiler --version >&5"
13579 case "(($ac_try" in
13580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13581 *) ac_try_echo=$ac_try;;
13583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13584 (eval "$ac_compiler --version >&5") 2>&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }
13588 { (ac_try="$ac_compiler -v >&5"
13589 case "(($ac_try" in
13590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13591 *) ac_try_echo=$ac_try;;
13593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13594 (eval "$ac_compiler -v >&5") 2>&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); }
13598 { (ac_try="$ac_compiler -V >&5"
13599 case "(($ac_try" in
13600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601 *) ac_try_echo=$ac_try;;
13603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604 (eval "$ac_compiler -V >&5") 2>&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }
13610 # If we don't use `.F' as extension, the preprocessor is not run on the
13611 # input file. (Note that this only needs to work for GNU compilers.)
13612 ac_save_ext=$ac_ext
13614 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13615 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13616 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13619 cat >conftest.$ac_ext <<_ACEOF
13627 rm -f conftest.$ac_objext
13628 if { (ac_try="$ac_compile"
13629 case "(($ac_try" in
13630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631 *) ac_try_echo=$ac_try;;
13633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634 (eval "$ac_compile") 2>conftest.er1
13636 grep -v '^ *+' conftest.er1 >conftest.err
13638 cat conftest.err >&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } &&
13641 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13642 { (case "(($ac_try" in
13643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13644 *) ac_try_echo=$ac_try;;
13646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13647 (eval "$ac_try") 2>&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); }; } &&
13651 { ac_try='test -s conftest.$ac_objext'
13652 { (case "(($ac_try" in
13653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654 *) ac_try_echo=$ac_try;;
13656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657 (eval "$ac_try") 2>&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; }; then
13661 ac_compiler_gnu=yes
13663 echo "$as_me: failed program was:" >&5
13664 sed 's/^/| /' conftest.$ac_ext >&5
13669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13670 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13673 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13674 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13675 ac_ext=$ac_save_ext
13676 ac_test_FFLAGS=${FFLAGS+set}
13677 ac_save_FFLAGS=$FFLAGS
13679 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13680 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13681 if test "${ac_cv_prog_f77_g+set}" = set; then
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13685 cat >conftest.$ac_ext <<_ACEOF
13690 rm -f conftest.$ac_objext
13691 if { (ac_try="$ac_compile"
13692 case "(($ac_try" in
13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697 (eval "$ac_compile") 2>conftest.er1
13699 grep -v '^ *+' conftest.er1 >conftest.err
13701 cat conftest.err >&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); } &&
13704 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13705 { (case "(($ac_try" in
13706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13707 *) ac_try_echo=$ac_try;;
13709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13710 (eval "$ac_try") 2>&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; } &&
13714 { ac_try='test -s conftest.$ac_objext'
13715 { (case "(($ac_try" in
13716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717 *) ac_try_echo=$ac_try;;
13719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13720 (eval "$ac_try") 2>&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; }; then
13724 ac_cv_prog_f77_g=yes
13726 echo "$as_me: failed program was:" >&5
13727 sed 's/^/| /' conftest.$ac_ext >&5
13729 ac_cv_prog_f77_g=no
13732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13735 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13736 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13737 if test "$ac_test_FFLAGS" = set; then
13738 FFLAGS=$ac_save_FFLAGS
13739 elif test $ac_cv_prog_f77_g = yes; then
13740 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13746 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13753 G77=`test $ac_compiler_gnu = yes && echo yes`
13755 ac_cpp='$CPP $CPPFLAGS'
13756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13762 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13764 # find the maximum length of command line arguments
13765 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13766 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13767 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13775 # On DJGPP, this test can blow up pretty badly due to problems in libc
13776 # (any single argument exceeding 2000 bytes causes a buffer overrun
13777 # during glob expansion). Even if it were fixed, the result of this
13778 # check would be larger than it should be.
13779 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13783 # Under GNU Hurd, this test is not required because there is
13784 # no limit to the length of command line arguments.
13785 # Libtool will interpret -1 as no limit whatsoever
13786 lt_cv_sys_max_cmd_len=-1;
13790 # On Win9x/ME, this test blows up -- it succeeds, but takes
13791 # about 5 minutes as the teststring grows exponentially.
13792 # Worse, since 9x/ME are not pre-emptively multitasking,
13793 # you end up with a "frozen" computer, even though with patience
13794 # the test eventually succeeds (with a max line length of 256k).
13795 # Instead, let's just punt: use the minimum linelength reported by
13796 # all of the supported platforms: 8192 (on NT/2K/XP).
13797 lt_cv_sys_max_cmd_len=8192;
13801 # On AmigaOS with pdksh, this test takes hours, literally.
13802 # So we just punt and use a minimum line length of 8192.
13803 lt_cv_sys_max_cmd_len=8192;
13806 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13807 # This has been around since 386BSD, at least. Likely further.
13808 if test -x /sbin/sysctl; then
13809 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13810 elif test -x /usr/sbin/sysctl; then
13811 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13813 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13815 # And add a safety zone
13816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13817 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13821 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13822 lt_cv_sys_max_cmd_len=196608
13826 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13827 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13828 # nice to cause kernel panics so lets avoid the loop below.
13829 # First set a reasonable default.
13830 lt_cv_sys_max_cmd_len=16384
13832 if test -x /sbin/sysconfig; then
13833 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13834 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13839 lt_cv_sys_max_cmd_len=102400
13841 sysv5* | sco5v6* | sysv4.2uw2*)
13842 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13843 if test -n "$kargmax"; then
13844 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13846 lt_cv_sys_max_cmd_len=32768
13850 # If test is not a shell built-in, we'll probably end up computing a
13851 # maximum length that is only half of the actual maximum length, but
13853 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13854 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13855 = "XX$teststring") >/dev/null 2>&1 &&
13856 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13857 lt_cv_sys_max_cmd_len=$new_result &&
13858 test $i != 17 # 1/2 MB should be enough
13861 teststring=$teststring$teststring
13864 # Add a significant safety factor because C++ compilers can tack on massive
13865 # amounts of additional arguments before passing them to the linker.
13866 # It appears as though 1/2 is a usable value.
13867 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13873 if test -n $lt_cv_sys_max_cmd_len ; then
13874 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13875 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13877 { echo "$as_me:$LINENO: result: none" >&5
13878 echo "${ECHO_T}none" >&6; }
13884 # Check for command to grab the raw symbol name followed by C symbol from nm.
13885 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13886 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13887 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 # These are sane defaults that work on at least a few old systems.
13892 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13894 # Character class describing NM global symbol codes.
13895 symcode='[BCDEGRST]'
13897 # Regexp to match symbols that can be accessed directly from C.
13898 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13900 # Transform an extracted symbol line into a proper C declaration
13901 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13903 # Transform an extracted symbol line into symbol name and symbol address
13904 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'"
13906 # Define system-specific variables.
13911 cygwin* | mingw* | pw32*)
13912 symcode='[ABCDGISTW]'
13914 hpux*) # Its linker distinguishes data from code symbols
13915 if test "$host_cpu" = ia64; then
13916 symcode='[ABCDEGRST]'
13918 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13919 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'"
13922 if test "$host_cpu" = ia64; then
13923 symcode='[ABCDGIRSTW]'
13924 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13925 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'"
13928 irix* | nonstopux*)
13929 symcode='[BCDEGRST]'
13932 symcode='[BCDEGQRST]'
13943 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13951 # Handle CRLF in mingw tool chain
13955 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13959 # If we're using GNU nm, then use its standard symbol codes.
13960 case `$NM -V 2>&1` in
13961 *GNU* | *'with BFD'*)
13962 symcode='[ABCDGIRSTW]' ;;
13965 # Try without a prefix undercore, then with it.
13966 for ac_symprfx in "" "_"; do
13968 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13969 symxfrm="\\1 $ac_symprfx\\2 \\2"
13971 # Write the raw and C identifiers.
13972 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13974 # Check to see that the pipe works correctly.
13978 cat > conftest.$ac_ext <<EOF
13983 void nm_test_func(){}
13987 int main(){nm_test_var='a';nm_test_func();return(0);}
13990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13991 (eval $ac_compile) 2>&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; then
13995 # Now try to grab the symbols.
13997 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13998 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } && test -s "$nlist"; then
14002 # Try sorting and uniquifying the output.
14003 if sort "$nlist" | uniq > "$nlist"T; then
14004 mv -f "$nlist"T "$nlist"
14009 # Make sure that we snagged all the symbols we need.
14010 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14011 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14012 cat <<EOF > conftest.$ac_ext
14018 # Now generate the symbol file.
14019 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14021 cat <<EOF >> conftest.$ac_ext
14022 #if defined (__STDC__) && __STDC__
14023 # define lt_ptr_t void *
14025 # define lt_ptr_t char *
14029 /* The mapping between symbol names and symbols. */
14034 lt_preloaded_symbols[] =
14037 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14038 cat <<\EOF >> conftest.$ac_ext
14046 # Now try linking the two files.
14047 mv conftest.$ac_objext conftstm.$ac_objext
14048 lt_save_LIBS="$LIBS"
14049 lt_save_CFLAGS="$CFLAGS"
14050 LIBS="conftstm.$ac_objext"
14051 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14053 (eval $ac_link) 2>&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14059 LIBS="$lt_save_LIBS"
14060 CFLAGS="$lt_save_CFLAGS"
14062 echo "cannot find nm_test_func in $nlist" >&5
14065 echo "cannot find nm_test_var in $nlist" >&5
14068 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14071 echo "$progname: failed program was:" >&5
14072 cat conftest.$ac_ext >&5
14074 rm -f conftest* conftst*
14076 # Do not use the global_symbol_pipe unless it works.
14077 if test "$pipe_works" = yes; then
14080 lt_cv_sys_global_symbol_pipe=
14086 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14087 lt_cv_sys_global_symbol_to_cdecl=
14089 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14090 { echo "$as_me:$LINENO: result: failed" >&5
14091 echo "${ECHO_T}failed" >&6; }
14093 { echo "$as_me:$LINENO: result: ok" >&5
14094 echo "${ECHO_T}ok" >&6; }
14097 { echo "$as_me:$LINENO: checking for objdir" >&5
14098 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14099 if test "${lt_cv_objdir+set}" = set; then
14100 echo $ECHO_N "(cached) $ECHO_C" >&6
14102 rm -f .libs 2>/dev/null
14103 mkdir .libs 2>/dev/null
14104 if test -d .libs; then
14107 # MS-DOS does not allow filenames that begin with a dot.
14110 rmdir .libs 2>/dev/null
14112 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14113 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14114 objdir=$lt_cv_objdir
14122 # AIX sometimes has problems with the GCC collect2 program. For some
14123 # reason, if we set the COLLECT_NAMES environment variable, the problems
14124 # vanish in a puff of smoke.
14125 if test "X${COLLECT_NAMES+set}" != Xset; then
14127 export COLLECT_NAMES
14132 # Sed substitution that helps us do robust quoting. It backslashifies
14133 # metacharacters that are still active within double-quoted strings.
14134 Xsed='sed -e 1s/^X//'
14135 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14137 # Same as above, but do not quote variable references.
14138 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14140 # Sed substitution to delay expansion of an escaped shell variable in a
14141 # double_quote_subst'ed string.
14142 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14144 # Sed substitution to avoid accidental globbing in evaled expressions
14145 no_glob_subst='s/\*/\\\*/g'
14150 # Global variables:
14151 default_ofile=mklib
14152 can_build_shared=yes
14154 # All known linkers require a `.a' archive for static linking (except MSVC,
14155 # which needs '.lib').
14157 ltmain="$ac_aux_dir/ltmain.sh"
14158 ofile="$default_ofile"
14159 with_gnu_ld="$lt_cv_prog_gnu_ld"
14161 if test -n "$ac_tool_prefix"; then
14162 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14163 set dummy ${ac_tool_prefix}ar; ac_word=$2
14164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14166 if test "${ac_cv_prog_AR+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14169 if test -n "$AR"; then
14170 ac_cv_prog_AR="$AR" # Let the user override the test.
14172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14173 for as_dir in $PATH
14176 test -z "$as_dir" && as_dir=.
14177 for ac_exec_ext in '' $ac_executable_extensions; do
14178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14179 ac_cv_prog_AR="${ac_tool_prefix}ar"
14180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14190 if test -n "$AR"; then
14191 { echo "$as_me:$LINENO: result: $AR" >&5
14192 echo "${ECHO_T}$AR" >&6; }
14194 { echo "$as_me:$LINENO: result: no" >&5
14195 echo "${ECHO_T}no" >&6; }
14200 if test -z "$ac_cv_prog_AR"; then
14202 # Extract the first word of "ar", so it can be a program name with args.
14203 set dummy ar; ac_word=$2
14204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14206 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14207 echo $ECHO_N "(cached) $ECHO_C" >&6
14209 if test -n "$ac_ct_AR"; then
14210 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14213 for as_dir in $PATH
14216 test -z "$as_dir" && as_dir=.
14217 for ac_exec_ext in '' $ac_executable_extensions; do
14218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14219 ac_cv_prog_ac_ct_AR="ar"
14220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14229 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14230 if test -n "$ac_ct_AR"; then
14231 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14232 echo "${ECHO_T}$ac_ct_AR" >&6; }
14234 { echo "$as_me:$LINENO: result: no" >&5
14235 echo "${ECHO_T}no" >&6; }
14238 if test "x$ac_ct_AR" = x; then
14241 case $cross_compiling:$ac_tool_warned in
14243 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14244 whose name does not start with the host triplet. If you think this
14245 configuration is useful to you, please write to autoconf@gnu.org." >&5
14246 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14247 whose name does not start with the host triplet. If you think this
14248 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14249 ac_tool_warned=yes ;;
14254 AR="$ac_cv_prog_AR"
14257 if test -n "$ac_tool_prefix"; then
14258 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14259 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14262 if test "${ac_cv_prog_RANLIB+set}" = set; then
14263 echo $ECHO_N "(cached) $ECHO_C" >&6
14265 if test -n "$RANLIB"; then
14266 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14269 for as_dir in $PATH
14272 test -z "$as_dir" && as_dir=.
14273 for ac_exec_ext in '' $ac_executable_extensions; do
14274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14275 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14285 RANLIB=$ac_cv_prog_RANLIB
14286 if test -n "$RANLIB"; then
14287 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14288 echo "${ECHO_T}$RANLIB" >&6; }
14290 { echo "$as_me:$LINENO: result: no" >&5
14291 echo "${ECHO_T}no" >&6; }
14296 if test -z "$ac_cv_prog_RANLIB"; then
14297 ac_ct_RANLIB=$RANLIB
14298 # Extract the first word of "ranlib", so it can be a program name with args.
14299 set dummy ranlib; ac_word=$2
14300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14302 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14303 echo $ECHO_N "(cached) $ECHO_C" >&6
14305 if test -n "$ac_ct_RANLIB"; then
14306 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14309 for as_dir in $PATH
14312 test -z "$as_dir" && as_dir=.
14313 for ac_exec_ext in '' $ac_executable_extensions; do
14314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14315 ac_cv_prog_ac_ct_RANLIB="ranlib"
14316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14325 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14326 if test -n "$ac_ct_RANLIB"; then
14327 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14328 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14330 { echo "$as_me:$LINENO: result: no" >&5
14331 echo "${ECHO_T}no" >&6; }
14334 if test "x$ac_ct_RANLIB" = x; then
14337 case $cross_compiling:$ac_tool_warned in
14339 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14340 whose name does not start with the host triplet. If you think this
14341 configuration is useful to you, please write to autoconf@gnu.org." >&5
14342 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14343 whose name does not start with the host triplet. If you think this
14344 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14345 ac_tool_warned=yes ;;
14347 RANLIB=$ac_ct_RANLIB
14350 RANLIB="$ac_cv_prog_RANLIB"
14353 if test -n "$ac_tool_prefix"; then
14354 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14355 set dummy ${ac_tool_prefix}strip; ac_word=$2
14356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14358 if test "${ac_cv_prog_STRIP+set}" = set; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14361 if test -n "$STRIP"; then
14362 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14365 for as_dir in $PATH
14368 test -z "$as_dir" && as_dir=.
14369 for ac_exec_ext in '' $ac_executable_extensions; do
14370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14371 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14381 STRIP=$ac_cv_prog_STRIP
14382 if test -n "$STRIP"; then
14383 { echo "$as_me:$LINENO: result: $STRIP" >&5
14384 echo "${ECHO_T}$STRIP" >&6; }
14386 { echo "$as_me:$LINENO: result: no" >&5
14387 echo "${ECHO_T}no" >&6; }
14392 if test -z "$ac_cv_prog_STRIP"; then
14394 # Extract the first word of "strip", so it can be a program name with args.
14395 set dummy strip; ac_word=$2
14396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14398 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14401 if test -n "$ac_ct_STRIP"; then
14402 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14405 for as_dir in $PATH
14408 test -z "$as_dir" && as_dir=.
14409 for ac_exec_ext in '' $ac_executable_extensions; do
14410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14411 ac_cv_prog_ac_ct_STRIP="strip"
14412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14421 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14422 if test -n "$ac_ct_STRIP"; then
14423 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14424 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14426 { echo "$as_me:$LINENO: result: no" >&5
14427 echo "${ECHO_T}no" >&6; }
14430 if test "x$ac_ct_STRIP" = x; then
14433 case $cross_compiling:$ac_tool_warned in
14435 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14436 whose name does not start with the host triplet. If you think this
14437 configuration is useful to you, please write to autoconf@gnu.org." >&5
14438 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14439 whose name does not start with the host triplet. If you think this
14440 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14441 ac_tool_warned=yes ;;
14446 STRIP="$ac_cv_prog_STRIP"
14451 old_CFLAGS="$CFLAGS"
14453 # Set sane defaults for various variables
14454 test -z "$AR" && AR=ar
14455 test -z "$AR_FLAGS" && AR_FLAGS=cru
14456 test -z "$AS" && AS=as
14457 test -z "$CC" && CC=cc
14458 test -z "$LTCC" && LTCC=$CC
14459 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14460 test -z "$DLLTOOL" && DLLTOOL=dlltool
14461 test -z "$LD" && LD=ld
14462 test -z "$LN_S" && LN_S="ln -s"
14463 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14464 test -z "$NM" && NM=nm
14465 test -z "$SED" && SED=sed
14466 test -z "$OBJDUMP" && OBJDUMP=objdump
14467 test -z "$RANLIB" && RANLIB=:
14468 test -z "$STRIP" && STRIP=:
14469 test -z "$ac_objext" && ac_objext=o
14471 # Determine commands to create old-style static archives.
14472 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14473 old_postinstall_cmds='chmod 644 $oldlib'
14474 old_postuninstall_cmds=
14476 if test -n "$RANLIB"; then
14479 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14482 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14485 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14488 for cc_temp in $compiler""; do
14490 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14491 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14496 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14499 # Only perform the check for file, if the check method requires it
14500 case $deplibs_check_method in
14502 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14503 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14504 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14505 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
14510 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14513 lt_save_MAGIC_CMD="$MAGIC_CMD"
14514 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14515 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14516 for ac_dir in $ac_dummy; do
14518 test -z "$ac_dir" && ac_dir=.
14519 if test -f $ac_dir/${ac_tool_prefix}file; then
14520 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14521 if test -n "$file_magic_test_file"; then
14522 case $deplibs_check_method in
14524 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14525 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14526 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14527 $EGREP "$file_magic_regex" > /dev/null; then
14532 *** Warning: the command libtool uses to detect shared libraries,
14533 *** $file_magic_cmd, produces output that libtool cannot recognize.
14534 *** The result is that libtool may fail to recognize shared libraries
14535 *** as such. This will affect the creation of libtool libraries that
14536 *** depend on shared libraries, but programs linked with such libtool
14537 *** libraries will work regardless of this problem. Nevertheless, you
14538 *** may want to report the problem to your system manager and/or to
14539 *** bug-libtool@gnu.org
14549 MAGIC_CMD="$lt_save_MAGIC_CMD"
14554 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14555 if test -n "$MAGIC_CMD"; then
14556 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14557 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14559 { echo "$as_me:$LINENO: result: no" >&5
14560 echo "${ECHO_T}no" >&6; }
14563 if test -z "$lt_cv_path_MAGIC_CMD"; then
14564 if test -n "$ac_tool_prefix"; then
14565 { echo "$as_me:$LINENO: checking for file" >&5
14566 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14567 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14572 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14575 lt_save_MAGIC_CMD="$MAGIC_CMD"
14576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14577 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14578 for ac_dir in $ac_dummy; do
14580 test -z "$ac_dir" && ac_dir=.
14581 if test -f $ac_dir/file; then
14582 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14583 if test -n "$file_magic_test_file"; then
14584 case $deplibs_check_method in
14586 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14587 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14588 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14589 $EGREP "$file_magic_regex" > /dev/null; then
14594 *** Warning: the command libtool uses to detect shared libraries,
14595 *** $file_magic_cmd, produces output that libtool cannot recognize.
14596 *** The result is that libtool may fail to recognize shared libraries
14597 *** as such. This will affect the creation of libtool libraries that
14598 *** depend on shared libraries, but programs linked with such libtool
14599 *** libraries will work regardless of this problem. Nevertheless, you
14600 *** may want to report the problem to your system manager and/or to
14601 *** bug-libtool@gnu.org
14611 MAGIC_CMD="$lt_save_MAGIC_CMD"
14616 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14617 if test -n "$MAGIC_CMD"; then
14618 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14619 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14621 { echo "$as_me:$LINENO: result: no" >&5
14622 echo "${ECHO_T}no" >&6; }
14635 enable_win32_dll=no
14637 # Check whether --enable-libtool-lock was given.
14638 if test "${enable_libtool_lock+set}" = set; then
14639 enableval=$enable_libtool_lock;
14642 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14645 # Check whether --with-pic was given.
14646 if test "${with_pic+set}" = set; then
14647 withval=$with_pic; pic_mode="$withval"
14652 test -z "$pic_mode" && pic_mode=default
14654 # Use C for the default configuration in the libtool script
14658 ac_cpp='$CPP $CPPFLAGS'
14659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14664 # Source file extension for C test sources.
14667 # Object file extension for compiled C test sources.
14671 # Code to be used in simple compile tests
14672 lt_simple_compile_test_code="int some_variable = 0;\n"
14674 # Code to be used in simple link tests
14675 lt_simple_link_test_code='int main(){return(0);}\n'
14678 # If no C compiler was specified, use CC.
14681 # If no C compiler flags were specified, use CFLAGS.
14682 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14684 # Allow CC to be a program name with arguments.
14688 # save warnings/boilerplate of simple test code
14689 ac_outfile=conftest.$ac_objext
14690 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14691 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14692 _lt_compiler_boilerplate=`cat conftest.err`
14695 ac_outfile=conftest.$ac_objext
14696 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14697 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14698 _lt_linker_boilerplate=`cat conftest.err`
14703 lt_prog_compiler_no_builtin_flag=
14705 if test "$GCC" = yes; then
14706 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14709 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14710 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14711 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14712 echo $ECHO_N "(cached) $ECHO_C" >&6
14714 lt_cv_prog_compiler_rtti_exceptions=no
14715 ac_outfile=conftest.$ac_objext
14716 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14717 lt_compiler_flag="-fno-rtti -fno-exceptions"
14718 # Insert the option either (1) after the last *FLAGS variable, or
14719 # (2) before a word containing "conftest.", or (3) at the end.
14720 # Note that $ac_compile itself does not contain backslashes and begins
14721 # with a dollar sign (not a hyphen), so the echo should work correctly.
14722 # The option is referenced via a variable to avoid confusing sed.
14723 lt_compile=`echo "$ac_compile" | $SED \
14724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14726 -e 's:$: $lt_compiler_flag:'`
14727 (eval echo "\"\$as_me:14727: $lt_compile\"" >&5)
14728 (eval "$lt_compile" 2>conftest.err)
14730 cat conftest.err >&5
14731 echo "$as_me:14731: \$? = $ac_status" >&5
14732 if (exit $ac_status) && test -s "$ac_outfile"; then
14733 # The compiler can only warn and ignore the option if not recognized
14734 # So say no if there are warnings other than the usual output.
14735 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14737 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14738 lt_cv_prog_compiler_rtti_exceptions=yes
14744 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14745 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14747 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14748 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14755 lt_prog_compiler_wl=
14756 lt_prog_compiler_pic=
14757 lt_prog_compiler_static=
14759 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14760 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14762 if test "$GCC" = yes; then
14763 lt_prog_compiler_wl='-Wl,'
14764 lt_prog_compiler_static='-static'
14768 # All AIX code is PIC.
14769 if test "$host_cpu" = ia64; then
14770 # AIX 5 now supports IA64 processor
14771 lt_prog_compiler_static='-Bstatic'
14776 # FIXME: we need at least 68020 code to build shared libraries, but
14777 # adding the `-m68020' flag to GCC prevents building anything better,
14779 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14782 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14783 # PIC is the default for these OSes.
14786 mingw* | pw32* | os2*)
14787 # This hack is so that the source file can tell whether it is being
14788 # built for inclusion in a dll (and should export symbols for example).
14789 lt_prog_compiler_pic='-DDLL_EXPORT'
14792 darwin* | rhapsody*)
14793 # PIC is the default on this platform
14794 # Common symbols not allowed in MH_DYLIB files
14795 lt_prog_compiler_pic='-fno-common'
14799 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14800 # Instead, we relocate shared libraries at runtime.
14804 # Just because we use GCC doesn't mean we suddenly get shared libraries
14805 # on systems that don't support them.
14806 lt_prog_compiler_can_build_shared=no
14811 if test -d /usr/nec; then
14812 lt_prog_compiler_pic=-Kconform_pic
14817 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14818 # not for PA HP-UX.
14824 lt_prog_compiler_pic='-fPIC'
14830 lt_prog_compiler_pic='-fPIC'
14834 # PORTME Check for flag to pass linker flags through the system compiler.
14837 lt_prog_compiler_wl='-Wl,'
14838 if test "$host_cpu" = ia64; then
14839 # AIX 5 now supports IA64 processor
14840 lt_prog_compiler_static='-Bstatic'
14842 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14846 # PIC is the default on this platform
14847 # Common symbols not allowed in MH_DYLIB files
14848 case $cc_basename in
14850 lt_prog_compiler_pic='-qnocommon'
14851 lt_prog_compiler_wl='-Wl,'
14856 mingw* | pw32* | os2*)
14857 # This hack is so that the source file can tell whether it is being
14858 # built for inclusion in a dll (and should export symbols for example).
14859 lt_prog_compiler_pic='-DDLL_EXPORT'
14862 hpux9* | hpux10* | hpux11*)
14863 lt_prog_compiler_wl='-Wl,'
14864 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14865 # not for PA HP-UX.
14871 lt_prog_compiler_pic='+Z'
14874 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14875 lt_prog_compiler_static='${wl}-a ${wl}archive'
14878 irix5* | irix6* | nonstopux*)
14879 lt_prog_compiler_wl='-Wl,'
14880 # PIC (with -KPIC) is the default.
14881 lt_prog_compiler_static='-non_shared'
14885 lt_prog_compiler_pic='-KPIC'
14886 lt_prog_compiler_static='-Bstatic'
14890 case $cc_basename in
14892 lt_prog_compiler_wl='-Wl,'
14893 lt_prog_compiler_pic='-KPIC'
14894 lt_prog_compiler_static='-static'
14896 pgcc* | pgf77* | pgf90* | pgf95*)
14897 # Portland Group compilers (*not* the Pentium gcc compiler,
14898 # which looks to be a dead project)
14899 lt_prog_compiler_wl='-Wl,'
14900 lt_prog_compiler_pic='-fpic'
14901 lt_prog_compiler_static='-Bstatic'
14904 lt_prog_compiler_wl='-Wl,'
14905 # All Alpha code is PIC.
14906 lt_prog_compiler_static='-non_shared'
14911 osf3* | osf4* | osf5*)
14912 lt_prog_compiler_wl='-Wl,'
14913 # All OSF/1 code is PIC.
14914 lt_prog_compiler_static='-non_shared'
14918 lt_prog_compiler_pic='-KPIC'
14919 lt_prog_compiler_static='-Bstatic'
14920 case $cc_basename in
14921 f77* | f90* | f95*)
14922 lt_prog_compiler_wl='-Qoption ld ';;
14924 lt_prog_compiler_wl='-Wl,';;
14929 lt_prog_compiler_wl='-Qoption ld '
14930 lt_prog_compiler_pic='-PIC'
14931 lt_prog_compiler_static='-Bstatic'
14934 sysv4 | sysv4.2uw2* | sysv4.3*)
14935 lt_prog_compiler_wl='-Wl,'
14936 lt_prog_compiler_pic='-KPIC'
14937 lt_prog_compiler_static='-Bstatic'
14941 if test -d /usr/nec ;then
14942 lt_prog_compiler_pic='-Kconform_pic'
14943 lt_prog_compiler_static='-Bstatic'
14947 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14948 lt_prog_compiler_wl='-Wl,'
14949 lt_prog_compiler_pic='-KPIC'
14950 lt_prog_compiler_static='-Bstatic'
14954 lt_prog_compiler_wl='-Wl,'
14955 lt_prog_compiler_can_build_shared=no
14959 lt_prog_compiler_pic='-pic'
14960 lt_prog_compiler_static='-Bstatic'
14964 lt_prog_compiler_can_build_shared=no
14969 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14970 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14973 # Check to make sure the PIC flag actually works.
14975 if test -n "$lt_prog_compiler_pic"; then
14977 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14978 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14979 if test "${lt_prog_compiler_pic_works+set}" = set; then
14980 echo $ECHO_N "(cached) $ECHO_C" >&6
14982 lt_prog_compiler_pic_works=no
14983 ac_outfile=conftest.$ac_objext
14984 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14985 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14986 # Insert the option either (1) after the last *FLAGS variable, or
14987 # (2) before a word containing "conftest.", or (3) at the end.
14988 # Note that $ac_compile itself does not contain backslashes and begins
14989 # with a dollar sign (not a hyphen), so the echo should work correctly.
14990 # The option is referenced via a variable to avoid confusing sed.
14991 lt_compile=`echo "$ac_compile" | $SED \
14992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14994 -e 's:$: $lt_compiler_flag:'`
14995 (eval echo "\"\$as_me:14995: $lt_compile\"" >&5)
14996 (eval "$lt_compile" 2>conftest.err)
14998 cat conftest.err >&5
14999 echo "$as_me:14999: \$? = $ac_status" >&5
15000 if (exit $ac_status) && test -s "$ac_outfile"; then
15001 # The compiler can only warn and ignore the option if not recognized
15002 # So say no if there are warnings other than the usual output.
15003 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15004 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15005 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15006 lt_prog_compiler_pic_works=yes
15012 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15013 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15015 if test x"$lt_prog_compiler_pic_works" = xyes; then
15016 case $lt_prog_compiler_pic in
15018 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15021 lt_prog_compiler_pic=
15022 lt_prog_compiler_can_build_shared=no
15027 # For platforms which do not support PIC, -DPIC is meaningless:
15029 lt_prog_compiler_pic=
15032 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15037 # Check to make sure the static flag actually works.
15039 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15040 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15041 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15042 if test "${lt_prog_compiler_static_works+set}" = set; then
15043 echo $ECHO_N "(cached) $ECHO_C" >&6
15045 lt_prog_compiler_static_works=no
15046 save_LDFLAGS="$LDFLAGS"
15047 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15048 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15049 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15050 # The linker can only warn and ignore the option if not recognized
15051 # So say no if there are warnings
15052 if test -s conftest.err; then
15053 # Append any errors to the config.log.
15054 cat conftest.err 1>&5
15055 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15056 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15057 if diff conftest.exp conftest.er2 >/dev/null; then
15058 lt_prog_compiler_static_works=yes
15061 lt_prog_compiler_static_works=yes
15065 LDFLAGS="$save_LDFLAGS"
15068 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15069 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15071 if test x"$lt_prog_compiler_static_works" = xyes; then
15074 lt_prog_compiler_static=
15078 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15079 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15080 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15081 echo $ECHO_N "(cached) $ECHO_C" >&6
15083 lt_cv_prog_compiler_c_o=no
15084 $rm -r conftest 2>/dev/null
15088 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15090 lt_compiler_flag="-o out/conftest2.$ac_objext"
15091 # Insert the option either (1) after the last *FLAGS variable, or
15092 # (2) before a word containing "conftest.", or (3) at the end.
15093 # Note that $ac_compile itself does not contain backslashes and begins
15094 # with a dollar sign (not a hyphen), so the echo should work correctly.
15095 lt_compile=`echo "$ac_compile" | $SED \
15096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15098 -e 's:$: $lt_compiler_flag:'`
15099 (eval echo "\"\$as_me:15099: $lt_compile\"" >&5)
15100 (eval "$lt_compile" 2>out/conftest.err)
15102 cat out/conftest.err >&5
15103 echo "$as_me:15103: \$? = $ac_status" >&5
15104 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15106 # The compiler can only warn and ignore the option if not recognized
15107 # So say no if there are warnings
15108 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15109 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15110 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15111 lt_cv_prog_compiler_c_o=yes
15116 # SGI C++ compiler will create directory out/ii_files/ for
15117 # template instantiation
15118 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15119 $rm out/* && rmdir out
15125 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15126 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15129 hard_links="nottested"
15130 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15131 # do not overwrite the value of need_locks provided by the user
15132 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15133 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15136 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15138 ln conftest.a conftest.b 2>&5 || hard_links=no
15139 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15140 { echo "$as_me:$LINENO: result: $hard_links" >&5
15141 echo "${ECHO_T}$hard_links" >&6; }
15142 if test "$hard_links" = no; then
15143 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15144 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15151 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15152 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15155 allow_undefined_flag=
15156 enable_shared_with_static_runtimes=no
15158 archive_expsym_cmds=
15159 old_archive_From_new_cmds=
15160 old_archive_from_expsyms_cmds=
15161 export_dynamic_flag_spec=
15162 whole_archive_flag_spec=
15163 thread_safe_flag_spec=
15164 hardcode_libdir_flag_spec=
15165 hardcode_libdir_flag_spec_ld=
15166 hardcode_libdir_separator=
15168 hardcode_minus_L=no
15169 hardcode_shlibpath_var=unsupported
15170 link_all_deplibs=unknown
15171 hardcode_automatic=no
15173 module_expsym_cmds=
15174 always_export_symbols=no
15175 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15176 # include_expsyms should be a list of space-separated symbols to be *always*
15177 # included in the symbol list
15179 # exclude_expsyms can be an extended regexp of symbols to exclude
15180 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15181 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15182 # as well as any symbol that contains `d'.
15183 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15184 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15185 # platforms (ab)use it in PIC code, but their linkers get confused if
15186 # the symbol is explicitly referenced. Since portable code cannot
15187 # rely on this symbol name, it's probably fine to never include it in
15188 # preloaded symbol tables.
15189 extract_expsyms_cmds=
15190 # Just being paranoid about ensuring that cc_basename is set.
15191 for cc_temp in $compiler""; do
15193 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15194 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15199 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15202 cygwin* | mingw* | pw32*)
15203 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15204 # When not using gcc, we currently assume that we are using
15205 # Microsoft Visual C++.
15206 if test "$GCC" != yes; then
15211 # we just hope/assume this is gcc and not c89 (= MSVC++)
15220 if test "$with_gnu_ld" = yes; then
15221 # If archive_cmds runs LD, not CC, wlarc should be empty
15224 # Set some defaults for GNU ld with shared library support. These
15225 # are reset later if shared libraries are not supported. Putting them
15226 # here allows them to be overridden if necessary.
15227 runpath_var=LD_RUN_PATH
15228 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15229 export_dynamic_flag_spec='${wl}--export-dynamic'
15230 # ancient GNU ld didn't support --whole-archive et. al.
15231 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15232 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15234 whole_archive_flag_spec=
15236 supports_anon_versioning=no
15237 case `$LD -v 2>/dev/null` in
15238 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15239 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15240 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15241 *\ 2.11.*) ;; # other 2.11 versions
15242 *) supports_anon_versioning=yes ;;
15245 # See if GNU ld supports shared libraries.
15247 aix3* | aix4* | aix5*)
15248 # On AIX/PPC, the GNU linker is very broken
15249 if test "$host_cpu" != ia64; then
15253 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15254 *** to be unable to reliably create shared libraries on AIX.
15255 *** Therefore, libtool is disabling shared libraries support. If you
15256 *** really care for shared libraries, you may want to modify your PATH
15257 *** so that a non-GNU linker is found, and then restart.
15264 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)'
15265 hardcode_libdir_flag_spec='-L$libdir'
15266 hardcode_minus_L=yes
15268 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15269 # that the semantics of dynamic libraries on AmigaOS, at least up
15270 # to version 4, is to share data among multiple programs linked
15271 # with the same dynamic library. Since this doesn't match the
15272 # behavior of shared libraries on other platforms, we can't use
15278 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15279 allow_undefined_flag=unsupported
15280 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15281 # support --undefined. This deserves some investigation. FIXME
15282 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15288 cygwin* | mingw* | pw32*)
15289 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15290 # as there is no search path for DLLs.
15291 hardcode_libdir_flag_spec='-L$libdir'
15292 allow_undefined_flag=unsupported
15293 always_export_symbols=no
15294 enable_shared_with_static_runtimes=yes
15295 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15297 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15299 # If the export-symbols file already is a .def file (1st line
15300 # is EXPORTS), use it as is; otherwise, prepend...
15301 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15302 cp $export_symbols $output_objdir/$soname.def;
15304 echo EXPORTS > $output_objdir/$soname.def;
15305 cat $export_symbols >> $output_objdir/$soname.def;
15307 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15315 hardcode_shlibpath_var=no
15316 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15317 export_dynamic_flag_spec='${wl}-E'
15318 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15319 # Instead, shared libraries are loaded at an image base (0x10000000 by
15320 # default) and relocated if they conflict, which is a slow very memory
15321 # consuming and fragmenting process. To avoid this, we pick a random,
15322 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15323 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15324 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15325 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'
15329 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15331 case $cc_basename,$host_cpu in
15332 pgcc*) # Portland Group C compiler
15333 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'
15334 tmp_addflag=' $pic_flag'
15336 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15337 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'
15338 tmp_addflag=' $pic_flag -Mnomain' ;;
15339 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15340 tmp_addflag=' -i_dynamic' ;;
15341 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15342 tmp_addflag=' -i_dynamic -nofor_main' ;;
15343 ifc* | ifort*) # Intel Fortran compiler
15344 tmp_addflag=' -nofor_main' ;;
15346 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15348 if test $supports_anon_versioning = yes; then
15349 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15350 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15351 $echo "local: *; };" >> $output_objdir/$libname.ver~
15352 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15360 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15361 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15365 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15370 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15374 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15375 *** create shared libraries on Solaris systems. Therefore, libtool
15376 *** is disabling shared libraries support. We urge you to upgrade GNU
15377 *** binutils to release 2.9.1 or newer. Another option is to modify
15378 *** your PATH or compiler configuration so that the native linker is
15379 *** used, and then restart.
15382 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15384 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15390 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15391 case `$LD -v 2>&1` in
15392 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15396 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15397 *** reliably create shared libraries on SCO systems. Therefore, libtool
15398 *** is disabling shared libraries support. We urge you to upgrade GNU
15399 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15400 *** your PATH or compiler configuration so that the native linker is
15401 *** used, and then restart.
15406 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15407 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15409 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15418 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15420 hardcode_direct=yes
15421 hardcode_shlibpath_var=no
15425 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15427 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15434 if test "$ld_shlibs" = no; then
15436 hardcode_libdir_flag_spec=
15437 export_dynamic_flag_spec=
15438 whole_archive_flag_spec=
15441 # PORTME fill in a description of your system's linker (not GNU ld)
15444 allow_undefined_flag=unsupported
15445 always_export_symbols=yes
15446 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'
15447 # Note: this linker hardcodes the directories in LIBPATH if there
15448 # are no directories specified by -L.
15449 hardcode_minus_L=yes
15450 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15451 # Neither direct hardcoding nor static linking is supported with a
15453 hardcode_direct=unsupported
15458 if test "$host_cpu" = ia64; then
15459 # On IA64, the linker does run time linking by default, so we don't
15460 # have to do anything special.
15461 aix_use_runtimelinking=no
15462 exp_sym_flag='-Bexport'
15465 # If we're using GNU nm, then we don't want the "-C" option.
15466 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15467 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15468 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'
15470 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'
15472 aix_use_runtimelinking=no
15474 # Test if we are trying to use run time linking or normal
15475 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15476 # need to do runtime linking.
15477 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15478 for ld_flag in $LDFLAGS; do
15479 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15480 aix_use_runtimelinking=yes
15487 exp_sym_flag='-bexport'
15488 no_entry_flag='-bnoentry'
15491 # When large executables or shared objects are built, AIX ld can
15492 # have problems creating the table of contents. If linking a library
15493 # or program results in "error TOC overflow" add -mminimal-toc to
15494 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15495 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15498 hardcode_direct=yes
15499 hardcode_libdir_separator=':'
15500 link_all_deplibs=yes
15502 if test "$GCC" = yes; then
15503 case $host_os in aix4.[012]|aix4.[012].*)
15504 # We only want to do this on AIX 4.2 and lower, the check
15505 # below for broken collect2 doesn't work under 4.3+
15506 collect2name=`${CC} -print-prog-name=collect2`
15507 if test -f "$collect2name" && \
15508 strings "$collect2name" | grep resolve_lib_name >/dev/null
15510 # We have reworked collect2
15511 hardcode_direct=yes
15513 # We have old collect2
15514 hardcode_direct=unsupported
15515 # It fails to find uninstalled libraries when the uninstalled
15516 # path is not listed in the libpath. Setting hardcode_minus_L
15517 # to unsupported forces relinking
15518 hardcode_minus_L=yes
15519 hardcode_libdir_flag_spec='-L$libdir'
15520 hardcode_libdir_separator=
15524 shared_flag='-shared'
15525 if test "$aix_use_runtimelinking" = yes; then
15526 shared_flag="$shared_flag "'${wl}-G'
15530 if test "$host_cpu" = ia64; then
15531 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15532 # chokes on -Wl,-G. The following line is correct:
15535 if test "$aix_use_runtimelinking" = yes; then
15536 shared_flag='${wl}-G'
15538 shared_flag='${wl}-bM:SRE'
15543 # It seems that -bexpall does not export symbols beginning with
15544 # underscore (_), so it is better to generate a list of symbols to export.
15545 always_export_symbols=yes
15546 if test "$aix_use_runtimelinking" = yes; then
15547 # Warning - without using the other runtime loading flags (-brtl),
15548 # -berok will link without error, but may produce a broken library.
15549 allow_undefined_flag='-berok'
15550 # Determine the default libpath from the value encoded in an empty executable.
15551 cat >conftest.$ac_ext <<_ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h. */
15566 rm -f conftest.$ac_objext conftest$ac_exeext
15567 if { (ac_try="$ac_link"
15568 case "(($ac_try" in
15569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15570 *) ac_try_echo=$ac_try;;
15572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15573 (eval "$ac_link") 2>conftest.er1
15575 grep -v '^ *+' conftest.er1 >conftest.err
15577 cat conftest.err >&5
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); } &&
15580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15581 { (case "(($ac_try" in
15582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15583 *) ac_try_echo=$ac_try;;
15585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15586 (eval "$ac_try") 2>&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; } &&
15590 { ac_try='test -s conftest$ac_exeext'
15591 { (case "(($ac_try" in
15592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15593 *) ac_try_echo=$ac_try;;
15595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15596 (eval "$ac_try") 2>&5
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); }; }; then
15601 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15603 # Check for a 64-bit object if we didn't find anything.
15604 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; }
15607 echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15613 rm -f core conftest.err conftest.$ac_objext \
15614 conftest$ac_exeext conftest.$ac_ext
15615 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15617 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15618 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"
15620 if test "$host_cpu" = ia64; then
15621 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15622 allow_undefined_flag="-z nodefs"
15623 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"
15625 # Determine the default libpath from the value encoded in an empty executable.
15626 cat >conftest.$ac_ext <<_ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h. */
15641 rm -f conftest.$ac_objext conftest$ac_exeext
15642 if { (ac_try="$ac_link"
15643 case "(($ac_try" in
15644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645 *) ac_try_echo=$ac_try;;
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648 (eval "$ac_link") 2>conftest.er1
15650 grep -v '^ *+' conftest.er1 >conftest.err
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } &&
15655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15656 { (case "(($ac_try" in
15657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658 *) ac_try_echo=$ac_try;;
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661 (eval "$ac_try") 2>&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }; } &&
15665 { ac_try='test -s conftest$ac_exeext'
15666 { (case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671 (eval "$ac_try") 2>&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; }; then
15676 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15678 # Check for a 64-bit object if we didn't find anything.
15679 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; }
15682 echo "$as_me: failed program was:" >&5
15683 sed 's/^/| /' conftest.$ac_ext >&5
15688 rm -f core conftest.err conftest.$ac_objext \
15689 conftest$ac_exeext conftest.$ac_ext
15690 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15692 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15693 # Warning - without using the other run time loading flags,
15694 # -berok will link without error, but may produce a broken library.
15695 no_undefined_flag=' ${wl}-bernotok'
15696 allow_undefined_flag=' ${wl}-berok'
15697 # Exported symbols can be pulled into shared objects from archives
15698 whole_archive_flag_spec='$convenience'
15699 archive_cmds_need_lc=yes
15700 # This is similar to how AIX traditionally builds its shared libraries.
15701 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'
15707 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)'
15708 hardcode_libdir_flag_spec='-L$libdir'
15709 hardcode_minus_L=yes
15710 # see comment about different semantics on the GNU ld section
15715 export_dynamic_flag_spec=-rdynamic
15718 cygwin* | mingw* | pw32*)
15719 # When not using gcc, we currently assume that we are using
15720 # Microsoft Visual C++.
15721 # hardcode_libdir_flag_spec is actually meaningless, as there is
15722 # no search path for DLLs.
15723 hardcode_libdir_flag_spec=' '
15724 allow_undefined_flag=unsupported
15725 # Tell ltmain to make .lib files, not .a files.
15727 # Tell ltmain to make .dll files, not .so files.
15729 # FIXME: Setting linknames here is a bad hack.
15730 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15731 # The linker will automatically build a .lib file if we build a DLL.
15732 old_archive_From_new_cmds='true'
15733 # FIXME: Should let the user specify the lib program.
15734 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15735 fix_srcfile_path='`cygpath -w "$srcfile"`'
15736 enable_shared_with_static_runtimes=yes
15739 darwin* | rhapsody*)
15741 rhapsody* | darwin1.[012])
15742 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15745 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15746 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15748 case ${MACOSX_DEPLOYMENT_TARGET} in
15750 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15753 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15759 archive_cmds_need_lc=no
15761 hardcode_automatic=yes
15762 hardcode_shlibpath_var=unsupported
15763 whole_archive_flag_spec=''
15764 link_all_deplibs=yes
15765 if test "$GCC" = yes ; then
15766 output_verbose_link_cmd='echo'
15767 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15768 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15769 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15770 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}'
15771 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}'
15773 case $cc_basename in
15775 output_verbose_link_cmd='echo'
15776 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15777 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15778 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15779 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}'
15780 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}'
15790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15791 hardcode_libdir_flag_spec='-L$libdir'
15792 hardcode_shlibpath_var=no
15799 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15800 # support. Future versions do this automatically, but an explicit c++rt0.o
15801 # does not break anything, and helps significantly (at the cost of a little
15804 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15805 hardcode_libdir_flag_spec='-R$libdir'
15806 hardcode_direct=yes
15807 hardcode_shlibpath_var=no
15810 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15812 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15813 hardcode_direct=yes
15814 hardcode_minus_L=yes
15815 hardcode_shlibpath_var=no
15818 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15819 freebsd* | kfreebsd*-gnu | dragonfly*)
15820 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15821 hardcode_libdir_flag_spec='-R$libdir'
15822 hardcode_direct=yes
15823 hardcode_shlibpath_var=no
15827 if test "$GCC" = yes; then
15828 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'
15830 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'
15832 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15833 hardcode_libdir_separator=:
15834 hardcode_direct=yes
15836 # hardcode_minus_L: Not really in the search PATH,
15837 # but as the default location of the library.
15838 hardcode_minus_L=yes
15839 export_dynamic_flag_spec='${wl}-E'
15843 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15844 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15846 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15848 if test "$with_gnu_ld" = no; then
15849 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15850 hardcode_libdir_separator=:
15852 hardcode_direct=yes
15853 export_dynamic_flag_spec='${wl}-E'
15855 # hardcode_minus_L: Not really in the search PATH,
15856 # but as the default location of the library.
15857 hardcode_minus_L=yes
15862 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15865 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15868 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15871 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15877 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15880 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15883 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15887 if test "$with_gnu_ld" = no; then
15888 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15889 hardcode_libdir_separator=:
15893 hardcode_libdir_flag_spec_ld='+b $libdir'
15895 hardcode_shlibpath_var=no
15898 hardcode_direct=yes
15899 export_dynamic_flag_spec='${wl}-E'
15901 # hardcode_minus_L: Not really in the search PATH,
15902 # but as the default location of the library.
15903 hardcode_minus_L=yes
15909 irix5* | irix6* | nonstopux*)
15910 if test "$GCC" = yes; then
15911 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'
15913 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'
15914 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15916 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15917 hardcode_libdir_separator=:
15918 link_all_deplibs=yes
15922 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15923 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15925 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15927 hardcode_libdir_flag_spec='-R$libdir'
15928 hardcode_direct=yes
15929 hardcode_shlibpath_var=no
15933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15934 hardcode_direct=yes
15935 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15936 hardcode_libdir_separator=:
15937 hardcode_shlibpath_var=no
15941 hardcode_direct=yes
15942 hardcode_shlibpath_var=no
15943 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15944 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15945 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15946 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15947 export_dynamic_flag_spec='${wl}-E'
15950 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15952 hardcode_libdir_flag_spec='-R$libdir'
15955 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15956 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15963 hardcode_libdir_flag_spec='-L$libdir'
15964 hardcode_minus_L=yes
15965 allow_undefined_flag=unsupported
15966 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'
15967 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15971 if test "$GCC" = yes; then
15972 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15973 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'
15975 allow_undefined_flag=' -expect_unresolved \*'
15976 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'
15978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15979 hardcode_libdir_separator=:
15982 osf4* | osf5*) # as osf3* with the addition of -msym flag
15983 if test "$GCC" = yes; then
15984 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15985 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'
15986 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15988 allow_undefined_flag=' -expect_unresolved \*'
15989 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'
15990 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15991 $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'
15993 # Both c and cxx compiler support -rpath directly
15994 hardcode_libdir_flag_spec='-rpath $libdir'
15996 hardcode_libdir_separator=:
16000 no_undefined_flag=' -z text'
16001 if test "$GCC" = yes; then
16003 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16004 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16005 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16008 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16009 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16010 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16012 hardcode_libdir_flag_spec='-R$libdir'
16013 hardcode_shlibpath_var=no
16015 solaris2.[0-5] | solaris2.[0-5].*) ;;
16017 # The compiler driver will combine linker options so we
16018 # cannot just pass the convience library names through
16019 # without $wl, iff we do not link with $LD.
16020 # Luckily, gcc supports the same syntax we need for Sun Studio.
16021 # Supported since Solaris 2.6 (maybe 2.5.1?)
16024 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16026 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' ;;
16029 link_all_deplibs=yes
16033 if test "x$host_vendor" = xsequent; then
16034 # Use $CC to link under sequent, because it throws in some extra .o
16035 # files that make .init and .fini sections work.
16036 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16038 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16040 hardcode_libdir_flag_spec='-L$libdir'
16041 hardcode_direct=yes
16042 hardcode_minus_L=yes
16043 hardcode_shlibpath_var=no
16047 case $host_vendor in
16049 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16050 hardcode_direct=yes # is this really true???
16053 ## LD is ld it makes a PLAMLIB
16054 ## CC just makes a GrossModule.
16055 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16056 reload_cmds='$CC -r -o $output$reload_objs'
16060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16061 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16064 runpath_var='LD_RUN_PATH'
16065 hardcode_shlibpath_var=no
16069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16070 hardcode_shlibpath_var=no
16071 export_dynamic_flag_spec='-Bexport'
16075 if test -d /usr/nec; then
16076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16077 hardcode_shlibpath_var=no
16078 runpath_var=LD_RUN_PATH
16079 hardcode_runpath_var=yes
16084 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16085 no_undefined_flag='${wl}-z,text'
16086 archive_cmds_need_lc=no
16087 hardcode_shlibpath_var=no
16088 runpath_var='LD_RUN_PATH'
16090 if test "$GCC" = yes; then
16091 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16092 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16094 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16095 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16099 sysv5* | sco3.2v5* | sco5v6*)
16100 # Note: We can NOT use -z defs as we might desire, because we do not
16101 # link with -lc, and that would cause any symbols used from libc to
16102 # always be unresolved, which means just about no library would
16103 # ever link correctly. If we're not using GNU ld we use -z text
16104 # though, which does catch some bad symbols but isn't as heavy-handed
16106 no_undefined_flag='${wl}-z,text'
16107 allow_undefined_flag='${wl}-z,nodefs'
16108 archive_cmds_need_lc=no
16109 hardcode_shlibpath_var=no
16110 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16111 hardcode_libdir_separator=':'
16112 link_all_deplibs=yes
16113 export_dynamic_flag_spec='${wl}-Bexport'
16114 runpath_var='LD_RUN_PATH'
16116 if test "$GCC" = yes; then
16117 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16118 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16120 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16121 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16127 hardcode_libdir_flag_spec='-L$libdir'
16128 hardcode_shlibpath_var=no
16137 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16138 echo "${ECHO_T}$ld_shlibs" >&6; }
16139 test "$ld_shlibs" = no && can_build_shared=no
16142 # Do we need to explicitly link libc?
16144 case "x$archive_cmds_need_lc" in
16146 # Assume -lc should be added
16147 archive_cmds_need_lc=yes
16149 if test "$enable_shared" = yes && test "$GCC" = yes; then
16150 case $archive_cmds in
16152 # FIXME: we may have to deal with multi-command sequences.
16155 # Test whether the compiler implicitly links with -lc since on some
16156 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16157 # to ld, don't add -lc before -lgcc.
16158 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16159 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16161 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16164 (eval $ac_compile) 2>&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } 2>conftest.err; then
16170 libobjs=conftest.$ac_objext
16172 wl=$lt_prog_compiler_wl
16173 pic_flag=$lt_prog_compiler_pic
16179 lt_save_allow_undefined_flag=$allow_undefined_flag
16180 allow_undefined_flag=
16181 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16182 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }
16187 archive_cmds_need_lc=no
16189 archive_cmds_need_lc=yes
16191 allow_undefined_flag=$lt_save_allow_undefined_flag
16193 cat conftest.err 1>&5
16196 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16197 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16204 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16205 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16206 library_names_spec=
16207 libname_spec='lib$name'
16211 postuninstall_cmds=
16215 shlibpath_overrides_runpath=unknown
16217 dynamic_linker="$host_os ld.so"
16218 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16219 if test "$GCC" = yes; then
16220 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16221 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16222 # if the path contains ";" then we assume it to be the separator
16223 # otherwise default to the standard path separator (i.e. ":") - it is
16224 # assumed that no part of a normal pathname contains ";" but that should
16225 # okay in the real world where ";" in dirpaths is itself problematic.
16226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16231 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16233 need_lib_prefix=unknown
16234 hardcode_into_libs=no
16236 # when you set need_version to no, make sure it does not cause -set_version
16237 # flags to be left without arguments
16238 need_version=unknown
16243 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16244 shlibpath_var=LIBPATH
16246 # AIX 3 has no versioning support, so we append a major version to the name.
16247 soname_spec='${libname}${release}${shared_ext}$major'
16254 hardcode_into_libs=yes
16255 if test "$host_cpu" = ia64; then
16256 # AIX 5 supports IA64
16257 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16258 shlibpath_var=LD_LIBRARY_PATH
16260 # With GCC up to 2.95.x, collect2 would create an import file
16261 # for dependence libraries. The import file would start with
16262 # the line `#! .'. This would cause the generated library to
16263 # depend on `.', always an invalid library. This was fixed in
16264 # development snapshots of GCC prior to 3.0.
16266 aix4 | aix4.[01] | aix4.[01].*)
16267 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16269 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16272 can_build_shared=no
16276 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16277 # soname into executable. Probably we can add versioning support to
16278 # collect2, so additional links can be useful in future.
16279 if test "$aix_use_runtimelinking" = yes; then
16280 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16281 # instead of lib<name>.a to let people know that these are not
16282 # typical AIX shared libraries.
16283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16285 # We preserve .a as extension for shared libraries through AIX4.2
16286 # and later when we are not doing run time linking.
16287 library_names_spec='${libname}${release}.a $libname.a'
16288 soname_spec='${libname}${release}${shared_ext}$major'
16290 shlibpath_var=LIBPATH
16295 library_names_spec='$libname.ixlibrary $libname.a'
16296 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16297 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'
16301 library_names_spec='${libname}${shared_ext}'
16302 dynamic_linker="$host_os ld.so"
16303 shlibpath_var=LIBRARY_PATH
16309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16310 soname_spec='${libname}${release}${shared_ext}$major'
16311 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16312 shlibpath_var=LD_LIBRARY_PATH
16313 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16314 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16315 # the default ld.so.conf also contains /usr/contrib/lib and
16316 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16317 # libtool to hard-code these into programs
16320 cygwin* | mingw* | pw32*)
16321 version_type=windows
16326 case $GCC,$host_os in
16327 yes,cygwin* | yes,mingw* | yes,pw32*)
16328 library_names_spec='$libname.dll.a'
16329 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16330 postinstall_cmds='base_file=`basename \${file}`~
16331 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16332 dldir=$destdir/`dirname \$dlpath`~
16333 test -d \$dldir || mkdir -p \$dldir~
16334 $install_prog $dir/$dlname \$dldir/$dlname~
16335 chmod a+x \$dldir/$dlname'
16336 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16337 dlpath=$dir/\$dldll~
16339 shlibpath_overrides_runpath=yes
16343 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16344 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16345 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16348 # MinGW DLLs use traditional 'lib' prefix
16349 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16350 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16351 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16352 # It is most probably a Windows format PATH printed by
16353 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16354 # path with ; separators, and with drive letters. We can handle the
16355 # drive letters (cygwin fileutils understands them), so leave them,
16356 # especially as we might pass files found there to a mingw objdump,
16357 # which wouldn't understand a cygwinified path. Ahh.
16358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16364 # pw32 DLLs use 'pw' prefix rather than 'lib'
16365 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16371 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16374 dynamic_linker='Win32 ld.exe'
16375 # FIXME: first we should search . and the directory the executable is in
16379 darwin* | rhapsody*)
16380 dynamic_linker="$host_os dyld"
16381 version_type=darwin
16384 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16385 soname_spec='${libname}${release}${major}$shared_ext'
16386 shlibpath_overrides_runpath=yes
16387 shlibpath_var=DYLD_LIBRARY_PATH
16388 shrext_cmds='.dylib'
16389 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16390 if test "$GCC" = yes; then
16391 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"`
16393 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16395 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16403 soname_spec='${libname}${release}${shared_ext}$major'
16404 shlibpath_var=LD_LIBRARY_PATH
16415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16416 soname_spec='${libname}${release}${shared_ext}$major'
16417 shlibpath_var=LD_LIBRARY_PATH
16418 shlibpath_overrides_runpath=no
16419 hardcode_into_libs=yes
16420 dynamic_linker='GNU ld.so'
16423 freebsd* | dragonfly*)
16424 # DragonFly does not have aout. When/if they implement a new
16425 # versioning mechanism, adjust this.
16426 if test -x /usr/bin/objformat; then
16427 objformat=`/usr/bin/objformat`
16430 freebsd[123]*) objformat=aout ;;
16431 *) objformat=elf ;;
16434 version_type=freebsd-$objformat
16435 case $version_type in
16437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16442 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16446 shlibpath_var=LD_LIBRARY_PATH
16449 shlibpath_overrides_runpath=yes
16451 freebsd3.[01]* | freebsdelf3.[01]*)
16452 shlibpath_overrides_runpath=yes
16453 hardcode_into_libs=yes
16455 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16456 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16457 shlibpath_overrides_runpath=no
16458 hardcode_into_libs=yes
16460 freebsd*) # from 4.6 on
16461 shlibpath_overrides_runpath=yes
16462 hardcode_into_libs=yes
16471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16472 soname_spec='${libname}${release}${shared_ext}$major'
16473 shlibpath_var=LD_LIBRARY_PATH
16474 hardcode_into_libs=yes
16477 hpux9* | hpux10* | hpux11*)
16478 # Give a soname corresponding to the major version so that dld.sl refuses to
16479 # link against other versions.
16486 hardcode_into_libs=yes
16487 dynamic_linker="$host_os dld.so"
16488 shlibpath_var=LD_LIBRARY_PATH
16489 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16491 soname_spec='${libname}${release}${shared_ext}$major'
16492 if test "X$HPUX_IA64_MODE" = X32; then
16493 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16495 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16497 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16501 hardcode_into_libs=yes
16502 dynamic_linker="$host_os dld.sl"
16503 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16504 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16506 soname_spec='${libname}${release}${shared_ext}$major'
16507 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16508 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16512 dynamic_linker="$host_os dld.sl"
16513 shlibpath_var=SHLIB_PATH
16514 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16516 soname_spec='${libname}${release}${shared_ext}$major'
16519 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16520 postinstall_cmds='chmod 555 $lib'
16527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16528 soname_spec='${libname}${release}${shared_ext}$major'
16529 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16530 shlibpath_var=LD_LIBRARY_PATH
16531 shlibpath_overrides_runpath=no
16532 hardcode_into_libs=yes
16535 irix5* | irix6* | nonstopux*)
16537 nonstopux*) version_type=nonstopux ;;
16539 if test "$lt_cv_prog_gnu_ld" = yes; then
16547 soname_spec='${libname}${release}${shared_ext}$major'
16548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16550 irix5* | nonstopux*)
16551 libsuff= shlibsuff=
16554 case $LD in # libtool.m4 will add one of these switches to LD
16555 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16556 libsuff= shlibsuff= libmagic=32-bit;;
16557 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16558 libsuff=32 shlibsuff=N32 libmagic=N32;;
16559 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16560 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16561 *) libsuff= shlibsuff= libmagic=never-match;;
16565 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16566 shlibpath_overrides_runpath=no
16567 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16568 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16569 hardcode_into_libs=yes
16572 # No shared lib support for Linux oldld, aout, or coff.
16573 linux*oldld* | linux*aout* | linux*coff*)
16577 # This must be Linux ELF.
16582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16583 soname_spec='${libname}${release}${shared_ext}$major'
16584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16585 shlibpath_var=LD_LIBRARY_PATH
16586 shlibpath_overrides_runpath=no
16587 # This implies no fast_install, which is unacceptable.
16588 # Some rework will be needed to allow for fast_install
16589 # before this can be enabled.
16590 hardcode_into_libs=yes
16592 # Append ld.so.conf contents to the search path
16593 if test -f /etc/ld.so.conf; then
16594 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' ' '`
16595 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16598 # We used to test for /lib/ld.so.1 and disable shared libraries on
16599 # powerpc, because MkLinux only supported shared libraries with the
16600 # GNU dynamic linker. Since this was broken with cross compilers,
16601 # most powerpc-linux boxes support dynamic linking these days and
16602 # people can always --disable-shared, the test was removed, and we
16603 # assume the GNU/Linux dynamic linker is in use.
16604 dynamic_linker='GNU/Linux ld.so'
16611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16612 soname_spec='${libname}${release}${shared_ext}$major'
16613 shlibpath_var=LD_LIBRARY_PATH
16614 shlibpath_overrides_runpath=no
16615 hardcode_into_libs=yes
16616 dynamic_linker='GNU ld.so'
16623 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16626 dynamic_linker='NetBSD (a.out) ld.so'
16628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16629 soname_spec='${libname}${release}${shared_ext}$major'
16630 dynamic_linker='NetBSD ld.elf_so'
16632 shlibpath_var=LD_LIBRARY_PATH
16633 shlibpath_overrides_runpath=yes
16634 hardcode_into_libs=yes
16639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16640 shlibpath_var=LD_LIBRARY_PATH
16641 shlibpath_overrides_runpath=yes
16648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16649 soname_spec='${libname}${release}${shared_ext}$major'
16650 shlibpath_var=LD_LIBRARY_PATH
16651 shlibpath_overrides_runpath=yes
16656 sys_lib_dlsearch_path_spec="/usr/lib"
16658 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16660 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16661 *) need_version=no ;;
16663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16665 shlibpath_var=LD_LIBRARY_PATH
16666 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16668 openbsd2.[89] | openbsd2.[89].*)
16669 shlibpath_overrides_runpath=no
16672 shlibpath_overrides_runpath=yes
16676 shlibpath_overrides_runpath=yes
16681 libname_spec='$name'
16684 library_names_spec='$libname${shared_ext} $libname.a'
16685 dynamic_linker='OS/2 ld.exe'
16686 shlibpath_var=LIBPATH
16689 osf3* | osf4* | osf5*)
16693 soname_spec='${libname}${release}${shared_ext}$major'
16694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16695 shlibpath_var=LD_LIBRARY_PATH
16696 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16697 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16705 soname_spec='${libname}${release}${shared_ext}$major'
16706 shlibpath_var=LD_LIBRARY_PATH
16707 shlibpath_overrides_runpath=yes
16708 hardcode_into_libs=yes
16709 # ldd complains unless libraries are executable
16710 postinstall_cmds='chmod +x $lib'
16715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16716 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16717 shlibpath_var=LD_LIBRARY_PATH
16718 shlibpath_overrides_runpath=yes
16719 if test "$with_gnu_ld" = yes; then
16727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16728 soname_spec='${libname}${release}${shared_ext}$major'
16729 shlibpath_var=LD_LIBRARY_PATH
16730 case $host_vendor in
16732 shlibpath_overrides_runpath=no
16734 export_dynamic_flag_spec='${wl}-Blargedynsym'
16735 runpath_var=LD_RUN_PATH
16743 shlibpath_overrides_runpath=no
16744 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16750 if test -d /usr/nec ;then
16752 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16753 soname_spec='$libname${shared_ext}.$major'
16754 shlibpath_var=LD_LIBRARY_PATH
16758 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16759 version_type=freebsd-elf
16762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16763 soname_spec='${libname}${release}${shared_ext}$major'
16764 shlibpath_var=LD_LIBRARY_PATH
16765 hardcode_into_libs=yes
16766 if test "$with_gnu_ld" = yes; then
16767 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16768 shlibpath_overrides_runpath=no
16770 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16771 shlibpath_overrides_runpath=yes
16774 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16778 sys_lib_dlsearch_path_spec='/usr/lib'
16783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16784 soname_spec='${libname}${release}${shared_ext}$major'
16785 shlibpath_var=LD_LIBRARY_PATH
16792 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16793 echo "${ECHO_T}$dynamic_linker" >&6; }
16794 test "$dynamic_linker" = no && can_build_shared=no
16796 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16797 if test "$GCC" = yes; then
16798 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16801 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16802 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16804 if test -n "$hardcode_libdir_flag_spec" || \
16805 test -n "$runpath_var" || \
16806 test "X$hardcode_automatic" = "Xyes" ; then
16808 # We can hardcode non-existant directories.
16809 if test "$hardcode_direct" != no &&
16810 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16811 # have to relink, otherwise we might link with an installed library
16812 # when we should be linking with a yet-to-be-installed one
16813 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16814 test "$hardcode_minus_L" != no; then
16815 # Linking always hardcodes the temporary library directory.
16816 hardcode_action=relink
16818 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16819 hardcode_action=immediate
16822 # We cannot hardcode anything, or else we can only hardcode existing
16824 hardcode_action=unsupported
16826 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16827 echo "${ECHO_T}$hardcode_action" >&6; }
16829 if test "$hardcode_action" = relink; then
16830 # Fast installation is not supported
16831 enable_fast_install=no
16832 elif test "$shlibpath_overrides_runpath" = yes ||
16833 test "$enable_shared" = no; then
16834 # Fast installation is not necessary
16835 enable_fast_install=needless
16840 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16841 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16842 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16843 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16844 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16845 { echo "$as_me:$LINENO: result: yes" >&5
16846 echo "${ECHO_T}yes" >&6; }
16848 # FIXME - insert some real tests, host_os isn't really good enough
16851 if test -n "$STRIP" ; then
16852 striplib="$STRIP -x"
16853 { echo "$as_me:$LINENO: result: yes" >&5
16854 echo "${ECHO_T}yes" >&6; }
16856 { echo "$as_me:$LINENO: result: no" >&5
16857 echo "${ECHO_T}no" >&6; }
16861 { echo "$as_me:$LINENO: result: no" >&5
16862 echo "${ECHO_T}no" >&6; }
16867 if test "x$enable_dlopen" != xyes; then
16868 enable_dlopen=unknown
16869 enable_dlopen_self=unknown
16870 enable_dlopen_self_static=unknown
16877 lt_cv_dlopen="load_add_on"
16879 lt_cv_dlopen_self=yes
16883 lt_cv_dlopen="LoadLibrary"
16888 lt_cv_dlopen="dlopen"
16893 # if libdl is installed we need to link against it
16894 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16895 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16896 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16897 echo $ECHO_N "(cached) $ECHO_C" >&6
16899 ac_check_lib_save_LIBS=$LIBS
16901 cat >conftest.$ac_ext <<_ACEOF
16904 cat confdefs.h >>conftest.$ac_ext
16905 cat >>conftest.$ac_ext <<_ACEOF
16906 /* end confdefs.h. */
16908 /* Override any GCC internal prototype to avoid an error.
16909 Use char because int might match the return type of a GCC
16910 builtin and then its argument prototype would still apply. */
16923 rm -f conftest.$ac_objext conftest$ac_exeext
16924 if { (ac_try="$ac_link"
16925 case "(($ac_try" in
16926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927 *) ac_try_echo=$ac_try;;
16929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930 (eval "$ac_link") 2>conftest.er1
16932 grep -v '^ *+' conftest.er1 >conftest.err
16934 cat conftest.err >&5
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); } &&
16937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16938 { (case "(($ac_try" in
16939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16940 *) ac_try_echo=$ac_try;;
16942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16943 (eval "$ac_try") 2>&5
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; } &&
16947 { ac_try='test -s conftest$ac_exeext'
16948 { (case "(($ac_try" in
16949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16950 *) ac_try_echo=$ac_try;;
16952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16953 (eval "$ac_try") 2>&5
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; }; then
16957 ac_cv_lib_dl_dlopen=yes
16959 echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16962 ac_cv_lib_dl_dlopen=no
16965 rm -f core conftest.err conftest.$ac_objext \
16966 conftest$ac_exeext conftest.$ac_ext
16967 LIBS=$ac_check_lib_save_LIBS
16969 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16970 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16971 if test $ac_cv_lib_dl_dlopen = yes; then
16972 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16975 lt_cv_dlopen="dyld"
16977 lt_cv_dlopen_self=yes
16984 { echo "$as_me:$LINENO: checking for shl_load" >&5
16985 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16986 if test "${ac_cv_func_shl_load+set}" = set; then
16987 echo $ECHO_N "(cached) $ECHO_C" >&6
16989 cat >conftest.$ac_ext <<_ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h. */
16995 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16997 #define shl_load innocuous_shl_load
16999 /* System header to define __stub macros and hopefully few prototypes,
17000 which can conflict with char shl_load (); below.
17001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17002 <limits.h> exists even on freestanding compilers. */
17005 # include <limits.h>
17007 # include <assert.h>
17012 /* Override any GCC internal prototype to avoid an error.
17013 Use char because int might match the return type of a GCC
17014 builtin and then its argument prototype would still apply. */
17019 /* The GNU C library defines this for functions which it implements
17020 to always fail with ENOSYS. Some functions are actually named
17021 something starting with __ and the normal name is an alias. */
17022 #if defined __stub_shl_load || defined __stub___shl_load
17029 return shl_load ();
17034 rm -f conftest.$ac_objext conftest$ac_exeext
17035 if { (ac_try="$ac_link"
17036 case "(($ac_try" in
17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038 *) ac_try_echo=$ac_try;;
17040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041 (eval "$ac_link") 2>conftest.er1
17043 grep -v '^ *+' conftest.er1 >conftest.err
17045 cat conftest.err >&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); } &&
17048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17049 { (case "(($ac_try" in
17050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051 *) ac_try_echo=$ac_try;;
17053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17054 (eval "$ac_try") 2>&5
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); }; } &&
17058 { ac_try='test -s conftest$ac_exeext'
17059 { (case "(($ac_try" in
17060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17061 *) ac_try_echo=$ac_try;;
17063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17064 (eval "$ac_try") 2>&5
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); }; }; then
17068 ac_cv_func_shl_load=yes
17070 echo "$as_me: failed program was:" >&5
17071 sed 's/^/| /' conftest.$ac_ext >&5
17073 ac_cv_func_shl_load=no
17076 rm -f core conftest.err conftest.$ac_objext \
17077 conftest$ac_exeext conftest.$ac_ext
17079 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17080 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17081 if test $ac_cv_func_shl_load = yes; then
17082 lt_cv_dlopen="shl_load"
17084 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17085 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17086 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17087 echo $ECHO_N "(cached) $ECHO_C" >&6
17089 ac_check_lib_save_LIBS=$LIBS
17091 cat >conftest.$ac_ext <<_ACEOF
17094 cat confdefs.h >>conftest.$ac_ext
17095 cat >>conftest.$ac_ext <<_ACEOF
17096 /* end confdefs.h. */
17098 /* Override any GCC internal prototype to avoid an error.
17099 Use char because int might match the return type of a GCC
17100 builtin and then its argument prototype would still apply. */
17108 return shl_load ();
17113 rm -f conftest.$ac_objext conftest$ac_exeext
17114 if { (ac_try="$ac_link"
17115 case "(($ac_try" in
17116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120 (eval "$ac_link") 2>conftest.er1
17122 grep -v '^ *+' conftest.er1 >conftest.err
17124 cat conftest.err >&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); } &&
17127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17128 { (case "(($ac_try" in
17129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130 *) ac_try_echo=$ac_try;;
17132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17133 (eval "$ac_try") 2>&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; } &&
17137 { ac_try='test -s conftest$ac_exeext'
17138 { (case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143 (eval "$ac_try") 2>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 ac_cv_lib_dld_shl_load=yes
17149 echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17152 ac_cv_lib_dld_shl_load=no
17155 rm -f core conftest.err conftest.$ac_objext \
17156 conftest$ac_exeext conftest.$ac_ext
17157 LIBS=$ac_check_lib_save_LIBS
17159 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17160 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17161 if test $ac_cv_lib_dld_shl_load = yes; then
17162 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17164 { echo "$as_me:$LINENO: checking for dlopen" >&5
17165 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17166 if test "${ac_cv_func_dlopen+set}" = set; then
17167 echo $ECHO_N "(cached) $ECHO_C" >&6
17169 cat >conftest.$ac_ext <<_ACEOF
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h. */
17175 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17177 #define dlopen innocuous_dlopen
17179 /* System header to define __stub macros and hopefully few prototypes,
17180 which can conflict with char dlopen (); below.
17181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17182 <limits.h> exists even on freestanding compilers. */
17185 # include <limits.h>
17187 # include <assert.h>
17192 /* Override any GCC internal prototype to avoid an error.
17193 Use char because int might match the return type of a GCC
17194 builtin and then its argument prototype would still apply. */
17199 /* The GNU C library defines this for functions which it implements
17200 to always fail with ENOSYS. Some functions are actually named
17201 something starting with __ and the normal name is an alias. */
17202 #if defined __stub_dlopen || defined __stub___dlopen
17214 rm -f conftest.$ac_objext conftest$ac_exeext
17215 if { (ac_try="$ac_link"
17216 case "(($ac_try" in
17217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17218 *) ac_try_echo=$ac_try;;
17220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17221 (eval "$ac_link") 2>conftest.er1
17223 grep -v '^ *+' conftest.er1 >conftest.err
17225 cat conftest.err >&5
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); } &&
17228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17229 { (case "(($ac_try" in
17230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231 *) ac_try_echo=$ac_try;;
17233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234 (eval "$ac_try") 2>&5
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); }; } &&
17238 { ac_try='test -s conftest$ac_exeext'
17239 { (case "(($ac_try" in
17240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17241 *) ac_try_echo=$ac_try;;
17243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17244 (eval "$ac_try") 2>&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); }; }; then
17248 ac_cv_func_dlopen=yes
17250 echo "$as_me: failed program was:" >&5
17251 sed 's/^/| /' conftest.$ac_ext >&5
17253 ac_cv_func_dlopen=no
17256 rm -f core conftest.err conftest.$ac_objext \
17257 conftest$ac_exeext conftest.$ac_ext
17259 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17260 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17261 if test $ac_cv_func_dlopen = yes; then
17262 lt_cv_dlopen="dlopen"
17264 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17265 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17266 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17269 ac_check_lib_save_LIBS=$LIBS
17271 cat >conftest.$ac_ext <<_ACEOF
17274 cat confdefs.h >>conftest.$ac_ext
17275 cat >>conftest.$ac_ext <<_ACEOF
17276 /* end confdefs.h. */
17278 /* Override any GCC internal prototype to avoid an error.
17279 Use char because int might match the return type of a GCC
17280 builtin and then its argument prototype would still apply. */
17293 rm -f conftest.$ac_objext conftest$ac_exeext
17294 if { (ac_try="$ac_link"
17295 case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_link") 2>conftest.er1
17302 grep -v '^ *+' conftest.er1 >conftest.err
17304 cat conftest.err >&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } &&
17307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17308 { (case "(($ac_try" in
17309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17310 *) ac_try_echo=$ac_try;;
17312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17313 (eval "$ac_try") 2>&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); }; } &&
17317 { ac_try='test -s conftest$ac_exeext'
17318 { (case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_try") 2>&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; }; then
17327 ac_cv_lib_dl_dlopen=yes
17329 echo "$as_me: failed program was:" >&5
17330 sed 's/^/| /' conftest.$ac_ext >&5
17332 ac_cv_lib_dl_dlopen=no
17335 rm -f core conftest.err conftest.$ac_objext \
17336 conftest$ac_exeext conftest.$ac_ext
17337 LIBS=$ac_check_lib_save_LIBS
17339 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17340 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17341 if test $ac_cv_lib_dl_dlopen = yes; then
17342 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17344 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17345 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17346 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17347 echo $ECHO_N "(cached) $ECHO_C" >&6
17349 ac_check_lib_save_LIBS=$LIBS
17350 LIBS="-lsvld $LIBS"
17351 cat >conftest.$ac_ext <<_ACEOF
17354 cat confdefs.h >>conftest.$ac_ext
17355 cat >>conftest.$ac_ext <<_ACEOF
17356 /* end confdefs.h. */
17358 /* Override any GCC internal prototype to avoid an error.
17359 Use char because int might match the return type of a GCC
17360 builtin and then its argument prototype would still apply. */
17373 rm -f conftest.$ac_objext conftest$ac_exeext
17374 if { (ac_try="$ac_link"
17375 case "(($ac_try" in
17376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377 *) ac_try_echo=$ac_try;;
17379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380 (eval "$ac_link") 2>conftest.er1
17382 grep -v '^ *+' conftest.er1 >conftest.err
17384 cat conftest.err >&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); } &&
17387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17388 { (case "(($ac_try" in
17389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17390 *) ac_try_echo=$ac_try;;
17392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17393 (eval "$ac_try") 2>&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); }; } &&
17397 { ac_try='test -s conftest$ac_exeext'
17398 { (case "(($ac_try" in
17399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17400 *) ac_try_echo=$ac_try;;
17402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17403 (eval "$ac_try") 2>&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; }; then
17407 ac_cv_lib_svld_dlopen=yes
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17412 ac_cv_lib_svld_dlopen=no
17415 rm -f core conftest.err conftest.$ac_objext \
17416 conftest$ac_exeext conftest.$ac_ext
17417 LIBS=$ac_check_lib_save_LIBS
17419 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17420 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17421 if test $ac_cv_lib_svld_dlopen = yes; then
17422 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17424 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17425 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17426 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17427 echo $ECHO_N "(cached) $ECHO_C" >&6
17429 ac_check_lib_save_LIBS=$LIBS
17431 cat >conftest.$ac_ext <<_ACEOF
17434 cat confdefs.h >>conftest.$ac_ext
17435 cat >>conftest.$ac_ext <<_ACEOF
17436 /* end confdefs.h. */
17438 /* Override any GCC internal prototype to avoid an error.
17439 Use char because int might match the return type of a GCC
17440 builtin and then its argument prototype would still apply. */
17448 return dld_link ();
17453 rm -f conftest.$ac_objext conftest$ac_exeext
17454 if { (ac_try="$ac_link"
17455 case "(($ac_try" in
17456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17457 *) ac_try_echo=$ac_try;;
17459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17460 (eval "$ac_link") 2>conftest.er1
17462 grep -v '^ *+' conftest.er1 >conftest.err
17464 cat conftest.err >&5
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); } &&
17467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17468 { (case "(($ac_try" in
17469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470 *) ac_try_echo=$ac_try;;
17472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473 (eval "$ac_try") 2>&5
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; } &&
17477 { ac_try='test -s conftest$ac_exeext'
17478 { (case "(($ac_try" in
17479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480 *) ac_try_echo=$ac_try;;
17482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483 (eval "$ac_try") 2>&5
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; }; then
17487 ac_cv_lib_dld_dld_link=yes
17489 echo "$as_me: failed program was:" >&5
17490 sed 's/^/| /' conftest.$ac_ext >&5
17492 ac_cv_lib_dld_dld_link=no
17495 rm -f core conftest.err conftest.$ac_objext \
17496 conftest$ac_exeext conftest.$ac_ext
17497 LIBS=$ac_check_lib_save_LIBS
17499 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17500 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17501 if test $ac_cv_lib_dld_dld_link = yes; then
17502 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17523 if test "x$lt_cv_dlopen" != xno; then
17529 case $lt_cv_dlopen in
17531 save_CPPFLAGS="$CPPFLAGS"
17532 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17534 save_LDFLAGS="$LDFLAGS"
17535 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17538 LIBS="$lt_cv_dlopen_libs $LIBS"
17540 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17541 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17542 if test "${lt_cv_dlopen_self+set}" = set; then
17543 echo $ECHO_N "(cached) $ECHO_C" >&6
17545 if test "$cross_compiling" = yes; then :
17546 lt_cv_dlopen_self=cross
17548 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17549 lt_status=$lt_dlunknown
17550 cat > conftest.$ac_ext <<EOF
17551 #line 17551 "configure"
17552 #include "confdefs.h"
17561 # define LT_DLGLOBAL RTLD_GLOBAL
17564 # define LT_DLGLOBAL DL_GLOBAL
17566 # define LT_DLGLOBAL 0
17570 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17571 find out it does not work in some platform. */
17572 #ifndef LT_DLLAZY_OR_NOW
17574 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17577 # define LT_DLLAZY_OR_NOW DL_LAZY
17580 # define LT_DLLAZY_OR_NOW RTLD_NOW
17583 # define LT_DLLAZY_OR_NOW DL_NOW
17585 # define LT_DLLAZY_OR_NOW 0
17593 extern "C" void exit (int);
17596 void fnord() { int i=42;}
17599 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17600 int status = $lt_dlunknown;
17604 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17605 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17606 /* dlclose (self); */
17614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17615 (eval $ac_link) 2>&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17619 (./conftest; exit; ) >&5 2>/dev/null
17621 case x$lt_status in
17622 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17623 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17624 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17627 # compilation failed
17628 lt_cv_dlopen_self=no
17635 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17636 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17638 if test "x$lt_cv_dlopen_self" = xyes; then
17639 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17640 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17641 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17642 if test "${lt_cv_dlopen_self_static+set}" = set; then
17643 echo $ECHO_N "(cached) $ECHO_C" >&6
17645 if test "$cross_compiling" = yes; then :
17646 lt_cv_dlopen_self_static=cross
17648 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17649 lt_status=$lt_dlunknown
17650 cat > conftest.$ac_ext <<EOF
17651 #line 17651 "configure"
17652 #include "confdefs.h"
17661 # define LT_DLGLOBAL RTLD_GLOBAL
17664 # define LT_DLGLOBAL DL_GLOBAL
17666 # define LT_DLGLOBAL 0
17670 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17671 find out it does not work in some platform. */
17672 #ifndef LT_DLLAZY_OR_NOW
17674 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17677 # define LT_DLLAZY_OR_NOW DL_LAZY
17680 # define LT_DLLAZY_OR_NOW RTLD_NOW
17683 # define LT_DLLAZY_OR_NOW DL_NOW
17685 # define LT_DLLAZY_OR_NOW 0
17693 extern "C" void exit (int);
17696 void fnord() { int i=42;}
17699 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17700 int status = $lt_dlunknown;
17704 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17705 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17706 /* dlclose (self); */
17714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17715 (eval $ac_link) 2>&5
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17719 (./conftest; exit; ) >&5 2>/dev/null
17721 case x$lt_status in
17722 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17723 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17724 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17727 # compilation failed
17728 lt_cv_dlopen_self_static=no
17735 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17736 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17739 CPPFLAGS="$save_CPPFLAGS"
17740 LDFLAGS="$save_LDFLAGS"
17745 case $lt_cv_dlopen_self in
17746 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17747 *) enable_dlopen_self=unknown ;;
17750 case $lt_cv_dlopen_self_static in
17751 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17752 *) enable_dlopen_self_static=unknown ;;
17757 # Report which library types will actually be built
17758 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17759 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17760 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17761 echo "${ECHO_T}$can_build_shared" >&6; }
17763 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17764 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17765 test "$can_build_shared" = "no" && enable_shared=no
17767 # On AIX, shared libraries and static libraries use the same namespace, and
17768 # are all built from PIC.
17771 test "$enable_shared" = yes && enable_static=no
17772 if test -n "$RANLIB"; then
17773 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17774 postinstall_cmds='$RANLIB $lib'
17779 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17780 test "$enable_shared" = yes && enable_static=no
17784 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17785 echo "${ECHO_T}$enable_shared" >&6; }
17787 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17788 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17789 # Make sure either enable_shared or enable_static is yes.
17790 test "$enable_shared" = yes || enable_static=yes
17791 { echo "$as_me:$LINENO: result: $enable_static" >&5
17792 echo "${ECHO_T}$enable_static" >&6; }
17794 # The else clause should only fire when bootstrapping the
17795 # libtool distribution, otherwise you forgot to ship ltmain.sh
17796 # with your package, and you will get complaints that there are
17797 # no rules to generate ltmain.sh.
17798 if test -f "$ltmain"; then
17799 # See if we are running on zsh, and set the options which allow our commands through
17800 # without removal of \ escapes.
17801 if test -n "${ZSH_VERSION+set}" ; then
17802 setopt NO_GLOB_SUBST
17804 # Now quote all the things that may contain metacharacters while being
17805 # careful not to overquote the AC_SUBSTed values. We take copies of the
17806 # variables and quote the copies for generation of the libtool script.
17807 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17809 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17810 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17811 deplibs_check_method reload_flag reload_cmds need_locks \
17812 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17813 lt_cv_sys_global_symbol_to_c_name_address \
17814 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17815 old_postinstall_cmds old_postuninstall_cmds \
17819 lt_prog_compiler_wl \
17820 lt_prog_compiler_pic \
17821 lt_prog_compiler_static \
17822 lt_prog_compiler_no_builtin_flag \
17823 export_dynamic_flag_spec \
17824 thread_safe_flag_spec \
17825 whole_archive_flag_spec \
17826 enable_shared_with_static_runtimes \
17828 old_archive_from_new_cmds \
17833 compiler_lib_search_path \
17835 archive_expsym_cmds \
17837 postuninstall_cmds \
17838 old_archive_from_expsyms_cmds \
17839 allow_undefined_flag \
17840 no_undefined_flag \
17841 export_symbols_cmds \
17842 hardcode_libdir_flag_spec \
17843 hardcode_libdir_flag_spec_ld \
17844 hardcode_libdir_separator \
17845 hardcode_automatic \
17847 module_expsym_cmds \
17848 lt_cv_prog_compiler_c_o \
17850 include_expsyms; do
17853 old_archive_cmds | \
17854 old_archive_from_new_cmds | \
17856 archive_expsym_cmds | \
17858 module_expsym_cmds | \
17859 old_archive_from_expsyms_cmds | \
17860 export_symbols_cmds | \
17861 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17862 postinstall_cmds | postuninstall_cmds | \
17863 old_postinstall_cmds | old_postuninstall_cmds | \
17864 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17865 # Double-quote double-evaled strings.
17866 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17869 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17875 *'\$0 --fallback-echo"')
17876 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17880 cfgfile="${ofile}T"
17881 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17883 { echo "$as_me:$LINENO: creating $ofile" >&5
17884 echo "$as_me: creating $ofile" >&6;}
17886 cat <<__EOF__ >> "$cfgfile"
17889 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17890 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17891 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17893 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17894 # Free Software Foundation, Inc.
17896 # This file is part of GNU Libtool:
17897 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17899 # This program is free software; you can redistribute it and/or modify
17900 # it under the terms of the GNU General Public License as published by
17901 # the Free Software Foundation; either version 2 of the License, or
17902 # (at your option) any later version.
17904 # This program is distributed in the hope that it will be useful, but
17905 # WITHOUT ANY WARRANTY; without even the implied warranty of
17906 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17907 # General Public License for more details.
17909 # You should have received a copy of the GNU General Public License
17910 # along with this program; if not, write to the Free Software
17911 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17913 # As a special exception to the GNU General Public License, if you
17914 # distribute this file as part of a program that contains a
17915 # configuration script generated by Autoconf, you may include it under
17916 # the same distribution terms that you use for the rest of that program.
17918 # A sed program that does not truncate output.
17921 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17922 Xsed="$SED -e 1s/^X//"
17924 # The HP-UX ksh and POSIX shell print the target directory to stdout
17925 # if CDPATH is set.
17926 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17928 # The names of the tagged configurations supported by this script.
17931 # ### BEGIN LIBTOOL CONFIG
17933 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17935 # Shell to use when invoking shell scripts.
17938 # Whether or not to build shared libraries.
17939 build_libtool_libs=$enable_shared
17941 # Whether or not to build static libraries.
17942 build_old_libs=$enable_static
17944 # Whether or not to add -lc for building shared libraries.
17945 build_libtool_need_lc=$archive_cmds_need_lc
17947 # Whether or not to disallow shared libs when runtime libs are static
17948 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17950 # Whether or not to optimize for fast installation.
17951 fast_install=$enable_fast_install
17954 host_alias=$host_alias
17958 # The build system.
17959 build_alias=$build_alias
17963 # An echo program that does not interpret backslashes.
17968 AR_FLAGS=$lt_AR_FLAGS
17973 # LTCC compiler flags.
17974 LTCFLAGS=$lt_LTCFLAGS
17976 # A language-specific compiler.
17979 # Is the compiler the GNU C compiler?
17985 # The linker used to build libraries.
17988 # Whether we need hard or soft links.
17991 # A BSD-compatible nm program.
17994 # A symbol stripping program
17997 # Used to examine libraries when file_magic_cmd begins "file"
17998 MAGIC_CMD=$MAGIC_CMD
18000 # Used on cygwin: DLL creation program.
18003 # Used on cygwin: object dumper.
18006 # Used on cygwin: assembler.
18009 # The name of the directory that contains temporary libtool files.
18012 # How to create reloadable object files.
18013 reload_flag=$lt_reload_flag
18014 reload_cmds=$lt_reload_cmds
18016 # How to pass a linker flag through the compiler.
18017 wl=$lt_lt_prog_compiler_wl
18019 # Object file suffix (normally "o").
18020 objext="$ac_objext"
18022 # Old archive suffix (normally "a").
18025 # Shared library suffix (normally ".so").
18026 shrext_cmds='$shrext_cmds'
18028 # Executable file suffix (normally "").
18031 # Additional compiler flags for building library objects.
18032 pic_flag=$lt_lt_prog_compiler_pic
18035 # What is the maximum length of a command?
18036 max_cmd_len=$lt_cv_sys_max_cmd_len
18038 # Does compiler simultaneously support -c and -o options?
18039 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18041 # Must we lock files when doing compilation?
18042 need_locks=$lt_need_locks
18044 # Do we need the lib prefix for modules?
18045 need_lib_prefix=$need_lib_prefix
18047 # Do we need a version for libraries?
18048 need_version=$need_version
18050 # Whether dlopen is supported.
18051 dlopen_support=$enable_dlopen
18053 # Whether dlopen of programs is supported.
18054 dlopen_self=$enable_dlopen_self
18056 # Whether dlopen of statically linked programs is supported.
18057 dlopen_self_static=$enable_dlopen_self_static
18059 # Compiler flag to prevent dynamic linking.
18060 link_static_flag=$lt_lt_prog_compiler_static
18062 # Compiler flag to turn off builtin functions.
18063 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18065 # Compiler flag to allow reflexive dlopens.
18066 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18068 # Compiler flag to generate shared objects directly from archives.
18069 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18071 # Compiler flag to generate thread-safe objects.
18072 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18074 # Library versioning type.
18075 version_type=$version_type
18077 # Format of library name prefix.
18078 libname_spec=$lt_libname_spec
18080 # List of archive names. First name is the real one, the rest are links.
18081 # The last name is the one that the linker finds with -lNAME.
18082 library_names_spec=$lt_library_names_spec
18084 # The coded name of the library, if different from the real name.
18085 soname_spec=$lt_soname_spec
18087 # Commands used to build and install an old-style archive.
18089 old_archive_cmds=$lt_old_archive_cmds
18090 old_postinstall_cmds=$lt_old_postinstall_cmds
18091 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18093 # Create an old-style archive from a shared archive.
18094 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18096 # Create a temporary old-style archive to link instead of a shared archive.
18097 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18099 # Commands used to build and install a shared archive.
18100 archive_cmds=$lt_archive_cmds
18101 archive_expsym_cmds=$lt_archive_expsym_cmds
18102 postinstall_cmds=$lt_postinstall_cmds
18103 postuninstall_cmds=$lt_postuninstall_cmds
18105 # Commands used to build a loadable module (assumed same as above if empty)
18106 module_cmds=$lt_module_cmds
18107 module_expsym_cmds=$lt_module_expsym_cmds
18109 # Commands to strip libraries.
18110 old_striplib=$lt_old_striplib
18111 striplib=$lt_striplib
18113 # Dependencies to place before the objects being linked to create a
18115 predep_objects=$lt_predep_objects
18117 # Dependencies to place after the objects being linked to create a
18119 postdep_objects=$lt_postdep_objects
18121 # Dependencies to place before the objects being linked to create a
18123 predeps=$lt_predeps
18125 # Dependencies to place after the objects being linked to create a
18127 postdeps=$lt_postdeps
18129 # The library search path used internally by the compiler when linking
18130 # a shared library.
18131 compiler_lib_search_path=$lt_compiler_lib_search_path
18133 # Method to check whether dependent libraries are shared objects.
18134 deplibs_check_method=$lt_deplibs_check_method
18136 # Command to use when deplibs_check_method == file_magic.
18137 file_magic_cmd=$lt_file_magic_cmd
18139 # Flag that allows shared libraries with undefined symbols to be built.
18140 allow_undefined_flag=$lt_allow_undefined_flag
18142 # Flag that forces no undefined symbols.
18143 no_undefined_flag=$lt_no_undefined_flag
18145 # Commands used to finish a libtool library installation in a directory.
18146 finish_cmds=$lt_finish_cmds
18148 # Same as above, but a single script fragment to be evaled but not shown.
18149 finish_eval=$lt_finish_eval
18151 # Take the output of nm and produce a listing of raw symbols and C names.
18152 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18154 # Transform the output of nm in a proper C declaration
18155 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18157 # Transform the output of nm in a C name address pair
18158 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18160 # This is the shared library runtime path variable.
18161 runpath_var=$runpath_var
18163 # This is the shared library path variable.
18164 shlibpath_var=$shlibpath_var
18166 # Is shlibpath searched before the hard-coded library search path?
18167 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18169 # How to hardcode a shared library path into an executable.
18170 hardcode_action=$hardcode_action
18172 # Whether we should hardcode library paths into libraries.
18173 hardcode_into_libs=$hardcode_into_libs
18175 # Flag to hardcode \$libdir into a binary during linking.
18176 # This must work even if \$libdir does not exist.
18177 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18179 # If ld is used when linking, flag to hardcode \$libdir into
18180 # a binary during linking. This must work even if \$libdir does
18182 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18184 # Whether we need a single -rpath flag with a separated argument.
18185 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18187 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18188 # resulting binary.
18189 hardcode_direct=$hardcode_direct
18191 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18192 # resulting binary.
18193 hardcode_minus_L=$hardcode_minus_L
18195 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18196 # the resulting binary.
18197 hardcode_shlibpath_var=$hardcode_shlibpath_var
18199 # Set to yes if building a shared library automatically hardcodes DIR into the library
18200 # and all subsequent libraries and executables linked against it.
18201 hardcode_automatic=$hardcode_automatic
18203 # Variables whose values should be saved in libtool wrapper scripts and
18204 # restored at relink time.
18205 variables_saved_for_relink="$variables_saved_for_relink"
18207 # Whether libtool must link a program against all its dependency libraries.
18208 link_all_deplibs=$link_all_deplibs
18210 # Compile-time system search path for libraries
18211 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18213 # Run-time system search path for libraries
18214 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18216 # Fix the shell variable \$srcfile for the compiler.
18217 fix_srcfile_path="$fix_srcfile_path"
18219 # Set to yes if exported symbols are required.
18220 always_export_symbols=$always_export_symbols
18222 # The commands to list exported symbols.
18223 export_symbols_cmds=$lt_export_symbols_cmds
18225 # The commands to extract the exported symbol list from a shared archive.
18226 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18228 # Symbols that should not be listed in the preloaded symbols.
18229 exclude_expsyms=$lt_exclude_expsyms
18231 # Symbols that must always be exported.
18232 include_expsyms=$lt_include_expsyms
18234 # ### END LIBTOOL CONFIG
18241 cat <<\EOF >> "$cfgfile"
18243 # AIX sometimes has problems with the GCC collect2 program. For some
18244 # reason, if we set the COLLECT_NAMES environment variable, the problems
18245 # vanish in a puff of smoke.
18246 if test "X${COLLECT_NAMES+set}" != Xset; then
18248 export COLLECT_NAMES
18254 # We use sed instead of cat because bash on DJGPP gets confused if
18255 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18256 # text mode, it properly converts lines to CR/LF. This bash problem
18257 # is reportedly fixed, but why not run on old versions too?
18258 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18260 mv -f "$cfgfile" "$ofile" || \
18261 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18265 # If there is no Makefile yet, we rely on a make rule to execute
18266 # `config.status --recheck' to rerun these tests and create the
18267 # libtool script then.
18268 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18269 if test -f "$ltmain_in"; then
18270 test -f Makefile && make "$ltmain"
18276 ac_cpp='$CPP $CPPFLAGS'
18277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18284 # Check whether --with-tags was given.
18285 if test "${with_tags+set}" = set; then
18286 withval=$with_tags; tagnames="$withval"
18290 if test -f "$ltmain" && test -n "$tagnames"; then
18291 if test ! -f "${ofile}"; then
18292 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18293 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18296 if test -z "$LTCC"; then
18297 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18298 if test -z "$LTCC"; then
18299 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18300 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18302 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18303 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18306 if test -z "$LTCFLAGS"; then
18307 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18310 # Extract list of available tagged configurations in $ofile.
18311 # Note that this assumes the entire list is on one line.
18312 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18314 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18315 for tagname in $tagnames; do
18317 # Check whether tagname contains only valid characters
18318 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18320 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18321 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18322 { (exit 1); exit 1; }; }
18326 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18328 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18329 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18330 { (exit 1); exit 1; }; }
18333 # Update the list of available tags.
18334 if test -n "$tagname"; then
18335 echo appending configuration tag \"$tagname\" to $ofile
18339 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18340 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18341 (test "X$CXX" != "Xg++"))) ; then
18343 ac_cpp='$CXXCPP $CPPFLAGS'
18344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18351 archive_cmds_need_lc_CXX=no
18352 allow_undefined_flag_CXX=
18353 always_export_symbols_CXX=no
18354 archive_expsym_cmds_CXX=
18355 export_dynamic_flag_spec_CXX=
18356 hardcode_direct_CXX=no
18357 hardcode_libdir_flag_spec_CXX=
18358 hardcode_libdir_flag_spec_ld_CXX=
18359 hardcode_libdir_separator_CXX=
18360 hardcode_minus_L_CXX=no
18361 hardcode_shlibpath_var_CXX=unsupported
18362 hardcode_automatic_CXX=no
18364 module_expsym_cmds_CXX=
18365 link_all_deplibs_CXX=unknown
18366 old_archive_cmds_CXX=$old_archive_cmds
18367 no_undefined_flag_CXX=
18368 whole_archive_flag_spec_CXX=
18369 enable_shared_with_static_runtimes_CXX=no
18371 # Dependencies to place before and after the object being linked:
18372 predep_objects_CXX=
18373 postdep_objects_CXX=
18376 compiler_lib_search_path_CXX=
18378 # Source file extension for C++ test sources.
18381 # Object file extension for compiled C++ test sources.
18385 # Code to be used in simple compile tests
18386 lt_simple_compile_test_code="int some_variable = 0;\n"
18388 # Code to be used in simple link tests
18389 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18391 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18393 # If no C compiler was specified, use CC.
18396 # If no C compiler flags were specified, use CFLAGS.
18397 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18399 # Allow CC to be a program name with arguments.
18403 # save warnings/boilerplate of simple test code
18404 ac_outfile=conftest.$ac_objext
18405 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18406 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18407 _lt_compiler_boilerplate=`cat conftest.err`
18410 ac_outfile=conftest.$ac_objext
18411 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18412 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18413 _lt_linker_boilerplate=`cat conftest.err`
18417 # Allow CC to be a program name with arguments.
18422 lt_save_with_gnu_ld=$with_gnu_ld
18423 lt_save_path_LD=$lt_cv_path_LD
18424 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18425 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18427 $as_unset lt_cv_prog_gnu_ld
18429 if test -n "${lt_cv_path_LDCXX+set}"; then
18430 lt_cv_path_LD=$lt_cv_path_LDCXX
18432 $as_unset lt_cv_path_LD
18434 test -z "${LDCXX+set}" || LD=$LDCXX
18438 for cc_temp in $compiler""; do
18440 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18441 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18446 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18449 # We don't want -fno-exception wen compiling C++ code, so set the
18450 # no_builtin_flag separately
18451 if test "$GXX" = yes; then
18452 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18454 lt_prog_compiler_no_builtin_flag_CXX=
18457 if test "$GXX" = yes; then
18458 # Set up default GNU C++ configuration
18461 # Check whether --with-gnu-ld was given.
18462 if test "${with_gnu_ld+set}" = set; then
18463 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18469 if test "$GCC" = yes; then
18470 # Check if gcc -print-prog-name=ld gives a path.
18471 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18472 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18475 # gcc leaves a trailing carriage return which upsets mingw
18476 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18478 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18481 # Accept absolute paths.
18483 re_direlt='/[^/][^/]*/\.\./'
18484 # Canonicalize the pathname of ld
18485 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18486 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18487 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18489 test -z "$LD" && LD="$ac_prog"
18492 # If it fails, then pretend we aren't using GCC.
18496 # If it is relative, then search for the first ld in PATH.
18497 with_gnu_ld=unknown
18500 elif test "$with_gnu_ld" = yes; then
18501 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18502 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18504 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18505 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18507 if test "${lt_cv_path_LD+set}" = set; then
18508 echo $ECHO_N "(cached) $ECHO_C" >&6
18510 if test -z "$LD"; then
18511 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18512 for ac_dir in $PATH; do
18514 test -z "$ac_dir" && ac_dir=.
18515 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18516 lt_cv_path_LD="$ac_dir/$ac_prog"
18517 # Check to see if the program is GNU ld. I'd rather use --version,
18518 # but apparently some variants of GNU ld only accept -v.
18519 # Break only if it was the GNU/non-GNU ld that we prefer.
18520 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18521 *GNU* | *'with BFD'*)
18522 test "$with_gnu_ld" != no && break
18525 test "$with_gnu_ld" != yes && break
18532 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18536 LD="$lt_cv_path_LD"
18537 if test -n "$LD"; then
18538 { echo "$as_me:$LINENO: result: $LD" >&5
18539 echo "${ECHO_T}$LD" >&6; }
18541 { echo "$as_me:$LINENO: result: no" >&5
18542 echo "${ECHO_T}no" >&6; }
18544 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18545 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18546 { (exit 1); exit 1; }; }
18547 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18548 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18549 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18550 echo $ECHO_N "(cached) $ECHO_C" >&6
18552 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18553 case `$LD -v 2>&1 </dev/null` in
18554 *GNU* | *'with BFD'*)
18555 lt_cv_prog_gnu_ld=yes
18558 lt_cv_prog_gnu_ld=no
18562 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18563 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18564 with_gnu_ld=$lt_cv_prog_gnu_ld
18568 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18569 # archiving commands below assume that GNU ld is being used.
18570 if test "$with_gnu_ld" = yes; then
18571 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18572 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'
18574 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18575 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18577 # If archive_cmds runs LD, not CC, wlarc should be empty
18578 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18579 # investigate it a little bit more. (MM)
18582 # ancient GNU ld didn't support --whole-archive et. al.
18583 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18584 grep 'no-whole-archive' > /dev/null; then
18585 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18587 whole_archive_flag_spec_CXX=
18593 # A generic and very simple default shared library creation
18594 # command for GNU C++ for the case where it uses the native
18595 # linker, instead of GNU ld. If possible, this setting should
18596 # overridden to take advantage of the native linker features on
18597 # the platform it is being used on.
18598 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18601 # Commands to make compiler produce verbose output that lists
18602 # what "hidden" libraries, object files and flags are used when
18603 # linking a shared library.
18604 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18612 # PORTME: fill in a description of your system's C++ link characteristics
18613 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18614 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18618 # FIXME: insert proper C++ library support
18622 if test "$host_cpu" = ia64; then
18623 # On IA64, the linker does run time linking by default, so we don't
18624 # have to do anything special.
18625 aix_use_runtimelinking=no
18626 exp_sym_flag='-Bexport'
18629 aix_use_runtimelinking=no
18631 # Test if we are trying to use run time linking or normal
18632 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18633 # need to do runtime linking.
18634 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18635 for ld_flag in $LDFLAGS; do
18638 aix_use_runtimelinking=yes
18646 exp_sym_flag='-bexport'
18647 no_entry_flag='-bnoentry'
18650 # When large executables or shared objects are built, AIX ld can
18651 # have problems creating the table of contents. If linking a library
18652 # or program results in "error TOC overflow" add -mminimal-toc to
18653 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18654 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18656 archive_cmds_CXX=''
18657 hardcode_direct_CXX=yes
18658 hardcode_libdir_separator_CXX=':'
18659 link_all_deplibs_CXX=yes
18661 if test "$GXX" = yes; then
18662 case $host_os in aix4.[012]|aix4.[012].*)
18663 # We only want to do this on AIX 4.2 and lower, the check
18664 # below for broken collect2 doesn't work under 4.3+
18665 collect2name=`${CC} -print-prog-name=collect2`
18666 if test -f "$collect2name" && \
18667 strings "$collect2name" | grep resolve_lib_name >/dev/null
18669 # We have reworked collect2
18670 hardcode_direct_CXX=yes
18672 # We have old collect2
18673 hardcode_direct_CXX=unsupported
18674 # It fails to find uninstalled libraries when the uninstalled
18675 # path is not listed in the libpath. Setting hardcode_minus_L
18676 # to unsupported forces relinking
18677 hardcode_minus_L_CXX=yes
18678 hardcode_libdir_flag_spec_CXX='-L$libdir'
18679 hardcode_libdir_separator_CXX=
18683 shared_flag='-shared'
18684 if test "$aix_use_runtimelinking" = yes; then
18685 shared_flag="$shared_flag "'${wl}-G'
18689 if test "$host_cpu" = ia64; then
18690 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18691 # chokes on -Wl,-G. The following line is correct:
18694 if test "$aix_use_runtimelinking" = yes; then
18695 shared_flag='${wl}-G'
18697 shared_flag='${wl}-bM:SRE'
18702 # It seems that -bexpall does not export symbols beginning with
18703 # underscore (_), so it is better to generate a list of symbols to export.
18704 always_export_symbols_CXX=yes
18705 if test "$aix_use_runtimelinking" = yes; then
18706 # Warning - without using the other runtime loading flags (-brtl),
18707 # -berok will link without error, but may produce a broken library.
18708 allow_undefined_flag_CXX='-berok'
18709 # Determine the default libpath from the value encoded in an empty executable.
18710 cat >conftest.$ac_ext <<_ACEOF
18713 cat confdefs.h >>conftest.$ac_ext
18714 cat >>conftest.$ac_ext <<_ACEOF
18715 /* end confdefs.h. */
18725 rm -f conftest.$ac_objext conftest$ac_exeext
18726 if { (ac_try="$ac_link"
18727 case "(($ac_try" in
18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732 (eval "$ac_link") 2>conftest.er1
18734 grep -v '^ *+' conftest.er1 >conftest.err
18736 cat conftest.err >&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); } &&
18739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18740 { (case "(($ac_try" in
18741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742 *) ac_try_echo=$ac_try;;
18744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745 (eval "$ac_try") 2>&5
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); }; } &&
18749 { ac_try='test -s conftest$ac_exeext'
18750 { (case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_try") 2>&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; }; then
18760 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18762 # Check for a 64-bit object if we didn't find anything.
18763 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; }
18766 echo "$as_me: failed program was:" >&5
18767 sed 's/^/| /' conftest.$ac_ext >&5
18772 rm -f core conftest.err conftest.$ac_objext \
18773 conftest$ac_exeext conftest.$ac_ext
18774 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18776 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18778 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"
18780 if test "$host_cpu" = ia64; then
18781 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18782 allow_undefined_flag_CXX="-z nodefs"
18783 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"
18785 # Determine the default libpath from the value encoded in an empty executable.
18786 cat >conftest.$ac_ext <<_ACEOF
18789 cat confdefs.h >>conftest.$ac_ext
18790 cat >>conftest.$ac_ext <<_ACEOF
18791 /* end confdefs.h. */
18801 rm -f conftest.$ac_objext conftest$ac_exeext
18802 if { (ac_try="$ac_link"
18803 case "(($ac_try" in
18804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805 *) ac_try_echo=$ac_try;;
18807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808 (eval "$ac_link") 2>conftest.er1
18810 grep -v '^ *+' conftest.er1 >conftest.err
18812 cat conftest.err >&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); } &&
18815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18816 { (case "(($ac_try" in
18817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18818 *) ac_try_echo=$ac_try;;
18820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18821 (eval "$ac_try") 2>&5
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); }; } &&
18825 { ac_try='test -s conftest$ac_exeext'
18826 { (case "(($ac_try" in
18827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828 *) ac_try_echo=$ac_try;;
18830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18831 (eval "$ac_try") 2>&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; }; then
18836 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18838 # Check for a 64-bit object if we didn't find anything.
18839 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; }
18842 echo "$as_me: failed program was:" >&5
18843 sed 's/^/| /' conftest.$ac_ext >&5
18848 rm -f core conftest.err conftest.$ac_objext \
18849 conftest$ac_exeext conftest.$ac_ext
18850 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18852 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18853 # Warning - without using the other run time loading flags,
18854 # -berok will link without error, but may produce a broken library.
18855 no_undefined_flag_CXX=' ${wl}-bernotok'
18856 allow_undefined_flag_CXX=' ${wl}-berok'
18857 # Exported symbols can be pulled into shared objects from archives
18858 whole_archive_flag_spec_CXX='$convenience'
18859 archive_cmds_need_lc_CXX=yes
18860 # This is similar to how AIX traditionally builds its shared libraries.
18861 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'
18867 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18868 allow_undefined_flag_CXX=unsupported
18869 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18870 # support --undefined. This deserves some investigation. FIXME
18871 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18878 case $cc_basename in
18880 # FIXME: insert proper C++ library support
18886 cygwin* | mingw* | pw32*)
18887 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18888 # as there is no search path for DLLs.
18889 hardcode_libdir_flag_spec_CXX='-L$libdir'
18890 allow_undefined_flag_CXX=unsupported
18891 always_export_symbols_CXX=no
18892 enable_shared_with_static_runtimes_CXX=yes
18894 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18895 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'
18896 # If the export-symbols file already is a .def file (1st line
18897 # is EXPORTS), use it as is; otherwise, prepend...
18898 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18899 cp $export_symbols $output_objdir/$soname.def;
18901 echo EXPORTS > $output_objdir/$soname.def;
18902 cat $export_symbols >> $output_objdir/$soname.def;
18904 $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'
18909 darwin* | rhapsody*)
18911 rhapsody* | darwin1.[012])
18912 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18915 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18916 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18918 case ${MACOSX_DEPLOYMENT_TARGET} in
18920 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18923 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18929 archive_cmds_need_lc_CXX=no
18930 hardcode_direct_CXX=no
18931 hardcode_automatic_CXX=yes
18932 hardcode_shlibpath_var_CXX=unsupported
18933 whole_archive_flag_spec_CXX=''
18934 link_all_deplibs_CXX=yes
18936 if test "$GXX" = yes ; then
18937 lt_int_apple_cc_single_mod=no
18938 output_verbose_link_cmd='echo'
18939 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18940 lt_int_apple_cc_single_mod=yes
18942 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18943 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18945 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'
18947 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18948 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18949 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18950 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}'
18952 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}'
18954 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}'
18956 case $cc_basename in
18958 output_verbose_link_cmd='echo'
18959 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'
18960 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18961 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18962 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}'
18963 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}'
18973 case $cc_basename in
18975 # FIXME: insert proper C++ library support
18979 # Green Hills C++ Compiler
18980 # FIXME: insert proper C++ library support
18984 # FIXME: insert proper C++ library support
18990 # C++ shared libraries reported to be fairly broken before switch to ELF
18994 archive_cmds_need_lc_CXX=no
18996 freebsd* | kfreebsd*-gnu | dragonfly*)
18997 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19004 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19005 hardcode_libdir_separator_CXX=:
19006 export_dynamic_flag_spec_CXX='${wl}-E'
19007 hardcode_direct_CXX=yes
19008 hardcode_minus_L_CXX=yes # Not in the search PATH,
19009 # but as the default
19010 # location of the library.
19012 case $cc_basename in
19014 # FIXME: insert proper C++ library support
19018 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'
19019 # Commands to make compiler produce verbose output that lists
19020 # what "hidden" libraries, object files and flags are used when
19021 # linking a shared library.
19023 # There doesn't appear to be a way to prevent this compiler from
19024 # explicitly linking system object files so we need to strip them
19025 # from the output so that they don't get included in the library
19027 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'
19030 if test "$GXX" = yes; then
19031 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'
19033 # FIXME: insert proper C++ library support
19040 if test $with_gnu_ld = no; then
19041 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19042 hardcode_libdir_separator_CXX=:
19046 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19049 export_dynamic_flag_spec_CXX='${wl}-E'
19055 hardcode_direct_CXX=no
19056 hardcode_shlibpath_var_CXX=no
19059 hardcode_direct_CXX=yes
19060 hardcode_minus_L_CXX=yes # Not in the search PATH,
19061 # but as the default
19062 # location of the library.
19066 case $cc_basename in
19068 # FIXME: insert proper C++ library support
19074 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19077 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19080 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
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 -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'
19094 if test "$GXX" = yes; then
19095 if test $with_gnu_ld = no; then
19098 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19101 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19104 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'
19109 # FIXME: insert proper C++ library support
19116 hardcode_direct_CXX=no
19117 hardcode_shlibpath_var_CXX=no
19118 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19119 export_dynamic_flag_spec_CXX='${wl}-E'
19120 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19121 # Instead, shared libraries are loaded at an image base (0x10000000 by
19122 # default) and relocated if they conflict, which is a slow very memory
19123 # consuming and fragmenting process. To avoid this, we pick a random,
19124 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19125 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19126 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'
19127 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'
19130 case $cc_basename in
19133 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'
19135 # Archives containing C++ object files must be created using
19136 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19137 # necessary to make sure instantiated templates are included
19139 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19142 if test "$GXX" = yes; then
19143 if test "$with_gnu_ld" = no; then
19144 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'
19146 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'
19149 link_all_deplibs_CXX=yes
19152 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19153 hardcode_libdir_separator_CXX=:
19156 case $cc_basename in
19158 # Kuck and Associates, Inc. (KAI) C++ Compiler
19160 # KCC will only create a shared library if the output file
19161 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19162 # to its proper name (with version) after linking.
19163 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'
19164 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'
19165 # Commands to make compiler produce verbose output that lists
19166 # what "hidden" libraries, object files and flags are used when
19167 # linking a shared library.
19169 # There doesn't appear to be a way to prevent this compiler from
19170 # explicitly linking system object files so we need to strip them
19171 # from the output so that they don't get included in the library
19173 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'
19175 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19176 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19178 # Archives containing C++ object files must be created using
19179 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19180 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19185 # version 8.0 and above of icpc choke on multiply defined symbols
19186 # if we add $predep_objects and $postdep_objects, however 7.1 and
19187 # earlier do not add the objects themselves.
19188 case `$CC -V 2>&1` in
19190 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19191 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'
19193 *) # Version 8.0 or newer
19196 ia64*) tmp_idyn=' -i_dynamic';;
19198 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19199 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'
19202 archive_cmds_need_lc_CXX=no
19203 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19204 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19205 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19208 # Portland Group C++ compiler
19209 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19210 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'
19212 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19213 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19214 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'
19218 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19219 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'
19221 runpath_var=LD_RUN_PATH
19222 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19223 hardcode_libdir_separator_CXX=:
19225 # Commands to make compiler produce verbose output that lists
19226 # what "hidden" libraries, object files and flags are used when
19227 # linking a shared library.
19229 # There doesn't appear to be a way to prevent this compiler from
19230 # explicitly linking system object files so we need to strip them
19231 # from the output so that they don't get included in the library
19233 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'
19238 # FIXME: insert proper C++ library support
19242 # FIXME: insert proper C++ library support
19246 case $cc_basename in
19248 # FIXME: insert proper C++ library support
19252 # FIXME: insert proper C++ library support
19258 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19259 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19261 hardcode_libdir_flag_spec_CXX='-R$libdir'
19262 hardcode_direct_CXX=yes
19263 hardcode_shlibpath_var_CXX=no
19265 # Workaround some broken pre-1.5 toolchains
19266 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19269 # C++ shared libraries are fairly broken
19273 hardcode_direct_CXX=yes
19274 hardcode_shlibpath_var_CXX=no
19275 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19276 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19277 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19278 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19279 export_dynamic_flag_spec_CXX='${wl}-E'
19280 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19282 output_verbose_link_cmd='echo'
19285 case $cc_basename in
19287 # Kuck and Associates, Inc. (KAI) C++ Compiler
19289 # KCC will only create a shared library if the output file
19290 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19291 # to its proper name (with version) after linking.
19292 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'
19294 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19295 hardcode_libdir_separator_CXX=:
19297 # Archives containing C++ object files must be created using
19298 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19299 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19303 # Rational C++ 2.4.1
19304 # FIXME: insert proper C++ library support
19308 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19309 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'
19311 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19312 hardcode_libdir_separator_CXX=:
19314 # Commands to make compiler produce verbose output that lists
19315 # what "hidden" libraries, object files and flags are used when
19316 # linking a shared library.
19318 # There doesn't appear to be a way to prevent this compiler from
19319 # explicitly linking system object files so we need to strip them
19320 # from the output so that they don't get included in the library
19322 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'
19325 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19326 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19327 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'
19329 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19330 hardcode_libdir_separator_CXX=:
19332 # Commands to make compiler produce verbose output that lists
19333 # what "hidden" libraries, object files and flags are used when
19334 # linking a shared library.
19335 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19338 # FIXME: insert proper C++ library support
19345 case $cc_basename in
19347 # Kuck and Associates, Inc. (KAI) C++ Compiler
19349 # KCC will only create a shared library if the output file
19350 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19351 # to its proper name (with version) after linking.
19352 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'
19354 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19355 hardcode_libdir_separator_CXX=:
19357 # Archives containing C++ object files must be created using
19358 # the KAI C++ compiler.
19359 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19362 # Rational C++ 2.4.1
19363 # FIXME: insert proper C++ library support
19367 allow_undefined_flag_CXX=' -expect_unresolved \*'
19368 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'
19369 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19370 echo "-hidden">> $lib.exp~
19371 $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~
19374 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19375 hardcode_libdir_separator_CXX=:
19377 # Commands to make compiler produce verbose output that lists
19378 # what "hidden" libraries, object files and flags are used when
19379 # linking a shared library.
19381 # There doesn't appear to be a way to prevent this compiler from
19382 # explicitly linking system object files so we need to strip them
19383 # from the output so that they don't get included in the library
19385 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'
19388 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19389 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19390 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'
19392 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19393 hardcode_libdir_separator_CXX=:
19395 # Commands to make compiler produce verbose output that lists
19396 # what "hidden" libraries, object files and flags are used when
19397 # linking a shared library.
19398 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19401 # FIXME: insert proper C++ library support
19408 # FIXME: insert proper C++ library support
19412 case $cc_basename in
19415 # FIXME: insert proper C++ library support
19420 # FIXME: insert proper C++ library support
19424 # FIXME: insert proper C++ library support
19430 case $cc_basename in
19432 # Sun C++ 4.2, 5.x and Centerline C++
19433 archive_cmds_need_lc_CXX=yes
19434 no_undefined_flag_CXX=' -zdefs'
19435 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19436 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19437 $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'
19439 hardcode_libdir_flag_spec_CXX='-R$libdir'
19440 hardcode_shlibpath_var_CXX=no
19442 solaris2.[0-5] | solaris2.[0-5].*) ;;
19444 # The C++ compiler is used as linker so we must use $wl
19445 # flag to pass the commands to the underlying system
19446 # linker. We must also pass each convience library through
19447 # to the system linker between allextract/defaultextract.
19448 # The C++ compiler will combine linker options so we
19449 # cannot just pass the convience library names through
19451 # Supported since Solaris 2.6 (maybe 2.5.1?)
19452 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'
19455 link_all_deplibs_CXX=yes
19457 output_verbose_link_cmd='echo'
19459 # Archives containing C++ object files must be created using
19460 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19461 # necessary to make sure instantiated templates are included
19463 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19466 # Green Hills C++ Compiler
19467 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19469 # The C++ compiler must be used to create the archive.
19470 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19473 # GNU C++ compiler with Solaris linker
19474 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19475 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19476 if $CC --version | grep -v '^2\.7' > /dev/null; then
19477 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19478 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19479 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19481 # Commands to make compiler produce verbose output that lists
19482 # what "hidden" libraries, object files and flags are used when
19483 # linking a shared library.
19484 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19486 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19488 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19489 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19490 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19492 # Commands to make compiler produce verbose output that lists
19493 # what "hidden" libraries, object files and flags are used when
19494 # linking a shared library.
19495 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19498 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19503 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19504 no_undefined_flag_CXX='${wl}-z,text'
19505 archive_cmds_need_lc_CXX=no
19506 hardcode_shlibpath_var_CXX=no
19507 runpath_var='LD_RUN_PATH'
19509 case $cc_basename in
19511 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19512 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19515 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19516 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19520 sysv5* | sco3.2v5* | sco5v6*)
19521 # Note: We can NOT use -z defs as we might desire, because we do not
19522 # link with -lc, and that would cause any symbols used from libc to
19523 # always be unresolved, which means just about no library would
19524 # ever link correctly. If we're not using GNU ld we use -z text
19525 # though, which does catch some bad symbols but isn't as heavy-handed
19527 # For security reasons, it is highly recommended that you always
19528 # use absolute paths for naming shared libraries, and exclude the
19529 # DT_RUNPATH tag from executables and libraries. But doing so
19530 # requires that you compile everything twice, which is a pain.
19531 # So that behaviour is only enabled if SCOABSPATH is set to a
19532 # non-empty value in the environment. Most likely only useful for
19533 # creating official distributions of packages.
19534 # This is a hack until libtool officially supports absolute path
19535 # names for shared libraries.
19536 no_undefined_flag_CXX='${wl}-z,text'
19537 allow_undefined_flag_CXX='${wl}-z,nodefs'
19538 archive_cmds_need_lc_CXX=no
19539 hardcode_shlibpath_var_CXX=no
19540 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19541 hardcode_libdir_separator_CXX=':'
19542 link_all_deplibs_CXX=yes
19543 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19544 runpath_var='LD_RUN_PATH'
19546 case $cc_basename in
19548 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19549 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19552 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19553 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19558 case $cc_basename in
19560 # NonStop-UX NCC 3.20
19561 # FIXME: insert proper C++ library support
19565 # FIXME: insert proper C++ library support
19571 # FIXME: insert proper C++ library support
19575 # FIXME: insert proper C++ library support
19579 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19580 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19581 test "$ld_shlibs_CXX" = no && can_build_shared=no
19587 cat > conftest.$ac_ext <<EOF
19591 Foo (void) { a = 0; }
19597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19598 (eval $ac_compile) 2>&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; then
19602 # Parse the compiler output and extract the necessary
19603 # objects, libraries and library flags.
19605 # Sentinel used to keep track of whether or not we are before
19606 # the conftest object file.
19607 pre_test_object_deps_done=no
19609 # The `*' in the case matches for architectures that use `case' in
19610 # $output_verbose_cmd can trigger glob expansion during the loop
19611 # eval without this substitution.
19612 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19614 for p in `eval $output_verbose_link_cmd`; do
19618 # Some compilers place space between "-{L,R}" and the path.
19619 # Remove the space.
19620 if test $p = "-L" \
19621 || test $p = "-R"; then
19628 if test "$pre_test_object_deps_done" = no; then
19631 # Internal compiler library paths should come after those
19632 # provided the user. The postdeps already come after the
19633 # user supplied libs so there is no need to process them.
19634 if test -z "$compiler_lib_search_path_CXX"; then
19635 compiler_lib_search_path_CXX="${prev}${p}"
19637 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19640 # The "-l" case would never come before the object being
19641 # linked, so don't bother handling this case.
19644 if test -z "$postdeps_CXX"; then
19645 postdeps_CXX="${prev}${p}"
19647 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19653 # This assumes that the test object file only shows up
19654 # once in the compiler output.
19655 if test "$p" = "conftest.$objext"; then
19656 pre_test_object_deps_done=yes
19660 if test "$pre_test_object_deps_done" = no; then
19661 if test -z "$predep_objects_CXX"; then
19662 predep_objects_CXX="$p"
19664 predep_objects_CXX="$predep_objects_CXX $p"
19667 if test -z "$postdep_objects_CXX"; then
19668 postdep_objects_CXX="$p"
19670 postdep_objects_CXX="$postdep_objects_CXX $p"
19675 *) ;; # Ignore the rest.
19683 echo "libtool.m4: error: problem compiling CXX test program"
19686 $rm -f confest.$objext
19688 # PORTME: override above test on systems where it is broken
19691 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19692 # hack all around it, let's just trust "g++" to DTRT.
19693 predep_objects_CXX=
19694 postdep_objects_CXX=
19699 case $cc_basename in
19701 # Adding this requires a known-good setup of shared libraries for
19702 # Sun compiler versions before 5.6, else PIC objects from an old
19703 # archive will be linked into the output, leading to subtle bugs.
19704 postdeps_CXX='-lCstd -lCrun'
19711 case " $postdeps_CXX " in
19712 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19715 lt_prog_compiler_wl_CXX=
19716 lt_prog_compiler_pic_CXX=
19717 lt_prog_compiler_static_CXX=
19719 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19720 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19722 # C++ specific cases for pic, static, wl, etc.
19723 if test "$GXX" = yes; then
19724 lt_prog_compiler_wl_CXX='-Wl,'
19725 lt_prog_compiler_static_CXX='-static'
19729 # All AIX code is PIC.
19730 if test "$host_cpu" = ia64; then
19731 # AIX 5 now supports IA64 processor
19732 lt_prog_compiler_static_CXX='-Bstatic'
19736 # FIXME: we need at least 68020 code to build shared libraries, but
19737 # adding the `-m68020' flag to GCC prevents building anything better,
19739 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19741 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19742 # PIC is the default for these OSes.
19744 mingw* | os2* | pw32*)
19745 # This hack is so that the source file can tell whether it is being
19746 # built for inclusion in a dll (and should export symbols for example).
19747 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19749 darwin* | rhapsody*)
19750 # PIC is the default on this platform
19751 # Common symbols not allowed in MH_DYLIB files
19752 lt_prog_compiler_pic_CXX='-fno-common'
19755 # DJGPP does not support shared libraries at all
19756 lt_prog_compiler_pic_CXX=
19759 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19760 # Instead, we relocate shared libraries at runtime.
19763 if test -d /usr/nec; then
19764 lt_prog_compiler_pic_CXX=-Kconform_pic
19768 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19769 # not for PA HP-UX.
19774 lt_prog_compiler_pic_CXX='-fPIC'
19779 lt_prog_compiler_pic_CXX='-fPIC'
19785 # All AIX code is PIC.
19786 if test "$host_cpu" = ia64; then
19787 # AIX 5 now supports IA64 processor
19788 lt_prog_compiler_static_CXX='-Bstatic'
19790 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19794 case $cc_basename in
19796 # Green Hills C++ Compiler
19797 # _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"
19802 # PIC is the default on this platform
19803 # Common symbols not allowed in MH_DYLIB files
19804 case $cc_basename in
19806 lt_prog_compiler_pic_CXX='-qnocommon'
19807 lt_prog_compiler_wl_CXX='-Wl,'
19812 case $cc_basename in
19814 lt_prog_compiler_pic_CXX='-KPIC'
19817 # Green Hills C++ Compiler
19818 lt_prog_compiler_pic_CXX='-pic'
19824 freebsd* | kfreebsd*-gnu | dragonfly*)
19825 # FreeBSD uses GNU C++
19827 hpux9* | hpux10* | hpux11*)
19828 case $cc_basename in
19830 lt_prog_compiler_wl_CXX='-Wl,'
19831 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19832 if test "$host_cpu" != ia64; then
19833 lt_prog_compiler_pic_CXX='+Z'
19837 lt_prog_compiler_wl_CXX='-Wl,'
19838 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19844 lt_prog_compiler_pic_CXX='+Z'
19853 # This is c89, which is MS Visual C++ (no shared libs)
19854 # Anyone wants to do a port?
19856 irix5* | irix6* | nonstopux*)
19857 case $cc_basename in
19859 lt_prog_compiler_wl_CXX='-Wl,'
19860 lt_prog_compiler_static_CXX='-non_shared'
19861 # CC pic flag -KPIC is the default.
19868 case $cc_basename in
19871 lt_prog_compiler_wl_CXX='--backend -Wl,'
19872 lt_prog_compiler_pic_CXX='-fPIC'
19876 lt_prog_compiler_wl_CXX='-Wl,'
19877 lt_prog_compiler_pic_CXX='-KPIC'
19878 lt_prog_compiler_static_CXX='-static'
19881 # Portland Group C++ compiler.
19882 lt_prog_compiler_wl_CXX='-Wl,'
19883 lt_prog_compiler_pic_CXX='-fpic'
19884 lt_prog_compiler_static_CXX='-Bstatic'
19888 # Make sure the PIC flag is empty. It appears that all Alpha
19889 # Linux and Compaq Tru64 Unix objects are PIC.
19890 lt_prog_compiler_pic_CXX=
19891 lt_prog_compiler_static_CXX='-non_shared'
19902 case $cc_basename in
19904 lt_prog_compiler_pic_CXX='-W c,exportall'
19912 osf3* | osf4* | osf5*)
19913 case $cc_basename in
19915 lt_prog_compiler_wl_CXX='--backend -Wl,'
19918 # Rational C++ 2.4.1
19919 lt_prog_compiler_pic_CXX='-pic'
19922 # Digital/Compaq C++
19923 lt_prog_compiler_wl_CXX='-Wl,'
19924 # Make sure the PIC flag is empty. It appears that all Alpha
19925 # Linux and Compaq Tru64 Unix objects are PIC.
19926 lt_prog_compiler_pic_CXX=
19927 lt_prog_compiler_static_CXX='-non_shared'
19936 case $cc_basename in
19938 # Sun C++ 4.2, 5.x and Centerline C++
19939 lt_prog_compiler_pic_CXX='-KPIC'
19940 lt_prog_compiler_static_CXX='-Bstatic'
19941 lt_prog_compiler_wl_CXX='-Qoption ld '
19944 # Green Hills C++ Compiler
19945 lt_prog_compiler_pic_CXX='-PIC'
19952 case $cc_basename in
19955 lt_prog_compiler_pic_CXX='-pic'
19956 lt_prog_compiler_static_CXX='-Bstatic'
19960 lt_prog_compiler_pic_CXX='-pic'
19967 case $cc_basename in
19969 # NonStop-UX NCC 3.20
19970 lt_prog_compiler_pic_CXX='-KPIC'
19976 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19977 case $cc_basename in
19979 lt_prog_compiler_wl_CXX='-Wl,'
19980 lt_prog_compiler_pic_CXX='-KPIC'
19981 lt_prog_compiler_static_CXX='-Bstatic'
19988 lt_prog_compiler_can_build_shared_CXX=no
19993 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19994 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19997 # Check to make sure the PIC flag actually works.
19999 if test -n "$lt_prog_compiler_pic_CXX"; then
20001 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20002 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20003 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20006 lt_prog_compiler_pic_works_CXX=no
20007 ac_outfile=conftest.$ac_objext
20008 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20009 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20010 # Insert the option either (1) after the last *FLAGS variable, or
20011 # (2) before a word containing "conftest.", or (3) at the end.
20012 # Note that $ac_compile itself does not contain backslashes and begins
20013 # with a dollar sign (not a hyphen), so the echo should work correctly.
20014 # The option is referenced via a variable to avoid confusing sed.
20015 lt_compile=`echo "$ac_compile" | $SED \
20016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20018 -e 's:$: $lt_compiler_flag:'`
20019 (eval echo "\"\$as_me:20019: $lt_compile\"" >&5)
20020 (eval "$lt_compile" 2>conftest.err)
20022 cat conftest.err >&5
20023 echo "$as_me:20023: \$? = $ac_status" >&5
20024 if (exit $ac_status) && test -s "$ac_outfile"; then
20025 # The compiler can only warn and ignore the option if not recognized
20026 # So say no if there are warnings other than the usual output.
20027 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20029 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20030 lt_prog_compiler_pic_works_CXX=yes
20036 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20037 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20039 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20040 case $lt_prog_compiler_pic_CXX in
20042 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20045 lt_prog_compiler_pic_CXX=
20046 lt_prog_compiler_can_build_shared_CXX=no
20051 # For platforms which do not support PIC, -DPIC is meaningless:
20053 lt_prog_compiler_pic_CXX=
20056 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20061 # Check to make sure the static flag actually works.
20063 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20064 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20065 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20066 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20067 echo $ECHO_N "(cached) $ECHO_C" >&6
20069 lt_prog_compiler_static_works_CXX=no
20070 save_LDFLAGS="$LDFLAGS"
20071 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20072 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20073 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20074 # The linker can only warn and ignore the option if not recognized
20075 # So say no if there are warnings
20076 if test -s conftest.err; then
20077 # Append any errors to the config.log.
20078 cat conftest.err 1>&5
20079 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20081 if diff conftest.exp conftest.er2 >/dev/null; then
20082 lt_prog_compiler_static_works_CXX=yes
20085 lt_prog_compiler_static_works_CXX=yes
20089 LDFLAGS="$save_LDFLAGS"
20092 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20093 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20095 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20098 lt_prog_compiler_static_CXX=
20102 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20103 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20104 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20105 echo $ECHO_N "(cached) $ECHO_C" >&6
20107 lt_cv_prog_compiler_c_o_CXX=no
20108 $rm -r conftest 2>/dev/null
20112 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20114 lt_compiler_flag="-o out/conftest2.$ac_objext"
20115 # Insert the option either (1) after the last *FLAGS variable, or
20116 # (2) before a word containing "conftest.", or (3) at the end.
20117 # Note that $ac_compile itself does not contain backslashes and begins
20118 # with a dollar sign (not a hyphen), so the echo should work correctly.
20119 lt_compile=`echo "$ac_compile" | $SED \
20120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20122 -e 's:$: $lt_compiler_flag:'`
20123 (eval echo "\"\$as_me:20123: $lt_compile\"" >&5)
20124 (eval "$lt_compile" 2>out/conftest.err)
20126 cat out/conftest.err >&5
20127 echo "$as_me:20127: \$? = $ac_status" >&5
20128 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20130 # The compiler can only warn and ignore the option if not recognized
20131 # So say no if there are warnings
20132 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20133 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20134 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20135 lt_cv_prog_compiler_c_o_CXX=yes
20140 # SGI C++ compiler will create directory out/ii_files/ for
20141 # template instantiation
20142 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20143 $rm out/* && rmdir out
20149 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20150 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20153 hard_links="nottested"
20154 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20155 # do not overwrite the value of need_locks provided by the user
20156 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20157 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20160 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20162 ln conftest.a conftest.b 2>&5 || hard_links=no
20163 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20164 { echo "$as_me:$LINENO: result: $hard_links" >&5
20165 echo "${ECHO_T}$hard_links" >&6; }
20166 if test "$hard_links" = no; then
20167 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20168 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20175 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20176 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20178 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20181 # If we're using GNU nm, then we don't want the "-C" option.
20182 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20183 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20184 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'
20186 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'
20190 export_symbols_cmds_CXX="$ltdll_cmds"
20193 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'
20196 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20200 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20201 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20202 test "$ld_shlibs_CXX" = no && can_build_shared=no
20205 # Do we need to explicitly link libc?
20207 case "x$archive_cmds_need_lc_CXX" in
20209 # Assume -lc should be added
20210 archive_cmds_need_lc_CXX=yes
20212 if test "$enable_shared" = yes && test "$GCC" = yes; then
20213 case $archive_cmds_CXX in
20215 # FIXME: we may have to deal with multi-command sequences.
20218 # Test whether the compiler implicitly links with -lc since on some
20219 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20220 # to ld, don't add -lc before -lgcc.
20221 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20222 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20224 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20227 (eval $ac_compile) 2>&5
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } 2>conftest.err; then
20233 libobjs=conftest.$ac_objext
20235 wl=$lt_prog_compiler_wl_CXX
20236 pic_flag=$lt_prog_compiler_pic_CXX
20242 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20243 allow_undefined_flag_CXX=
20244 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20245 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }
20250 archive_cmds_need_lc_CXX=no
20252 archive_cmds_need_lc_CXX=yes
20254 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20256 cat conftest.err 1>&5
20259 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20260 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20267 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20268 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20269 library_names_spec=
20270 libname_spec='lib$name'
20274 postuninstall_cmds=
20278 shlibpath_overrides_runpath=unknown
20280 dynamic_linker="$host_os ld.so"
20281 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20282 if test "$GCC" = yes; then
20283 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20284 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20285 # if the path contains ";" then we assume it to be the separator
20286 # otherwise default to the standard path separator (i.e. ":") - it is
20287 # assumed that no part of a normal pathname contains ";" but that should
20288 # okay in the real world where ";" in dirpaths is itself problematic.
20289 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20291 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20294 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20296 need_lib_prefix=unknown
20297 hardcode_into_libs=no
20299 # when you set need_version to no, make sure it does not cause -set_version
20300 # flags to be left without arguments
20301 need_version=unknown
20306 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20307 shlibpath_var=LIBPATH
20309 # AIX 3 has no versioning support, so we append a major version to the name.
20310 soname_spec='${libname}${release}${shared_ext}$major'
20317 hardcode_into_libs=yes
20318 if test "$host_cpu" = ia64; then
20319 # AIX 5 supports IA64
20320 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20321 shlibpath_var=LD_LIBRARY_PATH
20323 # With GCC up to 2.95.x, collect2 would create an import file
20324 # for dependence libraries. The import file would start with
20325 # the line `#! .'. This would cause the generated library to
20326 # depend on `.', always an invalid library. This was fixed in
20327 # development snapshots of GCC prior to 3.0.
20329 aix4 | aix4.[01] | aix4.[01].*)
20330 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20332 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20335 can_build_shared=no
20339 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20340 # soname into executable. Probably we can add versioning support to
20341 # collect2, so additional links can be useful in future.
20342 if test "$aix_use_runtimelinking" = yes; then
20343 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20344 # instead of lib<name>.a to let people know that these are not
20345 # typical AIX shared libraries.
20346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20348 # We preserve .a as extension for shared libraries through AIX4.2
20349 # and later when we are not doing run time linking.
20350 library_names_spec='${libname}${release}.a $libname.a'
20351 soname_spec='${libname}${release}${shared_ext}$major'
20353 shlibpath_var=LIBPATH
20358 library_names_spec='$libname.ixlibrary $libname.a'
20359 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20360 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'
20364 library_names_spec='${libname}${shared_ext}'
20365 dynamic_linker="$host_os ld.so"
20366 shlibpath_var=LIBRARY_PATH
20372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20373 soname_spec='${libname}${release}${shared_ext}$major'
20374 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20375 shlibpath_var=LD_LIBRARY_PATH
20376 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20377 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20378 # the default ld.so.conf also contains /usr/contrib/lib and
20379 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20380 # libtool to hard-code these into programs
20383 cygwin* | mingw* | pw32*)
20384 version_type=windows
20389 case $GCC,$host_os in
20390 yes,cygwin* | yes,mingw* | yes,pw32*)
20391 library_names_spec='$libname.dll.a'
20392 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20393 postinstall_cmds='base_file=`basename \${file}`~
20394 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20395 dldir=$destdir/`dirname \$dlpath`~
20396 test -d \$dldir || mkdir -p \$dldir~
20397 $install_prog $dir/$dlname \$dldir/$dlname~
20398 chmod a+x \$dldir/$dlname'
20399 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20400 dlpath=$dir/\$dldll~
20402 shlibpath_overrides_runpath=yes
20406 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20407 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20408 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20411 # MinGW DLLs use traditional 'lib' prefix
20412 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20413 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20414 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20415 # It is most probably a Windows format PATH printed by
20416 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20417 # path with ; separators, and with drive letters. We can handle the
20418 # drive letters (cygwin fileutils understands them), so leave them,
20419 # especially as we might pass files found there to a mingw objdump,
20420 # which wouldn't understand a cygwinified path. Ahh.
20421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20423 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20427 # pw32 DLLs use 'pw' prefix rather than 'lib'
20428 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20434 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20437 dynamic_linker='Win32 ld.exe'
20438 # FIXME: first we should search . and the directory the executable is in
20442 darwin* | rhapsody*)
20443 dynamic_linker="$host_os dyld"
20444 version_type=darwin
20447 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20448 soname_spec='${libname}${release}${major}$shared_ext'
20449 shlibpath_overrides_runpath=yes
20450 shlibpath_var=DYLD_LIBRARY_PATH
20451 shrext_cmds='.dylib'
20452 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20453 if test "$GCC" = yes; then
20454 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"`
20456 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20458 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20466 soname_spec='${libname}${release}${shared_ext}$major'
20467 shlibpath_var=LD_LIBRARY_PATH
20478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20479 soname_spec='${libname}${release}${shared_ext}$major'
20480 shlibpath_var=LD_LIBRARY_PATH
20481 shlibpath_overrides_runpath=no
20482 hardcode_into_libs=yes
20483 dynamic_linker='GNU ld.so'
20486 freebsd* | dragonfly*)
20487 # DragonFly does not have aout. When/if they implement a new
20488 # versioning mechanism, adjust this.
20489 if test -x /usr/bin/objformat; then
20490 objformat=`/usr/bin/objformat`
20493 freebsd[123]*) objformat=aout ;;
20494 *) objformat=elf ;;
20497 version_type=freebsd-$objformat
20498 case $version_type in
20500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20505 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20509 shlibpath_var=LD_LIBRARY_PATH
20512 shlibpath_overrides_runpath=yes
20514 freebsd3.[01]* | freebsdelf3.[01]*)
20515 shlibpath_overrides_runpath=yes
20516 hardcode_into_libs=yes
20518 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20519 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20520 shlibpath_overrides_runpath=no
20521 hardcode_into_libs=yes
20523 freebsd*) # from 4.6 on
20524 shlibpath_overrides_runpath=yes
20525 hardcode_into_libs=yes
20534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20535 soname_spec='${libname}${release}${shared_ext}$major'
20536 shlibpath_var=LD_LIBRARY_PATH
20537 hardcode_into_libs=yes
20540 hpux9* | hpux10* | hpux11*)
20541 # Give a soname corresponding to the major version so that dld.sl refuses to
20542 # link against other versions.
20549 hardcode_into_libs=yes
20550 dynamic_linker="$host_os dld.so"
20551 shlibpath_var=LD_LIBRARY_PATH
20552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20554 soname_spec='${libname}${release}${shared_ext}$major'
20555 if test "X$HPUX_IA64_MODE" = X32; then
20556 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20558 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20560 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20564 hardcode_into_libs=yes
20565 dynamic_linker="$host_os dld.sl"
20566 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20569 soname_spec='${libname}${release}${shared_ext}$major'
20570 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20575 dynamic_linker="$host_os dld.sl"
20576 shlibpath_var=SHLIB_PATH
20577 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20579 soname_spec='${libname}${release}${shared_ext}$major'
20582 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20583 postinstall_cmds='chmod 555 $lib'
20590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20591 soname_spec='${libname}${release}${shared_ext}$major'
20592 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20593 shlibpath_var=LD_LIBRARY_PATH
20594 shlibpath_overrides_runpath=no
20595 hardcode_into_libs=yes
20598 irix5* | irix6* | nonstopux*)
20600 nonstopux*) version_type=nonstopux ;;
20602 if test "$lt_cv_prog_gnu_ld" = yes; then
20610 soname_spec='${libname}${release}${shared_ext}$major'
20611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20613 irix5* | nonstopux*)
20614 libsuff= shlibsuff=
20617 case $LD in # libtool.m4 will add one of these switches to LD
20618 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20619 libsuff= shlibsuff= libmagic=32-bit;;
20620 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20621 libsuff=32 shlibsuff=N32 libmagic=N32;;
20622 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20623 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20624 *) libsuff= shlibsuff= libmagic=never-match;;
20628 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20629 shlibpath_overrides_runpath=no
20630 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20631 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20632 hardcode_into_libs=yes
20635 # No shared lib support for Linux oldld, aout, or coff.
20636 linux*oldld* | linux*aout* | linux*coff*)
20640 # This must be Linux ELF.
20645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20646 soname_spec='${libname}${release}${shared_ext}$major'
20647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20648 shlibpath_var=LD_LIBRARY_PATH
20649 shlibpath_overrides_runpath=no
20650 # This implies no fast_install, which is unacceptable.
20651 # Some rework will be needed to allow for fast_install
20652 # before this can be enabled.
20653 hardcode_into_libs=yes
20655 # Append ld.so.conf contents to the search path
20656 if test -f /etc/ld.so.conf; then
20657 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' ' '`
20658 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20661 # We used to test for /lib/ld.so.1 and disable shared libraries on
20662 # powerpc, because MkLinux only supported shared libraries with the
20663 # GNU dynamic linker. Since this was broken with cross compilers,
20664 # most powerpc-linux boxes support dynamic linking these days and
20665 # people can always --disable-shared, the test was removed, and we
20666 # assume the GNU/Linux dynamic linker is in use.
20667 dynamic_linker='GNU/Linux ld.so'
20674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20675 soname_spec='${libname}${release}${shared_ext}$major'
20676 shlibpath_var=LD_LIBRARY_PATH
20677 shlibpath_overrides_runpath=no
20678 hardcode_into_libs=yes
20679 dynamic_linker='GNU ld.so'
20686 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20689 dynamic_linker='NetBSD (a.out) ld.so'
20691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20692 soname_spec='${libname}${release}${shared_ext}$major'
20693 dynamic_linker='NetBSD ld.elf_so'
20695 shlibpath_var=LD_LIBRARY_PATH
20696 shlibpath_overrides_runpath=yes
20697 hardcode_into_libs=yes
20702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20703 shlibpath_var=LD_LIBRARY_PATH
20704 shlibpath_overrides_runpath=yes
20711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20712 soname_spec='${libname}${release}${shared_ext}$major'
20713 shlibpath_var=LD_LIBRARY_PATH
20714 shlibpath_overrides_runpath=yes
20719 sys_lib_dlsearch_path_spec="/usr/lib"
20721 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20723 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20724 *) need_version=no ;;
20726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20728 shlibpath_var=LD_LIBRARY_PATH
20729 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20731 openbsd2.[89] | openbsd2.[89].*)
20732 shlibpath_overrides_runpath=no
20735 shlibpath_overrides_runpath=yes
20739 shlibpath_overrides_runpath=yes
20744 libname_spec='$name'
20747 library_names_spec='$libname${shared_ext} $libname.a'
20748 dynamic_linker='OS/2 ld.exe'
20749 shlibpath_var=LIBPATH
20752 osf3* | osf4* | osf5*)
20756 soname_spec='${libname}${release}${shared_ext}$major'
20757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20758 shlibpath_var=LD_LIBRARY_PATH
20759 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20760 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20768 soname_spec='${libname}${release}${shared_ext}$major'
20769 shlibpath_var=LD_LIBRARY_PATH
20770 shlibpath_overrides_runpath=yes
20771 hardcode_into_libs=yes
20772 # ldd complains unless libraries are executable
20773 postinstall_cmds='chmod +x $lib'
20778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20779 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20780 shlibpath_var=LD_LIBRARY_PATH
20781 shlibpath_overrides_runpath=yes
20782 if test "$with_gnu_ld" = yes; then
20790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20791 soname_spec='${libname}${release}${shared_ext}$major'
20792 shlibpath_var=LD_LIBRARY_PATH
20793 case $host_vendor in
20795 shlibpath_overrides_runpath=no
20797 export_dynamic_flag_spec='${wl}-Blargedynsym'
20798 runpath_var=LD_RUN_PATH
20806 shlibpath_overrides_runpath=no
20807 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20813 if test -d /usr/nec ;then
20815 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20816 soname_spec='$libname${shared_ext}.$major'
20817 shlibpath_var=LD_LIBRARY_PATH
20821 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20822 version_type=freebsd-elf
20825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20826 soname_spec='${libname}${release}${shared_ext}$major'
20827 shlibpath_var=LD_LIBRARY_PATH
20828 hardcode_into_libs=yes
20829 if test "$with_gnu_ld" = yes; then
20830 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20831 shlibpath_overrides_runpath=no
20833 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20834 shlibpath_overrides_runpath=yes
20837 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20841 sys_lib_dlsearch_path_spec='/usr/lib'
20846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20847 soname_spec='${libname}${release}${shared_ext}$major'
20848 shlibpath_var=LD_LIBRARY_PATH
20855 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20856 echo "${ECHO_T}$dynamic_linker" >&6; }
20857 test "$dynamic_linker" = no && can_build_shared=no
20859 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20860 if test "$GCC" = yes; then
20861 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20864 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20865 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20866 hardcode_action_CXX=
20867 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20868 test -n "$runpath_var_CXX" || \
20869 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20871 # We can hardcode non-existant directories.
20872 if test "$hardcode_direct_CXX" != no &&
20873 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20874 # have to relink, otherwise we might link with an installed library
20875 # when we should be linking with a yet-to-be-installed one
20876 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20877 test "$hardcode_minus_L_CXX" != no; then
20878 # Linking always hardcodes the temporary library directory.
20879 hardcode_action_CXX=relink
20881 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20882 hardcode_action_CXX=immediate
20885 # We cannot hardcode anything, or else we can only hardcode existing
20887 hardcode_action_CXX=unsupported
20889 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20890 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20892 if test "$hardcode_action_CXX" = relink; then
20893 # Fast installation is not supported
20894 enable_fast_install=no
20895 elif test "$shlibpath_overrides_runpath" = yes ||
20896 test "$enable_shared" = no; then
20897 # Fast installation is not necessary
20898 enable_fast_install=needless
20902 # The else clause should only fire when bootstrapping the
20903 # libtool distribution, otherwise you forgot to ship ltmain.sh
20904 # with your package, and you will get complaints that there are
20905 # no rules to generate ltmain.sh.
20906 if test -f "$ltmain"; then
20907 # See if we are running on zsh, and set the options which allow our commands through
20908 # without removal of \ escapes.
20909 if test -n "${ZSH_VERSION+set}" ; then
20910 setopt NO_GLOB_SUBST
20912 # Now quote all the things that may contain metacharacters while being
20913 # careful not to overquote the AC_SUBSTed values. We take copies of the
20914 # variables and quote the copies for generation of the libtool script.
20915 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20917 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20918 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20919 deplibs_check_method reload_flag reload_cmds need_locks \
20920 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20921 lt_cv_sys_global_symbol_to_c_name_address \
20922 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20923 old_postinstall_cmds old_postuninstall_cmds \
20927 lt_prog_compiler_wl_CXX \
20928 lt_prog_compiler_pic_CXX \
20929 lt_prog_compiler_static_CXX \
20930 lt_prog_compiler_no_builtin_flag_CXX \
20931 export_dynamic_flag_spec_CXX \
20932 thread_safe_flag_spec_CXX \
20933 whole_archive_flag_spec_CXX \
20934 enable_shared_with_static_runtimes_CXX \
20935 old_archive_cmds_CXX \
20936 old_archive_from_new_cmds_CXX \
20937 predep_objects_CXX \
20938 postdep_objects_CXX \
20941 compiler_lib_search_path_CXX \
20943 archive_expsym_cmds_CXX \
20944 postinstall_cmds_CXX \
20945 postuninstall_cmds_CXX \
20946 old_archive_from_expsyms_cmds_CXX \
20947 allow_undefined_flag_CXX \
20948 no_undefined_flag_CXX \
20949 export_symbols_cmds_CXX \
20950 hardcode_libdir_flag_spec_CXX \
20951 hardcode_libdir_flag_spec_ld_CXX \
20952 hardcode_libdir_separator_CXX \
20953 hardcode_automatic_CXX \
20955 module_expsym_cmds_CXX \
20956 lt_cv_prog_compiler_c_o_CXX \
20957 exclude_expsyms_CXX \
20958 include_expsyms_CXX; do
20961 old_archive_cmds_CXX | \
20962 old_archive_from_new_cmds_CXX | \
20963 archive_cmds_CXX | \
20964 archive_expsym_cmds_CXX | \
20965 module_cmds_CXX | \
20966 module_expsym_cmds_CXX | \
20967 old_archive_from_expsyms_cmds_CXX | \
20968 export_symbols_cmds_CXX | \
20969 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20970 postinstall_cmds | postuninstall_cmds | \
20971 old_postinstall_cmds | old_postuninstall_cmds | \
20972 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20973 # Double-quote double-evaled strings.
20974 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20977 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20983 *'\$0 --fallback-echo"')
20984 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20990 cat <<__EOF__ >> "$cfgfile"
20991 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20993 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20995 # Shell to use when invoking shell scripts.
20998 # Whether or not to build shared libraries.
20999 build_libtool_libs=$enable_shared
21001 # Whether or not to build static libraries.
21002 build_old_libs=$enable_static
21004 # Whether or not to add -lc for building shared libraries.
21005 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21007 # Whether or not to disallow shared libs when runtime libs are static
21008 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21010 # Whether or not to optimize for fast installation.
21011 fast_install=$enable_fast_install
21014 host_alias=$host_alias
21018 # The build system.
21019 build_alias=$build_alias
21023 # An echo program that does not interpret backslashes.
21028 AR_FLAGS=$lt_AR_FLAGS
21033 # LTCC compiler flags.
21034 LTCFLAGS=$lt_LTCFLAGS
21036 # A language-specific compiler.
21037 CC=$lt_compiler_CXX
21039 # Is the compiler the GNU C compiler?
21045 # The linker used to build libraries.
21048 # Whether we need hard or soft links.
21051 # A BSD-compatible nm program.
21054 # A symbol stripping program
21057 # Used to examine libraries when file_magic_cmd begins "file"
21058 MAGIC_CMD=$MAGIC_CMD
21060 # Used on cygwin: DLL creation program.
21063 # Used on cygwin: object dumper.
21066 # Used on cygwin: assembler.
21069 # The name of the directory that contains temporary libtool files.
21072 # How to create reloadable object files.
21073 reload_flag=$lt_reload_flag
21074 reload_cmds=$lt_reload_cmds
21076 # How to pass a linker flag through the compiler.
21077 wl=$lt_lt_prog_compiler_wl_CXX
21079 # Object file suffix (normally "o").
21080 objext="$ac_objext"
21082 # Old archive suffix (normally "a").
21085 # Shared library suffix (normally ".so").
21086 shrext_cmds='$shrext_cmds'
21088 # Executable file suffix (normally "").
21091 # Additional compiler flags for building library objects.
21092 pic_flag=$lt_lt_prog_compiler_pic_CXX
21095 # What is the maximum length of a command?
21096 max_cmd_len=$lt_cv_sys_max_cmd_len
21098 # Does compiler simultaneously support -c and -o options?
21099 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21101 # Must we lock files when doing compilation?
21102 need_locks=$lt_need_locks
21104 # Do we need the lib prefix for modules?
21105 need_lib_prefix=$need_lib_prefix
21107 # Do we need a version for libraries?
21108 need_version=$need_version
21110 # Whether dlopen is supported.
21111 dlopen_support=$enable_dlopen
21113 # Whether dlopen of programs is supported.
21114 dlopen_self=$enable_dlopen_self
21116 # Whether dlopen of statically linked programs is supported.
21117 dlopen_self_static=$enable_dlopen_self_static
21119 # Compiler flag to prevent dynamic linking.
21120 link_static_flag=$lt_lt_prog_compiler_static_CXX
21122 # Compiler flag to turn off builtin functions.
21123 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21125 # Compiler flag to allow reflexive dlopens.
21126 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21128 # Compiler flag to generate shared objects directly from archives.
21129 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21131 # Compiler flag to generate thread-safe objects.
21132 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21134 # Library versioning type.
21135 version_type=$version_type
21137 # Format of library name prefix.
21138 libname_spec=$lt_libname_spec
21140 # List of archive names. First name is the real one, the rest are links.
21141 # The last name is the one that the linker finds with -lNAME.
21142 library_names_spec=$lt_library_names_spec
21144 # The coded name of the library, if different from the real name.
21145 soname_spec=$lt_soname_spec
21147 # Commands used to build and install an old-style archive.
21149 old_archive_cmds=$lt_old_archive_cmds_CXX
21150 old_postinstall_cmds=$lt_old_postinstall_cmds
21151 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21153 # Create an old-style archive from a shared archive.
21154 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21156 # Create a temporary old-style archive to link instead of a shared archive.
21157 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21159 # Commands used to build and install a shared archive.
21160 archive_cmds=$lt_archive_cmds_CXX
21161 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21162 postinstall_cmds=$lt_postinstall_cmds
21163 postuninstall_cmds=$lt_postuninstall_cmds
21165 # Commands used to build a loadable module (assumed same as above if empty)
21166 module_cmds=$lt_module_cmds_CXX
21167 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21169 # Commands to strip libraries.
21170 old_striplib=$lt_old_striplib
21171 striplib=$lt_striplib
21173 # Dependencies to place before the objects being linked to create a
21175 predep_objects=$lt_predep_objects_CXX
21177 # Dependencies to place after the objects being linked to create a
21179 postdep_objects=$lt_postdep_objects_CXX
21181 # Dependencies to place before the objects being linked to create a
21183 predeps=$lt_predeps_CXX
21185 # Dependencies to place after the objects being linked to create a
21187 postdeps=$lt_postdeps_CXX
21189 # The library search path used internally by the compiler when linking
21190 # a shared library.
21191 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21193 # Method to check whether dependent libraries are shared objects.
21194 deplibs_check_method=$lt_deplibs_check_method
21196 # Command to use when deplibs_check_method == file_magic.
21197 file_magic_cmd=$lt_file_magic_cmd
21199 # Flag that allows shared libraries with undefined symbols to be built.
21200 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21202 # Flag that forces no undefined symbols.
21203 no_undefined_flag=$lt_no_undefined_flag_CXX
21205 # Commands used to finish a libtool library installation in a directory.
21206 finish_cmds=$lt_finish_cmds
21208 # Same as above, but a single script fragment to be evaled but not shown.
21209 finish_eval=$lt_finish_eval
21211 # Take the output of nm and produce a listing of raw symbols and C names.
21212 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21214 # Transform the output of nm in a proper C declaration
21215 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21217 # Transform the output of nm in a C name address pair
21218 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21220 # This is the shared library runtime path variable.
21221 runpath_var=$runpath_var
21223 # This is the shared library path variable.
21224 shlibpath_var=$shlibpath_var
21226 # Is shlibpath searched before the hard-coded library search path?
21227 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21229 # How to hardcode a shared library path into an executable.
21230 hardcode_action=$hardcode_action_CXX
21232 # Whether we should hardcode library paths into libraries.
21233 hardcode_into_libs=$hardcode_into_libs
21235 # Flag to hardcode \$libdir into a binary during linking.
21236 # This must work even if \$libdir does not exist.
21237 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21239 # If ld is used when linking, flag to hardcode \$libdir into
21240 # a binary during linking. This must work even if \$libdir does
21242 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21244 # Whether we need a single -rpath flag with a separated argument.
21245 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21247 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21248 # resulting binary.
21249 hardcode_direct=$hardcode_direct_CXX
21251 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21252 # resulting binary.
21253 hardcode_minus_L=$hardcode_minus_L_CXX
21255 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21256 # the resulting binary.
21257 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21259 # Set to yes if building a shared library automatically hardcodes DIR into the library
21260 # and all subsequent libraries and executables linked against it.
21261 hardcode_automatic=$hardcode_automatic_CXX
21263 # Variables whose values should be saved in libtool wrapper scripts and
21264 # restored at relink time.
21265 variables_saved_for_relink="$variables_saved_for_relink"
21267 # Whether libtool must link a program against all its dependency libraries.
21268 link_all_deplibs=$link_all_deplibs_CXX
21270 # Compile-time system search path for libraries
21271 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21273 # Run-time system search path for libraries
21274 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21276 # Fix the shell variable \$srcfile for the compiler.
21277 fix_srcfile_path="$fix_srcfile_path_CXX"
21279 # Set to yes if exported symbols are required.
21280 always_export_symbols=$always_export_symbols_CXX
21282 # The commands to list exported symbols.
21283 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21285 # The commands to extract the exported symbol list from a shared archive.
21286 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21288 # Symbols that should not be listed in the preloaded symbols.
21289 exclude_expsyms=$lt_exclude_expsyms_CXX
21291 # Symbols that must always be exported.
21292 include_expsyms=$lt_include_expsyms_CXX
21294 # ### END LIBTOOL TAG CONFIG: $tagname
21300 # If there is no Makefile yet, we rely on a make rule to execute
21301 # `config.status --recheck' to rerun these tests and create the
21302 # libtool script then.
21303 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21304 if test -f "$ltmain_in"; then
21305 test -f Makefile && make "$ltmain"
21311 ac_cpp='$CPP $CPPFLAGS'
21312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21320 with_gnu_ldcxx=$with_gnu_ld
21321 with_gnu_ld=$lt_save_with_gnu_ld
21322 lt_cv_path_LDCXX=$lt_cv_path_LD
21323 lt_cv_path_LD=$lt_save_path_LD
21324 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21325 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21333 if test -n "$F77" && test "X$F77" != "Xno"; then
21336 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21337 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21338 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21341 archive_cmds_need_lc_F77=no
21342 allow_undefined_flag_F77=
21343 always_export_symbols_F77=no
21344 archive_expsym_cmds_F77=
21345 export_dynamic_flag_spec_F77=
21346 hardcode_direct_F77=no
21347 hardcode_libdir_flag_spec_F77=
21348 hardcode_libdir_flag_spec_ld_F77=
21349 hardcode_libdir_separator_F77=
21350 hardcode_minus_L_F77=no
21351 hardcode_automatic_F77=no
21353 module_expsym_cmds_F77=
21354 link_all_deplibs_F77=unknown
21355 old_archive_cmds_F77=$old_archive_cmds
21356 no_undefined_flag_F77=
21357 whole_archive_flag_spec_F77=
21358 enable_shared_with_static_runtimes_F77=no
21360 # Source file extension for f77 test sources.
21363 # Object file extension for compiled f77 test sources.
21367 # Code to be used in simple compile tests
21368 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21370 # Code to be used in simple link tests
21371 lt_simple_link_test_code=" program t\n end\n"
21373 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21375 # If no C compiler was specified, use CC.
21378 # If no C compiler flags were specified, use CFLAGS.
21379 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21381 # Allow CC to be a program name with arguments.
21385 # save warnings/boilerplate of simple test code
21386 ac_outfile=conftest.$ac_objext
21387 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21388 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21389 _lt_compiler_boilerplate=`cat conftest.err`
21392 ac_outfile=conftest.$ac_objext
21393 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21394 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21395 _lt_linker_boilerplate=`cat conftest.err`
21399 # Allow CC to be a program name with arguments.
21404 for cc_temp in $compiler""; do
21406 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21407 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21412 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21415 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21416 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21417 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21418 echo "${ECHO_T}$can_build_shared" >&6; }
21420 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21421 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21422 test "$can_build_shared" = "no" && enable_shared=no
21424 # On AIX, shared libraries and static libraries use the same namespace, and
21425 # are all built from PIC.
21428 test "$enable_shared" = yes && enable_static=no
21429 if test -n "$RANLIB"; then
21430 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21431 postinstall_cmds='$RANLIB $lib'
21435 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21436 test "$enable_shared" = yes && enable_static=no
21440 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21441 echo "${ECHO_T}$enable_shared" >&6; }
21443 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21444 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21445 # Make sure either enable_shared or enable_static is yes.
21446 test "$enable_shared" = yes || enable_static=yes
21447 { echo "$as_me:$LINENO: result: $enable_static" >&5
21448 echo "${ECHO_T}$enable_static" >&6; }
21453 lt_prog_compiler_wl_F77=
21454 lt_prog_compiler_pic_F77=
21455 lt_prog_compiler_static_F77=
21457 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21458 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21460 if test "$GCC" = yes; then
21461 lt_prog_compiler_wl_F77='-Wl,'
21462 lt_prog_compiler_static_F77='-static'
21466 # All AIX code is PIC.
21467 if test "$host_cpu" = ia64; then
21468 # AIX 5 now supports IA64 processor
21469 lt_prog_compiler_static_F77='-Bstatic'
21474 # FIXME: we need at least 68020 code to build shared libraries, but
21475 # adding the `-m68020' flag to GCC prevents building anything better,
21477 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21480 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21481 # PIC is the default for these OSes.
21484 mingw* | pw32* | os2*)
21485 # This hack is so that the source file can tell whether it is being
21486 # built for inclusion in a dll (and should export symbols for example).
21487 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21490 darwin* | rhapsody*)
21491 # PIC is the default on this platform
21492 # Common symbols not allowed in MH_DYLIB files
21493 lt_prog_compiler_pic_F77='-fno-common'
21497 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21498 # Instead, we relocate shared libraries at runtime.
21502 # Just because we use GCC doesn't mean we suddenly get shared libraries
21503 # on systems that don't support them.
21504 lt_prog_compiler_can_build_shared_F77=no
21509 if test -d /usr/nec; then
21510 lt_prog_compiler_pic_F77=-Kconform_pic
21515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21516 # not for PA HP-UX.
21522 lt_prog_compiler_pic_F77='-fPIC'
21528 lt_prog_compiler_pic_F77='-fPIC'
21532 # PORTME Check for flag to pass linker flags through the system compiler.
21535 lt_prog_compiler_wl_F77='-Wl,'
21536 if test "$host_cpu" = ia64; then
21537 # AIX 5 now supports IA64 processor
21538 lt_prog_compiler_static_F77='-Bstatic'
21540 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21544 # PIC is the default on this platform
21545 # Common symbols not allowed in MH_DYLIB files
21546 case $cc_basename in
21548 lt_prog_compiler_pic_F77='-qnocommon'
21549 lt_prog_compiler_wl_F77='-Wl,'
21554 mingw* | pw32* | os2*)
21555 # This hack is so that the source file can tell whether it is being
21556 # built for inclusion in a dll (and should export symbols for example).
21557 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21560 hpux9* | hpux10* | hpux11*)
21561 lt_prog_compiler_wl_F77='-Wl,'
21562 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21563 # not for PA HP-UX.
21569 lt_prog_compiler_pic_F77='+Z'
21572 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21573 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21576 irix5* | irix6* | nonstopux*)
21577 lt_prog_compiler_wl_F77='-Wl,'
21578 # PIC (with -KPIC) is the default.
21579 lt_prog_compiler_static_F77='-non_shared'
21583 lt_prog_compiler_pic_F77='-KPIC'
21584 lt_prog_compiler_static_F77='-Bstatic'
21588 case $cc_basename in
21590 lt_prog_compiler_wl_F77='-Wl,'
21591 lt_prog_compiler_pic_F77='-KPIC'
21592 lt_prog_compiler_static_F77='-static'
21594 pgcc* | pgf77* | pgf90* | pgf95*)
21595 # Portland Group compilers (*not* the Pentium gcc compiler,
21596 # which looks to be a dead project)
21597 lt_prog_compiler_wl_F77='-Wl,'
21598 lt_prog_compiler_pic_F77='-fpic'
21599 lt_prog_compiler_static_F77='-Bstatic'
21602 lt_prog_compiler_wl_F77='-Wl,'
21603 # All Alpha code is PIC.
21604 lt_prog_compiler_static_F77='-non_shared'
21609 osf3* | osf4* | osf5*)
21610 lt_prog_compiler_wl_F77='-Wl,'
21611 # All OSF/1 code is PIC.
21612 lt_prog_compiler_static_F77='-non_shared'
21616 lt_prog_compiler_pic_F77='-KPIC'
21617 lt_prog_compiler_static_F77='-Bstatic'
21618 case $cc_basename in
21619 f77* | f90* | f95*)
21620 lt_prog_compiler_wl_F77='-Qoption ld ';;
21622 lt_prog_compiler_wl_F77='-Wl,';;
21627 lt_prog_compiler_wl_F77='-Qoption ld '
21628 lt_prog_compiler_pic_F77='-PIC'
21629 lt_prog_compiler_static_F77='-Bstatic'
21632 sysv4 | sysv4.2uw2* | sysv4.3*)
21633 lt_prog_compiler_wl_F77='-Wl,'
21634 lt_prog_compiler_pic_F77='-KPIC'
21635 lt_prog_compiler_static_F77='-Bstatic'
21639 if test -d /usr/nec ;then
21640 lt_prog_compiler_pic_F77='-Kconform_pic'
21641 lt_prog_compiler_static_F77='-Bstatic'
21645 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21646 lt_prog_compiler_wl_F77='-Wl,'
21647 lt_prog_compiler_pic_F77='-KPIC'
21648 lt_prog_compiler_static_F77='-Bstatic'
21652 lt_prog_compiler_wl_F77='-Wl,'
21653 lt_prog_compiler_can_build_shared_F77=no
21657 lt_prog_compiler_pic_F77='-pic'
21658 lt_prog_compiler_static_F77='-Bstatic'
21662 lt_prog_compiler_can_build_shared_F77=no
21667 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21668 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21671 # Check to make sure the PIC flag actually works.
21673 if test -n "$lt_prog_compiler_pic_F77"; then
21675 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21676 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21677 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21678 echo $ECHO_N "(cached) $ECHO_C" >&6
21680 lt_prog_compiler_pic_works_F77=no
21681 ac_outfile=conftest.$ac_objext
21682 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21683 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21684 # Insert the option either (1) after the last *FLAGS variable, or
21685 # (2) before a word containing "conftest.", or (3) at the end.
21686 # Note that $ac_compile itself does not contain backslashes and begins
21687 # with a dollar sign (not a hyphen), so the echo should work correctly.
21688 # The option is referenced via a variable to avoid confusing sed.
21689 lt_compile=`echo "$ac_compile" | $SED \
21690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21692 -e 's:$: $lt_compiler_flag:'`
21693 (eval echo "\"\$as_me:21693: $lt_compile\"" >&5)
21694 (eval "$lt_compile" 2>conftest.err)
21696 cat conftest.err >&5
21697 echo "$as_me:21697: \$? = $ac_status" >&5
21698 if (exit $ac_status) && test -s "$ac_outfile"; then
21699 # The compiler can only warn and ignore the option if not recognized
21700 # So say no if there are warnings other than the usual output.
21701 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21703 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21704 lt_prog_compiler_pic_works_F77=yes
21710 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21711 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21713 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21714 case $lt_prog_compiler_pic_F77 in
21716 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21719 lt_prog_compiler_pic_F77=
21720 lt_prog_compiler_can_build_shared_F77=no
21725 # For platforms which do not support PIC, -DPIC is meaningless:
21727 lt_prog_compiler_pic_F77=
21730 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21735 # Check to make sure the static flag actually works.
21737 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21738 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21739 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21740 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21741 echo $ECHO_N "(cached) $ECHO_C" >&6
21743 lt_prog_compiler_static_works_F77=no
21744 save_LDFLAGS="$LDFLAGS"
21745 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21746 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21747 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21748 # The linker can only warn and ignore the option if not recognized
21749 # So say no if there are warnings
21750 if test -s conftest.err; then
21751 # Append any errors to the config.log.
21752 cat conftest.err 1>&5
21753 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21754 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21755 if diff conftest.exp conftest.er2 >/dev/null; then
21756 lt_prog_compiler_static_works_F77=yes
21759 lt_prog_compiler_static_works_F77=yes
21763 LDFLAGS="$save_LDFLAGS"
21766 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21767 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21769 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21772 lt_prog_compiler_static_F77=
21776 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21777 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21778 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21779 echo $ECHO_N "(cached) $ECHO_C" >&6
21781 lt_cv_prog_compiler_c_o_F77=no
21782 $rm -r conftest 2>/dev/null
21786 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21788 lt_compiler_flag="-o out/conftest2.$ac_objext"
21789 # Insert the option either (1) after the last *FLAGS variable, or
21790 # (2) before a word containing "conftest.", or (3) at the end.
21791 # Note that $ac_compile itself does not contain backslashes and begins
21792 # with a dollar sign (not a hyphen), so the echo should work correctly.
21793 lt_compile=`echo "$ac_compile" | $SED \
21794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21796 -e 's:$: $lt_compiler_flag:'`
21797 (eval echo "\"\$as_me:21797: $lt_compile\"" >&5)
21798 (eval "$lt_compile" 2>out/conftest.err)
21800 cat out/conftest.err >&5
21801 echo "$as_me:21801: \$? = $ac_status" >&5
21802 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21804 # The compiler can only warn and ignore the option if not recognized
21805 # So say no if there are warnings
21806 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21807 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21808 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21809 lt_cv_prog_compiler_c_o_F77=yes
21814 # SGI C++ compiler will create directory out/ii_files/ for
21815 # template instantiation
21816 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21817 $rm out/* && rmdir out
21823 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21824 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21827 hard_links="nottested"
21828 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21829 # do not overwrite the value of need_locks provided by the user
21830 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21831 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21834 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21836 ln conftest.a conftest.b 2>&5 || hard_links=no
21837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21838 { echo "$as_me:$LINENO: result: $hard_links" >&5
21839 echo "${ECHO_T}$hard_links" >&6; }
21840 if test "$hard_links" = no; then
21841 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21842 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21849 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21850 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21853 allow_undefined_flag_F77=
21854 enable_shared_with_static_runtimes_F77=no
21856 archive_expsym_cmds_F77=
21857 old_archive_From_new_cmds_F77=
21858 old_archive_from_expsyms_cmds_F77=
21859 export_dynamic_flag_spec_F77=
21860 whole_archive_flag_spec_F77=
21861 thread_safe_flag_spec_F77=
21862 hardcode_libdir_flag_spec_F77=
21863 hardcode_libdir_flag_spec_ld_F77=
21864 hardcode_libdir_separator_F77=
21865 hardcode_direct_F77=no
21866 hardcode_minus_L_F77=no
21867 hardcode_shlibpath_var_F77=unsupported
21868 link_all_deplibs_F77=unknown
21869 hardcode_automatic_F77=no
21871 module_expsym_cmds_F77=
21872 always_export_symbols_F77=no
21873 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21874 # include_expsyms should be a list of space-separated symbols to be *always*
21875 # included in the symbol list
21876 include_expsyms_F77=
21877 # exclude_expsyms can be an extended regexp of symbols to exclude
21878 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21879 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21880 # as well as any symbol that contains `d'.
21881 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21882 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21883 # platforms (ab)use it in PIC code, but their linkers get confused if
21884 # the symbol is explicitly referenced. Since portable code cannot
21885 # rely on this symbol name, it's probably fine to never include it in
21886 # preloaded symbol tables.
21887 extract_expsyms_cmds=
21888 # Just being paranoid about ensuring that cc_basename is set.
21889 for cc_temp in $compiler""; do
21891 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21892 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21897 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21900 cygwin* | mingw* | pw32*)
21901 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21902 # When not using gcc, we currently assume that we are using
21903 # Microsoft Visual C++.
21904 if test "$GCC" != yes; then
21909 # we just hope/assume this is gcc and not c89 (= MSVC++)
21918 if test "$with_gnu_ld" = yes; then
21919 # If archive_cmds runs LD, not CC, wlarc should be empty
21922 # Set some defaults for GNU ld with shared library support. These
21923 # are reset later if shared libraries are not supported. Putting them
21924 # here allows them to be overridden if necessary.
21925 runpath_var=LD_RUN_PATH
21926 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21927 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21928 # ancient GNU ld didn't support --whole-archive et. al.
21929 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21930 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21932 whole_archive_flag_spec_F77=
21934 supports_anon_versioning=no
21935 case `$LD -v 2>/dev/null` in
21936 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21937 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21938 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21939 *\ 2.11.*) ;; # other 2.11 versions
21940 *) supports_anon_versioning=yes ;;
21943 # See if GNU ld supports shared libraries.
21945 aix3* | aix4* | aix5*)
21946 # On AIX/PPC, the GNU linker is very broken
21947 if test "$host_cpu" != ia64; then
21951 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21952 *** to be unable to reliably create shared libraries on AIX.
21953 *** Therefore, libtool is disabling shared libraries support. If you
21954 *** really care for shared libraries, you may want to modify your PATH
21955 *** so that a non-GNU linker is found, and then restart.
21962 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)'
21963 hardcode_libdir_flag_spec_F77='-L$libdir'
21964 hardcode_minus_L_F77=yes
21966 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21967 # that the semantics of dynamic libraries on AmigaOS, at least up
21968 # to version 4, is to share data among multiple programs linked
21969 # with the same dynamic library. Since this doesn't match the
21970 # behavior of shared libraries on other platforms, we can't use
21976 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21977 allow_undefined_flag_F77=unsupported
21978 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21979 # support --undefined. This deserves some investigation. FIXME
21980 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21986 cygwin* | mingw* | pw32*)
21987 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21988 # as there is no search path for DLLs.
21989 hardcode_libdir_flag_spec_F77='-L$libdir'
21990 allow_undefined_flag_F77=unsupported
21991 always_export_symbols_F77=no
21992 enable_shared_with_static_runtimes_F77=yes
21993 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21995 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21996 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21997 # If the export-symbols file already is a .def file (1st line
21998 # is EXPORTS), use it as is; otherwise, prepend...
21999 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22000 cp $export_symbols $output_objdir/$soname.def;
22002 echo EXPORTS > $output_objdir/$soname.def;
22003 cat $export_symbols >> $output_objdir/$soname.def;
22005 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22012 hardcode_direct_F77=no
22013 hardcode_shlibpath_var_F77=no
22014 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22015 export_dynamic_flag_spec_F77='${wl}-E'
22016 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22017 # Instead, shared libraries are loaded at an image base (0x10000000 by
22018 # default) and relocated if they conflict, which is a slow very memory
22019 # consuming and fragmenting process. To avoid this, we pick a random,
22020 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22021 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22022 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'
22023 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'
22027 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22029 case $cc_basename,$host_cpu in
22030 pgcc*) # Portland Group C compiler
22031 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'
22032 tmp_addflag=' $pic_flag'
22034 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22035 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'
22036 tmp_addflag=' $pic_flag -Mnomain' ;;
22037 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22038 tmp_addflag=' -i_dynamic' ;;
22039 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22040 tmp_addflag=' -i_dynamic -nofor_main' ;;
22041 ifc* | ifort*) # Intel Fortran compiler
22042 tmp_addflag=' -nofor_main' ;;
22044 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22046 if test $supports_anon_versioning = yes; then
22047 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22048 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22049 $echo "local: *; };" >> $output_objdir/$libname.ver~
22050 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22058 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22059 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22062 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22063 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22068 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22072 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22073 *** create shared libraries on Solaris systems. Therefore, libtool
22074 *** is disabling shared libraries support. We urge you to upgrade GNU
22075 *** binutils to release 2.9.1 or newer. Another option is to modify
22076 *** your PATH or compiler configuration so that the native linker is
22077 *** used, and then restart.
22080 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22081 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22082 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22088 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22089 case `$LD -v 2>&1` in
22090 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22094 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22095 *** reliably create shared libraries on SCO systems. Therefore, libtool
22096 *** is disabling shared libraries support. We urge you to upgrade GNU
22097 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22098 *** your PATH or compiler configuration so that the native linker is
22099 *** used, and then restart.
22104 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22105 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22106 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22107 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22116 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22118 hardcode_direct_F77=yes
22119 hardcode_shlibpath_var_F77=no
22123 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22124 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22125 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22132 if test "$ld_shlibs_F77" = no; then
22134 hardcode_libdir_flag_spec_F77=
22135 export_dynamic_flag_spec_F77=
22136 whole_archive_flag_spec_F77=
22139 # PORTME fill in a description of your system's linker (not GNU ld)
22142 allow_undefined_flag_F77=unsupported
22143 always_export_symbols_F77=yes
22144 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'
22145 # Note: this linker hardcodes the directories in LIBPATH if there
22146 # are no directories specified by -L.
22147 hardcode_minus_L_F77=yes
22148 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22149 # Neither direct hardcoding nor static linking is supported with a
22151 hardcode_direct_F77=unsupported
22156 if test "$host_cpu" = ia64; then
22157 # On IA64, the linker does run time linking by default, so we don't
22158 # have to do anything special.
22159 aix_use_runtimelinking=no
22160 exp_sym_flag='-Bexport'
22163 # If we're using GNU nm, then we don't want the "-C" option.
22164 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22165 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22166 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'
22168 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'
22170 aix_use_runtimelinking=no
22172 # Test if we are trying to use run time linking or normal
22173 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22174 # need to do runtime linking.
22175 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22176 for ld_flag in $LDFLAGS; do
22177 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22178 aix_use_runtimelinking=yes
22185 exp_sym_flag='-bexport'
22186 no_entry_flag='-bnoentry'
22189 # When large executables or shared objects are built, AIX ld can
22190 # have problems creating the table of contents. If linking a library
22191 # or program results in "error TOC overflow" add -mminimal-toc to
22192 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22193 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22195 archive_cmds_F77=''
22196 hardcode_direct_F77=yes
22197 hardcode_libdir_separator_F77=':'
22198 link_all_deplibs_F77=yes
22200 if test "$GCC" = yes; then
22201 case $host_os in aix4.[012]|aix4.[012].*)
22202 # We only want to do this on AIX 4.2 and lower, the check
22203 # below for broken collect2 doesn't work under 4.3+
22204 collect2name=`${CC} -print-prog-name=collect2`
22205 if test -f "$collect2name" && \
22206 strings "$collect2name" | grep resolve_lib_name >/dev/null
22208 # We have reworked collect2
22209 hardcode_direct_F77=yes
22211 # We have old collect2
22212 hardcode_direct_F77=unsupported
22213 # It fails to find uninstalled libraries when the uninstalled
22214 # path is not listed in the libpath. Setting hardcode_minus_L
22215 # to unsupported forces relinking
22216 hardcode_minus_L_F77=yes
22217 hardcode_libdir_flag_spec_F77='-L$libdir'
22218 hardcode_libdir_separator_F77=
22222 shared_flag='-shared'
22223 if test "$aix_use_runtimelinking" = yes; then
22224 shared_flag="$shared_flag "'${wl}-G'
22228 if test "$host_cpu" = ia64; then
22229 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22230 # chokes on -Wl,-G. The following line is correct:
22233 if test "$aix_use_runtimelinking" = yes; then
22234 shared_flag='${wl}-G'
22236 shared_flag='${wl}-bM:SRE'
22241 # It seems that -bexpall does not export symbols beginning with
22242 # underscore (_), so it is better to generate a list of symbols to export.
22243 always_export_symbols_F77=yes
22244 if test "$aix_use_runtimelinking" = yes; then
22245 # Warning - without using the other runtime loading flags (-brtl),
22246 # -berok will link without error, but may produce a broken library.
22247 allow_undefined_flag_F77='-berok'
22248 # Determine the default libpath from the value encoded in an empty executable.
22249 cat >conftest.$ac_ext <<_ACEOF
22254 rm -f conftest.$ac_objext conftest$ac_exeext
22255 if { (ac_try="$ac_link"
22256 case "(($ac_try" in
22257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22258 *) ac_try_echo=$ac_try;;
22260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22261 (eval "$ac_link") 2>conftest.er1
22263 grep -v '^ *+' conftest.er1 >conftest.err
22265 cat conftest.err >&5
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); } &&
22268 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22269 { (case "(($ac_try" in
22270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271 *) ac_try_echo=$ac_try;;
22273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22274 (eval "$ac_try") 2>&5
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); }; } &&
22278 { ac_try='test -s conftest$ac_exeext'
22279 { (case "(($ac_try" in
22280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281 *) ac_try_echo=$ac_try;;
22283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22284 (eval "$ac_try") 2>&5
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); }; }; then
22289 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22291 # Check for a 64-bit object if we didn't find anything.
22292 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; }
22295 echo "$as_me: failed program was:" >&5
22296 sed 's/^/| /' conftest.$ac_ext >&5
22301 rm -f core conftest.err conftest.$ac_objext \
22302 conftest$ac_exeext conftest.$ac_ext
22303 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22305 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22306 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"
22308 if test "$host_cpu" = ia64; then
22309 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22310 allow_undefined_flag_F77="-z nodefs"
22311 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"
22313 # Determine the default libpath from the value encoded in an empty executable.
22314 cat >conftest.$ac_ext <<_ACEOF
22319 rm -f conftest.$ac_objext conftest$ac_exeext
22320 if { (ac_try="$ac_link"
22321 case "(($ac_try" in
22322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22323 *) ac_try_echo=$ac_try;;
22325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22326 (eval "$ac_link") 2>conftest.er1
22328 grep -v '^ *+' conftest.er1 >conftest.err
22330 cat conftest.err >&5
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); } &&
22333 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22334 { (case "(($ac_try" in
22335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22336 *) ac_try_echo=$ac_try;;
22338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22339 (eval "$ac_try") 2>&5
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); }; } &&
22343 { ac_try='test -s conftest$ac_exeext'
22344 { (case "(($ac_try" in
22345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22346 *) ac_try_echo=$ac_try;;
22348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22349 (eval "$ac_try") 2>&5
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); }; }; then
22354 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22356 # Check for a 64-bit object if we didn't find anything.
22357 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; }
22360 echo "$as_me: failed program was:" >&5
22361 sed 's/^/| /' conftest.$ac_ext >&5
22366 rm -f core conftest.err conftest.$ac_objext \
22367 conftest$ac_exeext conftest.$ac_ext
22368 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22370 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22371 # Warning - without using the other run time loading flags,
22372 # -berok will link without error, but may produce a broken library.
22373 no_undefined_flag_F77=' ${wl}-bernotok'
22374 allow_undefined_flag_F77=' ${wl}-berok'
22375 # Exported symbols can be pulled into shared objects from archives
22376 whole_archive_flag_spec_F77='$convenience'
22377 archive_cmds_need_lc_F77=yes
22378 # This is similar to how AIX traditionally builds its shared libraries.
22379 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'
22385 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)'
22386 hardcode_libdir_flag_spec_F77='-L$libdir'
22387 hardcode_minus_L_F77=yes
22388 # see comment about different semantics on the GNU ld section
22393 export_dynamic_flag_spec_F77=-rdynamic
22396 cygwin* | mingw* | pw32*)
22397 # When not using gcc, we currently assume that we are using
22398 # Microsoft Visual C++.
22399 # hardcode_libdir_flag_spec is actually meaningless, as there is
22400 # no search path for DLLs.
22401 hardcode_libdir_flag_spec_F77=' '
22402 allow_undefined_flag_F77=unsupported
22403 # Tell ltmain to make .lib files, not .a files.
22405 # Tell ltmain to make .dll files, not .so files.
22407 # FIXME: Setting linknames here is a bad hack.
22408 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22409 # The linker will automatically build a .lib file if we build a DLL.
22410 old_archive_From_new_cmds_F77='true'
22411 # FIXME: Should let the user specify the lib program.
22412 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22413 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22414 enable_shared_with_static_runtimes_F77=yes
22417 darwin* | rhapsody*)
22419 rhapsody* | darwin1.[012])
22420 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22423 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22424 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22426 case ${MACOSX_DEPLOYMENT_TARGET} in
22428 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22431 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22437 archive_cmds_need_lc_F77=no
22438 hardcode_direct_F77=no
22439 hardcode_automatic_F77=yes
22440 hardcode_shlibpath_var_F77=unsupported
22441 whole_archive_flag_spec_F77=''
22442 link_all_deplibs_F77=yes
22443 if test "$GCC" = yes ; then
22444 output_verbose_link_cmd='echo'
22445 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22446 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22447 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22448 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}'
22449 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}'
22451 case $cc_basename in
22453 output_verbose_link_cmd='echo'
22454 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22455 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22456 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22457 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}'
22458 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}'
22468 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22469 hardcode_libdir_flag_spec_F77='-L$libdir'
22470 hardcode_shlibpath_var_F77=no
22477 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22478 # support. Future versions do this automatically, but an explicit c++rt0.o
22479 # does not break anything, and helps significantly (at the cost of a little
22482 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22483 hardcode_libdir_flag_spec_F77='-R$libdir'
22484 hardcode_direct_F77=yes
22485 hardcode_shlibpath_var_F77=no
22488 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22490 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22491 hardcode_direct_F77=yes
22492 hardcode_minus_L_F77=yes
22493 hardcode_shlibpath_var_F77=no
22496 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22497 freebsd* | kfreebsd*-gnu | dragonfly*)
22498 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22499 hardcode_libdir_flag_spec_F77='-R$libdir'
22500 hardcode_direct_F77=yes
22501 hardcode_shlibpath_var_F77=no
22505 if test "$GCC" = yes; then
22506 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'
22508 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'
22510 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22511 hardcode_libdir_separator_F77=:
22512 hardcode_direct_F77=yes
22514 # hardcode_minus_L: Not really in the search PATH,
22515 # but as the default location of the library.
22516 hardcode_minus_L_F77=yes
22517 export_dynamic_flag_spec_F77='${wl}-E'
22521 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22522 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22524 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22526 if test "$with_gnu_ld" = no; then
22527 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22528 hardcode_libdir_separator_F77=:
22530 hardcode_direct_F77=yes
22531 export_dynamic_flag_spec_F77='${wl}-E'
22533 # hardcode_minus_L: Not really in the search PATH,
22534 # but as the default location of the library.
22535 hardcode_minus_L_F77=yes
22540 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22543 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22546 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22549 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22555 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22558 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22561 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22565 if test "$with_gnu_ld" = no; then
22566 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22567 hardcode_libdir_separator_F77=:
22571 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22572 hardcode_direct_F77=no
22573 hardcode_shlibpath_var_F77=no
22576 hardcode_direct_F77=yes
22577 export_dynamic_flag_spec_F77='${wl}-E'
22579 # hardcode_minus_L: Not really in the search PATH,
22580 # but as the default location of the library.
22581 hardcode_minus_L_F77=yes
22587 irix5* | irix6* | nonstopux*)
22588 if test "$GCC" = yes; then
22589 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'
22591 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'
22592 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22594 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22595 hardcode_libdir_separator_F77=:
22596 link_all_deplibs_F77=yes
22600 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22601 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22603 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22605 hardcode_libdir_flag_spec_F77='-R$libdir'
22606 hardcode_direct_F77=yes
22607 hardcode_shlibpath_var_F77=no
22611 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22612 hardcode_direct_F77=yes
22613 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22614 hardcode_libdir_separator_F77=:
22615 hardcode_shlibpath_var_F77=no
22619 hardcode_direct_F77=yes
22620 hardcode_shlibpath_var_F77=no
22621 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22622 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22623 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22624 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22625 export_dynamic_flag_spec_F77='${wl}-E'
22628 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22629 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22630 hardcode_libdir_flag_spec_F77='-R$libdir'
22633 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22634 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22641 hardcode_libdir_flag_spec_F77='-L$libdir'
22642 hardcode_minus_L_F77=yes
22643 allow_undefined_flag_F77=unsupported
22644 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'
22645 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22649 if test "$GCC" = yes; then
22650 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22651 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'
22653 allow_undefined_flag_F77=' -expect_unresolved \*'
22654 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'
22656 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22657 hardcode_libdir_separator_F77=:
22660 osf4* | osf5*) # as osf3* with the addition of -msym flag
22661 if test "$GCC" = yes; then
22662 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22663 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'
22664 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22666 allow_undefined_flag_F77=' -expect_unresolved \*'
22667 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'
22668 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~
22669 $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'
22671 # Both c and cxx compiler support -rpath directly
22672 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22674 hardcode_libdir_separator_F77=:
22678 no_undefined_flag_F77=' -z text'
22679 if test "$GCC" = yes; then
22681 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22682 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22683 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22686 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22687 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22688 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22690 hardcode_libdir_flag_spec_F77='-R$libdir'
22691 hardcode_shlibpath_var_F77=no
22693 solaris2.[0-5] | solaris2.[0-5].*) ;;
22695 # The compiler driver will combine linker options so we
22696 # cannot just pass the convience library names through
22697 # without $wl, iff we do not link with $LD.
22698 # Luckily, gcc supports the same syntax we need for Sun Studio.
22699 # Supported since Solaris 2.6 (maybe 2.5.1?)
22702 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22704 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' ;;
22707 link_all_deplibs_F77=yes
22711 if test "x$host_vendor" = xsequent; then
22712 # Use $CC to link under sequent, because it throws in some extra .o
22713 # files that make .init and .fini sections work.
22714 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22716 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22718 hardcode_libdir_flag_spec_F77='-L$libdir'
22719 hardcode_direct_F77=yes
22720 hardcode_minus_L_F77=yes
22721 hardcode_shlibpath_var_F77=no
22725 case $host_vendor in
22727 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22728 hardcode_direct_F77=yes # is this really true???
22731 ## LD is ld it makes a PLAMLIB
22732 ## CC just makes a GrossModule.
22733 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22734 reload_cmds_F77='$CC -r -o $output$reload_objs'
22735 hardcode_direct_F77=no
22738 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22739 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22742 runpath_var='LD_RUN_PATH'
22743 hardcode_shlibpath_var_F77=no
22747 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22748 hardcode_shlibpath_var_F77=no
22749 export_dynamic_flag_spec_F77='-Bexport'
22753 if test -d /usr/nec; then
22754 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22755 hardcode_shlibpath_var_F77=no
22756 runpath_var=LD_RUN_PATH
22757 hardcode_runpath_var=yes
22762 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22763 no_undefined_flag_F77='${wl}-z,text'
22764 archive_cmds_need_lc_F77=no
22765 hardcode_shlibpath_var_F77=no
22766 runpath_var='LD_RUN_PATH'
22768 if test "$GCC" = yes; then
22769 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22770 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22772 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22773 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22777 sysv5* | sco3.2v5* | sco5v6*)
22778 # Note: We can NOT use -z defs as we might desire, because we do not
22779 # link with -lc, and that would cause any symbols used from libc to
22780 # always be unresolved, which means just about no library would
22781 # ever link correctly. If we're not using GNU ld we use -z text
22782 # though, which does catch some bad symbols but isn't as heavy-handed
22784 no_undefined_flag_F77='${wl}-z,text'
22785 allow_undefined_flag_F77='${wl}-z,nodefs'
22786 archive_cmds_need_lc_F77=no
22787 hardcode_shlibpath_var_F77=no
22788 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22789 hardcode_libdir_separator_F77=':'
22790 link_all_deplibs_F77=yes
22791 export_dynamic_flag_spec_F77='${wl}-Bexport'
22792 runpath_var='LD_RUN_PATH'
22794 if test "$GCC" = yes; then
22795 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22796 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22798 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22799 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22804 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22805 hardcode_libdir_flag_spec_F77='-L$libdir'
22806 hardcode_shlibpath_var_F77=no
22815 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22816 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22817 test "$ld_shlibs_F77" = no && can_build_shared=no
22820 # Do we need to explicitly link libc?
22822 case "x$archive_cmds_need_lc_F77" in
22824 # Assume -lc should be added
22825 archive_cmds_need_lc_F77=yes
22827 if test "$enable_shared" = yes && test "$GCC" = yes; then
22828 case $archive_cmds_F77 in
22830 # FIXME: we may have to deal with multi-command sequences.
22833 # Test whether the compiler implicitly links with -lc since on some
22834 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22835 # to ld, don't add -lc before -lgcc.
22836 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22837 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22839 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22842 (eval $ac_compile) 2>&5
22844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); } 2>conftest.err; then
22848 libobjs=conftest.$ac_objext
22850 wl=$lt_prog_compiler_wl_F77
22851 pic_flag=$lt_prog_compiler_pic_F77
22857 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22858 allow_undefined_flag_F77=
22859 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22860 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); }
22865 archive_cmds_need_lc_F77=no
22867 archive_cmds_need_lc_F77=yes
22869 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22871 cat conftest.err 1>&5
22874 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22875 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22882 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22883 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22884 library_names_spec=
22885 libname_spec='lib$name'
22889 postuninstall_cmds=
22893 shlibpath_overrides_runpath=unknown
22895 dynamic_linker="$host_os ld.so"
22896 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22897 if test "$GCC" = yes; then
22898 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22899 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22900 # if the path contains ";" then we assume it to be the separator
22901 # otherwise default to the standard path separator (i.e. ":") - it is
22902 # assumed that no part of a normal pathname contains ";" but that should
22903 # okay in the real world where ";" in dirpaths is itself problematic.
22904 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22906 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22909 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22911 need_lib_prefix=unknown
22912 hardcode_into_libs=no
22914 # when you set need_version to no, make sure it does not cause -set_version
22915 # flags to be left without arguments
22916 need_version=unknown
22921 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22922 shlibpath_var=LIBPATH
22924 # AIX 3 has no versioning support, so we append a major version to the name.
22925 soname_spec='${libname}${release}${shared_ext}$major'
22932 hardcode_into_libs=yes
22933 if test "$host_cpu" = ia64; then
22934 # AIX 5 supports IA64
22935 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22936 shlibpath_var=LD_LIBRARY_PATH
22938 # With GCC up to 2.95.x, collect2 would create an import file
22939 # for dependence libraries. The import file would start with
22940 # the line `#! .'. This would cause the generated library to
22941 # depend on `.', always an invalid library. This was fixed in
22942 # development snapshots of GCC prior to 3.0.
22944 aix4 | aix4.[01] | aix4.[01].*)
22945 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22947 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22950 can_build_shared=no
22954 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22955 # soname into executable. Probably we can add versioning support to
22956 # collect2, so additional links can be useful in future.
22957 if test "$aix_use_runtimelinking" = yes; then
22958 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22959 # instead of lib<name>.a to let people know that these are not
22960 # typical AIX shared libraries.
22961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22963 # We preserve .a as extension for shared libraries through AIX4.2
22964 # and later when we are not doing run time linking.
22965 library_names_spec='${libname}${release}.a $libname.a'
22966 soname_spec='${libname}${release}${shared_ext}$major'
22968 shlibpath_var=LIBPATH
22973 library_names_spec='$libname.ixlibrary $libname.a'
22974 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22975 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'
22979 library_names_spec='${libname}${shared_ext}'
22980 dynamic_linker="$host_os ld.so"
22981 shlibpath_var=LIBRARY_PATH
22987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22988 soname_spec='${libname}${release}${shared_ext}$major'
22989 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22990 shlibpath_var=LD_LIBRARY_PATH
22991 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22992 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22993 # the default ld.so.conf also contains /usr/contrib/lib and
22994 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22995 # libtool to hard-code these into programs
22998 cygwin* | mingw* | pw32*)
22999 version_type=windows
23004 case $GCC,$host_os in
23005 yes,cygwin* | yes,mingw* | yes,pw32*)
23006 library_names_spec='$libname.dll.a'
23007 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23008 postinstall_cmds='base_file=`basename \${file}`~
23009 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23010 dldir=$destdir/`dirname \$dlpath`~
23011 test -d \$dldir || mkdir -p \$dldir~
23012 $install_prog $dir/$dlname \$dldir/$dlname~
23013 chmod a+x \$dldir/$dlname'
23014 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23015 dlpath=$dir/\$dldll~
23017 shlibpath_overrides_runpath=yes
23021 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23022 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23023 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23026 # MinGW DLLs use traditional 'lib' prefix
23027 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23028 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23029 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23030 # It is most probably a Windows format PATH printed by
23031 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23032 # path with ; separators, and with drive letters. We can handle the
23033 # drive letters (cygwin fileutils understands them), so leave them,
23034 # especially as we might pass files found there to a mingw objdump,
23035 # which wouldn't understand a cygwinified path. Ahh.
23036 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23038 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23042 # pw32 DLLs use 'pw' prefix rather than 'lib'
23043 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23049 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23052 dynamic_linker='Win32 ld.exe'
23053 # FIXME: first we should search . and the directory the executable is in
23057 darwin* | rhapsody*)
23058 dynamic_linker="$host_os dyld"
23059 version_type=darwin
23062 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23063 soname_spec='${libname}${release}${major}$shared_ext'
23064 shlibpath_overrides_runpath=yes
23065 shlibpath_var=DYLD_LIBRARY_PATH
23066 shrext_cmds='.dylib'
23067 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23068 if test "$GCC" = yes; then
23069 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"`
23071 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23073 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23081 soname_spec='${libname}${release}${shared_ext}$major'
23082 shlibpath_var=LD_LIBRARY_PATH
23093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23094 soname_spec='${libname}${release}${shared_ext}$major'
23095 shlibpath_var=LD_LIBRARY_PATH
23096 shlibpath_overrides_runpath=no
23097 hardcode_into_libs=yes
23098 dynamic_linker='GNU ld.so'
23101 freebsd* | dragonfly*)
23102 # DragonFly does not have aout. When/if they implement a new
23103 # versioning mechanism, adjust this.
23104 if test -x /usr/bin/objformat; then
23105 objformat=`/usr/bin/objformat`
23108 freebsd[123]*) objformat=aout ;;
23109 *) objformat=elf ;;
23112 version_type=freebsd-$objformat
23113 case $version_type in
23115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23120 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23124 shlibpath_var=LD_LIBRARY_PATH
23127 shlibpath_overrides_runpath=yes
23129 freebsd3.[01]* | freebsdelf3.[01]*)
23130 shlibpath_overrides_runpath=yes
23131 hardcode_into_libs=yes
23133 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23134 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23135 shlibpath_overrides_runpath=no
23136 hardcode_into_libs=yes
23138 freebsd*) # from 4.6 on
23139 shlibpath_overrides_runpath=yes
23140 hardcode_into_libs=yes
23149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23150 soname_spec='${libname}${release}${shared_ext}$major'
23151 shlibpath_var=LD_LIBRARY_PATH
23152 hardcode_into_libs=yes
23155 hpux9* | hpux10* | hpux11*)
23156 # Give a soname corresponding to the major version so that dld.sl refuses to
23157 # link against other versions.
23164 hardcode_into_libs=yes
23165 dynamic_linker="$host_os dld.so"
23166 shlibpath_var=LD_LIBRARY_PATH
23167 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23169 soname_spec='${libname}${release}${shared_ext}$major'
23170 if test "X$HPUX_IA64_MODE" = X32; then
23171 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23173 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23175 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23179 hardcode_into_libs=yes
23180 dynamic_linker="$host_os dld.sl"
23181 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23182 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23184 soname_spec='${libname}${release}${shared_ext}$major'
23185 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23186 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23190 dynamic_linker="$host_os dld.sl"
23191 shlibpath_var=SHLIB_PATH
23192 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23194 soname_spec='${libname}${release}${shared_ext}$major'
23197 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23198 postinstall_cmds='chmod 555 $lib'
23205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23206 soname_spec='${libname}${release}${shared_ext}$major'
23207 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23208 shlibpath_var=LD_LIBRARY_PATH
23209 shlibpath_overrides_runpath=no
23210 hardcode_into_libs=yes
23213 irix5* | irix6* | nonstopux*)
23215 nonstopux*) version_type=nonstopux ;;
23217 if test "$lt_cv_prog_gnu_ld" = yes; then
23225 soname_spec='${libname}${release}${shared_ext}$major'
23226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23228 irix5* | nonstopux*)
23229 libsuff= shlibsuff=
23232 case $LD in # libtool.m4 will add one of these switches to LD
23233 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23234 libsuff= shlibsuff= libmagic=32-bit;;
23235 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23236 libsuff=32 shlibsuff=N32 libmagic=N32;;
23237 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23238 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23239 *) libsuff= shlibsuff= libmagic=never-match;;
23243 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23244 shlibpath_overrides_runpath=no
23245 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23246 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23247 hardcode_into_libs=yes
23250 # No shared lib support for Linux oldld, aout, or coff.
23251 linux*oldld* | linux*aout* | linux*coff*)
23255 # This must be Linux ELF.
23260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23261 soname_spec='${libname}${release}${shared_ext}$major'
23262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23263 shlibpath_var=LD_LIBRARY_PATH
23264 shlibpath_overrides_runpath=no
23265 # This implies no fast_install, which is unacceptable.
23266 # Some rework will be needed to allow for fast_install
23267 # before this can be enabled.
23268 hardcode_into_libs=yes
23270 # Append ld.so.conf contents to the search path
23271 if test -f /etc/ld.so.conf; then
23272 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' ' '`
23273 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23276 # We used to test for /lib/ld.so.1 and disable shared libraries on
23277 # powerpc, because MkLinux only supported shared libraries with the
23278 # GNU dynamic linker. Since this was broken with cross compilers,
23279 # most powerpc-linux boxes support dynamic linking these days and
23280 # people can always --disable-shared, the test was removed, and we
23281 # assume the GNU/Linux dynamic linker is in use.
23282 dynamic_linker='GNU/Linux ld.so'
23289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23290 soname_spec='${libname}${release}${shared_ext}$major'
23291 shlibpath_var=LD_LIBRARY_PATH
23292 shlibpath_overrides_runpath=no
23293 hardcode_into_libs=yes
23294 dynamic_linker='GNU ld.so'
23301 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23304 dynamic_linker='NetBSD (a.out) ld.so'
23306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23307 soname_spec='${libname}${release}${shared_ext}$major'
23308 dynamic_linker='NetBSD ld.elf_so'
23310 shlibpath_var=LD_LIBRARY_PATH
23311 shlibpath_overrides_runpath=yes
23312 hardcode_into_libs=yes
23317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23318 shlibpath_var=LD_LIBRARY_PATH
23319 shlibpath_overrides_runpath=yes
23326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23327 soname_spec='${libname}${release}${shared_ext}$major'
23328 shlibpath_var=LD_LIBRARY_PATH
23329 shlibpath_overrides_runpath=yes
23334 sys_lib_dlsearch_path_spec="/usr/lib"
23336 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23338 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23339 *) need_version=no ;;
23341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23343 shlibpath_var=LD_LIBRARY_PATH
23344 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23346 openbsd2.[89] | openbsd2.[89].*)
23347 shlibpath_overrides_runpath=no
23350 shlibpath_overrides_runpath=yes
23354 shlibpath_overrides_runpath=yes
23359 libname_spec='$name'
23362 library_names_spec='$libname${shared_ext} $libname.a'
23363 dynamic_linker='OS/2 ld.exe'
23364 shlibpath_var=LIBPATH
23367 osf3* | osf4* | osf5*)
23371 soname_spec='${libname}${release}${shared_ext}$major'
23372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23373 shlibpath_var=LD_LIBRARY_PATH
23374 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23375 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23383 soname_spec='${libname}${release}${shared_ext}$major'
23384 shlibpath_var=LD_LIBRARY_PATH
23385 shlibpath_overrides_runpath=yes
23386 hardcode_into_libs=yes
23387 # ldd complains unless libraries are executable
23388 postinstall_cmds='chmod +x $lib'
23393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23394 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23395 shlibpath_var=LD_LIBRARY_PATH
23396 shlibpath_overrides_runpath=yes
23397 if test "$with_gnu_ld" = yes; then
23405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23406 soname_spec='${libname}${release}${shared_ext}$major'
23407 shlibpath_var=LD_LIBRARY_PATH
23408 case $host_vendor in
23410 shlibpath_overrides_runpath=no
23412 export_dynamic_flag_spec='${wl}-Blargedynsym'
23413 runpath_var=LD_RUN_PATH
23421 shlibpath_overrides_runpath=no
23422 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23428 if test -d /usr/nec ;then
23430 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23431 soname_spec='$libname${shared_ext}.$major'
23432 shlibpath_var=LD_LIBRARY_PATH
23436 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23437 version_type=freebsd-elf
23440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23441 soname_spec='${libname}${release}${shared_ext}$major'
23442 shlibpath_var=LD_LIBRARY_PATH
23443 hardcode_into_libs=yes
23444 if test "$with_gnu_ld" = yes; then
23445 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23446 shlibpath_overrides_runpath=no
23448 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23449 shlibpath_overrides_runpath=yes
23452 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23456 sys_lib_dlsearch_path_spec='/usr/lib'
23461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23462 soname_spec='${libname}${release}${shared_ext}$major'
23463 shlibpath_var=LD_LIBRARY_PATH
23470 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23471 echo "${ECHO_T}$dynamic_linker" >&6; }
23472 test "$dynamic_linker" = no && can_build_shared=no
23474 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23475 if test "$GCC" = yes; then
23476 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23479 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23480 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23481 hardcode_action_F77=
23482 if test -n "$hardcode_libdir_flag_spec_F77" || \
23483 test -n "$runpath_var_F77" || \
23484 test "X$hardcode_automatic_F77" = "Xyes" ; then
23486 # We can hardcode non-existant directories.
23487 if test "$hardcode_direct_F77" != no &&
23488 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23489 # have to relink, otherwise we might link with an installed library
23490 # when we should be linking with a yet-to-be-installed one
23491 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23492 test "$hardcode_minus_L_F77" != no; then
23493 # Linking always hardcodes the temporary library directory.
23494 hardcode_action_F77=relink
23496 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23497 hardcode_action_F77=immediate
23500 # We cannot hardcode anything, or else we can only hardcode existing
23502 hardcode_action_F77=unsupported
23504 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23505 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23507 if test "$hardcode_action_F77" = relink; then
23508 # Fast installation is not supported
23509 enable_fast_install=no
23510 elif test "$shlibpath_overrides_runpath" = yes ||
23511 test "$enable_shared" = no; then
23512 # Fast installation is not necessary
23513 enable_fast_install=needless
23517 # The else clause should only fire when bootstrapping the
23518 # libtool distribution, otherwise you forgot to ship ltmain.sh
23519 # with your package, and you will get complaints that there are
23520 # no rules to generate ltmain.sh.
23521 if test -f "$ltmain"; then
23522 # See if we are running on zsh, and set the options which allow our commands through
23523 # without removal of \ escapes.
23524 if test -n "${ZSH_VERSION+set}" ; then
23525 setopt NO_GLOB_SUBST
23527 # Now quote all the things that may contain metacharacters while being
23528 # careful not to overquote the AC_SUBSTed values. We take copies of the
23529 # variables and quote the copies for generation of the libtool script.
23530 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23532 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23533 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23534 deplibs_check_method reload_flag reload_cmds need_locks \
23535 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23536 lt_cv_sys_global_symbol_to_c_name_address \
23537 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23538 old_postinstall_cmds old_postuninstall_cmds \
23542 lt_prog_compiler_wl_F77 \
23543 lt_prog_compiler_pic_F77 \
23544 lt_prog_compiler_static_F77 \
23545 lt_prog_compiler_no_builtin_flag_F77 \
23546 export_dynamic_flag_spec_F77 \
23547 thread_safe_flag_spec_F77 \
23548 whole_archive_flag_spec_F77 \
23549 enable_shared_with_static_runtimes_F77 \
23550 old_archive_cmds_F77 \
23551 old_archive_from_new_cmds_F77 \
23552 predep_objects_F77 \
23553 postdep_objects_F77 \
23556 compiler_lib_search_path_F77 \
23558 archive_expsym_cmds_F77 \
23559 postinstall_cmds_F77 \
23560 postuninstall_cmds_F77 \
23561 old_archive_from_expsyms_cmds_F77 \
23562 allow_undefined_flag_F77 \
23563 no_undefined_flag_F77 \
23564 export_symbols_cmds_F77 \
23565 hardcode_libdir_flag_spec_F77 \
23566 hardcode_libdir_flag_spec_ld_F77 \
23567 hardcode_libdir_separator_F77 \
23568 hardcode_automatic_F77 \
23570 module_expsym_cmds_F77 \
23571 lt_cv_prog_compiler_c_o_F77 \
23572 exclude_expsyms_F77 \
23573 include_expsyms_F77; do
23576 old_archive_cmds_F77 | \
23577 old_archive_from_new_cmds_F77 | \
23578 archive_cmds_F77 | \
23579 archive_expsym_cmds_F77 | \
23580 module_cmds_F77 | \
23581 module_expsym_cmds_F77 | \
23582 old_archive_from_expsyms_cmds_F77 | \
23583 export_symbols_cmds_F77 | \
23584 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23585 postinstall_cmds | postuninstall_cmds | \
23586 old_postinstall_cmds | old_postuninstall_cmds | \
23587 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23588 # Double-quote double-evaled strings.
23589 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23592 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23598 *'\$0 --fallback-echo"')
23599 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23605 cat <<__EOF__ >> "$cfgfile"
23606 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23608 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23610 # Shell to use when invoking shell scripts.
23613 # Whether or not to build shared libraries.
23614 build_libtool_libs=$enable_shared
23616 # Whether or not to build static libraries.
23617 build_old_libs=$enable_static
23619 # Whether or not to add -lc for building shared libraries.
23620 build_libtool_need_lc=$archive_cmds_need_lc_F77
23622 # Whether or not to disallow shared libs when runtime libs are static
23623 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23625 # Whether or not to optimize for fast installation.
23626 fast_install=$enable_fast_install
23629 host_alias=$host_alias
23633 # The build system.
23634 build_alias=$build_alias
23638 # An echo program that does not interpret backslashes.
23643 AR_FLAGS=$lt_AR_FLAGS
23648 # LTCC compiler flags.
23649 LTCFLAGS=$lt_LTCFLAGS
23651 # A language-specific compiler.
23652 CC=$lt_compiler_F77
23654 # Is the compiler the GNU C compiler?
23660 # The linker used to build libraries.
23663 # Whether we need hard or soft links.
23666 # A BSD-compatible nm program.
23669 # A symbol stripping program
23672 # Used to examine libraries when file_magic_cmd begins "file"
23673 MAGIC_CMD=$MAGIC_CMD
23675 # Used on cygwin: DLL creation program.
23678 # Used on cygwin: object dumper.
23681 # Used on cygwin: assembler.
23684 # The name of the directory that contains temporary libtool files.
23687 # How to create reloadable object files.
23688 reload_flag=$lt_reload_flag
23689 reload_cmds=$lt_reload_cmds
23691 # How to pass a linker flag through the compiler.
23692 wl=$lt_lt_prog_compiler_wl_F77
23694 # Object file suffix (normally "o").
23695 objext="$ac_objext"
23697 # Old archive suffix (normally "a").
23700 # Shared library suffix (normally ".so").
23701 shrext_cmds='$shrext_cmds'
23703 # Executable file suffix (normally "").
23706 # Additional compiler flags for building library objects.
23707 pic_flag=$lt_lt_prog_compiler_pic_F77
23710 # What is the maximum length of a command?
23711 max_cmd_len=$lt_cv_sys_max_cmd_len
23713 # Does compiler simultaneously support -c and -o options?
23714 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23716 # Must we lock files when doing compilation?
23717 need_locks=$lt_need_locks
23719 # Do we need the lib prefix for modules?
23720 need_lib_prefix=$need_lib_prefix
23722 # Do we need a version for libraries?
23723 need_version=$need_version
23725 # Whether dlopen is supported.
23726 dlopen_support=$enable_dlopen
23728 # Whether dlopen of programs is supported.
23729 dlopen_self=$enable_dlopen_self
23731 # Whether dlopen of statically linked programs is supported.
23732 dlopen_self_static=$enable_dlopen_self_static
23734 # Compiler flag to prevent dynamic linking.
23735 link_static_flag=$lt_lt_prog_compiler_static_F77
23737 # Compiler flag to turn off builtin functions.
23738 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23740 # Compiler flag to allow reflexive dlopens.
23741 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23743 # Compiler flag to generate shared objects directly from archives.
23744 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23746 # Compiler flag to generate thread-safe objects.
23747 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23749 # Library versioning type.
23750 version_type=$version_type
23752 # Format of library name prefix.
23753 libname_spec=$lt_libname_spec
23755 # List of archive names. First name is the real one, the rest are links.
23756 # The last name is the one that the linker finds with -lNAME.
23757 library_names_spec=$lt_library_names_spec
23759 # The coded name of the library, if different from the real name.
23760 soname_spec=$lt_soname_spec
23762 # Commands used to build and install an old-style archive.
23764 old_archive_cmds=$lt_old_archive_cmds_F77
23765 old_postinstall_cmds=$lt_old_postinstall_cmds
23766 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23768 # Create an old-style archive from a shared archive.
23769 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23771 # Create a temporary old-style archive to link instead of a shared archive.
23772 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23774 # Commands used to build and install a shared archive.
23775 archive_cmds=$lt_archive_cmds_F77
23776 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23777 postinstall_cmds=$lt_postinstall_cmds
23778 postuninstall_cmds=$lt_postuninstall_cmds
23780 # Commands used to build a loadable module (assumed same as above if empty)
23781 module_cmds=$lt_module_cmds_F77
23782 module_expsym_cmds=$lt_module_expsym_cmds_F77
23784 # Commands to strip libraries.
23785 old_striplib=$lt_old_striplib
23786 striplib=$lt_striplib
23788 # Dependencies to place before the objects being linked to create a
23790 predep_objects=$lt_predep_objects_F77
23792 # Dependencies to place after the objects being linked to create a
23794 postdep_objects=$lt_postdep_objects_F77
23796 # Dependencies to place before the objects being linked to create a
23798 predeps=$lt_predeps_F77
23800 # Dependencies to place after the objects being linked to create a
23802 postdeps=$lt_postdeps_F77
23804 # The library search path used internally by the compiler when linking
23805 # a shared library.
23806 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23808 # Method to check whether dependent libraries are shared objects.
23809 deplibs_check_method=$lt_deplibs_check_method
23811 # Command to use when deplibs_check_method == file_magic.
23812 file_magic_cmd=$lt_file_magic_cmd
23814 # Flag that allows shared libraries with undefined symbols to be built.
23815 allow_undefined_flag=$lt_allow_undefined_flag_F77
23817 # Flag that forces no undefined symbols.
23818 no_undefined_flag=$lt_no_undefined_flag_F77
23820 # Commands used to finish a libtool library installation in a directory.
23821 finish_cmds=$lt_finish_cmds
23823 # Same as above, but a single script fragment to be evaled but not shown.
23824 finish_eval=$lt_finish_eval
23826 # Take the output of nm and produce a listing of raw symbols and C names.
23827 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23829 # Transform the output of nm in a proper C declaration
23830 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23832 # Transform the output of nm in a C name address pair
23833 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23835 # This is the shared library runtime path variable.
23836 runpath_var=$runpath_var
23838 # This is the shared library path variable.
23839 shlibpath_var=$shlibpath_var
23841 # Is shlibpath searched before the hard-coded library search path?
23842 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23844 # How to hardcode a shared library path into an executable.
23845 hardcode_action=$hardcode_action_F77
23847 # Whether we should hardcode library paths into libraries.
23848 hardcode_into_libs=$hardcode_into_libs
23850 # Flag to hardcode \$libdir into a binary during linking.
23851 # This must work even if \$libdir does not exist.
23852 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23854 # If ld is used when linking, flag to hardcode \$libdir into
23855 # a binary during linking. This must work even if \$libdir does
23857 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23859 # Whether we need a single -rpath flag with a separated argument.
23860 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23862 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23863 # resulting binary.
23864 hardcode_direct=$hardcode_direct_F77
23866 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23867 # resulting binary.
23868 hardcode_minus_L=$hardcode_minus_L_F77
23870 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23871 # the resulting binary.
23872 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23874 # Set to yes if building a shared library automatically hardcodes DIR into the library
23875 # and all subsequent libraries and executables linked against it.
23876 hardcode_automatic=$hardcode_automatic_F77
23878 # Variables whose values should be saved in libtool wrapper scripts and
23879 # restored at relink time.
23880 variables_saved_for_relink="$variables_saved_for_relink"
23882 # Whether libtool must link a program against all its dependency libraries.
23883 link_all_deplibs=$link_all_deplibs_F77
23885 # Compile-time system search path for libraries
23886 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23888 # Run-time system search path for libraries
23889 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23891 # Fix the shell variable \$srcfile for the compiler.
23892 fix_srcfile_path="$fix_srcfile_path_F77"
23894 # Set to yes if exported symbols are required.
23895 always_export_symbols=$always_export_symbols_F77
23897 # The commands to list exported symbols.
23898 export_symbols_cmds=$lt_export_symbols_cmds_F77
23900 # The commands to extract the exported symbol list from a shared archive.
23901 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23903 # Symbols that should not be listed in the preloaded symbols.
23904 exclude_expsyms=$lt_exclude_expsyms_F77
23906 # Symbols that must always be exported.
23907 include_expsyms=$lt_include_expsyms_F77
23909 # ### END LIBTOOL TAG CONFIG: $tagname
23915 # If there is no Makefile yet, we rely on a make rule to execute
23916 # `config.status --recheck' to rerun these tests and create the
23917 # libtool script then.
23918 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23919 if test -f "$ltmain_in"; then
23920 test -f Makefile && make "$ltmain"
23926 ac_cpp='$CPP $CPPFLAGS'
23927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23939 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23941 ac_cpp='$CPP $CPPFLAGS'
23942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23947 # Source file extension for Java test sources.
23950 # Object file extension for compiled Java test sources.
23954 # Code to be used in simple compile tests
23955 lt_simple_compile_test_code="class foo {}\n"
23957 # Code to be used in simple link tests
23958 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23960 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23962 # If no C compiler was specified, use CC.
23965 # If no C compiler flags were specified, use CFLAGS.
23966 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23968 # Allow CC to be a program name with arguments.
23972 # save warnings/boilerplate of simple test code
23973 ac_outfile=conftest.$ac_objext
23974 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23975 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23976 _lt_compiler_boilerplate=`cat conftest.err`
23979 ac_outfile=conftest.$ac_objext
23980 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23981 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23982 _lt_linker_boilerplate=`cat conftest.err`
23986 # Allow CC to be a program name with arguments.
23991 for cc_temp in $compiler""; do
23993 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23994 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23999 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24002 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24003 archive_cmds_need_lc_GCJ=no
24005 old_archive_cmds_GCJ=$old_archive_cmds
24008 lt_prog_compiler_no_builtin_flag_GCJ=
24010 if test "$GCC" = yes; then
24011 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24014 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24015 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24016 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24017 echo $ECHO_N "(cached) $ECHO_C" >&6
24019 lt_cv_prog_compiler_rtti_exceptions=no
24020 ac_outfile=conftest.$ac_objext
24021 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24022 lt_compiler_flag="-fno-rtti -fno-exceptions"
24023 # Insert the option either (1) after the last *FLAGS variable, or
24024 # (2) before a word containing "conftest.", or (3) at the end.
24025 # Note that $ac_compile itself does not contain backslashes and begins
24026 # with a dollar sign (not a hyphen), so the echo should work correctly.
24027 # The option is referenced via a variable to avoid confusing sed.
24028 lt_compile=`echo "$ac_compile" | $SED \
24029 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24031 -e 's:$: $lt_compiler_flag:'`
24032 (eval echo "\"\$as_me:24032: $lt_compile\"" >&5)
24033 (eval "$lt_compile" 2>conftest.err)
24035 cat conftest.err >&5
24036 echo "$as_me:24036: \$? = $ac_status" >&5
24037 if (exit $ac_status) && test -s "$ac_outfile"; then
24038 # The compiler can only warn and ignore the option if not recognized
24039 # So say no if there are warnings other than the usual output.
24040 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24041 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24042 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24043 lt_cv_prog_compiler_rtti_exceptions=yes
24049 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24050 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24052 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24053 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24060 lt_prog_compiler_wl_GCJ=
24061 lt_prog_compiler_pic_GCJ=
24062 lt_prog_compiler_static_GCJ=
24064 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24065 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24067 if test "$GCC" = yes; then
24068 lt_prog_compiler_wl_GCJ='-Wl,'
24069 lt_prog_compiler_static_GCJ='-static'
24073 # All AIX code is PIC.
24074 if test "$host_cpu" = ia64; then
24075 # AIX 5 now supports IA64 processor
24076 lt_prog_compiler_static_GCJ='-Bstatic'
24081 # FIXME: we need at least 68020 code to build shared libraries, but
24082 # adding the `-m68020' flag to GCC prevents building anything better,
24084 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24087 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24088 # PIC is the default for these OSes.
24091 mingw* | pw32* | os2*)
24092 # This hack is so that the source file can tell whether it is being
24093 # built for inclusion in a dll (and should export symbols for example).
24094 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24097 darwin* | rhapsody*)
24098 # PIC is the default on this platform
24099 # Common symbols not allowed in MH_DYLIB files
24100 lt_prog_compiler_pic_GCJ='-fno-common'
24104 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24105 # Instead, we relocate shared libraries at runtime.
24109 # Just because we use GCC doesn't mean we suddenly get shared libraries
24110 # on systems that don't support them.
24111 lt_prog_compiler_can_build_shared_GCJ=no
24116 if test -d /usr/nec; then
24117 lt_prog_compiler_pic_GCJ=-Kconform_pic
24122 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24123 # not for PA HP-UX.
24129 lt_prog_compiler_pic_GCJ='-fPIC'
24135 lt_prog_compiler_pic_GCJ='-fPIC'
24139 # PORTME Check for flag to pass linker flags through the system compiler.
24142 lt_prog_compiler_wl_GCJ='-Wl,'
24143 if test "$host_cpu" = ia64; then
24144 # AIX 5 now supports IA64 processor
24145 lt_prog_compiler_static_GCJ='-Bstatic'
24147 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24151 # PIC is the default on this platform
24152 # Common symbols not allowed in MH_DYLIB files
24153 case $cc_basename in
24155 lt_prog_compiler_pic_GCJ='-qnocommon'
24156 lt_prog_compiler_wl_GCJ='-Wl,'
24161 mingw* | pw32* | os2*)
24162 # This hack is so that the source file can tell whether it is being
24163 # built for inclusion in a dll (and should export symbols for example).
24164 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24167 hpux9* | hpux10* | hpux11*)
24168 lt_prog_compiler_wl_GCJ='-Wl,'
24169 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24170 # not for PA HP-UX.
24176 lt_prog_compiler_pic_GCJ='+Z'
24179 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24180 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24183 irix5* | irix6* | nonstopux*)
24184 lt_prog_compiler_wl_GCJ='-Wl,'
24185 # PIC (with -KPIC) is the default.
24186 lt_prog_compiler_static_GCJ='-non_shared'
24190 lt_prog_compiler_pic_GCJ='-KPIC'
24191 lt_prog_compiler_static_GCJ='-Bstatic'
24195 case $cc_basename in
24197 lt_prog_compiler_wl_GCJ='-Wl,'
24198 lt_prog_compiler_pic_GCJ='-KPIC'
24199 lt_prog_compiler_static_GCJ='-static'
24201 pgcc* | pgf77* | pgf90* | pgf95*)
24202 # Portland Group compilers (*not* the Pentium gcc compiler,
24203 # which looks to be a dead project)
24204 lt_prog_compiler_wl_GCJ='-Wl,'
24205 lt_prog_compiler_pic_GCJ='-fpic'
24206 lt_prog_compiler_static_GCJ='-Bstatic'
24209 lt_prog_compiler_wl_GCJ='-Wl,'
24210 # All Alpha code is PIC.
24211 lt_prog_compiler_static_GCJ='-non_shared'
24216 osf3* | osf4* | osf5*)
24217 lt_prog_compiler_wl_GCJ='-Wl,'
24218 # All OSF/1 code is PIC.
24219 lt_prog_compiler_static_GCJ='-non_shared'
24223 lt_prog_compiler_pic_GCJ='-KPIC'
24224 lt_prog_compiler_static_GCJ='-Bstatic'
24225 case $cc_basename in
24226 f77* | f90* | f95*)
24227 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24229 lt_prog_compiler_wl_GCJ='-Wl,';;
24234 lt_prog_compiler_wl_GCJ='-Qoption ld '
24235 lt_prog_compiler_pic_GCJ='-PIC'
24236 lt_prog_compiler_static_GCJ='-Bstatic'
24239 sysv4 | sysv4.2uw2* | sysv4.3*)
24240 lt_prog_compiler_wl_GCJ='-Wl,'
24241 lt_prog_compiler_pic_GCJ='-KPIC'
24242 lt_prog_compiler_static_GCJ='-Bstatic'
24246 if test -d /usr/nec ;then
24247 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24248 lt_prog_compiler_static_GCJ='-Bstatic'
24252 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24253 lt_prog_compiler_wl_GCJ='-Wl,'
24254 lt_prog_compiler_pic_GCJ='-KPIC'
24255 lt_prog_compiler_static_GCJ='-Bstatic'
24259 lt_prog_compiler_wl_GCJ='-Wl,'
24260 lt_prog_compiler_can_build_shared_GCJ=no
24264 lt_prog_compiler_pic_GCJ='-pic'
24265 lt_prog_compiler_static_GCJ='-Bstatic'
24269 lt_prog_compiler_can_build_shared_GCJ=no
24274 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24275 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24278 # Check to make sure the PIC flag actually works.
24280 if test -n "$lt_prog_compiler_pic_GCJ"; then
24282 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24283 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24284 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24285 echo $ECHO_N "(cached) $ECHO_C" >&6
24287 lt_prog_compiler_pic_works_GCJ=no
24288 ac_outfile=conftest.$ac_objext
24289 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24290 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24291 # Insert the option either (1) after the last *FLAGS variable, or
24292 # (2) before a word containing "conftest.", or (3) at the end.
24293 # Note that $ac_compile itself does not contain backslashes and begins
24294 # with a dollar sign (not a hyphen), so the echo should work correctly.
24295 # The option is referenced via a variable to avoid confusing sed.
24296 lt_compile=`echo "$ac_compile" | $SED \
24297 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24298 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24299 -e 's:$: $lt_compiler_flag:'`
24300 (eval echo "\"\$as_me:24300: $lt_compile\"" >&5)
24301 (eval "$lt_compile" 2>conftest.err)
24303 cat conftest.err >&5
24304 echo "$as_me:24304: \$? = $ac_status" >&5
24305 if (exit $ac_status) && test -s "$ac_outfile"; then
24306 # The compiler can only warn and ignore the option if not recognized
24307 # So say no if there are warnings other than the usual output.
24308 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24309 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24310 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24311 lt_prog_compiler_pic_works_GCJ=yes
24317 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24318 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24320 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24321 case $lt_prog_compiler_pic_GCJ in
24323 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24326 lt_prog_compiler_pic_GCJ=
24327 lt_prog_compiler_can_build_shared_GCJ=no
24332 # For platforms which do not support PIC, -DPIC is meaningless:
24334 lt_prog_compiler_pic_GCJ=
24337 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24342 # Check to make sure the static flag actually works.
24344 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24345 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24346 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24347 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24348 echo $ECHO_N "(cached) $ECHO_C" >&6
24350 lt_prog_compiler_static_works_GCJ=no
24351 save_LDFLAGS="$LDFLAGS"
24352 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24353 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24354 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24355 # The linker can only warn and ignore the option if not recognized
24356 # So say no if there are warnings
24357 if test -s conftest.err; then
24358 # Append any errors to the config.log.
24359 cat conftest.err 1>&5
24360 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24362 if diff conftest.exp conftest.er2 >/dev/null; then
24363 lt_prog_compiler_static_works_GCJ=yes
24366 lt_prog_compiler_static_works_GCJ=yes
24370 LDFLAGS="$save_LDFLAGS"
24373 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24374 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24376 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24379 lt_prog_compiler_static_GCJ=
24383 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24384 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24385 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24386 echo $ECHO_N "(cached) $ECHO_C" >&6
24388 lt_cv_prog_compiler_c_o_GCJ=no
24389 $rm -r conftest 2>/dev/null
24393 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24395 lt_compiler_flag="-o out/conftest2.$ac_objext"
24396 # Insert the option either (1) after the last *FLAGS variable, or
24397 # (2) before a word containing "conftest.", or (3) at the end.
24398 # Note that $ac_compile itself does not contain backslashes and begins
24399 # with a dollar sign (not a hyphen), so the echo should work correctly.
24400 lt_compile=`echo "$ac_compile" | $SED \
24401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24403 -e 's:$: $lt_compiler_flag:'`
24404 (eval echo "\"\$as_me:24404: $lt_compile\"" >&5)
24405 (eval "$lt_compile" 2>out/conftest.err)
24407 cat out/conftest.err >&5
24408 echo "$as_me:24408: \$? = $ac_status" >&5
24409 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24411 # The compiler can only warn and ignore the option if not recognized
24412 # So say no if there are warnings
24413 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24414 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24415 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24416 lt_cv_prog_compiler_c_o_GCJ=yes
24421 # SGI C++ compiler will create directory out/ii_files/ for
24422 # template instantiation
24423 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24424 $rm out/* && rmdir out
24430 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24431 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24434 hard_links="nottested"
24435 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24436 # do not overwrite the value of need_locks provided by the user
24437 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24438 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24441 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24443 ln conftest.a conftest.b 2>&5 || hard_links=no
24444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24445 { echo "$as_me:$LINENO: result: $hard_links" >&5
24446 echo "${ECHO_T}$hard_links" >&6; }
24447 if test "$hard_links" = no; then
24448 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24449 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24456 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24457 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24460 allow_undefined_flag_GCJ=
24461 enable_shared_with_static_runtimes_GCJ=no
24463 archive_expsym_cmds_GCJ=
24464 old_archive_From_new_cmds_GCJ=
24465 old_archive_from_expsyms_cmds_GCJ=
24466 export_dynamic_flag_spec_GCJ=
24467 whole_archive_flag_spec_GCJ=
24468 thread_safe_flag_spec_GCJ=
24469 hardcode_libdir_flag_spec_GCJ=
24470 hardcode_libdir_flag_spec_ld_GCJ=
24471 hardcode_libdir_separator_GCJ=
24472 hardcode_direct_GCJ=no
24473 hardcode_minus_L_GCJ=no
24474 hardcode_shlibpath_var_GCJ=unsupported
24475 link_all_deplibs_GCJ=unknown
24476 hardcode_automatic_GCJ=no
24478 module_expsym_cmds_GCJ=
24479 always_export_symbols_GCJ=no
24480 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24481 # include_expsyms should be a list of space-separated symbols to be *always*
24482 # included in the symbol list
24483 include_expsyms_GCJ=
24484 # exclude_expsyms can be an extended regexp of symbols to exclude
24485 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24486 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24487 # as well as any symbol that contains `d'.
24488 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24489 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24490 # platforms (ab)use it in PIC code, but their linkers get confused if
24491 # the symbol is explicitly referenced. Since portable code cannot
24492 # rely on this symbol name, it's probably fine to never include it in
24493 # preloaded symbol tables.
24494 extract_expsyms_cmds=
24495 # Just being paranoid about ensuring that cc_basename is set.
24496 for cc_temp in $compiler""; do
24498 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24499 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24504 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24507 cygwin* | mingw* | pw32*)
24508 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24509 # When not using gcc, we currently assume that we are using
24510 # Microsoft Visual C++.
24511 if test "$GCC" != yes; then
24516 # we just hope/assume this is gcc and not c89 (= MSVC++)
24525 if test "$with_gnu_ld" = yes; then
24526 # If archive_cmds runs LD, not CC, wlarc should be empty
24529 # Set some defaults for GNU ld with shared library support. These
24530 # are reset later if shared libraries are not supported. Putting them
24531 # here allows them to be overridden if necessary.
24532 runpath_var=LD_RUN_PATH
24533 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24534 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24535 # ancient GNU ld didn't support --whole-archive et. al.
24536 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24537 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24539 whole_archive_flag_spec_GCJ=
24541 supports_anon_versioning=no
24542 case `$LD -v 2>/dev/null` in
24543 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24544 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24545 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24546 *\ 2.11.*) ;; # other 2.11 versions
24547 *) supports_anon_versioning=yes ;;
24550 # See if GNU ld supports shared libraries.
24552 aix3* | aix4* | aix5*)
24553 # On AIX/PPC, the GNU linker is very broken
24554 if test "$host_cpu" != ia64; then
24558 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24559 *** to be unable to reliably create shared libraries on AIX.
24560 *** Therefore, libtool is disabling shared libraries support. If you
24561 *** really care for shared libraries, you may want to modify your PATH
24562 *** so that a non-GNU linker is found, and then restart.
24569 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)'
24570 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24571 hardcode_minus_L_GCJ=yes
24573 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24574 # that the semantics of dynamic libraries on AmigaOS, at least up
24575 # to version 4, is to share data among multiple programs linked
24576 # with the same dynamic library. Since this doesn't match the
24577 # behavior of shared libraries on other platforms, we can't use
24583 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24584 allow_undefined_flag_GCJ=unsupported
24585 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24586 # support --undefined. This deserves some investigation. FIXME
24587 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24593 cygwin* | mingw* | pw32*)
24594 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24595 # as there is no search path for DLLs.
24596 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24597 allow_undefined_flag_GCJ=unsupported
24598 always_export_symbols_GCJ=no
24599 enable_shared_with_static_runtimes_GCJ=yes
24600 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24602 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24603 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24604 # If the export-symbols file already is a .def file (1st line
24605 # is EXPORTS), use it as is; otherwise, prepend...
24606 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24607 cp $export_symbols $output_objdir/$soname.def;
24609 echo EXPORTS > $output_objdir/$soname.def;
24610 cat $export_symbols >> $output_objdir/$soname.def;
24612 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24619 hardcode_direct_GCJ=no
24620 hardcode_shlibpath_var_GCJ=no
24621 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24622 export_dynamic_flag_spec_GCJ='${wl}-E'
24623 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24624 # Instead, shared libraries are loaded at an image base (0x10000000 by
24625 # default) and relocated if they conflict, which is a slow very memory
24626 # consuming and fragmenting process. To avoid this, we pick a random,
24627 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24628 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24629 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'
24630 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'
24634 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24636 case $cc_basename,$host_cpu in
24637 pgcc*) # Portland Group C compiler
24638 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'
24639 tmp_addflag=' $pic_flag'
24641 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24642 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'
24643 tmp_addflag=' $pic_flag -Mnomain' ;;
24644 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24645 tmp_addflag=' -i_dynamic' ;;
24646 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24647 tmp_addflag=' -i_dynamic -nofor_main' ;;
24648 ifc* | ifort*) # Intel Fortran compiler
24649 tmp_addflag=' -nofor_main' ;;
24651 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24653 if test $supports_anon_versioning = yes; then
24654 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24655 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24656 $echo "local: *; };" >> $output_objdir/$libname.ver~
24657 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24665 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24666 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24669 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24670 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24675 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24679 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24680 *** create shared libraries on Solaris systems. Therefore, libtool
24681 *** is disabling shared libraries support. We urge you to upgrade GNU
24682 *** binutils to release 2.9.1 or newer. Another option is to modify
24683 *** your PATH or compiler configuration so that the native linker is
24684 *** used, and then restart.
24687 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24688 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24689 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24695 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24696 case `$LD -v 2>&1` in
24697 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24701 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24702 *** reliably create shared libraries on SCO systems. Therefore, libtool
24703 *** is disabling shared libraries support. We urge you to upgrade GNU
24704 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24705 *** your PATH or compiler configuration so that the native linker is
24706 *** used, and then restart.
24711 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24712 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24713 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24714 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24723 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24725 hardcode_direct_GCJ=yes
24726 hardcode_shlibpath_var_GCJ=no
24730 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24731 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24732 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24739 if test "$ld_shlibs_GCJ" = no; then
24741 hardcode_libdir_flag_spec_GCJ=
24742 export_dynamic_flag_spec_GCJ=
24743 whole_archive_flag_spec_GCJ=
24746 # PORTME fill in a description of your system's linker (not GNU ld)
24749 allow_undefined_flag_GCJ=unsupported
24750 always_export_symbols_GCJ=yes
24751 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'
24752 # Note: this linker hardcodes the directories in LIBPATH if there
24753 # are no directories specified by -L.
24754 hardcode_minus_L_GCJ=yes
24755 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24756 # Neither direct hardcoding nor static linking is supported with a
24758 hardcode_direct_GCJ=unsupported
24763 if test "$host_cpu" = ia64; then
24764 # On IA64, the linker does run time linking by default, so we don't
24765 # have to do anything special.
24766 aix_use_runtimelinking=no
24767 exp_sym_flag='-Bexport'
24770 # If we're using GNU nm, then we don't want the "-C" option.
24771 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24772 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24773 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'
24775 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'
24777 aix_use_runtimelinking=no
24779 # Test if we are trying to use run time linking or normal
24780 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24781 # need to do runtime linking.
24782 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24783 for ld_flag in $LDFLAGS; do
24784 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24785 aix_use_runtimelinking=yes
24792 exp_sym_flag='-bexport'
24793 no_entry_flag='-bnoentry'
24796 # When large executables or shared objects are built, AIX ld can
24797 # have problems creating the table of contents. If linking a library
24798 # or program results in "error TOC overflow" add -mminimal-toc to
24799 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24800 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24802 archive_cmds_GCJ=''
24803 hardcode_direct_GCJ=yes
24804 hardcode_libdir_separator_GCJ=':'
24805 link_all_deplibs_GCJ=yes
24807 if test "$GCC" = yes; then
24808 case $host_os in aix4.[012]|aix4.[012].*)
24809 # We only want to do this on AIX 4.2 and lower, the check
24810 # below for broken collect2 doesn't work under 4.3+
24811 collect2name=`${CC} -print-prog-name=collect2`
24812 if test -f "$collect2name" && \
24813 strings "$collect2name" | grep resolve_lib_name >/dev/null
24815 # We have reworked collect2
24816 hardcode_direct_GCJ=yes
24818 # We have old collect2
24819 hardcode_direct_GCJ=unsupported
24820 # It fails to find uninstalled libraries when the uninstalled
24821 # path is not listed in the libpath. Setting hardcode_minus_L
24822 # to unsupported forces relinking
24823 hardcode_minus_L_GCJ=yes
24824 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24825 hardcode_libdir_separator_GCJ=
24829 shared_flag='-shared'
24830 if test "$aix_use_runtimelinking" = yes; then
24831 shared_flag="$shared_flag "'${wl}-G'
24835 if test "$host_cpu" = ia64; then
24836 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24837 # chokes on -Wl,-G. The following line is correct:
24840 if test "$aix_use_runtimelinking" = yes; then
24841 shared_flag='${wl}-G'
24843 shared_flag='${wl}-bM:SRE'
24848 # It seems that -bexpall does not export symbols beginning with
24849 # underscore (_), so it is better to generate a list of symbols to export.
24850 always_export_symbols_GCJ=yes
24851 if test "$aix_use_runtimelinking" = yes; then
24852 # Warning - without using the other runtime loading flags (-brtl),
24853 # -berok will link without error, but may produce a broken library.
24854 allow_undefined_flag_GCJ='-berok'
24855 # Determine the default libpath from the value encoded in an empty executable.
24856 cat >conftest.$ac_ext <<_ACEOF
24859 cat confdefs.h >>conftest.$ac_ext
24860 cat >>conftest.$ac_ext <<_ACEOF
24861 /* end confdefs.h. */
24871 rm -f conftest.$ac_objext conftest$ac_exeext
24872 if { (ac_try="$ac_link"
24873 case "(($ac_try" in
24874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24875 *) ac_try_echo=$ac_try;;
24877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24878 (eval "$ac_link") 2>conftest.er1
24880 grep -v '^ *+' conftest.er1 >conftest.err
24882 cat conftest.err >&5
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); } &&
24885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24886 { (case "(($ac_try" in
24887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24888 *) ac_try_echo=$ac_try;;
24890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24891 (eval "$ac_try") 2>&5
24893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894 (exit $ac_status); }; } &&
24895 { ac_try='test -s conftest$ac_exeext'
24896 { (case "(($ac_try" in
24897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24898 *) ac_try_echo=$ac_try;;
24900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24901 (eval "$ac_try") 2>&5
24903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24904 (exit $ac_status); }; }; then
24906 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24908 # Check for a 64-bit object if we didn't find anything.
24909 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; }
24912 echo "$as_me: failed program was:" >&5
24913 sed 's/^/| /' conftest.$ac_ext >&5
24918 rm -f core conftest.err conftest.$ac_objext \
24919 conftest$ac_exeext conftest.$ac_ext
24920 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24922 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24923 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"
24925 if test "$host_cpu" = ia64; then
24926 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24927 allow_undefined_flag_GCJ="-z nodefs"
24928 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"
24930 # Determine the default libpath from the value encoded in an empty executable.
24931 cat >conftest.$ac_ext <<_ACEOF
24934 cat confdefs.h >>conftest.$ac_ext
24935 cat >>conftest.$ac_ext <<_ACEOF
24936 /* end confdefs.h. */
24946 rm -f conftest.$ac_objext conftest$ac_exeext
24947 if { (ac_try="$ac_link"
24948 case "(($ac_try" in
24949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24950 *) ac_try_echo=$ac_try;;
24952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24953 (eval "$ac_link") 2>conftest.er1
24955 grep -v '^ *+' conftest.er1 >conftest.err
24957 cat conftest.err >&5
24958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959 (exit $ac_status); } &&
24960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24961 { (case "(($ac_try" in
24962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24963 *) ac_try_echo=$ac_try;;
24965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24966 (eval "$ac_try") 2>&5
24968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969 (exit $ac_status); }; } &&
24970 { ac_try='test -s conftest$ac_exeext'
24971 { (case "(($ac_try" in
24972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24973 *) ac_try_echo=$ac_try;;
24975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24976 (eval "$ac_try") 2>&5
24978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979 (exit $ac_status); }; }; then
24981 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24983 # Check for a 64-bit object if we didn't find anything.
24984 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; }
24987 echo "$as_me: failed program was:" >&5
24988 sed 's/^/| /' conftest.$ac_ext >&5
24993 rm -f core conftest.err conftest.$ac_objext \
24994 conftest$ac_exeext conftest.$ac_ext
24995 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24997 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24998 # Warning - without using the other run time loading flags,
24999 # -berok will link without error, but may produce a broken library.
25000 no_undefined_flag_GCJ=' ${wl}-bernotok'
25001 allow_undefined_flag_GCJ=' ${wl}-berok'
25002 # Exported symbols can be pulled into shared objects from archives
25003 whole_archive_flag_spec_GCJ='$convenience'
25004 archive_cmds_need_lc_GCJ=yes
25005 # This is similar to how AIX traditionally builds its shared libraries.
25006 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'
25012 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)'
25013 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25014 hardcode_minus_L_GCJ=yes
25015 # see comment about different semantics on the GNU ld section
25020 export_dynamic_flag_spec_GCJ=-rdynamic
25023 cygwin* | mingw* | pw32*)
25024 # When not using gcc, we currently assume that we are using
25025 # Microsoft Visual C++.
25026 # hardcode_libdir_flag_spec is actually meaningless, as there is
25027 # no search path for DLLs.
25028 hardcode_libdir_flag_spec_GCJ=' '
25029 allow_undefined_flag_GCJ=unsupported
25030 # Tell ltmain to make .lib files, not .a files.
25032 # Tell ltmain to make .dll files, not .so files.
25034 # FIXME: Setting linknames here is a bad hack.
25035 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25036 # The linker will automatically build a .lib file if we build a DLL.
25037 old_archive_From_new_cmds_GCJ='true'
25038 # FIXME: Should let the user specify the lib program.
25039 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25040 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25041 enable_shared_with_static_runtimes_GCJ=yes
25044 darwin* | rhapsody*)
25046 rhapsody* | darwin1.[012])
25047 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25050 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25051 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25053 case ${MACOSX_DEPLOYMENT_TARGET} in
25055 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25058 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25064 archive_cmds_need_lc_GCJ=no
25065 hardcode_direct_GCJ=no
25066 hardcode_automatic_GCJ=yes
25067 hardcode_shlibpath_var_GCJ=unsupported
25068 whole_archive_flag_spec_GCJ=''
25069 link_all_deplibs_GCJ=yes
25070 if test "$GCC" = yes ; then
25071 output_verbose_link_cmd='echo'
25072 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25073 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25074 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25075 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}'
25076 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}'
25078 case $cc_basename in
25080 output_verbose_link_cmd='echo'
25081 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25082 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25083 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25084 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}'
25085 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}'
25095 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25096 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25097 hardcode_shlibpath_var_GCJ=no
25104 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25105 # support. Future versions do this automatically, but an explicit c++rt0.o
25106 # does not break anything, and helps significantly (at the cost of a little
25109 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25110 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25111 hardcode_direct_GCJ=yes
25112 hardcode_shlibpath_var_GCJ=no
25115 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25117 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25118 hardcode_direct_GCJ=yes
25119 hardcode_minus_L_GCJ=yes
25120 hardcode_shlibpath_var_GCJ=no
25123 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25124 freebsd* | kfreebsd*-gnu | dragonfly*)
25125 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25126 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25127 hardcode_direct_GCJ=yes
25128 hardcode_shlibpath_var_GCJ=no
25132 if test "$GCC" = yes; then
25133 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'
25135 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'
25137 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25138 hardcode_libdir_separator_GCJ=:
25139 hardcode_direct_GCJ=yes
25141 # hardcode_minus_L: Not really in the search PATH,
25142 # but as the default location of the library.
25143 hardcode_minus_L_GCJ=yes
25144 export_dynamic_flag_spec_GCJ='${wl}-E'
25148 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25149 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25151 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25153 if test "$with_gnu_ld" = no; then
25154 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25155 hardcode_libdir_separator_GCJ=:
25157 hardcode_direct_GCJ=yes
25158 export_dynamic_flag_spec_GCJ='${wl}-E'
25160 # hardcode_minus_L: Not really in the search PATH,
25161 # but as the default location of the library.
25162 hardcode_minus_L_GCJ=yes
25167 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25170 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25173 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25176 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25182 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25185 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25188 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25192 if test "$with_gnu_ld" = no; then
25193 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25194 hardcode_libdir_separator_GCJ=:
25198 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25199 hardcode_direct_GCJ=no
25200 hardcode_shlibpath_var_GCJ=no
25203 hardcode_direct_GCJ=yes
25204 export_dynamic_flag_spec_GCJ='${wl}-E'
25206 # hardcode_minus_L: Not really in the search PATH,
25207 # but as the default location of the library.
25208 hardcode_minus_L_GCJ=yes
25214 irix5* | irix6* | nonstopux*)
25215 if test "$GCC" = yes; then
25216 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'
25218 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'
25219 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25221 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25222 hardcode_libdir_separator_GCJ=:
25223 link_all_deplibs_GCJ=yes
25227 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25228 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25230 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25232 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25233 hardcode_direct_GCJ=yes
25234 hardcode_shlibpath_var_GCJ=no
25238 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25239 hardcode_direct_GCJ=yes
25240 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25241 hardcode_libdir_separator_GCJ=:
25242 hardcode_shlibpath_var_GCJ=no
25246 hardcode_direct_GCJ=yes
25247 hardcode_shlibpath_var_GCJ=no
25248 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25249 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25250 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25251 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25252 export_dynamic_flag_spec_GCJ='${wl}-E'
25255 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25256 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25257 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25260 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25261 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25268 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25269 hardcode_minus_L_GCJ=yes
25270 allow_undefined_flag_GCJ=unsupported
25271 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'
25272 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25276 if test "$GCC" = yes; then
25277 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25278 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'
25280 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25281 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'
25283 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25284 hardcode_libdir_separator_GCJ=:
25287 osf4* | osf5*) # as osf3* with the addition of -msym flag
25288 if test "$GCC" = yes; then
25289 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25290 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'
25291 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25293 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25294 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'
25295 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~
25296 $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'
25298 # Both c and cxx compiler support -rpath directly
25299 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25301 hardcode_libdir_separator_GCJ=:
25305 no_undefined_flag_GCJ=' -z text'
25306 if test "$GCC" = yes; then
25308 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25309 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25310 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25313 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25314 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25315 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25317 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25318 hardcode_shlibpath_var_GCJ=no
25320 solaris2.[0-5] | solaris2.[0-5].*) ;;
25322 # The compiler driver will combine linker options so we
25323 # cannot just pass the convience library names through
25324 # without $wl, iff we do not link with $LD.
25325 # Luckily, gcc supports the same syntax we need for Sun Studio.
25326 # Supported since Solaris 2.6 (maybe 2.5.1?)
25329 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25331 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' ;;
25334 link_all_deplibs_GCJ=yes
25338 if test "x$host_vendor" = xsequent; then
25339 # Use $CC to link under sequent, because it throws in some extra .o
25340 # files that make .init and .fini sections work.
25341 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25343 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25345 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25346 hardcode_direct_GCJ=yes
25347 hardcode_minus_L_GCJ=yes
25348 hardcode_shlibpath_var_GCJ=no
25352 case $host_vendor in
25354 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25355 hardcode_direct_GCJ=yes # is this really true???
25358 ## LD is ld it makes a PLAMLIB
25359 ## CC just makes a GrossModule.
25360 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25361 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25362 hardcode_direct_GCJ=no
25365 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25366 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25369 runpath_var='LD_RUN_PATH'
25370 hardcode_shlibpath_var_GCJ=no
25374 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25375 hardcode_shlibpath_var_GCJ=no
25376 export_dynamic_flag_spec_GCJ='-Bexport'
25380 if test -d /usr/nec; then
25381 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25382 hardcode_shlibpath_var_GCJ=no
25383 runpath_var=LD_RUN_PATH
25384 hardcode_runpath_var=yes
25389 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25390 no_undefined_flag_GCJ='${wl}-z,text'
25391 archive_cmds_need_lc_GCJ=no
25392 hardcode_shlibpath_var_GCJ=no
25393 runpath_var='LD_RUN_PATH'
25395 if test "$GCC" = yes; then
25396 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25397 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25399 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25400 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25404 sysv5* | sco3.2v5* | sco5v6*)
25405 # Note: We can NOT use -z defs as we might desire, because we do not
25406 # link with -lc, and that would cause any symbols used from libc to
25407 # always be unresolved, which means just about no library would
25408 # ever link correctly. If we're not using GNU ld we use -z text
25409 # though, which does catch some bad symbols but isn't as heavy-handed
25411 no_undefined_flag_GCJ='${wl}-z,text'
25412 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25413 archive_cmds_need_lc_GCJ=no
25414 hardcode_shlibpath_var_GCJ=no
25415 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25416 hardcode_libdir_separator_GCJ=':'
25417 link_all_deplibs_GCJ=yes
25418 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25419 runpath_var='LD_RUN_PATH'
25421 if test "$GCC" = yes; then
25422 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25423 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25425 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25426 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25431 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25432 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25433 hardcode_shlibpath_var_GCJ=no
25442 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25443 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25444 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25447 # Do we need to explicitly link libc?
25449 case "x$archive_cmds_need_lc_GCJ" in
25451 # Assume -lc should be added
25452 archive_cmds_need_lc_GCJ=yes
25454 if test "$enable_shared" = yes && test "$GCC" = yes; then
25455 case $archive_cmds_GCJ in
25457 # FIXME: we may have to deal with multi-command sequences.
25460 # Test whether the compiler implicitly links with -lc since on some
25461 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25462 # to ld, don't add -lc before -lgcc.
25463 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25464 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25466 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25469 (eval $ac_compile) 2>&5
25471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472 (exit $ac_status); } 2>conftest.err; then
25475 libobjs=conftest.$ac_objext
25477 wl=$lt_prog_compiler_wl_GCJ
25478 pic_flag=$lt_prog_compiler_pic_GCJ
25484 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25485 allow_undefined_flag_GCJ=
25486 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25487 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); }
25492 archive_cmds_need_lc_GCJ=no
25494 archive_cmds_need_lc_GCJ=yes
25496 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25498 cat conftest.err 1>&5
25501 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25502 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25509 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25510 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25511 library_names_spec=
25512 libname_spec='lib$name'
25516 postuninstall_cmds=
25520 shlibpath_overrides_runpath=unknown
25522 dynamic_linker="$host_os ld.so"
25523 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25524 if test "$GCC" = yes; then
25525 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25526 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25527 # if the path contains ";" then we assume it to be the separator
25528 # otherwise default to the standard path separator (i.e. ":") - it is
25529 # assumed that no part of a normal pathname contains ";" but that should
25530 # okay in the real world where ";" in dirpaths is itself problematic.
25531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25533 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25536 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25538 need_lib_prefix=unknown
25539 hardcode_into_libs=no
25541 # when you set need_version to no, make sure it does not cause -set_version
25542 # flags to be left without arguments
25543 need_version=unknown
25548 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25549 shlibpath_var=LIBPATH
25551 # AIX 3 has no versioning support, so we append a major version to the name.
25552 soname_spec='${libname}${release}${shared_ext}$major'
25559 hardcode_into_libs=yes
25560 if test "$host_cpu" = ia64; then
25561 # AIX 5 supports IA64
25562 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25563 shlibpath_var=LD_LIBRARY_PATH
25565 # With GCC up to 2.95.x, collect2 would create an import file
25566 # for dependence libraries. The import file would start with
25567 # the line `#! .'. This would cause the generated library to
25568 # depend on `.', always an invalid library. This was fixed in
25569 # development snapshots of GCC prior to 3.0.
25571 aix4 | aix4.[01] | aix4.[01].*)
25572 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25574 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25577 can_build_shared=no
25581 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25582 # soname into executable. Probably we can add versioning support to
25583 # collect2, so additional links can be useful in future.
25584 if test "$aix_use_runtimelinking" = yes; then
25585 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25586 # instead of lib<name>.a to let people know that these are not
25587 # typical AIX shared libraries.
25588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25590 # We preserve .a as extension for shared libraries through AIX4.2
25591 # and later when we are not doing run time linking.
25592 library_names_spec='${libname}${release}.a $libname.a'
25593 soname_spec='${libname}${release}${shared_ext}$major'
25595 shlibpath_var=LIBPATH
25600 library_names_spec='$libname.ixlibrary $libname.a'
25601 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25602 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'
25606 library_names_spec='${libname}${shared_ext}'
25607 dynamic_linker="$host_os ld.so"
25608 shlibpath_var=LIBRARY_PATH
25614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25615 soname_spec='${libname}${release}${shared_ext}$major'
25616 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25617 shlibpath_var=LD_LIBRARY_PATH
25618 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25619 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25620 # the default ld.so.conf also contains /usr/contrib/lib and
25621 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25622 # libtool to hard-code these into programs
25625 cygwin* | mingw* | pw32*)
25626 version_type=windows
25631 case $GCC,$host_os in
25632 yes,cygwin* | yes,mingw* | yes,pw32*)
25633 library_names_spec='$libname.dll.a'
25634 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25635 postinstall_cmds='base_file=`basename \${file}`~
25636 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25637 dldir=$destdir/`dirname \$dlpath`~
25638 test -d \$dldir || mkdir -p \$dldir~
25639 $install_prog $dir/$dlname \$dldir/$dlname~
25640 chmod a+x \$dldir/$dlname'
25641 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25642 dlpath=$dir/\$dldll~
25644 shlibpath_overrides_runpath=yes
25648 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25649 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25650 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25653 # MinGW DLLs use traditional 'lib' prefix
25654 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25655 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25656 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25657 # It is most probably a Windows format PATH printed by
25658 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25659 # path with ; separators, and with drive letters. We can handle the
25660 # drive letters (cygwin fileutils understands them), so leave them,
25661 # especially as we might pass files found there to a mingw objdump,
25662 # which wouldn't understand a cygwinified path. Ahh.
25663 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25665 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25669 # pw32 DLLs use 'pw' prefix rather than 'lib'
25670 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25676 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25679 dynamic_linker='Win32 ld.exe'
25680 # FIXME: first we should search . and the directory the executable is in
25684 darwin* | rhapsody*)
25685 dynamic_linker="$host_os dyld"
25686 version_type=darwin
25689 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25690 soname_spec='${libname}${release}${major}$shared_ext'
25691 shlibpath_overrides_runpath=yes
25692 shlibpath_var=DYLD_LIBRARY_PATH
25693 shrext_cmds='.dylib'
25694 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25695 if test "$GCC" = yes; then
25696 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"`
25698 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25700 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25708 soname_spec='${libname}${release}${shared_ext}$major'
25709 shlibpath_var=LD_LIBRARY_PATH
25720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25721 soname_spec='${libname}${release}${shared_ext}$major'
25722 shlibpath_var=LD_LIBRARY_PATH
25723 shlibpath_overrides_runpath=no
25724 hardcode_into_libs=yes
25725 dynamic_linker='GNU ld.so'
25728 freebsd* | dragonfly*)
25729 # DragonFly does not have aout. When/if they implement a new
25730 # versioning mechanism, adjust this.
25731 if test -x /usr/bin/objformat; then
25732 objformat=`/usr/bin/objformat`
25735 freebsd[123]*) objformat=aout ;;
25736 *) objformat=elf ;;
25739 version_type=freebsd-$objformat
25740 case $version_type in
25742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25747 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25751 shlibpath_var=LD_LIBRARY_PATH
25754 shlibpath_overrides_runpath=yes
25756 freebsd3.[01]* | freebsdelf3.[01]*)
25757 shlibpath_overrides_runpath=yes
25758 hardcode_into_libs=yes
25760 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25761 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25762 shlibpath_overrides_runpath=no
25763 hardcode_into_libs=yes
25765 freebsd*) # from 4.6 on
25766 shlibpath_overrides_runpath=yes
25767 hardcode_into_libs=yes
25776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25777 soname_spec='${libname}${release}${shared_ext}$major'
25778 shlibpath_var=LD_LIBRARY_PATH
25779 hardcode_into_libs=yes
25782 hpux9* | hpux10* | hpux11*)
25783 # Give a soname corresponding to the major version so that dld.sl refuses to
25784 # link against other versions.
25791 hardcode_into_libs=yes
25792 dynamic_linker="$host_os dld.so"
25793 shlibpath_var=LD_LIBRARY_PATH
25794 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25796 soname_spec='${libname}${release}${shared_ext}$major'
25797 if test "X$HPUX_IA64_MODE" = X32; then
25798 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25800 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25802 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25806 hardcode_into_libs=yes
25807 dynamic_linker="$host_os dld.sl"
25808 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25809 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25811 soname_spec='${libname}${release}${shared_ext}$major'
25812 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25813 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25817 dynamic_linker="$host_os dld.sl"
25818 shlibpath_var=SHLIB_PATH
25819 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25821 soname_spec='${libname}${release}${shared_ext}$major'
25824 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25825 postinstall_cmds='chmod 555 $lib'
25832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25833 soname_spec='${libname}${release}${shared_ext}$major'
25834 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25835 shlibpath_var=LD_LIBRARY_PATH
25836 shlibpath_overrides_runpath=no
25837 hardcode_into_libs=yes
25840 irix5* | irix6* | nonstopux*)
25842 nonstopux*) version_type=nonstopux ;;
25844 if test "$lt_cv_prog_gnu_ld" = yes; then
25852 soname_spec='${libname}${release}${shared_ext}$major'
25853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25855 irix5* | nonstopux*)
25856 libsuff= shlibsuff=
25859 case $LD in # libtool.m4 will add one of these switches to LD
25860 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25861 libsuff= shlibsuff= libmagic=32-bit;;
25862 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25863 libsuff=32 shlibsuff=N32 libmagic=N32;;
25864 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25865 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25866 *) libsuff= shlibsuff= libmagic=never-match;;
25870 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25871 shlibpath_overrides_runpath=no
25872 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25873 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25874 hardcode_into_libs=yes
25877 # No shared lib support for Linux oldld, aout, or coff.
25878 linux*oldld* | linux*aout* | linux*coff*)
25882 # This must be Linux ELF.
25887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25888 soname_spec='${libname}${release}${shared_ext}$major'
25889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25890 shlibpath_var=LD_LIBRARY_PATH
25891 shlibpath_overrides_runpath=no
25892 # This implies no fast_install, which is unacceptable.
25893 # Some rework will be needed to allow for fast_install
25894 # before this can be enabled.
25895 hardcode_into_libs=yes
25897 # Append ld.so.conf contents to the search path
25898 if test -f /etc/ld.so.conf; then
25899 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' ' '`
25900 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25903 # We used to test for /lib/ld.so.1 and disable shared libraries on
25904 # powerpc, because MkLinux only supported shared libraries with the
25905 # GNU dynamic linker. Since this was broken with cross compilers,
25906 # most powerpc-linux boxes support dynamic linking these days and
25907 # people can always --disable-shared, the test was removed, and we
25908 # assume the GNU/Linux dynamic linker is in use.
25909 dynamic_linker='GNU/Linux ld.so'
25916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25917 soname_spec='${libname}${release}${shared_ext}$major'
25918 shlibpath_var=LD_LIBRARY_PATH
25919 shlibpath_overrides_runpath=no
25920 hardcode_into_libs=yes
25921 dynamic_linker='GNU ld.so'
25928 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25931 dynamic_linker='NetBSD (a.out) ld.so'
25933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25934 soname_spec='${libname}${release}${shared_ext}$major'
25935 dynamic_linker='NetBSD ld.elf_so'
25937 shlibpath_var=LD_LIBRARY_PATH
25938 shlibpath_overrides_runpath=yes
25939 hardcode_into_libs=yes
25944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25945 shlibpath_var=LD_LIBRARY_PATH
25946 shlibpath_overrides_runpath=yes
25953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25954 soname_spec='${libname}${release}${shared_ext}$major'
25955 shlibpath_var=LD_LIBRARY_PATH
25956 shlibpath_overrides_runpath=yes
25961 sys_lib_dlsearch_path_spec="/usr/lib"
25963 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25965 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25966 *) need_version=no ;;
25968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25970 shlibpath_var=LD_LIBRARY_PATH
25971 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25973 openbsd2.[89] | openbsd2.[89].*)
25974 shlibpath_overrides_runpath=no
25977 shlibpath_overrides_runpath=yes
25981 shlibpath_overrides_runpath=yes
25986 libname_spec='$name'
25989 library_names_spec='$libname${shared_ext} $libname.a'
25990 dynamic_linker='OS/2 ld.exe'
25991 shlibpath_var=LIBPATH
25994 osf3* | osf4* | osf5*)
25998 soname_spec='${libname}${release}${shared_ext}$major'
25999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26000 shlibpath_var=LD_LIBRARY_PATH
26001 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26002 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26010 soname_spec='${libname}${release}${shared_ext}$major'
26011 shlibpath_var=LD_LIBRARY_PATH
26012 shlibpath_overrides_runpath=yes
26013 hardcode_into_libs=yes
26014 # ldd complains unless libraries are executable
26015 postinstall_cmds='chmod +x $lib'
26020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26021 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26022 shlibpath_var=LD_LIBRARY_PATH
26023 shlibpath_overrides_runpath=yes
26024 if test "$with_gnu_ld" = yes; then
26032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26033 soname_spec='${libname}${release}${shared_ext}$major'
26034 shlibpath_var=LD_LIBRARY_PATH
26035 case $host_vendor in
26037 shlibpath_overrides_runpath=no
26039 export_dynamic_flag_spec='${wl}-Blargedynsym'
26040 runpath_var=LD_RUN_PATH
26048 shlibpath_overrides_runpath=no
26049 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26055 if test -d /usr/nec ;then
26057 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26058 soname_spec='$libname${shared_ext}.$major'
26059 shlibpath_var=LD_LIBRARY_PATH
26063 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26064 version_type=freebsd-elf
26067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26068 soname_spec='${libname}${release}${shared_ext}$major'
26069 shlibpath_var=LD_LIBRARY_PATH
26070 hardcode_into_libs=yes
26071 if test "$with_gnu_ld" = yes; then
26072 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26073 shlibpath_overrides_runpath=no
26075 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26076 shlibpath_overrides_runpath=yes
26079 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26083 sys_lib_dlsearch_path_spec='/usr/lib'
26088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26089 soname_spec='${libname}${release}${shared_ext}$major'
26090 shlibpath_var=LD_LIBRARY_PATH
26097 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26098 echo "${ECHO_T}$dynamic_linker" >&6; }
26099 test "$dynamic_linker" = no && can_build_shared=no
26101 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26102 if test "$GCC" = yes; then
26103 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26106 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26107 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26108 hardcode_action_GCJ=
26109 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26110 test -n "$runpath_var_GCJ" || \
26111 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26113 # We can hardcode non-existant directories.
26114 if test "$hardcode_direct_GCJ" != no &&
26115 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26116 # have to relink, otherwise we might link with an installed library
26117 # when we should be linking with a yet-to-be-installed one
26118 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26119 test "$hardcode_minus_L_GCJ" != no; then
26120 # Linking always hardcodes the temporary library directory.
26121 hardcode_action_GCJ=relink
26123 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26124 hardcode_action_GCJ=immediate
26127 # We cannot hardcode anything, or else we can only hardcode existing
26129 hardcode_action_GCJ=unsupported
26131 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26132 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26134 if test "$hardcode_action_GCJ" = relink; then
26135 # Fast installation is not supported
26136 enable_fast_install=no
26137 elif test "$shlibpath_overrides_runpath" = yes ||
26138 test "$enable_shared" = no; then
26139 # Fast installation is not necessary
26140 enable_fast_install=needless
26144 # The else clause should only fire when bootstrapping the
26145 # libtool distribution, otherwise you forgot to ship ltmain.sh
26146 # with your package, and you will get complaints that there are
26147 # no rules to generate ltmain.sh.
26148 if test -f "$ltmain"; then
26149 # See if we are running on zsh, and set the options which allow our commands through
26150 # without removal of \ escapes.
26151 if test -n "${ZSH_VERSION+set}" ; then
26152 setopt NO_GLOB_SUBST
26154 # Now quote all the things that may contain metacharacters while being
26155 # careful not to overquote the AC_SUBSTed values. We take copies of the
26156 # variables and quote the copies for generation of the libtool script.
26157 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26159 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26160 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26161 deplibs_check_method reload_flag reload_cmds need_locks \
26162 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26163 lt_cv_sys_global_symbol_to_c_name_address \
26164 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26165 old_postinstall_cmds old_postuninstall_cmds \
26169 lt_prog_compiler_wl_GCJ \
26170 lt_prog_compiler_pic_GCJ \
26171 lt_prog_compiler_static_GCJ \
26172 lt_prog_compiler_no_builtin_flag_GCJ \
26173 export_dynamic_flag_spec_GCJ \
26174 thread_safe_flag_spec_GCJ \
26175 whole_archive_flag_spec_GCJ \
26176 enable_shared_with_static_runtimes_GCJ \
26177 old_archive_cmds_GCJ \
26178 old_archive_from_new_cmds_GCJ \
26179 predep_objects_GCJ \
26180 postdep_objects_GCJ \
26183 compiler_lib_search_path_GCJ \
26185 archive_expsym_cmds_GCJ \
26186 postinstall_cmds_GCJ \
26187 postuninstall_cmds_GCJ \
26188 old_archive_from_expsyms_cmds_GCJ \
26189 allow_undefined_flag_GCJ \
26190 no_undefined_flag_GCJ \
26191 export_symbols_cmds_GCJ \
26192 hardcode_libdir_flag_spec_GCJ \
26193 hardcode_libdir_flag_spec_ld_GCJ \
26194 hardcode_libdir_separator_GCJ \
26195 hardcode_automatic_GCJ \
26197 module_expsym_cmds_GCJ \
26198 lt_cv_prog_compiler_c_o_GCJ \
26199 exclude_expsyms_GCJ \
26200 include_expsyms_GCJ; do
26203 old_archive_cmds_GCJ | \
26204 old_archive_from_new_cmds_GCJ | \
26205 archive_cmds_GCJ | \
26206 archive_expsym_cmds_GCJ | \
26207 module_cmds_GCJ | \
26208 module_expsym_cmds_GCJ | \
26209 old_archive_from_expsyms_cmds_GCJ | \
26210 export_symbols_cmds_GCJ | \
26211 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26212 postinstall_cmds | postuninstall_cmds | \
26213 old_postinstall_cmds | old_postuninstall_cmds | \
26214 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26215 # Double-quote double-evaled strings.
26216 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26219 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26225 *'\$0 --fallback-echo"')
26226 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26232 cat <<__EOF__ >> "$cfgfile"
26233 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26235 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26237 # Shell to use when invoking shell scripts.
26240 # Whether or not to build shared libraries.
26241 build_libtool_libs=$enable_shared
26243 # Whether or not to build static libraries.
26244 build_old_libs=$enable_static
26246 # Whether or not to add -lc for building shared libraries.
26247 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26249 # Whether or not to disallow shared libs when runtime libs are static
26250 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26252 # Whether or not to optimize for fast installation.
26253 fast_install=$enable_fast_install
26256 host_alias=$host_alias
26260 # The build system.
26261 build_alias=$build_alias
26265 # An echo program that does not interpret backslashes.
26270 AR_FLAGS=$lt_AR_FLAGS
26275 # LTCC compiler flags.
26276 LTCFLAGS=$lt_LTCFLAGS
26278 # A language-specific compiler.
26279 CC=$lt_compiler_GCJ
26281 # Is the compiler the GNU C compiler?
26287 # The linker used to build libraries.
26290 # Whether we need hard or soft links.
26293 # A BSD-compatible nm program.
26296 # A symbol stripping program
26299 # Used to examine libraries when file_magic_cmd begins "file"
26300 MAGIC_CMD=$MAGIC_CMD
26302 # Used on cygwin: DLL creation program.
26305 # Used on cygwin: object dumper.
26308 # Used on cygwin: assembler.
26311 # The name of the directory that contains temporary libtool files.
26314 # How to create reloadable object files.
26315 reload_flag=$lt_reload_flag
26316 reload_cmds=$lt_reload_cmds
26318 # How to pass a linker flag through the compiler.
26319 wl=$lt_lt_prog_compiler_wl_GCJ
26321 # Object file suffix (normally "o").
26322 objext="$ac_objext"
26324 # Old archive suffix (normally "a").
26327 # Shared library suffix (normally ".so").
26328 shrext_cmds='$shrext_cmds'
26330 # Executable file suffix (normally "").
26333 # Additional compiler flags for building library objects.
26334 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26337 # What is the maximum length of a command?
26338 max_cmd_len=$lt_cv_sys_max_cmd_len
26340 # Does compiler simultaneously support -c and -o options?
26341 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26343 # Must we lock files when doing compilation?
26344 need_locks=$lt_need_locks
26346 # Do we need the lib prefix for modules?
26347 need_lib_prefix=$need_lib_prefix
26349 # Do we need a version for libraries?
26350 need_version=$need_version
26352 # Whether dlopen is supported.
26353 dlopen_support=$enable_dlopen
26355 # Whether dlopen of programs is supported.
26356 dlopen_self=$enable_dlopen_self
26358 # Whether dlopen of statically linked programs is supported.
26359 dlopen_self_static=$enable_dlopen_self_static
26361 # Compiler flag to prevent dynamic linking.
26362 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26364 # Compiler flag to turn off builtin functions.
26365 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26367 # Compiler flag to allow reflexive dlopens.
26368 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26370 # Compiler flag to generate shared objects directly from archives.
26371 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26373 # Compiler flag to generate thread-safe objects.
26374 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26376 # Library versioning type.
26377 version_type=$version_type
26379 # Format of library name prefix.
26380 libname_spec=$lt_libname_spec
26382 # List of archive names. First name is the real one, the rest are links.
26383 # The last name is the one that the linker finds with -lNAME.
26384 library_names_spec=$lt_library_names_spec
26386 # The coded name of the library, if different from the real name.
26387 soname_spec=$lt_soname_spec
26389 # Commands used to build and install an old-style archive.
26391 old_archive_cmds=$lt_old_archive_cmds_GCJ
26392 old_postinstall_cmds=$lt_old_postinstall_cmds
26393 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26395 # Create an old-style archive from a shared archive.
26396 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26398 # Create a temporary old-style archive to link instead of a shared archive.
26399 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26401 # Commands used to build and install a shared archive.
26402 archive_cmds=$lt_archive_cmds_GCJ
26403 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26404 postinstall_cmds=$lt_postinstall_cmds
26405 postuninstall_cmds=$lt_postuninstall_cmds
26407 # Commands used to build a loadable module (assumed same as above if empty)
26408 module_cmds=$lt_module_cmds_GCJ
26409 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26411 # Commands to strip libraries.
26412 old_striplib=$lt_old_striplib
26413 striplib=$lt_striplib
26415 # Dependencies to place before the objects being linked to create a
26417 predep_objects=$lt_predep_objects_GCJ
26419 # Dependencies to place after the objects being linked to create a
26421 postdep_objects=$lt_postdep_objects_GCJ
26423 # Dependencies to place before the objects being linked to create a
26425 predeps=$lt_predeps_GCJ
26427 # Dependencies to place after the objects being linked to create a
26429 postdeps=$lt_postdeps_GCJ
26431 # The library search path used internally by the compiler when linking
26432 # a shared library.
26433 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26435 # Method to check whether dependent libraries are shared objects.
26436 deplibs_check_method=$lt_deplibs_check_method
26438 # Command to use when deplibs_check_method == file_magic.
26439 file_magic_cmd=$lt_file_magic_cmd
26441 # Flag that allows shared libraries with undefined symbols to be built.
26442 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26444 # Flag that forces no undefined symbols.
26445 no_undefined_flag=$lt_no_undefined_flag_GCJ
26447 # Commands used to finish a libtool library installation in a directory.
26448 finish_cmds=$lt_finish_cmds
26450 # Same as above, but a single script fragment to be evaled but not shown.
26451 finish_eval=$lt_finish_eval
26453 # Take the output of nm and produce a listing of raw symbols and C names.
26454 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26456 # Transform the output of nm in a proper C declaration
26457 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26459 # Transform the output of nm in a C name address pair
26460 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26462 # This is the shared library runtime path variable.
26463 runpath_var=$runpath_var
26465 # This is the shared library path variable.
26466 shlibpath_var=$shlibpath_var
26468 # Is shlibpath searched before the hard-coded library search path?
26469 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26471 # How to hardcode a shared library path into an executable.
26472 hardcode_action=$hardcode_action_GCJ
26474 # Whether we should hardcode library paths into libraries.
26475 hardcode_into_libs=$hardcode_into_libs
26477 # Flag to hardcode \$libdir into a binary during linking.
26478 # This must work even if \$libdir does not exist.
26479 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26481 # If ld is used when linking, flag to hardcode \$libdir into
26482 # a binary during linking. This must work even if \$libdir does
26484 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26486 # Whether we need a single -rpath flag with a separated argument.
26487 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26489 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26490 # resulting binary.
26491 hardcode_direct=$hardcode_direct_GCJ
26493 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26494 # resulting binary.
26495 hardcode_minus_L=$hardcode_minus_L_GCJ
26497 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26498 # the resulting binary.
26499 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26501 # Set to yes if building a shared library automatically hardcodes DIR into the library
26502 # and all subsequent libraries and executables linked against it.
26503 hardcode_automatic=$hardcode_automatic_GCJ
26505 # Variables whose values should be saved in libtool wrapper scripts and
26506 # restored at relink time.
26507 variables_saved_for_relink="$variables_saved_for_relink"
26509 # Whether libtool must link a program against all its dependency libraries.
26510 link_all_deplibs=$link_all_deplibs_GCJ
26512 # Compile-time system search path for libraries
26513 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26515 # Run-time system search path for libraries
26516 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26518 # Fix the shell variable \$srcfile for the compiler.
26519 fix_srcfile_path="$fix_srcfile_path_GCJ"
26521 # Set to yes if exported symbols are required.
26522 always_export_symbols=$always_export_symbols_GCJ
26524 # The commands to list exported symbols.
26525 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26527 # The commands to extract the exported symbol list from a shared archive.
26528 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26530 # Symbols that should not be listed in the preloaded symbols.
26531 exclude_expsyms=$lt_exclude_expsyms_GCJ
26533 # Symbols that must always be exported.
26534 include_expsyms=$lt_include_expsyms_GCJ
26536 # ### END LIBTOOL TAG CONFIG: $tagname
26542 # If there is no Makefile yet, we rely on a make rule to execute
26543 # `config.status --recheck' to rerun these tests and create the
26544 # libtool script then.
26545 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26546 if test -f "$ltmain_in"; then
26547 test -f Makefile && make "$ltmain"
26553 ac_cpp='$CPP $CPPFLAGS'
26554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26567 ac_cpp='$CPP $CPPFLAGS'
26568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26573 # Source file extension for RC test sources.
26576 # Object file extension for compiled RC test sources.
26580 # Code to be used in simple compile tests
26581 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26583 # Code to be used in simple link tests
26584 lt_simple_link_test_code="$lt_simple_compile_test_code"
26586 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26588 # If no C compiler was specified, use CC.
26591 # If no C compiler flags were specified, use CFLAGS.
26592 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26594 # Allow CC to be a program name with arguments.
26598 # save warnings/boilerplate of simple test code
26599 ac_outfile=conftest.$ac_objext
26600 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26601 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26602 _lt_compiler_boilerplate=`cat conftest.err`
26605 ac_outfile=conftest.$ac_objext
26606 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26607 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26608 _lt_linker_boilerplate=`cat conftest.err`
26612 # Allow CC to be a program name with arguments.
26617 for cc_temp in $compiler""; do
26619 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26620 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26625 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26627 lt_cv_prog_compiler_c_o_RC=yes
26629 # The else clause should only fire when bootstrapping the
26630 # libtool distribution, otherwise you forgot to ship ltmain.sh
26631 # with your package, and you will get complaints that there are
26632 # no rules to generate ltmain.sh.
26633 if test -f "$ltmain"; then
26634 # See if we are running on zsh, and set the options which allow our commands through
26635 # without removal of \ escapes.
26636 if test -n "${ZSH_VERSION+set}" ; then
26637 setopt NO_GLOB_SUBST
26639 # Now quote all the things that may contain metacharacters while being
26640 # careful not to overquote the AC_SUBSTed values. We take copies of the
26641 # variables and quote the copies for generation of the libtool script.
26642 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26644 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26645 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26646 deplibs_check_method reload_flag reload_cmds need_locks \
26647 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26648 lt_cv_sys_global_symbol_to_c_name_address \
26649 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26650 old_postinstall_cmds old_postuninstall_cmds \
26654 lt_prog_compiler_wl_RC \
26655 lt_prog_compiler_pic_RC \
26656 lt_prog_compiler_static_RC \
26657 lt_prog_compiler_no_builtin_flag_RC \
26658 export_dynamic_flag_spec_RC \
26659 thread_safe_flag_spec_RC \
26660 whole_archive_flag_spec_RC \
26661 enable_shared_with_static_runtimes_RC \
26662 old_archive_cmds_RC \
26663 old_archive_from_new_cmds_RC \
26664 predep_objects_RC \
26665 postdep_objects_RC \
26668 compiler_lib_search_path_RC \
26670 archive_expsym_cmds_RC \
26671 postinstall_cmds_RC \
26672 postuninstall_cmds_RC \
26673 old_archive_from_expsyms_cmds_RC \
26674 allow_undefined_flag_RC \
26675 no_undefined_flag_RC \
26676 export_symbols_cmds_RC \
26677 hardcode_libdir_flag_spec_RC \
26678 hardcode_libdir_flag_spec_ld_RC \
26679 hardcode_libdir_separator_RC \
26680 hardcode_automatic_RC \
26682 module_expsym_cmds_RC \
26683 lt_cv_prog_compiler_c_o_RC \
26684 exclude_expsyms_RC \
26685 include_expsyms_RC; do
26688 old_archive_cmds_RC | \
26689 old_archive_from_new_cmds_RC | \
26690 archive_cmds_RC | \
26691 archive_expsym_cmds_RC | \
26693 module_expsym_cmds_RC | \
26694 old_archive_from_expsyms_cmds_RC | \
26695 export_symbols_cmds_RC | \
26696 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26697 postinstall_cmds | postuninstall_cmds | \
26698 old_postinstall_cmds | old_postuninstall_cmds | \
26699 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26700 # Double-quote double-evaled strings.
26701 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26704 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26710 *'\$0 --fallback-echo"')
26711 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26717 cat <<__EOF__ >> "$cfgfile"
26718 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26720 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26722 # Shell to use when invoking shell scripts.
26725 # Whether or not to build shared libraries.
26726 build_libtool_libs=$enable_shared
26728 # Whether or not to build static libraries.
26729 build_old_libs=$enable_static
26731 # Whether or not to add -lc for building shared libraries.
26732 build_libtool_need_lc=$archive_cmds_need_lc_RC
26734 # Whether or not to disallow shared libs when runtime libs are static
26735 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26737 # Whether or not to optimize for fast installation.
26738 fast_install=$enable_fast_install
26741 host_alias=$host_alias
26745 # The build system.
26746 build_alias=$build_alias
26750 # An echo program that does not interpret backslashes.
26755 AR_FLAGS=$lt_AR_FLAGS
26760 # LTCC compiler flags.
26761 LTCFLAGS=$lt_LTCFLAGS
26763 # A language-specific compiler.
26766 # Is the compiler the GNU C compiler?
26772 # The linker used to build libraries.
26775 # Whether we need hard or soft links.
26778 # A BSD-compatible nm program.
26781 # A symbol stripping program
26784 # Used to examine libraries when file_magic_cmd begins "file"
26785 MAGIC_CMD=$MAGIC_CMD
26787 # Used on cygwin: DLL creation program.
26790 # Used on cygwin: object dumper.
26793 # Used on cygwin: assembler.
26796 # The name of the directory that contains temporary libtool files.
26799 # How to create reloadable object files.
26800 reload_flag=$lt_reload_flag
26801 reload_cmds=$lt_reload_cmds
26803 # How to pass a linker flag through the compiler.
26804 wl=$lt_lt_prog_compiler_wl_RC
26806 # Object file suffix (normally "o").
26807 objext="$ac_objext"
26809 # Old archive suffix (normally "a").
26812 # Shared library suffix (normally ".so").
26813 shrext_cmds='$shrext_cmds'
26815 # Executable file suffix (normally "").
26818 # Additional compiler flags for building library objects.
26819 pic_flag=$lt_lt_prog_compiler_pic_RC
26822 # What is the maximum length of a command?
26823 max_cmd_len=$lt_cv_sys_max_cmd_len
26825 # Does compiler simultaneously support -c and -o options?
26826 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26828 # Must we lock files when doing compilation?
26829 need_locks=$lt_need_locks
26831 # Do we need the lib prefix for modules?
26832 need_lib_prefix=$need_lib_prefix
26834 # Do we need a version for libraries?
26835 need_version=$need_version
26837 # Whether dlopen is supported.
26838 dlopen_support=$enable_dlopen
26840 # Whether dlopen of programs is supported.
26841 dlopen_self=$enable_dlopen_self
26843 # Whether dlopen of statically linked programs is supported.
26844 dlopen_self_static=$enable_dlopen_self_static
26846 # Compiler flag to prevent dynamic linking.
26847 link_static_flag=$lt_lt_prog_compiler_static_RC
26849 # Compiler flag to turn off builtin functions.
26850 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26852 # Compiler flag to allow reflexive dlopens.
26853 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26855 # Compiler flag to generate shared objects directly from archives.
26856 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26858 # Compiler flag to generate thread-safe objects.
26859 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26861 # Library versioning type.
26862 version_type=$version_type
26864 # Format of library name prefix.
26865 libname_spec=$lt_libname_spec
26867 # List of archive names. First name is the real one, the rest are links.
26868 # The last name is the one that the linker finds with -lNAME.
26869 library_names_spec=$lt_library_names_spec
26871 # The coded name of the library, if different from the real name.
26872 soname_spec=$lt_soname_spec
26874 # Commands used to build and install an old-style archive.
26876 old_archive_cmds=$lt_old_archive_cmds_RC
26877 old_postinstall_cmds=$lt_old_postinstall_cmds
26878 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26880 # Create an old-style archive from a shared archive.
26881 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26883 # Create a temporary old-style archive to link instead of a shared archive.
26884 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26886 # Commands used to build and install a shared archive.
26887 archive_cmds=$lt_archive_cmds_RC
26888 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26889 postinstall_cmds=$lt_postinstall_cmds
26890 postuninstall_cmds=$lt_postuninstall_cmds
26892 # Commands used to build a loadable module (assumed same as above if empty)
26893 module_cmds=$lt_module_cmds_RC
26894 module_expsym_cmds=$lt_module_expsym_cmds_RC
26896 # Commands to strip libraries.
26897 old_striplib=$lt_old_striplib
26898 striplib=$lt_striplib
26900 # Dependencies to place before the objects being linked to create a
26902 predep_objects=$lt_predep_objects_RC
26904 # Dependencies to place after the objects being linked to create a
26906 postdep_objects=$lt_postdep_objects_RC
26908 # Dependencies to place before the objects being linked to create a
26910 predeps=$lt_predeps_RC
26912 # Dependencies to place after the objects being linked to create a
26914 postdeps=$lt_postdeps_RC
26916 # The library search path used internally by the compiler when linking
26917 # a shared library.
26918 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26920 # Method to check whether dependent libraries are shared objects.
26921 deplibs_check_method=$lt_deplibs_check_method
26923 # Command to use when deplibs_check_method == file_magic.
26924 file_magic_cmd=$lt_file_magic_cmd
26926 # Flag that allows shared libraries with undefined symbols to be built.
26927 allow_undefined_flag=$lt_allow_undefined_flag_RC
26929 # Flag that forces no undefined symbols.
26930 no_undefined_flag=$lt_no_undefined_flag_RC
26932 # Commands used to finish a libtool library installation in a directory.
26933 finish_cmds=$lt_finish_cmds
26935 # Same as above, but a single script fragment to be evaled but not shown.
26936 finish_eval=$lt_finish_eval
26938 # Take the output of nm and produce a listing of raw symbols and C names.
26939 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26941 # Transform the output of nm in a proper C declaration
26942 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26944 # Transform the output of nm in a C name address pair
26945 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26947 # This is the shared library runtime path variable.
26948 runpath_var=$runpath_var
26950 # This is the shared library path variable.
26951 shlibpath_var=$shlibpath_var
26953 # Is shlibpath searched before the hard-coded library search path?
26954 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26956 # How to hardcode a shared library path into an executable.
26957 hardcode_action=$hardcode_action_RC
26959 # Whether we should hardcode library paths into libraries.
26960 hardcode_into_libs=$hardcode_into_libs
26962 # Flag to hardcode \$libdir into a binary during linking.
26963 # This must work even if \$libdir does not exist.
26964 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26966 # If ld is used when linking, flag to hardcode \$libdir into
26967 # a binary during linking. This must work even if \$libdir does
26969 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26971 # Whether we need a single -rpath flag with a separated argument.
26972 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26974 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26975 # resulting binary.
26976 hardcode_direct=$hardcode_direct_RC
26978 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26979 # resulting binary.
26980 hardcode_minus_L=$hardcode_minus_L_RC
26982 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26983 # the resulting binary.
26984 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26986 # Set to yes if building a shared library automatically hardcodes DIR into the library
26987 # and all subsequent libraries and executables linked against it.
26988 hardcode_automatic=$hardcode_automatic_RC
26990 # Variables whose values should be saved in libtool wrapper scripts and
26991 # restored at relink time.
26992 variables_saved_for_relink="$variables_saved_for_relink"
26994 # Whether libtool must link a program against all its dependency libraries.
26995 link_all_deplibs=$link_all_deplibs_RC
26997 # Compile-time system search path for libraries
26998 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27000 # Run-time system search path for libraries
27001 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27003 # Fix the shell variable \$srcfile for the compiler.
27004 fix_srcfile_path="$fix_srcfile_path_RC"
27006 # Set to yes if exported symbols are required.
27007 always_export_symbols=$always_export_symbols_RC
27009 # The commands to list exported symbols.
27010 export_symbols_cmds=$lt_export_symbols_cmds_RC
27012 # The commands to extract the exported symbol list from a shared archive.
27013 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27015 # Symbols that should not be listed in the preloaded symbols.
27016 exclude_expsyms=$lt_exclude_expsyms_RC
27018 # Symbols that must always be exported.
27019 include_expsyms=$lt_include_expsyms_RC
27021 # ### END LIBTOOL TAG CONFIG: $tagname
27027 # If there is no Makefile yet, we rely on a make rule to execute
27028 # `config.status --recheck' to rerun these tests and create the
27029 # libtool script then.
27030 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27031 if test -f "$ltmain_in"; then
27032 test -f Makefile && make "$ltmain"
27038 ac_cpp='$CPP $CPPFLAGS'
27039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27048 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27049 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27050 { (exit 1); exit 1; }; }
27054 # Append the new tag name to the list of available tags.
27055 if test -n "$tagname" ; then
27056 available_tags="$available_tags $tagname"
27062 # Now substitute the updated list of available tags.
27063 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27064 mv "${ofile}T" "$ofile"
27068 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27069 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27070 { (exit 1); exit 1; }; }
27076 # This can be used to rebuild libtool when needed
27077 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27079 # Always use our own libtool.
27080 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27082 # Prevent multiple expansion
27104 if test "$lt_cv_dlopen_self" = "yes" ; then
27106 cat >>confdefs.h <<\_ACEOF
27107 #define CAN_DLOPEN_SELF 1
27112 if test "$WITH_LLVMGCCDIR" = "default" ; then
27113 LLVMGCC="llvm-gcc${EXEEXT}"
27114 LLVMGXX="llvm-g++${EXEEXT}"
27115 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27116 set dummy $LLVMGCC; ac_word=$2
27117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27119 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27120 echo $ECHO_N "(cached) $ECHO_C" >&6
27124 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27128 for as_dir in $PATH
27131 test -z "$as_dir" && as_dir=.
27132 for ac_exec_ext in '' $ac_executable_extensions; do
27133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27134 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27145 LLVMGCC=$ac_cv_path_LLVMGCC
27146 if test -n "$LLVMGCC"; then
27147 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27148 echo "${ECHO_T}$LLVMGCC" >&6; }
27150 { echo "$as_me:$LINENO: result: no" >&5
27151 echo "${ECHO_T}no" >&6; }
27155 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27156 set dummy $LLVMGXX; ac_word=$2
27157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27159 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27160 echo $ECHO_N "(cached) $ECHO_C" >&6
27164 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27168 for as_dir in $PATH
27171 test -z "$as_dir" && as_dir=.
27172 for ac_exec_ext in '' $ac_executable_extensions; do
27173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27174 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27185 LLVMGXX=$ac_cv_path_LLVMGXX
27186 if test -n "$LLVMGXX"; then
27187 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27188 echo "${ECHO_T}$LLVMGXX" >&6; }
27190 { echo "$as_me:$LINENO: result: no" >&5
27191 echo "${ECHO_T}no" >&6; }
27196 if test -z "$LLVMGCC"; then
27197 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27199 if test -z "$LLVMGXX"; then
27200 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27208 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27209 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27222 if test "$GCC" != "yes" && test "$ICC" != "yes"
27224 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27225 echo "$as_me: error: gcc|icc required but not found" >&2;}
27226 { (exit 1); exit 1; }; }
27229 if test "$GXX" != "yes" && test "$IXX" != "yes"
27231 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27232 echo "$as_me: error: g++|icc required but not found" >&2;}
27233 { (exit 1); exit 1; }; }
27236 if test "$GCC" = "yes"
27238 cat >conftest.$ac_ext <<_ACEOF
27239 #if !defined(__GNUC__) || __GNUC__ < 3
27240 #error Unsupported GCC version
27244 rm -f conftest.$ac_objext
27245 if { (ac_try="$ac_compile"
27246 case "(($ac_try" in
27247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27248 *) ac_try_echo=$ac_try;;
27250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27251 (eval "$ac_compile") 2>conftest.er1
27253 grep -v '^ *+' conftest.er1 >conftest.err
27255 cat conftest.err >&5
27256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257 (exit $ac_status); } &&
27258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27259 { (case "(($ac_try" in
27260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27261 *) ac_try_echo=$ac_try;;
27263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27264 (eval "$ac_try") 2>&5
27266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267 (exit $ac_status); }; } &&
27268 { ac_try='test -s conftest.$ac_objext'
27269 { (case "(($ac_try" in
27270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27271 *) ac_try_echo=$ac_try;;
27273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27274 (eval "$ac_try") 2>&5
27276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277 (exit $ac_status); }; }; then
27280 echo "$as_me: failed program was:" >&5
27281 sed 's/^/| /' conftest.$ac_ext >&5
27283 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27284 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27285 { (exit 1); exit 1; }; }
27288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27291 if test -z "$llvm_cv_gnu_make_command"
27293 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27294 echo "$as_me: error: GNU Make required but not found" >&2;}
27295 { (exit 1); exit 1; }; }
27298 { echo "$as_me:$LINENO: result: ok" >&5
27299 echo "${ECHO_T}ok" >&6; }
27303 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27304 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27305 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27306 echo $ECHO_N "(cached) $ECHO_C" >&6
27308 ac_check_lib_save_LIBS=$LIBS
27310 cat >conftest.$ac_ext <<_ACEOF
27313 cat confdefs.h >>conftest.$ac_ext
27314 cat >>conftest.$ac_ext <<_ACEOF
27315 /* end confdefs.h. */
27317 /* Override any GCC internal prototype to avoid an error.
27318 Use char because int might match the return type of a GCC
27319 builtin and then its argument prototype would still apply. */
27327 return elf_begin ();
27332 rm -f conftest.$ac_objext conftest$ac_exeext
27333 if { (ac_try="$ac_link"
27334 case "(($ac_try" in
27335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27336 *) ac_try_echo=$ac_try;;
27338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27339 (eval "$ac_link") 2>conftest.er1
27341 grep -v '^ *+' conftest.er1 >conftest.err
27343 cat conftest.err >&5
27344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345 (exit $ac_status); } &&
27346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27347 { (case "(($ac_try" in
27348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27349 *) ac_try_echo=$ac_try;;
27351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27352 (eval "$ac_try") 2>&5
27354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355 (exit $ac_status); }; } &&
27356 { ac_try='test -s conftest$ac_exeext'
27357 { (case "(($ac_try" in
27358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27359 *) ac_try_echo=$ac_try;;
27361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27362 (eval "$ac_try") 2>&5
27364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365 (exit $ac_status); }; }; then
27366 ac_cv_lib_elf_elf_begin=yes
27368 echo "$as_me: failed program was:" >&5
27369 sed 's/^/| /' conftest.$ac_ext >&5
27371 ac_cv_lib_elf_elf_begin=no
27374 rm -f core conftest.err conftest.$ac_objext \
27375 conftest$ac_exeext conftest.$ac_ext
27376 LIBS=$ac_check_lib_save_LIBS
27378 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27379 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27380 if test $ac_cv_lib_elf_elf_begin = yes; then
27381 cat >>confdefs.h <<_ACEOF
27382 #define HAVE_LIBELF 1
27390 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27391 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27392 if test "${ac_cv_lib_m_sin+set}" = set; then
27393 echo $ECHO_N "(cached) $ECHO_C" >&6
27395 ac_check_lib_save_LIBS=$LIBS
27397 cat >conftest.$ac_ext <<_ACEOF
27400 cat confdefs.h >>conftest.$ac_ext
27401 cat >>conftest.$ac_ext <<_ACEOF
27402 /* end confdefs.h. */
27404 /* Override any GCC internal prototype to avoid an error.
27405 Use char because int might match the return type of a GCC
27406 builtin and then its argument prototype would still apply. */
27419 rm -f conftest.$ac_objext conftest$ac_exeext
27420 if { (ac_try="$ac_link"
27421 case "(($ac_try" in
27422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27423 *) ac_try_echo=$ac_try;;
27425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27426 (eval "$ac_link") 2>conftest.er1
27428 grep -v '^ *+' conftest.er1 >conftest.err
27430 cat conftest.err >&5
27431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27432 (exit $ac_status); } &&
27433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27434 { (case "(($ac_try" in
27435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27436 *) ac_try_echo=$ac_try;;
27438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27439 (eval "$ac_try") 2>&5
27441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442 (exit $ac_status); }; } &&
27443 { ac_try='test -s conftest$ac_exeext'
27444 { (case "(($ac_try" in
27445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27446 *) ac_try_echo=$ac_try;;
27448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27449 (eval "$ac_try") 2>&5
27451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452 (exit $ac_status); }; }; then
27453 ac_cv_lib_m_sin=yes
27455 echo "$as_me: failed program was:" >&5
27456 sed 's/^/| /' conftest.$ac_ext >&5
27461 rm -f core conftest.err conftest.$ac_objext \
27462 conftest$ac_exeext conftest.$ac_ext
27463 LIBS=$ac_check_lib_save_LIBS
27465 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27466 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27467 if test $ac_cv_lib_m_sin = yes; then
27468 cat >>confdefs.h <<_ACEOF
27469 #define HAVE_LIBM 1
27476 if test "$llvm_cv_os_type" = "MingW" ; then
27478 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27479 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27480 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27481 echo $ECHO_N "(cached) $ECHO_C" >&6
27483 ac_check_lib_save_LIBS=$LIBS
27484 LIBS="-limagehlp $LIBS"
27485 cat >conftest.$ac_ext <<_ACEOF
27488 cat confdefs.h >>conftest.$ac_ext
27489 cat >>conftest.$ac_ext <<_ACEOF
27490 /* end confdefs.h. */
27501 rm -f conftest.$ac_objext conftest$ac_exeext
27502 if { (ac_try="$ac_link"
27503 case "(($ac_try" in
27504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27505 *) ac_try_echo=$ac_try;;
27507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27508 (eval "$ac_link") 2>conftest.er1
27510 grep -v '^ *+' conftest.er1 >conftest.err
27512 cat conftest.err >&5
27513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514 (exit $ac_status); } &&
27515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27516 { (case "(($ac_try" in
27517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27518 *) ac_try_echo=$ac_try;;
27520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27521 (eval "$ac_try") 2>&5
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); }; } &&
27525 { ac_try='test -s conftest$ac_exeext'
27526 { (case "(($ac_try" in
27527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27528 *) ac_try_echo=$ac_try;;
27530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27531 (eval "$ac_try") 2>&5
27533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534 (exit $ac_status); }; }; then
27535 ac_cv_lib_imagehlp_main=yes
27537 echo "$as_me: failed program was:" >&5
27538 sed 's/^/| /' conftest.$ac_ext >&5
27540 ac_cv_lib_imagehlp_main=no
27543 rm -f core conftest.err conftest.$ac_objext \
27544 conftest$ac_exeext conftest.$ac_ext
27545 LIBS=$ac_check_lib_save_LIBS
27547 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27548 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27549 if test $ac_cv_lib_imagehlp_main = yes; then
27550 cat >>confdefs.h <<_ACEOF
27551 #define HAVE_LIBIMAGEHLP 1
27554 LIBS="-limagehlp $LIBS"
27559 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27560 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27561 if test "${ac_cv_lib_psapi_main+set}" = set; then
27562 echo $ECHO_N "(cached) $ECHO_C" >&6
27564 ac_check_lib_save_LIBS=$LIBS
27565 LIBS="-lpsapi $LIBS"
27566 cat >conftest.$ac_ext <<_ACEOF
27569 cat confdefs.h >>conftest.$ac_ext
27570 cat >>conftest.$ac_ext <<_ACEOF
27571 /* end confdefs.h. */
27582 rm -f conftest.$ac_objext conftest$ac_exeext
27583 if { (ac_try="$ac_link"
27584 case "(($ac_try" in
27585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27586 *) ac_try_echo=$ac_try;;
27588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27589 (eval "$ac_link") 2>conftest.er1
27591 grep -v '^ *+' conftest.er1 >conftest.err
27593 cat conftest.err >&5
27594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595 (exit $ac_status); } &&
27596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27597 { (case "(($ac_try" in
27598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27599 *) ac_try_echo=$ac_try;;
27601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27602 (eval "$ac_try") 2>&5
27604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27605 (exit $ac_status); }; } &&
27606 { ac_try='test -s conftest$ac_exeext'
27607 { (case "(($ac_try" in
27608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27609 *) ac_try_echo=$ac_try;;
27611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27612 (eval "$ac_try") 2>&5
27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615 (exit $ac_status); }; }; then
27616 ac_cv_lib_psapi_main=yes
27618 echo "$as_me: failed program was:" >&5
27619 sed 's/^/| /' conftest.$ac_ext >&5
27621 ac_cv_lib_psapi_main=no
27624 rm -f core conftest.err conftest.$ac_objext \
27625 conftest$ac_exeext conftest.$ac_ext
27626 LIBS=$ac_check_lib_save_LIBS
27628 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27629 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27630 if test $ac_cv_lib_psapi_main = yes; then
27631 cat >>confdefs.h <<_ACEOF
27632 #define HAVE_LIBPSAPI 1
27635 LIBS="-lpsapi $LIBS"
27641 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27642 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27643 if test "${ac_cv_search_dlopen+set}" = set; then
27644 echo $ECHO_N "(cached) $ECHO_C" >&6
27646 ac_func_search_save_LIBS=$LIBS
27647 cat >conftest.$ac_ext <<_ACEOF
27650 cat confdefs.h >>conftest.$ac_ext
27651 cat >>conftest.$ac_ext <<_ACEOF
27652 /* end confdefs.h. */
27654 /* Override any GCC internal prototype to avoid an error.
27655 Use char because int might match the return type of a GCC
27656 builtin and then its argument prototype would still apply. */
27669 for ac_lib in '' dl; do
27670 if test -z "$ac_lib"; then
27671 ac_res="none required"
27674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27676 rm -f conftest.$ac_objext conftest$ac_exeext
27677 if { (ac_try="$ac_link"
27678 case "(($ac_try" in
27679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27680 *) ac_try_echo=$ac_try;;
27682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27683 (eval "$ac_link") 2>conftest.er1
27685 grep -v '^ *+' conftest.er1 >conftest.err
27687 cat conftest.err >&5
27688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689 (exit $ac_status); } &&
27690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27691 { (case "(($ac_try" in
27692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27693 *) ac_try_echo=$ac_try;;
27695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27696 (eval "$ac_try") 2>&5
27698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699 (exit $ac_status); }; } &&
27700 { ac_try='test -s conftest$ac_exeext'
27701 { (case "(($ac_try" in
27702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27703 *) ac_try_echo=$ac_try;;
27705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27706 (eval "$ac_try") 2>&5
27708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709 (exit $ac_status); }; }; then
27710 ac_cv_search_dlopen=$ac_res
27712 echo "$as_me: failed program was:" >&5
27713 sed 's/^/| /' conftest.$ac_ext >&5
27718 rm -f core conftest.err conftest.$ac_objext \
27720 if test "${ac_cv_search_dlopen+set}" = set; then
27724 if test "${ac_cv_search_dlopen+set}" = set; then
27727 ac_cv_search_dlopen=no
27729 rm conftest.$ac_ext
27730 LIBS=$ac_func_search_save_LIBS
27732 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27733 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27734 ac_res=$ac_cv_search_dlopen
27735 if test "$ac_res" != no; then
27736 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27738 cat >>confdefs.h <<\_ACEOF
27739 #define HAVE_DLOPEN 1
27743 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27744 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27748 { echo "$as_me:$LINENO: checking for ffi_call in -lffi" >&5
27749 echo $ECHO_N "checking for ffi_call in -lffi... $ECHO_C" >&6; }
27750 if test "${ac_cv_lib_ffi_ffi_call+set}" = set; then
27751 echo $ECHO_N "(cached) $ECHO_C" >&6
27753 ac_check_lib_save_LIBS=$LIBS
27755 cat >conftest.$ac_ext <<_ACEOF
27758 cat confdefs.h >>conftest.$ac_ext
27759 cat >>conftest.$ac_ext <<_ACEOF
27760 /* end confdefs.h. */
27762 /* Override any GCC internal prototype to avoid an error.
27763 Use char because int might match the return type of a GCC
27764 builtin and then its argument prototype would still apply. */
27772 return ffi_call ();
27777 rm -f conftest.$ac_objext conftest$ac_exeext
27778 if { (ac_try="$ac_link"
27779 case "(($ac_try" in
27780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27781 *) ac_try_echo=$ac_try;;
27783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27784 (eval "$ac_link") 2>conftest.er1
27786 grep -v '^ *+' conftest.er1 >conftest.err
27788 cat conftest.err >&5
27789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27790 (exit $ac_status); } &&
27791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27792 { (case "(($ac_try" in
27793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27794 *) ac_try_echo=$ac_try;;
27796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27797 (eval "$ac_try") 2>&5
27799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800 (exit $ac_status); }; } &&
27801 { ac_try='test -s conftest$ac_exeext'
27802 { (case "(($ac_try" in
27803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27804 *) ac_try_echo=$ac_try;;
27806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27807 (eval "$ac_try") 2>&5
27809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810 (exit $ac_status); }; }; then
27811 ac_cv_lib_ffi_ffi_call=yes
27813 echo "$as_me: failed program was:" >&5
27814 sed 's/^/| /' conftest.$ac_ext >&5
27816 ac_cv_lib_ffi_ffi_call=no
27819 rm -f core conftest.err conftest.$ac_objext \
27820 conftest$ac_exeext conftest.$ac_ext
27821 LIBS=$ac_check_lib_save_LIBS
27823 { echo "$as_me:$LINENO: result: $ac_cv_lib_ffi_ffi_call" >&5
27824 echo "${ECHO_T}$ac_cv_lib_ffi_ffi_call" >&6; }
27825 if test $ac_cv_lib_ffi_ffi_call = yes; then
27828 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27829 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27833 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27834 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27835 if test "${ac_cv_search_mallinfo+set}" = set; then
27836 echo $ECHO_N "(cached) $ECHO_C" >&6
27838 ac_func_search_save_LIBS=$LIBS
27839 cat >conftest.$ac_ext <<_ACEOF
27842 cat confdefs.h >>conftest.$ac_ext
27843 cat >>conftest.$ac_ext <<_ACEOF
27844 /* end confdefs.h. */
27846 /* Override any GCC internal prototype to avoid an error.
27847 Use char because int might match the return type of a GCC
27848 builtin and then its argument prototype would still apply. */
27856 return mallinfo ();
27861 for ac_lib in '' malloc; do
27862 if test -z "$ac_lib"; then
27863 ac_res="none required"
27866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27868 rm -f conftest.$ac_objext conftest$ac_exeext
27869 if { (ac_try="$ac_link"
27870 case "(($ac_try" in
27871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27872 *) ac_try_echo=$ac_try;;
27874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27875 (eval "$ac_link") 2>conftest.er1
27877 grep -v '^ *+' conftest.er1 >conftest.err
27879 cat conftest.err >&5
27880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881 (exit $ac_status); } &&
27882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27883 { (case "(($ac_try" in
27884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27885 *) ac_try_echo=$ac_try;;
27887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27888 (eval "$ac_try") 2>&5
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); }; } &&
27892 { ac_try='test -s conftest$ac_exeext'
27893 { (case "(($ac_try" in
27894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27895 *) ac_try_echo=$ac_try;;
27897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27898 (eval "$ac_try") 2>&5
27900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901 (exit $ac_status); }; }; then
27902 ac_cv_search_mallinfo=$ac_res
27904 echo "$as_me: failed program was:" >&5
27905 sed 's/^/| /' conftest.$ac_ext >&5
27910 rm -f core conftest.err conftest.$ac_objext \
27912 if test "${ac_cv_search_mallinfo+set}" = set; then
27916 if test "${ac_cv_search_mallinfo+set}" = set; then
27919 ac_cv_search_mallinfo=no
27921 rm conftest.$ac_ext
27922 LIBS=$ac_func_search_save_LIBS
27924 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27925 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27926 ac_res=$ac_cv_search_mallinfo
27927 if test "$ac_res" != no; then
27928 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27930 cat >>confdefs.h <<\_ACEOF
27931 #define HAVE_MALLINFO 1
27937 if test "$ENABLE_THREADS" -eq 1 ; then
27939 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27940 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27941 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27942 echo $ECHO_N "(cached) $ECHO_C" >&6
27944 ac_check_lib_save_LIBS=$LIBS
27945 LIBS="-lpthread $LIBS"
27946 cat >conftest.$ac_ext <<_ACEOF
27949 cat confdefs.h >>conftest.$ac_ext
27950 cat >>conftest.$ac_ext <<_ACEOF
27951 /* end confdefs.h. */
27953 /* Override any GCC internal prototype to avoid an error.
27954 Use char because int might match the return type of a GCC
27955 builtin and then its argument prototype would still apply. */
27959 char pthread_mutex_init ();
27963 return pthread_mutex_init ();
27968 rm -f conftest.$ac_objext conftest$ac_exeext
27969 if { (ac_try="$ac_link"
27970 case "(($ac_try" in
27971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27972 *) ac_try_echo=$ac_try;;
27974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27975 (eval "$ac_link") 2>conftest.er1
27977 grep -v '^ *+' conftest.er1 >conftest.err
27979 cat conftest.err >&5
27980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981 (exit $ac_status); } &&
27982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27983 { (case "(($ac_try" in
27984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27985 *) ac_try_echo=$ac_try;;
27987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27988 (eval "$ac_try") 2>&5
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); }; } &&
27992 { ac_try='test -s conftest$ac_exeext'
27993 { (case "(($ac_try" in
27994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27995 *) ac_try_echo=$ac_try;;
27997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27998 (eval "$ac_try") 2>&5
28000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28001 (exit $ac_status); }; }; then
28002 ac_cv_lib_pthread_pthread_mutex_init=yes
28004 echo "$as_me: failed program was:" >&5
28005 sed 's/^/| /' conftest.$ac_ext >&5
28007 ac_cv_lib_pthread_pthread_mutex_init=no
28010 rm -f core conftest.err conftest.$ac_objext \
28011 conftest$ac_exeext conftest.$ac_ext
28012 LIBS=$ac_check_lib_save_LIBS
28014 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28015 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28016 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28017 cat >>confdefs.h <<_ACEOF
28018 #define HAVE_LIBPTHREAD 1
28021 LIBS="-lpthread $LIBS"
28025 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28026 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28027 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28028 echo $ECHO_N "(cached) $ECHO_C" >&6
28030 ac_func_search_save_LIBS=$LIBS
28031 cat >conftest.$ac_ext <<_ACEOF
28034 cat confdefs.h >>conftest.$ac_ext
28035 cat >>conftest.$ac_ext <<_ACEOF
28036 /* end confdefs.h. */
28038 /* Override any GCC internal prototype to avoid an error.
28039 Use char because int might match the return type of a GCC
28040 builtin and then its argument prototype would still apply. */
28044 char pthread_mutex_lock ();
28048 return pthread_mutex_lock ();
28053 for ac_lib in '' pthread; do
28054 if test -z "$ac_lib"; then
28055 ac_res="none required"
28058 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28060 rm -f conftest.$ac_objext conftest$ac_exeext
28061 if { (ac_try="$ac_link"
28062 case "(($ac_try" in
28063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28064 *) ac_try_echo=$ac_try;;
28066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28067 (eval "$ac_link") 2>conftest.er1
28069 grep -v '^ *+' conftest.er1 >conftest.err
28071 cat conftest.err >&5
28072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073 (exit $ac_status); } &&
28074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28075 { (case "(($ac_try" in
28076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28077 *) ac_try_echo=$ac_try;;
28079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28080 (eval "$ac_try") 2>&5
28082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083 (exit $ac_status); }; } &&
28084 { ac_try='test -s conftest$ac_exeext'
28085 { (case "(($ac_try" in
28086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28087 *) ac_try_echo=$ac_try;;
28089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28090 (eval "$ac_try") 2>&5
28092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28093 (exit $ac_status); }; }; then
28094 ac_cv_search_pthread_mutex_lock=$ac_res
28096 echo "$as_me: failed program was:" >&5
28097 sed 's/^/| /' conftest.$ac_ext >&5
28102 rm -f core conftest.err conftest.$ac_objext \
28104 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28108 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28111 ac_cv_search_pthread_mutex_lock=no
28113 rm conftest.$ac_ext
28114 LIBS=$ac_func_search_save_LIBS
28116 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28117 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28118 ac_res=$ac_cv_search_pthread_mutex_lock
28119 if test "$ac_res" != no; then
28120 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28122 cat >>confdefs.h <<\_ACEOF
28123 #define HAVE_PTHREAD_MUTEX_LOCK 1
28131 # Check whether --with-udis86 was given.
28132 if test "${with_udis86+set}" = set; then
28133 withval=$with_udis86;
28138 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28141 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28142 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28143 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28144 echo $ECHO_N "(cached) $ECHO_C" >&6
28146 ac_check_lib_save_LIBS=$LIBS
28147 LIBS="-ludis86 $LIBS"
28148 cat >conftest.$ac_ext <<_ACEOF
28151 cat confdefs.h >>conftest.$ac_ext
28152 cat >>conftest.$ac_ext <<_ACEOF
28153 /* end confdefs.h. */
28155 /* Override any GCC internal prototype to avoid an error.
28156 Use char because int might match the return type of a GCC
28157 builtin and then its argument prototype would still apply. */
28170 rm -f conftest.$ac_objext conftest$ac_exeext
28171 if { (ac_try="$ac_link"
28172 case "(($ac_try" in
28173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28174 *) ac_try_echo=$ac_try;;
28176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28177 (eval "$ac_link") 2>conftest.er1
28179 grep -v '^ *+' conftest.er1 >conftest.err
28181 cat conftest.err >&5
28182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183 (exit $ac_status); } &&
28184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28185 { (case "(($ac_try" in
28186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28187 *) ac_try_echo=$ac_try;;
28189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28190 (eval "$ac_try") 2>&5
28192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193 (exit $ac_status); }; } &&
28194 { ac_try='test -s conftest$ac_exeext'
28195 { (case "(($ac_try" in
28196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28197 *) ac_try_echo=$ac_try;;
28199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28200 (eval "$ac_try") 2>&5
28202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203 (exit $ac_status); }; }; then
28204 ac_cv_lib_udis86_ud_init=yes
28206 echo "$as_me: failed program was:" >&5
28207 sed 's/^/| /' conftest.$ac_ext >&5
28209 ac_cv_lib_udis86_ud_init=no
28212 rm -f core conftest.err conftest.$ac_objext \
28213 conftest$ac_exeext conftest.$ac_ext
28214 LIBS=$ac_check_lib_save_LIBS
28216 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28217 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28218 if test $ac_cv_lib_udis86_ud_init = yes; then
28219 cat >>confdefs.h <<_ACEOF
28220 #define HAVE_LIBUDIS86 1
28223 LIBS="-ludis86 $LIBS"
28227 echo "Error! You need to have libudis86 around."
28239 cat >>confdefs.h <<_ACEOF
28240 #define USE_UDIS86 $USE_UDIS86
28250 ac_header_dirent=no
28251 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28252 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28253 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28254 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28256 echo $ECHO_N "(cached) $ECHO_C" >&6
28258 cat >conftest.$ac_ext <<_ACEOF
28261 cat confdefs.h >>conftest.$ac_ext
28262 cat >>conftest.$ac_ext <<_ACEOF
28263 /* end confdefs.h. */
28264 #include <sys/types.h>
28276 rm -f conftest.$ac_objext
28277 if { (ac_try="$ac_compile"
28278 case "(($ac_try" in
28279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28280 *) ac_try_echo=$ac_try;;
28282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28283 (eval "$ac_compile") 2>conftest.er1
28285 grep -v '^ *+' conftest.er1 >conftest.err
28287 cat conftest.err >&5
28288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289 (exit $ac_status); } &&
28290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28291 { (case "(($ac_try" in
28292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28293 *) ac_try_echo=$ac_try;;
28295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28296 (eval "$ac_try") 2>&5
28298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299 (exit $ac_status); }; } &&
28300 { ac_try='test -s conftest.$ac_objext'
28301 { (case "(($ac_try" in
28302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28303 *) ac_try_echo=$ac_try;;
28305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28306 (eval "$ac_try") 2>&5
28308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309 (exit $ac_status); }; }; then
28310 eval "$as_ac_Header=yes"
28312 echo "$as_me: failed program was:" >&5
28313 sed 's/^/| /' conftest.$ac_ext >&5
28315 eval "$as_ac_Header=no"
28318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28320 ac_res=`eval echo '${'$as_ac_Header'}'`
28321 { echo "$as_me:$LINENO: result: $ac_res" >&5
28322 echo "${ECHO_T}$ac_res" >&6; }
28323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28324 cat >>confdefs.h <<_ACEOF
28325 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28328 ac_header_dirent=$ac_hdr; break
28332 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28333 if test $ac_header_dirent = dirent.h; then
28334 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28335 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28336 if test "${ac_cv_search_opendir+set}" = set; then
28337 echo $ECHO_N "(cached) $ECHO_C" >&6
28339 ac_func_search_save_LIBS=$LIBS
28340 cat >conftest.$ac_ext <<_ACEOF
28343 cat confdefs.h >>conftest.$ac_ext
28344 cat >>conftest.$ac_ext <<_ACEOF
28345 /* end confdefs.h. */
28347 /* Override any GCC internal prototype to avoid an error.
28348 Use char because int might match the return type of a GCC
28349 builtin and then its argument prototype would still apply. */
28362 for ac_lib in '' dir; do
28363 if test -z "$ac_lib"; then
28364 ac_res="none required"
28367 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28369 rm -f conftest.$ac_objext conftest$ac_exeext
28370 if { (ac_try="$ac_link"
28371 case "(($ac_try" in
28372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28373 *) ac_try_echo=$ac_try;;
28375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28376 (eval "$ac_link") 2>conftest.er1
28378 grep -v '^ *+' conftest.er1 >conftest.err
28380 cat conftest.err >&5
28381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382 (exit $ac_status); } &&
28383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28384 { (case "(($ac_try" in
28385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28386 *) ac_try_echo=$ac_try;;
28388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28389 (eval "$ac_try") 2>&5
28391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28392 (exit $ac_status); }; } &&
28393 { ac_try='test -s conftest$ac_exeext'
28394 { (case "(($ac_try" in
28395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28396 *) ac_try_echo=$ac_try;;
28398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28399 (eval "$ac_try") 2>&5
28401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402 (exit $ac_status); }; }; then
28403 ac_cv_search_opendir=$ac_res
28405 echo "$as_me: failed program was:" >&5
28406 sed 's/^/| /' conftest.$ac_ext >&5
28411 rm -f core conftest.err conftest.$ac_objext \
28413 if test "${ac_cv_search_opendir+set}" = set; then
28417 if test "${ac_cv_search_opendir+set}" = set; then
28420 ac_cv_search_opendir=no
28422 rm conftest.$ac_ext
28423 LIBS=$ac_func_search_save_LIBS
28425 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28426 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28427 ac_res=$ac_cv_search_opendir
28428 if test "$ac_res" != no; then
28429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28434 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28435 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28436 if test "${ac_cv_search_opendir+set}" = set; then
28437 echo $ECHO_N "(cached) $ECHO_C" >&6
28439 ac_func_search_save_LIBS=$LIBS
28440 cat >conftest.$ac_ext <<_ACEOF
28443 cat confdefs.h >>conftest.$ac_ext
28444 cat >>conftest.$ac_ext <<_ACEOF
28445 /* end confdefs.h. */
28447 /* Override any GCC internal prototype to avoid an error.
28448 Use char because int might match the return type of a GCC
28449 builtin and then its argument prototype would still apply. */
28462 for ac_lib in '' x; do
28463 if test -z "$ac_lib"; then
28464 ac_res="none required"
28467 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28469 rm -f conftest.$ac_objext conftest$ac_exeext
28470 if { (ac_try="$ac_link"
28471 case "(($ac_try" in
28472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28473 *) ac_try_echo=$ac_try;;
28475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28476 (eval "$ac_link") 2>conftest.er1
28478 grep -v '^ *+' conftest.er1 >conftest.err
28480 cat conftest.err >&5
28481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482 (exit $ac_status); } &&
28483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28484 { (case "(($ac_try" in
28485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28486 *) ac_try_echo=$ac_try;;
28488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28489 (eval "$ac_try") 2>&5
28491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28492 (exit $ac_status); }; } &&
28493 { ac_try='test -s conftest$ac_exeext'
28494 { (case "(($ac_try" in
28495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28496 *) ac_try_echo=$ac_try;;
28498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28499 (eval "$ac_try") 2>&5
28501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502 (exit $ac_status); }; }; then
28503 ac_cv_search_opendir=$ac_res
28505 echo "$as_me: failed program was:" >&5
28506 sed 's/^/| /' conftest.$ac_ext >&5
28511 rm -f core conftest.err conftest.$ac_objext \
28513 if test "${ac_cv_search_opendir+set}" = set; then
28517 if test "${ac_cv_search_opendir+set}" = set; then
28520 ac_cv_search_opendir=no
28522 rm conftest.$ac_ext
28523 LIBS=$ac_func_search_save_LIBS
28525 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28526 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28527 ac_res=$ac_cv_search_opendir
28528 if test "$ac_res" != no; then
28529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28535 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28536 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28537 if test "${ac_cv_header_mmap_anon+set}" = set; then
28538 echo $ECHO_N "(cached) $ECHO_C" >&6
28541 ac_cpp='$CPP $CPPFLAGS'
28542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28546 cat >conftest.$ac_ext <<_ACEOF
28549 cat confdefs.h >>conftest.$ac_ext
28550 cat >>conftest.$ac_ext <<_ACEOF
28551 /* end confdefs.h. */
28552 #include <sys/mman.h>
28553 #include <unistd.h>
28558 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28563 rm -f conftest.$ac_objext
28564 if { (ac_try="$ac_compile"
28565 case "(($ac_try" in
28566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28567 *) ac_try_echo=$ac_try;;
28569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28570 (eval "$ac_compile") 2>conftest.er1
28572 grep -v '^ *+' conftest.er1 >conftest.err
28574 cat conftest.err >&5
28575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576 (exit $ac_status); } &&
28577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28578 { (case "(($ac_try" in
28579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28580 *) ac_try_echo=$ac_try;;
28582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28583 (eval "$ac_try") 2>&5
28585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586 (exit $ac_status); }; } &&
28587 { ac_try='test -s conftest.$ac_objext'
28588 { (case "(($ac_try" in
28589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590 *) ac_try_echo=$ac_try;;
28592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593 (eval "$ac_try") 2>&5
28595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596 (exit $ac_status); }; }; then
28597 ac_cv_header_mmap_anon=yes
28599 echo "$as_me: failed program was:" >&5
28600 sed 's/^/| /' conftest.$ac_ext >&5
28602 ac_cv_header_mmap_anon=no
28605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28607 ac_cpp='$CPP $CPPFLAGS'
28608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28614 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28615 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28616 if test "$ac_cv_header_mmap_anon" = yes; then
28618 cat >>confdefs.h <<\_ACEOF
28619 #define HAVE_MMAP_ANONYMOUS 1
28624 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28625 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28626 if test "${ac_cv_header_stat_broken+set}" = set; then
28627 echo $ECHO_N "(cached) $ECHO_C" >&6
28629 cat >conftest.$ac_ext <<_ACEOF
28632 cat confdefs.h >>conftest.$ac_ext
28633 cat >>conftest.$ac_ext <<_ACEOF
28634 /* end confdefs.h. */
28635 #include <sys/types.h>
28636 #include <sys/stat.h>
28638 #if defined S_ISBLK && defined S_IFDIR
28639 # if S_ISBLK (S_IFDIR)
28644 #if defined S_ISBLK && defined S_IFCHR
28645 # if S_ISBLK (S_IFCHR)
28650 #if defined S_ISLNK && defined S_IFREG
28651 # if S_ISLNK (S_IFREG)
28656 #if defined S_ISSOCK && defined S_IFREG
28657 # if S_ISSOCK (S_IFREG)
28663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28664 $EGREP "You lose" >/dev/null 2>&1; then
28665 ac_cv_header_stat_broken=yes
28667 ac_cv_header_stat_broken=no
28672 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28673 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28674 if test $ac_cv_header_stat_broken = yes; then
28676 cat >>confdefs.h <<\_ACEOF
28677 #define STAT_MACROS_BROKEN 1
28682 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28683 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28684 if test "${ac_cv_header_stdc+set}" = set; then
28685 echo $ECHO_N "(cached) $ECHO_C" >&6
28687 cat >conftest.$ac_ext <<_ACEOF
28690 cat confdefs.h >>conftest.$ac_ext
28691 cat >>conftest.$ac_ext <<_ACEOF
28692 /* end confdefs.h. */
28693 #include <stdlib.h>
28694 #include <stdarg.h>
28695 #include <string.h>
28706 rm -f conftest.$ac_objext
28707 if { (ac_try="$ac_compile"
28708 case "(($ac_try" in
28709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28710 *) ac_try_echo=$ac_try;;
28712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28713 (eval "$ac_compile") 2>conftest.er1
28715 grep -v '^ *+' conftest.er1 >conftest.err
28717 cat conftest.err >&5
28718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28719 (exit $ac_status); } &&
28720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28721 { (case "(($ac_try" in
28722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28723 *) ac_try_echo=$ac_try;;
28725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28726 (eval "$ac_try") 2>&5
28728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729 (exit $ac_status); }; } &&
28730 { ac_try='test -s conftest.$ac_objext'
28731 { (case "(($ac_try" in
28732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28733 *) ac_try_echo=$ac_try;;
28735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28736 (eval "$ac_try") 2>&5
28738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739 (exit $ac_status); }; }; then
28740 ac_cv_header_stdc=yes
28742 echo "$as_me: failed program was:" >&5
28743 sed 's/^/| /' conftest.$ac_ext >&5
28745 ac_cv_header_stdc=no
28748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28750 if test $ac_cv_header_stdc = yes; then
28751 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28752 cat >conftest.$ac_ext <<_ACEOF
28755 cat confdefs.h >>conftest.$ac_ext
28756 cat >>conftest.$ac_ext <<_ACEOF
28757 /* end confdefs.h. */
28758 #include <string.h>
28761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28762 $EGREP "memchr" >/dev/null 2>&1; then
28765 ac_cv_header_stdc=no
28771 if test $ac_cv_header_stdc = yes; then
28772 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28773 cat >conftest.$ac_ext <<_ACEOF
28776 cat confdefs.h >>conftest.$ac_ext
28777 cat >>conftest.$ac_ext <<_ACEOF
28778 /* end confdefs.h. */
28779 #include <stdlib.h>
28782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28783 $EGREP "free" >/dev/null 2>&1; then
28786 ac_cv_header_stdc=no
28792 if test $ac_cv_header_stdc = yes; then
28793 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28794 if test "$cross_compiling" = yes; then
28797 cat >conftest.$ac_ext <<_ACEOF
28800 cat confdefs.h >>conftest.$ac_ext
28801 cat >>conftest.$ac_ext <<_ACEOF
28802 /* end confdefs.h. */
28804 #include <stdlib.h>
28805 #if ((' ' & 0x0FF) == 0x020)
28806 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28807 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28809 # define ISLOWER(c) \
28810 (('a' <= (c) && (c) <= 'i') \
28811 || ('j' <= (c) && (c) <= 'r') \
28812 || ('s' <= (c) && (c) <= 'z'))
28813 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28816 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28821 for (i = 0; i < 256; i++)
28822 if (XOR (islower (i), ISLOWER (i))
28823 || toupper (i) != TOUPPER (i))
28828 rm -f conftest$ac_exeext
28829 if { (ac_try="$ac_link"
28830 case "(($ac_try" in
28831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28832 *) ac_try_echo=$ac_try;;
28834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28835 (eval "$ac_link") 2>&5
28837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28839 { (case "(($ac_try" in
28840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28841 *) ac_try_echo=$ac_try;;
28843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28844 (eval "$ac_try") 2>&5
28846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28847 (exit $ac_status); }; }; then
28850 echo "$as_me: program exited with status $ac_status" >&5
28851 echo "$as_me: failed program was:" >&5
28852 sed 's/^/| /' conftest.$ac_ext >&5
28854 ( exit $ac_status )
28855 ac_cv_header_stdc=no
28857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28863 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28864 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28865 if test $ac_cv_header_stdc = yes; then
28867 cat >>confdefs.h <<\_ACEOF
28868 #define STDC_HEADERS 1
28873 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28874 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28875 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28876 echo $ECHO_N "(cached) $ECHO_C" >&6
28878 cat >conftest.$ac_ext <<_ACEOF
28881 cat confdefs.h >>conftest.$ac_ext
28882 cat >>conftest.$ac_ext <<_ACEOF
28883 /* end confdefs.h. */
28884 #include <sys/types.h>
28885 #include <sys/wait.h>
28886 #ifndef WEXITSTATUS
28887 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28890 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28898 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28903 rm -f conftest.$ac_objext
28904 if { (ac_try="$ac_compile"
28905 case "(($ac_try" in
28906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28907 *) ac_try_echo=$ac_try;;
28909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28910 (eval "$ac_compile") 2>conftest.er1
28912 grep -v '^ *+' conftest.er1 >conftest.err
28914 cat conftest.err >&5
28915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916 (exit $ac_status); } &&
28917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28918 { (case "(($ac_try" in
28919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28920 *) ac_try_echo=$ac_try;;
28922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28923 (eval "$ac_try") 2>&5
28925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926 (exit $ac_status); }; } &&
28927 { ac_try='test -s conftest.$ac_objext'
28928 { (case "(($ac_try" in
28929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28930 *) ac_try_echo=$ac_try;;
28932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28933 (eval "$ac_try") 2>&5
28935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28936 (exit $ac_status); }; }; then
28937 ac_cv_header_sys_wait_h=yes
28939 echo "$as_me: failed program was:" >&5
28940 sed 's/^/| /' conftest.$ac_ext >&5
28942 ac_cv_header_sys_wait_h=no
28945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28947 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28948 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28949 if test $ac_cv_header_sys_wait_h = yes; then
28951 cat >>confdefs.h <<\_ACEOF
28952 #define HAVE_SYS_WAIT_H 1
28957 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28958 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28959 if test "${ac_cv_header_time+set}" = set; then
28960 echo $ECHO_N "(cached) $ECHO_C" >&6
28962 cat >conftest.$ac_ext <<_ACEOF
28965 cat confdefs.h >>conftest.$ac_ext
28966 cat >>conftest.$ac_ext <<_ACEOF
28967 /* end confdefs.h. */
28968 #include <sys/types.h>
28969 #include <sys/time.h>
28975 if ((struct tm *) 0)
28981 rm -f conftest.$ac_objext
28982 if { (ac_try="$ac_compile"
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_compile") 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); } &&
28995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28996 { (case "(($ac_try" in
28997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28998 *) ac_try_echo=$ac_try;;
29000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29001 (eval "$ac_try") 2>&5
29003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004 (exit $ac_status); }; } &&
29005 { ac_try='test -s conftest.$ac_objext'
29006 { (case "(($ac_try" in
29007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29008 *) ac_try_echo=$ac_try;;
29010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29011 (eval "$ac_try") 2>&5
29013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014 (exit $ac_status); }; }; then
29015 ac_cv_header_time=yes
29017 echo "$as_me: failed program was:" >&5
29018 sed 's/^/| /' conftest.$ac_ext >&5
29020 ac_cv_header_time=no
29023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29025 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29026 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29027 if test $ac_cv_header_time = yes; then
29029 cat >>confdefs.h <<\_ACEOF
29030 #define TIME_WITH_SYS_TIME 1
29042 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29049 echo $ECHO_N "(cached) $ECHO_C" >&6
29051 ac_res=`eval echo '${'$as_ac_Header'}'`
29052 { echo "$as_me:$LINENO: result: $ac_res" >&5
29053 echo "${ECHO_T}$ac_res" >&6; }
29055 # Is the header compilable?
29056 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29058 cat >conftest.$ac_ext <<_ACEOF
29061 cat confdefs.h >>conftest.$ac_ext
29062 cat >>conftest.$ac_ext <<_ACEOF
29063 /* end confdefs.h. */
29064 $ac_includes_default
29065 #include <$ac_header>
29067 rm -f conftest.$ac_objext
29068 if { (ac_try="$ac_compile"
29069 case "(($ac_try" in
29070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29071 *) ac_try_echo=$ac_try;;
29073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29074 (eval "$ac_compile") 2>conftest.er1
29076 grep -v '^ *+' conftest.er1 >conftest.err
29078 cat conftest.err >&5
29079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080 (exit $ac_status); } &&
29081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29082 { (case "(($ac_try" in
29083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29084 *) ac_try_echo=$ac_try;;
29086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29087 (eval "$ac_try") 2>&5
29089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090 (exit $ac_status); }; } &&
29091 { ac_try='test -s conftest.$ac_objext'
29092 { (case "(($ac_try" in
29093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29094 *) ac_try_echo=$ac_try;;
29096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29097 (eval "$ac_try") 2>&5
29099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100 (exit $ac_status); }; }; then
29101 ac_header_compiler=yes
29103 echo "$as_me: failed program was:" >&5
29104 sed 's/^/| /' conftest.$ac_ext >&5
29106 ac_header_compiler=no
29109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29110 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29111 echo "${ECHO_T}$ac_header_compiler" >&6; }
29113 # Is the header present?
29114 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29116 cat >conftest.$ac_ext <<_ACEOF
29119 cat confdefs.h >>conftest.$ac_ext
29120 cat >>conftest.$ac_ext <<_ACEOF
29121 /* end confdefs.h. */
29122 #include <$ac_header>
29124 if { (ac_try="$ac_cpp conftest.$ac_ext"
29125 case "(($ac_try" in
29126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29127 *) ac_try_echo=$ac_try;;
29129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29132 grep -v '^ *+' conftest.er1 >conftest.err
29134 cat conftest.err >&5
29135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136 (exit $ac_status); } >/dev/null; then
29137 if test -s conftest.err; then
29138 ac_cpp_err=$ac_c_preproc_warn_flag
29139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29146 if test -z "$ac_cpp_err"; then
29147 ac_header_preproc=yes
29149 echo "$as_me: failed program was:" >&5
29150 sed 's/^/| /' conftest.$ac_ext >&5
29152 ac_header_preproc=no
29155 rm -f conftest.err conftest.$ac_ext
29156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29157 echo "${ECHO_T}$ac_header_preproc" >&6; }
29159 # So? What about this header?
29160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29166 ac_header_preproc=yes
29169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29176 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29182 ## ----------------------------------- ##
29183 ## Report this to llvmbugs@cs.uiuc.edu ##
29184 ## ----------------------------------- ##
29186 ) | sed "s/^/$as_me: WARNING: /" >&2
29189 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29192 echo $ECHO_N "(cached) $ECHO_C" >&6
29194 eval "$as_ac_Header=\$ac_header_preproc"
29196 ac_res=`eval echo '${'$as_ac_Header'}'`
29197 { echo "$as_me:$LINENO: result: $ac_res" >&5
29198 echo "${ECHO_T}$ac_res" >&6; }
29201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29202 cat >>confdefs.h <<_ACEOF
29203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29216 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
29218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29220 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29223 echo $ECHO_N "(cached) $ECHO_C" >&6
29225 ac_res=`eval echo '${'$as_ac_Header'}'`
29226 { echo "$as_me:$LINENO: result: $ac_res" >&5
29227 echo "${ECHO_T}$ac_res" >&6; }
29229 # Is the header compilable?
29230 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29232 cat >conftest.$ac_ext <<_ACEOF
29235 cat confdefs.h >>conftest.$ac_ext
29236 cat >>conftest.$ac_ext <<_ACEOF
29237 /* end confdefs.h. */
29238 $ac_includes_default
29239 #include <$ac_header>
29241 rm -f conftest.$ac_objext
29242 if { (ac_try="$ac_compile"
29243 case "(($ac_try" in
29244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29245 *) ac_try_echo=$ac_try;;
29247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29248 (eval "$ac_compile") 2>conftest.er1
29250 grep -v '^ *+' conftest.er1 >conftest.err
29252 cat conftest.err >&5
29253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254 (exit $ac_status); } &&
29255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29256 { (case "(($ac_try" in
29257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29258 *) ac_try_echo=$ac_try;;
29260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29261 (eval "$ac_try") 2>&5
29263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264 (exit $ac_status); }; } &&
29265 { ac_try='test -s conftest.$ac_objext'
29266 { (case "(($ac_try" in
29267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29268 *) ac_try_echo=$ac_try;;
29270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29271 (eval "$ac_try") 2>&5
29273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274 (exit $ac_status); }; }; then
29275 ac_header_compiler=yes
29277 echo "$as_me: failed program was:" >&5
29278 sed 's/^/| /' conftest.$ac_ext >&5
29280 ac_header_compiler=no
29283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29285 echo "${ECHO_T}$ac_header_compiler" >&6; }
29287 # Is the header present?
29288 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29290 cat >conftest.$ac_ext <<_ACEOF
29293 cat confdefs.h >>conftest.$ac_ext
29294 cat >>conftest.$ac_ext <<_ACEOF
29295 /* end confdefs.h. */
29296 #include <$ac_header>
29298 if { (ac_try="$ac_cpp conftest.$ac_ext"
29299 case "(($ac_try" in
29300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301 *) ac_try_echo=$ac_try;;
29303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29306 grep -v '^ *+' conftest.er1 >conftest.err
29308 cat conftest.err >&5
29309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310 (exit $ac_status); } >/dev/null; then
29311 if test -s conftest.err; then
29312 ac_cpp_err=$ac_c_preproc_warn_flag
29313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29320 if test -z "$ac_cpp_err"; then
29321 ac_header_preproc=yes
29323 echo "$as_me: failed program was:" >&5
29324 sed 's/^/| /' conftest.$ac_ext >&5
29326 ac_header_preproc=no
29329 rm -f conftest.err conftest.$ac_ext
29330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29331 echo "${ECHO_T}$ac_header_preproc" >&6; }
29333 # So? What about this header?
29334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29340 ac_header_preproc=yes
29343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29350 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29356 ## ----------------------------------- ##
29357 ## Report this to llvmbugs@cs.uiuc.edu ##
29358 ## ----------------------------------- ##
29360 ) | sed "s/^/$as_me: WARNING: /" >&2
29363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29366 echo $ECHO_N "(cached) $ECHO_C" >&6
29368 eval "$as_ac_Header=\$ac_header_preproc"
29370 ac_res=`eval echo '${'$as_ac_Header'}'`
29371 { echo "$as_me:$LINENO: result: $ac_res" >&5
29372 echo "${ECHO_T}$ac_res" >&6; }
29375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29376 cat >>confdefs.h <<_ACEOF
29377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29385 for ac_header in windows.h
29387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29389 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29392 echo $ECHO_N "(cached) $ECHO_C" >&6
29394 ac_res=`eval echo '${'$as_ac_Header'}'`
29395 { echo "$as_me:$LINENO: result: $ac_res" >&5
29396 echo "${ECHO_T}$ac_res" >&6; }
29398 # Is the header compilable?
29399 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29400 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29401 cat >conftest.$ac_ext <<_ACEOF
29404 cat confdefs.h >>conftest.$ac_ext
29405 cat >>conftest.$ac_ext <<_ACEOF
29406 /* end confdefs.h. */
29407 $ac_includes_default
29408 #include <$ac_header>
29410 rm -f conftest.$ac_objext
29411 if { (ac_try="$ac_compile"
29412 case "(($ac_try" in
29413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29414 *) ac_try_echo=$ac_try;;
29416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29417 (eval "$ac_compile") 2>conftest.er1
29419 grep -v '^ *+' conftest.er1 >conftest.err
29421 cat conftest.err >&5
29422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423 (exit $ac_status); } &&
29424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29425 { (case "(($ac_try" in
29426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29427 *) ac_try_echo=$ac_try;;
29429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29430 (eval "$ac_try") 2>&5
29432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433 (exit $ac_status); }; } &&
29434 { ac_try='test -s conftest.$ac_objext'
29435 { (case "(($ac_try" in
29436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29437 *) ac_try_echo=$ac_try;;
29439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29440 (eval "$ac_try") 2>&5
29442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29443 (exit $ac_status); }; }; then
29444 ac_header_compiler=yes
29446 echo "$as_me: failed program was:" >&5
29447 sed 's/^/| /' conftest.$ac_ext >&5
29449 ac_header_compiler=no
29452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29454 echo "${ECHO_T}$ac_header_compiler" >&6; }
29456 # Is the header present?
29457 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29459 cat >conftest.$ac_ext <<_ACEOF
29462 cat confdefs.h >>conftest.$ac_ext
29463 cat >>conftest.$ac_ext <<_ACEOF
29464 /* end confdefs.h. */
29465 #include <$ac_header>
29467 if { (ac_try="$ac_cpp conftest.$ac_ext"
29468 case "(($ac_try" in
29469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29470 *) ac_try_echo=$ac_try;;
29472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29475 grep -v '^ *+' conftest.er1 >conftest.err
29477 cat conftest.err >&5
29478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479 (exit $ac_status); } >/dev/null; then
29480 if test -s conftest.err; then
29481 ac_cpp_err=$ac_c_preproc_warn_flag
29482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29489 if test -z "$ac_cpp_err"; then
29490 ac_header_preproc=yes
29492 echo "$as_me: failed program was:" >&5
29493 sed 's/^/| /' conftest.$ac_ext >&5
29495 ac_header_preproc=no
29498 rm -f conftest.err conftest.$ac_ext
29499 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29500 echo "${ECHO_T}$ac_header_preproc" >&6; }
29502 # So? What about this header?
29503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29505 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29506 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29508 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29509 ac_header_preproc=yes
29512 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29513 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29514 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29515 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29516 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29517 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29518 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29519 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29522 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29523 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29525 ## ----------------------------------- ##
29526 ## Report this to llvmbugs@cs.uiuc.edu ##
29527 ## ----------------------------------- ##
29529 ) | sed "s/^/$as_me: WARNING: /" >&2
29532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29535 echo $ECHO_N "(cached) $ECHO_C" >&6
29537 eval "$as_ac_Header=\$ac_header_preproc"
29539 ac_res=`eval echo '${'$as_ac_Header'}'`
29540 { echo "$as_me:$LINENO: result: $ac_res" >&5
29541 echo "${ECHO_T}$ac_res" >&6; }
29544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29545 cat >>confdefs.h <<_ACEOF
29546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29557 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29564 echo $ECHO_N "(cached) $ECHO_C" >&6
29566 ac_res=`eval echo '${'$as_ac_Header'}'`
29567 { echo "$as_me:$LINENO: result: $ac_res" >&5
29568 echo "${ECHO_T}$ac_res" >&6; }
29570 # Is the header compilable?
29571 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29573 cat >conftest.$ac_ext <<_ACEOF
29576 cat confdefs.h >>conftest.$ac_ext
29577 cat >>conftest.$ac_ext <<_ACEOF
29578 /* end confdefs.h. */
29579 $ac_includes_default
29580 #include <$ac_header>
29582 rm -f conftest.$ac_objext
29583 if { (ac_try="$ac_compile"
29584 case "(($ac_try" in
29585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29586 *) ac_try_echo=$ac_try;;
29588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29589 (eval "$ac_compile") 2>conftest.er1
29591 grep -v '^ *+' conftest.er1 >conftest.err
29593 cat conftest.err >&5
29594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595 (exit $ac_status); } &&
29596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29597 { (case "(($ac_try" in
29598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29599 *) ac_try_echo=$ac_try;;
29601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29602 (eval "$ac_try") 2>&5
29604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605 (exit $ac_status); }; } &&
29606 { ac_try='test -s conftest.$ac_objext'
29607 { (case "(($ac_try" in
29608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29609 *) ac_try_echo=$ac_try;;
29611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29612 (eval "$ac_try") 2>&5
29614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615 (exit $ac_status); }; }; then
29616 ac_header_compiler=yes
29618 echo "$as_me: failed program was:" >&5
29619 sed 's/^/| /' conftest.$ac_ext >&5
29621 ac_header_compiler=no
29624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29626 echo "${ECHO_T}$ac_header_compiler" >&6; }
29628 # Is the header present?
29629 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29631 cat >conftest.$ac_ext <<_ACEOF
29634 cat confdefs.h >>conftest.$ac_ext
29635 cat >>conftest.$ac_ext <<_ACEOF
29636 /* end confdefs.h. */
29637 #include <$ac_header>
29639 if { (ac_try="$ac_cpp conftest.$ac_ext"
29640 case "(($ac_try" in
29641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29642 *) ac_try_echo=$ac_try;;
29644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29647 grep -v '^ *+' conftest.er1 >conftest.err
29649 cat conftest.err >&5
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651 (exit $ac_status); } >/dev/null; then
29652 if test -s conftest.err; then
29653 ac_cpp_err=$ac_c_preproc_warn_flag
29654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29661 if test -z "$ac_cpp_err"; then
29662 ac_header_preproc=yes
29664 echo "$as_me: failed program was:" >&5
29665 sed 's/^/| /' conftest.$ac_ext >&5
29667 ac_header_preproc=no
29670 rm -f conftest.err conftest.$ac_ext
29671 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29672 echo "${ECHO_T}$ac_header_preproc" >&6; }
29674 # So? What about this header?
29675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29677 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29678 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29680 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29681 ac_header_preproc=yes
29684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29685 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29687 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29688 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29689 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29690 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29691 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29693 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29694 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29695 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29697 ## ----------------------------------- ##
29698 ## Report this to llvmbugs@cs.uiuc.edu ##
29699 ## ----------------------------------- ##
29701 ) | sed "s/^/$as_me: WARNING: /" >&2
29704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29707 echo $ECHO_N "(cached) $ECHO_C" >&6
29709 eval "$as_ac_Header=\$ac_header_preproc"
29711 ac_res=`eval echo '${'$as_ac_Header'}'`
29712 { echo "$as_me:$LINENO: result: $ac_res" >&5
29713 echo "${ECHO_T}$ac_res" >&6; }
29716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29717 cat >>confdefs.h <<_ACEOF
29718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29728 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29735 echo $ECHO_N "(cached) $ECHO_C" >&6
29737 ac_res=`eval echo '${'$as_ac_Header'}'`
29738 { echo "$as_me:$LINENO: result: $ac_res" >&5
29739 echo "${ECHO_T}$ac_res" >&6; }
29741 # Is the header compilable?
29742 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29743 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29744 cat >conftest.$ac_ext <<_ACEOF
29747 cat confdefs.h >>conftest.$ac_ext
29748 cat >>conftest.$ac_ext <<_ACEOF
29749 /* end confdefs.h. */
29750 $ac_includes_default
29751 #include <$ac_header>
29753 rm -f conftest.$ac_objext
29754 if { (ac_try="$ac_compile"
29755 case "(($ac_try" in
29756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29757 *) ac_try_echo=$ac_try;;
29759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29760 (eval "$ac_compile") 2>conftest.er1
29762 grep -v '^ *+' conftest.er1 >conftest.err
29764 cat conftest.err >&5
29765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766 (exit $ac_status); } &&
29767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29768 { (case "(($ac_try" in
29769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29770 *) ac_try_echo=$ac_try;;
29772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29773 (eval "$ac_try") 2>&5
29775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29776 (exit $ac_status); }; } &&
29777 { ac_try='test -s conftest.$ac_objext'
29778 { (case "(($ac_try" in
29779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29780 *) ac_try_echo=$ac_try;;
29782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29783 (eval "$ac_try") 2>&5
29785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); }; }; then
29787 ac_header_compiler=yes
29789 echo "$as_me: failed program was:" >&5
29790 sed 's/^/| /' conftest.$ac_ext >&5
29792 ac_header_compiler=no
29795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29796 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29797 echo "${ECHO_T}$ac_header_compiler" >&6; }
29799 # Is the header present?
29800 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29802 cat >conftest.$ac_ext <<_ACEOF
29805 cat confdefs.h >>conftest.$ac_ext
29806 cat >>conftest.$ac_ext <<_ACEOF
29807 /* end confdefs.h. */
29808 #include <$ac_header>
29810 if { (ac_try="$ac_cpp conftest.$ac_ext"
29811 case "(($ac_try" in
29812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29813 *) ac_try_echo=$ac_try;;
29815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29818 grep -v '^ *+' conftest.er1 >conftest.err
29820 cat conftest.err >&5
29821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822 (exit $ac_status); } >/dev/null; then
29823 if test -s conftest.err; then
29824 ac_cpp_err=$ac_c_preproc_warn_flag
29825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29832 if test -z "$ac_cpp_err"; then
29833 ac_header_preproc=yes
29835 echo "$as_me: failed program was:" >&5
29836 sed 's/^/| /' conftest.$ac_ext >&5
29838 ac_header_preproc=no
29841 rm -f conftest.err conftest.$ac_ext
29842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29843 echo "${ECHO_T}$ac_header_preproc" >&6; }
29845 # So? What about this header?
29846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29852 ac_header_preproc=yes
29855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29862 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29868 ## ----------------------------------- ##
29869 ## Report this to llvmbugs@cs.uiuc.edu ##
29870 ## ----------------------------------- ##
29872 ) | sed "s/^/$as_me: WARNING: /" >&2
29875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29878 echo $ECHO_N "(cached) $ECHO_C" >&6
29880 eval "$as_ac_Header=\$ac_header_preproc"
29882 ac_res=`eval echo '${'$as_ac_Header'}'`
29883 { echo "$as_me:$LINENO: result: $ac_res" >&5
29884 echo "${ECHO_T}$ac_res" >&6; }
29887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29888 cat >>confdefs.h <<_ACEOF
29889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29896 if test "$ENABLE_THREADS" -eq 1 ; then
29898 for ac_header in pthread.h
29900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29905 echo $ECHO_N "(cached) $ECHO_C" >&6
29907 ac_res=`eval echo '${'$as_ac_Header'}'`
29908 { echo "$as_me:$LINENO: result: $ac_res" >&5
29909 echo "${ECHO_T}$ac_res" >&6; }
29911 # Is the header compilable?
29912 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29914 cat >conftest.$ac_ext <<_ACEOF
29917 cat confdefs.h >>conftest.$ac_ext
29918 cat >>conftest.$ac_ext <<_ACEOF
29919 /* end confdefs.h. */
29920 $ac_includes_default
29921 #include <$ac_header>
29923 rm -f conftest.$ac_objext
29924 if { (ac_try="$ac_compile"
29925 case "(($ac_try" in
29926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29927 *) ac_try_echo=$ac_try;;
29929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29930 (eval "$ac_compile") 2>conftest.er1
29932 grep -v '^ *+' conftest.er1 >conftest.err
29934 cat conftest.err >&5
29935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936 (exit $ac_status); } &&
29937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29938 { (case "(($ac_try" in
29939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29940 *) ac_try_echo=$ac_try;;
29942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29943 (eval "$ac_try") 2>&5
29945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946 (exit $ac_status); }; } &&
29947 { ac_try='test -s conftest.$ac_objext'
29948 { (case "(($ac_try" in
29949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29950 *) ac_try_echo=$ac_try;;
29952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29953 (eval "$ac_try") 2>&5
29955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956 (exit $ac_status); }; }; then
29957 ac_header_compiler=yes
29959 echo "$as_me: failed program was:" >&5
29960 sed 's/^/| /' conftest.$ac_ext >&5
29962 ac_header_compiler=no
29965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29967 echo "${ECHO_T}$ac_header_compiler" >&6; }
29969 # Is the header present?
29970 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29972 cat >conftest.$ac_ext <<_ACEOF
29975 cat confdefs.h >>conftest.$ac_ext
29976 cat >>conftest.$ac_ext <<_ACEOF
29977 /* end confdefs.h. */
29978 #include <$ac_header>
29980 if { (ac_try="$ac_cpp conftest.$ac_ext"
29981 case "(($ac_try" in
29982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29983 *) ac_try_echo=$ac_try;;
29985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29988 grep -v '^ *+' conftest.er1 >conftest.err
29990 cat conftest.err >&5
29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992 (exit $ac_status); } >/dev/null; then
29993 if test -s conftest.err; then
29994 ac_cpp_err=$ac_c_preproc_warn_flag
29995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30002 if test -z "$ac_cpp_err"; then
30003 ac_header_preproc=yes
30005 echo "$as_me: failed program was:" >&5
30006 sed 's/^/| /' conftest.$ac_ext >&5
30008 ac_header_preproc=no
30011 rm -f conftest.err conftest.$ac_ext
30012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30013 echo "${ECHO_T}$ac_header_preproc" >&6; }
30015 # So? What about this header?
30016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30022 ac_header_preproc=yes
30025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30038 ## ----------------------------------- ##
30039 ## Report this to llvmbugs@cs.uiuc.edu ##
30040 ## ----------------------------------- ##
30042 ) | sed "s/^/$as_me: WARNING: /" >&2
30045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30048 echo $ECHO_N "(cached) $ECHO_C" >&6
30050 eval "$as_ac_Header=\$ac_header_preproc"
30052 ac_res=`eval echo '${'$as_ac_Header'}'`
30053 { echo "$as_me:$LINENO: result: $ac_res" >&5
30054 echo "${ECHO_T}$ac_res" >&6; }
30057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30058 cat >>confdefs.h <<_ACEOF
30059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30075 if test -n "$have_libffi" ; then
30078 for ac_header in ffi.h ffi/ffi.h
30080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30085 echo $ECHO_N "(cached) $ECHO_C" >&6
30087 ac_res=`eval echo '${'$as_ac_Header'}'`
30088 { echo "$as_me:$LINENO: result: $ac_res" >&5
30089 echo "${ECHO_T}$ac_res" >&6; }
30091 # Is the header compilable?
30092 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30094 cat >conftest.$ac_ext <<_ACEOF
30097 cat confdefs.h >>conftest.$ac_ext
30098 cat >>conftest.$ac_ext <<_ACEOF
30099 /* end confdefs.h. */
30100 $ac_includes_default
30101 #include <$ac_header>
30103 rm -f conftest.$ac_objext
30104 if { (ac_try="$ac_compile"
30105 case "(($ac_try" in
30106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30107 *) ac_try_echo=$ac_try;;
30109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30110 (eval "$ac_compile") 2>conftest.er1
30112 grep -v '^ *+' conftest.er1 >conftest.err
30114 cat conftest.err >&5
30115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116 (exit $ac_status); } &&
30117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30118 { (case "(($ac_try" in
30119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30120 *) ac_try_echo=$ac_try;;
30122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30123 (eval "$ac_try") 2>&5
30125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30126 (exit $ac_status); }; } &&
30127 { ac_try='test -s conftest.$ac_objext'
30128 { (case "(($ac_try" in
30129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30130 *) ac_try_echo=$ac_try;;
30132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30133 (eval "$ac_try") 2>&5
30135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136 (exit $ac_status); }; }; then
30137 ac_header_compiler=yes
30139 echo "$as_me: failed program was:" >&5
30140 sed 's/^/| /' conftest.$ac_ext >&5
30142 ac_header_compiler=no
30145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30146 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30147 echo "${ECHO_T}$ac_header_compiler" >&6; }
30149 # Is the header present?
30150 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30152 cat >conftest.$ac_ext <<_ACEOF
30155 cat confdefs.h >>conftest.$ac_ext
30156 cat >>conftest.$ac_ext <<_ACEOF
30157 /* end confdefs.h. */
30158 #include <$ac_header>
30160 if { (ac_try="$ac_cpp conftest.$ac_ext"
30161 case "(($ac_try" in
30162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30163 *) ac_try_echo=$ac_try;;
30165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30168 grep -v '^ *+' conftest.er1 >conftest.err
30170 cat conftest.err >&5
30171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172 (exit $ac_status); } >/dev/null; then
30173 if test -s conftest.err; then
30174 ac_cpp_err=$ac_c_preproc_warn_flag
30175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30182 if test -z "$ac_cpp_err"; then
30183 ac_header_preproc=yes
30185 echo "$as_me: failed program was:" >&5
30186 sed 's/^/| /' conftest.$ac_ext >&5
30188 ac_header_preproc=no
30191 rm -f conftest.err conftest.$ac_ext
30192 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30193 echo "${ECHO_T}$ac_header_preproc" >&6; }
30195 # So? What about this header?
30196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30202 ac_header_preproc=yes
30205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30212 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30218 ## ----------------------------------- ##
30219 ## Report this to llvmbugs@cs.uiuc.edu ##
30220 ## ----------------------------------- ##
30222 ) | sed "s/^/$as_me: WARNING: /" >&2
30225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30228 echo $ECHO_N "(cached) $ECHO_C" >&6
30230 eval "$as_ac_Header=\$ac_header_preproc"
30232 ac_res=`eval echo '${'$as_ac_Header'}'`
30233 { echo "$as_me:$LINENO: result: $ac_res" >&5
30234 echo "${ECHO_T}$ac_res" >&6; }
30237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30238 cat >>confdefs.h <<_ACEOF
30239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30251 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30252 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30253 if test "${ac_cv_huge_val_sanity+set}" = set; then
30254 echo $ECHO_N "(cached) $ECHO_C" >&6
30258 ac_cpp='$CXXCPP $CPPFLAGS'
30259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30264 if test "$cross_compiling" = yes; then
30265 ac_cv_huge_val_sanity=yes
30267 cat >conftest.$ac_ext <<_ACEOF
30270 cat confdefs.h >>conftest.$ac_ext
30271 cat >>conftest.$ac_ext <<_ACEOF
30272 /* end confdefs.h. */
30277 double x = HUGE_VAL; return x != x;
30282 rm -f conftest$ac_exeext
30283 if { (ac_try="$ac_link"
30284 case "(($ac_try" in
30285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30286 *) ac_try_echo=$ac_try;;
30288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30289 (eval "$ac_link") 2>&5
30291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30293 { (case "(($ac_try" in
30294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30295 *) ac_try_echo=$ac_try;;
30297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30298 (eval "$ac_try") 2>&5
30300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30301 (exit $ac_status); }; }; then
30302 ac_cv_huge_val_sanity=yes
30304 echo "$as_me: program exited with status $ac_status" >&5
30305 echo "$as_me: failed program was:" >&5
30306 sed 's/^/| /' conftest.$ac_ext >&5
30308 ( exit $ac_status )
30309 ac_cv_huge_val_sanity=no
30311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30316 ac_cpp='$CPP $CPPFLAGS'
30317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30323 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30324 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30325 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30328 { echo "$as_me:$LINENO: checking for pid_t" >&5
30329 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30330 if test "${ac_cv_type_pid_t+set}" = set; then
30331 echo $ECHO_N "(cached) $ECHO_C" >&6
30333 cat >conftest.$ac_ext <<_ACEOF
30336 cat confdefs.h >>conftest.$ac_ext
30337 cat >>conftest.$ac_ext <<_ACEOF
30338 /* end confdefs.h. */
30339 $ac_includes_default
30340 typedef pid_t ac__type_new_;
30344 if ((ac__type_new_ *) 0)
30346 if (sizeof (ac__type_new_))
30352 rm -f conftest.$ac_objext
30353 if { (ac_try="$ac_compile"
30354 case "(($ac_try" in
30355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30356 *) ac_try_echo=$ac_try;;
30358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30359 (eval "$ac_compile") 2>conftest.er1
30361 grep -v '^ *+' conftest.er1 >conftest.err
30363 cat conftest.err >&5
30364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30365 (exit $ac_status); } &&
30366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30367 { (case "(($ac_try" in
30368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30369 *) ac_try_echo=$ac_try;;
30371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30372 (eval "$ac_try") 2>&5
30374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30375 (exit $ac_status); }; } &&
30376 { ac_try='test -s conftest.$ac_objext'
30377 { (case "(($ac_try" in
30378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30379 *) ac_try_echo=$ac_try;;
30381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30382 (eval "$ac_try") 2>&5
30384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30385 (exit $ac_status); }; }; then
30386 ac_cv_type_pid_t=yes
30388 echo "$as_me: failed program was:" >&5
30389 sed 's/^/| /' conftest.$ac_ext >&5
30391 ac_cv_type_pid_t=no
30394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30396 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30397 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30398 if test $ac_cv_type_pid_t = yes; then
30402 cat >>confdefs.h <<_ACEOF
30408 { echo "$as_me:$LINENO: checking for size_t" >&5
30409 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30410 if test "${ac_cv_type_size_t+set}" = set; then
30411 echo $ECHO_N "(cached) $ECHO_C" >&6
30413 cat >conftest.$ac_ext <<_ACEOF
30416 cat confdefs.h >>conftest.$ac_ext
30417 cat >>conftest.$ac_ext <<_ACEOF
30418 /* end confdefs.h. */
30419 $ac_includes_default
30420 typedef size_t ac__type_new_;
30424 if ((ac__type_new_ *) 0)
30426 if (sizeof (ac__type_new_))
30432 rm -f conftest.$ac_objext
30433 if { (ac_try="$ac_compile"
30434 case "(($ac_try" in
30435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30436 *) ac_try_echo=$ac_try;;
30438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30439 (eval "$ac_compile") 2>conftest.er1
30441 grep -v '^ *+' conftest.er1 >conftest.err
30443 cat conftest.err >&5
30444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445 (exit $ac_status); } &&
30446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30447 { (case "(($ac_try" in
30448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30449 *) ac_try_echo=$ac_try;;
30451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30452 (eval "$ac_try") 2>&5
30454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30455 (exit $ac_status); }; } &&
30456 { ac_try='test -s conftest.$ac_objext'
30457 { (case "(($ac_try" in
30458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30459 *) ac_try_echo=$ac_try;;
30461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30462 (eval "$ac_try") 2>&5
30464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30465 (exit $ac_status); }; }; then
30466 ac_cv_type_size_t=yes
30468 echo "$as_me: failed program was:" >&5
30469 sed 's/^/| /' conftest.$ac_ext >&5
30471 ac_cv_type_size_t=no
30474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30476 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30477 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30478 if test $ac_cv_type_size_t = yes; then
30482 cat >>confdefs.h <<_ACEOF
30483 #define size_t unsigned int
30488 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30489 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30490 if test "${ac_cv_type_signal+set}" = set; then
30491 echo $ECHO_N "(cached) $ECHO_C" >&6
30493 cat >conftest.$ac_ext <<_ACEOF
30496 cat confdefs.h >>conftest.$ac_ext
30497 cat >>conftest.$ac_ext <<_ACEOF
30498 /* end confdefs.h. */
30499 #include <sys/types.h>
30500 #include <signal.h>
30505 return *(signal (0, 0)) (0) == 1;
30510 rm -f conftest.$ac_objext
30511 if { (ac_try="$ac_compile"
30512 case "(($ac_try" in
30513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30514 *) ac_try_echo=$ac_try;;
30516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30517 (eval "$ac_compile") 2>conftest.er1
30519 grep -v '^ *+' conftest.er1 >conftest.err
30521 cat conftest.err >&5
30522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30523 (exit $ac_status); } &&
30524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30525 { (case "(($ac_try" in
30526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30527 *) ac_try_echo=$ac_try;;
30529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30530 (eval "$ac_try") 2>&5
30532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30533 (exit $ac_status); }; } &&
30534 { ac_try='test -s conftest.$ac_objext'
30535 { (case "(($ac_try" in
30536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30537 *) ac_try_echo=$ac_try;;
30539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30540 (eval "$ac_try") 2>&5
30542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30543 (exit $ac_status); }; }; then
30544 ac_cv_type_signal=int
30546 echo "$as_me: failed program was:" >&5
30547 sed 's/^/| /' conftest.$ac_ext >&5
30549 ac_cv_type_signal=void
30552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30554 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30555 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30557 cat >>confdefs.h <<_ACEOF
30558 #define RETSIGTYPE $ac_cv_type_signal
30562 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30563 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30564 if test "${ac_cv_struct_tm+set}" = set; then
30565 echo $ECHO_N "(cached) $ECHO_C" >&6
30567 cat >conftest.$ac_ext <<_ACEOF
30570 cat confdefs.h >>conftest.$ac_ext
30571 cat >>conftest.$ac_ext <<_ACEOF
30572 /* end confdefs.h. */
30573 #include <sys/types.h>
30579 struct tm *tp; tp->tm_sec;
30584 rm -f conftest.$ac_objext
30585 if { (ac_try="$ac_compile"
30586 case "(($ac_try" in
30587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30588 *) ac_try_echo=$ac_try;;
30590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30591 (eval "$ac_compile") 2>conftest.er1
30593 grep -v '^ *+' conftest.er1 >conftest.err
30595 cat conftest.err >&5
30596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30597 (exit $ac_status); } &&
30598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30599 { (case "(($ac_try" in
30600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30601 *) ac_try_echo=$ac_try;;
30603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30604 (eval "$ac_try") 2>&5
30606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30607 (exit $ac_status); }; } &&
30608 { ac_try='test -s conftest.$ac_objext'
30609 { (case "(($ac_try" in
30610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30611 *) ac_try_echo=$ac_try;;
30613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30614 (eval "$ac_try") 2>&5
30616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617 (exit $ac_status); }; }; then
30618 ac_cv_struct_tm=time.h
30620 echo "$as_me: failed program was:" >&5
30621 sed 's/^/| /' conftest.$ac_ext >&5
30623 ac_cv_struct_tm=sys/time.h
30626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30628 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30629 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30630 if test $ac_cv_struct_tm = sys/time.h; then
30632 cat >>confdefs.h <<\_ACEOF
30633 #define TM_IN_SYS_TIME 1
30638 { echo "$as_me:$LINENO: checking for int64_t" >&5
30639 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30640 if test "${ac_cv_type_int64_t+set}" = set; then
30641 echo $ECHO_N "(cached) $ECHO_C" >&6
30643 cat >conftest.$ac_ext <<_ACEOF
30646 cat confdefs.h >>conftest.$ac_ext
30647 cat >>conftest.$ac_ext <<_ACEOF
30648 /* end confdefs.h. */
30649 $ac_includes_default
30650 typedef int64_t ac__type_new_;
30654 if ((ac__type_new_ *) 0)
30656 if (sizeof (ac__type_new_))
30662 rm -f conftest.$ac_objext
30663 if { (ac_try="$ac_compile"
30664 case "(($ac_try" in
30665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30666 *) ac_try_echo=$ac_try;;
30668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30669 (eval "$ac_compile") 2>conftest.er1
30671 grep -v '^ *+' conftest.er1 >conftest.err
30673 cat conftest.err >&5
30674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675 (exit $ac_status); } &&
30676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30677 { (case "(($ac_try" in
30678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30679 *) ac_try_echo=$ac_try;;
30681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30682 (eval "$ac_try") 2>&5
30684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685 (exit $ac_status); }; } &&
30686 { ac_try='test -s conftest.$ac_objext'
30687 { (case "(($ac_try" in
30688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30689 *) ac_try_echo=$ac_try;;
30691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30692 (eval "$ac_try") 2>&5
30694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30695 (exit $ac_status); }; }; then
30696 ac_cv_type_int64_t=yes
30698 echo "$as_me: failed program was:" >&5
30699 sed 's/^/| /' conftest.$ac_ext >&5
30701 ac_cv_type_int64_t=no
30704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30706 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30707 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30708 if test $ac_cv_type_int64_t = yes; then
30710 cat >>confdefs.h <<_ACEOF
30711 #define HAVE_INT64_T 1
30716 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30717 echo "$as_me: error: Type int64_t required but not found" >&2;}
30718 { (exit 1); exit 1; }; }
30721 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30722 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30723 if test "${ac_cv_type_uint64_t+set}" = set; then
30724 echo $ECHO_N "(cached) $ECHO_C" >&6
30726 cat >conftest.$ac_ext <<_ACEOF
30729 cat confdefs.h >>conftest.$ac_ext
30730 cat >>conftest.$ac_ext <<_ACEOF
30731 /* end confdefs.h. */
30732 $ac_includes_default
30733 typedef uint64_t ac__type_new_;
30737 if ((ac__type_new_ *) 0)
30739 if (sizeof (ac__type_new_))
30745 rm -f conftest.$ac_objext
30746 if { (ac_try="$ac_compile"
30747 case "(($ac_try" in
30748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30749 *) ac_try_echo=$ac_try;;
30751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30752 (eval "$ac_compile") 2>conftest.er1
30754 grep -v '^ *+' conftest.er1 >conftest.err
30756 cat conftest.err >&5
30757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758 (exit $ac_status); } &&
30759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30760 { (case "(($ac_try" in
30761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30762 *) ac_try_echo=$ac_try;;
30764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30765 (eval "$ac_try") 2>&5
30767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30768 (exit $ac_status); }; } &&
30769 { ac_try='test -s conftest.$ac_objext'
30770 { (case "(($ac_try" in
30771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30772 *) ac_try_echo=$ac_try;;
30774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30775 (eval "$ac_try") 2>&5
30777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30778 (exit $ac_status); }; }; then
30779 ac_cv_type_uint64_t=yes
30781 echo "$as_me: failed program was:" >&5
30782 sed 's/^/| /' conftest.$ac_ext >&5
30784 ac_cv_type_uint64_t=no
30787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30789 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30790 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30791 if test $ac_cv_type_uint64_t = yes; then
30793 cat >>confdefs.h <<_ACEOF
30794 #define HAVE_UINT64_T 1
30799 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30800 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30801 if test "${ac_cv_type_u_int64_t+set}" = set; then
30802 echo $ECHO_N "(cached) $ECHO_C" >&6
30804 cat >conftest.$ac_ext <<_ACEOF
30807 cat confdefs.h >>conftest.$ac_ext
30808 cat >>conftest.$ac_ext <<_ACEOF
30809 /* end confdefs.h. */
30810 $ac_includes_default
30811 typedef u_int64_t ac__type_new_;
30815 if ((ac__type_new_ *) 0)
30817 if (sizeof (ac__type_new_))
30823 rm -f conftest.$ac_objext
30824 if { (ac_try="$ac_compile"
30825 case "(($ac_try" in
30826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30827 *) ac_try_echo=$ac_try;;
30829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30830 (eval "$ac_compile") 2>conftest.er1
30832 grep -v '^ *+' conftest.er1 >conftest.err
30834 cat conftest.err >&5
30835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30836 (exit $ac_status); } &&
30837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30838 { (case "(($ac_try" in
30839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30840 *) ac_try_echo=$ac_try;;
30842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30843 (eval "$ac_try") 2>&5
30845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30846 (exit $ac_status); }; } &&
30847 { ac_try='test -s conftest.$ac_objext'
30848 { (case "(($ac_try" in
30849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30850 *) ac_try_echo=$ac_try;;
30852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30853 (eval "$ac_try") 2>&5
30855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30856 (exit $ac_status); }; }; then
30857 ac_cv_type_u_int64_t=yes
30859 echo "$as_me: failed program was:" >&5
30860 sed 's/^/| /' conftest.$ac_ext >&5
30862 ac_cv_type_u_int64_t=no
30865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30867 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30868 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30869 if test $ac_cv_type_u_int64_t = yes; then
30871 cat >>confdefs.h <<_ACEOF
30872 #define HAVE_U_INT64_T 1
30877 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30878 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30879 { (exit 1); exit 1; }; }
30893 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30896 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30898 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30899 echo $ECHO_N "(cached) $ECHO_C" >&6
30901 cat >conftest.$ac_ext <<_ACEOF
30904 cat confdefs.h >>conftest.$ac_ext
30905 cat >>conftest.$ac_ext <<_ACEOF
30906 /* end confdefs.h. */
30907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30909 #define $ac_func innocuous_$ac_func
30911 /* System header to define __stub macros and hopefully few prototypes,
30912 which can conflict with char $ac_func (); below.
30913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30914 <limits.h> exists even on freestanding compilers. */
30917 # include <limits.h>
30919 # include <assert.h>
30924 /* Override any GCC internal prototype to avoid an error.
30925 Use char because int might match the return type of a GCC
30926 builtin and then its argument prototype would still apply. */
30931 /* The GNU C library defines this for functions which it implements
30932 to always fail with ENOSYS. Some functions are actually named
30933 something starting with __ and the normal name is an alias. */
30934 #if defined __stub_$ac_func || defined __stub___$ac_func
30941 return $ac_func ();
30946 rm -f conftest.$ac_objext conftest$ac_exeext
30947 if { (ac_try="$ac_link"
30948 case "(($ac_try" in
30949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30950 *) ac_try_echo=$ac_try;;
30952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30953 (eval "$ac_link") 2>conftest.er1
30955 grep -v '^ *+' conftest.er1 >conftest.err
30957 cat conftest.err >&5
30958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959 (exit $ac_status); } &&
30960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30961 { (case "(($ac_try" in
30962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30963 *) ac_try_echo=$ac_try;;
30965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30966 (eval "$ac_try") 2>&5
30968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30969 (exit $ac_status); }; } &&
30970 { ac_try='test -s conftest$ac_exeext'
30971 { (case "(($ac_try" in
30972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30973 *) ac_try_echo=$ac_try;;
30975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30976 (eval "$ac_try") 2>&5
30978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30979 (exit $ac_status); }; }; then
30980 eval "$as_ac_var=yes"
30982 echo "$as_me: failed program was:" >&5
30983 sed 's/^/| /' conftest.$ac_ext >&5
30985 eval "$as_ac_var=no"
30988 rm -f core conftest.err conftest.$ac_objext \
30989 conftest$ac_exeext conftest.$ac_ext
30991 ac_res=`eval echo '${'$as_ac_var'}'`
30992 { echo "$as_me:$LINENO: result: $ac_res" >&5
30993 echo "${ECHO_T}$ac_res" >&6; }
30994 if test `eval echo '${'$as_ac_var'}'` = yes; then
30995 cat >>confdefs.h <<_ACEOF
30996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31006 for ac_func in powf fmodf strtof round
31008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31009 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31011 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31012 echo $ECHO_N "(cached) $ECHO_C" >&6
31014 cat >conftest.$ac_ext <<_ACEOF
31017 cat confdefs.h >>conftest.$ac_ext
31018 cat >>conftest.$ac_ext <<_ACEOF
31019 /* end confdefs.h. */
31020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31022 #define $ac_func innocuous_$ac_func
31024 /* System header to define __stub macros and hopefully few prototypes,
31025 which can conflict with char $ac_func (); below.
31026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31027 <limits.h> exists even on freestanding compilers. */
31030 # include <limits.h>
31032 # include <assert.h>
31037 /* Override any GCC internal prototype to avoid an error.
31038 Use char because int might match the return type of a GCC
31039 builtin and then its argument prototype would still apply. */
31044 /* The GNU C library defines this for functions which it implements
31045 to always fail with ENOSYS. Some functions are actually named
31046 something starting with __ and the normal name is an alias. */
31047 #if defined __stub_$ac_func || defined __stub___$ac_func
31054 return $ac_func ();
31059 rm -f conftest.$ac_objext conftest$ac_exeext
31060 if { (ac_try="$ac_link"
31061 case "(($ac_try" in
31062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31063 *) ac_try_echo=$ac_try;;
31065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31066 (eval "$ac_link") 2>conftest.er1
31068 grep -v '^ *+' conftest.er1 >conftest.err
31070 cat conftest.err >&5
31071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072 (exit $ac_status); } &&
31073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31074 { (case "(($ac_try" in
31075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31076 *) ac_try_echo=$ac_try;;
31078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31079 (eval "$ac_try") 2>&5
31081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31082 (exit $ac_status); }; } &&
31083 { ac_try='test -s conftest$ac_exeext'
31084 { (case "(($ac_try" in
31085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31086 *) ac_try_echo=$ac_try;;
31088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31089 (eval "$ac_try") 2>&5
31091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092 (exit $ac_status); }; }; then
31093 eval "$as_ac_var=yes"
31095 echo "$as_me: failed program was:" >&5
31096 sed 's/^/| /' conftest.$ac_ext >&5
31098 eval "$as_ac_var=no"
31101 rm -f core conftest.err conftest.$ac_objext \
31102 conftest$ac_exeext conftest.$ac_ext
31104 ac_res=`eval echo '${'$as_ac_var'}'`
31105 { echo "$as_me:$LINENO: result: $ac_res" >&5
31106 echo "${ECHO_T}$ac_res" >&6; }
31107 if test `eval echo '${'$as_ac_var'}'` = yes; then
31108 cat >>confdefs.h <<_ACEOF
31109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31120 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31126 echo $ECHO_N "(cached) $ECHO_C" >&6
31128 cat >conftest.$ac_ext <<_ACEOF
31131 cat confdefs.h >>conftest.$ac_ext
31132 cat >>conftest.$ac_ext <<_ACEOF
31133 /* end confdefs.h. */
31134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31136 #define $ac_func innocuous_$ac_func
31138 /* System header to define __stub macros and hopefully few prototypes,
31139 which can conflict with char $ac_func (); below.
31140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31141 <limits.h> exists even on freestanding compilers. */
31144 # include <limits.h>
31146 # include <assert.h>
31151 /* Override any GCC internal prototype to avoid an error.
31152 Use char because int might match the return type of a GCC
31153 builtin and then its argument prototype would still apply. */
31158 /* The GNU C library defines this for functions which it implements
31159 to always fail with ENOSYS. Some functions are actually named
31160 something starting with __ and the normal name is an alias. */
31161 #if defined __stub_$ac_func || defined __stub___$ac_func
31168 return $ac_func ();
31173 rm -f conftest.$ac_objext conftest$ac_exeext
31174 if { (ac_try="$ac_link"
31175 case "(($ac_try" in
31176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31177 *) ac_try_echo=$ac_try;;
31179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31180 (eval "$ac_link") 2>conftest.er1
31182 grep -v '^ *+' conftest.er1 >conftest.err
31184 cat conftest.err >&5
31185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31186 (exit $ac_status); } &&
31187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31188 { (case "(($ac_try" in
31189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31190 *) ac_try_echo=$ac_try;;
31192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31193 (eval "$ac_try") 2>&5
31195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31196 (exit $ac_status); }; } &&
31197 { ac_try='test -s conftest$ac_exeext'
31198 { (case "(($ac_try" in
31199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31200 *) ac_try_echo=$ac_try;;
31202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31203 (eval "$ac_try") 2>&5
31205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31206 (exit $ac_status); }; }; then
31207 eval "$as_ac_var=yes"
31209 echo "$as_me: failed program was:" >&5
31210 sed 's/^/| /' conftest.$ac_ext >&5
31212 eval "$as_ac_var=no"
31215 rm -f core conftest.err conftest.$ac_objext \
31216 conftest$ac_exeext conftest.$ac_ext
31218 ac_res=`eval echo '${'$as_ac_var'}'`
31219 { echo "$as_me:$LINENO: result: $ac_res" >&5
31220 echo "${ECHO_T}$ac_res" >&6; }
31221 if test `eval echo '${'$as_ac_var'}'` = yes; then
31222 cat >>confdefs.h <<_ACEOF
31223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31232 for ac_func in isatty mkdtemp mkstemp
31234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31238 echo $ECHO_N "(cached) $ECHO_C" >&6
31240 cat >conftest.$ac_ext <<_ACEOF
31243 cat confdefs.h >>conftest.$ac_ext
31244 cat >>conftest.$ac_ext <<_ACEOF
31245 /* end confdefs.h. */
31246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31248 #define $ac_func innocuous_$ac_func
31250 /* System header to define __stub macros and hopefully few prototypes,
31251 which can conflict with char $ac_func (); below.
31252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31253 <limits.h> exists even on freestanding compilers. */
31256 # include <limits.h>
31258 # include <assert.h>
31263 /* Override any GCC internal prototype to avoid an error.
31264 Use char because int might match the return type of a GCC
31265 builtin and then its argument prototype would still apply. */
31270 /* The GNU C library defines this for functions which it implements
31271 to always fail with ENOSYS. Some functions are actually named
31272 something starting with __ and the normal name is an alias. */
31273 #if defined __stub_$ac_func || defined __stub___$ac_func
31280 return $ac_func ();
31285 rm -f conftest.$ac_objext conftest$ac_exeext
31286 if { (ac_try="$ac_link"
31287 case "(($ac_try" in
31288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31289 *) ac_try_echo=$ac_try;;
31291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31292 (eval "$ac_link") 2>conftest.er1
31294 grep -v '^ *+' conftest.er1 >conftest.err
31296 cat conftest.err >&5
31297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298 (exit $ac_status); } &&
31299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31300 { (case "(($ac_try" in
31301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31302 *) ac_try_echo=$ac_try;;
31304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31305 (eval "$ac_try") 2>&5
31307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308 (exit $ac_status); }; } &&
31309 { ac_try='test -s conftest$ac_exeext'
31310 { (case "(($ac_try" in
31311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31312 *) ac_try_echo=$ac_try;;
31314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31315 (eval "$ac_try") 2>&5
31317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318 (exit $ac_status); }; }; then
31319 eval "$as_ac_var=yes"
31321 echo "$as_me: failed program was:" >&5
31322 sed 's/^/| /' conftest.$ac_ext >&5
31324 eval "$as_ac_var=no"
31327 rm -f core conftest.err conftest.$ac_objext \
31328 conftest$ac_exeext conftest.$ac_ext
31330 ac_res=`eval echo '${'$as_ac_var'}'`
31331 { echo "$as_me:$LINENO: result: $ac_res" >&5
31332 echo "${ECHO_T}$ac_res" >&6; }
31333 if test `eval echo '${'$as_ac_var'}'` = yes; then
31334 cat >>confdefs.h <<_ACEOF
31335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31348 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31351 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31353 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31354 echo $ECHO_N "(cached) $ECHO_C" >&6
31356 cat >conftest.$ac_ext <<_ACEOF
31359 cat confdefs.h >>conftest.$ac_ext
31360 cat >>conftest.$ac_ext <<_ACEOF
31361 /* end confdefs.h. */
31362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31364 #define $ac_func innocuous_$ac_func
31366 /* System header to define __stub macros and hopefully few prototypes,
31367 which can conflict with char $ac_func (); below.
31368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31369 <limits.h> exists even on freestanding compilers. */
31372 # include <limits.h>
31374 # include <assert.h>
31379 /* Override any GCC internal prototype to avoid an error.
31380 Use char because int might match the return type of a GCC
31381 builtin and then its argument prototype would still apply. */
31386 /* The GNU C library defines this for functions which it implements
31387 to always fail with ENOSYS. Some functions are actually named
31388 something starting with __ and the normal name is an alias. */
31389 #if defined __stub_$ac_func || defined __stub___$ac_func
31396 return $ac_func ();
31401 rm -f conftest.$ac_objext conftest$ac_exeext
31402 if { (ac_try="$ac_link"
31403 case "(($ac_try" in
31404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31405 *) ac_try_echo=$ac_try;;
31407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31408 (eval "$ac_link") 2>conftest.er1
31410 grep -v '^ *+' conftest.er1 >conftest.err
31412 cat conftest.err >&5
31413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31414 (exit $ac_status); } &&
31415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31416 { (case "(($ac_try" in
31417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31418 *) ac_try_echo=$ac_try;;
31420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31421 (eval "$ac_try") 2>&5
31423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31424 (exit $ac_status); }; } &&
31425 { ac_try='test -s conftest$ac_exeext'
31426 { (case "(($ac_try" in
31427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31428 *) ac_try_echo=$ac_try;;
31430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31431 (eval "$ac_try") 2>&5
31433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434 (exit $ac_status); }; }; then
31435 eval "$as_ac_var=yes"
31437 echo "$as_me: failed program was:" >&5
31438 sed 's/^/| /' conftest.$ac_ext >&5
31440 eval "$as_ac_var=no"
31443 rm -f core conftest.err conftest.$ac_objext \
31444 conftest$ac_exeext conftest.$ac_ext
31446 ac_res=`eval echo '${'$as_ac_var'}'`
31447 { echo "$as_me:$LINENO: result: $ac_res" >&5
31448 echo "${ECHO_T}$ac_res" >&6; }
31449 if test `eval echo '${'$as_ac_var'}'` = yes; then
31450 cat >>confdefs.h <<_ACEOF
31451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31461 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31464 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31466 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31467 echo $ECHO_N "(cached) $ECHO_C" >&6
31469 cat >conftest.$ac_ext <<_ACEOF
31472 cat confdefs.h >>conftest.$ac_ext
31473 cat >>conftest.$ac_ext <<_ACEOF
31474 /* end confdefs.h. */
31475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31477 #define $ac_func innocuous_$ac_func
31479 /* System header to define __stub macros and hopefully few prototypes,
31480 which can conflict with char $ac_func (); below.
31481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31482 <limits.h> exists even on freestanding compilers. */
31485 # include <limits.h>
31487 # include <assert.h>
31492 /* Override any GCC internal prototype to avoid an error.
31493 Use char because int might match the return type of a GCC
31494 builtin and then its argument prototype would still apply. */
31499 /* The GNU C library defines this for functions which it implements
31500 to always fail with ENOSYS. Some functions are actually named
31501 something starting with __ and the normal name is an alias. */
31502 #if defined __stub_$ac_func || defined __stub___$ac_func
31509 return $ac_func ();
31514 rm -f conftest.$ac_objext conftest$ac_exeext
31515 if { (ac_try="$ac_link"
31516 case "(($ac_try" in
31517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31518 *) ac_try_echo=$ac_try;;
31520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31521 (eval "$ac_link") 2>conftest.er1
31523 grep -v '^ *+' conftest.er1 >conftest.err
31525 cat conftest.err >&5
31526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31527 (exit $ac_status); } &&
31528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31529 { (case "(($ac_try" in
31530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31531 *) ac_try_echo=$ac_try;;
31533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31534 (eval "$ac_try") 2>&5
31536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31537 (exit $ac_status); }; } &&
31538 { ac_try='test -s conftest$ac_exeext'
31539 { (case "(($ac_try" in
31540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31541 *) ac_try_echo=$ac_try;;
31543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31544 (eval "$ac_try") 2>&5
31546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547 (exit $ac_status); }; }; then
31548 eval "$as_ac_var=yes"
31550 echo "$as_me: failed program was:" >&5
31551 sed 's/^/| /' conftest.$ac_ext >&5
31553 eval "$as_ac_var=no"
31556 rm -f core conftest.err conftest.$ac_objext \
31557 conftest$ac_exeext conftest.$ac_ext
31559 ac_res=`eval echo '${'$as_ac_var'}'`
31560 { echo "$as_me:$LINENO: result: $ac_res" >&5
31561 echo "${ECHO_T}$ac_res" >&6; }
31562 if test `eval echo '${'$as_ac_var'}'` = yes; then
31563 cat >>confdefs.h <<_ACEOF
31564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31574 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31577 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31579 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31580 echo $ECHO_N "(cached) $ECHO_C" >&6
31582 cat >conftest.$ac_ext <<_ACEOF
31585 cat confdefs.h >>conftest.$ac_ext
31586 cat >>conftest.$ac_ext <<_ACEOF
31587 /* end confdefs.h. */
31588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31590 #define $ac_func innocuous_$ac_func
31592 /* System header to define __stub macros and hopefully few prototypes,
31593 which can conflict with char $ac_func (); below.
31594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31595 <limits.h> exists even on freestanding compilers. */
31598 # include <limits.h>
31600 # include <assert.h>
31605 /* Override any GCC internal prototype to avoid an error.
31606 Use char because int might match the return type of a GCC
31607 builtin and then its argument prototype would still apply. */
31612 /* The GNU C library defines this for functions which it implements
31613 to always fail with ENOSYS. Some functions are actually named
31614 something starting with __ and the normal name is an alias. */
31615 #if defined __stub_$ac_func || defined __stub___$ac_func
31622 return $ac_func ();
31627 rm -f conftest.$ac_objext conftest$ac_exeext
31628 if { (ac_try="$ac_link"
31629 case "(($ac_try" in
31630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31631 *) ac_try_echo=$ac_try;;
31633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31634 (eval "$ac_link") 2>conftest.er1
31636 grep -v '^ *+' conftest.er1 >conftest.err
31638 cat conftest.err >&5
31639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640 (exit $ac_status); } &&
31641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31642 { (case "(($ac_try" in
31643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31644 *) ac_try_echo=$ac_try;;
31646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31647 (eval "$ac_try") 2>&5
31649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31650 (exit $ac_status); }; } &&
31651 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
31659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660 (exit $ac_status); }; }; then
31661 eval "$as_ac_var=yes"
31663 echo "$as_me: failed program was:" >&5
31664 sed 's/^/| /' conftest.$ac_ext >&5
31666 eval "$as_ac_var=no"
31669 rm -f core conftest.err conftest.$ac_objext \
31670 conftest$ac_exeext conftest.$ac_ext
31672 ac_res=`eval echo '${'$as_ac_var'}'`
31673 { echo "$as_me:$LINENO: result: $ac_res" >&5
31674 echo "${ECHO_T}$ac_res" >&6; }
31675 if test `eval echo '${'$as_ac_var'}'` = yes; then
31676 cat >>confdefs.h <<_ACEOF
31677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31683 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31684 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31685 if test "${llvm_cv_c_printf_a+set}" = set; then
31686 echo $ECHO_N "(cached) $ECHO_C" >&6
31689 ac_cpp='$CPP $CPPFLAGS'
31690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31694 if test "$cross_compiling" = yes; then
31695 llvmac_cv_c_printf_a=no
31697 cat >conftest.$ac_ext <<_ACEOF
31701 cat confdefs.h >>conftest.$ac_ext
31702 cat >>conftest.$ac_ext <<_ACEOF
31703 /* end confdefs.h. */
31706 #include <stdlib.h>
31712 volatile double A, B;
31716 sprintf(Buffer, "%a", A);
31720 if (A != 0x1.999999999999ap-4)
31727 rm -f conftest$ac_exeext
31728 if { (ac_try="$ac_link"
31729 case "(($ac_try" in
31730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31731 *) ac_try_echo=$ac_try;;
31733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31734 (eval "$ac_link") 2>&5
31736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31738 { (case "(($ac_try" in
31739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31740 *) ac_try_echo=$ac_try;;
31742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31743 (eval "$ac_try") 2>&5
31745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746 (exit $ac_status); }; }; then
31747 llvm_cv_c_printf_a=yes
31749 echo "$as_me: program exited with status $ac_status" >&5
31750 echo "$as_me: failed program was:" >&5
31751 sed 's/^/| /' conftest.$ac_ext >&5
31753 ( exit $ac_status )
31754 llvmac_cv_c_printf_a=no
31756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31761 ac_cpp='$CPP $CPPFLAGS'
31762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31767 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31768 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31769 if test "$llvm_cv_c_printf_a" = "yes"; then
31771 cat >>confdefs.h <<\_ACEOF
31772 #define HAVE_PRINTF_A 1
31777 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31778 # for constant arguments. Useless!
31779 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31780 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31781 if test "${ac_cv_working_alloca_h+set}" = set; then
31782 echo $ECHO_N "(cached) $ECHO_C" >&6
31784 cat >conftest.$ac_ext <<_ACEOF
31787 cat confdefs.h >>conftest.$ac_ext
31788 cat >>conftest.$ac_ext <<_ACEOF
31789 /* end confdefs.h. */
31790 #include <alloca.h>
31794 char *p = (char *) alloca (2 * sizeof (int));
31800 rm -f conftest.$ac_objext conftest$ac_exeext
31801 if { (ac_try="$ac_link"
31802 case "(($ac_try" in
31803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31804 *) ac_try_echo=$ac_try;;
31806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31807 (eval "$ac_link") 2>conftest.er1
31809 grep -v '^ *+' conftest.er1 >conftest.err
31811 cat conftest.err >&5
31812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31813 (exit $ac_status); } &&
31814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31815 { (case "(($ac_try" in
31816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31817 *) ac_try_echo=$ac_try;;
31819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31820 (eval "$ac_try") 2>&5
31822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823 (exit $ac_status); }; } &&
31824 { ac_try='test -s conftest$ac_exeext'
31825 { (case "(($ac_try" in
31826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31827 *) ac_try_echo=$ac_try;;
31829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31830 (eval "$ac_try") 2>&5
31832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833 (exit $ac_status); }; }; then
31834 ac_cv_working_alloca_h=yes
31836 echo "$as_me: failed program was:" >&5
31837 sed 's/^/| /' conftest.$ac_ext >&5
31839 ac_cv_working_alloca_h=no
31842 rm -f core conftest.err conftest.$ac_objext \
31843 conftest$ac_exeext conftest.$ac_ext
31845 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31846 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31847 if test $ac_cv_working_alloca_h = yes; then
31849 cat >>confdefs.h <<\_ACEOF
31850 #define HAVE_ALLOCA_H 1
31855 { echo "$as_me:$LINENO: checking for alloca" >&5
31856 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31857 if test "${ac_cv_func_alloca_works+set}" = set; then
31858 echo $ECHO_N "(cached) $ECHO_C" >&6
31860 cat >conftest.$ac_ext <<_ACEOF
31863 cat confdefs.h >>conftest.$ac_ext
31864 cat >>conftest.$ac_ext <<_ACEOF
31865 /* end confdefs.h. */
31867 # define alloca __builtin_alloca
31870 # include <malloc.h>
31871 # define alloca _alloca
31874 # include <alloca.h>
31879 # ifndef alloca /* predefined by HP cc +Olibcalls */
31890 char *p = (char *) alloca (1);
31896 rm -f conftest.$ac_objext conftest$ac_exeext
31897 if { (ac_try="$ac_link"
31898 case "(($ac_try" in
31899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31900 *) ac_try_echo=$ac_try;;
31902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31903 (eval "$ac_link") 2>conftest.er1
31905 grep -v '^ *+' conftest.er1 >conftest.err
31907 cat conftest.err >&5
31908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31909 (exit $ac_status); } &&
31910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31911 { (case "(($ac_try" in
31912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31913 *) ac_try_echo=$ac_try;;
31915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31916 (eval "$ac_try") 2>&5
31918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31919 (exit $ac_status); }; } &&
31920 { ac_try='test -s conftest$ac_exeext'
31921 { (case "(($ac_try" in
31922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31923 *) ac_try_echo=$ac_try;;
31925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31926 (eval "$ac_try") 2>&5
31928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31929 (exit $ac_status); }; }; then
31930 ac_cv_func_alloca_works=yes
31932 echo "$as_me: failed program was:" >&5
31933 sed 's/^/| /' conftest.$ac_ext >&5
31935 ac_cv_func_alloca_works=no
31938 rm -f core conftest.err conftest.$ac_objext \
31939 conftest$ac_exeext conftest.$ac_ext
31941 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31942 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31944 if test $ac_cv_func_alloca_works = yes; then
31946 cat >>confdefs.h <<\_ACEOF
31947 #define HAVE_ALLOCA 1
31951 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31952 # that cause trouble. Some versions do not even contain alloca or
31953 # contain a buggy version. If you still want to use their alloca,
31954 # use ar to extract alloca.o from them instead of compiling alloca.c.
31956 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31958 cat >>confdefs.h <<\_ACEOF
31963 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31964 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31965 if test "${ac_cv_os_cray+set}" = set; then
31966 echo $ECHO_N "(cached) $ECHO_C" >&6
31968 cat >conftest.$ac_ext <<_ACEOF
31971 cat confdefs.h >>conftest.$ac_ext
31972 cat >>conftest.$ac_ext <<_ACEOF
31973 /* end confdefs.h. */
31974 #if defined CRAY && ! defined CRAY2
31981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31982 $EGREP "webecray" >/dev/null 2>&1; then
31990 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31991 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31992 if test $ac_cv_os_cray = yes; then
31993 for ac_func in _getb67 GETB67 getb67; do
31994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31998 echo $ECHO_N "(cached) $ECHO_C" >&6
32000 cat >conftest.$ac_ext <<_ACEOF
32003 cat confdefs.h >>conftest.$ac_ext
32004 cat >>conftest.$ac_ext <<_ACEOF
32005 /* end confdefs.h. */
32006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32008 #define $ac_func innocuous_$ac_func
32010 /* System header to define __stub macros and hopefully few prototypes,
32011 which can conflict with char $ac_func (); below.
32012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32013 <limits.h> exists even on freestanding compilers. */
32016 # include <limits.h>
32018 # include <assert.h>
32023 /* Override any GCC internal prototype to avoid an error.
32024 Use char because int might match the return type of a GCC
32025 builtin and then its argument prototype would still apply. */
32030 /* The GNU C library defines this for functions which it implements
32031 to always fail with ENOSYS. Some functions are actually named
32032 something starting with __ and the normal name is an alias. */
32033 #if defined __stub_$ac_func || defined __stub___$ac_func
32040 return $ac_func ();
32045 rm -f conftest.$ac_objext conftest$ac_exeext
32046 if { (ac_try="$ac_link"
32047 case "(($ac_try" in
32048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32049 *) ac_try_echo=$ac_try;;
32051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32052 (eval "$ac_link") 2>conftest.er1
32054 grep -v '^ *+' conftest.er1 >conftest.err
32056 cat conftest.err >&5
32057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058 (exit $ac_status); } &&
32059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32060 { (case "(($ac_try" in
32061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32062 *) ac_try_echo=$ac_try;;
32064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32065 (eval "$ac_try") 2>&5
32067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068 (exit $ac_status); }; } &&
32069 { ac_try='test -s conftest$ac_exeext'
32070 { (case "(($ac_try" in
32071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32072 *) ac_try_echo=$ac_try;;
32074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32075 (eval "$ac_try") 2>&5
32077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32078 (exit $ac_status); }; }; then
32079 eval "$as_ac_var=yes"
32081 echo "$as_me: failed program was:" >&5
32082 sed 's/^/| /' conftest.$ac_ext >&5
32084 eval "$as_ac_var=no"
32087 rm -f core conftest.err conftest.$ac_objext \
32088 conftest$ac_exeext conftest.$ac_ext
32090 ac_res=`eval echo '${'$as_ac_var'}'`
32091 { echo "$as_me:$LINENO: result: $ac_res" >&5
32092 echo "${ECHO_T}$ac_res" >&6; }
32093 if test `eval echo '${'$as_ac_var'}'` = yes; then
32095 cat >>confdefs.h <<_ACEOF
32096 #define CRAY_STACKSEG_END $ac_func
32105 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32106 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32107 if test "${ac_cv_c_stack_direction+set}" = set; then
32108 echo $ECHO_N "(cached) $ECHO_C" >&6
32110 if test "$cross_compiling" = yes; then
32111 ac_cv_c_stack_direction=0
32113 cat >conftest.$ac_ext <<_ACEOF
32116 cat confdefs.h >>conftest.$ac_ext
32117 cat >>conftest.$ac_ext <<_ACEOF
32118 /* end confdefs.h. */
32119 $ac_includes_default
32121 find_stack_direction ()
32123 static char *addr = 0;
32128 return find_stack_direction ();
32131 return (&dummy > addr) ? 1 : -1;
32137 return find_stack_direction () < 0;
32140 rm -f conftest$ac_exeext
32141 if { (ac_try="$ac_link"
32142 case "(($ac_try" in
32143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32144 *) ac_try_echo=$ac_try;;
32146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32147 (eval "$ac_link") 2>&5
32149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32151 { (case "(($ac_try" in
32152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32153 *) ac_try_echo=$ac_try;;
32155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32156 (eval "$ac_try") 2>&5
32158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32159 (exit $ac_status); }; }; then
32160 ac_cv_c_stack_direction=1
32162 echo "$as_me: program exited with status $ac_status" >&5
32163 echo "$as_me: failed program was:" >&5
32164 sed 's/^/| /' conftest.$ac_ext >&5
32166 ( exit $ac_status )
32167 ac_cv_c_stack_direction=-1
32169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32174 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32175 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32177 cat >>confdefs.h <<_ACEOF
32178 #define STACK_DIRECTION $ac_cv_c_stack_direction
32185 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
32186 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
32187 if test "${ac_cv_func_rand48+set}" = set; then
32188 echo $ECHO_N "(cached) $ECHO_C" >&6
32191 ac_cpp='$CXXCPP $CPPFLAGS'
32192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32196 cat >conftest.$ac_ext <<_ACEOF
32199 cat confdefs.h >>conftest.$ac_ext
32200 cat >>conftest.$ac_ext <<_ACEOF
32201 /* end confdefs.h. */
32202 #include <stdlib.h>
32206 srand48(0);lrand48();drand48();
32211 rm -f conftest.$ac_objext
32212 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
32220 grep -v '^ *+' conftest.er1 >conftest.err
32222 cat conftest.err >&5
32223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32224 (exit $ac_status); } &&
32225 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32226 { (case "(($ac_try" in
32227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32228 *) ac_try_echo=$ac_try;;
32230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32231 (eval "$ac_try") 2>&5
32233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32234 (exit $ac_status); }; } &&
32235 { ac_try='test -s conftest.$ac_objext'
32236 { (case "(($ac_try" in
32237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32238 *) ac_try_echo=$ac_try;;
32240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32241 (eval "$ac_try") 2>&5
32243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32244 (exit $ac_status); }; }; then
32245 ac_cv_func_rand48=yes
32247 echo "$as_me: failed program was:" >&5
32248 sed 's/^/| /' conftest.$ac_ext >&5
32250 ac_cv_func_rand48=no
32253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32255 ac_cpp='$CPP $CPPFLAGS'
32256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32261 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32262 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
32264 if test "$ac_cv_func_rand48" = "yes" ; then
32266 cat >>confdefs.h <<\_ACEOF
32267 #define HAVE_RAND48 1
32273 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32274 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
32275 if test "${ac_cv_cxx_namespaces+set}" = set; then
32276 echo $ECHO_N "(cached) $ECHO_C" >&6
32279 ac_cpp='$CXXCPP $CPPFLAGS'
32280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32284 cat >conftest.$ac_ext <<_ACEOF
32287 cat confdefs.h >>conftest.$ac_ext
32288 cat >>conftest.$ac_ext <<_ACEOF
32289 /* end confdefs.h. */
32290 namespace Outer { namespace Inner { int i = 0; }}
32294 using namespace Outer::Inner; return i;
32299 rm -f conftest.$ac_objext
32300 if { (ac_try="$ac_compile"
32301 case "(($ac_try" in
32302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32303 *) ac_try_echo=$ac_try;;
32305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32306 (eval "$ac_compile") 2>conftest.er1
32308 grep -v '^ *+' conftest.er1 >conftest.err
32310 cat conftest.err >&5
32311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312 (exit $ac_status); } &&
32313 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32314 { (case "(($ac_try" in
32315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32316 *) ac_try_echo=$ac_try;;
32318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32319 (eval "$ac_try") 2>&5
32321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322 (exit $ac_status); }; } &&
32323 { ac_try='test -s conftest.$ac_objext'
32324 { (case "(($ac_try" in
32325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32326 *) ac_try_echo=$ac_try;;
32328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32329 (eval "$ac_try") 2>&5
32331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32332 (exit $ac_status); }; }; then
32333 ac_cv_cxx_namespaces=yes
32335 echo "$as_me: failed program was:" >&5
32336 sed 's/^/| /' conftest.$ac_ext >&5
32338 ac_cv_cxx_namespaces=no
32341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32343 ac_cpp='$CPP $CPPFLAGS'
32344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32350 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32351 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32352 if test "$ac_cv_cxx_namespaces" = yes; then
32354 cat >>confdefs.h <<\_ACEOF
32355 #define HAVE_NAMESPACES
32360 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
32361 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
32362 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
32363 echo $ECHO_N "(cached) $ECHO_C" >&6
32367 ac_cpp='$CXXCPP $CPPFLAGS'
32368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32372 cat >conftest.$ac_ext <<_ACEOF
32375 cat confdefs.h >>conftest.$ac_ext
32376 cat >>conftest.$ac_ext <<_ACEOF
32377 /* end confdefs.h. */
32378 #include <ext/hash_map>
32379 #ifdef HAVE_NAMESPACES
32380 using namespace std;
32385 hash_map<int, int> t;
32390 rm -f conftest.$ac_objext
32391 if { (ac_try="$ac_compile"
32392 case "(($ac_try" in
32393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32394 *) ac_try_echo=$ac_try;;
32396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32397 (eval "$ac_compile") 2>conftest.er1
32399 grep -v '^ *+' conftest.er1 >conftest.err
32401 cat conftest.err >&5
32402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32403 (exit $ac_status); } &&
32404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32405 { (case "(($ac_try" in
32406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32407 *) ac_try_echo=$ac_try;;
32409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32410 (eval "$ac_try") 2>&5
32412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32413 (exit $ac_status); }; } &&
32414 { ac_try='test -s conftest.$ac_objext'
32415 { (case "(($ac_try" in
32416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32417 *) ac_try_echo=$ac_try;;
32419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32420 (eval "$ac_try") 2>&5
32422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32423 (exit $ac_status); }; }; then
32424 ac_cv_cxx_have_std_ext_hash_map=yes
32426 echo "$as_me: failed program was:" >&5
32427 sed 's/^/| /' conftest.$ac_ext >&5
32429 ac_cv_cxx_have_std_ext_hash_map=no
32432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32434 ac_cpp='$CPP $CPPFLAGS'
32435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32440 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
32441 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
32442 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
32445 cat >>confdefs.h <<\_ACEOF
32446 #define HAVE_STD_EXT_HASH_MAP 1
32451 cat >>confdefs.h <<\_ACEOF
32452 #define HAVE_STD_EXT_HASH_MAP 0
32457 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
32458 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
32459 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
32460 echo $ECHO_N "(cached) $ECHO_C" >&6
32464 ac_cpp='$CXXCPP $CPPFLAGS'
32465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32469 cat >conftest.$ac_ext <<_ACEOF
32472 cat confdefs.h >>conftest.$ac_ext
32473 cat >>conftest.$ac_ext <<_ACEOF
32474 /* end confdefs.h. */
32475 #include <ext/hash_map>
32476 #ifdef HAVE_NAMESPACES
32477 using namespace __gnu_cxx;
32482 hash_map<int,int> t;
32487 rm -f conftest.$ac_objext
32488 if { (ac_try="$ac_compile"
32489 case "(($ac_try" in
32490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32491 *) ac_try_echo=$ac_try;;
32493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32494 (eval "$ac_compile") 2>conftest.er1
32496 grep -v '^ *+' conftest.er1 >conftest.err
32498 cat conftest.err >&5
32499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32500 (exit $ac_status); } &&
32501 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32502 { (case "(($ac_try" in
32503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32504 *) ac_try_echo=$ac_try;;
32506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32507 (eval "$ac_try") 2>&5
32509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32510 (exit $ac_status); }; } &&
32511 { ac_try='test -s conftest.$ac_objext'
32512 { (case "(($ac_try" in
32513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32514 *) ac_try_echo=$ac_try;;
32516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32517 (eval "$ac_try") 2>&5
32519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520 (exit $ac_status); }; }; then
32521 ac_cv_cxx_have_gnu_ext_hash_map=yes
32523 echo "$as_me: failed program was:" >&5
32524 sed 's/^/| /' conftest.$ac_ext >&5
32526 ac_cv_cxx_have_gnu_ext_hash_map=no
32529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32531 ac_cpp='$CPP $CPPFLAGS'
32532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32537 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32538 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32539 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32542 cat >>confdefs.h <<\_ACEOF
32543 #define HAVE_GNU_EXT_HASH_MAP 1
32548 cat >>confdefs.h <<\_ACEOF
32549 #define HAVE_GNU_EXT_HASH_MAP 0
32554 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32555 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32556 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32557 echo $ECHO_N "(cached) $ECHO_C" >&6
32561 ac_cpp='$CXXCPP $CPPFLAGS'
32562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32566 cat >conftest.$ac_ext <<_ACEOF
32569 cat confdefs.h >>conftest.$ac_ext
32570 cat >>conftest.$ac_ext <<_ACEOF
32571 /* end confdefs.h. */
32572 #include <hash_map>
32576 hash_map<int,int> t;
32581 rm -f conftest.$ac_objext
32582 if { (ac_try="$ac_compile"
32583 case "(($ac_try" in
32584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32585 *) ac_try_echo=$ac_try;;
32587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32588 (eval "$ac_compile") 2>conftest.er1
32590 grep -v '^ *+' conftest.er1 >conftest.err
32592 cat conftest.err >&5
32593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594 (exit $ac_status); } &&
32595 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32596 { (case "(($ac_try" in
32597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32598 *) ac_try_echo=$ac_try;;
32600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32601 (eval "$ac_try") 2>&5
32603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32604 (exit $ac_status); }; } &&
32605 { ac_try='test -s conftest.$ac_objext'
32606 { (case "(($ac_try" in
32607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32608 *) ac_try_echo=$ac_try;;
32610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32611 (eval "$ac_try") 2>&5
32613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32614 (exit $ac_status); }; }; then
32615 ac_cv_cxx_have_global_hash_map=yes
32617 echo "$as_me: failed program was:" >&5
32618 sed 's/^/| /' conftest.$ac_ext >&5
32620 ac_cv_cxx_have_global_hash_map=no
32623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32625 ac_cpp='$CPP $CPPFLAGS'
32626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32631 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32632 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32633 if test "$ac_cv_cxx_have_global_hash_map" = yes
32636 cat >>confdefs.h <<\_ACEOF
32637 #define HAVE_GLOBAL_HASH_MAP 1
32642 cat >>confdefs.h <<\_ACEOF
32643 #define HAVE_GLOBAL_HASH_MAP 0
32648 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32649 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32650 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32651 echo $ECHO_N "(cached) $ECHO_C" >&6
32655 ac_cpp='$CXXCPP $CPPFLAGS'
32656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32660 cat >conftest.$ac_ext <<_ACEOF
32663 cat confdefs.h >>conftest.$ac_ext
32664 cat >>conftest.$ac_ext <<_ACEOF
32665 /* end confdefs.h. */
32666 #include <ext/hash_set>
32667 #ifdef HAVE_NAMESPACES
32668 using namespace std;
32678 rm -f conftest.$ac_objext
32679 if { (ac_try="$ac_compile"
32680 case "(($ac_try" in
32681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32682 *) ac_try_echo=$ac_try;;
32684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32685 (eval "$ac_compile") 2>conftest.er1
32687 grep -v '^ *+' conftest.er1 >conftest.err
32689 cat conftest.err >&5
32690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691 (exit $ac_status); } &&
32692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32693 { (case "(($ac_try" in
32694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32695 *) ac_try_echo=$ac_try;;
32697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32698 (eval "$ac_try") 2>&5
32700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701 (exit $ac_status); }; } &&
32702 { ac_try='test -s conftest.$ac_objext'
32703 { (case "(($ac_try" in
32704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32705 *) ac_try_echo=$ac_try;;
32707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32708 (eval "$ac_try") 2>&5
32710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711 (exit $ac_status); }; }; then
32712 ac_cv_cxx_have_std_ext_hash_set=yes
32714 echo "$as_me: failed program was:" >&5
32715 sed 's/^/| /' conftest.$ac_ext >&5
32717 ac_cv_cxx_have_std_ext_hash_set=no
32720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32722 ac_cpp='$CPP $CPPFLAGS'
32723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32728 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32729 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32730 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32733 cat >>confdefs.h <<\_ACEOF
32734 #define HAVE_STD_EXT_HASH_SET 1
32739 cat >>confdefs.h <<\_ACEOF
32740 #define HAVE_STD_EXT_HASH_SET 0
32745 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32746 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32747 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32748 echo $ECHO_N "(cached) $ECHO_C" >&6
32752 ac_cpp='$CXXCPP $CPPFLAGS'
32753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32757 cat >conftest.$ac_ext <<_ACEOF
32760 cat confdefs.h >>conftest.$ac_ext
32761 cat >>conftest.$ac_ext <<_ACEOF
32762 /* end confdefs.h. */
32763 #include <ext/hash_set>
32764 #ifdef HAVE_NAMESPACES
32765 using namespace __gnu_cxx;
32775 rm -f conftest.$ac_objext
32776 if { (ac_try="$ac_compile"
32777 case "(($ac_try" in
32778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779 *) ac_try_echo=$ac_try;;
32781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32782 (eval "$ac_compile") 2>conftest.er1
32784 grep -v '^ *+' conftest.er1 >conftest.err
32786 cat conftest.err >&5
32787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788 (exit $ac_status); } &&
32789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32790 { (case "(($ac_try" in
32791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32792 *) ac_try_echo=$ac_try;;
32794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32795 (eval "$ac_try") 2>&5
32797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798 (exit $ac_status); }; } &&
32799 { ac_try='test -s conftest.$ac_objext'
32800 { (case "(($ac_try" in
32801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32802 *) ac_try_echo=$ac_try;;
32804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32805 (eval "$ac_try") 2>&5
32807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808 (exit $ac_status); }; }; then
32809 ac_cv_cxx_have_gnu_ext_hash_set=yes
32811 echo "$as_me: failed program was:" >&5
32812 sed 's/^/| /' conftest.$ac_ext >&5
32814 ac_cv_cxx_have_gnu_ext_hash_set=no
32817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32819 ac_cpp='$CPP $CPPFLAGS'
32820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32825 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32826 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32827 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32830 cat >>confdefs.h <<\_ACEOF
32831 #define HAVE_GNU_EXT_HASH_SET 1
32836 cat >>confdefs.h <<\_ACEOF
32837 #define HAVE_GNU_EXT_HASH_SET 0
32842 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32843 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32844 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32845 echo $ECHO_N "(cached) $ECHO_C" >&6
32849 ac_cpp='$CXXCPP $CPPFLAGS'
32850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32854 cat >conftest.$ac_ext <<_ACEOF
32857 cat confdefs.h >>conftest.$ac_ext
32858 cat >>conftest.$ac_ext <<_ACEOF
32859 /* end confdefs.h. */
32860 #include <hash_set>
32864 hash_set<int> t; return 0;
32869 rm -f conftest.$ac_objext
32870 if { (ac_try="$ac_compile"
32871 case "(($ac_try" in
32872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32873 *) ac_try_echo=$ac_try;;
32875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32876 (eval "$ac_compile") 2>conftest.er1
32878 grep -v '^ *+' conftest.er1 >conftest.err
32880 cat conftest.err >&5
32881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32882 (exit $ac_status); } &&
32883 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32884 { (case "(($ac_try" in
32885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32886 *) ac_try_echo=$ac_try;;
32888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32889 (eval "$ac_try") 2>&5
32891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32892 (exit $ac_status); }; } &&
32893 { ac_try='test -s conftest.$ac_objext'
32894 { (case "(($ac_try" in
32895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32896 *) ac_try_echo=$ac_try;;
32898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32899 (eval "$ac_try") 2>&5
32901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902 (exit $ac_status); }; }; then
32903 ac_cv_cxx_have_global_hash_set=yes
32905 echo "$as_me: failed program was:" >&5
32906 sed 's/^/| /' conftest.$ac_ext >&5
32908 ac_cv_cxx_have_global_hash_set=no
32911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32913 ac_cpp='$CPP $CPPFLAGS'
32914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32919 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32920 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32921 if test "$ac_cv_cxx_have_global_hash_set" = yes
32924 cat >>confdefs.h <<\_ACEOF
32925 #define HAVE_GLOBAL_HASH_SET 1
32930 cat >>confdefs.h <<\_ACEOF
32931 #define HAVE_GLOBAL_HASH_SET 0
32936 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32937 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32938 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32939 echo $ECHO_N "(cached) $ECHO_C" >&6
32943 ac_cpp='$CXXCPP $CPPFLAGS'
32944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32948 cat >conftest.$ac_ext <<_ACEOF
32951 cat confdefs.h >>conftest.$ac_ext
32952 cat >>conftest.$ac_ext <<_ACEOF
32953 /* end confdefs.h. */
32954 #include <iterator>
32955 #ifdef HAVE_NAMESPACES
32956 using namespace std;
32961 iterator<int,int,int> t; return 0;
32966 rm -f conftest.$ac_objext
32967 if { (ac_try="$ac_compile"
32968 case "(($ac_try" in
32969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32970 *) ac_try_echo=$ac_try;;
32972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32973 (eval "$ac_compile") 2>conftest.er1
32975 grep -v '^ *+' conftest.er1 >conftest.err
32977 cat conftest.err >&5
32978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32979 (exit $ac_status); } &&
32980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32981 { (case "(($ac_try" in
32982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32983 *) ac_try_echo=$ac_try;;
32985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32986 (eval "$ac_try") 2>&5
32988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32989 (exit $ac_status); }; } &&
32990 { ac_try='test -s conftest.$ac_objext'
32991 { (case "(($ac_try" in
32992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32993 *) ac_try_echo=$ac_try;;
32995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32996 (eval "$ac_try") 2>&5
32998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32999 (exit $ac_status); }; }; then
33000 ac_cv_cxx_have_std_iterator=yes
33002 echo "$as_me: failed program was:" >&5
33003 sed 's/^/| /' conftest.$ac_ext >&5
33005 ac_cv_cxx_have_std_iterator=no
33008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33010 ac_cpp='$CPP $CPPFLAGS'
33011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33017 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33018 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33019 if test "$ac_cv_cxx_have_std_iterator" = yes
33022 cat >>confdefs.h <<\_ACEOF
33023 #define HAVE_STD_ITERATOR 1
33028 cat >>confdefs.h <<\_ACEOF
33029 #define HAVE_STD_ITERATOR 0
33034 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33035 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33036 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33037 echo $ECHO_N "(cached) $ECHO_C" >&6
33041 ac_cpp='$CXXCPP $CPPFLAGS'
33042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33046 cat >conftest.$ac_ext <<_ACEOF
33049 cat confdefs.h >>conftest.$ac_ext
33050 cat >>conftest.$ac_ext <<_ACEOF
33051 /* end confdefs.h. */
33052 #include <iterator>
33053 #ifdef HAVE_NAMESPACES
33054 using namespace std;
33059 bidirectional_iterator<int,int> t; return 0;
33064 rm -f conftest.$ac_objext
33065 if { (ac_try="$ac_compile"
33066 case "(($ac_try" in
33067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33068 *) ac_try_echo=$ac_try;;
33070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33071 (eval "$ac_compile") 2>conftest.er1
33073 grep -v '^ *+' conftest.er1 >conftest.err
33075 cat conftest.err >&5
33076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33077 (exit $ac_status); } &&
33078 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33079 { (case "(($ac_try" in
33080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33081 *) ac_try_echo=$ac_try;;
33083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33084 (eval "$ac_try") 2>&5
33086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33087 (exit $ac_status); }; } &&
33088 { ac_try='test -s conftest.$ac_objext'
33089 { (case "(($ac_try" in
33090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33091 *) ac_try_echo=$ac_try;;
33093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33094 (eval "$ac_try") 2>&5
33096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33097 (exit $ac_status); }; }; then
33098 ac_cv_cxx_have_bi_iterator=yes
33100 echo "$as_me: failed program was:" >&5
33101 sed 's/^/| /' conftest.$ac_ext >&5
33103 ac_cv_cxx_have_bi_iterator=no
33106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33108 ac_cpp='$CPP $CPPFLAGS'
33109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33115 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33116 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33117 if test "$ac_cv_cxx_have_bi_iterator" = yes
33120 cat >>confdefs.h <<\_ACEOF
33121 #define HAVE_BI_ITERATOR 1
33126 cat >>confdefs.h <<\_ACEOF
33127 #define HAVE_BI_ITERATOR 0
33132 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33133 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33134 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33135 echo $ECHO_N "(cached) $ECHO_C" >&6
33139 ac_cpp='$CXXCPP $CPPFLAGS'
33140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33144 cat >conftest.$ac_ext <<_ACEOF
33147 cat confdefs.h >>conftest.$ac_ext
33148 cat >>conftest.$ac_ext <<_ACEOF
33149 /* end confdefs.h. */
33150 #include <iterator>
33151 #ifdef HAVE_NAMESPACES
33152 using namespace std;
33157 forward_iterator<int,int> t; return 0;
33162 rm -f conftest.$ac_objext
33163 if { (ac_try="$ac_compile"
33164 case "(($ac_try" in
33165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33166 *) ac_try_echo=$ac_try;;
33168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33169 (eval "$ac_compile") 2>conftest.er1
33171 grep -v '^ *+' conftest.er1 >conftest.err
33173 cat conftest.err >&5
33174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33175 (exit $ac_status); } &&
33176 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33177 { (case "(($ac_try" in
33178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33179 *) ac_try_echo=$ac_try;;
33181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33182 (eval "$ac_try") 2>&5
33184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33185 (exit $ac_status); }; } &&
33186 { ac_try='test -s conftest.$ac_objext'
33187 { (case "(($ac_try" in
33188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33189 *) ac_try_echo=$ac_try;;
33191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33192 (eval "$ac_try") 2>&5
33194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33195 (exit $ac_status); }; }; then
33196 ac_cv_cxx_have_fwd_iterator=yes
33198 echo "$as_me: failed program was:" >&5
33199 sed 's/^/| /' conftest.$ac_ext >&5
33201 ac_cv_cxx_have_fwd_iterator=no
33204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33206 ac_cpp='$CPP $CPPFLAGS'
33207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33213 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33214 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33215 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33218 cat >>confdefs.h <<\_ACEOF
33219 #define HAVE_FWD_ITERATOR 1
33224 cat >>confdefs.h <<\_ACEOF
33225 #define HAVE_FWD_ITERATOR 0
33231 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33232 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33233 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33234 echo $ECHO_N "(cached) $ECHO_C" >&6
33237 ac_cpp='$CXXCPP $CPPFLAGS'
33238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33242 cat >conftest.$ac_ext <<_ACEOF
33245 cat confdefs.h >>conftest.$ac_ext
33246 cat >>conftest.$ac_ext <<_ACEOF
33247 /* end confdefs.h. */
33257 rm -f conftest.$ac_objext
33258 if { (ac_try="$ac_compile"
33259 case "(($ac_try" in
33260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33261 *) ac_try_echo=$ac_try;;
33263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33264 (eval "$ac_compile") 2>conftest.er1
33266 grep -v '^ *+' conftest.er1 >conftest.err
33268 cat conftest.err >&5
33269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33270 (exit $ac_status); } &&
33271 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33272 { (case "(($ac_try" in
33273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33274 *) ac_try_echo=$ac_try;;
33276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33277 (eval "$ac_try") 2>&5
33279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280 (exit $ac_status); }; } &&
33281 { ac_try='test -s conftest.$ac_objext'
33282 { (case "(($ac_try" in
33283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33284 *) ac_try_echo=$ac_try;;
33286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33287 (eval "$ac_try") 2>&5
33289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290 (exit $ac_status); }; }; then
33291 ac_cv_func_isnan_in_math_h=yes
33293 echo "$as_me: failed program was:" >&5
33294 sed 's/^/| /' conftest.$ac_ext >&5
33296 ac_cv_func_isnan_in_math_h=no
33299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33301 ac_cpp='$CPP $CPPFLAGS'
33302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33307 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33308 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33311 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33313 cat >>confdefs.h <<\_ACEOF
33314 #define HAVE_ISNAN_IN_MATH_H 1
33319 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33320 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33321 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33322 echo $ECHO_N "(cached) $ECHO_C" >&6
33325 ac_cpp='$CXXCPP $CPPFLAGS'
33326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33330 cat >conftest.$ac_ext <<_ACEOF
33333 cat confdefs.h >>conftest.$ac_ext
33334 cat >>conftest.$ac_ext <<_ACEOF
33335 /* end confdefs.h. */
33345 rm -f conftest.$ac_objext
33346 if { (ac_try="$ac_compile"
33347 case "(($ac_try" in
33348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33349 *) ac_try_echo=$ac_try;;
33351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33352 (eval "$ac_compile") 2>conftest.er1
33354 grep -v '^ *+' conftest.er1 >conftest.err
33356 cat conftest.err >&5
33357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33358 (exit $ac_status); } &&
33359 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33360 { (case "(($ac_try" in
33361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33362 *) ac_try_echo=$ac_try;;
33364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33365 (eval "$ac_try") 2>&5
33367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33368 (exit $ac_status); }; } &&
33369 { ac_try='test -s conftest.$ac_objext'
33370 { (case "(($ac_try" in
33371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33372 *) ac_try_echo=$ac_try;;
33374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33375 (eval "$ac_try") 2>&5
33377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33378 (exit $ac_status); }; }; then
33379 ac_cv_func_isnan_in_cmath=yes
33381 echo "$as_me: failed program was:" >&5
33382 sed 's/^/| /' conftest.$ac_ext >&5
33384 ac_cv_func_isnan_in_cmath=no
33387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33389 ac_cpp='$CPP $CPPFLAGS'
33390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33395 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33396 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33398 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33400 cat >>confdefs.h <<\_ACEOF
33401 #define HAVE_ISNAN_IN_CMATH 1
33406 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33407 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33408 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33409 echo $ECHO_N "(cached) $ECHO_C" >&6
33412 ac_cpp='$CXXCPP $CPPFLAGS'
33413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33417 cat >conftest.$ac_ext <<_ACEOF
33420 cat confdefs.h >>conftest.$ac_ext
33421 cat >>conftest.$ac_ext <<_ACEOF
33422 /* end confdefs.h. */
33427 float f; std::isnan(f);
33432 rm -f conftest.$ac_objext
33433 if { (ac_try="$ac_compile"
33434 case "(($ac_try" in
33435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33436 *) ac_try_echo=$ac_try;;
33438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33439 (eval "$ac_compile") 2>conftest.er1
33441 grep -v '^ *+' conftest.er1 >conftest.err
33443 cat conftest.err >&5
33444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33445 (exit $ac_status); } &&
33446 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33447 { (case "(($ac_try" in
33448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33449 *) ac_try_echo=$ac_try;;
33451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33452 (eval "$ac_try") 2>&5
33454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33455 (exit $ac_status); }; } &&
33456 { ac_try='test -s conftest.$ac_objext'
33457 { (case "(($ac_try" in
33458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33459 *) ac_try_echo=$ac_try;;
33461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33462 (eval "$ac_try") 2>&5
33464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33465 (exit $ac_status); }; }; then
33466 ac_cv_func_std_isnan_in_cmath=yes
33468 echo "$as_me: failed program was:" >&5
33469 sed 's/^/| /' conftest.$ac_ext >&5
33471 ac_cv_func_std_isnan_in_cmath=no
33474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33476 ac_cpp='$CPP $CPPFLAGS'
33477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33482 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33483 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33485 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33487 cat >>confdefs.h <<\_ACEOF
33488 #define HAVE_STD_ISNAN_IN_CMATH 1
33494 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33495 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33496 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33497 echo $ECHO_N "(cached) $ECHO_C" >&6
33500 ac_cpp='$CXXCPP $CPPFLAGS'
33501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33505 cat >conftest.$ac_ext <<_ACEOF
33508 cat confdefs.h >>conftest.$ac_ext
33509 cat >>conftest.$ac_ext <<_ACEOF
33510 /* end confdefs.h. */
33520 rm -f conftest.$ac_objext
33521 if { (ac_try="$ac_compile"
33522 case "(($ac_try" in
33523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33524 *) ac_try_echo=$ac_try;;
33526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33527 (eval "$ac_compile") 2>conftest.er1
33529 grep -v '^ *+' conftest.er1 >conftest.err
33531 cat conftest.err >&5
33532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33533 (exit $ac_status); } &&
33534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33535 { (case "(($ac_try" in
33536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33537 *) ac_try_echo=$ac_try;;
33539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33540 (eval "$ac_try") 2>&5
33542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33543 (exit $ac_status); }; } &&
33544 { ac_try='test -s conftest.$ac_objext'
33545 { (case "(($ac_try" in
33546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33547 *) ac_try_echo=$ac_try;;
33549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33550 (eval "$ac_try") 2>&5
33552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33553 (exit $ac_status); }; }; then
33554 ac_cv_func_isinf_in_math_h=yes
33556 echo "$as_me: failed program was:" >&5
33557 sed 's/^/| /' conftest.$ac_ext >&5
33559 ac_cv_func_isinf_in_math_h=no
33562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33564 ac_cpp='$CPP $CPPFLAGS'
33565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33570 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33571 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33573 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33575 cat >>confdefs.h <<\_ACEOF
33576 #define HAVE_ISINF_IN_MATH_H 1
33581 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33582 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33583 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33584 echo $ECHO_N "(cached) $ECHO_C" >&6
33587 ac_cpp='$CXXCPP $CPPFLAGS'
33588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33592 cat >conftest.$ac_ext <<_ACEOF
33595 cat confdefs.h >>conftest.$ac_ext
33596 cat >>conftest.$ac_ext <<_ACEOF
33597 /* end confdefs.h. */
33607 rm -f conftest.$ac_objext
33608 if { (ac_try="$ac_compile"
33609 case "(($ac_try" in
33610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33611 *) ac_try_echo=$ac_try;;
33613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33614 (eval "$ac_compile") 2>conftest.er1
33616 grep -v '^ *+' conftest.er1 >conftest.err
33618 cat conftest.err >&5
33619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33620 (exit $ac_status); } &&
33621 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33622 { (case "(($ac_try" in
33623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33624 *) ac_try_echo=$ac_try;;
33626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33627 (eval "$ac_try") 2>&5
33629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33630 (exit $ac_status); }; } &&
33631 { ac_try='test -s conftest.$ac_objext'
33632 { (case "(($ac_try" in
33633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33634 *) ac_try_echo=$ac_try;;
33636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33637 (eval "$ac_try") 2>&5
33639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33640 (exit $ac_status); }; }; then
33641 ac_cv_func_isinf_in_cmath=yes
33643 echo "$as_me: failed program was:" >&5
33644 sed 's/^/| /' conftest.$ac_ext >&5
33646 ac_cv_func_isinf_in_cmath=no
33649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33651 ac_cpp='$CPP $CPPFLAGS'
33652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33657 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33658 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33660 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33662 cat >>confdefs.h <<\_ACEOF
33663 #define HAVE_ISINF_IN_CMATH 1
33668 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33669 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33670 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33671 echo $ECHO_N "(cached) $ECHO_C" >&6
33674 ac_cpp='$CXXCPP $CPPFLAGS'
33675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33679 cat >conftest.$ac_ext <<_ACEOF
33682 cat confdefs.h >>conftest.$ac_ext
33683 cat >>conftest.$ac_ext <<_ACEOF
33684 /* end confdefs.h. */
33689 float f; std::isinf(f)}
33694 rm -f conftest.$ac_objext
33695 if { (ac_try="$ac_compile"
33696 case "(($ac_try" in
33697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33698 *) ac_try_echo=$ac_try;;
33700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33701 (eval "$ac_compile") 2>conftest.er1
33703 grep -v '^ *+' conftest.er1 >conftest.err
33705 cat conftest.err >&5
33706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707 (exit $ac_status); } &&
33708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33709 { (case "(($ac_try" in
33710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33711 *) ac_try_echo=$ac_try;;
33713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33714 (eval "$ac_try") 2>&5
33716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33717 (exit $ac_status); }; } &&
33718 { ac_try='test -s conftest.$ac_objext'
33719 { (case "(($ac_try" in
33720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33721 *) ac_try_echo=$ac_try;;
33723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33724 (eval "$ac_try") 2>&5
33726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33727 (exit $ac_status); }; }; then
33728 ac_cv_func_std_isinf_in_cmath=yes
33730 echo "$as_me: failed program was:" >&5
33731 sed 's/^/| /' conftest.$ac_ext >&5
33733 ac_cv_func_std_isinf_in_cmath=no
33736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33738 ac_cpp='$CPP $CPPFLAGS'
33739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33744 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33745 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33747 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33749 cat >>confdefs.h <<\_ACEOF
33750 #define HAVE_STD_ISINF_IN_CMATH 1
33755 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33756 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33757 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33758 echo $ECHO_N "(cached) $ECHO_C" >&6
33761 ac_cpp='$CXXCPP $CPPFLAGS'
33762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33766 cat >conftest.$ac_ext <<_ACEOF
33769 cat confdefs.h >>conftest.$ac_ext
33770 cat >>conftest.$ac_ext <<_ACEOF
33771 /* end confdefs.h. */
33772 #include <ieeefp.h>
33776 float f; finite(f);
33781 rm -f conftest.$ac_objext
33782 if { (ac_try="$ac_compile"
33783 case "(($ac_try" in
33784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33785 *) ac_try_echo=$ac_try;;
33787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33788 (eval "$ac_compile") 2>conftest.er1
33790 grep -v '^ *+' conftest.er1 >conftest.err
33792 cat conftest.err >&5
33793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794 (exit $ac_status); } &&
33795 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33796 { (case "(($ac_try" in
33797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33798 *) ac_try_echo=$ac_try;;
33800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33801 (eval "$ac_try") 2>&5
33803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33804 (exit $ac_status); }; } &&
33805 { ac_try='test -s conftest.$ac_objext'
33806 { (case "(($ac_try" in
33807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33808 *) ac_try_echo=$ac_try;;
33810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33811 (eval "$ac_try") 2>&5
33813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33814 (exit $ac_status); }; }; then
33815 ac_cv_func_finite_in_ieeefp_h=yes
33817 echo "$as_me: failed program was:" >&5
33818 sed 's/^/| /' conftest.$ac_ext >&5
33820 ac_cv_func_finite_in_ieeefp_h=no
33823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33825 ac_cpp='$CPP $CPPFLAGS'
33826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33831 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33832 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33834 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33836 cat >>confdefs.h <<\_ACEOF
33837 #define HAVE_FINITE_IN_IEEEFP_H 1
33844 if test "$llvm_cv_platform_type" = "Unix" ; then
33847 for ac_header in stdlib.h unistd.h
33849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33851 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33854 echo $ECHO_N "(cached) $ECHO_C" >&6
33856 ac_res=`eval echo '${'$as_ac_Header'}'`
33857 { echo "$as_me:$LINENO: result: $ac_res" >&5
33858 echo "${ECHO_T}$ac_res" >&6; }
33860 # Is the header compilable?
33861 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33863 cat >conftest.$ac_ext <<_ACEOF
33866 cat confdefs.h >>conftest.$ac_ext
33867 cat >>conftest.$ac_ext <<_ACEOF
33868 /* end confdefs.h. */
33869 $ac_includes_default
33870 #include <$ac_header>
33872 rm -f conftest.$ac_objext
33873 if { (ac_try="$ac_compile"
33874 case "(($ac_try" in
33875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33876 *) ac_try_echo=$ac_try;;
33878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33879 (eval "$ac_compile") 2>conftest.er1
33881 grep -v '^ *+' conftest.er1 >conftest.err
33883 cat conftest.err >&5
33884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33885 (exit $ac_status); } &&
33886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33887 { (case "(($ac_try" in
33888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33889 *) ac_try_echo=$ac_try;;
33891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33892 (eval "$ac_try") 2>&5
33894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895 (exit $ac_status); }; } &&
33896 { ac_try='test -s conftest.$ac_objext'
33897 { (case "(($ac_try" in
33898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33899 *) ac_try_echo=$ac_try;;
33901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33902 (eval "$ac_try") 2>&5
33904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33905 (exit $ac_status); }; }; then
33906 ac_header_compiler=yes
33908 echo "$as_me: failed program was:" >&5
33909 sed 's/^/| /' conftest.$ac_ext >&5
33911 ac_header_compiler=no
33914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33916 echo "${ECHO_T}$ac_header_compiler" >&6; }
33918 # Is the header present?
33919 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33921 cat >conftest.$ac_ext <<_ACEOF
33924 cat confdefs.h >>conftest.$ac_ext
33925 cat >>conftest.$ac_ext <<_ACEOF
33926 /* end confdefs.h. */
33927 #include <$ac_header>
33929 if { (ac_try="$ac_cpp conftest.$ac_ext"
33930 case "(($ac_try" in
33931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33932 *) ac_try_echo=$ac_try;;
33934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33937 grep -v '^ *+' conftest.er1 >conftest.err
33939 cat conftest.err >&5
33940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941 (exit $ac_status); } >/dev/null; then
33942 if test -s conftest.err; then
33943 ac_cpp_err=$ac_c_preproc_warn_flag
33944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33951 if test -z "$ac_cpp_err"; then
33952 ac_header_preproc=yes
33954 echo "$as_me: failed program was:" >&5
33955 sed 's/^/| /' conftest.$ac_ext >&5
33957 ac_header_preproc=no
33960 rm -f conftest.err conftest.$ac_ext
33961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33962 echo "${ECHO_T}$ac_header_preproc" >&6; }
33964 # So? What about this header?
33965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33967 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33968 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33970 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33971 ac_header_preproc=yes
33974 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33976 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33977 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33978 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33979 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33980 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33981 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33984 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33985 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33987 ## ----------------------------------- ##
33988 ## Report this to llvmbugs@cs.uiuc.edu ##
33989 ## ----------------------------------- ##
33991 ) | sed "s/^/$as_me: WARNING: /" >&2
33994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33997 echo $ECHO_N "(cached) $ECHO_C" >&6
33999 eval "$as_ac_Header=\$ac_header_preproc"
34001 ac_res=`eval echo '${'$as_ac_Header'}'`
34002 { echo "$as_me:$LINENO: result: $ac_res" >&5
34003 echo "${ECHO_T}$ac_res" >&6; }
34006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34007 cat >>confdefs.h <<_ACEOF
34008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34016 for ac_func in getpagesize
34018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34022 echo $ECHO_N "(cached) $ECHO_C" >&6
34024 cat >conftest.$ac_ext <<_ACEOF
34027 cat confdefs.h >>conftest.$ac_ext
34028 cat >>conftest.$ac_ext <<_ACEOF
34029 /* end confdefs.h. */
34030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34032 #define $ac_func innocuous_$ac_func
34034 /* System header to define __stub macros and hopefully few prototypes,
34035 which can conflict with char $ac_func (); below.
34036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34037 <limits.h> exists even on freestanding compilers. */
34040 # include <limits.h>
34042 # include <assert.h>
34047 /* Override any GCC internal prototype to avoid an error.
34048 Use char because int might match the return type of a GCC
34049 builtin and then its argument prototype would still apply. */
34054 /* The GNU C library defines this for functions which it implements
34055 to always fail with ENOSYS. Some functions are actually named
34056 something starting with __ and the normal name is an alias. */
34057 #if defined __stub_$ac_func || defined __stub___$ac_func
34064 return $ac_func ();
34069 rm -f conftest.$ac_objext conftest$ac_exeext
34070 if { (ac_try="$ac_link"
34071 case "(($ac_try" in
34072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34073 *) ac_try_echo=$ac_try;;
34075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34076 (eval "$ac_link") 2>conftest.er1
34078 grep -v '^ *+' conftest.er1 >conftest.err
34080 cat conftest.err >&5
34081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34082 (exit $ac_status); } &&
34083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34084 { (case "(($ac_try" in
34085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34086 *) ac_try_echo=$ac_try;;
34088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34089 (eval "$ac_try") 2>&5
34091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34092 (exit $ac_status); }; } &&
34093 { ac_try='test -s conftest$ac_exeext'
34094 { (case "(($ac_try" in
34095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34096 *) ac_try_echo=$ac_try;;
34098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34099 (eval "$ac_try") 2>&5
34101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34102 (exit $ac_status); }; }; then
34103 eval "$as_ac_var=yes"
34105 echo "$as_me: failed program was:" >&5
34106 sed 's/^/| /' conftest.$ac_ext >&5
34108 eval "$as_ac_var=no"
34111 rm -f core conftest.err conftest.$ac_objext \
34112 conftest$ac_exeext conftest.$ac_ext
34114 ac_res=`eval echo '${'$as_ac_var'}'`
34115 { echo "$as_me:$LINENO: result: $ac_res" >&5
34116 echo "${ECHO_T}$ac_res" >&6; }
34117 if test `eval echo '${'$as_ac_var'}'` = yes; then
34118 cat >>confdefs.h <<_ACEOF
34119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34125 { echo "$as_me:$LINENO: checking for working mmap" >&5
34126 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34127 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34128 echo $ECHO_N "(cached) $ECHO_C" >&6
34130 if test "$cross_compiling" = yes; then
34131 ac_cv_func_mmap_fixed_mapped=no
34133 cat >conftest.$ac_ext <<_ACEOF
34136 cat confdefs.h >>conftest.$ac_ext
34137 cat >>conftest.$ac_ext <<_ACEOF
34138 /* end confdefs.h. */
34139 $ac_includes_default
34140 /* malloc might have been renamed as rpl_malloc. */
34143 /* Thanks to Mike Haertel and Jim Avera for this test.
34144 Here is a matrix of mmap possibilities:
34145 mmap private not fixed
34146 mmap private fixed at somewhere currently unmapped
34147 mmap private fixed at somewhere already mapped
34148 mmap shared not fixed
34149 mmap shared fixed at somewhere currently unmapped
34150 mmap shared fixed at somewhere already mapped
34151 For private mappings, we should verify that changes cannot be read()
34152 back from the file, nor mmap's back from the file at a different
34153 address. (There have been systems where private was not correctly
34154 implemented like the infamous i386 svr4.0, and systems where the
34155 VM page cache was not coherent with the file system buffer cache
34156 like early versions of FreeBSD and possibly contemporary NetBSD.)
34157 For shared mappings, we should conversely verify that changes get
34158 propagated back to all the places they're supposed to be.
34160 Grep wants private fixed already mapped.
34161 The main things grep needs to know about mmap are:
34162 * does it exist and is it safe to write into the mmap'd area
34163 * how to use it (BSD variants) */
34166 #include <sys/mman.h>
34168 #if !STDC_HEADERS && !HAVE_STDLIB_H
34172 /* This mess was copied from the GNU getpagesize.h. */
34173 #if !HAVE_GETPAGESIZE
34174 /* Assume that all systems that can run configure have sys/param.h. */
34175 # if !HAVE_SYS_PARAM_H
34176 # define HAVE_SYS_PARAM_H 1
34179 # ifdef _SC_PAGESIZE
34180 # define getpagesize() sysconf(_SC_PAGESIZE)
34181 # else /* no _SC_PAGESIZE */
34182 # if HAVE_SYS_PARAM_H
34183 # include <sys/param.h>
34184 # ifdef EXEC_PAGESIZE
34185 # define getpagesize() EXEC_PAGESIZE
34186 # else /* no EXEC_PAGESIZE */
34188 # define getpagesize() NBPG * CLSIZE
34191 # endif /* no CLSIZE */
34192 # else /* no NBPG */
34194 # define getpagesize() NBPC
34195 # else /* no NBPC */
34197 # define getpagesize() PAGESIZE
34198 # endif /* PAGESIZE */
34199 # endif /* no NBPC */
34200 # endif /* no NBPG */
34201 # endif /* no EXEC_PAGESIZE */
34202 # else /* no HAVE_SYS_PARAM_H */
34203 # define getpagesize() 8192 /* punt totally */
34204 # endif /* no HAVE_SYS_PARAM_H */
34205 # endif /* no _SC_PAGESIZE */
34207 #endif /* no HAVE_GETPAGESIZE */
34212 char *data, *data2, *data3;
34216 pagesize = getpagesize ();
34218 /* First, make a file with some known garbage in it. */
34219 data = (char *) malloc (pagesize);
34222 for (i = 0; i < pagesize; ++i)
34223 *(data + i) = rand ();
34225 fd = creat ("conftest.mmap", 0600);
34228 if (write (fd, data, pagesize) != pagesize)
34232 /* Next, try to mmap the file at a fixed address which already has
34233 something else allocated at it. If we can, also make sure that
34234 we see the same garbage. */
34235 fd = open ("conftest.mmap", O_RDWR);
34238 data2 = (char *) malloc (2 * pagesize);
34241 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34242 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34243 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34245 for (i = 0; i < pagesize; ++i)
34246 if (*(data + i) != *(data2 + i))
34249 /* Finally, make sure that changes to the mapped area do not
34250 percolate back to the file as seen by read(). (This is a bug on
34251 some variants of i386 svr4.0.) */
34252 for (i = 0; i < pagesize; ++i)
34253 *(data2 + i) = *(data2 + i) + 1;
34254 data3 = (char *) malloc (pagesize);
34257 if (read (fd, data3, pagesize) != pagesize)
34259 for (i = 0; i < pagesize; ++i)
34260 if (*(data + i) != *(data3 + i))
34266 rm -f conftest$ac_exeext
34267 if { (ac_try="$ac_link"
34268 case "(($ac_try" in
34269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34270 *) ac_try_echo=$ac_try;;
34272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34273 (eval "$ac_link") 2>&5
34275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34277 { (case "(($ac_try" in
34278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34279 *) ac_try_echo=$ac_try;;
34281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34282 (eval "$ac_try") 2>&5
34284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34285 (exit $ac_status); }; }; then
34286 ac_cv_func_mmap_fixed_mapped=yes
34288 echo "$as_me: program exited with status $ac_status" >&5
34289 echo "$as_me: failed program was:" >&5
34290 sed 's/^/| /' conftest.$ac_ext >&5
34292 ( exit $ac_status )
34293 ac_cv_func_mmap_fixed_mapped=no
34295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34300 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34301 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34302 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34304 cat >>confdefs.h <<\_ACEOF
34305 #define HAVE_MMAP 1
34309 rm -f conftest.mmap
34311 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34312 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34313 if test "${ac_cv_func_mmap_file+set}" = set; then
34314 echo $ECHO_N "(cached) $ECHO_C" >&6
34317 ac_cpp='$CPP $CPPFLAGS'
34318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34322 if test "$cross_compiling" = yes; then
34323 ac_cv_func_mmap_file=no
34325 cat >conftest.$ac_ext <<_ACEOF
34329 cat confdefs.h >>conftest.$ac_ext
34330 cat >>conftest.$ac_ext <<_ACEOF
34331 /* end confdefs.h. */
34333 #include <sys/types.h>
34334 #include <sys/mman.h>
34342 fd = creat ("foo",0777);
34343 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34345 return (fd != (int) MAP_FAILED);
34350 rm -f conftest$ac_exeext
34351 if { (ac_try="$ac_link"
34352 case "(($ac_try" in
34353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34354 *) ac_try_echo=$ac_try;;
34356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34357 (eval "$ac_link") 2>&5
34359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34361 { (case "(($ac_try" in
34362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34363 *) ac_try_echo=$ac_try;;
34365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34366 (eval "$ac_try") 2>&5
34368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34369 (exit $ac_status); }; }; then
34370 ac_cv_func_mmap_file=yes
34372 echo "$as_me: program exited with status $ac_status" >&5
34373 echo "$as_me: failed program was:" >&5
34374 sed 's/^/| /' conftest.$ac_ext >&5
34376 ( exit $ac_status )
34377 ac_cv_func_mmap_file=no
34379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34384 ac_cpp='$CPP $CPPFLAGS'
34385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34391 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34392 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34393 if test "$ac_cv_func_mmap_file" = yes; then
34395 cat >>confdefs.h <<\_ACEOF
34396 #define HAVE_MMAP_FILE
34403 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34404 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34405 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34406 echo $ECHO_N "(cached) $ECHO_C" >&6
34408 if test "$llvm_cv_os_type" = "Interix" ; then
34409 ac_cv_need_dev_zero_for_mmap=yes
34411 ac_cv_need_dev_zero_for_mmap=no
34415 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34416 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34417 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34419 cat >>confdefs.h <<\_ACEOF
34420 #define NEED_DEV_ZERO_FOR_MMAP 1
34425 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34427 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34428 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34430 if test "$ac_cv_func_mmap_file" = "no"
34432 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34433 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34439 for ac_func in __dso_handle
34441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34442 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34444 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34445 echo $ECHO_N "(cached) $ECHO_C" >&6
34447 cat >conftest.$ac_ext <<_ACEOF
34450 cat confdefs.h >>conftest.$ac_ext
34451 cat >>conftest.$ac_ext <<_ACEOF
34452 /* end confdefs.h. */
34453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34455 #define $ac_func innocuous_$ac_func
34457 /* System header to define __stub macros and hopefully few prototypes,
34458 which can conflict with char $ac_func (); below.
34459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34460 <limits.h> exists even on freestanding compilers. */
34463 # include <limits.h>
34465 # include <assert.h>
34470 /* Override any GCC internal prototype to avoid an error.
34471 Use char because int might match the return type of a GCC
34472 builtin and then its argument prototype would still apply. */
34477 /* The GNU C library defines this for functions which it implements
34478 to always fail with ENOSYS. Some functions are actually named
34479 something starting with __ and the normal name is an alias. */
34480 #if defined __stub_$ac_func || defined __stub___$ac_func
34487 return $ac_func ();
34492 rm -f conftest.$ac_objext conftest$ac_exeext
34493 if { (ac_try="$ac_link"
34494 case "(($ac_try" in
34495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34496 *) ac_try_echo=$ac_try;;
34498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34499 (eval "$ac_link") 2>conftest.er1
34501 grep -v '^ *+' conftest.er1 >conftest.err
34503 cat conftest.err >&5
34504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34505 (exit $ac_status); } &&
34506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34507 { (case "(($ac_try" in
34508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34509 *) ac_try_echo=$ac_try;;
34511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34512 (eval "$ac_try") 2>&5
34514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34515 (exit $ac_status); }; } &&
34516 { ac_try='test -s conftest$ac_exeext'
34517 { (case "(($ac_try" in
34518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34519 *) ac_try_echo=$ac_try;;
34521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34522 (eval "$ac_try") 2>&5
34524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34525 (exit $ac_status); }; }; then
34526 eval "$as_ac_var=yes"
34528 echo "$as_me: failed program was:" >&5
34529 sed 's/^/| /' conftest.$ac_ext >&5
34531 eval "$as_ac_var=no"
34534 rm -f core conftest.err conftest.$ac_objext \
34535 conftest$ac_exeext conftest.$ac_ext
34537 ac_res=`eval echo '${'$as_ac_var'}'`
34538 { echo "$as_me:$LINENO: result: $ac_res" >&5
34539 echo "${ECHO_T}$ac_res" >&6; }
34540 if test `eval echo '${'$as_ac_var'}'` = yes; then
34541 cat >>confdefs.h <<_ACEOF
34542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34549 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34550 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34551 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34552 echo $ECHO_N "(cached) $ECHO_C" >&6
34554 llvm_cv_llvmgcc_sanity="no"
34555 if test -x "$LLVMGCC" ; then
34556 cp /dev/null conftest.c
34557 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34558 grep 'target datalayout =' > /dev/null 2>&1
34559 if test $? -eq 0 ; then
34560 llvm_cv_llvmgcc_sanity="yes"
34565 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34566 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34568 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34569 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34570 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34571 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34572 LLVMCC1=$llvmcc1path
34574 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34575 LLVMCC1PLUS=$llvmcc1pluspath
34577 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34578 LLVMGCCDIR=$llvmgccdir
34580 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34581 LLVMGCCLIBEXEC=$llvmgcclibexec
34583 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34584 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34585 LLVMGCC_VERSION=$llvmgccversion
34587 LLVMGCC_MAJVERS=$llvmgccmajvers
34589 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34590 LLVMGCC_LANGS=$llvmgcclangs
34592 { echo "$as_me:$LINENO: result: ok" >&5
34593 echo "${ECHO_T}ok" >&6; }
34596 SHLIBEXT=$libltdl_cv_shlibext
34599 # Translate the various configuration directories and other basic
34600 # information into substitutions that will end up in Makefile.config.in
34601 # that these configured values can be used by the makefiles
34602 if test "${prefix}" = "NONE" ; then
34603 prefix="/usr/local"
34605 eval LLVM_PREFIX="${prefix}";
34606 eval LLVM_BINDIR="${prefix}/bin";
34607 eval LLVM_LIBDIR="${prefix}/lib";
34608 eval LLVM_DATADIR="${prefix}/share/llvm";
34609 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34610 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34611 eval LLVM_INCLUDEDIR="${prefix}/include";
34612 eval LLVM_INFODIR="${prefix}/info";
34613 eval LLVM_MANDIR="${prefix}/man";
34614 LLVM_CONFIGTIME=`date`
34626 # Place the various directores into the config.h file as #defines so that we
34627 # can know about the installation paths within LLVM.
34629 cat >>confdefs.h <<_ACEOF
34630 #define LLVM_PREFIX "$LLVM_PREFIX"
34634 cat >>confdefs.h <<_ACEOF
34635 #define LLVM_BINDIR "$LLVM_BINDIR"
34639 cat >>confdefs.h <<_ACEOF
34640 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34644 cat >>confdefs.h <<_ACEOF
34645 #define LLVM_DATADIR "$LLVM_DATADIR"
34649 cat >>confdefs.h <<_ACEOF
34650 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34654 cat >>confdefs.h <<_ACEOF
34655 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34659 cat >>confdefs.h <<_ACEOF
34660 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34664 cat >>confdefs.h <<_ACEOF
34665 #define LLVM_INFODIR "$LLVM_INFODIR"
34669 cat >>confdefs.h <<_ACEOF
34670 #define LLVM_MANDIR "$LLVM_MANDIR"
34674 cat >>confdefs.h <<_ACEOF
34675 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34679 cat >>confdefs.h <<_ACEOF
34680 #define LLVM_HOSTTRIPLE "$host"
34684 # Determine which bindings to build.
34685 if test "$BINDINGS_TO_BUILD" = auto ; then
34686 BINDINGS_TO_BUILD=""
34687 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34688 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34691 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34694 # This isn't really configurey, but it avoids having to repeat the list in
34699 # Do any work necessary to ensure that bindings have what they need.
34700 binding_prereqs_failed=0
34701 for a_binding in $BINDINGS_TO_BUILD ; do
34702 case "$a_binding" in
34704 if test "x$OCAMLC" = x ; then
34705 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34706 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34707 binding_prereqs_failed=1
34709 if test "x$OCAMLDEP" = x ; then
34710 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34711 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34712 binding_prereqs_failed=1
34714 if test "x$OCAMLOPT" = x ; then
34715 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34716 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34718 if test "x$with_ocaml_libdir" != xauto ; then
34719 OCAML_LIBDIR=$with_ocaml_libdir
34722 ocaml_stdlib="`"$OCAMLC" -where`"
34723 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34725 # ocaml stdlib is beneath our prefix; use stdlib
34726 OCAML_LIBDIR=$ocaml_stdlib
34729 # ocaml stdlib is outside our prefix; use libdir/ocaml
34730 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34737 if test "$binding_prereqs_failed" = 1 ; then
34738 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34739 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34740 { (exit 1); exit 1; }; }
34743 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34744 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34745 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34746 echo $ECHO_N "(cached) $ECHO_C" >&6
34749 ac_cpp='$CXXCPP $CPPFLAGS'
34750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34754 oldcxxflags="$CXXFLAGS"
34755 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34756 cat >conftest.$ac_ext <<_ACEOF
34759 cat confdefs.h >>conftest.$ac_ext
34760 cat >>conftest.$ac_ext <<_ACEOF
34761 /* end confdefs.h. */
34771 rm -f conftest.$ac_objext
34772 if { (ac_try="$ac_compile"
34773 case "(($ac_try" in
34774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34775 *) ac_try_echo=$ac_try;;
34777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34778 (eval "$ac_compile") 2>conftest.er1
34780 grep -v '^ *+' conftest.er1 >conftest.err
34782 cat conftest.err >&5
34783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34784 (exit $ac_status); } &&
34785 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34786 { (case "(($ac_try" in
34787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34788 *) ac_try_echo=$ac_try;;
34790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34791 (eval "$ac_try") 2>&5
34793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34794 (exit $ac_status); }; } &&
34795 { ac_try='test -s conftest.$ac_objext'
34796 { (case "(($ac_try" in
34797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34798 *) ac_try_echo=$ac_try;;
34800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34801 (eval "$ac_try") 2>&5
34803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34804 (exit $ac_status); }; }; then
34805 llvm_cv_cxx_visibility_inlines_hidden=yes
34807 echo "$as_me: failed program was:" >&5
34808 sed 's/^/| /' conftest.$ac_ext >&5
34810 llvm_cv_cxx_visibility_inlines_hidden=no
34813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34814 CXXFLAGS="$oldcxxflags"
34816 ac_cpp='$CPP $CPPFLAGS'
34817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34823 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34824 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34825 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34826 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34829 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34835 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34837 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34839 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
34841 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
34843 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34846 ac_config_files="$ac_config_files Makefile.config"
34849 ac_config_files="$ac_config_files llvm.spec"
34852 ac_config_files="$ac_config_files docs/doxygen.cfg"
34855 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34858 ac_config_commands="$ac_config_commands setup"
34860 ac_config_commands="$ac_config_commands Makefile"
34863 ac_config_commands="$ac_config_commands Makefile.common"
34866 ac_config_commands="$ac_config_commands examples/Makefile"
34869 ac_config_commands="$ac_config_commands lib/Makefile"
34872 ac_config_commands="$ac_config_commands runtime/Makefile"
34875 ac_config_commands="$ac_config_commands test/Makefile"
34878 ac_config_commands="$ac_config_commands test/Makefile.tests"
34881 ac_config_commands="$ac_config_commands unittests/Makefile"
34884 ac_config_commands="$ac_config_commands tools/Makefile"
34887 ac_config_commands="$ac_config_commands utils/Makefile"
34890 ac_config_commands="$ac_config_commands projects/Makefile"
34893 ac_config_commands="$ac_config_commands bindings/Makefile"
34896 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34900 cat >confcache <<\_ACEOF
34901 # This file is a shell script that caches the results of configure
34902 # tests run on this system so they can be shared between configure
34903 # scripts and configure runs, see configure's option --config-cache.
34904 # It is not useful on other systems. If it contains results you don't
34905 # want to keep, you may remove or edit it.
34907 # config.status only pays attention to the cache file if you give it
34908 # the --recheck option to rerun configure.
34910 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34911 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34912 # following values.
34916 # The following way of writing the cache mishandles newlines in values,
34917 # but we know of no workaround that is simple, portable, and efficient.
34918 # So, we kill variables containing newlines.
34919 # Ultrix sh set writes to stderr and can't be redirected directly,
34920 # and sets the high bit in the cache file unless we assign to the vars.
34922 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34923 eval ac_val=\$$ac_var
34927 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34928 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34931 _ | IFS | as_nl) ;; #(
34932 *) $as_unset $ac_var ;;
34938 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34939 *${as_nl}ac_space=\ *)
34940 # `set' does not quote correctly, so add quotes (double-quote
34941 # substitution turns \\\\ into \\, and sed turns \\ into \).
34944 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34947 # `set' quotes correctly as required by POSIX, so do not add quotes.
34948 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34957 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34959 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34961 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34962 if test -w "$cache_file"; then
34963 test "x$cache_file" != "x/dev/null" &&
34964 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34965 echo "$as_me: updating cache $cache_file" >&6;}
34966 cat confcache >$cache_file
34968 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34969 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34974 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34975 # Let make expand exec_prefix.
34976 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34978 DEFS=-DHAVE_CONFIG_H
34982 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34983 # 1. Remove the extension, and $U if already installed.
34984 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34985 ac_i=`echo "$ac_i" | sed "$ac_script"`
34986 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34987 # will be set to the directory where LIBOBJS objects are built.
34988 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34989 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34991 LIBOBJS=$ac_libobjs
34993 LTLIBOBJS=$ac_ltlibobjs
34996 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34997 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34998 Usually this means the macro was only invoked conditionally." >&5
34999 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35000 Usually this means the macro was only invoked conditionally." >&2;}
35001 { (exit 1); exit 1; }; }
35003 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35004 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35005 Usually this means the macro was only invoked conditionally." >&5
35006 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35007 Usually this means the macro was only invoked conditionally." >&2;}
35008 { (exit 1); exit 1; }; }
35011 : ${CONFIG_STATUS=./config.status}
35012 ac_clean_files_save=$ac_clean_files
35013 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35014 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35015 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35016 cat >$CONFIG_STATUS <<_ACEOF
35018 # Generated by $as_me.
35019 # Run this file to recreate the current configuration.
35020 # Compiler output produced by configure, useful for debugging
35021 # configure, is in config.log if it exists.
35024 ac_cs_recheck=false
35026 SHELL=\${CONFIG_SHELL-$SHELL}
35029 cat >>$CONFIG_STATUS <<\_ACEOF
35030 ## --------------------- ##
35031 ## M4sh Initialization. ##
35032 ## --------------------- ##
35034 # Be Bourne compatible
35035 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35038 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35039 # is contrary to our usage. Disable this feature.
35040 alias -g '${1+"$@"}'='"$@"'
35041 setopt NO_GLOB_SUBST
35043 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35045 BIN_SH=xpg4; export BIN_SH # for Tru64
35046 DUALCASE=1; export DUALCASE # for MKS sh
35050 # Avoid depending upon Character Ranges.
35051 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35052 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35053 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35054 as_cr_digits='0123456789'
35055 as_cr_alnum=$as_cr_Letters$as_cr_digits
35057 # The user is always right.
35058 if test "${PATH_SEPARATOR+set}" != set; then
35059 echo "#! /bin/sh" >conf$$.sh
35060 echo "exit 0" >>conf$$.sh
35062 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35070 # Support unset when possible.
35071 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35079 # We need space, tab and new line, in precisely that order. Quoting is
35080 # there to prevent editors from complaining about space-tab.
35081 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35082 # splitting by setting IFS to empty value.)
35087 # Find who we are. Look in the path if we contain no directory separator.
35089 *[\\/]* ) as_myself=$0 ;;
35090 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35091 for as_dir in $PATH
35094 test -z "$as_dir" && as_dir=.
35095 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35101 # We did not find ourselves, most probably we were run as `sh COMMAND'
35102 # in which case we are not to be found in the path.
35103 if test "x$as_myself" = x; then
35106 if test ! -f "$as_myself"; then
35107 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35108 { (exit 1); exit 1; }
35111 # Work around bugs in pre-3.0 UWIN ksh.
35112 for as_var in ENV MAIL MAILPATH
35113 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35121 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35122 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35123 LC_TELEPHONE LC_TIME
35125 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35126 eval $as_var=C; export $as_var
35128 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35132 # Required to use basename.
35133 if expr a : '\(a\)' >/dev/null 2>&1 &&
35134 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35140 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35141 as_basename=basename
35147 # Name of the executable.
35148 as_me=`$as_basename -- "$0" ||
35149 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35150 X"$0" : 'X\(//\)$' \| \
35151 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35153 sed '/^.*\/\([^/][^/]*\)\/*$/{
35172 as_lineno_1=$LINENO
35173 as_lineno_2=$LINENO
35174 test "x$as_lineno_1" != "x$as_lineno_2" &&
35175 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35177 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35178 # uniformly replaced by the line number. The first 'sed' inserts a
35179 # line-number line after each line using $LINENO; the second 'sed'
35180 # does the real work. The second script uses 'N' to pair each
35181 # line-number line with the line containing $LINENO, and appends
35182 # trailing '-' during substitution so that $LINENO is not a special
35183 # case at line end.
35184 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35185 # scripts with optimization help from Paolo Bonzini. Blame Lee
35186 # E. McMahon (1931-1989) for sed's syntax. :-)
35198 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35201 ' >$as_me.lineno &&
35202 chmod +x "$as_me.lineno" ||
35203 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35204 { (exit 1); exit 1; }; }
35206 # Don't try to exec as it changes $[0], causing all sort of problems
35207 # (the dirname of $[0] is not the place where we might find the
35208 # original and so on. Autoconf is especially sensitive to this).
35209 . "./$as_me.lineno"
35210 # Exit status is that of the last command.
35215 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35221 ECHO_C= ECHO_N= ECHO_T=
35222 case `echo -n x` in
35224 case `echo 'x\c'` in
35225 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35232 if expr a : '\(a\)' >/dev/null 2>&1 &&
35233 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35239 rm -f conf$$ conf$$.exe conf$$.file
35240 if test -d conf$$.dir; then
35241 rm -f conf$$.dir/conf$$.file
35247 if ln -s conf$$.file conf$$ 2>/dev/null; then
35249 # ... but there are two gotchas:
35250 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35251 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35252 # In both cases, we have to default to `cp -p'.
35253 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35255 elif ln conf$$.file conf$$ 2>/dev/null; then
35260 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35261 rmdir conf$$.dir 2>/dev/null
35263 if mkdir -p . 2>/dev/null; then
35266 test -d ./-p && rmdir ./-p
35270 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
35271 # systems may use methods other than mode bits to determine executability.
35272 cat >conf$$.file <<_ASEOF
35276 chmod +x conf$$.file
35277 if test -x conf$$.file >/dev/null 2>&1; then
35278 as_executable_p="test -x"
35284 # Sed expression to map a string onto a valid CPP name.
35285 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35287 # Sed expression to map a string onto a valid variable name.
35288 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35293 # Save the log message, to keep $[0] and so on meaningful, and to
35294 # report actual input values of CONFIG_FILES etc. instead of their
35295 # values after options handling.
35297 This file was extended by llvm $as_me 2.6svn, which was
35298 generated by GNU Autoconf 2.60. Invocation command line was
35300 CONFIG_FILES = $CONFIG_FILES
35301 CONFIG_HEADERS = $CONFIG_HEADERS
35302 CONFIG_LINKS = $CONFIG_LINKS
35303 CONFIG_COMMANDS = $CONFIG_COMMANDS
35306 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35311 cat >>$CONFIG_STATUS <<_ACEOF
35312 # Files that config.status was made for.
35313 config_files="$ac_config_files"
35314 config_headers="$ac_config_headers"
35315 config_commands="$ac_config_commands"
35319 cat >>$CONFIG_STATUS <<\_ACEOF
35321 \`$as_me' instantiates files from templates according to the
35322 current configuration.
35324 Usage: $0 [OPTIONS] [FILE]...
35326 -h, --help print this help, then exit
35327 -V, --version print version number, then exit
35328 -q, --quiet do not print progress messages
35329 -d, --debug don't remove temporary files
35330 --recheck update $as_me by reconfiguring in the same conditions
35331 --file=FILE[:TEMPLATE]
35332 instantiate the configuration file FILE
35333 --header=FILE[:TEMPLATE]
35334 instantiate the configuration header FILE
35336 Configuration files:
35339 Configuration headers:
35342 Configuration commands:
35345 Report bugs to <bug-autoconf@gnu.org>."
35348 cat >>$CONFIG_STATUS <<_ACEOF
35350 llvm config.status 2.6svn
35351 configured by $0, generated by GNU Autoconf 2.60,
35352 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35354 Copyright (C) 2006 Free Software Foundation, Inc.
35355 This config.status script is free software; the Free Software Foundation
35356 gives unlimited permission to copy, distribute and modify it."
35363 cat >>$CONFIG_STATUS <<\_ACEOF
35364 # If no file are specified by the user, then we need to provide default
35365 # value. By we need to know if files were specified by the user.
35371 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35372 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35383 # Handling of the options.
35384 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35386 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35387 echo "$ac_cs_version"; exit ;;
35388 --debug | --debu | --deb | --de | --d | -d )
35390 --file | --fil | --fi | --f )
35392 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35393 ac_need_defaults=false;;
35394 --header | --heade | --head | --hea )
35396 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35397 ac_need_defaults=false;;
35399 # Conflict between --help and --header
35400 { echo "$as_me: error: ambiguous option: $1
35401 Try \`$0 --help' for more information." >&2
35402 { (exit 1); exit 1; }; };;
35403 --help | --hel | -h )
35404 echo "$ac_cs_usage"; exit ;;
35405 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35406 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35409 # This is an error.
35410 -*) { echo "$as_me: error: unrecognized option: $1
35411 Try \`$0 --help' for more information." >&2
35412 { (exit 1); exit 1; }; } ;;
35414 *) ac_config_targets="$ac_config_targets $1"
35415 ac_need_defaults=false ;;
35421 ac_configure_extra_args=
35423 if $ac_cs_silent; then
35425 ac_configure_extra_args="$ac_configure_extra_args --silent"
35429 cat >>$CONFIG_STATUS <<_ACEOF
35430 if \$ac_cs_recheck; then
35431 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35432 CONFIG_SHELL=$SHELL
35433 export CONFIG_SHELL
35434 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35438 cat >>$CONFIG_STATUS <<\_ACEOF
35442 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35443 ## Running $as_me. ##
35449 cat >>$CONFIG_STATUS <<_ACEOF
35453 llvm_src="${srcdir}"
35457 cat >>$CONFIG_STATUS <<\_ACEOF
35459 # Handling of arguments.
35460 for ac_config_target in $ac_config_targets
35462 case $ac_config_target in
35463 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35464 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35465 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
35466 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
35467 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35468 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35469 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35470 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35471 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35472 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35473 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35474 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35475 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35476 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35477 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35478 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35479 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35480 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35481 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35482 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35483 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35484 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35485 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35487 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35488 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35489 { (exit 1); exit 1; }; };;
35494 # If the user did not use the arguments to specify the items to instantiate,
35495 # then the envvar interface is used. Set only those that are not.
35496 # We use the long form for the default assignment because of an extremely
35497 # bizarre bug on SunOS 4.1.3.
35498 if $ac_need_defaults; then
35499 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35500 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35501 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35504 # Have a temporary directory for convenience. Make it in the build tree
35505 # simply because there is no reason against having it here, and in addition,
35506 # creating and moving files from /tmp can sometimes cause problems.
35507 # Hook for its removal unless debugging.
35508 # Note that there is a small window in which the directory will not be cleaned:
35509 # after its creation but before its name has been assigned to `$tmp'.
35513 trap 'exit_status=$?
35514 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35516 trap '{ (exit 1); exit 1; }' 1 2 13 15
35518 # Create a (secure) tmp directory for tmp files.
35521 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35522 test -n "$tmp" && test -d "$tmp"
35525 tmp=./conf$$-$RANDOM
35526 (umask 077 && mkdir "$tmp")
35529 echo "$me: cannot create a temporary directory in ." >&2
35530 { (exit 1); exit 1; }
35534 # Set up the sed scripts for CONFIG_FILES section.
35537 # No need to generate the scripts if there are no CONFIG_FILES.
35538 # This happens for instance when ./config.status config.h
35539 if test -n "$CONFIG_FILES"; then
35546 for ac_last_try in false false false false false :; do
35547 cat >conf$$subs.sed <<_ACEOF
35548 SHELL!$SHELL$ac_delim
35549 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35550 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35551 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35552 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35553 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35554 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35555 exec_prefix!$exec_prefix$ac_delim
35556 prefix!$prefix$ac_delim
35557 program_transform_name!$program_transform_name$ac_delim
35558 bindir!$bindir$ac_delim
35559 sbindir!$sbindir$ac_delim
35560 libexecdir!$libexecdir$ac_delim
35561 datarootdir!$datarootdir$ac_delim
35562 datadir!$datadir$ac_delim
35563 sysconfdir!$sysconfdir$ac_delim
35564 sharedstatedir!$sharedstatedir$ac_delim
35565 localstatedir!$localstatedir$ac_delim
35566 includedir!$includedir$ac_delim
35567 oldincludedir!$oldincludedir$ac_delim
35568 docdir!$docdir$ac_delim
35569 infodir!$infodir$ac_delim
35570 htmldir!$htmldir$ac_delim
35571 dvidir!$dvidir$ac_delim
35572 pdfdir!$pdfdir$ac_delim
35573 psdir!$psdir$ac_delim
35574 libdir!$libdir$ac_delim
35575 localedir!$localedir$ac_delim
35576 mandir!$mandir$ac_delim
35577 DEFS!$DEFS$ac_delim
35578 ECHO_C!$ECHO_C$ac_delim
35579 ECHO_N!$ECHO_N$ac_delim
35580 ECHO_T!$ECHO_T$ac_delim
35581 LIBS!$LIBS$ac_delim
35582 build_alias!$build_alias$ac_delim
35583 host_alias!$host_alias$ac_delim
35584 target_alias!$target_alias$ac_delim
35585 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35586 subdirs!$subdirs$ac_delim
35587 build!$build$ac_delim
35588 build_cpu!$build_cpu$ac_delim
35589 build_vendor!$build_vendor$ac_delim
35590 build_os!$build_os$ac_delim
35591 host!$host$ac_delim
35592 host_cpu!$host_cpu$ac_delim
35593 host_vendor!$host_vendor$ac_delim
35594 host_os!$host_os$ac_delim
35595 target!$target$ac_delim
35596 target_cpu!$target_cpu$ac_delim
35597 target_vendor!$target_vendor$ac_delim
35598 target_os!$target_os$ac_delim
35600 LINKALL!$LINKALL$ac_delim
35601 NOLINKALL!$NOLINKALL$ac_delim
35602 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35603 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35604 ARCH!$ARCH$ac_delim
35605 ENDIAN!$ENDIAN$ac_delim
35607 CFLAGS!$CFLAGS$ac_delim
35608 LDFLAGS!$LDFLAGS$ac_delim
35609 CPPFLAGS!$CPPFLAGS$ac_delim
35610 ac_ct_CC!$ac_ct_CC$ac_delim
35611 EXEEXT!$EXEEXT$ac_delim
35612 OBJEXT!$OBJEXT$ac_delim
35614 GREP!$GREP$ac_delim
35615 EGREP!$EGREP$ac_delim
35616 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35617 BUILD_CC!$BUILD_CC$ac_delim
35618 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35619 BUILD_CXX!$BUILD_CXX$ac_delim
35620 CVSBUILD!$CVSBUILD$ac_delim
35621 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35622 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35623 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35624 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35625 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35627 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35628 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35629 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35630 ENABLE_PIC!$ENABLE_PIC$ac_delim
35631 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35632 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35633 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35634 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
35636 CXXFLAGS!$CXXFLAGS$ac_delim
35637 ac_ct_CXX!$ac_ct_CXX$ac_delim
35639 LEXLIB!$LEXLIB$ac_delim
35640 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35641 FLEX!$FLEX$ac_delim
35642 YACC!$YACC$ac_delim
35643 YFLAGS!$YFLAGS$ac_delim
35644 BISON!$BISON$ac_delim
35647 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35649 elif $ac_last_try; then
35650 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35651 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35652 { (exit 1); exit 1; }; }
35654 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35658 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35659 if test -n "$ac_eof"; then
35660 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35661 ac_eof=`expr $ac_eof + 1`
35664 cat >>$CONFIG_STATUS <<_ACEOF
35665 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35666 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35669 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35670 s/^/s,@/; s/!/@,|#_!!_#|/
35673 s/'"$ac_delim"'$/,g/; t
35675 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35676 ' >>$CONFIG_STATUS <conf$$subs.sed
35677 rm -f conf$$subs.sed
35678 cat >>$CONFIG_STATUS <<_ACEOF
35684 for ac_last_try in false false false false false :; do
35685 cat >conf$$subs.sed <<_ACEOF
35687 ifGNUmake!$ifGNUmake$ac_delim
35688 LN_S!$LN_S$ac_delim
35691 DATE!$DATE$ac_delim
35692 FIND!$FIND$ac_delim
35693 MKDIR!$MKDIR$ac_delim
35695 RANLIB!$RANLIB$ac_delim
35699 BINPWD!$BINPWD$ac_delim
35700 GRAPHVIZ!$GRAPHVIZ$ac_delim
35703 DOTTY!$DOTTY$ac_delim
35704 PERL!$PERL$ac_delim
35705 HAVE_PERL!$HAVE_PERL$ac_delim
35706 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35707 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35708 INSTALL_DATA!$INSTALL_DATA$ac_delim
35709 BZIP2!$BZIP2$ac_delim
35710 DOXYGEN!$DOXYGEN$ac_delim
35711 GROFF!$GROFF$ac_delim
35712 GZIP!$GZIP$ac_delim
35713 POD2HTML!$POD2HTML$ac_delim
35714 POD2MAN!$POD2MAN$ac_delim
35715 RUNTEST!$RUNTEST$ac_delim
35716 TCLSH!$TCLSH$ac_delim
35718 OCAMLC!$OCAMLC$ac_delim
35719 OCAMLOPT!$OCAMLOPT$ac_delim
35720 OCAMLDEP!$OCAMLDEP$ac_delim
35721 OCAMLDOC!$OCAMLDOC$ac_delim
35723 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35724 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35725 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35726 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35727 LIBADD_DL!$LIBADD_DL$ac_delim
35728 ECHO!$ECHO$ac_delim
35730 STRIP!$STRIP$ac_delim
35731 CXXCPP!$CXXCPP$ac_delim
35733 FFLAGS!$FFLAGS$ac_delim
35734 ac_ct_F77!$ac_ct_F77$ac_delim
35735 LIBTOOL!$LIBTOOL$ac_delim
35736 LLVMGCC!$LLVMGCC$ac_delim
35737 LLVMGXX!$LLVMGXX$ac_delim
35738 USE_UDIS86!$USE_UDIS86$ac_delim
35739 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35740 HAVE_FFI!$HAVE_FFI$ac_delim
35741 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35742 ALLOCA!$ALLOCA$ac_delim
35743 MMAP_FILE!$MMAP_FILE$ac_delim
35744 LLVMCC1!$LLVMCC1$ac_delim
35745 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35746 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35747 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35748 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35749 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35750 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35751 SHLIBEXT!$SHLIBEXT$ac_delim
35752 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35753 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35754 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35755 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35756 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35757 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35758 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35759 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35760 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35761 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35762 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35763 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35764 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35765 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35766 LIBOBJS!$LIBOBJS$ac_delim
35767 LTLIBOBJS!$LTLIBOBJS$ac_delim
35770 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
35772 elif $ac_last_try; then
35773 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35774 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35775 { (exit 1); exit 1; }; }
35777 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35781 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35782 if test -n "$ac_eof"; then
35783 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35784 ac_eof=`expr $ac_eof + 1`
35787 cat >>$CONFIG_STATUS <<_ACEOF
35788 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35789 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35792 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35793 s/^/s,@/; s/!/@,|#_!!_#|/
35796 s/'"$ac_delim"'$/,g/; t
35798 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35799 ' >>$CONFIG_STATUS <conf$$subs.sed
35800 rm -f conf$$subs.sed
35801 cat >>$CONFIG_STATUS <<_ACEOF
35808 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35809 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35810 # trailing colons and then remove the whole line if VPATH becomes empty
35811 # (actually we leave an empty line to preserve line numbers).
35812 if test "x$srcdir" = x.; then
35813 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35814 s/:*\$(srcdir):*/:/
35815 s/:*\${srcdir}:*/:/
35817 s/^\([^=]*=[ ]*\):*/\1/
35823 cat >>$CONFIG_STATUS <<\_ACEOF
35824 fi # test -n "$CONFIG_FILES"
35827 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35830 :[FHLC]) ac_mode=$ac_tag; continue;;
35832 case $ac_mode$ac_tag in
35834 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35835 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35836 { (exit 1); exit 1; }; };;
35837 :[FH]-) ac_tag=-:-;;
35838 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35855 -) ac_f="$tmp/stdin";;
35856 *) # Look for the file first in the build tree, then in the source tree
35857 # (if the path is not absolute). The absolute path cannot be DOS-style,
35858 # because $ac_f cannot contain `:'.
35862 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35864 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35865 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35866 { (exit 1); exit 1; }; };;
35868 ac_file_inputs="$ac_file_inputs $ac_f"
35871 # Let's still pretend it is `configure' which instantiates (i.e., don't
35872 # use $as_me), people would be surprised to read:
35873 # /* config.h. Generated by config.status. */
35874 configure_input="Generated from "`IFS=:
35875 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35876 if test x"$ac_file" != x-; then
35877 configure_input="$ac_file. $configure_input"
35878 { echo "$as_me:$LINENO: creating $ac_file" >&5
35879 echo "$as_me: creating $ac_file" >&6;}
35883 *:-:* | *:-) cat >"$tmp/stdin";;
35888 ac_dir=`$as_dirname -- "$ac_file" ||
35889 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35890 X"$ac_file" : 'X\(//\)[^/]' \| \
35891 X"$ac_file" : 'X\(//\)$' \| \
35892 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35898 /^X\(\/\/\)[^/].*/{
35913 -*) as_dir=./$as_dir;;
35915 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35919 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35920 *) as_qdir=$as_dir;;
35922 as_dirs="'$as_qdir' $as_dirs"
35923 as_dir=`$as_dirname -- "$as_dir" ||
35924 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35925 X"$as_dir" : 'X\(//\)[^/]' \| \
35926 X"$as_dir" : 'X\(//\)$' \| \
35927 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35933 /^X\(\/\/\)[^/].*/{
35946 test -d "$as_dir" && break
35948 test -z "$as_dirs" || eval "mkdir $as_dirs"
35949 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35950 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35951 { (exit 1); exit 1; }; }; }
35955 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35957 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35958 # A ".." for each directory in $ac_dir_suffix.
35959 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35960 case $ac_top_builddir_sub in
35961 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35962 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35965 ac_abs_top_builddir=$ac_pwd
35966 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35967 # for backward compatibility:
35968 ac_top_builddir=$ac_top_build_prefix
35971 .) # We are building in place.
35973 ac_top_srcdir=$ac_top_builddir_sub
35974 ac_abs_top_srcdir=$ac_pwd ;;
35975 [\\/]* | ?:[\\/]* ) # Absolute name.
35976 ac_srcdir=$srcdir$ac_dir_suffix;
35977 ac_top_srcdir=$srcdir
35978 ac_abs_top_srcdir=$srcdir ;;
35979 *) # Relative name.
35980 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35981 ac_top_srcdir=$ac_top_build_prefix$srcdir
35982 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35984 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35994 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35995 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35999 cat >>$CONFIG_STATUS <<\_ACEOF
36000 # If the template does not know about datarootdir, expand it.
36001 # FIXME: This hack should be removed a few years after 2.60.
36002 ac_datarootdir_hack=; ac_datarootdir_seen=
36004 case `sed -n '/datarootdir/ {
36013 ' $ac_file_inputs` in
36014 *datarootdir*) ac_datarootdir_seen=yes;;
36015 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36016 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36017 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36019 cat >>$CONFIG_STATUS <<_ACEOF
36020 ac_datarootdir_hack='
36021 s&@datadir@&$datadir&g
36022 s&@docdir@&$docdir&g
36023 s&@infodir@&$infodir&g
36024 s&@localedir@&$localedir&g
36025 s&@mandir@&$mandir&g
36026 s&\\\${datarootdir}&$datarootdir&g' ;;
36030 # Neutralize VPATH when `$srcdir' = `.'.
36031 # Shell code in configure.ac might set extrasub.
36032 # FIXME: do we really want to maintain this feature?
36033 cat >>$CONFIG_STATUS <<_ACEOF
36037 cat >>$CONFIG_STATUS <<\_ACEOF
36039 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36040 s&@configure_input@&$configure_input&;t t
36041 s&@top_builddir@&$ac_top_builddir_sub&;t t
36042 s&@srcdir@&$ac_srcdir&;t t
36043 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36044 s&@top_srcdir@&$ac_top_srcdir&;t t
36045 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36046 s&@builddir@&$ac_builddir&;t t
36047 s&@abs_builddir@&$ac_abs_builddir&;t t
36048 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36049 s&@INSTALL@&$ac_INSTALL&;t t
36050 $ac_datarootdir_hack
36051 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36053 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36054 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36055 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36056 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36057 which seems to be undefined. Please make sure it is defined." >&5
36058 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36059 which seems to be undefined. Please make sure it is defined." >&2;}
36063 -) cat "$tmp/out"; rm -f "$tmp/out";;
36064 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36073 # Transform confdefs.h into a sed script `conftest.defines', that
36074 # substitutes the proper values into config.h.in to produce config.h.
36075 rm -f conftest.defines conftest.tail
36076 # First, append a space to every undef/define line, to ease matching.
36077 echo 's/$/ /' >conftest.defines
36078 # Then, protect against being on the right side of a sed subst, or in
36079 # an unquoted here document, in config.status. If some macros were
36080 # called several times there might be several #defines for the same
36081 # symbol, which is useless. But do not sort them, since the last
36082 # AC_DEFINE must be honored.
36083 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36084 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36085 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36086 # PARAMS is the parameter list in the macro definition--in most cases, it's
36087 # just an empty string.
36088 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36089 ac_dB='\\)[ (].*,\\1define\\2'
36097 s/^[ ]*#[ ]*define[ ][ ]*//
36102 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36103 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36104 ' >>conftest.defines
36106 # Remove the space that was appended to ease matching.
36107 # Then replace #undef with comments. This is necessary, for
36108 # example, in the case of _POSIX_SOURCE, which is predefined and required
36109 # on some systems where configure will not decide to define it.
36110 # (The regexp can be short, since the line contains either #define or #undef.)
36112 s,^[ #]*u.*,/* & */,' >>conftest.defines
36114 # Break up conftest.defines:
36115 ac_max_sed_lines=50
36117 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36118 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36119 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36121 ac_in='$ac_file_inputs'
36122 ac_out='"$tmp/out1"'
36123 ac_nxt='"$tmp/out2"'
36127 # Write a here document:
36128 cat >>$CONFIG_STATUS <<_ACEOF
36129 # First, check the format of the line:
36130 cat >"\$tmp/defines.sed" <<\\CEOF
36131 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36132 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36136 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36138 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36139 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36140 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36141 grep . conftest.tail >/dev/null || break
36142 rm -f conftest.defines
36143 mv conftest.tail conftest.defines
36145 rm -f conftest.defines conftest.tail
36147 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36148 cat >>$CONFIG_STATUS <<\_ACEOF
36149 if test x"$ac_file" != x-; then
36150 echo "/* $configure_input */" >"$tmp/config.h"
36151 cat "$ac_result" >>"$tmp/config.h"
36152 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36153 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36154 echo "$as_me: $ac_file is unchanged" >&6;}
36157 mv "$tmp/config.h" $ac_file
36160 echo "/* $configure_input */"
36166 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36167 echo "$as_me: executing $ac_file commands" >&6;}
36172 case $ac_file$ac_mode in
36173 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36174 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
36175 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36176 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
36177 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36178 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
36179 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36180 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
36181 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36182 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36183 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36184 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
36185 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36186 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36187 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36188 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36189 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36190 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
36191 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36192 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
36193 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36194 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
36195 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36196 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36197 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36198 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36204 { (exit 0); exit 0; }
36206 chmod +x $CONFIG_STATUS
36207 ac_clean_files=$ac_clean_files_save
36210 # configure is writing to config.log, and then calls config.status.
36211 # config.status does its own redirection, appending to config.log.
36212 # Unfortunately, on DOS this fails, as config.log is still kept open
36213 # by configure, so config.status won't be able to write to it; its
36214 # output is simply discarded. So we exec the FD to /dev/null,
36215 # effectively closing config.log, so it can be properly (re)opened and
36216 # appended to by config.status. When coming back to configure, we
36217 # need to make the FD available again.
36218 if test "$no_create" != yes; then
36220 ac_config_status_args=
36221 test "$silent" = yes &&
36222 ac_config_status_args="$ac_config_status_args --quiet"
36224 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36226 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36227 # would make configure fail if this is the last instruction.
36228 $ac_cs_success || { (exit 1); exit 1; }
36232 # CONFIG_SUBDIRS section.
36234 if test "$no_recursion" != yes; then
36236 # Remove --cache-file and --srcdir arguments so they do not pile up.
36237 ac_sub_configure_args=
36239 eval "set x $ac_configure_args"
36243 if test -n "$ac_prev"; then
36248 -cache-file | --cache-file | --cache-fil | --cache-fi \
36249 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36250 ac_prev=cache_file ;;
36251 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36252 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36255 --config-cache | -C)
36257 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36259 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36261 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36263 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36267 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36269 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36273 # Always prepend --prefix to ensure using the same prefix
36274 # in subdir configurations.
36275 ac_arg="--prefix=$prefix"
36277 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36279 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36282 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36284 # Do not complain, so a configure script can configure whichever
36285 # parts of a large source tree are present.
36286 test -d "$srcdir/$ac_dir" || continue
36288 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36289 echo "$as_me:$LINENO: $ac_msg" >&5
36293 -*) as_dir=./$as_dir;;
36295 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36299 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36300 *) as_qdir=$as_dir;;
36302 as_dirs="'$as_qdir' $as_dirs"
36303 as_dir=`$as_dirname -- "$as_dir" ||
36304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36305 X"$as_dir" : 'X\(//\)[^/]' \| \
36306 X"$as_dir" : 'X\(//\)$' \| \
36307 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36313 /^X\(\/\/\)[^/].*/{
36326 test -d "$as_dir" && break
36328 test -z "$as_dirs" || eval "mkdir $as_dirs"
36329 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36330 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36331 { (exit 1); exit 1; }; }; }
36335 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36337 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36338 # A ".." for each directory in $ac_dir_suffix.
36339 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36340 case $ac_top_builddir_sub in
36341 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36342 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36345 ac_abs_top_builddir=$ac_pwd
36346 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36347 # for backward compatibility:
36348 ac_top_builddir=$ac_top_build_prefix
36351 .) # We are building in place.
36353 ac_top_srcdir=$ac_top_builddir_sub
36354 ac_abs_top_srcdir=$ac_pwd ;;
36355 [\\/]* | ?:[\\/]* ) # Absolute name.
36356 ac_srcdir=$srcdir$ac_dir_suffix;
36357 ac_top_srcdir=$srcdir
36358 ac_abs_top_srcdir=$srcdir ;;
36359 *) # Relative name.
36360 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36361 ac_top_srcdir=$ac_top_build_prefix$srcdir
36362 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36364 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36369 # Check for guested configure; otherwise get Cygnus style configure.
36370 if test -f "$ac_srcdir/configure.gnu"; then
36371 ac_sub_configure=$ac_srcdir/configure.gnu
36372 elif test -f "$ac_srcdir/configure"; then
36373 ac_sub_configure=$ac_srcdir/configure
36374 elif test -f "$ac_srcdir/configure.in"; then
36375 # This should be Cygnus configure.
36376 ac_sub_configure=$ac_aux_dir/configure
36378 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36379 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36383 # The recursion is here.
36384 if test -n "$ac_sub_configure"; then
36385 # Make the cache file name correct relative to the subdirectory.
36386 case $cache_file in
36387 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36388 *) # Relative name.
36389 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36392 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36393 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36394 # The eval makes quoting arguments work.
36395 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36396 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36397 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36398 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36399 { (exit 1); exit 1; }; }