2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.5svn.
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.5svn'
719 PACKAGE_STRING='llvm 2.5svn'
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
894 CONVENIENCE_LTDL_TRUE
895 CONVENIENCE_LTDL_FALSE
933 ENABLE_VISIBILITY_INLINES_HIDDEN
937 ac_precious_vars='build_alias
953 ac_subdirs_all='projects/sample
955 projects/llvm-stacker
962 projects/llvm-poolalloc
964 projects/llvm-kernel'
966 # Initialize some variables set by options.
968 ac_init_version=false
969 # The variables have the same names as the options, with
970 # dashes changed to underlines.
978 program_transform_name=s,x,x,
986 # Installation directory options.
987 # These are left unexpanded so users can "make install exec_prefix=/foo"
988 # and all the variables that are supposed to be based on exec_prefix
989 # by default will actually change.
990 # Use braces instead of parens because sh, perl, etc. also accept them.
991 # (The list follows the same order as the GNU Coding Standards.)
992 bindir='${exec_prefix}/bin'
993 sbindir='${exec_prefix}/sbin'
994 libexecdir='${exec_prefix}/libexec'
995 datarootdir='${prefix}/share'
996 datadir='${datarootdir}'
997 sysconfdir='${prefix}/etc'
998 sharedstatedir='${prefix}/com'
999 localstatedir='${prefix}/var'
1000 includedir='${prefix}/include'
1001 oldincludedir='/usr/include'
1002 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1003 infodir='${datarootdir}/info'
1008 libdir='${exec_prefix}/lib'
1009 localedir='${datarootdir}/locale'
1010 mandir='${datarootdir}/man'
1016 # If the previous option needs an argument, assign it.
1017 if test -n "$ac_prev"; then
1018 eval $ac_prev=\$ac_option
1024 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1028 # Accept the important Cygnus configure options, so we can diagnose typos.
1030 case $ac_dashdash$ac_option in
1034 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1037 bindir=$ac_optarg ;;
1039 -build | --build | --buil | --bui | --bu)
1040 ac_prev=build_alias ;;
1041 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1042 build_alias=$ac_optarg ;;
1044 -cache-file | --cache-file | --cache-fil | --cache-fi \
1045 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1046 ac_prev=cache_file ;;
1047 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1048 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1049 cache_file=$ac_optarg ;;
1051 --config-cache | -C)
1052 cache_file=config.cache ;;
1054 -datadir | --datadir | --datadi | --datad)
1056 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1057 datadir=$ac_optarg ;;
1059 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1060 | --dataroo | --dataro | --datar)
1061 ac_prev=datarootdir ;;
1062 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1063 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1064 datarootdir=$ac_optarg ;;
1066 -disable-* | --disable-*)
1067 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1070 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1073 eval enable_$ac_feature=no ;;
1075 -docdir | --docdir | --docdi | --doc | --do)
1077 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1078 docdir=$ac_optarg ;;
1080 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1082 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1083 dvidir=$ac_optarg ;;
1085 -enable-* | --enable-*)
1086 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1089 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1090 { (exit 1); exit 1; }; }
1091 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1092 eval enable_$ac_feature=\$ac_optarg ;;
1094 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1095 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1096 | --exec | --exe | --ex)
1097 ac_prev=exec_prefix ;;
1098 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1099 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1100 | --exec=* | --exe=* | --ex=*)
1101 exec_prefix=$ac_optarg ;;
1103 -gas | --gas | --ga | --g)
1104 # Obsolete; use --with-gas.
1107 -help | --help | --hel | --he | -h)
1108 ac_init_help=long ;;
1109 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1110 ac_init_help=recursive ;;
1111 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1112 ac_init_help=short ;;
1114 -host | --host | --hos | --ho)
1115 ac_prev=host_alias ;;
1116 -host=* | --host=* | --hos=* | --ho=*)
1117 host_alias=$ac_optarg ;;
1119 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1121 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1123 htmldir=$ac_optarg ;;
1125 -includedir | --includedir | --includedi | --included | --include \
1126 | --includ | --inclu | --incl | --inc)
1127 ac_prev=includedir ;;
1128 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1129 | --includ=* | --inclu=* | --incl=* | --inc=*)
1130 includedir=$ac_optarg ;;
1132 -infodir | --infodir | --infodi | --infod | --info | --inf)
1134 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1135 infodir=$ac_optarg ;;
1137 -libdir | --libdir | --libdi | --libd)
1139 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1140 libdir=$ac_optarg ;;
1142 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1143 | --libexe | --libex | --libe)
1144 ac_prev=libexecdir ;;
1145 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1146 | --libexe=* | --libex=* | --libe=*)
1147 libexecdir=$ac_optarg ;;
1149 -localedir | --localedir | --localedi | --localed | --locale)
1150 ac_prev=localedir ;;
1151 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1152 localedir=$ac_optarg ;;
1154 -localstatedir | --localstatedir | --localstatedi | --localstated \
1155 | --localstate | --localstat | --localsta | --localst | --locals)
1156 ac_prev=localstatedir ;;
1157 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1158 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1159 localstatedir=$ac_optarg ;;
1161 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1163 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1164 mandir=$ac_optarg ;;
1166 -nfp | --nfp | --nf)
1167 # Obsolete; use --without-fp.
1170 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1171 | --no-cr | --no-c | -n)
1174 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1175 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1178 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1179 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1180 | --oldin | --oldi | --old | --ol | --o)
1181 ac_prev=oldincludedir ;;
1182 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1183 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1184 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1185 oldincludedir=$ac_optarg ;;
1187 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1189 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1190 prefix=$ac_optarg ;;
1192 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1193 | --program-pre | --program-pr | --program-p)
1194 ac_prev=program_prefix ;;
1195 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1196 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1197 program_prefix=$ac_optarg ;;
1199 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1200 | --program-suf | --program-su | --program-s)
1201 ac_prev=program_suffix ;;
1202 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1203 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1204 program_suffix=$ac_optarg ;;
1206 -program-transform-name | --program-transform-name \
1207 | --program-transform-nam | --program-transform-na \
1208 | --program-transform-n | --program-transform- \
1209 | --program-transform | --program-transfor \
1210 | --program-transfo | --program-transf \
1211 | --program-trans | --program-tran \
1212 | --progr-tra | --program-tr | --program-t)
1213 ac_prev=program_transform_name ;;
1214 -program-transform-name=* | --program-transform-name=* \
1215 | --program-transform-nam=* | --program-transform-na=* \
1216 | --program-transform-n=* | --program-transform-=* \
1217 | --program-transform=* | --program-transfor=* \
1218 | --program-transfo=* | --program-transf=* \
1219 | --program-trans=* | --program-tran=* \
1220 | --progr-tra=* | --program-tr=* | --program-t=*)
1221 program_transform_name=$ac_optarg ;;
1223 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1225 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1226 pdfdir=$ac_optarg ;;
1228 -psdir | --psdir | --psdi | --psd | --ps)
1230 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234 | -silent | --silent | --silen | --sile | --sil)
1237 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1239 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1241 sbindir=$ac_optarg ;;
1243 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245 | --sharedst | --shareds | --shared | --share | --shar \
1247 ac_prev=sharedstatedir ;;
1248 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1252 sharedstatedir=$ac_optarg ;;
1254 -site | --site | --sit)
1256 -site=* | --site=* | --sit=*)
1259 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1261 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262 srcdir=$ac_optarg ;;
1264 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265 | --syscon | --sysco | --sysc | --sys | --sy)
1266 ac_prev=sysconfdir ;;
1267 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269 sysconfdir=$ac_optarg ;;
1271 -target | --target | --targe | --targ | --tar | --ta | --t)
1272 ac_prev=target_alias ;;
1273 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274 target_alias=$ac_optarg ;;
1276 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1279 -version | --version | --versio | --versi | --vers | -V)
1280 ac_init_version=: ;;
1283 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1286 { echo "$as_me: error: invalid package name: $ac_package" >&2
1287 { (exit 1); exit 1; }; }
1288 ac_package=`echo $ac_package| sed 's/-/_/g'`
1289 eval with_$ac_package=\$ac_optarg ;;
1291 -without-* | --without-*)
1292 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1295 { echo "$as_me: error: invalid package name: $ac_package" >&2
1296 { (exit 1); exit 1; }; }
1297 ac_package=`echo $ac_package | sed 's/-/_/g'`
1298 eval with_$ac_package=no ;;
1301 # Obsolete; use --with-x.
1304 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1305 | --x-incl | --x-inc | --x-in | --x-i)
1306 ac_prev=x_includes ;;
1307 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1308 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1309 x_includes=$ac_optarg ;;
1311 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1312 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1313 ac_prev=x_libraries ;;
1314 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1315 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1316 x_libraries=$ac_optarg ;;
1318 -*) { echo "$as_me: error: unrecognized option: $ac_option
1319 Try \`$0 --help' for more information." >&2
1320 { (exit 1); exit 1; }; }
1324 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325 # Reject names that are not valid shell variable names.
1326 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1327 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1328 { (exit 1); exit 1; }; }
1329 eval $ac_envvar=\$ac_optarg
1330 export $ac_envvar ;;
1333 # FIXME: should be removed in autoconf 3.0.
1334 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1335 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1336 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1337 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1343 if test -n "$ac_prev"; then
1344 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1345 { echo "$as_me: error: missing argument to $ac_option" >&2
1346 { (exit 1); exit 1; }; }
1349 # Be sure to have absolute directory names.
1350 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1351 datadir sysconfdir sharedstatedir localstatedir includedir \
1352 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1353 libdir localedir mandir
1355 eval ac_val=\$$ac_var
1357 [\\/$]* | ?:[\\/]* ) continue;;
1358 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1360 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1361 { (exit 1); exit 1; }; }
1364 # There might be people who depend on the old broken behavior: `$host'
1365 # used to hold the argument of --host etc.
1366 # FIXME: To remove some day.
1369 target=$target_alias
1371 # FIXME: To remove some day.
1372 if test "x$host_alias" != x; then
1373 if test "x$build_alias" = x; then
1374 cross_compiling=maybe
1375 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1376 If a cross compiler is detected then cross compile mode will be used." >&2
1377 elif test "x$build_alias" != "x$host_alias"; then
1383 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1385 test "$silent" = yes && exec 6>/dev/null
1388 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1389 ac_ls_di=`ls -di .` &&
1390 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1391 { echo "$as_me: error: Working directory cannot be determined" >&2
1392 { (exit 1); exit 1; }; }
1393 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1394 { echo "$as_me: error: pwd does not report name of working directory" >&2
1395 { (exit 1); exit 1; }; }
1398 # Find the source files, if location was not specified.
1399 if test -z "$srcdir"; then
1400 ac_srcdir_defaulted=yes
1401 # Try the directory containing this script, then the parent directory.
1402 ac_confdir=`$as_dirname -- "$0" ||
1403 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1404 X"$0" : 'X\(//\)[^/]' \| \
1405 X"$0" : 'X\(//\)$' \| \
1406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1430 ac_srcdir_defaulted=no
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1433 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1434 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1435 { (exit 1); exit 1; }; }
1437 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1439 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1440 { (exit 1); exit 1; }; }
1442 # When building in place, set srcdir=.
1443 if test "$ac_abs_confdir" = "$ac_pwd"; then
1446 # Remove unnecessary trailing slashes from srcdir.
1447 # Double slashes in file names in object file debugging info
1448 # mess up M-x gdb in Emacs.
1450 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1452 for ac_var in $ac_precious_vars; do
1453 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_env_${ac_var}_value=\$${ac_var}
1455 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1456 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1460 # Report the --help message.
1462 if test "$ac_init_help" = "long"; then
1463 # Omit some internal or obsolete options to make the list less imposing.
1464 # This message is too long to be a string in the A/UX 3.1 sh.
1466 \`configure' configures llvm 2.5svn to adapt to many kinds of systems.
1468 Usage: $0 [OPTION]... [VAR=VALUE]...
1470 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1471 VAR=VALUE. See below for descriptions of some of the useful variables.
1473 Defaults for the options are specified in brackets.
1476 -h, --help display this help and exit
1477 --help=short display options specific to this package
1478 --help=recursive display the short help of all the included packages
1479 -V, --version display version information and exit
1480 -q, --quiet, --silent do not print \`checking...' messages
1481 --cache-file=FILE cache test results in FILE [disabled]
1482 -C, --config-cache alias for \`--cache-file=config.cache'
1483 -n, --no-create do not create output files
1484 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1486 Installation directories:
1487 --prefix=PREFIX install architecture-independent files in PREFIX
1488 [$ac_default_prefix]
1489 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1492 By default, \`make install' will install all the files in
1493 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1494 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1495 for instance \`--prefix=\$HOME'.
1497 For better control, use the options below.
1499 Fine tuning of the installation directories:
1500 --bindir=DIR user executables [EPREFIX/bin]
1501 --sbindir=DIR system admin executables [EPREFIX/sbin]
1502 --libexecdir=DIR program executables [EPREFIX/libexec]
1503 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1504 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1505 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1506 --libdir=DIR object code libraries [EPREFIX/lib]
1507 --includedir=DIR C header files [PREFIX/include]
1508 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1509 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1510 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1511 --infodir=DIR info documentation [DATAROOTDIR/info]
1512 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1513 --mandir=DIR man documentation [DATAROOTDIR/man]
1514 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1515 --htmldir=DIR html documentation [DOCDIR]
1516 --dvidir=DIR dvi documentation [DOCDIR]
1517 --pdfdir=DIR pdf documentation [DOCDIR]
1518 --psdir=DIR ps documentation [DOCDIR]
1524 --build=BUILD configure for building on BUILD [guessed]
1525 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1526 --target=TARGET configure for building compilers for TARGET [HOST]
1530 if test -n "$ac_init_help"; then
1531 case $ac_init_help in
1532 short | recursive ) echo "Configuration of llvm 2.5svn:";;
1537 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1538 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1541 --enable-expensive-checks
1543 --enable-debug-runtime
1544 --enable-jit Enable Just In Time Compiling (default is YES)
1545 --enable-doxygen Build doxygen documentation (default is NO)
1546 --enable-threads Use threads if available (default is YES)
1547 --enable-pic Build LLVM with Position Independent Code (default
1549 --enable-targets Build specific host targets:
1550 all,host-only,{target-name} (default=all)
1551 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1553 --enable-bindings Build specific language bindings:
1554 all,auto,none,{binding-name} (default=auto)
1555 --enable-ltdl-install install libltdl
1556 --enable-shared[=PKGS] build shared libraries
1558 --enable-static[=PKGS] build static libraries
1560 --enable-fast-install[=PKGS]
1561 optimize for fast installation
1563 --disable-libtool-lock avoid locking (might break parallel builds)
1566 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1567 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1568 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1570 --with-llvmgcc Specify location of llvm-gcc driver (default
1572 --with-llvmgxx Specify location of llvm-g++ driver (default
1574 --with-extra-options Specify addtional options to compile LLVM with
1575 --with-ocaml-libdir Specify install location for ocaml bindings (default
1577 --with-tclinclude directory where tcl headers are
1578 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1579 --with-pic try to use only PIC/non-PIC objects [default=use
1581 --with-tags[=TAGS] include additional configurations [automatic]
1582 --with-udis86=<path> Use udis86 external x86 disassembler library
1584 Some influential environment variables:
1585 CC C compiler command
1586 CFLAGS C compiler flags
1587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1588 nonstandard directory <lib dir>
1589 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1590 you have headers in a nonstandard directory <include dir>
1592 CXX C++ compiler command
1593 CXXFLAGS C++ compiler flags
1594 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1595 the first program found out of: `bison -y', `byacc', `yacc'.
1596 YFLAGS The list of arguments that will be passed by default to $YACC.
1597 This script will default YFLAGS to the empty string to avoid a
1598 default value of `-d' given by some make applications.
1599 CXXCPP C++ preprocessor
1600 F77 Fortran 77 compiler command
1601 FFLAGS Fortran 77 compiler flags
1603 Use these variables to override the choices made by `configure' or to help
1604 it to find libraries and programs with nonstandard names/locations.
1606 Report bugs to <llvmbugs@cs.uiuc.edu>.
1611 if test "$ac_init_help" = "recursive"; then
1612 # If there are subdirs, report their specific --help.
1613 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1614 test -d "$ac_dir" || continue
1618 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1621 # A ".." for each directory in $ac_dir_suffix.
1622 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1623 case $ac_top_builddir_sub in
1624 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1628 ac_abs_top_builddir=$ac_pwd
1629 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1630 # for backward compatibility:
1631 ac_top_builddir=$ac_top_build_prefix
1634 .) # We are building in place.
1636 ac_top_srcdir=$ac_top_builddir_sub
1637 ac_abs_top_srcdir=$ac_pwd ;;
1638 [\\/]* | ?:[\\/]* ) # Absolute name.
1639 ac_srcdir=$srcdir$ac_dir_suffix;
1640 ac_top_srcdir=$srcdir
1641 ac_abs_top_srcdir=$srcdir ;;
1643 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1644 ac_top_srcdir=$ac_top_build_prefix$srcdir
1645 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1647 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1649 cd "$ac_dir" || { ac_status=$?; continue; }
1650 # Check for guested configure.
1651 if test -f "$ac_srcdir/configure.gnu"; then
1653 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1654 elif test -f "$ac_srcdir/configure"; then
1656 $SHELL "$ac_srcdir/configure" --help=recursive
1658 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1660 cd "$ac_pwd" || { ac_status=$?; break; }
1664 test -n "$ac_init_help" && exit $ac_status
1665 if $ac_init_version; then
1667 llvm configure 2.5svn
1668 generated by GNU Autoconf 2.60
1670 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1671 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1672 This configure script is free software; the Free Software Foundation
1673 gives unlimited permission to copy, distribute and modify it.
1675 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1679 cat >config.log <<_ACEOF
1680 This file contains any messages produced by compilers while
1681 running configure, to aid debugging if configure makes a mistake.
1683 It was created by llvm $as_me 2.5svn, which was
1684 generated by GNU Autoconf 2.60. Invocation command line was
1696 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1697 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1698 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1699 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1700 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1702 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1703 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1705 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1706 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1707 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1708 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1709 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1710 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1711 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 test -z "$as_dir" && as_dir=.
1720 echo "PATH: $as_dir"
1736 # Keep a trace of the command line.
1737 # Strip out --no-create and --no-recursion so they do not pile up.
1738 # Strip out --silent because we don't want to record it for future runs.
1739 # Also quote any args containing shell meta-characters.
1740 # Make two passes to allow for proper duplicate-argument suppression.
1744 ac_must_keep_next=false
1750 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1751 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1752 | -silent | --silent | --silen | --sile | --sil)
1755 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1758 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1760 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1761 if test $ac_must_keep_next = true; then
1762 ac_must_keep_next=false # Got value, back to normal.
1765 *=* | --config-cache | -C | -disable-* | --disable-* \
1766 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1767 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1768 | -with-* | --with-* | -without-* | --without-* | --x)
1769 case "$ac_configure_args0 " in
1770 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1773 -* ) ac_must_keep_next=true ;;
1776 ac_configure_args="$ac_configure_args '$ac_arg'"
1781 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1782 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1784 # When interrupted or exit'd, cleanup temporary files, and complete
1785 # config.log. We remove comments because anyway the quotes in there
1786 # would cause problems or look ugly.
1787 # WARNING: Use '\'' to represent an apostrophe within the trap.
1788 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1789 trap 'exit_status=$?
1790 # Save into config.log some information that might help in debugging.
1795 ## ---------------- ##
1796 ## Cache variables. ##
1797 ## ---------------- ##
1800 # The following way of writing the cache mishandles newlines in values,
1802 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1803 eval ac_val=\$$ac_var
1807 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1808 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1811 _ | IFS | as_nl) ;; #(
1812 *) $as_unset $ac_var ;;
1817 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1818 *${as_nl}ac_space=\ *)
1820 "s/'\''/'\''\\\\'\'''\''/g;
1821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1824 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1832 ## ----------------- ##
1833 ## Output variables. ##
1834 ## ----------------- ##
1837 for ac_var in $ac_subst_vars
1839 eval ac_val=\$$ac_var
1841 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843 echo "$ac_var='\''$ac_val'\''"
1847 if test -n "$ac_subst_files"; then
1849 ## ------------------- ##
1850 ## File substitutions. ##
1851 ## ------------------- ##
1854 for ac_var in $ac_subst_files
1856 eval ac_val=\$$ac_var
1858 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860 echo "$ac_var='\''$ac_val'\''"
1865 if test -s confdefs.h; then
1875 test "$ac_signal" != 0 &&
1876 echo "$as_me: caught signal $ac_signal"
1877 echo "$as_me: exit $exit_status"
1879 rm -f core *.core core.conftest.* &&
1880 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1883 for ac_signal in 1 2 13 15; do
1884 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1888 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1889 rm -f -r conftest* confdefs.h
1891 # Predefined preprocessor variables.
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_NAME "$PACKAGE_NAME"
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_STRING "$PACKAGE_STRING"
1913 cat >>confdefs.h <<_ACEOF
1914 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1918 # Let the site file select an alternate cache file if it wants to.
1919 # Prefer explicitly selected file to automatically selected ones.
1920 if test -n "$CONFIG_SITE"; then
1921 set x "$CONFIG_SITE"
1922 elif test "x$prefix" != xNONE; then
1923 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1925 set x "$ac_default_prefix/share/config.site" \
1926 "$ac_default_prefix/etc/config.site"
1931 if test -r "$ac_site_file"; then
1932 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1933 echo "$as_me: loading site script $ac_site_file" >&6;}
1934 sed 's/^/| /' "$ac_site_file" >&5
1939 if test -r "$cache_file"; then
1940 # Some versions of bash will fail to source /dev/null (special
1941 # files actually), so we avoid doing that.
1942 if test -f "$cache_file"; then
1943 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1944 echo "$as_me: loading cache $cache_file" >&6;}
1946 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1947 *) . "./$cache_file";;
1951 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1952 echo "$as_me: creating cache $cache_file" >&6;}
1956 # Check that the precious variables saved in the cache have kept the same
1958 ac_cache_corrupted=false
1959 for ac_var in $ac_precious_vars; do
1960 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1961 eval ac_new_set=\$ac_env_${ac_var}_set
1962 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1963 eval ac_new_val=\$ac_env_${ac_var}_value
1964 case $ac_old_set,$ac_new_set in
1966 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1967 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1968 ac_cache_corrupted=: ;;
1970 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1971 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1972 ac_cache_corrupted=: ;;
1975 if test "x$ac_old_val" != "x$ac_new_val"; then
1976 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1977 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1978 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1979 echo "$as_me: former value: $ac_old_val" >&2;}
1980 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1981 echo "$as_me: current value: $ac_new_val" >&2;}
1982 ac_cache_corrupted=:
1985 # Pass precious variables to config.status.
1986 if test "$ac_new_set" = set; then
1988 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1989 *) ac_arg=$ac_var=$ac_new_val ;;
1991 case " $ac_configure_args " in
1992 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1993 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1997 if $ac_cache_corrupted; then
1998 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1999 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2000 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2001 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2002 { (exit 1); exit 1; }; }
2030 ac_cpp='$CPP $CPPFLAGS'
2031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2037 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2046 for ac_dir in autoconf "$srcdir"/autoconf; do
2047 if test -f "$ac_dir/install-sh"; then
2049 ac_install_sh="$ac_aux_dir/install-sh -c"
2051 elif test -f "$ac_dir/install.sh"; then
2053 ac_install_sh="$ac_aux_dir/install.sh -c"
2055 elif test -f "$ac_dir/shtool"; then
2057 ac_install_sh="$ac_aux_dir/shtool install -c"
2061 if test -z "$ac_aux_dir"; then
2062 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2063 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2064 { (exit 1); exit 1; }; }
2067 # These three variables are undocumented and unsupported,
2068 # and are intended to be withdrawn in a future Autoconf release.
2069 # They can cause serious problems if a builder's source tree is in a directory
2070 # whose full name contains unusual characters.
2071 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2072 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2073 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2077 if test ${srcdir} != "." ; then
2078 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2079 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2080 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2081 { (exit 1); exit 1; }; }
2085 for i in `ls ${srcdir}/projects`
2087 if test -d ${srcdir}/projects/${i} ; then
2090 sample) subdirs="$subdirs projects/sample"
2092 privbracket) subdirs="$subdirs projects/privbracket"
2094 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2096 # llvm-test is the old name of the test-suite, kept here for backwards
2098 llvm-test) subdirs="$subdirs projects/llvm-test"
2100 test-suite) subdirs="$subdirs projects/test-suite"
2102 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2104 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2106 llvm-java) subdirs="$subdirs projects/llvm-java"
2108 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2110 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2112 poolalloc) subdirs="$subdirs projects/poolalloc"
2114 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2117 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2118 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2125 # Make sure we can run config.sub.
2126 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2127 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2128 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2129 { (exit 1); exit 1; }; }
2131 { echo "$as_me:$LINENO: checking build system type" >&5
2132 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2133 if test "${ac_cv_build+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 ac_build_alias=$build_alias
2137 test "x$ac_build_alias" = x &&
2138 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2139 test "x$ac_build_alias" = x &&
2140 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2141 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2142 { (exit 1); exit 1; }; }
2143 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2144 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2145 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2146 { (exit 1); exit 1; }; }
2149 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2150 echo "${ECHO_T}$ac_cv_build" >&6; }
2151 case $ac_cv_build in
2153 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2154 echo "$as_me: error: invalid value of canonical build" >&2;}
2155 { (exit 1); exit 1; }; };;
2158 ac_save_IFS=$IFS; IFS='-'
2164 # Remember, the first character of IFS is used to create $*,
2165 # except with old shells:
2168 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2171 { echo "$as_me:$LINENO: checking host system type" >&5
2172 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2173 if test "${ac_cv_host+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 if test "x$host_alias" = x; then
2177 ac_cv_host=$ac_cv_build
2179 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2180 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2181 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2182 { (exit 1); exit 1; }; }
2186 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2187 echo "${ECHO_T}$ac_cv_host" >&6; }
2190 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2191 echo "$as_me: error: invalid value of canonical host" >&2;}
2192 { (exit 1); exit 1; }; };;
2195 ac_save_IFS=$IFS; IFS='-'
2201 # Remember, the first character of IFS is used to create $*,
2202 # except with old shells:
2205 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2208 { echo "$as_me:$LINENO: checking target system type" >&5
2209 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2210 if test "${ac_cv_target+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 if test "x$target_alias" = x; then
2214 ac_cv_target=$ac_cv_host
2216 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2217 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2218 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2219 { (exit 1); exit 1; }; }
2223 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2224 echo "${ECHO_T}$ac_cv_target" >&6; }
2225 case $ac_cv_target in
2227 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2228 echo "$as_me: error: invalid value of canonical target" >&2;}
2229 { (exit 1); exit 1; }; };;
2231 target=$ac_cv_target
2232 ac_save_IFS=$IFS; IFS='-'
2238 # Remember, the first character of IFS is used to create $*,
2239 # except with old shells:
2242 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2245 # The aliases save the names the user supplied, while $host etc.
2246 # will get canonicalized.
2247 test -n "$target_alias" &&
2248 test "$program_prefix$program_suffix$program_transform_name" = \
2250 program_prefix=${target_alias}-
2252 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2253 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2254 if test "${llvm_cv_os_type+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 llvm_cv_link_all_option="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2261 llvm_cv_os_type="AIX"
2262 llvm_cv_platform_type="Unix" ;;
2264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2266 llvm_cv_os_type="IRIX"
2267 llvm_cv_platform_type="Unix" ;;
2269 llvm_cv_link_all_option="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2271 llvm_cv_os_type="Cygwin"
2272 llvm_cv_platform_type="Unix" ;;
2274 llvm_cv_link_all_option="-Wl,-all_load"
2275 llvm_cv_no_link_all_option="-Wl,-noall_load"
2276 llvm_cv_os_type="Darwin"
2277 llvm_cv_platform_type="Unix" ;;
2279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="FreeBSD"
2282 llvm_cv_platform_type="Unix" ;;
2284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286 llvm_cv_os_type="OpenBSD"
2287 llvm_cv_platform_type="Unix" ;;
2289 llvm_cv_link_all_option="-Wl,--whole-archive"
2290 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2291 llvm_cv_os_type="NetBSD"
2292 llvm_cv_platform_type="Unix" ;;
2294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296 llvm_cv_os_type="DragonFly"
2297 llvm_cv_platform_type="Unix" ;;
2299 llvm_cv_link_all_option="-Wl,--whole-archive"
2300 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2301 llvm_cv_os_type="HP-UX"
2302 llvm_cv_platform_type="Unix" ;;
2304 llvm_cv_link_all_option="-Wl,--whole-archive"
2305 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2306 llvm_cv_os_type="Interix"
2307 llvm_cv_platform_type="Unix" ;;
2309 llvm_cv_link_all_option="-Wl,--whole-archive"
2310 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2311 llvm_cv_os_type="Linux"
2312 llvm_cv_platform_type="Unix" ;;
2314 llvm_cv_link_all_option="-Wl,-z,allextract"
2315 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2316 llvm_cv_os_type="SunOS"
2317 llvm_cv_platform_type="Unix" ;;
2319 llvm_cv_link_all_option="-Wl,--whole-archive"
2320 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2321 llvm_cv_os_type="Win32"
2322 llvm_cv_platform_type="Win32" ;;
2324 llvm_cv_link_all_option="-Wl,--whole-archive"
2325 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2326 llvm_cv_os_type="MingW"
2327 llvm_cv_platform_type="Win32" ;;
2329 llvm_cv_link_all_option=""
2330 llvm_cv_no_link_all_option=""
2331 llvm_cv_os_type="Unknown"
2332 llvm_cv_platform_type="Unknown" ;;
2335 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2336 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2338 if test "$llvm_cv_os_type" = "Unknown" ; then
2339 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2340 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2341 { (exit 1); exit 1; }; }
2347 LINKALL=$llvm_cv_link_all_option
2349 NOLINKALL=$llvm_cv_no_link_all_option
2352 case $llvm_cv_platform_type in
2355 cat >>confdefs.h <<\_ACEOF
2356 #define LLVM_ON_UNIX 1
2366 cat >>confdefs.h <<\_ACEOF
2367 #define LLVM_ON_WIN32 1
2377 { echo "$as_me:$LINENO: checking target architecture" >&5
2378 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2379 if test "${llvm_cv_target_arch+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2383 i?86-*) llvm_cv_target_arch="x86" ;;
2384 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2385 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2386 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2387 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2388 ia64-*) llvm_cv_target_arch="IA64" ;;
2389 arm-*) llvm_cv_target_arch="ARM" ;;
2390 mips-*) llvm_cv_target_arch="Mips" ;;
2391 pic16-*) llvm_cv_target_arch="PIC16" ;;
2392 *) llvm_cv_target_arch="Unknown" ;;
2395 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2396 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2398 if test "$llvm_cv_target_arch" = "Unknown" ; then
2399 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2400 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2403 ARCH=$llvm_cv_target_arch
2407 ac_cpp='$CPP $CPPFLAGS'
2408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2411 if test -n "$ac_tool_prefix"; then
2412 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2413 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2416 if test "${ac_cv_prog_CC+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 if test -n "$CC"; then
2420 ac_cv_prog_CC="$CC" # Let the user override the test.
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 test -z "$as_dir" && as_dir=.
2427 for ac_exec_ext in '' $ac_executable_extensions; do
2428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2429 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2440 if test -n "$CC"; then
2441 { echo "$as_me:$LINENO: result: $CC" >&5
2442 echo "${ECHO_T}$CC" >&6; }
2444 { echo "$as_me:$LINENO: result: no" >&5
2445 echo "${ECHO_T}no" >&6; }
2450 if test -z "$ac_cv_prog_CC"; then
2452 # Extract the first word of "gcc", so it can be a program name with args.
2453 set dummy gcc; ac_word=$2
2454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2456 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2459 if test -n "$ac_ct_CC"; then
2460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 test -z "$as_dir" && as_dir=.
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2469 ac_cv_prog_ac_ct_CC="gcc"
2470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2480 if test -n "$ac_ct_CC"; then
2481 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2482 echo "${ECHO_T}$ac_ct_CC" >&6; }
2484 { echo "$as_me:$LINENO: result: no" >&5
2485 echo "${ECHO_T}no" >&6; }
2488 if test "x$ac_ct_CC" = x; then
2491 case $cross_compiling:$ac_tool_warned in
2493 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2494 whose name does not start with the host triplet. If you think this
2495 configuration is useful to you, please write to autoconf@gnu.org." >&5
2496 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2497 whose name does not start with the host triplet. If you think this
2498 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2499 ac_tool_warned=yes ;;
2507 if test -z "$CC"; then
2508 if test -n "$ac_tool_prefix"; then
2509 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2510 set dummy ${ac_tool_prefix}cc; ac_word=$2
2511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2513 if test "${ac_cv_prog_CC+set}" = set; then
2514 echo $ECHO_N "(cached) $ECHO_C" >&6
2516 if test -n "$CC"; then
2517 ac_cv_prog_CC="$CC" # Let the user override the test.
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 test -z "$as_dir" && as_dir=.
2524 for ac_exec_ext in '' $ac_executable_extensions; do
2525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2526 ac_cv_prog_CC="${ac_tool_prefix}cc"
2527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2537 if test -n "$CC"; then
2538 { echo "$as_me:$LINENO: result: $CC" >&5
2539 echo "${ECHO_T}$CC" >&6; }
2541 { echo "$as_me:$LINENO: result: no" >&5
2542 echo "${ECHO_T}no" >&6; }
2548 if test -z "$CC"; then
2549 # Extract the first word of "cc", so it can be a program name with args.
2550 set dummy cc; ac_word=$2
2551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2553 if test "${ac_cv_prog_CC+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 if test -n "$CC"; then
2557 ac_cv_prog_CC="$CC" # Let the user override the test.
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2567 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2568 ac_prog_rejected=yes
2572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 if test $ac_prog_rejected = yes; then
2580 # We found a bogon in the path, so make sure we never use it.
2581 set dummy $ac_cv_prog_CC
2583 if test $# != 0; then
2584 # We chose a different compiler from the bogus one.
2585 # However, it has the same basename, so the bogon will be chosen
2586 # first if we set CC to just the basename; use the full file name.
2588 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2594 if test -n "$CC"; then
2595 { echo "$as_me:$LINENO: result: $CC" >&5
2596 echo "${ECHO_T}$CC" >&6; }
2598 { echo "$as_me:$LINENO: result: no" >&5
2599 echo "${ECHO_T}no" >&6; }
2604 if test -z "$CC"; then
2605 if test -n "$ac_tool_prefix"; then
2606 for ac_prog in cl.exe
2608 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2609 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2612 if test "${ac_cv_prog_CC+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2615 if test -n "$CC"; then
2616 ac_cv_prog_CC="$CC" # Let the user override the test.
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2625 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 if test -n "$CC"; then
2637 { echo "$as_me:$LINENO: result: $CC" >&5
2638 echo "${ECHO_T}$CC" >&6; }
2640 { echo "$as_me:$LINENO: result: no" >&5
2641 echo "${ECHO_T}no" >&6; }
2645 test -n "$CC" && break
2648 if test -z "$CC"; then
2650 for ac_prog in cl.exe
2652 # Extract the first word of "$ac_prog", so it can be a program name with args.
2653 set dummy $ac_prog; ac_word=$2
2654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2656 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2657 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 if test -n "$ac_ct_CC"; then
2660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2669 ac_cv_prog_ac_ct_CC="$ac_prog"
2670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2680 if test -n "$ac_ct_CC"; then
2681 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2682 echo "${ECHO_T}$ac_ct_CC" >&6; }
2684 { echo "$as_me:$LINENO: result: no" >&5
2685 echo "${ECHO_T}no" >&6; }
2689 test -n "$ac_ct_CC" && break
2692 if test "x$ac_ct_CC" = x; then
2695 case $cross_compiling:$ac_tool_warned in
2697 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2698 whose name does not start with the host triplet. If you think this
2699 configuration is useful to you, please write to autoconf@gnu.org." >&5
2700 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2701 whose name does not start with the host triplet. If you think this
2702 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2703 ac_tool_warned=yes ;;
2712 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2713 See \`config.log' for more details." >&5
2714 echo "$as_me: error: no acceptable C compiler found in \$PATH
2715 See \`config.log' for more details." >&2;}
2716 { (exit 1); exit 1; }; }
2718 # Provide some information about the compiler.
2719 echo "$as_me:$LINENO: checking for C compiler version" >&5
2720 ac_compiler=`set X $ac_compile; echo $2`
2721 { (ac_try="$ac_compiler --version >&5"
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_compiler --version >&5") 2>&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }
2731 { (ac_try="$ac_compiler -v >&5"
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_compiler -v >&5") 2>&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }
2741 { (ac_try="$ac_compiler -V >&5"
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_compiler -V >&5") 2>&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }
2752 cat >conftest.$ac_ext <<_ACEOF
2755 cat confdefs.h >>conftest.$ac_ext
2756 cat >>conftest.$ac_ext <<_ACEOF
2757 /* end confdefs.h. */
2767 ac_clean_files_save=$ac_clean_files
2768 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2769 # Try to create an executable without -o first, disregard a.out.
2770 # It will help us diagnose broken compilers, and finding out an intuition
2772 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2773 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2774 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2776 # List of possible output files, starting from the most likely.
2777 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2778 # only as a last resort. b.out is created by i960 compilers.
2779 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2781 # The IRIX 6 linker writes into existing files which may not be
2782 # executable, retaining their permissions. Remove them first so a
2783 # subsequent execution test works.
2785 for ac_file in $ac_files
2788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2789 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2794 if { (ac_try="$ac_link_default"
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800 (eval "$ac_link_default") 2>&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; then
2804 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2805 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2806 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2807 # so that the user can short-circuit this test for compilers unknown to
2809 for ac_file in $ac_files
2811 test -f "$ac_file" || continue
2813 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2816 # We found the default executable, but exeext='' is most
2820 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2822 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2824 # We set ac_cv_exeext here because the later test for it is not
2825 # safe: cross compilers may not add the suffix if given an `-o'
2826 # argument, so we may need to know it at that point already.
2827 # Even if this section looks crufty: it has the advantage of
2834 test "$ac_cv_exeext" = no && ac_cv_exeext=
2837 echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2840 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2841 See \`config.log' for more details." >&5
2842 echo "$as_me: error: C compiler cannot create executables
2843 See \`config.log' for more details." >&2;}
2844 { (exit 77); exit 77; }; }
2847 ac_exeext=$ac_cv_exeext
2848 { echo "$as_me:$LINENO: result: $ac_file" >&5
2849 echo "${ECHO_T}$ac_file" >&6; }
2851 # Check that the compiler produces executables we can run. If not, either
2852 # the compiler is broken, or we cross compile.
2853 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2854 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2855 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2856 # If not cross compiling, check that we can run a simple program.
2857 if test "$cross_compiling" != yes; then
2858 if { ac_try='./$ac_file'
2859 { (case "(($ac_try" in
2860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861 *) ac_try_echo=$ac_try;;
2863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2864 (eval "$ac_try") 2>&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; }; then
2870 if test "$cross_compiling" = maybe; then
2873 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2874 If you meant to cross compile, use \`--host'.
2875 See \`config.log' for more details." >&5
2876 echo "$as_me: error: cannot run C compiled programs.
2877 If you meant to cross compile, use \`--host'.
2878 See \`config.log' for more details." >&2;}
2879 { (exit 1); exit 1; }; }
2883 { echo "$as_me:$LINENO: result: yes" >&5
2884 echo "${ECHO_T}yes" >&6; }
2886 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2887 ac_clean_files=$ac_clean_files_save
2888 # Check that the compiler produces executables we can run. If not, either
2889 # the compiler is broken, or we cross compile.
2890 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2891 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2892 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2893 echo "${ECHO_T}$cross_compiling" >&6; }
2895 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2896 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2897 if { (ac_try="$ac_link"
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903 (eval "$ac_link") 2>&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }; then
2907 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2908 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2909 # work properly (i.e., refer to `conftest.exe'), while it won't with
2911 for ac_file in conftest.exe conftest conftest.*; do
2912 test -f "$ac_file" || continue
2914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2915 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2921 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2922 See \`config.log' for more details." >&5
2923 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2924 See \`config.log' for more details." >&2;}
2925 { (exit 1); exit 1; }; }
2928 rm -f conftest$ac_cv_exeext
2929 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2930 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2932 rm -f conftest.$ac_ext
2933 EXEEXT=$ac_cv_exeext
2935 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2936 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2937 if test "${ac_cv_objext+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2940 cat >conftest.$ac_ext <<_ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2955 rm -f conftest.o conftest.obj
2956 if { (ac_try="$ac_compile"
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962 (eval "$ac_compile") 2>&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; then
2966 for ac_file in conftest.o conftest.obj conftest.*; do
2967 test -f "$ac_file" || continue;
2969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2970 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2978 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2979 See \`config.log' for more details." >&5
2980 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2981 See \`config.log' for more details." >&2;}
2982 { (exit 1); exit 1; }; }
2985 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2987 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2988 echo "${ECHO_T}$ac_cv_objext" >&6; }
2989 OBJEXT=$ac_cv_objext
2991 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2992 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2993 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2996 cat >conftest.$ac_ext <<_ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3014 rm -f conftest.$ac_objext
3015 if { (ac_try="$ac_compile"
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_compile") 2>conftest.er1
3023 grep -v '^ *+' conftest.er1 >conftest.err
3025 cat conftest.err >&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } &&
3028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3029 { (case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_try") 2>&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; } &&
3038 { ac_try='test -s conftest.$ac_objext'
3039 { (case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_try") 2>&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; }; then
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3057 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3060 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3061 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3062 GCC=`test $ac_compiler_gnu = yes && echo yes`
3063 ac_test_CFLAGS=${CFLAGS+set}
3064 ac_save_CFLAGS=$CFLAGS
3065 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3066 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3067 if test "${ac_cv_prog_cc_g+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 ac_save_c_werror_flag=$ac_c_werror_flag
3071 ac_c_werror_flag=yes
3074 cat >conftest.$ac_ext <<_ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3089 rm -f conftest.$ac_objext
3090 if { (ac_try="$ac_compile"
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_compile") 2>conftest.er1
3098 grep -v '^ *+' conftest.er1 >conftest.err
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } &&
3103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3104 { (case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109 (eval "$ac_try") 2>&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; } &&
3113 { ac_try='test -s conftest.$ac_objext'
3114 { (case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_try") 2>&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; }; then
3125 echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3129 cat >conftest.$ac_ext <<_ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3144 rm -f conftest.$ac_objext
3145 if { (ac_try="$ac_compile"
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_compile") 2>conftest.er1
3153 grep -v '^ *+' conftest.er1 >conftest.err
3155 cat conftest.err >&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); } &&
3158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3159 { (case "(($ac_try" in
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164 (eval "$ac_try") 2>&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; } &&
3168 { ac_try='test -s conftest.$ac_objext'
3169 { (case "(($ac_try" in
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174 (eval "$ac_try") 2>&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; }; then
3180 echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3183 ac_c_werror_flag=$ac_save_c_werror_flag
3185 cat >conftest.$ac_ext <<_ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3200 rm -f conftest.$ac_objext
3201 if { (ac_try="$ac_compile"
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_compile") 2>conftest.er1
3209 grep -v '^ *+' conftest.er1 >conftest.err
3211 cat conftest.err >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); } &&
3214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3215 { (case "(($ac_try" in
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220 (eval "$ac_try") 2>&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); }; } &&
3224 { ac_try='test -s conftest.$ac_objext'
3225 { (case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230 (eval "$ac_try") 2>&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; }; then
3236 echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3249 ac_c_werror_flag=$ac_save_c_werror_flag
3251 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3252 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3253 if test "$ac_test_CFLAGS" = set; then
3254 CFLAGS=$ac_save_CFLAGS
3255 elif test $ac_cv_prog_cc_g = yes; then
3256 if test "$GCC" = yes; then
3262 if test "$GCC" = yes; then
3268 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3269 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3270 if test "${ac_cv_prog_cc_c89+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 ac_cv_prog_cc_c89=no
3275 cat >conftest.$ac_ext <<_ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h. */
3283 #include <sys/types.h>
3284 #include <sys/stat.h>
3285 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3286 struct buf { int x; };
3287 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3288 static char *e (p, i)
3294 static char *f (char * (*g) (char **, int), char **p, ...)
3299 s = g (p, va_arg (v,int));
3304 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3305 function prototypes and stuff, but not '\xHH' hex character constants.
3306 These don't provoke an error unfortunately, instead are silently treated
3307 as 'x'. The following induces an error, until -std is added to get
3308 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3309 array size at least. It's necessary to write '\x00'==0 to get something
3310 that's true only with -std. */
3311 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3313 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3314 inside strings and character constants. */
3316 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3318 int test (int i, double x);
3319 struct s1 {int (*f) (int a);};
3320 struct s2 {int (*f) (double a);};
3321 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3327 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3332 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3333 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3335 CC="$ac_save_CC $ac_arg"
3336 rm -f conftest.$ac_objext
3337 if { (ac_try="$ac_compile"
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3343 (eval "$ac_compile") 2>conftest.er1
3345 grep -v '^ *+' conftest.er1 >conftest.err
3347 cat conftest.err >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } &&
3350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3351 { (case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3356 (eval "$ac_try") 2>&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; } &&
3360 { ac_try='test -s conftest.$ac_objext'
3361 { (case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366 (eval "$ac_try") 2>&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; }; then
3370 ac_cv_prog_cc_c89=$ac_arg
3372 echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3378 rm -f core conftest.err conftest.$ac_objext
3379 test "x$ac_cv_prog_cc_c89" != "xno" && break
3381 rm -f conftest.$ac_ext
3386 case "x$ac_cv_prog_cc_c89" in
3388 { echo "$as_me:$LINENO: result: none needed" >&5
3389 echo "${ECHO_T}none needed" >&6; } ;;
3391 { echo "$as_me:$LINENO: result: unsupported" >&5
3392 echo "${ECHO_T}unsupported" >&6; } ;;
3394 CC="$CC $ac_cv_prog_cc_c89"
3395 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3396 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3408 ac_cpp='$CPP $CPPFLAGS'
3409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3412 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3413 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3414 # On Suns, sometimes $CPP names a directory.
3415 if test -n "$CPP" && test -d "$CPP"; then
3418 if test -z "$CPP"; then
3419 if test "${ac_cv_prog_CPP+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 # Double quotes because CPP needs to be expanded
3423 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3426 for ac_c_preproc_warn_flag in '' yes
3428 # Use a header file that comes with gcc, so configuring glibc
3429 # with a fresh cross-compiler works.
3430 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3431 # <limits.h> exists even on freestanding compilers.
3432 # On the NeXT, cc -E runs the code through the compiler's parser,
3433 # not just through cpp. "Syntax error" is here to catch this case.
3434 cat >conftest.$ac_ext <<_ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3441 # include <limits.h>
3443 # include <assert.h>
3447 if { (ac_try="$ac_cpp conftest.$ac_ext"
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3455 grep -v '^ *+' conftest.er1 >conftest.err
3457 cat conftest.err >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } >/dev/null; then
3460 if test -s conftest.err; then
3461 ac_cpp_err=$ac_c_preproc_warn_flag
3462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3469 if test -z "$ac_cpp_err"; then
3472 echo "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.$ac_ext >&5
3475 # Broken: fails on valid input.
3479 rm -f conftest.err conftest.$ac_ext
3481 # OK, works on sane cases. Now check whether nonexistent headers
3482 # can be detected and how.
3483 cat >conftest.$ac_ext <<_ACEOF
3486 cat confdefs.h >>conftest.$ac_ext
3487 cat >>conftest.$ac_ext <<_ACEOF
3488 /* end confdefs.h. */
3489 #include <ac_nonexistent.h>
3491 if { (ac_try="$ac_cpp conftest.$ac_ext"
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3499 grep -v '^ *+' conftest.er1 >conftest.err
3501 cat conftest.err >&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); } >/dev/null; then
3504 if test -s conftest.err; then
3505 ac_cpp_err=$ac_c_preproc_warn_flag
3506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3513 if test -z "$ac_cpp_err"; then
3514 # Broken: success on invalid input.
3517 echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3520 # Passes both tests.
3525 rm -f conftest.err conftest.$ac_ext
3528 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3529 rm -f conftest.err conftest.$ac_ext
3530 if $ac_preproc_ok; then
3542 { echo "$as_me:$LINENO: result: $CPP" >&5
3543 echo "${ECHO_T}$CPP" >&6; }
3545 for ac_c_preproc_warn_flag in '' yes
3547 # Use a header file that comes with gcc, so configuring glibc
3548 # with a fresh cross-compiler works.
3549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3550 # <limits.h> exists even on freestanding compilers.
3551 # On the NeXT, cc -E runs the code through the compiler's parser,
3552 # not just through cpp. "Syntax error" is here to catch this case.
3553 cat >conftest.$ac_ext <<_ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3560 # include <limits.h>
3562 # include <assert.h>
3566 if { (ac_try="$ac_cpp conftest.$ac_ext"
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3574 grep -v '^ *+' conftest.er1 >conftest.err
3576 cat conftest.err >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); } >/dev/null; then
3579 if test -s conftest.err; then
3580 ac_cpp_err=$ac_c_preproc_warn_flag
3581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3588 if test -z "$ac_cpp_err"; then
3591 echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3594 # Broken: fails on valid input.
3598 rm -f conftest.err conftest.$ac_ext
3600 # OK, works on sane cases. Now check whether nonexistent headers
3601 # can be detected and how.
3602 cat >conftest.$ac_ext <<_ACEOF
3605 cat confdefs.h >>conftest.$ac_ext
3606 cat >>conftest.$ac_ext <<_ACEOF
3607 /* end confdefs.h. */
3608 #include <ac_nonexistent.h>
3610 if { (ac_try="$ac_cpp conftest.$ac_ext"
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3618 grep -v '^ *+' conftest.er1 >conftest.err
3620 cat conftest.err >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } >/dev/null; then
3623 if test -s conftest.err; then
3624 ac_cpp_err=$ac_c_preproc_warn_flag
3625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3632 if test -z "$ac_cpp_err"; then
3633 # Broken: success on invalid input.
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3639 # Passes both tests.
3644 rm -f conftest.err conftest.$ac_ext
3647 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3648 rm -f conftest.err conftest.$ac_ext
3649 if $ac_preproc_ok; then
3652 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3653 See \`config.log' for more details." >&5
3654 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3655 See \`config.log' for more details." >&2;}
3656 { (exit 1); exit 1; }; }
3660 ac_cpp='$CPP $CPPFLAGS'
3661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3666 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3667 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3668 if test "${ac_cv_path_GREP+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 # Extract the first word of "grep ggrep" to use in msg output
3672 if test -z "$GREP"; then
3673 set dummy grep ggrep; ac_prog_name=$2
3674 if test "${ac_cv_path_GREP+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 ac_path_GREP_found=false
3678 # Loop through the user's path and test for each of PROGNAME-LIST
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3683 test -z "$as_dir" && as_dir=.
3684 for ac_prog in grep ggrep; do
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3687 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3688 # Check for GNU ac_path_GREP and select it if it is found.
3689 # Check for GNU $ac_path_GREP
3690 case `"$ac_path_GREP" --version 2>&1` in
3692 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3695 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3698 cat "conftest.in" "conftest.in" >"conftest.tmp"
3699 mv "conftest.tmp" "conftest.in"
3700 cp "conftest.in" "conftest.nl"
3701 echo 'GREP' >> "conftest.nl"
3702 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3704 ac_count=`expr $ac_count + 1`
3705 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3706 # Best one so far, save it but keep looking for a better one
3707 ac_cv_path_GREP="$ac_path_GREP"
3708 ac_path_GREP_max=$ac_count
3710 # 10*(2^10) chars as input seems more than enough
3711 test $ac_count -gt 10 && break
3713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3717 $ac_path_GREP_found && break 3
3727 GREP="$ac_cv_path_GREP"
3728 if test -z "$GREP"; then
3729 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3730 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3731 { (exit 1); exit 1; }; }
3735 ac_cv_path_GREP=$GREP
3740 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3741 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3742 GREP="$ac_cv_path_GREP"
3745 { echo "$as_me:$LINENO: checking for egrep" >&5
3746 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3747 if test "${ac_cv_path_EGREP+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3751 then ac_cv_path_EGREP="$GREP -E"
3753 # Extract the first word of "egrep" to use in msg output
3754 if test -z "$EGREP"; then
3755 set dummy egrep; ac_prog_name=$2
3756 if test "${ac_cv_path_EGREP+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 ac_path_EGREP_found=false
3760 # Loop through the user's path and test for each of PROGNAME-LIST
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3765 test -z "$as_dir" && as_dir=.
3766 for ac_prog in egrep; do
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3769 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3770 # Check for GNU ac_path_EGREP and select it if it is found.
3771 # Check for GNU $ac_path_EGREP
3772 case `"$ac_path_EGREP" --version 2>&1` in
3774 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3777 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3780 cat "conftest.in" "conftest.in" >"conftest.tmp"
3781 mv "conftest.tmp" "conftest.in"
3782 cp "conftest.in" "conftest.nl"
3783 echo 'EGREP' >> "conftest.nl"
3784 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3785 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3786 ac_count=`expr $ac_count + 1`
3787 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3788 # Best one so far, save it but keep looking for a better one
3789 ac_cv_path_EGREP="$ac_path_EGREP"
3790 ac_path_EGREP_max=$ac_count
3792 # 10*(2^10) chars as input seems more than enough
3793 test $ac_count -gt 10 && break
3795 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3799 $ac_path_EGREP_found && break 3
3809 EGREP="$ac_cv_path_EGREP"
3810 if test -z "$EGREP"; then
3811 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3812 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3813 { (exit 1); exit 1; }; }
3817 ac_cv_path_EGREP=$EGREP
3823 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3824 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3825 EGREP="$ac_cv_path_EGREP"
3828 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3829 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3830 if test "${ac_cv_header_stdc+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 cat >conftest.$ac_ext <<_ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3852 rm -f conftest.$ac_objext
3853 if { (ac_try="$ac_compile"
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3859 (eval "$ac_compile") 2>conftest.er1
3861 grep -v '^ *+' conftest.er1 >conftest.err
3863 cat conftest.err >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } &&
3866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3867 { (case "(($ac_try" in
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872 (eval "$ac_try") 2>&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; } &&
3876 { ac_try='test -s conftest.$ac_objext'
3877 { (case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882 (eval "$ac_try") 2>&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; }; then
3886 ac_cv_header_stdc=yes
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3891 ac_cv_header_stdc=no
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 if test $ac_cv_header_stdc = yes; then
3897 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3898 cat >conftest.$ac_ext <<_ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3908 $EGREP "memchr" >/dev/null 2>&1; then
3911 ac_cv_header_stdc=no
3917 if test $ac_cv_header_stdc = yes; then
3918 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3919 cat >conftest.$ac_ext <<_ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3929 $EGREP "free" >/dev/null 2>&1; then
3932 ac_cv_header_stdc=no
3938 if test $ac_cv_header_stdc = yes; then
3939 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3940 if test "$cross_compiling" = yes; then
3943 cat >conftest.$ac_ext <<_ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3951 #if ((' ' & 0x0FF) == 0x020)
3952 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3953 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3955 # define ISLOWER(c) \
3956 (('a' <= (c) && (c) <= 'i') \
3957 || ('j' <= (c) && (c) <= 'r') \
3958 || ('s' <= (c) && (c) <= 'z'))
3959 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3962 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3967 for (i = 0; i < 256; i++)
3968 if (XOR (islower (i), ISLOWER (i))
3969 || toupper (i) != TOUPPER (i))
3974 rm -f conftest$ac_exeext
3975 if { (ac_try="$ac_link"
3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978 *) ac_try_echo=$ac_try;;
3980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3981 (eval "$ac_link") 2>&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3985 { (case "(($ac_try" in
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3990 (eval "$ac_try") 2>&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; }; then
3996 echo "$as_me: program exited with status $ac_status" >&5
3997 echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
4001 ac_cv_header_stdc=no
4003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4009 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4010 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4011 if test $ac_cv_header_stdc = yes; then
4013 cat >>confdefs.h <<\_ACEOF
4014 #define STDC_HEADERS 1
4019 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4029 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4030 inttypes.h stdint.h unistd.h
4032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 cat >conftest.$ac_ext <<_ACEOF
4041 cat confdefs.h >>conftest.$ac_ext
4042 cat >>conftest.$ac_ext <<_ACEOF
4043 /* end confdefs.h. */
4044 $ac_includes_default
4046 #include <$ac_header>
4048 rm -f conftest.$ac_objext
4049 if { (ac_try="$ac_compile"
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4055 (eval "$ac_compile") 2>conftest.er1
4057 grep -v '^ *+' conftest.er1 >conftest.err
4059 cat conftest.err >&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); } &&
4062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4063 { (case "(($ac_try" in
4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4068 (eval "$ac_try") 2>&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; } &&
4072 { ac_try='test -s conftest.$ac_objext'
4073 { (case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078 (eval "$ac_try") 2>&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; }; then
4082 eval "$as_ac_Header=yes"
4084 echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.$ac_ext >&5
4087 eval "$as_ac_Header=no"
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 ac_res=`eval echo '${'$as_ac_Header'}'`
4093 { echo "$as_me:$LINENO: result: $ac_res" >&5
4094 echo "${ECHO_T}$ac_res" >&6; }
4095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4096 cat >>confdefs.h <<_ACEOF
4097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4105 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4106 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4107 if test "${ac_cv_c_bigendian+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 # See if sys/param.h defines the BYTE_ORDER macro.
4111 cat >conftest.$ac_ext <<_ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h. */
4117 #include <sys/types.h>
4118 #include <sys/param.h>
4123 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4131 rm -f conftest.$ac_objext
4132 if { (ac_try="$ac_compile"
4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135 *) ac_try_echo=$ac_try;;
4137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4138 (eval "$ac_compile") 2>conftest.er1
4140 grep -v '^ *+' conftest.er1 >conftest.err
4142 cat conftest.err >&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } &&
4145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4146 { (case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_try") 2>&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; } &&
4155 { ac_try='test -s conftest.$ac_objext'
4156 { (case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_try") 2>&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; }; then
4165 # It does; now see whether it defined to BIG_ENDIAN or not.
4166 cat >conftest.$ac_ext <<_ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4172 #include <sys/types.h>
4173 #include <sys/param.h>
4178 #if BYTE_ORDER != BIG_ENDIAN
4186 rm -f conftest.$ac_objext
4187 if { (ac_try="$ac_compile"
4189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4193 (eval "$ac_compile") 2>conftest.er1
4195 grep -v '^ *+' conftest.er1 >conftest.err
4197 cat conftest.err >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } &&
4200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4201 { (case "(($ac_try" in
4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203 *) ac_try_echo=$ac_try;;
4205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4206 (eval "$ac_try") 2>&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; } &&
4210 { ac_try='test -s conftest.$ac_objext'
4211 { (case "(($ac_try" in
4212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213 *) ac_try_echo=$ac_try;;
4215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4216 (eval "$ac_try") 2>&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; }; then
4220 ac_cv_c_bigendian=yes
4222 echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4225 ac_cv_c_bigendian=no
4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.$ac_ext >&5
4233 # It does not; compile a test program.
4234 if test "$cross_compiling" = yes; then
4235 # try to guess the endianness by grepping values into an object file
4236 ac_cv_c_bigendian=unknown
4237 cat >conftest.$ac_ext <<_ACEOF
4240 cat confdefs.h >>conftest.$ac_ext
4241 cat >>conftest.$ac_ext <<_ACEOF
4242 /* end confdefs.h. */
4243 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4244 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4245 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4246 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4247 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4248 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4252 _ascii (); _ebcdic ();
4257 rm -f conftest.$ac_objext
4258 if { (ac_try="$ac_compile"
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_compile") 2>conftest.er1
4266 grep -v '^ *+' conftest.er1 >conftest.err
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } &&
4271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4272 { (case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_try") 2>&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; } &&
4281 { ac_try='test -s conftest.$ac_objext'
4282 { (case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287 (eval "$ac_try") 2>&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; }; then
4291 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4292 ac_cv_c_bigendian=yes
4294 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4295 if test "$ac_cv_c_bigendian" = unknown; then
4296 ac_cv_c_bigendian=no
4298 # finding both strings is unlikely to happen, but who knows?
4299 ac_cv_c_bigendian=unknown
4303 echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 cat >conftest.$ac_ext <<_ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4317 $ac_includes_default
4322 /* Are we little or big endian? From Harbison&Steele. */
4326 char c[sizeof (long int)];
4329 return u.c[sizeof (long int) - 1] == 1;
4335 rm -f conftest$ac_exeext
4336 if { (ac_try="$ac_link"
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4342 (eval "$ac_link") 2>&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4346 { (case "(($ac_try" in
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_try") 2>&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; }; then
4355 ac_cv_c_bigendian=no
4357 echo "$as_me: program exited with status $ac_status" >&5
4358 echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4362 ac_cv_c_bigendian=yes
4364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4372 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4373 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4374 case $ac_cv_c_bigendian in
4382 { { echo "$as_me:$LINENO: error: unknown endianness
4383 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4384 echo "$as_me: error: unknown endianness
4385 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4386 { (exit 1); exit 1; }; } ;;
4390 if test "$cross_compiling" = yes; then
4391 LLVM_CROSS_COMPILING=1
4394 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4395 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4396 if test "${ac_cv_build_exeext+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4400 ac_cv_build_exeext=.exe
4402 ac_build_prefix=${build_alias}-
4404 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4405 set dummy ${ac_build_prefix}gcc; ac_word=$2
4406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4408 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 if test -n "$BUILD_CC"; then
4412 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4421 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 BUILD_CC=$ac_cv_prog_BUILD_CC
4432 if test -n "$BUILD_CC"; then
4433 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4434 echo "${ECHO_T}$BUILD_CC" >&6; }
4436 { echo "$as_me:$LINENO: result: no" >&5
4437 echo "${ECHO_T}no" >&6; }
4441 if test -z "$BUILD_CC"; then
4442 # Extract the first word of "gcc", so it can be a program name with args.
4443 set dummy gcc; ac_word=$2
4444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4446 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 if test -n "$BUILD_CC"; then
4450 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4459 ac_cv_prog_BUILD_CC="gcc"
4460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 BUILD_CC=$ac_cv_prog_BUILD_CC
4470 if test -n "$BUILD_CC"; then
4471 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4472 echo "${ECHO_T}$BUILD_CC" >&6; }
4474 { echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6; }
4479 if test -z "$BUILD_CC"; then
4480 # Extract the first word of "cc", so it can be a program name with args.
4481 set dummy cc; ac_word=$2
4482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4484 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4485 echo $ECHO_N "(cached) $ECHO_C" >&6
4487 if test -n "$BUILD_CC"; then
4488 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4498 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4499 ac_prog_rejected=yes
4502 ac_cv_prog_BUILD_CC="cc"
4503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4510 if test $ac_prog_rejected = yes; then
4511 # We found a bogon in the path, so make sure we never use it.
4512 set dummy $ac_cv_prog_BUILD_CC
4514 if test $# != 0; then
4515 # We chose a different compiler from the bogus one.
4516 # However, it has the same basename, so the bogon will be chosen
4517 # first if we set BUILD_CC to just the basename; use the full file name.
4519 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4524 BUILD_CC=$ac_cv_prog_BUILD_CC
4525 if test -n "$BUILD_CC"; then
4526 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4527 echo "${ECHO_T}$BUILD_CC" >&6; }
4529 { echo "$as_me:$LINENO: result: no" >&5
4530 echo "${ECHO_T}no" >&6; }
4536 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4537 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4538 { (exit 1); exit 1; }; }
4539 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4541 echo 'int main () { return 0; }' > conftest.$ac_ext
4543 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4544 (eval $ac_build_link) 2>&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; then
4548 for file in conftest.*; do
4550 *.c | *.o | *.obj | *.dSYM) ;;
4551 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4555 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4556 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4557 { (exit 1); exit 1; }; }
4560 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4565 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4566 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4567 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4568 ac_build_exeext=$BUILD_EXEEXT
4570 ac_build_prefix=${build_alias}-
4571 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4572 set dummy ${ac_build_prefix}g++; ac_word=$2
4573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4575 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 if test -n "$BUILD_CXX"; then
4579 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 test -z "$as_dir" && as_dir=.
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4588 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4598 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4599 if test -n "$BUILD_CXX"; then
4600 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4601 echo "${ECHO_T}$BUILD_CXX" >&6; }
4603 { echo "$as_me:$LINENO: result: no" >&5
4604 echo "${ECHO_T}no" >&6; }
4608 if test -z "$BUILD_CXX"; then
4609 # Extract the first word of "g++", so it can be a program name with args.
4610 set dummy g++; ac_word=$2
4611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4613 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 if test -n "$BUILD_CXX"; then
4617 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 test -z "$as_dir" && as_dir=.
4624 for ac_exec_ext in '' $ac_executable_extensions; do
4625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4626 ac_cv_prog_BUILD_CXX="g++"
4627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4637 if test -n "$BUILD_CXX"; then
4638 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4639 echo "${ECHO_T}$BUILD_CXX" >&6; }
4641 { echo "$as_me:$LINENO: result: no" >&5
4642 echo "${ECHO_T}no" >&6; }
4646 if test -z "$BUILD_CXX"; then
4647 # Extract the first word of "c++", so it can be a program name with args.
4648 set dummy c++; ac_word=$2
4649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4651 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 if test -n "$BUILD_CXX"; then
4655 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4666 ac_prog_rejected=yes
4669 ac_cv_prog_BUILD_CXX="c++"
4670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 if test $ac_prog_rejected = yes; then
4678 # We found a bogon in the path, so make sure we never use it.
4679 set dummy $ac_cv_prog_BUILD_CXX
4681 if test $# != 0; then
4682 # We chose a different compiler from the bogus one.
4683 # However, it has the same basename, so the bogon will be chosen
4684 # first if we set BUILD_CXX to just the basename; use the full file name.
4686 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4691 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4692 if test -n "$BUILD_CXX"; then
4693 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4694 echo "${ECHO_T}$BUILD_CXX" >&6; }
4696 { echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6; }
4704 LLVM_CROSS_COMPILING=0
4708 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4719 # Check whether --enable-optimized was given.
4720 if test "${enable_optimized+set}" = set; then
4721 enableval=$enable_optimized;
4726 if test ${enableval} = "no" ; then
4730 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4734 # Check whether --enable-assertions was given.
4735 if test "${enable_assertions+set}" = set; then
4736 enableval=$enable_assertions;
4741 if test ${enableval} = "yes" ; then
4745 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4749 # Check whether --enable-expensive-checks was given.
4750 if test "${enable_expensive_checks+set}" = set; then
4751 enableval=$enable_expensive_checks;
4756 if test ${enableval} = "yes" ; then
4757 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4759 EXPENSIVE_CHECKS=yes
4762 ENABLE_EXPENSIVE_CHECKS=
4768 # Check whether --enable-debug-runtime was given.
4769 if test "${enable_debug_runtime+set}" = set; then
4770 enableval=$enable_debug_runtime;
4775 if test ${enableval} = "no" ; then
4779 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4783 # Check whether --enable-jit was given.
4784 if test "${enable_jit+set}" = set; then
4785 enableval=$enable_jit;
4790 if test ${enableval} = "no"
4795 case "$llvm_cv_target_arch" in
4796 x86) TARGET_HAS_JIT=1
4798 Sparc) TARGET_HAS_JIT=0
4800 PowerPC) TARGET_HAS_JIT=1
4802 x86_64) TARGET_HAS_JIT=1
4804 Alpha) TARGET_HAS_JIT=1
4806 IA64) TARGET_HAS_JIT=0
4808 ARM) TARGET_HAS_JIT=0
4810 Mips) TARGET_HAS_JIT=0
4812 PIC16) TARGET_HAS_JIT=0
4819 # Check whether --enable-doxygen was given.
4820 if test "${enable_doxygen+set}" = set; then
4821 enableval=$enable_doxygen;
4826 case "$enableval" in
4827 yes) ENABLE_DOXYGEN=1
4829 no) ENABLE_DOXYGEN=0
4831 default) ENABLE_DOXYGEN=0
4833 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4834 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4835 { (exit 1); exit 1; }; } ;;
4838 # Check whether --enable-threads was given.
4839 if test "${enable_threads+set}" = set; then
4840 enableval=$enable_threads;
4845 case "$enableval" in
4846 yes) ENABLE_THREADS=1
4848 no) ENABLE_THREADS=0
4850 default) ENABLE_THREADS=1
4852 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4853 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4854 { (exit 1); exit 1; }; } ;;
4857 cat >>confdefs.h <<_ACEOF
4858 #define ENABLE_THREADS $ENABLE_THREADS
4862 # Check whether --enable-pic was given.
4863 if test "${enable_pic+set}" = set; then
4864 enableval=$enable_pic;
4869 case "$enableval" in
4874 default) ENABLE_PIC=0
4876 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4877 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4878 { (exit 1); exit 1; }; } ;;
4881 cat >>confdefs.h <<_ACEOF
4882 #define ENABLE_PIC $ENABLE_PIC
4887 # Check whether --enable-targets was given.
4888 if test "${enable_targets+set}" = set; then
4889 enableval=$enable_targets;
4894 case "$enableval" in
4895 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;;
4897 case "$llvm_cv_target_arch" in
4898 x86) TARGETS_TO_BUILD="X86" ;;
4899 x86_64) TARGETS_TO_BUILD="X86" ;;
4900 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4901 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4902 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4903 IA64) TARGETS_TO_BUILD="IA64" ;;
4904 ARM) TARGETS_TO_BUILD="ARM" ;;
4905 Mips) TARGETS_TO_BUILD="Mips" ;;
4906 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4907 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4908 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4909 echo "$as_me: error: Can not set target to build" >&2;}
4910 { (exit 1); exit 1; }; } ;;
4913 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4915 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4916 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4917 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4918 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4919 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4920 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4921 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4922 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4923 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4924 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4925 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4926 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4927 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4928 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4929 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4930 { (exit 1); exit 1; }; } ;;
4935 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4938 # Check whether --enable-cbe-printf-a was given.
4939 if test "${enable_cbe_printf_a+set}" = set; then
4940 enableval=$enable_cbe_printf_a;
4945 case "$enableval" in
4946 yes) ENABLE_CBE_PRINTF_A=1
4948 no) ENABLE_CBE_PRINTF_A=0
4950 default) ENABLE_CBE_PRINTF_A=1
4952 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4953 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4954 { (exit 1); exit 1; }; } ;;
4957 cat >>confdefs.h <<_ACEOF
4958 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4963 # Check whether --with-llvmgccdir was given.
4964 if test "${with_llvmgccdir+set}" = set; then
4965 withval=$with_llvmgccdir;
4971 default) WITH_LLVMGCCDIR=default ;;
4972 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4973 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4974 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4975 { (exit 1); exit 1; }; } ;;
4979 # Check whether --with-llvmgcc was given.
4980 if test "${with_llvmgcc+set}" = set; then
4981 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4987 # Check whether --with-llvmgxx was given.
4988 if test "${with_llvmgxx+set}" = set; then
4989 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4994 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4995 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4996 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4997 { (exit 1); exit 1; }; };
5000 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5001 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5002 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5003 { (exit 1); exit 1; }; };
5007 # Check whether --with-extra-options was given.
5008 if test "${with_extra_options+set}" = set; then
5009 withval=$with_extra_options;
5015 default) EXTRA_OPTIONS= ;;
5016 *) EXTRA_OPTIONS=$withval ;;
5018 EXTRA_OPTIONS=$EXTRA_OPTIONS
5021 # Check whether --enable-bindings was given.
5022 if test "${enable_bindings+set}" = set; then
5023 enableval=$enable_bindings;
5028 BINDINGS_TO_BUILD=""
5029 case "$enableval" in
5030 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5031 all ) BINDINGS_TO_BUILD="ocaml" ;;
5032 none | no) BINDINGS_TO_BUILD="" ;;
5033 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5034 case "$a_binding" in
5035 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5036 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5037 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5038 { (exit 1); exit 1; }; } ;;
5045 # Check whether --with-ocaml-libdir was given.
5046 if test "${with_ocaml_libdir+set}" = set; then
5047 withval=$with_ocaml_libdir;
5053 auto) with_ocaml_libdir="$withval" ;;
5054 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5055 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5056 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5057 { (exit 1); exit 1; }; } ;;
5062 ac_cpp='$CPP $CPPFLAGS'
5063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5066 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5067 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5068 # On Suns, sometimes $CPP names a directory.
5069 if test -n "$CPP" && test -d "$CPP"; then
5072 if test -z "$CPP"; then
5073 if test "${ac_cv_prog_CPP+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 # Double quotes because CPP needs to be expanded
5077 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5080 for ac_c_preproc_warn_flag in '' yes
5082 # Use a header file that comes with gcc, so configuring glibc
5083 # with a fresh cross-compiler works.
5084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5085 # <limits.h> exists even on freestanding compilers.
5086 # On the NeXT, cc -E runs the code through the compiler's parser,
5087 # not just through cpp. "Syntax error" is here to catch this case.
5088 cat >conftest.$ac_ext <<_ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h. */
5095 # include <limits.h>
5097 # include <assert.h>
5101 if { (ac_try="$ac_cpp conftest.$ac_ext"
5103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104 *) ac_try_echo=$ac_try;;
5106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5109 grep -v '^ *+' conftest.er1 >conftest.err
5111 cat conftest.err >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } >/dev/null; then
5114 if test -s conftest.err; then
5115 ac_cpp_err=$ac_c_preproc_warn_flag
5116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5123 if test -z "$ac_cpp_err"; then
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5129 # Broken: fails on valid input.
5133 rm -f conftest.err conftest.$ac_ext
5135 # OK, works on sane cases. Now check whether nonexistent headers
5136 # can be detected and how.
5137 cat >conftest.$ac_ext <<_ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5143 #include <ac_nonexistent.h>
5145 if { (ac_try="$ac_cpp conftest.$ac_ext"
5147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148 *) ac_try_echo=$ac_try;;
5150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5153 grep -v '^ *+' conftest.er1 >conftest.err
5155 cat conftest.err >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } >/dev/null; then
5158 if test -s conftest.err; then
5159 ac_cpp_err=$ac_c_preproc_warn_flag
5160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5167 if test -z "$ac_cpp_err"; then
5168 # Broken: success on invalid input.
5171 echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5174 # Passes both tests.
5179 rm -f conftest.err conftest.$ac_ext
5182 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5183 rm -f conftest.err conftest.$ac_ext
5184 if $ac_preproc_ok; then
5196 { echo "$as_me:$LINENO: result: $CPP" >&5
5197 echo "${ECHO_T}$CPP" >&6; }
5199 for ac_c_preproc_warn_flag in '' yes
5201 # Use a header file that comes with gcc, so configuring glibc
5202 # with a fresh cross-compiler works.
5203 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5204 # <limits.h> exists even on freestanding compilers.
5205 # On the NeXT, cc -E runs the code through the compiler's parser,
5206 # not just through cpp. "Syntax error" is here to catch this case.
5207 cat >conftest.$ac_ext <<_ACEOF
5210 cat confdefs.h >>conftest.$ac_ext
5211 cat >>conftest.$ac_ext <<_ACEOF
5212 /* end confdefs.h. */
5214 # include <limits.h>
5216 # include <assert.h>
5220 if { (ac_try="$ac_cpp conftest.$ac_ext"
5222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223 *) ac_try_echo=$ac_try;;
5225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5228 grep -v '^ *+' conftest.er1 >conftest.err
5230 cat conftest.err >&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } >/dev/null; then
5233 if test -s conftest.err; then
5234 ac_cpp_err=$ac_c_preproc_warn_flag
5235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5242 if test -z "$ac_cpp_err"; then
5245 echo "$as_me: failed program was:" >&5
5246 sed 's/^/| /' conftest.$ac_ext >&5
5248 # Broken: fails on valid input.
5252 rm -f conftest.err conftest.$ac_ext
5254 # OK, works on sane cases. Now check whether nonexistent headers
5255 # can be detected and how.
5256 cat >conftest.$ac_ext <<_ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5262 #include <ac_nonexistent.h>
5264 if { (ac_try="$ac_cpp conftest.$ac_ext"
5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267 *) ac_try_echo=$ac_try;;
5269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5272 grep -v '^ *+' conftest.er1 >conftest.err
5274 cat conftest.err >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } >/dev/null; then
5277 if test -s conftest.err; then
5278 ac_cpp_err=$ac_c_preproc_warn_flag
5279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5286 if test -z "$ac_cpp_err"; then
5287 # Broken: success on invalid input.
5290 echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5293 # Passes both tests.
5298 rm -f conftest.err conftest.$ac_ext
5301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5302 rm -f conftest.err conftest.$ac_ext
5303 if $ac_preproc_ok; then
5306 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5307 See \`config.log' for more details." >&5
5308 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5309 See \`config.log' for more details." >&2;}
5310 { (exit 1); exit 1; }; }
5314 ac_cpp='$CPP $CPPFLAGS'
5315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5320 ac_cpp='$CPP $CPPFLAGS'
5321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5324 if test -n "$ac_tool_prefix"; then
5327 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5328 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5331 if test "${ac_cv_prog_CC+set}" = set; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
5334 if test -n "$CC"; then
5335 ac_cv_prog_CC="$CC" # Let the user override the test.
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5344 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 if test -n "$CC"; then
5356 { echo "$as_me:$LINENO: result: $CC" >&5
5357 echo "${ECHO_T}$CC" >&6; }
5359 { echo "$as_me:$LINENO: result: no" >&5
5360 echo "${ECHO_T}no" >&6; }
5364 test -n "$CC" && break
5367 if test -z "$CC"; then
5371 # Extract the first word of "$ac_prog", so it can be a program name with args.
5372 set dummy $ac_prog; ac_word=$2
5373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5375 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 if test -n "$ac_ct_CC"; then
5379 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 test -z "$as_dir" && as_dir=.
5386 for ac_exec_ext in '' $ac_executable_extensions; do
5387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5388 ac_cv_prog_ac_ct_CC="$ac_prog"
5389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5399 if test -n "$ac_ct_CC"; then
5400 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5401 echo "${ECHO_T}$ac_ct_CC" >&6; }
5403 { echo "$as_me:$LINENO: result: no" >&5
5404 echo "${ECHO_T}no" >&6; }
5408 test -n "$ac_ct_CC" && break
5411 if test "x$ac_ct_CC" = x; then
5414 case $cross_compiling:$ac_tool_warned in
5416 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5417 whose name does not start with the host triplet. If you think this
5418 configuration is useful to you, please write to autoconf@gnu.org." >&5
5419 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5420 whose name does not start with the host triplet. If you think this
5421 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5422 ac_tool_warned=yes ;;
5429 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5430 See \`config.log' for more details." >&5
5431 echo "$as_me: error: no acceptable C compiler found in \$PATH
5432 See \`config.log' for more details." >&2;}
5433 { (exit 1); exit 1; }; }
5435 # Provide some information about the compiler.
5436 echo "$as_me:$LINENO: checking for C compiler version" >&5
5437 ac_compiler=`set X $ac_compile; echo $2`
5438 { (ac_try="$ac_compiler --version >&5"
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_compiler --version >&5") 2>&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }
5448 { (ac_try="$ac_compiler -v >&5"
5450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451 *) ac_try_echo=$ac_try;;
5453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454 (eval "$ac_compiler -v >&5") 2>&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }
5458 { (ac_try="$ac_compiler -V >&5"
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_compiler -V >&5") 2>&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }
5469 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5470 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5471 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 cat >conftest.$ac_ext <<_ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5492 rm -f conftest.$ac_objext
5493 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5501 grep -v '^ *+' conftest.er1 >conftest.err
5503 cat conftest.err >&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); } &&
5506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5507 { (case "(($ac_try" in
5508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5509 *) ac_try_echo=$ac_try;;
5511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5512 (eval "$ac_try") 2>&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); }; } &&
5516 { ac_try='test -s conftest.$ac_objext'
5517 { (case "(($ac_try" in
5518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5519 *) ac_try_echo=$ac_try;;
5521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5522 (eval "$ac_try") 2>&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); }; }; then
5528 echo "$as_me: failed program was:" >&5
5529 sed 's/^/| /' conftest.$ac_ext >&5
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5538 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5539 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5540 GCC=`test $ac_compiler_gnu = yes && echo yes`
5541 ac_test_CFLAGS=${CFLAGS+set}
5542 ac_save_CFLAGS=$CFLAGS
5543 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5544 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5545 if test "${ac_cv_prog_cc_g+set}" = set; then
5546 echo $ECHO_N "(cached) $ECHO_C" >&6
5548 ac_save_c_werror_flag=$ac_c_werror_flag
5549 ac_c_werror_flag=yes
5552 cat >conftest.$ac_ext <<_ACEOF
5555 cat confdefs.h >>conftest.$ac_ext
5556 cat >>conftest.$ac_ext <<_ACEOF
5557 /* end confdefs.h. */
5567 rm -f conftest.$ac_objext
5568 if { (ac_try="$ac_compile"
5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5574 (eval "$ac_compile") 2>conftest.er1
5576 grep -v '^ *+' conftest.er1 >conftest.err
5578 cat conftest.err >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } &&
5581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5582 { (case "(($ac_try" in
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_try") 2>&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; } &&
5591 { ac_try='test -s conftest.$ac_objext'
5592 { (case "(($ac_try" in
5593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5594 *) ac_try_echo=$ac_try;;
5596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5597 (eval "$ac_try") 2>&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; }; then
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5607 cat >conftest.$ac_ext <<_ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5622 rm -f conftest.$ac_objext
5623 if { (ac_try="$ac_compile"
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629 (eval "$ac_compile") 2>conftest.er1
5631 grep -v '^ *+' conftest.er1 >conftest.err
5633 cat conftest.err >&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } &&
5636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5637 { (case "(($ac_try" in
5638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5639 *) ac_try_echo=$ac_try;;
5641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5642 (eval "$ac_try") 2>&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; } &&
5646 { ac_try='test -s conftest.$ac_objext'
5647 { (case "(($ac_try" in
5648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649 *) ac_try_echo=$ac_try;;
5651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5652 (eval "$ac_try") 2>&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); }; }; then
5658 echo "$as_me: failed program was:" >&5
5659 sed 's/^/| /' conftest.$ac_ext >&5
5661 ac_c_werror_flag=$ac_save_c_werror_flag
5663 cat >conftest.$ac_ext <<_ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5678 rm -f conftest.$ac_objext
5679 if { (ac_try="$ac_compile"
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_compile") 2>conftest.er1
5687 grep -v '^ *+' conftest.er1 >conftest.err
5689 cat conftest.err >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } &&
5692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5693 { (case "(($ac_try" in
5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698 (eval "$ac_try") 2>&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; } &&
5702 { ac_try='test -s conftest.$ac_objext'
5703 { (case "(($ac_try" in
5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708 (eval "$ac_try") 2>&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); }; }; then
5714 echo "$as_me: failed program was:" >&5
5715 sed 's/^/| /' conftest.$ac_ext >&5
5720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727 ac_c_werror_flag=$ac_save_c_werror_flag
5729 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5730 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5731 if test "$ac_test_CFLAGS" = set; then
5732 CFLAGS=$ac_save_CFLAGS
5733 elif test $ac_cv_prog_cc_g = yes; then
5734 if test "$GCC" = yes; then
5740 if test "$GCC" = yes; then
5746 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5747 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5748 if test "${ac_cv_prog_cc_c89+set}" = set; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5751 ac_cv_prog_cc_c89=no
5753 cat >conftest.$ac_ext <<_ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5761 #include <sys/types.h>
5762 #include <sys/stat.h>
5763 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5764 struct buf { int x; };
5765 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5766 static char *e (p, i)
5772 static char *f (char * (*g) (char **, int), char **p, ...)
5777 s = g (p, va_arg (v,int));
5782 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5783 function prototypes and stuff, but not '\xHH' hex character constants.
5784 These don't provoke an error unfortunately, instead are silently treated
5785 as 'x'. The following induces an error, until -std is added to get
5786 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5787 array size at least. It's necessary to write '\x00'==0 to get something
5788 that's true only with -std. */
5789 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5791 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5792 inside strings and character constants. */
5794 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5796 int test (int i, double x);
5797 struct s1 {int (*f) (int a);};
5798 struct s2 {int (*f) (double a);};
5799 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5805 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5810 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5811 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5813 CC="$ac_save_CC $ac_arg"
5814 rm -f conftest.$ac_objext
5815 if { (ac_try="$ac_compile"
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_compile") 2>conftest.er1
5823 grep -v '^ *+' conftest.er1 >conftest.err
5825 cat conftest.err >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } &&
5828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5829 { (case "(($ac_try" in
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834 (eval "$ac_try") 2>&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; } &&
5838 { ac_try='test -s conftest.$ac_objext'
5839 { (case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844 (eval "$ac_try") 2>&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5848 ac_cv_prog_cc_c89=$ac_arg
5850 echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5856 rm -f core conftest.err conftest.$ac_objext
5857 test "x$ac_cv_prog_cc_c89" != "xno" && break
5859 rm -f conftest.$ac_ext
5864 case "x$ac_cv_prog_cc_c89" in
5866 { echo "$as_me:$LINENO: result: none needed" >&5
5867 echo "${ECHO_T}none needed" >&6; } ;;
5869 { echo "$as_me:$LINENO: result: unsupported" >&5
5870 echo "${ECHO_T}unsupported" >&6; } ;;
5872 CC="$CC $ac_cv_prog_cc_c89"
5873 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5874 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5879 ac_cpp='$CPP $CPPFLAGS'
5880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5885 ac_cpp='$CXXCPP $CPPFLAGS'
5886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5889 if test -z "$CXX"; then
5890 if test -n "$CCC"; then
5893 if test -n "$ac_tool_prefix"; then
5896 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5900 if test "${ac_cv_prog_CXX+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 if test -n "$CXX"; then
5904 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 test -z "$as_dir" && as_dir=.
5911 for ac_exec_ext in '' $ac_executable_extensions; do
5912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5913 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 if test -n "$CXX"; then
5925 { echo "$as_me:$LINENO: result: $CXX" >&5
5926 echo "${ECHO_T}$CXX" >&6; }
5928 { echo "$as_me:$LINENO: result: no" >&5
5929 echo "${ECHO_T}no" >&6; }
5933 test -n "$CXX" && break
5936 if test -z "$CXX"; then
5940 # Extract the first word of "$ac_prog", so it can be a program name with args.
5941 set dummy $ac_prog; ac_word=$2
5942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5944 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 if test -n "$ac_ct_CXX"; then
5948 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 test -z "$as_dir" && as_dir=.
5955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5957 ac_cv_prog_ac_ct_CXX="$ac_prog"
5958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5967 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5968 if test -n "$ac_ct_CXX"; then
5969 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5970 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5972 { echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6; }
5977 test -n "$ac_ct_CXX" && break
5980 if test "x$ac_ct_CXX" = x; then
5983 case $cross_compiling:$ac_tool_warned in
5985 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5986 whose name does not start with the host triplet. If you think this
5987 configuration is useful to you, please write to autoconf@gnu.org." >&5
5988 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5989 whose name does not start with the host triplet. If you think this
5990 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5991 ac_tool_warned=yes ;;
5999 # Provide some information about the compiler.
6000 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6001 ac_compiler=`set X $ac_compile; echo $2`
6002 { (ac_try="$ac_compiler --version >&5"
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_compiler --version >&5") 2>&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }
6012 { (ac_try="$ac_compiler -v >&5"
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_compiler -v >&5") 2>&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }
6022 { (ac_try="$ac_compiler -V >&5"
6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025 *) ac_try_echo=$ac_try;;
6027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_compiler -V >&5") 2>&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }
6033 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6034 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6035 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 cat >conftest.$ac_ext <<_ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6056 rm -f conftest.$ac_objext
6057 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
6065 grep -v '^ *+' conftest.er1 >conftest.err
6067 cat conftest.err >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } &&
6070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6071 { (case "(($ac_try" in
6072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073 *) ac_try_echo=$ac_try;;
6075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076 (eval "$ac_try") 2>&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); }; } &&
6080 { ac_try='test -s conftest.$ac_objext'
6081 { (case "(($ac_try" in
6082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083 *) ac_try_echo=$ac_try;;
6085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6086 (eval "$ac_try") 2>&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; }; then
6092 echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6102 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6103 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6104 GXX=`test $ac_compiler_gnu = yes && echo yes`
6105 ac_test_CXXFLAGS=${CXXFLAGS+set}
6106 ac_save_CXXFLAGS=$CXXFLAGS
6107 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6108 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6109 if test "${ac_cv_prog_cxx_g+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6113 ac_cxx_werror_flag=yes
6116 cat >conftest.$ac_ext <<_ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h. */
6131 rm -f conftest.$ac_objext
6132 if { (ac_try="$ac_compile"
6134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6135 *) ac_try_echo=$ac_try;;
6137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6138 (eval "$ac_compile") 2>conftest.er1
6140 grep -v '^ *+' conftest.er1 >conftest.err
6142 cat conftest.err >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } &&
6145 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6146 { (case "(($ac_try" in
6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148 *) ac_try_echo=$ac_try;;
6150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151 (eval "$ac_try") 2>&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }; } &&
6155 { ac_try='test -s conftest.$ac_objext'
6156 { (case "(($ac_try" in
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161 (eval "$ac_try") 2>&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); }; }; then
6165 ac_cv_prog_cxx_g=yes
6167 echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6171 cat >conftest.$ac_ext <<_ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6186 rm -f conftest.$ac_objext
6187 if { (ac_try="$ac_compile"
6189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190 *) ac_try_echo=$ac_try;;
6192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6193 (eval "$ac_compile") 2>conftest.er1
6195 grep -v '^ *+' conftest.er1 >conftest.err
6197 cat conftest.err >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } &&
6200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6201 { (case "(($ac_try" in
6202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203 *) ac_try_echo=$ac_try;;
6205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6206 (eval "$ac_try") 2>&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; } &&
6210 { ac_try='test -s conftest.$ac_objext'
6211 { (case "(($ac_try" in
6212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213 *) ac_try_echo=$ac_try;;
6215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216 (eval "$ac_try") 2>&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; }; then
6222 echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6225 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6227 cat >conftest.$ac_ext <<_ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6242 rm -f conftest.$ac_objext
6243 if { (ac_try="$ac_compile"
6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249 (eval "$ac_compile") 2>conftest.er1
6251 grep -v '^ *+' conftest.er1 >conftest.err
6253 cat conftest.err >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } &&
6256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6257 { (case "(($ac_try" in
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262 (eval "$ac_try") 2>&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; } &&
6266 { ac_try='test -s conftest.$ac_objext'
6267 { (case "(($ac_try" in
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_try") 2>&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; }; then
6276 ac_cv_prog_cxx_g=yes
6278 echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6293 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6294 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6295 if test "$ac_test_CXXFLAGS" = set; then
6296 CXXFLAGS=$ac_save_CXXFLAGS
6297 elif test $ac_cv_prog_cxx_g = yes; then
6298 if test "$GXX" = yes; then
6304 if test "$GXX" = yes; then
6311 ac_cpp='$CPP $CPPFLAGS'
6312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6316 { echo "$as_me:$LINENO: checking " >&5
6317 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6318 if test "${ac_cv_has_flex+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 for ac_prog in flex lex
6323 # Extract the first word of "$ac_prog", so it can be a program name with args.
6324 set dummy $ac_prog; ac_word=$2
6325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6327 if test "${ac_cv_prog_LEX+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 if test -n "$LEX"; then
6331 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6340 ac_cv_prog_LEX="$ac_prog"
6341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 if test -n "$LEX"; then
6352 { echo "$as_me:$LINENO: result: $LEX" >&5
6353 echo "${ECHO_T}$LEX" >&6; }
6355 { echo "$as_me:$LINENO: result: no" >&5
6356 echo "${ECHO_T}no" >&6; }
6360 test -n "$LEX" && break
6362 test -n "$LEX" || LEX=":"
6364 if test -z "$LEXLIB"
6366 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6367 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6368 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 ac_check_lib_save_LIBS=$LIBS
6373 cat >conftest.$ac_ext <<_ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6380 /* Override any GCC internal prototype to avoid an error.
6381 Use char because int might match the return type of a GCC
6382 builtin and then its argument prototype would still apply. */
6395 rm -f conftest.$ac_objext conftest$ac_exeext
6396 if { (ac_try="$ac_link"
6398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399 *) ac_try_echo=$ac_try;;
6401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402 (eval "$ac_link") 2>conftest.er1
6404 grep -v '^ *+' conftest.er1 >conftest.err
6406 cat conftest.err >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } &&
6409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6410 { (case "(($ac_try" in
6411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412 *) ac_try_echo=$ac_try;;
6414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6415 (eval "$ac_try") 2>&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; } &&
6419 { ac_try='test -s conftest$ac_exeext'
6420 { (case "(($ac_try" in
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425 (eval "$ac_try") 2>&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }; then
6429 ac_cv_lib_fl_yywrap=yes
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6434 ac_cv_lib_fl_yywrap=no
6437 rm -f core conftest.err conftest.$ac_objext \
6438 conftest$ac_exeext conftest.$ac_ext
6439 LIBS=$ac_check_lib_save_LIBS
6441 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6442 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6443 if test $ac_cv_lib_fl_yywrap = yes; then
6446 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6447 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6448 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 ac_check_lib_save_LIBS=$LIBS
6453 cat >conftest.$ac_ext <<_ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h. */
6460 /* Override any GCC internal prototype to avoid an error.
6461 Use char because int might match the return type of a GCC
6462 builtin and then its argument prototype would still apply. */
6475 rm -f conftest.$ac_objext conftest$ac_exeext
6476 if { (ac_try="$ac_link"
6478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479 *) ac_try_echo=$ac_try;;
6481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482 (eval "$ac_link") 2>conftest.er1
6484 grep -v '^ *+' conftest.er1 >conftest.err
6486 cat conftest.err >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } &&
6489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6490 { (case "(($ac_try" in
6491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492 *) ac_try_echo=$ac_try;;
6494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495 (eval "$ac_try") 2>&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; } &&
6499 { ac_try='test -s conftest$ac_exeext'
6500 { (case "(($ac_try" in
6501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502 *) ac_try_echo=$ac_try;;
6504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505 (eval "$ac_try") 2>&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; }; then
6509 ac_cv_lib_l_yywrap=yes
6511 echo "$as_me: failed program was:" >&5
6512 sed 's/^/| /' conftest.$ac_ext >&5
6514 ac_cv_lib_l_yywrap=no
6517 rm -f core conftest.err conftest.$ac_objext \
6518 conftest$ac_exeext conftest.$ac_ext
6519 LIBS=$ac_check_lib_save_LIBS
6521 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6522 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6523 if test $ac_cv_lib_l_yywrap = yes; then
6531 if test "x$LEX" != "x:"; then
6532 { echo "$as_me:$LINENO: checking lex output file root" >&5
6533 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6534 if test "${ac_cv_prog_lex_root+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6537 # The minimal lex program is just a single line: %%. But some broken lexes
6538 # (Solaris, I think it was) want two %% lines, so accommodate them.
6539 cat >conftest.l <<_ACEOF
6543 { (ac_try="$LEX conftest.l"
6545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6546 *) ac_try_echo=$ac_try;;
6548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6549 (eval "$LEX conftest.l") 2>&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); }
6553 if test -f lex.yy.c; then
6554 ac_cv_prog_lex_root=lex.yy
6555 elif test -f lexyy.c; then
6556 ac_cv_prog_lex_root=lexyy
6558 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6559 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6560 { (exit 1); exit 1; }; }
6563 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6564 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6566 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6568 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6569 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6570 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 # POSIX says lex can declare yytext either as a pointer or an array; the
6574 # default is implementation-dependent. Figure out which it is, since
6575 # not all implementations provide the %pointer and %array declarations.
6576 ac_cv_prog_lex_yytext_pointer=no
6577 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6579 LIBS="$LIBS $LEXLIB"
6580 cat >conftest.$ac_ext <<_ACEOF
6581 `cat $LEX_OUTPUT_ROOT.c`
6583 rm -f conftest.$ac_objext conftest$ac_exeext
6584 if { (ac_try="$ac_link"
6586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6587 *) ac_try_echo=$ac_try;;
6589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6590 (eval "$ac_link") 2>conftest.er1
6592 grep -v '^ *+' conftest.er1 >conftest.err
6594 cat conftest.err >&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } &&
6597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6598 { (case "(($ac_try" in
6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600 *) ac_try_echo=$ac_try;;
6602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603 (eval "$ac_try") 2>&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; } &&
6607 { ac_try='test -s conftest$ac_exeext'
6608 { (case "(($ac_try" in
6609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610 *) ac_try_echo=$ac_try;;
6612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6613 (eval "$ac_try") 2>&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; }; then
6617 ac_cv_prog_lex_yytext_pointer=yes
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6625 rm -f core conftest.err conftest.$ac_objext \
6626 conftest$ac_exeext conftest.$ac_ext
6628 rm -f "${LEX_OUTPUT_ROOT}.c"
6631 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6632 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6633 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6635 cat >>confdefs.h <<\_ACEOF
6636 #define YYTEXT_POINTER 1
6644 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6645 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6646 if test "$LEX" != "flex"; then
6647 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6648 echo "$as_me: error: flex not found but required" >&2;}
6649 { (exit 1); exit 1; }; }
6655 { echo "$as_me:$LINENO: checking " >&5
6656 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6657 if test "${llvm_cv_has_bison+set}" = set; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6660 for ac_prog in 'bison -y' byacc
6662 # Extract the first word of "$ac_prog", so it can be a program name with args.
6663 set dummy $ac_prog; ac_word=$2
6664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6666 if test "${ac_cv_prog_YACC+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 if test -n "$YACC"; then
6670 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6679 ac_cv_prog_YACC="$ac_prog"
6680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 YACC=$ac_cv_prog_YACC
6690 if test -n "$YACC"; then
6691 { echo "$as_me:$LINENO: result: $YACC" >&5
6692 echo "${ECHO_T}$YACC" >&6; }
6694 { echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6; }
6699 test -n "$YACC" && break
6701 test -n "$YACC" || YACC="yacc"
6704 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6705 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6706 if test "$YACC" != "bison -y"; then
6708 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6709 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6715 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6716 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6717 if test "${lt_cv_path_NM+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6720 if test -n "$NM"; then
6721 # Let the user override the test.
6724 lt_nm_to_check="${ac_tool_prefix}nm"
6725 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6726 lt_nm_to_check="$lt_nm_to_check nm"
6728 for lt_tmp_nm in $lt_nm_to_check; do
6729 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6730 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6732 test -z "$ac_dir" && ac_dir=.
6733 tmp_nm="$ac_dir/$lt_tmp_nm"
6734 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6735 # Check to see if the nm accepts a BSD-compat flag.
6736 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6737 # nm: unknown option "B" ignored
6738 # Tru64's nm complains that /dev/null is an invalid object file
6739 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6740 */dev/null* | *'Invalid file or object type'*)
6741 lt_cv_path_NM="$tmp_nm -B"
6745 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6747 lt_cv_path_NM="$tmp_nm -p"
6751 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6752 continue # so that we can try to find one that supports BSD flags
6761 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6764 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6765 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6770 { echo "$as_me:$LINENO: checking for GNU make" >&5
6771 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6772 if test "${llvm_cv_gnu_make_command+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6775 llvm_cv_gnu_make_command=''
6776 for a in "$MAKE" make gmake gnumake ; do
6777 if test -z "$a" ; then continue ; fi ;
6778 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6780 llvm_cv_gnu_make_command=$a ;
6785 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6786 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6787 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6791 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6792 echo "${ECHO_T}\"Not found\"" >&6; };
6796 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6797 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6799 if test "$LN_S" = "ln -s"; then
6800 { echo "$as_me:$LINENO: result: yes" >&5
6801 echo "${ECHO_T}yes" >&6; }
6803 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6804 echo "${ECHO_T}no, using $LN_S" >&6; }
6807 # Extract the first word of "cmp", so it can be a program name with args.
6808 set dummy cmp; ac_word=$2
6809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6811 if test "${ac_cv_path_CMP+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6839 if test -n "$CMP"; then
6840 { echo "$as_me:$LINENO: result: $CMP" >&5
6841 echo "${ECHO_T}$CMP" >&6; }
6843 { echo "$as_me:$LINENO: result: no" >&5
6844 echo "${ECHO_T}no" >&6; }
6848 # Extract the first word of "cp", so it can be a program name with args.
6849 set dummy cp; ac_word=$2
6850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6852 if test "${ac_cv_path_CP+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6867 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6880 if test -n "$CP"; then
6881 { echo "$as_me:$LINENO: result: $CP" >&5
6882 echo "${ECHO_T}$CP" >&6; }
6884 { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6889 # Extract the first word of "date", so it can be a program name with args.
6890 set dummy date; ac_word=$2
6891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6893 if test "${ac_cv_path_DATE+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6908 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6920 DATE=$ac_cv_path_DATE
6921 if test -n "$DATE"; then
6922 { echo "$as_me:$LINENO: result: $DATE" >&5
6923 echo "${ECHO_T}$DATE" >&6; }
6925 { echo "$as_me:$LINENO: result: no" >&5
6926 echo "${ECHO_T}no" >&6; }
6930 # Extract the first word of "find", so it can be a program name with args.
6931 set dummy find; ac_word=$2
6932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6934 if test "${ac_cv_path_FIND+set}" = set; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6949 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6961 FIND=$ac_cv_path_FIND
6962 if test -n "$FIND"; then
6963 { echo "$as_me:$LINENO: result: $FIND" >&5
6964 echo "${ECHO_T}$FIND" >&6; }
6966 { echo "$as_me:$LINENO: result: no" >&5
6967 echo "${ECHO_T}no" >&6; }
6971 # Extract the first word of "grep", so it can be a program name with args.
6972 set dummy grep; ac_word=$2
6973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6975 if test "${ac_cv_path_GREP+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6990 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7002 GREP=$ac_cv_path_GREP
7003 if test -n "$GREP"; then
7004 { echo "$as_me:$LINENO: result: $GREP" >&5
7005 echo "${ECHO_T}$GREP" >&6; }
7007 { echo "$as_me:$LINENO: result: no" >&5
7008 echo "${ECHO_T}no" >&6; }
7012 # Extract the first word of "mkdir", so it can be a program name with args.
7013 set dummy mkdir; ac_word=$2
7014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7016 if test "${ac_cv_path_MKDIR+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 test -z "$as_dir" && as_dir=.
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7031 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7039 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7043 MKDIR=$ac_cv_path_MKDIR
7044 if test -n "$MKDIR"; then
7045 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7046 echo "${ECHO_T}$MKDIR" >&6; }
7048 { echo "$as_me:$LINENO: result: no" >&5
7049 echo "${ECHO_T}no" >&6; }
7053 # Extract the first word of "mv", so it can be a program name with args.
7054 set dummy mv; ac_word=$2
7055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7057 if test "${ac_cv_path_MV+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7062 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 test -z "$as_dir" && as_dir=.
7070 for ac_exec_ext in '' $ac_executable_extensions; do
7071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7072 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7085 if test -n "$MV"; then
7086 { echo "$as_me:$LINENO: result: $MV" >&5
7087 echo "${ECHO_T}$MV" >&6; }
7089 { echo "$as_me:$LINENO: result: no" >&5
7090 echo "${ECHO_T}no" >&6; }
7094 if test -n "$ac_tool_prefix"; then
7095 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7096 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7099 if test "${ac_cv_prog_RANLIB+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7102 if test -n "$RANLIB"; then
7103 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7112 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 RANLIB=$ac_cv_prog_RANLIB
7123 if test -n "$RANLIB"; then
7124 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7125 echo "${ECHO_T}$RANLIB" >&6; }
7127 { echo "$as_me:$LINENO: result: no" >&5
7128 echo "${ECHO_T}no" >&6; }
7133 if test -z "$ac_cv_prog_RANLIB"; then
7134 ac_ct_RANLIB=$RANLIB
7135 # Extract the first word of "ranlib", so it can be a program name with args.
7136 set dummy ranlib; ac_word=$2
7137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7139 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 if test -n "$ac_ct_RANLIB"; then
7143 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7152 ac_cv_prog_ac_ct_RANLIB="ranlib"
7153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7162 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7163 if test -n "$ac_ct_RANLIB"; then
7164 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7165 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7167 { echo "$as_me:$LINENO: result: no" >&5
7168 echo "${ECHO_T}no" >&6; }
7171 if test "x$ac_ct_RANLIB" = x; then
7174 case $cross_compiling:$ac_tool_warned in
7176 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7177 whose name does not start with the host triplet. If you think this
7178 configuration is useful to you, please write to autoconf@gnu.org." >&5
7179 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7180 whose name does not start with the host triplet. If you think this
7181 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7182 ac_tool_warned=yes ;;
7184 RANLIB=$ac_ct_RANLIB
7187 RANLIB="$ac_cv_prog_RANLIB"
7190 # Extract the first word of "rm", so it can be a program name with args.
7191 set dummy rm; ac_word=$2
7192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194 if test "${ac_cv_path_RM+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7209 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7222 if test -n "$RM"; then
7223 { echo "$as_me:$LINENO: result: $RM" >&5
7224 echo "${ECHO_T}$RM" >&6; }
7226 { echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6; }
7231 # Extract the first word of "sed", so it can be a program name with args.
7232 set dummy sed; ac_word=$2
7233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7235 if test "${ac_cv_path_SED+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 test -z "$as_dir" && as_dir=.
7248 for ac_exec_ext in '' $ac_executable_extensions; do
7249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7250 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7263 if test -n "$SED"; then
7264 { echo "$as_me:$LINENO: result: $SED" >&5
7265 echo "${ECHO_T}$SED" >&6; }
7267 { echo "$as_me:$LINENO: result: no" >&5
7268 echo "${ECHO_T}no" >&6; }
7272 # Extract the first word of "tar", so it can be a program name with args.
7273 set dummy tar; ac_word=$2
7274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7276 if test "${ac_cv_path_TAR+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288 test -z "$as_dir" && as_dir=.
7289 for ac_exec_ext in '' $ac_executable_extensions; do
7290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7291 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7304 if test -n "$TAR"; then
7305 { echo "$as_me:$LINENO: result: $TAR" >&5
7306 echo "${ECHO_T}$TAR" >&6; }
7308 { echo "$as_me:$LINENO: result: no" >&5
7309 echo "${ECHO_T}no" >&6; }
7313 # Extract the first word of "pwd", so it can be a program name with args.
7314 set dummy pwd; ac_word=$2
7315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7317 if test "${ac_cv_path_BINPWD+set}" = set; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 test -z "$as_dir" && as_dir=.
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7332 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7344 BINPWD=$ac_cv_path_BINPWD
7345 if test -n "$BINPWD"; then
7346 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7347 echo "${ECHO_T}$BINPWD" >&6; }
7349 { echo "$as_me:$LINENO: result: no" >&5
7350 echo "${ECHO_T}no" >&6; }
7355 # Extract the first word of "Graphviz", so it can be a program name with args.
7356 set dummy Graphviz; ac_word=$2
7357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7359 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7360 echo $ECHO_N "(cached) $ECHO_C" >&6
7364 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
7373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7374 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7386 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7387 if test -n "$GRAPHVIZ"; then
7388 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7389 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7391 { echo "$as_me:$LINENO: result: no" >&5
7392 echo "${ECHO_T}no" >&6; }
7396 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7398 cat >>confdefs.h <<\_ACEOF
7399 #define HAVE_GRAPHVIZ 1
7402 if test "$llvm_cv_os_type" = "MingW" ; then
7403 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7406 cat >>confdefs.h <<_ACEOF
7407 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7411 # Extract the first word of "dot", so it can be a program name with args.
7412 set dummy dot; ac_word=$2
7413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7415 if test "${ac_cv_path_DOT+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7420 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7430 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7443 if test -n "$DOT"; then
7444 { echo "$as_me:$LINENO: result: $DOT" >&5
7445 echo "${ECHO_T}$DOT" >&6; }
7447 { echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6; }
7452 if test "$DOT" != "echo dot" ; then
7454 cat >>confdefs.h <<\_ACEOF
7458 if test "$llvm_cv_os_type" = "MingW" ; then
7459 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7462 cat >>confdefs.h <<_ACEOF
7463 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7467 for ac_prog in gv gsview32
7469 # Extract the first word of "$ac_prog", so it can be a program name with args.
7470 set dummy $ac_prog; ac_word=$2
7471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7473 if test "${ac_cv_path_GV+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 test -z "$as_dir" && as_dir=.
7486 for ac_exec_ext in '' $ac_executable_extensions; do
7487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7488 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 if test -n "$GV"; then
7501 { echo "$as_me:$LINENO: result: $GV" >&5
7502 echo "${ECHO_T}$GV" >&6; }
7504 { echo "$as_me:$LINENO: result: no" >&5
7505 echo "${ECHO_T}no" >&6; }
7509 test -n "$GV" && break
7511 test -n "$GV" || GV="echo gv"
7513 if test "$GV" != "echo gv" ; then
7515 cat >>confdefs.h <<\_ACEOF
7519 if test "$llvm_cv_os_type" = "MingW" ; then
7520 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7523 cat >>confdefs.h <<_ACEOF
7524 #define LLVM_PATH_GV "$GV${EXEEXT}"
7528 # Extract the first word of "dotty", so it can be a program name with args.
7529 set dummy dotty; ac_word=$2
7530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7532 if test "${ac_cv_path_DOTTY+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 test -z "$as_dir" && as_dir=.
7545 for ac_exec_ext in '' $ac_executable_extensions; do
7546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7547 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7555 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7559 DOTTY=$ac_cv_path_DOTTY
7560 if test -n "$DOTTY"; then
7561 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7562 echo "${ECHO_T}$DOTTY" >&6; }
7564 { echo "$as_me:$LINENO: result: no" >&5
7565 echo "${ECHO_T}no" >&6; }
7569 if test "$DOTTY" != "echo dotty" ; then
7571 cat >>confdefs.h <<\_ACEOF
7572 #define HAVE_DOTTY 1
7575 if test "$llvm_cv_os_type" = "MingW" ; then
7576 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7579 cat >>confdefs.h <<_ACEOF
7580 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7586 # Extract the first word of "perl", so it can be a program name with args.
7587 set dummy perl; ac_word=$2
7588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590 if test "${ac_cv_path_PERL+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7605 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7617 PERL=$ac_cv_path_PERL
7618 if test -n "$PERL"; then
7619 { echo "$as_me:$LINENO: result: $PERL" >&5
7620 echo "${ECHO_T}$PERL" >&6; }
7622 { echo "$as_me:$LINENO: result: no" >&5
7623 echo "${ECHO_T}no" >&6; }
7627 if test "$PERL" != "none"; then
7628 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7629 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7630 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7631 { echo "$as_me:$LINENO: result: yes" >&5
7632 echo "${ECHO_T}yes" >&6; }
7635 { echo "$as_me:$LINENO: result: not found" >&5
7636 echo "${ECHO_T}not found" >&6; }
7641 if test x"$PERL" = xnone; then
7644 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7645 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7646 { (exit 1); exit 1; }; }
7652 # Find a good install program. We prefer a C program (faster),
7653 # so one script is as good as another. But avoid the broken or
7654 # incompatible versions:
7655 # SysV /etc/install, /usr/sbin/install
7656 # SunOS /usr/etc/install
7657 # IRIX /sbin/install
7659 # AmigaOS /C/install, which installs bootblocks on floppy discs
7660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7663 # OS/2's system install, which has a completely different semantic
7664 # ./install, which can be erroneously created by make from ./install.sh.
7665 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7666 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7667 if test -z "$INSTALL"; then
7668 if test "${ac_cv_path_install+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 test -z "$as_dir" && as_dir=.
7676 # Account for people who put trailing slashes in PATH elements.
7678 ./ | .// | /cC/* | \
7679 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7680 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7683 # OSF1 and SCO ODT 3.0 have their own names for install.
7684 # Don't use installbsd from OSF since it installs stuff as root
7686 for ac_prog in ginstall scoinst install; do
7687 for ac_exec_ext in '' $ac_executable_extensions; do
7688 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7689 if test $ac_prog = install &&
7690 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7691 # AIX install. It has an incompatible calling convention.
7693 elif test $ac_prog = install &&
7694 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7695 # program-specific install script used by HP pwplus--don't use.
7698 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7711 if test "${ac_cv_path_install+set}" = set; then
7712 INSTALL=$ac_cv_path_install
7714 # As a last resort, use the slow shell script. Don't cache a
7715 # value for INSTALL within a source directory, because that will
7716 # break other packages using the cache if that directory is
7717 # removed, or if the value is a relative name.
7718 INSTALL=$ac_install_sh
7721 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7722 echo "${ECHO_T}$INSTALL" >&6; }
7724 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7725 # It thinks the first close brace ends the variable substitution.
7726 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7728 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7730 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7733 # Extract the first word of "bzip2", so it can be a program name with args.
7734 set dummy bzip2; ac_word=$2
7735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7737 if test "${ac_cv_path_BZIP2+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 test -z "$as_dir" && as_dir=.
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7752 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 BZIP2=$ac_cv_path_BZIP2
7764 if test -n "$BZIP2"; then
7765 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7766 echo "${ECHO_T}$BZIP2" >&6; }
7768 { echo "$as_me:$LINENO: result: no" >&5
7769 echo "${ECHO_T}no" >&6; }
7773 # Extract the first word of "doxygen", so it can be a program name with args.
7774 set dummy doxygen; ac_word=$2
7775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7777 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789 test -z "$as_dir" && as_dir=.
7790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7792 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 DOXYGEN=$ac_cv_path_DOXYGEN
7804 if test -n "$DOXYGEN"; then
7805 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7806 echo "${ECHO_T}$DOXYGEN" >&6; }
7808 { echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6; }
7813 # Extract the first word of "groff", so it can be a program name with args.
7814 set dummy groff; ac_word=$2
7815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7817 if test "${ac_cv_path_GROFF+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7822 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829 test -z "$as_dir" && as_dir=.
7830 for ac_exec_ext in '' $ac_executable_extensions; do
7831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7832 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7843 GROFF=$ac_cv_path_GROFF
7844 if test -n "$GROFF"; then
7845 { echo "$as_me:$LINENO: result: $GROFF" >&5
7846 echo "${ECHO_T}$GROFF" >&6; }
7848 { echo "$as_me:$LINENO: result: no" >&5
7849 echo "${ECHO_T}no" >&6; }
7853 # Extract the first word of "gzip", so it can be a program name with args.
7854 set dummy gzip; ac_word=$2
7855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7857 if test "${ac_cv_path_GZIP+set}" = set; then
7858 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869 test -z "$as_dir" && as_dir=.
7870 for ac_exec_ext in '' $ac_executable_extensions; do
7871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7872 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7883 GZIP=$ac_cv_path_GZIP
7884 if test -n "$GZIP"; then
7885 { echo "$as_me:$LINENO: result: $GZIP" >&5
7886 echo "${ECHO_T}$GZIP" >&6; }
7888 { echo "$as_me:$LINENO: result: no" >&5
7889 echo "${ECHO_T}no" >&6; }
7893 # Extract the first word of "pod2html", so it can be a program name with args.
7894 set dummy pod2html; ac_word=$2
7895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7897 if test "${ac_cv_path_POD2HTML+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7902 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 test -z "$as_dir" && as_dir=.
7910 for ac_exec_ext in '' $ac_executable_extensions; do
7911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7912 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7923 POD2HTML=$ac_cv_path_POD2HTML
7924 if test -n "$POD2HTML"; then
7925 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7926 echo "${ECHO_T}$POD2HTML" >&6; }
7928 { echo "$as_me:$LINENO: result: no" >&5
7929 echo "${ECHO_T}no" >&6; }
7933 # Extract the first word of "pod2man", so it can be a program name with args.
7934 set dummy pod2man; ac_word=$2
7935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7937 if test "${ac_cv_path_POD2MAN+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7942 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 test -z "$as_dir" && as_dir=.
7950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7952 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7963 POD2MAN=$ac_cv_path_POD2MAN
7964 if test -n "$POD2MAN"; then
7965 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7966 echo "${ECHO_T}$POD2MAN" >&6; }
7968 { echo "$as_me:$LINENO: result: no" >&5
7969 echo "${ECHO_T}no" >&6; }
7973 # Extract the first word of "runtest", so it can be a program name with args.
7974 set dummy runtest; ac_word=$2
7975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7977 if test "${ac_cv_path_RUNTEST+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7982 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 test -z "$as_dir" && as_dir=.
7990 for ac_exec_ext in '' $ac_executable_extensions; do
7991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7992 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8003 RUNTEST=$ac_cv_path_RUNTEST
8004 if test -n "$RUNTEST"; then
8005 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8006 echo "${ECHO_T}$RUNTEST" >&6; }
8008 { echo "$as_me:$LINENO: result: no" >&5
8009 echo "${ECHO_T}no" >&6; }
8015 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8016 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8018 # Check whether --with-tclinclude was given.
8019 if test "${with_tclinclude+set}" = set; then
8020 withval=$with_tclinclude; with_tclinclude=${withval}
8025 if test "${ac_cv_path_tclsh+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8029 if test x"${with_tclinclude}" != x ; then
8030 if test -f ${with_tclinclude}/tclsh ; then
8031 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8032 elif test -f ${with_tclinclude}/src/tclsh ; then
8033 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8035 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8036 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8037 { (exit 1); exit 1; }; }
8041 if test x"${ac_cv_path_tclsh}" = x ; then
8042 { echo "$as_me:$LINENO: result: none" >&5
8043 echo "${ECHO_T}none" >&6; }
8044 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
8046 # Extract the first word of "$ac_prog", so it can be a program name with args.
8047 set dummy $ac_prog; ac_word=$2
8048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8050 if test "${ac_cv_path_TCLSH+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8055 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 test -z "$as_dir" && as_dir=.
8063 for ac_exec_ext in '' $ac_executable_extensions; do
8064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8065 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8076 TCLSH=$ac_cv_path_TCLSH
8077 if test -n "$TCLSH"; then
8078 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8079 echo "${ECHO_T}$TCLSH" >&6; }
8081 { echo "$as_me:$LINENO: result: no" >&5
8082 echo "${ECHO_T}no" >&6; }
8086 test -n "$TCLSH" && break
8089 if test x"${TCLSH}" = x ; then
8090 ac_cv_path_tclsh='';
8092 ac_cv_path_tclsh="${TCLSH}";
8095 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8096 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8097 TCLSH="${ac_cv_path_tclsh}"
8103 # Extract the first word of "zip", so it can be a program name with args.
8104 set dummy zip; ac_word=$2
8105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8107 if test "${ac_cv_path_ZIP+set}" = set; then
8108 echo $ECHO_N "(cached) $ECHO_C" >&6
8112 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119 test -z "$as_dir" && as_dir=.
8120 for ac_exec_ext in '' $ac_executable_extensions; do
8121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8122 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 if test -n "$ZIP"; then
8135 { echo "$as_me:$LINENO: result: $ZIP" >&5
8136 echo "${ECHO_T}$ZIP" >&6; }
8138 { echo "$as_me:$LINENO: result: no" >&5
8139 echo "${ECHO_T}no" >&6; }
8143 for ac_prog in ocamlc
8145 # Extract the first word of "$ac_prog", so it can be a program name with args.
8146 set dummy $ac_prog; ac_word=$2
8147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8149 if test "${ac_cv_path_OCAMLC+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8154 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8161 test -z "$as_dir" && as_dir=.
8162 for ac_exec_ext in '' $ac_executable_extensions; do
8163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8164 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8175 OCAMLC=$ac_cv_path_OCAMLC
8176 if test -n "$OCAMLC"; then
8177 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8178 echo "${ECHO_T}$OCAMLC" >&6; }
8180 { echo "$as_me:$LINENO: result: no" >&5
8181 echo "${ECHO_T}no" >&6; }
8185 test -n "$OCAMLC" && break
8188 for ac_prog in ocamlopt
8190 # Extract the first word of "$ac_prog", so it can be a program name with args.
8191 set dummy $ac_prog; ac_word=$2
8192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8194 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8199 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 test -z "$as_dir" && as_dir=.
8207 for ac_exec_ext in '' $ac_executable_extensions; do
8208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8209 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8220 OCAMLOPT=$ac_cv_path_OCAMLOPT
8221 if test -n "$OCAMLOPT"; then
8222 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8223 echo "${ECHO_T}$OCAMLOPT" >&6; }
8225 { echo "$as_me:$LINENO: result: no" >&5
8226 echo "${ECHO_T}no" >&6; }
8230 test -n "$OCAMLOPT" && break
8233 for ac_prog in ocamldep
8235 # Extract the first word of "$ac_prog", so it can be a program name with args.
8236 set dummy $ac_prog; ac_word=$2
8237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8239 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8244 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 test -z "$as_dir" && as_dir=.
8252 for ac_exec_ext in '' $ac_executable_extensions; do
8253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8254 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8265 OCAMLDEP=$ac_cv_path_OCAMLDEP
8266 if test -n "$OCAMLDEP"; then
8267 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8268 echo "${ECHO_T}$OCAMLDEP" >&6; }
8270 { echo "$as_me:$LINENO: result: no" >&5
8271 echo "${ECHO_T}no" >&6; }
8275 test -n "$OCAMLDEP" && break
8278 for ac_prog in ocamldoc
8280 # Extract the first word of "$ac_prog", so it can be a program name with args.
8281 set dummy $ac_prog; ac_word=$2
8282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8284 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8289 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 test -z "$as_dir" && as_dir=.
8297 for ac_exec_ext in '' $ac_executable_extensions; do
8298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8299 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8310 OCAMLDOC=$ac_cv_path_OCAMLDOC
8311 if test -n "$OCAMLDOC"; then
8312 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8313 echo "${ECHO_T}$OCAMLDOC" >&6; }
8315 { echo "$as_me:$LINENO: result: no" >&5
8316 echo "${ECHO_T}no" >&6; }
8320 test -n "$OCAMLDOC" && break
8323 for ac_prog in gas as
8325 # Extract the first word of "$ac_prog", so it can be a program name with args.
8326 set dummy $ac_prog; ac_word=$2
8327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8329 if test "${ac_cv_path_GAS+set}" = set; then
8330 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8341 test -z "$as_dir" && as_dir=.
8342 for ac_exec_ext in '' $ac_executable_extensions; do
8343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8344 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8356 if test -n "$GAS"; then
8357 { echo "$as_me:$LINENO: result: $GAS" >&5
8358 echo "${ECHO_T}$GAS" >&6; }
8360 { echo "$as_me:$LINENO: result: no" >&5
8361 echo "${ECHO_T}no" >&6; }
8365 test -n "$GAS" && break
8369 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8370 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8371 if test "${llvm_cv_link_use_r+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8375 ac_cpp='$CPP $CPPFLAGS'
8376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8381 CFLAGS="$CFLAGS -Wl,-R."
8382 cat >conftest.$ac_ext <<_ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8392 int main() { return 0; }
8397 rm -f conftest.$ac_objext conftest$ac_exeext
8398 if { (ac_try="$ac_link"
8400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401 *) ac_try_echo=$ac_try;;
8403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404 (eval "$ac_link") 2>conftest.er1
8406 grep -v '^ *+' conftest.er1 >conftest.err
8408 cat conftest.err >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } &&
8411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8412 { (case "(($ac_try" in
8413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8414 *) ac_try_echo=$ac_try;;
8416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8417 (eval "$ac_try") 2>&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; } &&
8421 { ac_try='test -s conftest$ac_exeext'
8422 { (case "(($ac_try" in
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_try") 2>&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; }; then
8431 llvm_cv_link_use_r=yes
8433 echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.$ac_ext >&5
8436 llvm_cv_link_use_r=no
8439 rm -f core conftest.err conftest.$ac_objext \
8440 conftest$ac_exeext conftest.$ac_ext
8443 ac_cpp='$CPP $CPPFLAGS'
8444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8450 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8451 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8452 if test "$llvm_cv_link_use_r" = yes ; then
8454 cat >>confdefs.h <<\_ACEOF
8455 #define HAVE_LINK_R 1
8463 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8464 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8465 if test "${ac_cv_c_const+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8468 cat >conftest.$ac_ext <<_ACEOF
8471 cat confdefs.h >>conftest.$ac_ext
8472 cat >>conftest.$ac_ext <<_ACEOF
8473 /* end confdefs.h. */
8478 /* FIXME: Include the comments suggested by Paul. */
8480 /* Ultrix mips cc rejects this. */
8481 typedef int charset[2];
8483 /* SunOS 4.1.1 cc rejects this. */
8484 char const *const *ccp;
8486 /* NEC SVR4.0.2 mips cc rejects this. */
8487 struct point {int x, y;};
8488 static struct point const zero = {0,0};
8489 /* AIX XL C 1.02.0.0 rejects this.
8490 It does not let you subtract one const X* pointer from another in
8491 an arm of an if-expression whose if-part is not a constant
8493 const char *g = "string";
8494 ccp = &g + (g ? g-g : 0);
8495 /* HPUX 7.0 cc rejects these. */
8498 ccp = (char const *const *) p;
8499 { /* SCO 3.2v4 cc rejects this. */
8501 char const *s = 0 ? (char *) 0 : (char const *) 0;
8506 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8508 const int *foo = &x[0];
8511 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8512 typedef const int *iptr;
8516 { /* AIX XL C 1.02.0.0 rejects this saying
8517 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8518 struct s { int j; const int *ap[3]; };
8519 struct s *b; b->j = 5;
8521 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8525 return !x[0] && !zero.x;
8532 rm -f conftest.$ac_objext
8533 if { (ac_try="$ac_compile"
8535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536 *) ac_try_echo=$ac_try;;
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539 (eval "$ac_compile") 2>conftest.er1
8541 grep -v '^ *+' conftest.er1 >conftest.err
8543 cat conftest.err >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } &&
8546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8547 { (case "(($ac_try" in
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552 (eval "$ac_try") 2>&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; } &&
8556 { ac_try='test -s conftest.$ac_objext'
8557 { (case "(($ac_try" in
8558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559 *) ac_try_echo=$ac_try;;
8561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8562 (eval "$ac_try") 2>&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8576 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8577 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8578 if test $ac_cv_c_const = no; then
8580 cat >>confdefs.h <<\_ACEOF
8592 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8593 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8594 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8595 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8599 cat >conftest.$ac_ext <<_ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8605 #include <sys/types.h>
8617 rm -f conftest.$ac_objext
8618 if { (ac_try="$ac_compile"
8620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8621 *) ac_try_echo=$ac_try;;
8623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8624 (eval "$ac_compile") 2>conftest.er1
8626 grep -v '^ *+' conftest.er1 >conftest.err
8628 cat conftest.err >&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); } &&
8631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8632 { (case "(($ac_try" in
8633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634 *) ac_try_echo=$ac_try;;
8636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8637 (eval "$ac_try") 2>&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; } &&
8641 { ac_try='test -s conftest.$ac_objext'
8642 { (case "(($ac_try" in
8643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8644 *) ac_try_echo=$ac_try;;
8646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8647 (eval "$ac_try") 2>&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; }; then
8651 eval "$as_ac_Header=yes"
8653 echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8656 eval "$as_ac_Header=no"
8659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8661 ac_res=`eval echo '${'$as_ac_Header'}'`
8662 { echo "$as_me:$LINENO: result: $ac_res" >&5
8663 echo "${ECHO_T}$ac_res" >&6; }
8664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8665 cat >>confdefs.h <<_ACEOF
8666 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8669 ac_header_dirent=$ac_hdr; break
8673 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8674 if test $ac_header_dirent = dirent.h; then
8675 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8676 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8677 if test "${ac_cv_search_opendir+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8680 ac_func_search_save_LIBS=$LIBS
8681 cat >conftest.$ac_ext <<_ACEOF
8684 cat confdefs.h >>conftest.$ac_ext
8685 cat >>conftest.$ac_ext <<_ACEOF
8686 /* end confdefs.h. */
8688 /* Override any GCC internal prototype to avoid an error.
8689 Use char because int might match the return type of a GCC
8690 builtin and then its argument prototype would still apply. */
8703 for ac_lib in '' dir; do
8704 if test -z "$ac_lib"; then
8705 ac_res="none required"
8708 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8710 rm -f conftest.$ac_objext conftest$ac_exeext
8711 if { (ac_try="$ac_link"
8713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714 *) ac_try_echo=$ac_try;;
8716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717 (eval "$ac_link") 2>conftest.er1
8719 grep -v '^ *+' conftest.er1 >conftest.err
8721 cat conftest.err >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } &&
8724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8725 { (case "(($ac_try" in
8726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8727 *) ac_try_echo=$ac_try;;
8729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8730 (eval "$ac_try") 2>&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; } &&
8734 { ac_try='test -s conftest$ac_exeext'
8735 { (case "(($ac_try" in
8736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737 *) ac_try_echo=$ac_try;;
8739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8740 (eval "$ac_try") 2>&5
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); }; }; then
8744 ac_cv_search_opendir=$ac_res
8746 echo "$as_me: failed program was:" >&5
8747 sed 's/^/| /' conftest.$ac_ext >&5
8752 rm -f core conftest.err conftest.$ac_objext \
8754 if test "${ac_cv_search_opendir+set}" = set; then
8758 if test "${ac_cv_search_opendir+set}" = set; then
8761 ac_cv_search_opendir=no
8764 LIBS=$ac_func_search_save_LIBS
8766 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8767 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8768 ac_res=$ac_cv_search_opendir
8769 if test "$ac_res" != no; then
8770 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8775 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8776 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8777 if test "${ac_cv_search_opendir+set}" = set; then
8778 echo $ECHO_N "(cached) $ECHO_C" >&6
8780 ac_func_search_save_LIBS=$LIBS
8781 cat >conftest.$ac_ext <<_ACEOF
8784 cat confdefs.h >>conftest.$ac_ext
8785 cat >>conftest.$ac_ext <<_ACEOF
8786 /* end confdefs.h. */
8788 /* Override any GCC internal prototype to avoid an error.
8789 Use char because int might match the return type of a GCC
8790 builtin and then its argument prototype would still apply. */
8803 for ac_lib in '' x; do
8804 if test -z "$ac_lib"; then
8805 ac_res="none required"
8808 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8810 rm -f conftest.$ac_objext conftest$ac_exeext
8811 if { (ac_try="$ac_link"
8813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8814 *) ac_try_echo=$ac_try;;
8816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8817 (eval "$ac_link") 2>conftest.er1
8819 grep -v '^ *+' conftest.er1 >conftest.err
8821 cat conftest.err >&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); } &&
8824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8825 { (case "(($ac_try" in
8826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8827 *) ac_try_echo=$ac_try;;
8829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8830 (eval "$ac_try") 2>&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; } &&
8834 { ac_try='test -s conftest$ac_exeext'
8835 { (case "(($ac_try" in
8836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8837 *) ac_try_echo=$ac_try;;
8839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8840 (eval "$ac_try") 2>&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
8844 ac_cv_search_opendir=$ac_res
8846 echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.$ac_ext >&5
8852 rm -f core conftest.err conftest.$ac_objext \
8854 if test "${ac_cv_search_opendir+set}" = set; then
8858 if test "${ac_cv_search_opendir+set}" = set; then
8861 ac_cv_search_opendir=no
8864 LIBS=$ac_func_search_save_LIBS
8866 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8867 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8868 ac_res=$ac_cv_search_opendir
8869 if test "$ac_res" != no; then
8870 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8877 for ac_header in dlfcn.h
8879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 ac_res=`eval echo '${'$as_ac_Header'}'`
8887 { echo "$as_me:$LINENO: result: $ac_res" >&5
8888 echo "${ECHO_T}$ac_res" >&6; }
8890 # Is the header compilable?
8891 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8893 cat >conftest.$ac_ext <<_ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h. */
8899 $ac_includes_default
8900 #include <$ac_header>
8902 rm -f conftest.$ac_objext
8903 if { (ac_try="$ac_compile"
8905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8906 *) ac_try_echo=$ac_try;;
8908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8909 (eval "$ac_compile") 2>conftest.er1
8911 grep -v '^ *+' conftest.er1 >conftest.err
8913 cat conftest.err >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); } &&
8916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8917 { (case "(($ac_try" in
8918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8919 *) ac_try_echo=$ac_try;;
8921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8922 (eval "$ac_try") 2>&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); }; } &&
8926 { ac_try='test -s conftest.$ac_objext'
8927 { (case "(($ac_try" in
8928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929 *) ac_try_echo=$ac_try;;
8931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8932 (eval "$ac_try") 2>&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; }; then
8936 ac_header_compiler=yes
8938 echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8941 ac_header_compiler=no
8944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8945 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8946 echo "${ECHO_T}$ac_header_compiler" >&6; }
8948 # Is the header present?
8949 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8950 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8951 cat >conftest.$ac_ext <<_ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8957 #include <$ac_header>
8959 if { (ac_try="$ac_cpp conftest.$ac_ext"
8961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962 *) ac_try_echo=$ac_try;;
8964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8967 grep -v '^ *+' conftest.er1 >conftest.err
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } >/dev/null; then
8972 if test -s conftest.err; then
8973 ac_cpp_err=$ac_c_preproc_warn_flag
8974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8981 if test -z "$ac_cpp_err"; then
8982 ac_header_preproc=yes
8984 echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8987 ac_header_preproc=no
8990 rm -f conftest.err conftest.$ac_ext
8991 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8992 echo "${ECHO_T}$ac_header_preproc" >&6; }
8994 # So? What about this header?
8995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8997 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9001 ac_header_preproc=yes
9004 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9006 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9007 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9008 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9009 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9010 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9011 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9014 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9015 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9017 ## ----------------------------------- ##
9018 ## Report this to llvmbugs@cs.uiuc.edu ##
9019 ## ----------------------------------- ##
9021 ) | sed "s/^/$as_me: WARNING: /" >&2
9024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9029 eval "$as_ac_Header=\$ac_header_preproc"
9031 ac_res=`eval echo '${'$as_ac_Header'}'`
9032 { echo "$as_me:$LINENO: result: $ac_res" >&5
9033 echo "${ECHO_T}$ac_res" >&6; }
9036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9037 cat >>confdefs.h <<_ACEOF
9038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9045 # Check whether --enable-ltdl-install was given.
9046 if test "${enable_ltdl_install+set}" = set; then
9047 enableval=$enable_ltdl_install;
9053 if test x"${enable_ltdl_install-no}" != xno; then
9055 INSTALL_LTDL_FALSE='#'
9057 INSTALL_LTDL_TRUE='#'
9063 if test x"${enable_ltdl_convenience-no}" != xno; then
9064 CONVENIENCE_LTDL_TRUE=
9065 CONVENIENCE_LTDL_FALSE='#'
9067 CONVENIENCE_LTDL_TRUE='#'
9068 CONVENIENCE_LTDL_FALSE=
9072 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9073 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9075 libname_spec='lib$name'
9083 shlibpath_overrides_runpath=unknown
9085 dynamic_linker="$host_os ld.so"
9086 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9087 if test "$GCC" = yes; then
9088 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9089 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9090 # if the path contains ";" then we assume it to be the separator
9091 # otherwise default to the standard path separator (i.e. ":") - it is
9092 # assumed that no part of a normal pathname contains ";" but that should
9093 # okay in the real world where ";" in dirpaths is itself problematic.
9094 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9096 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9099 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9101 need_lib_prefix=unknown
9102 hardcode_into_libs=no
9104 # when you set need_version to no, make sure it does not cause -set_version
9105 # flags to be left without arguments
9106 need_version=unknown
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9112 shlibpath_var=LIBPATH
9114 # AIX 3 has no versioning support, so we append a major version to the name.
9115 soname_spec='${libname}${release}${shared_ext}$major'
9122 hardcode_into_libs=yes
9123 if test "$host_cpu" = ia64; then
9124 # AIX 5 supports IA64
9125 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9126 shlibpath_var=LD_LIBRARY_PATH
9128 # With GCC up to 2.95.x, collect2 would create an import file
9129 # for dependence libraries. The import file would start with
9130 # the line `#! .'. This would cause the generated library to
9131 # depend on `.', always an invalid library. This was fixed in
9132 # development snapshots of GCC prior to 3.0.
9134 aix4 | aix4.[01] | aix4.[01].*)
9135 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9137 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9144 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9145 # soname into executable. Probably we can add versioning support to
9146 # collect2, so additional links can be useful in future.
9147 if test "$aix_use_runtimelinking" = yes; then
9148 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9149 # instead of lib<name>.a to let people know that these are not
9150 # typical AIX shared libraries.
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9153 # We preserve .a as extension for shared libraries through AIX4.2
9154 # and later when we are not doing run time linking.
9155 library_names_spec='${libname}${release}.a $libname.a'
9156 soname_spec='${libname}${release}${shared_ext}$major'
9158 shlibpath_var=LIBPATH
9163 library_names_spec='$libname.ixlibrary $libname.a'
9164 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9165 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'
9169 library_names_spec='${libname}${shared_ext}'
9170 dynamic_linker="$host_os ld.so"
9171 shlibpath_var=LIBRARY_PATH
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178 soname_spec='${libname}${release}${shared_ext}$major'
9179 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9180 shlibpath_var=LD_LIBRARY_PATH
9181 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9182 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9183 # the default ld.so.conf also contains /usr/contrib/lib and
9184 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9185 # libtool to hard-code these into programs
9188 cygwin* | mingw* | pw32*)
9189 version_type=windows
9194 case $GCC,$host_os in
9195 yes,cygwin* | yes,mingw* | yes,pw32*)
9196 library_names_spec='$libname.dll.a'
9197 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9198 postinstall_cmds='base_file=`basename \${file}`~
9199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9200 dldir=$destdir/`dirname \$dlpath`~
9201 test -d \$dldir || mkdir -p \$dldir~
9202 $install_prog $dir/$dlname \$dldir/$dlname~
9203 chmod a+x \$dldir/$dlname'
9204 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9205 dlpath=$dir/\$dldll~
9207 shlibpath_overrides_runpath=yes
9211 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9212 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9213 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9216 # MinGW DLLs use traditional 'lib' prefix
9217 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9218 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9219 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9220 # It is most probably a Windows format PATH printed by
9221 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9222 # path with ; separators, and with drive letters. We can handle the
9223 # drive letters (cygwin fileutils understands them), so leave them,
9224 # especially as we might pass files found there to a mingw objdump,
9225 # which wouldn't understand a cygwinified path. Ahh.
9226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9232 # pw32 DLLs use 'pw' prefix rather than 'lib'
9233 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9239 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9242 dynamic_linker='Win32 ld.exe'
9243 # FIXME: first we should search . and the directory the executable is in
9247 darwin* | rhapsody*)
9248 dynamic_linker="$host_os dyld"
9252 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9253 soname_spec='${libname}${release}${major}$shared_ext'
9254 shlibpath_overrides_runpath=yes
9255 shlibpath_var=DYLD_LIBRARY_PATH
9256 shrext_cmds='.dylib'
9257 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9258 if test "$GCC" = yes; then
9259 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"`
9261 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9263 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9271 soname_spec='${libname}${release}${shared_ext}$major'
9272 shlibpath_var=LD_LIBRARY_PATH
9283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9284 soname_spec='${libname}${release}${shared_ext}$major'
9285 shlibpath_var=LD_LIBRARY_PATH
9286 shlibpath_overrides_runpath=no
9287 hardcode_into_libs=yes
9288 dynamic_linker='GNU ld.so'
9291 freebsd* | dragonfly*)
9292 # DragonFly does not have aout. When/if they implement a new
9293 # versioning mechanism, adjust this.
9294 if test -x /usr/bin/objformat; then
9295 objformat=`/usr/bin/objformat`
9298 freebsd[123]*) objformat=aout ;;
9302 version_type=freebsd-$objformat
9303 case $version_type in
9305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9314 shlibpath_var=LD_LIBRARY_PATH
9317 shlibpath_overrides_runpath=yes
9319 freebsd3.[01]* | freebsdelf3.[01]*)
9320 shlibpath_overrides_runpath=yes
9321 hardcode_into_libs=yes
9323 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9324 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9325 shlibpath_overrides_runpath=no
9326 hardcode_into_libs=yes
9328 freebsd*) # from 4.6 on
9329 shlibpath_overrides_runpath=yes
9330 hardcode_into_libs=yes
9339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9340 soname_spec='${libname}${release}${shared_ext}$major'
9341 shlibpath_var=LD_LIBRARY_PATH
9342 hardcode_into_libs=yes
9345 hpux9* | hpux10* | hpux11*)
9346 # Give a soname corresponding to the major version so that dld.sl refuses to
9347 # link against other versions.
9354 hardcode_into_libs=yes
9355 dynamic_linker="$host_os dld.so"
9356 shlibpath_var=LD_LIBRARY_PATH
9357 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9359 soname_spec='${libname}${release}${shared_ext}$major'
9360 if test "X$HPUX_IA64_MODE" = X32; then
9361 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9363 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9369 hardcode_into_libs=yes
9370 dynamic_linker="$host_os dld.sl"
9371 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9372 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374 soname_spec='${libname}${release}${shared_ext}$major'
9375 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9376 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9380 dynamic_linker="$host_os dld.sl"
9381 shlibpath_var=SHLIB_PATH
9382 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9384 soname_spec='${libname}${release}${shared_ext}$major'
9387 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9388 postinstall_cmds='chmod 555 $lib'
9395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9396 soname_spec='${libname}${release}${shared_ext}$major'
9397 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9398 shlibpath_var=LD_LIBRARY_PATH
9399 shlibpath_overrides_runpath=no
9400 hardcode_into_libs=yes
9403 irix5* | irix6* | nonstopux*)
9405 nonstopux*) version_type=nonstopux ;;
9407 if test "$lt_cv_prog_gnu_ld" = yes; then
9415 soname_spec='${libname}${release}${shared_ext}$major'
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9418 irix5* | nonstopux*)
9422 case $LD in # libtool.m4 will add one of these switches to LD
9423 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9424 libsuff= shlibsuff= libmagic=32-bit;;
9425 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9426 libsuff=32 shlibsuff=N32 libmagic=N32;;
9427 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9428 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9429 *) libsuff= shlibsuff= libmagic=never-match;;
9433 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9434 shlibpath_overrides_runpath=no
9435 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9436 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9437 hardcode_into_libs=yes
9440 # No shared lib support for Linux oldld, aout, or coff.
9441 linux*oldld* | linux*aout* | linux*coff*)
9445 # This must be Linux ELF.
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9451 soname_spec='${libname}${release}${shared_ext}$major'
9452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9453 shlibpath_var=LD_LIBRARY_PATH
9454 shlibpath_overrides_runpath=no
9455 # This implies no fast_install, which is unacceptable.
9456 # Some rework will be needed to allow for fast_install
9457 # before this can be enabled.
9458 hardcode_into_libs=yes
9460 # Append ld.so.conf contents to the search path
9461 if test -f /etc/ld.so.conf; then
9462 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' ' '`
9463 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9466 # We used to test for /lib/ld.so.1 and disable shared libraries on
9467 # powerpc, because MkLinux only supported shared libraries with the
9468 # GNU dynamic linker. Since this was broken with cross compilers,
9469 # most powerpc-linux boxes support dynamic linking these days and
9470 # people can always --disable-shared, the test was removed, and we
9471 # assume the GNU/Linux dynamic linker is in use.
9472 dynamic_linker='GNU/Linux ld.so'
9479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9480 soname_spec='${libname}${release}${shared_ext}$major'
9481 shlibpath_var=LD_LIBRARY_PATH
9482 shlibpath_overrides_runpath=no
9483 hardcode_into_libs=yes
9484 dynamic_linker='GNU ld.so'
9491 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9494 dynamic_linker='NetBSD (a.out) ld.so'
9496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9497 soname_spec='${libname}${release}${shared_ext}$major'
9498 dynamic_linker='NetBSD ld.elf_so'
9500 shlibpath_var=LD_LIBRARY_PATH
9501 shlibpath_overrides_runpath=yes
9502 hardcode_into_libs=yes
9507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9508 shlibpath_var=LD_LIBRARY_PATH
9509 shlibpath_overrides_runpath=yes
9516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9517 soname_spec='${libname}${release}${shared_ext}$major'
9518 shlibpath_var=LD_LIBRARY_PATH
9519 shlibpath_overrides_runpath=yes
9524 sys_lib_dlsearch_path_spec="/usr/lib"
9526 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9528 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9529 *) need_version=no ;;
9531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9533 shlibpath_var=LD_LIBRARY_PATH
9534 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9536 openbsd2.[89] | openbsd2.[89].*)
9537 shlibpath_overrides_runpath=no
9540 shlibpath_overrides_runpath=yes
9544 shlibpath_overrides_runpath=yes
9549 libname_spec='$name'
9552 library_names_spec='$libname${shared_ext} $libname.a'
9553 dynamic_linker='OS/2 ld.exe'
9554 shlibpath_var=LIBPATH
9557 osf3* | osf4* | osf5*)
9561 soname_spec='${libname}${release}${shared_ext}$major'
9562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9563 shlibpath_var=LD_LIBRARY_PATH
9564 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9565 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9573 soname_spec='${libname}${release}${shared_ext}$major'
9574 shlibpath_var=LD_LIBRARY_PATH
9575 shlibpath_overrides_runpath=yes
9576 hardcode_into_libs=yes
9577 # ldd complains unless libraries are executable
9578 postinstall_cmds='chmod +x $lib'
9583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9584 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9585 shlibpath_var=LD_LIBRARY_PATH
9586 shlibpath_overrides_runpath=yes
9587 if test "$with_gnu_ld" = yes; then
9595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9596 soname_spec='${libname}${release}${shared_ext}$major'
9597 shlibpath_var=LD_LIBRARY_PATH
9598 case $host_vendor in
9600 shlibpath_overrides_runpath=no
9602 export_dynamic_flag_spec='${wl}-Blargedynsym'
9603 runpath_var=LD_RUN_PATH
9611 shlibpath_overrides_runpath=no
9612 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9618 if test -d /usr/nec ;then
9620 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9621 soname_spec='$libname${shared_ext}.$major'
9622 shlibpath_var=LD_LIBRARY_PATH
9626 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9627 version_type=freebsd-elf
9630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9631 soname_spec='${libname}${release}${shared_ext}$major'
9632 shlibpath_var=LD_LIBRARY_PATH
9633 hardcode_into_libs=yes
9634 if test "$with_gnu_ld" = yes; then
9635 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9636 shlibpath_overrides_runpath=no
9638 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9639 shlibpath_overrides_runpath=yes
9642 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9646 sys_lib_dlsearch_path_spec='/usr/lib'
9651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9652 soname_spec='${libname}${release}${shared_ext}$major'
9653 shlibpath_var=LD_LIBRARY_PATH
9660 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9661 echo "${ECHO_T}$dynamic_linker" >&6; }
9662 test "$dynamic_linker" = no && can_build_shared=no
9664 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9665 if test "$GCC" = yes; then
9666 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9670 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9671 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9672 if test "${libltdl_cv_shlibext+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 eval libltdl_cv_shlibext=$shrext_cmds
9680 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9681 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9682 if test -n "$libltdl_cv_shlibext"; then
9684 cat >>confdefs.h <<_ACEOF
9685 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9691 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9692 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9693 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
9696 libltdl_cv_shlibpath_var="$shlibpath_var"
9698 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9699 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9700 if test -n "$libltdl_cv_shlibpath_var"; then
9702 cat >>confdefs.h <<_ACEOF
9703 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9709 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9710 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9711 if test "${libltdl_cv_sys_search_path+set}" = set; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9716 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9717 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9718 if test -n "$libltdl_cv_sys_search_path"; then
9720 for dir in $libltdl_cv_sys_search_path; do
9721 if test -z "$sys_search_path"; then
9722 sys_search_path="$dir"
9724 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9728 cat >>confdefs.h <<_ACEOF
9729 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9734 { echo "$as_me:$LINENO: checking for objdir" >&5
9735 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9736 if test "${libltdl_cv_objdir+set}" = set; then
9737 echo $ECHO_N "(cached) $ECHO_C" >&6
9739 libltdl_cv_objdir="$objdir"
9740 if test -n "$objdir"; then
9743 rm -f .libs 2>/dev/null
9744 mkdir .libs 2>/dev/null
9745 if test -d .libs; then
9746 libltdl_cv_objdir=.libs
9748 # MS-DOS does not allow filenames that begin with a dot.
9749 libltdl_cv_objdir=_libs
9751 rmdir .libs 2>/dev/null
9755 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9756 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9758 cat >>confdefs.h <<_ACEOF
9759 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9767 # Check for command to grab the raw symbol name followed by C symbol from nm.
9768 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9769 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9770 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 # These are sane defaults that work on at least a few old systems.
9775 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9777 # Character class describing NM global symbol codes.
9778 symcode='[BCDEGRST]'
9780 # Regexp to match symbols that can be accessed directly from C.
9781 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9783 # Transform an extracted symbol line into a proper C declaration
9784 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9786 # Transform an extracted symbol line into symbol name and symbol address
9787 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'"
9789 # Define system-specific variables.
9794 cygwin* | mingw* | pw32*)
9795 symcode='[ABCDGISTW]'
9797 hpux*) # Its linker distinguishes data from code symbols
9798 if test "$host_cpu" = ia64; then
9799 symcode='[ABCDEGRST]'
9801 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9802 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'"
9805 if test "$host_cpu" = ia64; then
9806 symcode='[ABCDGIRSTW]'
9807 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9808 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'"
9812 symcode='[BCDEGRST]'
9815 symcode='[BCDEGQRST]'
9826 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9834 # Handle CRLF in mingw tool chain
9838 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9842 # If we're using GNU nm, then use its standard symbol codes.
9843 case `$NM -V 2>&1` in
9844 *GNU* | *'with BFD'*)
9845 symcode='[ABCDGIRSTW]' ;;
9848 # Try without a prefix undercore, then with it.
9849 for ac_symprfx in "" "_"; do
9851 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9852 symxfrm="\\1 $ac_symprfx\\2 \\2"
9854 # Write the raw and C identifiers.
9855 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9857 # Check to see that the pipe works correctly.
9861 cat > conftest.$ac_ext <<EOF
9866 void nm_test_func(){}
9870 int main(){nm_test_var='a';nm_test_func();return(0);}
9873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9874 (eval $ac_compile) 2>&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; then
9878 # Now try to grab the symbols.
9880 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9881 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); } && test -s "$nlist"; then
9885 # Try sorting and uniquifying the output.
9886 if sort "$nlist" | uniq > "$nlist"T; then
9887 mv -f "$nlist"T "$nlist"
9892 # Make sure that we snagged all the symbols we need.
9893 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9894 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9895 cat <<EOF > conftest.$ac_ext
9901 # Now generate the symbol file.
9902 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9904 cat <<EOF >> conftest.$ac_ext
9905 #if defined (__STDC__) && __STDC__
9906 # define lt_ptr_t void *
9908 # define lt_ptr_t char *
9912 /* The mapping between symbol names and symbols. */
9917 lt_preloaded_symbols[] =
9920 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9921 cat <<\EOF >> conftest.$ac_ext
9929 # Now try linking the two files.
9930 mv conftest.$ac_objext conftstm.$ac_objext
9931 lt_save_LIBS="$LIBS"
9932 lt_save_CFLAGS="$CFLAGS"
9933 LIBS="conftstm.$ac_objext"
9934 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9936 (eval $ac_link) 2>&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9942 LIBS="$lt_save_LIBS"
9943 CFLAGS="$lt_save_CFLAGS"
9945 echo "cannot find nm_test_func in $nlist" >&5
9948 echo "cannot find nm_test_var in $nlist" >&5
9951 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9954 echo "$progname: failed program was:" >&5
9955 cat conftest.$ac_ext >&5
9957 rm -f conftest* conftst*
9959 # Do not use the global_symbol_pipe unless it works.
9960 if test "$pipe_works" = yes; then
9963 lt_cv_sys_global_symbol_pipe=
9969 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9970 lt_cv_sys_global_symbol_to_cdecl=
9972 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9973 { echo "$as_me:$LINENO: result: failed" >&5
9974 echo "${ECHO_T}failed" >&6; }
9976 { echo "$as_me:$LINENO: result: ok" >&5
9977 echo "${ECHO_T}ok" >&6; }
9981 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9982 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9983 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9987 libltdl_cv_preloaded_symbols=yes
9989 libltdl_cv_preloaded_symbols=no
9993 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9994 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9995 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9997 cat >>confdefs.h <<\_ACEOF
9998 #define HAVE_PRELOADED_SYMBOLS 1
10006 ac_cpp='$CPP $CPPFLAGS'
10007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10012 { echo "$as_me:$LINENO: checking for shl_load" >&5
10013 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10014 if test "${ac_cv_func_shl_load+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10017 cat >conftest.$ac_ext <<_ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10023 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10025 #define shl_load innocuous_shl_load
10027 /* System header to define __stub macros and hopefully few prototypes,
10028 which can conflict with char shl_load (); below.
10029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10030 <limits.h> exists even on freestanding compilers. */
10033 # include <limits.h>
10035 # include <assert.h>
10040 /* Override any GCC internal prototype to avoid an error.
10041 Use char because int might match the return type of a GCC
10042 builtin and then its argument prototype would still apply. */
10047 /* The GNU C library defines this for functions which it implements
10048 to always fail with ENOSYS. Some functions are actually named
10049 something starting with __ and the normal name is an alias. */
10050 #if defined __stub_shl_load || defined __stub___shl_load
10057 return shl_load ();
10062 rm -f conftest.$ac_objext conftest$ac_exeext
10063 if { (ac_try="$ac_link"
10064 case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_link") 2>conftest.er1
10071 grep -v '^ *+' conftest.er1 >conftest.err
10073 cat conftest.err >&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); } &&
10076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10077 { (case "(($ac_try" in
10078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079 *) ac_try_echo=$ac_try;;
10081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082 (eval "$ac_try") 2>&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; } &&
10086 { ac_try='test -s conftest$ac_exeext'
10087 { (case "(($ac_try" in
10088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089 *) ac_try_echo=$ac_try;;
10091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092 (eval "$ac_try") 2>&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; }; then
10096 ac_cv_func_shl_load=yes
10098 echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.$ac_ext >&5
10101 ac_cv_func_shl_load=no
10104 rm -f core conftest.err conftest.$ac_objext \
10105 conftest$ac_exeext conftest.$ac_ext
10107 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10108 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10109 if test $ac_cv_func_shl_load = yes; then
10111 cat >>confdefs.h <<\_ACEOF
10112 #define HAVE_SHL_LOAD 1
10116 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10117 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10118 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10121 ac_check_lib_save_LIBS=$LIBS
10123 cat >conftest.$ac_ext <<_ACEOF
10126 cat confdefs.h >>conftest.$ac_ext
10127 cat >>conftest.$ac_ext <<_ACEOF
10128 /* end confdefs.h. */
10130 /* Override any GCC internal prototype to avoid an error.
10131 Use char because int might match the return type of a GCC
10132 builtin and then its argument prototype would still apply. */
10140 return shl_load ();
10145 rm -f conftest.$ac_objext conftest$ac_exeext
10146 if { (ac_try="$ac_link"
10147 case "(($ac_try" in
10148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149 *) ac_try_echo=$ac_try;;
10151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10152 (eval "$ac_link") 2>conftest.er1
10154 grep -v '^ *+' conftest.er1 >conftest.err
10156 cat conftest.err >&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); } &&
10159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10160 { (case "(($ac_try" in
10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162 *) ac_try_echo=$ac_try;;
10164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165 (eval "$ac_try") 2>&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }; } &&
10169 { ac_try='test -s conftest$ac_exeext'
10170 { (case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_try") 2>&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; }; then
10179 ac_cv_lib_dld_shl_load=yes
10181 echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10184 ac_cv_lib_dld_shl_load=no
10187 rm -f core conftest.err conftest.$ac_objext \
10188 conftest$ac_exeext conftest.$ac_ext
10189 LIBS=$ac_check_lib_save_LIBS
10191 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10192 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10193 if test $ac_cv_lib_dld_shl_load = yes; then
10195 cat >>confdefs.h <<\_ACEOF
10196 #define HAVE_SHL_LOAD 1
10199 LIBADD_DL="$LIBADD_DL -ldld"
10201 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10202 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10203 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10206 ac_check_lib_save_LIBS=$LIBS
10208 cat >conftest.$ac_ext <<_ACEOF
10211 cat confdefs.h >>conftest.$ac_ext
10212 cat >>conftest.$ac_ext <<_ACEOF
10213 /* end confdefs.h. */
10215 /* Override any GCC internal prototype to avoid an error.
10216 Use char because int might match the return type of a GCC
10217 builtin and then its argument prototype would still apply. */
10230 rm -f conftest.$ac_objext conftest$ac_exeext
10231 if { (ac_try="$ac_link"
10232 case "(($ac_try" in
10233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234 *) ac_try_echo=$ac_try;;
10236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237 (eval "$ac_link") 2>conftest.er1
10239 grep -v '^ *+' conftest.er1 >conftest.err
10241 cat conftest.err >&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); } &&
10244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10245 { (case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_try") 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; } &&
10254 { ac_try='test -s conftest$ac_exeext'
10255 { (case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_try") 2>&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; }; then
10264 ac_cv_lib_dl_dlopen=yes
10266 echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10269 ac_cv_lib_dl_dlopen=no
10272 rm -f core conftest.err conftest.$ac_objext \
10273 conftest$ac_exeext conftest.$ac_ext
10274 LIBS=$ac_check_lib_save_LIBS
10276 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10277 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10278 if test $ac_cv_lib_dl_dlopen = yes; then
10280 cat >>confdefs.h <<\_ACEOF
10281 #define HAVE_LIBDL 1
10284 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10286 cat >conftest.$ac_ext <<_ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10293 # include <dlfcn.h>
10304 rm -f conftest.$ac_objext conftest$ac_exeext
10305 if { (ac_try="$ac_link"
10306 case "(($ac_try" in
10307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308 *) ac_try_echo=$ac_try;;
10310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10311 (eval "$ac_link") 2>conftest.er1
10313 grep -v '^ *+' conftest.er1 >conftest.err
10315 cat conftest.err >&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } &&
10318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10319 { (case "(($ac_try" in
10320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10324 (eval "$ac_try") 2>&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; } &&
10328 { ac_try='test -s conftest$ac_exeext'
10329 { (case "(($ac_try" in
10330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331 *) ac_try_echo=$ac_try;;
10333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334 (eval "$ac_try") 2>&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); }; }; then
10339 cat >>confdefs.h <<\_ACEOF
10340 #define HAVE_LIBDL 1
10342 libltdl_cv_func_dlopen="yes"
10344 echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10347 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10348 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10349 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10350 echo $ECHO_N "(cached) $ECHO_C" >&6
10352 ac_check_lib_save_LIBS=$LIBS
10353 LIBS="-lsvld $LIBS"
10354 cat >conftest.$ac_ext <<_ACEOF
10357 cat confdefs.h >>conftest.$ac_ext
10358 cat >>conftest.$ac_ext <<_ACEOF
10359 /* end confdefs.h. */
10361 /* Override any GCC internal prototype to avoid an error.
10362 Use char because int might match the return type of a GCC
10363 builtin and then its argument prototype would still apply. */
10376 rm -f conftest.$ac_objext conftest$ac_exeext
10377 if { (ac_try="$ac_link"
10378 case "(($ac_try" in
10379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380 *) ac_try_echo=$ac_try;;
10382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383 (eval "$ac_link") 2>conftest.er1
10385 grep -v '^ *+' conftest.er1 >conftest.err
10387 cat conftest.err >&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } &&
10390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10391 { (case "(($ac_try" in
10392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393 *) ac_try_echo=$ac_try;;
10395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10396 (eval "$ac_try") 2>&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); }; } &&
10400 { ac_try='test -s conftest$ac_exeext'
10401 { (case "(($ac_try" in
10402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403 *) ac_try_echo=$ac_try;;
10405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406 (eval "$ac_try") 2>&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; }; then
10410 ac_cv_lib_svld_dlopen=yes
10412 echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10415 ac_cv_lib_svld_dlopen=no
10418 rm -f core conftest.err conftest.$ac_objext \
10419 conftest$ac_exeext conftest.$ac_ext
10420 LIBS=$ac_check_lib_save_LIBS
10422 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10423 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10424 if test $ac_cv_lib_svld_dlopen = yes; then
10426 cat >>confdefs.h <<\_ACEOF
10427 #define HAVE_LIBDL 1
10430 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10432 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10433 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10434 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10435 echo $ECHO_N "(cached) $ECHO_C" >&6
10437 ac_check_lib_save_LIBS=$LIBS
10439 cat >conftest.$ac_ext <<_ACEOF
10442 cat confdefs.h >>conftest.$ac_ext
10443 cat >>conftest.$ac_ext <<_ACEOF
10444 /* end confdefs.h. */
10446 /* Override any GCC internal prototype to avoid an error.
10447 Use char because int might match the return type of a GCC
10448 builtin and then its argument prototype would still apply. */
10456 return dld_link ();
10461 rm -f conftest.$ac_objext conftest$ac_exeext
10462 if { (ac_try="$ac_link"
10463 case "(($ac_try" in
10464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465 *) ac_try_echo=$ac_try;;
10467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10468 (eval "$ac_link") 2>conftest.er1
10470 grep -v '^ *+' conftest.er1 >conftest.err
10472 cat conftest.err >&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); } &&
10475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10476 { (case "(($ac_try" in
10477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478 *) ac_try_echo=$ac_try;;
10480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481 (eval "$ac_try") 2>&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; } &&
10485 { ac_try='test -s conftest$ac_exeext'
10486 { (case "(($ac_try" in
10487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488 *) ac_try_echo=$ac_try;;
10490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491 (eval "$ac_try") 2>&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }; }; then
10495 ac_cv_lib_dld_dld_link=yes
10497 echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.$ac_ext >&5
10500 ac_cv_lib_dld_dld_link=no
10503 rm -f core conftest.err conftest.$ac_objext \
10504 conftest$ac_exeext conftest.$ac_ext
10505 LIBS=$ac_check_lib_save_LIBS
10507 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10508 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10509 if test $ac_cv_lib_dld_dld_link = yes; then
10511 cat >>confdefs.h <<\_ACEOF
10515 LIBADD_DL="$LIBADD_DL -ldld"
10517 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10518 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10519 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10520 echo $ECHO_N "(cached) $ECHO_C" >&6
10522 cat >conftest.$ac_ext <<_ACEOF
10525 cat confdefs.h >>conftest.$ac_ext
10526 cat >>conftest.$ac_ext <<_ACEOF
10527 /* end confdefs.h. */
10528 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10530 #define _dyld_func_lookup innocuous__dyld_func_lookup
10532 /* System header to define __stub macros and hopefully few prototypes,
10533 which can conflict with char _dyld_func_lookup (); below.
10534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10535 <limits.h> exists even on freestanding compilers. */
10538 # include <limits.h>
10540 # include <assert.h>
10543 #undef _dyld_func_lookup
10545 /* Override any GCC internal prototype to avoid an error.
10546 Use char because int might match the return type of a GCC
10547 builtin and then its argument prototype would still apply. */
10551 char _dyld_func_lookup ();
10552 /* The GNU C library defines this for functions which it implements
10553 to always fail with ENOSYS. Some functions are actually named
10554 something starting with __ and the normal name is an alias. */
10555 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10562 return _dyld_func_lookup ();
10567 rm -f conftest.$ac_objext conftest$ac_exeext
10568 if { (ac_try="$ac_link"
10569 case "(($ac_try" in
10570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571 *) ac_try_echo=$ac_try;;
10573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10574 (eval "$ac_link") 2>conftest.er1
10576 grep -v '^ *+' conftest.er1 >conftest.err
10578 cat conftest.err >&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } &&
10581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10582 { (case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584 *) ac_try_echo=$ac_try;;
10586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10587 (eval "$ac_try") 2>&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; } &&
10591 { ac_try='test -s conftest$ac_exeext'
10592 { (case "(($ac_try" in
10593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594 *) ac_try_echo=$ac_try;;
10596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10597 (eval "$ac_try") 2>&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; }; then
10601 ac_cv_func__dyld_func_lookup=yes
10603 echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10606 ac_cv_func__dyld_func_lookup=no
10609 rm -f core conftest.err conftest.$ac_objext \
10610 conftest$ac_exeext conftest.$ac_ext
10612 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10613 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10614 if test $ac_cv_func__dyld_func_lookup = yes; then
10616 cat >>confdefs.h <<\_ACEOF
10617 #define HAVE_DYLD 1
10631 rm -f core conftest.err conftest.$ac_objext \
10632 conftest$ac_exeext conftest.$ac_ext
10643 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10645 lt_save_LIBS="$LIBS"
10646 LIBS="$LIBS $LIBADD_DL"
10648 for ac_func in dlerror
10650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10654 echo $ECHO_N "(cached) $ECHO_C" >&6
10656 cat >conftest.$ac_ext <<_ACEOF
10659 cat confdefs.h >>conftest.$ac_ext
10660 cat >>conftest.$ac_ext <<_ACEOF
10661 /* end confdefs.h. */
10662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10664 #define $ac_func innocuous_$ac_func
10666 /* System header to define __stub macros and hopefully few prototypes,
10667 which can conflict with char $ac_func (); below.
10668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10669 <limits.h> exists even on freestanding compilers. */
10672 # include <limits.h>
10674 # include <assert.h>
10679 /* Override any GCC internal prototype to avoid an error.
10680 Use char because int might match the return type of a GCC
10681 builtin and then its argument prototype would still apply. */
10686 /* The GNU C library defines this for functions which it implements
10687 to always fail with ENOSYS. Some functions are actually named
10688 something starting with __ and the normal name is an alias. */
10689 #if defined __stub_$ac_func || defined __stub___$ac_func
10696 return $ac_func ();
10701 rm -f conftest.$ac_objext conftest$ac_exeext
10702 if { (ac_try="$ac_link"
10703 case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708 (eval "$ac_link") 2>conftest.er1
10710 grep -v '^ *+' conftest.er1 >conftest.err
10712 cat conftest.err >&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); } &&
10715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10716 { (case "(($ac_try" in
10717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718 *) ac_try_echo=$ac_try;;
10720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10721 (eval "$ac_try") 2>&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; } &&
10725 { ac_try='test -s conftest$ac_exeext'
10726 { (case "(($ac_try" in
10727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10728 *) ac_try_echo=$ac_try;;
10730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10731 (eval "$ac_try") 2>&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); }; }; then
10735 eval "$as_ac_var=yes"
10737 echo "$as_me: failed program was:" >&5
10738 sed 's/^/| /' conftest.$ac_ext >&5
10740 eval "$as_ac_var=no"
10743 rm -f core conftest.err conftest.$ac_objext \
10744 conftest$ac_exeext conftest.$ac_ext
10746 ac_res=`eval echo '${'$as_ac_var'}'`
10747 { echo "$as_me:$LINENO: result: $ac_res" >&5
10748 echo "${ECHO_T}$ac_res" >&6; }
10749 if test `eval echo '${'$as_ac_var'}'` = yes; then
10750 cat >>confdefs.h <<_ACEOF
10751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10757 LIBS="$lt_save_LIBS"
10760 ac_cpp='$CPP $CPPFLAGS'
10761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10767 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10768 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10769 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10770 echo $ECHO_N "(cached) $ECHO_C" >&6
10772 ac_cv_sys_symbol_underscore=no
10773 cat > conftest.$ac_ext <<EOF
10774 void nm_test_func(){}
10775 int main(){nm_test_func;return 0;}
10777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10778 (eval $ac_compile) 2>&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; then
10782 # Now try to grab the symbols.
10783 ac_nlist=conftest.nm
10784 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10785 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } && test -s "$ac_nlist"; then
10789 # See whether the symbols have a leading underscore.
10790 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10791 ac_cv_sys_symbol_underscore=yes
10793 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10796 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10800 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10803 echo "configure: failed program was:" >&5
10809 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10810 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10813 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10814 if test x"$libltdl_cv_func_dlopen" = xyes ||
10815 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10816 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10817 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10818 if test "${libltdl_cv_need_uscore+set}" = set; then
10819 echo $ECHO_N "(cached) $ECHO_C" >&6
10821 libltdl_cv_need_uscore=unknown
10823 LIBS="$LIBS $LIBADD_DL"
10824 if test "$cross_compiling" = yes; then :
10825 libltdl_cv_need_uscore=cross
10827 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10828 lt_status=$lt_dlunknown
10829 cat > conftest.$ac_ext <<EOF
10830 #line 10830 "configure"
10831 #include "confdefs.h"
10840 # define LT_DLGLOBAL RTLD_GLOBAL
10843 # define LT_DLGLOBAL DL_GLOBAL
10845 # define LT_DLGLOBAL 0
10849 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10850 find out it does not work in some platform. */
10851 #ifndef LT_DLLAZY_OR_NOW
10853 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10856 # define LT_DLLAZY_OR_NOW DL_LAZY
10859 # define LT_DLLAZY_OR_NOW RTLD_NOW
10862 # define LT_DLLAZY_OR_NOW DL_NOW
10864 # define LT_DLLAZY_OR_NOW 0
10872 extern "C" void exit (int);
10875 void fnord() { int i=42;}
10878 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10879 int status = $lt_dlunknown;
10883 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10884 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10885 /* dlclose (self); */
10893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10894 (eval $ac_link) 2>&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10898 (./conftest; exit; ) >&5 2>/dev/null
10900 case x$lt_status in
10901 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10902 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10903 x$lt_dlunknown|x*) ;;
10906 # compilation failed
10915 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10916 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10920 if test x"$libltdl_cv_need_uscore" = xyes; then
10922 cat >>confdefs.h <<\_ACEOF
10923 #define NEED_USCORE 1
10929 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10930 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10931 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10934 # PORTME does your system automatically load deplibs for dlopen?
10935 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10936 # For now, we just catch OSes we know something about -- in the
10937 # future, we'll try test this programmatically.
10938 libltdl_cv_sys_dlopen_deplibs=unknown
10940 aix3*|aix4.1.*|aix4.2.*)
10941 # Unknown whether this is true for these versions of AIX, but
10942 # we want this `case' here to explicitly catch those versions.
10943 libltdl_cv_sys_dlopen_deplibs=unknown
10946 libltdl_cv_sys_dlopen_deplibs=yes
10949 # Assuming the user has installed a libdl from somewhere, this is true
10950 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10951 libltdl_cv_sys_dlopen_deplibs=yes
10953 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10954 # GNU and its variants, using gnu ld.so (Glibc)
10955 libltdl_cv_sys_dlopen_deplibs=yes
10958 libltdl_cv_sys_dlopen_deplibs=yes
10961 libltdl_cv_sys_dlopen_deplibs=yes
10963 irix[12345]*|irix6.[01]*)
10964 # Catch all versions of IRIX before 6.2, and indicate that we don't
10965 # know how it worked for any of those versions.
10966 libltdl_cv_sys_dlopen_deplibs=unknown
10969 # The case above catches anything before 6.2, and it's known that
10970 # at 6.2 and later dlopen does load deplibs.
10971 libltdl_cv_sys_dlopen_deplibs=yes
10974 libltdl_cv_sys_dlopen_deplibs=yes
10977 libltdl_cv_sys_dlopen_deplibs=yes
10980 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10981 # it did *not* use an RPATH in a shared library to find objects the
10982 # library depends on, so we explictly say `no'.
10983 libltdl_cv_sys_dlopen_deplibs=no
10985 osf5.0|osf5.0a|osf5.1)
10986 # dlopen *does* load deplibs and with the right loader patch applied
10987 # it even uses RPATH in a shared library to search for shared objects
10988 # that the library depends on, but there's no easy way to know if that
10989 # patch is installed. Since this is the case, all we can really
10990 # say is unknown -- it depends on the patch being installed. If
10991 # it is, this changes to `yes'. Without it, it would be `no'.
10992 libltdl_cv_sys_dlopen_deplibs=unknown
10995 # the two cases above should catch all versions of osf <= 5.1. Read
10996 # the comments above for what we know about them.
10997 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10998 # is used to find them so we can finally say `yes'.
10999 libltdl_cv_sys_dlopen_deplibs=yes
11002 libltdl_cv_sys_dlopen_deplibs=yes
11004 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11005 libltdl_cv_sys_dlopen_deplibs=yes
11010 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11011 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11012 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11014 cat >>confdefs.h <<\_ACEOF
11015 #define LTDL_DLOPEN_DEPLIBS 1
11021 for ac_header in argz.h
11023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11030 ac_res=`eval echo '${'$as_ac_Header'}'`
11031 { echo "$as_me:$LINENO: result: $ac_res" >&5
11032 echo "${ECHO_T}$ac_res" >&6; }
11034 # Is the header compilable?
11035 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11037 cat >conftest.$ac_ext <<_ACEOF
11040 cat confdefs.h >>conftest.$ac_ext
11041 cat >>conftest.$ac_ext <<_ACEOF
11042 /* end confdefs.h. */
11043 $ac_includes_default
11044 #include <$ac_header>
11046 rm -f conftest.$ac_objext
11047 if { (ac_try="$ac_compile"
11048 case "(($ac_try" in
11049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050 *) ac_try_echo=$ac_try;;
11052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053 (eval "$ac_compile") 2>conftest.er1
11055 grep -v '^ *+' conftest.er1 >conftest.err
11057 cat conftest.err >&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } &&
11060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11061 { (case "(($ac_try" in
11062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063 *) ac_try_echo=$ac_try;;
11065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066 (eval "$ac_try") 2>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; } &&
11070 { ac_try='test -s conftest.$ac_objext'
11071 { (case "(($ac_try" in
11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073 *) ac_try_echo=$ac_try;;
11075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076 (eval "$ac_try") 2>&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; }; then
11080 ac_header_compiler=yes
11082 echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11085 ac_header_compiler=no
11088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11090 echo "${ECHO_T}$ac_header_compiler" >&6; }
11092 # Is the header present?
11093 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11095 cat >conftest.$ac_ext <<_ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h. */
11101 #include <$ac_header>
11103 if { (ac_try="$ac_cpp conftest.$ac_ext"
11104 case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11111 grep -v '^ *+' conftest.er1 >conftest.err
11113 cat conftest.err >&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); } >/dev/null; then
11116 if test -s conftest.err; then
11117 ac_cpp_err=$ac_c_preproc_warn_flag
11118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11125 if test -z "$ac_cpp_err"; then
11126 ac_header_preproc=yes
11128 echo "$as_me: failed program was:" >&5
11129 sed 's/^/| /' conftest.$ac_ext >&5
11131 ac_header_preproc=no
11134 rm -f conftest.err conftest.$ac_ext
11135 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11136 echo "${ECHO_T}$ac_header_preproc" >&6; }
11138 # So? What about this header?
11139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11145 ac_header_preproc=yes
11148 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11150 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11151 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11152 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11153 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11154 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11155 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11158 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11159 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11161 ## ----------------------------------- ##
11162 ## Report this to llvmbugs@cs.uiuc.edu ##
11163 ## ----------------------------------- ##
11165 ) | sed "s/^/$as_me: WARNING: /" >&2
11168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11171 echo $ECHO_N "(cached) $ECHO_C" >&6
11173 eval "$as_ac_Header=\$ac_header_preproc"
11175 ac_res=`eval echo '${'$as_ac_Header'}'`
11176 { echo "$as_me:$LINENO: result: $ac_res" >&5
11177 echo "${ECHO_T}$ac_res" >&6; }
11180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11181 cat >>confdefs.h <<_ACEOF
11182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11190 { echo "$as_me:$LINENO: checking for error_t" >&5
11191 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11192 if test "${ac_cv_type_error_t+set}" = set; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11195 cat >conftest.$ac_ext <<_ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h. */
11205 typedef error_t ac__type_new_;
11209 if ((ac__type_new_ *) 0)
11211 if (sizeof (ac__type_new_))
11217 rm -f conftest.$ac_objext
11218 if { (ac_try="$ac_compile"
11219 case "(($ac_try" in
11220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11221 *) ac_try_echo=$ac_try;;
11223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11224 (eval "$ac_compile") 2>conftest.er1
11226 grep -v '^ *+' conftest.er1 >conftest.err
11228 cat conftest.err >&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } &&
11231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11232 { (case "(($ac_try" in
11233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234 *) ac_try_echo=$ac_try;;
11236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237 (eval "$ac_try") 2>&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); }; } &&
11241 { ac_try='test -s conftest.$ac_objext'
11242 { (case "(($ac_try" in
11243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11244 *) ac_try_echo=$ac_try;;
11246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11247 (eval "$ac_try") 2>&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); }; }; then
11251 ac_cv_type_error_t=yes
11253 echo "$as_me: failed program was:" >&5
11254 sed 's/^/| /' conftest.$ac_ext >&5
11256 ac_cv_type_error_t=no
11259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11261 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11262 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11263 if test $ac_cv_type_error_t = yes; then
11265 cat >>confdefs.h <<_ACEOF
11266 #define HAVE_ERROR_T 1
11272 cat >>confdefs.h <<\_ACEOF
11273 #define error_t int
11284 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11287 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11289 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11292 cat >conftest.$ac_ext <<_ACEOF
11295 cat confdefs.h >>conftest.$ac_ext
11296 cat >>conftest.$ac_ext <<_ACEOF
11297 /* end confdefs.h. */
11298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11300 #define $ac_func innocuous_$ac_func
11302 /* System header to define __stub macros and hopefully few prototypes,
11303 which can conflict with char $ac_func (); below.
11304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11305 <limits.h> exists even on freestanding compilers. */
11308 # include <limits.h>
11310 # include <assert.h>
11315 /* Override any GCC internal prototype to avoid an error.
11316 Use char because int might match the return type of a GCC
11317 builtin and then its argument prototype would still apply. */
11322 /* The GNU C library defines this for functions which it implements
11323 to always fail with ENOSYS. Some functions are actually named
11324 something starting with __ and the normal name is an alias. */
11325 #if defined __stub_$ac_func || defined __stub___$ac_func
11332 return $ac_func ();
11337 rm -f conftest.$ac_objext conftest$ac_exeext
11338 if { (ac_try="$ac_link"
11339 case "(($ac_try" in
11340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341 *) ac_try_echo=$ac_try;;
11343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344 (eval "$ac_link") 2>conftest.er1
11346 grep -v '^ *+' conftest.er1 >conftest.err
11348 cat conftest.err >&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } &&
11351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11352 { (case "(($ac_try" in
11353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354 *) ac_try_echo=$ac_try;;
11356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11357 (eval "$ac_try") 2>&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; } &&
11361 { ac_try='test -s conftest$ac_exeext'
11362 { (case "(($ac_try" in
11363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364 *) ac_try_echo=$ac_try;;
11366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367 (eval "$ac_try") 2>&5
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); }; }; then
11371 eval "$as_ac_var=yes"
11373 echo "$as_me: failed program was:" >&5
11374 sed 's/^/| /' conftest.$ac_ext >&5
11376 eval "$as_ac_var=no"
11379 rm -f core conftest.err conftest.$ac_objext \
11380 conftest$ac_exeext conftest.$ac_ext
11382 ac_res=`eval echo '${'$as_ac_var'}'`
11383 { echo "$as_me:$LINENO: result: $ac_res" >&5
11384 echo "${ECHO_T}$ac_res" >&6; }
11385 if test `eval echo '${'$as_ac_var'}'` = yes; then
11386 cat >>confdefs.h <<_ACEOF
11387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11420 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11428 echo $ECHO_N "(cached) $ECHO_C" >&6
11430 ac_res=`eval echo '${'$as_ac_Header'}'`
11431 { echo "$as_me:$LINENO: result: $ac_res" >&5
11432 echo "${ECHO_T}$ac_res" >&6; }
11434 # Is the header compilable?
11435 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11437 cat >conftest.$ac_ext <<_ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11443 $ac_includes_default
11444 #include <$ac_header>
11446 rm -f conftest.$ac_objext
11447 if { (ac_try="$ac_compile"
11448 case "(($ac_try" in
11449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11450 *) ac_try_echo=$ac_try;;
11452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11453 (eval "$ac_compile") 2>conftest.er1
11455 grep -v '^ *+' conftest.er1 >conftest.err
11457 cat conftest.err >&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); } &&
11460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11461 { (case "(($ac_try" in
11462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463 *) ac_try_echo=$ac_try;;
11465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466 (eval "$ac_try") 2>&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); }; } &&
11470 { ac_try='test -s conftest.$ac_objext'
11471 { (case "(($ac_try" in
11472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473 *) ac_try_echo=$ac_try;;
11475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11476 (eval "$ac_try") 2>&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; }; then
11480 ac_header_compiler=yes
11482 echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11485 ac_header_compiler=no
11488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11490 echo "${ECHO_T}$ac_header_compiler" >&6; }
11492 # Is the header present?
11493 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11495 cat >conftest.$ac_ext <<_ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h. */
11501 #include <$ac_header>
11503 if { (ac_try="$ac_cpp conftest.$ac_ext"
11504 case "(($ac_try" in
11505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506 *) ac_try_echo=$ac_try;;
11508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11511 grep -v '^ *+' conftest.er1 >conftest.err
11513 cat conftest.err >&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); } >/dev/null; then
11516 if test -s conftest.err; then
11517 ac_cpp_err=$ac_c_preproc_warn_flag
11518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11525 if test -z "$ac_cpp_err"; then
11526 ac_header_preproc=yes
11528 echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.$ac_ext >&5
11531 ac_header_preproc=no
11534 rm -f conftest.err conftest.$ac_ext
11535 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11536 echo "${ECHO_T}$ac_header_preproc" >&6; }
11538 # So? What about this header?
11539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11542 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11545 ac_header_preproc=yes
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11553 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11555 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11559 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11561 ## ----------------------------------- ##
11562 ## Report this to llvmbugs@cs.uiuc.edu ##
11563 ## ----------------------------------- ##
11565 ) | sed "s/^/$as_me: WARNING: /" >&2
11568 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11573 eval "$as_ac_Header=\$ac_header_preproc"
11575 ac_res=`eval echo '${'$as_ac_Header'}'`
11576 { echo "$as_me:$LINENO: result: $ac_res" >&5
11577 echo "${ECHO_T}$ac_res" >&6; }
11580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11581 cat >>confdefs.h <<_ACEOF
11582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11593 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11602 ac_res=`eval echo '${'$as_ac_Header'}'`
11603 { echo "$as_me:$LINENO: result: $ac_res" >&5
11604 echo "${ECHO_T}$ac_res" >&6; }
11606 # Is the header compilable?
11607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11609 cat >conftest.$ac_ext <<_ACEOF
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h. */
11615 $ac_includes_default
11616 #include <$ac_header>
11618 rm -f conftest.$ac_objext
11619 if { (ac_try="$ac_compile"
11620 case "(($ac_try" in
11621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11622 *) ac_try_echo=$ac_try;;
11624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11625 (eval "$ac_compile") 2>conftest.er1
11627 grep -v '^ *+' conftest.er1 >conftest.err
11629 cat conftest.err >&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } &&
11632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11633 { (case "(($ac_try" in
11634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635 *) ac_try_echo=$ac_try;;
11637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11638 (eval "$ac_try") 2>&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; } &&
11642 { ac_try='test -s conftest.$ac_objext'
11643 { (case "(($ac_try" in
11644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11645 *) ac_try_echo=$ac_try;;
11647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11648 (eval "$ac_try") 2>&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; }; then
11652 ac_header_compiler=yes
11654 echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11657 ac_header_compiler=no
11660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11662 echo "${ECHO_T}$ac_header_compiler" >&6; }
11664 # Is the header present?
11665 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11666 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11667 cat >conftest.$ac_ext <<_ACEOF
11670 cat confdefs.h >>conftest.$ac_ext
11671 cat >>conftest.$ac_ext <<_ACEOF
11672 /* end confdefs.h. */
11673 #include <$ac_header>
11675 if { (ac_try="$ac_cpp conftest.$ac_ext"
11676 case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11683 grep -v '^ *+' conftest.er1 >conftest.err
11685 cat conftest.err >&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); } >/dev/null; then
11688 if test -s conftest.err; then
11689 ac_cpp_err=$ac_c_preproc_warn_flag
11690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11697 if test -z "$ac_cpp_err"; then
11698 ac_header_preproc=yes
11700 echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11703 ac_header_preproc=no
11706 rm -f conftest.err conftest.$ac_ext
11707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11708 echo "${ECHO_T}$ac_header_preproc" >&6; }
11710 # So? What about this header?
11711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11717 ac_header_preproc=yes
11720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11727 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11733 ## ----------------------------------- ##
11734 ## Report this to llvmbugs@cs.uiuc.edu ##
11735 ## ----------------------------------- ##
11737 ) | sed "s/^/$as_me: WARNING: /" >&2
11740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11743 echo $ECHO_N "(cached) $ECHO_C" >&6
11745 eval "$as_ac_Header=\$ac_header_preproc"
11747 ac_res=`eval echo '${'$as_ac_Header'}'`
11748 { echo "$as_me:$LINENO: result: $ac_res" >&5
11749 echo "${ECHO_T}$ac_res" >&6; }
11752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11753 cat >>confdefs.h <<_ACEOF
11754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11763 for ac_header in string.h strings.h
11765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11770 echo $ECHO_N "(cached) $ECHO_C" >&6
11772 ac_res=`eval echo '${'$as_ac_Header'}'`
11773 { echo "$as_me:$LINENO: result: $ac_res" >&5
11774 echo "${ECHO_T}$ac_res" >&6; }
11776 # Is the header compilable?
11777 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11778 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11779 cat >conftest.$ac_ext <<_ACEOF
11782 cat confdefs.h >>conftest.$ac_ext
11783 cat >>conftest.$ac_ext <<_ACEOF
11784 /* end confdefs.h. */
11785 $ac_includes_default
11786 #include <$ac_header>
11788 rm -f conftest.$ac_objext
11789 if { (ac_try="$ac_compile"
11790 case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795 (eval "$ac_compile") 2>conftest.er1
11797 grep -v '^ *+' conftest.er1 >conftest.err
11799 cat conftest.err >&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } &&
11802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11803 { (case "(($ac_try" in
11804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805 *) ac_try_echo=$ac_try;;
11807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808 (eval "$ac_try") 2>&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); }; } &&
11812 { ac_try='test -s conftest.$ac_objext'
11813 { (case "(($ac_try" in
11814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815 *) ac_try_echo=$ac_try;;
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818 (eval "$ac_try") 2>&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; }; then
11822 ac_header_compiler=yes
11824 echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11827 ac_header_compiler=no
11830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11832 echo "${ECHO_T}$ac_header_compiler" >&6; }
11834 # Is the header present?
11835 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11837 cat >conftest.$ac_ext <<_ACEOF
11840 cat confdefs.h >>conftest.$ac_ext
11841 cat >>conftest.$ac_ext <<_ACEOF
11842 /* end confdefs.h. */
11843 #include <$ac_header>
11845 if { (ac_try="$ac_cpp conftest.$ac_ext"
11846 case "(($ac_try" in
11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848 *) ac_try_echo=$ac_try;;
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11853 grep -v '^ *+' conftest.er1 >conftest.err
11855 cat conftest.err >&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } >/dev/null; then
11858 if test -s conftest.err; then
11859 ac_cpp_err=$ac_c_preproc_warn_flag
11860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11867 if test -z "$ac_cpp_err"; then
11868 ac_header_preproc=yes
11870 echo "$as_me: failed program was:" >&5
11871 sed 's/^/| /' conftest.$ac_ext >&5
11873 ac_header_preproc=no
11876 rm -f conftest.err conftest.$ac_ext
11877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11878 echo "${ECHO_T}$ac_header_preproc" >&6; }
11880 # So? What about this header?
11881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11887 ac_header_preproc=yes
11890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11897 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11903 ## ----------------------------------- ##
11904 ## Report this to llvmbugs@cs.uiuc.edu ##
11905 ## ----------------------------------- ##
11907 ) | sed "s/^/$as_me: WARNING: /" >&2
11910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11913 echo $ECHO_N "(cached) $ECHO_C" >&6
11915 eval "$as_ac_Header=\$ac_header_preproc"
11917 ac_res=`eval echo '${'$as_ac_Header'}'`
11918 { echo "$as_me:$LINENO: result: $ac_res" >&5
11919 echo "${ECHO_T}$ac_res" >&6; }
11922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11923 cat >>confdefs.h <<_ACEOF
11924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11934 for ac_func in strchr index
11936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11942 cat >conftest.$ac_ext <<_ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11950 #define $ac_func innocuous_$ac_func
11952 /* System header to define __stub macros and hopefully few prototypes,
11953 which can conflict with char $ac_func (); below.
11954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11955 <limits.h> exists even on freestanding compilers. */
11958 # include <limits.h>
11960 # include <assert.h>
11965 /* Override any GCC internal prototype to avoid an error.
11966 Use char because int might match the return type of a GCC
11967 builtin and then its argument prototype would still apply. */
11972 /* The GNU C library defines this for functions which it implements
11973 to always fail with ENOSYS. Some functions are actually named
11974 something starting with __ and the normal name is an alias. */
11975 #if defined __stub_$ac_func || defined __stub___$ac_func
11982 return $ac_func ();
11987 rm -f conftest.$ac_objext conftest$ac_exeext
11988 if { (ac_try="$ac_link"
11989 case "(($ac_try" in
11990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991 *) ac_try_echo=$ac_try;;
11993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994 (eval "$ac_link") 2>conftest.er1
11996 grep -v '^ *+' conftest.er1 >conftest.err
11998 cat conftest.err >&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } &&
12001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12002 { (case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007 (eval "$ac_try") 2>&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; } &&
12011 { ac_try='test -s conftest$ac_exeext'
12012 { (case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_try") 2>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 eval "$as_ac_var=yes"
12023 echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12026 eval "$as_ac_var=no"
12029 rm -f core conftest.err conftest.$ac_objext \
12030 conftest$ac_exeext conftest.$ac_ext
12032 ac_res=`eval echo '${'$as_ac_var'}'`
12033 { echo "$as_me:$LINENO: result: $ac_res" >&5
12034 echo "${ECHO_T}$ac_res" >&6; }
12035 if test `eval echo '${'$as_ac_var'}'` = yes; then
12036 cat >>confdefs.h <<_ACEOF
12037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12045 for ac_func in strrchr rindex
12047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12048 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12050 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12053 cat >conftest.$ac_ext <<_ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h. */
12059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12061 #define $ac_func innocuous_$ac_func
12063 /* System header to define __stub macros and hopefully few prototypes,
12064 which can conflict with char $ac_func (); below.
12065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12066 <limits.h> exists even on freestanding compilers. */
12069 # include <limits.h>
12071 # include <assert.h>
12076 /* Override any GCC internal prototype to avoid an error.
12077 Use char because int might match the return type of a GCC
12078 builtin and then its argument prototype would still apply. */
12083 /* The GNU C library defines this for functions which it implements
12084 to always fail with ENOSYS. Some functions are actually named
12085 something starting with __ and the normal name is an alias. */
12086 #if defined __stub_$ac_func || defined __stub___$ac_func
12093 return $ac_func ();
12098 rm -f conftest.$ac_objext conftest$ac_exeext
12099 if { (ac_try="$ac_link"
12100 case "(($ac_try" in
12101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102 *) ac_try_echo=$ac_try;;
12104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105 (eval "$ac_link") 2>conftest.er1
12107 grep -v '^ *+' conftest.er1 >conftest.err
12109 cat conftest.err >&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } &&
12112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12113 { (case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_try") 2>&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; } &&
12122 { ac_try='test -s conftest$ac_exeext'
12123 { (case "(($ac_try" in
12124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125 *) ac_try_echo=$ac_try;;
12127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128 (eval "$ac_try") 2>&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; }; then
12132 eval "$as_ac_var=yes"
12134 echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12137 eval "$as_ac_var=no"
12140 rm -f core conftest.err conftest.$ac_objext \
12141 conftest$ac_exeext conftest.$ac_ext
12143 ac_res=`eval echo '${'$as_ac_var'}'`
12144 { echo "$as_me:$LINENO: result: $ac_res" >&5
12145 echo "${ECHO_T}$ac_res" >&6; }
12146 if test `eval echo '${'$as_ac_var'}'` = yes; then
12147 cat >>confdefs.h <<_ACEOF
12148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12156 for ac_func in memcpy bcopy
12158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12159 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12162 echo $ECHO_N "(cached) $ECHO_C" >&6
12164 cat >conftest.$ac_ext <<_ACEOF
12167 cat confdefs.h >>conftest.$ac_ext
12168 cat >>conftest.$ac_ext <<_ACEOF
12169 /* end confdefs.h. */
12170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12172 #define $ac_func innocuous_$ac_func
12174 /* System header to define __stub macros and hopefully few prototypes,
12175 which can conflict with char $ac_func (); below.
12176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12177 <limits.h> exists even on freestanding compilers. */
12180 # include <limits.h>
12182 # include <assert.h>
12187 /* Override any GCC internal prototype to avoid an error.
12188 Use char because int might match the return type of a GCC
12189 builtin and then its argument prototype would still apply. */
12194 /* The GNU C library defines this for functions which it implements
12195 to always fail with ENOSYS. Some functions are actually named
12196 something starting with __ and the normal name is an alias. */
12197 #if defined __stub_$ac_func || defined __stub___$ac_func
12204 return $ac_func ();
12209 rm -f conftest.$ac_objext conftest$ac_exeext
12210 if { (ac_try="$ac_link"
12211 case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_link") 2>conftest.er1
12218 grep -v '^ *+' conftest.er1 >conftest.err
12220 cat conftest.err >&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } &&
12223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12224 { (case "(($ac_try" in
12225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12226 *) ac_try_echo=$ac_try;;
12228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12229 (eval "$ac_try") 2>&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; } &&
12233 { ac_try='test -s conftest$ac_exeext'
12234 { (case "(($ac_try" in
12235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12236 *) ac_try_echo=$ac_try;;
12238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12239 (eval "$ac_try") 2>&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); }; }; then
12243 eval "$as_ac_var=yes"
12245 echo "$as_me: failed program was:" >&5
12246 sed 's/^/| /' conftest.$ac_ext >&5
12248 eval "$as_ac_var=no"
12251 rm -f core conftest.err conftest.$ac_objext \
12252 conftest$ac_exeext conftest.$ac_ext
12254 ac_res=`eval echo '${'$as_ac_var'}'`
12255 { echo "$as_me:$LINENO: result: $ac_res" >&5
12256 echo "${ECHO_T}$ac_res" >&6; }
12257 if test `eval echo '${'$as_ac_var'}'` = yes; then
12258 cat >>confdefs.h <<_ACEOF
12259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12267 for ac_func in memmove strcmp
12269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12270 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12272 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 cat >conftest.$ac_ext <<_ACEOF
12278 cat confdefs.h >>conftest.$ac_ext
12279 cat >>conftest.$ac_ext <<_ACEOF
12280 /* end confdefs.h. */
12281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12283 #define $ac_func innocuous_$ac_func
12285 /* System header to define __stub macros and hopefully few prototypes,
12286 which can conflict with char $ac_func (); below.
12287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12288 <limits.h> exists even on freestanding compilers. */
12291 # include <limits.h>
12293 # include <assert.h>
12298 /* Override any GCC internal prototype to avoid an error.
12299 Use char because int might match the return type of a GCC
12300 builtin and then its argument prototype would still apply. */
12305 /* The GNU C library defines this for functions which it implements
12306 to always fail with ENOSYS. Some functions are actually named
12307 something starting with __ and the normal name is an alias. */
12308 #if defined __stub_$ac_func || defined __stub___$ac_func
12315 return $ac_func ();
12320 rm -f conftest.$ac_objext conftest$ac_exeext
12321 if { (ac_try="$ac_link"
12322 case "(($ac_try" in
12323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12324 *) ac_try_echo=$ac_try;;
12326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12327 (eval "$ac_link") 2>conftest.er1
12329 grep -v '^ *+' conftest.er1 >conftest.err
12331 cat conftest.err >&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } &&
12334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12335 { (case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_try") 2>&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; } &&
12344 { ac_try='test -s conftest$ac_exeext'
12345 { (case "(($ac_try" in
12346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347 *) ac_try_echo=$ac_try;;
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350 (eval "$ac_try") 2>&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; }; then
12354 eval "$as_ac_var=yes"
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12359 eval "$as_ac_var=no"
12362 rm -f core conftest.err conftest.$ac_objext \
12363 conftest$ac_exeext conftest.$ac_ext
12365 ac_res=`eval echo '${'$as_ac_var'}'`
12366 { echo "$as_me:$LINENO: result: $ac_res" >&5
12367 echo "${ECHO_T}$ac_res" >&6; }
12368 if test `eval echo '${'$as_ac_var'}'` = yes; then
12369 cat >>confdefs.h <<_ACEOF
12370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12379 for ac_func in closedir opendir readdir
12381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12382 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12384 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12385 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 cat >conftest.$ac_ext <<_ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h. */
12393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12395 #define $ac_func innocuous_$ac_func
12397 /* System header to define __stub macros and hopefully few prototypes,
12398 which can conflict with char $ac_func (); below.
12399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12400 <limits.h> exists even on freestanding compilers. */
12403 # include <limits.h>
12405 # include <assert.h>
12410 /* Override any GCC internal prototype to avoid an error.
12411 Use char because int might match the return type of a GCC
12412 builtin and then its argument prototype would still apply. */
12417 /* The GNU C library defines this for functions which it implements
12418 to always fail with ENOSYS. Some functions are actually named
12419 something starting with __ and the normal name is an alias. */
12420 #if defined __stub_$ac_func || defined __stub___$ac_func
12427 return $ac_func ();
12432 rm -f conftest.$ac_objext conftest$ac_exeext
12433 if { (ac_try="$ac_link"
12434 case "(($ac_try" in
12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436 *) ac_try_echo=$ac_try;;
12438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12439 (eval "$ac_link") 2>conftest.er1
12441 grep -v '^ *+' conftest.er1 >conftest.err
12443 cat conftest.err >&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); } &&
12446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12447 { (case "(($ac_try" in
12448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449 *) ac_try_echo=$ac_try;;
12451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12452 (eval "$ac_try") 2>&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; } &&
12456 { ac_try='test -s conftest$ac_exeext'
12457 { (case "(($ac_try" in
12458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12459 *) ac_try_echo=$ac_try;;
12461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12462 (eval "$ac_try") 2>&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); }; }; then
12466 eval "$as_ac_var=yes"
12468 echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12471 eval "$as_ac_var=no"
12474 rm -f core conftest.err conftest.$ac_objext \
12475 conftest$ac_exeext conftest.$ac_ext
12477 ac_res=`eval echo '${'$as_ac_var'}'`
12478 { echo "$as_me:$LINENO: result: $ac_res" >&5
12479 echo "${ECHO_T}$ac_res" >&6; }
12480 if test `eval echo '${'$as_ac_var'}'` = yes; then
12481 cat >>confdefs.h <<_ACEOF
12482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12489 # Check whether --enable-shared was given.
12490 if test "${enable_shared+set}" = set; then
12491 enableval=$enable_shared; p=${PACKAGE-default}
12493 yes) enable_shared=yes ;;
12494 no) enable_shared=no ;;
12497 # Look at the argument we got. We use all the common list separators.
12498 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12499 for pkg in $enableval; do
12501 if test "X$pkg" = "X$p"; then
12513 # Check whether --enable-static was given.
12514 if test "${enable_static+set}" = set; then
12515 enableval=$enable_static; p=${PACKAGE-default}
12517 yes) enable_static=yes ;;
12518 no) enable_static=no ;;
12521 # Look at the argument we got. We use all the common list separators.
12522 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12523 for pkg in $enableval; do
12525 if test "X$pkg" = "X$p"; then
12537 # Check whether --enable-fast-install was given.
12538 if test "${enable_fast_install+set}" = set; then
12539 enableval=$enable_fast_install; p=${PACKAGE-default}
12541 yes) enable_fast_install=yes ;;
12542 no) enable_fast_install=no ;;
12544 enable_fast_install=no
12545 # Look at the argument we got. We use all the common list separators.
12546 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12547 for pkg in $enableval; do
12549 if test "X$pkg" = "X$p"; then
12550 enable_fast_install=yes
12557 enable_fast_install=yes
12561 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12562 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12563 if test "${lt_cv_path_SED+set}" = set; then
12564 echo $ECHO_N "(cached) $ECHO_C" >&6
12566 # Loop through the user's path and test for sed and gsed.
12567 # Then use that list of sed's as ones to test for truncation.
12568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12569 for as_dir in $PATH
12572 test -z "$as_dir" && as_dir=.
12573 for lt_ac_prog in sed gsed; do
12574 for ac_exec_ext in '' $ac_executable_extensions; do
12575 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12576 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12583 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12584 # along with /bin/sed that truncates output.
12585 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12586 test ! -f $lt_ac_sed && continue
12587 cat /dev/null > conftest.in
12589 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12590 # Check for GNU sed and select it if it is found.
12591 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12592 lt_cv_path_SED=$lt_ac_sed
12596 cat conftest.in conftest.in >conftest.tmp
12597 mv conftest.tmp conftest.in
12598 cp conftest.in conftest.nl
12600 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12601 cmp -s conftest.out conftest.nl || break
12602 # 10000 chars as input seems more than enough
12603 test $lt_ac_count -gt 10 && break
12604 lt_ac_count=`expr $lt_ac_count + 1`
12605 if test $lt_ac_count -gt $lt_ac_max; then
12606 lt_ac_max=$lt_ac_count
12607 lt_cv_path_SED=$lt_ac_sed
12614 SED=$lt_cv_path_SED
12615 { echo "$as_me:$LINENO: result: $SED" >&5
12616 echo "${ECHO_T}$SED" >&6; }
12619 # Check whether --with-gnu-ld was given.
12620 if test "${with_gnu_ld+set}" = set; then
12621 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12627 if test "$GCC" = yes; then
12628 # Check if gcc -print-prog-name=ld gives a path.
12629 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12630 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12633 # gcc leaves a trailing carriage return which upsets mingw
12634 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12636 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12639 # Accept absolute paths.
12641 re_direlt='/[^/][^/]*/\.\./'
12642 # Canonicalize the pathname of ld
12643 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12644 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12645 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12647 test -z "$LD" && LD="$ac_prog"
12650 # If it fails, then pretend we aren't using GCC.
12654 # If it is relative, then search for the first ld in PATH.
12655 with_gnu_ld=unknown
12658 elif test "$with_gnu_ld" = yes; then
12659 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12660 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12662 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12663 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12665 if test "${lt_cv_path_LD+set}" = set; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12668 if test -z "$LD"; then
12669 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12670 for ac_dir in $PATH; do
12672 test -z "$ac_dir" && ac_dir=.
12673 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12674 lt_cv_path_LD="$ac_dir/$ac_prog"
12675 # Check to see if the program is GNU ld. I'd rather use --version,
12676 # but apparently some variants of GNU ld only accept -v.
12677 # Break only if it was the GNU/non-GNU ld that we prefer.
12678 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12679 *GNU* | *'with BFD'*)
12680 test "$with_gnu_ld" != no && break
12683 test "$with_gnu_ld" != yes && break
12690 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12694 LD="$lt_cv_path_LD"
12695 if test -n "$LD"; then
12696 { echo "$as_me:$LINENO: result: $LD" >&5
12697 echo "${ECHO_T}$LD" >&6; }
12699 { echo "$as_me:$LINENO: result: no" >&5
12700 echo "${ECHO_T}no" >&6; }
12702 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12703 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12704 { (exit 1); exit 1; }; }
12705 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12706 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12707 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12708 echo $ECHO_N "(cached) $ECHO_C" >&6
12710 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12711 case `$LD -v 2>&1 </dev/null` in
12712 *GNU* | *'with BFD'*)
12713 lt_cv_prog_gnu_ld=yes
12716 lt_cv_prog_gnu_ld=no
12720 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12721 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12722 with_gnu_ld=$lt_cv_prog_gnu_ld
12725 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12726 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12727 if test "${lt_cv_ld_reload_flag+set}" = set; then
12728 echo $ECHO_N "(cached) $ECHO_C" >&6
12730 lt_cv_ld_reload_flag='-r'
12732 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12733 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12734 reload_flag=$lt_cv_ld_reload_flag
12735 case $reload_flag in
12737 *) reload_flag=" $reload_flag" ;;
12739 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12742 if test "$GCC" = yes; then
12743 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12745 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12750 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12751 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12752 if test "${lt_cv_deplibs_check_method+set}" = set; then
12753 echo $ECHO_N "(cached) $ECHO_C" >&6
12755 lt_cv_file_magic_cmd='$MAGIC_CMD'
12756 lt_cv_file_magic_test_file=
12757 lt_cv_deplibs_check_method='unknown'
12758 # Need to set the preceding variable on all platforms that support
12759 # interlibrary dependencies.
12760 # 'none' -- dependencies not supported.
12761 # `unknown' -- same as none, but documents that we really don't know.
12762 # 'pass_all' -- all dependencies passed with no checks.
12763 # 'test_compile' -- check by making test program.
12764 # 'file_magic [[regex]]' -- check by looking for files in library path
12765 # which responds to the $file_magic_cmd with a given extended regex.
12766 # If you have `file' or equivalent on your system and you're not sure
12767 # whether `pass_all' will *always* work, you probably want this one.
12771 lt_cv_deplibs_check_method=pass_all
12775 lt_cv_deplibs_check_method=pass_all
12779 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12780 lt_cv_file_magic_cmd='/usr/bin/file -L'
12781 lt_cv_file_magic_test_file=/shlib/libc.so
12785 # func_win32_libid is a shell function defined in ltmain.sh
12786 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12787 lt_cv_file_magic_cmd='func_win32_libid'
12791 # Base MSYS/MinGW do not provide the 'file' command needed by
12792 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12793 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12794 lt_cv_file_magic_cmd='$OBJDUMP -f'
12797 darwin* | rhapsody*)
12798 lt_cv_deplibs_check_method=pass_all
12801 freebsd* | kfreebsd*-gnu | dragonfly*)
12802 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12805 # Not sure whether the presence of OpenBSD here was a mistake.
12806 # Let's accept both of them until this is cleared up.
12807 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12808 lt_cv_file_magic_cmd=/usr/bin/file
12809 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12813 lt_cv_deplibs_check_method=pass_all
12818 lt_cv_deplibs_check_method=pass_all
12821 hpux10.20* | hpux11*)
12822 lt_cv_file_magic_cmd=/usr/bin/file
12825 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12826 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12829 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]'
12830 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12833 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12834 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12840 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12841 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12844 irix5* | irix6* | nonstopux*)
12846 *-32|*"-32 ") libmagic=32-bit;;
12847 *-n32|*"-n32 ") libmagic=N32;;
12848 *-64|*"-64 ") libmagic=64-bit;;
12849 *) libmagic=never-match;;
12851 lt_cv_deplibs_check_method=pass_all
12854 # This must be Linux ELF.
12856 lt_cv_deplibs_check_method=pass_all
12860 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12861 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12863 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12868 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12869 lt_cv_file_magic_cmd=/usr/bin/file
12870 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12874 lt_cv_deplibs_check_method=unknown
12878 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12885 osf3* | osf4* | osf5*)
12886 lt_cv_deplibs_check_method=pass_all
12890 lt_cv_deplibs_check_method=pass_all
12894 case $host_vendor in
12896 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]'
12897 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12900 lt_cv_deplibs_check_method=pass_all
12903 lt_cv_file_magic_cmd='/bin/file'
12904 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12907 lt_cv_file_magic_cmd='/bin/file'
12908 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12909 lt_cv_file_magic_test_file=/lib/libc.so
12912 lt_cv_deplibs_check_method=pass_all
12915 lt_cv_deplibs_check_method=pass_all
12920 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12921 lt_cv_deplibs_check_method=pass_all
12926 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12927 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12928 file_magic_cmd=$lt_cv_file_magic_cmd
12929 deplibs_check_method=$lt_cv_deplibs_check_method
12930 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12934 # If no C compiler was specified, use CC.
12937 # If no C compiler flags were specified, use CFLAGS.
12938 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12940 # Allow CC to be a program name with arguments.
12943 # Check whether --enable-libtool-lock was given.
12944 if test "${enable_libtool_lock+set}" = set; then
12945 enableval=$enable_libtool_lock;
12948 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12950 # Some flags need to be propagated to the compiler or linker for good
12954 # Find out which ABI we are using.
12955 echo 'int i;' > conftest.$ac_ext
12956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12957 (eval $ac_compile) 2>&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; then
12961 case `/usr/bin/file conftest.$ac_objext` in
12963 HPUX_IA64_MODE="32"
12966 HPUX_IA64_MODE="64"
12973 # Find out which ABI we are using.
12974 echo '#line 12974 "configure"' > conftest.$ac_ext
12975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12976 (eval $ac_compile) 2>&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); }; then
12980 if test "$lt_cv_prog_gnu_ld" = yes; then
12981 case `/usr/bin/file conftest.$ac_objext` in
12983 LD="${LD-ld} -melf32bsmip"
12986 LD="${LD-ld} -melf32bmipn32"
12989 LD="${LD-ld} -melf64bmip"
12993 case `/usr/bin/file conftest.$ac_objext` in
13009 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13010 # Find out which ABI we are using.
13011 echo 'int i;' > conftest.$ac_ext
13012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13013 (eval $ac_compile) 2>&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); }; then
13017 case `/usr/bin/file conftest.o` in
13021 LD="${LD-ld} -m elf_i386"
13023 ppc64-*linux*|powerpc64-*linux*)
13024 LD="${LD-ld} -m elf32ppclinux"
13027 LD="${LD-ld} -m elf_s390"
13030 LD="${LD-ld} -m elf32_sparc"
13037 LD="${LD-ld} -m elf_x86_64"
13039 ppc*-*linux*|powerpc*-*linux*)
13040 LD="${LD-ld} -m elf64ppc"
13043 LD="${LD-ld} -m elf64_s390"
13046 LD="${LD-ld} -m elf64_sparc"
13056 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13057 SAVE_CFLAGS="$CFLAGS"
13058 CFLAGS="$CFLAGS -belf"
13059 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13060 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13061 if test "${lt_cv_cc_needs_belf+set}" = set; then
13062 echo $ECHO_N "(cached) $ECHO_C" >&6
13065 ac_cpp='$CPP $CPPFLAGS'
13066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13070 cat >conftest.$ac_ext <<_ACEOF
13073 cat confdefs.h >>conftest.$ac_ext
13074 cat >>conftest.$ac_ext <<_ACEOF
13075 /* end confdefs.h. */
13085 rm -f conftest.$ac_objext conftest$ac_exeext
13086 if { (ac_try="$ac_link"
13087 case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_link") 2>conftest.er1
13094 grep -v '^ *+' conftest.er1 >conftest.err
13096 cat conftest.err >&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); } &&
13099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13100 { (case "(($ac_try" in
13101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13102 *) ac_try_echo=$ac_try;;
13104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13105 (eval "$ac_try") 2>&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; } &&
13109 { ac_try='test -s conftest$ac_exeext'
13110 { (case "(($ac_try" in
13111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112 *) ac_try_echo=$ac_try;;
13114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115 (eval "$ac_try") 2>&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13119 lt_cv_cc_needs_belf=yes
13121 echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13124 lt_cv_cc_needs_belf=no
13127 rm -f core conftest.err conftest.$ac_objext \
13128 conftest$ac_exeext conftest.$ac_ext
13130 ac_cpp='$CPP $CPPFLAGS'
13131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13136 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13137 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13138 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13139 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13140 CFLAGS="$SAVE_CFLAGS"
13144 # Find out which ABI we are using.
13145 echo 'int i;' > conftest.$ac_ext
13146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13147 (eval $ac_compile) 2>&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; then
13151 case `/usr/bin/file conftest.o` in
13153 case $lt_cv_prog_gnu_ld in
13154 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13155 *) LD="${LD-ld} -64" ;;
13166 need_locks="$enable_libtool_lock"
13171 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13172 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13173 (test "X$CXX" != "Xg++"))) ; then
13175 ac_cpp='$CXXCPP $CPPFLAGS'
13176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13179 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13180 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13181 if test -z "$CXXCPP"; then
13182 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13183 echo $ECHO_N "(cached) $ECHO_C" >&6
13185 # Double quotes because CXXCPP needs to be expanded
13186 for CXXCPP in "$CXX -E" "/lib/cpp"
13188 ac_preproc_ok=false
13189 for ac_cxx_preproc_warn_flag in '' yes
13191 # Use a header file that comes with gcc, so configuring glibc
13192 # with a fresh cross-compiler works.
13193 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13194 # <limits.h> exists even on freestanding compilers.
13195 # On the NeXT, cc -E runs the code through the compiler's parser,
13196 # not just through cpp. "Syntax error" is here to catch this case.
13197 cat >conftest.$ac_ext <<_ACEOF
13200 cat confdefs.h >>conftest.$ac_ext
13201 cat >>conftest.$ac_ext <<_ACEOF
13202 /* end confdefs.h. */
13204 # include <limits.h>
13206 # include <assert.h>
13210 if { (ac_try="$ac_cpp conftest.$ac_ext"
13211 case "(($ac_try" in
13212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213 *) ac_try_echo=$ac_try;;
13215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13218 grep -v '^ *+' conftest.er1 >conftest.err
13220 cat conftest.err >&5
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); } >/dev/null; then
13223 if test -s conftest.err; then
13224 ac_cpp_err=$ac_cxx_preproc_warn_flag
13225 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13232 if test -z "$ac_cpp_err"; then
13235 echo "$as_me: failed program was:" >&5
13236 sed 's/^/| /' conftest.$ac_ext >&5
13238 # Broken: fails on valid input.
13242 rm -f conftest.err conftest.$ac_ext
13244 # OK, works on sane cases. Now check whether nonexistent headers
13245 # can be detected and how.
13246 cat >conftest.$ac_ext <<_ACEOF
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h. */
13252 #include <ac_nonexistent.h>
13254 if { (ac_try="$ac_cpp conftest.$ac_ext"
13255 case "(($ac_try" in
13256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13262 grep -v '^ *+' conftest.er1 >conftest.err
13264 cat conftest.err >&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } >/dev/null; then
13267 if test -s conftest.err; then
13268 ac_cpp_err=$ac_cxx_preproc_warn_flag
13269 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13276 if test -z "$ac_cpp_err"; then
13277 # Broken: success on invalid input.
13280 echo "$as_me: failed program was:" >&5
13281 sed 's/^/| /' conftest.$ac_ext >&5
13283 # Passes both tests.
13288 rm -f conftest.err conftest.$ac_ext
13291 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13292 rm -f conftest.err conftest.$ac_ext
13293 if $ac_preproc_ok; then
13298 ac_cv_prog_CXXCPP=$CXXCPP
13301 CXXCPP=$ac_cv_prog_CXXCPP
13303 ac_cv_prog_CXXCPP=$CXXCPP
13305 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13306 echo "${ECHO_T}$CXXCPP" >&6; }
13307 ac_preproc_ok=false
13308 for ac_cxx_preproc_warn_flag in '' yes
13310 # Use a header file that comes with gcc, so configuring glibc
13311 # with a fresh cross-compiler works.
13312 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13313 # <limits.h> exists even on freestanding compilers.
13314 # On the NeXT, cc -E runs the code through the compiler's parser,
13315 # not just through cpp. "Syntax error" is here to catch this case.
13316 cat >conftest.$ac_ext <<_ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h. */
13323 # include <limits.h>
13325 # include <assert.h>
13329 if { (ac_try="$ac_cpp conftest.$ac_ext"
13330 case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13337 grep -v '^ *+' conftest.er1 >conftest.err
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } >/dev/null; then
13342 if test -s conftest.err; then
13343 ac_cpp_err=$ac_cxx_preproc_warn_flag
13344 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13351 if test -z "$ac_cpp_err"; then
13354 echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13357 # Broken: fails on valid input.
13361 rm -f conftest.err conftest.$ac_ext
13363 # OK, works on sane cases. Now check whether nonexistent headers
13364 # can be detected and how.
13365 cat >conftest.$ac_ext <<_ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h. */
13371 #include <ac_nonexistent.h>
13373 if { (ac_try="$ac_cpp conftest.$ac_ext"
13374 case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13381 grep -v '^ *+' conftest.er1 >conftest.err
13383 cat conftest.err >&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } >/dev/null; then
13386 if test -s conftest.err; then
13387 ac_cpp_err=$ac_cxx_preproc_warn_flag
13388 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13395 if test -z "$ac_cpp_err"; then
13396 # Broken: success on invalid input.
13399 echo "$as_me: failed program was:" >&5
13400 sed 's/^/| /' conftest.$ac_ext >&5
13402 # Passes both tests.
13407 rm -f conftest.err conftest.$ac_ext
13410 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13411 rm -f conftest.err conftest.$ac_ext
13412 if $ac_preproc_ok; then
13415 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13416 See \`config.log' for more details." >&5
13417 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13418 See \`config.log' for more details." >&2;}
13419 { (exit 1); exit 1; }; }
13423 ac_cpp='$CXXCPP $CPPFLAGS'
13424 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13425 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13426 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13432 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13433 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13434 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13435 if test -n "$ac_tool_prefix"; then
13436 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
13438 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13439 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13442 if test "${ac_cv_prog_F77+set}" = set; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13445 if test -n "$F77"; then
13446 ac_cv_prog_F77="$F77" # Let the user override the test.
13448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13449 for as_dir in $PATH
13452 test -z "$as_dir" && as_dir=.
13453 for ac_exec_ext in '' $ac_executable_extensions; do
13454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13455 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13465 F77=$ac_cv_prog_F77
13466 if test -n "$F77"; then
13467 { echo "$as_me:$LINENO: result: $F77" >&5
13468 echo "${ECHO_T}$F77" >&6; }
13470 { echo "$as_me:$LINENO: result: no" >&5
13471 echo "${ECHO_T}no" >&6; }
13475 test -n "$F77" && break
13478 if test -z "$F77"; then
13480 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
13482 # Extract the first word of "$ac_prog", so it can be a program name with args.
13483 set dummy $ac_prog; ac_word=$2
13484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13486 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13487 echo $ECHO_N "(cached) $ECHO_C" >&6
13489 if test -n "$ac_ct_F77"; then
13490 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13493 for as_dir in $PATH
13496 test -z "$as_dir" && as_dir=.
13497 for ac_exec_ext in '' $ac_executable_extensions; do
13498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13499 ac_cv_prog_ac_ct_F77="$ac_prog"
13500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13509 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13510 if test -n "$ac_ct_F77"; then
13511 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13512 echo "${ECHO_T}$ac_ct_F77" >&6; }
13514 { echo "$as_me:$LINENO: result: no" >&5
13515 echo "${ECHO_T}no" >&6; }
13519 test -n "$ac_ct_F77" && break
13522 if test "x$ac_ct_F77" = x; then
13525 case $cross_compiling:$ac_tool_warned in
13527 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13528 whose name does not start with the host triplet. If you think this
13529 configuration is useful to you, please write to autoconf@gnu.org." >&5
13530 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13531 whose name does not start with the host triplet. If you think this
13532 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13533 ac_tool_warned=yes ;;
13540 # Provide some information about the compiler.
13541 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13542 ac_compiler=`set X $ac_compile; echo $2`
13543 { (ac_try="$ac_compiler --version >&5"
13544 case "(($ac_try" in
13545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546 *) ac_try_echo=$ac_try;;
13548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549 (eval "$ac_compiler --version >&5") 2>&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); }
13553 { (ac_try="$ac_compiler -v >&5"
13554 case "(($ac_try" in
13555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556 *) ac_try_echo=$ac_try;;
13558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13559 (eval "$ac_compiler -v >&5") 2>&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }
13563 { (ac_try="$ac_compiler -V >&5"
13564 case "(($ac_try" in
13565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13566 *) ac_try_echo=$ac_try;;
13568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13569 (eval "$ac_compiler -V >&5") 2>&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }
13575 # If we don't use `.F' as extension, the preprocessor is not run on the
13576 # input file. (Note that this only needs to work for GNU compilers.)
13577 ac_save_ext=$ac_ext
13579 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13580 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13581 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13584 cat >conftest.$ac_ext <<_ACEOF
13592 rm -f conftest.$ac_objext
13593 if { (ac_try="$ac_compile"
13594 case "(($ac_try" in
13595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13596 *) ac_try_echo=$ac_try;;
13598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599 (eval "$ac_compile") 2>conftest.er1
13601 grep -v '^ *+' conftest.er1 >conftest.err
13603 cat conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } &&
13606 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13607 { (case "(($ac_try" in
13608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609 *) ac_try_echo=$ac_try;;
13611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612 (eval "$ac_try") 2>&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; } &&
13616 { ac_try='test -s conftest.$ac_objext'
13617 { (case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_try") 2>&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; }; then
13626 ac_compiler_gnu=yes
13628 echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13635 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13638 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13639 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13640 ac_ext=$ac_save_ext
13641 ac_test_FFLAGS=${FFLAGS+set}
13642 ac_save_FFLAGS=$FFLAGS
13644 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13645 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13646 if test "${ac_cv_prog_f77_g+set}" = set; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13650 cat >conftest.$ac_ext <<_ACEOF
13655 rm -f conftest.$ac_objext
13656 if { (ac_try="$ac_compile"
13657 case "(($ac_try" in
13658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659 *) ac_try_echo=$ac_try;;
13661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13662 (eval "$ac_compile") 2>conftest.er1
13664 grep -v '^ *+' conftest.er1 >conftest.err
13666 cat conftest.err >&5
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); } &&
13669 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13670 { (case "(($ac_try" in
13671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13672 *) ac_try_echo=$ac_try;;
13674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13675 (eval "$ac_try") 2>&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); }; } &&
13679 { ac_try='test -s conftest.$ac_objext'
13680 { (case "(($ac_try" in
13681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682 *) ac_try_echo=$ac_try;;
13684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13685 (eval "$ac_try") 2>&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; }; then
13689 ac_cv_prog_f77_g=yes
13691 echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.$ac_ext >&5
13694 ac_cv_prog_f77_g=no
13697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13700 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13701 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13702 if test "$ac_test_FFLAGS" = set; then
13703 FFLAGS=$ac_save_FFLAGS
13704 elif test $ac_cv_prog_f77_g = yes; then
13705 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13711 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13718 G77=`test $ac_compiler_gnu = yes && echo yes`
13720 ac_cpp='$CPP $CPPFLAGS'
13721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13727 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13729 # find the maximum length of command line arguments
13730 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13731 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13732 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13733 echo $ECHO_N "(cached) $ECHO_C" >&6
13740 # On DJGPP, this test can blow up pretty badly due to problems in libc
13741 # (any single argument exceeding 2000 bytes causes a buffer overrun
13742 # during glob expansion). Even if it were fixed, the result of this
13743 # check would be larger than it should be.
13744 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13748 # Under GNU Hurd, this test is not required because there is
13749 # no limit to the length of command line arguments.
13750 # Libtool will interpret -1 as no limit whatsoever
13751 lt_cv_sys_max_cmd_len=-1;
13755 # On Win9x/ME, this test blows up -- it succeeds, but takes
13756 # about 5 minutes as the teststring grows exponentially.
13757 # Worse, since 9x/ME are not pre-emptively multitasking,
13758 # you end up with a "frozen" computer, even though with patience
13759 # the test eventually succeeds (with a max line length of 256k).
13760 # Instead, let's just punt: use the minimum linelength reported by
13761 # all of the supported platforms: 8192 (on NT/2K/XP).
13762 lt_cv_sys_max_cmd_len=8192;
13766 # On AmigaOS with pdksh, this test takes hours, literally.
13767 # So we just punt and use a minimum line length of 8192.
13768 lt_cv_sys_max_cmd_len=8192;
13771 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13772 # This has been around since 386BSD, at least. Likely further.
13773 if test -x /sbin/sysctl; then
13774 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13775 elif test -x /usr/sbin/sysctl; then
13776 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13778 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13780 # And add a safety zone
13781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13786 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13787 lt_cv_sys_max_cmd_len=196608
13791 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13792 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13793 # nice to cause kernel panics so lets avoid the loop below.
13794 # First set a reasonable default.
13795 lt_cv_sys_max_cmd_len=16384
13797 if test -x /sbin/sysconfig; then
13798 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13799 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13804 lt_cv_sys_max_cmd_len=102400
13806 sysv5* | sco5v6* | sysv4.2uw2*)
13807 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13808 if test -n "$kargmax"; then
13809 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13811 lt_cv_sys_max_cmd_len=32768
13815 # If test is not a shell built-in, we'll probably end up computing a
13816 # maximum length that is only half of the actual maximum length, but
13818 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13819 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13820 = "XX$teststring") >/dev/null 2>&1 &&
13821 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13822 lt_cv_sys_max_cmd_len=$new_result &&
13823 test $i != 17 # 1/2 MB should be enough
13826 teststring=$teststring$teststring
13829 # Add a significant safety factor because C++ compilers can tack on massive
13830 # amounts of additional arguments before passing them to the linker.
13831 # It appears as though 1/2 is a usable value.
13832 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13838 if test -n $lt_cv_sys_max_cmd_len ; then
13839 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13840 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13842 { echo "$as_me:$LINENO: result: none" >&5
13843 echo "${ECHO_T}none" >&6; }
13849 # Check for command to grab the raw symbol name followed by C symbol from nm.
13850 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13851 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13852 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13853 echo $ECHO_N "(cached) $ECHO_C" >&6
13856 # These are sane defaults that work on at least a few old systems.
13857 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13859 # Character class describing NM global symbol codes.
13860 symcode='[BCDEGRST]'
13862 # Regexp to match symbols that can be accessed directly from C.
13863 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13865 # Transform an extracted symbol line into a proper C declaration
13866 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13868 # Transform an extracted symbol line into symbol name and symbol address
13869 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'"
13871 # Define system-specific variables.
13876 cygwin* | mingw* | pw32*)
13877 symcode='[ABCDGISTW]'
13879 hpux*) # Its linker distinguishes data from code symbols
13880 if test "$host_cpu" = ia64; then
13881 symcode='[ABCDEGRST]'
13883 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13884 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'"
13887 if test "$host_cpu" = ia64; then
13888 symcode='[ABCDGIRSTW]'
13889 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13890 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'"
13893 irix* | nonstopux*)
13894 symcode='[BCDEGRST]'
13897 symcode='[BCDEGQRST]'
13908 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13916 # Handle CRLF in mingw tool chain
13920 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13924 # If we're using GNU nm, then use its standard symbol codes.
13925 case `$NM -V 2>&1` in
13926 *GNU* | *'with BFD'*)
13927 symcode='[ABCDGIRSTW]' ;;
13930 # Try without a prefix undercore, then with it.
13931 for ac_symprfx in "" "_"; do
13933 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13934 symxfrm="\\1 $ac_symprfx\\2 \\2"
13936 # Write the raw and C identifiers.
13937 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13939 # Check to see that the pipe works correctly.
13943 cat > conftest.$ac_ext <<EOF
13948 void nm_test_func(){}
13952 int main(){nm_test_var='a';nm_test_func();return(0);}
13955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13956 (eval $ac_compile) 2>&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; then
13960 # Now try to grab the symbols.
13962 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13963 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); } && test -s "$nlist"; then
13967 # Try sorting and uniquifying the output.
13968 if sort "$nlist" | uniq > "$nlist"T; then
13969 mv -f "$nlist"T "$nlist"
13974 # Make sure that we snagged all the symbols we need.
13975 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13976 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13977 cat <<EOF > conftest.$ac_ext
13983 # Now generate the symbol file.
13984 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13986 cat <<EOF >> conftest.$ac_ext
13987 #if defined (__STDC__) && __STDC__
13988 # define lt_ptr_t void *
13990 # define lt_ptr_t char *
13994 /* The mapping between symbol names and symbols. */
13999 lt_preloaded_symbols[] =
14002 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14003 cat <<\EOF >> conftest.$ac_ext
14011 # Now try linking the two files.
14012 mv conftest.$ac_objext conftstm.$ac_objext
14013 lt_save_LIBS="$LIBS"
14014 lt_save_CFLAGS="$CFLAGS"
14015 LIBS="conftstm.$ac_objext"
14016 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14018 (eval $ac_link) 2>&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14024 LIBS="$lt_save_LIBS"
14025 CFLAGS="$lt_save_CFLAGS"
14027 echo "cannot find nm_test_func in $nlist" >&5
14030 echo "cannot find nm_test_var in $nlist" >&5
14033 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14036 echo "$progname: failed program was:" >&5
14037 cat conftest.$ac_ext >&5
14039 rm -f conftest* conftst*
14041 # Do not use the global_symbol_pipe unless it works.
14042 if test "$pipe_works" = yes; then
14045 lt_cv_sys_global_symbol_pipe=
14051 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14052 lt_cv_sys_global_symbol_to_cdecl=
14054 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14055 { echo "$as_me:$LINENO: result: failed" >&5
14056 echo "${ECHO_T}failed" >&6; }
14058 { echo "$as_me:$LINENO: result: ok" >&5
14059 echo "${ECHO_T}ok" >&6; }
14062 { echo "$as_me:$LINENO: checking for objdir" >&5
14063 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14064 if test "${lt_cv_objdir+set}" = set; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 rm -f .libs 2>/dev/null
14068 mkdir .libs 2>/dev/null
14069 if test -d .libs; then
14072 # MS-DOS does not allow filenames that begin with a dot.
14075 rmdir .libs 2>/dev/null
14077 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14078 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14079 objdir=$lt_cv_objdir
14087 # AIX sometimes has problems with the GCC collect2 program. For some
14088 # reason, if we set the COLLECT_NAMES environment variable, the problems
14089 # vanish in a puff of smoke.
14090 if test "X${COLLECT_NAMES+set}" != Xset; then
14092 export COLLECT_NAMES
14097 # Sed substitution that helps us do robust quoting. It backslashifies
14098 # metacharacters that are still active within double-quoted strings.
14099 Xsed='sed -e 1s/^X//'
14100 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14102 # Same as above, but do not quote variable references.
14103 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14105 # Sed substitution to delay expansion of an escaped shell variable in a
14106 # double_quote_subst'ed string.
14107 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14109 # Sed substitution to avoid accidental globbing in evaled expressions
14110 no_glob_subst='s/\*/\\\*/g'
14115 # Global variables:
14116 default_ofile=mklib
14117 can_build_shared=yes
14119 # All known linkers require a `.a' archive for static linking (except MSVC,
14120 # which needs '.lib').
14122 ltmain="$ac_aux_dir/ltmain.sh"
14123 ofile="$default_ofile"
14124 with_gnu_ld="$lt_cv_prog_gnu_ld"
14126 if test -n "$ac_tool_prefix"; then
14127 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14128 set dummy ${ac_tool_prefix}ar; ac_word=$2
14129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14131 if test "${ac_cv_prog_AR+set}" = set; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14134 if test -n "$AR"; then
14135 ac_cv_prog_AR="$AR" # Let the user override the test.
14137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14138 for as_dir in $PATH
14141 test -z "$as_dir" && as_dir=.
14142 for ac_exec_ext in '' $ac_executable_extensions; do
14143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14144 ac_cv_prog_AR="${ac_tool_prefix}ar"
14145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14155 if test -n "$AR"; then
14156 { echo "$as_me:$LINENO: result: $AR" >&5
14157 echo "${ECHO_T}$AR" >&6; }
14159 { echo "$as_me:$LINENO: result: no" >&5
14160 echo "${ECHO_T}no" >&6; }
14165 if test -z "$ac_cv_prog_AR"; then
14167 # Extract the first word of "ar", so it can be a program name with args.
14168 set dummy ar; ac_word=$2
14169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14171 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14174 if test -n "$ac_ct_AR"; then
14175 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14178 for as_dir in $PATH
14181 test -z "$as_dir" && as_dir=.
14182 for ac_exec_ext in '' $ac_executable_extensions; do
14183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14184 ac_cv_prog_ac_ct_AR="ar"
14185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14194 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14195 if test -n "$ac_ct_AR"; then
14196 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14197 echo "${ECHO_T}$ac_ct_AR" >&6; }
14199 { echo "$as_me:$LINENO: result: no" >&5
14200 echo "${ECHO_T}no" >&6; }
14203 if test "x$ac_ct_AR" = x; then
14206 case $cross_compiling:$ac_tool_warned in
14208 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14209 whose name does not start with the host triplet. If you think this
14210 configuration is useful to you, please write to autoconf@gnu.org." >&5
14211 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14212 whose name does not start with the host triplet. If you think this
14213 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14214 ac_tool_warned=yes ;;
14219 AR="$ac_cv_prog_AR"
14222 if test -n "$ac_tool_prefix"; then
14223 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14224 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14227 if test "${ac_cv_prog_RANLIB+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14230 if test -n "$RANLIB"; then
14231 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14234 for as_dir in $PATH
14237 test -z "$as_dir" && as_dir=.
14238 for ac_exec_ext in '' $ac_executable_extensions; do
14239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14240 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14250 RANLIB=$ac_cv_prog_RANLIB
14251 if test -n "$RANLIB"; then
14252 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14253 echo "${ECHO_T}$RANLIB" >&6; }
14255 { echo "$as_me:$LINENO: result: no" >&5
14256 echo "${ECHO_T}no" >&6; }
14261 if test -z "$ac_cv_prog_RANLIB"; then
14262 ac_ct_RANLIB=$RANLIB
14263 # Extract the first word of "ranlib", so it can be a program name with args.
14264 set dummy ranlib; ac_word=$2
14265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14267 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14268 echo $ECHO_N "(cached) $ECHO_C" >&6
14270 if test -n "$ac_ct_RANLIB"; then
14271 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14274 for as_dir in $PATH
14277 test -z "$as_dir" && as_dir=.
14278 for ac_exec_ext in '' $ac_executable_extensions; do
14279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14280 ac_cv_prog_ac_ct_RANLIB="ranlib"
14281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14290 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14291 if test -n "$ac_ct_RANLIB"; then
14292 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14293 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14295 { echo "$as_me:$LINENO: result: no" >&5
14296 echo "${ECHO_T}no" >&6; }
14299 if test "x$ac_ct_RANLIB" = x; then
14302 case $cross_compiling:$ac_tool_warned in
14304 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14305 whose name does not start with the host triplet. If you think this
14306 configuration is useful to you, please write to autoconf@gnu.org." >&5
14307 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14308 whose name does not start with the host triplet. If you think this
14309 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14310 ac_tool_warned=yes ;;
14312 RANLIB=$ac_ct_RANLIB
14315 RANLIB="$ac_cv_prog_RANLIB"
14318 if test -n "$ac_tool_prefix"; then
14319 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14320 set dummy ${ac_tool_prefix}strip; ac_word=$2
14321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14323 if test "${ac_cv_prog_STRIP+set}" = set; then
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
14326 if test -n "$STRIP"; then
14327 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14330 for as_dir in $PATH
14333 test -z "$as_dir" && as_dir=.
14334 for ac_exec_ext in '' $ac_executable_extensions; do
14335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14336 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14346 STRIP=$ac_cv_prog_STRIP
14347 if test -n "$STRIP"; then
14348 { echo "$as_me:$LINENO: result: $STRIP" >&5
14349 echo "${ECHO_T}$STRIP" >&6; }
14351 { echo "$as_me:$LINENO: result: no" >&5
14352 echo "${ECHO_T}no" >&6; }
14357 if test -z "$ac_cv_prog_STRIP"; then
14359 # Extract the first word of "strip", so it can be a program name with args.
14360 set dummy strip; ac_word=$2
14361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14363 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
14366 if test -n "$ac_ct_STRIP"; then
14367 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14370 for as_dir in $PATH
14373 test -z "$as_dir" && as_dir=.
14374 for ac_exec_ext in '' $ac_executable_extensions; do
14375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14376 ac_cv_prog_ac_ct_STRIP="strip"
14377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14386 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14387 if test -n "$ac_ct_STRIP"; then
14388 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14389 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14391 { echo "$as_me:$LINENO: result: no" >&5
14392 echo "${ECHO_T}no" >&6; }
14395 if test "x$ac_ct_STRIP" = x; then
14398 case $cross_compiling:$ac_tool_warned in
14400 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14401 whose name does not start with the host triplet. If you think this
14402 configuration is useful to you, please write to autoconf@gnu.org." >&5
14403 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14404 whose name does not start with the host triplet. If you think this
14405 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14406 ac_tool_warned=yes ;;
14411 STRIP="$ac_cv_prog_STRIP"
14416 old_CFLAGS="$CFLAGS"
14418 # Set sane defaults for various variables
14419 test -z "$AR" && AR=ar
14420 test -z "$AR_FLAGS" && AR_FLAGS=cru
14421 test -z "$AS" && AS=as
14422 test -z "$CC" && CC=cc
14423 test -z "$LTCC" && LTCC=$CC
14424 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14425 test -z "$DLLTOOL" && DLLTOOL=dlltool
14426 test -z "$LD" && LD=ld
14427 test -z "$LN_S" && LN_S="ln -s"
14428 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14429 test -z "$NM" && NM=nm
14430 test -z "$SED" && SED=sed
14431 test -z "$OBJDUMP" && OBJDUMP=objdump
14432 test -z "$RANLIB" && RANLIB=:
14433 test -z "$STRIP" && STRIP=:
14434 test -z "$ac_objext" && ac_objext=o
14436 # Determine commands to create old-style static archives.
14437 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14438 old_postinstall_cmds='chmod 644 $oldlib'
14439 old_postuninstall_cmds=
14441 if test -n "$RANLIB"; then
14444 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14447 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14450 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14453 for cc_temp in $compiler""; do
14455 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14456 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14461 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14464 # Only perform the check for file, if the check method requires it
14465 case $deplibs_check_method in
14467 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14468 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14469 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14470 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14471 echo $ECHO_N "(cached) $ECHO_C" >&6
14475 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14478 lt_save_MAGIC_CMD="$MAGIC_CMD"
14479 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14480 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14481 for ac_dir in $ac_dummy; do
14483 test -z "$ac_dir" && ac_dir=.
14484 if test -f $ac_dir/${ac_tool_prefix}file; then
14485 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14486 if test -n "$file_magic_test_file"; then
14487 case $deplibs_check_method in
14489 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14490 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14491 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14492 $EGREP "$file_magic_regex" > /dev/null; then
14497 *** Warning: the command libtool uses to detect shared libraries,
14498 *** $file_magic_cmd, produces output that libtool cannot recognize.
14499 *** The result is that libtool may fail to recognize shared libraries
14500 *** as such. This will affect the creation of libtool libraries that
14501 *** depend on shared libraries, but programs linked with such libtool
14502 *** libraries will work regardless of this problem. Nevertheless, you
14503 *** may want to report the problem to your system manager and/or to
14504 *** bug-libtool@gnu.org
14514 MAGIC_CMD="$lt_save_MAGIC_CMD"
14519 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14520 if test -n "$MAGIC_CMD"; then
14521 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14522 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14524 { echo "$as_me:$LINENO: result: no" >&5
14525 echo "${ECHO_T}no" >&6; }
14528 if test -z "$lt_cv_path_MAGIC_CMD"; then
14529 if test -n "$ac_tool_prefix"; then
14530 { echo "$as_me:$LINENO: checking for file" >&5
14531 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14532 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14533 echo $ECHO_N "(cached) $ECHO_C" >&6
14537 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14540 lt_save_MAGIC_CMD="$MAGIC_CMD"
14541 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14542 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14543 for ac_dir in $ac_dummy; do
14545 test -z "$ac_dir" && ac_dir=.
14546 if test -f $ac_dir/file; then
14547 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14548 if test -n "$file_magic_test_file"; then
14549 case $deplibs_check_method in
14551 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14552 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14553 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14554 $EGREP "$file_magic_regex" > /dev/null; then
14559 *** Warning: the command libtool uses to detect shared libraries,
14560 *** $file_magic_cmd, produces output that libtool cannot recognize.
14561 *** The result is that libtool may fail to recognize shared libraries
14562 *** as such. This will affect the creation of libtool libraries that
14563 *** depend on shared libraries, but programs linked with such libtool
14564 *** libraries will work regardless of this problem. Nevertheless, you
14565 *** may want to report the problem to your system manager and/or to
14566 *** bug-libtool@gnu.org
14576 MAGIC_CMD="$lt_save_MAGIC_CMD"
14581 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14582 if test -n "$MAGIC_CMD"; then
14583 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14584 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14586 { echo "$as_me:$LINENO: result: no" >&5
14587 echo "${ECHO_T}no" >&6; }
14600 enable_win32_dll=no
14602 # Check whether --enable-libtool-lock was given.
14603 if test "${enable_libtool_lock+set}" = set; then
14604 enableval=$enable_libtool_lock;
14607 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14610 # Check whether --with-pic was given.
14611 if test "${with_pic+set}" = set; then
14612 withval=$with_pic; pic_mode="$withval"
14617 test -z "$pic_mode" && pic_mode=default
14619 # Use C for the default configuration in the libtool script
14623 ac_cpp='$CPP $CPPFLAGS'
14624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14629 # Source file extension for C test sources.
14632 # Object file extension for compiled C test sources.
14636 # Code to be used in simple compile tests
14637 lt_simple_compile_test_code="int some_variable = 0;\n"
14639 # Code to be used in simple link tests
14640 lt_simple_link_test_code='int main(){return(0);}\n'
14643 # If no C compiler was specified, use CC.
14646 # If no C compiler flags were specified, use CFLAGS.
14647 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14649 # Allow CC to be a program name with arguments.
14653 # save warnings/boilerplate of simple test code
14654 ac_outfile=conftest.$ac_objext
14655 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14656 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14657 _lt_compiler_boilerplate=`cat conftest.err`
14660 ac_outfile=conftest.$ac_objext
14661 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14662 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14663 _lt_linker_boilerplate=`cat conftest.err`
14668 lt_prog_compiler_no_builtin_flag=
14670 if test "$GCC" = yes; then
14671 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14674 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14675 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14676 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14677 echo $ECHO_N "(cached) $ECHO_C" >&6
14679 lt_cv_prog_compiler_rtti_exceptions=no
14680 ac_outfile=conftest.$ac_objext
14681 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14682 lt_compiler_flag="-fno-rtti -fno-exceptions"
14683 # Insert the option either (1) after the last *FLAGS variable, or
14684 # (2) before a word containing "conftest.", or (3) at the end.
14685 # Note that $ac_compile itself does not contain backslashes and begins
14686 # with a dollar sign (not a hyphen), so the echo should work correctly.
14687 # The option is referenced via a variable to avoid confusing sed.
14688 lt_compile=`echo "$ac_compile" | $SED \
14689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14691 -e 's:$: $lt_compiler_flag:'`
14692 (eval echo "\"\$as_me:14692: $lt_compile\"" >&5)
14693 (eval "$lt_compile" 2>conftest.err)
14695 cat conftest.err >&5
14696 echo "$as_me:14696: \$? = $ac_status" >&5
14697 if (exit $ac_status) && test -s "$ac_outfile"; then
14698 # The compiler can only warn and ignore the option if not recognized
14699 # So say no if there are warnings other than the usual output.
14700 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14702 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14703 lt_cv_prog_compiler_rtti_exceptions=yes
14709 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14710 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14712 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14713 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14720 lt_prog_compiler_wl=
14721 lt_prog_compiler_pic=
14722 lt_prog_compiler_static=
14724 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14725 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14727 if test "$GCC" = yes; then
14728 lt_prog_compiler_wl='-Wl,'
14729 lt_prog_compiler_static='-static'
14733 # All AIX code is PIC.
14734 if test "$host_cpu" = ia64; then
14735 # AIX 5 now supports IA64 processor
14736 lt_prog_compiler_static='-Bstatic'
14741 # FIXME: we need at least 68020 code to build shared libraries, but
14742 # adding the `-m68020' flag to GCC prevents building anything better,
14744 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14747 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14748 # PIC is the default for these OSes.
14751 mingw* | pw32* | os2*)
14752 # This hack is so that the source file can tell whether it is being
14753 # built for inclusion in a dll (and should export symbols for example).
14754 lt_prog_compiler_pic='-DDLL_EXPORT'
14757 darwin* | rhapsody*)
14758 # PIC is the default on this platform
14759 # Common symbols not allowed in MH_DYLIB files
14760 lt_prog_compiler_pic='-fno-common'
14764 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14765 # Instead, we relocate shared libraries at runtime.
14769 # Just because we use GCC doesn't mean we suddenly get shared libraries
14770 # on systems that don't support them.
14771 lt_prog_compiler_can_build_shared=no
14776 if test -d /usr/nec; then
14777 lt_prog_compiler_pic=-Kconform_pic
14782 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14783 # not for PA HP-UX.
14789 lt_prog_compiler_pic='-fPIC'
14795 lt_prog_compiler_pic='-fPIC'
14799 # PORTME Check for flag to pass linker flags through the system compiler.
14802 lt_prog_compiler_wl='-Wl,'
14803 if test "$host_cpu" = ia64; then
14804 # AIX 5 now supports IA64 processor
14805 lt_prog_compiler_static='-Bstatic'
14807 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14811 # PIC is the default on this platform
14812 # Common symbols not allowed in MH_DYLIB files
14813 case $cc_basename in
14815 lt_prog_compiler_pic='-qnocommon'
14816 lt_prog_compiler_wl='-Wl,'
14821 mingw* | pw32* | os2*)
14822 # This hack is so that the source file can tell whether it is being
14823 # built for inclusion in a dll (and should export symbols for example).
14824 lt_prog_compiler_pic='-DDLL_EXPORT'
14827 hpux9* | hpux10* | hpux11*)
14828 lt_prog_compiler_wl='-Wl,'
14829 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14830 # not for PA HP-UX.
14836 lt_prog_compiler_pic='+Z'
14839 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14840 lt_prog_compiler_static='${wl}-a ${wl}archive'
14843 irix5* | irix6* | nonstopux*)
14844 lt_prog_compiler_wl='-Wl,'
14845 # PIC (with -KPIC) is the default.
14846 lt_prog_compiler_static='-non_shared'
14850 lt_prog_compiler_pic='-KPIC'
14851 lt_prog_compiler_static='-Bstatic'
14855 case $cc_basename in
14857 lt_prog_compiler_wl='-Wl,'
14858 lt_prog_compiler_pic='-KPIC'
14859 lt_prog_compiler_static='-static'
14861 pgcc* | pgf77* | pgf90* | pgf95*)
14862 # Portland Group compilers (*not* the Pentium gcc compiler,
14863 # which looks to be a dead project)
14864 lt_prog_compiler_wl='-Wl,'
14865 lt_prog_compiler_pic='-fpic'
14866 lt_prog_compiler_static='-Bstatic'
14869 lt_prog_compiler_wl='-Wl,'
14870 # All Alpha code is PIC.
14871 lt_prog_compiler_static='-non_shared'
14876 osf3* | osf4* | osf5*)
14877 lt_prog_compiler_wl='-Wl,'
14878 # All OSF/1 code is PIC.
14879 lt_prog_compiler_static='-non_shared'
14883 lt_prog_compiler_pic='-KPIC'
14884 lt_prog_compiler_static='-Bstatic'
14885 case $cc_basename in
14886 f77* | f90* | f95*)
14887 lt_prog_compiler_wl='-Qoption ld ';;
14889 lt_prog_compiler_wl='-Wl,';;
14894 lt_prog_compiler_wl='-Qoption ld '
14895 lt_prog_compiler_pic='-PIC'
14896 lt_prog_compiler_static='-Bstatic'
14899 sysv4 | sysv4.2uw2* | sysv4.3*)
14900 lt_prog_compiler_wl='-Wl,'
14901 lt_prog_compiler_pic='-KPIC'
14902 lt_prog_compiler_static='-Bstatic'
14906 if test -d /usr/nec ;then
14907 lt_prog_compiler_pic='-Kconform_pic'
14908 lt_prog_compiler_static='-Bstatic'
14912 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14913 lt_prog_compiler_wl='-Wl,'
14914 lt_prog_compiler_pic='-KPIC'
14915 lt_prog_compiler_static='-Bstatic'
14919 lt_prog_compiler_wl='-Wl,'
14920 lt_prog_compiler_can_build_shared=no
14924 lt_prog_compiler_pic='-pic'
14925 lt_prog_compiler_static='-Bstatic'
14929 lt_prog_compiler_can_build_shared=no
14934 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14935 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14938 # Check to make sure the PIC flag actually works.
14940 if test -n "$lt_prog_compiler_pic"; then
14942 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14943 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14944 if test "${lt_prog_compiler_pic_works+set}" = set; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14947 lt_prog_compiler_pic_works=no
14948 ac_outfile=conftest.$ac_objext
14949 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14950 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14951 # Insert the option either (1) after the last *FLAGS variable, or
14952 # (2) before a word containing "conftest.", or (3) at the end.
14953 # Note that $ac_compile itself does not contain backslashes and begins
14954 # with a dollar sign (not a hyphen), so the echo should work correctly.
14955 # The option is referenced via a variable to avoid confusing sed.
14956 lt_compile=`echo "$ac_compile" | $SED \
14957 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14959 -e 's:$: $lt_compiler_flag:'`
14960 (eval echo "\"\$as_me:14960: $lt_compile\"" >&5)
14961 (eval "$lt_compile" 2>conftest.err)
14963 cat conftest.err >&5
14964 echo "$as_me:14964: \$? = $ac_status" >&5
14965 if (exit $ac_status) && test -s "$ac_outfile"; then
14966 # The compiler can only warn and ignore the option if not recognized
14967 # So say no if there are warnings other than the usual output.
14968 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14969 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14970 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14971 lt_prog_compiler_pic_works=yes
14977 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14978 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14980 if test x"$lt_prog_compiler_pic_works" = xyes; then
14981 case $lt_prog_compiler_pic in
14983 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14986 lt_prog_compiler_pic=
14987 lt_prog_compiler_can_build_shared=no
14992 # For platforms which do not support PIC, -DPIC is meaningless:
14994 lt_prog_compiler_pic=
14997 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15002 # Check to make sure the static flag actually works.
15004 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15005 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15006 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15007 if test "${lt_prog_compiler_static_works+set}" = set; then
15008 echo $ECHO_N "(cached) $ECHO_C" >&6
15010 lt_prog_compiler_static_works=no
15011 save_LDFLAGS="$LDFLAGS"
15012 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15013 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15014 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15015 # The linker can only warn and ignore the option if not recognized
15016 # So say no if there are warnings
15017 if test -s conftest.err; then
15018 # Append any errors to the config.log.
15019 cat conftest.err 1>&5
15020 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15021 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15022 if diff conftest.exp conftest.er2 >/dev/null; then
15023 lt_prog_compiler_static_works=yes
15026 lt_prog_compiler_static_works=yes
15030 LDFLAGS="$save_LDFLAGS"
15033 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15034 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15036 if test x"$lt_prog_compiler_static_works" = xyes; then
15039 lt_prog_compiler_static=
15043 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15044 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15045 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15046 echo $ECHO_N "(cached) $ECHO_C" >&6
15048 lt_cv_prog_compiler_c_o=no
15049 $rm -r conftest 2>/dev/null
15053 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15055 lt_compiler_flag="-o out/conftest2.$ac_objext"
15056 # Insert the option either (1) after the last *FLAGS variable, or
15057 # (2) before a word containing "conftest.", or (3) at the end.
15058 # Note that $ac_compile itself does not contain backslashes and begins
15059 # with a dollar sign (not a hyphen), so the echo should work correctly.
15060 lt_compile=`echo "$ac_compile" | $SED \
15061 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15063 -e 's:$: $lt_compiler_flag:'`
15064 (eval echo "\"\$as_me:15064: $lt_compile\"" >&5)
15065 (eval "$lt_compile" 2>out/conftest.err)
15067 cat out/conftest.err >&5
15068 echo "$as_me:15068: \$? = $ac_status" >&5
15069 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15071 # The compiler can only warn and ignore the option if not recognized
15072 # So say no if there are warnings
15073 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15074 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15075 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15076 lt_cv_prog_compiler_c_o=yes
15081 # SGI C++ compiler will create directory out/ii_files/ for
15082 # template instantiation
15083 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15084 $rm out/* && rmdir out
15090 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15091 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15094 hard_links="nottested"
15095 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15096 # do not overwrite the value of need_locks provided by the user
15097 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15098 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15101 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15103 ln conftest.a conftest.b 2>&5 || hard_links=no
15104 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15105 { echo "$as_me:$LINENO: result: $hard_links" >&5
15106 echo "${ECHO_T}$hard_links" >&6; }
15107 if test "$hard_links" = no; then
15108 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15109 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15116 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15117 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15120 allow_undefined_flag=
15121 enable_shared_with_static_runtimes=no
15123 archive_expsym_cmds=
15124 old_archive_From_new_cmds=
15125 old_archive_from_expsyms_cmds=
15126 export_dynamic_flag_spec=
15127 whole_archive_flag_spec=
15128 thread_safe_flag_spec=
15129 hardcode_libdir_flag_spec=
15130 hardcode_libdir_flag_spec_ld=
15131 hardcode_libdir_separator=
15133 hardcode_minus_L=no
15134 hardcode_shlibpath_var=unsupported
15135 link_all_deplibs=unknown
15136 hardcode_automatic=no
15138 module_expsym_cmds=
15139 always_export_symbols=no
15140 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15141 # include_expsyms should be a list of space-separated symbols to be *always*
15142 # included in the symbol list
15144 # exclude_expsyms can be an extended regexp of symbols to exclude
15145 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15146 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15147 # as well as any symbol that contains `d'.
15148 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15149 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15150 # platforms (ab)use it in PIC code, but their linkers get confused if
15151 # the symbol is explicitly referenced. Since portable code cannot
15152 # rely on this symbol name, it's probably fine to never include it in
15153 # preloaded symbol tables.
15154 extract_expsyms_cmds=
15155 # Just being paranoid about ensuring that cc_basename is set.
15156 for cc_temp in $compiler""; do
15158 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15159 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15164 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15167 cygwin* | mingw* | pw32*)
15168 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15169 # When not using gcc, we currently assume that we are using
15170 # Microsoft Visual C++.
15171 if test "$GCC" != yes; then
15176 # we just hope/assume this is gcc and not c89 (= MSVC++)
15185 if test "$with_gnu_ld" = yes; then
15186 # If archive_cmds runs LD, not CC, wlarc should be empty
15189 # Set some defaults for GNU ld with shared library support. These
15190 # are reset later if shared libraries are not supported. Putting them
15191 # here allows them to be overridden if necessary.
15192 runpath_var=LD_RUN_PATH
15193 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15194 export_dynamic_flag_spec='${wl}--export-dynamic'
15195 # ancient GNU ld didn't support --whole-archive et. al.
15196 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15197 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15199 whole_archive_flag_spec=
15201 supports_anon_versioning=no
15202 case `$LD -v 2>/dev/null` in
15203 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15204 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15205 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15206 *\ 2.11.*) ;; # other 2.11 versions
15207 *) supports_anon_versioning=yes ;;
15210 # See if GNU ld supports shared libraries.
15212 aix3* | aix4* | aix5*)
15213 # On AIX/PPC, the GNU linker is very broken
15214 if test "$host_cpu" != ia64; then
15218 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15219 *** to be unable to reliably create shared libraries on AIX.
15220 *** Therefore, libtool is disabling shared libraries support. If you
15221 *** really care for shared libraries, you may want to modify your PATH
15222 *** so that a non-GNU linker is found, and then restart.
15229 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)'
15230 hardcode_libdir_flag_spec='-L$libdir'
15231 hardcode_minus_L=yes
15233 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15234 # that the semantics of dynamic libraries on AmigaOS, at least up
15235 # to version 4, is to share data among multiple programs linked
15236 # with the same dynamic library. Since this doesn't match the
15237 # behavior of shared libraries on other platforms, we can't use
15243 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15244 allow_undefined_flag=unsupported
15245 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15246 # support --undefined. This deserves some investigation. FIXME
15247 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15253 cygwin* | mingw* | pw32*)
15254 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15255 # as there is no search path for DLLs.
15256 hardcode_libdir_flag_spec='-L$libdir'
15257 allow_undefined_flag=unsupported
15258 always_export_symbols=no
15259 enable_shared_with_static_runtimes=yes
15260 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15262 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15264 # If the export-symbols file already is a .def file (1st line
15265 # is EXPORTS), use it as is; otherwise, prepend...
15266 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15267 cp $export_symbols $output_objdir/$soname.def;
15269 echo EXPORTS > $output_objdir/$soname.def;
15270 cat $export_symbols >> $output_objdir/$soname.def;
15272 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15280 hardcode_shlibpath_var=no
15281 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15282 export_dynamic_flag_spec='${wl}-E'
15283 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15284 # Instead, shared libraries are loaded at an image base (0x10000000 by
15285 # default) and relocated if they conflict, which is a slow very memory
15286 # consuming and fragmenting process. To avoid this, we pick a random,
15287 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15288 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15289 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15290 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'
15294 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15296 case $cc_basename,$host_cpu in
15297 pgcc*) # Portland Group C compiler
15298 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'
15299 tmp_addflag=' $pic_flag'
15301 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15302 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'
15303 tmp_addflag=' $pic_flag -Mnomain' ;;
15304 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15305 tmp_addflag=' -i_dynamic' ;;
15306 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15307 tmp_addflag=' -i_dynamic -nofor_main' ;;
15308 ifc* | ifort*) # Intel Fortran compiler
15309 tmp_addflag=' -nofor_main' ;;
15311 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15313 if test $supports_anon_versioning = yes; then
15314 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15315 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15316 $echo "local: *; };" >> $output_objdir/$libname.ver~
15317 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15325 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15326 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15329 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15330 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15335 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15339 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15340 *** create shared libraries on Solaris systems. Therefore, libtool
15341 *** is disabling shared libraries support. We urge you to upgrade GNU
15342 *** binutils to release 2.9.1 or newer. Another option is to modify
15343 *** your PATH or compiler configuration so that the native linker is
15344 *** used, and then restart.
15347 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15348 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15349 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15355 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15356 case `$LD -v 2>&1` in
15357 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15361 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15362 *** reliably create shared libraries on SCO systems. Therefore, libtool
15363 *** is disabling shared libraries support. We urge you to upgrade GNU
15364 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15365 *** your PATH or compiler configuration so that the native linker is
15366 *** used, and then restart.
15371 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15372 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15374 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15383 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15385 hardcode_direct=yes
15386 hardcode_shlibpath_var=no
15390 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15392 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15399 if test "$ld_shlibs" = no; then
15401 hardcode_libdir_flag_spec=
15402 export_dynamic_flag_spec=
15403 whole_archive_flag_spec=
15406 # PORTME fill in a description of your system's linker (not GNU ld)
15409 allow_undefined_flag=unsupported
15410 always_export_symbols=yes
15411 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'
15412 # Note: this linker hardcodes the directories in LIBPATH if there
15413 # are no directories specified by -L.
15414 hardcode_minus_L=yes
15415 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15416 # Neither direct hardcoding nor static linking is supported with a
15418 hardcode_direct=unsupported
15423 if test "$host_cpu" = ia64; then
15424 # On IA64, the linker does run time linking by default, so we don't
15425 # have to do anything special.
15426 aix_use_runtimelinking=no
15427 exp_sym_flag='-Bexport'
15430 # If we're using GNU nm, then we don't want the "-C" option.
15431 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15432 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15433 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'
15435 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'
15437 aix_use_runtimelinking=no
15439 # Test if we are trying to use run time linking or normal
15440 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15441 # need to do runtime linking.
15442 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15443 for ld_flag in $LDFLAGS; do
15444 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15445 aix_use_runtimelinking=yes
15452 exp_sym_flag='-bexport'
15453 no_entry_flag='-bnoentry'
15456 # When large executables or shared objects are built, AIX ld can
15457 # have problems creating the table of contents. If linking a library
15458 # or program results in "error TOC overflow" add -mminimal-toc to
15459 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15460 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15463 hardcode_direct=yes
15464 hardcode_libdir_separator=':'
15465 link_all_deplibs=yes
15467 if test "$GCC" = yes; then
15468 case $host_os in aix4.[012]|aix4.[012].*)
15469 # We only want to do this on AIX 4.2 and lower, the check
15470 # below for broken collect2 doesn't work under 4.3+
15471 collect2name=`${CC} -print-prog-name=collect2`
15472 if test -f "$collect2name" && \
15473 strings "$collect2name" | grep resolve_lib_name >/dev/null
15475 # We have reworked collect2
15476 hardcode_direct=yes
15478 # We have old collect2
15479 hardcode_direct=unsupported
15480 # It fails to find uninstalled libraries when the uninstalled
15481 # path is not listed in the libpath. Setting hardcode_minus_L
15482 # to unsupported forces relinking
15483 hardcode_minus_L=yes
15484 hardcode_libdir_flag_spec='-L$libdir'
15485 hardcode_libdir_separator=
15489 shared_flag='-shared'
15490 if test "$aix_use_runtimelinking" = yes; then
15491 shared_flag="$shared_flag "'${wl}-G'
15495 if test "$host_cpu" = ia64; then
15496 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15497 # chokes on -Wl,-G. The following line is correct:
15500 if test "$aix_use_runtimelinking" = yes; then
15501 shared_flag='${wl}-G'
15503 shared_flag='${wl}-bM:SRE'
15508 # It seems that -bexpall does not export symbols beginning with
15509 # underscore (_), so it is better to generate a list of symbols to export.
15510 always_export_symbols=yes
15511 if test "$aix_use_runtimelinking" = yes; then
15512 # Warning - without using the other runtime loading flags (-brtl),
15513 # -berok will link without error, but may produce a broken library.
15514 allow_undefined_flag='-berok'
15515 # Determine the default libpath from the value encoded in an empty executable.
15516 cat >conftest.$ac_ext <<_ACEOF
15519 cat confdefs.h >>conftest.$ac_ext
15520 cat >>conftest.$ac_ext <<_ACEOF
15521 /* end confdefs.h. */
15531 rm -f conftest.$ac_objext conftest$ac_exeext
15532 if { (ac_try="$ac_link"
15533 case "(($ac_try" in
15534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15535 *) ac_try_echo=$ac_try;;
15537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15538 (eval "$ac_link") 2>conftest.er1
15540 grep -v '^ *+' conftest.er1 >conftest.err
15542 cat conftest.err >&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } &&
15545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15546 { (case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551 (eval "$ac_try") 2>&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; } &&
15555 { ac_try='test -s conftest$ac_exeext'
15556 { (case "(($ac_try" in
15557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15558 *) ac_try_echo=$ac_try;;
15560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15561 (eval "$ac_try") 2>&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; }; then
15566 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15568 # Check for a 64-bit object if we didn't find anything.
15569 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; }
15572 echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.$ac_ext >&5
15578 rm -f core conftest.err conftest.$ac_objext \
15579 conftest$ac_exeext conftest.$ac_ext
15580 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15582 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15583 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"
15585 if test "$host_cpu" = ia64; then
15586 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15587 allow_undefined_flag="-z nodefs"
15588 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"
15590 # Determine the default libpath from the value encoded in an empty executable.
15591 cat >conftest.$ac_ext <<_ACEOF
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h. */
15606 rm -f conftest.$ac_objext conftest$ac_exeext
15607 if { (ac_try="$ac_link"
15608 case "(($ac_try" in
15609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610 *) ac_try_echo=$ac_try;;
15612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613 (eval "$ac_link") 2>conftest.er1
15615 grep -v '^ *+' conftest.er1 >conftest.err
15617 cat conftest.err >&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); } &&
15620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15621 { (case "(($ac_try" in
15622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623 *) ac_try_echo=$ac_try;;
15625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626 (eval "$ac_try") 2>&5
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }; } &&
15630 { ac_try='test -s conftest$ac_exeext'
15631 { (case "(($ac_try" in
15632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15633 *) ac_try_echo=$ac_try;;
15635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15636 (eval "$ac_try") 2>&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; }; then
15641 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15643 # Check for a 64-bit object if we didn't find anything.
15644 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; }
15647 echo "$as_me: failed program was:" >&5
15648 sed 's/^/| /' conftest.$ac_ext >&5
15653 rm -f core conftest.err conftest.$ac_objext \
15654 conftest$ac_exeext conftest.$ac_ext
15655 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15657 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15658 # Warning - without using the other run time loading flags,
15659 # -berok will link without error, but may produce a broken library.
15660 no_undefined_flag=' ${wl}-bernotok'
15661 allow_undefined_flag=' ${wl}-berok'
15662 # Exported symbols can be pulled into shared objects from archives
15663 whole_archive_flag_spec='$convenience'
15664 archive_cmds_need_lc=yes
15665 # This is similar to how AIX traditionally builds its shared libraries.
15666 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'
15672 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)'
15673 hardcode_libdir_flag_spec='-L$libdir'
15674 hardcode_minus_L=yes
15675 # see comment about different semantics on the GNU ld section
15680 export_dynamic_flag_spec=-rdynamic
15683 cygwin* | mingw* | pw32*)
15684 # When not using gcc, we currently assume that we are using
15685 # Microsoft Visual C++.
15686 # hardcode_libdir_flag_spec is actually meaningless, as there is
15687 # no search path for DLLs.
15688 hardcode_libdir_flag_spec=' '
15689 allow_undefined_flag=unsupported
15690 # Tell ltmain to make .lib files, not .a files.
15692 # Tell ltmain to make .dll files, not .so files.
15694 # FIXME: Setting linknames here is a bad hack.
15695 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15696 # The linker will automatically build a .lib file if we build a DLL.
15697 old_archive_From_new_cmds='true'
15698 # FIXME: Should let the user specify the lib program.
15699 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15700 fix_srcfile_path='`cygpath -w "$srcfile"`'
15701 enable_shared_with_static_runtimes=yes
15704 darwin* | rhapsody*)
15706 rhapsody* | darwin1.[012])
15707 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15710 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15711 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15713 case ${MACOSX_DEPLOYMENT_TARGET} in
15715 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15718 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15724 archive_cmds_need_lc=no
15726 hardcode_automatic=yes
15727 hardcode_shlibpath_var=unsupported
15728 whole_archive_flag_spec=''
15729 link_all_deplibs=yes
15730 if test "$GCC" = yes ; then
15731 output_verbose_link_cmd='echo'
15732 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15733 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15734 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15735 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}'
15736 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}'
15738 case $cc_basename in
15740 output_verbose_link_cmd='echo'
15741 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15742 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15743 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15744 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}'
15745 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}'
15755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15756 hardcode_libdir_flag_spec='-L$libdir'
15757 hardcode_shlibpath_var=no
15764 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15765 # support. Future versions do this automatically, but an explicit c++rt0.o
15766 # does not break anything, and helps significantly (at the cost of a little
15769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15770 hardcode_libdir_flag_spec='-R$libdir'
15771 hardcode_direct=yes
15772 hardcode_shlibpath_var=no
15775 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15777 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15778 hardcode_direct=yes
15779 hardcode_minus_L=yes
15780 hardcode_shlibpath_var=no
15783 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15784 freebsd* | kfreebsd*-gnu | dragonfly*)
15785 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15786 hardcode_libdir_flag_spec='-R$libdir'
15787 hardcode_direct=yes
15788 hardcode_shlibpath_var=no
15792 if test "$GCC" = yes; then
15793 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'
15795 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'
15797 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15798 hardcode_libdir_separator=:
15799 hardcode_direct=yes
15801 # hardcode_minus_L: Not really in the search PATH,
15802 # but as the default location of the library.
15803 hardcode_minus_L=yes
15804 export_dynamic_flag_spec='${wl}-E'
15808 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15809 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15811 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15813 if test "$with_gnu_ld" = no; then
15814 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15815 hardcode_libdir_separator=:
15817 hardcode_direct=yes
15818 export_dynamic_flag_spec='${wl}-E'
15820 # hardcode_minus_L: Not really in the search PATH,
15821 # but as the default location of the library.
15822 hardcode_minus_L=yes
15827 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15830 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15833 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15836 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15842 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15845 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15848 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15852 if test "$with_gnu_ld" = no; then
15853 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15854 hardcode_libdir_separator=:
15858 hardcode_libdir_flag_spec_ld='+b $libdir'
15860 hardcode_shlibpath_var=no
15863 hardcode_direct=yes
15864 export_dynamic_flag_spec='${wl}-E'
15866 # hardcode_minus_L: Not really in the search PATH,
15867 # but as the default location of the library.
15868 hardcode_minus_L=yes
15874 irix5* | irix6* | nonstopux*)
15875 if test "$GCC" = yes; then
15876 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'
15878 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'
15879 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15881 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15882 hardcode_libdir_separator=:
15883 link_all_deplibs=yes
15887 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15888 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15890 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15892 hardcode_libdir_flag_spec='-R$libdir'
15893 hardcode_direct=yes
15894 hardcode_shlibpath_var=no
15898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15899 hardcode_direct=yes
15900 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15901 hardcode_libdir_separator=:
15902 hardcode_shlibpath_var=no
15906 hardcode_direct=yes
15907 hardcode_shlibpath_var=no
15908 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15909 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15910 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15911 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15912 export_dynamic_flag_spec='${wl}-E'
15915 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15916 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15917 hardcode_libdir_flag_spec='-R$libdir'
15920 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15921 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15928 hardcode_libdir_flag_spec='-L$libdir'
15929 hardcode_minus_L=yes
15930 allow_undefined_flag=unsupported
15931 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'
15932 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15936 if test "$GCC" = yes; then
15937 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15938 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'
15940 allow_undefined_flag=' -expect_unresolved \*'
15941 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'
15943 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15944 hardcode_libdir_separator=:
15947 osf4* | osf5*) # as osf3* with the addition of -msym flag
15948 if test "$GCC" = yes; then
15949 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15950 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'
15951 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15953 allow_undefined_flag=' -expect_unresolved \*'
15954 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'
15955 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15956 $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'
15958 # Both c and cxx compiler support -rpath directly
15959 hardcode_libdir_flag_spec='-rpath $libdir'
15961 hardcode_libdir_separator=:
15965 no_undefined_flag=' -z text'
15966 if test "$GCC" = yes; then
15968 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15969 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15970 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15973 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15974 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15975 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15977 hardcode_libdir_flag_spec='-R$libdir'
15978 hardcode_shlibpath_var=no
15980 solaris2.[0-5] | solaris2.[0-5].*) ;;
15982 # The compiler driver will combine linker options so we
15983 # cannot just pass the convience library names through
15984 # without $wl, iff we do not link with $LD.
15985 # Luckily, gcc supports the same syntax we need for Sun Studio.
15986 # Supported since Solaris 2.6 (maybe 2.5.1?)
15989 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15991 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' ;;
15994 link_all_deplibs=yes
15998 if test "x$host_vendor" = xsequent; then
15999 # Use $CC to link under sequent, because it throws in some extra .o
16000 # files that make .init and .fini sections work.
16001 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16003 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16005 hardcode_libdir_flag_spec='-L$libdir'
16006 hardcode_direct=yes
16007 hardcode_minus_L=yes
16008 hardcode_shlibpath_var=no
16012 case $host_vendor in
16014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16015 hardcode_direct=yes # is this really true???
16018 ## LD is ld it makes a PLAMLIB
16019 ## CC just makes a GrossModule.
16020 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16021 reload_cmds='$CC -r -o $output$reload_objs'
16025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16026 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16029 runpath_var='LD_RUN_PATH'
16030 hardcode_shlibpath_var=no
16034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16035 hardcode_shlibpath_var=no
16036 export_dynamic_flag_spec='-Bexport'
16040 if test -d /usr/nec; then
16041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16042 hardcode_shlibpath_var=no
16043 runpath_var=LD_RUN_PATH
16044 hardcode_runpath_var=yes
16049 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16050 no_undefined_flag='${wl}-z,text'
16051 archive_cmds_need_lc=no
16052 hardcode_shlibpath_var=no
16053 runpath_var='LD_RUN_PATH'
16055 if test "$GCC" = yes; then
16056 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16057 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16059 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16060 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16064 sysv5* | sco3.2v5* | sco5v6*)
16065 # Note: We can NOT use -z defs as we might desire, because we do not
16066 # link with -lc, and that would cause any symbols used from libc to
16067 # always be unresolved, which means just about no library would
16068 # ever link correctly. If we're not using GNU ld we use -z text
16069 # though, which does catch some bad symbols but isn't as heavy-handed
16071 no_undefined_flag='${wl}-z,text'
16072 allow_undefined_flag='${wl}-z,nodefs'
16073 archive_cmds_need_lc=no
16074 hardcode_shlibpath_var=no
16075 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16076 hardcode_libdir_separator=':'
16077 link_all_deplibs=yes
16078 export_dynamic_flag_spec='${wl}-Bexport'
16079 runpath_var='LD_RUN_PATH'
16081 if test "$GCC" = yes; then
16082 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16083 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16085 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16086 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16092 hardcode_libdir_flag_spec='-L$libdir'
16093 hardcode_shlibpath_var=no
16102 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16103 echo "${ECHO_T}$ld_shlibs" >&6; }
16104 test "$ld_shlibs" = no && can_build_shared=no
16107 # Do we need to explicitly link libc?
16109 case "x$archive_cmds_need_lc" in
16111 # Assume -lc should be added
16112 archive_cmds_need_lc=yes
16114 if test "$enable_shared" = yes && test "$GCC" = yes; then
16115 case $archive_cmds in
16117 # FIXME: we may have to deal with multi-command sequences.
16120 # Test whether the compiler implicitly links with -lc since on some
16121 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16122 # to ld, don't add -lc before -lgcc.
16123 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16124 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16126 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16129 (eval $ac_compile) 2>&5
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); } 2>conftest.err; then
16135 libobjs=conftest.$ac_objext
16137 wl=$lt_prog_compiler_wl
16138 pic_flag=$lt_prog_compiler_pic
16144 lt_save_allow_undefined_flag=$allow_undefined_flag
16145 allow_undefined_flag=
16146 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16147 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); }
16152 archive_cmds_need_lc=no
16154 archive_cmds_need_lc=yes
16156 allow_undefined_flag=$lt_save_allow_undefined_flag
16158 cat conftest.err 1>&5
16161 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16162 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16169 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16170 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16171 library_names_spec=
16172 libname_spec='lib$name'
16176 postuninstall_cmds=
16180 shlibpath_overrides_runpath=unknown
16182 dynamic_linker="$host_os ld.so"
16183 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16184 if test "$GCC" = yes; then
16185 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16186 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16187 # if the path contains ";" then we assume it to be the separator
16188 # otherwise default to the standard path separator (i.e. ":") - it is
16189 # assumed that no part of a normal pathname contains ";" but that should
16190 # okay in the real world where ";" in dirpaths is itself problematic.
16191 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16193 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16196 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16198 need_lib_prefix=unknown
16199 hardcode_into_libs=no
16201 # when you set need_version to no, make sure it does not cause -set_version
16202 # flags to be left without arguments
16203 need_version=unknown
16208 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16209 shlibpath_var=LIBPATH
16211 # AIX 3 has no versioning support, so we append a major version to the name.
16212 soname_spec='${libname}${release}${shared_ext}$major'
16219 hardcode_into_libs=yes
16220 if test "$host_cpu" = ia64; then
16221 # AIX 5 supports IA64
16222 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16223 shlibpath_var=LD_LIBRARY_PATH
16225 # With GCC up to 2.95.x, collect2 would create an import file
16226 # for dependence libraries. The import file would start with
16227 # the line `#! .'. This would cause the generated library to
16228 # depend on `.', always an invalid library. This was fixed in
16229 # development snapshots of GCC prior to 3.0.
16231 aix4 | aix4.[01] | aix4.[01].*)
16232 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16234 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16237 can_build_shared=no
16241 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16242 # soname into executable. Probably we can add versioning support to
16243 # collect2, so additional links can be useful in future.
16244 if test "$aix_use_runtimelinking" = yes; then
16245 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16246 # instead of lib<name>.a to let people know that these are not
16247 # typical AIX shared libraries.
16248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16250 # We preserve .a as extension for shared libraries through AIX4.2
16251 # and later when we are not doing run time linking.
16252 library_names_spec='${libname}${release}.a $libname.a'
16253 soname_spec='${libname}${release}${shared_ext}$major'
16255 shlibpath_var=LIBPATH
16260 library_names_spec='$libname.ixlibrary $libname.a'
16261 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16262 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'
16266 library_names_spec='${libname}${shared_ext}'
16267 dynamic_linker="$host_os ld.so"
16268 shlibpath_var=LIBRARY_PATH
16274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16275 soname_spec='${libname}${release}${shared_ext}$major'
16276 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16277 shlibpath_var=LD_LIBRARY_PATH
16278 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16279 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16280 # the default ld.so.conf also contains /usr/contrib/lib and
16281 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16282 # libtool to hard-code these into programs
16285 cygwin* | mingw* | pw32*)
16286 version_type=windows
16291 case $GCC,$host_os in
16292 yes,cygwin* | yes,mingw* | yes,pw32*)
16293 library_names_spec='$libname.dll.a'
16294 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16295 postinstall_cmds='base_file=`basename \${file}`~
16296 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16297 dldir=$destdir/`dirname \$dlpath`~
16298 test -d \$dldir || mkdir -p \$dldir~
16299 $install_prog $dir/$dlname \$dldir/$dlname~
16300 chmod a+x \$dldir/$dlname'
16301 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16302 dlpath=$dir/\$dldll~
16304 shlibpath_overrides_runpath=yes
16308 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16309 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16310 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16313 # MinGW DLLs use traditional 'lib' prefix
16314 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16315 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16316 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16317 # It is most probably a Windows format PATH printed by
16318 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16319 # path with ; separators, and with drive letters. We can handle the
16320 # drive letters (cygwin fileutils understands them), so leave them,
16321 # especially as we might pass files found there to a mingw objdump,
16322 # which wouldn't understand a cygwinified path. Ahh.
16323 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16325 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16329 # pw32 DLLs use 'pw' prefix rather than 'lib'
16330 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16336 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16339 dynamic_linker='Win32 ld.exe'
16340 # FIXME: first we should search . and the directory the executable is in
16344 darwin* | rhapsody*)
16345 dynamic_linker="$host_os dyld"
16346 version_type=darwin
16349 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16350 soname_spec='${libname}${release}${major}$shared_ext'
16351 shlibpath_overrides_runpath=yes
16352 shlibpath_var=DYLD_LIBRARY_PATH
16353 shrext_cmds='.dylib'
16354 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16355 if test "$GCC" = yes; then
16356 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"`
16358 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16360 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16368 soname_spec='${libname}${release}${shared_ext}$major'
16369 shlibpath_var=LD_LIBRARY_PATH
16380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16381 soname_spec='${libname}${release}${shared_ext}$major'
16382 shlibpath_var=LD_LIBRARY_PATH
16383 shlibpath_overrides_runpath=no
16384 hardcode_into_libs=yes
16385 dynamic_linker='GNU ld.so'
16388 freebsd* | dragonfly*)
16389 # DragonFly does not have aout. When/if they implement a new
16390 # versioning mechanism, adjust this.
16391 if test -x /usr/bin/objformat; then
16392 objformat=`/usr/bin/objformat`
16395 freebsd[123]*) objformat=aout ;;
16396 *) objformat=elf ;;
16399 version_type=freebsd-$objformat
16400 case $version_type in
16402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16407 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16411 shlibpath_var=LD_LIBRARY_PATH
16414 shlibpath_overrides_runpath=yes
16416 freebsd3.[01]* | freebsdelf3.[01]*)
16417 shlibpath_overrides_runpath=yes
16418 hardcode_into_libs=yes
16420 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16421 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16422 shlibpath_overrides_runpath=no
16423 hardcode_into_libs=yes
16425 freebsd*) # from 4.6 on
16426 shlibpath_overrides_runpath=yes
16427 hardcode_into_libs=yes
16436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16437 soname_spec='${libname}${release}${shared_ext}$major'
16438 shlibpath_var=LD_LIBRARY_PATH
16439 hardcode_into_libs=yes
16442 hpux9* | hpux10* | hpux11*)
16443 # Give a soname corresponding to the major version so that dld.sl refuses to
16444 # link against other versions.
16451 hardcode_into_libs=yes
16452 dynamic_linker="$host_os dld.so"
16453 shlibpath_var=LD_LIBRARY_PATH
16454 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16456 soname_spec='${libname}${release}${shared_ext}$major'
16457 if test "X$HPUX_IA64_MODE" = X32; then
16458 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16460 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16462 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16466 hardcode_into_libs=yes
16467 dynamic_linker="$host_os dld.sl"
16468 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16469 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16471 soname_spec='${libname}${release}${shared_ext}$major'
16472 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16473 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16477 dynamic_linker="$host_os dld.sl"
16478 shlibpath_var=SHLIB_PATH
16479 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16481 soname_spec='${libname}${release}${shared_ext}$major'
16484 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16485 postinstall_cmds='chmod 555 $lib'
16492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16493 soname_spec='${libname}${release}${shared_ext}$major'
16494 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16495 shlibpath_var=LD_LIBRARY_PATH
16496 shlibpath_overrides_runpath=no
16497 hardcode_into_libs=yes
16500 irix5* | irix6* | nonstopux*)
16502 nonstopux*) version_type=nonstopux ;;
16504 if test "$lt_cv_prog_gnu_ld" = yes; then
16512 soname_spec='${libname}${release}${shared_ext}$major'
16513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16515 irix5* | nonstopux*)
16516 libsuff= shlibsuff=
16519 case $LD in # libtool.m4 will add one of these switches to LD
16520 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16521 libsuff= shlibsuff= libmagic=32-bit;;
16522 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16523 libsuff=32 shlibsuff=N32 libmagic=N32;;
16524 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16525 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16526 *) libsuff= shlibsuff= libmagic=never-match;;
16530 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16531 shlibpath_overrides_runpath=no
16532 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16533 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16534 hardcode_into_libs=yes
16537 # No shared lib support for Linux oldld, aout, or coff.
16538 linux*oldld* | linux*aout* | linux*coff*)
16542 # This must be Linux ELF.
16547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16548 soname_spec='${libname}${release}${shared_ext}$major'
16549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16550 shlibpath_var=LD_LIBRARY_PATH
16551 shlibpath_overrides_runpath=no
16552 # This implies no fast_install, which is unacceptable.
16553 # Some rework will be needed to allow for fast_install
16554 # before this can be enabled.
16555 hardcode_into_libs=yes
16557 # Append ld.so.conf contents to the search path
16558 if test -f /etc/ld.so.conf; then
16559 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' ' '`
16560 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16563 # We used to test for /lib/ld.so.1 and disable shared libraries on
16564 # powerpc, because MkLinux only supported shared libraries with the
16565 # GNU dynamic linker. Since this was broken with cross compilers,
16566 # most powerpc-linux boxes support dynamic linking these days and
16567 # people can always --disable-shared, the test was removed, and we
16568 # assume the GNU/Linux dynamic linker is in use.
16569 dynamic_linker='GNU/Linux ld.so'
16576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16577 soname_spec='${libname}${release}${shared_ext}$major'
16578 shlibpath_var=LD_LIBRARY_PATH
16579 shlibpath_overrides_runpath=no
16580 hardcode_into_libs=yes
16581 dynamic_linker='GNU ld.so'
16588 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16590 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16591 dynamic_linker='NetBSD (a.out) ld.so'
16593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16594 soname_spec='${libname}${release}${shared_ext}$major'
16595 dynamic_linker='NetBSD ld.elf_so'
16597 shlibpath_var=LD_LIBRARY_PATH
16598 shlibpath_overrides_runpath=yes
16599 hardcode_into_libs=yes
16604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16605 shlibpath_var=LD_LIBRARY_PATH
16606 shlibpath_overrides_runpath=yes
16613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16614 soname_spec='${libname}${release}${shared_ext}$major'
16615 shlibpath_var=LD_LIBRARY_PATH
16616 shlibpath_overrides_runpath=yes
16621 sys_lib_dlsearch_path_spec="/usr/lib"
16623 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16625 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16626 *) need_version=no ;;
16628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16629 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16630 shlibpath_var=LD_LIBRARY_PATH
16631 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16633 openbsd2.[89] | openbsd2.[89].*)
16634 shlibpath_overrides_runpath=no
16637 shlibpath_overrides_runpath=yes
16641 shlibpath_overrides_runpath=yes
16646 libname_spec='$name'
16649 library_names_spec='$libname${shared_ext} $libname.a'
16650 dynamic_linker='OS/2 ld.exe'
16651 shlibpath_var=LIBPATH
16654 osf3* | osf4* | osf5*)
16658 soname_spec='${libname}${release}${shared_ext}$major'
16659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16660 shlibpath_var=LD_LIBRARY_PATH
16661 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16662 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16670 soname_spec='${libname}${release}${shared_ext}$major'
16671 shlibpath_var=LD_LIBRARY_PATH
16672 shlibpath_overrides_runpath=yes
16673 hardcode_into_libs=yes
16674 # ldd complains unless libraries are executable
16675 postinstall_cmds='chmod +x $lib'
16680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16681 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16682 shlibpath_var=LD_LIBRARY_PATH
16683 shlibpath_overrides_runpath=yes
16684 if test "$with_gnu_ld" = yes; then
16692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16693 soname_spec='${libname}${release}${shared_ext}$major'
16694 shlibpath_var=LD_LIBRARY_PATH
16695 case $host_vendor in
16697 shlibpath_overrides_runpath=no
16699 export_dynamic_flag_spec='${wl}-Blargedynsym'
16700 runpath_var=LD_RUN_PATH
16708 shlibpath_overrides_runpath=no
16709 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16715 if test -d /usr/nec ;then
16717 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16718 soname_spec='$libname${shared_ext}.$major'
16719 shlibpath_var=LD_LIBRARY_PATH
16723 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16724 version_type=freebsd-elf
16727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16728 soname_spec='${libname}${release}${shared_ext}$major'
16729 shlibpath_var=LD_LIBRARY_PATH
16730 hardcode_into_libs=yes
16731 if test "$with_gnu_ld" = yes; then
16732 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16733 shlibpath_overrides_runpath=no
16735 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16736 shlibpath_overrides_runpath=yes
16739 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16743 sys_lib_dlsearch_path_spec='/usr/lib'
16748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16749 soname_spec='${libname}${release}${shared_ext}$major'
16750 shlibpath_var=LD_LIBRARY_PATH
16757 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16758 echo "${ECHO_T}$dynamic_linker" >&6; }
16759 test "$dynamic_linker" = no && can_build_shared=no
16761 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16762 if test "$GCC" = yes; then
16763 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16766 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16767 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16769 if test -n "$hardcode_libdir_flag_spec" || \
16770 test -n "$runpath_var" || \
16771 test "X$hardcode_automatic" = "Xyes" ; then
16773 # We can hardcode non-existant directories.
16774 if test "$hardcode_direct" != no &&
16775 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16776 # have to relink, otherwise we might link with an installed library
16777 # when we should be linking with a yet-to-be-installed one
16778 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16779 test "$hardcode_minus_L" != no; then
16780 # Linking always hardcodes the temporary library directory.
16781 hardcode_action=relink
16783 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16784 hardcode_action=immediate
16787 # We cannot hardcode anything, or else we can only hardcode existing
16789 hardcode_action=unsupported
16791 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16792 echo "${ECHO_T}$hardcode_action" >&6; }
16794 if test "$hardcode_action" = relink; then
16795 # Fast installation is not supported
16796 enable_fast_install=no
16797 elif test "$shlibpath_overrides_runpath" = yes ||
16798 test "$enable_shared" = no; then
16799 # Fast installation is not necessary
16800 enable_fast_install=needless
16805 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16806 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16807 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16808 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16809 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16810 { echo "$as_me:$LINENO: result: yes" >&5
16811 echo "${ECHO_T}yes" >&6; }
16813 # FIXME - insert some real tests, host_os isn't really good enough
16816 if test -n "$STRIP" ; then
16817 striplib="$STRIP -x"
16818 { echo "$as_me:$LINENO: result: yes" >&5
16819 echo "${ECHO_T}yes" >&6; }
16821 { echo "$as_me:$LINENO: result: no" >&5
16822 echo "${ECHO_T}no" >&6; }
16826 { echo "$as_me:$LINENO: result: no" >&5
16827 echo "${ECHO_T}no" >&6; }
16832 if test "x$enable_dlopen" != xyes; then
16833 enable_dlopen=unknown
16834 enable_dlopen_self=unknown
16835 enable_dlopen_self_static=unknown
16842 lt_cv_dlopen="load_add_on"
16844 lt_cv_dlopen_self=yes
16848 lt_cv_dlopen="LoadLibrary"
16853 lt_cv_dlopen="dlopen"
16858 # if libdl is installed we need to link against it
16859 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16860 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16861 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16862 echo $ECHO_N "(cached) $ECHO_C" >&6
16864 ac_check_lib_save_LIBS=$LIBS
16866 cat >conftest.$ac_ext <<_ACEOF
16869 cat confdefs.h >>conftest.$ac_ext
16870 cat >>conftest.$ac_ext <<_ACEOF
16871 /* end confdefs.h. */
16873 /* Override any GCC internal prototype to avoid an error.
16874 Use char because int might match the return type of a GCC
16875 builtin and then its argument prototype would still apply. */
16888 rm -f conftest.$ac_objext conftest$ac_exeext
16889 if { (ac_try="$ac_link"
16890 case "(($ac_try" in
16891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892 *) ac_try_echo=$ac_try;;
16894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895 (eval "$ac_link") 2>conftest.er1
16897 grep -v '^ *+' conftest.er1 >conftest.err
16899 cat conftest.err >&5
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); } &&
16902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16903 { (case "(($ac_try" in
16904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905 *) ac_try_echo=$ac_try;;
16907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16908 (eval "$ac_try") 2>&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); }; } &&
16912 { ac_try='test -s conftest$ac_exeext'
16913 { (case "(($ac_try" in
16914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16915 *) ac_try_echo=$ac_try;;
16917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16918 (eval "$ac_try") 2>&5
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; }; then
16922 ac_cv_lib_dl_dlopen=yes
16924 echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16927 ac_cv_lib_dl_dlopen=no
16930 rm -f core conftest.err conftest.$ac_objext \
16931 conftest$ac_exeext conftest.$ac_ext
16932 LIBS=$ac_check_lib_save_LIBS
16934 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16935 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16936 if test $ac_cv_lib_dl_dlopen = yes; then
16937 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16940 lt_cv_dlopen="dyld"
16942 lt_cv_dlopen_self=yes
16949 { echo "$as_me:$LINENO: checking for shl_load" >&5
16950 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16951 if test "${ac_cv_func_shl_load+set}" = set; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16954 cat >conftest.$ac_ext <<_ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h. */
16960 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16962 #define shl_load innocuous_shl_load
16964 /* System header to define __stub macros and hopefully few prototypes,
16965 which can conflict with char shl_load (); below.
16966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16967 <limits.h> exists even on freestanding compilers. */
16970 # include <limits.h>
16972 # include <assert.h>
16977 /* Override any GCC internal prototype to avoid an error.
16978 Use char because int might match the return type of a GCC
16979 builtin and then its argument prototype would still apply. */
16984 /* The GNU C library defines this for functions which it implements
16985 to always fail with ENOSYS. Some functions are actually named
16986 something starting with __ and the normal name is an alias. */
16987 #if defined __stub_shl_load || defined __stub___shl_load
16994 return shl_load ();
16999 rm -f conftest.$ac_objext conftest$ac_exeext
17000 if { (ac_try="$ac_link"
17001 case "(($ac_try" in
17002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003 *) ac_try_echo=$ac_try;;
17005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006 (eval "$ac_link") 2>conftest.er1
17008 grep -v '^ *+' conftest.er1 >conftest.err
17010 cat conftest.err >&5
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); } &&
17013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17014 { (case "(($ac_try" in
17015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016 *) ac_try_echo=$ac_try;;
17018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17019 (eval "$ac_try") 2>&5
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); }; } &&
17023 { ac_try='test -s conftest$ac_exeext'
17024 { (case "(($ac_try" in
17025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026 *) ac_try_echo=$ac_try;;
17028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17029 (eval "$ac_try") 2>&5
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; }; then
17033 ac_cv_func_shl_load=yes
17035 echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.$ac_ext >&5
17038 ac_cv_func_shl_load=no
17041 rm -f core conftest.err conftest.$ac_objext \
17042 conftest$ac_exeext conftest.$ac_ext
17044 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17045 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17046 if test $ac_cv_func_shl_load = yes; then
17047 lt_cv_dlopen="shl_load"
17049 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17050 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17051 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17052 echo $ECHO_N "(cached) $ECHO_C" >&6
17054 ac_check_lib_save_LIBS=$LIBS
17056 cat >conftest.$ac_ext <<_ACEOF
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h. */
17063 /* Override any GCC internal prototype to avoid an error.
17064 Use char because int might match the return type of a GCC
17065 builtin and then its argument prototype would still apply. */
17073 return shl_load ();
17078 rm -f conftest.$ac_objext conftest$ac_exeext
17079 if { (ac_try="$ac_link"
17080 case "(($ac_try" in
17081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082 *) ac_try_echo=$ac_try;;
17084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085 (eval "$ac_link") 2>conftest.er1
17087 grep -v '^ *+' conftest.er1 >conftest.err
17089 cat conftest.err >&5
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); } &&
17092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17093 { (case "(($ac_try" in
17094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095 *) ac_try_echo=$ac_try;;
17097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098 (eval "$ac_try") 2>&5
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; } &&
17102 { ac_try='test -s conftest$ac_exeext'
17103 { (case "(($ac_try" in
17104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17105 *) ac_try_echo=$ac_try;;
17107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17108 (eval "$ac_try") 2>&5
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); }; }; then
17112 ac_cv_lib_dld_shl_load=yes
17114 echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17117 ac_cv_lib_dld_shl_load=no
17120 rm -f core conftest.err conftest.$ac_objext \
17121 conftest$ac_exeext conftest.$ac_ext
17122 LIBS=$ac_check_lib_save_LIBS
17124 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17125 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17126 if test $ac_cv_lib_dld_shl_load = yes; then
17127 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17129 { echo "$as_me:$LINENO: checking for dlopen" >&5
17130 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17131 if test "${ac_cv_func_dlopen+set}" = set; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17134 cat >conftest.$ac_ext <<_ACEOF
17137 cat confdefs.h >>conftest.$ac_ext
17138 cat >>conftest.$ac_ext <<_ACEOF
17139 /* end confdefs.h. */
17140 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17142 #define dlopen innocuous_dlopen
17144 /* System header to define __stub macros and hopefully few prototypes,
17145 which can conflict with char dlopen (); below.
17146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17147 <limits.h> exists even on freestanding compilers. */
17150 # include <limits.h>
17152 # include <assert.h>
17157 /* Override any GCC internal prototype to avoid an error.
17158 Use char because int might match the return type of a GCC
17159 builtin and then its argument prototype would still apply. */
17164 /* The GNU C library defines this for functions which it implements
17165 to always fail with ENOSYS. Some functions are actually named
17166 something starting with __ and the normal name is an alias. */
17167 #if defined __stub_dlopen || defined __stub___dlopen
17179 rm -f conftest.$ac_objext conftest$ac_exeext
17180 if { (ac_try="$ac_link"
17181 case "(($ac_try" in
17182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183 *) ac_try_echo=$ac_try;;
17185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186 (eval "$ac_link") 2>conftest.er1
17188 grep -v '^ *+' conftest.er1 >conftest.err
17190 cat conftest.err >&5
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); } &&
17193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17194 { (case "(($ac_try" in
17195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196 *) ac_try_echo=$ac_try;;
17198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17199 (eval "$ac_try") 2>&5
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); }; } &&
17203 { ac_try='test -s conftest$ac_exeext'
17204 { (case "(($ac_try" in
17205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206 *) ac_try_echo=$ac_try;;
17208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17209 (eval "$ac_try") 2>&5
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); }; }; then
17213 ac_cv_func_dlopen=yes
17215 echo "$as_me: failed program was:" >&5
17216 sed 's/^/| /' conftest.$ac_ext >&5
17218 ac_cv_func_dlopen=no
17221 rm -f core conftest.err conftest.$ac_objext \
17222 conftest$ac_exeext conftest.$ac_ext
17224 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17225 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17226 if test $ac_cv_func_dlopen = yes; then
17227 lt_cv_dlopen="dlopen"
17229 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17230 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17231 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17234 ac_check_lib_save_LIBS=$LIBS
17236 cat >conftest.$ac_ext <<_ACEOF
17239 cat confdefs.h >>conftest.$ac_ext
17240 cat >>conftest.$ac_ext <<_ACEOF
17241 /* end confdefs.h. */
17243 /* Override any GCC internal prototype to avoid an error.
17244 Use char because int might match the return type of a GCC
17245 builtin and then its argument prototype would still apply. */
17258 rm -f conftest.$ac_objext conftest$ac_exeext
17259 if { (ac_try="$ac_link"
17260 case "(($ac_try" in
17261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262 *) ac_try_echo=$ac_try;;
17264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265 (eval "$ac_link") 2>conftest.er1
17267 grep -v '^ *+' conftest.er1 >conftest.err
17269 cat conftest.err >&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); } &&
17272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17273 { (case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_try") 2>&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; } &&
17282 { ac_try='test -s conftest$ac_exeext'
17283 { (case "(($ac_try" in
17284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285 *) ac_try_echo=$ac_try;;
17287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288 (eval "$ac_try") 2>&5
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; }; then
17292 ac_cv_lib_dl_dlopen=yes
17294 echo "$as_me: failed program was:" >&5
17295 sed 's/^/| /' conftest.$ac_ext >&5
17297 ac_cv_lib_dl_dlopen=no
17300 rm -f core conftest.err conftest.$ac_objext \
17301 conftest$ac_exeext conftest.$ac_ext
17302 LIBS=$ac_check_lib_save_LIBS
17304 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17305 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17306 if test $ac_cv_lib_dl_dlopen = yes; then
17307 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17309 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17310 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17311 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17312 echo $ECHO_N "(cached) $ECHO_C" >&6
17314 ac_check_lib_save_LIBS=$LIBS
17315 LIBS="-lsvld $LIBS"
17316 cat >conftest.$ac_ext <<_ACEOF
17319 cat confdefs.h >>conftest.$ac_ext
17320 cat >>conftest.$ac_ext <<_ACEOF
17321 /* end confdefs.h. */
17323 /* Override any GCC internal prototype to avoid an error.
17324 Use char because int might match the return type of a GCC
17325 builtin and then its argument prototype would still apply. */
17338 rm -f conftest.$ac_objext conftest$ac_exeext
17339 if { (ac_try="$ac_link"
17340 case "(($ac_try" in
17341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17342 *) ac_try_echo=$ac_try;;
17344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17345 (eval "$ac_link") 2>conftest.er1
17347 grep -v '^ *+' conftest.er1 >conftest.err
17349 cat conftest.err >&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); } &&
17352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17353 { (case "(($ac_try" in
17354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358 (eval "$ac_try") 2>&5
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; } &&
17362 { ac_try='test -s conftest$ac_exeext'
17363 { (case "(($ac_try" in
17364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17365 *) ac_try_echo=$ac_try;;
17367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17368 (eval "$ac_try") 2>&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; }; then
17372 ac_cv_lib_svld_dlopen=yes
17374 echo "$as_me: failed program was:" >&5
17375 sed 's/^/| /' conftest.$ac_ext >&5
17377 ac_cv_lib_svld_dlopen=no
17380 rm -f core conftest.err conftest.$ac_objext \
17381 conftest$ac_exeext conftest.$ac_ext
17382 LIBS=$ac_check_lib_save_LIBS
17384 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17385 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17386 if test $ac_cv_lib_svld_dlopen = yes; then
17387 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17389 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17390 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17391 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17392 echo $ECHO_N "(cached) $ECHO_C" >&6
17394 ac_check_lib_save_LIBS=$LIBS
17396 cat >conftest.$ac_ext <<_ACEOF
17399 cat confdefs.h >>conftest.$ac_ext
17400 cat >>conftest.$ac_ext <<_ACEOF
17401 /* end confdefs.h. */
17403 /* Override any GCC internal prototype to avoid an error.
17404 Use char because int might match the return type of a GCC
17405 builtin and then its argument prototype would still apply. */
17413 return dld_link ();
17418 rm -f conftest.$ac_objext conftest$ac_exeext
17419 if { (ac_try="$ac_link"
17420 case "(($ac_try" in
17421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422 *) ac_try_echo=$ac_try;;
17424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425 (eval "$ac_link") 2>conftest.er1
17427 grep -v '^ *+' conftest.er1 >conftest.err
17429 cat conftest.err >&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); } &&
17432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17433 { (case "(($ac_try" in
17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438 (eval "$ac_try") 2>&5
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); }; } &&
17442 { ac_try='test -s conftest$ac_exeext'
17443 { (case "(($ac_try" in
17444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445 *) ac_try_echo=$ac_try;;
17447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448 (eval "$ac_try") 2>&5
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); }; }; then
17452 ac_cv_lib_dld_dld_link=yes
17454 echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17457 ac_cv_lib_dld_dld_link=no
17460 rm -f core conftest.err conftest.$ac_objext \
17461 conftest$ac_exeext conftest.$ac_ext
17462 LIBS=$ac_check_lib_save_LIBS
17464 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17465 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17466 if test $ac_cv_lib_dld_dld_link = yes; then
17467 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17488 if test "x$lt_cv_dlopen" != xno; then
17494 case $lt_cv_dlopen in
17496 save_CPPFLAGS="$CPPFLAGS"
17497 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17499 save_LDFLAGS="$LDFLAGS"
17500 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17503 LIBS="$lt_cv_dlopen_libs $LIBS"
17505 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17506 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17507 if test "${lt_cv_dlopen_self+set}" = set; then
17508 echo $ECHO_N "(cached) $ECHO_C" >&6
17510 if test "$cross_compiling" = yes; then :
17511 lt_cv_dlopen_self=cross
17513 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17514 lt_status=$lt_dlunknown
17515 cat > conftest.$ac_ext <<EOF
17516 #line 17516 "configure"
17517 #include "confdefs.h"
17526 # define LT_DLGLOBAL RTLD_GLOBAL
17529 # define LT_DLGLOBAL DL_GLOBAL
17531 # define LT_DLGLOBAL 0
17535 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17536 find out it does not work in some platform. */
17537 #ifndef LT_DLLAZY_OR_NOW
17539 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17542 # define LT_DLLAZY_OR_NOW DL_LAZY
17545 # define LT_DLLAZY_OR_NOW RTLD_NOW
17548 # define LT_DLLAZY_OR_NOW DL_NOW
17550 # define LT_DLLAZY_OR_NOW 0
17558 extern "C" void exit (int);
17561 void fnord() { int i=42;}
17564 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17565 int status = $lt_dlunknown;
17569 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17570 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17571 /* dlclose (self); */
17579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17580 (eval $ac_link) 2>&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17584 (./conftest; exit; ) >&5 2>/dev/null
17586 case x$lt_status in
17587 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17588 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17589 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17592 # compilation failed
17593 lt_cv_dlopen_self=no
17600 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17601 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17603 if test "x$lt_cv_dlopen_self" = xyes; then
17604 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17605 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17606 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17607 if test "${lt_cv_dlopen_self_static+set}" = set; then
17608 echo $ECHO_N "(cached) $ECHO_C" >&6
17610 if test "$cross_compiling" = yes; then :
17611 lt_cv_dlopen_self_static=cross
17613 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17614 lt_status=$lt_dlunknown
17615 cat > conftest.$ac_ext <<EOF
17616 #line 17616 "configure"
17617 #include "confdefs.h"
17626 # define LT_DLGLOBAL RTLD_GLOBAL
17629 # define LT_DLGLOBAL DL_GLOBAL
17631 # define LT_DLGLOBAL 0
17635 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17636 find out it does not work in some platform. */
17637 #ifndef LT_DLLAZY_OR_NOW
17639 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17642 # define LT_DLLAZY_OR_NOW DL_LAZY
17645 # define LT_DLLAZY_OR_NOW RTLD_NOW
17648 # define LT_DLLAZY_OR_NOW DL_NOW
17650 # define LT_DLLAZY_OR_NOW 0
17658 extern "C" void exit (int);
17661 void fnord() { int i=42;}
17664 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17665 int status = $lt_dlunknown;
17669 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17670 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17671 /* dlclose (self); */
17679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17680 (eval $ac_link) 2>&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17684 (./conftest; exit; ) >&5 2>/dev/null
17686 case x$lt_status in
17687 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17688 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17689 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17692 # compilation failed
17693 lt_cv_dlopen_self_static=no
17700 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17701 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17704 CPPFLAGS="$save_CPPFLAGS"
17705 LDFLAGS="$save_LDFLAGS"
17710 case $lt_cv_dlopen_self in
17711 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17712 *) enable_dlopen_self=unknown ;;
17715 case $lt_cv_dlopen_self_static in
17716 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17717 *) enable_dlopen_self_static=unknown ;;
17722 # Report which library types will actually be built
17723 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17724 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17725 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17726 echo "${ECHO_T}$can_build_shared" >&6; }
17728 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17729 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17730 test "$can_build_shared" = "no" && enable_shared=no
17732 # On AIX, shared libraries and static libraries use the same namespace, and
17733 # are all built from PIC.
17736 test "$enable_shared" = yes && enable_static=no
17737 if test -n "$RANLIB"; then
17738 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17739 postinstall_cmds='$RANLIB $lib'
17744 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17745 test "$enable_shared" = yes && enable_static=no
17749 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17750 echo "${ECHO_T}$enable_shared" >&6; }
17752 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17753 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17754 # Make sure either enable_shared or enable_static is yes.
17755 test "$enable_shared" = yes || enable_static=yes
17756 { echo "$as_me:$LINENO: result: $enable_static" >&5
17757 echo "${ECHO_T}$enable_static" >&6; }
17759 # The else clause should only fire when bootstrapping the
17760 # libtool distribution, otherwise you forgot to ship ltmain.sh
17761 # with your package, and you will get complaints that there are
17762 # no rules to generate ltmain.sh.
17763 if test -f "$ltmain"; then
17764 # See if we are running on zsh, and set the options which allow our commands through
17765 # without removal of \ escapes.
17766 if test -n "${ZSH_VERSION+set}" ; then
17767 setopt NO_GLOB_SUBST
17769 # Now quote all the things that may contain metacharacters while being
17770 # careful not to overquote the AC_SUBSTed values. We take copies of the
17771 # variables and quote the copies for generation of the libtool script.
17772 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17774 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17775 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17776 deplibs_check_method reload_flag reload_cmds need_locks \
17777 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17778 lt_cv_sys_global_symbol_to_c_name_address \
17779 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17780 old_postinstall_cmds old_postuninstall_cmds \
17784 lt_prog_compiler_wl \
17785 lt_prog_compiler_pic \
17786 lt_prog_compiler_static \
17787 lt_prog_compiler_no_builtin_flag \
17788 export_dynamic_flag_spec \
17789 thread_safe_flag_spec \
17790 whole_archive_flag_spec \
17791 enable_shared_with_static_runtimes \
17793 old_archive_from_new_cmds \
17798 compiler_lib_search_path \
17800 archive_expsym_cmds \
17802 postuninstall_cmds \
17803 old_archive_from_expsyms_cmds \
17804 allow_undefined_flag \
17805 no_undefined_flag \
17806 export_symbols_cmds \
17807 hardcode_libdir_flag_spec \
17808 hardcode_libdir_flag_spec_ld \
17809 hardcode_libdir_separator \
17810 hardcode_automatic \
17812 module_expsym_cmds \
17813 lt_cv_prog_compiler_c_o \
17815 include_expsyms; do
17818 old_archive_cmds | \
17819 old_archive_from_new_cmds | \
17821 archive_expsym_cmds | \
17823 module_expsym_cmds | \
17824 old_archive_from_expsyms_cmds | \
17825 export_symbols_cmds | \
17826 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17827 postinstall_cmds | postuninstall_cmds | \
17828 old_postinstall_cmds | old_postuninstall_cmds | \
17829 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17830 # Double-quote double-evaled strings.
17831 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17834 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17840 *'\$0 --fallback-echo"')
17841 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17845 cfgfile="${ofile}T"
17846 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17848 { echo "$as_me:$LINENO: creating $ofile" >&5
17849 echo "$as_me: creating $ofile" >&6;}
17851 cat <<__EOF__ >> "$cfgfile"
17854 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17855 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17856 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17858 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17859 # Free Software Foundation, Inc.
17861 # This file is part of GNU Libtool:
17862 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17864 # This program is free software; you can redistribute it and/or modify
17865 # it under the terms of the GNU General Public License as published by
17866 # the Free Software Foundation; either version 2 of the License, or
17867 # (at your option) any later version.
17869 # This program is distributed in the hope that it will be useful, but
17870 # WITHOUT ANY WARRANTY; without even the implied warranty of
17871 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17872 # General Public License for more details.
17874 # You should have received a copy of the GNU General Public License
17875 # along with this program; if not, write to the Free Software
17876 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17878 # As a special exception to the GNU General Public License, if you
17879 # distribute this file as part of a program that contains a
17880 # configuration script generated by Autoconf, you may include it under
17881 # the same distribution terms that you use for the rest of that program.
17883 # A sed program that does not truncate output.
17886 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17887 Xsed="$SED -e 1s/^X//"
17889 # The HP-UX ksh and POSIX shell print the target directory to stdout
17890 # if CDPATH is set.
17891 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17893 # The names of the tagged configurations supported by this script.
17896 # ### BEGIN LIBTOOL CONFIG
17898 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17900 # Shell to use when invoking shell scripts.
17903 # Whether or not to build shared libraries.
17904 build_libtool_libs=$enable_shared
17906 # Whether or not to build static libraries.
17907 build_old_libs=$enable_static
17909 # Whether or not to add -lc for building shared libraries.
17910 build_libtool_need_lc=$archive_cmds_need_lc
17912 # Whether or not to disallow shared libs when runtime libs are static
17913 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17915 # Whether or not to optimize for fast installation.
17916 fast_install=$enable_fast_install
17919 host_alias=$host_alias
17923 # The build system.
17924 build_alias=$build_alias
17928 # An echo program that does not interpret backslashes.
17933 AR_FLAGS=$lt_AR_FLAGS
17938 # LTCC compiler flags.
17939 LTCFLAGS=$lt_LTCFLAGS
17941 # A language-specific compiler.
17944 # Is the compiler the GNU C compiler?
17950 # The linker used to build libraries.
17953 # Whether we need hard or soft links.
17956 # A BSD-compatible nm program.
17959 # A symbol stripping program
17962 # Used to examine libraries when file_magic_cmd begins "file"
17963 MAGIC_CMD=$MAGIC_CMD
17965 # Used on cygwin: DLL creation program.
17968 # Used on cygwin: object dumper.
17971 # Used on cygwin: assembler.
17974 # The name of the directory that contains temporary libtool files.
17977 # How to create reloadable object files.
17978 reload_flag=$lt_reload_flag
17979 reload_cmds=$lt_reload_cmds
17981 # How to pass a linker flag through the compiler.
17982 wl=$lt_lt_prog_compiler_wl
17984 # Object file suffix (normally "o").
17985 objext="$ac_objext"
17987 # Old archive suffix (normally "a").
17990 # Shared library suffix (normally ".so").
17991 shrext_cmds='$shrext_cmds'
17993 # Executable file suffix (normally "").
17996 # Additional compiler flags for building library objects.
17997 pic_flag=$lt_lt_prog_compiler_pic
18000 # What is the maximum length of a command?
18001 max_cmd_len=$lt_cv_sys_max_cmd_len
18003 # Does compiler simultaneously support -c and -o options?
18004 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18006 # Must we lock files when doing compilation?
18007 need_locks=$lt_need_locks
18009 # Do we need the lib prefix for modules?
18010 need_lib_prefix=$need_lib_prefix
18012 # Do we need a version for libraries?
18013 need_version=$need_version
18015 # Whether dlopen is supported.
18016 dlopen_support=$enable_dlopen
18018 # Whether dlopen of programs is supported.
18019 dlopen_self=$enable_dlopen_self
18021 # Whether dlopen of statically linked programs is supported.
18022 dlopen_self_static=$enable_dlopen_self_static
18024 # Compiler flag to prevent dynamic linking.
18025 link_static_flag=$lt_lt_prog_compiler_static
18027 # Compiler flag to turn off builtin functions.
18028 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18030 # Compiler flag to allow reflexive dlopens.
18031 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18033 # Compiler flag to generate shared objects directly from archives.
18034 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18036 # Compiler flag to generate thread-safe objects.
18037 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18039 # Library versioning type.
18040 version_type=$version_type
18042 # Format of library name prefix.
18043 libname_spec=$lt_libname_spec
18045 # List of archive names. First name is the real one, the rest are links.
18046 # The last name is the one that the linker finds with -lNAME.
18047 library_names_spec=$lt_library_names_spec
18049 # The coded name of the library, if different from the real name.
18050 soname_spec=$lt_soname_spec
18052 # Commands used to build and install an old-style archive.
18054 old_archive_cmds=$lt_old_archive_cmds
18055 old_postinstall_cmds=$lt_old_postinstall_cmds
18056 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18058 # Create an old-style archive from a shared archive.
18059 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18061 # Create a temporary old-style archive to link instead of a shared archive.
18062 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18064 # Commands used to build and install a shared archive.
18065 archive_cmds=$lt_archive_cmds
18066 archive_expsym_cmds=$lt_archive_expsym_cmds
18067 postinstall_cmds=$lt_postinstall_cmds
18068 postuninstall_cmds=$lt_postuninstall_cmds
18070 # Commands used to build a loadable module (assumed same as above if empty)
18071 module_cmds=$lt_module_cmds
18072 module_expsym_cmds=$lt_module_expsym_cmds
18074 # Commands to strip libraries.
18075 old_striplib=$lt_old_striplib
18076 striplib=$lt_striplib
18078 # Dependencies to place before the objects being linked to create a
18080 predep_objects=$lt_predep_objects
18082 # Dependencies to place after the objects being linked to create a
18084 postdep_objects=$lt_postdep_objects
18086 # Dependencies to place before the objects being linked to create a
18088 predeps=$lt_predeps
18090 # Dependencies to place after the objects being linked to create a
18092 postdeps=$lt_postdeps
18094 # The library search path used internally by the compiler when linking
18095 # a shared library.
18096 compiler_lib_search_path=$lt_compiler_lib_search_path
18098 # Method to check whether dependent libraries are shared objects.
18099 deplibs_check_method=$lt_deplibs_check_method
18101 # Command to use when deplibs_check_method == file_magic.
18102 file_magic_cmd=$lt_file_magic_cmd
18104 # Flag that allows shared libraries with undefined symbols to be built.
18105 allow_undefined_flag=$lt_allow_undefined_flag
18107 # Flag that forces no undefined symbols.
18108 no_undefined_flag=$lt_no_undefined_flag
18110 # Commands used to finish a libtool library installation in a directory.
18111 finish_cmds=$lt_finish_cmds
18113 # Same as above, but a single script fragment to be evaled but not shown.
18114 finish_eval=$lt_finish_eval
18116 # Take the output of nm and produce a listing of raw symbols and C names.
18117 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18119 # Transform the output of nm in a proper C declaration
18120 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18122 # Transform the output of nm in a C name address pair
18123 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18125 # This is the shared library runtime path variable.
18126 runpath_var=$runpath_var
18128 # This is the shared library path variable.
18129 shlibpath_var=$shlibpath_var
18131 # Is shlibpath searched before the hard-coded library search path?
18132 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18134 # How to hardcode a shared library path into an executable.
18135 hardcode_action=$hardcode_action
18137 # Whether we should hardcode library paths into libraries.
18138 hardcode_into_libs=$hardcode_into_libs
18140 # Flag to hardcode \$libdir into a binary during linking.
18141 # This must work even if \$libdir does not exist.
18142 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18144 # If ld is used when linking, flag to hardcode \$libdir into
18145 # a binary during linking. This must work even if \$libdir does
18147 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18149 # Whether we need a single -rpath flag with a separated argument.
18150 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18152 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18153 # resulting binary.
18154 hardcode_direct=$hardcode_direct
18156 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18157 # resulting binary.
18158 hardcode_minus_L=$hardcode_minus_L
18160 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18161 # the resulting binary.
18162 hardcode_shlibpath_var=$hardcode_shlibpath_var
18164 # Set to yes if building a shared library automatically hardcodes DIR into the library
18165 # and all subsequent libraries and executables linked against it.
18166 hardcode_automatic=$hardcode_automatic
18168 # Variables whose values should be saved in libtool wrapper scripts and
18169 # restored at relink time.
18170 variables_saved_for_relink="$variables_saved_for_relink"
18172 # Whether libtool must link a program against all its dependency libraries.
18173 link_all_deplibs=$link_all_deplibs
18175 # Compile-time system search path for libraries
18176 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18178 # Run-time system search path for libraries
18179 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18181 # Fix the shell variable \$srcfile for the compiler.
18182 fix_srcfile_path="$fix_srcfile_path"
18184 # Set to yes if exported symbols are required.
18185 always_export_symbols=$always_export_symbols
18187 # The commands to list exported symbols.
18188 export_symbols_cmds=$lt_export_symbols_cmds
18190 # The commands to extract the exported symbol list from a shared archive.
18191 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18193 # Symbols that should not be listed in the preloaded symbols.
18194 exclude_expsyms=$lt_exclude_expsyms
18196 # Symbols that must always be exported.
18197 include_expsyms=$lt_include_expsyms
18199 # ### END LIBTOOL CONFIG
18206 cat <<\EOF >> "$cfgfile"
18208 # AIX sometimes has problems with the GCC collect2 program. For some
18209 # reason, if we set the COLLECT_NAMES environment variable, the problems
18210 # vanish in a puff of smoke.
18211 if test "X${COLLECT_NAMES+set}" != Xset; then
18213 export COLLECT_NAMES
18219 # We use sed instead of cat because bash on DJGPP gets confused if
18220 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18221 # text mode, it properly converts lines to CR/LF. This bash problem
18222 # is reportedly fixed, but why not run on old versions too?
18223 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18225 mv -f "$cfgfile" "$ofile" || \
18226 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18230 # If there is no Makefile yet, we rely on a make rule to execute
18231 # `config.status --recheck' to rerun these tests and create the
18232 # libtool script then.
18233 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18234 if test -f "$ltmain_in"; then
18235 test -f Makefile && make "$ltmain"
18241 ac_cpp='$CPP $CPPFLAGS'
18242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18249 # Check whether --with-tags was given.
18250 if test "${with_tags+set}" = set; then
18251 withval=$with_tags; tagnames="$withval"
18255 if test -f "$ltmain" && test -n "$tagnames"; then
18256 if test ! -f "${ofile}"; then
18257 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18258 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18261 if test -z "$LTCC"; then
18262 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18263 if test -z "$LTCC"; then
18264 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18265 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18267 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18268 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18271 if test -z "$LTCFLAGS"; then
18272 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18275 # Extract list of available tagged configurations in $ofile.
18276 # Note that this assumes the entire list is on one line.
18277 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18279 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18280 for tagname in $tagnames; do
18282 # Check whether tagname contains only valid characters
18283 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18285 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18286 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18287 { (exit 1); exit 1; }; }
18291 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18293 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18294 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18295 { (exit 1); exit 1; }; }
18298 # Update the list of available tags.
18299 if test -n "$tagname"; then
18300 echo appending configuration tag \"$tagname\" to $ofile
18304 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18305 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18306 (test "X$CXX" != "Xg++"))) ; then
18308 ac_cpp='$CXXCPP $CPPFLAGS'
18309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18316 archive_cmds_need_lc_CXX=no
18317 allow_undefined_flag_CXX=
18318 always_export_symbols_CXX=no
18319 archive_expsym_cmds_CXX=
18320 export_dynamic_flag_spec_CXX=
18321 hardcode_direct_CXX=no
18322 hardcode_libdir_flag_spec_CXX=
18323 hardcode_libdir_flag_spec_ld_CXX=
18324 hardcode_libdir_separator_CXX=
18325 hardcode_minus_L_CXX=no
18326 hardcode_shlibpath_var_CXX=unsupported
18327 hardcode_automatic_CXX=no
18329 module_expsym_cmds_CXX=
18330 link_all_deplibs_CXX=unknown
18331 old_archive_cmds_CXX=$old_archive_cmds
18332 no_undefined_flag_CXX=
18333 whole_archive_flag_spec_CXX=
18334 enable_shared_with_static_runtimes_CXX=no
18336 # Dependencies to place before and after the object being linked:
18337 predep_objects_CXX=
18338 postdep_objects_CXX=
18341 compiler_lib_search_path_CXX=
18343 # Source file extension for C++ test sources.
18346 # Object file extension for compiled C++ test sources.
18350 # Code to be used in simple compile tests
18351 lt_simple_compile_test_code="int some_variable = 0;\n"
18353 # Code to be used in simple link tests
18354 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18356 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18358 # If no C compiler was specified, use CC.
18361 # If no C compiler flags were specified, use CFLAGS.
18362 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18364 # Allow CC to be a program name with arguments.
18368 # save warnings/boilerplate of simple test code
18369 ac_outfile=conftest.$ac_objext
18370 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18371 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18372 _lt_compiler_boilerplate=`cat conftest.err`
18375 ac_outfile=conftest.$ac_objext
18376 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18377 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18378 _lt_linker_boilerplate=`cat conftest.err`
18382 # Allow CC to be a program name with arguments.
18387 lt_save_with_gnu_ld=$with_gnu_ld
18388 lt_save_path_LD=$lt_cv_path_LD
18389 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18390 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18392 $as_unset lt_cv_prog_gnu_ld
18394 if test -n "${lt_cv_path_LDCXX+set}"; then
18395 lt_cv_path_LD=$lt_cv_path_LDCXX
18397 $as_unset lt_cv_path_LD
18399 test -z "${LDCXX+set}" || LD=$LDCXX
18403 for cc_temp in $compiler""; do
18405 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18406 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18411 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18414 # We don't want -fno-exception wen compiling C++ code, so set the
18415 # no_builtin_flag separately
18416 if test "$GXX" = yes; then
18417 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18419 lt_prog_compiler_no_builtin_flag_CXX=
18422 if test "$GXX" = yes; then
18423 # Set up default GNU C++ configuration
18426 # Check whether --with-gnu-ld was given.
18427 if test "${with_gnu_ld+set}" = set; then
18428 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18434 if test "$GCC" = yes; then
18435 # Check if gcc -print-prog-name=ld gives a path.
18436 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18437 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18440 # gcc leaves a trailing carriage return which upsets mingw
18441 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18443 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18446 # Accept absolute paths.
18448 re_direlt='/[^/][^/]*/\.\./'
18449 # Canonicalize the pathname of ld
18450 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18451 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18452 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18454 test -z "$LD" && LD="$ac_prog"
18457 # If it fails, then pretend we aren't using GCC.
18461 # If it is relative, then search for the first ld in PATH.
18462 with_gnu_ld=unknown
18465 elif test "$with_gnu_ld" = yes; then
18466 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18467 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18469 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18470 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18472 if test "${lt_cv_path_LD+set}" = set; then
18473 echo $ECHO_N "(cached) $ECHO_C" >&6
18475 if test -z "$LD"; then
18476 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18477 for ac_dir in $PATH; do
18479 test -z "$ac_dir" && ac_dir=.
18480 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18481 lt_cv_path_LD="$ac_dir/$ac_prog"
18482 # Check to see if the program is GNU ld. I'd rather use --version,
18483 # but apparently some variants of GNU ld only accept -v.
18484 # Break only if it was the GNU/non-GNU ld that we prefer.
18485 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18486 *GNU* | *'with BFD'*)
18487 test "$with_gnu_ld" != no && break
18490 test "$with_gnu_ld" != yes && break
18497 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18501 LD="$lt_cv_path_LD"
18502 if test -n "$LD"; then
18503 { echo "$as_me:$LINENO: result: $LD" >&5
18504 echo "${ECHO_T}$LD" >&6; }
18506 { echo "$as_me:$LINENO: result: no" >&5
18507 echo "${ECHO_T}no" >&6; }
18509 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18510 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18511 { (exit 1); exit 1; }; }
18512 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18513 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18514 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18515 echo $ECHO_N "(cached) $ECHO_C" >&6
18517 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18518 case `$LD -v 2>&1 </dev/null` in
18519 *GNU* | *'with BFD'*)
18520 lt_cv_prog_gnu_ld=yes
18523 lt_cv_prog_gnu_ld=no
18527 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18528 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18529 with_gnu_ld=$lt_cv_prog_gnu_ld
18533 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18534 # archiving commands below assume that GNU ld is being used.
18535 if test "$with_gnu_ld" = yes; then
18536 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18537 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'
18539 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18540 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18542 # If archive_cmds runs LD, not CC, wlarc should be empty
18543 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18544 # investigate it a little bit more. (MM)
18547 # ancient GNU ld didn't support --whole-archive et. al.
18548 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18549 grep 'no-whole-archive' > /dev/null; then
18550 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18552 whole_archive_flag_spec_CXX=
18558 # A generic and very simple default shared library creation
18559 # command for GNU C++ for the case where it uses the native
18560 # linker, instead of GNU ld. If possible, this setting should
18561 # overridden to take advantage of the native linker features on
18562 # the platform it is being used on.
18563 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18566 # Commands to make compiler produce verbose output that lists
18567 # what "hidden" libraries, object files and flags are used when
18568 # linking a shared library.
18569 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18577 # PORTME: fill in a description of your system's C++ link characteristics
18578 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18579 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18583 # FIXME: insert proper C++ library support
18587 if test "$host_cpu" = ia64; then
18588 # On IA64, the linker does run time linking by default, so we don't
18589 # have to do anything special.
18590 aix_use_runtimelinking=no
18591 exp_sym_flag='-Bexport'
18594 aix_use_runtimelinking=no
18596 # Test if we are trying to use run time linking or normal
18597 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18598 # need to do runtime linking.
18599 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18600 for ld_flag in $LDFLAGS; do
18603 aix_use_runtimelinking=yes
18611 exp_sym_flag='-bexport'
18612 no_entry_flag='-bnoentry'
18615 # When large executables or shared objects are built, AIX ld can
18616 # have problems creating the table of contents. If linking a library
18617 # or program results in "error TOC overflow" add -mminimal-toc to
18618 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18619 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18621 archive_cmds_CXX=''
18622 hardcode_direct_CXX=yes
18623 hardcode_libdir_separator_CXX=':'
18624 link_all_deplibs_CXX=yes
18626 if test "$GXX" = yes; then
18627 case $host_os in aix4.[012]|aix4.[012].*)
18628 # We only want to do this on AIX 4.2 and lower, the check
18629 # below for broken collect2 doesn't work under 4.3+
18630 collect2name=`${CC} -print-prog-name=collect2`
18631 if test -f "$collect2name" && \
18632 strings "$collect2name" | grep resolve_lib_name >/dev/null
18634 # We have reworked collect2
18635 hardcode_direct_CXX=yes
18637 # We have old collect2
18638 hardcode_direct_CXX=unsupported
18639 # It fails to find uninstalled libraries when the uninstalled
18640 # path is not listed in the libpath. Setting hardcode_minus_L
18641 # to unsupported forces relinking
18642 hardcode_minus_L_CXX=yes
18643 hardcode_libdir_flag_spec_CXX='-L$libdir'
18644 hardcode_libdir_separator_CXX=
18648 shared_flag='-shared'
18649 if test "$aix_use_runtimelinking" = yes; then
18650 shared_flag="$shared_flag "'${wl}-G'
18654 if test "$host_cpu" = ia64; then
18655 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18656 # chokes on -Wl,-G. The following line is correct:
18659 if test "$aix_use_runtimelinking" = yes; then
18660 shared_flag='${wl}-G'
18662 shared_flag='${wl}-bM:SRE'
18667 # It seems that -bexpall does not export symbols beginning with
18668 # underscore (_), so it is better to generate a list of symbols to export.
18669 always_export_symbols_CXX=yes
18670 if test "$aix_use_runtimelinking" = yes; then
18671 # Warning - without using the other runtime loading flags (-brtl),
18672 # -berok will link without error, but may produce a broken library.
18673 allow_undefined_flag_CXX='-berok'
18674 # Determine the default libpath from the value encoded in an empty executable.
18675 cat >conftest.$ac_ext <<_ACEOF
18678 cat confdefs.h >>conftest.$ac_ext
18679 cat >>conftest.$ac_ext <<_ACEOF
18680 /* end confdefs.h. */
18690 rm -f conftest.$ac_objext conftest$ac_exeext
18691 if { (ac_try="$ac_link"
18692 case "(($ac_try" in
18693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694 *) ac_try_echo=$ac_try;;
18696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18697 (eval "$ac_link") 2>conftest.er1
18699 grep -v '^ *+' conftest.er1 >conftest.err
18701 cat conftest.err >&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); } &&
18704 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18705 { (case "(($ac_try" in
18706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18707 *) ac_try_echo=$ac_try;;
18709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18710 (eval "$ac_try") 2>&5
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; } &&
18714 { ac_try='test -s conftest$ac_exeext'
18715 { (case "(($ac_try" in
18716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717 *) ac_try_echo=$ac_try;;
18719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720 (eval "$ac_try") 2>&5
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); }; }; then
18725 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18727 # Check for a 64-bit object if we didn't find anything.
18728 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; }
18731 echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18737 rm -f core conftest.err conftest.$ac_objext \
18738 conftest$ac_exeext conftest.$ac_ext
18739 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18741 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18743 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"
18745 if test "$host_cpu" = ia64; then
18746 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18747 allow_undefined_flag_CXX="-z nodefs"
18748 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"
18750 # Determine the default libpath from the value encoded in an empty executable.
18751 cat >conftest.$ac_ext <<_ACEOF
18754 cat confdefs.h >>conftest.$ac_ext
18755 cat >>conftest.$ac_ext <<_ACEOF
18756 /* end confdefs.h. */
18766 rm -f conftest.$ac_objext conftest$ac_exeext
18767 if { (ac_try="$ac_link"
18768 case "(($ac_try" in
18769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770 *) ac_try_echo=$ac_try;;
18772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18773 (eval "$ac_link") 2>conftest.er1
18775 grep -v '^ *+' conftest.er1 >conftest.err
18777 cat conftest.err >&5
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); } &&
18780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18781 { (case "(($ac_try" in
18782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18783 *) ac_try_echo=$ac_try;;
18785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18786 (eval "$ac_try") 2>&5
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); }; } &&
18790 { ac_try='test -s conftest$ac_exeext'
18791 { (case "(($ac_try" in
18792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18793 *) ac_try_echo=$ac_try;;
18795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18796 (eval "$ac_try") 2>&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; }; then
18801 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18803 # Check for a 64-bit object if we didn't find anything.
18804 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; }
18807 echo "$as_me: failed program was:" >&5
18808 sed 's/^/| /' conftest.$ac_ext >&5
18813 rm -f core conftest.err conftest.$ac_objext \
18814 conftest$ac_exeext conftest.$ac_ext
18815 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18817 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18818 # Warning - without using the other run time loading flags,
18819 # -berok will link without error, but may produce a broken library.
18820 no_undefined_flag_CXX=' ${wl}-bernotok'
18821 allow_undefined_flag_CXX=' ${wl}-berok'
18822 # Exported symbols can be pulled into shared objects from archives
18823 whole_archive_flag_spec_CXX='$convenience'
18824 archive_cmds_need_lc_CXX=yes
18825 # This is similar to how AIX traditionally builds its shared libraries.
18826 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'
18832 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18833 allow_undefined_flag_CXX=unsupported
18834 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18835 # support --undefined. This deserves some investigation. FIXME
18836 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18843 case $cc_basename in
18845 # FIXME: insert proper C++ library support
18851 cygwin* | mingw* | pw32*)
18852 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18853 # as there is no search path for DLLs.
18854 hardcode_libdir_flag_spec_CXX='-L$libdir'
18855 allow_undefined_flag_CXX=unsupported
18856 always_export_symbols_CXX=no
18857 enable_shared_with_static_runtimes_CXX=yes
18859 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18860 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'
18861 # If the export-symbols file already is a .def file (1st line
18862 # is EXPORTS), use it as is; otherwise, prepend...
18863 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18864 cp $export_symbols $output_objdir/$soname.def;
18866 echo EXPORTS > $output_objdir/$soname.def;
18867 cat $export_symbols >> $output_objdir/$soname.def;
18869 $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'
18874 darwin* | rhapsody*)
18876 rhapsody* | darwin1.[012])
18877 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18880 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18881 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18883 case ${MACOSX_DEPLOYMENT_TARGET} in
18885 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18888 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18894 archive_cmds_need_lc_CXX=no
18895 hardcode_direct_CXX=no
18896 hardcode_automatic_CXX=yes
18897 hardcode_shlibpath_var_CXX=unsupported
18898 whole_archive_flag_spec_CXX=''
18899 link_all_deplibs_CXX=yes
18901 if test "$GXX" = yes ; then
18902 lt_int_apple_cc_single_mod=no
18903 output_verbose_link_cmd='echo'
18904 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18905 lt_int_apple_cc_single_mod=yes
18907 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18908 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18910 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'
18912 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18913 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18914 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18915 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}'
18917 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}'
18919 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}'
18921 case $cc_basename in
18923 output_verbose_link_cmd='echo'
18924 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'
18925 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18926 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18927 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}'
18928 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}'
18938 case $cc_basename in
18940 # FIXME: insert proper C++ library support
18944 # Green Hills C++ Compiler
18945 # FIXME: insert proper C++ library support
18949 # FIXME: insert proper C++ library support
18955 # C++ shared libraries reported to be fairly broken before switch to ELF
18959 archive_cmds_need_lc_CXX=no
18961 freebsd* | kfreebsd*-gnu | dragonfly*)
18962 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18969 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18970 hardcode_libdir_separator_CXX=:
18971 export_dynamic_flag_spec_CXX='${wl}-E'
18972 hardcode_direct_CXX=yes
18973 hardcode_minus_L_CXX=yes # Not in the search PATH,
18974 # but as the default
18975 # location of the library.
18977 case $cc_basename in
18979 # FIXME: insert proper C++ library support
18983 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'
18984 # Commands to make compiler produce verbose output that lists
18985 # what "hidden" libraries, object files and flags are used when
18986 # linking a shared library.
18988 # There doesn't appear to be a way to prevent this compiler from
18989 # explicitly linking system object files so we need to strip them
18990 # from the output so that they don't get included in the library
18992 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'
18995 if test "$GXX" = yes; then
18996 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'
18998 # FIXME: insert proper C++ library support
19005 if test $with_gnu_ld = no; then
19006 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19007 hardcode_libdir_separator_CXX=:
19011 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19014 export_dynamic_flag_spec_CXX='${wl}-E'
19020 hardcode_direct_CXX=no
19021 hardcode_shlibpath_var_CXX=no
19024 hardcode_direct_CXX=yes
19025 hardcode_minus_L_CXX=yes # Not in the search PATH,
19026 # but as the default
19027 # location of the library.
19031 case $cc_basename in
19033 # FIXME: insert proper C++ library support
19039 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19042 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19045 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19048 # Commands to make compiler produce verbose output that lists
19049 # what "hidden" libraries, object files and flags are used when
19050 # linking a shared library.
19052 # There doesn't appear to be a way to prevent this compiler from
19053 # explicitly linking system object files so we need to strip them
19054 # from the output so that they don't get included in the library
19056 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'
19059 if test "$GXX" = yes; then
19060 if test $with_gnu_ld = no; then
19063 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19066 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19069 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'
19074 # FIXME: insert proper C++ library support
19081 hardcode_direct_CXX=no
19082 hardcode_shlibpath_var_CXX=no
19083 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19084 export_dynamic_flag_spec_CXX='${wl}-E'
19085 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19086 # Instead, shared libraries are loaded at an image base (0x10000000 by
19087 # default) and relocated if they conflict, which is a slow very memory
19088 # consuming and fragmenting process. To avoid this, we pick a random,
19089 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19090 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19091 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'
19092 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'
19095 case $cc_basename in
19098 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'
19100 # Archives containing C++ object files must be created using
19101 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19102 # necessary to make sure instantiated templates are included
19104 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19107 if test "$GXX" = yes; then
19108 if test "$with_gnu_ld" = no; then
19109 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'
19111 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'
19114 link_all_deplibs_CXX=yes
19117 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19118 hardcode_libdir_separator_CXX=:
19121 case $cc_basename in
19123 # Kuck and Associates, Inc. (KAI) C++ Compiler
19125 # KCC will only create a shared library if the output file
19126 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19127 # to its proper name (with version) after linking.
19128 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'
19129 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'
19130 # Commands to make compiler produce verbose output that lists
19131 # what "hidden" libraries, object files and flags are used when
19132 # linking a shared library.
19134 # There doesn't appear to be a way to prevent this compiler from
19135 # explicitly linking system object files so we need to strip them
19136 # from the output so that they don't get included in the library
19138 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'
19140 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19141 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19143 # Archives containing C++ object files must be created using
19144 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19145 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19150 # version 8.0 and above of icpc choke on multiply defined symbols
19151 # if we add $predep_objects and $postdep_objects, however 7.1 and
19152 # earlier do not add the objects themselves.
19153 case `$CC -V 2>&1` in
19155 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19156 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'
19158 *) # Version 8.0 or newer
19161 ia64*) tmp_idyn=' -i_dynamic';;
19163 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19164 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'
19167 archive_cmds_need_lc_CXX=no
19168 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19169 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19170 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19173 # Portland Group C++ compiler
19174 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19175 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'
19177 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19178 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19179 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'
19183 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19184 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'
19186 runpath_var=LD_RUN_PATH
19187 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19188 hardcode_libdir_separator_CXX=:
19190 # Commands to make compiler produce verbose output that lists
19191 # what "hidden" libraries, object files and flags are used when
19192 # linking a shared library.
19194 # There doesn't appear to be a way to prevent this compiler from
19195 # explicitly linking system object files so we need to strip them
19196 # from the output so that they don't get included in the library
19198 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'
19203 # FIXME: insert proper C++ library support
19207 # FIXME: insert proper C++ library support
19211 case $cc_basename in
19213 # FIXME: insert proper C++ library support
19217 # FIXME: insert proper C++ library support
19223 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19224 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19226 hardcode_libdir_flag_spec_CXX='-R$libdir'
19227 hardcode_direct_CXX=yes
19228 hardcode_shlibpath_var_CXX=no
19230 # Workaround some broken pre-1.5 toolchains
19231 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19234 # C++ shared libraries are fairly broken
19238 hardcode_direct_CXX=yes
19239 hardcode_shlibpath_var_CXX=no
19240 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19241 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19242 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19243 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19244 export_dynamic_flag_spec_CXX='${wl}-E'
19245 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19247 output_verbose_link_cmd='echo'
19250 case $cc_basename in
19252 # Kuck and Associates, Inc. (KAI) C++ Compiler
19254 # KCC will only create a shared library if the output file
19255 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19256 # to its proper name (with version) after linking.
19257 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'
19259 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19260 hardcode_libdir_separator_CXX=:
19262 # Archives containing C++ object files must be created using
19263 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19264 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19268 # Rational C++ 2.4.1
19269 # FIXME: insert proper C++ library support
19273 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19274 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'
19276 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19277 hardcode_libdir_separator_CXX=:
19279 # Commands to make compiler produce verbose output that lists
19280 # what "hidden" libraries, object files and flags are used when
19281 # linking a shared library.
19283 # There doesn't appear to be a way to prevent this compiler from
19284 # explicitly linking system object files so we need to strip them
19285 # from the output so that they don't get included in the library
19287 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'
19290 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19291 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19292 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'
19294 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19295 hardcode_libdir_separator_CXX=:
19297 # Commands to make compiler produce verbose output that lists
19298 # what "hidden" libraries, object files and flags are used when
19299 # linking a shared library.
19300 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19303 # FIXME: insert proper C++ library support
19310 case $cc_basename in
19312 # Kuck and Associates, Inc. (KAI) C++ Compiler
19314 # KCC will only create a shared library if the output file
19315 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19316 # to its proper name (with version) after linking.
19317 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'
19319 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19320 hardcode_libdir_separator_CXX=:
19322 # Archives containing C++ object files must be created using
19323 # the KAI C++ compiler.
19324 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19327 # Rational C++ 2.4.1
19328 # FIXME: insert proper C++ library support
19332 allow_undefined_flag_CXX=' -expect_unresolved \*'
19333 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'
19334 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19335 echo "-hidden">> $lib.exp~
19336 $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~
19339 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19340 hardcode_libdir_separator_CXX=:
19342 # Commands to make compiler produce verbose output that lists
19343 # what "hidden" libraries, object files and flags are used when
19344 # linking a shared library.
19346 # There doesn't appear to be a way to prevent this compiler from
19347 # explicitly linking system object files so we need to strip them
19348 # from the output so that they don't get included in the library
19350 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'
19353 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19354 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19355 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'
19357 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19358 hardcode_libdir_separator_CXX=:
19360 # Commands to make compiler produce verbose output that lists
19361 # what "hidden" libraries, object files and flags are used when
19362 # linking a shared library.
19363 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19366 # FIXME: insert proper C++ library support
19373 # FIXME: insert proper C++ library support
19377 case $cc_basename in
19380 # FIXME: insert proper C++ library support
19385 # FIXME: insert proper C++ library support
19389 # FIXME: insert proper C++ library support
19395 case $cc_basename in
19397 # Sun C++ 4.2, 5.x and Centerline C++
19398 archive_cmds_need_lc_CXX=yes
19399 no_undefined_flag_CXX=' -zdefs'
19400 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19401 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19402 $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'
19404 hardcode_libdir_flag_spec_CXX='-R$libdir'
19405 hardcode_shlibpath_var_CXX=no
19407 solaris2.[0-5] | solaris2.[0-5].*) ;;
19409 # The C++ compiler is used as linker so we must use $wl
19410 # flag to pass the commands to the underlying system
19411 # linker. We must also pass each convience library through
19412 # to the system linker between allextract/defaultextract.
19413 # The C++ compiler will combine linker options so we
19414 # cannot just pass the convience library names through
19416 # Supported since Solaris 2.6 (maybe 2.5.1?)
19417 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'
19420 link_all_deplibs_CXX=yes
19422 output_verbose_link_cmd='echo'
19424 # Archives containing C++ object files must be created using
19425 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19426 # necessary to make sure instantiated templates are included
19428 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19431 # Green Hills C++ Compiler
19432 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19434 # The C++ compiler must be used to create the archive.
19435 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19438 # GNU C++ compiler with Solaris linker
19439 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19440 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19441 if $CC --version | grep -v '^2\.7' > /dev/null; then
19442 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19443 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19444 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19446 # Commands to make compiler produce verbose output that lists
19447 # what "hidden" libraries, object files and flags are used when
19448 # linking a shared library.
19449 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19451 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19453 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19454 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19455 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19457 # Commands to make compiler produce verbose output that lists
19458 # what "hidden" libraries, object files and flags are used when
19459 # linking a shared library.
19460 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19463 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19468 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19469 no_undefined_flag_CXX='${wl}-z,text'
19470 archive_cmds_need_lc_CXX=no
19471 hardcode_shlibpath_var_CXX=no
19472 runpath_var='LD_RUN_PATH'
19474 case $cc_basename in
19476 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19477 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19480 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19481 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19485 sysv5* | sco3.2v5* | sco5v6*)
19486 # Note: We can NOT use -z defs as we might desire, because we do not
19487 # link with -lc, and that would cause any symbols used from libc to
19488 # always be unresolved, which means just about no library would
19489 # ever link correctly. If we're not using GNU ld we use -z text
19490 # though, which does catch some bad symbols but isn't as heavy-handed
19492 # For security reasons, it is highly recommended that you always
19493 # use absolute paths for naming shared libraries, and exclude the
19494 # DT_RUNPATH tag from executables and libraries. But doing so
19495 # requires that you compile everything twice, which is a pain.
19496 # So that behaviour is only enabled if SCOABSPATH is set to a
19497 # non-empty value in the environment. Most likely only useful for
19498 # creating official distributions of packages.
19499 # This is a hack until libtool officially supports absolute path
19500 # names for shared libraries.
19501 no_undefined_flag_CXX='${wl}-z,text'
19502 allow_undefined_flag_CXX='${wl}-z,nodefs'
19503 archive_cmds_need_lc_CXX=no
19504 hardcode_shlibpath_var_CXX=no
19505 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19506 hardcode_libdir_separator_CXX=':'
19507 link_all_deplibs_CXX=yes
19508 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19509 runpath_var='LD_RUN_PATH'
19511 case $cc_basename in
19513 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19514 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19517 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19518 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19523 case $cc_basename in
19525 # NonStop-UX NCC 3.20
19526 # FIXME: insert proper C++ library support
19530 # FIXME: insert proper C++ library support
19536 # FIXME: insert proper C++ library support
19540 # FIXME: insert proper C++ library support
19544 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19545 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19546 test "$ld_shlibs_CXX" = no && can_build_shared=no
19552 cat > conftest.$ac_ext <<EOF
19556 Foo (void) { a = 0; }
19562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19563 (eval $ac_compile) 2>&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); }; then
19567 # Parse the compiler output and extract the necessary
19568 # objects, libraries and library flags.
19570 # Sentinel used to keep track of whether or not we are before
19571 # the conftest object file.
19572 pre_test_object_deps_done=no
19574 # The `*' in the case matches for architectures that use `case' in
19575 # $output_verbose_cmd can trigger glob expansion during the loop
19576 # eval without this substitution.
19577 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19579 for p in `eval $output_verbose_link_cmd`; do
19583 # Some compilers place space between "-{L,R}" and the path.
19584 # Remove the space.
19585 if test $p = "-L" \
19586 || test $p = "-R"; then
19593 if test "$pre_test_object_deps_done" = no; then
19596 # Internal compiler library paths should come after those
19597 # provided the user. The postdeps already come after the
19598 # user supplied libs so there is no need to process them.
19599 if test -z "$compiler_lib_search_path_CXX"; then
19600 compiler_lib_search_path_CXX="${prev}${p}"
19602 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19605 # The "-l" case would never come before the object being
19606 # linked, so don't bother handling this case.
19609 if test -z "$postdeps_CXX"; then
19610 postdeps_CXX="${prev}${p}"
19612 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19618 # This assumes that the test object file only shows up
19619 # once in the compiler output.
19620 if test "$p" = "conftest.$objext"; then
19621 pre_test_object_deps_done=yes
19625 if test "$pre_test_object_deps_done" = no; then
19626 if test -z "$predep_objects_CXX"; then
19627 predep_objects_CXX="$p"
19629 predep_objects_CXX="$predep_objects_CXX $p"
19632 if test -z "$postdep_objects_CXX"; then
19633 postdep_objects_CXX="$p"
19635 postdep_objects_CXX="$postdep_objects_CXX $p"
19640 *) ;; # Ignore the rest.
19648 echo "libtool.m4: error: problem compiling CXX test program"
19651 $rm -f confest.$objext
19653 # PORTME: override above test on systems where it is broken
19656 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19657 # hack all around it, let's just trust "g++" to DTRT.
19658 predep_objects_CXX=
19659 postdep_objects_CXX=
19664 case $cc_basename in
19666 # Adding this requires a known-good setup of shared libraries for
19667 # Sun compiler versions before 5.6, else PIC objects from an old
19668 # archive will be linked into the output, leading to subtle bugs.
19669 postdeps_CXX='-lCstd -lCrun'
19676 case " $postdeps_CXX " in
19677 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19680 lt_prog_compiler_wl_CXX=
19681 lt_prog_compiler_pic_CXX=
19682 lt_prog_compiler_static_CXX=
19684 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19685 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19687 # C++ specific cases for pic, static, wl, etc.
19688 if test "$GXX" = yes; then
19689 lt_prog_compiler_wl_CXX='-Wl,'
19690 lt_prog_compiler_static_CXX='-static'
19694 # All AIX code is PIC.
19695 if test "$host_cpu" = ia64; then
19696 # AIX 5 now supports IA64 processor
19697 lt_prog_compiler_static_CXX='-Bstatic'
19701 # FIXME: we need at least 68020 code to build shared libraries, but
19702 # adding the `-m68020' flag to GCC prevents building anything better,
19704 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19706 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19707 # PIC is the default for these OSes.
19709 mingw* | os2* | pw32*)
19710 # This hack is so that the source file can tell whether it is being
19711 # built for inclusion in a dll (and should export symbols for example).
19712 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19714 darwin* | rhapsody*)
19715 # PIC is the default on this platform
19716 # Common symbols not allowed in MH_DYLIB files
19717 lt_prog_compiler_pic_CXX='-fno-common'
19720 # DJGPP does not support shared libraries at all
19721 lt_prog_compiler_pic_CXX=
19724 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19725 # Instead, we relocate shared libraries at runtime.
19728 if test -d /usr/nec; then
19729 lt_prog_compiler_pic_CXX=-Kconform_pic
19733 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19734 # not for PA HP-UX.
19739 lt_prog_compiler_pic_CXX='-fPIC'
19744 lt_prog_compiler_pic_CXX='-fPIC'
19750 # All AIX code is PIC.
19751 if test "$host_cpu" = ia64; then
19752 # AIX 5 now supports IA64 processor
19753 lt_prog_compiler_static_CXX='-Bstatic'
19755 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19759 case $cc_basename in
19761 # Green Hills C++ Compiler
19762 # _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"
19767 # PIC is the default on this platform
19768 # Common symbols not allowed in MH_DYLIB files
19769 case $cc_basename in
19771 lt_prog_compiler_pic_CXX='-qnocommon'
19772 lt_prog_compiler_wl_CXX='-Wl,'
19777 case $cc_basename in
19779 lt_prog_compiler_pic_CXX='-KPIC'
19782 # Green Hills C++ Compiler
19783 lt_prog_compiler_pic_CXX='-pic'
19789 freebsd* | kfreebsd*-gnu | dragonfly*)
19790 # FreeBSD uses GNU C++
19792 hpux9* | hpux10* | hpux11*)
19793 case $cc_basename in
19795 lt_prog_compiler_wl_CXX='-Wl,'
19796 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19797 if test "$host_cpu" != ia64; then
19798 lt_prog_compiler_pic_CXX='+Z'
19802 lt_prog_compiler_wl_CXX='-Wl,'
19803 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19809 lt_prog_compiler_pic_CXX='+Z'
19818 # This is c89, which is MS Visual C++ (no shared libs)
19819 # Anyone wants to do a port?
19821 irix5* | irix6* | nonstopux*)
19822 case $cc_basename in
19824 lt_prog_compiler_wl_CXX='-Wl,'
19825 lt_prog_compiler_static_CXX='-non_shared'
19826 # CC pic flag -KPIC is the default.
19833 case $cc_basename in
19836 lt_prog_compiler_wl_CXX='--backend -Wl,'
19837 lt_prog_compiler_pic_CXX='-fPIC'
19841 lt_prog_compiler_wl_CXX='-Wl,'
19842 lt_prog_compiler_pic_CXX='-KPIC'
19843 lt_prog_compiler_static_CXX='-static'
19846 # Portland Group C++ compiler.
19847 lt_prog_compiler_wl_CXX='-Wl,'
19848 lt_prog_compiler_pic_CXX='-fpic'
19849 lt_prog_compiler_static_CXX='-Bstatic'
19853 # Make sure the PIC flag is empty. It appears that all Alpha
19854 # Linux and Compaq Tru64 Unix objects are PIC.
19855 lt_prog_compiler_pic_CXX=
19856 lt_prog_compiler_static_CXX='-non_shared'
19867 case $cc_basename in
19869 lt_prog_compiler_pic_CXX='-W c,exportall'
19877 osf3* | osf4* | osf5*)
19878 case $cc_basename in
19880 lt_prog_compiler_wl_CXX='--backend -Wl,'
19883 # Rational C++ 2.4.1
19884 lt_prog_compiler_pic_CXX='-pic'
19887 # Digital/Compaq C++
19888 lt_prog_compiler_wl_CXX='-Wl,'
19889 # Make sure the PIC flag is empty. It appears that all Alpha
19890 # Linux and Compaq Tru64 Unix objects are PIC.
19891 lt_prog_compiler_pic_CXX=
19892 lt_prog_compiler_static_CXX='-non_shared'
19901 case $cc_basename in
19903 # Sun C++ 4.2, 5.x and Centerline C++
19904 lt_prog_compiler_pic_CXX='-KPIC'
19905 lt_prog_compiler_static_CXX='-Bstatic'
19906 lt_prog_compiler_wl_CXX='-Qoption ld '
19909 # Green Hills C++ Compiler
19910 lt_prog_compiler_pic_CXX='-PIC'
19917 case $cc_basename in
19920 lt_prog_compiler_pic_CXX='-pic'
19921 lt_prog_compiler_static_CXX='-Bstatic'
19925 lt_prog_compiler_pic_CXX='-pic'
19932 case $cc_basename in
19934 # NonStop-UX NCC 3.20
19935 lt_prog_compiler_pic_CXX='-KPIC'
19941 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19942 case $cc_basename in
19944 lt_prog_compiler_wl_CXX='-Wl,'
19945 lt_prog_compiler_pic_CXX='-KPIC'
19946 lt_prog_compiler_static_CXX='-Bstatic'
19953 lt_prog_compiler_can_build_shared_CXX=no
19958 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19959 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19962 # Check to make sure the PIC flag actually works.
19964 if test -n "$lt_prog_compiler_pic_CXX"; then
19966 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19967 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19968 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19969 echo $ECHO_N "(cached) $ECHO_C" >&6
19971 lt_prog_compiler_pic_works_CXX=no
19972 ac_outfile=conftest.$ac_objext
19973 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19974 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19975 # Insert the option either (1) after the last *FLAGS variable, or
19976 # (2) before a word containing "conftest.", or (3) at the end.
19977 # Note that $ac_compile itself does not contain backslashes and begins
19978 # with a dollar sign (not a hyphen), so the echo should work correctly.
19979 # The option is referenced via a variable to avoid confusing sed.
19980 lt_compile=`echo "$ac_compile" | $SED \
19981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19983 -e 's:$: $lt_compiler_flag:'`
19984 (eval echo "\"\$as_me:19984: $lt_compile\"" >&5)
19985 (eval "$lt_compile" 2>conftest.err)
19987 cat conftest.err >&5
19988 echo "$as_me:19988: \$? = $ac_status" >&5
19989 if (exit $ac_status) && test -s "$ac_outfile"; then
19990 # The compiler can only warn and ignore the option if not recognized
19991 # So say no if there are warnings other than the usual output.
19992 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19994 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19995 lt_prog_compiler_pic_works_CXX=yes
20001 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20002 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20004 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20005 case $lt_prog_compiler_pic_CXX in
20007 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20010 lt_prog_compiler_pic_CXX=
20011 lt_prog_compiler_can_build_shared_CXX=no
20016 # For platforms which do not support PIC, -DPIC is meaningless:
20018 lt_prog_compiler_pic_CXX=
20021 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20026 # Check to make sure the static flag actually works.
20028 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20029 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20030 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20031 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20032 echo $ECHO_N "(cached) $ECHO_C" >&6
20034 lt_prog_compiler_static_works_CXX=no
20035 save_LDFLAGS="$LDFLAGS"
20036 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20037 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20038 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20039 # The linker can only warn and ignore the option if not recognized
20040 # So say no if there are warnings
20041 if test -s conftest.err; then
20042 # Append any errors to the config.log.
20043 cat conftest.err 1>&5
20044 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20045 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20046 if diff conftest.exp conftest.er2 >/dev/null; then
20047 lt_prog_compiler_static_works_CXX=yes
20050 lt_prog_compiler_static_works_CXX=yes
20054 LDFLAGS="$save_LDFLAGS"
20057 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20058 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20060 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20063 lt_prog_compiler_static_CXX=
20067 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20068 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20069 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20070 echo $ECHO_N "(cached) $ECHO_C" >&6
20072 lt_cv_prog_compiler_c_o_CXX=no
20073 $rm -r conftest 2>/dev/null
20077 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20079 lt_compiler_flag="-o out/conftest2.$ac_objext"
20080 # Insert the option either (1) after the last *FLAGS variable, or
20081 # (2) before a word containing "conftest.", or (3) at the end.
20082 # Note that $ac_compile itself does not contain backslashes and begins
20083 # with a dollar sign (not a hyphen), so the echo should work correctly.
20084 lt_compile=`echo "$ac_compile" | $SED \
20085 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20087 -e 's:$: $lt_compiler_flag:'`
20088 (eval echo "\"\$as_me:20088: $lt_compile\"" >&5)
20089 (eval "$lt_compile" 2>out/conftest.err)
20091 cat out/conftest.err >&5
20092 echo "$as_me:20092: \$? = $ac_status" >&5
20093 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20095 # The compiler can only warn and ignore the option if not recognized
20096 # So say no if there are warnings
20097 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20098 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20099 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20100 lt_cv_prog_compiler_c_o_CXX=yes
20105 # SGI C++ compiler will create directory out/ii_files/ for
20106 # template instantiation
20107 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20108 $rm out/* && rmdir out
20114 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20115 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20118 hard_links="nottested"
20119 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20120 # do not overwrite the value of need_locks provided by the user
20121 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20122 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20125 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20127 ln conftest.a conftest.b 2>&5 || hard_links=no
20128 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20129 { echo "$as_me:$LINENO: result: $hard_links" >&5
20130 echo "${ECHO_T}$hard_links" >&6; }
20131 if test "$hard_links" = no; then
20132 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20133 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20140 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20141 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20143 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20146 # If we're using GNU nm, then we don't want the "-C" option.
20147 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20148 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20149 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'
20151 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'
20155 export_symbols_cmds_CXX="$ltdll_cmds"
20158 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'
20161 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20165 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20166 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20167 test "$ld_shlibs_CXX" = no && can_build_shared=no
20170 # Do we need to explicitly link libc?
20172 case "x$archive_cmds_need_lc_CXX" in
20174 # Assume -lc should be added
20175 archive_cmds_need_lc_CXX=yes
20177 if test "$enable_shared" = yes && test "$GCC" = yes; then
20178 case $archive_cmds_CXX in
20180 # FIXME: we may have to deal with multi-command sequences.
20183 # Test whether the compiler implicitly links with -lc since on some
20184 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20185 # to ld, don't add -lc before -lgcc.
20186 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20187 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20189 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20192 (eval $ac_compile) 2>&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } 2>conftest.err; then
20198 libobjs=conftest.$ac_objext
20200 wl=$lt_prog_compiler_wl_CXX
20201 pic_flag=$lt_prog_compiler_pic_CXX
20207 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20208 allow_undefined_flag_CXX=
20209 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20210 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); }
20215 archive_cmds_need_lc_CXX=no
20217 archive_cmds_need_lc_CXX=yes
20219 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20221 cat conftest.err 1>&5
20224 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20225 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20232 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20233 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20234 library_names_spec=
20235 libname_spec='lib$name'
20239 postuninstall_cmds=
20243 shlibpath_overrides_runpath=unknown
20245 dynamic_linker="$host_os ld.so"
20246 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20247 if test "$GCC" = yes; then
20248 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20249 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20250 # if the path contains ";" then we assume it to be the separator
20251 # otherwise default to the standard path separator (i.e. ":") - it is
20252 # assumed that no part of a normal pathname contains ";" but that should
20253 # okay in the real world where ";" in dirpaths is itself problematic.
20254 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20256 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20259 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20261 need_lib_prefix=unknown
20262 hardcode_into_libs=no
20264 # when you set need_version to no, make sure it does not cause -set_version
20265 # flags to be left without arguments
20266 need_version=unknown
20271 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20272 shlibpath_var=LIBPATH
20274 # AIX 3 has no versioning support, so we append a major version to the name.
20275 soname_spec='${libname}${release}${shared_ext}$major'
20282 hardcode_into_libs=yes
20283 if test "$host_cpu" = ia64; then
20284 # AIX 5 supports IA64
20285 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20286 shlibpath_var=LD_LIBRARY_PATH
20288 # With GCC up to 2.95.x, collect2 would create an import file
20289 # for dependence libraries. The import file would start with
20290 # the line `#! .'. This would cause the generated library to
20291 # depend on `.', always an invalid library. This was fixed in
20292 # development snapshots of GCC prior to 3.0.
20294 aix4 | aix4.[01] | aix4.[01].*)
20295 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20297 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20300 can_build_shared=no
20304 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20305 # soname into executable. Probably we can add versioning support to
20306 # collect2, so additional links can be useful in future.
20307 if test "$aix_use_runtimelinking" = yes; then
20308 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20309 # instead of lib<name>.a to let people know that these are not
20310 # typical AIX shared libraries.
20311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20313 # We preserve .a as extension for shared libraries through AIX4.2
20314 # and later when we are not doing run time linking.
20315 library_names_spec='${libname}${release}.a $libname.a'
20316 soname_spec='${libname}${release}${shared_ext}$major'
20318 shlibpath_var=LIBPATH
20323 library_names_spec='$libname.ixlibrary $libname.a'
20324 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20325 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'
20329 library_names_spec='${libname}${shared_ext}'
20330 dynamic_linker="$host_os ld.so"
20331 shlibpath_var=LIBRARY_PATH
20337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20338 soname_spec='${libname}${release}${shared_ext}$major'
20339 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20340 shlibpath_var=LD_LIBRARY_PATH
20341 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20342 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20343 # the default ld.so.conf also contains /usr/contrib/lib and
20344 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20345 # libtool to hard-code these into programs
20348 cygwin* | mingw* | pw32*)
20349 version_type=windows
20354 case $GCC,$host_os in
20355 yes,cygwin* | yes,mingw* | yes,pw32*)
20356 library_names_spec='$libname.dll.a'
20357 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20358 postinstall_cmds='base_file=`basename \${file}`~
20359 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20360 dldir=$destdir/`dirname \$dlpath`~
20361 test -d \$dldir || mkdir -p \$dldir~
20362 $install_prog $dir/$dlname \$dldir/$dlname~
20363 chmod a+x \$dldir/$dlname'
20364 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20365 dlpath=$dir/\$dldll~
20367 shlibpath_overrides_runpath=yes
20371 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20372 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20373 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20376 # MinGW DLLs use traditional 'lib' prefix
20377 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20378 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20379 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20380 # It is most probably a Windows format PATH printed by
20381 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20382 # path with ; separators, and with drive letters. We can handle the
20383 # drive letters (cygwin fileutils understands them), so leave them,
20384 # especially as we might pass files found there to a mingw objdump,
20385 # which wouldn't understand a cygwinified path. Ahh.
20386 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20388 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20392 # pw32 DLLs use 'pw' prefix rather than 'lib'
20393 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20399 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20402 dynamic_linker='Win32 ld.exe'
20403 # FIXME: first we should search . and the directory the executable is in
20407 darwin* | rhapsody*)
20408 dynamic_linker="$host_os dyld"
20409 version_type=darwin
20412 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20413 soname_spec='${libname}${release}${major}$shared_ext'
20414 shlibpath_overrides_runpath=yes
20415 shlibpath_var=DYLD_LIBRARY_PATH
20416 shrext_cmds='.dylib'
20417 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20418 if test "$GCC" = yes; then
20419 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"`
20421 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20423 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20431 soname_spec='${libname}${release}${shared_ext}$major'
20432 shlibpath_var=LD_LIBRARY_PATH
20443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20444 soname_spec='${libname}${release}${shared_ext}$major'
20445 shlibpath_var=LD_LIBRARY_PATH
20446 shlibpath_overrides_runpath=no
20447 hardcode_into_libs=yes
20448 dynamic_linker='GNU ld.so'
20451 freebsd* | dragonfly*)
20452 # DragonFly does not have aout. When/if they implement a new
20453 # versioning mechanism, adjust this.
20454 if test -x /usr/bin/objformat; then
20455 objformat=`/usr/bin/objformat`
20458 freebsd[123]*) objformat=aout ;;
20459 *) objformat=elf ;;
20462 version_type=freebsd-$objformat
20463 case $version_type in
20465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20470 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20474 shlibpath_var=LD_LIBRARY_PATH
20477 shlibpath_overrides_runpath=yes
20479 freebsd3.[01]* | freebsdelf3.[01]*)
20480 shlibpath_overrides_runpath=yes
20481 hardcode_into_libs=yes
20483 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20484 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20485 shlibpath_overrides_runpath=no
20486 hardcode_into_libs=yes
20488 freebsd*) # from 4.6 on
20489 shlibpath_overrides_runpath=yes
20490 hardcode_into_libs=yes
20499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20500 soname_spec='${libname}${release}${shared_ext}$major'
20501 shlibpath_var=LD_LIBRARY_PATH
20502 hardcode_into_libs=yes
20505 hpux9* | hpux10* | hpux11*)
20506 # Give a soname corresponding to the major version so that dld.sl refuses to
20507 # link against other versions.
20514 hardcode_into_libs=yes
20515 dynamic_linker="$host_os dld.so"
20516 shlibpath_var=LD_LIBRARY_PATH
20517 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20519 soname_spec='${libname}${release}${shared_ext}$major'
20520 if test "X$HPUX_IA64_MODE" = X32; then
20521 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20523 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20529 hardcode_into_libs=yes
20530 dynamic_linker="$host_os dld.sl"
20531 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20532 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20534 soname_spec='${libname}${release}${shared_ext}$major'
20535 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20536 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20540 dynamic_linker="$host_os dld.sl"
20541 shlibpath_var=SHLIB_PATH
20542 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20544 soname_spec='${libname}${release}${shared_ext}$major'
20547 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20548 postinstall_cmds='chmod 555 $lib'
20555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20556 soname_spec='${libname}${release}${shared_ext}$major'
20557 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20558 shlibpath_var=LD_LIBRARY_PATH
20559 shlibpath_overrides_runpath=no
20560 hardcode_into_libs=yes
20563 irix5* | irix6* | nonstopux*)
20565 nonstopux*) version_type=nonstopux ;;
20567 if test "$lt_cv_prog_gnu_ld" = yes; then
20575 soname_spec='${libname}${release}${shared_ext}$major'
20576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20578 irix5* | nonstopux*)
20579 libsuff= shlibsuff=
20582 case $LD in # libtool.m4 will add one of these switches to LD
20583 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20584 libsuff= shlibsuff= libmagic=32-bit;;
20585 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20586 libsuff=32 shlibsuff=N32 libmagic=N32;;
20587 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20588 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20589 *) libsuff= shlibsuff= libmagic=never-match;;
20593 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20594 shlibpath_overrides_runpath=no
20595 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20596 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20597 hardcode_into_libs=yes
20600 # No shared lib support for Linux oldld, aout, or coff.
20601 linux*oldld* | linux*aout* | linux*coff*)
20605 # This must be Linux ELF.
20610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20611 soname_spec='${libname}${release}${shared_ext}$major'
20612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20613 shlibpath_var=LD_LIBRARY_PATH
20614 shlibpath_overrides_runpath=no
20615 # This implies no fast_install, which is unacceptable.
20616 # Some rework will be needed to allow for fast_install
20617 # before this can be enabled.
20618 hardcode_into_libs=yes
20620 # Append ld.so.conf contents to the search path
20621 if test -f /etc/ld.so.conf; then
20622 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' ' '`
20623 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20626 # We used to test for /lib/ld.so.1 and disable shared libraries on
20627 # powerpc, because MkLinux only supported shared libraries with the
20628 # GNU dynamic linker. Since this was broken with cross compilers,
20629 # most powerpc-linux boxes support dynamic linking these days and
20630 # people can always --disable-shared, the test was removed, and we
20631 # assume the GNU/Linux dynamic linker is in use.
20632 dynamic_linker='GNU/Linux ld.so'
20639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20640 soname_spec='${libname}${release}${shared_ext}$major'
20641 shlibpath_var=LD_LIBRARY_PATH
20642 shlibpath_overrides_runpath=no
20643 hardcode_into_libs=yes
20644 dynamic_linker='GNU ld.so'
20651 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20654 dynamic_linker='NetBSD (a.out) ld.so'
20656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20657 soname_spec='${libname}${release}${shared_ext}$major'
20658 dynamic_linker='NetBSD ld.elf_so'
20660 shlibpath_var=LD_LIBRARY_PATH
20661 shlibpath_overrides_runpath=yes
20662 hardcode_into_libs=yes
20667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20668 shlibpath_var=LD_LIBRARY_PATH
20669 shlibpath_overrides_runpath=yes
20676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20677 soname_spec='${libname}${release}${shared_ext}$major'
20678 shlibpath_var=LD_LIBRARY_PATH
20679 shlibpath_overrides_runpath=yes
20684 sys_lib_dlsearch_path_spec="/usr/lib"
20686 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20688 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20689 *) need_version=no ;;
20691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20693 shlibpath_var=LD_LIBRARY_PATH
20694 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20696 openbsd2.[89] | openbsd2.[89].*)
20697 shlibpath_overrides_runpath=no
20700 shlibpath_overrides_runpath=yes
20704 shlibpath_overrides_runpath=yes
20709 libname_spec='$name'
20712 library_names_spec='$libname${shared_ext} $libname.a'
20713 dynamic_linker='OS/2 ld.exe'
20714 shlibpath_var=LIBPATH
20717 osf3* | osf4* | osf5*)
20721 soname_spec='${libname}${release}${shared_ext}$major'
20722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20723 shlibpath_var=LD_LIBRARY_PATH
20724 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20725 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20733 soname_spec='${libname}${release}${shared_ext}$major'
20734 shlibpath_var=LD_LIBRARY_PATH
20735 shlibpath_overrides_runpath=yes
20736 hardcode_into_libs=yes
20737 # ldd complains unless libraries are executable
20738 postinstall_cmds='chmod +x $lib'
20743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20744 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20745 shlibpath_var=LD_LIBRARY_PATH
20746 shlibpath_overrides_runpath=yes
20747 if test "$with_gnu_ld" = yes; then
20755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20756 soname_spec='${libname}${release}${shared_ext}$major'
20757 shlibpath_var=LD_LIBRARY_PATH
20758 case $host_vendor in
20760 shlibpath_overrides_runpath=no
20762 export_dynamic_flag_spec='${wl}-Blargedynsym'
20763 runpath_var=LD_RUN_PATH
20771 shlibpath_overrides_runpath=no
20772 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20778 if test -d /usr/nec ;then
20780 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20781 soname_spec='$libname${shared_ext}.$major'
20782 shlibpath_var=LD_LIBRARY_PATH
20786 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20787 version_type=freebsd-elf
20790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20791 soname_spec='${libname}${release}${shared_ext}$major'
20792 shlibpath_var=LD_LIBRARY_PATH
20793 hardcode_into_libs=yes
20794 if test "$with_gnu_ld" = yes; then
20795 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20796 shlibpath_overrides_runpath=no
20798 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20799 shlibpath_overrides_runpath=yes
20802 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20806 sys_lib_dlsearch_path_spec='/usr/lib'
20811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20812 soname_spec='${libname}${release}${shared_ext}$major'
20813 shlibpath_var=LD_LIBRARY_PATH
20820 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20821 echo "${ECHO_T}$dynamic_linker" >&6; }
20822 test "$dynamic_linker" = no && can_build_shared=no
20824 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20825 if test "$GCC" = yes; then
20826 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20829 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20830 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20831 hardcode_action_CXX=
20832 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20833 test -n "$runpath_var_CXX" || \
20834 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20836 # We can hardcode non-existant directories.
20837 if test "$hardcode_direct_CXX" != no &&
20838 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20839 # have to relink, otherwise we might link with an installed library
20840 # when we should be linking with a yet-to-be-installed one
20841 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20842 test "$hardcode_minus_L_CXX" != no; then
20843 # Linking always hardcodes the temporary library directory.
20844 hardcode_action_CXX=relink
20846 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20847 hardcode_action_CXX=immediate
20850 # We cannot hardcode anything, or else we can only hardcode existing
20852 hardcode_action_CXX=unsupported
20854 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20855 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20857 if test "$hardcode_action_CXX" = relink; then
20858 # Fast installation is not supported
20859 enable_fast_install=no
20860 elif test "$shlibpath_overrides_runpath" = yes ||
20861 test "$enable_shared" = no; then
20862 # Fast installation is not necessary
20863 enable_fast_install=needless
20867 # The else clause should only fire when bootstrapping the
20868 # libtool distribution, otherwise you forgot to ship ltmain.sh
20869 # with your package, and you will get complaints that there are
20870 # no rules to generate ltmain.sh.
20871 if test -f "$ltmain"; then
20872 # See if we are running on zsh, and set the options which allow our commands through
20873 # without removal of \ escapes.
20874 if test -n "${ZSH_VERSION+set}" ; then
20875 setopt NO_GLOB_SUBST
20877 # Now quote all the things that may contain metacharacters while being
20878 # careful not to overquote the AC_SUBSTed values. We take copies of the
20879 # variables and quote the copies for generation of the libtool script.
20880 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20882 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20883 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20884 deplibs_check_method reload_flag reload_cmds need_locks \
20885 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20886 lt_cv_sys_global_symbol_to_c_name_address \
20887 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20888 old_postinstall_cmds old_postuninstall_cmds \
20892 lt_prog_compiler_wl_CXX \
20893 lt_prog_compiler_pic_CXX \
20894 lt_prog_compiler_static_CXX \
20895 lt_prog_compiler_no_builtin_flag_CXX \
20896 export_dynamic_flag_spec_CXX \
20897 thread_safe_flag_spec_CXX \
20898 whole_archive_flag_spec_CXX \
20899 enable_shared_with_static_runtimes_CXX \
20900 old_archive_cmds_CXX \
20901 old_archive_from_new_cmds_CXX \
20902 predep_objects_CXX \
20903 postdep_objects_CXX \
20906 compiler_lib_search_path_CXX \
20908 archive_expsym_cmds_CXX \
20909 postinstall_cmds_CXX \
20910 postuninstall_cmds_CXX \
20911 old_archive_from_expsyms_cmds_CXX \
20912 allow_undefined_flag_CXX \
20913 no_undefined_flag_CXX \
20914 export_symbols_cmds_CXX \
20915 hardcode_libdir_flag_spec_CXX \
20916 hardcode_libdir_flag_spec_ld_CXX \
20917 hardcode_libdir_separator_CXX \
20918 hardcode_automatic_CXX \
20920 module_expsym_cmds_CXX \
20921 lt_cv_prog_compiler_c_o_CXX \
20922 exclude_expsyms_CXX \
20923 include_expsyms_CXX; do
20926 old_archive_cmds_CXX | \
20927 old_archive_from_new_cmds_CXX | \
20928 archive_cmds_CXX | \
20929 archive_expsym_cmds_CXX | \
20930 module_cmds_CXX | \
20931 module_expsym_cmds_CXX | \
20932 old_archive_from_expsyms_cmds_CXX | \
20933 export_symbols_cmds_CXX | \
20934 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20935 postinstall_cmds | postuninstall_cmds | \
20936 old_postinstall_cmds | old_postuninstall_cmds | \
20937 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20938 # Double-quote double-evaled strings.
20939 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20942 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20948 *'\$0 --fallback-echo"')
20949 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20955 cat <<__EOF__ >> "$cfgfile"
20956 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20958 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20960 # Shell to use when invoking shell scripts.
20963 # Whether or not to build shared libraries.
20964 build_libtool_libs=$enable_shared
20966 # Whether or not to build static libraries.
20967 build_old_libs=$enable_static
20969 # Whether or not to add -lc for building shared libraries.
20970 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20972 # Whether or not to disallow shared libs when runtime libs are static
20973 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20975 # Whether or not to optimize for fast installation.
20976 fast_install=$enable_fast_install
20979 host_alias=$host_alias
20983 # The build system.
20984 build_alias=$build_alias
20988 # An echo program that does not interpret backslashes.
20993 AR_FLAGS=$lt_AR_FLAGS
20998 # LTCC compiler flags.
20999 LTCFLAGS=$lt_LTCFLAGS
21001 # A language-specific compiler.
21002 CC=$lt_compiler_CXX
21004 # Is the compiler the GNU C compiler?
21010 # The linker used to build libraries.
21013 # Whether we need hard or soft links.
21016 # A BSD-compatible nm program.
21019 # A symbol stripping program
21022 # Used to examine libraries when file_magic_cmd begins "file"
21023 MAGIC_CMD=$MAGIC_CMD
21025 # Used on cygwin: DLL creation program.
21028 # Used on cygwin: object dumper.
21031 # Used on cygwin: assembler.
21034 # The name of the directory that contains temporary libtool files.
21037 # How to create reloadable object files.
21038 reload_flag=$lt_reload_flag
21039 reload_cmds=$lt_reload_cmds
21041 # How to pass a linker flag through the compiler.
21042 wl=$lt_lt_prog_compiler_wl_CXX
21044 # Object file suffix (normally "o").
21045 objext="$ac_objext"
21047 # Old archive suffix (normally "a").
21050 # Shared library suffix (normally ".so").
21051 shrext_cmds='$shrext_cmds'
21053 # Executable file suffix (normally "").
21056 # Additional compiler flags for building library objects.
21057 pic_flag=$lt_lt_prog_compiler_pic_CXX
21060 # What is the maximum length of a command?
21061 max_cmd_len=$lt_cv_sys_max_cmd_len
21063 # Does compiler simultaneously support -c and -o options?
21064 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21066 # Must we lock files when doing compilation?
21067 need_locks=$lt_need_locks
21069 # Do we need the lib prefix for modules?
21070 need_lib_prefix=$need_lib_prefix
21072 # Do we need a version for libraries?
21073 need_version=$need_version
21075 # Whether dlopen is supported.
21076 dlopen_support=$enable_dlopen
21078 # Whether dlopen of programs is supported.
21079 dlopen_self=$enable_dlopen_self
21081 # Whether dlopen of statically linked programs is supported.
21082 dlopen_self_static=$enable_dlopen_self_static
21084 # Compiler flag to prevent dynamic linking.
21085 link_static_flag=$lt_lt_prog_compiler_static_CXX
21087 # Compiler flag to turn off builtin functions.
21088 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21090 # Compiler flag to allow reflexive dlopens.
21091 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21093 # Compiler flag to generate shared objects directly from archives.
21094 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21096 # Compiler flag to generate thread-safe objects.
21097 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21099 # Library versioning type.
21100 version_type=$version_type
21102 # Format of library name prefix.
21103 libname_spec=$lt_libname_spec
21105 # List of archive names. First name is the real one, the rest are links.
21106 # The last name is the one that the linker finds with -lNAME.
21107 library_names_spec=$lt_library_names_spec
21109 # The coded name of the library, if different from the real name.
21110 soname_spec=$lt_soname_spec
21112 # Commands used to build and install an old-style archive.
21114 old_archive_cmds=$lt_old_archive_cmds_CXX
21115 old_postinstall_cmds=$lt_old_postinstall_cmds
21116 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21118 # Create an old-style archive from a shared archive.
21119 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21121 # Create a temporary old-style archive to link instead of a shared archive.
21122 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21124 # Commands used to build and install a shared archive.
21125 archive_cmds=$lt_archive_cmds_CXX
21126 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21127 postinstall_cmds=$lt_postinstall_cmds
21128 postuninstall_cmds=$lt_postuninstall_cmds
21130 # Commands used to build a loadable module (assumed same as above if empty)
21131 module_cmds=$lt_module_cmds_CXX
21132 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21134 # Commands to strip libraries.
21135 old_striplib=$lt_old_striplib
21136 striplib=$lt_striplib
21138 # Dependencies to place before the objects being linked to create a
21140 predep_objects=$lt_predep_objects_CXX
21142 # Dependencies to place after the objects being linked to create a
21144 postdep_objects=$lt_postdep_objects_CXX
21146 # Dependencies to place before the objects being linked to create a
21148 predeps=$lt_predeps_CXX
21150 # Dependencies to place after the objects being linked to create a
21152 postdeps=$lt_postdeps_CXX
21154 # The library search path used internally by the compiler when linking
21155 # a shared library.
21156 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21158 # Method to check whether dependent libraries are shared objects.
21159 deplibs_check_method=$lt_deplibs_check_method
21161 # Command to use when deplibs_check_method == file_magic.
21162 file_magic_cmd=$lt_file_magic_cmd
21164 # Flag that allows shared libraries with undefined symbols to be built.
21165 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21167 # Flag that forces no undefined symbols.
21168 no_undefined_flag=$lt_no_undefined_flag_CXX
21170 # Commands used to finish a libtool library installation in a directory.
21171 finish_cmds=$lt_finish_cmds
21173 # Same as above, but a single script fragment to be evaled but not shown.
21174 finish_eval=$lt_finish_eval
21176 # Take the output of nm and produce a listing of raw symbols and C names.
21177 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21179 # Transform the output of nm in a proper C declaration
21180 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21182 # Transform the output of nm in a C name address pair
21183 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21185 # This is the shared library runtime path variable.
21186 runpath_var=$runpath_var
21188 # This is the shared library path variable.
21189 shlibpath_var=$shlibpath_var
21191 # Is shlibpath searched before the hard-coded library search path?
21192 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21194 # How to hardcode a shared library path into an executable.
21195 hardcode_action=$hardcode_action_CXX
21197 # Whether we should hardcode library paths into libraries.
21198 hardcode_into_libs=$hardcode_into_libs
21200 # Flag to hardcode \$libdir into a binary during linking.
21201 # This must work even if \$libdir does not exist.
21202 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21204 # If ld is used when linking, flag to hardcode \$libdir into
21205 # a binary during linking. This must work even if \$libdir does
21207 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21209 # Whether we need a single -rpath flag with a separated argument.
21210 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21212 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21213 # resulting binary.
21214 hardcode_direct=$hardcode_direct_CXX
21216 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21217 # resulting binary.
21218 hardcode_minus_L=$hardcode_minus_L_CXX
21220 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21221 # the resulting binary.
21222 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21224 # Set to yes if building a shared library automatically hardcodes DIR into the library
21225 # and all subsequent libraries and executables linked against it.
21226 hardcode_automatic=$hardcode_automatic_CXX
21228 # Variables whose values should be saved in libtool wrapper scripts and
21229 # restored at relink time.
21230 variables_saved_for_relink="$variables_saved_for_relink"
21232 # Whether libtool must link a program against all its dependency libraries.
21233 link_all_deplibs=$link_all_deplibs_CXX
21235 # Compile-time system search path for libraries
21236 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21238 # Run-time system search path for libraries
21239 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21241 # Fix the shell variable \$srcfile for the compiler.
21242 fix_srcfile_path="$fix_srcfile_path_CXX"
21244 # Set to yes if exported symbols are required.
21245 always_export_symbols=$always_export_symbols_CXX
21247 # The commands to list exported symbols.
21248 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21250 # The commands to extract the exported symbol list from a shared archive.
21251 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21253 # Symbols that should not be listed in the preloaded symbols.
21254 exclude_expsyms=$lt_exclude_expsyms_CXX
21256 # Symbols that must always be exported.
21257 include_expsyms=$lt_include_expsyms_CXX
21259 # ### END LIBTOOL TAG CONFIG: $tagname
21265 # If there is no Makefile yet, we rely on a make rule to execute
21266 # `config.status --recheck' to rerun these tests and create the
21267 # libtool script then.
21268 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21269 if test -f "$ltmain_in"; then
21270 test -f Makefile && make "$ltmain"
21276 ac_cpp='$CPP $CPPFLAGS'
21277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21285 with_gnu_ldcxx=$with_gnu_ld
21286 with_gnu_ld=$lt_save_with_gnu_ld
21287 lt_cv_path_LDCXX=$lt_cv_path_LD
21288 lt_cv_path_LD=$lt_save_path_LD
21289 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21290 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21298 if test -n "$F77" && test "X$F77" != "Xno"; then
21301 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21302 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21303 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21306 archive_cmds_need_lc_F77=no
21307 allow_undefined_flag_F77=
21308 always_export_symbols_F77=no
21309 archive_expsym_cmds_F77=
21310 export_dynamic_flag_spec_F77=
21311 hardcode_direct_F77=no
21312 hardcode_libdir_flag_spec_F77=
21313 hardcode_libdir_flag_spec_ld_F77=
21314 hardcode_libdir_separator_F77=
21315 hardcode_minus_L_F77=no
21316 hardcode_automatic_F77=no
21318 module_expsym_cmds_F77=
21319 link_all_deplibs_F77=unknown
21320 old_archive_cmds_F77=$old_archive_cmds
21321 no_undefined_flag_F77=
21322 whole_archive_flag_spec_F77=
21323 enable_shared_with_static_runtimes_F77=no
21325 # Source file extension for f77 test sources.
21328 # Object file extension for compiled f77 test sources.
21332 # Code to be used in simple compile tests
21333 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21335 # Code to be used in simple link tests
21336 lt_simple_link_test_code=" program t\n end\n"
21338 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21340 # If no C compiler was specified, use CC.
21343 # If no C compiler flags were specified, use CFLAGS.
21344 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21346 # Allow CC to be a program name with arguments.
21350 # save warnings/boilerplate of simple test code
21351 ac_outfile=conftest.$ac_objext
21352 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21353 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21354 _lt_compiler_boilerplate=`cat conftest.err`
21357 ac_outfile=conftest.$ac_objext
21358 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21359 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21360 _lt_linker_boilerplate=`cat conftest.err`
21364 # Allow CC to be a program name with arguments.
21369 for cc_temp in $compiler""; do
21371 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21372 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21377 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21380 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21381 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21382 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21383 echo "${ECHO_T}$can_build_shared" >&6; }
21385 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21386 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21387 test "$can_build_shared" = "no" && enable_shared=no
21389 # On AIX, shared libraries and static libraries use the same namespace, and
21390 # are all built from PIC.
21393 test "$enable_shared" = yes && enable_static=no
21394 if test -n "$RANLIB"; then
21395 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21396 postinstall_cmds='$RANLIB $lib'
21400 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21401 test "$enable_shared" = yes && enable_static=no
21405 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21406 echo "${ECHO_T}$enable_shared" >&6; }
21408 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21409 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21410 # Make sure either enable_shared or enable_static is yes.
21411 test "$enable_shared" = yes || enable_static=yes
21412 { echo "$as_me:$LINENO: result: $enable_static" >&5
21413 echo "${ECHO_T}$enable_static" >&6; }
21418 lt_prog_compiler_wl_F77=
21419 lt_prog_compiler_pic_F77=
21420 lt_prog_compiler_static_F77=
21422 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21423 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21425 if test "$GCC" = yes; then
21426 lt_prog_compiler_wl_F77='-Wl,'
21427 lt_prog_compiler_static_F77='-static'
21431 # All AIX code is PIC.
21432 if test "$host_cpu" = ia64; then
21433 # AIX 5 now supports IA64 processor
21434 lt_prog_compiler_static_F77='-Bstatic'
21439 # FIXME: we need at least 68020 code to build shared libraries, but
21440 # adding the `-m68020' flag to GCC prevents building anything better,
21442 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21445 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21446 # PIC is the default for these OSes.
21449 mingw* | pw32* | os2*)
21450 # This hack is so that the source file can tell whether it is being
21451 # built for inclusion in a dll (and should export symbols for example).
21452 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21455 darwin* | rhapsody*)
21456 # PIC is the default on this platform
21457 # Common symbols not allowed in MH_DYLIB files
21458 lt_prog_compiler_pic_F77='-fno-common'
21462 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21463 # Instead, we relocate shared libraries at runtime.
21467 # Just because we use GCC doesn't mean we suddenly get shared libraries
21468 # on systems that don't support them.
21469 lt_prog_compiler_can_build_shared_F77=no
21474 if test -d /usr/nec; then
21475 lt_prog_compiler_pic_F77=-Kconform_pic
21480 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21481 # not for PA HP-UX.
21487 lt_prog_compiler_pic_F77='-fPIC'
21493 lt_prog_compiler_pic_F77='-fPIC'
21497 # PORTME Check for flag to pass linker flags through the system compiler.
21500 lt_prog_compiler_wl_F77='-Wl,'
21501 if test "$host_cpu" = ia64; then
21502 # AIX 5 now supports IA64 processor
21503 lt_prog_compiler_static_F77='-Bstatic'
21505 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21509 # PIC is the default on this platform
21510 # Common symbols not allowed in MH_DYLIB files
21511 case $cc_basename in
21513 lt_prog_compiler_pic_F77='-qnocommon'
21514 lt_prog_compiler_wl_F77='-Wl,'
21519 mingw* | pw32* | os2*)
21520 # This hack is so that the source file can tell whether it is being
21521 # built for inclusion in a dll (and should export symbols for example).
21522 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21525 hpux9* | hpux10* | hpux11*)
21526 lt_prog_compiler_wl_F77='-Wl,'
21527 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21528 # not for PA HP-UX.
21534 lt_prog_compiler_pic_F77='+Z'
21537 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21538 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21541 irix5* | irix6* | nonstopux*)
21542 lt_prog_compiler_wl_F77='-Wl,'
21543 # PIC (with -KPIC) is the default.
21544 lt_prog_compiler_static_F77='-non_shared'
21548 lt_prog_compiler_pic_F77='-KPIC'
21549 lt_prog_compiler_static_F77='-Bstatic'
21553 case $cc_basename in
21555 lt_prog_compiler_wl_F77='-Wl,'
21556 lt_prog_compiler_pic_F77='-KPIC'
21557 lt_prog_compiler_static_F77='-static'
21559 pgcc* | pgf77* | pgf90* | pgf95*)
21560 # Portland Group compilers (*not* the Pentium gcc compiler,
21561 # which looks to be a dead project)
21562 lt_prog_compiler_wl_F77='-Wl,'
21563 lt_prog_compiler_pic_F77='-fpic'
21564 lt_prog_compiler_static_F77='-Bstatic'
21567 lt_prog_compiler_wl_F77='-Wl,'
21568 # All Alpha code is PIC.
21569 lt_prog_compiler_static_F77='-non_shared'
21574 osf3* | osf4* | osf5*)
21575 lt_prog_compiler_wl_F77='-Wl,'
21576 # All OSF/1 code is PIC.
21577 lt_prog_compiler_static_F77='-non_shared'
21581 lt_prog_compiler_pic_F77='-KPIC'
21582 lt_prog_compiler_static_F77='-Bstatic'
21583 case $cc_basename in
21584 f77* | f90* | f95*)
21585 lt_prog_compiler_wl_F77='-Qoption ld ';;
21587 lt_prog_compiler_wl_F77='-Wl,';;
21592 lt_prog_compiler_wl_F77='-Qoption ld '
21593 lt_prog_compiler_pic_F77='-PIC'
21594 lt_prog_compiler_static_F77='-Bstatic'
21597 sysv4 | sysv4.2uw2* | sysv4.3*)
21598 lt_prog_compiler_wl_F77='-Wl,'
21599 lt_prog_compiler_pic_F77='-KPIC'
21600 lt_prog_compiler_static_F77='-Bstatic'
21604 if test -d /usr/nec ;then
21605 lt_prog_compiler_pic_F77='-Kconform_pic'
21606 lt_prog_compiler_static_F77='-Bstatic'
21610 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21611 lt_prog_compiler_wl_F77='-Wl,'
21612 lt_prog_compiler_pic_F77='-KPIC'
21613 lt_prog_compiler_static_F77='-Bstatic'
21617 lt_prog_compiler_wl_F77='-Wl,'
21618 lt_prog_compiler_can_build_shared_F77=no
21622 lt_prog_compiler_pic_F77='-pic'
21623 lt_prog_compiler_static_F77='-Bstatic'
21627 lt_prog_compiler_can_build_shared_F77=no
21632 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21633 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21636 # Check to make sure the PIC flag actually works.
21638 if test -n "$lt_prog_compiler_pic_F77"; then
21640 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21641 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21642 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21643 echo $ECHO_N "(cached) $ECHO_C" >&6
21645 lt_prog_compiler_pic_works_F77=no
21646 ac_outfile=conftest.$ac_objext
21647 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21648 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21649 # Insert the option either (1) after the last *FLAGS variable, or
21650 # (2) before a word containing "conftest.", or (3) at the end.
21651 # Note that $ac_compile itself does not contain backslashes and begins
21652 # with a dollar sign (not a hyphen), so the echo should work correctly.
21653 # The option is referenced via a variable to avoid confusing sed.
21654 lt_compile=`echo "$ac_compile" | $SED \
21655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21657 -e 's:$: $lt_compiler_flag:'`
21658 (eval echo "\"\$as_me:21658: $lt_compile\"" >&5)
21659 (eval "$lt_compile" 2>conftest.err)
21661 cat conftest.err >&5
21662 echo "$as_me:21662: \$? = $ac_status" >&5
21663 if (exit $ac_status) && test -s "$ac_outfile"; then
21664 # The compiler can only warn and ignore the option if not recognized
21665 # So say no if there are warnings other than the usual output.
21666 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21668 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21669 lt_prog_compiler_pic_works_F77=yes
21675 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21676 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21678 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21679 case $lt_prog_compiler_pic_F77 in
21681 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21684 lt_prog_compiler_pic_F77=
21685 lt_prog_compiler_can_build_shared_F77=no
21690 # For platforms which do not support PIC, -DPIC is meaningless:
21692 lt_prog_compiler_pic_F77=
21695 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21700 # Check to make sure the static flag actually works.
21702 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21703 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21704 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21705 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21706 echo $ECHO_N "(cached) $ECHO_C" >&6
21708 lt_prog_compiler_static_works_F77=no
21709 save_LDFLAGS="$LDFLAGS"
21710 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21711 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21712 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21713 # The linker can only warn and ignore the option if not recognized
21714 # So say no if there are warnings
21715 if test -s conftest.err; then
21716 # Append any errors to the config.log.
21717 cat conftest.err 1>&5
21718 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21720 if diff conftest.exp conftest.er2 >/dev/null; then
21721 lt_prog_compiler_static_works_F77=yes
21724 lt_prog_compiler_static_works_F77=yes
21728 LDFLAGS="$save_LDFLAGS"
21731 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21732 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21734 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21737 lt_prog_compiler_static_F77=
21741 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21742 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21743 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21744 echo $ECHO_N "(cached) $ECHO_C" >&6
21746 lt_cv_prog_compiler_c_o_F77=no
21747 $rm -r conftest 2>/dev/null
21751 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21753 lt_compiler_flag="-o out/conftest2.$ac_objext"
21754 # Insert the option either (1) after the last *FLAGS variable, or
21755 # (2) before a word containing "conftest.", or (3) at the end.
21756 # Note that $ac_compile itself does not contain backslashes and begins
21757 # with a dollar sign (not a hyphen), so the echo should work correctly.
21758 lt_compile=`echo "$ac_compile" | $SED \
21759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21761 -e 's:$: $lt_compiler_flag:'`
21762 (eval echo "\"\$as_me:21762: $lt_compile\"" >&5)
21763 (eval "$lt_compile" 2>out/conftest.err)
21765 cat out/conftest.err >&5
21766 echo "$as_me:21766: \$? = $ac_status" >&5
21767 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21769 # The compiler can only warn and ignore the option if not recognized
21770 # So say no if there are warnings
21771 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21774 lt_cv_prog_compiler_c_o_F77=yes
21779 # SGI C++ compiler will create directory out/ii_files/ for
21780 # template instantiation
21781 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21782 $rm out/* && rmdir out
21788 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21789 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21792 hard_links="nottested"
21793 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21794 # do not overwrite the value of need_locks provided by the user
21795 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21796 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21799 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21801 ln conftest.a conftest.b 2>&5 || hard_links=no
21802 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21803 { echo "$as_me:$LINENO: result: $hard_links" >&5
21804 echo "${ECHO_T}$hard_links" >&6; }
21805 if test "$hard_links" = no; then
21806 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21807 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21814 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21815 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21818 allow_undefined_flag_F77=
21819 enable_shared_with_static_runtimes_F77=no
21821 archive_expsym_cmds_F77=
21822 old_archive_From_new_cmds_F77=
21823 old_archive_from_expsyms_cmds_F77=
21824 export_dynamic_flag_spec_F77=
21825 whole_archive_flag_spec_F77=
21826 thread_safe_flag_spec_F77=
21827 hardcode_libdir_flag_spec_F77=
21828 hardcode_libdir_flag_spec_ld_F77=
21829 hardcode_libdir_separator_F77=
21830 hardcode_direct_F77=no
21831 hardcode_minus_L_F77=no
21832 hardcode_shlibpath_var_F77=unsupported
21833 link_all_deplibs_F77=unknown
21834 hardcode_automatic_F77=no
21836 module_expsym_cmds_F77=
21837 always_export_symbols_F77=no
21838 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21839 # include_expsyms should be a list of space-separated symbols to be *always*
21840 # included in the symbol list
21841 include_expsyms_F77=
21842 # exclude_expsyms can be an extended regexp of symbols to exclude
21843 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21844 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21845 # as well as any symbol that contains `d'.
21846 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21847 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21848 # platforms (ab)use it in PIC code, but their linkers get confused if
21849 # the symbol is explicitly referenced. Since portable code cannot
21850 # rely on this symbol name, it's probably fine to never include it in
21851 # preloaded symbol tables.
21852 extract_expsyms_cmds=
21853 # Just being paranoid about ensuring that cc_basename is set.
21854 for cc_temp in $compiler""; do
21856 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21857 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21862 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21865 cygwin* | mingw* | pw32*)
21866 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21867 # When not using gcc, we currently assume that we are using
21868 # Microsoft Visual C++.
21869 if test "$GCC" != yes; then
21874 # we just hope/assume this is gcc and not c89 (= MSVC++)
21883 if test "$with_gnu_ld" = yes; then
21884 # If archive_cmds runs LD, not CC, wlarc should be empty
21887 # Set some defaults for GNU ld with shared library support. These
21888 # are reset later if shared libraries are not supported. Putting them
21889 # here allows them to be overridden if necessary.
21890 runpath_var=LD_RUN_PATH
21891 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21892 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21893 # ancient GNU ld didn't support --whole-archive et. al.
21894 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21895 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21897 whole_archive_flag_spec_F77=
21899 supports_anon_versioning=no
21900 case `$LD -v 2>/dev/null` in
21901 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21902 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21903 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21904 *\ 2.11.*) ;; # other 2.11 versions
21905 *) supports_anon_versioning=yes ;;
21908 # See if GNU ld supports shared libraries.
21910 aix3* | aix4* | aix5*)
21911 # On AIX/PPC, the GNU linker is very broken
21912 if test "$host_cpu" != ia64; then
21916 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21917 *** to be unable to reliably create shared libraries on AIX.
21918 *** Therefore, libtool is disabling shared libraries support. If you
21919 *** really care for shared libraries, you may want to modify your PATH
21920 *** so that a non-GNU linker is found, and then restart.
21927 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)'
21928 hardcode_libdir_flag_spec_F77='-L$libdir'
21929 hardcode_minus_L_F77=yes
21931 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21932 # that the semantics of dynamic libraries on AmigaOS, at least up
21933 # to version 4, is to share data among multiple programs linked
21934 # with the same dynamic library. Since this doesn't match the
21935 # behavior of shared libraries on other platforms, we can't use
21941 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21942 allow_undefined_flag_F77=unsupported
21943 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21944 # support --undefined. This deserves some investigation. FIXME
21945 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21951 cygwin* | mingw* | pw32*)
21952 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21953 # as there is no search path for DLLs.
21954 hardcode_libdir_flag_spec_F77='-L$libdir'
21955 allow_undefined_flag_F77=unsupported
21956 always_export_symbols_F77=no
21957 enable_shared_with_static_runtimes_F77=yes
21958 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21960 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21961 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21962 # If the export-symbols file already is a .def file (1st line
21963 # is EXPORTS), use it as is; otherwise, prepend...
21964 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21965 cp $export_symbols $output_objdir/$soname.def;
21967 echo EXPORTS > $output_objdir/$soname.def;
21968 cat $export_symbols >> $output_objdir/$soname.def;
21970 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21977 hardcode_direct_F77=no
21978 hardcode_shlibpath_var_F77=no
21979 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21980 export_dynamic_flag_spec_F77='${wl}-E'
21981 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21982 # Instead, shared libraries are loaded at an image base (0x10000000 by
21983 # default) and relocated if they conflict, which is a slow very memory
21984 # consuming and fragmenting process. To avoid this, we pick a random,
21985 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21986 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21987 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'
21988 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'
21992 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21994 case $cc_basename,$host_cpu in
21995 pgcc*) # Portland Group C compiler
21996 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'
21997 tmp_addflag=' $pic_flag'
21999 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22000 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'
22001 tmp_addflag=' $pic_flag -Mnomain' ;;
22002 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22003 tmp_addflag=' -i_dynamic' ;;
22004 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22005 tmp_addflag=' -i_dynamic -nofor_main' ;;
22006 ifc* | ifort*) # Intel Fortran compiler
22007 tmp_addflag=' -nofor_main' ;;
22009 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22011 if test $supports_anon_versioning = yes; then
22012 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22013 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22014 $echo "local: *; };" >> $output_objdir/$libname.ver~
22015 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22023 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22024 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22027 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22028 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22033 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22037 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22038 *** create shared libraries on Solaris systems. Therefore, libtool
22039 *** is disabling shared libraries support. We urge you to upgrade GNU
22040 *** binutils to release 2.9.1 or newer. Another option is to modify
22041 *** your PATH or compiler configuration so that the native linker is
22042 *** used, and then restart.
22045 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22046 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22047 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22053 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22054 case `$LD -v 2>&1` in
22055 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22059 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22060 *** reliably create shared libraries on SCO systems. Therefore, libtool
22061 *** is disabling shared libraries support. We urge you to upgrade GNU
22062 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22063 *** your PATH or compiler configuration so that the native linker is
22064 *** used, and then restart.
22069 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22070 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22071 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22072 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22081 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22083 hardcode_direct_F77=yes
22084 hardcode_shlibpath_var_F77=no
22088 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22089 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22090 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22097 if test "$ld_shlibs_F77" = no; then
22099 hardcode_libdir_flag_spec_F77=
22100 export_dynamic_flag_spec_F77=
22101 whole_archive_flag_spec_F77=
22104 # PORTME fill in a description of your system's linker (not GNU ld)
22107 allow_undefined_flag_F77=unsupported
22108 always_export_symbols_F77=yes
22109 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'
22110 # Note: this linker hardcodes the directories in LIBPATH if there
22111 # are no directories specified by -L.
22112 hardcode_minus_L_F77=yes
22113 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22114 # Neither direct hardcoding nor static linking is supported with a
22116 hardcode_direct_F77=unsupported
22121 if test "$host_cpu" = ia64; then
22122 # On IA64, the linker does run time linking by default, so we don't
22123 # have to do anything special.
22124 aix_use_runtimelinking=no
22125 exp_sym_flag='-Bexport'
22128 # If we're using GNU nm, then we don't want the "-C" option.
22129 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22130 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22131 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'
22133 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'
22135 aix_use_runtimelinking=no
22137 # Test if we are trying to use run time linking or normal
22138 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22139 # need to do runtime linking.
22140 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22141 for ld_flag in $LDFLAGS; do
22142 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22143 aix_use_runtimelinking=yes
22150 exp_sym_flag='-bexport'
22151 no_entry_flag='-bnoentry'
22154 # When large executables or shared objects are built, AIX ld can
22155 # have problems creating the table of contents. If linking a library
22156 # or program results in "error TOC overflow" add -mminimal-toc to
22157 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22158 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22160 archive_cmds_F77=''
22161 hardcode_direct_F77=yes
22162 hardcode_libdir_separator_F77=':'
22163 link_all_deplibs_F77=yes
22165 if test "$GCC" = yes; then
22166 case $host_os in aix4.[012]|aix4.[012].*)
22167 # We only want to do this on AIX 4.2 and lower, the check
22168 # below for broken collect2 doesn't work under 4.3+
22169 collect2name=`${CC} -print-prog-name=collect2`
22170 if test -f "$collect2name" && \
22171 strings "$collect2name" | grep resolve_lib_name >/dev/null
22173 # We have reworked collect2
22174 hardcode_direct_F77=yes
22176 # We have old collect2
22177 hardcode_direct_F77=unsupported
22178 # It fails to find uninstalled libraries when the uninstalled
22179 # path is not listed in the libpath. Setting hardcode_minus_L
22180 # to unsupported forces relinking
22181 hardcode_minus_L_F77=yes
22182 hardcode_libdir_flag_spec_F77='-L$libdir'
22183 hardcode_libdir_separator_F77=
22187 shared_flag='-shared'
22188 if test "$aix_use_runtimelinking" = yes; then
22189 shared_flag="$shared_flag "'${wl}-G'
22193 if test "$host_cpu" = ia64; then
22194 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22195 # chokes on -Wl,-G. The following line is correct:
22198 if test "$aix_use_runtimelinking" = yes; then
22199 shared_flag='${wl}-G'
22201 shared_flag='${wl}-bM:SRE'
22206 # It seems that -bexpall does not export symbols beginning with
22207 # underscore (_), so it is better to generate a list of symbols to export.
22208 always_export_symbols_F77=yes
22209 if test "$aix_use_runtimelinking" = yes; then
22210 # Warning - without using the other runtime loading flags (-brtl),
22211 # -berok will link without error, but may produce a broken library.
22212 allow_undefined_flag_F77='-berok'
22213 # Determine the default libpath from the value encoded in an empty executable.
22214 cat >conftest.$ac_ext <<_ACEOF
22219 rm -f conftest.$ac_objext conftest$ac_exeext
22220 if { (ac_try="$ac_link"
22221 case "(($ac_try" in
22222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22223 *) ac_try_echo=$ac_try;;
22225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22226 (eval "$ac_link") 2>conftest.er1
22228 grep -v '^ *+' conftest.er1 >conftest.err
22230 cat conftest.err >&5
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); } &&
22233 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22234 { (case "(($ac_try" in
22235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22236 *) ac_try_echo=$ac_try;;
22238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22239 (eval "$ac_try") 2>&5
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); }; } &&
22243 { ac_try='test -s conftest$ac_exeext'
22244 { (case "(($ac_try" in
22245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22246 *) ac_try_echo=$ac_try;;
22248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22249 (eval "$ac_try") 2>&5
22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); }; }; then
22254 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22256 # Check for a 64-bit object if we didn't find anything.
22257 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; }
22260 echo "$as_me: failed program was:" >&5
22261 sed 's/^/| /' conftest.$ac_ext >&5
22266 rm -f core conftest.err conftest.$ac_objext \
22267 conftest$ac_exeext conftest.$ac_ext
22268 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22270 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22271 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"
22273 if test "$host_cpu" = ia64; then
22274 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22275 allow_undefined_flag_F77="-z nodefs"
22276 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"
22278 # Determine the default libpath from the value encoded in an empty executable.
22279 cat >conftest.$ac_ext <<_ACEOF
22284 rm -f conftest.$ac_objext conftest$ac_exeext
22285 if { (ac_try="$ac_link"
22286 case "(($ac_try" in
22287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22288 *) ac_try_echo=$ac_try;;
22290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22291 (eval "$ac_link") 2>conftest.er1
22293 grep -v '^ *+' conftest.er1 >conftest.err
22295 cat conftest.err >&5
22296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); } &&
22298 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22299 { (case "(($ac_try" in
22300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301 *) ac_try_echo=$ac_try;;
22303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304 (eval "$ac_try") 2>&5
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); }; } &&
22308 { ac_try='test -s conftest$ac_exeext'
22309 { (case "(($ac_try" in
22310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311 *) ac_try_echo=$ac_try;;
22313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314 (eval "$ac_try") 2>&5
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; }; then
22319 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22321 # Check for a 64-bit object if we didn't find anything.
22322 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; }
22325 echo "$as_me: failed program was:" >&5
22326 sed 's/^/| /' conftest.$ac_ext >&5
22331 rm -f core conftest.err conftest.$ac_objext \
22332 conftest$ac_exeext conftest.$ac_ext
22333 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22335 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22336 # Warning - without using the other run time loading flags,
22337 # -berok will link without error, but may produce a broken library.
22338 no_undefined_flag_F77=' ${wl}-bernotok'
22339 allow_undefined_flag_F77=' ${wl}-berok'
22340 # Exported symbols can be pulled into shared objects from archives
22341 whole_archive_flag_spec_F77='$convenience'
22342 archive_cmds_need_lc_F77=yes
22343 # This is similar to how AIX traditionally builds its shared libraries.
22344 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'
22350 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)'
22351 hardcode_libdir_flag_spec_F77='-L$libdir'
22352 hardcode_minus_L_F77=yes
22353 # see comment about different semantics on the GNU ld section
22358 export_dynamic_flag_spec_F77=-rdynamic
22361 cygwin* | mingw* | pw32*)
22362 # When not using gcc, we currently assume that we are using
22363 # Microsoft Visual C++.
22364 # hardcode_libdir_flag_spec is actually meaningless, as there is
22365 # no search path for DLLs.
22366 hardcode_libdir_flag_spec_F77=' '
22367 allow_undefined_flag_F77=unsupported
22368 # Tell ltmain to make .lib files, not .a files.
22370 # Tell ltmain to make .dll files, not .so files.
22372 # FIXME: Setting linknames here is a bad hack.
22373 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22374 # The linker will automatically build a .lib file if we build a DLL.
22375 old_archive_From_new_cmds_F77='true'
22376 # FIXME: Should let the user specify the lib program.
22377 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22378 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22379 enable_shared_with_static_runtimes_F77=yes
22382 darwin* | rhapsody*)
22384 rhapsody* | darwin1.[012])
22385 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22388 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22389 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22391 case ${MACOSX_DEPLOYMENT_TARGET} in
22393 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22396 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22402 archive_cmds_need_lc_F77=no
22403 hardcode_direct_F77=no
22404 hardcode_automatic_F77=yes
22405 hardcode_shlibpath_var_F77=unsupported
22406 whole_archive_flag_spec_F77=''
22407 link_all_deplibs_F77=yes
22408 if test "$GCC" = yes ; then
22409 output_verbose_link_cmd='echo'
22410 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22411 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22412 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22413 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}'
22414 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}'
22416 case $cc_basename in
22418 output_verbose_link_cmd='echo'
22419 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22420 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22421 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22422 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}'
22423 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}'
22433 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22434 hardcode_libdir_flag_spec_F77='-L$libdir'
22435 hardcode_shlibpath_var_F77=no
22442 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22443 # support. Future versions do this automatically, but an explicit c++rt0.o
22444 # does not break anything, and helps significantly (at the cost of a little
22447 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22448 hardcode_libdir_flag_spec_F77='-R$libdir'
22449 hardcode_direct_F77=yes
22450 hardcode_shlibpath_var_F77=no
22453 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22455 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22456 hardcode_direct_F77=yes
22457 hardcode_minus_L_F77=yes
22458 hardcode_shlibpath_var_F77=no
22461 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22462 freebsd* | kfreebsd*-gnu | dragonfly*)
22463 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22464 hardcode_libdir_flag_spec_F77='-R$libdir'
22465 hardcode_direct_F77=yes
22466 hardcode_shlibpath_var_F77=no
22470 if test "$GCC" = yes; then
22471 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'
22473 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'
22475 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22476 hardcode_libdir_separator_F77=:
22477 hardcode_direct_F77=yes
22479 # hardcode_minus_L: Not really in the search PATH,
22480 # but as the default location of the library.
22481 hardcode_minus_L_F77=yes
22482 export_dynamic_flag_spec_F77='${wl}-E'
22486 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22487 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22489 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22491 if test "$with_gnu_ld" = no; then
22492 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22493 hardcode_libdir_separator_F77=:
22495 hardcode_direct_F77=yes
22496 export_dynamic_flag_spec_F77='${wl}-E'
22498 # hardcode_minus_L: Not really in the search PATH,
22499 # but as the default location of the library.
22500 hardcode_minus_L_F77=yes
22505 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22508 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22511 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22514 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22520 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22523 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22526 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22530 if test "$with_gnu_ld" = no; then
22531 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22532 hardcode_libdir_separator_F77=:
22536 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22537 hardcode_direct_F77=no
22538 hardcode_shlibpath_var_F77=no
22541 hardcode_direct_F77=yes
22542 export_dynamic_flag_spec_F77='${wl}-E'
22544 # hardcode_minus_L: Not really in the search PATH,
22545 # but as the default location of the library.
22546 hardcode_minus_L_F77=yes
22552 irix5* | irix6* | nonstopux*)
22553 if test "$GCC" = yes; then
22554 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'
22556 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'
22557 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22559 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22560 hardcode_libdir_separator_F77=:
22561 link_all_deplibs_F77=yes
22565 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22566 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22568 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22570 hardcode_libdir_flag_spec_F77='-R$libdir'
22571 hardcode_direct_F77=yes
22572 hardcode_shlibpath_var_F77=no
22576 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22577 hardcode_direct_F77=yes
22578 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22579 hardcode_libdir_separator_F77=:
22580 hardcode_shlibpath_var_F77=no
22584 hardcode_direct_F77=yes
22585 hardcode_shlibpath_var_F77=no
22586 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22587 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22588 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22589 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22590 export_dynamic_flag_spec_F77='${wl}-E'
22593 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22594 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22595 hardcode_libdir_flag_spec_F77='-R$libdir'
22598 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22599 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22606 hardcode_libdir_flag_spec_F77='-L$libdir'
22607 hardcode_minus_L_F77=yes
22608 allow_undefined_flag_F77=unsupported
22609 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'
22610 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22614 if test "$GCC" = yes; then
22615 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22616 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'
22618 allow_undefined_flag_F77=' -expect_unresolved \*'
22619 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'
22621 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22622 hardcode_libdir_separator_F77=:
22625 osf4* | osf5*) # as osf3* with the addition of -msym flag
22626 if test "$GCC" = yes; then
22627 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22628 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'
22629 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22631 allow_undefined_flag_F77=' -expect_unresolved \*'
22632 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'
22633 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~
22634 $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'
22636 # Both c and cxx compiler support -rpath directly
22637 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22639 hardcode_libdir_separator_F77=:
22643 no_undefined_flag_F77=' -z text'
22644 if test "$GCC" = yes; then
22646 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22647 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22648 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22651 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22652 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22653 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22655 hardcode_libdir_flag_spec_F77='-R$libdir'
22656 hardcode_shlibpath_var_F77=no
22658 solaris2.[0-5] | solaris2.[0-5].*) ;;
22660 # The compiler driver will combine linker options so we
22661 # cannot just pass the convience library names through
22662 # without $wl, iff we do not link with $LD.
22663 # Luckily, gcc supports the same syntax we need for Sun Studio.
22664 # Supported since Solaris 2.6 (maybe 2.5.1?)
22667 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22669 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' ;;
22672 link_all_deplibs_F77=yes
22676 if test "x$host_vendor" = xsequent; then
22677 # Use $CC to link under sequent, because it throws in some extra .o
22678 # files that make .init and .fini sections work.
22679 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22681 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22683 hardcode_libdir_flag_spec_F77='-L$libdir'
22684 hardcode_direct_F77=yes
22685 hardcode_minus_L_F77=yes
22686 hardcode_shlibpath_var_F77=no
22690 case $host_vendor in
22692 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22693 hardcode_direct_F77=yes # is this really true???
22696 ## LD is ld it makes a PLAMLIB
22697 ## CC just makes a GrossModule.
22698 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22699 reload_cmds_F77='$CC -r -o $output$reload_objs'
22700 hardcode_direct_F77=no
22703 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22704 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22707 runpath_var='LD_RUN_PATH'
22708 hardcode_shlibpath_var_F77=no
22712 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22713 hardcode_shlibpath_var_F77=no
22714 export_dynamic_flag_spec_F77='-Bexport'
22718 if test -d /usr/nec; then
22719 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22720 hardcode_shlibpath_var_F77=no
22721 runpath_var=LD_RUN_PATH
22722 hardcode_runpath_var=yes
22727 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22728 no_undefined_flag_F77='${wl}-z,text'
22729 archive_cmds_need_lc_F77=no
22730 hardcode_shlibpath_var_F77=no
22731 runpath_var='LD_RUN_PATH'
22733 if test "$GCC" = yes; then
22734 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22735 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22737 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22738 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22742 sysv5* | sco3.2v5* | sco5v6*)
22743 # Note: We can NOT use -z defs as we might desire, because we do not
22744 # link with -lc, and that would cause any symbols used from libc to
22745 # always be unresolved, which means just about no library would
22746 # ever link correctly. If we're not using GNU ld we use -z text
22747 # though, which does catch some bad symbols but isn't as heavy-handed
22749 no_undefined_flag_F77='${wl}-z,text'
22750 allow_undefined_flag_F77='${wl}-z,nodefs'
22751 archive_cmds_need_lc_F77=no
22752 hardcode_shlibpath_var_F77=no
22753 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22754 hardcode_libdir_separator_F77=':'
22755 link_all_deplibs_F77=yes
22756 export_dynamic_flag_spec_F77='${wl}-Bexport'
22757 runpath_var='LD_RUN_PATH'
22759 if test "$GCC" = yes; then
22760 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22761 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22763 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22764 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22769 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22770 hardcode_libdir_flag_spec_F77='-L$libdir'
22771 hardcode_shlibpath_var_F77=no
22780 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22781 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22782 test "$ld_shlibs_F77" = no && can_build_shared=no
22785 # Do we need to explicitly link libc?
22787 case "x$archive_cmds_need_lc_F77" in
22789 # Assume -lc should be added
22790 archive_cmds_need_lc_F77=yes
22792 if test "$enable_shared" = yes && test "$GCC" = yes; then
22793 case $archive_cmds_F77 in
22795 # FIXME: we may have to deal with multi-command sequences.
22798 # Test whether the compiler implicitly links with -lc since on some
22799 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22800 # to ld, don't add -lc before -lgcc.
22801 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22802 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22804 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22807 (eval $ac_compile) 2>&5
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); } 2>conftest.err; then
22813 libobjs=conftest.$ac_objext
22815 wl=$lt_prog_compiler_wl_F77
22816 pic_flag=$lt_prog_compiler_pic_F77
22822 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22823 allow_undefined_flag_F77=
22824 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22825 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828 (exit $ac_status); }
22830 archive_cmds_need_lc_F77=no
22832 archive_cmds_need_lc_F77=yes
22834 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22836 cat conftest.err 1>&5
22839 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22840 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22847 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22848 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22849 library_names_spec=
22850 libname_spec='lib$name'
22854 postuninstall_cmds=
22858 shlibpath_overrides_runpath=unknown
22860 dynamic_linker="$host_os ld.so"
22861 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22862 if test "$GCC" = yes; then
22863 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22864 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22865 # if the path contains ";" then we assume it to be the separator
22866 # otherwise default to the standard path separator (i.e. ":") - it is
22867 # assumed that no part of a normal pathname contains ";" but that should
22868 # okay in the real world where ";" in dirpaths is itself problematic.
22869 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22871 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22874 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22876 need_lib_prefix=unknown
22877 hardcode_into_libs=no
22879 # when you set need_version to no, make sure it does not cause -set_version
22880 # flags to be left without arguments
22881 need_version=unknown
22886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22887 shlibpath_var=LIBPATH
22889 # AIX 3 has no versioning support, so we append a major version to the name.
22890 soname_spec='${libname}${release}${shared_ext}$major'
22897 hardcode_into_libs=yes
22898 if test "$host_cpu" = ia64; then
22899 # AIX 5 supports IA64
22900 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22901 shlibpath_var=LD_LIBRARY_PATH
22903 # With GCC up to 2.95.x, collect2 would create an import file
22904 # for dependence libraries. The import file would start with
22905 # the line `#! .'. This would cause the generated library to
22906 # depend on `.', always an invalid library. This was fixed in
22907 # development snapshots of GCC prior to 3.0.
22909 aix4 | aix4.[01] | aix4.[01].*)
22910 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22912 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22915 can_build_shared=no
22919 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22920 # soname into executable. Probably we can add versioning support to
22921 # collect2, so additional links can be useful in future.
22922 if test "$aix_use_runtimelinking" = yes; then
22923 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22924 # instead of lib<name>.a to let people know that these are not
22925 # typical AIX shared libraries.
22926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22928 # We preserve .a as extension for shared libraries through AIX4.2
22929 # and later when we are not doing run time linking.
22930 library_names_spec='${libname}${release}.a $libname.a'
22931 soname_spec='${libname}${release}${shared_ext}$major'
22933 shlibpath_var=LIBPATH
22938 library_names_spec='$libname.ixlibrary $libname.a'
22939 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22940 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'
22944 library_names_spec='${libname}${shared_ext}'
22945 dynamic_linker="$host_os ld.so"
22946 shlibpath_var=LIBRARY_PATH
22952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22953 soname_spec='${libname}${release}${shared_ext}$major'
22954 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22955 shlibpath_var=LD_LIBRARY_PATH
22956 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22957 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22958 # the default ld.so.conf also contains /usr/contrib/lib and
22959 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22960 # libtool to hard-code these into programs
22963 cygwin* | mingw* | pw32*)
22964 version_type=windows
22969 case $GCC,$host_os in
22970 yes,cygwin* | yes,mingw* | yes,pw32*)
22971 library_names_spec='$libname.dll.a'
22972 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22973 postinstall_cmds='base_file=`basename \${file}`~
22974 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22975 dldir=$destdir/`dirname \$dlpath`~
22976 test -d \$dldir || mkdir -p \$dldir~
22977 $install_prog $dir/$dlname \$dldir/$dlname~
22978 chmod a+x \$dldir/$dlname'
22979 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22980 dlpath=$dir/\$dldll~
22982 shlibpath_overrides_runpath=yes
22986 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22987 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22988 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22991 # MinGW DLLs use traditional 'lib' prefix
22992 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22993 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22994 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22995 # It is most probably a Windows format PATH printed by
22996 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22997 # path with ; separators, and with drive letters. We can handle the
22998 # drive letters (cygwin fileutils understands them), so leave them,
22999 # especially as we might pass files found there to a mingw objdump,
23000 # which wouldn't understand a cygwinified path. Ahh.
23001 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23007 # pw32 DLLs use 'pw' prefix rather than 'lib'
23008 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23014 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23017 dynamic_linker='Win32 ld.exe'
23018 # FIXME: first we should search . and the directory the executable is in
23022 darwin* | rhapsody*)
23023 dynamic_linker="$host_os dyld"
23024 version_type=darwin
23027 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23028 soname_spec='${libname}${release}${major}$shared_ext'
23029 shlibpath_overrides_runpath=yes
23030 shlibpath_var=DYLD_LIBRARY_PATH
23031 shrext_cmds='.dylib'
23032 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23033 if test "$GCC" = yes; then
23034 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"`
23036 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23038 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23046 soname_spec='${libname}${release}${shared_ext}$major'
23047 shlibpath_var=LD_LIBRARY_PATH
23058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23059 soname_spec='${libname}${release}${shared_ext}$major'
23060 shlibpath_var=LD_LIBRARY_PATH
23061 shlibpath_overrides_runpath=no
23062 hardcode_into_libs=yes
23063 dynamic_linker='GNU ld.so'
23066 freebsd* | dragonfly*)
23067 # DragonFly does not have aout. When/if they implement a new
23068 # versioning mechanism, adjust this.
23069 if test -x /usr/bin/objformat; then
23070 objformat=`/usr/bin/objformat`
23073 freebsd[123]*) objformat=aout ;;
23074 *) objformat=elf ;;
23077 version_type=freebsd-$objformat
23078 case $version_type in
23080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23085 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23089 shlibpath_var=LD_LIBRARY_PATH
23092 shlibpath_overrides_runpath=yes
23094 freebsd3.[01]* | freebsdelf3.[01]*)
23095 shlibpath_overrides_runpath=yes
23096 hardcode_into_libs=yes
23098 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23099 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23100 shlibpath_overrides_runpath=no
23101 hardcode_into_libs=yes
23103 freebsd*) # from 4.6 on
23104 shlibpath_overrides_runpath=yes
23105 hardcode_into_libs=yes
23114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23115 soname_spec='${libname}${release}${shared_ext}$major'
23116 shlibpath_var=LD_LIBRARY_PATH
23117 hardcode_into_libs=yes
23120 hpux9* | hpux10* | hpux11*)
23121 # Give a soname corresponding to the major version so that dld.sl refuses to
23122 # link against other versions.
23129 hardcode_into_libs=yes
23130 dynamic_linker="$host_os dld.so"
23131 shlibpath_var=LD_LIBRARY_PATH
23132 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23134 soname_spec='${libname}${release}${shared_ext}$major'
23135 if test "X$HPUX_IA64_MODE" = X32; then
23136 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23138 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23140 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23144 hardcode_into_libs=yes
23145 dynamic_linker="$host_os dld.sl"
23146 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23147 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23149 soname_spec='${libname}${release}${shared_ext}$major'
23150 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23151 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23155 dynamic_linker="$host_os dld.sl"
23156 shlibpath_var=SHLIB_PATH
23157 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23159 soname_spec='${libname}${release}${shared_ext}$major'
23162 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23163 postinstall_cmds='chmod 555 $lib'
23170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23171 soname_spec='${libname}${release}${shared_ext}$major'
23172 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23173 shlibpath_var=LD_LIBRARY_PATH
23174 shlibpath_overrides_runpath=no
23175 hardcode_into_libs=yes
23178 irix5* | irix6* | nonstopux*)
23180 nonstopux*) version_type=nonstopux ;;
23182 if test "$lt_cv_prog_gnu_ld" = yes; then
23190 soname_spec='${libname}${release}${shared_ext}$major'
23191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23193 irix5* | nonstopux*)
23194 libsuff= shlibsuff=
23197 case $LD in # libtool.m4 will add one of these switches to LD
23198 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23199 libsuff= shlibsuff= libmagic=32-bit;;
23200 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23201 libsuff=32 shlibsuff=N32 libmagic=N32;;
23202 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23203 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23204 *) libsuff= shlibsuff= libmagic=never-match;;
23208 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23209 shlibpath_overrides_runpath=no
23210 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23211 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23212 hardcode_into_libs=yes
23215 # No shared lib support for Linux oldld, aout, or coff.
23216 linux*oldld* | linux*aout* | linux*coff*)
23220 # This must be Linux ELF.
23225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23226 soname_spec='${libname}${release}${shared_ext}$major'
23227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23228 shlibpath_var=LD_LIBRARY_PATH
23229 shlibpath_overrides_runpath=no
23230 # This implies no fast_install, which is unacceptable.
23231 # Some rework will be needed to allow for fast_install
23232 # before this can be enabled.
23233 hardcode_into_libs=yes
23235 # Append ld.so.conf contents to the search path
23236 if test -f /etc/ld.so.conf; then
23237 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' ' '`
23238 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23241 # We used to test for /lib/ld.so.1 and disable shared libraries on
23242 # powerpc, because MkLinux only supported shared libraries with the
23243 # GNU dynamic linker. Since this was broken with cross compilers,
23244 # most powerpc-linux boxes support dynamic linking these days and
23245 # people can always --disable-shared, the test was removed, and we
23246 # assume the GNU/Linux dynamic linker is in use.
23247 dynamic_linker='GNU/Linux ld.so'
23254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23255 soname_spec='${libname}${release}${shared_ext}$major'
23256 shlibpath_var=LD_LIBRARY_PATH
23257 shlibpath_overrides_runpath=no
23258 hardcode_into_libs=yes
23259 dynamic_linker='GNU ld.so'
23266 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23269 dynamic_linker='NetBSD (a.out) ld.so'
23271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23272 soname_spec='${libname}${release}${shared_ext}$major'
23273 dynamic_linker='NetBSD ld.elf_so'
23275 shlibpath_var=LD_LIBRARY_PATH
23276 shlibpath_overrides_runpath=yes
23277 hardcode_into_libs=yes
23282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23283 shlibpath_var=LD_LIBRARY_PATH
23284 shlibpath_overrides_runpath=yes
23291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23292 soname_spec='${libname}${release}${shared_ext}$major'
23293 shlibpath_var=LD_LIBRARY_PATH
23294 shlibpath_overrides_runpath=yes
23299 sys_lib_dlsearch_path_spec="/usr/lib"
23301 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23303 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23304 *) need_version=no ;;
23306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23308 shlibpath_var=LD_LIBRARY_PATH
23309 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23311 openbsd2.[89] | openbsd2.[89].*)
23312 shlibpath_overrides_runpath=no
23315 shlibpath_overrides_runpath=yes
23319 shlibpath_overrides_runpath=yes
23324 libname_spec='$name'
23327 library_names_spec='$libname${shared_ext} $libname.a'
23328 dynamic_linker='OS/2 ld.exe'
23329 shlibpath_var=LIBPATH
23332 osf3* | osf4* | osf5*)
23336 soname_spec='${libname}${release}${shared_ext}$major'
23337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23338 shlibpath_var=LD_LIBRARY_PATH
23339 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23340 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23348 soname_spec='${libname}${release}${shared_ext}$major'
23349 shlibpath_var=LD_LIBRARY_PATH
23350 shlibpath_overrides_runpath=yes
23351 hardcode_into_libs=yes
23352 # ldd complains unless libraries are executable
23353 postinstall_cmds='chmod +x $lib'
23358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23359 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23360 shlibpath_var=LD_LIBRARY_PATH
23361 shlibpath_overrides_runpath=yes
23362 if test "$with_gnu_ld" = yes; then
23370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23371 soname_spec='${libname}${release}${shared_ext}$major'
23372 shlibpath_var=LD_LIBRARY_PATH
23373 case $host_vendor in
23375 shlibpath_overrides_runpath=no
23377 export_dynamic_flag_spec='${wl}-Blargedynsym'
23378 runpath_var=LD_RUN_PATH
23386 shlibpath_overrides_runpath=no
23387 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23393 if test -d /usr/nec ;then
23395 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23396 soname_spec='$libname${shared_ext}.$major'
23397 shlibpath_var=LD_LIBRARY_PATH
23401 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23402 version_type=freebsd-elf
23405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23406 soname_spec='${libname}${release}${shared_ext}$major'
23407 shlibpath_var=LD_LIBRARY_PATH
23408 hardcode_into_libs=yes
23409 if test "$with_gnu_ld" = yes; then
23410 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23411 shlibpath_overrides_runpath=no
23413 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23414 shlibpath_overrides_runpath=yes
23417 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23421 sys_lib_dlsearch_path_spec='/usr/lib'
23426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23427 soname_spec='${libname}${release}${shared_ext}$major'
23428 shlibpath_var=LD_LIBRARY_PATH
23435 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23436 echo "${ECHO_T}$dynamic_linker" >&6; }
23437 test "$dynamic_linker" = no && can_build_shared=no
23439 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23440 if test "$GCC" = yes; then
23441 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23444 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23445 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23446 hardcode_action_F77=
23447 if test -n "$hardcode_libdir_flag_spec_F77" || \
23448 test -n "$runpath_var_F77" || \
23449 test "X$hardcode_automatic_F77" = "Xyes" ; then
23451 # We can hardcode non-existant directories.
23452 if test "$hardcode_direct_F77" != no &&
23453 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23454 # have to relink, otherwise we might link with an installed library
23455 # when we should be linking with a yet-to-be-installed one
23456 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23457 test "$hardcode_minus_L_F77" != no; then
23458 # Linking always hardcodes the temporary library directory.
23459 hardcode_action_F77=relink
23461 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23462 hardcode_action_F77=immediate
23465 # We cannot hardcode anything, or else we can only hardcode existing
23467 hardcode_action_F77=unsupported
23469 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23470 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23472 if test "$hardcode_action_F77" = relink; then
23473 # Fast installation is not supported
23474 enable_fast_install=no
23475 elif test "$shlibpath_overrides_runpath" = yes ||
23476 test "$enable_shared" = no; then
23477 # Fast installation is not necessary
23478 enable_fast_install=needless
23482 # The else clause should only fire when bootstrapping the
23483 # libtool distribution, otherwise you forgot to ship ltmain.sh
23484 # with your package, and you will get complaints that there are
23485 # no rules to generate ltmain.sh.
23486 if test -f "$ltmain"; then
23487 # See if we are running on zsh, and set the options which allow our commands through
23488 # without removal of \ escapes.
23489 if test -n "${ZSH_VERSION+set}" ; then
23490 setopt NO_GLOB_SUBST
23492 # Now quote all the things that may contain metacharacters while being
23493 # careful not to overquote the AC_SUBSTed values. We take copies of the
23494 # variables and quote the copies for generation of the libtool script.
23495 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23497 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23498 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23499 deplibs_check_method reload_flag reload_cmds need_locks \
23500 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23501 lt_cv_sys_global_symbol_to_c_name_address \
23502 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23503 old_postinstall_cmds old_postuninstall_cmds \
23507 lt_prog_compiler_wl_F77 \
23508 lt_prog_compiler_pic_F77 \
23509 lt_prog_compiler_static_F77 \
23510 lt_prog_compiler_no_builtin_flag_F77 \
23511 export_dynamic_flag_spec_F77 \
23512 thread_safe_flag_spec_F77 \
23513 whole_archive_flag_spec_F77 \
23514 enable_shared_with_static_runtimes_F77 \
23515 old_archive_cmds_F77 \
23516 old_archive_from_new_cmds_F77 \
23517 predep_objects_F77 \
23518 postdep_objects_F77 \
23521 compiler_lib_search_path_F77 \
23523 archive_expsym_cmds_F77 \
23524 postinstall_cmds_F77 \
23525 postuninstall_cmds_F77 \
23526 old_archive_from_expsyms_cmds_F77 \
23527 allow_undefined_flag_F77 \
23528 no_undefined_flag_F77 \
23529 export_symbols_cmds_F77 \
23530 hardcode_libdir_flag_spec_F77 \
23531 hardcode_libdir_flag_spec_ld_F77 \
23532 hardcode_libdir_separator_F77 \
23533 hardcode_automatic_F77 \
23535 module_expsym_cmds_F77 \
23536 lt_cv_prog_compiler_c_o_F77 \
23537 exclude_expsyms_F77 \
23538 include_expsyms_F77; do
23541 old_archive_cmds_F77 | \
23542 old_archive_from_new_cmds_F77 | \
23543 archive_cmds_F77 | \
23544 archive_expsym_cmds_F77 | \
23545 module_cmds_F77 | \
23546 module_expsym_cmds_F77 | \
23547 old_archive_from_expsyms_cmds_F77 | \
23548 export_symbols_cmds_F77 | \
23549 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23550 postinstall_cmds | postuninstall_cmds | \
23551 old_postinstall_cmds | old_postuninstall_cmds | \
23552 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23553 # Double-quote double-evaled strings.
23554 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23557 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23563 *'\$0 --fallback-echo"')
23564 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23570 cat <<__EOF__ >> "$cfgfile"
23571 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23573 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23575 # Shell to use when invoking shell scripts.
23578 # Whether or not to build shared libraries.
23579 build_libtool_libs=$enable_shared
23581 # Whether or not to build static libraries.
23582 build_old_libs=$enable_static
23584 # Whether or not to add -lc for building shared libraries.
23585 build_libtool_need_lc=$archive_cmds_need_lc_F77
23587 # Whether or not to disallow shared libs when runtime libs are static
23588 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23590 # Whether or not to optimize for fast installation.
23591 fast_install=$enable_fast_install
23594 host_alias=$host_alias
23598 # The build system.
23599 build_alias=$build_alias
23603 # An echo program that does not interpret backslashes.
23608 AR_FLAGS=$lt_AR_FLAGS
23613 # LTCC compiler flags.
23614 LTCFLAGS=$lt_LTCFLAGS
23616 # A language-specific compiler.
23617 CC=$lt_compiler_F77
23619 # Is the compiler the GNU C compiler?
23625 # The linker used to build libraries.
23628 # Whether we need hard or soft links.
23631 # A BSD-compatible nm program.
23634 # A symbol stripping program
23637 # Used to examine libraries when file_magic_cmd begins "file"
23638 MAGIC_CMD=$MAGIC_CMD
23640 # Used on cygwin: DLL creation program.
23643 # Used on cygwin: object dumper.
23646 # Used on cygwin: assembler.
23649 # The name of the directory that contains temporary libtool files.
23652 # How to create reloadable object files.
23653 reload_flag=$lt_reload_flag
23654 reload_cmds=$lt_reload_cmds
23656 # How to pass a linker flag through the compiler.
23657 wl=$lt_lt_prog_compiler_wl_F77
23659 # Object file suffix (normally "o").
23660 objext="$ac_objext"
23662 # Old archive suffix (normally "a").
23665 # Shared library suffix (normally ".so").
23666 shrext_cmds='$shrext_cmds'
23668 # Executable file suffix (normally "").
23671 # Additional compiler flags for building library objects.
23672 pic_flag=$lt_lt_prog_compiler_pic_F77
23675 # What is the maximum length of a command?
23676 max_cmd_len=$lt_cv_sys_max_cmd_len
23678 # Does compiler simultaneously support -c and -o options?
23679 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23681 # Must we lock files when doing compilation?
23682 need_locks=$lt_need_locks
23684 # Do we need the lib prefix for modules?
23685 need_lib_prefix=$need_lib_prefix
23687 # Do we need a version for libraries?
23688 need_version=$need_version
23690 # Whether dlopen is supported.
23691 dlopen_support=$enable_dlopen
23693 # Whether dlopen of programs is supported.
23694 dlopen_self=$enable_dlopen_self
23696 # Whether dlopen of statically linked programs is supported.
23697 dlopen_self_static=$enable_dlopen_self_static
23699 # Compiler flag to prevent dynamic linking.
23700 link_static_flag=$lt_lt_prog_compiler_static_F77
23702 # Compiler flag to turn off builtin functions.
23703 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23705 # Compiler flag to allow reflexive dlopens.
23706 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23708 # Compiler flag to generate shared objects directly from archives.
23709 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23711 # Compiler flag to generate thread-safe objects.
23712 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23714 # Library versioning type.
23715 version_type=$version_type
23717 # Format of library name prefix.
23718 libname_spec=$lt_libname_spec
23720 # List of archive names. First name is the real one, the rest are links.
23721 # The last name is the one that the linker finds with -lNAME.
23722 library_names_spec=$lt_library_names_spec
23724 # The coded name of the library, if different from the real name.
23725 soname_spec=$lt_soname_spec
23727 # Commands used to build and install an old-style archive.
23729 old_archive_cmds=$lt_old_archive_cmds_F77
23730 old_postinstall_cmds=$lt_old_postinstall_cmds
23731 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23733 # Create an old-style archive from a shared archive.
23734 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23736 # Create a temporary old-style archive to link instead of a shared archive.
23737 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23739 # Commands used to build and install a shared archive.
23740 archive_cmds=$lt_archive_cmds_F77
23741 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23742 postinstall_cmds=$lt_postinstall_cmds
23743 postuninstall_cmds=$lt_postuninstall_cmds
23745 # Commands used to build a loadable module (assumed same as above if empty)
23746 module_cmds=$lt_module_cmds_F77
23747 module_expsym_cmds=$lt_module_expsym_cmds_F77
23749 # Commands to strip libraries.
23750 old_striplib=$lt_old_striplib
23751 striplib=$lt_striplib
23753 # Dependencies to place before the objects being linked to create a
23755 predep_objects=$lt_predep_objects_F77
23757 # Dependencies to place after the objects being linked to create a
23759 postdep_objects=$lt_postdep_objects_F77
23761 # Dependencies to place before the objects being linked to create a
23763 predeps=$lt_predeps_F77
23765 # Dependencies to place after the objects being linked to create a
23767 postdeps=$lt_postdeps_F77
23769 # The library search path used internally by the compiler when linking
23770 # a shared library.
23771 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23773 # Method to check whether dependent libraries are shared objects.
23774 deplibs_check_method=$lt_deplibs_check_method
23776 # Command to use when deplibs_check_method == file_magic.
23777 file_magic_cmd=$lt_file_magic_cmd
23779 # Flag that allows shared libraries with undefined symbols to be built.
23780 allow_undefined_flag=$lt_allow_undefined_flag_F77
23782 # Flag that forces no undefined symbols.
23783 no_undefined_flag=$lt_no_undefined_flag_F77
23785 # Commands used to finish a libtool library installation in a directory.
23786 finish_cmds=$lt_finish_cmds
23788 # Same as above, but a single script fragment to be evaled but not shown.
23789 finish_eval=$lt_finish_eval
23791 # Take the output of nm and produce a listing of raw symbols and C names.
23792 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23794 # Transform the output of nm in a proper C declaration
23795 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23797 # Transform the output of nm in a C name address pair
23798 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23800 # This is the shared library runtime path variable.
23801 runpath_var=$runpath_var
23803 # This is the shared library path variable.
23804 shlibpath_var=$shlibpath_var
23806 # Is shlibpath searched before the hard-coded library search path?
23807 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23809 # How to hardcode a shared library path into an executable.
23810 hardcode_action=$hardcode_action_F77
23812 # Whether we should hardcode library paths into libraries.
23813 hardcode_into_libs=$hardcode_into_libs
23815 # Flag to hardcode \$libdir into a binary during linking.
23816 # This must work even if \$libdir does not exist.
23817 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23819 # If ld is used when linking, flag to hardcode \$libdir into
23820 # a binary during linking. This must work even if \$libdir does
23822 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23824 # Whether we need a single -rpath flag with a separated argument.
23825 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23827 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23828 # resulting binary.
23829 hardcode_direct=$hardcode_direct_F77
23831 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23832 # resulting binary.
23833 hardcode_minus_L=$hardcode_minus_L_F77
23835 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23836 # the resulting binary.
23837 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23839 # Set to yes if building a shared library automatically hardcodes DIR into the library
23840 # and all subsequent libraries and executables linked against it.
23841 hardcode_automatic=$hardcode_automatic_F77
23843 # Variables whose values should be saved in libtool wrapper scripts and
23844 # restored at relink time.
23845 variables_saved_for_relink="$variables_saved_for_relink"
23847 # Whether libtool must link a program against all its dependency libraries.
23848 link_all_deplibs=$link_all_deplibs_F77
23850 # Compile-time system search path for libraries
23851 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23853 # Run-time system search path for libraries
23854 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23856 # Fix the shell variable \$srcfile for the compiler.
23857 fix_srcfile_path="$fix_srcfile_path_F77"
23859 # Set to yes if exported symbols are required.
23860 always_export_symbols=$always_export_symbols_F77
23862 # The commands to list exported symbols.
23863 export_symbols_cmds=$lt_export_symbols_cmds_F77
23865 # The commands to extract the exported symbol list from a shared archive.
23866 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23868 # Symbols that should not be listed in the preloaded symbols.
23869 exclude_expsyms=$lt_exclude_expsyms_F77
23871 # Symbols that must always be exported.
23872 include_expsyms=$lt_include_expsyms_F77
23874 # ### END LIBTOOL TAG CONFIG: $tagname
23880 # If there is no Makefile yet, we rely on a make rule to execute
23881 # `config.status --recheck' to rerun these tests and create the
23882 # libtool script then.
23883 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23884 if test -f "$ltmain_in"; then
23885 test -f Makefile && make "$ltmain"
23891 ac_cpp='$CPP $CPPFLAGS'
23892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23904 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23906 ac_cpp='$CPP $CPPFLAGS'
23907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23912 # Source file extension for Java test sources.
23915 # Object file extension for compiled Java test sources.
23919 # Code to be used in simple compile tests
23920 lt_simple_compile_test_code="class foo {}\n"
23922 # Code to be used in simple link tests
23923 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23925 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23927 # If no C compiler was specified, use CC.
23930 # If no C compiler flags were specified, use CFLAGS.
23931 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23933 # Allow CC to be a program name with arguments.
23937 # save warnings/boilerplate of simple test code
23938 ac_outfile=conftest.$ac_objext
23939 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23940 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23941 _lt_compiler_boilerplate=`cat conftest.err`
23944 ac_outfile=conftest.$ac_objext
23945 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23946 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23947 _lt_linker_boilerplate=`cat conftest.err`
23951 # Allow CC to be a program name with arguments.
23956 for cc_temp in $compiler""; do
23958 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23959 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23964 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23967 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23968 archive_cmds_need_lc_GCJ=no
23970 old_archive_cmds_GCJ=$old_archive_cmds
23973 lt_prog_compiler_no_builtin_flag_GCJ=
23975 if test "$GCC" = yes; then
23976 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23979 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23980 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23981 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23982 echo $ECHO_N "(cached) $ECHO_C" >&6
23984 lt_cv_prog_compiler_rtti_exceptions=no
23985 ac_outfile=conftest.$ac_objext
23986 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23987 lt_compiler_flag="-fno-rtti -fno-exceptions"
23988 # Insert the option either (1) after the last *FLAGS variable, or
23989 # (2) before a word containing "conftest.", or (3) at the end.
23990 # Note that $ac_compile itself does not contain backslashes and begins
23991 # with a dollar sign (not a hyphen), so the echo should work correctly.
23992 # The option is referenced via a variable to avoid confusing sed.
23993 lt_compile=`echo "$ac_compile" | $SED \
23994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23996 -e 's:$: $lt_compiler_flag:'`
23997 (eval echo "\"\$as_me:23997: $lt_compile\"" >&5)
23998 (eval "$lt_compile" 2>conftest.err)
24000 cat conftest.err >&5
24001 echo "$as_me:24001: \$? = $ac_status" >&5
24002 if (exit $ac_status) && test -s "$ac_outfile"; then
24003 # The compiler can only warn and ignore the option if not recognized
24004 # So say no if there are warnings other than the usual output.
24005 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24007 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24008 lt_cv_prog_compiler_rtti_exceptions=yes
24014 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24015 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24017 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24018 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24025 lt_prog_compiler_wl_GCJ=
24026 lt_prog_compiler_pic_GCJ=
24027 lt_prog_compiler_static_GCJ=
24029 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24030 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24032 if test "$GCC" = yes; then
24033 lt_prog_compiler_wl_GCJ='-Wl,'
24034 lt_prog_compiler_static_GCJ='-static'
24038 # All AIX code is PIC.
24039 if test "$host_cpu" = ia64; then
24040 # AIX 5 now supports IA64 processor
24041 lt_prog_compiler_static_GCJ='-Bstatic'
24046 # FIXME: we need at least 68020 code to build shared libraries, but
24047 # adding the `-m68020' flag to GCC prevents building anything better,
24049 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24052 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24053 # PIC is the default for these OSes.
24056 mingw* | pw32* | os2*)
24057 # This hack is so that the source file can tell whether it is being
24058 # built for inclusion in a dll (and should export symbols for example).
24059 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24062 darwin* | rhapsody*)
24063 # PIC is the default on this platform
24064 # Common symbols not allowed in MH_DYLIB files
24065 lt_prog_compiler_pic_GCJ='-fno-common'
24069 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24070 # Instead, we relocate shared libraries at runtime.
24074 # Just because we use GCC doesn't mean we suddenly get shared libraries
24075 # on systems that don't support them.
24076 lt_prog_compiler_can_build_shared_GCJ=no
24081 if test -d /usr/nec; then
24082 lt_prog_compiler_pic_GCJ=-Kconform_pic
24087 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24088 # not for PA HP-UX.
24094 lt_prog_compiler_pic_GCJ='-fPIC'
24100 lt_prog_compiler_pic_GCJ='-fPIC'
24104 # PORTME Check for flag to pass linker flags through the system compiler.
24107 lt_prog_compiler_wl_GCJ='-Wl,'
24108 if test "$host_cpu" = ia64; then
24109 # AIX 5 now supports IA64 processor
24110 lt_prog_compiler_static_GCJ='-Bstatic'
24112 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24116 # PIC is the default on this platform
24117 # Common symbols not allowed in MH_DYLIB files
24118 case $cc_basename in
24120 lt_prog_compiler_pic_GCJ='-qnocommon'
24121 lt_prog_compiler_wl_GCJ='-Wl,'
24126 mingw* | pw32* | os2*)
24127 # This hack is so that the source file can tell whether it is being
24128 # built for inclusion in a dll (and should export symbols for example).
24129 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24132 hpux9* | hpux10* | hpux11*)
24133 lt_prog_compiler_wl_GCJ='-Wl,'
24134 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24135 # not for PA HP-UX.
24141 lt_prog_compiler_pic_GCJ='+Z'
24144 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24145 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24148 irix5* | irix6* | nonstopux*)
24149 lt_prog_compiler_wl_GCJ='-Wl,'
24150 # PIC (with -KPIC) is the default.
24151 lt_prog_compiler_static_GCJ='-non_shared'
24155 lt_prog_compiler_pic_GCJ='-KPIC'
24156 lt_prog_compiler_static_GCJ='-Bstatic'
24160 case $cc_basename in
24162 lt_prog_compiler_wl_GCJ='-Wl,'
24163 lt_prog_compiler_pic_GCJ='-KPIC'
24164 lt_prog_compiler_static_GCJ='-static'
24166 pgcc* | pgf77* | pgf90* | pgf95*)
24167 # Portland Group compilers (*not* the Pentium gcc compiler,
24168 # which looks to be a dead project)
24169 lt_prog_compiler_wl_GCJ='-Wl,'
24170 lt_prog_compiler_pic_GCJ='-fpic'
24171 lt_prog_compiler_static_GCJ='-Bstatic'
24174 lt_prog_compiler_wl_GCJ='-Wl,'
24175 # All Alpha code is PIC.
24176 lt_prog_compiler_static_GCJ='-non_shared'
24181 osf3* | osf4* | osf5*)
24182 lt_prog_compiler_wl_GCJ='-Wl,'
24183 # All OSF/1 code is PIC.
24184 lt_prog_compiler_static_GCJ='-non_shared'
24188 lt_prog_compiler_pic_GCJ='-KPIC'
24189 lt_prog_compiler_static_GCJ='-Bstatic'
24190 case $cc_basename in
24191 f77* | f90* | f95*)
24192 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24194 lt_prog_compiler_wl_GCJ='-Wl,';;
24199 lt_prog_compiler_wl_GCJ='-Qoption ld '
24200 lt_prog_compiler_pic_GCJ='-PIC'
24201 lt_prog_compiler_static_GCJ='-Bstatic'
24204 sysv4 | sysv4.2uw2* | sysv4.3*)
24205 lt_prog_compiler_wl_GCJ='-Wl,'
24206 lt_prog_compiler_pic_GCJ='-KPIC'
24207 lt_prog_compiler_static_GCJ='-Bstatic'
24211 if test -d /usr/nec ;then
24212 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24213 lt_prog_compiler_static_GCJ='-Bstatic'
24217 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24218 lt_prog_compiler_wl_GCJ='-Wl,'
24219 lt_prog_compiler_pic_GCJ='-KPIC'
24220 lt_prog_compiler_static_GCJ='-Bstatic'
24224 lt_prog_compiler_wl_GCJ='-Wl,'
24225 lt_prog_compiler_can_build_shared_GCJ=no
24229 lt_prog_compiler_pic_GCJ='-pic'
24230 lt_prog_compiler_static_GCJ='-Bstatic'
24234 lt_prog_compiler_can_build_shared_GCJ=no
24239 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24240 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24243 # Check to make sure the PIC flag actually works.
24245 if test -n "$lt_prog_compiler_pic_GCJ"; then
24247 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24248 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24249 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24250 echo $ECHO_N "(cached) $ECHO_C" >&6
24252 lt_prog_compiler_pic_works_GCJ=no
24253 ac_outfile=conftest.$ac_objext
24254 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24255 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24256 # Insert the option either (1) after the last *FLAGS variable, or
24257 # (2) before a word containing "conftest.", or (3) at the end.
24258 # Note that $ac_compile itself does not contain backslashes and begins
24259 # with a dollar sign (not a hyphen), so the echo should work correctly.
24260 # The option is referenced via a variable to avoid confusing sed.
24261 lt_compile=`echo "$ac_compile" | $SED \
24262 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24264 -e 's:$: $lt_compiler_flag:'`
24265 (eval echo "\"\$as_me:24265: $lt_compile\"" >&5)
24266 (eval "$lt_compile" 2>conftest.err)
24268 cat conftest.err >&5
24269 echo "$as_me:24269: \$? = $ac_status" >&5
24270 if (exit $ac_status) && test -s "$ac_outfile"; then
24271 # The compiler can only warn and ignore the option if not recognized
24272 # So say no if there are warnings other than the usual output.
24273 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24274 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24275 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24276 lt_prog_compiler_pic_works_GCJ=yes
24282 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24283 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24285 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24286 case $lt_prog_compiler_pic_GCJ in
24288 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24291 lt_prog_compiler_pic_GCJ=
24292 lt_prog_compiler_can_build_shared_GCJ=no
24297 # For platforms which do not support PIC, -DPIC is meaningless:
24299 lt_prog_compiler_pic_GCJ=
24302 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24307 # Check to make sure the static flag actually works.
24309 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24310 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24311 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24312 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24313 echo $ECHO_N "(cached) $ECHO_C" >&6
24315 lt_prog_compiler_static_works_GCJ=no
24316 save_LDFLAGS="$LDFLAGS"
24317 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24318 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24319 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24320 # The linker can only warn and ignore the option if not recognized
24321 # So say no if there are warnings
24322 if test -s conftest.err; then
24323 # Append any errors to the config.log.
24324 cat conftest.err 1>&5
24325 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24327 if diff conftest.exp conftest.er2 >/dev/null; then
24328 lt_prog_compiler_static_works_GCJ=yes
24331 lt_prog_compiler_static_works_GCJ=yes
24335 LDFLAGS="$save_LDFLAGS"
24338 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24339 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24341 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24344 lt_prog_compiler_static_GCJ=
24348 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24349 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24350 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24351 echo $ECHO_N "(cached) $ECHO_C" >&6
24353 lt_cv_prog_compiler_c_o_GCJ=no
24354 $rm -r conftest 2>/dev/null
24358 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24360 lt_compiler_flag="-o out/conftest2.$ac_objext"
24361 # Insert the option either (1) after the last *FLAGS variable, or
24362 # (2) before a word containing "conftest.", or (3) at the end.
24363 # Note that $ac_compile itself does not contain backslashes and begins
24364 # with a dollar sign (not a hyphen), so the echo should work correctly.
24365 lt_compile=`echo "$ac_compile" | $SED \
24366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24368 -e 's:$: $lt_compiler_flag:'`
24369 (eval echo "\"\$as_me:24369: $lt_compile\"" >&5)
24370 (eval "$lt_compile" 2>out/conftest.err)
24372 cat out/conftest.err >&5
24373 echo "$as_me:24373: \$? = $ac_status" >&5
24374 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24376 # The compiler can only warn and ignore the option if not recognized
24377 # So say no if there are warnings
24378 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24379 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24380 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24381 lt_cv_prog_compiler_c_o_GCJ=yes
24386 # SGI C++ compiler will create directory out/ii_files/ for
24387 # template instantiation
24388 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24389 $rm out/* && rmdir out
24395 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24396 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24399 hard_links="nottested"
24400 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24401 # do not overwrite the value of need_locks provided by the user
24402 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24403 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24406 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24408 ln conftest.a conftest.b 2>&5 || hard_links=no
24409 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24410 { echo "$as_me:$LINENO: result: $hard_links" >&5
24411 echo "${ECHO_T}$hard_links" >&6; }
24412 if test "$hard_links" = no; then
24413 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24414 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24421 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24422 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24425 allow_undefined_flag_GCJ=
24426 enable_shared_with_static_runtimes_GCJ=no
24428 archive_expsym_cmds_GCJ=
24429 old_archive_From_new_cmds_GCJ=
24430 old_archive_from_expsyms_cmds_GCJ=
24431 export_dynamic_flag_spec_GCJ=
24432 whole_archive_flag_spec_GCJ=
24433 thread_safe_flag_spec_GCJ=
24434 hardcode_libdir_flag_spec_GCJ=
24435 hardcode_libdir_flag_spec_ld_GCJ=
24436 hardcode_libdir_separator_GCJ=
24437 hardcode_direct_GCJ=no
24438 hardcode_minus_L_GCJ=no
24439 hardcode_shlibpath_var_GCJ=unsupported
24440 link_all_deplibs_GCJ=unknown
24441 hardcode_automatic_GCJ=no
24443 module_expsym_cmds_GCJ=
24444 always_export_symbols_GCJ=no
24445 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24446 # include_expsyms should be a list of space-separated symbols to be *always*
24447 # included in the symbol list
24448 include_expsyms_GCJ=
24449 # exclude_expsyms can be an extended regexp of symbols to exclude
24450 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24451 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24452 # as well as any symbol that contains `d'.
24453 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24454 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24455 # platforms (ab)use it in PIC code, but their linkers get confused if
24456 # the symbol is explicitly referenced. Since portable code cannot
24457 # rely on this symbol name, it's probably fine to never include it in
24458 # preloaded symbol tables.
24459 extract_expsyms_cmds=
24460 # Just being paranoid about ensuring that cc_basename is set.
24461 for cc_temp in $compiler""; do
24463 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24464 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24469 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24472 cygwin* | mingw* | pw32*)
24473 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24474 # When not using gcc, we currently assume that we are using
24475 # Microsoft Visual C++.
24476 if test "$GCC" != yes; then
24481 # we just hope/assume this is gcc and not c89 (= MSVC++)
24490 if test "$with_gnu_ld" = yes; then
24491 # If archive_cmds runs LD, not CC, wlarc should be empty
24494 # Set some defaults for GNU ld with shared library support. These
24495 # are reset later if shared libraries are not supported. Putting them
24496 # here allows them to be overridden if necessary.
24497 runpath_var=LD_RUN_PATH
24498 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24499 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24500 # ancient GNU ld didn't support --whole-archive et. al.
24501 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24502 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24504 whole_archive_flag_spec_GCJ=
24506 supports_anon_versioning=no
24507 case `$LD -v 2>/dev/null` in
24508 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24509 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24510 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24511 *\ 2.11.*) ;; # other 2.11 versions
24512 *) supports_anon_versioning=yes ;;
24515 # See if GNU ld supports shared libraries.
24517 aix3* | aix4* | aix5*)
24518 # On AIX/PPC, the GNU linker is very broken
24519 if test "$host_cpu" != ia64; then
24523 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24524 *** to be unable to reliably create shared libraries on AIX.
24525 *** Therefore, libtool is disabling shared libraries support. If you
24526 *** really care for shared libraries, you may want to modify your PATH
24527 *** so that a non-GNU linker is found, and then restart.
24534 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)'
24535 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24536 hardcode_minus_L_GCJ=yes
24538 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24539 # that the semantics of dynamic libraries on AmigaOS, at least up
24540 # to version 4, is to share data among multiple programs linked
24541 # with the same dynamic library. Since this doesn't match the
24542 # behavior of shared libraries on other platforms, we can't use
24548 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24549 allow_undefined_flag_GCJ=unsupported
24550 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24551 # support --undefined. This deserves some investigation. FIXME
24552 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24558 cygwin* | mingw* | pw32*)
24559 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24560 # as there is no search path for DLLs.
24561 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24562 allow_undefined_flag_GCJ=unsupported
24563 always_export_symbols_GCJ=no
24564 enable_shared_with_static_runtimes_GCJ=yes
24565 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24567 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24568 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24569 # If the export-symbols file already is a .def file (1st line
24570 # is EXPORTS), use it as is; otherwise, prepend...
24571 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24572 cp $export_symbols $output_objdir/$soname.def;
24574 echo EXPORTS > $output_objdir/$soname.def;
24575 cat $export_symbols >> $output_objdir/$soname.def;
24577 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24584 hardcode_direct_GCJ=no
24585 hardcode_shlibpath_var_GCJ=no
24586 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24587 export_dynamic_flag_spec_GCJ='${wl}-E'
24588 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24589 # Instead, shared libraries are loaded at an image base (0x10000000 by
24590 # default) and relocated if they conflict, which is a slow very memory
24591 # consuming and fragmenting process. To avoid this, we pick a random,
24592 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24593 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24594 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'
24595 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'
24599 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24601 case $cc_basename,$host_cpu in
24602 pgcc*) # Portland Group C compiler
24603 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'
24604 tmp_addflag=' $pic_flag'
24606 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24607 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'
24608 tmp_addflag=' $pic_flag -Mnomain' ;;
24609 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24610 tmp_addflag=' -i_dynamic' ;;
24611 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24612 tmp_addflag=' -i_dynamic -nofor_main' ;;
24613 ifc* | ifort*) # Intel Fortran compiler
24614 tmp_addflag=' -nofor_main' ;;
24616 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24618 if test $supports_anon_versioning = yes; then
24619 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24620 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24621 $echo "local: *; };" >> $output_objdir/$libname.ver~
24622 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24630 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24631 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24634 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24635 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24640 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24644 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24645 *** create shared libraries on Solaris systems. Therefore, libtool
24646 *** is disabling shared libraries support. We urge you to upgrade GNU
24647 *** binutils to release 2.9.1 or newer. Another option is to modify
24648 *** your PATH or compiler configuration so that the native linker is
24649 *** used, and then restart.
24652 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24653 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24654 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24660 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24661 case `$LD -v 2>&1` in
24662 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24666 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24667 *** reliably create shared libraries on SCO systems. Therefore, libtool
24668 *** is disabling shared libraries support. We urge you to upgrade GNU
24669 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24670 *** your PATH or compiler configuration so that the native linker is
24671 *** used, and then restart.
24676 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24677 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24678 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24679 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24688 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24690 hardcode_direct_GCJ=yes
24691 hardcode_shlibpath_var_GCJ=no
24695 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24696 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24697 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24704 if test "$ld_shlibs_GCJ" = no; then
24706 hardcode_libdir_flag_spec_GCJ=
24707 export_dynamic_flag_spec_GCJ=
24708 whole_archive_flag_spec_GCJ=
24711 # PORTME fill in a description of your system's linker (not GNU ld)
24714 allow_undefined_flag_GCJ=unsupported
24715 always_export_symbols_GCJ=yes
24716 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'
24717 # Note: this linker hardcodes the directories in LIBPATH if there
24718 # are no directories specified by -L.
24719 hardcode_minus_L_GCJ=yes
24720 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24721 # Neither direct hardcoding nor static linking is supported with a
24723 hardcode_direct_GCJ=unsupported
24728 if test "$host_cpu" = ia64; then
24729 # On IA64, the linker does run time linking by default, so we don't
24730 # have to do anything special.
24731 aix_use_runtimelinking=no
24732 exp_sym_flag='-Bexport'
24735 # If we're using GNU nm, then we don't want the "-C" option.
24736 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24737 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24738 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'
24740 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'
24742 aix_use_runtimelinking=no
24744 # Test if we are trying to use run time linking or normal
24745 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24746 # need to do runtime linking.
24747 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24748 for ld_flag in $LDFLAGS; do
24749 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24750 aix_use_runtimelinking=yes
24757 exp_sym_flag='-bexport'
24758 no_entry_flag='-bnoentry'
24761 # When large executables or shared objects are built, AIX ld can
24762 # have problems creating the table of contents. If linking a library
24763 # or program results in "error TOC overflow" add -mminimal-toc to
24764 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24765 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24767 archive_cmds_GCJ=''
24768 hardcode_direct_GCJ=yes
24769 hardcode_libdir_separator_GCJ=':'
24770 link_all_deplibs_GCJ=yes
24772 if test "$GCC" = yes; then
24773 case $host_os in aix4.[012]|aix4.[012].*)
24774 # We only want to do this on AIX 4.2 and lower, the check
24775 # below for broken collect2 doesn't work under 4.3+
24776 collect2name=`${CC} -print-prog-name=collect2`
24777 if test -f "$collect2name" && \
24778 strings "$collect2name" | grep resolve_lib_name >/dev/null
24780 # We have reworked collect2
24781 hardcode_direct_GCJ=yes
24783 # We have old collect2
24784 hardcode_direct_GCJ=unsupported
24785 # It fails to find uninstalled libraries when the uninstalled
24786 # path is not listed in the libpath. Setting hardcode_minus_L
24787 # to unsupported forces relinking
24788 hardcode_minus_L_GCJ=yes
24789 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24790 hardcode_libdir_separator_GCJ=
24794 shared_flag='-shared'
24795 if test "$aix_use_runtimelinking" = yes; then
24796 shared_flag="$shared_flag "'${wl}-G'
24800 if test "$host_cpu" = ia64; then
24801 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24802 # chokes on -Wl,-G. The following line is correct:
24805 if test "$aix_use_runtimelinking" = yes; then
24806 shared_flag='${wl}-G'
24808 shared_flag='${wl}-bM:SRE'
24813 # It seems that -bexpall does not export symbols beginning with
24814 # underscore (_), so it is better to generate a list of symbols to export.
24815 always_export_symbols_GCJ=yes
24816 if test "$aix_use_runtimelinking" = yes; then
24817 # Warning - without using the other runtime loading flags (-brtl),
24818 # -berok will link without error, but may produce a broken library.
24819 allow_undefined_flag_GCJ='-berok'
24820 # Determine the default libpath from the value encoded in an empty executable.
24821 cat >conftest.$ac_ext <<_ACEOF
24824 cat confdefs.h >>conftest.$ac_ext
24825 cat >>conftest.$ac_ext <<_ACEOF
24826 /* end confdefs.h. */
24836 rm -f conftest.$ac_objext conftest$ac_exeext
24837 if { (ac_try="$ac_link"
24838 case "(($ac_try" in
24839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24840 *) ac_try_echo=$ac_try;;
24842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24843 (eval "$ac_link") 2>conftest.er1
24845 grep -v '^ *+' conftest.er1 >conftest.err
24847 cat conftest.err >&5
24848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849 (exit $ac_status); } &&
24850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24851 { (case "(($ac_try" in
24852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24853 *) ac_try_echo=$ac_try;;
24855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24856 (eval "$ac_try") 2>&5
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); }; } &&
24860 { ac_try='test -s conftest$ac_exeext'
24861 { (case "(($ac_try" in
24862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24863 *) ac_try_echo=$ac_try;;
24865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24866 (eval "$ac_try") 2>&5
24868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869 (exit $ac_status); }; }; then
24871 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24873 # Check for a 64-bit object if we didn't find anything.
24874 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; }
24877 echo "$as_me: failed program was:" >&5
24878 sed 's/^/| /' conftest.$ac_ext >&5
24883 rm -f core conftest.err conftest.$ac_objext \
24884 conftest$ac_exeext conftest.$ac_ext
24885 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24887 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24888 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"
24890 if test "$host_cpu" = ia64; then
24891 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24892 allow_undefined_flag_GCJ="-z nodefs"
24893 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"
24895 # Determine the default libpath from the value encoded in an empty executable.
24896 cat >conftest.$ac_ext <<_ACEOF
24899 cat confdefs.h >>conftest.$ac_ext
24900 cat >>conftest.$ac_ext <<_ACEOF
24901 /* end confdefs.h. */
24911 rm -f conftest.$ac_objext conftest$ac_exeext
24912 if { (ac_try="$ac_link"
24913 case "(($ac_try" in
24914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24915 *) ac_try_echo=$ac_try;;
24917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24918 (eval "$ac_link") 2>conftest.er1
24920 grep -v '^ *+' conftest.er1 >conftest.err
24922 cat conftest.err >&5
24923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924 (exit $ac_status); } &&
24925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24926 { (case "(($ac_try" in
24927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24928 *) ac_try_echo=$ac_try;;
24930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24931 (eval "$ac_try") 2>&5
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); }; } &&
24935 { ac_try='test -s conftest$ac_exeext'
24936 { (case "(($ac_try" in
24937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24938 *) ac_try_echo=$ac_try;;
24940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24941 (eval "$ac_try") 2>&5
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); }; }; then
24946 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24948 # Check for a 64-bit object if we didn't find anything.
24949 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; }
24952 echo "$as_me: failed program was:" >&5
24953 sed 's/^/| /' conftest.$ac_ext >&5
24958 rm -f core conftest.err conftest.$ac_objext \
24959 conftest$ac_exeext conftest.$ac_ext
24960 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24962 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24963 # Warning - without using the other run time loading flags,
24964 # -berok will link without error, but may produce a broken library.
24965 no_undefined_flag_GCJ=' ${wl}-bernotok'
24966 allow_undefined_flag_GCJ=' ${wl}-berok'
24967 # Exported symbols can be pulled into shared objects from archives
24968 whole_archive_flag_spec_GCJ='$convenience'
24969 archive_cmds_need_lc_GCJ=yes
24970 # This is similar to how AIX traditionally builds its shared libraries.
24971 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'
24977 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)'
24978 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24979 hardcode_minus_L_GCJ=yes
24980 # see comment about different semantics on the GNU ld section
24985 export_dynamic_flag_spec_GCJ=-rdynamic
24988 cygwin* | mingw* | pw32*)
24989 # When not using gcc, we currently assume that we are using
24990 # Microsoft Visual C++.
24991 # hardcode_libdir_flag_spec is actually meaningless, as there is
24992 # no search path for DLLs.
24993 hardcode_libdir_flag_spec_GCJ=' '
24994 allow_undefined_flag_GCJ=unsupported
24995 # Tell ltmain to make .lib files, not .a files.
24997 # Tell ltmain to make .dll files, not .so files.
24999 # FIXME: Setting linknames here is a bad hack.
25000 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25001 # The linker will automatically build a .lib file if we build a DLL.
25002 old_archive_From_new_cmds_GCJ='true'
25003 # FIXME: Should let the user specify the lib program.
25004 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25005 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25006 enable_shared_with_static_runtimes_GCJ=yes
25009 darwin* | rhapsody*)
25011 rhapsody* | darwin1.[012])
25012 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25015 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25016 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25018 case ${MACOSX_DEPLOYMENT_TARGET} in
25020 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25023 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25029 archive_cmds_need_lc_GCJ=no
25030 hardcode_direct_GCJ=no
25031 hardcode_automatic_GCJ=yes
25032 hardcode_shlibpath_var_GCJ=unsupported
25033 whole_archive_flag_spec_GCJ=''
25034 link_all_deplibs_GCJ=yes
25035 if test "$GCC" = yes ; then
25036 output_verbose_link_cmd='echo'
25037 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25038 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25039 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25040 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}'
25041 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}'
25043 case $cc_basename in
25045 output_verbose_link_cmd='echo'
25046 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25047 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25048 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25049 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}'
25050 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}'
25060 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25061 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25062 hardcode_shlibpath_var_GCJ=no
25069 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25070 # support. Future versions do this automatically, but an explicit c++rt0.o
25071 # does not break anything, and helps significantly (at the cost of a little
25074 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25075 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25076 hardcode_direct_GCJ=yes
25077 hardcode_shlibpath_var_GCJ=no
25080 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25082 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25083 hardcode_direct_GCJ=yes
25084 hardcode_minus_L_GCJ=yes
25085 hardcode_shlibpath_var_GCJ=no
25088 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25089 freebsd* | kfreebsd*-gnu | dragonfly*)
25090 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25091 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25092 hardcode_direct_GCJ=yes
25093 hardcode_shlibpath_var_GCJ=no
25097 if test "$GCC" = yes; then
25098 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'
25100 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'
25102 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25103 hardcode_libdir_separator_GCJ=:
25104 hardcode_direct_GCJ=yes
25106 # hardcode_minus_L: Not really in the search PATH,
25107 # but as the default location of the library.
25108 hardcode_minus_L_GCJ=yes
25109 export_dynamic_flag_spec_GCJ='${wl}-E'
25113 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25114 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25116 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25118 if test "$with_gnu_ld" = no; then
25119 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25120 hardcode_libdir_separator_GCJ=:
25122 hardcode_direct_GCJ=yes
25123 export_dynamic_flag_spec_GCJ='${wl}-E'
25125 # hardcode_minus_L: Not really in the search PATH,
25126 # but as the default location of the library.
25127 hardcode_minus_L_GCJ=yes
25132 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25135 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25138 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25141 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25147 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25150 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25153 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25157 if test "$with_gnu_ld" = no; then
25158 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25159 hardcode_libdir_separator_GCJ=:
25163 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25164 hardcode_direct_GCJ=no
25165 hardcode_shlibpath_var_GCJ=no
25168 hardcode_direct_GCJ=yes
25169 export_dynamic_flag_spec_GCJ='${wl}-E'
25171 # hardcode_minus_L: Not really in the search PATH,
25172 # but as the default location of the library.
25173 hardcode_minus_L_GCJ=yes
25179 irix5* | irix6* | nonstopux*)
25180 if test "$GCC" = yes; then
25181 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'
25183 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'
25184 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25186 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25187 hardcode_libdir_separator_GCJ=:
25188 link_all_deplibs_GCJ=yes
25192 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25193 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25195 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25197 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25198 hardcode_direct_GCJ=yes
25199 hardcode_shlibpath_var_GCJ=no
25203 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25204 hardcode_direct_GCJ=yes
25205 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25206 hardcode_libdir_separator_GCJ=:
25207 hardcode_shlibpath_var_GCJ=no
25211 hardcode_direct_GCJ=yes
25212 hardcode_shlibpath_var_GCJ=no
25213 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25214 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25215 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25216 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25217 export_dynamic_flag_spec_GCJ='${wl}-E'
25220 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25221 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25222 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25225 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25226 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25233 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25234 hardcode_minus_L_GCJ=yes
25235 allow_undefined_flag_GCJ=unsupported
25236 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'
25237 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25241 if test "$GCC" = yes; then
25242 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25243 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'
25245 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25246 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'
25248 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25249 hardcode_libdir_separator_GCJ=:
25252 osf4* | osf5*) # as osf3* with the addition of -msym flag
25253 if test "$GCC" = yes; then
25254 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25255 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'
25256 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25258 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25259 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'
25260 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~
25261 $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'
25263 # Both c and cxx compiler support -rpath directly
25264 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25266 hardcode_libdir_separator_GCJ=:
25270 no_undefined_flag_GCJ=' -z text'
25271 if test "$GCC" = yes; then
25273 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25274 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25275 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25278 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25279 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25280 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25282 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25283 hardcode_shlibpath_var_GCJ=no
25285 solaris2.[0-5] | solaris2.[0-5].*) ;;
25287 # The compiler driver will combine linker options so we
25288 # cannot just pass the convience library names through
25289 # without $wl, iff we do not link with $LD.
25290 # Luckily, gcc supports the same syntax we need for Sun Studio.
25291 # Supported since Solaris 2.6 (maybe 2.5.1?)
25294 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25296 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' ;;
25299 link_all_deplibs_GCJ=yes
25303 if test "x$host_vendor" = xsequent; then
25304 # Use $CC to link under sequent, because it throws in some extra .o
25305 # files that make .init and .fini sections work.
25306 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25308 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25310 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25311 hardcode_direct_GCJ=yes
25312 hardcode_minus_L_GCJ=yes
25313 hardcode_shlibpath_var_GCJ=no
25317 case $host_vendor in
25319 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25320 hardcode_direct_GCJ=yes # is this really true???
25323 ## LD is ld it makes a PLAMLIB
25324 ## CC just makes a GrossModule.
25325 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25326 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25327 hardcode_direct_GCJ=no
25330 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25331 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25334 runpath_var='LD_RUN_PATH'
25335 hardcode_shlibpath_var_GCJ=no
25339 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25340 hardcode_shlibpath_var_GCJ=no
25341 export_dynamic_flag_spec_GCJ='-Bexport'
25345 if test -d /usr/nec; then
25346 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25347 hardcode_shlibpath_var_GCJ=no
25348 runpath_var=LD_RUN_PATH
25349 hardcode_runpath_var=yes
25354 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25355 no_undefined_flag_GCJ='${wl}-z,text'
25356 archive_cmds_need_lc_GCJ=no
25357 hardcode_shlibpath_var_GCJ=no
25358 runpath_var='LD_RUN_PATH'
25360 if test "$GCC" = yes; then
25361 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25362 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25364 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25365 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25369 sysv5* | sco3.2v5* | sco5v6*)
25370 # Note: We can NOT use -z defs as we might desire, because we do not
25371 # link with -lc, and that would cause any symbols used from libc to
25372 # always be unresolved, which means just about no library would
25373 # ever link correctly. If we're not using GNU ld we use -z text
25374 # though, which does catch some bad symbols but isn't as heavy-handed
25376 no_undefined_flag_GCJ='${wl}-z,text'
25377 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25378 archive_cmds_need_lc_GCJ=no
25379 hardcode_shlibpath_var_GCJ=no
25380 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25381 hardcode_libdir_separator_GCJ=':'
25382 link_all_deplibs_GCJ=yes
25383 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25384 runpath_var='LD_RUN_PATH'
25386 if test "$GCC" = yes; then
25387 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25388 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25390 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25391 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25396 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25397 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25398 hardcode_shlibpath_var_GCJ=no
25407 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25408 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25409 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25412 # Do we need to explicitly link libc?
25414 case "x$archive_cmds_need_lc_GCJ" in
25416 # Assume -lc should be added
25417 archive_cmds_need_lc_GCJ=yes
25419 if test "$enable_shared" = yes && test "$GCC" = yes; then
25420 case $archive_cmds_GCJ in
25422 # FIXME: we may have to deal with multi-command sequences.
25425 # Test whether the compiler implicitly links with -lc since on some
25426 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25427 # to ld, don't add -lc before -lgcc.
25428 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25429 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25431 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25434 (eval $ac_compile) 2>&5
25436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437 (exit $ac_status); } 2>conftest.err; then
25440 libobjs=conftest.$ac_objext
25442 wl=$lt_prog_compiler_wl_GCJ
25443 pic_flag=$lt_prog_compiler_pic_GCJ
25449 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25450 allow_undefined_flag_GCJ=
25451 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25452 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455 (exit $ac_status); }
25457 archive_cmds_need_lc_GCJ=no
25459 archive_cmds_need_lc_GCJ=yes
25461 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25463 cat conftest.err 1>&5
25466 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25467 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25474 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25475 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25476 library_names_spec=
25477 libname_spec='lib$name'
25481 postuninstall_cmds=
25485 shlibpath_overrides_runpath=unknown
25487 dynamic_linker="$host_os ld.so"
25488 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25489 if test "$GCC" = yes; then
25490 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25491 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25492 # if the path contains ";" then we assume it to be the separator
25493 # otherwise default to the standard path separator (i.e. ":") - it is
25494 # assumed that no part of a normal pathname contains ";" but that should
25495 # okay in the real world where ";" in dirpaths is itself problematic.
25496 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25498 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25501 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25503 need_lib_prefix=unknown
25504 hardcode_into_libs=no
25506 # when you set need_version to no, make sure it does not cause -set_version
25507 # flags to be left without arguments
25508 need_version=unknown
25513 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25514 shlibpath_var=LIBPATH
25516 # AIX 3 has no versioning support, so we append a major version to the name.
25517 soname_spec='${libname}${release}${shared_ext}$major'
25524 hardcode_into_libs=yes
25525 if test "$host_cpu" = ia64; then
25526 # AIX 5 supports IA64
25527 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25528 shlibpath_var=LD_LIBRARY_PATH
25530 # With GCC up to 2.95.x, collect2 would create an import file
25531 # for dependence libraries. The import file would start with
25532 # the line `#! .'. This would cause the generated library to
25533 # depend on `.', always an invalid library. This was fixed in
25534 # development snapshots of GCC prior to 3.0.
25536 aix4 | aix4.[01] | aix4.[01].*)
25537 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25539 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25542 can_build_shared=no
25546 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25547 # soname into executable. Probably we can add versioning support to
25548 # collect2, so additional links can be useful in future.
25549 if test "$aix_use_runtimelinking" = yes; then
25550 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25551 # instead of lib<name>.a to let people know that these are not
25552 # typical AIX shared libraries.
25553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25555 # We preserve .a as extension for shared libraries through AIX4.2
25556 # and later when we are not doing run time linking.
25557 library_names_spec='${libname}${release}.a $libname.a'
25558 soname_spec='${libname}${release}${shared_ext}$major'
25560 shlibpath_var=LIBPATH
25565 library_names_spec='$libname.ixlibrary $libname.a'
25566 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25567 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'
25571 library_names_spec='${libname}${shared_ext}'
25572 dynamic_linker="$host_os ld.so"
25573 shlibpath_var=LIBRARY_PATH
25579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25580 soname_spec='${libname}${release}${shared_ext}$major'
25581 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25582 shlibpath_var=LD_LIBRARY_PATH
25583 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25584 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25585 # the default ld.so.conf also contains /usr/contrib/lib and
25586 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25587 # libtool to hard-code these into programs
25590 cygwin* | mingw* | pw32*)
25591 version_type=windows
25596 case $GCC,$host_os in
25597 yes,cygwin* | yes,mingw* | yes,pw32*)
25598 library_names_spec='$libname.dll.a'
25599 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25600 postinstall_cmds='base_file=`basename \${file}`~
25601 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25602 dldir=$destdir/`dirname \$dlpath`~
25603 test -d \$dldir || mkdir -p \$dldir~
25604 $install_prog $dir/$dlname \$dldir/$dlname~
25605 chmod a+x \$dldir/$dlname'
25606 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25607 dlpath=$dir/\$dldll~
25609 shlibpath_overrides_runpath=yes
25613 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25614 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25615 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25618 # MinGW DLLs use traditional 'lib' prefix
25619 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25620 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25621 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25622 # It is most probably a Windows format PATH printed by
25623 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25624 # path with ; separators, and with drive letters. We can handle the
25625 # drive letters (cygwin fileutils understands them), so leave them,
25626 # especially as we might pass files found there to a mingw objdump,
25627 # which wouldn't understand a cygwinified path. Ahh.
25628 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25630 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25634 # pw32 DLLs use 'pw' prefix rather than 'lib'
25635 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25641 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25644 dynamic_linker='Win32 ld.exe'
25645 # FIXME: first we should search . and the directory the executable is in
25649 darwin* | rhapsody*)
25650 dynamic_linker="$host_os dyld"
25651 version_type=darwin
25654 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25655 soname_spec='${libname}${release}${major}$shared_ext'
25656 shlibpath_overrides_runpath=yes
25657 shlibpath_var=DYLD_LIBRARY_PATH
25658 shrext_cmds='.dylib'
25659 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25660 if test "$GCC" = yes; then
25661 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"`
25663 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25665 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25673 soname_spec='${libname}${release}${shared_ext}$major'
25674 shlibpath_var=LD_LIBRARY_PATH
25685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25686 soname_spec='${libname}${release}${shared_ext}$major'
25687 shlibpath_var=LD_LIBRARY_PATH
25688 shlibpath_overrides_runpath=no
25689 hardcode_into_libs=yes
25690 dynamic_linker='GNU ld.so'
25693 freebsd* | dragonfly*)
25694 # DragonFly does not have aout. When/if they implement a new
25695 # versioning mechanism, adjust this.
25696 if test -x /usr/bin/objformat; then
25697 objformat=`/usr/bin/objformat`
25700 freebsd[123]*) objformat=aout ;;
25701 *) objformat=elf ;;
25704 version_type=freebsd-$objformat
25705 case $version_type in
25707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25712 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25716 shlibpath_var=LD_LIBRARY_PATH
25719 shlibpath_overrides_runpath=yes
25721 freebsd3.[01]* | freebsdelf3.[01]*)
25722 shlibpath_overrides_runpath=yes
25723 hardcode_into_libs=yes
25725 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25726 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25727 shlibpath_overrides_runpath=no
25728 hardcode_into_libs=yes
25730 freebsd*) # from 4.6 on
25731 shlibpath_overrides_runpath=yes
25732 hardcode_into_libs=yes
25741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25742 soname_spec='${libname}${release}${shared_ext}$major'
25743 shlibpath_var=LD_LIBRARY_PATH
25744 hardcode_into_libs=yes
25747 hpux9* | hpux10* | hpux11*)
25748 # Give a soname corresponding to the major version so that dld.sl refuses to
25749 # link against other versions.
25756 hardcode_into_libs=yes
25757 dynamic_linker="$host_os dld.so"
25758 shlibpath_var=LD_LIBRARY_PATH
25759 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25761 soname_spec='${libname}${release}${shared_ext}$major'
25762 if test "X$HPUX_IA64_MODE" = X32; then
25763 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25765 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25767 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25771 hardcode_into_libs=yes
25772 dynamic_linker="$host_os dld.sl"
25773 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25774 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25776 soname_spec='${libname}${release}${shared_ext}$major'
25777 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25778 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25782 dynamic_linker="$host_os dld.sl"
25783 shlibpath_var=SHLIB_PATH
25784 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25786 soname_spec='${libname}${release}${shared_ext}$major'
25789 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25790 postinstall_cmds='chmod 555 $lib'
25797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25798 soname_spec='${libname}${release}${shared_ext}$major'
25799 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25800 shlibpath_var=LD_LIBRARY_PATH
25801 shlibpath_overrides_runpath=no
25802 hardcode_into_libs=yes
25805 irix5* | irix6* | nonstopux*)
25807 nonstopux*) version_type=nonstopux ;;
25809 if test "$lt_cv_prog_gnu_ld" = yes; then
25817 soname_spec='${libname}${release}${shared_ext}$major'
25818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25820 irix5* | nonstopux*)
25821 libsuff= shlibsuff=
25824 case $LD in # libtool.m4 will add one of these switches to LD
25825 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25826 libsuff= shlibsuff= libmagic=32-bit;;
25827 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25828 libsuff=32 shlibsuff=N32 libmagic=N32;;
25829 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25830 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25831 *) libsuff= shlibsuff= libmagic=never-match;;
25835 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25836 shlibpath_overrides_runpath=no
25837 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25838 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25839 hardcode_into_libs=yes
25842 # No shared lib support for Linux oldld, aout, or coff.
25843 linux*oldld* | linux*aout* | linux*coff*)
25847 # This must be Linux ELF.
25852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25853 soname_spec='${libname}${release}${shared_ext}$major'
25854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25855 shlibpath_var=LD_LIBRARY_PATH
25856 shlibpath_overrides_runpath=no
25857 # This implies no fast_install, which is unacceptable.
25858 # Some rework will be needed to allow for fast_install
25859 # before this can be enabled.
25860 hardcode_into_libs=yes
25862 # Append ld.so.conf contents to the search path
25863 if test -f /etc/ld.so.conf; then
25864 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' ' '`
25865 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25868 # We used to test for /lib/ld.so.1 and disable shared libraries on
25869 # powerpc, because MkLinux only supported shared libraries with the
25870 # GNU dynamic linker. Since this was broken with cross compilers,
25871 # most powerpc-linux boxes support dynamic linking these days and
25872 # people can always --disable-shared, the test was removed, and we
25873 # assume the GNU/Linux dynamic linker is in use.
25874 dynamic_linker='GNU/Linux ld.so'
25881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25882 soname_spec='${libname}${release}${shared_ext}$major'
25883 shlibpath_var=LD_LIBRARY_PATH
25884 shlibpath_overrides_runpath=no
25885 hardcode_into_libs=yes
25886 dynamic_linker='GNU ld.so'
25893 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25896 dynamic_linker='NetBSD (a.out) ld.so'
25898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25899 soname_spec='${libname}${release}${shared_ext}$major'
25900 dynamic_linker='NetBSD ld.elf_so'
25902 shlibpath_var=LD_LIBRARY_PATH
25903 shlibpath_overrides_runpath=yes
25904 hardcode_into_libs=yes
25909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25910 shlibpath_var=LD_LIBRARY_PATH
25911 shlibpath_overrides_runpath=yes
25918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25919 soname_spec='${libname}${release}${shared_ext}$major'
25920 shlibpath_var=LD_LIBRARY_PATH
25921 shlibpath_overrides_runpath=yes
25926 sys_lib_dlsearch_path_spec="/usr/lib"
25928 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25930 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25931 *) need_version=no ;;
25933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25935 shlibpath_var=LD_LIBRARY_PATH
25936 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25938 openbsd2.[89] | openbsd2.[89].*)
25939 shlibpath_overrides_runpath=no
25942 shlibpath_overrides_runpath=yes
25946 shlibpath_overrides_runpath=yes
25951 libname_spec='$name'
25954 library_names_spec='$libname${shared_ext} $libname.a'
25955 dynamic_linker='OS/2 ld.exe'
25956 shlibpath_var=LIBPATH
25959 osf3* | osf4* | osf5*)
25963 soname_spec='${libname}${release}${shared_ext}$major'
25964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25965 shlibpath_var=LD_LIBRARY_PATH
25966 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25967 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25975 soname_spec='${libname}${release}${shared_ext}$major'
25976 shlibpath_var=LD_LIBRARY_PATH
25977 shlibpath_overrides_runpath=yes
25978 hardcode_into_libs=yes
25979 # ldd complains unless libraries are executable
25980 postinstall_cmds='chmod +x $lib'
25985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25986 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25987 shlibpath_var=LD_LIBRARY_PATH
25988 shlibpath_overrides_runpath=yes
25989 if test "$with_gnu_ld" = yes; then
25997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25998 soname_spec='${libname}${release}${shared_ext}$major'
25999 shlibpath_var=LD_LIBRARY_PATH
26000 case $host_vendor in
26002 shlibpath_overrides_runpath=no
26004 export_dynamic_flag_spec='${wl}-Blargedynsym'
26005 runpath_var=LD_RUN_PATH
26013 shlibpath_overrides_runpath=no
26014 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26020 if test -d /usr/nec ;then
26022 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26023 soname_spec='$libname${shared_ext}.$major'
26024 shlibpath_var=LD_LIBRARY_PATH
26028 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26029 version_type=freebsd-elf
26032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26033 soname_spec='${libname}${release}${shared_ext}$major'
26034 shlibpath_var=LD_LIBRARY_PATH
26035 hardcode_into_libs=yes
26036 if test "$with_gnu_ld" = yes; then
26037 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26038 shlibpath_overrides_runpath=no
26040 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26041 shlibpath_overrides_runpath=yes
26044 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26048 sys_lib_dlsearch_path_spec='/usr/lib'
26053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26054 soname_spec='${libname}${release}${shared_ext}$major'
26055 shlibpath_var=LD_LIBRARY_PATH
26062 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26063 echo "${ECHO_T}$dynamic_linker" >&6; }
26064 test "$dynamic_linker" = no && can_build_shared=no
26066 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26067 if test "$GCC" = yes; then
26068 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26071 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26072 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26073 hardcode_action_GCJ=
26074 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26075 test -n "$runpath_var_GCJ" || \
26076 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26078 # We can hardcode non-existant directories.
26079 if test "$hardcode_direct_GCJ" != no &&
26080 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26081 # have to relink, otherwise we might link with an installed library
26082 # when we should be linking with a yet-to-be-installed one
26083 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26084 test "$hardcode_minus_L_GCJ" != no; then
26085 # Linking always hardcodes the temporary library directory.
26086 hardcode_action_GCJ=relink
26088 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26089 hardcode_action_GCJ=immediate
26092 # We cannot hardcode anything, or else we can only hardcode existing
26094 hardcode_action_GCJ=unsupported
26096 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26097 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26099 if test "$hardcode_action_GCJ" = relink; then
26100 # Fast installation is not supported
26101 enable_fast_install=no
26102 elif test "$shlibpath_overrides_runpath" = yes ||
26103 test "$enable_shared" = no; then
26104 # Fast installation is not necessary
26105 enable_fast_install=needless
26109 # The else clause should only fire when bootstrapping the
26110 # libtool distribution, otherwise you forgot to ship ltmain.sh
26111 # with your package, and you will get complaints that there are
26112 # no rules to generate ltmain.sh.
26113 if test -f "$ltmain"; then
26114 # See if we are running on zsh, and set the options which allow our commands through
26115 # without removal of \ escapes.
26116 if test -n "${ZSH_VERSION+set}" ; then
26117 setopt NO_GLOB_SUBST
26119 # Now quote all the things that may contain metacharacters while being
26120 # careful not to overquote the AC_SUBSTed values. We take copies of the
26121 # variables and quote the copies for generation of the libtool script.
26122 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26124 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26125 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26126 deplibs_check_method reload_flag reload_cmds need_locks \
26127 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26128 lt_cv_sys_global_symbol_to_c_name_address \
26129 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26130 old_postinstall_cmds old_postuninstall_cmds \
26134 lt_prog_compiler_wl_GCJ \
26135 lt_prog_compiler_pic_GCJ \
26136 lt_prog_compiler_static_GCJ \
26137 lt_prog_compiler_no_builtin_flag_GCJ \
26138 export_dynamic_flag_spec_GCJ \
26139 thread_safe_flag_spec_GCJ \
26140 whole_archive_flag_spec_GCJ \
26141 enable_shared_with_static_runtimes_GCJ \
26142 old_archive_cmds_GCJ \
26143 old_archive_from_new_cmds_GCJ \
26144 predep_objects_GCJ \
26145 postdep_objects_GCJ \
26148 compiler_lib_search_path_GCJ \
26150 archive_expsym_cmds_GCJ \
26151 postinstall_cmds_GCJ \
26152 postuninstall_cmds_GCJ \
26153 old_archive_from_expsyms_cmds_GCJ \
26154 allow_undefined_flag_GCJ \
26155 no_undefined_flag_GCJ \
26156 export_symbols_cmds_GCJ \
26157 hardcode_libdir_flag_spec_GCJ \
26158 hardcode_libdir_flag_spec_ld_GCJ \
26159 hardcode_libdir_separator_GCJ \
26160 hardcode_automatic_GCJ \
26162 module_expsym_cmds_GCJ \
26163 lt_cv_prog_compiler_c_o_GCJ \
26164 exclude_expsyms_GCJ \
26165 include_expsyms_GCJ; do
26168 old_archive_cmds_GCJ | \
26169 old_archive_from_new_cmds_GCJ | \
26170 archive_cmds_GCJ | \
26171 archive_expsym_cmds_GCJ | \
26172 module_cmds_GCJ | \
26173 module_expsym_cmds_GCJ | \
26174 old_archive_from_expsyms_cmds_GCJ | \
26175 export_symbols_cmds_GCJ | \
26176 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26177 postinstall_cmds | postuninstall_cmds | \
26178 old_postinstall_cmds | old_postuninstall_cmds | \
26179 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26180 # Double-quote double-evaled strings.
26181 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26184 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26190 *'\$0 --fallback-echo"')
26191 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26197 cat <<__EOF__ >> "$cfgfile"
26198 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26200 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26202 # Shell to use when invoking shell scripts.
26205 # Whether or not to build shared libraries.
26206 build_libtool_libs=$enable_shared
26208 # Whether or not to build static libraries.
26209 build_old_libs=$enable_static
26211 # Whether or not to add -lc for building shared libraries.
26212 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26214 # Whether or not to disallow shared libs when runtime libs are static
26215 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26217 # Whether or not to optimize for fast installation.
26218 fast_install=$enable_fast_install
26221 host_alias=$host_alias
26225 # The build system.
26226 build_alias=$build_alias
26230 # An echo program that does not interpret backslashes.
26235 AR_FLAGS=$lt_AR_FLAGS
26240 # LTCC compiler flags.
26241 LTCFLAGS=$lt_LTCFLAGS
26243 # A language-specific compiler.
26244 CC=$lt_compiler_GCJ
26246 # Is the compiler the GNU C compiler?
26252 # The linker used to build libraries.
26255 # Whether we need hard or soft links.
26258 # A BSD-compatible nm program.
26261 # A symbol stripping program
26264 # Used to examine libraries when file_magic_cmd begins "file"
26265 MAGIC_CMD=$MAGIC_CMD
26267 # Used on cygwin: DLL creation program.
26270 # Used on cygwin: object dumper.
26273 # Used on cygwin: assembler.
26276 # The name of the directory that contains temporary libtool files.
26279 # How to create reloadable object files.
26280 reload_flag=$lt_reload_flag
26281 reload_cmds=$lt_reload_cmds
26283 # How to pass a linker flag through the compiler.
26284 wl=$lt_lt_prog_compiler_wl_GCJ
26286 # Object file suffix (normally "o").
26287 objext="$ac_objext"
26289 # Old archive suffix (normally "a").
26292 # Shared library suffix (normally ".so").
26293 shrext_cmds='$shrext_cmds'
26295 # Executable file suffix (normally "").
26298 # Additional compiler flags for building library objects.
26299 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26302 # What is the maximum length of a command?
26303 max_cmd_len=$lt_cv_sys_max_cmd_len
26305 # Does compiler simultaneously support -c and -o options?
26306 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26308 # Must we lock files when doing compilation?
26309 need_locks=$lt_need_locks
26311 # Do we need the lib prefix for modules?
26312 need_lib_prefix=$need_lib_prefix
26314 # Do we need a version for libraries?
26315 need_version=$need_version
26317 # Whether dlopen is supported.
26318 dlopen_support=$enable_dlopen
26320 # Whether dlopen of programs is supported.
26321 dlopen_self=$enable_dlopen_self
26323 # Whether dlopen of statically linked programs is supported.
26324 dlopen_self_static=$enable_dlopen_self_static
26326 # Compiler flag to prevent dynamic linking.
26327 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26329 # Compiler flag to turn off builtin functions.
26330 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26332 # Compiler flag to allow reflexive dlopens.
26333 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26335 # Compiler flag to generate shared objects directly from archives.
26336 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26338 # Compiler flag to generate thread-safe objects.
26339 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26341 # Library versioning type.
26342 version_type=$version_type
26344 # Format of library name prefix.
26345 libname_spec=$lt_libname_spec
26347 # List of archive names. First name is the real one, the rest are links.
26348 # The last name is the one that the linker finds with -lNAME.
26349 library_names_spec=$lt_library_names_spec
26351 # The coded name of the library, if different from the real name.
26352 soname_spec=$lt_soname_spec
26354 # Commands used to build and install an old-style archive.
26356 old_archive_cmds=$lt_old_archive_cmds_GCJ
26357 old_postinstall_cmds=$lt_old_postinstall_cmds
26358 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26360 # Create an old-style archive from a shared archive.
26361 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26363 # Create a temporary old-style archive to link instead of a shared archive.
26364 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26366 # Commands used to build and install a shared archive.
26367 archive_cmds=$lt_archive_cmds_GCJ
26368 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26369 postinstall_cmds=$lt_postinstall_cmds
26370 postuninstall_cmds=$lt_postuninstall_cmds
26372 # Commands used to build a loadable module (assumed same as above if empty)
26373 module_cmds=$lt_module_cmds_GCJ
26374 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26376 # Commands to strip libraries.
26377 old_striplib=$lt_old_striplib
26378 striplib=$lt_striplib
26380 # Dependencies to place before the objects being linked to create a
26382 predep_objects=$lt_predep_objects_GCJ
26384 # Dependencies to place after the objects being linked to create a
26386 postdep_objects=$lt_postdep_objects_GCJ
26388 # Dependencies to place before the objects being linked to create a
26390 predeps=$lt_predeps_GCJ
26392 # Dependencies to place after the objects being linked to create a
26394 postdeps=$lt_postdeps_GCJ
26396 # The library search path used internally by the compiler when linking
26397 # a shared library.
26398 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26400 # Method to check whether dependent libraries are shared objects.
26401 deplibs_check_method=$lt_deplibs_check_method
26403 # Command to use when deplibs_check_method == file_magic.
26404 file_magic_cmd=$lt_file_magic_cmd
26406 # Flag that allows shared libraries with undefined symbols to be built.
26407 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26409 # Flag that forces no undefined symbols.
26410 no_undefined_flag=$lt_no_undefined_flag_GCJ
26412 # Commands used to finish a libtool library installation in a directory.
26413 finish_cmds=$lt_finish_cmds
26415 # Same as above, but a single script fragment to be evaled but not shown.
26416 finish_eval=$lt_finish_eval
26418 # Take the output of nm and produce a listing of raw symbols and C names.
26419 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26421 # Transform the output of nm in a proper C declaration
26422 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26424 # Transform the output of nm in a C name address pair
26425 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26427 # This is the shared library runtime path variable.
26428 runpath_var=$runpath_var
26430 # This is the shared library path variable.
26431 shlibpath_var=$shlibpath_var
26433 # Is shlibpath searched before the hard-coded library search path?
26434 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26436 # How to hardcode a shared library path into an executable.
26437 hardcode_action=$hardcode_action_GCJ
26439 # Whether we should hardcode library paths into libraries.
26440 hardcode_into_libs=$hardcode_into_libs
26442 # Flag to hardcode \$libdir into a binary during linking.
26443 # This must work even if \$libdir does not exist.
26444 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26446 # If ld is used when linking, flag to hardcode \$libdir into
26447 # a binary during linking. This must work even if \$libdir does
26449 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26451 # Whether we need a single -rpath flag with a separated argument.
26452 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26454 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26455 # resulting binary.
26456 hardcode_direct=$hardcode_direct_GCJ
26458 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26459 # resulting binary.
26460 hardcode_minus_L=$hardcode_minus_L_GCJ
26462 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26463 # the resulting binary.
26464 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26466 # Set to yes if building a shared library automatically hardcodes DIR into the library
26467 # and all subsequent libraries and executables linked against it.
26468 hardcode_automatic=$hardcode_automatic_GCJ
26470 # Variables whose values should be saved in libtool wrapper scripts and
26471 # restored at relink time.
26472 variables_saved_for_relink="$variables_saved_for_relink"
26474 # Whether libtool must link a program against all its dependency libraries.
26475 link_all_deplibs=$link_all_deplibs_GCJ
26477 # Compile-time system search path for libraries
26478 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26480 # Run-time system search path for libraries
26481 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26483 # Fix the shell variable \$srcfile for the compiler.
26484 fix_srcfile_path="$fix_srcfile_path_GCJ"
26486 # Set to yes if exported symbols are required.
26487 always_export_symbols=$always_export_symbols_GCJ
26489 # The commands to list exported symbols.
26490 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26492 # The commands to extract the exported symbol list from a shared archive.
26493 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26495 # Symbols that should not be listed in the preloaded symbols.
26496 exclude_expsyms=$lt_exclude_expsyms_GCJ
26498 # Symbols that must always be exported.
26499 include_expsyms=$lt_include_expsyms_GCJ
26501 # ### END LIBTOOL TAG CONFIG: $tagname
26507 # If there is no Makefile yet, we rely on a make rule to execute
26508 # `config.status --recheck' to rerun these tests and create the
26509 # libtool script then.
26510 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26511 if test -f "$ltmain_in"; then
26512 test -f Makefile && make "$ltmain"
26518 ac_cpp='$CPP $CPPFLAGS'
26519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26532 ac_cpp='$CPP $CPPFLAGS'
26533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26538 # Source file extension for RC test sources.
26541 # Object file extension for compiled RC test sources.
26545 # Code to be used in simple compile tests
26546 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26548 # Code to be used in simple link tests
26549 lt_simple_link_test_code="$lt_simple_compile_test_code"
26551 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26553 # If no C compiler was specified, use CC.
26556 # If no C compiler flags were specified, use CFLAGS.
26557 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26559 # Allow CC to be a program name with arguments.
26563 # save warnings/boilerplate of simple test code
26564 ac_outfile=conftest.$ac_objext
26565 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26566 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26567 _lt_compiler_boilerplate=`cat conftest.err`
26570 ac_outfile=conftest.$ac_objext
26571 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26572 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26573 _lt_linker_boilerplate=`cat conftest.err`
26577 # Allow CC to be a program name with arguments.
26582 for cc_temp in $compiler""; do
26584 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26585 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26590 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26592 lt_cv_prog_compiler_c_o_RC=yes
26594 # The else clause should only fire when bootstrapping the
26595 # libtool distribution, otherwise you forgot to ship ltmain.sh
26596 # with your package, and you will get complaints that there are
26597 # no rules to generate ltmain.sh.
26598 if test -f "$ltmain"; then
26599 # See if we are running on zsh, and set the options which allow our commands through
26600 # without removal of \ escapes.
26601 if test -n "${ZSH_VERSION+set}" ; then
26602 setopt NO_GLOB_SUBST
26604 # Now quote all the things that may contain metacharacters while being
26605 # careful not to overquote the AC_SUBSTed values. We take copies of the
26606 # variables and quote the copies for generation of the libtool script.
26607 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26609 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26610 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26611 deplibs_check_method reload_flag reload_cmds need_locks \
26612 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26613 lt_cv_sys_global_symbol_to_c_name_address \
26614 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26615 old_postinstall_cmds old_postuninstall_cmds \
26619 lt_prog_compiler_wl_RC \
26620 lt_prog_compiler_pic_RC \
26621 lt_prog_compiler_static_RC \
26622 lt_prog_compiler_no_builtin_flag_RC \
26623 export_dynamic_flag_spec_RC \
26624 thread_safe_flag_spec_RC \
26625 whole_archive_flag_spec_RC \
26626 enable_shared_with_static_runtimes_RC \
26627 old_archive_cmds_RC \
26628 old_archive_from_new_cmds_RC \
26629 predep_objects_RC \
26630 postdep_objects_RC \
26633 compiler_lib_search_path_RC \
26635 archive_expsym_cmds_RC \
26636 postinstall_cmds_RC \
26637 postuninstall_cmds_RC \
26638 old_archive_from_expsyms_cmds_RC \
26639 allow_undefined_flag_RC \
26640 no_undefined_flag_RC \
26641 export_symbols_cmds_RC \
26642 hardcode_libdir_flag_spec_RC \
26643 hardcode_libdir_flag_spec_ld_RC \
26644 hardcode_libdir_separator_RC \
26645 hardcode_automatic_RC \
26647 module_expsym_cmds_RC \
26648 lt_cv_prog_compiler_c_o_RC \
26649 exclude_expsyms_RC \
26650 include_expsyms_RC; do
26653 old_archive_cmds_RC | \
26654 old_archive_from_new_cmds_RC | \
26655 archive_cmds_RC | \
26656 archive_expsym_cmds_RC | \
26658 module_expsym_cmds_RC | \
26659 old_archive_from_expsyms_cmds_RC | \
26660 export_symbols_cmds_RC | \
26661 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26662 postinstall_cmds | postuninstall_cmds | \
26663 old_postinstall_cmds | old_postuninstall_cmds | \
26664 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26665 # Double-quote double-evaled strings.
26666 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26669 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26675 *'\$0 --fallback-echo"')
26676 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26682 cat <<__EOF__ >> "$cfgfile"
26683 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26685 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26687 # Shell to use when invoking shell scripts.
26690 # Whether or not to build shared libraries.
26691 build_libtool_libs=$enable_shared
26693 # Whether or not to build static libraries.
26694 build_old_libs=$enable_static
26696 # Whether or not to add -lc for building shared libraries.
26697 build_libtool_need_lc=$archive_cmds_need_lc_RC
26699 # Whether or not to disallow shared libs when runtime libs are static
26700 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26702 # Whether or not to optimize for fast installation.
26703 fast_install=$enable_fast_install
26706 host_alias=$host_alias
26710 # The build system.
26711 build_alias=$build_alias
26715 # An echo program that does not interpret backslashes.
26720 AR_FLAGS=$lt_AR_FLAGS
26725 # LTCC compiler flags.
26726 LTCFLAGS=$lt_LTCFLAGS
26728 # A language-specific compiler.
26731 # Is the compiler the GNU C compiler?
26737 # The linker used to build libraries.
26740 # Whether we need hard or soft links.
26743 # A BSD-compatible nm program.
26746 # A symbol stripping program
26749 # Used to examine libraries when file_magic_cmd begins "file"
26750 MAGIC_CMD=$MAGIC_CMD
26752 # Used on cygwin: DLL creation program.
26755 # Used on cygwin: object dumper.
26758 # Used on cygwin: assembler.
26761 # The name of the directory that contains temporary libtool files.
26764 # How to create reloadable object files.
26765 reload_flag=$lt_reload_flag
26766 reload_cmds=$lt_reload_cmds
26768 # How to pass a linker flag through the compiler.
26769 wl=$lt_lt_prog_compiler_wl_RC
26771 # Object file suffix (normally "o").
26772 objext="$ac_objext"
26774 # Old archive suffix (normally "a").
26777 # Shared library suffix (normally ".so").
26778 shrext_cmds='$shrext_cmds'
26780 # Executable file suffix (normally "").
26783 # Additional compiler flags for building library objects.
26784 pic_flag=$lt_lt_prog_compiler_pic_RC
26787 # What is the maximum length of a command?
26788 max_cmd_len=$lt_cv_sys_max_cmd_len
26790 # Does compiler simultaneously support -c and -o options?
26791 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26793 # Must we lock files when doing compilation?
26794 need_locks=$lt_need_locks
26796 # Do we need the lib prefix for modules?
26797 need_lib_prefix=$need_lib_prefix
26799 # Do we need a version for libraries?
26800 need_version=$need_version
26802 # Whether dlopen is supported.
26803 dlopen_support=$enable_dlopen
26805 # Whether dlopen of programs is supported.
26806 dlopen_self=$enable_dlopen_self
26808 # Whether dlopen of statically linked programs is supported.
26809 dlopen_self_static=$enable_dlopen_self_static
26811 # Compiler flag to prevent dynamic linking.
26812 link_static_flag=$lt_lt_prog_compiler_static_RC
26814 # Compiler flag to turn off builtin functions.
26815 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26817 # Compiler flag to allow reflexive dlopens.
26818 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26820 # Compiler flag to generate shared objects directly from archives.
26821 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26823 # Compiler flag to generate thread-safe objects.
26824 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26826 # Library versioning type.
26827 version_type=$version_type
26829 # Format of library name prefix.
26830 libname_spec=$lt_libname_spec
26832 # List of archive names. First name is the real one, the rest are links.
26833 # The last name is the one that the linker finds with -lNAME.
26834 library_names_spec=$lt_library_names_spec
26836 # The coded name of the library, if different from the real name.
26837 soname_spec=$lt_soname_spec
26839 # Commands used to build and install an old-style archive.
26841 old_archive_cmds=$lt_old_archive_cmds_RC
26842 old_postinstall_cmds=$lt_old_postinstall_cmds
26843 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26845 # Create an old-style archive from a shared archive.
26846 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26848 # Create a temporary old-style archive to link instead of a shared archive.
26849 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26851 # Commands used to build and install a shared archive.
26852 archive_cmds=$lt_archive_cmds_RC
26853 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26854 postinstall_cmds=$lt_postinstall_cmds
26855 postuninstall_cmds=$lt_postuninstall_cmds
26857 # Commands used to build a loadable module (assumed same as above if empty)
26858 module_cmds=$lt_module_cmds_RC
26859 module_expsym_cmds=$lt_module_expsym_cmds_RC
26861 # Commands to strip libraries.
26862 old_striplib=$lt_old_striplib
26863 striplib=$lt_striplib
26865 # Dependencies to place before the objects being linked to create a
26867 predep_objects=$lt_predep_objects_RC
26869 # Dependencies to place after the objects being linked to create a
26871 postdep_objects=$lt_postdep_objects_RC
26873 # Dependencies to place before the objects being linked to create a
26875 predeps=$lt_predeps_RC
26877 # Dependencies to place after the objects being linked to create a
26879 postdeps=$lt_postdeps_RC
26881 # The library search path used internally by the compiler when linking
26882 # a shared library.
26883 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26885 # Method to check whether dependent libraries are shared objects.
26886 deplibs_check_method=$lt_deplibs_check_method
26888 # Command to use when deplibs_check_method == file_magic.
26889 file_magic_cmd=$lt_file_magic_cmd
26891 # Flag that allows shared libraries with undefined symbols to be built.
26892 allow_undefined_flag=$lt_allow_undefined_flag_RC
26894 # Flag that forces no undefined symbols.
26895 no_undefined_flag=$lt_no_undefined_flag_RC
26897 # Commands used to finish a libtool library installation in a directory.
26898 finish_cmds=$lt_finish_cmds
26900 # Same as above, but a single script fragment to be evaled but not shown.
26901 finish_eval=$lt_finish_eval
26903 # Take the output of nm and produce a listing of raw symbols and C names.
26904 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26906 # Transform the output of nm in a proper C declaration
26907 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26909 # Transform the output of nm in a C name address pair
26910 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26912 # This is the shared library runtime path variable.
26913 runpath_var=$runpath_var
26915 # This is the shared library path variable.
26916 shlibpath_var=$shlibpath_var
26918 # Is shlibpath searched before the hard-coded library search path?
26919 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26921 # How to hardcode a shared library path into an executable.
26922 hardcode_action=$hardcode_action_RC
26924 # Whether we should hardcode library paths into libraries.
26925 hardcode_into_libs=$hardcode_into_libs
26927 # Flag to hardcode \$libdir into a binary during linking.
26928 # This must work even if \$libdir does not exist.
26929 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26931 # If ld is used when linking, flag to hardcode \$libdir into
26932 # a binary during linking. This must work even if \$libdir does
26934 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26936 # Whether we need a single -rpath flag with a separated argument.
26937 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26939 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26940 # resulting binary.
26941 hardcode_direct=$hardcode_direct_RC
26943 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26944 # resulting binary.
26945 hardcode_minus_L=$hardcode_minus_L_RC
26947 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26948 # the resulting binary.
26949 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26951 # Set to yes if building a shared library automatically hardcodes DIR into the library
26952 # and all subsequent libraries and executables linked against it.
26953 hardcode_automatic=$hardcode_automatic_RC
26955 # Variables whose values should be saved in libtool wrapper scripts and
26956 # restored at relink time.
26957 variables_saved_for_relink="$variables_saved_for_relink"
26959 # Whether libtool must link a program against all its dependency libraries.
26960 link_all_deplibs=$link_all_deplibs_RC
26962 # Compile-time system search path for libraries
26963 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26965 # Run-time system search path for libraries
26966 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26968 # Fix the shell variable \$srcfile for the compiler.
26969 fix_srcfile_path="$fix_srcfile_path_RC"
26971 # Set to yes if exported symbols are required.
26972 always_export_symbols=$always_export_symbols_RC
26974 # The commands to list exported symbols.
26975 export_symbols_cmds=$lt_export_symbols_cmds_RC
26977 # The commands to extract the exported symbol list from a shared archive.
26978 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26980 # Symbols that should not be listed in the preloaded symbols.
26981 exclude_expsyms=$lt_exclude_expsyms_RC
26983 # Symbols that must always be exported.
26984 include_expsyms=$lt_include_expsyms_RC
26986 # ### END LIBTOOL TAG CONFIG: $tagname
26992 # If there is no Makefile yet, we rely on a make rule to execute
26993 # `config.status --recheck' to rerun these tests and create the
26994 # libtool script then.
26995 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26996 if test -f "$ltmain_in"; then
26997 test -f Makefile && make "$ltmain"
27003 ac_cpp='$CPP $CPPFLAGS'
27004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27013 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27014 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27015 { (exit 1); exit 1; }; }
27019 # Append the new tag name to the list of available tags.
27020 if test -n "$tagname" ; then
27021 available_tags="$available_tags $tagname"
27027 # Now substitute the updated list of available tags.
27028 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27029 mv "${ofile}T" "$ofile"
27033 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27034 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27035 { (exit 1); exit 1; }; }
27041 # This can be used to rebuild libtool when needed
27042 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27044 # Always use our own libtool.
27045 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27047 # Prevent multiple expansion
27069 if test "$lt_cv_dlopen_self" = "yes" ; then
27071 cat >>confdefs.h <<\_ACEOF
27072 #define CAN_DLOPEN_SELF 1
27077 if test "$WITH_LLVMGCCDIR" = "default" ; then
27078 LLVMGCC="llvm-gcc${EXEEXT}"
27079 LLVMGXX="llvm-g++${EXEEXT}"
27080 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27081 set dummy $LLVMGCC; ac_word=$2
27082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27084 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27085 echo $ECHO_N "(cached) $ECHO_C" >&6
27089 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27093 for as_dir in $PATH
27096 test -z "$as_dir" && as_dir=.
27097 for ac_exec_ext in '' $ac_executable_extensions; do
27098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27099 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27110 LLVMGCC=$ac_cv_path_LLVMGCC
27111 if test -n "$LLVMGCC"; then
27112 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27113 echo "${ECHO_T}$LLVMGCC" >&6; }
27115 { echo "$as_me:$LINENO: result: no" >&5
27116 echo "${ECHO_T}no" >&6; }
27120 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27121 set dummy $LLVMGXX; ac_word=$2
27122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27124 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27125 echo $ECHO_N "(cached) $ECHO_C" >&6
27129 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27133 for as_dir in $PATH
27136 test -z "$as_dir" && as_dir=.
27137 for ac_exec_ext in '' $ac_executable_extensions; do
27138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27139 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27150 LLVMGXX=$ac_cv_path_LLVMGXX
27151 if test -n "$LLVMGXX"; then
27152 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27153 echo "${ECHO_T}$LLVMGXX" >&6; }
27155 { echo "$as_me:$LINENO: result: no" >&5
27156 echo "${ECHO_T}no" >&6; }
27161 if test -z "$LLVMGCC"; then
27162 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27164 if test -z "$LLVMGXX"; then
27165 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27173 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27174 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27187 if test "$GCC" != "yes" && test "$ICC" != "yes"
27189 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27190 echo "$as_me: error: gcc|icc required but not found" >&2;}
27191 { (exit 1); exit 1; }; }
27194 if test "$GXX" != "yes" && test "$IXX" != "yes"
27196 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27197 echo "$as_me: error: g++|icc required but not found" >&2;}
27198 { (exit 1); exit 1; }; }
27201 if test "$GCC" = "yes"
27203 cat >conftest.$ac_ext <<_ACEOF
27204 #if !defined(__GNUC__) || __GNUC__ < 3
27205 #error Unsupported GCC version
27209 rm -f conftest.$ac_objext
27210 if { (ac_try="$ac_compile"
27211 case "(($ac_try" in
27212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27213 *) ac_try_echo=$ac_try;;
27215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27216 (eval "$ac_compile") 2>conftest.er1
27218 grep -v '^ *+' conftest.er1 >conftest.err
27220 cat conftest.err >&5
27221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222 (exit $ac_status); } &&
27223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27224 { (case "(($ac_try" in
27225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27226 *) ac_try_echo=$ac_try;;
27228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27229 (eval "$ac_try") 2>&5
27231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232 (exit $ac_status); }; } &&
27233 { ac_try='test -s conftest.$ac_objext'
27234 { (case "(($ac_try" in
27235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27236 *) ac_try_echo=$ac_try;;
27238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27239 (eval "$ac_try") 2>&5
27241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242 (exit $ac_status); }; }; then
27245 echo "$as_me: failed program was:" >&5
27246 sed 's/^/| /' conftest.$ac_ext >&5
27248 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27249 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27250 { (exit 1); exit 1; }; }
27253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27256 if test -z "$llvm_cv_gnu_make_command"
27258 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27259 echo "$as_me: error: GNU Make required but not found" >&2;}
27260 { (exit 1); exit 1; }; }
27263 { echo "$as_me:$LINENO: result: ok" >&5
27264 echo "${ECHO_T}ok" >&6; }
27268 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27269 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27270 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27271 echo $ECHO_N "(cached) $ECHO_C" >&6
27273 ac_check_lib_save_LIBS=$LIBS
27275 cat >conftest.$ac_ext <<_ACEOF
27278 cat confdefs.h >>conftest.$ac_ext
27279 cat >>conftest.$ac_ext <<_ACEOF
27280 /* end confdefs.h. */
27282 /* Override any GCC internal prototype to avoid an error.
27283 Use char because int might match the return type of a GCC
27284 builtin and then its argument prototype would still apply. */
27292 return elf_begin ();
27297 rm -f conftest.$ac_objext conftest$ac_exeext
27298 if { (ac_try="$ac_link"
27299 case "(($ac_try" in
27300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27301 *) ac_try_echo=$ac_try;;
27303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27304 (eval "$ac_link") 2>conftest.er1
27306 grep -v '^ *+' conftest.er1 >conftest.err
27308 cat conftest.err >&5
27309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310 (exit $ac_status); } &&
27311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27312 { (case "(($ac_try" in
27313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27314 *) ac_try_echo=$ac_try;;
27316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27317 (eval "$ac_try") 2>&5
27319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320 (exit $ac_status); }; } &&
27321 { ac_try='test -s conftest$ac_exeext'
27322 { (case "(($ac_try" in
27323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27324 *) ac_try_echo=$ac_try;;
27326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27327 (eval "$ac_try") 2>&5
27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); }; }; then
27331 ac_cv_lib_elf_elf_begin=yes
27333 echo "$as_me: failed program was:" >&5
27334 sed 's/^/| /' conftest.$ac_ext >&5
27336 ac_cv_lib_elf_elf_begin=no
27339 rm -f core conftest.err conftest.$ac_objext \
27340 conftest$ac_exeext conftest.$ac_ext
27341 LIBS=$ac_check_lib_save_LIBS
27343 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27344 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27345 if test $ac_cv_lib_elf_elf_begin = yes; then
27346 cat >>confdefs.h <<_ACEOF
27347 #define HAVE_LIBELF 1
27355 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27356 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27357 if test "${ac_cv_lib_m_sin+set}" = set; then
27358 echo $ECHO_N "(cached) $ECHO_C" >&6
27360 ac_check_lib_save_LIBS=$LIBS
27362 cat >conftest.$ac_ext <<_ACEOF
27365 cat confdefs.h >>conftest.$ac_ext
27366 cat >>conftest.$ac_ext <<_ACEOF
27367 /* end confdefs.h. */
27369 /* Override any GCC internal prototype to avoid an error.
27370 Use char because int might match the return type of a GCC
27371 builtin and then its argument prototype would still apply. */
27384 rm -f conftest.$ac_objext conftest$ac_exeext
27385 if { (ac_try="$ac_link"
27386 case "(($ac_try" in
27387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27388 *) ac_try_echo=$ac_try;;
27390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27391 (eval "$ac_link") 2>conftest.er1
27393 grep -v '^ *+' conftest.er1 >conftest.err
27395 cat conftest.err >&5
27396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397 (exit $ac_status); } &&
27398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27399 { (case "(($ac_try" in
27400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27401 *) ac_try_echo=$ac_try;;
27403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27404 (eval "$ac_try") 2>&5
27406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407 (exit $ac_status); }; } &&
27408 { ac_try='test -s conftest$ac_exeext'
27409 { (case "(($ac_try" in
27410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27411 *) ac_try_echo=$ac_try;;
27413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27414 (eval "$ac_try") 2>&5
27416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417 (exit $ac_status); }; }; then
27418 ac_cv_lib_m_sin=yes
27420 echo "$as_me: failed program was:" >&5
27421 sed 's/^/| /' conftest.$ac_ext >&5
27426 rm -f core conftest.err conftest.$ac_objext \
27427 conftest$ac_exeext conftest.$ac_ext
27428 LIBS=$ac_check_lib_save_LIBS
27430 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27431 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27432 if test $ac_cv_lib_m_sin = yes; then
27433 cat >>confdefs.h <<_ACEOF
27434 #define HAVE_LIBM 1
27441 if test "$llvm_cv_os_type" = "MingW" ; then
27443 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27444 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27445 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27446 echo $ECHO_N "(cached) $ECHO_C" >&6
27448 ac_check_lib_save_LIBS=$LIBS
27449 LIBS="-limagehlp $LIBS"
27450 cat >conftest.$ac_ext <<_ACEOF
27453 cat confdefs.h >>conftest.$ac_ext
27454 cat >>conftest.$ac_ext <<_ACEOF
27455 /* end confdefs.h. */
27466 rm -f conftest.$ac_objext conftest$ac_exeext
27467 if { (ac_try="$ac_link"
27468 case "(($ac_try" in
27469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27470 *) ac_try_echo=$ac_try;;
27472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27473 (eval "$ac_link") 2>conftest.er1
27475 grep -v '^ *+' conftest.er1 >conftest.err
27477 cat conftest.err >&5
27478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479 (exit $ac_status); } &&
27480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27481 { (case "(($ac_try" in
27482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27483 *) ac_try_echo=$ac_try;;
27485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27486 (eval "$ac_try") 2>&5
27488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489 (exit $ac_status); }; } &&
27490 { ac_try='test -s conftest$ac_exeext'
27491 { (case "(($ac_try" in
27492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27493 *) ac_try_echo=$ac_try;;
27495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27496 (eval "$ac_try") 2>&5
27498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499 (exit $ac_status); }; }; then
27500 ac_cv_lib_imagehlp_main=yes
27502 echo "$as_me: failed program was:" >&5
27503 sed 's/^/| /' conftest.$ac_ext >&5
27505 ac_cv_lib_imagehlp_main=no
27508 rm -f core conftest.err conftest.$ac_objext \
27509 conftest$ac_exeext conftest.$ac_ext
27510 LIBS=$ac_check_lib_save_LIBS
27512 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27513 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27514 if test $ac_cv_lib_imagehlp_main = yes; then
27515 cat >>confdefs.h <<_ACEOF
27516 #define HAVE_LIBIMAGEHLP 1
27519 LIBS="-limagehlp $LIBS"
27524 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27525 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27526 if test "${ac_cv_lib_psapi_main+set}" = set; then
27527 echo $ECHO_N "(cached) $ECHO_C" >&6
27529 ac_check_lib_save_LIBS=$LIBS
27530 LIBS="-lpsapi $LIBS"
27531 cat >conftest.$ac_ext <<_ACEOF
27534 cat confdefs.h >>conftest.$ac_ext
27535 cat >>conftest.$ac_ext <<_ACEOF
27536 /* end confdefs.h. */
27547 rm -f conftest.$ac_objext conftest$ac_exeext
27548 if { (ac_try="$ac_link"
27549 case "(($ac_try" in
27550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27551 *) ac_try_echo=$ac_try;;
27553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27554 (eval "$ac_link") 2>conftest.er1
27556 grep -v '^ *+' conftest.er1 >conftest.err
27558 cat conftest.err >&5
27559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27560 (exit $ac_status); } &&
27561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27562 { (case "(($ac_try" in
27563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27564 *) ac_try_echo=$ac_try;;
27566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27567 (eval "$ac_try") 2>&5
27569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570 (exit $ac_status); }; } &&
27571 { ac_try='test -s conftest$ac_exeext'
27572 { (case "(($ac_try" in
27573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27574 *) ac_try_echo=$ac_try;;
27576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27577 (eval "$ac_try") 2>&5
27579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580 (exit $ac_status); }; }; then
27581 ac_cv_lib_psapi_main=yes
27583 echo "$as_me: failed program was:" >&5
27584 sed 's/^/| /' conftest.$ac_ext >&5
27586 ac_cv_lib_psapi_main=no
27589 rm -f core conftest.err conftest.$ac_objext \
27590 conftest$ac_exeext conftest.$ac_ext
27591 LIBS=$ac_check_lib_save_LIBS
27593 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27594 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27595 if test $ac_cv_lib_psapi_main = yes; then
27596 cat >>confdefs.h <<_ACEOF
27597 #define HAVE_LIBPSAPI 1
27600 LIBS="-lpsapi $LIBS"
27606 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27607 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27608 if test "${ac_cv_search_dlopen+set}" = set; then
27609 echo $ECHO_N "(cached) $ECHO_C" >&6
27611 ac_func_search_save_LIBS=$LIBS
27612 cat >conftest.$ac_ext <<_ACEOF
27615 cat confdefs.h >>conftest.$ac_ext
27616 cat >>conftest.$ac_ext <<_ACEOF
27617 /* end confdefs.h. */
27619 /* Override any GCC internal prototype to avoid an error.
27620 Use char because int might match the return type of a GCC
27621 builtin and then its argument prototype would still apply. */
27634 for ac_lib in '' dl; do
27635 if test -z "$ac_lib"; then
27636 ac_res="none required"
27639 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27641 rm -f conftest.$ac_objext conftest$ac_exeext
27642 if { (ac_try="$ac_link"
27643 case "(($ac_try" in
27644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27645 *) ac_try_echo=$ac_try;;
27647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27648 (eval "$ac_link") 2>conftest.er1
27650 grep -v '^ *+' conftest.er1 >conftest.err
27652 cat conftest.err >&5
27653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654 (exit $ac_status); } &&
27655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27656 { (case "(($ac_try" in
27657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27658 *) ac_try_echo=$ac_try;;
27660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27661 (eval "$ac_try") 2>&5
27663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664 (exit $ac_status); }; } &&
27665 { ac_try='test -s conftest$ac_exeext'
27666 { (case "(($ac_try" in
27667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27668 *) ac_try_echo=$ac_try;;
27670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27671 (eval "$ac_try") 2>&5
27673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674 (exit $ac_status); }; }; then
27675 ac_cv_search_dlopen=$ac_res
27677 echo "$as_me: failed program was:" >&5
27678 sed 's/^/| /' conftest.$ac_ext >&5
27683 rm -f core conftest.err conftest.$ac_objext \
27685 if test "${ac_cv_search_dlopen+set}" = set; then
27689 if test "${ac_cv_search_dlopen+set}" = set; then
27692 ac_cv_search_dlopen=no
27694 rm conftest.$ac_ext
27695 LIBS=$ac_func_search_save_LIBS
27697 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27698 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27699 ac_res=$ac_cv_search_dlopen
27700 if test "$ac_res" != no; then
27701 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27703 cat >>confdefs.h <<\_ACEOF
27704 #define HAVE_DLOPEN 1
27708 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27709 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27713 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27714 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27715 if test "${ac_cv_search_mallinfo+set}" = set; then
27716 echo $ECHO_N "(cached) $ECHO_C" >&6
27718 ac_func_search_save_LIBS=$LIBS
27719 cat >conftest.$ac_ext <<_ACEOF
27722 cat confdefs.h >>conftest.$ac_ext
27723 cat >>conftest.$ac_ext <<_ACEOF
27724 /* end confdefs.h. */
27726 /* Override any GCC internal prototype to avoid an error.
27727 Use char because int might match the return type of a GCC
27728 builtin and then its argument prototype would still apply. */
27736 return mallinfo ();
27741 for ac_lib in '' malloc; do
27742 if test -z "$ac_lib"; then
27743 ac_res="none required"
27746 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27748 rm -f conftest.$ac_objext conftest$ac_exeext
27749 if { (ac_try="$ac_link"
27750 case "(($ac_try" in
27751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27752 *) ac_try_echo=$ac_try;;
27754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27755 (eval "$ac_link") 2>conftest.er1
27757 grep -v '^ *+' conftest.er1 >conftest.err
27759 cat conftest.err >&5
27760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761 (exit $ac_status); } &&
27762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27763 { (case "(($ac_try" in
27764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27765 *) ac_try_echo=$ac_try;;
27767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27768 (eval "$ac_try") 2>&5
27770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771 (exit $ac_status); }; } &&
27772 { ac_try='test -s conftest$ac_exeext'
27773 { (case "(($ac_try" in
27774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27775 *) ac_try_echo=$ac_try;;
27777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27778 (eval "$ac_try") 2>&5
27780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781 (exit $ac_status); }; }; then
27782 ac_cv_search_mallinfo=$ac_res
27784 echo "$as_me: failed program was:" >&5
27785 sed 's/^/| /' conftest.$ac_ext >&5
27790 rm -f core conftest.err conftest.$ac_objext \
27792 if test "${ac_cv_search_mallinfo+set}" = set; then
27796 if test "${ac_cv_search_mallinfo+set}" = set; then
27799 ac_cv_search_mallinfo=no
27801 rm conftest.$ac_ext
27802 LIBS=$ac_func_search_save_LIBS
27804 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27805 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27806 ac_res=$ac_cv_search_mallinfo
27807 if test "$ac_res" != no; then
27808 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27810 cat >>confdefs.h <<\_ACEOF
27811 #define HAVE_MALLINFO 1
27817 if test "$ENABLE_THREADS" -eq 1 ; then
27819 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27820 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27821 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27822 echo $ECHO_N "(cached) $ECHO_C" >&6
27824 ac_check_lib_save_LIBS=$LIBS
27825 LIBS="-lpthread $LIBS"
27826 cat >conftest.$ac_ext <<_ACEOF
27829 cat confdefs.h >>conftest.$ac_ext
27830 cat >>conftest.$ac_ext <<_ACEOF
27831 /* end confdefs.h. */
27833 /* Override any GCC internal prototype to avoid an error.
27834 Use char because int might match the return type of a GCC
27835 builtin and then its argument prototype would still apply. */
27839 char pthread_mutex_init ();
27843 return pthread_mutex_init ();
27848 rm -f conftest.$ac_objext conftest$ac_exeext
27849 if { (ac_try="$ac_link"
27850 case "(($ac_try" in
27851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27852 *) ac_try_echo=$ac_try;;
27854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27855 (eval "$ac_link") 2>conftest.er1
27857 grep -v '^ *+' conftest.er1 >conftest.err
27859 cat conftest.err >&5
27860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861 (exit $ac_status); } &&
27862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27863 { (case "(($ac_try" in
27864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27865 *) ac_try_echo=$ac_try;;
27867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27868 (eval "$ac_try") 2>&5
27870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871 (exit $ac_status); }; } &&
27872 { ac_try='test -s conftest$ac_exeext'
27873 { (case "(($ac_try" in
27874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27875 *) ac_try_echo=$ac_try;;
27877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27878 (eval "$ac_try") 2>&5
27880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881 (exit $ac_status); }; }; then
27882 ac_cv_lib_pthread_pthread_mutex_init=yes
27884 echo "$as_me: failed program was:" >&5
27885 sed 's/^/| /' conftest.$ac_ext >&5
27887 ac_cv_lib_pthread_pthread_mutex_init=no
27890 rm -f core conftest.err conftest.$ac_objext \
27891 conftest$ac_exeext conftest.$ac_ext
27892 LIBS=$ac_check_lib_save_LIBS
27894 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27895 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27896 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27897 cat >>confdefs.h <<_ACEOF
27898 #define HAVE_LIBPTHREAD 1
27901 LIBS="-lpthread $LIBS"
27905 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27906 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27907 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27908 echo $ECHO_N "(cached) $ECHO_C" >&6
27910 ac_func_search_save_LIBS=$LIBS
27911 cat >conftest.$ac_ext <<_ACEOF
27914 cat confdefs.h >>conftest.$ac_ext
27915 cat >>conftest.$ac_ext <<_ACEOF
27916 /* end confdefs.h. */
27918 /* Override any GCC internal prototype to avoid an error.
27919 Use char because int might match the return type of a GCC
27920 builtin and then its argument prototype would still apply. */
27924 char pthread_mutex_lock ();
27928 return pthread_mutex_lock ();
27933 for ac_lib in '' pthread; do
27934 if test -z "$ac_lib"; then
27935 ac_res="none required"
27938 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27940 rm -f conftest.$ac_objext conftest$ac_exeext
27941 if { (ac_try="$ac_link"
27942 case "(($ac_try" in
27943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27944 *) ac_try_echo=$ac_try;;
27946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27947 (eval "$ac_link") 2>conftest.er1
27949 grep -v '^ *+' conftest.er1 >conftest.err
27951 cat conftest.err >&5
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); } &&
27954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27955 { (case "(($ac_try" in
27956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27957 *) ac_try_echo=$ac_try;;
27959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27960 (eval "$ac_try") 2>&5
27962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963 (exit $ac_status); }; } &&
27964 { ac_try='test -s conftest$ac_exeext'
27965 { (case "(($ac_try" in
27966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27967 *) ac_try_echo=$ac_try;;
27969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27970 (eval "$ac_try") 2>&5
27972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973 (exit $ac_status); }; }; then
27974 ac_cv_search_pthread_mutex_lock=$ac_res
27976 echo "$as_me: failed program was:" >&5
27977 sed 's/^/| /' conftest.$ac_ext >&5
27982 rm -f core conftest.err conftest.$ac_objext \
27984 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27988 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27991 ac_cv_search_pthread_mutex_lock=no
27993 rm conftest.$ac_ext
27994 LIBS=$ac_func_search_save_LIBS
27996 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27997 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27998 ac_res=$ac_cv_search_pthread_mutex_lock
27999 if test "$ac_res" != no; then
28000 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28002 cat >>confdefs.h <<\_ACEOF
28003 #define HAVE_PTHREAD_MUTEX_LOCK 1
28011 # Check whether --with-udis86 was given.
28012 if test "${with_udis86+set}" = set; then
28013 withval=$with_udis86;
28018 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28021 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28022 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28023 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28024 echo $ECHO_N "(cached) $ECHO_C" >&6
28026 ac_check_lib_save_LIBS=$LIBS
28027 LIBS="-ludis86 $LIBS"
28028 cat >conftest.$ac_ext <<_ACEOF
28031 cat confdefs.h >>conftest.$ac_ext
28032 cat >>conftest.$ac_ext <<_ACEOF
28033 /* end confdefs.h. */
28035 /* Override any GCC internal prototype to avoid an error.
28036 Use char because int might match the return type of a GCC
28037 builtin and then its argument prototype would still apply. */
28050 rm -f conftest.$ac_objext conftest$ac_exeext
28051 if { (ac_try="$ac_link"
28052 case "(($ac_try" in
28053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28054 *) ac_try_echo=$ac_try;;
28056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28057 (eval "$ac_link") 2>conftest.er1
28059 grep -v '^ *+' conftest.er1 >conftest.err
28061 cat conftest.err >&5
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); } &&
28064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28065 { (case "(($ac_try" in
28066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28067 *) ac_try_echo=$ac_try;;
28069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28070 (eval "$ac_try") 2>&5
28072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073 (exit $ac_status); }; } &&
28074 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28084 ac_cv_lib_udis86_ud_init=yes
28086 echo "$as_me: failed program was:" >&5
28087 sed 's/^/| /' conftest.$ac_ext >&5
28089 ac_cv_lib_udis86_ud_init=no
28092 rm -f core conftest.err conftest.$ac_objext \
28093 conftest$ac_exeext conftest.$ac_ext
28094 LIBS=$ac_check_lib_save_LIBS
28096 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28097 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28098 if test $ac_cv_lib_udis86_ud_init = yes; then
28099 cat >>confdefs.h <<_ACEOF
28100 #define HAVE_LIBUDIS86 1
28103 LIBS="-ludis86 $LIBS"
28107 echo "Error! You need to have libudis86 around."
28119 cat >>confdefs.h <<_ACEOF
28120 #define USE_UDIS86 $USE_UDIS86
28130 ac_header_dirent=no
28131 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28132 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28133 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28134 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28136 echo $ECHO_N "(cached) $ECHO_C" >&6
28138 cat >conftest.$ac_ext <<_ACEOF
28141 cat confdefs.h >>conftest.$ac_ext
28142 cat >>conftest.$ac_ext <<_ACEOF
28143 /* end confdefs.h. */
28144 #include <sys/types.h>
28156 rm -f conftest.$ac_objext
28157 if { (ac_try="$ac_compile"
28158 case "(($ac_try" in
28159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28160 *) ac_try_echo=$ac_try;;
28162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28163 (eval "$ac_compile") 2>conftest.er1
28165 grep -v '^ *+' conftest.er1 >conftest.err
28167 cat conftest.err >&5
28168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169 (exit $ac_status); } &&
28170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28171 { (case "(($ac_try" in
28172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173 *) ac_try_echo=$ac_try;;
28175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176 (eval "$ac_try") 2>&5
28178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28179 (exit $ac_status); }; } &&
28180 { ac_try='test -s conftest.$ac_objext'
28181 { (case "(($ac_try" in
28182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28183 *) ac_try_echo=$ac_try;;
28185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28186 (eval "$ac_try") 2>&5
28188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189 (exit $ac_status); }; }; then
28190 eval "$as_ac_Header=yes"
28192 echo "$as_me: failed program was:" >&5
28193 sed 's/^/| /' conftest.$ac_ext >&5
28195 eval "$as_ac_Header=no"
28198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28200 ac_res=`eval echo '${'$as_ac_Header'}'`
28201 { echo "$as_me:$LINENO: result: $ac_res" >&5
28202 echo "${ECHO_T}$ac_res" >&6; }
28203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28204 cat >>confdefs.h <<_ACEOF
28205 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28208 ac_header_dirent=$ac_hdr; break
28212 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28213 if test $ac_header_dirent = dirent.h; then
28214 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28215 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28216 if test "${ac_cv_search_opendir+set}" = set; then
28217 echo $ECHO_N "(cached) $ECHO_C" >&6
28219 ac_func_search_save_LIBS=$LIBS
28220 cat >conftest.$ac_ext <<_ACEOF
28223 cat confdefs.h >>conftest.$ac_ext
28224 cat >>conftest.$ac_ext <<_ACEOF
28225 /* end confdefs.h. */
28227 /* Override any GCC internal prototype to avoid an error.
28228 Use char because int might match the return type of a GCC
28229 builtin and then its argument prototype would still apply. */
28242 for ac_lib in '' dir; do
28243 if test -z "$ac_lib"; then
28244 ac_res="none required"
28247 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28249 rm -f conftest.$ac_objext conftest$ac_exeext
28250 if { (ac_try="$ac_link"
28251 case "(($ac_try" in
28252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28253 *) ac_try_echo=$ac_try;;
28255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28256 (eval "$ac_link") 2>conftest.er1
28258 grep -v '^ *+' conftest.er1 >conftest.err
28260 cat conftest.err >&5
28261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262 (exit $ac_status); } &&
28263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28264 { (case "(($ac_try" in
28265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28266 *) ac_try_echo=$ac_try;;
28268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28269 (eval "$ac_try") 2>&5
28271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272 (exit $ac_status); }; } &&
28273 { ac_try='test -s conftest$ac_exeext'
28274 { (case "(($ac_try" in
28275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28276 *) ac_try_echo=$ac_try;;
28278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28279 (eval "$ac_try") 2>&5
28281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282 (exit $ac_status); }; }; then
28283 ac_cv_search_opendir=$ac_res
28285 echo "$as_me: failed program was:" >&5
28286 sed 's/^/| /' conftest.$ac_ext >&5
28291 rm -f core conftest.err conftest.$ac_objext \
28293 if test "${ac_cv_search_opendir+set}" = set; then
28297 if test "${ac_cv_search_opendir+set}" = set; then
28300 ac_cv_search_opendir=no
28302 rm conftest.$ac_ext
28303 LIBS=$ac_func_search_save_LIBS
28305 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28306 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28307 ac_res=$ac_cv_search_opendir
28308 if test "$ac_res" != no; then
28309 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28314 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28315 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28316 if test "${ac_cv_search_opendir+set}" = set; then
28317 echo $ECHO_N "(cached) $ECHO_C" >&6
28319 ac_func_search_save_LIBS=$LIBS
28320 cat >conftest.$ac_ext <<_ACEOF
28323 cat confdefs.h >>conftest.$ac_ext
28324 cat >>conftest.$ac_ext <<_ACEOF
28325 /* end confdefs.h. */
28327 /* Override any GCC internal prototype to avoid an error.
28328 Use char because int might match the return type of a GCC
28329 builtin and then its argument prototype would still apply. */
28342 for ac_lib in '' x; do
28343 if test -z "$ac_lib"; then
28344 ac_res="none required"
28347 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28349 rm -f conftest.$ac_objext conftest$ac_exeext
28350 if { (ac_try="$ac_link"
28351 case "(($ac_try" in
28352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28353 *) ac_try_echo=$ac_try;;
28355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28356 (eval "$ac_link") 2>conftest.er1
28358 grep -v '^ *+' conftest.er1 >conftest.err
28360 cat conftest.err >&5
28361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362 (exit $ac_status); } &&
28363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28364 { (case "(($ac_try" in
28365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28366 *) ac_try_echo=$ac_try;;
28368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28369 (eval "$ac_try") 2>&5
28371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28372 (exit $ac_status); }; } &&
28373 { ac_try='test -s conftest$ac_exeext'
28374 { (case "(($ac_try" in
28375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28376 *) ac_try_echo=$ac_try;;
28378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28379 (eval "$ac_try") 2>&5
28381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382 (exit $ac_status); }; }; then
28383 ac_cv_search_opendir=$ac_res
28385 echo "$as_me: failed program was:" >&5
28386 sed 's/^/| /' conftest.$ac_ext >&5
28391 rm -f core conftest.err conftest.$ac_objext \
28393 if test "${ac_cv_search_opendir+set}" = set; then
28397 if test "${ac_cv_search_opendir+set}" = set; then
28400 ac_cv_search_opendir=no
28402 rm conftest.$ac_ext
28403 LIBS=$ac_func_search_save_LIBS
28405 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28406 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28407 ac_res=$ac_cv_search_opendir
28408 if test "$ac_res" != no; then
28409 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28415 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28416 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28417 if test "${ac_cv_header_mmap_anon+set}" = set; then
28418 echo $ECHO_N "(cached) $ECHO_C" >&6
28421 ac_cpp='$CPP $CPPFLAGS'
28422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28426 cat >conftest.$ac_ext <<_ACEOF
28429 cat confdefs.h >>conftest.$ac_ext
28430 cat >>conftest.$ac_ext <<_ACEOF
28431 /* end confdefs.h. */
28432 #include <sys/mman.h>
28433 #include <unistd.h>
28438 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28443 rm -f conftest.$ac_objext
28444 if { (ac_try="$ac_compile"
28445 case "(($ac_try" in
28446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28447 *) ac_try_echo=$ac_try;;
28449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28450 (eval "$ac_compile") 2>conftest.er1
28452 grep -v '^ *+' conftest.er1 >conftest.err
28454 cat conftest.err >&5
28455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456 (exit $ac_status); } &&
28457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28458 { (case "(($ac_try" in
28459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28460 *) ac_try_echo=$ac_try;;
28462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28463 (eval "$ac_try") 2>&5
28465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466 (exit $ac_status); }; } &&
28467 { ac_try='test -s conftest.$ac_objext'
28468 { (case "(($ac_try" in
28469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28470 *) ac_try_echo=$ac_try;;
28472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28473 (eval "$ac_try") 2>&5
28475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28476 (exit $ac_status); }; }; then
28477 ac_cv_header_mmap_anon=yes
28479 echo "$as_me: failed program was:" >&5
28480 sed 's/^/| /' conftest.$ac_ext >&5
28482 ac_cv_header_mmap_anon=no
28485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28487 ac_cpp='$CPP $CPPFLAGS'
28488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28494 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28495 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28496 if test "$ac_cv_header_mmap_anon" = yes; then
28498 cat >>confdefs.h <<\_ACEOF
28499 #define HAVE_MMAP_ANONYMOUS 1
28504 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28505 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28506 if test "${ac_cv_header_stat_broken+set}" = set; then
28507 echo $ECHO_N "(cached) $ECHO_C" >&6
28509 cat >conftest.$ac_ext <<_ACEOF
28512 cat confdefs.h >>conftest.$ac_ext
28513 cat >>conftest.$ac_ext <<_ACEOF
28514 /* end confdefs.h. */
28515 #include <sys/types.h>
28516 #include <sys/stat.h>
28518 #if defined S_ISBLK && defined S_IFDIR
28519 # if S_ISBLK (S_IFDIR)
28524 #if defined S_ISBLK && defined S_IFCHR
28525 # if S_ISBLK (S_IFCHR)
28530 #if defined S_ISLNK && defined S_IFREG
28531 # if S_ISLNK (S_IFREG)
28536 #if defined S_ISSOCK && defined S_IFREG
28537 # if S_ISSOCK (S_IFREG)
28543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28544 $EGREP "You lose" >/dev/null 2>&1; then
28545 ac_cv_header_stat_broken=yes
28547 ac_cv_header_stat_broken=no
28552 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28553 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28554 if test $ac_cv_header_stat_broken = yes; then
28556 cat >>confdefs.h <<\_ACEOF
28557 #define STAT_MACROS_BROKEN 1
28562 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28563 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28564 if test "${ac_cv_header_stdc+set}" = set; then
28565 echo $ECHO_N "(cached) $ECHO_C" >&6
28567 cat >conftest.$ac_ext <<_ACEOF
28570 cat confdefs.h >>conftest.$ac_ext
28571 cat >>conftest.$ac_ext <<_ACEOF
28572 /* end confdefs.h. */
28573 #include <stdlib.h>
28574 #include <stdarg.h>
28575 #include <string.h>
28586 rm -f conftest.$ac_objext
28587 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
28595 grep -v '^ *+' conftest.er1 >conftest.err
28597 cat conftest.err >&5
28598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); } &&
28600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28601 { (case "(($ac_try" in
28602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28603 *) ac_try_echo=$ac_try;;
28605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606 (eval "$ac_try") 2>&5
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); }; } &&
28610 { ac_try='test -s conftest.$ac_objext'
28611 { (case "(($ac_try" in
28612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28613 *) ac_try_echo=$ac_try;;
28615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28616 (eval "$ac_try") 2>&5
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); }; }; then
28620 ac_cv_header_stdc=yes
28622 echo "$as_me: failed program was:" >&5
28623 sed 's/^/| /' conftest.$ac_ext >&5
28625 ac_cv_header_stdc=no
28628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28630 if test $ac_cv_header_stdc = yes; then
28631 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28632 cat >conftest.$ac_ext <<_ACEOF
28635 cat confdefs.h >>conftest.$ac_ext
28636 cat >>conftest.$ac_ext <<_ACEOF
28637 /* end confdefs.h. */
28638 #include <string.h>
28641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28642 $EGREP "memchr" >/dev/null 2>&1; then
28645 ac_cv_header_stdc=no
28651 if test $ac_cv_header_stdc = yes; then
28652 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28653 cat >conftest.$ac_ext <<_ACEOF
28656 cat confdefs.h >>conftest.$ac_ext
28657 cat >>conftest.$ac_ext <<_ACEOF
28658 /* end confdefs.h. */
28659 #include <stdlib.h>
28662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28663 $EGREP "free" >/dev/null 2>&1; then
28666 ac_cv_header_stdc=no
28672 if test $ac_cv_header_stdc = yes; then
28673 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28674 if test "$cross_compiling" = yes; then
28677 cat >conftest.$ac_ext <<_ACEOF
28680 cat confdefs.h >>conftest.$ac_ext
28681 cat >>conftest.$ac_ext <<_ACEOF
28682 /* end confdefs.h. */
28684 #include <stdlib.h>
28685 #if ((' ' & 0x0FF) == 0x020)
28686 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28687 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28689 # define ISLOWER(c) \
28690 (('a' <= (c) && (c) <= 'i') \
28691 || ('j' <= (c) && (c) <= 'r') \
28692 || ('s' <= (c) && (c) <= 'z'))
28693 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28696 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28701 for (i = 0; i < 256; i++)
28702 if (XOR (islower (i), ISLOWER (i))
28703 || toupper (i) != TOUPPER (i))
28708 rm -f conftest$ac_exeext
28709 if { (ac_try="$ac_link"
28710 case "(($ac_try" in
28711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28712 *) ac_try_echo=$ac_try;;
28714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28715 (eval "$ac_link") 2>&5
28717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28719 { (case "(($ac_try" in
28720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28721 *) ac_try_echo=$ac_try;;
28723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28724 (eval "$ac_try") 2>&5
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); }; }; then
28730 echo "$as_me: program exited with status $ac_status" >&5
28731 echo "$as_me: failed program was:" >&5
28732 sed 's/^/| /' conftest.$ac_ext >&5
28734 ( exit $ac_status )
28735 ac_cv_header_stdc=no
28737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28743 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28744 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28745 if test $ac_cv_header_stdc = yes; then
28747 cat >>confdefs.h <<\_ACEOF
28748 #define STDC_HEADERS 1
28753 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28754 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28755 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28756 echo $ECHO_N "(cached) $ECHO_C" >&6
28758 cat >conftest.$ac_ext <<_ACEOF
28761 cat confdefs.h >>conftest.$ac_ext
28762 cat >>conftest.$ac_ext <<_ACEOF
28763 /* end confdefs.h. */
28764 #include <sys/types.h>
28765 #include <sys/wait.h>
28766 #ifndef WEXITSTATUS
28767 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28770 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28778 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28783 rm -f conftest.$ac_objext
28784 if { (ac_try="$ac_compile"
28785 case "(($ac_try" in
28786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28787 *) ac_try_echo=$ac_try;;
28789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28790 (eval "$ac_compile") 2>conftest.er1
28792 grep -v '^ *+' conftest.er1 >conftest.err
28794 cat conftest.err >&5
28795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796 (exit $ac_status); } &&
28797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28798 { (case "(($ac_try" in
28799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28800 *) ac_try_echo=$ac_try;;
28802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28803 (eval "$ac_try") 2>&5
28805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806 (exit $ac_status); }; } &&
28807 { ac_try='test -s conftest.$ac_objext'
28808 { (case "(($ac_try" in
28809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28810 *) ac_try_echo=$ac_try;;
28812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28813 (eval "$ac_try") 2>&5
28815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816 (exit $ac_status); }; }; then
28817 ac_cv_header_sys_wait_h=yes
28819 echo "$as_me: failed program was:" >&5
28820 sed 's/^/| /' conftest.$ac_ext >&5
28822 ac_cv_header_sys_wait_h=no
28825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28827 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28828 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28829 if test $ac_cv_header_sys_wait_h = yes; then
28831 cat >>confdefs.h <<\_ACEOF
28832 #define HAVE_SYS_WAIT_H 1
28837 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28838 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28839 if test "${ac_cv_header_time+set}" = set; then
28840 echo $ECHO_N "(cached) $ECHO_C" >&6
28842 cat >conftest.$ac_ext <<_ACEOF
28845 cat confdefs.h >>conftest.$ac_ext
28846 cat >>conftest.$ac_ext <<_ACEOF
28847 /* end confdefs.h. */
28848 #include <sys/types.h>
28849 #include <sys/time.h>
28855 if ((struct tm *) 0)
28861 rm -f conftest.$ac_objext
28862 if { (ac_try="$ac_compile"
28863 case "(($ac_try" in
28864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28865 *) ac_try_echo=$ac_try;;
28867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28868 (eval "$ac_compile") 2>conftest.er1
28870 grep -v '^ *+' conftest.er1 >conftest.err
28872 cat conftest.err >&5
28873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874 (exit $ac_status); } &&
28875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28876 { (case "(($ac_try" in
28877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28878 *) ac_try_echo=$ac_try;;
28880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28881 (eval "$ac_try") 2>&5
28883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884 (exit $ac_status); }; } &&
28885 { ac_try='test -s conftest.$ac_objext'
28886 { (case "(($ac_try" in
28887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28888 *) ac_try_echo=$ac_try;;
28890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28891 (eval "$ac_try") 2>&5
28893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894 (exit $ac_status); }; }; then
28895 ac_cv_header_time=yes
28897 echo "$as_me: failed program was:" >&5
28898 sed 's/^/| /' conftest.$ac_ext >&5
28900 ac_cv_header_time=no
28903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28905 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28906 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28907 if test $ac_cv_header_time = yes; then
28909 cat >>confdefs.h <<\_ACEOF
28910 #define TIME_WITH_SYS_TIME 1
28922 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28929 echo $ECHO_N "(cached) $ECHO_C" >&6
28931 ac_res=`eval echo '${'$as_ac_Header'}'`
28932 { echo "$as_me:$LINENO: result: $ac_res" >&5
28933 echo "${ECHO_T}$ac_res" >&6; }
28935 # Is the header compilable?
28936 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28938 cat >conftest.$ac_ext <<_ACEOF
28941 cat confdefs.h >>conftest.$ac_ext
28942 cat >>conftest.$ac_ext <<_ACEOF
28943 /* end confdefs.h. */
28944 $ac_includes_default
28945 #include <$ac_header>
28947 rm -f conftest.$ac_objext
28948 if { (ac_try="$ac_compile"
28949 case "(($ac_try" in
28950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28951 *) ac_try_echo=$ac_try;;
28953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28954 (eval "$ac_compile") 2>conftest.er1
28956 grep -v '^ *+' conftest.er1 >conftest.err
28958 cat conftest.err >&5
28959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28960 (exit $ac_status); } &&
28961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28962 { (case "(($ac_try" in
28963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28964 *) ac_try_echo=$ac_try;;
28966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28967 (eval "$ac_try") 2>&5
28969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970 (exit $ac_status); }; } &&
28971 { ac_try='test -s conftest.$ac_objext'
28972 { (case "(($ac_try" in
28973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28974 *) ac_try_echo=$ac_try;;
28976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28977 (eval "$ac_try") 2>&5
28979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28980 (exit $ac_status); }; }; then
28981 ac_header_compiler=yes
28983 echo "$as_me: failed program was:" >&5
28984 sed 's/^/| /' conftest.$ac_ext >&5
28986 ac_header_compiler=no
28989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28991 echo "${ECHO_T}$ac_header_compiler" >&6; }
28993 # Is the header present?
28994 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28996 cat >conftest.$ac_ext <<_ACEOF
28999 cat confdefs.h >>conftest.$ac_ext
29000 cat >>conftest.$ac_ext <<_ACEOF
29001 /* end confdefs.h. */
29002 #include <$ac_header>
29004 if { (ac_try="$ac_cpp conftest.$ac_ext"
29005 case "(($ac_try" in
29006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29007 *) ac_try_echo=$ac_try;;
29009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29012 grep -v '^ *+' conftest.er1 >conftest.err
29014 cat conftest.err >&5
29015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016 (exit $ac_status); } >/dev/null; then
29017 if test -s conftest.err; then
29018 ac_cpp_err=$ac_c_preproc_warn_flag
29019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29026 if test -z "$ac_cpp_err"; then
29027 ac_header_preproc=yes
29029 echo "$as_me: failed program was:" >&5
29030 sed 's/^/| /' conftest.$ac_ext >&5
29032 ac_header_preproc=no
29035 rm -f conftest.err conftest.$ac_ext
29036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29037 echo "${ECHO_T}$ac_header_preproc" >&6; }
29039 # So? What about this header?
29040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29043 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29045 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29046 ac_header_preproc=yes
29049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29052 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29054 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29056 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29060 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29062 ## ----------------------------------- ##
29063 ## Report this to llvmbugs@cs.uiuc.edu ##
29064 ## ----------------------------------- ##
29066 ) | sed "s/^/$as_me: WARNING: /" >&2
29069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29072 echo $ECHO_N "(cached) $ECHO_C" >&6
29074 eval "$as_ac_Header=\$ac_header_preproc"
29076 ac_res=`eval echo '${'$as_ac_Header'}'`
29077 { echo "$as_me:$LINENO: result: $ac_res" >&5
29078 echo "${ECHO_T}$ac_res" >&6; }
29081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29082 cat >>confdefs.h <<_ACEOF
29083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29096 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
29098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29103 echo $ECHO_N "(cached) $ECHO_C" >&6
29105 ac_res=`eval echo '${'$as_ac_Header'}'`
29106 { echo "$as_me:$LINENO: result: $ac_res" >&5
29107 echo "${ECHO_T}$ac_res" >&6; }
29109 # Is the header compilable?
29110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29112 cat >conftest.$ac_ext <<_ACEOF
29115 cat confdefs.h >>conftest.$ac_ext
29116 cat >>conftest.$ac_ext <<_ACEOF
29117 /* end confdefs.h. */
29118 $ac_includes_default
29119 #include <$ac_header>
29121 rm -f conftest.$ac_objext
29122 if { (ac_try="$ac_compile"
29123 case "(($ac_try" in
29124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29125 *) ac_try_echo=$ac_try;;
29127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29128 (eval "$ac_compile") 2>conftest.er1
29130 grep -v '^ *+' conftest.er1 >conftest.err
29132 cat conftest.err >&5
29133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134 (exit $ac_status); } &&
29135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29136 { (case "(($ac_try" in
29137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29138 *) ac_try_echo=$ac_try;;
29140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29141 (eval "$ac_try") 2>&5
29143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144 (exit $ac_status); }; } &&
29145 { ac_try='test -s conftest.$ac_objext'
29146 { (case "(($ac_try" in
29147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29148 *) ac_try_echo=$ac_try;;
29150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29151 (eval "$ac_try") 2>&5
29153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154 (exit $ac_status); }; }; then
29155 ac_header_compiler=yes
29157 echo "$as_me: failed program was:" >&5
29158 sed 's/^/| /' conftest.$ac_ext >&5
29160 ac_header_compiler=no
29163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29165 echo "${ECHO_T}$ac_header_compiler" >&6; }
29167 # Is the header present?
29168 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29170 cat >conftest.$ac_ext <<_ACEOF
29173 cat confdefs.h >>conftest.$ac_ext
29174 cat >>conftest.$ac_ext <<_ACEOF
29175 /* end confdefs.h. */
29176 #include <$ac_header>
29178 if { (ac_try="$ac_cpp conftest.$ac_ext"
29179 case "(($ac_try" in
29180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29181 *) ac_try_echo=$ac_try;;
29183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29186 grep -v '^ *+' conftest.er1 >conftest.err
29188 cat conftest.err >&5
29189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190 (exit $ac_status); } >/dev/null; then
29191 if test -s conftest.err; then
29192 ac_cpp_err=$ac_c_preproc_warn_flag
29193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29200 if test -z "$ac_cpp_err"; then
29201 ac_header_preproc=yes
29203 echo "$as_me: failed program was:" >&5
29204 sed 's/^/| /' conftest.$ac_ext >&5
29206 ac_header_preproc=no
29209 rm -f conftest.err conftest.$ac_ext
29210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29211 echo "${ECHO_T}$ac_header_preproc" >&6; }
29213 # So? What about this header?
29214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29220 ac_header_preproc=yes
29223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29236 ## ----------------------------------- ##
29237 ## Report this to llvmbugs@cs.uiuc.edu ##
29238 ## ----------------------------------- ##
29240 ) | sed "s/^/$as_me: WARNING: /" >&2
29243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29246 echo $ECHO_N "(cached) $ECHO_C" >&6
29248 eval "$as_ac_Header=\$ac_header_preproc"
29250 ac_res=`eval echo '${'$as_ac_Header'}'`
29251 { echo "$as_me:$LINENO: result: $ac_res" >&5
29252 echo "${ECHO_T}$ac_res" >&6; }
29255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29256 cat >>confdefs.h <<_ACEOF
29257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29265 for ac_header in windows.h
29267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29272 echo $ECHO_N "(cached) $ECHO_C" >&6
29274 ac_res=`eval echo '${'$as_ac_Header'}'`
29275 { echo "$as_me:$LINENO: result: $ac_res" >&5
29276 echo "${ECHO_T}$ac_res" >&6; }
29278 # Is the header compilable?
29279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29281 cat >conftest.$ac_ext <<_ACEOF
29284 cat confdefs.h >>conftest.$ac_ext
29285 cat >>conftest.$ac_ext <<_ACEOF
29286 /* end confdefs.h. */
29287 $ac_includes_default
29288 #include <$ac_header>
29290 rm -f conftest.$ac_objext
29291 if { (ac_try="$ac_compile"
29292 case "(($ac_try" in
29293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29294 *) ac_try_echo=$ac_try;;
29296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29297 (eval "$ac_compile") 2>conftest.er1
29299 grep -v '^ *+' conftest.er1 >conftest.err
29301 cat conftest.err >&5
29302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29303 (exit $ac_status); } &&
29304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29305 { (case "(($ac_try" in
29306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29307 *) ac_try_echo=$ac_try;;
29309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29310 (eval "$ac_try") 2>&5
29312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29313 (exit $ac_status); }; } &&
29314 { ac_try='test -s conftest.$ac_objext'
29315 { (case "(($ac_try" in
29316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29317 *) ac_try_echo=$ac_try;;
29319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29320 (eval "$ac_try") 2>&5
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); }; }; then
29324 ac_header_compiler=yes
29326 echo "$as_me: failed program was:" >&5
29327 sed 's/^/| /' conftest.$ac_ext >&5
29329 ac_header_compiler=no
29332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29334 echo "${ECHO_T}$ac_header_compiler" >&6; }
29336 # Is the header present?
29337 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29339 cat >conftest.$ac_ext <<_ACEOF
29342 cat confdefs.h >>conftest.$ac_ext
29343 cat >>conftest.$ac_ext <<_ACEOF
29344 /* end confdefs.h. */
29345 #include <$ac_header>
29347 if { (ac_try="$ac_cpp conftest.$ac_ext"
29348 case "(($ac_try" in
29349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29350 *) ac_try_echo=$ac_try;;
29352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29355 grep -v '^ *+' conftest.er1 >conftest.err
29357 cat conftest.err >&5
29358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29359 (exit $ac_status); } >/dev/null; then
29360 if test -s conftest.err; then
29361 ac_cpp_err=$ac_c_preproc_warn_flag
29362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29369 if test -z "$ac_cpp_err"; then
29370 ac_header_preproc=yes
29372 echo "$as_me: failed program was:" >&5
29373 sed 's/^/| /' conftest.$ac_ext >&5
29375 ac_header_preproc=no
29378 rm -f conftest.err conftest.$ac_ext
29379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29380 echo "${ECHO_T}$ac_header_preproc" >&6; }
29382 # So? What about this header?
29383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29389 ac_header_preproc=yes
29392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29399 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29405 ## ----------------------------------- ##
29406 ## Report this to llvmbugs@cs.uiuc.edu ##
29407 ## ----------------------------------- ##
29409 ) | sed "s/^/$as_me: WARNING: /" >&2
29412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29415 echo $ECHO_N "(cached) $ECHO_C" >&6
29417 eval "$as_ac_Header=\$ac_header_preproc"
29419 ac_res=`eval echo '${'$as_ac_Header'}'`
29420 { echo "$as_me:$LINENO: result: $ac_res" >&5
29421 echo "${ECHO_T}$ac_res" >&6; }
29424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29425 cat >>confdefs.h <<_ACEOF
29426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29437 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29444 echo $ECHO_N "(cached) $ECHO_C" >&6
29446 ac_res=`eval echo '${'$as_ac_Header'}'`
29447 { echo "$as_me:$LINENO: result: $ac_res" >&5
29448 echo "${ECHO_T}$ac_res" >&6; }
29450 # Is the header compilable?
29451 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29453 cat >conftest.$ac_ext <<_ACEOF
29456 cat confdefs.h >>conftest.$ac_ext
29457 cat >>conftest.$ac_ext <<_ACEOF
29458 /* end confdefs.h. */
29459 $ac_includes_default
29460 #include <$ac_header>
29462 rm -f conftest.$ac_objext
29463 if { (ac_try="$ac_compile"
29464 case "(($ac_try" in
29465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29466 *) ac_try_echo=$ac_try;;
29468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29469 (eval "$ac_compile") 2>conftest.er1
29471 grep -v '^ *+' conftest.er1 >conftest.err
29473 cat conftest.err >&5
29474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475 (exit $ac_status); } &&
29476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29477 { (case "(($ac_try" in
29478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29479 *) ac_try_echo=$ac_try;;
29481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29482 (eval "$ac_try") 2>&5
29484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485 (exit $ac_status); }; } &&
29486 { ac_try='test -s conftest.$ac_objext'
29487 { (case "(($ac_try" in
29488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29489 *) ac_try_echo=$ac_try;;
29491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29492 (eval "$ac_try") 2>&5
29494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495 (exit $ac_status); }; }; then
29496 ac_header_compiler=yes
29498 echo "$as_me: failed program was:" >&5
29499 sed 's/^/| /' conftest.$ac_ext >&5
29501 ac_header_compiler=no
29504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29505 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29506 echo "${ECHO_T}$ac_header_compiler" >&6; }
29508 # Is the header present?
29509 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29511 cat >conftest.$ac_ext <<_ACEOF
29514 cat confdefs.h >>conftest.$ac_ext
29515 cat >>conftest.$ac_ext <<_ACEOF
29516 /* end confdefs.h. */
29517 #include <$ac_header>
29519 if { (ac_try="$ac_cpp conftest.$ac_ext"
29520 case "(($ac_try" in
29521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29522 *) ac_try_echo=$ac_try;;
29524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29527 grep -v '^ *+' conftest.er1 >conftest.err
29529 cat conftest.err >&5
29530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29531 (exit $ac_status); } >/dev/null; then
29532 if test -s conftest.err; then
29533 ac_cpp_err=$ac_c_preproc_warn_flag
29534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29541 if test -z "$ac_cpp_err"; then
29542 ac_header_preproc=yes
29544 echo "$as_me: failed program was:" >&5
29545 sed 's/^/| /' conftest.$ac_ext >&5
29547 ac_header_preproc=no
29550 rm -f conftest.err conftest.$ac_ext
29551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29552 echo "${ECHO_T}$ac_header_preproc" >&6; }
29554 # So? What about this header?
29555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29561 ac_header_preproc=yes
29564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29577 ## ----------------------------------- ##
29578 ## Report this to llvmbugs@cs.uiuc.edu ##
29579 ## ----------------------------------- ##
29581 ) | sed "s/^/$as_me: WARNING: /" >&2
29584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29587 echo $ECHO_N "(cached) $ECHO_C" >&6
29589 eval "$as_ac_Header=\$ac_header_preproc"
29591 ac_res=`eval echo '${'$as_ac_Header'}'`
29592 { echo "$as_me:$LINENO: result: $ac_res" >&5
29593 echo "${ECHO_T}$ac_res" >&6; }
29596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29597 cat >>confdefs.h <<_ACEOF
29598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29608 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29610 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29615 echo $ECHO_N "(cached) $ECHO_C" >&6
29617 ac_res=`eval echo '${'$as_ac_Header'}'`
29618 { echo "$as_me:$LINENO: result: $ac_res" >&5
29619 echo "${ECHO_T}$ac_res" >&6; }
29621 # Is the header compilable?
29622 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29624 cat >conftest.$ac_ext <<_ACEOF
29627 cat confdefs.h >>conftest.$ac_ext
29628 cat >>conftest.$ac_ext <<_ACEOF
29629 /* end confdefs.h. */
29630 $ac_includes_default
29631 #include <$ac_header>
29633 rm -f conftest.$ac_objext
29634 if { (ac_try="$ac_compile"
29635 case "(($ac_try" in
29636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29637 *) ac_try_echo=$ac_try;;
29639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29640 (eval "$ac_compile") 2>conftest.er1
29642 grep -v '^ *+' conftest.er1 >conftest.err
29644 cat conftest.err >&5
29645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29646 (exit $ac_status); } &&
29647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29648 { (case "(($ac_try" in
29649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29650 *) ac_try_echo=$ac_try;;
29652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29653 (eval "$ac_try") 2>&5
29655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656 (exit $ac_status); }; } &&
29657 { ac_try='test -s conftest.$ac_objext'
29658 { (case "(($ac_try" in
29659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29660 *) ac_try_echo=$ac_try;;
29662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29663 (eval "$ac_try") 2>&5
29665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29666 (exit $ac_status); }; }; then
29667 ac_header_compiler=yes
29669 echo "$as_me: failed program was:" >&5
29670 sed 's/^/| /' conftest.$ac_ext >&5
29672 ac_header_compiler=no
29675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29676 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29677 echo "${ECHO_T}$ac_header_compiler" >&6; }
29679 # Is the header present?
29680 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29682 cat >conftest.$ac_ext <<_ACEOF
29685 cat confdefs.h >>conftest.$ac_ext
29686 cat >>conftest.$ac_ext <<_ACEOF
29687 /* end confdefs.h. */
29688 #include <$ac_header>
29690 if { (ac_try="$ac_cpp conftest.$ac_ext"
29691 case "(($ac_try" in
29692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29693 *) ac_try_echo=$ac_try;;
29695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29698 grep -v '^ *+' conftest.er1 >conftest.err
29700 cat conftest.err >&5
29701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29702 (exit $ac_status); } >/dev/null; then
29703 if test -s conftest.err; then
29704 ac_cpp_err=$ac_c_preproc_warn_flag
29705 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29712 if test -z "$ac_cpp_err"; then
29713 ac_header_preproc=yes
29715 echo "$as_me: failed program was:" >&5
29716 sed 's/^/| /' conftest.$ac_ext >&5
29718 ac_header_preproc=no
29721 rm -f conftest.err conftest.$ac_ext
29722 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29723 echo "${ECHO_T}$ac_header_preproc" >&6; }
29725 # So? What about this header?
29726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29732 ac_header_preproc=yes
29735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29742 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29748 ## ----------------------------------- ##
29749 ## Report this to llvmbugs@cs.uiuc.edu ##
29750 ## ----------------------------------- ##
29752 ) | sed "s/^/$as_me: WARNING: /" >&2
29755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29758 echo $ECHO_N "(cached) $ECHO_C" >&6
29760 eval "$as_ac_Header=\$ac_header_preproc"
29762 ac_res=`eval echo '${'$as_ac_Header'}'`
29763 { echo "$as_me:$LINENO: result: $ac_res" >&5
29764 echo "${ECHO_T}$ac_res" >&6; }
29767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29768 cat >>confdefs.h <<_ACEOF
29769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29776 if test "$ENABLE_THREADS" -eq 1 ; then
29778 for ac_header in pthread.h
29780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29785 echo $ECHO_N "(cached) $ECHO_C" >&6
29787 ac_res=`eval echo '${'$as_ac_Header'}'`
29788 { echo "$as_me:$LINENO: result: $ac_res" >&5
29789 echo "${ECHO_T}$ac_res" >&6; }
29791 # Is the header compilable?
29792 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29794 cat >conftest.$ac_ext <<_ACEOF
29797 cat confdefs.h >>conftest.$ac_ext
29798 cat >>conftest.$ac_ext <<_ACEOF
29799 /* end confdefs.h. */
29800 $ac_includes_default
29801 #include <$ac_header>
29803 rm -f conftest.$ac_objext
29804 if { (ac_try="$ac_compile"
29805 case "(($ac_try" in
29806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29807 *) ac_try_echo=$ac_try;;
29809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29810 (eval "$ac_compile") 2>conftest.er1
29812 grep -v '^ *+' conftest.er1 >conftest.err
29814 cat conftest.err >&5
29815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29816 (exit $ac_status); } &&
29817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29818 { (case "(($ac_try" in
29819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29820 *) ac_try_echo=$ac_try;;
29822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29823 (eval "$ac_try") 2>&5
29825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826 (exit $ac_status); }; } &&
29827 { ac_try='test -s conftest.$ac_objext'
29828 { (case "(($ac_try" in
29829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29830 *) ac_try_echo=$ac_try;;
29832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29833 (eval "$ac_try") 2>&5
29835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29836 (exit $ac_status); }; }; then
29837 ac_header_compiler=yes
29839 echo "$as_me: failed program was:" >&5
29840 sed 's/^/| /' conftest.$ac_ext >&5
29842 ac_header_compiler=no
29845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29846 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29847 echo "${ECHO_T}$ac_header_compiler" >&6; }
29849 # Is the header present?
29850 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29852 cat >conftest.$ac_ext <<_ACEOF
29855 cat confdefs.h >>conftest.$ac_ext
29856 cat >>conftest.$ac_ext <<_ACEOF
29857 /* end confdefs.h. */
29858 #include <$ac_header>
29860 if { (ac_try="$ac_cpp conftest.$ac_ext"
29861 case "(($ac_try" in
29862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29863 *) ac_try_echo=$ac_try;;
29865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29868 grep -v '^ *+' conftest.er1 >conftest.err
29870 cat conftest.err >&5
29871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29872 (exit $ac_status); } >/dev/null; then
29873 if test -s conftest.err; then
29874 ac_cpp_err=$ac_c_preproc_warn_flag
29875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29882 if test -z "$ac_cpp_err"; then
29883 ac_header_preproc=yes
29885 echo "$as_me: failed program was:" >&5
29886 sed 's/^/| /' conftest.$ac_ext >&5
29888 ac_header_preproc=no
29891 rm -f conftest.err conftest.$ac_ext
29892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29893 echo "${ECHO_T}$ac_header_preproc" >&6; }
29895 # So? What about this header?
29896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29902 ac_header_preproc=yes
29905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29912 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29918 ## ----------------------------------- ##
29919 ## Report this to llvmbugs@cs.uiuc.edu ##
29920 ## ----------------------------------- ##
29922 ) | sed "s/^/$as_me: WARNING: /" >&2
29925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29928 echo $ECHO_N "(cached) $ECHO_C" >&6
29930 eval "$as_ac_Header=\$ac_header_preproc"
29932 ac_res=`eval echo '${'$as_ac_Header'}'`
29933 { echo "$as_me:$LINENO: result: $ac_res" >&5
29934 echo "${ECHO_T}$ac_res" >&6; }
29937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29938 cat >>confdefs.h <<_ACEOF
29939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29957 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29958 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29959 if test "${ac_cv_huge_val_sanity+set}" = set; then
29960 echo $ECHO_N "(cached) $ECHO_C" >&6
29964 ac_cpp='$CXXCPP $CPPFLAGS'
29965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29970 if test "$cross_compiling" = yes; then
29971 ac_cv_huge_val_sanity=yes
29973 cat >conftest.$ac_ext <<_ACEOF
29976 cat confdefs.h >>conftest.$ac_ext
29977 cat >>conftest.$ac_ext <<_ACEOF
29978 /* end confdefs.h. */
29983 double x = HUGE_VAL; return x != x;
29988 rm -f conftest$ac_exeext
29989 if { (ac_try="$ac_link"
29990 case "(($ac_try" in
29991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29992 *) ac_try_echo=$ac_try;;
29994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29995 (eval "$ac_link") 2>&5
29997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29999 { (case "(($ac_try" in
30000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30001 *) ac_try_echo=$ac_try;;
30003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30004 (eval "$ac_try") 2>&5
30006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007 (exit $ac_status); }; }; then
30008 ac_cv_huge_val_sanity=yes
30010 echo "$as_me: program exited with status $ac_status" >&5
30011 echo "$as_me: failed program was:" >&5
30012 sed 's/^/| /' conftest.$ac_ext >&5
30014 ( exit $ac_status )
30015 ac_cv_huge_val_sanity=no
30017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30022 ac_cpp='$CPP $CPPFLAGS'
30023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30029 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30030 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30031 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30034 { echo "$as_me:$LINENO: checking for pid_t" >&5
30035 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30036 if test "${ac_cv_type_pid_t+set}" = set; then
30037 echo $ECHO_N "(cached) $ECHO_C" >&6
30039 cat >conftest.$ac_ext <<_ACEOF
30042 cat confdefs.h >>conftest.$ac_ext
30043 cat >>conftest.$ac_ext <<_ACEOF
30044 /* end confdefs.h. */
30045 $ac_includes_default
30046 typedef pid_t ac__type_new_;
30050 if ((ac__type_new_ *) 0)
30052 if (sizeof (ac__type_new_))
30058 rm -f conftest.$ac_objext
30059 if { (ac_try="$ac_compile"
30060 case "(($ac_try" in
30061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30062 *) ac_try_echo=$ac_try;;
30064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30065 (eval "$ac_compile") 2>conftest.er1
30067 grep -v '^ *+' conftest.er1 >conftest.err
30069 cat conftest.err >&5
30070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30071 (exit $ac_status); } &&
30072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30073 { (case "(($ac_try" in
30074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30075 *) ac_try_echo=$ac_try;;
30077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30078 (eval "$ac_try") 2>&5
30080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30081 (exit $ac_status); }; } &&
30082 { ac_try='test -s conftest.$ac_objext'
30083 { (case "(($ac_try" in
30084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30085 *) ac_try_echo=$ac_try;;
30087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30088 (eval "$ac_try") 2>&5
30090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30091 (exit $ac_status); }; }; then
30092 ac_cv_type_pid_t=yes
30094 echo "$as_me: failed program was:" >&5
30095 sed 's/^/| /' conftest.$ac_ext >&5
30097 ac_cv_type_pid_t=no
30100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30102 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30103 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30104 if test $ac_cv_type_pid_t = yes; then
30108 cat >>confdefs.h <<_ACEOF
30114 { echo "$as_me:$LINENO: checking for size_t" >&5
30115 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30116 if test "${ac_cv_type_size_t+set}" = set; then
30117 echo $ECHO_N "(cached) $ECHO_C" >&6
30119 cat >conftest.$ac_ext <<_ACEOF
30122 cat confdefs.h >>conftest.$ac_ext
30123 cat >>conftest.$ac_ext <<_ACEOF
30124 /* end confdefs.h. */
30125 $ac_includes_default
30126 typedef size_t ac__type_new_;
30130 if ((ac__type_new_ *) 0)
30132 if (sizeof (ac__type_new_))
30138 rm -f conftest.$ac_objext
30139 if { (ac_try="$ac_compile"
30140 case "(($ac_try" in
30141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30142 *) ac_try_echo=$ac_try;;
30144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30145 (eval "$ac_compile") 2>conftest.er1
30147 grep -v '^ *+' conftest.er1 >conftest.err
30149 cat conftest.err >&5
30150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151 (exit $ac_status); } &&
30152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30153 { (case "(($ac_try" in
30154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30155 *) ac_try_echo=$ac_try;;
30157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30158 (eval "$ac_try") 2>&5
30160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30161 (exit $ac_status); }; } &&
30162 { ac_try='test -s conftest.$ac_objext'
30163 { (case "(($ac_try" in
30164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30165 *) ac_try_echo=$ac_try;;
30167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30168 (eval "$ac_try") 2>&5
30170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30171 (exit $ac_status); }; }; then
30172 ac_cv_type_size_t=yes
30174 echo "$as_me: failed program was:" >&5
30175 sed 's/^/| /' conftest.$ac_ext >&5
30177 ac_cv_type_size_t=no
30180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30182 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30183 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30184 if test $ac_cv_type_size_t = yes; then
30188 cat >>confdefs.h <<_ACEOF
30189 #define size_t unsigned int
30194 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30195 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30196 if test "${ac_cv_type_signal+set}" = set; then
30197 echo $ECHO_N "(cached) $ECHO_C" >&6
30199 cat >conftest.$ac_ext <<_ACEOF
30202 cat confdefs.h >>conftest.$ac_ext
30203 cat >>conftest.$ac_ext <<_ACEOF
30204 /* end confdefs.h. */
30205 #include <sys/types.h>
30206 #include <signal.h>
30211 return *(signal (0, 0)) (0) == 1;
30216 rm -f conftest.$ac_objext
30217 if { (ac_try="$ac_compile"
30218 case "(($ac_try" in
30219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30220 *) ac_try_echo=$ac_try;;
30222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30223 (eval "$ac_compile") 2>conftest.er1
30225 grep -v '^ *+' conftest.er1 >conftest.err
30227 cat conftest.err >&5
30228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30229 (exit $ac_status); } &&
30230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30231 { (case "(($ac_try" in
30232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30233 *) ac_try_echo=$ac_try;;
30235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30236 (eval "$ac_try") 2>&5
30238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30239 (exit $ac_status); }; } &&
30240 { ac_try='test -s conftest.$ac_objext'
30241 { (case "(($ac_try" in
30242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30243 *) ac_try_echo=$ac_try;;
30245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30246 (eval "$ac_try") 2>&5
30248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30249 (exit $ac_status); }; }; then
30250 ac_cv_type_signal=int
30252 echo "$as_me: failed program was:" >&5
30253 sed 's/^/| /' conftest.$ac_ext >&5
30255 ac_cv_type_signal=void
30258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30260 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30261 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30263 cat >>confdefs.h <<_ACEOF
30264 #define RETSIGTYPE $ac_cv_type_signal
30268 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30269 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30270 if test "${ac_cv_struct_tm+set}" = set; then
30271 echo $ECHO_N "(cached) $ECHO_C" >&6
30273 cat >conftest.$ac_ext <<_ACEOF
30276 cat confdefs.h >>conftest.$ac_ext
30277 cat >>conftest.$ac_ext <<_ACEOF
30278 /* end confdefs.h. */
30279 #include <sys/types.h>
30285 struct tm *tp; tp->tm_sec;
30290 rm -f conftest.$ac_objext
30291 if { (ac_try="$ac_compile"
30292 case "(($ac_try" in
30293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30294 *) ac_try_echo=$ac_try;;
30296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30297 (eval "$ac_compile") 2>conftest.er1
30299 grep -v '^ *+' conftest.er1 >conftest.err
30301 cat conftest.err >&5
30302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30303 (exit $ac_status); } &&
30304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30305 { (case "(($ac_try" in
30306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30307 *) ac_try_echo=$ac_try;;
30309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30310 (eval "$ac_try") 2>&5
30312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30313 (exit $ac_status); }; } &&
30314 { ac_try='test -s conftest.$ac_objext'
30315 { (case "(($ac_try" in
30316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30317 *) ac_try_echo=$ac_try;;
30319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30320 (eval "$ac_try") 2>&5
30322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30323 (exit $ac_status); }; }; then
30324 ac_cv_struct_tm=time.h
30326 echo "$as_me: failed program was:" >&5
30327 sed 's/^/| /' conftest.$ac_ext >&5
30329 ac_cv_struct_tm=sys/time.h
30332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30334 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30335 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30336 if test $ac_cv_struct_tm = sys/time.h; then
30338 cat >>confdefs.h <<\_ACEOF
30339 #define TM_IN_SYS_TIME 1
30344 { echo "$as_me:$LINENO: checking for int64_t" >&5
30345 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30346 if test "${ac_cv_type_int64_t+set}" = set; then
30347 echo $ECHO_N "(cached) $ECHO_C" >&6
30349 cat >conftest.$ac_ext <<_ACEOF
30352 cat confdefs.h >>conftest.$ac_ext
30353 cat >>conftest.$ac_ext <<_ACEOF
30354 /* end confdefs.h. */
30355 $ac_includes_default
30356 typedef int64_t ac__type_new_;
30360 if ((ac__type_new_ *) 0)
30362 if (sizeof (ac__type_new_))
30368 rm -f conftest.$ac_objext
30369 if { (ac_try="$ac_compile"
30370 case "(($ac_try" in
30371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30372 *) ac_try_echo=$ac_try;;
30374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30375 (eval "$ac_compile") 2>conftest.er1
30377 grep -v '^ *+' conftest.er1 >conftest.err
30379 cat conftest.err >&5
30380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30381 (exit $ac_status); } &&
30382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30383 { (case "(($ac_try" in
30384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30385 *) ac_try_echo=$ac_try;;
30387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30388 (eval "$ac_try") 2>&5
30390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391 (exit $ac_status); }; } &&
30392 { ac_try='test -s conftest.$ac_objext'
30393 { (case "(($ac_try" in
30394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30395 *) ac_try_echo=$ac_try;;
30397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30398 (eval "$ac_try") 2>&5
30400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30401 (exit $ac_status); }; }; then
30402 ac_cv_type_int64_t=yes
30404 echo "$as_me: failed program was:" >&5
30405 sed 's/^/| /' conftest.$ac_ext >&5
30407 ac_cv_type_int64_t=no
30410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30412 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30413 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30414 if test $ac_cv_type_int64_t = yes; then
30416 cat >>confdefs.h <<_ACEOF
30417 #define HAVE_INT64_T 1
30422 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30423 echo "$as_me: error: Type int64_t required but not found" >&2;}
30424 { (exit 1); exit 1; }; }
30427 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30428 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30429 if test "${ac_cv_type_uint64_t+set}" = set; then
30430 echo $ECHO_N "(cached) $ECHO_C" >&6
30432 cat >conftest.$ac_ext <<_ACEOF
30435 cat confdefs.h >>conftest.$ac_ext
30436 cat >>conftest.$ac_ext <<_ACEOF
30437 /* end confdefs.h. */
30438 $ac_includes_default
30439 typedef uint64_t ac__type_new_;
30443 if ((ac__type_new_ *) 0)
30445 if (sizeof (ac__type_new_))
30451 rm -f conftest.$ac_objext
30452 if { (ac_try="$ac_compile"
30453 case "(($ac_try" in
30454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30455 *) ac_try_echo=$ac_try;;
30457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30458 (eval "$ac_compile") 2>conftest.er1
30460 grep -v '^ *+' conftest.er1 >conftest.err
30462 cat conftest.err >&5
30463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464 (exit $ac_status); } &&
30465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30466 { (case "(($ac_try" in
30467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30468 *) ac_try_echo=$ac_try;;
30470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30471 (eval "$ac_try") 2>&5
30473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30474 (exit $ac_status); }; } &&
30475 { ac_try='test -s conftest.$ac_objext'
30476 { (case "(($ac_try" in
30477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30478 *) ac_try_echo=$ac_try;;
30480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30481 (eval "$ac_try") 2>&5
30483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484 (exit $ac_status); }; }; then
30485 ac_cv_type_uint64_t=yes
30487 echo "$as_me: failed program was:" >&5
30488 sed 's/^/| /' conftest.$ac_ext >&5
30490 ac_cv_type_uint64_t=no
30493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30495 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30496 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30497 if test $ac_cv_type_uint64_t = yes; then
30499 cat >>confdefs.h <<_ACEOF
30500 #define HAVE_UINT64_T 1
30505 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30506 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30507 if test "${ac_cv_type_u_int64_t+set}" = set; then
30508 echo $ECHO_N "(cached) $ECHO_C" >&6
30510 cat >conftest.$ac_ext <<_ACEOF
30513 cat confdefs.h >>conftest.$ac_ext
30514 cat >>conftest.$ac_ext <<_ACEOF
30515 /* end confdefs.h. */
30516 $ac_includes_default
30517 typedef u_int64_t ac__type_new_;
30521 if ((ac__type_new_ *) 0)
30523 if (sizeof (ac__type_new_))
30529 rm -f conftest.$ac_objext
30530 if { (ac_try="$ac_compile"
30531 case "(($ac_try" in
30532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30533 *) ac_try_echo=$ac_try;;
30535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30536 (eval "$ac_compile") 2>conftest.er1
30538 grep -v '^ *+' conftest.er1 >conftest.err
30540 cat conftest.err >&5
30541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542 (exit $ac_status); } &&
30543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30544 { (case "(($ac_try" in
30545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30546 *) ac_try_echo=$ac_try;;
30548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30549 (eval "$ac_try") 2>&5
30551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552 (exit $ac_status); }; } &&
30553 { ac_try='test -s conftest.$ac_objext'
30554 { (case "(($ac_try" in
30555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30556 *) ac_try_echo=$ac_try;;
30558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30559 (eval "$ac_try") 2>&5
30561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30562 (exit $ac_status); }; }; then
30563 ac_cv_type_u_int64_t=yes
30565 echo "$as_me: failed program was:" >&5
30566 sed 's/^/| /' conftest.$ac_ext >&5
30568 ac_cv_type_u_int64_t=no
30571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30573 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30574 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30575 if test $ac_cv_type_u_int64_t = yes; then
30577 cat >>confdefs.h <<_ACEOF
30578 #define HAVE_U_INT64_T 1
30583 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30584 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30585 { (exit 1); exit 1; }; }
30599 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30601 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30602 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30604 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30605 echo $ECHO_N "(cached) $ECHO_C" >&6
30607 cat >conftest.$ac_ext <<_ACEOF
30610 cat confdefs.h >>conftest.$ac_ext
30611 cat >>conftest.$ac_ext <<_ACEOF
30612 /* end confdefs.h. */
30613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30615 #define $ac_func innocuous_$ac_func
30617 /* System header to define __stub macros and hopefully few prototypes,
30618 which can conflict with char $ac_func (); below.
30619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30620 <limits.h> exists even on freestanding compilers. */
30623 # include <limits.h>
30625 # include <assert.h>
30630 /* Override any GCC internal prototype to avoid an error.
30631 Use char because int might match the return type of a GCC
30632 builtin and then its argument prototype would still apply. */
30637 /* The GNU C library defines this for functions which it implements
30638 to always fail with ENOSYS. Some functions are actually named
30639 something starting with __ and the normal name is an alias. */
30640 #if defined __stub_$ac_func || defined __stub___$ac_func
30647 return $ac_func ();
30652 rm -f conftest.$ac_objext conftest$ac_exeext
30653 if { (ac_try="$ac_link"
30654 case "(($ac_try" in
30655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30656 *) ac_try_echo=$ac_try;;
30658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30659 (eval "$ac_link") 2>conftest.er1
30661 grep -v '^ *+' conftest.er1 >conftest.err
30663 cat conftest.err >&5
30664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665 (exit $ac_status); } &&
30666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30667 { (case "(($ac_try" in
30668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30669 *) ac_try_echo=$ac_try;;
30671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30672 (eval "$ac_try") 2>&5
30674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675 (exit $ac_status); }; } &&
30676 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
30686 eval "$as_ac_var=yes"
30688 echo "$as_me: failed program was:" >&5
30689 sed 's/^/| /' conftest.$ac_ext >&5
30691 eval "$as_ac_var=no"
30694 rm -f core conftest.err conftest.$ac_objext \
30695 conftest$ac_exeext conftest.$ac_ext
30697 ac_res=`eval echo '${'$as_ac_var'}'`
30698 { echo "$as_me:$LINENO: result: $ac_res" >&5
30699 echo "${ECHO_T}$ac_res" >&6; }
30700 if test `eval echo '${'$as_ac_var'}'` = yes; then
30701 cat >>confdefs.h <<_ACEOF
30702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30712 for ac_func in powf fmodf strtof round
30714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30718 echo $ECHO_N "(cached) $ECHO_C" >&6
30720 cat >conftest.$ac_ext <<_ACEOF
30723 cat confdefs.h >>conftest.$ac_ext
30724 cat >>conftest.$ac_ext <<_ACEOF
30725 /* end confdefs.h. */
30726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30728 #define $ac_func innocuous_$ac_func
30730 /* System header to define __stub macros and hopefully few prototypes,
30731 which can conflict with char $ac_func (); below.
30732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30733 <limits.h> exists even on freestanding compilers. */
30736 # include <limits.h>
30738 # include <assert.h>
30743 /* Override any GCC internal prototype to avoid an error.
30744 Use char because int might match the return type of a GCC
30745 builtin and then its argument prototype would still apply. */
30750 /* The GNU C library defines this for functions which it implements
30751 to always fail with ENOSYS. Some functions are actually named
30752 something starting with __ and the normal name is an alias. */
30753 #if defined __stub_$ac_func || defined __stub___$ac_func
30760 return $ac_func ();
30765 rm -f conftest.$ac_objext conftest$ac_exeext
30766 if { (ac_try="$ac_link"
30767 case "(($ac_try" in
30768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30769 *) ac_try_echo=$ac_try;;
30771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30772 (eval "$ac_link") 2>conftest.er1
30774 grep -v '^ *+' conftest.er1 >conftest.err
30776 cat conftest.err >&5
30777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30778 (exit $ac_status); } &&
30779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30780 { (case "(($ac_try" in
30781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30782 *) ac_try_echo=$ac_try;;
30784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30785 (eval "$ac_try") 2>&5
30787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30788 (exit $ac_status); }; } &&
30789 { ac_try='test -s conftest$ac_exeext'
30790 { (case "(($ac_try" in
30791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30792 *) ac_try_echo=$ac_try;;
30794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30795 (eval "$ac_try") 2>&5
30797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30798 (exit $ac_status); }; }; then
30799 eval "$as_ac_var=yes"
30801 echo "$as_me: failed program was:" >&5
30802 sed 's/^/| /' conftest.$ac_ext >&5
30804 eval "$as_ac_var=no"
30807 rm -f core conftest.err conftest.$ac_objext \
30808 conftest$ac_exeext conftest.$ac_ext
30810 ac_res=`eval echo '${'$as_ac_var'}'`
30811 { echo "$as_me:$LINENO: result: $ac_res" >&5
30812 echo "${ECHO_T}$ac_res" >&6; }
30813 if test `eval echo '${'$as_ac_var'}'` = yes; then
30814 cat >>confdefs.h <<_ACEOF
30815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30826 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30832 echo $ECHO_N "(cached) $ECHO_C" >&6
30834 cat >conftest.$ac_ext <<_ACEOF
30837 cat confdefs.h >>conftest.$ac_ext
30838 cat >>conftest.$ac_ext <<_ACEOF
30839 /* end confdefs.h. */
30840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30842 #define $ac_func innocuous_$ac_func
30844 /* System header to define __stub macros and hopefully few prototypes,
30845 which can conflict with char $ac_func (); below.
30846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30847 <limits.h> exists even on freestanding compilers. */
30850 # include <limits.h>
30852 # include <assert.h>
30857 /* Override any GCC internal prototype to avoid an error.
30858 Use char because int might match the return type of a GCC
30859 builtin and then its argument prototype would still apply. */
30864 /* The GNU C library defines this for functions which it implements
30865 to always fail with ENOSYS. Some functions are actually named
30866 something starting with __ and the normal name is an alias. */
30867 #if defined __stub_$ac_func || defined __stub___$ac_func
30874 return $ac_func ();
30879 rm -f conftest.$ac_objext conftest$ac_exeext
30880 if { (ac_try="$ac_link"
30881 case "(($ac_try" in
30882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30883 *) ac_try_echo=$ac_try;;
30885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30886 (eval "$ac_link") 2>conftest.er1
30888 grep -v '^ *+' conftest.er1 >conftest.err
30890 cat conftest.err >&5
30891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892 (exit $ac_status); } &&
30893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30894 { (case "(($ac_try" in
30895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30896 *) ac_try_echo=$ac_try;;
30898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30899 (eval "$ac_try") 2>&5
30901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30902 (exit $ac_status); }; } &&
30903 { ac_try='test -s conftest$ac_exeext'
30904 { (case "(($ac_try" in
30905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30906 *) ac_try_echo=$ac_try;;
30908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30909 (eval "$ac_try") 2>&5
30911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30912 (exit $ac_status); }; }; then
30913 eval "$as_ac_var=yes"
30915 echo "$as_me: failed program was:" >&5
30916 sed 's/^/| /' conftest.$ac_ext >&5
30918 eval "$as_ac_var=no"
30921 rm -f core conftest.err conftest.$ac_objext \
30922 conftest$ac_exeext conftest.$ac_ext
30924 ac_res=`eval echo '${'$as_ac_var'}'`
30925 { echo "$as_me:$LINENO: result: $ac_res" >&5
30926 echo "${ECHO_T}$ac_res" >&6; }
30927 if test `eval echo '${'$as_ac_var'}'` = yes; then
30928 cat >>confdefs.h <<_ACEOF
30929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30938 for ac_func in isatty mkdtemp mkstemp
30940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30944 echo $ECHO_N "(cached) $ECHO_C" >&6
30946 cat >conftest.$ac_ext <<_ACEOF
30949 cat confdefs.h >>conftest.$ac_ext
30950 cat >>conftest.$ac_ext <<_ACEOF
30951 /* end confdefs.h. */
30952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30954 #define $ac_func innocuous_$ac_func
30956 /* System header to define __stub macros and hopefully few prototypes,
30957 which can conflict with char $ac_func (); below.
30958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30959 <limits.h> exists even on freestanding compilers. */
30962 # include <limits.h>
30964 # include <assert.h>
30969 /* Override any GCC internal prototype to avoid an error.
30970 Use char because int might match the return type of a GCC
30971 builtin and then its argument prototype would still apply. */
30976 /* The GNU C library defines this for functions which it implements
30977 to always fail with ENOSYS. Some functions are actually named
30978 something starting with __ and the normal name is an alias. */
30979 #if defined __stub_$ac_func || defined __stub___$ac_func
30986 return $ac_func ();
30991 rm -f conftest.$ac_objext conftest$ac_exeext
30992 if { (ac_try="$ac_link"
30993 case "(($ac_try" in
30994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30995 *) ac_try_echo=$ac_try;;
30997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30998 (eval "$ac_link") 2>conftest.er1
31000 grep -v '^ *+' conftest.er1 >conftest.err
31002 cat conftest.err >&5
31003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31004 (exit $ac_status); } &&
31005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31006 { (case "(($ac_try" in
31007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31008 *) ac_try_echo=$ac_try;;
31010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31011 (eval "$ac_try") 2>&5
31013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31014 (exit $ac_status); }; } &&
31015 { ac_try='test -s conftest$ac_exeext'
31016 { (case "(($ac_try" in
31017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31018 *) ac_try_echo=$ac_try;;
31020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31021 (eval "$ac_try") 2>&5
31023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31024 (exit $ac_status); }; }; then
31025 eval "$as_ac_var=yes"
31027 echo "$as_me: failed program was:" >&5
31028 sed 's/^/| /' conftest.$ac_ext >&5
31030 eval "$as_ac_var=no"
31033 rm -f core conftest.err conftest.$ac_objext \
31034 conftest$ac_exeext conftest.$ac_ext
31036 ac_res=`eval echo '${'$as_ac_var'}'`
31037 { echo "$as_me:$LINENO: result: $ac_res" >&5
31038 echo "${ECHO_T}$ac_res" >&6; }
31039 if test `eval echo '${'$as_ac_var'}'` = yes; then
31040 cat >>confdefs.h <<_ACEOF
31041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31054 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31057 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31059 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31060 echo $ECHO_N "(cached) $ECHO_C" >&6
31062 cat >conftest.$ac_ext <<_ACEOF
31065 cat confdefs.h >>conftest.$ac_ext
31066 cat >>conftest.$ac_ext <<_ACEOF
31067 /* end confdefs.h. */
31068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31070 #define $ac_func innocuous_$ac_func
31072 /* System header to define __stub macros and hopefully few prototypes,
31073 which can conflict with char $ac_func (); below.
31074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31075 <limits.h> exists even on freestanding compilers. */
31078 # include <limits.h>
31080 # include <assert.h>
31085 /* Override any GCC internal prototype to avoid an error.
31086 Use char because int might match the return type of a GCC
31087 builtin and then its argument prototype would still apply. */
31092 /* The GNU C library defines this for functions which it implements
31093 to always fail with ENOSYS. Some functions are actually named
31094 something starting with __ and the normal name is an alias. */
31095 #if defined __stub_$ac_func || defined __stub___$ac_func
31102 return $ac_func ();
31107 rm -f conftest.$ac_objext conftest$ac_exeext
31108 if { (ac_try="$ac_link"
31109 case "(($ac_try" in
31110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31111 *) ac_try_echo=$ac_try;;
31113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31114 (eval "$ac_link") 2>conftest.er1
31116 grep -v '^ *+' conftest.er1 >conftest.err
31118 cat conftest.err >&5
31119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31120 (exit $ac_status); } &&
31121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31122 { (case "(($ac_try" in
31123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31124 *) ac_try_echo=$ac_try;;
31126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31127 (eval "$ac_try") 2>&5
31129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31130 (exit $ac_status); }; } &&
31131 { ac_try='test -s conftest$ac_exeext'
31132 { (case "(($ac_try" in
31133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31134 *) ac_try_echo=$ac_try;;
31136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31137 (eval "$ac_try") 2>&5
31139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31140 (exit $ac_status); }; }; then
31141 eval "$as_ac_var=yes"
31143 echo "$as_me: failed program was:" >&5
31144 sed 's/^/| /' conftest.$ac_ext >&5
31146 eval "$as_ac_var=no"
31149 rm -f core conftest.err conftest.$ac_objext \
31150 conftest$ac_exeext conftest.$ac_ext
31152 ac_res=`eval echo '${'$as_ac_var'}'`
31153 { echo "$as_me:$LINENO: result: $ac_res" >&5
31154 echo "${ECHO_T}$ac_res" >&6; }
31155 if test `eval echo '${'$as_ac_var'}'` = yes; then
31156 cat >>confdefs.h <<_ACEOF
31157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31167 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31170 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31173 echo $ECHO_N "(cached) $ECHO_C" >&6
31175 cat >conftest.$ac_ext <<_ACEOF
31178 cat confdefs.h >>conftest.$ac_ext
31179 cat >>conftest.$ac_ext <<_ACEOF
31180 /* end confdefs.h. */
31181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31183 #define $ac_func innocuous_$ac_func
31185 /* System header to define __stub macros and hopefully few prototypes,
31186 which can conflict with char $ac_func (); below.
31187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31188 <limits.h> exists even on freestanding compilers. */
31191 # include <limits.h>
31193 # include <assert.h>
31198 /* Override any GCC internal prototype to avoid an error.
31199 Use char because int might match the return type of a GCC
31200 builtin and then its argument prototype would still apply. */
31205 /* The GNU C library defines this for functions which it implements
31206 to always fail with ENOSYS. Some functions are actually named
31207 something starting with __ and the normal name is an alias. */
31208 #if defined __stub_$ac_func || defined __stub___$ac_func
31215 return $ac_func ();
31220 rm -f conftest.$ac_objext conftest$ac_exeext
31221 if { (ac_try="$ac_link"
31222 case "(($ac_try" in
31223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31224 *) ac_try_echo=$ac_try;;
31226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31227 (eval "$ac_link") 2>conftest.er1
31229 grep -v '^ *+' conftest.er1 >conftest.err
31231 cat conftest.err >&5
31232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233 (exit $ac_status); } &&
31234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31235 { (case "(($ac_try" in
31236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31237 *) ac_try_echo=$ac_try;;
31239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31240 (eval "$ac_try") 2>&5
31242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31243 (exit $ac_status); }; } &&
31244 { ac_try='test -s conftest$ac_exeext'
31245 { (case "(($ac_try" in
31246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31247 *) ac_try_echo=$ac_try;;
31249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31250 (eval "$ac_try") 2>&5
31252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31253 (exit $ac_status); }; }; then
31254 eval "$as_ac_var=yes"
31256 echo "$as_me: failed program was:" >&5
31257 sed 's/^/| /' conftest.$ac_ext >&5
31259 eval "$as_ac_var=no"
31262 rm -f core conftest.err conftest.$ac_objext \
31263 conftest$ac_exeext conftest.$ac_ext
31265 ac_res=`eval echo '${'$as_ac_var'}'`
31266 { echo "$as_me:$LINENO: result: $ac_res" >&5
31267 echo "${ECHO_T}$ac_res" >&6; }
31268 if test `eval echo '${'$as_ac_var'}'` = yes; then
31269 cat >>confdefs.h <<_ACEOF
31270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31280 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31283 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31285 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31286 echo $ECHO_N "(cached) $ECHO_C" >&6
31288 cat >conftest.$ac_ext <<_ACEOF
31291 cat confdefs.h >>conftest.$ac_ext
31292 cat >>conftest.$ac_ext <<_ACEOF
31293 /* end confdefs.h. */
31294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31296 #define $ac_func innocuous_$ac_func
31298 /* System header to define __stub macros and hopefully few prototypes,
31299 which can conflict with char $ac_func (); below.
31300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31301 <limits.h> exists even on freestanding compilers. */
31304 # include <limits.h>
31306 # include <assert.h>
31311 /* Override any GCC internal prototype to avoid an error.
31312 Use char because int might match the return type of a GCC
31313 builtin and then its argument prototype would still apply. */
31318 /* The GNU C library defines this for functions which it implements
31319 to always fail with ENOSYS. Some functions are actually named
31320 something starting with __ and the normal name is an alias. */
31321 #if defined __stub_$ac_func || defined __stub___$ac_func
31328 return $ac_func ();
31333 rm -f conftest.$ac_objext conftest$ac_exeext
31334 if { (ac_try="$ac_link"
31335 case "(($ac_try" in
31336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31337 *) ac_try_echo=$ac_try;;
31339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31340 (eval "$ac_link") 2>conftest.er1
31342 grep -v '^ *+' conftest.er1 >conftest.err
31344 cat conftest.err >&5
31345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346 (exit $ac_status); } &&
31347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31348 { (case "(($ac_try" in
31349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31350 *) ac_try_echo=$ac_try;;
31352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31353 (eval "$ac_try") 2>&5
31355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31356 (exit $ac_status); }; } &&
31357 { ac_try='test -s conftest$ac_exeext'
31358 { (case "(($ac_try" in
31359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31360 *) ac_try_echo=$ac_try;;
31362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31363 (eval "$ac_try") 2>&5
31365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31366 (exit $ac_status); }; }; then
31367 eval "$as_ac_var=yes"
31369 echo "$as_me: failed program was:" >&5
31370 sed 's/^/| /' conftest.$ac_ext >&5
31372 eval "$as_ac_var=no"
31375 rm -f core conftest.err conftest.$ac_objext \
31376 conftest$ac_exeext conftest.$ac_ext
31378 ac_res=`eval echo '${'$as_ac_var'}'`
31379 { echo "$as_me:$LINENO: result: $ac_res" >&5
31380 echo "${ECHO_T}$ac_res" >&6; }
31381 if test `eval echo '${'$as_ac_var'}'` = yes; then
31382 cat >>confdefs.h <<_ACEOF
31383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31389 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31390 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31391 if test "${llvm_cv_c_printf_a+set}" = set; then
31392 echo $ECHO_N "(cached) $ECHO_C" >&6
31395 ac_cpp='$CPP $CPPFLAGS'
31396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31400 if test "$cross_compiling" = yes; then
31401 llvmac_cv_c_printf_a=no
31403 cat >conftest.$ac_ext <<_ACEOF
31407 cat confdefs.h >>conftest.$ac_ext
31408 cat >>conftest.$ac_ext <<_ACEOF
31409 /* end confdefs.h. */
31412 #include <stdlib.h>
31418 volatile double A, B;
31422 sprintf(Buffer, "%a", A);
31426 if (A != 0x1.999999999999ap-4)
31433 rm -f conftest$ac_exeext
31434 if { (ac_try="$ac_link"
31435 case "(($ac_try" in
31436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31437 *) ac_try_echo=$ac_try;;
31439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31440 (eval "$ac_link") 2>&5
31442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31444 { (case "(($ac_try" in
31445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31446 *) ac_try_echo=$ac_try;;
31448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31449 (eval "$ac_try") 2>&5
31451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31452 (exit $ac_status); }; }; then
31453 llvm_cv_c_printf_a=yes
31455 echo "$as_me: program exited with status $ac_status" >&5
31456 echo "$as_me: failed program was:" >&5
31457 sed 's/^/| /' conftest.$ac_ext >&5
31459 ( exit $ac_status )
31460 llvmac_cv_c_printf_a=no
31462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31467 ac_cpp='$CPP $CPPFLAGS'
31468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31473 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31474 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31475 if test "$llvm_cv_c_printf_a" = "yes"; then
31477 cat >>confdefs.h <<\_ACEOF
31478 #define HAVE_PRINTF_A 1
31483 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31484 # for constant arguments. Useless!
31485 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31486 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31487 if test "${ac_cv_working_alloca_h+set}" = set; then
31488 echo $ECHO_N "(cached) $ECHO_C" >&6
31490 cat >conftest.$ac_ext <<_ACEOF
31493 cat confdefs.h >>conftest.$ac_ext
31494 cat >>conftest.$ac_ext <<_ACEOF
31495 /* end confdefs.h. */
31496 #include <alloca.h>
31500 char *p = (char *) alloca (2 * sizeof (int));
31506 rm -f conftest.$ac_objext conftest$ac_exeext
31507 if { (ac_try="$ac_link"
31508 case "(($ac_try" in
31509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31510 *) ac_try_echo=$ac_try;;
31512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31513 (eval "$ac_link") 2>conftest.er1
31515 grep -v '^ *+' conftest.er1 >conftest.err
31517 cat conftest.err >&5
31518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31519 (exit $ac_status); } &&
31520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31521 { (case "(($ac_try" in
31522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31523 *) ac_try_echo=$ac_try;;
31525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31526 (eval "$ac_try") 2>&5
31528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31529 (exit $ac_status); }; } &&
31530 { ac_try='test -s conftest$ac_exeext'
31531 { (case "(($ac_try" in
31532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31533 *) ac_try_echo=$ac_try;;
31535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31536 (eval "$ac_try") 2>&5
31538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539 (exit $ac_status); }; }; then
31540 ac_cv_working_alloca_h=yes
31542 echo "$as_me: failed program was:" >&5
31543 sed 's/^/| /' conftest.$ac_ext >&5
31545 ac_cv_working_alloca_h=no
31548 rm -f core conftest.err conftest.$ac_objext \
31549 conftest$ac_exeext conftest.$ac_ext
31551 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31552 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31553 if test $ac_cv_working_alloca_h = yes; then
31555 cat >>confdefs.h <<\_ACEOF
31556 #define HAVE_ALLOCA_H 1
31561 { echo "$as_me:$LINENO: checking for alloca" >&5
31562 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31563 if test "${ac_cv_func_alloca_works+set}" = set; then
31564 echo $ECHO_N "(cached) $ECHO_C" >&6
31566 cat >conftest.$ac_ext <<_ACEOF
31569 cat confdefs.h >>conftest.$ac_ext
31570 cat >>conftest.$ac_ext <<_ACEOF
31571 /* end confdefs.h. */
31573 # define alloca __builtin_alloca
31576 # include <malloc.h>
31577 # define alloca _alloca
31580 # include <alloca.h>
31585 # ifndef alloca /* predefined by HP cc +Olibcalls */
31596 char *p = (char *) alloca (1);
31602 rm -f conftest.$ac_objext conftest$ac_exeext
31603 if { (ac_try="$ac_link"
31604 case "(($ac_try" in
31605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31606 *) ac_try_echo=$ac_try;;
31608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31609 (eval "$ac_link") 2>conftest.er1
31611 grep -v '^ *+' conftest.er1 >conftest.err
31613 cat conftest.err >&5
31614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31615 (exit $ac_status); } &&
31616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31617 { (case "(($ac_try" in
31618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31619 *) ac_try_echo=$ac_try;;
31621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31622 (eval "$ac_try") 2>&5
31624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625 (exit $ac_status); }; } &&
31626 { ac_try='test -s conftest$ac_exeext'
31627 { (case "(($ac_try" in
31628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31629 *) ac_try_echo=$ac_try;;
31631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31632 (eval "$ac_try") 2>&5
31634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635 (exit $ac_status); }; }; then
31636 ac_cv_func_alloca_works=yes
31638 echo "$as_me: failed program was:" >&5
31639 sed 's/^/| /' conftest.$ac_ext >&5
31641 ac_cv_func_alloca_works=no
31644 rm -f core conftest.err conftest.$ac_objext \
31645 conftest$ac_exeext conftest.$ac_ext
31647 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31648 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31650 if test $ac_cv_func_alloca_works = yes; then
31652 cat >>confdefs.h <<\_ACEOF
31653 #define HAVE_ALLOCA 1
31657 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31658 # that cause trouble. Some versions do not even contain alloca or
31659 # contain a buggy version. If you still want to use their alloca,
31660 # use ar to extract alloca.o from them instead of compiling alloca.c.
31662 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31664 cat >>confdefs.h <<\_ACEOF
31669 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31670 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31671 if test "${ac_cv_os_cray+set}" = set; then
31672 echo $ECHO_N "(cached) $ECHO_C" >&6
31674 cat >conftest.$ac_ext <<_ACEOF
31677 cat confdefs.h >>conftest.$ac_ext
31678 cat >>conftest.$ac_ext <<_ACEOF
31679 /* end confdefs.h. */
31680 #if defined CRAY && ! defined CRAY2
31687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31688 $EGREP "webecray" >/dev/null 2>&1; then
31696 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31697 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31698 if test $ac_cv_os_cray = yes; then
31699 for ac_func in _getb67 GETB67 getb67; do
31700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31701 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31703 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31704 echo $ECHO_N "(cached) $ECHO_C" >&6
31706 cat >conftest.$ac_ext <<_ACEOF
31709 cat confdefs.h >>conftest.$ac_ext
31710 cat >>conftest.$ac_ext <<_ACEOF
31711 /* end confdefs.h. */
31712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31714 #define $ac_func innocuous_$ac_func
31716 /* System header to define __stub macros and hopefully few prototypes,
31717 which can conflict with char $ac_func (); below.
31718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31719 <limits.h> exists even on freestanding compilers. */
31722 # include <limits.h>
31724 # include <assert.h>
31729 /* Override any GCC internal prototype to avoid an error.
31730 Use char because int might match the return type of a GCC
31731 builtin and then its argument prototype would still apply. */
31736 /* The GNU C library defines this for functions which it implements
31737 to always fail with ENOSYS. Some functions are actually named
31738 something starting with __ and the normal name is an alias. */
31739 #if defined __stub_$ac_func || defined __stub___$ac_func
31746 return $ac_func ();
31751 rm -f conftest.$ac_objext conftest$ac_exeext
31752 if { (ac_try="$ac_link"
31753 case "(($ac_try" in
31754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31755 *) ac_try_echo=$ac_try;;
31757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31758 (eval "$ac_link") 2>conftest.er1
31760 grep -v '^ *+' conftest.er1 >conftest.err
31762 cat conftest.err >&5
31763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31764 (exit $ac_status); } &&
31765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31766 { (case "(($ac_try" in
31767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31768 *) ac_try_echo=$ac_try;;
31770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31771 (eval "$ac_try") 2>&5
31773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774 (exit $ac_status); }; } &&
31775 { ac_try='test -s conftest$ac_exeext'
31776 { (case "(($ac_try" in
31777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31778 *) ac_try_echo=$ac_try;;
31780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31781 (eval "$ac_try") 2>&5
31783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31784 (exit $ac_status); }; }; then
31785 eval "$as_ac_var=yes"
31787 echo "$as_me: failed program was:" >&5
31788 sed 's/^/| /' conftest.$ac_ext >&5
31790 eval "$as_ac_var=no"
31793 rm -f core conftest.err conftest.$ac_objext \
31794 conftest$ac_exeext conftest.$ac_ext
31796 ac_res=`eval echo '${'$as_ac_var'}'`
31797 { echo "$as_me:$LINENO: result: $ac_res" >&5
31798 echo "${ECHO_T}$ac_res" >&6; }
31799 if test `eval echo '${'$as_ac_var'}'` = yes; then
31801 cat >>confdefs.h <<_ACEOF
31802 #define CRAY_STACKSEG_END $ac_func
31811 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31812 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31813 if test "${ac_cv_c_stack_direction+set}" = set; then
31814 echo $ECHO_N "(cached) $ECHO_C" >&6
31816 if test "$cross_compiling" = yes; then
31817 ac_cv_c_stack_direction=0
31819 cat >conftest.$ac_ext <<_ACEOF
31822 cat confdefs.h >>conftest.$ac_ext
31823 cat >>conftest.$ac_ext <<_ACEOF
31824 /* end confdefs.h. */
31825 $ac_includes_default
31827 find_stack_direction ()
31829 static char *addr = 0;
31834 return find_stack_direction ();
31837 return (&dummy > addr) ? 1 : -1;
31843 return find_stack_direction () < 0;
31846 rm -f conftest$ac_exeext
31847 if { (ac_try="$ac_link"
31848 case "(($ac_try" in
31849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31850 *) ac_try_echo=$ac_try;;
31852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31853 (eval "$ac_link") 2>&5
31855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31857 { (case "(($ac_try" in
31858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31859 *) ac_try_echo=$ac_try;;
31861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31862 (eval "$ac_try") 2>&5
31864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31865 (exit $ac_status); }; }; then
31866 ac_cv_c_stack_direction=1
31868 echo "$as_me: program exited with status $ac_status" >&5
31869 echo "$as_me: failed program was:" >&5
31870 sed 's/^/| /' conftest.$ac_ext >&5
31872 ( exit $ac_status )
31873 ac_cv_c_stack_direction=-1
31875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31880 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31881 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31883 cat >>confdefs.h <<_ACEOF
31884 #define STACK_DIRECTION $ac_cv_c_stack_direction
31891 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31892 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31893 if test "${ac_cv_func_rand48+set}" = set; then
31894 echo $ECHO_N "(cached) $ECHO_C" >&6
31897 ac_cpp='$CXXCPP $CPPFLAGS'
31898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31902 cat >conftest.$ac_ext <<_ACEOF
31905 cat confdefs.h >>conftest.$ac_ext
31906 cat >>conftest.$ac_ext <<_ACEOF
31907 /* end confdefs.h. */
31908 #include <stdlib.h>
31912 srand48(0);lrand48();drand48();
31917 rm -f conftest.$ac_objext
31918 if { (ac_try="$ac_compile"
31919 case "(($ac_try" in
31920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31921 *) ac_try_echo=$ac_try;;
31923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31924 (eval "$ac_compile") 2>conftest.er1
31926 grep -v '^ *+' conftest.er1 >conftest.err
31928 cat conftest.err >&5
31929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930 (exit $ac_status); } &&
31931 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31932 { (case "(($ac_try" in
31933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31934 *) ac_try_echo=$ac_try;;
31936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31937 (eval "$ac_try") 2>&5
31939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31940 (exit $ac_status); }; } &&
31941 { ac_try='test -s conftest.$ac_objext'
31942 { (case "(($ac_try" in
31943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31944 *) ac_try_echo=$ac_try;;
31946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31947 (eval "$ac_try") 2>&5
31949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950 (exit $ac_status); }; }; then
31951 ac_cv_func_rand48=yes
31953 echo "$as_me: failed program was:" >&5
31954 sed 's/^/| /' conftest.$ac_ext >&5
31956 ac_cv_func_rand48=no
31959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31961 ac_cpp='$CPP $CPPFLAGS'
31962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31967 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31968 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31970 if test "$ac_cv_func_rand48" = "yes" ; then
31972 cat >>confdefs.h <<\_ACEOF
31973 #define HAVE_RAND48 1
31979 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31980 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31981 if test "${ac_cv_cxx_namespaces+set}" = set; then
31982 echo $ECHO_N "(cached) $ECHO_C" >&6
31985 ac_cpp='$CXXCPP $CPPFLAGS'
31986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31990 cat >conftest.$ac_ext <<_ACEOF
31993 cat confdefs.h >>conftest.$ac_ext
31994 cat >>conftest.$ac_ext <<_ACEOF
31995 /* end confdefs.h. */
31996 namespace Outer { namespace Inner { int i = 0; }}
32000 using namespace Outer::Inner; return i;
32005 rm -f conftest.$ac_objext
32006 if { (ac_try="$ac_compile"
32007 case "(($ac_try" in
32008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32009 *) ac_try_echo=$ac_try;;
32011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32012 (eval "$ac_compile") 2>conftest.er1
32014 grep -v '^ *+' conftest.er1 >conftest.err
32016 cat conftest.err >&5
32017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32018 (exit $ac_status); } &&
32019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32020 { (case "(($ac_try" in
32021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32022 *) ac_try_echo=$ac_try;;
32024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32025 (eval "$ac_try") 2>&5
32027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028 (exit $ac_status); }; } &&
32029 { ac_try='test -s conftest.$ac_objext'
32030 { (case "(($ac_try" in
32031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32032 *) ac_try_echo=$ac_try;;
32034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32035 (eval "$ac_try") 2>&5
32037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038 (exit $ac_status); }; }; then
32039 ac_cv_cxx_namespaces=yes
32041 echo "$as_me: failed program was:" >&5
32042 sed 's/^/| /' conftest.$ac_ext >&5
32044 ac_cv_cxx_namespaces=no
32047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32049 ac_cpp='$CPP $CPPFLAGS'
32050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32056 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32057 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32058 if test "$ac_cv_cxx_namespaces" = yes; then
32060 cat >>confdefs.h <<\_ACEOF
32061 #define HAVE_NAMESPACES
32066 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
32067 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
32068 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
32069 echo $ECHO_N "(cached) $ECHO_C" >&6
32073 ac_cpp='$CXXCPP $CPPFLAGS'
32074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32078 cat >conftest.$ac_ext <<_ACEOF
32081 cat confdefs.h >>conftest.$ac_ext
32082 cat >>conftest.$ac_ext <<_ACEOF
32083 /* end confdefs.h. */
32084 #include <ext/hash_map>
32085 #ifdef HAVE_NAMESPACES
32086 using namespace std;
32091 hash_map<int, int> t;
32096 rm -f conftest.$ac_objext
32097 if { (ac_try="$ac_compile"
32098 case "(($ac_try" in
32099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32100 *) ac_try_echo=$ac_try;;
32102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32103 (eval "$ac_compile") 2>conftest.er1
32105 grep -v '^ *+' conftest.er1 >conftest.err
32107 cat conftest.err >&5
32108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109 (exit $ac_status); } &&
32110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32111 { (case "(($ac_try" in
32112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32113 *) ac_try_echo=$ac_try;;
32115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32116 (eval "$ac_try") 2>&5
32118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119 (exit $ac_status); }; } &&
32120 { ac_try='test -s conftest.$ac_objext'
32121 { (case "(($ac_try" in
32122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32123 *) ac_try_echo=$ac_try;;
32125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32126 (eval "$ac_try") 2>&5
32128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129 (exit $ac_status); }; }; then
32130 ac_cv_cxx_have_std_ext_hash_map=yes
32132 echo "$as_me: failed program was:" >&5
32133 sed 's/^/| /' conftest.$ac_ext >&5
32135 ac_cv_cxx_have_std_ext_hash_map=no
32138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32140 ac_cpp='$CPP $CPPFLAGS'
32141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32146 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
32147 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
32148 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
32151 cat >>confdefs.h <<\_ACEOF
32152 #define HAVE_STD_EXT_HASH_MAP 1
32157 cat >>confdefs.h <<\_ACEOF
32158 #define HAVE_STD_EXT_HASH_MAP 0
32163 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
32164 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
32165 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
32166 echo $ECHO_N "(cached) $ECHO_C" >&6
32170 ac_cpp='$CXXCPP $CPPFLAGS'
32171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32175 cat >conftest.$ac_ext <<_ACEOF
32178 cat confdefs.h >>conftest.$ac_ext
32179 cat >>conftest.$ac_ext <<_ACEOF
32180 /* end confdefs.h. */
32181 #include <ext/hash_map>
32182 #ifdef HAVE_NAMESPACES
32183 using namespace __gnu_cxx;
32188 hash_map<int,int> t;
32193 rm -f conftest.$ac_objext
32194 if { (ac_try="$ac_compile"
32195 case "(($ac_try" in
32196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32197 *) ac_try_echo=$ac_try;;
32199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32200 (eval "$ac_compile") 2>conftest.er1
32202 grep -v '^ *+' conftest.er1 >conftest.err
32204 cat conftest.err >&5
32205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32206 (exit $ac_status); } &&
32207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32208 { (case "(($ac_try" in
32209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32210 *) ac_try_echo=$ac_try;;
32212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32213 (eval "$ac_try") 2>&5
32215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32216 (exit $ac_status); }; } &&
32217 { ac_try='test -s conftest.$ac_objext'
32218 { (case "(($ac_try" in
32219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32220 *) ac_try_echo=$ac_try;;
32222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32223 (eval "$ac_try") 2>&5
32225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226 (exit $ac_status); }; }; then
32227 ac_cv_cxx_have_gnu_ext_hash_map=yes
32229 echo "$as_me: failed program was:" >&5
32230 sed 's/^/| /' conftest.$ac_ext >&5
32232 ac_cv_cxx_have_gnu_ext_hash_map=no
32235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32237 ac_cpp='$CPP $CPPFLAGS'
32238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32243 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32244 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32245 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32248 cat >>confdefs.h <<\_ACEOF
32249 #define HAVE_GNU_EXT_HASH_MAP 1
32254 cat >>confdefs.h <<\_ACEOF
32255 #define HAVE_GNU_EXT_HASH_MAP 0
32260 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32261 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32262 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32263 echo $ECHO_N "(cached) $ECHO_C" >&6
32267 ac_cpp='$CXXCPP $CPPFLAGS'
32268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32272 cat >conftest.$ac_ext <<_ACEOF
32275 cat confdefs.h >>conftest.$ac_ext
32276 cat >>conftest.$ac_ext <<_ACEOF
32277 /* end confdefs.h. */
32278 #include <hash_map>
32282 hash_map<int,int> t;
32287 rm -f conftest.$ac_objext
32288 if { (ac_try="$ac_compile"
32289 case "(($ac_try" in
32290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32291 *) ac_try_echo=$ac_try;;
32293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32294 (eval "$ac_compile") 2>conftest.er1
32296 grep -v '^ *+' conftest.er1 >conftest.err
32298 cat conftest.err >&5
32299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32300 (exit $ac_status); } &&
32301 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32302 { (case "(($ac_try" in
32303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32304 *) ac_try_echo=$ac_try;;
32306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32307 (eval "$ac_try") 2>&5
32309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32310 (exit $ac_status); }; } &&
32311 { ac_try='test -s conftest.$ac_objext'
32312 { (case "(($ac_try" in
32313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32314 *) ac_try_echo=$ac_try;;
32316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32317 (eval "$ac_try") 2>&5
32319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32320 (exit $ac_status); }; }; then
32321 ac_cv_cxx_have_global_hash_map=yes
32323 echo "$as_me: failed program was:" >&5
32324 sed 's/^/| /' conftest.$ac_ext >&5
32326 ac_cv_cxx_have_global_hash_map=no
32329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32331 ac_cpp='$CPP $CPPFLAGS'
32332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32337 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32338 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32339 if test "$ac_cv_cxx_have_global_hash_map" = yes
32342 cat >>confdefs.h <<\_ACEOF
32343 #define HAVE_GLOBAL_HASH_MAP 1
32348 cat >>confdefs.h <<\_ACEOF
32349 #define HAVE_GLOBAL_HASH_MAP 0
32354 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32355 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32356 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32357 echo $ECHO_N "(cached) $ECHO_C" >&6
32361 ac_cpp='$CXXCPP $CPPFLAGS'
32362 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32363 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32364 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32366 cat >conftest.$ac_ext <<_ACEOF
32369 cat confdefs.h >>conftest.$ac_ext
32370 cat >>conftest.$ac_ext <<_ACEOF
32371 /* end confdefs.h. */
32372 #include <ext/hash_set>
32373 #ifdef HAVE_NAMESPACES
32374 using namespace std;
32384 rm -f conftest.$ac_objext
32385 if { (ac_try="$ac_compile"
32386 case "(($ac_try" in
32387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32388 *) ac_try_echo=$ac_try;;
32390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32391 (eval "$ac_compile") 2>conftest.er1
32393 grep -v '^ *+' conftest.er1 >conftest.err
32395 cat conftest.err >&5
32396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397 (exit $ac_status); } &&
32398 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32399 { (case "(($ac_try" in
32400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32401 *) ac_try_echo=$ac_try;;
32403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32404 (eval "$ac_try") 2>&5
32406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407 (exit $ac_status); }; } &&
32408 { ac_try='test -s conftest.$ac_objext'
32409 { (case "(($ac_try" in
32410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32411 *) ac_try_echo=$ac_try;;
32413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32414 (eval "$ac_try") 2>&5
32416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32417 (exit $ac_status); }; }; then
32418 ac_cv_cxx_have_std_ext_hash_set=yes
32420 echo "$as_me: failed program was:" >&5
32421 sed 's/^/| /' conftest.$ac_ext >&5
32423 ac_cv_cxx_have_std_ext_hash_set=no
32426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32428 ac_cpp='$CPP $CPPFLAGS'
32429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32434 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32435 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32436 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32439 cat >>confdefs.h <<\_ACEOF
32440 #define HAVE_STD_EXT_HASH_SET 1
32445 cat >>confdefs.h <<\_ACEOF
32446 #define HAVE_STD_EXT_HASH_SET 0
32451 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32452 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32453 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32454 echo $ECHO_N "(cached) $ECHO_C" >&6
32458 ac_cpp='$CXXCPP $CPPFLAGS'
32459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32463 cat >conftest.$ac_ext <<_ACEOF
32466 cat confdefs.h >>conftest.$ac_ext
32467 cat >>conftest.$ac_ext <<_ACEOF
32468 /* end confdefs.h. */
32469 #include <ext/hash_set>
32470 #ifdef HAVE_NAMESPACES
32471 using namespace __gnu_cxx;
32481 rm -f conftest.$ac_objext
32482 if { (ac_try="$ac_compile"
32483 case "(($ac_try" in
32484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32485 *) ac_try_echo=$ac_try;;
32487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32488 (eval "$ac_compile") 2>conftest.er1
32490 grep -v '^ *+' conftest.er1 >conftest.err
32492 cat conftest.err >&5
32493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32494 (exit $ac_status); } &&
32495 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32496 { (case "(($ac_try" in
32497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32498 *) ac_try_echo=$ac_try;;
32500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32501 (eval "$ac_try") 2>&5
32503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32504 (exit $ac_status); }; } &&
32505 { ac_try='test -s conftest.$ac_objext'
32506 { (case "(($ac_try" in
32507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32508 *) ac_try_echo=$ac_try;;
32510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32511 (eval "$ac_try") 2>&5
32513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514 (exit $ac_status); }; }; then
32515 ac_cv_cxx_have_gnu_ext_hash_set=yes
32517 echo "$as_me: failed program was:" >&5
32518 sed 's/^/| /' conftest.$ac_ext >&5
32520 ac_cv_cxx_have_gnu_ext_hash_set=no
32523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32525 ac_cpp='$CPP $CPPFLAGS'
32526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32531 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32532 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32533 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32536 cat >>confdefs.h <<\_ACEOF
32537 #define HAVE_GNU_EXT_HASH_SET 1
32542 cat >>confdefs.h <<\_ACEOF
32543 #define HAVE_GNU_EXT_HASH_SET 0
32548 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32549 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32550 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32551 echo $ECHO_N "(cached) $ECHO_C" >&6
32555 ac_cpp='$CXXCPP $CPPFLAGS'
32556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32560 cat >conftest.$ac_ext <<_ACEOF
32563 cat confdefs.h >>conftest.$ac_ext
32564 cat >>conftest.$ac_ext <<_ACEOF
32565 /* end confdefs.h. */
32566 #include <hash_set>
32570 hash_set<int> t; return 0;
32575 rm -f conftest.$ac_objext
32576 if { (ac_try="$ac_compile"
32577 case "(($ac_try" in
32578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32579 *) ac_try_echo=$ac_try;;
32581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32582 (eval "$ac_compile") 2>conftest.er1
32584 grep -v '^ *+' conftest.er1 >conftest.err
32586 cat conftest.err >&5
32587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32588 (exit $ac_status); } &&
32589 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32590 { (case "(($ac_try" in
32591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32592 *) ac_try_echo=$ac_try;;
32594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32595 (eval "$ac_try") 2>&5
32597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32598 (exit $ac_status); }; } &&
32599 { ac_try='test -s conftest.$ac_objext'
32600 { (case "(($ac_try" in
32601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32602 *) ac_try_echo=$ac_try;;
32604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32605 (eval "$ac_try") 2>&5
32607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32608 (exit $ac_status); }; }; then
32609 ac_cv_cxx_have_global_hash_set=yes
32611 echo "$as_me: failed program was:" >&5
32612 sed 's/^/| /' conftest.$ac_ext >&5
32614 ac_cv_cxx_have_global_hash_set=no
32617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32619 ac_cpp='$CPP $CPPFLAGS'
32620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32625 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32626 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32627 if test "$ac_cv_cxx_have_global_hash_set" = yes
32630 cat >>confdefs.h <<\_ACEOF
32631 #define HAVE_GLOBAL_HASH_SET 1
32636 cat >>confdefs.h <<\_ACEOF
32637 #define HAVE_GLOBAL_HASH_SET 0
32642 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32643 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32644 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32645 echo $ECHO_N "(cached) $ECHO_C" >&6
32649 ac_cpp='$CXXCPP $CPPFLAGS'
32650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32654 cat >conftest.$ac_ext <<_ACEOF
32657 cat confdefs.h >>conftest.$ac_ext
32658 cat >>conftest.$ac_ext <<_ACEOF
32659 /* end confdefs.h. */
32660 #include <iterator>
32661 #ifdef HAVE_NAMESPACES
32662 using namespace std;
32667 iterator<int,int,int> t; return 0;
32672 rm -f conftest.$ac_objext
32673 if { (ac_try="$ac_compile"
32674 case "(($ac_try" in
32675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32676 *) ac_try_echo=$ac_try;;
32678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32679 (eval "$ac_compile") 2>conftest.er1
32681 grep -v '^ *+' conftest.er1 >conftest.err
32683 cat conftest.err >&5
32684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32685 (exit $ac_status); } &&
32686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32687 { (case "(($ac_try" in
32688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32689 *) ac_try_echo=$ac_try;;
32691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32692 (eval "$ac_try") 2>&5
32694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32695 (exit $ac_status); }; } &&
32696 { ac_try='test -s conftest.$ac_objext'
32697 { (case "(($ac_try" in
32698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32699 *) ac_try_echo=$ac_try;;
32701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32702 (eval "$ac_try") 2>&5
32704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705 (exit $ac_status); }; }; then
32706 ac_cv_cxx_have_std_iterator=yes
32708 echo "$as_me: failed program was:" >&5
32709 sed 's/^/| /' conftest.$ac_ext >&5
32711 ac_cv_cxx_have_std_iterator=no
32714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32716 ac_cpp='$CPP $CPPFLAGS'
32717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32723 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32724 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32725 if test "$ac_cv_cxx_have_std_iterator" = yes
32728 cat >>confdefs.h <<\_ACEOF
32729 #define HAVE_STD_ITERATOR 1
32734 cat >>confdefs.h <<\_ACEOF
32735 #define HAVE_STD_ITERATOR 0
32740 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32741 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32742 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32743 echo $ECHO_N "(cached) $ECHO_C" >&6
32747 ac_cpp='$CXXCPP $CPPFLAGS'
32748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32752 cat >conftest.$ac_ext <<_ACEOF
32755 cat confdefs.h >>conftest.$ac_ext
32756 cat >>conftest.$ac_ext <<_ACEOF
32757 /* end confdefs.h. */
32758 #include <iterator>
32759 #ifdef HAVE_NAMESPACES
32760 using namespace std;
32765 bidirectional_iterator<int,int> t; return 0;
32770 rm -f conftest.$ac_objext
32771 if { (ac_try="$ac_compile"
32772 case "(($ac_try" in
32773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32774 *) ac_try_echo=$ac_try;;
32776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32777 (eval "$ac_compile") 2>conftest.er1
32779 grep -v '^ *+' conftest.er1 >conftest.err
32781 cat conftest.err >&5
32782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32783 (exit $ac_status); } &&
32784 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32785 { (case "(($ac_try" in
32786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32787 *) ac_try_echo=$ac_try;;
32789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32790 (eval "$ac_try") 2>&5
32792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32793 (exit $ac_status); }; } &&
32794 { ac_try='test -s conftest.$ac_objext'
32795 { (case "(($ac_try" in
32796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32797 *) ac_try_echo=$ac_try;;
32799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32800 (eval "$ac_try") 2>&5
32802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32803 (exit $ac_status); }; }; then
32804 ac_cv_cxx_have_bi_iterator=yes
32806 echo "$as_me: failed program was:" >&5
32807 sed 's/^/| /' conftest.$ac_ext >&5
32809 ac_cv_cxx_have_bi_iterator=no
32812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32814 ac_cpp='$CPP $CPPFLAGS'
32815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32821 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32822 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32823 if test "$ac_cv_cxx_have_bi_iterator" = yes
32826 cat >>confdefs.h <<\_ACEOF
32827 #define HAVE_BI_ITERATOR 1
32832 cat >>confdefs.h <<\_ACEOF
32833 #define HAVE_BI_ITERATOR 0
32838 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32839 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32840 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32841 echo $ECHO_N "(cached) $ECHO_C" >&6
32845 ac_cpp='$CXXCPP $CPPFLAGS'
32846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32850 cat >conftest.$ac_ext <<_ACEOF
32853 cat confdefs.h >>conftest.$ac_ext
32854 cat >>conftest.$ac_ext <<_ACEOF
32855 /* end confdefs.h. */
32856 #include <iterator>
32857 #ifdef HAVE_NAMESPACES
32858 using namespace std;
32863 forward_iterator<int,int> t; return 0;
32868 rm -f conftest.$ac_objext
32869 if { (ac_try="$ac_compile"
32870 case "(($ac_try" in
32871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32872 *) ac_try_echo=$ac_try;;
32874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32875 (eval "$ac_compile") 2>conftest.er1
32877 grep -v '^ *+' conftest.er1 >conftest.err
32879 cat conftest.err >&5
32880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32881 (exit $ac_status); } &&
32882 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32883 { (case "(($ac_try" in
32884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32885 *) ac_try_echo=$ac_try;;
32887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32888 (eval "$ac_try") 2>&5
32890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32891 (exit $ac_status); }; } &&
32892 { ac_try='test -s conftest.$ac_objext'
32893 { (case "(($ac_try" in
32894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32895 *) ac_try_echo=$ac_try;;
32897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32898 (eval "$ac_try") 2>&5
32900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32901 (exit $ac_status); }; }; then
32902 ac_cv_cxx_have_fwd_iterator=yes
32904 echo "$as_me: failed program was:" >&5
32905 sed 's/^/| /' conftest.$ac_ext >&5
32907 ac_cv_cxx_have_fwd_iterator=no
32910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32912 ac_cpp='$CPP $CPPFLAGS'
32913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32919 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32920 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32921 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32924 cat >>confdefs.h <<\_ACEOF
32925 #define HAVE_FWD_ITERATOR 1
32930 cat >>confdefs.h <<\_ACEOF
32931 #define HAVE_FWD_ITERATOR 0
32937 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32938 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32939 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32940 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. */
32963 rm -f conftest.$ac_objext
32964 if { (ac_try="$ac_compile"
32965 case "(($ac_try" in
32966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32967 *) ac_try_echo=$ac_try;;
32969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32970 (eval "$ac_compile") 2>conftest.er1
32972 grep -v '^ *+' conftest.er1 >conftest.err
32974 cat conftest.err >&5
32975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32976 (exit $ac_status); } &&
32977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32978 { (case "(($ac_try" in
32979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32980 *) ac_try_echo=$ac_try;;
32982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32983 (eval "$ac_try") 2>&5
32985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32986 (exit $ac_status); }; } &&
32987 { ac_try='test -s conftest.$ac_objext'
32988 { (case "(($ac_try" in
32989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32990 *) ac_try_echo=$ac_try;;
32992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32993 (eval "$ac_try") 2>&5
32995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32996 (exit $ac_status); }; }; then
32997 ac_cv_func_isnan_in_math_h=yes
32999 echo "$as_me: failed program was:" >&5
33000 sed 's/^/| /' conftest.$ac_ext >&5
33002 ac_cv_func_isnan_in_math_h=no
33005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33007 ac_cpp='$CPP $CPPFLAGS'
33008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33013 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33014 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33017 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33019 cat >>confdefs.h <<\_ACEOF
33020 #define HAVE_ISNAN_IN_MATH_H 1
33025 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33026 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33027 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33028 echo $ECHO_N "(cached) $ECHO_C" >&6
33031 ac_cpp='$CXXCPP $CPPFLAGS'
33032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33036 cat >conftest.$ac_ext <<_ACEOF
33039 cat confdefs.h >>conftest.$ac_ext
33040 cat >>conftest.$ac_ext <<_ACEOF
33041 /* end confdefs.h. */
33051 rm -f conftest.$ac_objext
33052 if { (ac_try="$ac_compile"
33053 case "(($ac_try" in
33054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33055 *) ac_try_echo=$ac_try;;
33057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33058 (eval "$ac_compile") 2>conftest.er1
33060 grep -v '^ *+' conftest.er1 >conftest.err
33062 cat conftest.err >&5
33063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33064 (exit $ac_status); } &&
33065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
33073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33074 (exit $ac_status); }; } &&
33075 { ac_try='test -s conftest.$ac_objext'
33076 { (case "(($ac_try" in
33077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33078 *) ac_try_echo=$ac_try;;
33080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33081 (eval "$ac_try") 2>&5
33083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33084 (exit $ac_status); }; }; then
33085 ac_cv_func_isnan_in_cmath=yes
33087 echo "$as_me: failed program was:" >&5
33088 sed 's/^/| /' conftest.$ac_ext >&5
33090 ac_cv_func_isnan_in_cmath=no
33093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33095 ac_cpp='$CPP $CPPFLAGS'
33096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33101 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33102 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33104 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33106 cat >>confdefs.h <<\_ACEOF
33107 #define HAVE_ISNAN_IN_CMATH 1
33112 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33113 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33114 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33115 echo $ECHO_N "(cached) $ECHO_C" >&6
33118 ac_cpp='$CXXCPP $CPPFLAGS'
33119 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33120 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33121 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33123 cat >conftest.$ac_ext <<_ACEOF
33126 cat confdefs.h >>conftest.$ac_ext
33127 cat >>conftest.$ac_ext <<_ACEOF
33128 /* end confdefs.h. */
33133 float f; std::isnan(f);
33138 rm -f conftest.$ac_objext
33139 if { (ac_try="$ac_compile"
33140 case "(($ac_try" in
33141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33142 *) ac_try_echo=$ac_try;;
33144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33145 (eval "$ac_compile") 2>conftest.er1
33147 grep -v '^ *+' conftest.er1 >conftest.err
33149 cat conftest.err >&5
33150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33151 (exit $ac_status); } &&
33152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33153 { (case "(($ac_try" in
33154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33155 *) ac_try_echo=$ac_try;;
33157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33158 (eval "$ac_try") 2>&5
33160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161 (exit $ac_status); }; } &&
33162 { ac_try='test -s conftest.$ac_objext'
33163 { (case "(($ac_try" in
33164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33165 *) ac_try_echo=$ac_try;;
33167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33168 (eval "$ac_try") 2>&5
33170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33171 (exit $ac_status); }; }; then
33172 ac_cv_func_std_isnan_in_cmath=yes
33174 echo "$as_me: failed program was:" >&5
33175 sed 's/^/| /' conftest.$ac_ext >&5
33177 ac_cv_func_std_isnan_in_cmath=no
33180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33182 ac_cpp='$CPP $CPPFLAGS'
33183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33188 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33189 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33191 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33193 cat >>confdefs.h <<\_ACEOF
33194 #define HAVE_STD_ISNAN_IN_CMATH 1
33200 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33201 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33202 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33203 echo $ECHO_N "(cached) $ECHO_C" >&6
33206 ac_cpp='$CXXCPP $CPPFLAGS'
33207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33211 cat >conftest.$ac_ext <<_ACEOF
33214 cat confdefs.h >>conftest.$ac_ext
33215 cat >>conftest.$ac_ext <<_ACEOF
33216 /* end confdefs.h. */
33226 rm -f conftest.$ac_objext
33227 if { (ac_try="$ac_compile"
33228 case "(($ac_try" in
33229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33230 *) ac_try_echo=$ac_try;;
33232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33233 (eval "$ac_compile") 2>conftest.er1
33235 grep -v '^ *+' conftest.er1 >conftest.err
33237 cat conftest.err >&5
33238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33239 (exit $ac_status); } &&
33240 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33241 { (case "(($ac_try" in
33242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33243 *) ac_try_echo=$ac_try;;
33245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33246 (eval "$ac_try") 2>&5
33248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33249 (exit $ac_status); }; } &&
33250 { ac_try='test -s conftest.$ac_objext'
33251 { (case "(($ac_try" in
33252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33253 *) ac_try_echo=$ac_try;;
33255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33256 (eval "$ac_try") 2>&5
33258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33259 (exit $ac_status); }; }; then
33260 ac_cv_func_isinf_in_math_h=yes
33262 echo "$as_me: failed program was:" >&5
33263 sed 's/^/| /' conftest.$ac_ext >&5
33265 ac_cv_func_isinf_in_math_h=no
33268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33270 ac_cpp='$CPP $CPPFLAGS'
33271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33276 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33277 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33279 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33281 cat >>confdefs.h <<\_ACEOF
33282 #define HAVE_ISINF_IN_MATH_H 1
33287 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33288 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33289 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33290 echo $ECHO_N "(cached) $ECHO_C" >&6
33293 ac_cpp='$CXXCPP $CPPFLAGS'
33294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33298 cat >conftest.$ac_ext <<_ACEOF
33301 cat confdefs.h >>conftest.$ac_ext
33302 cat >>conftest.$ac_ext <<_ACEOF
33303 /* end confdefs.h. */
33313 rm -f conftest.$ac_objext
33314 if { (ac_try="$ac_compile"
33315 case "(($ac_try" in
33316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33317 *) ac_try_echo=$ac_try;;
33319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33320 (eval "$ac_compile") 2>conftest.er1
33322 grep -v '^ *+' conftest.er1 >conftest.err
33324 cat conftest.err >&5
33325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326 (exit $ac_status); } &&
33327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33328 { (case "(($ac_try" in
33329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33330 *) ac_try_echo=$ac_try;;
33332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33333 (eval "$ac_try") 2>&5
33335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33336 (exit $ac_status); }; } &&
33337 { ac_try='test -s conftest.$ac_objext'
33338 { (case "(($ac_try" in
33339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33340 *) ac_try_echo=$ac_try;;
33342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33343 (eval "$ac_try") 2>&5
33345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33346 (exit $ac_status); }; }; then
33347 ac_cv_func_isinf_in_cmath=yes
33349 echo "$as_me: failed program was:" >&5
33350 sed 's/^/| /' conftest.$ac_ext >&5
33352 ac_cv_func_isinf_in_cmath=no
33355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33357 ac_cpp='$CPP $CPPFLAGS'
33358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33363 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33364 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33366 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33368 cat >>confdefs.h <<\_ACEOF
33369 #define HAVE_ISINF_IN_CMATH 1
33374 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33375 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33376 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33377 echo $ECHO_N "(cached) $ECHO_C" >&6
33380 ac_cpp='$CXXCPP $CPPFLAGS'
33381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33385 cat >conftest.$ac_ext <<_ACEOF
33388 cat confdefs.h >>conftest.$ac_ext
33389 cat >>conftest.$ac_ext <<_ACEOF
33390 /* end confdefs.h. */
33395 float f; std::isinf(f)}
33400 rm -f conftest.$ac_objext
33401 if { (ac_try="$ac_compile"
33402 case "(($ac_try" in
33403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33404 *) ac_try_echo=$ac_try;;
33406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33407 (eval "$ac_compile") 2>conftest.er1
33409 grep -v '^ *+' conftest.er1 >conftest.err
33411 cat conftest.err >&5
33412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33413 (exit $ac_status); } &&
33414 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33415 { (case "(($ac_try" in
33416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33417 *) ac_try_echo=$ac_try;;
33419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33420 (eval "$ac_try") 2>&5
33422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33423 (exit $ac_status); }; } &&
33424 { ac_try='test -s conftest.$ac_objext'
33425 { (case "(($ac_try" in
33426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33427 *) ac_try_echo=$ac_try;;
33429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33430 (eval "$ac_try") 2>&5
33432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433 (exit $ac_status); }; }; then
33434 ac_cv_func_std_isinf_in_cmath=yes
33436 echo "$as_me: failed program was:" >&5
33437 sed 's/^/| /' conftest.$ac_ext >&5
33439 ac_cv_func_std_isinf_in_cmath=no
33442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33444 ac_cpp='$CPP $CPPFLAGS'
33445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33450 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33451 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33453 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33455 cat >>confdefs.h <<\_ACEOF
33456 #define HAVE_STD_ISINF_IN_CMATH 1
33461 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33462 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33463 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33464 echo $ECHO_N "(cached) $ECHO_C" >&6
33467 ac_cpp='$CXXCPP $CPPFLAGS'
33468 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33469 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33470 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33472 cat >conftest.$ac_ext <<_ACEOF
33475 cat confdefs.h >>conftest.$ac_ext
33476 cat >>conftest.$ac_ext <<_ACEOF
33477 /* end confdefs.h. */
33478 #include <ieeefp.h>
33482 float f; finite(f);
33487 rm -f conftest.$ac_objext
33488 if { (ac_try="$ac_compile"
33489 case "(($ac_try" in
33490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33491 *) ac_try_echo=$ac_try;;
33493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33494 (eval "$ac_compile") 2>conftest.er1
33496 grep -v '^ *+' conftest.er1 >conftest.err
33498 cat conftest.err >&5
33499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33500 (exit $ac_status); } &&
33501 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33502 { (case "(($ac_try" in
33503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33504 *) ac_try_echo=$ac_try;;
33506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33507 (eval "$ac_try") 2>&5
33509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33510 (exit $ac_status); }; } &&
33511 { ac_try='test -s conftest.$ac_objext'
33512 { (case "(($ac_try" in
33513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33514 *) ac_try_echo=$ac_try;;
33516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33517 (eval "$ac_try") 2>&5
33519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33520 (exit $ac_status); }; }; then
33521 ac_cv_func_finite_in_ieeefp_h=yes
33523 echo "$as_me: failed program was:" >&5
33524 sed 's/^/| /' conftest.$ac_ext >&5
33526 ac_cv_func_finite_in_ieeefp_h=no
33529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33531 ac_cpp='$CPP $CPPFLAGS'
33532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33537 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33538 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33540 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33542 cat >>confdefs.h <<\_ACEOF
33543 #define HAVE_FINITE_IN_IEEEFP_H 1
33550 if test "$llvm_cv_platform_type" = "Unix" ; then
33553 for ac_header in stdlib.h unistd.h
33555 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33560 echo $ECHO_N "(cached) $ECHO_C" >&6
33562 ac_res=`eval echo '${'$as_ac_Header'}'`
33563 { echo "$as_me:$LINENO: result: $ac_res" >&5
33564 echo "${ECHO_T}$ac_res" >&6; }
33566 # Is the header compilable?
33567 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33569 cat >conftest.$ac_ext <<_ACEOF
33572 cat confdefs.h >>conftest.$ac_ext
33573 cat >>conftest.$ac_ext <<_ACEOF
33574 /* end confdefs.h. */
33575 $ac_includes_default
33576 #include <$ac_header>
33578 rm -f conftest.$ac_objext
33579 if { (ac_try="$ac_compile"
33580 case "(($ac_try" in
33581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33582 *) ac_try_echo=$ac_try;;
33584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33585 (eval "$ac_compile") 2>conftest.er1
33587 grep -v '^ *+' conftest.er1 >conftest.err
33589 cat conftest.err >&5
33590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33591 (exit $ac_status); } &&
33592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33593 { (case "(($ac_try" in
33594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33595 *) ac_try_echo=$ac_try;;
33597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33598 (eval "$ac_try") 2>&5
33600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601 (exit $ac_status); }; } &&
33602 { ac_try='test -s conftest.$ac_objext'
33603 { (case "(($ac_try" in
33604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33605 *) ac_try_echo=$ac_try;;
33607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33608 (eval "$ac_try") 2>&5
33610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33611 (exit $ac_status); }; }; then
33612 ac_header_compiler=yes
33614 echo "$as_me: failed program was:" >&5
33615 sed 's/^/| /' conftest.$ac_ext >&5
33617 ac_header_compiler=no
33620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33622 echo "${ECHO_T}$ac_header_compiler" >&6; }
33624 # Is the header present?
33625 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33627 cat >conftest.$ac_ext <<_ACEOF
33630 cat confdefs.h >>conftest.$ac_ext
33631 cat >>conftest.$ac_ext <<_ACEOF
33632 /* end confdefs.h. */
33633 #include <$ac_header>
33635 if { (ac_try="$ac_cpp conftest.$ac_ext"
33636 case "(($ac_try" in
33637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33638 *) ac_try_echo=$ac_try;;
33640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33643 grep -v '^ *+' conftest.er1 >conftest.err
33645 cat conftest.err >&5
33646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33647 (exit $ac_status); } >/dev/null; then
33648 if test -s conftest.err; then
33649 ac_cpp_err=$ac_c_preproc_warn_flag
33650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33657 if test -z "$ac_cpp_err"; then
33658 ac_header_preproc=yes
33660 echo "$as_me: failed program was:" >&5
33661 sed 's/^/| /' conftest.$ac_ext >&5
33663 ac_header_preproc=no
33666 rm -f conftest.err conftest.$ac_ext
33667 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33668 echo "${ECHO_T}$ac_header_preproc" >&6; }
33670 # So? What about this header?
33671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33674 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33676 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33677 ac_header_preproc=yes
33680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33683 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33685 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33687 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33691 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33693 ## ----------------------------------- ##
33694 ## Report this to llvmbugs@cs.uiuc.edu ##
33695 ## ----------------------------------- ##
33697 ) | sed "s/^/$as_me: WARNING: /" >&2
33700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33703 echo $ECHO_N "(cached) $ECHO_C" >&6
33705 eval "$as_ac_Header=\$ac_header_preproc"
33707 ac_res=`eval echo '${'$as_ac_Header'}'`
33708 { echo "$as_me:$LINENO: result: $ac_res" >&5
33709 echo "${ECHO_T}$ac_res" >&6; }
33712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33713 cat >>confdefs.h <<_ACEOF
33714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33722 for ac_func in getpagesize
33724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33728 echo $ECHO_N "(cached) $ECHO_C" >&6
33730 cat >conftest.$ac_ext <<_ACEOF
33733 cat confdefs.h >>conftest.$ac_ext
33734 cat >>conftest.$ac_ext <<_ACEOF
33735 /* end confdefs.h. */
33736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33738 #define $ac_func innocuous_$ac_func
33740 /* System header to define __stub macros and hopefully few prototypes,
33741 which can conflict with char $ac_func (); below.
33742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33743 <limits.h> exists even on freestanding compilers. */
33746 # include <limits.h>
33748 # include <assert.h>
33753 /* Override any GCC internal prototype to avoid an error.
33754 Use char because int might match the return type of a GCC
33755 builtin and then its argument prototype would still apply. */
33760 /* The GNU C library defines this for functions which it implements
33761 to always fail with ENOSYS. Some functions are actually named
33762 something starting with __ and the normal name is an alias. */
33763 #if defined __stub_$ac_func || defined __stub___$ac_func
33770 return $ac_func ();
33775 rm -f conftest.$ac_objext conftest$ac_exeext
33776 if { (ac_try="$ac_link"
33777 case "(($ac_try" in
33778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33779 *) ac_try_echo=$ac_try;;
33781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33782 (eval "$ac_link") 2>conftest.er1
33784 grep -v '^ *+' conftest.er1 >conftest.err
33786 cat conftest.err >&5
33787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788 (exit $ac_status); } &&
33789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33790 { (case "(($ac_try" in
33791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33792 *) ac_try_echo=$ac_try;;
33794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33795 (eval "$ac_try") 2>&5
33797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33798 (exit $ac_status); }; } &&
33799 { ac_try='test -s conftest$ac_exeext'
33800 { (case "(($ac_try" in
33801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33802 *) ac_try_echo=$ac_try;;
33804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33805 (eval "$ac_try") 2>&5
33807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808 (exit $ac_status); }; }; then
33809 eval "$as_ac_var=yes"
33811 echo "$as_me: failed program was:" >&5
33812 sed 's/^/| /' conftest.$ac_ext >&5
33814 eval "$as_ac_var=no"
33817 rm -f core conftest.err conftest.$ac_objext \
33818 conftest$ac_exeext conftest.$ac_ext
33820 ac_res=`eval echo '${'$as_ac_var'}'`
33821 { echo "$as_me:$LINENO: result: $ac_res" >&5
33822 echo "${ECHO_T}$ac_res" >&6; }
33823 if test `eval echo '${'$as_ac_var'}'` = yes; then
33824 cat >>confdefs.h <<_ACEOF
33825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33831 { echo "$as_me:$LINENO: checking for working mmap" >&5
33832 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33833 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33834 echo $ECHO_N "(cached) $ECHO_C" >&6
33836 if test "$cross_compiling" = yes; then
33837 ac_cv_func_mmap_fixed_mapped=no
33839 cat >conftest.$ac_ext <<_ACEOF
33842 cat confdefs.h >>conftest.$ac_ext
33843 cat >>conftest.$ac_ext <<_ACEOF
33844 /* end confdefs.h. */
33845 $ac_includes_default
33846 /* malloc might have been renamed as rpl_malloc. */
33849 /* Thanks to Mike Haertel and Jim Avera for this test.
33850 Here is a matrix of mmap possibilities:
33851 mmap private not fixed
33852 mmap private fixed at somewhere currently unmapped
33853 mmap private fixed at somewhere already mapped
33854 mmap shared not fixed
33855 mmap shared fixed at somewhere currently unmapped
33856 mmap shared fixed at somewhere already mapped
33857 For private mappings, we should verify that changes cannot be read()
33858 back from the file, nor mmap's back from the file at a different
33859 address. (There have been systems where private was not correctly
33860 implemented like the infamous i386 svr4.0, and systems where the
33861 VM page cache was not coherent with the file system buffer cache
33862 like early versions of FreeBSD and possibly contemporary NetBSD.)
33863 For shared mappings, we should conversely verify that changes get
33864 propagated back to all the places they're supposed to be.
33866 Grep wants private fixed already mapped.
33867 The main things grep needs to know about mmap are:
33868 * does it exist and is it safe to write into the mmap'd area
33869 * how to use it (BSD variants) */
33872 #include <sys/mman.h>
33874 #if !STDC_HEADERS && !HAVE_STDLIB_H
33878 /* This mess was copied from the GNU getpagesize.h. */
33879 #if !HAVE_GETPAGESIZE
33880 /* Assume that all systems that can run configure have sys/param.h. */
33881 # if !HAVE_SYS_PARAM_H
33882 # define HAVE_SYS_PARAM_H 1
33885 # ifdef _SC_PAGESIZE
33886 # define getpagesize() sysconf(_SC_PAGESIZE)
33887 # else /* no _SC_PAGESIZE */
33888 # if HAVE_SYS_PARAM_H
33889 # include <sys/param.h>
33890 # ifdef EXEC_PAGESIZE
33891 # define getpagesize() EXEC_PAGESIZE
33892 # else /* no EXEC_PAGESIZE */
33894 # define getpagesize() NBPG * CLSIZE
33897 # endif /* no CLSIZE */
33898 # else /* no NBPG */
33900 # define getpagesize() NBPC
33901 # else /* no NBPC */
33903 # define getpagesize() PAGESIZE
33904 # endif /* PAGESIZE */
33905 # endif /* no NBPC */
33906 # endif /* no NBPG */
33907 # endif /* no EXEC_PAGESIZE */
33908 # else /* no HAVE_SYS_PARAM_H */
33909 # define getpagesize() 8192 /* punt totally */
33910 # endif /* no HAVE_SYS_PARAM_H */
33911 # endif /* no _SC_PAGESIZE */
33913 #endif /* no HAVE_GETPAGESIZE */
33918 char *data, *data2, *data3;
33922 pagesize = getpagesize ();
33924 /* First, make a file with some known garbage in it. */
33925 data = (char *) malloc (pagesize);
33928 for (i = 0; i < pagesize; ++i)
33929 *(data + i) = rand ();
33931 fd = creat ("conftest.mmap", 0600);
33934 if (write (fd, data, pagesize) != pagesize)
33938 /* Next, try to mmap the file at a fixed address which already has
33939 something else allocated at it. If we can, also make sure that
33940 we see the same garbage. */
33941 fd = open ("conftest.mmap", O_RDWR);
33944 data2 = (char *) malloc (2 * pagesize);
33947 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33948 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33949 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33951 for (i = 0; i < pagesize; ++i)
33952 if (*(data + i) != *(data2 + i))
33955 /* Finally, make sure that changes to the mapped area do not
33956 percolate back to the file as seen by read(). (This is a bug on
33957 some variants of i386 svr4.0.) */
33958 for (i = 0; i < pagesize; ++i)
33959 *(data2 + i) = *(data2 + i) + 1;
33960 data3 = (char *) malloc (pagesize);
33963 if (read (fd, data3, pagesize) != pagesize)
33965 for (i = 0; i < pagesize; ++i)
33966 if (*(data + i) != *(data3 + i))
33972 rm -f conftest$ac_exeext
33973 if { (ac_try="$ac_link"
33974 case "(($ac_try" in
33975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33976 *) ac_try_echo=$ac_try;;
33978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33979 (eval "$ac_link") 2>&5
33981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33983 { (case "(($ac_try" in
33984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33985 *) ac_try_echo=$ac_try;;
33987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33988 (eval "$ac_try") 2>&5
33990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33991 (exit $ac_status); }; }; then
33992 ac_cv_func_mmap_fixed_mapped=yes
33994 echo "$as_me: program exited with status $ac_status" >&5
33995 echo "$as_me: failed program was:" >&5
33996 sed 's/^/| /' conftest.$ac_ext >&5
33998 ( exit $ac_status )
33999 ac_cv_func_mmap_fixed_mapped=no
34001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34006 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34007 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34008 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34010 cat >>confdefs.h <<\_ACEOF
34011 #define HAVE_MMAP 1
34015 rm -f conftest.mmap
34017 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34018 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34019 if test "${ac_cv_func_mmap_file+set}" = set; then
34020 echo $ECHO_N "(cached) $ECHO_C" >&6
34023 ac_cpp='$CPP $CPPFLAGS'
34024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34028 if test "$cross_compiling" = yes; then
34029 ac_cv_func_mmap_file=no
34031 cat >conftest.$ac_ext <<_ACEOF
34035 cat confdefs.h >>conftest.$ac_ext
34036 cat >>conftest.$ac_ext <<_ACEOF
34037 /* end confdefs.h. */
34039 #include <sys/types.h>
34040 #include <sys/mman.h>
34048 fd = creat ("foo",0777);
34049 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34051 return (fd != (int) MAP_FAILED);
34056 rm -f conftest$ac_exeext
34057 if { (ac_try="$ac_link"
34058 case "(($ac_try" in
34059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34060 *) ac_try_echo=$ac_try;;
34062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34063 (eval "$ac_link") 2>&5
34065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34067 { (case "(($ac_try" in
34068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34069 *) ac_try_echo=$ac_try;;
34071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34072 (eval "$ac_try") 2>&5
34074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34075 (exit $ac_status); }; }; then
34076 ac_cv_func_mmap_file=yes
34078 echo "$as_me: program exited with status $ac_status" >&5
34079 echo "$as_me: failed program was:" >&5
34080 sed 's/^/| /' conftest.$ac_ext >&5
34082 ( exit $ac_status )
34083 ac_cv_func_mmap_file=no
34085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34090 ac_cpp='$CPP $CPPFLAGS'
34091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34097 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34098 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34099 if test "$ac_cv_func_mmap_file" = yes; then
34101 cat >>confdefs.h <<\_ACEOF
34102 #define HAVE_MMAP_FILE
34109 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34110 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34111 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34112 echo $ECHO_N "(cached) $ECHO_C" >&6
34114 if test "$llvm_cv_os_type" = "Interix" ; then
34115 ac_cv_need_dev_zero_for_mmap=yes
34117 ac_cv_need_dev_zero_for_mmap=no
34121 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34122 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34123 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34125 cat >>confdefs.h <<\_ACEOF
34126 #define NEED_DEV_ZERO_FOR_MMAP 1
34131 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34133 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34134 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34136 if test "$ac_cv_func_mmap_file" = "no"
34138 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34139 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34145 for ac_func in __dso_handle
34147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34151 echo $ECHO_N "(cached) $ECHO_C" >&6
34153 cat >conftest.$ac_ext <<_ACEOF
34156 cat confdefs.h >>conftest.$ac_ext
34157 cat >>conftest.$ac_ext <<_ACEOF
34158 /* end confdefs.h. */
34159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34161 #define $ac_func innocuous_$ac_func
34163 /* System header to define __stub macros and hopefully few prototypes,
34164 which can conflict with char $ac_func (); below.
34165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34166 <limits.h> exists even on freestanding compilers. */
34169 # include <limits.h>
34171 # include <assert.h>
34176 /* Override any GCC internal prototype to avoid an error.
34177 Use char because int might match the return type of a GCC
34178 builtin and then its argument prototype would still apply. */
34183 /* The GNU C library defines this for functions which it implements
34184 to always fail with ENOSYS. Some functions are actually named
34185 something starting with __ and the normal name is an alias. */
34186 #if defined __stub_$ac_func || defined __stub___$ac_func
34193 return $ac_func ();
34198 rm -f conftest.$ac_objext conftest$ac_exeext
34199 if { (ac_try="$ac_link"
34200 case "(($ac_try" in
34201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34202 *) ac_try_echo=$ac_try;;
34204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34205 (eval "$ac_link") 2>conftest.er1
34207 grep -v '^ *+' conftest.er1 >conftest.err
34209 cat conftest.err >&5
34210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34211 (exit $ac_status); } &&
34212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34213 { (case "(($ac_try" in
34214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34215 *) ac_try_echo=$ac_try;;
34217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34218 (eval "$ac_try") 2>&5
34220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34221 (exit $ac_status); }; } &&
34222 { ac_try='test -s conftest$ac_exeext'
34223 { (case "(($ac_try" in
34224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34225 *) ac_try_echo=$ac_try;;
34227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34228 (eval "$ac_try") 2>&5
34230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231 (exit $ac_status); }; }; then
34232 eval "$as_ac_var=yes"
34234 echo "$as_me: failed program was:" >&5
34235 sed 's/^/| /' conftest.$ac_ext >&5
34237 eval "$as_ac_var=no"
34240 rm -f core conftest.err conftest.$ac_objext \
34241 conftest$ac_exeext conftest.$ac_ext
34243 ac_res=`eval echo '${'$as_ac_var'}'`
34244 { echo "$as_me:$LINENO: result: $ac_res" >&5
34245 echo "${ECHO_T}$ac_res" >&6; }
34246 if test `eval echo '${'$as_ac_var'}'` = yes; then
34247 cat >>confdefs.h <<_ACEOF
34248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34255 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34256 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34257 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34258 echo $ECHO_N "(cached) $ECHO_C" >&6
34260 llvm_cv_llvmgcc_sanity="no"
34261 if test -x "$LLVMGCC" ; then
34262 cp /dev/null conftest.c
34263 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34264 grep 'target datalayout =' > /dev/null 2>&1
34265 if test $? -eq 0 ; then
34266 llvm_cv_llvmgcc_sanity="yes"
34271 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34272 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34274 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34275 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34276 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34277 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34278 LLVMCC1=$llvmcc1path
34280 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34281 LLVMCC1PLUS=$llvmcc1pluspath
34283 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34284 LLVMGCCDIR=$llvmgccdir
34286 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34287 LLVMGCCLIBEXEC=$llvmgcclibexec
34289 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34290 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34291 LLVMGCC_VERSION=$llvmgccversion
34293 LLVMGCC_MAJVERS=$llvmgccmajvers
34295 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34296 LLVMGCC_LANGS=$llvmgcclangs
34298 { echo "$as_me:$LINENO: result: ok" >&5
34299 echo "${ECHO_T}ok" >&6; }
34302 SHLIBEXT=$libltdl_cv_shlibext
34305 # Translate the various configuration directories and other basic
34306 # information into substitutions that will end up in Makefile.config.in
34307 # that these configured values can be used by the makefiles
34308 if test "${prefix}" = "NONE" ; then
34309 prefix="/usr/local"
34311 eval LLVM_PREFIX="${prefix}";
34312 eval LLVM_BINDIR="${prefix}/bin";
34313 eval LLVM_LIBDIR="${prefix}/lib";
34314 eval LLVM_DATADIR="${prefix}/share/llvm";
34315 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34316 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34317 eval LLVM_INCLUDEDIR="${prefix}/include";
34318 eval LLVM_INFODIR="${prefix}/info";
34319 eval LLVM_MANDIR="${prefix}/man";
34320 LLVM_CONFIGTIME=`date`
34332 # Place the various directores into the config.h file as #defines so that we
34333 # can know about the installation paths within LLVM.
34335 cat >>confdefs.h <<_ACEOF
34336 #define LLVM_PREFIX "$LLVM_PREFIX"
34340 cat >>confdefs.h <<_ACEOF
34341 #define LLVM_BINDIR "$LLVM_BINDIR"
34345 cat >>confdefs.h <<_ACEOF
34346 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34350 cat >>confdefs.h <<_ACEOF
34351 #define LLVM_DATADIR "$LLVM_DATADIR"
34355 cat >>confdefs.h <<_ACEOF
34356 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34360 cat >>confdefs.h <<_ACEOF
34361 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34365 cat >>confdefs.h <<_ACEOF
34366 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34370 cat >>confdefs.h <<_ACEOF
34371 #define LLVM_INFODIR "$LLVM_INFODIR"
34375 cat >>confdefs.h <<_ACEOF
34376 #define LLVM_MANDIR "$LLVM_MANDIR"
34380 cat >>confdefs.h <<_ACEOF
34381 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34385 cat >>confdefs.h <<_ACEOF
34386 #define LLVM_HOSTTRIPLE "$host"
34390 # Determine which bindings to build.
34391 if test "$BINDINGS_TO_BUILD" = auto ; then
34392 BINDINGS_TO_BUILD=""
34393 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34394 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34397 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34400 # This isn't really configurey, but it avoids having to repeat the list in
34405 # Do any work necessary to ensure that bindings have what they need.
34406 binding_prereqs_failed=0
34407 for a_binding in $BINDINGS_TO_BUILD ; do
34408 case "$a_binding" in
34410 if test "x$OCAMLC" = x ; then
34411 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34412 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34413 binding_prereqs_failed=1
34415 if test "x$OCAMLDEP" = x ; then
34416 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34417 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34418 binding_prereqs_failed=1
34420 if test "x$OCAMLOPT" = x ; then
34421 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34422 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34424 if test "x$with_ocaml_libdir" != xauto ; then
34425 OCAML_LIBDIR=$with_ocaml_libdir
34428 ocaml_stdlib="`"$OCAMLC" -where`"
34429 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34431 # ocaml stdlib is beneath our prefix; use stdlib
34432 OCAML_LIBDIR=$ocaml_stdlib
34435 # ocaml stdlib is outside our prefix; use libdir/ocaml
34436 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34443 if test "$binding_prereqs_failed" = 1 ; then
34444 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34445 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34446 { (exit 1); exit 1; }; }
34449 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34450 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34451 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34452 echo $ECHO_N "(cached) $ECHO_C" >&6
34455 ac_cpp='$CXXCPP $CPPFLAGS'
34456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34460 oldcxxflags="$CXXFLAGS"
34461 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34462 cat >conftest.$ac_ext <<_ACEOF
34465 cat confdefs.h >>conftest.$ac_ext
34466 cat >>conftest.$ac_ext <<_ACEOF
34467 /* end confdefs.h. */
34477 rm -f conftest.$ac_objext
34478 if { (ac_try="$ac_compile"
34479 case "(($ac_try" in
34480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34481 *) ac_try_echo=$ac_try;;
34483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34484 (eval "$ac_compile") 2>conftest.er1
34486 grep -v '^ *+' conftest.er1 >conftest.err
34488 cat conftest.err >&5
34489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34490 (exit $ac_status); } &&
34491 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34492 { (case "(($ac_try" in
34493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34494 *) ac_try_echo=$ac_try;;
34496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34497 (eval "$ac_try") 2>&5
34499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500 (exit $ac_status); }; } &&
34501 { ac_try='test -s conftest.$ac_objext'
34502 { (case "(($ac_try" in
34503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34504 *) ac_try_echo=$ac_try;;
34506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34507 (eval "$ac_try") 2>&5
34509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34510 (exit $ac_status); }; }; then
34511 llvm_cv_cxx_visibility_inlines_hidden=yes
34513 echo "$as_me: failed program was:" >&5
34514 sed 's/^/| /' conftest.$ac_ext >&5
34516 llvm_cv_cxx_visibility_inlines_hidden=no
34519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34520 CXXFLAGS="$oldcxxflags"
34522 ac_cpp='$CPP $CPPFLAGS'
34523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34529 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34530 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34531 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34532 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34535 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34541 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34543 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34545 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
34547 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
34549 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34552 ac_config_files="$ac_config_files Makefile.config"
34555 ac_config_files="$ac_config_files llvm.spec"
34558 ac_config_files="$ac_config_files docs/doxygen.cfg"
34561 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34564 ac_config_commands="$ac_config_commands setup"
34566 ac_config_commands="$ac_config_commands Makefile"
34569 ac_config_commands="$ac_config_commands Makefile.common"
34572 ac_config_commands="$ac_config_commands examples/Makefile"
34575 ac_config_commands="$ac_config_commands lib/Makefile"
34578 ac_config_commands="$ac_config_commands runtime/Makefile"
34581 ac_config_commands="$ac_config_commands test/Makefile"
34584 ac_config_commands="$ac_config_commands test/Makefile.tests"
34587 ac_config_commands="$ac_config_commands tools/Makefile"
34590 ac_config_commands="$ac_config_commands utils/Makefile"
34593 ac_config_commands="$ac_config_commands projects/Makefile"
34596 ac_config_commands="$ac_config_commands bindings/Makefile"
34599 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34603 cat >confcache <<\_ACEOF
34604 # This file is a shell script that caches the results of configure
34605 # tests run on this system so they can be shared between configure
34606 # scripts and configure runs, see configure's option --config-cache.
34607 # It is not useful on other systems. If it contains results you don't
34608 # want to keep, you may remove or edit it.
34610 # config.status only pays attention to the cache file if you give it
34611 # the --recheck option to rerun configure.
34613 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34614 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34615 # following values.
34619 # The following way of writing the cache mishandles newlines in values,
34620 # but we know of no workaround that is simple, portable, and efficient.
34621 # So, we kill variables containing newlines.
34622 # Ultrix sh set writes to stderr and can't be redirected directly,
34623 # and sets the high bit in the cache file unless we assign to the vars.
34625 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34626 eval ac_val=\$$ac_var
34630 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34631 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34634 _ | IFS | as_nl) ;; #(
34635 *) $as_unset $ac_var ;;
34641 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34642 *${as_nl}ac_space=\ *)
34643 # `set' does not quote correctly, so add quotes (double-quote
34644 # substitution turns \\\\ into \\, and sed turns \\ into \).
34647 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34650 # `set' quotes correctly as required by POSIX, so do not add quotes.
34651 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34660 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34662 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34664 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34665 if test -w "$cache_file"; then
34666 test "x$cache_file" != "x/dev/null" &&
34667 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34668 echo "$as_me: updating cache $cache_file" >&6;}
34669 cat confcache >$cache_file
34671 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34672 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34677 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34678 # Let make expand exec_prefix.
34679 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34681 DEFS=-DHAVE_CONFIG_H
34685 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34686 # 1. Remove the extension, and $U if already installed.
34687 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34688 ac_i=`echo "$ac_i" | sed "$ac_script"`
34689 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34690 # will be set to the directory where LIBOBJS objects are built.
34691 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34692 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34694 LIBOBJS=$ac_libobjs
34696 LTLIBOBJS=$ac_ltlibobjs
34699 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34700 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34701 Usually this means the macro was only invoked conditionally." >&5
34702 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34703 Usually this means the macro was only invoked conditionally." >&2;}
34704 { (exit 1); exit 1; }; }
34706 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34707 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34708 Usually this means the macro was only invoked conditionally." >&5
34709 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34710 Usually this means the macro was only invoked conditionally." >&2;}
34711 { (exit 1); exit 1; }; }
34714 : ${CONFIG_STATUS=./config.status}
34715 ac_clean_files_save=$ac_clean_files
34716 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34717 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34718 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34719 cat >$CONFIG_STATUS <<_ACEOF
34721 # Generated by $as_me.
34722 # Run this file to recreate the current configuration.
34723 # Compiler output produced by configure, useful for debugging
34724 # configure, is in config.log if it exists.
34727 ac_cs_recheck=false
34729 SHELL=\${CONFIG_SHELL-$SHELL}
34732 cat >>$CONFIG_STATUS <<\_ACEOF
34733 ## --------------------- ##
34734 ## M4sh Initialization. ##
34735 ## --------------------- ##
34737 # Be Bourne compatible
34738 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34741 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34742 # is contrary to our usage. Disable this feature.
34743 alias -g '${1+"$@"}'='"$@"'
34744 setopt NO_GLOB_SUBST
34746 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34748 BIN_SH=xpg4; export BIN_SH # for Tru64
34749 DUALCASE=1; export DUALCASE # for MKS sh
34753 # Avoid depending upon Character Ranges.
34754 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34755 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34756 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34757 as_cr_digits='0123456789'
34758 as_cr_alnum=$as_cr_Letters$as_cr_digits
34760 # The user is always right.
34761 if test "${PATH_SEPARATOR+set}" != set; then
34762 echo "#! /bin/sh" >conf$$.sh
34763 echo "exit 0" >>conf$$.sh
34765 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34773 # Support unset when possible.
34774 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34782 # We need space, tab and new line, in precisely that order. Quoting is
34783 # there to prevent editors from complaining about space-tab.
34784 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34785 # splitting by setting IFS to empty value.)
34790 # Find who we are. Look in the path if we contain no directory separator.
34792 *[\\/]* ) as_myself=$0 ;;
34793 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34794 for as_dir in $PATH
34797 test -z "$as_dir" && as_dir=.
34798 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34804 # We did not find ourselves, most probably we were run as `sh COMMAND'
34805 # in which case we are not to be found in the path.
34806 if test "x$as_myself" = x; then
34809 if test ! -f "$as_myself"; then
34810 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34811 { (exit 1); exit 1; }
34814 # Work around bugs in pre-3.0 UWIN ksh.
34815 for as_var in ENV MAIL MAILPATH
34816 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34824 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34825 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34826 LC_TELEPHONE LC_TIME
34828 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34829 eval $as_var=C; export $as_var
34831 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34835 # Required to use basename.
34836 if expr a : '\(a\)' >/dev/null 2>&1 &&
34837 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34843 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34844 as_basename=basename
34850 # Name of the executable.
34851 as_me=`$as_basename -- "$0" ||
34852 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34853 X"$0" : 'X\(//\)$' \| \
34854 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34856 sed '/^.*\/\([^/][^/]*\)\/*$/{
34875 as_lineno_1=$LINENO
34876 as_lineno_2=$LINENO
34877 test "x$as_lineno_1" != "x$as_lineno_2" &&
34878 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34880 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34881 # uniformly replaced by the line number. The first 'sed' inserts a
34882 # line-number line after each line using $LINENO; the second 'sed'
34883 # does the real work. The second script uses 'N' to pair each
34884 # line-number line with the line containing $LINENO, and appends
34885 # trailing '-' during substitution so that $LINENO is not a special
34886 # case at line end.
34887 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34888 # scripts with optimization help from Paolo Bonzini. Blame Lee
34889 # E. McMahon (1931-1989) for sed's syntax. :-)
34901 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34904 ' >$as_me.lineno &&
34905 chmod +x "$as_me.lineno" ||
34906 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34907 { (exit 1); exit 1; }; }
34909 # Don't try to exec as it changes $[0], causing all sort of problems
34910 # (the dirname of $[0] is not the place where we might find the
34911 # original and so on. Autoconf is especially sensitive to this).
34912 . "./$as_me.lineno"
34913 # Exit status is that of the last command.
34918 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34924 ECHO_C= ECHO_N= ECHO_T=
34925 case `echo -n x` in
34927 case `echo 'x\c'` in
34928 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34935 if expr a : '\(a\)' >/dev/null 2>&1 &&
34936 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34942 rm -f conf$$ conf$$.exe conf$$.file
34943 if test -d conf$$.dir; then
34944 rm -f conf$$.dir/conf$$.file
34950 if ln -s conf$$.file conf$$ 2>/dev/null; then
34952 # ... but there are two gotchas:
34953 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34954 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34955 # In both cases, we have to default to `cp -p'.
34956 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34958 elif ln conf$$.file conf$$ 2>/dev/null; then
34963 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34964 rmdir conf$$.dir 2>/dev/null
34966 if mkdir -p . 2>/dev/null; then
34969 test -d ./-p && rmdir ./-p
34973 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34974 # systems may use methods other than mode bits to determine executability.
34975 cat >conf$$.file <<_ASEOF
34979 chmod +x conf$$.file
34980 if test -x conf$$.file >/dev/null 2>&1; then
34981 as_executable_p="test -x"
34987 # Sed expression to map a string onto a valid CPP name.
34988 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34990 # Sed expression to map a string onto a valid variable name.
34991 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34996 # Save the log message, to keep $[0] and so on meaningful, and to
34997 # report actual input values of CONFIG_FILES etc. instead of their
34998 # values after options handling.
35000 This file was extended by llvm $as_me 2.5svn, which was
35001 generated by GNU Autoconf 2.60. Invocation command line was
35003 CONFIG_FILES = $CONFIG_FILES
35004 CONFIG_HEADERS = $CONFIG_HEADERS
35005 CONFIG_LINKS = $CONFIG_LINKS
35006 CONFIG_COMMANDS = $CONFIG_COMMANDS
35009 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35014 cat >>$CONFIG_STATUS <<_ACEOF
35015 # Files that config.status was made for.
35016 config_files="$ac_config_files"
35017 config_headers="$ac_config_headers"
35018 config_commands="$ac_config_commands"
35022 cat >>$CONFIG_STATUS <<\_ACEOF
35024 \`$as_me' instantiates files from templates according to the
35025 current configuration.
35027 Usage: $0 [OPTIONS] [FILE]...
35029 -h, --help print this help, then exit
35030 -V, --version print version number, then exit
35031 -q, --quiet do not print progress messages
35032 -d, --debug don't remove temporary files
35033 --recheck update $as_me by reconfiguring in the same conditions
35034 --file=FILE[:TEMPLATE]
35035 instantiate the configuration file FILE
35036 --header=FILE[:TEMPLATE]
35037 instantiate the configuration header FILE
35039 Configuration files:
35042 Configuration headers:
35045 Configuration commands:
35048 Report bugs to <bug-autoconf@gnu.org>."
35051 cat >>$CONFIG_STATUS <<_ACEOF
35053 llvm config.status 2.5svn
35054 configured by $0, generated by GNU Autoconf 2.60,
35055 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35057 Copyright (C) 2006 Free Software Foundation, Inc.
35058 This config.status script is free software; the Free Software Foundation
35059 gives unlimited permission to copy, distribute and modify it."
35066 cat >>$CONFIG_STATUS <<\_ACEOF
35067 # If no file are specified by the user, then we need to provide default
35068 # value. By we need to know if files were specified by the user.
35074 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35075 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35086 # Handling of the options.
35087 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35089 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35090 echo "$ac_cs_version"; exit ;;
35091 --debug | --debu | --deb | --de | --d | -d )
35093 --file | --fil | --fi | --f )
35095 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35096 ac_need_defaults=false;;
35097 --header | --heade | --head | --hea )
35099 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35100 ac_need_defaults=false;;
35102 # Conflict between --help and --header
35103 { echo "$as_me: error: ambiguous option: $1
35104 Try \`$0 --help' for more information." >&2
35105 { (exit 1); exit 1; }; };;
35106 --help | --hel | -h )
35107 echo "$ac_cs_usage"; exit ;;
35108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35109 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35112 # This is an error.
35113 -*) { echo "$as_me: error: unrecognized option: $1
35114 Try \`$0 --help' for more information." >&2
35115 { (exit 1); exit 1; }; } ;;
35117 *) ac_config_targets="$ac_config_targets $1"
35118 ac_need_defaults=false ;;
35124 ac_configure_extra_args=
35126 if $ac_cs_silent; then
35128 ac_configure_extra_args="$ac_configure_extra_args --silent"
35132 cat >>$CONFIG_STATUS <<_ACEOF
35133 if \$ac_cs_recheck; then
35134 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35135 CONFIG_SHELL=$SHELL
35136 export CONFIG_SHELL
35137 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35141 cat >>$CONFIG_STATUS <<\_ACEOF
35145 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35146 ## Running $as_me. ##
35152 cat >>$CONFIG_STATUS <<_ACEOF
35156 llvm_src="${srcdir}"
35160 cat >>$CONFIG_STATUS <<\_ACEOF
35162 # Handling of arguments.
35163 for ac_config_target in $ac_config_targets
35165 case $ac_config_target in
35166 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35167 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35168 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
35169 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
35170 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35171 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35172 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35173 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35174 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35175 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35176 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35177 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35178 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35179 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35180 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35181 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35182 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35183 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35184 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35185 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35186 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35187 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35189 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35190 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35191 { (exit 1); exit 1; }; };;
35196 # If the user did not use the arguments to specify the items to instantiate,
35197 # then the envvar interface is used. Set only those that are not.
35198 # We use the long form for the default assignment because of an extremely
35199 # bizarre bug on SunOS 4.1.3.
35200 if $ac_need_defaults; then
35201 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35202 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35203 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35206 # Have a temporary directory for convenience. Make it in the build tree
35207 # simply because there is no reason against having it here, and in addition,
35208 # creating and moving files from /tmp can sometimes cause problems.
35209 # Hook for its removal unless debugging.
35210 # Note that there is a small window in which the directory will not be cleaned:
35211 # after its creation but before its name has been assigned to `$tmp'.
35215 trap 'exit_status=$?
35216 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35218 trap '{ (exit 1); exit 1; }' 1 2 13 15
35220 # Create a (secure) tmp directory for tmp files.
35223 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35224 test -n "$tmp" && test -d "$tmp"
35227 tmp=./conf$$-$RANDOM
35228 (umask 077 && mkdir "$tmp")
35231 echo "$me: cannot create a temporary directory in ." >&2
35232 { (exit 1); exit 1; }
35236 # Set up the sed scripts for CONFIG_FILES section.
35239 # No need to generate the scripts if there are no CONFIG_FILES.
35240 # This happens for instance when ./config.status config.h
35241 if test -n "$CONFIG_FILES"; then
35248 for ac_last_try in false false false false false :; do
35249 cat >conf$$subs.sed <<_ACEOF
35250 SHELL!$SHELL$ac_delim
35251 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35252 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35253 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35254 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35255 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35256 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35257 exec_prefix!$exec_prefix$ac_delim
35258 prefix!$prefix$ac_delim
35259 program_transform_name!$program_transform_name$ac_delim
35260 bindir!$bindir$ac_delim
35261 sbindir!$sbindir$ac_delim
35262 libexecdir!$libexecdir$ac_delim
35263 datarootdir!$datarootdir$ac_delim
35264 datadir!$datadir$ac_delim
35265 sysconfdir!$sysconfdir$ac_delim
35266 sharedstatedir!$sharedstatedir$ac_delim
35267 localstatedir!$localstatedir$ac_delim
35268 includedir!$includedir$ac_delim
35269 oldincludedir!$oldincludedir$ac_delim
35270 docdir!$docdir$ac_delim
35271 infodir!$infodir$ac_delim
35272 htmldir!$htmldir$ac_delim
35273 dvidir!$dvidir$ac_delim
35274 pdfdir!$pdfdir$ac_delim
35275 psdir!$psdir$ac_delim
35276 libdir!$libdir$ac_delim
35277 localedir!$localedir$ac_delim
35278 mandir!$mandir$ac_delim
35279 DEFS!$DEFS$ac_delim
35280 ECHO_C!$ECHO_C$ac_delim
35281 ECHO_N!$ECHO_N$ac_delim
35282 ECHO_T!$ECHO_T$ac_delim
35283 LIBS!$LIBS$ac_delim
35284 build_alias!$build_alias$ac_delim
35285 host_alias!$host_alias$ac_delim
35286 target_alias!$target_alias$ac_delim
35287 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35288 subdirs!$subdirs$ac_delim
35289 build!$build$ac_delim
35290 build_cpu!$build_cpu$ac_delim
35291 build_vendor!$build_vendor$ac_delim
35292 build_os!$build_os$ac_delim
35293 host!$host$ac_delim
35294 host_cpu!$host_cpu$ac_delim
35295 host_vendor!$host_vendor$ac_delim
35296 host_os!$host_os$ac_delim
35297 target!$target$ac_delim
35298 target_cpu!$target_cpu$ac_delim
35299 target_vendor!$target_vendor$ac_delim
35300 target_os!$target_os$ac_delim
35302 LINKALL!$LINKALL$ac_delim
35303 NOLINKALL!$NOLINKALL$ac_delim
35304 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35305 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35306 ARCH!$ARCH$ac_delim
35307 ENDIAN!$ENDIAN$ac_delim
35309 CFLAGS!$CFLAGS$ac_delim
35310 LDFLAGS!$LDFLAGS$ac_delim
35311 CPPFLAGS!$CPPFLAGS$ac_delim
35312 ac_ct_CC!$ac_ct_CC$ac_delim
35313 EXEEXT!$EXEEXT$ac_delim
35314 OBJEXT!$OBJEXT$ac_delim
35316 GREP!$GREP$ac_delim
35317 EGREP!$EGREP$ac_delim
35318 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35319 BUILD_CC!$BUILD_CC$ac_delim
35320 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35321 BUILD_CXX!$BUILD_CXX$ac_delim
35322 CVSBUILD!$CVSBUILD$ac_delim
35323 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35324 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35325 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35326 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35327 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35329 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35330 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35331 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35332 ENABLE_PIC!$ENABLE_PIC$ac_delim
35333 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35334 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35335 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35337 CXXFLAGS!$CXXFLAGS$ac_delim
35338 ac_ct_CXX!$ac_ct_CXX$ac_delim
35340 LEXLIB!$LEXLIB$ac_delim
35341 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35342 FLEX!$FLEX$ac_delim
35343 YACC!$YACC$ac_delim
35344 YFLAGS!$YFLAGS$ac_delim
35345 BISON!$BISON$ac_delim
35349 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35351 elif $ac_last_try; then
35352 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35353 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35354 { (exit 1); exit 1; }; }
35356 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35360 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35361 if test -n "$ac_eof"; then
35362 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35363 ac_eof=`expr $ac_eof + 1`
35366 cat >>$CONFIG_STATUS <<_ACEOF
35367 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35368 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35371 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35372 s/^/s,@/; s/!/@,|#_!!_#|/
35375 s/'"$ac_delim"'$/,g/; t
35377 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35378 ' >>$CONFIG_STATUS <conf$$subs.sed
35379 rm -f conf$$subs.sed
35380 cat >>$CONFIG_STATUS <<_ACEOF
35386 for ac_last_try in false false false false false :; do
35387 cat >conf$$subs.sed <<_ACEOF
35388 ifGNUmake!$ifGNUmake$ac_delim
35389 LN_S!$LN_S$ac_delim
35392 DATE!$DATE$ac_delim
35393 FIND!$FIND$ac_delim
35394 MKDIR!$MKDIR$ac_delim
35396 RANLIB!$RANLIB$ac_delim
35400 BINPWD!$BINPWD$ac_delim
35401 GRAPHVIZ!$GRAPHVIZ$ac_delim
35404 DOTTY!$DOTTY$ac_delim
35405 PERL!$PERL$ac_delim
35406 HAVE_PERL!$HAVE_PERL$ac_delim
35407 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35408 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35409 INSTALL_DATA!$INSTALL_DATA$ac_delim
35410 BZIP2!$BZIP2$ac_delim
35411 DOXYGEN!$DOXYGEN$ac_delim
35412 GROFF!$GROFF$ac_delim
35413 GZIP!$GZIP$ac_delim
35414 POD2HTML!$POD2HTML$ac_delim
35415 POD2MAN!$POD2MAN$ac_delim
35416 RUNTEST!$RUNTEST$ac_delim
35417 TCLSH!$TCLSH$ac_delim
35419 OCAMLC!$OCAMLC$ac_delim
35420 OCAMLOPT!$OCAMLOPT$ac_delim
35421 OCAMLDEP!$OCAMLDEP$ac_delim
35422 OCAMLDOC!$OCAMLDOC$ac_delim
35424 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35425 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35426 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35427 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35428 LIBADD_DL!$LIBADD_DL$ac_delim
35429 ECHO!$ECHO$ac_delim
35431 STRIP!$STRIP$ac_delim
35432 CXXCPP!$CXXCPP$ac_delim
35434 FFLAGS!$FFLAGS$ac_delim
35435 ac_ct_F77!$ac_ct_F77$ac_delim
35436 LIBTOOL!$LIBTOOL$ac_delim
35437 LLVMGCC!$LLVMGCC$ac_delim
35438 LLVMGXX!$LLVMGXX$ac_delim
35439 USE_UDIS86!$USE_UDIS86$ac_delim
35440 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35441 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35442 ALLOCA!$ALLOCA$ac_delim
35443 MMAP_FILE!$MMAP_FILE$ac_delim
35444 LLVMCC1!$LLVMCC1$ac_delim
35445 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35446 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35447 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35448 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35449 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35450 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35451 SHLIBEXT!$SHLIBEXT$ac_delim
35452 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35453 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35454 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35455 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35456 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35457 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35458 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35459 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35460 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35461 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35462 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35463 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35464 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35465 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35466 LIBOBJS!$LIBOBJS$ac_delim
35467 LTLIBOBJS!$LTLIBOBJS$ac_delim
35470 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
35472 elif $ac_last_try; then
35473 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35474 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35475 { (exit 1); exit 1; }; }
35477 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35481 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35482 if test -n "$ac_eof"; then
35483 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35484 ac_eof=`expr $ac_eof + 1`
35487 cat >>$CONFIG_STATUS <<_ACEOF
35488 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35489 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35492 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35493 s/^/s,@/; s/!/@,|#_!!_#|/
35496 s/'"$ac_delim"'$/,g/; t
35498 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35499 ' >>$CONFIG_STATUS <conf$$subs.sed
35500 rm -f conf$$subs.sed
35501 cat >>$CONFIG_STATUS <<_ACEOF
35508 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35509 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35510 # trailing colons and then remove the whole line if VPATH becomes empty
35511 # (actually we leave an empty line to preserve line numbers).
35512 if test "x$srcdir" = x.; then
35513 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35514 s/:*\$(srcdir):*/:/
35515 s/:*\${srcdir}:*/:/
35517 s/^\([^=]*=[ ]*\):*/\1/
35523 cat >>$CONFIG_STATUS <<\_ACEOF
35524 fi # test -n "$CONFIG_FILES"
35527 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35530 :[FHLC]) ac_mode=$ac_tag; continue;;
35532 case $ac_mode$ac_tag in
35534 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35535 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35536 { (exit 1); exit 1; }; };;
35537 :[FH]-) ac_tag=-:-;;
35538 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35555 -) ac_f="$tmp/stdin";;
35556 *) # Look for the file first in the build tree, then in the source tree
35557 # (if the path is not absolute). The absolute path cannot be DOS-style,
35558 # because $ac_f cannot contain `:'.
35562 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35564 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35565 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35566 { (exit 1); exit 1; }; };;
35568 ac_file_inputs="$ac_file_inputs $ac_f"
35571 # Let's still pretend it is `configure' which instantiates (i.e., don't
35572 # use $as_me), people would be surprised to read:
35573 # /* config.h. Generated by config.status. */
35574 configure_input="Generated from "`IFS=:
35575 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35576 if test x"$ac_file" != x-; then
35577 configure_input="$ac_file. $configure_input"
35578 { echo "$as_me:$LINENO: creating $ac_file" >&5
35579 echo "$as_me: creating $ac_file" >&6;}
35583 *:-:* | *:-) cat >"$tmp/stdin";;
35588 ac_dir=`$as_dirname -- "$ac_file" ||
35589 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35590 X"$ac_file" : 'X\(//\)[^/]' \| \
35591 X"$ac_file" : 'X\(//\)$' \| \
35592 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35598 /^X\(\/\/\)[^/].*/{
35613 -*) as_dir=./$as_dir;;
35615 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35619 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35620 *) as_qdir=$as_dir;;
35622 as_dirs="'$as_qdir' $as_dirs"
35623 as_dir=`$as_dirname -- "$as_dir" ||
35624 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35625 X"$as_dir" : 'X\(//\)[^/]' \| \
35626 X"$as_dir" : 'X\(//\)$' \| \
35627 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35633 /^X\(\/\/\)[^/].*/{
35646 test -d "$as_dir" && break
35648 test -z "$as_dirs" || eval "mkdir $as_dirs"
35649 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35650 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35651 { (exit 1); exit 1; }; }; }
35655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35657 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35658 # A ".." for each directory in $ac_dir_suffix.
35659 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35660 case $ac_top_builddir_sub in
35661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35665 ac_abs_top_builddir=$ac_pwd
35666 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35667 # for backward compatibility:
35668 ac_top_builddir=$ac_top_build_prefix
35671 .) # We are building in place.
35673 ac_top_srcdir=$ac_top_builddir_sub
35674 ac_abs_top_srcdir=$ac_pwd ;;
35675 [\\/]* | ?:[\\/]* ) # Absolute name.
35676 ac_srcdir=$srcdir$ac_dir_suffix;
35677 ac_top_srcdir=$srcdir
35678 ac_abs_top_srcdir=$srcdir ;;
35679 *) # Relative name.
35680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35681 ac_top_srcdir=$ac_top_build_prefix$srcdir
35682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35694 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35695 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35699 cat >>$CONFIG_STATUS <<\_ACEOF
35700 # If the template does not know about datarootdir, expand it.
35701 # FIXME: This hack should be removed a few years after 2.60.
35702 ac_datarootdir_hack=; ac_datarootdir_seen=
35704 case `sed -n '/datarootdir/ {
35713 ' $ac_file_inputs` in
35714 *datarootdir*) ac_datarootdir_seen=yes;;
35715 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35716 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35717 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35719 cat >>$CONFIG_STATUS <<_ACEOF
35720 ac_datarootdir_hack='
35721 s&@datadir@&$datadir&g
35722 s&@docdir@&$docdir&g
35723 s&@infodir@&$infodir&g
35724 s&@localedir@&$localedir&g
35725 s&@mandir@&$mandir&g
35726 s&\\\${datarootdir}&$datarootdir&g' ;;
35730 # Neutralize VPATH when `$srcdir' = `.'.
35731 # Shell code in configure.ac might set extrasub.
35732 # FIXME: do we really want to maintain this feature?
35733 cat >>$CONFIG_STATUS <<_ACEOF
35737 cat >>$CONFIG_STATUS <<\_ACEOF
35739 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35740 s&@configure_input@&$configure_input&;t t
35741 s&@top_builddir@&$ac_top_builddir_sub&;t t
35742 s&@srcdir@&$ac_srcdir&;t t
35743 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35744 s&@top_srcdir@&$ac_top_srcdir&;t t
35745 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35746 s&@builddir@&$ac_builddir&;t t
35747 s&@abs_builddir@&$ac_abs_builddir&;t t
35748 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35749 s&@INSTALL@&$ac_INSTALL&;t t
35750 $ac_datarootdir_hack
35751 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35753 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35754 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35755 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35756 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35757 which seems to be undefined. Please make sure it is defined." >&5
35758 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35759 which seems to be undefined. Please make sure it is defined." >&2;}
35763 -) cat "$tmp/out"; rm -f "$tmp/out";;
35764 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35773 # Transform confdefs.h into a sed script `conftest.defines', that
35774 # substitutes the proper values into config.h.in to produce config.h.
35775 rm -f conftest.defines conftest.tail
35776 # First, append a space to every undef/define line, to ease matching.
35777 echo 's/$/ /' >conftest.defines
35778 # Then, protect against being on the right side of a sed subst, or in
35779 # an unquoted here document, in config.status. If some macros were
35780 # called several times there might be several #defines for the same
35781 # symbol, which is useless. But do not sort them, since the last
35782 # AC_DEFINE must be honored.
35783 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35784 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35785 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35786 # PARAMS is the parameter list in the macro definition--in most cases, it's
35787 # just an empty string.
35788 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35789 ac_dB='\\)[ (].*,\\1define\\2'
35797 s/^[ ]*#[ ]*define[ ][ ]*//
35802 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35803 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35804 ' >>conftest.defines
35806 # Remove the space that was appended to ease matching.
35807 # Then replace #undef with comments. This is necessary, for
35808 # example, in the case of _POSIX_SOURCE, which is predefined and required
35809 # on some systems where configure will not decide to define it.
35810 # (The regexp can be short, since the line contains either #define or #undef.)
35812 s,^[ #]*u.*,/* & */,' >>conftest.defines
35814 # Break up conftest.defines:
35815 ac_max_sed_lines=50
35817 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35818 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35819 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35821 ac_in='$ac_file_inputs'
35822 ac_out='"$tmp/out1"'
35823 ac_nxt='"$tmp/out2"'
35827 # Write a here document:
35828 cat >>$CONFIG_STATUS <<_ACEOF
35829 # First, check the format of the line:
35830 cat >"\$tmp/defines.sed" <<\\CEOF
35831 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35832 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35836 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35838 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35839 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35840 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35841 grep . conftest.tail >/dev/null || break
35842 rm -f conftest.defines
35843 mv conftest.tail conftest.defines
35845 rm -f conftest.defines conftest.tail
35847 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35848 cat >>$CONFIG_STATUS <<\_ACEOF
35849 if test x"$ac_file" != x-; then
35850 echo "/* $configure_input */" >"$tmp/config.h"
35851 cat "$ac_result" >>"$tmp/config.h"
35852 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35853 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35854 echo "$as_me: $ac_file is unchanged" >&6;}
35857 mv "$tmp/config.h" $ac_file
35860 echo "/* $configure_input */"
35866 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35867 echo "$as_me: executing $ac_file commands" >&6;}
35872 case $ac_file$ac_mode in
35873 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35874 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35875 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35876 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35877 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35878 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35879 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35880 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35881 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35882 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35883 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35884 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35885 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35886 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35887 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35888 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35889 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35890 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35891 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35892 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35893 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35894 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35895 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35896 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35902 { (exit 0); exit 0; }
35904 chmod +x $CONFIG_STATUS
35905 ac_clean_files=$ac_clean_files_save
35908 # configure is writing to config.log, and then calls config.status.
35909 # config.status does its own redirection, appending to config.log.
35910 # Unfortunately, on DOS this fails, as config.log is still kept open
35911 # by configure, so config.status won't be able to write to it; its
35912 # output is simply discarded. So we exec the FD to /dev/null,
35913 # effectively closing config.log, so it can be properly (re)opened and
35914 # appended to by config.status. When coming back to configure, we
35915 # need to make the FD available again.
35916 if test "$no_create" != yes; then
35918 ac_config_status_args=
35919 test "$silent" = yes &&
35920 ac_config_status_args="$ac_config_status_args --quiet"
35922 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35924 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35925 # would make configure fail if this is the last instruction.
35926 $ac_cs_success || { (exit 1); exit 1; }
35930 # CONFIG_SUBDIRS section.
35932 if test "$no_recursion" != yes; then
35934 # Remove --cache-file and --srcdir arguments so they do not pile up.
35935 ac_sub_configure_args=
35937 eval "set x $ac_configure_args"
35941 if test -n "$ac_prev"; then
35946 -cache-file | --cache-file | --cache-fil | --cache-fi \
35947 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35948 ac_prev=cache_file ;;
35949 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35950 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35953 --config-cache | -C)
35955 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35957 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35959 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35961 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35965 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35967 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35971 # Always prepend --prefix to ensure using the same prefix
35972 # in subdir configurations.
35973 ac_arg="--prefix=$prefix"
35975 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35977 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35980 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35982 # Do not complain, so a configure script can configure whichever
35983 # parts of a large source tree are present.
35984 test -d "$srcdir/$ac_dir" || continue
35986 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35987 echo "$as_me:$LINENO: $ac_msg" >&5
35991 -*) as_dir=./$as_dir;;
35993 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35997 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35998 *) as_qdir=$as_dir;;
36000 as_dirs="'$as_qdir' $as_dirs"
36001 as_dir=`$as_dirname -- "$as_dir" ||
36002 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36003 X"$as_dir" : 'X\(//\)[^/]' \| \
36004 X"$as_dir" : 'X\(//\)$' \| \
36005 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36011 /^X\(\/\/\)[^/].*/{
36024 test -d "$as_dir" && break
36026 test -z "$as_dirs" || eval "mkdir $as_dirs"
36027 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36028 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36029 { (exit 1); exit 1; }; }; }
36033 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36035 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36036 # A ".." for each directory in $ac_dir_suffix.
36037 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36038 case $ac_top_builddir_sub in
36039 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36040 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36043 ac_abs_top_builddir=$ac_pwd
36044 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36045 # for backward compatibility:
36046 ac_top_builddir=$ac_top_build_prefix
36049 .) # We are building in place.
36051 ac_top_srcdir=$ac_top_builddir_sub
36052 ac_abs_top_srcdir=$ac_pwd ;;
36053 [\\/]* | ?:[\\/]* ) # Absolute name.
36054 ac_srcdir=$srcdir$ac_dir_suffix;
36055 ac_top_srcdir=$srcdir
36056 ac_abs_top_srcdir=$srcdir ;;
36057 *) # Relative name.
36058 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36059 ac_top_srcdir=$ac_top_build_prefix$srcdir
36060 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36062 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36067 # Check for guested configure; otherwise get Cygnus style configure.
36068 if test -f "$ac_srcdir/configure.gnu"; then
36069 ac_sub_configure=$ac_srcdir/configure.gnu
36070 elif test -f "$ac_srcdir/configure"; then
36071 ac_sub_configure=$ac_srcdir/configure
36072 elif test -f "$ac_srcdir/configure.in"; then
36073 # This should be Cygnus configure.
36074 ac_sub_configure=$ac_aux_dir/configure
36076 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36077 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36081 # The recursion is here.
36082 if test -n "$ac_sub_configure"; then
36083 # Make the cache file name correct relative to the subdirectory.
36084 case $cache_file in
36085 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36086 *) # Relative name.
36087 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36090 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36091 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36092 # The eval makes quoting arguments work.
36093 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36094 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36095 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36096 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36097 { (exit 1); exit 1; }; }