2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.2svn.
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-2007 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.2svn'
719 PACKAGE_STRING='llvm 2.2svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
727 # include <sys/types.h>
730 # include <sys/stat.h>
741 # if !STDC_HEADERS && HAVE_MEMORY_H
747 # include <strings.h>
750 # include <inttypes.h>
768 program_transform_name
833 ENABLE_EXPENSIVE_CHECKS
891 CONVENIENCE_LTDL_TRUE
892 CONVENIENCE_LTDL_FALSE
933 ac_precious_vars='build_alias
949 ac_subdirs_all='projects/sample
951 projects/llvm-stacker
957 projects/llvm-poolalloc
959 projects/llvm-kernel'
961 # Initialize some variables set by options.
963 ac_init_version=false
964 # The variables have the same names as the options, with
965 # dashes changed to underlines.
973 program_transform_name=s,x,x,
981 # Installation directory options.
982 # These are left unexpanded so users can "make install exec_prefix=/foo"
983 # and all the variables that are supposed to be based on exec_prefix
984 # by default will actually change.
985 # Use braces instead of parens because sh, perl, etc. also accept them.
986 # (The list follows the same order as the GNU Coding Standards.)
987 bindir='${exec_prefix}/bin'
988 sbindir='${exec_prefix}/sbin'
989 libexecdir='${exec_prefix}/libexec'
990 datarootdir='${prefix}/share'
991 datadir='${datarootdir}'
992 sysconfdir='${prefix}/etc'
993 sharedstatedir='${prefix}/com'
994 localstatedir='${prefix}/var'
995 includedir='${prefix}/include'
996 oldincludedir='/usr/include'
997 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998 infodir='${datarootdir}/info'
1003 libdir='${exec_prefix}/lib'
1004 localedir='${datarootdir}/locale'
1005 mandir='${datarootdir}/man'
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
1013 eval $ac_prev=\$ac_option
1019 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1025 case $ac_dashdash$ac_option in
1029 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032 bindir=$ac_optarg ;;
1034 -build | --build | --buil | --bui | --bu)
1035 ac_prev=build_alias ;;
1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037 build_alias=$ac_optarg ;;
1039 -cache-file | --cache-file | --cache-fil | --cache-fi \
1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041 ac_prev=cache_file ;;
1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044 cache_file=$ac_optarg ;;
1046 --config-cache | -C)
1047 cache_file=config.cache ;;
1049 -datadir | --datadir | --datadi | --datad)
1051 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1052 datadir=$ac_optarg ;;
1054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055 | --dataroo | --dataro | --datar)
1056 ac_prev=datarootdir ;;
1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059 datarootdir=$ac_optarg ;;
1061 -disable-* | --disable-*)
1062 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1068 eval enable_$ac_feature=no ;;
1070 -docdir | --docdir | --docdi | --doc | --do)
1072 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073 docdir=$ac_optarg ;;
1075 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078 dvidir=$ac_optarg ;;
1080 -enable-* | --enable-*)
1081 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1084 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1087 eval enable_$ac_feature=\$ac_optarg ;;
1089 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091 | --exec | --exe | --ex)
1092 ac_prev=exec_prefix ;;
1093 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095 | --exec=* | --exe=* | --ex=*)
1096 exec_prefix=$ac_optarg ;;
1098 -gas | --gas | --ga | --g)
1099 # Obsolete; use --with-gas.
1102 -help | --help | --hel | --he | -h)
1103 ac_init_help=long ;;
1104 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105 ac_init_help=recursive ;;
1106 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107 ac_init_help=short ;;
1109 -host | --host | --hos | --ho)
1110 ac_prev=host_alias ;;
1111 -host=* | --host=* | --hos=* | --ho=*)
1112 host_alias=$ac_optarg ;;
1114 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118 htmldir=$ac_optarg ;;
1120 -includedir | --includedir | --includedi | --included | --include \
1121 | --includ | --inclu | --incl | --inc)
1122 ac_prev=includedir ;;
1123 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124 | --includ=* | --inclu=* | --incl=* | --inc=*)
1125 includedir=$ac_optarg ;;
1127 -infodir | --infodir | --infodi | --infod | --info | --inf)
1129 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130 infodir=$ac_optarg ;;
1132 -libdir | --libdir | --libdi | --libd)
1134 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135 libdir=$ac_optarg ;;
1137 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138 | --libexe | --libex | --libe)
1139 ac_prev=libexecdir ;;
1140 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141 | --libexe=* | --libex=* | --libe=*)
1142 libexecdir=$ac_optarg ;;
1144 -localedir | --localedir | --localedi | --localed | --locale)
1145 ac_prev=localedir ;;
1146 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147 localedir=$ac_optarg ;;
1149 -localstatedir | --localstatedir | --localstatedi | --localstated \
1150 | --localstate | --localstat | --localsta | --localst | --locals)
1151 ac_prev=localstatedir ;;
1152 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1153 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1154 localstatedir=$ac_optarg ;;
1156 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159 mandir=$ac_optarg ;;
1161 -nfp | --nfp | --nf)
1162 # Obsolete; use --without-fp.
1165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166 | --no-cr | --no-c | -n)
1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175 | --oldin | --oldi | --old | --ol | --o)
1176 ac_prev=oldincludedir ;;
1177 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180 oldincludedir=$ac_optarg ;;
1182 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185 prefix=$ac_optarg ;;
1187 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188 | --program-pre | --program-pr | --program-p)
1189 ac_prev=program_prefix ;;
1190 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192 program_prefix=$ac_optarg ;;
1194 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195 | --program-suf | --program-su | --program-s)
1196 ac_prev=program_suffix ;;
1197 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199 program_suffix=$ac_optarg ;;
1201 -program-transform-name | --program-transform-name \
1202 | --program-transform-nam | --program-transform-na \
1203 | --program-transform-n | --program-transform- \
1204 | --program-transform | --program-transfor \
1205 | --program-transfo | --program-transf \
1206 | --program-trans | --program-tran \
1207 | --progr-tra | --program-tr | --program-t)
1208 ac_prev=program_transform_name ;;
1209 -program-transform-name=* | --program-transform-name=* \
1210 | --program-transform-nam=* | --program-transform-na=* \
1211 | --program-transform-n=* | --program-transform-=* \
1212 | --program-transform=* | --program-transfor=* \
1213 | --program-transfo=* | --program-transf=* \
1214 | --program-trans=* | --program-tran=* \
1215 | --progr-tra=* | --program-tr=* | --program-t=*)
1216 program_transform_name=$ac_optarg ;;
1218 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221 pdfdir=$ac_optarg ;;
1223 -psdir | --psdir | --psdi | --psd | --ps)
1225 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229 | -silent | --silent | --silen | --sile | --sil)
1232 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236 sbindir=$ac_optarg ;;
1238 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240 | --sharedst | --shareds | --shared | --share | --shar \
1242 ac_prev=sharedstatedir ;;
1243 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247 sharedstatedir=$ac_optarg ;;
1249 -site | --site | --sit)
1251 -site=* | --site=* | --sit=*)
1254 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257 srcdir=$ac_optarg ;;
1259 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260 | --syscon | --sysco | --sysc | --sys | --sy)
1261 ac_prev=sysconfdir ;;
1262 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264 sysconfdir=$ac_optarg ;;
1266 -target | --target | --targe | --targ | --tar | --ta | --t)
1267 ac_prev=target_alias ;;
1268 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269 target_alias=$ac_optarg ;;
1271 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 -version | --version | --versio | --versi | --vers | -V)
1275 ac_init_version=: ;;
1278 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1281 { echo "$as_me: error: invalid package name: $ac_package" >&2
1282 { (exit 1); exit 1; }; }
1283 ac_package=`echo $ac_package| sed 's/-/_/g'`
1284 eval with_$ac_package=\$ac_optarg ;;
1286 -without-* | --without-*)
1287 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1290 { echo "$as_me: error: invalid package name: $ac_package" >&2
1291 { (exit 1); exit 1; }; }
1292 ac_package=`echo $ac_package | sed 's/-/_/g'`
1293 eval with_$ac_package=no ;;
1296 # Obsolete; use --with-x.
1299 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300 | --x-incl | --x-inc | --x-in | --x-i)
1301 ac_prev=x_includes ;;
1302 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304 x_includes=$ac_optarg ;;
1306 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308 ac_prev=x_libraries ;;
1309 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311 x_libraries=$ac_optarg ;;
1313 -*) { echo "$as_me: error: unrecognized option: $ac_option
1314 Try \`$0 --help' for more information." >&2
1315 { (exit 1); exit 1; }; }
1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
1321 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1322 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1323 { (exit 1); exit 1; }; }
1324 eval $ac_envvar=\$ac_optarg
1325 export $ac_envvar ;;
1328 # FIXME: should be removed in autoconf 3.0.
1329 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1338 if test -n "$ac_prev"; then
1339 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340 { echo "$as_me: error: missing argument to $ac_option" >&2
1341 { (exit 1); exit 1; }; }
1344 # Be sure to have absolute directory names.
1345 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346 datadir sysconfdir sharedstatedir localstatedir includedir \
1347 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348 libdir localedir mandir
1350 eval ac_val=\$$ac_var
1352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1355 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1356 { (exit 1); exit 1; }; }
1359 # There might be people who depend on the old broken behavior: `$host'
1360 # used to hold the argument of --host etc.
1361 # FIXME: To remove some day.
1364 target=$target_alias
1366 # FIXME: To remove some day.
1367 if test "x$host_alias" != x; then
1368 if test "x$build_alias" = x; then
1369 cross_compiling=maybe
1370 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1371 If a cross compiler is detected then cross compile mode will be used." >&2
1372 elif test "x$build_alias" != "x$host_alias"; then
1378 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380 test "$silent" = yes && exec 6>/dev/null
1383 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384 ac_ls_di=`ls -di .` &&
1385 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386 { echo "$as_me: error: Working directory cannot be determined" >&2
1387 { (exit 1); exit 1; }; }
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 { echo "$as_me: error: pwd does not report name of working directory" >&2
1390 { (exit 1); exit 1; }; }
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395 ac_srcdir_defaulted=yes
1396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir=`$as_dirname -- "$0" ||
1398 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$0" : 'X\(//\)[^/]' \| \
1400 X"$0" : 'X\(//\)$' \| \
1401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1425 ac_srcdir_defaulted=no
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1430 { (exit 1); exit 1; }; }
1432 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1435 { (exit 1); exit 1; }; }
1437 # When building in place, set srcdir=.
1438 if test "$ac_abs_confdir" = "$ac_pwd"; then
1441 # Remove unnecessary trailing slashes from srcdir.
1442 # Double slashes in file names in object file debugging info
1443 # mess up M-x gdb in Emacs.
1445 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1447 for ac_var in $ac_precious_vars; do
1448 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_env_${ac_var}_value=\$${ac_var}
1450 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1455 # Report the --help message.
1457 if test "$ac_init_help" = "long"; then
1458 # Omit some internal or obsolete options to make the list less imposing.
1459 # This message is too long to be a string in the A/UX 3.1 sh.
1461 \`configure' configures llvm 2.2svn to adapt to many kinds of systems.
1463 Usage: $0 [OPTION]... [VAR=VALUE]...
1465 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466 VAR=VALUE. See below for descriptions of some of the useful variables.
1468 Defaults for the options are specified in brackets.
1471 -h, --help display this help and exit
1472 --help=short display options specific to this package
1473 --help=recursive display the short help of all the included packages
1474 -V, --version display version information and exit
1475 -q, --quiet, --silent do not print \`checking...' messages
1476 --cache-file=FILE cache test results in FILE [disabled]
1477 -C, --config-cache alias for \`--cache-file=config.cache'
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1481 Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
1483 [$ac_default_prefix]
1484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1487 By default, \`make install' will install all the files in
1488 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490 for instance \`--prefix=\$HOME'.
1492 For better control, use the options below.
1494 Fine tuning of the installation directories:
1495 --bindir=DIR user executables [EPREFIX/bin]
1496 --sbindir=DIR system admin executables [EPREFIX/sbin]
1497 --libexecdir=DIR program executables [EPREFIX/libexec]
1498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521 --target=TARGET configure for building compilers for TARGET [HOST]
1525 if test -n "$ac_init_help"; then
1526 case $ac_init_help in
1527 short | recursive ) echo "Configuration of llvm 2.2svn:";;
1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1536 --enable-expensive-checks
1538 --enable-debug-runtime
1539 --enable-jit Enable Just In Time Compiling (default is YES)
1540 --enable-doxygen Build doxygen documentation (default is NO)
1541 --enable-threads Use threads if available (default is YES)
1542 --enable-pic Build LLVM with Position Independent Code (default
1544 --enable-targets Build specific host targets:
1545 all,host-only,{target-name} (default=all)
1546 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1548 --enable-bindings Build specific language bindings:
1549 all,auto,none,{binding-name} (default=auto)
1550 --enable-ltdl-install install libltdl
1551 --enable-shared[=PKGS] build shared libraries
1553 --enable-static[=PKGS] build static libraries
1555 --enable-fast-install[=PKGS]
1556 optimize for fast installation
1558 --disable-libtool-lock avoid locking (might break parallel builds)
1561 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1562 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1563 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1565 --with-llvmgcc Specify location of llvm-gcc driver (default
1567 --with-llvmgxx Specify location of llvm-g++ driver (default
1569 --with-extra-options Specify addtional options to compile LLVM with
1570 --with-ocaml-libdir Specify install location for ocaml bindings (default
1572 --with-tclinclude directory where tcl headers are
1573 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1574 --with-pic try to use only PIC/non-PIC objects [default=use
1576 --with-tags[=TAGS] include additional configurations [automatic]
1577 --with-udis86=<path> Use udis86 external x86 disassembler library
1579 Some influential environment variables:
1580 CC C compiler command
1581 CFLAGS C compiler flags
1582 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1583 nonstandard directory <lib dir>
1584 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1585 you have headers in a nonstandard directory <include dir>
1587 CXX C++ compiler command
1588 CXXFLAGS C++ compiler flags
1589 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1590 the first program found out of: `bison -y', `byacc', `yacc'.
1591 YFLAGS The list of arguments that will be passed by default to $YACC.
1592 This script will default YFLAGS to the empty string to avoid a
1593 default value of `-d' given by some make applications.
1594 CXXCPP C++ preprocessor
1595 F77 Fortran 77 compiler command
1596 FFLAGS Fortran 77 compiler flags
1598 Use these variables to override the choices made by `configure' or to help
1599 it to find libraries and programs with nonstandard names/locations.
1601 Report bugs to <llvmbugs@cs.uiuc.edu>.
1606 if test "$ac_init_help" = "recursive"; then
1607 # If there are subdirs, report their specific --help.
1608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609 test -d "$ac_dir" || continue
1613 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1616 # A ".." for each directory in $ac_dir_suffix.
1617 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1618 case $ac_top_builddir_sub in
1619 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623 ac_abs_top_builddir=$ac_pwd
1624 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625 # for backward compatibility:
1626 ac_top_builddir=$ac_top_build_prefix
1629 .) # We are building in place.
1631 ac_top_srcdir=$ac_top_builddir_sub
1632 ac_abs_top_srcdir=$ac_pwd ;;
1633 [\\/]* | ?:[\\/]* ) # Absolute name.
1634 ac_srcdir=$srcdir$ac_dir_suffix;
1635 ac_top_srcdir=$srcdir
1636 ac_abs_top_srcdir=$srcdir ;;
1638 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639 ac_top_srcdir=$ac_top_build_prefix$srcdir
1640 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1642 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1644 cd "$ac_dir" || { ac_status=$?; continue; }
1645 # Check for guested configure.
1646 if test -f "$ac_srcdir/configure.gnu"; then
1648 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1649 elif test -f "$ac_srcdir/configure"; then
1651 $SHELL "$ac_srcdir/configure" --help=recursive
1653 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1655 cd "$ac_pwd" || { ac_status=$?; break; }
1659 test -n "$ac_init_help" && exit $ac_status
1660 if $ac_init_version; then
1662 llvm configure 2.2svn
1663 generated by GNU Autoconf 2.60
1665 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1666 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1667 This configure script is free software; the Free Software Foundation
1668 gives unlimited permission to copy, distribute and modify it.
1670 Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1674 cat >config.log <<_ACEOF
1675 This file contains any messages produced by compilers while
1676 running configure, to aid debugging if configure makes a mistake.
1678 It was created by llvm $as_me 2.2svn, which was
1679 generated by GNU Autoconf 2.60. Invocation command line was
1691 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1692 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1693 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1694 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1695 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1697 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1698 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1700 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1701 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1702 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1703 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1704 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1705 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1706 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714 test -z "$as_dir" && as_dir=.
1715 echo "PATH: $as_dir"
1731 # Keep a trace of the command line.
1732 # Strip out --no-create and --no-recursion so they do not pile up.
1733 # Strip out --silent because we don't want to record it for future runs.
1734 # Also quote any args containing shell meta-characters.
1735 # Make two passes to allow for proper duplicate-argument suppression.
1739 ac_must_keep_next=false
1745 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747 | -silent | --silent | --silen | --sile | --sil)
1750 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1753 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1755 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1756 if test $ac_must_keep_next = true; then
1757 ac_must_keep_next=false # Got value, back to normal.
1760 *=* | --config-cache | -C | -disable-* | --disable-* \
1761 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1762 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1763 | -with-* | --with-* | -without-* | --without-* | --x)
1764 case "$ac_configure_args0 " in
1765 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1768 -* ) ac_must_keep_next=true ;;
1771 ac_configure_args="$ac_configure_args '$ac_arg'"
1776 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1777 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1779 # When interrupted or exit'd, cleanup temporary files, and complete
1780 # config.log. We remove comments because anyway the quotes in there
1781 # would cause problems or look ugly.
1782 # WARNING: Use '\'' to represent an apostrophe within the trap.
1783 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1784 trap 'exit_status=$?
1785 # Save into config.log some information that might help in debugging.
1790 ## ---------------- ##
1791 ## Cache variables. ##
1792 ## ---------------- ##
1795 # The following way of writing the cache mishandles newlines in values,
1797 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1798 eval ac_val=\$$ac_var
1802 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1803 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1806 _ | IFS | as_nl) ;; #(
1807 *) $as_unset $ac_var ;;
1812 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1813 *${as_nl}ac_space=\ *)
1815 "s/'\''/'\''\\\\'\'''\''/g;
1816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1827 ## ----------------- ##
1828 ## Output variables. ##
1829 ## ----------------- ##
1832 for ac_var in $ac_subst_vars
1834 eval ac_val=\$$ac_var
1836 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1838 echo "$ac_var='\''$ac_val'\''"
1842 if test -n "$ac_subst_files"; then
1844 ## ------------------- ##
1845 ## File substitutions. ##
1846 ## ------------------- ##
1849 for ac_var in $ac_subst_files
1851 eval ac_val=\$$ac_var
1853 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1855 echo "$ac_var='\''$ac_val'\''"
1860 if test -s confdefs.h; then
1870 test "$ac_signal" != 0 &&
1871 echo "$as_me: caught signal $ac_signal"
1872 echo "$as_me: exit $exit_status"
1874 rm -f core *.core core.conftest.* &&
1875 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1878 for ac_signal in 1 2 13 15; do
1879 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1883 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1884 rm -f -r conftest* confdefs.h
1886 # Predefined preprocessor variables.
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_NAME "$PACKAGE_NAME"
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_STRING "$PACKAGE_STRING"
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1913 # Let the site file select an alternate cache file if it wants to.
1914 # Prefer explicitly selected file to automatically selected ones.
1915 if test -n "$CONFIG_SITE"; then
1916 set x "$CONFIG_SITE"
1917 elif test "x$prefix" != xNONE; then
1918 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1920 set x "$ac_default_prefix/share/config.site" \
1921 "$ac_default_prefix/etc/config.site"
1926 if test -r "$ac_site_file"; then
1927 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1928 echo "$as_me: loading site script $ac_site_file" >&6;}
1929 sed 's/^/| /' "$ac_site_file" >&5
1934 if test -r "$cache_file"; then
1935 # Some versions of bash will fail to source /dev/null (special
1936 # files actually), so we avoid doing that.
1937 if test -f "$cache_file"; then
1938 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1939 echo "$as_me: loading cache $cache_file" >&6;}
1941 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1942 *) . "./$cache_file";;
1946 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1947 echo "$as_me: creating cache $cache_file" >&6;}
1951 # Check that the precious variables saved in the cache have kept the same
1953 ac_cache_corrupted=false
1954 for ac_var in $ac_precious_vars; do
1955 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1956 eval ac_new_set=\$ac_env_${ac_var}_set
1957 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1958 eval ac_new_val=\$ac_env_${ac_var}_value
1959 case $ac_old_set,$ac_new_set in
1961 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1962 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1963 ac_cache_corrupted=: ;;
1965 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1966 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1967 ac_cache_corrupted=: ;;
1970 if test "x$ac_old_val" != "x$ac_new_val"; then
1971 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1972 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1973 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1974 echo "$as_me: former value: $ac_old_val" >&2;}
1975 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1976 echo "$as_me: current value: $ac_new_val" >&2;}
1977 ac_cache_corrupted=:
1980 # Pass precious variables to config.status.
1981 if test "$ac_new_set" = set; then
1983 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1984 *) ac_arg=$ac_var=$ac_new_val ;;
1986 case " $ac_configure_args " in
1987 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1988 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1992 if $ac_cache_corrupted; then
1993 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1994 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1995 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1996 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1997 { (exit 1); exit 1; }; }
2025 ac_cpp='$CPP $CPPFLAGS'
2026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2032 LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2041 for ac_dir in autoconf "$srcdir"/autoconf; do
2042 if test -f "$ac_dir/install-sh"; then
2044 ac_install_sh="$ac_aux_dir/install-sh -c"
2046 elif test -f "$ac_dir/install.sh"; then
2048 ac_install_sh="$ac_aux_dir/install.sh -c"
2050 elif test -f "$ac_dir/shtool"; then
2052 ac_install_sh="$ac_aux_dir/shtool install -c"
2056 if test -z "$ac_aux_dir"; then
2057 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2058 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2059 { (exit 1); exit 1; }; }
2062 # These three variables are undocumented and unsupported,
2063 # and are intended to be withdrawn in a future Autoconf release.
2064 # They can cause serious problems if a builder's source tree is in a directory
2065 # whose full name contains unusual characters.
2066 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2067 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2068 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2072 if test ${srcdir} != "." ; then
2073 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2074 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2075 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2076 { (exit 1); exit 1; }; }
2080 for i in `ls ${srcdir}/projects`
2082 if test -d ${srcdir}/projects/${i} ; then
2085 sample) subdirs="$subdirs projects/sample"
2087 privbracket) subdirs="$subdirs projects/privbracket"
2089 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2091 llvm-test) subdirs="$subdirs projects/llvm-test"
2093 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2095 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2097 llvm-java) subdirs="$subdirs projects/llvm-java"
2099 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2101 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2103 poolalloc) subdirs="$subdirs projects/poolalloc"
2105 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2108 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2109 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2116 # Make sure we can run config.sub.
2117 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2118 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2119 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2120 { (exit 1); exit 1; }; }
2122 { echo "$as_me:$LINENO: checking build system type" >&5
2123 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2124 if test "${ac_cv_build+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 ac_build_alias=$build_alias
2128 test "x$ac_build_alias" = x &&
2129 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2130 test "x$ac_build_alias" = x &&
2131 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2132 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2133 { (exit 1); exit 1; }; }
2134 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2135 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2136 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2137 { (exit 1); exit 1; }; }
2140 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2141 echo "${ECHO_T}$ac_cv_build" >&6; }
2142 case $ac_cv_build in
2144 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2145 echo "$as_me: error: invalid value of canonical build" >&2;}
2146 { (exit 1); exit 1; }; };;
2149 ac_save_IFS=$IFS; IFS='-'
2155 # Remember, the first character of IFS is used to create $*,
2156 # except with old shells:
2159 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2162 { echo "$as_me:$LINENO: checking host system type" >&5
2163 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2164 if test "${ac_cv_host+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 if test "x$host_alias" = x; then
2168 ac_cv_host=$ac_cv_build
2170 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2171 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2172 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2173 { (exit 1); exit 1; }; }
2177 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2178 echo "${ECHO_T}$ac_cv_host" >&6; }
2181 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2182 echo "$as_me: error: invalid value of canonical host" >&2;}
2183 { (exit 1); exit 1; }; };;
2186 ac_save_IFS=$IFS; IFS='-'
2192 # Remember, the first character of IFS is used to create $*,
2193 # except with old shells:
2196 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2199 { echo "$as_me:$LINENO: checking target system type" >&5
2200 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2201 if test "${ac_cv_target+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 if test "x$target_alias" = x; then
2205 ac_cv_target=$ac_cv_host
2207 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2208 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2209 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2210 { (exit 1); exit 1; }; }
2214 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2215 echo "${ECHO_T}$ac_cv_target" >&6; }
2216 case $ac_cv_target in
2218 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2219 echo "$as_me: error: invalid value of canonical target" >&2;}
2220 { (exit 1); exit 1; }; };;
2222 target=$ac_cv_target
2223 ac_save_IFS=$IFS; IFS='-'
2229 # Remember, the first character of IFS is used to create $*,
2230 # except with old shells:
2233 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2236 # The aliases save the names the user supplied, while $host etc.
2237 # will get canonicalized.
2238 test -n "$target_alias" &&
2239 test "$program_prefix$program_suffix$program_transform_name" = \
2241 program_prefix=${target_alias}-
2243 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2244 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2245 if test "${llvm_cv_os_type+set}" = set; then
2246 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 llvm_cv_link_all_option="-Wl,--whole-archive"
2251 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2252 llvm_cv_os_type="AIX"
2253 llvm_cv_platform_type="Unix" ;;
2255 llvm_cv_link_all_option="-Wl,--whole-archive"
2256 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2257 llvm_cv_os_type="IRIX"
2258 llvm_cv_platform_type="Unix" ;;
2260 llvm_cv_link_all_option="-Wl,--whole-archive"
2261 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2262 llvm_cv_os_type="Cygwin"
2263 llvm_cv_platform_type="Unix" ;;
2265 llvm_cv_link_all_option="-Wl,-all_load"
2266 llvm_cv_link_all_option="-Wl,-noall_load"
2267 llvm_cv_os_type="Darwin"
2268 llvm_cv_platform_type="Unix" ;;
2270 llvm_cv_link_all_option="-Wl,--whole-archive"
2271 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2272 llvm_cv_os_type="FreeBSD"
2273 llvm_cv_platform_type="Unix" ;;
2275 llvm_cv_link_all_option="-Wl,--whole-archive"
2276 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2277 llvm_cv_os_type="OpenBSD"
2278 llvm_cv_platform_type="Unix" ;;
2280 llvm_cv_link_all_option="-Wl,--whole-archive"
2281 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2282 llvm_cv_os_type="NetBSD"
2283 llvm_cv_platform_type="Unix" ;;
2285 llvm_cv_link_all_option="-Wl,--whole-archive"
2286 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2287 llvm_cv_os_type="HP-UX"
2288 llvm_cv_platform_type="Unix" ;;
2290 llvm_cv_link_all_option="-Wl,--whole-archive"
2291 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2292 llvm_cv_os_type="Interix"
2293 llvm_cv_platform_type="Unix" ;;
2295 llvm_cv_link_all_option="-Wl,--whole-archive"
2296 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2297 llvm_cv_os_type="Linux"
2298 llvm_cv_platform_type="Unix" ;;
2300 llvm_cv_link_all_option="-Wl,-z,allextract"
2301 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2302 llvm_cv_os_type="SunOS"
2303 llvm_cv_platform_type="Unix" ;;
2305 llvm_cv_link_all_option="-Wl,--whole-archive"
2306 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2307 llvm_cv_os_type="Win32"
2308 llvm_cv_platform_type="Win32" ;;
2310 llvm_cv_link_all_option="-Wl,--whole-archive"
2311 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2312 llvm_cv_os_type="MingW"
2313 llvm_cv_platform_type="Win32" ;;
2315 llvm_cv_link_all_option=""
2316 llvm_cv_no_link_all_option=""
2317 llvm_cv_os_type="Unknown"
2318 llvm_cv_platform_type="Unknown" ;;
2321 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2322 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2324 if test "$llvm_cv_os_type" = "Unknown" ; then
2325 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2326 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2327 { (exit 1); exit 1; }; }
2333 LINKALL=$llvm_cv_link_all_option
2335 NOLINKALL=$llvm_cv_no_link_all_option
2338 case $llvm_cv_platform_type in
2341 cat >>confdefs.h <<\_ACEOF
2342 #define LLVM_ON_UNIX 1
2352 cat >>confdefs.h <<\_ACEOF
2353 #define LLVM_ON_WIN32 1
2363 { echo "$as_me:$LINENO: checking target architecture" >&5
2364 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2365 if test "${llvm_cv_target_arch+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 i?86-*) llvm_cv_target_arch="x86" ;;
2370 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2371 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2372 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2373 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2374 ia64-*) llvm_cv_target_arch="IA64" ;;
2375 arm-*) llvm_cv_target_arch="ARM" ;;
2376 mips-*) llvm_cv_target_arch="Mips" ;;
2377 *) llvm_cv_target_arch="Unknown" ;;
2380 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2381 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2383 if test "$llvm_cv_target_arch" = "Unknown" ; then
2384 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2385 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2388 ARCH=$llvm_cv_target_arch
2392 ac_cpp='$CPP $CPPFLAGS'
2393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396 if test -n "$ac_tool_prefix"; then
2397 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2398 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2401 if test "${ac_cv_prog_CC+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 if test -n "$CC"; then
2405 ac_cv_prog_CC="$CC" # Let the user override the test.
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2414 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425 if test -n "$CC"; then
2426 { echo "$as_me:$LINENO: result: $CC" >&5
2427 echo "${ECHO_T}$CC" >&6; }
2429 { echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6; }
2435 if test -z "$ac_cv_prog_CC"; then
2437 # Extract the first word of "gcc", so it can be a program name with args.
2438 set dummy gcc; ac_word=$2
2439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2441 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 if test -n "$ac_ct_CC"; then
2445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451 test -z "$as_dir" && as_dir=.
2452 for ac_exec_ext in '' $ac_executable_extensions; do
2453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2454 ac_cv_prog_ac_ct_CC="gcc"
2455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2465 if test -n "$ac_ct_CC"; then
2466 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2467 echo "${ECHO_T}$ac_ct_CC" >&6; }
2469 { echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6; }
2473 if test "x$ac_ct_CC" = x; then
2476 case $cross_compiling:$ac_tool_warned in
2478 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2479 whose name does not start with the host triplet. If you think this
2480 configuration is useful to you, please write to autoconf@gnu.org." >&5
2481 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2482 whose name does not start with the host triplet. If you think this
2483 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2484 ac_tool_warned=yes ;;
2492 if test -z "$CC"; then
2493 if test -n "$ac_tool_prefix"; then
2494 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2495 set dummy ${ac_tool_prefix}cc; ac_word=$2
2496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2498 if test "${ac_cv_prog_CC+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 if test -n "$CC"; then
2502 ac_cv_prog_CC="$CC" # Let the user override the test.
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2511 ac_cv_prog_CC="${ac_tool_prefix}cc"
2512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 if test -n "$CC"; then
2523 { echo "$as_me:$LINENO: result: $CC" >&5
2524 echo "${ECHO_T}$CC" >&6; }
2526 { echo "$as_me:$LINENO: result: no" >&5
2527 echo "${ECHO_T}no" >&6; }
2533 if test -z "$CC"; then
2534 # Extract the first word of "cc", so it can be a program name with args.
2535 set dummy cc; ac_word=$2
2536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2538 if test "${ac_cv_prog_CC+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 if test -n "$CC"; then
2542 ac_cv_prog_CC="$CC" # Let the user override the test.
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2552 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2553 ac_prog_rejected=yes
2557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 if test $ac_prog_rejected = yes; then
2565 # We found a bogon in the path, so make sure we never use it.
2566 set dummy $ac_cv_prog_CC
2568 if test $# != 0; then
2569 # We chose a different compiler from the bogus one.
2570 # However, it has the same basename, so the bogon will be chosen
2571 # first if we set CC to just the basename; use the full file name.
2573 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2579 if test -n "$CC"; then
2580 { echo "$as_me:$LINENO: result: $CC" >&5
2581 echo "${ECHO_T}$CC" >&6; }
2583 { echo "$as_me:$LINENO: result: no" >&5
2584 echo "${ECHO_T}no" >&6; }
2589 if test -z "$CC"; then
2590 if test -n "$ac_tool_prefix"; then
2591 for ac_prog in cl.exe
2593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_CC+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 if test -n "$CC"; then
2601 ac_cv_prog_CC="$CC" # Let the user override the test.
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2610 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 if test -n "$CC"; then
2622 { echo "$as_me:$LINENO: result: $CC" >&5
2623 echo "${ECHO_T}$CC" >&6; }
2625 { echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6; }
2630 test -n "$CC" && break
2633 if test -z "$CC"; then
2635 for ac_prog in cl.exe
2637 # Extract the first word of "$ac_prog", so it can be a program name with args.
2638 set dummy $ac_prog; ac_word=$2
2639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2641 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2644 if test -n "$ac_ct_CC"; then
2645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2654 ac_cv_prog_ac_ct_CC="$ac_prog"
2655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2665 if test -n "$ac_ct_CC"; then
2666 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2667 echo "${ECHO_T}$ac_ct_CC" >&6; }
2669 { echo "$as_me:$LINENO: result: no" >&5
2670 echo "${ECHO_T}no" >&6; }
2674 test -n "$ac_ct_CC" && break
2677 if test "x$ac_ct_CC" = x; then
2680 case $cross_compiling:$ac_tool_warned in
2682 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2683 whose name does not start with the host triplet. If you think this
2684 configuration is useful to you, please write to autoconf@gnu.org." >&5
2685 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2686 whose name does not start with the host triplet. If you think this
2687 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2688 ac_tool_warned=yes ;;
2697 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2698 See \`config.log' for more details." >&5
2699 echo "$as_me: error: no acceptable C compiler found in \$PATH
2700 See \`config.log' for more details." >&2;}
2701 { (exit 1); exit 1; }; }
2703 # Provide some information about the compiler.
2704 echo "$as_me:$LINENO: checking for C compiler version" >&5
2705 ac_compiler=`set X $ac_compile; echo $2`
2706 { (ac_try="$ac_compiler --version >&5"
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712 (eval "$ac_compiler --version >&5") 2>&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }
2716 { (ac_try="$ac_compiler -v >&5"
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722 (eval "$ac_compiler -v >&5") 2>&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }
2726 { (ac_try="$ac_compiler -V >&5"
2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732 (eval "$ac_compiler -V >&5") 2>&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }
2737 cat >conftest.$ac_ext <<_ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h. */
2752 ac_clean_files_save=$ac_clean_files
2753 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2754 # Try to create an executable without -o first, disregard a.out.
2755 # It will help us diagnose broken compilers, and finding out an intuition
2757 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2758 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2759 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2761 # List of possible output files, starting from the most likely.
2762 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2763 # only as a last resort. b.out is created by i960 compilers.
2764 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2766 # The IRIX 6 linker writes into existing files which may not be
2767 # executable, retaining their permissions. Remove them first so a
2768 # subsequent execution test works.
2770 for ac_file in $ac_files
2773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2774 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2779 if { (ac_try="$ac_link_default"
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785 (eval "$ac_link_default") 2>&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; then
2789 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2790 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2791 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2792 # so that the user can short-circuit this test for compilers unknown to
2794 for ac_file in $ac_files
2796 test -f "$ac_file" || continue
2798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2801 # We found the default executable, but exeext='' is most
2805 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2807 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2809 # We set ac_cv_exeext here because the later test for it is not
2810 # safe: cross compilers may not add the suffix if given an `-o'
2811 # argument, so we may need to know it at that point already.
2812 # Even if this section looks crufty: it has the advantage of
2819 test "$ac_cv_exeext" = no && ac_cv_exeext=
2822 echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2825 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2826 See \`config.log' for more details." >&5
2827 echo "$as_me: error: C compiler cannot create executables
2828 See \`config.log' for more details." >&2;}
2829 { (exit 77); exit 77; }; }
2832 ac_exeext=$ac_cv_exeext
2833 { echo "$as_me:$LINENO: result: $ac_file" >&5
2834 echo "${ECHO_T}$ac_file" >&6; }
2836 # Check that the compiler produces executables we can run. If not, either
2837 # the compiler is broken, or we cross compile.
2838 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2839 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2840 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2841 # If not cross compiling, check that we can run a simple program.
2842 if test "$cross_compiling" != yes; then
2843 if { ac_try='./$ac_file'
2844 { (case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_try") 2>&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2855 if test "$cross_compiling" = maybe; then
2858 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2859 If you meant to cross compile, use \`--host'.
2860 See \`config.log' for more details." >&5
2861 echo "$as_me: error: cannot run C compiled programs.
2862 If you meant to cross compile, use \`--host'.
2863 See \`config.log' for more details." >&2;}
2864 { (exit 1); exit 1; }; }
2868 { echo "$as_me:$LINENO: result: yes" >&5
2869 echo "${ECHO_T}yes" >&6; }
2871 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2872 ac_clean_files=$ac_clean_files_save
2873 # Check that the compiler produces executables we can run. If not, either
2874 # the compiler is broken, or we cross compile.
2875 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2876 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2877 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2878 echo "${ECHO_T}$cross_compiling" >&6; }
2880 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2881 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2882 if { (ac_try="$ac_link"
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_link") 2>&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; then
2892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2893 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2894 # work properly (i.e., refer to `conftest.exe'), while it won't with
2896 for ac_file in conftest.exe conftest conftest.*; do
2897 test -f "$ac_file" || continue
2899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2900 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2906 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2907 See \`config.log' for more details." >&5
2908 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2909 See \`config.log' for more details." >&2;}
2910 { (exit 1); exit 1; }; }
2913 rm -f conftest$ac_cv_exeext
2914 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2915 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2917 rm -f conftest.$ac_ext
2918 EXEEXT=$ac_cv_exeext
2920 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2921 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2922 if test "${ac_cv_objext+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 cat >conftest.$ac_ext <<_ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2940 rm -f conftest.o conftest.obj
2941 if { (ac_try="$ac_compile"
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_compile") 2>&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; then
2951 for ac_file in conftest.o conftest.obj conftest.*; do
2952 test -f "$ac_file" || continue;
2954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2955 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2960 echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.$ac_ext >&5
2963 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2964 See \`config.log' for more details." >&5
2965 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2966 See \`config.log' for more details." >&2;}
2967 { (exit 1); exit 1; }; }
2970 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2972 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2973 echo "${ECHO_T}$ac_cv_objext" >&6; }
2974 OBJEXT=$ac_cv_objext
2976 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2977 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2978 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 cat >conftest.$ac_ext <<_ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h. */
2999 rm -f conftest.$ac_objext
3000 if { (ac_try="$ac_compile"
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_compile") 2>conftest.er1
3008 grep -v '^ *+' conftest.er1 >conftest.err
3010 cat conftest.err >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } &&
3013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3014 { (case "(($ac_try" in
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_try") 2>&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }; } &&
3023 { ac_try='test -s conftest.$ac_objext'
3024 { (case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_try") 2>&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3045 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3046 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3047 GCC=`test $ac_compiler_gnu = yes && echo yes`
3048 ac_test_CFLAGS=${CFLAGS+set}
3049 ac_save_CFLAGS=$CFLAGS
3050 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3051 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3052 if test "${ac_cv_prog_cc_g+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 ac_save_c_werror_flag=$ac_c_werror_flag
3056 ac_c_werror_flag=yes
3059 cat >conftest.$ac_ext <<_ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3074 rm -f conftest.$ac_objext
3075 if { (ac_try="$ac_compile"
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_compile") 2>conftest.er1
3083 grep -v '^ *+' conftest.er1 >conftest.err
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } &&
3088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3089 { (case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_try") 2>&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; } &&
3098 { ac_try='test -s conftest.$ac_objext'
3099 { (case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_try") 2>&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3114 cat >conftest.$ac_ext <<_ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3129 rm -f conftest.$ac_objext
3130 if { (ac_try="$ac_compile"
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_compile") 2>conftest.er1
3138 grep -v '^ *+' conftest.er1 >conftest.err
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } &&
3143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3144 { (case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_try") 2>&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; } &&
3153 { ac_try='test -s conftest.$ac_objext'
3154 { (case "(($ac_try" in
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159 (eval "$ac_try") 2>&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; }; then
3165 echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3168 ac_c_werror_flag=$ac_save_c_werror_flag
3170 cat >conftest.$ac_ext <<_ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h. */
3185 rm -f conftest.$ac_objext
3186 if { (ac_try="$ac_compile"
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_compile") 2>conftest.er1
3194 grep -v '^ *+' conftest.er1 >conftest.err
3196 cat conftest.err >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } &&
3199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3200 { (case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_try") 2>&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; } &&
3209 { ac_try='test -s conftest.$ac_objext'
3210 { (case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_try") 2>&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
3221 echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 ac_c_werror_flag=$ac_save_c_werror_flag
3236 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3237 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3238 if test "$ac_test_CFLAGS" = set; then
3239 CFLAGS=$ac_save_CFLAGS
3240 elif test $ac_cv_prog_cc_g = yes; then
3241 if test "$GCC" = yes; then
3247 if test "$GCC" = yes; then
3253 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3254 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3255 if test "${ac_cv_prog_cc_c89+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 ac_cv_prog_cc_c89=no
3260 cat >conftest.$ac_ext <<_ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3268 #include <sys/types.h>
3269 #include <sys/stat.h>
3270 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3271 struct buf { int x; };
3272 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3273 static char *e (p, i)
3279 static char *f (char * (*g) (char **, int), char **p, ...)
3284 s = g (p, va_arg (v,int));
3289 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3290 function prototypes and stuff, but not '\xHH' hex character constants.
3291 These don't provoke an error unfortunately, instead are silently treated
3292 as 'x'. The following induces an error, until -std is added to get
3293 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3294 array size at least. It's necessary to write '\x00'==0 to get something
3295 that's true only with -std. */
3296 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3298 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3299 inside strings and character constants. */
3301 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3303 int test (int i, double x);
3304 struct s1 {int (*f) (int a);};
3305 struct s2 {int (*f) (double a);};
3306 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3312 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3317 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3318 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3320 CC="$ac_save_CC $ac_arg"
3321 rm -f conftest.$ac_objext
3322 if { (ac_try="$ac_compile"
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328 (eval "$ac_compile") 2>conftest.er1
3330 grep -v '^ *+' conftest.er1 >conftest.err
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } &&
3335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3336 { (case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_try") 2>&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; } &&
3345 { ac_try='test -s conftest.$ac_objext'
3346 { (case "(($ac_try" in
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351 (eval "$ac_try") 2>&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
3355 ac_cv_prog_cc_c89=$ac_arg
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3363 rm -f core conftest.err conftest.$ac_objext
3364 test "x$ac_cv_prog_cc_c89" != "xno" && break
3366 rm -f conftest.$ac_ext
3371 case "x$ac_cv_prog_cc_c89" in
3373 { echo "$as_me:$LINENO: result: none needed" >&5
3374 echo "${ECHO_T}none needed" >&6; } ;;
3376 { echo "$as_me:$LINENO: result: unsupported" >&5
3377 echo "${ECHO_T}unsupported" >&6; } ;;
3379 CC="$CC $ac_cv_prog_cc_c89"
3380 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3381 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393 ac_cpp='$CPP $CPPFLAGS'
3394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3398 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3399 # On Suns, sometimes $CPP names a directory.
3400 if test -n "$CPP" && test -d "$CPP"; then
3403 if test -z "$CPP"; then
3404 if test "${ac_cv_prog_CPP+set}" = set; then
3405 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 # Double quotes because CPP needs to be expanded
3408 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3411 for ac_c_preproc_warn_flag in '' yes
3413 # Use a header file that comes with gcc, so configuring glibc
3414 # with a fresh cross-compiler works.
3415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3416 # <limits.h> exists even on freestanding compilers.
3417 # On the NeXT, cc -E runs the code through the compiler's parser,
3418 # not just through cpp. "Syntax error" is here to catch this case.
3419 cat >conftest.$ac_ext <<_ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3426 # include <limits.h>
3428 # include <assert.h>
3432 if { (ac_try="$ac_cpp conftest.$ac_ext"
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3440 grep -v '^ *+' conftest.er1 >conftest.err
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } >/dev/null; then
3445 if test -s conftest.err; then
3446 ac_cpp_err=$ac_c_preproc_warn_flag
3447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3454 if test -z "$ac_cpp_err"; then
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3460 # Broken: fails on valid input.
3464 rm -f conftest.err conftest.$ac_ext
3466 # OK, works on sane cases. Now check whether nonexistent headers
3467 # can be detected and how.
3468 cat >conftest.$ac_ext <<_ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h. */
3474 #include <ac_nonexistent.h>
3476 if { (ac_try="$ac_cpp conftest.$ac_ext"
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3484 grep -v '^ *+' conftest.er1 >conftest.err
3486 cat conftest.err >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } >/dev/null; then
3489 if test -s conftest.err; then
3490 ac_cpp_err=$ac_c_preproc_warn_flag
3491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3498 if test -z "$ac_cpp_err"; then
3499 # Broken: success on invalid input.
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3505 # Passes both tests.
3510 rm -f conftest.err conftest.$ac_ext
3513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3514 rm -f conftest.err conftest.$ac_ext
3515 if $ac_preproc_ok; then
3527 { echo "$as_me:$LINENO: result: $CPP" >&5
3528 echo "${ECHO_T}$CPP" >&6; }
3530 for ac_c_preproc_warn_flag in '' yes
3532 # Use a header file that comes with gcc, so configuring glibc
3533 # with a fresh cross-compiler works.
3534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3535 # <limits.h> exists even on freestanding compilers.
3536 # On the NeXT, cc -E runs the code through the compiler's parser,
3537 # not just through cpp. "Syntax error" is here to catch this case.
3538 cat >conftest.$ac_ext <<_ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3545 # include <limits.h>
3547 # include <assert.h>
3551 if { (ac_try="$ac_cpp conftest.$ac_ext"
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3559 grep -v '^ *+' conftest.er1 >conftest.err
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } >/dev/null; then
3564 if test -s conftest.err; then
3565 ac_cpp_err=$ac_c_preproc_warn_flag
3566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3573 if test -z "$ac_cpp_err"; then
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3579 # Broken: fails on valid input.
3583 rm -f conftest.err conftest.$ac_ext
3585 # OK, works on sane cases. Now check whether nonexistent headers
3586 # can be detected and how.
3587 cat >conftest.$ac_ext <<_ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3593 #include <ac_nonexistent.h>
3595 if { (ac_try="$ac_cpp conftest.$ac_ext"
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3603 grep -v '^ *+' conftest.er1 >conftest.err
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } >/dev/null; then
3608 if test -s conftest.err; then
3609 ac_cpp_err=$ac_c_preproc_warn_flag
3610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3617 if test -z "$ac_cpp_err"; then
3618 # Broken: success on invalid input.
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3624 # Passes both tests.
3629 rm -f conftest.err conftest.$ac_ext
3632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3633 rm -f conftest.err conftest.$ac_ext
3634 if $ac_preproc_ok; then
3637 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3638 See \`config.log' for more details." >&5
3639 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3640 See \`config.log' for more details." >&2;}
3641 { (exit 1); exit 1; }; }
3645 ac_cpp='$CPP $CPPFLAGS'
3646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3652 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3653 if test "${ac_cv_path_GREP+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 # Extract the first word of "grep ggrep" to use in msg output
3657 if test -z "$GREP"; then
3658 set dummy grep ggrep; ac_prog_name=$2
3659 if test "${ac_cv_path_GREP+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 ac_path_GREP_found=false
3663 # Loop through the user's path and test for each of PROGNAME-LIST
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3668 test -z "$as_dir" && as_dir=.
3669 for ac_prog in grep ggrep; do
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3672 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3673 # Check for GNU ac_path_GREP and select it if it is found.
3674 # Check for GNU $ac_path_GREP
3675 case `"$ac_path_GREP" --version 2>&1` in
3677 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3680 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3683 cat "conftest.in" "conftest.in" >"conftest.tmp"
3684 mv "conftest.tmp" "conftest.in"
3685 cp "conftest.in" "conftest.nl"
3686 echo 'GREP' >> "conftest.nl"
3687 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3688 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3689 ac_count=`expr $ac_count + 1`
3690 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3691 # Best one so far, save it but keep looking for a better one
3692 ac_cv_path_GREP="$ac_path_GREP"
3693 ac_path_GREP_max=$ac_count
3695 # 10*(2^10) chars as input seems more than enough
3696 test $ac_count -gt 10 && break
3698 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3702 $ac_path_GREP_found && break 3
3712 GREP="$ac_cv_path_GREP"
3713 if test -z "$GREP"; then
3714 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3715 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3716 { (exit 1); exit 1; }; }
3720 ac_cv_path_GREP=$GREP
3725 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3726 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3727 GREP="$ac_cv_path_GREP"
3730 { echo "$as_me:$LINENO: checking for egrep" >&5
3731 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3732 if test "${ac_cv_path_EGREP+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3736 then ac_cv_path_EGREP="$GREP -E"
3738 # Extract the first word of "egrep" to use in msg output
3739 if test -z "$EGREP"; then
3740 set dummy egrep; ac_prog_name=$2
3741 if test "${ac_cv_path_EGREP+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 ac_path_EGREP_found=false
3745 # Loop through the user's path and test for each of PROGNAME-LIST
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3750 test -z "$as_dir" && as_dir=.
3751 for ac_prog in egrep; do
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3754 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3755 # Check for GNU ac_path_EGREP and select it if it is found.
3756 # Check for GNU $ac_path_EGREP
3757 case `"$ac_path_EGREP" --version 2>&1` in
3759 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3762 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3765 cat "conftest.in" "conftest.in" >"conftest.tmp"
3766 mv "conftest.tmp" "conftest.in"
3767 cp "conftest.in" "conftest.nl"
3768 echo 'EGREP' >> "conftest.nl"
3769 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3771 ac_count=`expr $ac_count + 1`
3772 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3773 # Best one so far, save it but keep looking for a better one
3774 ac_cv_path_EGREP="$ac_path_EGREP"
3775 ac_path_EGREP_max=$ac_count
3777 # 10*(2^10) chars as input seems more than enough
3778 test $ac_count -gt 10 && break
3780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3784 $ac_path_EGREP_found && break 3
3794 EGREP="$ac_cv_path_EGREP"
3795 if test -z "$EGREP"; then
3796 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3797 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3798 { (exit 1); exit 1; }; }
3802 ac_cv_path_EGREP=$EGREP
3808 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3809 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3810 EGREP="$ac_cv_path_EGREP"
3813 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3814 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3815 if test "${ac_cv_header_stdc+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 cat >conftest.$ac_ext <<_ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3837 rm -f conftest.$ac_objext
3838 if { (ac_try="$ac_compile"
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844 (eval "$ac_compile") 2>conftest.er1
3846 grep -v '^ *+' conftest.er1 >conftest.err
3848 cat conftest.err >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); } &&
3851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3852 { (case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_try") 2>&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest.$ac_objext'
3862 { (case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867 (eval "$ac_try") 2>&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; }; then
3871 ac_cv_header_stdc=yes
3873 echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3876 ac_cv_header_stdc=no
3879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881 if test $ac_cv_header_stdc = yes; then
3882 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3883 cat >conftest.$ac_ext <<_ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3893 $EGREP "memchr" >/dev/null 2>&1; then
3896 ac_cv_header_stdc=no
3902 if test $ac_cv_header_stdc = yes; then
3903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3904 cat >conftest.$ac_ext <<_ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3914 $EGREP "free" >/dev/null 2>&1; then
3917 ac_cv_header_stdc=no
3923 if test $ac_cv_header_stdc = yes; then
3924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3925 if test "$cross_compiling" = yes; then
3928 cat >conftest.$ac_ext <<_ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3936 #if ((' ' & 0x0FF) == 0x020)
3937 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3938 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3940 # define ISLOWER(c) \
3941 (('a' <= (c) && (c) <= 'i') \
3942 || ('j' <= (c) && (c) <= 'r') \
3943 || ('s' <= (c) && (c) <= 'z'))
3944 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3947 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3952 for (i = 0; i < 256; i++)
3953 if (XOR (islower (i), ISLOWER (i))
3954 || toupper (i) != TOUPPER (i))
3959 rm -f conftest$ac_exeext
3960 if { (ac_try="$ac_link"
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966 (eval "$ac_link") 2>&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3970 { (case "(($ac_try" in
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3975 (eval "$ac_try") 2>&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; }; then
3981 echo "$as_me: program exited with status $ac_status" >&5
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3986 ac_cv_header_stdc=no
3988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3994 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3995 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3996 if test $ac_cv_header_stdc = yes; then
3998 cat >>confdefs.h <<\_ACEOF
3999 #define STDC_HEADERS 1
4004 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4014 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4015 inttypes.h stdint.h unistd.h
4017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 cat >conftest.$ac_ext <<_ACEOF
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h. */
4029 $ac_includes_default
4031 #include <$ac_header>
4033 rm -f conftest.$ac_objext
4034 if { (ac_try="$ac_compile"
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040 (eval "$ac_compile") 2>conftest.er1
4042 grep -v '^ *+' conftest.er1 >conftest.err
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
4047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4048 { (case "(($ac_try" in
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053 (eval "$ac_try") 2>&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; } &&
4057 { ac_try='test -s conftest.$ac_objext'
4058 { (case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063 (eval "$ac_try") 2>&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }; }; then
4067 eval "$as_ac_Header=yes"
4069 echo "$as_me: failed program was:" >&5
4070 sed 's/^/| /' conftest.$ac_ext >&5
4072 eval "$as_ac_Header=no"
4075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077 ac_res=`eval echo '${'$as_ac_Header'}'`
4078 { echo "$as_me:$LINENO: result: $ac_res" >&5
4079 echo "${ECHO_T}$ac_res" >&6; }
4080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4081 cat >>confdefs.h <<_ACEOF
4082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4090 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4091 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4092 if test "${ac_cv_c_bigendian+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 # See if sys/param.h defines the BYTE_ORDER macro.
4096 cat >conftest.$ac_ext <<_ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h. */
4102 #include <sys/types.h>
4103 #include <sys/param.h>
4108 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4116 rm -f conftest.$ac_objext
4117 if { (ac_try="$ac_compile"
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123 (eval "$ac_compile") 2>conftest.er1
4125 grep -v '^ *+' conftest.er1 >conftest.err
4127 cat conftest.err >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } &&
4130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4131 { (case "(($ac_try" in
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136 (eval "$ac_try") 2>&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; } &&
4140 { ac_try='test -s conftest.$ac_objext'
4141 { (case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146 (eval "$ac_try") 2>&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; }; then
4150 # It does; now see whether it defined to BIG_ENDIAN or not.
4151 cat >conftest.$ac_ext <<_ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4157 #include <sys/types.h>
4158 #include <sys/param.h>
4163 #if BYTE_ORDER != BIG_ENDIAN
4171 rm -f conftest.$ac_objext
4172 if { (ac_try="$ac_compile"
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_compile") 2>conftest.er1
4180 grep -v '^ *+' conftest.er1 >conftest.err
4182 cat conftest.err >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } &&
4185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4186 { (case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_try") 2>&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; } &&
4195 { ac_try='test -s conftest.$ac_objext'
4196 { (case "(($ac_try" in
4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201 (eval "$ac_try") 2>&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; }; then
4205 ac_cv_c_bigendian=yes
4207 echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4210 ac_cv_c_bigendian=no
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4218 # It does not; compile a test program.
4219 if test "$cross_compiling" = yes; then
4220 # try to guess the endianness by grepping values into an object file
4221 ac_cv_c_bigendian=unknown
4222 cat >conftest.$ac_ext <<_ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4228 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4229 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4230 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4231 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4232 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4233 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4237 _ascii (); _ebcdic ();
4242 rm -f conftest.$ac_objext
4243 if { (ac_try="$ac_compile"
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249 (eval "$ac_compile") 2>conftest.er1
4251 grep -v '^ *+' conftest.er1 >conftest.err
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } &&
4256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4257 { (case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_try") 2>&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; } &&
4266 { ac_try='test -s conftest.$ac_objext'
4267 { (case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_try") 2>&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4277 ac_cv_c_bigendian=yes
4279 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4280 if test "$ac_cv_c_bigendian" = unknown; then
4281 ac_cv_c_bigendian=no
4283 # finding both strings is unlikely to happen, but who knows?
4284 ac_cv_c_bigendian=unknown
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 cat >conftest.$ac_ext <<_ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h. */
4302 $ac_includes_default
4307 /* Are we little or big endian? From Harbison&Steele. */
4311 char c[sizeof (long int)];
4314 return u.c[sizeof (long int) - 1] == 1;
4320 rm -f conftest$ac_exeext
4321 if { (ac_try="$ac_link"
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327 (eval "$ac_link") 2>&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4331 { (case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336 (eval "$ac_try") 2>&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; }; then
4340 ac_cv_c_bigendian=no
4342 echo "$as_me: program exited with status $ac_status" >&5
4343 echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4347 ac_cv_c_bigendian=yes
4349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4358 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4359 case $ac_cv_c_bigendian in
4367 { { echo "$as_me:$LINENO: error: unknown endianness
4368 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4369 echo "$as_me: error: unknown endianness
4370 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4371 { (exit 1); exit 1; }; } ;;
4375 if test "$cross_compiling" = yes; then
4376 LLVM_CROSS_COMPILING=1
4379 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4380 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4381 if test "${ac_cv_build_exeext+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4385 ac_cv_build_exeext=.exe
4387 ac_build_prefix=${build_alias}-
4389 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4390 set dummy ${ac_build_prefix}gcc; ac_word=$2
4391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4393 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 if test -n "$BUILD_CC"; then
4397 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4406 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 BUILD_CC=$ac_cv_prog_BUILD_CC
4417 if test -n "$BUILD_CC"; then
4418 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4419 echo "${ECHO_T}$BUILD_CC" >&6; }
4421 { echo "$as_me:$LINENO: result: no" >&5
4422 echo "${ECHO_T}no" >&6; }
4426 if test -z "$BUILD_CC"; then
4427 # Extract the first word of "gcc", so it can be a program name with args.
4428 set dummy gcc; ac_word=$2
4429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 if test -n "$BUILD_CC"; then
4435 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 ac_cv_prog_BUILD_CC="gcc"
4445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 BUILD_CC=$ac_cv_prog_BUILD_CC
4455 if test -n "$BUILD_CC"; then
4456 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4457 echo "${ECHO_T}$BUILD_CC" >&6; }
4459 { echo "$as_me:$LINENO: result: no" >&5
4460 echo "${ECHO_T}no" >&6; }
4464 if test -z "$BUILD_CC"; then
4465 # Extract the first word of "cc", so it can be a program name with args.
4466 set dummy cc; ac_word=$2
4467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 if test -n "$BUILD_CC"; then
4473 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 test -z "$as_dir" && as_dir=.
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4483 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4484 ac_prog_rejected=yes
4487 ac_cv_prog_BUILD_CC="cc"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 if test $ac_prog_rejected = yes; then
4496 # We found a bogon in the path, so make sure we never use it.
4497 set dummy $ac_cv_prog_BUILD_CC
4499 if test $# != 0; then
4500 # We chose a different compiler from the bogus one.
4501 # However, it has the same basename, so the bogon will be chosen
4502 # first if we set BUILD_CC to just the basename; use the full file name.
4504 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4509 BUILD_CC=$ac_cv_prog_BUILD_CC
4510 if test -n "$BUILD_CC"; then
4511 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4512 echo "${ECHO_T}$BUILD_CC" >&6; }
4514 { echo "$as_me:$LINENO: result: no" >&5
4515 echo "${ECHO_T}no" >&6; }
4521 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4522 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4523 { (exit 1); exit 1; }; }
4524 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4526 echo 'int main () { return 0; }' > conftest.$ac_ext
4528 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4529 (eval $ac_build_link) 2>&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; then
4533 for file in conftest.*; do
4535 *.c | *.o | *.obj) ;;
4536 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4540 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4541 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4542 { (exit 1); exit 1; }; }
4545 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4550 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4551 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4552 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4553 ac_build_exeext=$BUILD_EXEEXT
4556 LLVM_CROSS_COMPILING=0
4560 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4571 # Check whether --enable-optimized was given.
4572 if test "${enable_optimized+set}" = set; then
4573 enableval=$enable_optimized;
4578 if test ${enableval} = "no" ; then
4582 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4586 # Check whether --enable-assertions was given.
4587 if test "${enable_assertions+set}" = set; then
4588 enableval=$enable_assertions;
4593 if test ${enableval} = "yes" ; then
4597 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4601 # Check whether --enable-expensive-checks was given.
4602 if test "${enable_expensive_checks+set}" = set; then
4603 enableval=$enable_expensive_checks;
4608 if test ${enableval} = "yes" ; then
4609 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4611 EXPENSIVE_CHECKS=yes
4614 ENABLE_EXPENSIVE_CHECKS=
4620 # Check whether --enable-debug-runtime was given.
4621 if test "${enable_debug_runtime+set}" = set; then
4622 enableval=$enable_debug_runtime;
4627 if test ${enableval} = "no" ; then
4631 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4635 # Check whether --enable-jit was given.
4636 if test "${enable_jit+set}" = set; then
4637 enableval=$enable_jit;
4642 if test ${enableval} = "no"
4647 case "$llvm_cv_target_arch" in
4648 x86) TARGET_HAS_JIT=1
4650 Sparc) TARGET_HAS_JIT=0
4652 PowerPC) TARGET_HAS_JIT=1
4654 x86_64) TARGET_HAS_JIT=1
4656 Alpha) TARGET_HAS_JIT=1
4658 IA64) TARGET_HAS_JIT=0
4660 ARM) TARGET_HAS_JIT=0
4662 Mips) TARGET_HAS_JIT=0
4669 # Check whether --enable-doxygen was given.
4670 if test "${enable_doxygen+set}" = set; then
4671 enableval=$enable_doxygen;
4676 case "$enableval" in
4677 yes) ENABLE_DOXYGEN=1
4679 no) ENABLE_DOXYGEN=0
4681 default) ENABLE_DOXYGEN=0
4683 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4684 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4685 { (exit 1); exit 1; }; } ;;
4688 # Check whether --enable-threads was given.
4689 if test "${enable_threads+set}" = set; then
4690 enableval=$enable_threads;
4695 case "$enableval" in
4696 yes) ENABLE_THREADS=1
4698 no) ENABLE_THREADS=0
4700 default) ENABLE_THREADS=1
4702 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4703 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4704 { (exit 1); exit 1; }; } ;;
4707 cat >>confdefs.h <<_ACEOF
4708 #define ENABLE_THREADS $ENABLE_THREADS
4712 # Check whether --enable-pic was given.
4713 if test "${enable_pic+set}" = set; then
4714 enableval=$enable_pic;
4719 case "$enableval" in
4724 default) ENABLE_PIC=0
4726 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4727 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4728 { (exit 1); exit 1; }; } ;;
4731 cat >>confdefs.h <<_ACEOF
4732 #define ENABLE_PIC $ENABLE_PIC
4737 # Check whether --enable-targets was given.
4738 if test "${enable_targets+set}" = set; then
4739 enableval=$enable_targets;
4744 case "$enableval" in
4745 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips" ;;
4747 case "$llvm_cv_target_arch" in
4748 x86) TARGETS_TO_BUILD="X86" ;;
4749 x86_64) TARGETS_TO_BUILD="X86" ;;
4750 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4751 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4752 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4753 IA64) TARGETS_TO_BUILD="IA64" ;;
4754 ARM) TARGETS_TO_BUILD="ARM" ;;
4755 Mips) TARGETS_TO_BUILD="Mips" ;;
4756 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4757 echo "$as_me: error: Can not set target to build" >&2;}
4758 { (exit 1); exit 1; }; } ;;
4761 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4763 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4764 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4765 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4766 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4767 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4768 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4769 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4770 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4771 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4772 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4773 { (exit 1); exit 1; }; } ;;
4778 TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4779 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4782 # Check whether --enable-cbe-printf-a was given.
4783 if test "${enable_cbe_printf_a+set}" = set; then
4784 enableval=$enable_cbe_printf_a;
4789 case "$enableval" in
4790 yes) ENABLE_CBE_PRINTF_A=1
4792 no) ENABLE_CBE_PRINTF_A=0
4794 default) ENABLE_CBE_PRINTF_A=1
4796 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4797 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4798 { (exit 1); exit 1; }; } ;;
4801 cat >>confdefs.h <<_ACEOF
4802 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4807 # Check whether --with-llvmgccdir was given.
4808 if test "${with_llvmgccdir+set}" = set; then
4809 withval=$with_llvmgccdir;
4815 default) WITH_LLVMGCCDIR=default ;;
4816 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4817 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4818 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4819 { (exit 1); exit 1; }; } ;;
4823 # Check whether --with-llvmgcc was given.
4824 if test "${with_llvmgcc+set}" = set; then
4825 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4831 # Check whether --with-llvmgxx was given.
4832 if test "${with_llvmgxx+set}" = set; then
4833 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4838 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4839 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4840 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4841 { (exit 1); exit 1; }; };
4844 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4845 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4846 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4847 { (exit 1); exit 1; }; };
4851 # Check whether --with-extra-options was given.
4852 if test "${with_extra_options+set}" = set; then
4853 withval=$with_extra_options;
4859 default) EXTRA_OPTIONS= ;;
4860 *) EXTRA_OPTIONS=$withval ;;
4862 EXTRA_OPTIONS=$EXTRA_OPTIONS
4865 # Check whether --enable-bindings was given.
4866 if test "${enable_bindings+set}" = set; then
4867 enableval=$enable_bindings;
4872 BINDINGS_TO_BUILD=""
4873 case "$enableval" in
4874 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4875 all ) BINDINGS_TO_BUILD="ocaml" ;;
4876 none | no) BINDINGS_TO_BUILD="" ;;
4877 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4878 case "$a_binding" in
4879 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4880 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4881 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4882 { (exit 1); exit 1; }; } ;;
4889 # Check whether --with-ocaml-libdir was given.
4890 if test "${with_ocaml_libdir+set}" = set; then
4891 withval=$with_ocaml_libdir;
4897 auto) with_ocaml_libdir="$withval" ;;
4898 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4899 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4900 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4901 { (exit 1); exit 1; }; } ;;
4906 ac_cpp='$CPP $CPPFLAGS'
4907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4910 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4911 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4912 # On Suns, sometimes $CPP names a directory.
4913 if test -n "$CPP" && test -d "$CPP"; then
4916 if test -z "$CPP"; then
4917 if test "${ac_cv_prog_CPP+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 # Double quotes because CPP needs to be expanded
4921 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4924 for ac_c_preproc_warn_flag in '' yes
4926 # Use a header file that comes with gcc, so configuring glibc
4927 # with a fresh cross-compiler works.
4928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4929 # <limits.h> exists even on freestanding compilers.
4930 # On the NeXT, cc -E runs the code through the compiler's parser,
4931 # not just through cpp. "Syntax error" is here to catch this case.
4932 cat >conftest.$ac_ext <<_ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h. */
4939 # include <limits.h>
4941 # include <assert.h>
4945 if { (ac_try="$ac_cpp conftest.$ac_ext"
4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948 *) ac_try_echo=$ac_try;;
4950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4953 grep -v '^ *+' conftest.er1 >conftest.err
4955 cat conftest.err >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } >/dev/null; then
4958 if test -s conftest.err; then
4959 ac_cpp_err=$ac_c_preproc_warn_flag
4960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4967 if test -z "$ac_cpp_err"; then
4970 echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4973 # Broken: fails on valid input.
4977 rm -f conftest.err conftest.$ac_ext
4979 # OK, works on sane cases. Now check whether nonexistent headers
4980 # can be detected and how.
4981 cat >conftest.$ac_ext <<_ACEOF
4984 cat confdefs.h >>conftest.$ac_ext
4985 cat >>conftest.$ac_ext <<_ACEOF
4986 /* end confdefs.h. */
4987 #include <ac_nonexistent.h>
4989 if { (ac_try="$ac_cpp conftest.$ac_ext"
4991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4992 *) ac_try_echo=$ac_try;;
4994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4997 grep -v '^ *+' conftest.er1 >conftest.err
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } >/dev/null; then
5002 if test -s conftest.err; then
5003 ac_cpp_err=$ac_c_preproc_warn_flag
5004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5011 if test -z "$ac_cpp_err"; then
5012 # Broken: success on invalid input.
5015 echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5018 # Passes both tests.
5023 rm -f conftest.err conftest.$ac_ext
5026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5027 rm -f conftest.err conftest.$ac_ext
5028 if $ac_preproc_ok; then
5040 { echo "$as_me:$LINENO: result: $CPP" >&5
5041 echo "${ECHO_T}$CPP" >&6; }
5043 for ac_c_preproc_warn_flag in '' yes
5045 # Use a header file that comes with gcc, so configuring glibc
5046 # with a fresh cross-compiler works.
5047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5048 # <limits.h> exists even on freestanding compilers.
5049 # On the NeXT, cc -E runs the code through the compiler's parser,
5050 # not just through cpp. "Syntax error" is here to catch this case.
5051 cat >conftest.$ac_ext <<_ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5058 # include <limits.h>
5060 # include <assert.h>
5064 if { (ac_try="$ac_cpp conftest.$ac_ext"
5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067 *) ac_try_echo=$ac_try;;
5069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5072 grep -v '^ *+' conftest.er1 >conftest.err
5074 cat conftest.err >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } >/dev/null; then
5077 if test -s conftest.err; then
5078 ac_cpp_err=$ac_c_preproc_warn_flag
5079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5086 if test -z "$ac_cpp_err"; then
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5092 # Broken: fails on valid input.
5096 rm -f conftest.err conftest.$ac_ext
5098 # OK, works on sane cases. Now check whether nonexistent headers
5099 # can be detected and how.
5100 cat >conftest.$ac_ext <<_ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h. */
5106 #include <ac_nonexistent.h>
5108 if { (ac_try="$ac_cpp conftest.$ac_ext"
5110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5111 *) ac_try_echo=$ac_try;;
5113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5116 grep -v '^ *+' conftest.er1 >conftest.err
5118 cat conftest.err >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } >/dev/null; then
5121 if test -s conftest.err; then
5122 ac_cpp_err=$ac_c_preproc_warn_flag
5123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5130 if test -z "$ac_cpp_err"; then
5131 # Broken: success on invalid input.
5134 echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5137 # Passes both tests.
5142 rm -f conftest.err conftest.$ac_ext
5145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5146 rm -f conftest.err conftest.$ac_ext
5147 if $ac_preproc_ok; then
5150 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5151 See \`config.log' for more details." >&5
5152 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5153 See \`config.log' for more details." >&2;}
5154 { (exit 1); exit 1; }; }
5158 ac_cpp='$CPP $CPPFLAGS'
5159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5164 ac_cpp='$CPP $CPPFLAGS'
5165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5168 if test -n "$ac_tool_prefix"; then
5171 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5172 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5175 if test "${ac_cv_prog_CC+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 if test -n "$CC"; then
5179 ac_cv_prog_CC="$CC" # Let the user override the test.
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5188 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 if test -n "$CC"; then
5200 { echo "$as_me:$LINENO: result: $CC" >&5
5201 echo "${ECHO_T}$CC" >&6; }
5203 { echo "$as_me:$LINENO: result: no" >&5
5204 echo "${ECHO_T}no" >&6; }
5208 test -n "$CC" && break
5211 if test -z "$CC"; then
5215 # Extract the first word of "$ac_prog", so it can be a program name with args.
5216 set dummy $ac_prog; ac_word=$2
5217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5219 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 if test -n "$ac_ct_CC"; then
5223 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 test -z "$as_dir" && as_dir=.
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5232 ac_cv_prog_ac_ct_CC="$ac_prog"
5233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5243 if test -n "$ac_ct_CC"; then
5244 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5245 echo "${ECHO_T}$ac_ct_CC" >&6; }
5247 { echo "$as_me:$LINENO: result: no" >&5
5248 echo "${ECHO_T}no" >&6; }
5252 test -n "$ac_ct_CC" && break
5255 if test "x$ac_ct_CC" = x; then
5258 case $cross_compiling:$ac_tool_warned in
5260 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5261 whose name does not start with the host triplet. If you think this
5262 configuration is useful to you, please write to autoconf@gnu.org." >&5
5263 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5264 whose name does not start with the host triplet. If you think this
5265 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5266 ac_tool_warned=yes ;;
5273 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5274 See \`config.log' for more details." >&5
5275 echo "$as_me: error: no acceptable C compiler found in \$PATH
5276 See \`config.log' for more details." >&2;}
5277 { (exit 1); exit 1; }; }
5279 # Provide some information about the compiler.
5280 echo "$as_me:$LINENO: checking for C compiler version" >&5
5281 ac_compiler=`set X $ac_compile; echo $2`
5282 { (ac_try="$ac_compiler --version >&5"
5284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285 *) ac_try_echo=$ac_try;;
5287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288 (eval "$ac_compiler --version >&5") 2>&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }
5292 { (ac_try="$ac_compiler -v >&5"
5294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295 *) ac_try_echo=$ac_try;;
5297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5298 (eval "$ac_compiler -v >&5") 2>&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }
5302 { (ac_try="$ac_compiler -V >&5"
5304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305 *) ac_try_echo=$ac_try;;
5307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308 (eval "$ac_compiler -V >&5") 2>&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }
5313 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5314 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5315 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 cat >conftest.$ac_ext <<_ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5336 rm -f conftest.$ac_objext
5337 if { (ac_try="$ac_compile"
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343 (eval "$ac_compile") 2>conftest.er1
5345 grep -v '^ *+' conftest.er1 >conftest.err
5347 cat conftest.err >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } &&
5350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5351 { (case "(($ac_try" in
5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353 *) ac_try_echo=$ac_try;;
5355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356 (eval "$ac_try") 2>&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }; } &&
5360 { ac_try='test -s conftest.$ac_objext'
5361 { (case "(($ac_try" in
5362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5363 *) ac_try_echo=$ac_try;;
5365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5366 (eval "$ac_try") 2>&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; }; then
5372 echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5379 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5382 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5383 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5384 GCC=`test $ac_compiler_gnu = yes && echo yes`
5385 ac_test_CFLAGS=${CFLAGS+set}
5386 ac_save_CFLAGS=$CFLAGS
5387 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5388 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5389 if test "${ac_cv_prog_cc_g+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 ac_save_c_werror_flag=$ac_c_werror_flag
5393 ac_c_werror_flag=yes
5396 cat >conftest.$ac_ext <<_ACEOF
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h. */
5411 rm -f conftest.$ac_objext
5412 if { (ac_try="$ac_compile"
5414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415 *) ac_try_echo=$ac_try;;
5417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418 (eval "$ac_compile") 2>conftest.er1
5420 grep -v '^ *+' conftest.er1 >conftest.err
5422 cat conftest.err >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } &&
5425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5426 { (case "(($ac_try" in
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_try") 2>&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; } &&
5435 { ac_try='test -s conftest.$ac_objext'
5436 { (case "(($ac_try" in
5437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438 *) ac_try_echo=$ac_try;;
5440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441 (eval "$ac_try") 2>&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5451 cat >conftest.$ac_ext <<_ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5466 rm -f conftest.$ac_objext
5467 if { (ac_try="$ac_compile"
5469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5470 *) ac_try_echo=$ac_try;;
5472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5473 (eval "$ac_compile") 2>conftest.er1
5475 grep -v '^ *+' conftest.er1 >conftest.err
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5481 { (case "(($ac_try" in
5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486 (eval "$ac_try") 2>&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); }; } &&
5490 { ac_try='test -s conftest.$ac_objext'
5491 { (case "(($ac_try" in
5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496 (eval "$ac_try") 2>&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); }; }; then
5502 echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5505 ac_c_werror_flag=$ac_save_c_werror_flag
5507 cat >conftest.$ac_ext <<_ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5522 rm -f conftest.$ac_objext
5523 if { (ac_try="$ac_compile"
5525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526 *) ac_try_echo=$ac_try;;
5528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5529 (eval "$ac_compile") 2>conftest.er1
5531 grep -v '^ *+' conftest.er1 >conftest.err
5533 cat conftest.err >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } &&
5536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5537 { (case "(($ac_try" in
5538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539 *) ac_try_echo=$ac_try;;
5541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542 (eval "$ac_try") 2>&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }; } &&
5546 { ac_try='test -s conftest.$ac_objext'
5547 { (case "(($ac_try" in
5548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552 (eval "$ac_try") 2>&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; }; then
5558 echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.$ac_ext >&5
5564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571 ac_c_werror_flag=$ac_save_c_werror_flag
5573 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5574 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5575 if test "$ac_test_CFLAGS" = set; then
5576 CFLAGS=$ac_save_CFLAGS
5577 elif test $ac_cv_prog_cc_g = yes; then
5578 if test "$GCC" = yes; then
5584 if test "$GCC" = yes; then
5590 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5591 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5592 if test "${ac_cv_prog_cc_c89+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5595 ac_cv_prog_cc_c89=no
5597 cat >conftest.$ac_ext <<_ACEOF
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h. */
5605 #include <sys/types.h>
5606 #include <sys/stat.h>
5607 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5608 struct buf { int x; };
5609 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5610 static char *e (p, i)
5616 static char *f (char * (*g) (char **, int), char **p, ...)
5621 s = g (p, va_arg (v,int));
5626 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5627 function prototypes and stuff, but not '\xHH' hex character constants.
5628 These don't provoke an error unfortunately, instead are silently treated
5629 as 'x'. The following induces an error, until -std is added to get
5630 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5631 array size at least. It's necessary to write '\x00'==0 to get something
5632 that's true only with -std. */
5633 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5635 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5636 inside strings and character constants. */
5638 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5640 int test (int i, double x);
5641 struct s1 {int (*f) (int a);};
5642 struct s2 {int (*f) (double a);};
5643 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5649 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5654 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5655 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5657 CC="$ac_save_CC $ac_arg"
5658 rm -f conftest.$ac_objext
5659 if { (ac_try="$ac_compile"
5661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662 *) ac_try_echo=$ac_try;;
5664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5665 (eval "$ac_compile") 2>conftest.er1
5667 grep -v '^ *+' conftest.er1 >conftest.err
5669 cat conftest.err >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } &&
5672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5673 { (case "(($ac_try" in
5674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675 *) ac_try_echo=$ac_try;;
5677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5678 (eval "$ac_try") 2>&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; } &&
5682 { ac_try='test -s conftest.$ac_objext'
5683 { (case "(($ac_try" in
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688 (eval "$ac_try") 2>&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 ac_cv_prog_cc_c89=$ac_arg
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5700 rm -f core conftest.err conftest.$ac_objext
5701 test "x$ac_cv_prog_cc_c89" != "xno" && break
5703 rm -f conftest.$ac_ext
5708 case "x$ac_cv_prog_cc_c89" in
5710 { echo "$as_me:$LINENO: result: none needed" >&5
5711 echo "${ECHO_T}none needed" >&6; } ;;
5713 { echo "$as_me:$LINENO: result: unsupported" >&5
5714 echo "${ECHO_T}unsupported" >&6; } ;;
5716 CC="$CC $ac_cv_prog_cc_c89"
5717 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5718 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5723 ac_cpp='$CPP $CPPFLAGS'
5724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5729 ac_cpp='$CXXCPP $CPPFLAGS'
5730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5733 if test -z "$CXX"; then
5734 if test -n "$CCC"; then
5737 if test -n "$ac_tool_prefix"; then
5740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5744 if test "${ac_cv_prog_CXX+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 if test -n "$CXX"; then
5748 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 test -z "$as_dir" && as_dir=.
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5757 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5768 if test -n "$CXX"; then
5769 { echo "$as_me:$LINENO: result: $CXX" >&5
5770 echo "${ECHO_T}$CXX" >&6; }
5772 { echo "$as_me:$LINENO: result: no" >&5
5773 echo "${ECHO_T}no" >&6; }
5777 test -n "$CXX" && break
5780 if test -z "$CXX"; then
5784 # Extract the first word of "$ac_prog", so it can be a program name with args.
5785 set dummy $ac_prog; ac_word=$2
5786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5788 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 if test -n "$ac_ct_CXX"; then
5792 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 test -z "$as_dir" && as_dir=.
5799 for ac_exec_ext in '' $ac_executable_extensions; do
5800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5801 ac_cv_prog_ac_ct_CXX="$ac_prog"
5802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5812 if test -n "$ac_ct_CXX"; then
5813 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5814 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5816 { echo "$as_me:$LINENO: result: no" >&5
5817 echo "${ECHO_T}no" >&6; }
5821 test -n "$ac_ct_CXX" && break
5824 if test "x$ac_ct_CXX" = x; then
5827 case $cross_compiling:$ac_tool_warned in
5829 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5830 whose name does not start with the host triplet. If you think this
5831 configuration is useful to you, please write to autoconf@gnu.org." >&5
5832 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5833 whose name does not start with the host triplet. If you think this
5834 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5835 ac_tool_warned=yes ;;
5843 # Provide some information about the compiler.
5844 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5845 ac_compiler=`set X $ac_compile; echo $2`
5846 { (ac_try="$ac_compiler --version >&5"
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_compiler --version >&5") 2>&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }
5856 { (ac_try="$ac_compiler -v >&5"
5858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5859 *) ac_try_echo=$ac_try;;
5861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5862 (eval "$ac_compiler -v >&5") 2>&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }
5866 { (ac_try="$ac_compiler -V >&5"
5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 (eval "$ac_compiler -V >&5") 2>&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }
5877 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5878 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5879 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5882 cat >conftest.$ac_ext <<_ACEOF
5885 cat confdefs.h >>conftest.$ac_ext
5886 cat >>conftest.$ac_ext <<_ACEOF
5887 /* end confdefs.h. */
5900 rm -f conftest.$ac_objext
5901 if { (ac_try="$ac_compile"
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_compile") 2>conftest.er1
5909 grep -v '^ *+' conftest.er1 >conftest.err
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } &&
5914 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5915 { (case "(($ac_try" in
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_try") 2>&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; } &&
5924 { ac_try='test -s conftest.$ac_objext'
5925 { (case "(($ac_try" in
5926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5927 *) ac_try_echo=$ac_try;;
5929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5930 (eval "$ac_try") 2>&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; }; then
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5946 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5947 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5948 GXX=`test $ac_compiler_gnu = yes && echo yes`
5949 ac_test_CXXFLAGS=${CXXFLAGS+set}
5950 ac_save_CXXFLAGS=$CXXFLAGS
5951 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5952 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5953 if test "${ac_cv_prog_cxx_g+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5957 ac_cxx_werror_flag=yes
5960 cat >conftest.$ac_ext <<_ACEOF
5963 cat confdefs.h >>conftest.$ac_ext
5964 cat >>conftest.$ac_ext <<_ACEOF
5965 /* end confdefs.h. */
5975 rm -f conftest.$ac_objext
5976 if { (ac_try="$ac_compile"
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_compile") 2>conftest.er1
5984 grep -v '^ *+' conftest.er1 >conftest.err
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5990 { (case "(($ac_try" in
5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995 (eval "$ac_try") 2>&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest.$ac_objext'
6000 { (case "(($ac_try" in
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005 (eval "$ac_try") 2>&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6009 ac_cv_prog_cxx_g=yes
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6015 cat >conftest.$ac_ext <<_ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h. */
6030 rm -f conftest.$ac_objext
6031 if { (ac_try="$ac_compile"
6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034 *) ac_try_echo=$ac_try;;
6036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037 (eval "$ac_compile") 2>conftest.er1
6039 grep -v '^ *+' conftest.er1 >conftest.err
6041 cat conftest.err >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } &&
6044 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6045 { (case "(($ac_try" in
6046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047 *) ac_try_echo=$ac_try;;
6049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050 (eval "$ac_try") 2>&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; } &&
6054 { ac_try='test -s conftest.$ac_objext'
6055 { (case "(($ac_try" in
6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060 (eval "$ac_try") 2>&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; }; then
6066 echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6069 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6071 cat >conftest.$ac_ext <<_ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6086 rm -f conftest.$ac_objext
6087 if { (ac_try="$ac_compile"
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_compile") 2>conftest.er1
6095 grep -v '^ *+' conftest.er1 >conftest.err
6097 cat conftest.err >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } &&
6100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6101 { (case "(($ac_try" in
6102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103 *) ac_try_echo=$ac_try;;
6105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106 (eval "$ac_try") 2>&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; } &&
6110 { ac_try='test -s conftest.$ac_objext'
6111 { (case "(($ac_try" in
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116 (eval "$ac_try") 2>&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 ac_cv_prog_cxx_g=yes
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6135 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6137 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6138 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6139 if test "$ac_test_CXXFLAGS" = set; then
6140 CXXFLAGS=$ac_save_CXXFLAGS
6141 elif test $ac_cv_prog_cxx_g = yes; then
6142 if test "$GXX" = yes; then
6148 if test "$GXX" = yes; then
6155 ac_cpp='$CPP $CPPFLAGS'
6156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6160 { echo "$as_me:$LINENO: checking " >&5
6161 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6162 if test "${ac_cv_has_flex+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 for ac_prog in flex lex
6167 # Extract the first word of "$ac_prog", so it can be a program name with args.
6168 set dummy $ac_prog; ac_word=$2
6169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6171 if test "${ac_cv_prog_LEX+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 if test -n "$LEX"; then
6175 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6184 ac_cv_prog_LEX="$ac_prog"
6185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6195 if test -n "$LEX"; then
6196 { echo "$as_me:$LINENO: result: $LEX" >&5
6197 echo "${ECHO_T}$LEX" >&6; }
6199 { echo "$as_me:$LINENO: result: no" >&5
6200 echo "${ECHO_T}no" >&6; }
6204 test -n "$LEX" && break
6206 test -n "$LEX" || LEX=":"
6208 if test -z "$LEXLIB"
6210 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6211 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6212 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 ac_check_lib_save_LIBS=$LIBS
6217 cat >conftest.$ac_ext <<_ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h. */
6224 /* Override any GCC internal prototype to avoid an error.
6225 Use char because int might match the return type of a GCC
6226 builtin and then its argument prototype would still apply. */
6239 rm -f conftest.$ac_objext conftest$ac_exeext
6240 if { (ac_try="$ac_link"
6242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6243 *) ac_try_echo=$ac_try;;
6245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6246 (eval "$ac_link") 2>conftest.er1
6248 grep -v '^ *+' conftest.er1 >conftest.err
6250 cat conftest.err >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } &&
6253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6254 { (case "(($ac_try" in
6255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256 *) ac_try_echo=$ac_try;;
6258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259 (eval "$ac_try") 2>&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; } &&
6263 { ac_try='test -s conftest$ac_exeext'
6264 { (case "(($ac_try" in
6265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266 *) ac_try_echo=$ac_try;;
6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$ac_try") 2>&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; }; then
6273 ac_cv_lib_fl_yywrap=yes
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6278 ac_cv_lib_fl_yywrap=no
6281 rm -f core conftest.err conftest.$ac_objext \
6282 conftest$ac_exeext conftest.$ac_ext
6283 LIBS=$ac_check_lib_save_LIBS
6285 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6286 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6287 if test $ac_cv_lib_fl_yywrap = yes; then
6290 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6291 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6292 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 ac_check_lib_save_LIBS=$LIBS
6297 cat >conftest.$ac_ext <<_ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6304 /* Override any GCC internal prototype to avoid an error.
6305 Use char because int might match the return type of a GCC
6306 builtin and then its argument prototype would still apply. */
6319 rm -f conftest.$ac_objext conftest$ac_exeext
6320 if { (ac_try="$ac_link"
6322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6323 *) ac_try_echo=$ac_try;;
6325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6326 (eval "$ac_link") 2>conftest.er1
6328 grep -v '^ *+' conftest.er1 >conftest.err
6330 cat conftest.err >&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); } &&
6333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6334 { (case "(($ac_try" in
6335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336 *) ac_try_echo=$ac_try;;
6338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339 (eval "$ac_try") 2>&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }; } &&
6343 { ac_try='test -s conftest$ac_exeext'
6344 { (case "(($ac_try" in
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_try") 2>&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; }; then
6353 ac_cv_lib_l_yywrap=yes
6355 echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6358 ac_cv_lib_l_yywrap=no
6361 rm -f core conftest.err conftest.$ac_objext \
6362 conftest$ac_exeext conftest.$ac_ext
6363 LIBS=$ac_check_lib_save_LIBS
6365 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6366 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6367 if test $ac_cv_lib_l_yywrap = yes; then
6375 if test "x$LEX" != "x:"; then
6376 { echo "$as_me:$LINENO: checking lex output file root" >&5
6377 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6378 if test "${ac_cv_prog_lex_root+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6381 # The minimal lex program is just a single line: %%. But some broken lexes
6382 # (Solaris, I think it was) want two %% lines, so accommodate them.
6383 cat >conftest.l <<_ACEOF
6387 { (ac_try="$LEX conftest.l"
6389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6390 *) ac_try_echo=$ac_try;;
6392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6393 (eval "$LEX conftest.l") 2>&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }
6397 if test -f lex.yy.c; then
6398 ac_cv_prog_lex_root=lex.yy
6399 elif test -f lexyy.c; then
6400 ac_cv_prog_lex_root=lexyy
6402 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6403 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6404 { (exit 1); exit 1; }; }
6407 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6408 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6410 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6412 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6413 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6414 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6417 # POSIX says lex can declare yytext either as a pointer or an array; the
6418 # default is implementation-dependent. Figure out which it is, since
6419 # not all implementations provide the %pointer and %array declarations.
6420 ac_cv_prog_lex_yytext_pointer=no
6421 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6423 LIBS="$LIBS $LEXLIB"
6424 cat >conftest.$ac_ext <<_ACEOF
6425 `cat $LEX_OUTPUT_ROOT.c`
6427 rm -f conftest.$ac_objext conftest$ac_exeext
6428 if { (ac_try="$ac_link"
6430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6431 *) ac_try_echo=$ac_try;;
6433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6434 (eval "$ac_link") 2>conftest.er1
6436 grep -v '^ *+' conftest.er1 >conftest.err
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6442 { (case "(($ac_try" in
6443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6444 *) ac_try_echo=$ac_try;;
6446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6447 (eval "$ac_try") 2>&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); }; } &&
6451 { ac_try='test -s conftest$ac_exeext'
6452 { (case "(($ac_try" in
6453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6454 *) ac_try_echo=$ac_try;;
6456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6457 (eval "$ac_try") 2>&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; }; then
6461 ac_cv_prog_lex_yytext_pointer=yes
6463 echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.$ac_ext >&5
6469 rm -f core conftest.err conftest.$ac_objext \
6470 conftest$ac_exeext conftest.$ac_ext
6472 rm -f "${LEX_OUTPUT_ROOT}.c"
6475 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6476 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6477 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6479 cat >>confdefs.h <<\_ACEOF
6480 #define YYTEXT_POINTER 1
6488 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6489 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6490 if test "$LEX" != "flex"; then
6491 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6492 echo "$as_me: error: flex not found but required" >&2;}
6493 { (exit 1); exit 1; }; }
6499 { echo "$as_me:$LINENO: checking " >&5
6500 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6501 if test "${llvm_cv_has_bison+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 for ac_prog in 'bison -y' byacc
6506 # Extract the first word of "$ac_prog", so it can be a program name with args.
6507 set dummy $ac_prog; ac_word=$2
6508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6510 if test "${ac_cv_prog_YACC+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6513 if test -n "$YACC"; then
6514 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 test -z "$as_dir" && as_dir=.
6521 for ac_exec_ext in '' $ac_executable_extensions; do
6522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6523 ac_cv_prog_YACC="$ac_prog"
6524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 YACC=$ac_cv_prog_YACC
6534 if test -n "$YACC"; then
6535 { echo "$as_me:$LINENO: result: $YACC" >&5
6536 echo "${ECHO_T}$YACC" >&6; }
6538 { echo "$as_me:$LINENO: result: no" >&5
6539 echo "${ECHO_T}no" >&6; }
6543 test -n "$YACC" && break
6545 test -n "$YACC" || YACC="yacc"
6548 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6549 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6550 if test "$YACC" != "bison -y"; then
6552 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6553 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6559 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6560 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6561 if test "${lt_cv_path_NM+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 if test -n "$NM"; then
6565 # Let the user override the test.
6568 lt_nm_to_check="${ac_tool_prefix}nm"
6569 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6570 lt_nm_to_check="$lt_nm_to_check nm"
6572 for lt_tmp_nm in $lt_nm_to_check; do
6573 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6574 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6576 test -z "$ac_dir" && ac_dir=.
6577 tmp_nm="$ac_dir/$lt_tmp_nm"
6578 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6579 # Check to see if the nm accepts a BSD-compat flag.
6580 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6581 # nm: unknown option "B" ignored
6582 # Tru64's nm complains that /dev/null is an invalid object file
6583 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6584 */dev/null* | *'Invalid file or object type'*)
6585 lt_cv_path_NM="$tmp_nm -B"
6589 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6591 lt_cv_path_NM="$tmp_nm -p"
6595 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6596 continue # so that we can try to find one that supports BSD flags
6605 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6608 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6609 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6614 { echo "$as_me:$LINENO: checking for GNU make" >&5
6615 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6616 if test "${llvm_cv_gnu_make_command+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 llvm_cv_gnu_make_command=''
6620 for a in "$MAKE" make gmake gnumake ; do
6621 if test -z "$a" ; then continue ; fi ;
6622 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6624 llvm_cv_gnu_make_command=$a ;
6629 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6630 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6631 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6635 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6636 echo "${ECHO_T}\"Not found\"" >&6; };
6640 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6641 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6643 if test "$LN_S" = "ln -s"; then
6644 { echo "$as_me:$LINENO: result: yes" >&5
6645 echo "${ECHO_T}yes" >&6; }
6647 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6648 echo "${ECHO_T}no, using $LN_S" >&6; }
6651 # Extract the first word of "cmp", so it can be a program name with args.
6652 set dummy cmp; ac_word=$2
6653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6655 if test "${ac_cv_path_CMP+set}" = set; then
6656 echo $ECHO_N "(cached) $ECHO_C" >&6
6660 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6670 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6683 if test -n "$CMP"; then
6684 { echo "$as_me:$LINENO: result: $CMP" >&5
6685 echo "${ECHO_T}$CMP" >&6; }
6687 { echo "$as_me:$LINENO: result: no" >&5
6688 echo "${ECHO_T}no" >&6; }
6692 # Extract the first word of "cp", so it can be a program name with args.
6693 set dummy cp; ac_word=$2
6694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6696 if test "${ac_cv_path_CP+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6711 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6724 if test -n "$CP"; then
6725 { echo "$as_me:$LINENO: result: $CP" >&5
6726 echo "${ECHO_T}$CP" >&6; }
6728 { echo "$as_me:$LINENO: result: no" >&5
6729 echo "${ECHO_T}no" >&6; }
6733 # Extract the first word of "date", so it can be a program name with args.
6734 set dummy date; ac_word=$2
6735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6737 if test "${ac_cv_path_DATE+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6752 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6764 DATE=$ac_cv_path_DATE
6765 if test -n "$DATE"; then
6766 { echo "$as_me:$LINENO: result: $DATE" >&5
6767 echo "${ECHO_T}$DATE" >&6; }
6769 { echo "$as_me:$LINENO: result: no" >&5
6770 echo "${ECHO_T}no" >&6; }
6774 # Extract the first word of "find", so it can be a program name with args.
6775 set dummy find; ac_word=$2
6776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6778 if test "${ac_cv_path_FIND+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 test -z "$as_dir" && as_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6793 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6805 FIND=$ac_cv_path_FIND
6806 if test -n "$FIND"; then
6807 { echo "$as_me:$LINENO: result: $FIND" >&5
6808 echo "${ECHO_T}$FIND" >&6; }
6810 { echo "$as_me:$LINENO: result: no" >&5
6811 echo "${ECHO_T}no" >&6; }
6815 # Extract the first word of "grep", so it can be a program name with args.
6816 set dummy grep; ac_word=$2
6817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6819 if test "${ac_cv_path_GREP+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6842 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6846 GREP=$ac_cv_path_GREP
6847 if test -n "$GREP"; then
6848 { echo "$as_me:$LINENO: result: $GREP" >&5
6849 echo "${ECHO_T}$GREP" >&6; }
6851 { echo "$as_me:$LINENO: result: no" >&5
6852 echo "${ECHO_T}no" >&6; }
6856 # Extract the first word of "mkdir", so it can be a program name with args.
6857 set dummy mkdir; ac_word=$2
6858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6860 if test "${ac_cv_path_MKDIR+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6865 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6875 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6887 MKDIR=$ac_cv_path_MKDIR
6888 if test -n "$MKDIR"; then
6889 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6890 echo "${ECHO_T}$MKDIR" >&6; }
6892 { echo "$as_me:$LINENO: result: no" >&5
6893 echo "${ECHO_T}no" >&6; }
6897 # Extract the first word of "mv", so it can be a program name with args.
6898 set dummy mv; ac_word=$2
6899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6901 if test "${ac_cv_path_MV+set}" = set; then
6902 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6916 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6924 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6929 if test -n "$MV"; then
6930 { echo "$as_me:$LINENO: result: $MV" >&5
6931 echo "${ECHO_T}$MV" >&6; }
6933 { echo "$as_me:$LINENO: result: no" >&5
6934 echo "${ECHO_T}no" >&6; }
6938 if test -n "$ac_tool_prefix"; then
6939 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6940 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6943 if test "${ac_cv_prog_RANLIB+set}" = set; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6946 if test -n "$RANLIB"; then
6947 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6956 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 RANLIB=$ac_cv_prog_RANLIB
6967 if test -n "$RANLIB"; then
6968 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6969 echo "${ECHO_T}$RANLIB" >&6; }
6971 { echo "$as_me:$LINENO: result: no" >&5
6972 echo "${ECHO_T}no" >&6; }
6977 if test -z "$ac_cv_prog_RANLIB"; then
6978 ac_ct_RANLIB=$RANLIB
6979 # Extract the first word of "ranlib", so it can be a program name with args.
6980 set dummy ranlib; ac_word=$2
6981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6983 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 if test -n "$ac_ct_RANLIB"; then
6987 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6996 ac_cv_prog_ac_ct_RANLIB="ranlib"
6997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7006 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7007 if test -n "$ac_ct_RANLIB"; then
7008 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7009 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7011 { echo "$as_me:$LINENO: result: no" >&5
7012 echo "${ECHO_T}no" >&6; }
7015 if test "x$ac_ct_RANLIB" = x; then
7018 case $cross_compiling:$ac_tool_warned in
7020 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7021 whose name does not start with the host triplet. If you think this
7022 configuration is useful to you, please write to autoconf@gnu.org." >&5
7023 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7024 whose name does not start with the host triplet. If you think this
7025 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7026 ac_tool_warned=yes ;;
7028 RANLIB=$ac_ct_RANLIB
7031 RANLIB="$ac_cv_prog_RANLIB"
7034 # Extract the first word of "rm", so it can be a program name with args.
7035 set dummy rm; ac_word=$2
7036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038 if test "${ac_cv_path_RM+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7053 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7066 if test -n "$RM"; then
7067 { echo "$as_me:$LINENO: result: $RM" >&5
7068 echo "${ECHO_T}$RM" >&6; }
7070 { echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6; }
7075 # Extract the first word of "sed", so it can be a program name with args.
7076 set dummy sed; ac_word=$2
7077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7079 if test "${ac_cv_path_SED+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7084 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 test -z "$as_dir" && as_dir=.
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7094 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7102 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7107 if test -n "$SED"; then
7108 { echo "$as_me:$LINENO: result: $SED" >&5
7109 echo "${ECHO_T}$SED" >&6; }
7111 { echo "$as_me:$LINENO: result: no" >&5
7112 echo "${ECHO_T}no" >&6; }
7116 # Extract the first word of "tar", so it can be a program name with args.
7117 set dummy tar; ac_word=$2
7118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7120 if test "${ac_cv_path_TAR+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7135 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7148 if test -n "$TAR"; then
7149 { echo "$as_me:$LINENO: result: $TAR" >&5
7150 echo "${ECHO_T}$TAR" >&6; }
7152 { echo "$as_me:$LINENO: result: no" >&5
7153 echo "${ECHO_T}no" >&6; }
7157 # Extract the first word of "pwd", so it can be a program name with args.
7158 set dummy pwd; ac_word=$2
7159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161 if test "${ac_cv_path_BINPWD+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7176 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7188 BINPWD=$ac_cv_path_BINPWD
7189 if test -n "$BINPWD"; then
7190 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7191 echo "${ECHO_T}$BINPWD" >&6; }
7193 { echo "$as_me:$LINENO: result: no" >&5
7194 echo "${ECHO_T}no" >&6; }
7199 # Extract the first word of "Graphviz", so it can be a program name with args.
7200 set dummy Graphviz; ac_word=$2
7201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7203 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7208 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 test -z "$as_dir" && as_dir=.
7216 for ac_exec_ext in '' $ac_executable_extensions; do
7217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7218 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7226 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7230 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7231 if test -n "$GRAPHVIZ"; then
7232 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7233 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7235 { echo "$as_me:$LINENO: result: no" >&5
7236 echo "${ECHO_T}no" >&6; }
7240 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7242 cat >>confdefs.h <<\_ACEOF
7243 #define HAVE_GRAPHVIZ 1
7246 if test "$llvm_cv_os_type" = "MingW" ; then
7247 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7250 cat >>confdefs.h <<_ACEOF
7251 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7255 # Extract the first word of "dot", so it can be a program name with args.
7256 set dummy dot; ac_word=$2
7257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7259 if test "${ac_cv_path_DOT+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 test -z "$as_dir" && as_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7274 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7287 if test -n "$DOT"; then
7288 { echo "$as_me:$LINENO: result: $DOT" >&5
7289 echo "${ECHO_T}$DOT" >&6; }
7291 { echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6; }
7296 if test "$DOT" != "echo dot" ; then
7298 cat >>confdefs.h <<\_ACEOF
7302 if test "$llvm_cv_os_type" = "MingW" ; then
7303 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7306 cat >>confdefs.h <<_ACEOF
7307 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7311 for ac_prog in gv gsview32
7313 # Extract the first word of "$ac_prog", so it can be a program name with args.
7314 set dummy $ac_prog; 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_GV+set}" = set; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 ac_cv_path_GV="$GV" # 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_GV="$as_dir/$ac_word$ac_exec_ext"
7333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7344 if test -n "$GV"; then
7345 { echo "$as_me:$LINENO: result: $GV" >&5
7346 echo "${ECHO_T}$GV" >&6; }
7348 { echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6; }
7353 test -n "$GV" && break
7355 test -n "$GV" || GV="echo gv"
7357 if test "$GV" != "echo gv" ; then
7359 cat >>confdefs.h <<\_ACEOF
7363 if test "$llvm_cv_os_type" = "MingW" ; then
7364 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7367 cat >>confdefs.h <<_ACEOF
7368 #define LLVM_PATH_GV "$GV${EXEEXT}"
7372 # Extract the first word of "dotty", so it can be a program name with args.
7373 set dummy dotty; ac_word=$2
7374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7376 if test "${ac_cv_path_DOTTY+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 test -z "$as_dir" && as_dir=.
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7391 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7399 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7403 DOTTY=$ac_cv_path_DOTTY
7404 if test -n "$DOTTY"; then
7405 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7406 echo "${ECHO_T}$DOTTY" >&6; }
7408 { echo "$as_me:$LINENO: result: no" >&5
7409 echo "${ECHO_T}no" >&6; }
7413 if test "$DOTTY" != "echo dotty" ; then
7415 cat >>confdefs.h <<\_ACEOF
7416 #define HAVE_DOTTY 1
7419 if test "$llvm_cv_os_type" = "MingW" ; then
7420 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7423 cat >>confdefs.h <<_ACEOF
7424 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7430 # Extract the first word of "perl", so it can be a program name with args.
7431 set dummy perl; ac_word=$2
7432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7434 if test "${ac_cv_path_PERL+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7439 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7449 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7457 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7461 PERL=$ac_cv_path_PERL
7462 if test -n "$PERL"; then
7463 { echo "$as_me:$LINENO: result: $PERL" >&5
7464 echo "${ECHO_T}$PERL" >&6; }
7466 { echo "$as_me:$LINENO: result: no" >&5
7467 echo "${ECHO_T}no" >&6; }
7471 if test "$PERL" != "none"; then
7472 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7473 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7474 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7475 { echo "$as_me:$LINENO: result: yes" >&5
7476 echo "${ECHO_T}yes" >&6; }
7479 { echo "$as_me:$LINENO: result: not found" >&5
7480 echo "${ECHO_T}not found" >&6; }
7485 if test x"$PERL" = xnone; then
7488 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7489 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7490 { (exit 1); exit 1; }; }
7496 # Find a good install program. We prefer a C program (faster),
7497 # so one script is as good as another. But avoid the broken or
7498 # incompatible versions:
7499 # SysV /etc/install, /usr/sbin/install
7500 # SunOS /usr/etc/install
7501 # IRIX /sbin/install
7503 # AmigaOS /C/install, which installs bootblocks on floppy discs
7504 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7505 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7506 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7507 # OS/2's system install, which has a completely different semantic
7508 # ./install, which can be erroneously created by make from ./install.sh.
7509 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7510 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7511 if test -z "$INSTALL"; then
7512 if test "${ac_cv_path_install+set}" = set; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 test -z "$as_dir" && as_dir=.
7520 # Account for people who put trailing slashes in PATH elements.
7522 ./ | .// | /cC/* | \
7523 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7524 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7527 # OSF1 and SCO ODT 3.0 have their own names for install.
7528 # Don't use installbsd from OSF since it installs stuff as root
7530 for ac_prog in ginstall scoinst install; do
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7533 if test $ac_prog = install &&
7534 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7535 # AIX install. It has an incompatible calling convention.
7537 elif test $ac_prog = install &&
7538 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7539 # program-specific install script used by HP pwplus--don't use.
7542 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7555 if test "${ac_cv_path_install+set}" = set; then
7556 INSTALL=$ac_cv_path_install
7558 # As a last resort, use the slow shell script. Don't cache a
7559 # value for INSTALL within a source directory, because that will
7560 # break other packages using the cache if that directory is
7561 # removed, or if the value is a relative name.
7562 INSTALL=$ac_install_sh
7565 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7566 echo "${ECHO_T}$INSTALL" >&6; }
7568 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7569 # It thinks the first close brace ends the variable substitution.
7570 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7572 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7574 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7577 # Extract the first word of "bzip2", so it can be a program name with args.
7578 set dummy bzip2; ac_word=$2
7579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7581 if test "${ac_cv_path_BZIP2+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 test -z "$as_dir" && as_dir=.
7594 for ac_exec_ext in '' $ac_executable_extensions; do
7595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7596 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7608 BZIP2=$ac_cv_path_BZIP2
7609 if test -n "$BZIP2"; then
7610 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7611 echo "${ECHO_T}$BZIP2" >&6; }
7613 { echo "$as_me:$LINENO: result: no" >&5
7614 echo "${ECHO_T}no" >&6; }
7618 # Extract the first word of "doxygen", so it can be a program name with args.
7619 set dummy doxygen; ac_word=$2
7620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7622 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634 test -z "$as_dir" && as_dir=.
7635 for ac_exec_ext in '' $ac_executable_extensions; do
7636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7637 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7649 DOXYGEN=$ac_cv_path_DOXYGEN
7650 if test -n "$DOXYGEN"; then
7651 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7652 echo "${ECHO_T}$DOXYGEN" >&6; }
7654 { echo "$as_me:$LINENO: result: no" >&5
7655 echo "${ECHO_T}no" >&6; }
7659 # Extract the first word of "groff", so it can be a program name with args.
7660 set dummy groff; ac_word=$2
7661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7663 if test "${ac_cv_path_GROFF+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 test -z "$as_dir" && as_dir=.
7676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7678 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7690 GROFF=$ac_cv_path_GROFF
7691 if test -n "$GROFF"; then
7692 { echo "$as_me:$LINENO: result: $GROFF" >&5
7693 echo "${ECHO_T}$GROFF" >&6; }
7695 { echo "$as_me:$LINENO: result: no" >&5
7696 echo "${ECHO_T}no" >&6; }
7700 # Extract the first word of "gzip", so it can be a program name with args.
7701 set dummy gzip; ac_word=$2
7702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7704 if test "${ac_cv_path_GZIP+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 test -z "$as_dir" && as_dir=.
7717 for ac_exec_ext in '' $ac_executable_extensions; do
7718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7719 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7727 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7731 GZIP=$ac_cv_path_GZIP
7732 if test -n "$GZIP"; then
7733 { echo "$as_me:$LINENO: result: $GZIP" >&5
7734 echo "${ECHO_T}$GZIP" >&6; }
7736 { echo "$as_me:$LINENO: result: no" >&5
7737 echo "${ECHO_T}no" >&6; }
7741 # Extract the first word of "pod2html", so it can be a program name with args.
7742 set dummy pod2html; ac_word=$2
7743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7745 if test "${ac_cv_path_POD2HTML+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7760 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7772 POD2HTML=$ac_cv_path_POD2HTML
7773 if test -n "$POD2HTML"; then
7774 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7775 echo "${ECHO_T}$POD2HTML" >&6; }
7777 { echo "$as_me:$LINENO: result: no" >&5
7778 echo "${ECHO_T}no" >&6; }
7782 # Extract the first word of "pod2man", so it can be a program name with args.
7783 set dummy pod2man; ac_word=$2
7784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7786 if test "${ac_cv_path_POD2MAN+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7801 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7813 POD2MAN=$ac_cv_path_POD2MAN
7814 if test -n "$POD2MAN"; then
7815 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7816 echo "${ECHO_T}$POD2MAN" >&6; }
7818 { echo "$as_me:$LINENO: result: no" >&5
7819 echo "${ECHO_T}no" >&6; }
7823 # Extract the first word of "runtest", so it can be a program name with args.
7824 set dummy runtest; ac_word=$2
7825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7827 if test "${ac_cv_path_RUNTEST+set}" = set; then
7828 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7842 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7854 RUNTEST=$ac_cv_path_RUNTEST
7855 if test -n "$RUNTEST"; then
7856 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7857 echo "${ECHO_T}$RUNTEST" >&6; }
7859 { echo "$as_me:$LINENO: result: no" >&5
7860 echo "${ECHO_T}no" >&6; }
7866 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7867 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7869 # Check whether --with-tclinclude was given.
7870 if test "${with_tclinclude+set}" = set; then
7871 withval=$with_tclinclude; with_tclinclude=${withval}
7876 if test "${ac_cv_path_tclsh+set}" = set; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 if test x"${with_tclinclude}" != x ; then
7881 if test -f ${with_tclinclude}/tclsh ; then
7882 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7883 elif test -f ${with_tclinclude}/src/tclsh ; then
7884 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7886 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7887 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7888 { (exit 1); exit 1; }; }
7892 if test x"${ac_cv_path_tclsh}" = x ; then
7893 { echo "$as_me:$LINENO: result: none" >&5
7894 echo "${ECHO_T}none" >&6; }
7895 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
7897 # Extract the first word of "$ac_prog", so it can be a program name with args.
7898 set dummy $ac_prog; ac_word=$2
7899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7901 if test "${ac_cv_path_TCLSH+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7906 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7916 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7927 TCLSH=$ac_cv_path_TCLSH
7928 if test -n "$TCLSH"; then
7929 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7930 echo "${ECHO_T}$TCLSH" >&6; }
7932 { echo "$as_me:$LINENO: result: no" >&5
7933 echo "${ECHO_T}no" >&6; }
7937 test -n "$TCLSH" && break
7940 if test x"${TCLSH}" = x ; then
7941 ac_cv_path_tclsh='';
7943 ac_cv_path_tclsh="${TCLSH}";
7946 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7947 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7948 TCLSH="${ac_cv_path_tclsh}"
7954 # Extract the first word of "zip", so it can be a program name with args.
7955 set dummy zip; ac_word=$2
7956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7958 if test "${ac_cv_path_ZIP+set}" = set; then
7959 echo $ECHO_N "(cached) $ECHO_C" >&6
7963 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970 test -z "$as_dir" && as_dir=.
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7973 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7986 if test -n "$ZIP"; then
7987 { echo "$as_me:$LINENO: result: $ZIP" >&5
7988 echo "${ECHO_T}$ZIP" >&6; }
7990 { echo "$as_me:$LINENO: result: no" >&5
7991 echo "${ECHO_T}no" >&6; }
7995 # Extract the first word of "ocamlc", so it can be a program name with args.
7996 set dummy ocamlc; ac_word=$2
7997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7999 if test "${ac_cv_path_OCAMLC+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8004 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8011 test -z "$as_dir" && as_dir=.
8012 for ac_exec_ext in '' $ac_executable_extensions; do
8013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8014 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8022 test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
8026 OCAMLC=$ac_cv_path_OCAMLC
8027 if test -n "$OCAMLC"; then
8028 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8029 echo "${ECHO_T}$OCAMLC" >&6; }
8031 { echo "$as_me:$LINENO: result: no" >&5
8032 echo "${ECHO_T}no" >&6; }
8036 # Extract the first word of "ocamlopt", so it can be a program name with args.
8037 set dummy ocamlopt; ac_word=$2
8038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8040 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
8045 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 test -z "$as_dir" && as_dir=.
8053 for ac_exec_ext in '' $ac_executable_extensions; do
8054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8055 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
8067 OCAMLOPT=$ac_cv_path_OCAMLOPT
8068 if test -n "$OCAMLOPT"; then
8069 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8070 echo "${ECHO_T}$OCAMLOPT" >&6; }
8072 { echo "$as_me:$LINENO: result: no" >&5
8073 echo "${ECHO_T}no" >&6; }
8077 # Extract the first word of "ocamldep", so it can be a program name with args.
8078 set dummy ocamldep; ac_word=$2
8079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8081 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8082 echo $ECHO_N "(cached) $ECHO_C" >&6
8086 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8093 test -z "$as_dir" && as_dir=.
8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8096 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8104 test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found""
8108 OCAMLDEP=$ac_cv_path_OCAMLDEP
8109 if test -n "$OCAMLDEP"; then
8110 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8111 echo "${ECHO_T}$OCAMLDEP" >&6; }
8113 { echo "$as_me:$LINENO: result: no" >&5
8114 echo "${ECHO_T}no" >&6; }
8119 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8120 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8121 if test "${llvm_cv_link_use_r+set}" = set; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8125 ac_cpp='$CPP $CPPFLAGS'
8126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8131 CFLAGS="$CFLAGS -Wl,-R."
8132 cat >conftest.$ac_ext <<_ACEOF
8135 cat confdefs.h >>conftest.$ac_ext
8136 cat >>conftest.$ac_ext <<_ACEOF
8137 /* end confdefs.h. */
8142 int main() { return 0; }
8147 rm -f conftest.$ac_objext conftest$ac_exeext
8148 if { (ac_try="$ac_link"
8150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8151 *) ac_try_echo=$ac_try;;
8153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8154 (eval "$ac_link") 2>conftest.er1
8156 grep -v '^ *+' conftest.er1 >conftest.err
8158 cat conftest.err >&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } &&
8161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8162 { (case "(($ac_try" in
8163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8164 *) ac_try_echo=$ac_try;;
8166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8167 (eval "$ac_try") 2>&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); }; } &&
8171 { ac_try='test -s conftest$ac_exeext'
8172 { (case "(($ac_try" in
8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177 (eval "$ac_try") 2>&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); }; }; then
8181 llvm_cv_link_use_r=yes
8183 echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8186 llvm_cv_link_use_r=no
8189 rm -f core conftest.err conftest.$ac_objext \
8190 conftest$ac_exeext conftest.$ac_ext
8193 ac_cpp='$CPP $CPPFLAGS'
8194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8200 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8201 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8202 if test "$llvm_cv_link_use_r" = yes ; then
8204 cat >>confdefs.h <<\_ACEOF
8205 #define HAVE_LINK_R 1
8213 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8214 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8215 if test "${ac_cv_c_const+set}" = set; then
8216 echo $ECHO_N "(cached) $ECHO_C" >&6
8218 cat >conftest.$ac_ext <<_ACEOF
8221 cat confdefs.h >>conftest.$ac_ext
8222 cat >>conftest.$ac_ext <<_ACEOF
8223 /* end confdefs.h. */
8228 /* FIXME: Include the comments suggested by Paul. */
8230 /* Ultrix mips cc rejects this. */
8231 typedef int charset[2];
8233 /* SunOS 4.1.1 cc rejects this. */
8234 char const *const *ccp;
8236 /* NEC SVR4.0.2 mips cc rejects this. */
8237 struct point {int x, y;};
8238 static struct point const zero = {0,0};
8239 /* AIX XL C 1.02.0.0 rejects this.
8240 It does not let you subtract one const X* pointer from another in
8241 an arm of an if-expression whose if-part is not a constant
8243 const char *g = "string";
8244 ccp = &g + (g ? g-g : 0);
8245 /* HPUX 7.0 cc rejects these. */
8248 ccp = (char const *const *) p;
8249 { /* SCO 3.2v4 cc rejects this. */
8251 char const *s = 0 ? (char *) 0 : (char const *) 0;
8256 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8258 const int *foo = &x[0];
8261 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8262 typedef const int *iptr;
8266 { /* AIX XL C 1.02.0.0 rejects this saying
8267 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8268 struct s { int j; const int *ap[3]; };
8269 struct s *b; b->j = 5;
8271 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8275 return !x[0] && !zero.x;
8282 rm -f conftest.$ac_objext
8283 if { (ac_try="$ac_compile"
8285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286 *) ac_try_echo=$ac_try;;
8288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8289 (eval "$ac_compile") 2>conftest.er1
8291 grep -v '^ *+' conftest.er1 >conftest.err
8293 cat conftest.err >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } &&
8296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8297 { (case "(($ac_try" in
8298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299 *) ac_try_echo=$ac_try;;
8301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8302 (eval "$ac_try") 2>&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; } &&
8306 { ac_try='test -s conftest.$ac_objext'
8307 { (case "(($ac_try" in
8308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8309 *) ac_try_echo=$ac_try;;
8311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8312 (eval "$ac_try") 2>&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; }; then
8318 echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8326 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8327 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8328 if test $ac_cv_c_const = no; then
8330 cat >>confdefs.h <<\_ACEOF
8342 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8343 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8344 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8345 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 cat >conftest.$ac_ext <<_ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8355 #include <sys/types.h>
8367 rm -f conftest.$ac_objext
8368 if { (ac_try="$ac_compile"
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374 (eval "$ac_compile") 2>conftest.er1
8376 grep -v '^ *+' conftest.er1 >conftest.err
8378 cat conftest.err >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } &&
8381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8382 { (case "(($ac_try" in
8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384 *) ac_try_echo=$ac_try;;
8386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387 (eval "$ac_try") 2>&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; } &&
8391 { ac_try='test -s conftest.$ac_objext'
8392 { (case "(($ac_try" in
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397 (eval "$ac_try") 2>&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; }; then
8401 eval "$as_ac_Header=yes"
8403 echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8406 eval "$as_ac_Header=no"
8409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8411 ac_res=`eval echo '${'$as_ac_Header'}'`
8412 { echo "$as_me:$LINENO: result: $ac_res" >&5
8413 echo "${ECHO_T}$ac_res" >&6; }
8414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8415 cat >>confdefs.h <<_ACEOF
8416 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8419 ac_header_dirent=$ac_hdr; break
8423 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8424 if test $ac_header_dirent = dirent.h; then
8425 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8426 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8427 if test "${ac_cv_search_opendir+set}" = set; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8430 ac_func_search_save_LIBS=$LIBS
8431 cat >conftest.$ac_ext <<_ACEOF
8434 cat confdefs.h >>conftest.$ac_ext
8435 cat >>conftest.$ac_ext <<_ACEOF
8436 /* end confdefs.h. */
8438 /* Override any GCC internal prototype to avoid an error.
8439 Use char because int might match the return type of a GCC
8440 builtin and then its argument prototype would still apply. */
8453 for ac_lib in '' dir; do
8454 if test -z "$ac_lib"; then
8455 ac_res="none required"
8458 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8460 rm -f conftest.$ac_objext conftest$ac_exeext
8461 if { (ac_try="$ac_link"
8463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464 *) ac_try_echo=$ac_try;;
8466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467 (eval "$ac_link") 2>conftest.er1
8469 grep -v '^ *+' conftest.er1 >conftest.err
8471 cat conftest.err >&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); } &&
8474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8475 { (case "(($ac_try" in
8476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477 *) ac_try_echo=$ac_try;;
8479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480 (eval "$ac_try") 2>&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; } &&
8484 { ac_try='test -s conftest$ac_exeext'
8485 { (case "(($ac_try" in
8486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487 *) ac_try_echo=$ac_try;;
8489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490 (eval "$ac_try") 2>&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; }; then
8494 ac_cv_search_opendir=$ac_res
8496 echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8502 rm -f core conftest.err conftest.$ac_objext \
8504 if test "${ac_cv_search_opendir+set}" = set; then
8508 if test "${ac_cv_search_opendir+set}" = set; then
8511 ac_cv_search_opendir=no
8514 LIBS=$ac_func_search_save_LIBS
8516 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8517 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8518 ac_res=$ac_cv_search_opendir
8519 if test "$ac_res" != no; then
8520 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8525 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8526 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8527 if test "${ac_cv_search_opendir+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8530 ac_func_search_save_LIBS=$LIBS
8531 cat >conftest.$ac_ext <<_ACEOF
8534 cat confdefs.h >>conftest.$ac_ext
8535 cat >>conftest.$ac_ext <<_ACEOF
8536 /* end confdefs.h. */
8538 /* Override any GCC internal prototype to avoid an error.
8539 Use char because int might match the return type of a GCC
8540 builtin and then its argument prototype would still apply. */
8553 for ac_lib in '' x; do
8554 if test -z "$ac_lib"; then
8555 ac_res="none required"
8558 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8560 rm -f conftest.$ac_objext conftest$ac_exeext
8561 if { (ac_try="$ac_link"
8563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564 *) ac_try_echo=$ac_try;;
8566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8567 (eval "$ac_link") 2>conftest.er1
8569 grep -v '^ *+' conftest.er1 >conftest.err
8571 cat conftest.err >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } &&
8574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8575 { (case "(($ac_try" in
8576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577 *) ac_try_echo=$ac_try;;
8579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8580 (eval "$ac_try") 2>&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); }; } &&
8584 { ac_try='test -s conftest$ac_exeext'
8585 { (case "(($ac_try" in
8586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587 *) ac_try_echo=$ac_try;;
8589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8590 (eval "$ac_try") 2>&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8594 ac_cv_search_opendir=$ac_res
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8602 rm -f core conftest.err conftest.$ac_objext \
8604 if test "${ac_cv_search_opendir+set}" = set; then
8608 if test "${ac_cv_search_opendir+set}" = set; then
8611 ac_cv_search_opendir=no
8614 LIBS=$ac_func_search_save_LIBS
8616 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8617 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8618 ac_res=$ac_cv_search_opendir
8619 if test "$ac_res" != no; then
8620 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8627 for ac_header in dlfcn.h
8629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8636 ac_res=`eval echo '${'$as_ac_Header'}'`
8637 { echo "$as_me:$LINENO: result: $ac_res" >&5
8638 echo "${ECHO_T}$ac_res" >&6; }
8640 # Is the header compilable?
8641 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8643 cat >conftest.$ac_ext <<_ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8649 $ac_includes_default
8650 #include <$ac_header>
8652 rm -f conftest.$ac_objext
8653 if { (ac_try="$ac_compile"
8655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656 *) ac_try_echo=$ac_try;;
8658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8659 (eval "$ac_compile") 2>conftest.er1
8661 grep -v '^ *+' conftest.er1 >conftest.err
8663 cat conftest.err >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); } &&
8666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8667 { (case "(($ac_try" in
8668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8669 *) ac_try_echo=$ac_try;;
8671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8672 (eval "$ac_try") 2>&5
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }; } &&
8676 { ac_try='test -s conftest.$ac_objext'
8677 { (case "(($ac_try" in
8678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679 *) ac_try_echo=$ac_try;;
8681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8682 (eval "$ac_try") 2>&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; }; then
8686 ac_header_compiler=yes
8688 echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.$ac_ext >&5
8691 ac_header_compiler=no
8694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8696 echo "${ECHO_T}$ac_header_compiler" >&6; }
8698 # Is the header present?
8699 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8701 cat >conftest.$ac_ext <<_ACEOF
8704 cat confdefs.h >>conftest.$ac_ext
8705 cat >>conftest.$ac_ext <<_ACEOF
8706 /* end confdefs.h. */
8707 #include <$ac_header>
8709 if { (ac_try="$ac_cpp conftest.$ac_ext"
8711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8712 *) ac_try_echo=$ac_try;;
8714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8717 grep -v '^ *+' conftest.er1 >conftest.err
8719 cat conftest.err >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } >/dev/null; then
8722 if test -s conftest.err; then
8723 ac_cpp_err=$ac_c_preproc_warn_flag
8724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8731 if test -z "$ac_cpp_err"; then
8732 ac_header_preproc=yes
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8737 ac_header_preproc=no
8740 rm -f conftest.err conftest.$ac_ext
8741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8742 echo "${ECHO_T}$ac_header_preproc" >&6; }
8744 # So? What about this header?
8745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8751 ac_header_preproc=yes
8754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8761 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8767 ## ----------------------------------- ##
8768 ## Report this to llvmbugs@cs.uiuc.edu ##
8769 ## ----------------------------------- ##
8771 ) | sed "s/^/$as_me: WARNING: /" >&2
8774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
8779 eval "$as_ac_Header=\$ac_header_preproc"
8781 ac_res=`eval echo '${'$as_ac_Header'}'`
8782 { echo "$as_me:$LINENO: result: $ac_res" >&5
8783 echo "${ECHO_T}$ac_res" >&6; }
8786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8787 cat >>confdefs.h <<_ACEOF
8788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8795 # Check whether --enable-ltdl-install was given.
8796 if test "${enable_ltdl_install+set}" = set; then
8797 enableval=$enable_ltdl_install;
8803 if test x"${enable_ltdl_install-no}" != xno; then
8805 INSTALL_LTDL_FALSE='#'
8807 INSTALL_LTDL_TRUE='#'
8813 if test x"${enable_ltdl_convenience-no}" != xno; then
8814 CONVENIENCE_LTDL_TRUE=
8815 CONVENIENCE_LTDL_FALSE='#'
8817 CONVENIENCE_LTDL_TRUE='#'
8818 CONVENIENCE_LTDL_FALSE=
8822 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8823 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8825 libname_spec='lib$name'
8833 shlibpath_overrides_runpath=unknown
8835 dynamic_linker="$host_os ld.so"
8836 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8837 if test "$GCC" = yes; then
8838 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8839 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8840 # if the path contains ";" then we assume it to be the separator
8841 # otherwise default to the standard path separator (i.e. ":") - it is
8842 # assumed that no part of a normal pathname contains ";" but that should
8843 # okay in the real world where ";" in dirpaths is itself problematic.
8844 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8846 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8849 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8851 need_lib_prefix=unknown
8852 hardcode_into_libs=no
8854 # when you set need_version to no, make sure it does not cause -set_version
8855 # flags to be left without arguments
8856 need_version=unknown
8861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8862 shlibpath_var=LIBPATH
8864 # AIX 3 has no versioning support, so we append a major version to the name.
8865 soname_spec='${libname}${release}${shared_ext}$major'
8872 hardcode_into_libs=yes
8873 if test "$host_cpu" = ia64; then
8874 # AIX 5 supports IA64
8875 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8876 shlibpath_var=LD_LIBRARY_PATH
8878 # With GCC up to 2.95.x, collect2 would create an import file
8879 # for dependence libraries. The import file would start with
8880 # the line `#! .'. This would cause the generated library to
8881 # depend on `.', always an invalid library. This was fixed in
8882 # development snapshots of GCC prior to 3.0.
8884 aix4 | aix4.[01] | aix4.[01].*)
8885 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8887 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8894 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8895 # soname into executable. Probably we can add versioning support to
8896 # collect2, so additional links can be useful in future.
8897 if test "$aix_use_runtimelinking" = yes; then
8898 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8899 # instead of lib<name>.a to let people know that these are not
8900 # typical AIX shared libraries.
8901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8903 # We preserve .a as extension for shared libraries through AIX4.2
8904 # and later when we are not doing run time linking.
8905 library_names_spec='${libname}${release}.a $libname.a'
8906 soname_spec='${libname}${release}${shared_ext}$major'
8908 shlibpath_var=LIBPATH
8913 library_names_spec='$libname.ixlibrary $libname.a'
8914 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8915 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'
8919 library_names_spec='${libname}${shared_ext}'
8920 dynamic_linker="$host_os ld.so"
8921 shlibpath_var=LIBRARY_PATH
8927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8928 soname_spec='${libname}${release}${shared_ext}$major'
8929 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8930 shlibpath_var=LD_LIBRARY_PATH
8931 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8932 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8933 # the default ld.so.conf also contains /usr/contrib/lib and
8934 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8935 # libtool to hard-code these into programs
8938 cygwin* | mingw* | pw32*)
8939 version_type=windows
8944 case $GCC,$host_os in
8945 yes,cygwin* | yes,mingw* | yes,pw32*)
8946 library_names_spec='$libname.dll.a'
8947 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8948 postinstall_cmds='base_file=`basename \${file}`~
8949 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8950 dldir=$destdir/`dirname \$dlpath`~
8951 test -d \$dldir || mkdir -p \$dldir~
8952 $install_prog $dir/$dlname \$dldir/$dlname~
8953 chmod a+x \$dldir/$dlname'
8954 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8955 dlpath=$dir/\$dldll~
8957 shlibpath_overrides_runpath=yes
8961 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8962 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8963 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8966 # MinGW DLLs use traditional 'lib' prefix
8967 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8968 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8969 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8970 # It is most probably a Windows format PATH printed by
8971 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8972 # path with ; separators, and with drive letters. We can handle the
8973 # drive letters (cygwin fileutils understands them), so leave them,
8974 # especially as we might pass files found there to a mingw objdump,
8975 # which wouldn't understand a cygwinified path. Ahh.
8976 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8978 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8982 # pw32 DLLs use 'pw' prefix rather than 'lib'
8983 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8989 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8992 dynamic_linker='Win32 ld.exe'
8993 # FIXME: first we should search . and the directory the executable is in
8997 darwin* | rhapsody*)
8998 dynamic_linker="$host_os dyld"
9002 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9003 soname_spec='${libname}${release}${major}$shared_ext'
9004 shlibpath_overrides_runpath=yes
9005 shlibpath_var=DYLD_LIBRARY_PATH
9006 shrext_cmds='.dylib'
9007 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9008 if test "$GCC" = yes; then
9009 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"`
9011 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9013 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9021 soname_spec='${libname}${release}${shared_ext}$major'
9022 shlibpath_var=LD_LIBRARY_PATH
9033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9034 soname_spec='${libname}${release}${shared_ext}$major'
9035 shlibpath_var=LD_LIBRARY_PATH
9036 shlibpath_overrides_runpath=no
9037 hardcode_into_libs=yes
9038 dynamic_linker='GNU ld.so'
9041 freebsd* | dragonfly*)
9042 # DragonFly does not have aout. When/if they implement a new
9043 # versioning mechanism, adjust this.
9044 if test -x /usr/bin/objformat; then
9045 objformat=`/usr/bin/objformat`
9048 freebsd[123]*) objformat=aout ;;
9052 version_type=freebsd-$objformat
9053 case $version_type in
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9060 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9064 shlibpath_var=LD_LIBRARY_PATH
9067 shlibpath_overrides_runpath=yes
9069 freebsd3.[01]* | freebsdelf3.[01]*)
9070 shlibpath_overrides_runpath=yes
9071 hardcode_into_libs=yes
9073 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9074 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9075 shlibpath_overrides_runpath=no
9076 hardcode_into_libs=yes
9078 freebsd*) # from 4.6 on
9079 shlibpath_overrides_runpath=yes
9080 hardcode_into_libs=yes
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9090 soname_spec='${libname}${release}${shared_ext}$major'
9091 shlibpath_var=LD_LIBRARY_PATH
9092 hardcode_into_libs=yes
9095 hpux9* | hpux10* | hpux11*)
9096 # Give a soname corresponding to the major version so that dld.sl refuses to
9097 # link against other versions.
9104 hardcode_into_libs=yes
9105 dynamic_linker="$host_os dld.so"
9106 shlibpath_var=LD_LIBRARY_PATH
9107 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9109 soname_spec='${libname}${release}${shared_ext}$major'
9110 if test "X$HPUX_IA64_MODE" = X32; then
9111 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9113 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9119 hardcode_into_libs=yes
9120 dynamic_linker="$host_os dld.sl"
9121 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9122 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9124 soname_spec='${libname}${release}${shared_ext}$major'
9125 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9130 dynamic_linker="$host_os dld.sl"
9131 shlibpath_var=SHLIB_PATH
9132 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9134 soname_spec='${libname}${release}${shared_ext}$major'
9137 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9138 postinstall_cmds='chmod 555 $lib'
9145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9146 soname_spec='${libname}${release}${shared_ext}$major'
9147 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9148 shlibpath_var=LD_LIBRARY_PATH
9149 shlibpath_overrides_runpath=no
9150 hardcode_into_libs=yes
9153 irix5* | irix6* | nonstopux*)
9155 nonstopux*) version_type=nonstopux ;;
9157 if test "$lt_cv_prog_gnu_ld" = yes; then
9165 soname_spec='${libname}${release}${shared_ext}$major'
9166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9168 irix5* | nonstopux*)
9172 case $LD in # libtool.m4 will add one of these switches to LD
9173 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9174 libsuff= shlibsuff= libmagic=32-bit;;
9175 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9176 libsuff=32 shlibsuff=N32 libmagic=N32;;
9177 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9178 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9179 *) libsuff= shlibsuff= libmagic=never-match;;
9183 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9184 shlibpath_overrides_runpath=no
9185 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9186 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9187 hardcode_into_libs=yes
9190 # No shared lib support for Linux oldld, aout, or coff.
9191 linux*oldld* | linux*aout* | linux*coff*)
9195 # This must be Linux ELF.
9200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9201 soname_spec='${libname}${release}${shared_ext}$major'
9202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9203 shlibpath_var=LD_LIBRARY_PATH
9204 shlibpath_overrides_runpath=no
9205 # This implies no fast_install, which is unacceptable.
9206 # Some rework will be needed to allow for fast_install
9207 # before this can be enabled.
9208 hardcode_into_libs=yes
9210 # Append ld.so.conf contents to the search path
9211 if test -f /etc/ld.so.conf; then
9212 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' ' '`
9213 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9216 # We used to test for /lib/ld.so.1 and disable shared libraries on
9217 # powerpc, because MkLinux only supported shared libraries with the
9218 # GNU dynamic linker. Since this was broken with cross compilers,
9219 # most powerpc-linux boxes support dynamic linking these days and
9220 # people can always --disable-shared, the test was removed, and we
9221 # assume the GNU/Linux dynamic linker is in use.
9222 dynamic_linker='GNU/Linux ld.so'
9229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9230 soname_spec='${libname}${release}${shared_ext}$major'
9231 shlibpath_var=LD_LIBRARY_PATH
9232 shlibpath_overrides_runpath=no
9233 hardcode_into_libs=yes
9234 dynamic_linker='GNU ld.so'
9241 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9243 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9244 dynamic_linker='NetBSD (a.out) ld.so'
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9247 soname_spec='${libname}${release}${shared_ext}$major'
9248 dynamic_linker='NetBSD ld.elf_so'
9250 shlibpath_var=LD_LIBRARY_PATH
9251 shlibpath_overrides_runpath=yes
9252 hardcode_into_libs=yes
9257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258 shlibpath_var=LD_LIBRARY_PATH
9259 shlibpath_overrides_runpath=yes
9266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9267 soname_spec='${libname}${release}${shared_ext}$major'
9268 shlibpath_var=LD_LIBRARY_PATH
9269 shlibpath_overrides_runpath=yes
9274 sys_lib_dlsearch_path_spec="/usr/lib"
9276 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9278 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9279 *) need_version=no ;;
9281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9283 shlibpath_var=LD_LIBRARY_PATH
9284 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9286 openbsd2.[89] | openbsd2.[89].*)
9287 shlibpath_overrides_runpath=no
9290 shlibpath_overrides_runpath=yes
9294 shlibpath_overrides_runpath=yes
9299 libname_spec='$name'
9302 library_names_spec='$libname${shared_ext} $libname.a'
9303 dynamic_linker='OS/2 ld.exe'
9304 shlibpath_var=LIBPATH
9307 osf3* | osf4* | osf5*)
9311 soname_spec='${libname}${release}${shared_ext}$major'
9312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9313 shlibpath_var=LD_LIBRARY_PATH
9314 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9315 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9323 soname_spec='${libname}${release}${shared_ext}$major'
9324 shlibpath_var=LD_LIBRARY_PATH
9325 shlibpath_overrides_runpath=yes
9326 hardcode_into_libs=yes
9327 # ldd complains unless libraries are executable
9328 postinstall_cmds='chmod +x $lib'
9333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9334 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9335 shlibpath_var=LD_LIBRARY_PATH
9336 shlibpath_overrides_runpath=yes
9337 if test "$with_gnu_ld" = yes; then
9345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9346 soname_spec='${libname}${release}${shared_ext}$major'
9347 shlibpath_var=LD_LIBRARY_PATH
9348 case $host_vendor in
9350 shlibpath_overrides_runpath=no
9352 export_dynamic_flag_spec='${wl}-Blargedynsym'
9353 runpath_var=LD_RUN_PATH
9361 shlibpath_overrides_runpath=no
9362 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9368 if test -d /usr/nec ;then
9370 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9371 soname_spec='$libname${shared_ext}.$major'
9372 shlibpath_var=LD_LIBRARY_PATH
9376 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9377 version_type=freebsd-elf
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9381 soname_spec='${libname}${release}${shared_ext}$major'
9382 shlibpath_var=LD_LIBRARY_PATH
9383 hardcode_into_libs=yes
9384 if test "$with_gnu_ld" = yes; then
9385 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9386 shlibpath_overrides_runpath=no
9388 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9389 shlibpath_overrides_runpath=yes
9392 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9396 sys_lib_dlsearch_path_spec='/usr/lib'
9401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9402 soname_spec='${libname}${release}${shared_ext}$major'
9403 shlibpath_var=LD_LIBRARY_PATH
9410 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9411 echo "${ECHO_T}$dynamic_linker" >&6; }
9412 test "$dynamic_linker" = no && can_build_shared=no
9414 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9415 if test "$GCC" = yes; then
9416 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9420 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9421 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9422 if test "${libltdl_cv_shlibext+set}" = set; then
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9427 eval libltdl_cv_shlibext=$shrext_cmds
9430 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9431 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9432 if test -n "$libltdl_cv_shlibext"; then
9434 cat >>confdefs.h <<_ACEOF
9435 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9441 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9442 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9443 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9446 libltdl_cv_shlibpath_var="$shlibpath_var"
9448 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9449 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9450 if test -n "$libltdl_cv_shlibpath_var"; then
9452 cat >>confdefs.h <<_ACEOF
9453 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9459 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9460 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9461 if test "${libltdl_cv_sys_search_path+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9464 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9466 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9467 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9468 if test -n "$libltdl_cv_sys_search_path"; then
9470 for dir in $libltdl_cv_sys_search_path; do
9471 if test -z "$sys_search_path"; then
9472 sys_search_path="$dir"
9474 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9478 cat >>confdefs.h <<_ACEOF
9479 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9484 { echo "$as_me:$LINENO: checking for objdir" >&5
9485 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9486 if test "${libltdl_cv_objdir+set}" = set; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9489 libltdl_cv_objdir="$objdir"
9490 if test -n "$objdir"; then
9493 rm -f .libs 2>/dev/null
9494 mkdir .libs 2>/dev/null
9495 if test -d .libs; then
9496 libltdl_cv_objdir=.libs
9498 # MS-DOS does not allow filenames that begin with a dot.
9499 libltdl_cv_objdir=_libs
9501 rmdir .libs 2>/dev/null
9505 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9506 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9508 cat >>confdefs.h <<_ACEOF
9509 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9517 # Check for command to grab the raw symbol name followed by C symbol from nm.
9518 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9519 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9520 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9521 echo $ECHO_N "(cached) $ECHO_C" >&6
9524 # These are sane defaults that work on at least a few old systems.
9525 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9527 # Character class describing NM global symbol codes.
9528 symcode='[BCDEGRST]'
9530 # Regexp to match symbols that can be accessed directly from C.
9531 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9533 # Transform an extracted symbol line into a proper C declaration
9534 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9536 # Transform an extracted symbol line into symbol name and symbol address
9537 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'"
9539 # Define system-specific variables.
9544 cygwin* | mingw* | pw32*)
9545 symcode='[ABCDGISTW]'
9547 hpux*) # Its linker distinguishes data from code symbols
9548 if test "$host_cpu" = ia64; then
9549 symcode='[ABCDEGRST]'
9551 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9552 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'"
9555 if test "$host_cpu" = ia64; then
9556 symcode='[ABCDGIRSTW]'
9557 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9558 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'"
9562 symcode='[BCDEGRST]'
9565 symcode='[BCDEGQRST]'
9576 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9584 # Handle CRLF in mingw tool chain
9588 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9592 # If we're using GNU nm, then use its standard symbol codes.
9593 case `$NM -V 2>&1` in
9594 *GNU* | *'with BFD'*)
9595 symcode='[ABCDGIRSTW]' ;;
9598 # Try without a prefix undercore, then with it.
9599 for ac_symprfx in "" "_"; do
9601 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9602 symxfrm="\\1 $ac_symprfx\\2 \\2"
9604 # Write the raw and C identifiers.
9605 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9607 # Check to see that the pipe works correctly.
9611 cat > conftest.$ac_ext <<EOF
9616 void nm_test_func(){}
9620 int main(){nm_test_var='a';nm_test_func();return(0);}
9623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9624 (eval $ac_compile) 2>&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; then
9628 # Now try to grab the symbols.
9630 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9631 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } && test -s "$nlist"; then
9635 # Try sorting and uniquifying the output.
9636 if sort "$nlist" | uniq > "$nlist"T; then
9637 mv -f "$nlist"T "$nlist"
9642 # Make sure that we snagged all the symbols we need.
9643 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9644 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9645 cat <<EOF > conftest.$ac_ext
9651 # Now generate the symbol file.
9652 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9654 cat <<EOF >> conftest.$ac_ext
9655 #if defined (__STDC__) && __STDC__
9656 # define lt_ptr_t void *
9658 # define lt_ptr_t char *
9662 /* The mapping between symbol names and symbols. */
9667 lt_preloaded_symbols[] =
9670 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9671 cat <<\EOF >> conftest.$ac_ext
9679 # Now try linking the two files.
9680 mv conftest.$ac_objext conftstm.$ac_objext
9681 lt_save_LIBS="$LIBS"
9682 lt_save_CFLAGS="$CFLAGS"
9683 LIBS="conftstm.$ac_objext"
9684 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9686 (eval $ac_link) 2>&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9692 LIBS="$lt_save_LIBS"
9693 CFLAGS="$lt_save_CFLAGS"
9695 echo "cannot find nm_test_func in $nlist" >&5
9698 echo "cannot find nm_test_var in $nlist" >&5
9701 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9704 echo "$progname: failed program was:" >&5
9705 cat conftest.$ac_ext >&5
9707 rm -f conftest* conftst*
9709 # Do not use the global_symbol_pipe unless it works.
9710 if test "$pipe_works" = yes; then
9713 lt_cv_sys_global_symbol_pipe=
9719 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9720 lt_cv_sys_global_symbol_to_cdecl=
9722 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9723 { echo "$as_me:$LINENO: result: failed" >&5
9724 echo "${ECHO_T}failed" >&6; }
9726 { echo "$as_me:$LINENO: result: ok" >&5
9727 echo "${ECHO_T}ok" >&6; }
9731 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9732 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9733 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9737 libltdl_cv_preloaded_symbols=yes
9739 libltdl_cv_preloaded_symbols=no
9743 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9744 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9745 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9747 cat >>confdefs.h <<\_ACEOF
9748 #define HAVE_PRELOADED_SYMBOLS 1
9756 ac_cpp='$CPP $CPPFLAGS'
9757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9762 { echo "$as_me:$LINENO: checking for shl_load" >&5
9763 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9764 if test "${ac_cv_func_shl_load+set}" = set; then
9765 echo $ECHO_N "(cached) $ECHO_C" >&6
9767 cat >conftest.$ac_ext <<_ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h. */
9773 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9775 #define shl_load innocuous_shl_load
9777 /* System header to define __stub macros and hopefully few prototypes,
9778 which can conflict with char shl_load (); below.
9779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9780 <limits.h> exists even on freestanding compilers. */
9783 # include <limits.h>
9785 # include <assert.h>
9790 /* Override any GCC internal prototype to avoid an error.
9791 Use char because int might match the return type of a GCC
9792 builtin and then its argument prototype would still apply. */
9797 /* The GNU C library defines this for functions which it implements
9798 to always fail with ENOSYS. Some functions are actually named
9799 something starting with __ and the normal name is an alias. */
9800 #if defined __stub_shl_load || defined __stub___shl_load
9812 rm -f conftest.$ac_objext conftest$ac_exeext
9813 if { (ac_try="$ac_link"
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_link") 2>conftest.er1
9821 grep -v '^ *+' conftest.er1 >conftest.err
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
9826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9827 { (case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_try") 2>&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; } &&
9836 { ac_try='test -s conftest$ac_exeext'
9837 { (case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_try") 2>&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; }; then
9846 ac_cv_func_shl_load=yes
9848 echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9851 ac_cv_func_shl_load=no
9854 rm -f core conftest.err conftest.$ac_objext \
9855 conftest$ac_exeext conftest.$ac_ext
9857 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9858 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9859 if test $ac_cv_func_shl_load = yes; then
9861 cat >>confdefs.h <<\_ACEOF
9862 #define HAVE_SHL_LOAD 1
9866 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9867 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9868 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9871 ac_check_lib_save_LIBS=$LIBS
9873 cat >conftest.$ac_ext <<_ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9880 /* Override any GCC internal prototype to avoid an error.
9881 Use char because int might match the return type of a GCC
9882 builtin and then its argument prototype would still apply. */
9895 rm -f conftest.$ac_objext conftest$ac_exeext
9896 if { (ac_try="$ac_link"
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_link") 2>conftest.er1
9904 grep -v '^ *+' conftest.er1 >conftest.err
9906 cat conftest.err >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } &&
9909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9910 { (case "(($ac_try" in
9911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9912 *) ac_try_echo=$ac_try;;
9914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9915 (eval "$ac_try") 2>&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); }; } &&
9919 { ac_try='test -s conftest$ac_exeext'
9920 { (case "(($ac_try" in
9921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9922 *) ac_try_echo=$ac_try;;
9924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9925 (eval "$ac_try") 2>&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; }; then
9929 ac_cv_lib_dld_shl_load=yes
9931 echo "$as_me: failed program was:" >&5
9932 sed 's/^/| /' conftest.$ac_ext >&5
9934 ac_cv_lib_dld_shl_load=no
9937 rm -f core conftest.err conftest.$ac_objext \
9938 conftest$ac_exeext conftest.$ac_ext
9939 LIBS=$ac_check_lib_save_LIBS
9941 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9942 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9943 if test $ac_cv_lib_dld_shl_load = yes; then
9945 cat >>confdefs.h <<\_ACEOF
9946 #define HAVE_SHL_LOAD 1
9949 LIBADD_DL="$LIBADD_DL -ldld"
9951 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9952 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9953 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 ac_check_lib_save_LIBS=$LIBS
9958 cat >conftest.$ac_ext <<_ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h. */
9965 /* Override any GCC internal prototype to avoid an error.
9966 Use char because int might match the return type of a GCC
9967 builtin and then its argument prototype would still apply. */
9980 rm -f conftest.$ac_objext conftest$ac_exeext
9981 if { (ac_try="$ac_link"
9983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9984 *) ac_try_echo=$ac_try;;
9986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9987 (eval "$ac_link") 2>conftest.er1
9989 grep -v '^ *+' conftest.er1 >conftest.err
9991 cat conftest.err >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } &&
9994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9995 { (case "(($ac_try" in
9996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997 *) ac_try_echo=$ac_try;;
9999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000 (eval "$ac_try") 2>&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; } &&
10004 { ac_try='test -s conftest$ac_exeext'
10005 { (case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 (eval "$ac_try") 2>&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; }; then
10014 ac_cv_lib_dl_dlopen=yes
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10019 ac_cv_lib_dl_dlopen=no
10022 rm -f core conftest.err conftest.$ac_objext \
10023 conftest$ac_exeext conftest.$ac_ext
10024 LIBS=$ac_check_lib_save_LIBS
10026 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10027 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10028 if test $ac_cv_lib_dl_dlopen = yes; then
10030 cat >>confdefs.h <<\_ACEOF
10031 #define HAVE_LIBDL 1
10034 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10036 cat >conftest.$ac_ext <<_ACEOF
10039 cat confdefs.h >>conftest.$ac_ext
10040 cat >>conftest.$ac_ext <<_ACEOF
10041 /* end confdefs.h. */
10043 # include <dlfcn.h>
10054 rm -f conftest.$ac_objext conftest$ac_exeext
10055 if { (ac_try="$ac_link"
10056 case "(($ac_try" in
10057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10058 *) ac_try_echo=$ac_try;;
10060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10061 (eval "$ac_link") 2>conftest.er1
10063 grep -v '^ *+' conftest.er1 >conftest.err
10065 cat conftest.err >&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); } &&
10068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10069 { (case "(($ac_try" in
10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_try") 2>&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; } &&
10078 { ac_try='test -s conftest$ac_exeext'
10079 { (case "(($ac_try" in
10080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10081 *) ac_try_echo=$ac_try;;
10083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084 (eval "$ac_try") 2>&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; }; then
10089 cat >>confdefs.h <<\_ACEOF
10090 #define HAVE_LIBDL 1
10092 libltdl_cv_func_dlopen="yes"
10094 echo "$as_me: failed program was:" >&5
10095 sed 's/^/| /' conftest.$ac_ext >&5
10097 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10098 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10099 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10102 ac_check_lib_save_LIBS=$LIBS
10103 LIBS="-lsvld $LIBS"
10104 cat >conftest.$ac_ext <<_ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10111 /* Override any GCC internal prototype to avoid an error.
10112 Use char because int might match the return type of a GCC
10113 builtin and then its argument prototype would still apply. */
10126 rm -f conftest.$ac_objext conftest$ac_exeext
10127 if { (ac_try="$ac_link"
10128 case "(($ac_try" in
10129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130 *) ac_try_echo=$ac_try;;
10132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133 (eval "$ac_link") 2>conftest.er1
10135 grep -v '^ *+' conftest.er1 >conftest.err
10137 cat conftest.err >&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } &&
10140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10141 { (case "(($ac_try" in
10142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143 *) ac_try_echo=$ac_try;;
10145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146 (eval "$ac_try") 2>&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); }; } &&
10150 { ac_try='test -s conftest$ac_exeext'
10151 { (case "(($ac_try" in
10152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153 *) ac_try_echo=$ac_try;;
10155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156 (eval "$ac_try") 2>&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; }; then
10160 ac_cv_lib_svld_dlopen=yes
10162 echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.$ac_ext >&5
10165 ac_cv_lib_svld_dlopen=no
10168 rm -f core conftest.err conftest.$ac_objext \
10169 conftest$ac_exeext conftest.$ac_ext
10170 LIBS=$ac_check_lib_save_LIBS
10172 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10173 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10174 if test $ac_cv_lib_svld_dlopen = yes; then
10176 cat >>confdefs.h <<\_ACEOF
10177 #define HAVE_LIBDL 1
10180 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10182 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10183 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10184 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
10187 ac_check_lib_save_LIBS=$LIBS
10189 cat >conftest.$ac_ext <<_ACEOF
10192 cat confdefs.h >>conftest.$ac_ext
10193 cat >>conftest.$ac_ext <<_ACEOF
10194 /* end confdefs.h. */
10196 /* Override any GCC internal prototype to avoid an error.
10197 Use char because int might match the return type of a GCC
10198 builtin and then its argument prototype would still apply. */
10206 return dld_link ();
10211 rm -f conftest.$ac_objext conftest$ac_exeext
10212 if { (ac_try="$ac_link"
10213 case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218 (eval "$ac_link") 2>conftest.er1
10220 grep -v '^ *+' conftest.er1 >conftest.err
10222 cat conftest.err >&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); } &&
10225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10226 { (case "(($ac_try" in
10227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10228 *) ac_try_echo=$ac_try;;
10230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10231 (eval "$ac_try") 2>&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; } &&
10235 { ac_try='test -s conftest$ac_exeext'
10236 { (case "(($ac_try" in
10237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238 *) ac_try_echo=$ac_try;;
10240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10241 (eval "$ac_try") 2>&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; }; then
10245 ac_cv_lib_dld_dld_link=yes
10247 echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10250 ac_cv_lib_dld_dld_link=no
10253 rm -f core conftest.err conftest.$ac_objext \
10254 conftest$ac_exeext conftest.$ac_ext
10255 LIBS=$ac_check_lib_save_LIBS
10257 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10258 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10259 if test $ac_cv_lib_dld_dld_link = yes; then
10261 cat >>confdefs.h <<\_ACEOF
10265 LIBADD_DL="$LIBADD_DL -ldld"
10267 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10268 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10269 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10270 echo $ECHO_N "(cached) $ECHO_C" >&6
10272 cat >conftest.$ac_ext <<_ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10278 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10280 #define _dyld_func_lookup innocuous__dyld_func_lookup
10282 /* System header to define __stub macros and hopefully few prototypes,
10283 which can conflict with char _dyld_func_lookup (); below.
10284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10285 <limits.h> exists even on freestanding compilers. */
10288 # include <limits.h>
10290 # include <assert.h>
10293 #undef _dyld_func_lookup
10295 /* Override any GCC internal prototype to avoid an error.
10296 Use char because int might match the return type of a GCC
10297 builtin and then its argument prototype would still apply. */
10301 char _dyld_func_lookup ();
10302 /* The GNU C library defines this for functions which it implements
10303 to always fail with ENOSYS. Some functions are actually named
10304 something starting with __ and the normal name is an alias. */
10305 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10312 return _dyld_func_lookup ();
10317 rm -f conftest.$ac_objext conftest$ac_exeext
10318 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
10326 grep -v '^ *+' conftest.er1 >conftest.err
10328 cat conftest.err >&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); } &&
10331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10332 { (case "(($ac_try" in
10333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10334 *) ac_try_echo=$ac_try;;
10336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337 (eval "$ac_try") 2>&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); }; } &&
10341 { ac_try='test -s conftest$ac_exeext'
10342 { (case "(($ac_try" in
10343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10344 *) ac_try_echo=$ac_try;;
10346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10347 (eval "$ac_try") 2>&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; }; then
10351 ac_cv_func__dyld_func_lookup=yes
10353 echo "$as_me: failed program was:" >&5
10354 sed 's/^/| /' conftest.$ac_ext >&5
10356 ac_cv_func__dyld_func_lookup=no
10359 rm -f core conftest.err conftest.$ac_objext \
10360 conftest$ac_exeext conftest.$ac_ext
10362 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10363 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10364 if test $ac_cv_func__dyld_func_lookup = yes; then
10366 cat >>confdefs.h <<\_ACEOF
10367 #define HAVE_DYLD 1
10381 rm -f core conftest.err conftest.$ac_objext \
10382 conftest$ac_exeext conftest.$ac_ext
10393 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10395 lt_save_LIBS="$LIBS"
10396 LIBS="$LIBS $LIBADD_DL"
10398 for ac_func in dlerror
10400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10401 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10406 cat >conftest.$ac_ext <<_ACEOF
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h. */
10412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10414 #define $ac_func innocuous_$ac_func
10416 /* System header to define __stub macros and hopefully few prototypes,
10417 which can conflict with char $ac_func (); below.
10418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10419 <limits.h> exists even on freestanding compilers. */
10422 # include <limits.h>
10424 # include <assert.h>
10429 /* Override any GCC internal prototype to avoid an error.
10430 Use char because int might match the return type of a GCC
10431 builtin and then its argument prototype would still apply. */
10436 /* The GNU C library defines this for functions which it implements
10437 to always fail with ENOSYS. Some functions are actually named
10438 something starting with __ and the normal name is an alias. */
10439 #if defined __stub_$ac_func || defined __stub___$ac_func
10446 return $ac_func ();
10451 rm -f conftest.$ac_objext conftest$ac_exeext
10452 if { (ac_try="$ac_link"
10453 case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458 (eval "$ac_link") 2>conftest.er1
10460 grep -v '^ *+' conftest.er1 >conftest.err
10462 cat conftest.err >&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } &&
10465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10466 { (case "(($ac_try" in
10467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468 *) ac_try_echo=$ac_try;;
10470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10471 (eval "$ac_try") 2>&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; } &&
10475 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10485 eval "$as_ac_var=yes"
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10490 eval "$as_ac_var=no"
10493 rm -f core conftest.err conftest.$ac_objext \
10494 conftest$ac_exeext conftest.$ac_ext
10496 ac_res=`eval echo '${'$as_ac_var'}'`
10497 { echo "$as_me:$LINENO: result: $ac_res" >&5
10498 echo "${ECHO_T}$ac_res" >&6; }
10499 if test `eval echo '${'$as_ac_var'}'` = yes; then
10500 cat >>confdefs.h <<_ACEOF
10501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10507 LIBS="$lt_save_LIBS"
10510 ac_cpp='$CPP $CPPFLAGS'
10511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10517 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10518 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10519 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10520 echo $ECHO_N "(cached) $ECHO_C" >&6
10522 ac_cv_sys_symbol_underscore=no
10523 cat > conftest.$ac_ext <<EOF
10524 void nm_test_func(){}
10525 int main(){nm_test_func;return 0;}
10527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10528 (eval $ac_compile) 2>&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); }; then
10532 # Now try to grab the symbols.
10533 ac_nlist=conftest.nm
10534 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10535 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } && test -s "$ac_nlist"; then
10539 # See whether the symbols have a leading underscore.
10540 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10541 ac_cv_sys_symbol_underscore=yes
10543 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10546 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10550 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10553 echo "configure: failed program was:" >&5
10559 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10560 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10563 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10564 if test x"$libltdl_cv_func_dlopen" = xyes ||
10565 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10566 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10567 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10568 if test "${libltdl_cv_need_uscore+set}" = set; then
10569 echo $ECHO_N "(cached) $ECHO_C" >&6
10571 libltdl_cv_need_uscore=unknown
10573 LIBS="$LIBS $LIBADD_DL"
10574 if test "$cross_compiling" = yes; then :
10575 libltdl_cv_need_uscore=cross
10577 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10578 lt_status=$lt_dlunknown
10579 cat > conftest.$ac_ext <<EOF
10580 #line 10580 "configure"
10581 #include "confdefs.h"
10590 # define LT_DLGLOBAL RTLD_GLOBAL
10593 # define LT_DLGLOBAL DL_GLOBAL
10595 # define LT_DLGLOBAL 0
10599 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10600 find out it does not work in some platform. */
10601 #ifndef LT_DLLAZY_OR_NOW
10603 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10606 # define LT_DLLAZY_OR_NOW DL_LAZY
10609 # define LT_DLLAZY_OR_NOW RTLD_NOW
10612 # define LT_DLLAZY_OR_NOW DL_NOW
10614 # define LT_DLLAZY_OR_NOW 0
10622 extern "C" void exit (int);
10625 void fnord() { int i=42;}
10628 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10629 int status = $lt_dlunknown;
10633 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10634 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10635 /* dlclose (self); */
10643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10644 (eval $ac_link) 2>&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10648 (./conftest; exit; ) >&5 2>/dev/null
10650 case x$lt_status in
10651 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10652 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10653 x$lt_dlunknown|x*) ;;
10656 # compilation failed
10665 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10666 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10670 if test x"$libltdl_cv_need_uscore" = xyes; then
10672 cat >>confdefs.h <<\_ACEOF
10673 #define NEED_USCORE 1
10679 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10680 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10681 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10684 # PORTME does your system automatically load deplibs for dlopen?
10685 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10686 # For now, we just catch OSes we know something about -- in the
10687 # future, we'll try test this programmatically.
10688 libltdl_cv_sys_dlopen_deplibs=unknown
10690 aix3*|aix4.1.*|aix4.2.*)
10691 # Unknown whether this is true for these versions of AIX, but
10692 # we want this `case' here to explicitly catch those versions.
10693 libltdl_cv_sys_dlopen_deplibs=unknown
10696 libltdl_cv_sys_dlopen_deplibs=yes
10699 # Assuming the user has installed a libdl from somewhere, this is true
10700 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10701 libltdl_cv_sys_dlopen_deplibs=yes
10703 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10704 # GNU and its variants, using gnu ld.so (Glibc)
10705 libltdl_cv_sys_dlopen_deplibs=yes
10708 libltdl_cv_sys_dlopen_deplibs=yes
10711 libltdl_cv_sys_dlopen_deplibs=yes
10713 irix[12345]*|irix6.[01]*)
10714 # Catch all versions of IRIX before 6.2, and indicate that we don't
10715 # know how it worked for any of those versions.
10716 libltdl_cv_sys_dlopen_deplibs=unknown
10719 # The case above catches anything before 6.2, and it's known that
10720 # at 6.2 and later dlopen does load deplibs.
10721 libltdl_cv_sys_dlopen_deplibs=yes
10724 libltdl_cv_sys_dlopen_deplibs=yes
10727 libltdl_cv_sys_dlopen_deplibs=yes
10730 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10731 # it did *not* use an RPATH in a shared library to find objects the
10732 # library depends on, so we explictly say `no'.
10733 libltdl_cv_sys_dlopen_deplibs=no
10735 osf5.0|osf5.0a|osf5.1)
10736 # dlopen *does* load deplibs and with the right loader patch applied
10737 # it even uses RPATH in a shared library to search for shared objects
10738 # that the library depends on, but there's no easy way to know if that
10739 # patch is installed. Since this is the case, all we can really
10740 # say is unknown -- it depends on the patch being installed. If
10741 # it is, this changes to `yes'. Without it, it would be `no'.
10742 libltdl_cv_sys_dlopen_deplibs=unknown
10745 # the two cases above should catch all versions of osf <= 5.1. Read
10746 # the comments above for what we know about them.
10747 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10748 # is used to find them so we can finally say `yes'.
10749 libltdl_cv_sys_dlopen_deplibs=yes
10752 libltdl_cv_sys_dlopen_deplibs=yes
10754 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10755 libltdl_cv_sys_dlopen_deplibs=yes
10760 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10761 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10762 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10764 cat >>confdefs.h <<\_ACEOF
10765 #define LTDL_DLOPEN_DEPLIBS 1
10771 for ac_header in argz.h
10773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10780 ac_res=`eval echo '${'$as_ac_Header'}'`
10781 { echo "$as_me:$LINENO: result: $ac_res" >&5
10782 echo "${ECHO_T}$ac_res" >&6; }
10784 # Is the header compilable?
10785 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10787 cat >conftest.$ac_ext <<_ACEOF
10790 cat confdefs.h >>conftest.$ac_ext
10791 cat >>conftest.$ac_ext <<_ACEOF
10792 /* end confdefs.h. */
10793 $ac_includes_default
10794 #include <$ac_header>
10796 rm -f conftest.$ac_objext
10797 if { (ac_try="$ac_compile"
10798 case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803 (eval "$ac_compile") 2>conftest.er1
10805 grep -v '^ *+' conftest.er1 >conftest.err
10807 cat conftest.err >&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } &&
10810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10811 { (case "(($ac_try" in
10812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813 *) ac_try_echo=$ac_try;;
10815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816 (eval "$ac_try") 2>&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; } &&
10820 { ac_try='test -s conftest.$ac_objext'
10821 { (case "(($ac_try" in
10822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10823 *) ac_try_echo=$ac_try;;
10825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10826 (eval "$ac_try") 2>&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; }; then
10830 ac_header_compiler=yes
10832 echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.$ac_ext >&5
10835 ac_header_compiler=no
10838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10840 echo "${ECHO_T}$ac_header_compiler" >&6; }
10842 # Is the header present?
10843 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10845 cat >conftest.$ac_ext <<_ACEOF
10848 cat confdefs.h >>conftest.$ac_ext
10849 cat >>conftest.$ac_ext <<_ACEOF
10850 /* end confdefs.h. */
10851 #include <$ac_header>
10853 if { (ac_try="$ac_cpp conftest.$ac_ext"
10854 case "(($ac_try" in
10855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856 *) ac_try_echo=$ac_try;;
10858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10861 grep -v '^ *+' conftest.er1 >conftest.err
10863 cat conftest.err >&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); } >/dev/null; then
10866 if test -s conftest.err; then
10867 ac_cpp_err=$ac_c_preproc_warn_flag
10868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10875 if test -z "$ac_cpp_err"; then
10876 ac_header_preproc=yes
10878 echo "$as_me: failed program was:" >&5
10879 sed 's/^/| /' conftest.$ac_ext >&5
10881 ac_header_preproc=no
10884 rm -f conftest.err conftest.$ac_ext
10885 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10886 echo "${ECHO_T}$ac_header_preproc" >&6; }
10888 # So? What about this header?
10889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10894 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10895 ac_header_preproc=yes
10898 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10899 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10900 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10901 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10902 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10903 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10904 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10905 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10908 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10909 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10911 ## ----------------------------------- ##
10912 ## Report this to llvmbugs@cs.uiuc.edu ##
10913 ## ----------------------------------- ##
10915 ) | sed "s/^/$as_me: WARNING: /" >&2
10918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10921 echo $ECHO_N "(cached) $ECHO_C" >&6
10923 eval "$as_ac_Header=\$ac_header_preproc"
10925 ac_res=`eval echo '${'$as_ac_Header'}'`
10926 { echo "$as_me:$LINENO: result: $ac_res" >&5
10927 echo "${ECHO_T}$ac_res" >&6; }
10930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10931 cat >>confdefs.h <<_ACEOF
10932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10940 { echo "$as_me:$LINENO: checking for error_t" >&5
10941 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10942 if test "${ac_cv_type_error_t+set}" = set; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
10945 cat >conftest.$ac_ext <<_ACEOF
10948 cat confdefs.h >>conftest.$ac_ext
10949 cat >>conftest.$ac_ext <<_ACEOF
10950 /* end confdefs.h. */
10955 typedef error_t ac__type_new_;
10959 if ((ac__type_new_ *) 0)
10961 if (sizeof (ac__type_new_))
10967 rm -f conftest.$ac_objext
10968 if { (ac_try="$ac_compile"
10969 case "(($ac_try" in
10970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10971 *) ac_try_echo=$ac_try;;
10973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10974 (eval "$ac_compile") 2>conftest.er1
10976 grep -v '^ *+' conftest.er1 >conftest.err
10978 cat conftest.err >&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); } &&
10981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10982 { (case "(($ac_try" in
10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984 *) ac_try_echo=$ac_try;;
10986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10987 (eval "$ac_try") 2>&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; } &&
10991 { ac_try='test -s conftest.$ac_objext'
10992 { (case "(($ac_try" in
10993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994 *) ac_try_echo=$ac_try;;
10996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10997 (eval "$ac_try") 2>&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; }; then
11001 ac_cv_type_error_t=yes
11003 echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.$ac_ext >&5
11006 ac_cv_type_error_t=no
11009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11011 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11012 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11013 if test $ac_cv_type_error_t = yes; then
11015 cat >>confdefs.h <<_ACEOF
11016 #define HAVE_ERROR_T 1
11022 cat >>confdefs.h <<\_ACEOF
11023 #define error_t int
11034 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11042 cat >conftest.$ac_ext <<_ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11050 #define $ac_func innocuous_$ac_func
11052 /* System header to define __stub macros and hopefully few prototypes,
11053 which can conflict with char $ac_func (); below.
11054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11055 <limits.h> exists even on freestanding compilers. */
11058 # include <limits.h>
11060 # include <assert.h>
11065 /* Override any GCC internal prototype to avoid an error.
11066 Use char because int might match the return type of a GCC
11067 builtin and then its argument prototype would still apply. */
11072 /* The GNU C library defines this for functions which it implements
11073 to always fail with ENOSYS. Some functions are actually named
11074 something starting with __ and the normal name is an alias. */
11075 #if defined __stub_$ac_func || defined __stub___$ac_func
11082 return $ac_func ();
11087 rm -f conftest.$ac_objext conftest$ac_exeext
11088 if { (ac_try="$ac_link"
11089 case "(($ac_try" in
11090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11091 *) ac_try_echo=$ac_try;;
11093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11094 (eval "$ac_link") 2>conftest.er1
11096 grep -v '^ *+' conftest.er1 >conftest.err
11098 cat conftest.err >&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } &&
11101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11102 { (case "(($ac_try" in
11103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104 *) ac_try_echo=$ac_try;;
11106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11107 (eval "$ac_try") 2>&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; } &&
11111 { ac_try='test -s conftest$ac_exeext'
11112 { (case "(($ac_try" in
11113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114 *) ac_try_echo=$ac_try;;
11116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117 (eval "$ac_try") 2>&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; }; then
11121 eval "$as_ac_var=yes"
11123 echo "$as_me: failed program was:" >&5
11124 sed 's/^/| /' conftest.$ac_ext >&5
11126 eval "$as_ac_var=no"
11129 rm -f core conftest.err conftest.$ac_objext \
11130 conftest$ac_exeext conftest.$ac_ext
11132 ac_res=`eval echo '${'$as_ac_var'}'`
11133 { echo "$as_me:$LINENO: result: $ac_res" >&5
11134 echo "${ECHO_T}$ac_res" >&6; }
11135 if test `eval echo '${'$as_ac_var'}'` = yes; then
11136 cat >>confdefs.h <<_ACEOF
11137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11170 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11175 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11178 echo $ECHO_N "(cached) $ECHO_C" >&6
11180 ac_res=`eval echo '${'$as_ac_Header'}'`
11181 { echo "$as_me:$LINENO: result: $ac_res" >&5
11182 echo "${ECHO_T}$ac_res" >&6; }
11184 # Is the header compilable?
11185 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11186 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11187 cat >conftest.$ac_ext <<_ACEOF
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11193 $ac_includes_default
11194 #include <$ac_header>
11196 rm -f conftest.$ac_objext
11197 if { (ac_try="$ac_compile"
11198 case "(($ac_try" in
11199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200 *) ac_try_echo=$ac_try;;
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203 (eval "$ac_compile") 2>conftest.er1
11205 grep -v '^ *+' conftest.er1 >conftest.err
11207 cat conftest.err >&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } &&
11210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11211 { (case "(($ac_try" in
11212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213 *) ac_try_echo=$ac_try;;
11215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216 (eval "$ac_try") 2>&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); }; } &&
11220 { ac_try='test -s conftest.$ac_objext'
11221 { (case "(($ac_try" in
11222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223 *) ac_try_echo=$ac_try;;
11225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226 (eval "$ac_try") 2>&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; }; then
11230 ac_header_compiler=yes
11232 echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11235 ac_header_compiler=no
11238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11239 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11240 echo "${ECHO_T}$ac_header_compiler" >&6; }
11242 # Is the header present?
11243 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11245 cat >conftest.$ac_ext <<_ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h. */
11251 #include <$ac_header>
11253 if { (ac_try="$ac_cpp conftest.$ac_ext"
11254 case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11261 grep -v '^ *+' conftest.er1 >conftest.err
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } >/dev/null; then
11266 if test -s conftest.err; then
11267 ac_cpp_err=$ac_c_preproc_warn_flag
11268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11275 if test -z "$ac_cpp_err"; then
11276 ac_header_preproc=yes
11278 echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.$ac_ext >&5
11281 ac_header_preproc=no
11284 rm -f conftest.err conftest.$ac_ext
11285 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11286 echo "${ECHO_T}$ac_header_preproc" >&6; }
11288 # So? What about this header?
11289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11295 ac_header_preproc=yes
11298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11301 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11305 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11311 ## ----------------------------------- ##
11312 ## Report this to llvmbugs@cs.uiuc.edu ##
11313 ## ----------------------------------- ##
11315 ) | sed "s/^/$as_me: WARNING: /" >&2
11318 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11321 echo $ECHO_N "(cached) $ECHO_C" >&6
11323 eval "$as_ac_Header=\$ac_header_preproc"
11325 ac_res=`eval echo '${'$as_ac_Header'}'`
11326 { echo "$as_me:$LINENO: result: $ac_res" >&5
11327 echo "${ECHO_T}$ac_res" >&6; }
11330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11331 cat >>confdefs.h <<_ACEOF
11332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11343 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11347 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11350 echo $ECHO_N "(cached) $ECHO_C" >&6
11352 ac_res=`eval echo '${'$as_ac_Header'}'`
11353 { echo "$as_me:$LINENO: result: $ac_res" >&5
11354 echo "${ECHO_T}$ac_res" >&6; }
11356 # Is the header compilable?
11357 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11359 cat >conftest.$ac_ext <<_ACEOF
11362 cat confdefs.h >>conftest.$ac_ext
11363 cat >>conftest.$ac_ext <<_ACEOF
11364 /* end confdefs.h. */
11365 $ac_includes_default
11366 #include <$ac_header>
11368 rm -f conftest.$ac_objext
11369 if { (ac_try="$ac_compile"
11370 case "(($ac_try" in
11371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11372 *) ac_try_echo=$ac_try;;
11374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11375 (eval "$ac_compile") 2>conftest.er1
11377 grep -v '^ *+' conftest.er1 >conftest.err
11379 cat conftest.err >&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11383 { (case "(($ac_try" in
11384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385 *) ac_try_echo=$ac_try;;
11387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11388 (eval "$ac_try") 2>&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); }; } &&
11392 { ac_try='test -s conftest.$ac_objext'
11393 { (case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_try") 2>&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); }; }; then
11402 ac_header_compiler=yes
11404 echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11407 ac_header_compiler=no
11410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11412 echo "${ECHO_T}$ac_header_compiler" >&6; }
11414 # Is the header present?
11415 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11417 cat >conftest.$ac_ext <<_ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h. */
11423 #include <$ac_header>
11425 if { (ac_try="$ac_cpp conftest.$ac_ext"
11426 case "(($ac_try" in
11427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428 *) ac_try_echo=$ac_try;;
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11433 grep -v '^ *+' conftest.er1 >conftest.err
11435 cat conftest.err >&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } >/dev/null; then
11438 if test -s conftest.err; then
11439 ac_cpp_err=$ac_c_preproc_warn_flag
11440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11447 if test -z "$ac_cpp_err"; then
11448 ac_header_preproc=yes
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11453 ac_header_preproc=no
11456 rm -f conftest.err conftest.$ac_ext
11457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11458 echo "${ECHO_T}$ac_header_preproc" >&6; }
11460 # So? What about this header?
11461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11467 ac_header_preproc=yes
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11483 ## ----------------------------------- ##
11484 ## Report this to llvmbugs@cs.uiuc.edu ##
11485 ## ----------------------------------- ##
11487 ) | sed "s/^/$as_me: WARNING: /" >&2
11490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11495 eval "$as_ac_Header=\$ac_header_preproc"
11497 ac_res=`eval echo '${'$as_ac_Header'}'`
11498 { echo "$as_me:$LINENO: result: $ac_res" >&5
11499 echo "${ECHO_T}$ac_res" >&6; }
11502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11503 cat >>confdefs.h <<_ACEOF
11504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11513 for ac_header in string.h strings.h
11515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11520 echo $ECHO_N "(cached) $ECHO_C" >&6
11522 ac_res=`eval echo '${'$as_ac_Header'}'`
11523 { echo "$as_me:$LINENO: result: $ac_res" >&5
11524 echo "${ECHO_T}$ac_res" >&6; }
11526 # Is the header compilable?
11527 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11529 cat >conftest.$ac_ext <<_ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h. */
11535 $ac_includes_default
11536 #include <$ac_header>
11538 rm -f conftest.$ac_objext
11539 if { (ac_try="$ac_compile"
11540 case "(($ac_try" in
11541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11542 *) ac_try_echo=$ac_try;;
11544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11545 (eval "$ac_compile") 2>conftest.er1
11547 grep -v '^ *+' conftest.er1 >conftest.err
11549 cat conftest.err >&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } &&
11552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11553 { (case "(($ac_try" in
11554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11555 *) ac_try_echo=$ac_try;;
11557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11558 (eval "$ac_try") 2>&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); }; } &&
11562 { ac_try='test -s conftest.$ac_objext'
11563 { (case "(($ac_try" in
11564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565 *) ac_try_echo=$ac_try;;
11567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11568 (eval "$ac_try") 2>&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; }; then
11572 ac_header_compiler=yes
11574 echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11577 ac_header_compiler=no
11580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11582 echo "${ECHO_T}$ac_header_compiler" >&6; }
11584 # Is the header present?
11585 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11587 cat >conftest.$ac_ext <<_ACEOF
11590 cat confdefs.h >>conftest.$ac_ext
11591 cat >>conftest.$ac_ext <<_ACEOF
11592 /* end confdefs.h. */
11593 #include <$ac_header>
11595 if { (ac_try="$ac_cpp conftest.$ac_ext"
11596 case "(($ac_try" in
11597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11598 *) ac_try_echo=$ac_try;;
11600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11603 grep -v '^ *+' conftest.er1 >conftest.err
11605 cat conftest.err >&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } >/dev/null; then
11608 if test -s conftest.err; then
11609 ac_cpp_err=$ac_c_preproc_warn_flag
11610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11617 if test -z "$ac_cpp_err"; then
11618 ac_header_preproc=yes
11620 echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11623 ac_header_preproc=no
11626 rm -f conftest.err conftest.$ac_ext
11627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11628 echo "${ECHO_T}$ac_header_preproc" >&6; }
11630 # So? What about this header?
11631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11637 ac_header_preproc=yes
11640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11643 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11647 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11653 ## ----------------------------------- ##
11654 ## Report this to llvmbugs@cs.uiuc.edu ##
11655 ## ----------------------------------- ##
11657 ) | sed "s/^/$as_me: WARNING: /" >&2
11660 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11665 eval "$as_ac_Header=\$ac_header_preproc"
11667 ac_res=`eval echo '${'$as_ac_Header'}'`
11668 { echo "$as_me:$LINENO: result: $ac_res" >&5
11669 echo "${ECHO_T}$ac_res" >&6; }
11672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11673 cat >>confdefs.h <<_ACEOF
11674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11684 for ac_func in strchr index
11686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11687 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11689 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11692 cat >conftest.$ac_ext <<_ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h. */
11698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11700 #define $ac_func innocuous_$ac_func
11702 /* System header to define __stub macros and hopefully few prototypes,
11703 which can conflict with char $ac_func (); below.
11704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11705 <limits.h> exists even on freestanding compilers. */
11708 # include <limits.h>
11710 # include <assert.h>
11715 /* Override any GCC internal prototype to avoid an error.
11716 Use char because int might match the return type of a GCC
11717 builtin and then its argument prototype would still apply. */
11722 /* The GNU C library defines this for functions which it implements
11723 to always fail with ENOSYS. Some functions are actually named
11724 something starting with __ and the normal name is an alias. */
11725 #if defined __stub_$ac_func || defined __stub___$ac_func
11732 return $ac_func ();
11737 rm -f conftest.$ac_objext conftest$ac_exeext
11738 if { (ac_try="$ac_link"
11739 case "(($ac_try" in
11740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741 *) ac_try_echo=$ac_try;;
11743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11744 (eval "$ac_link") 2>conftest.er1
11746 grep -v '^ *+' conftest.er1 >conftest.err
11748 cat conftest.err >&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } &&
11751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11752 { (case "(($ac_try" in
11753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11754 *) ac_try_echo=$ac_try;;
11756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11757 (eval "$ac_try") 2>&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; } &&
11761 { ac_try='test -s conftest$ac_exeext'
11762 { (case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767 (eval "$ac_try") 2>&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 eval "$as_ac_var=yes"
11773 echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11776 eval "$as_ac_var=no"
11779 rm -f core conftest.err conftest.$ac_objext \
11780 conftest$ac_exeext conftest.$ac_ext
11782 ac_res=`eval echo '${'$as_ac_var'}'`
11783 { echo "$as_me:$LINENO: result: $ac_res" >&5
11784 echo "${ECHO_T}$ac_res" >&6; }
11785 if test `eval echo '${'$as_ac_var'}'` = yes; then
11786 cat >>confdefs.h <<_ACEOF
11787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11795 for ac_func in strrchr rindex
11797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11798 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11800 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11803 cat >conftest.$ac_ext <<_ACEOF
11806 cat confdefs.h >>conftest.$ac_ext
11807 cat >>conftest.$ac_ext <<_ACEOF
11808 /* end confdefs.h. */
11809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11811 #define $ac_func innocuous_$ac_func
11813 /* System header to define __stub macros and hopefully few prototypes,
11814 which can conflict with char $ac_func (); below.
11815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11816 <limits.h> exists even on freestanding compilers. */
11819 # include <limits.h>
11821 # include <assert.h>
11826 /* Override any GCC internal prototype to avoid an error.
11827 Use char because int might match the return type of a GCC
11828 builtin and then its argument prototype would still apply. */
11833 /* The GNU C library defines this for functions which it implements
11834 to always fail with ENOSYS. Some functions are actually named
11835 something starting with __ and the normal name is an alias. */
11836 #if defined __stub_$ac_func || defined __stub___$ac_func
11843 return $ac_func ();
11848 rm -f conftest.$ac_objext conftest$ac_exeext
11849 if { (ac_try="$ac_link"
11850 case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_link") 2>conftest.er1
11857 grep -v '^ *+' conftest.er1 >conftest.err
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } &&
11862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11863 { (case "(($ac_try" in
11864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11865 *) ac_try_echo=$ac_try;;
11867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11868 (eval "$ac_try") 2>&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); }; } &&
11872 { ac_try='test -s conftest$ac_exeext'
11873 { (case "(($ac_try" in
11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_try") 2>&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }; then
11882 eval "$as_ac_var=yes"
11884 echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11887 eval "$as_ac_var=no"
11890 rm -f core conftest.err conftest.$ac_objext \
11891 conftest$ac_exeext conftest.$ac_ext
11893 ac_res=`eval echo '${'$as_ac_var'}'`
11894 { echo "$as_me:$LINENO: result: $ac_res" >&5
11895 echo "${ECHO_T}$ac_res" >&6; }
11896 if test `eval echo '${'$as_ac_var'}'` = yes; then
11897 cat >>confdefs.h <<_ACEOF
11898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11906 for ac_func in memcpy bcopy
11908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
11914 cat >conftest.$ac_ext <<_ACEOF
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h. */
11920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11922 #define $ac_func innocuous_$ac_func
11924 /* System header to define __stub macros and hopefully few prototypes,
11925 which can conflict with char $ac_func (); below.
11926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11927 <limits.h> exists even on freestanding compilers. */
11930 # include <limits.h>
11932 # include <assert.h>
11937 /* Override any GCC internal prototype to avoid an error.
11938 Use char because int might match the return type of a GCC
11939 builtin and then its argument prototype would still apply. */
11944 /* The GNU C library defines this for functions which it implements
11945 to always fail with ENOSYS. Some functions are actually named
11946 something starting with __ and the normal name is an alias. */
11947 #if defined __stub_$ac_func || defined __stub___$ac_func
11954 return $ac_func ();
11959 rm -f conftest.$ac_objext conftest$ac_exeext
11960 if { (ac_try="$ac_link"
11961 case "(($ac_try" in
11962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11963 *) ac_try_echo=$ac_try;;
11965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11966 (eval "$ac_link") 2>conftest.er1
11968 grep -v '^ *+' conftest.er1 >conftest.err
11970 cat conftest.err >&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } &&
11973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11974 { (case "(($ac_try" in
11975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976 *) ac_try_echo=$ac_try;;
11978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979 (eval "$ac_try") 2>&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; } &&
11983 { ac_try='test -s conftest$ac_exeext'
11984 { (case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_try") 2>&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; }; then
11993 eval "$as_ac_var=yes"
11995 echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11998 eval "$as_ac_var=no"
12001 rm -f core conftest.err conftest.$ac_objext \
12002 conftest$ac_exeext conftest.$ac_ext
12004 ac_res=`eval echo '${'$as_ac_var'}'`
12005 { echo "$as_me:$LINENO: result: $ac_res" >&5
12006 echo "${ECHO_T}$ac_res" >&6; }
12007 if test `eval echo '${'$as_ac_var'}'` = yes; then
12008 cat >>confdefs.h <<_ACEOF
12009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12017 for ac_func in memmove strcmp
12019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12020 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12022 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12023 echo $ECHO_N "(cached) $ECHO_C" >&6
12025 cat >conftest.$ac_ext <<_ACEOF
12028 cat confdefs.h >>conftest.$ac_ext
12029 cat >>conftest.$ac_ext <<_ACEOF
12030 /* end confdefs.h. */
12031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12033 #define $ac_func innocuous_$ac_func
12035 /* System header to define __stub macros and hopefully few prototypes,
12036 which can conflict with char $ac_func (); below.
12037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12038 <limits.h> exists even on freestanding compilers. */
12041 # include <limits.h>
12043 # include <assert.h>
12048 /* Override any GCC internal prototype to avoid an error.
12049 Use char because int might match the return type of a GCC
12050 builtin and then its argument prototype would still apply. */
12055 /* The GNU C library defines this for functions which it implements
12056 to always fail with ENOSYS. Some functions are actually named
12057 something starting with __ and the normal name is an alias. */
12058 #if defined __stub_$ac_func || defined __stub___$ac_func
12065 return $ac_func ();
12070 rm -f conftest.$ac_objext conftest$ac_exeext
12071 if { (ac_try="$ac_link"
12072 case "(($ac_try" in
12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074 *) ac_try_echo=$ac_try;;
12076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077 (eval "$ac_link") 2>conftest.er1
12079 grep -v '^ *+' conftest.er1 >conftest.err
12081 cat conftest.err >&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } &&
12084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12085 { (case "(($ac_try" in
12086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087 *) ac_try_echo=$ac_try;;
12089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12090 (eval "$ac_try") 2>&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); }; } &&
12094 { ac_try='test -s conftest$ac_exeext'
12095 { (case "(($ac_try" in
12096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097 *) ac_try_echo=$ac_try;;
12099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12100 (eval "$ac_try") 2>&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12104 eval "$as_ac_var=yes"
12106 echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12109 eval "$as_ac_var=no"
12112 rm -f core conftest.err conftest.$ac_objext \
12113 conftest$ac_exeext conftest.$ac_ext
12115 ac_res=`eval echo '${'$as_ac_var'}'`
12116 { echo "$as_me:$LINENO: result: $ac_res" >&5
12117 echo "${ECHO_T}$ac_res" >&6; }
12118 if test `eval echo '${'$as_ac_var'}'` = yes; then
12119 cat >>confdefs.h <<_ACEOF
12120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12129 for ac_func in closedir opendir readdir
12131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12132 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12135 echo $ECHO_N "(cached) $ECHO_C" >&6
12137 cat >conftest.$ac_ext <<_ACEOF
12140 cat confdefs.h >>conftest.$ac_ext
12141 cat >>conftest.$ac_ext <<_ACEOF
12142 /* end confdefs.h. */
12143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12145 #define $ac_func innocuous_$ac_func
12147 /* System header to define __stub macros and hopefully few prototypes,
12148 which can conflict with char $ac_func (); below.
12149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12150 <limits.h> exists even on freestanding compilers. */
12153 # include <limits.h>
12155 # include <assert.h>
12160 /* Override any GCC internal prototype to avoid an error.
12161 Use char because int might match the return type of a GCC
12162 builtin and then its argument prototype would still apply. */
12167 /* The GNU C library defines this for functions which it implements
12168 to always fail with ENOSYS. Some functions are actually named
12169 something starting with __ and the normal name is an alias. */
12170 #if defined __stub_$ac_func || defined __stub___$ac_func
12177 return $ac_func ();
12182 rm -f conftest.$ac_objext conftest$ac_exeext
12183 if { (ac_try="$ac_link"
12184 case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189 (eval "$ac_link") 2>conftest.er1
12191 grep -v '^ *+' conftest.er1 >conftest.err
12193 cat conftest.err >&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } &&
12196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12197 { (case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_try") 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; } &&
12206 { ac_try='test -s conftest$ac_exeext'
12207 { (case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212 (eval "$ac_try") 2>&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; }; then
12216 eval "$as_ac_var=yes"
12218 echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.$ac_ext >&5
12221 eval "$as_ac_var=no"
12224 rm -f core conftest.err conftest.$ac_objext \
12225 conftest$ac_exeext conftest.$ac_ext
12227 ac_res=`eval echo '${'$as_ac_var'}'`
12228 { echo "$as_me:$LINENO: result: $ac_res" >&5
12229 echo "${ECHO_T}$ac_res" >&6; }
12230 if test `eval echo '${'$as_ac_var'}'` = yes; then
12231 cat >>confdefs.h <<_ACEOF
12232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12239 # Check whether --enable-shared was given.
12240 if test "${enable_shared+set}" = set; then
12241 enableval=$enable_shared; p=${PACKAGE-default}
12243 yes) enable_shared=yes ;;
12244 no) enable_shared=no ;;
12247 # Look at the argument we got. We use all the common list separators.
12248 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12249 for pkg in $enableval; do
12251 if test "X$pkg" = "X$p"; then
12263 # Check whether --enable-static was given.
12264 if test "${enable_static+set}" = set; then
12265 enableval=$enable_static; p=${PACKAGE-default}
12267 yes) enable_static=yes ;;
12268 no) enable_static=no ;;
12271 # Look at the argument we got. We use all the common list separators.
12272 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12273 for pkg in $enableval; do
12275 if test "X$pkg" = "X$p"; then
12287 # Check whether --enable-fast-install was given.
12288 if test "${enable_fast_install+set}" = set; then
12289 enableval=$enable_fast_install; p=${PACKAGE-default}
12291 yes) enable_fast_install=yes ;;
12292 no) enable_fast_install=no ;;
12294 enable_fast_install=no
12295 # Look at the argument we got. We use all the common list separators.
12296 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12297 for pkg in $enableval; do
12299 if test "X$pkg" = "X$p"; then
12300 enable_fast_install=yes
12307 enable_fast_install=yes
12311 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12312 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12313 if test "${lt_cv_path_SED+set}" = set; then
12314 echo $ECHO_N "(cached) $ECHO_C" >&6
12316 # Loop through the user's path and test for sed and gsed.
12317 # Then use that list of sed's as ones to test for truncation.
12318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12319 for as_dir in $PATH
12322 test -z "$as_dir" && as_dir=.
12323 for lt_ac_prog in sed gsed; do
12324 for ac_exec_ext in '' $ac_executable_extensions; do
12325 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12326 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12333 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12334 # along with /bin/sed that truncates output.
12335 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12336 test ! -f $lt_ac_sed && continue
12337 cat /dev/null > conftest.in
12339 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12340 # Check for GNU sed and select it if it is found.
12341 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12342 lt_cv_path_SED=$lt_ac_sed
12346 cat conftest.in conftest.in >conftest.tmp
12347 mv conftest.tmp conftest.in
12348 cp conftest.in conftest.nl
12350 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12351 cmp -s conftest.out conftest.nl || break
12352 # 10000 chars as input seems more than enough
12353 test $lt_ac_count -gt 10 && break
12354 lt_ac_count=`expr $lt_ac_count + 1`
12355 if test $lt_ac_count -gt $lt_ac_max; then
12356 lt_ac_max=$lt_ac_count
12357 lt_cv_path_SED=$lt_ac_sed
12364 SED=$lt_cv_path_SED
12365 { echo "$as_me:$LINENO: result: $SED" >&5
12366 echo "${ECHO_T}$SED" >&6; }
12369 # Check whether --with-gnu-ld was given.
12370 if test "${with_gnu_ld+set}" = set; then
12371 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12377 if test "$GCC" = yes; then
12378 # Check if gcc -print-prog-name=ld gives a path.
12379 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12380 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12383 # gcc leaves a trailing carriage return which upsets mingw
12384 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12386 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12389 # Accept absolute paths.
12391 re_direlt='/[^/][^/]*/\.\./'
12392 # Canonicalize the pathname of ld
12393 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12394 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12395 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12397 test -z "$LD" && LD="$ac_prog"
12400 # If it fails, then pretend we aren't using GCC.
12404 # If it is relative, then search for the first ld in PATH.
12405 with_gnu_ld=unknown
12408 elif test "$with_gnu_ld" = yes; then
12409 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12410 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12412 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12413 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12415 if test "${lt_cv_path_LD+set}" = set; then
12416 echo $ECHO_N "(cached) $ECHO_C" >&6
12418 if test -z "$LD"; then
12419 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12420 for ac_dir in $PATH; do
12422 test -z "$ac_dir" && ac_dir=.
12423 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12424 lt_cv_path_LD="$ac_dir/$ac_prog"
12425 # Check to see if the program is GNU ld. I'd rather use --version,
12426 # but apparently some variants of GNU ld only accept -v.
12427 # Break only if it was the GNU/non-GNU ld that we prefer.
12428 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12429 *GNU* | *'with BFD'*)
12430 test "$with_gnu_ld" != no && break
12433 test "$with_gnu_ld" != yes && break
12440 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12444 LD="$lt_cv_path_LD"
12445 if test -n "$LD"; then
12446 { echo "$as_me:$LINENO: result: $LD" >&5
12447 echo "${ECHO_T}$LD" >&6; }
12449 { echo "$as_me:$LINENO: result: no" >&5
12450 echo "${ECHO_T}no" >&6; }
12452 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12453 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12454 { (exit 1); exit 1; }; }
12455 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12456 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12457 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12458 echo $ECHO_N "(cached) $ECHO_C" >&6
12460 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12461 case `$LD -v 2>&1 </dev/null` in
12462 *GNU* | *'with BFD'*)
12463 lt_cv_prog_gnu_ld=yes
12466 lt_cv_prog_gnu_ld=no
12470 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12471 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12472 with_gnu_ld=$lt_cv_prog_gnu_ld
12475 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12476 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12477 if test "${lt_cv_ld_reload_flag+set}" = set; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12480 lt_cv_ld_reload_flag='-r'
12482 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12483 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12484 reload_flag=$lt_cv_ld_reload_flag
12485 case $reload_flag in
12487 *) reload_flag=" $reload_flag" ;;
12489 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12492 if test "$GCC" = yes; then
12493 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12495 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12500 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12501 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12502 if test "${lt_cv_deplibs_check_method+set}" = set; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12505 lt_cv_file_magic_cmd='$MAGIC_CMD'
12506 lt_cv_file_magic_test_file=
12507 lt_cv_deplibs_check_method='unknown'
12508 # Need to set the preceding variable on all platforms that support
12509 # interlibrary dependencies.
12510 # 'none' -- dependencies not supported.
12511 # `unknown' -- same as none, but documents that we really don't know.
12512 # 'pass_all' -- all dependencies passed with no checks.
12513 # 'test_compile' -- check by making test program.
12514 # 'file_magic [[regex]]' -- check by looking for files in library path
12515 # which responds to the $file_magic_cmd with a given extended regex.
12516 # If you have `file' or equivalent on your system and you're not sure
12517 # whether `pass_all' will *always* work, you probably want this one.
12521 lt_cv_deplibs_check_method=pass_all
12525 lt_cv_deplibs_check_method=pass_all
12529 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12530 lt_cv_file_magic_cmd='/usr/bin/file -L'
12531 lt_cv_file_magic_test_file=/shlib/libc.so
12535 # func_win32_libid is a shell function defined in ltmain.sh
12536 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12537 lt_cv_file_magic_cmd='func_win32_libid'
12541 # Base MSYS/MinGW do not provide the 'file' command needed by
12542 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12543 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12544 lt_cv_file_magic_cmd='$OBJDUMP -f'
12547 darwin* | rhapsody*)
12548 lt_cv_deplibs_check_method=pass_all
12551 freebsd* | kfreebsd*-gnu | dragonfly*)
12552 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12555 # Not sure whether the presence of OpenBSD here was a mistake.
12556 # Let's accept both of them until this is cleared up.
12557 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12558 lt_cv_file_magic_cmd=/usr/bin/file
12559 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12563 lt_cv_deplibs_check_method=pass_all
12568 lt_cv_deplibs_check_method=pass_all
12571 hpux10.20* | hpux11*)
12572 lt_cv_file_magic_cmd=/usr/bin/file
12575 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12576 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12579 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]'
12580 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12583 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12584 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12590 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12591 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12594 irix5* | irix6* | nonstopux*)
12596 *-32|*"-32 ") libmagic=32-bit;;
12597 *-n32|*"-n32 ") libmagic=N32;;
12598 *-64|*"-64 ") libmagic=64-bit;;
12599 *) libmagic=never-match;;
12601 lt_cv_deplibs_check_method=pass_all
12604 # This must be Linux ELF.
12606 lt_cv_deplibs_check_method=pass_all
12610 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12618 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12619 lt_cv_file_magic_cmd=/usr/bin/file
12620 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12624 lt_cv_deplibs_check_method=unknown
12628 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12629 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12635 osf3* | osf4* | osf5*)
12636 lt_cv_deplibs_check_method=pass_all
12640 lt_cv_deplibs_check_method=pass_all
12644 case $host_vendor in
12646 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]'
12647 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12650 lt_cv_deplibs_check_method=pass_all
12653 lt_cv_file_magic_cmd='/bin/file'
12654 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12657 lt_cv_file_magic_cmd='/bin/file'
12658 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12659 lt_cv_file_magic_test_file=/lib/libc.so
12662 lt_cv_deplibs_check_method=pass_all
12665 lt_cv_deplibs_check_method=pass_all
12670 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12671 lt_cv_deplibs_check_method=pass_all
12676 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12677 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12678 file_magic_cmd=$lt_cv_file_magic_cmd
12679 deplibs_check_method=$lt_cv_deplibs_check_method
12680 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12684 # If no C compiler was specified, use CC.
12687 # If no C compiler flags were specified, use CFLAGS.
12688 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12690 # Allow CC to be a program name with arguments.
12693 # Check whether --enable-libtool-lock was given.
12694 if test "${enable_libtool_lock+set}" = set; then
12695 enableval=$enable_libtool_lock;
12698 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12700 # Some flags need to be propagated to the compiler or linker for good
12704 # Find out which ABI we are using.
12705 echo 'int i;' > conftest.$ac_ext
12706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12707 (eval $ac_compile) 2>&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; then
12711 case `/usr/bin/file conftest.$ac_objext` in
12713 HPUX_IA64_MODE="32"
12716 HPUX_IA64_MODE="64"
12723 # Find out which ABI we are using.
12724 echo '#line 12724 "configure"' > conftest.$ac_ext
12725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12726 (eval $ac_compile) 2>&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); }; then
12730 if test "$lt_cv_prog_gnu_ld" = yes; then
12731 case `/usr/bin/file conftest.$ac_objext` in
12733 LD="${LD-ld} -melf32bsmip"
12736 LD="${LD-ld} -melf32bmipn32"
12739 LD="${LD-ld} -melf64bmip"
12743 case `/usr/bin/file conftest.$ac_objext` in
12759 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12760 # Find out which ABI we are using.
12761 echo 'int i;' > conftest.$ac_ext
12762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12763 (eval $ac_compile) 2>&5
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; then
12767 case `/usr/bin/file conftest.o` in
12771 LD="${LD-ld} -m elf_i386"
12773 ppc64-*linux*|powerpc64-*linux*)
12774 LD="${LD-ld} -m elf32ppclinux"
12777 LD="${LD-ld} -m elf_s390"
12780 LD="${LD-ld} -m elf32_sparc"
12787 LD="${LD-ld} -m elf_x86_64"
12789 ppc*-*linux*|powerpc*-*linux*)
12790 LD="${LD-ld} -m elf64ppc"
12793 LD="${LD-ld} -m elf64_s390"
12796 LD="${LD-ld} -m elf64_sparc"
12806 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12807 SAVE_CFLAGS="$CFLAGS"
12808 CFLAGS="$CFLAGS -belf"
12809 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12810 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12811 if test "${lt_cv_cc_needs_belf+set}" = set; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12815 ac_cpp='$CPP $CPPFLAGS'
12816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12820 cat >conftest.$ac_ext <<_ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h. */
12835 rm -f conftest.$ac_objext conftest$ac_exeext
12836 if { (ac_try="$ac_link"
12837 case "(($ac_try" in
12838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839 *) ac_try_echo=$ac_try;;
12841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842 (eval "$ac_link") 2>conftest.er1
12844 grep -v '^ *+' conftest.er1 >conftest.err
12846 cat conftest.err >&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } &&
12849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12850 { (case "(($ac_try" in
12851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12852 *) ac_try_echo=$ac_try;;
12854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12855 (eval "$ac_try") 2>&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; } &&
12859 { ac_try='test -s conftest$ac_exeext'
12860 { (case "(($ac_try" in
12861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12862 *) ac_try_echo=$ac_try;;
12864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12865 (eval "$ac_try") 2>&5
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; }; then
12869 lt_cv_cc_needs_belf=yes
12871 echo "$as_me: failed program was:" >&5
12872 sed 's/^/| /' conftest.$ac_ext >&5
12874 lt_cv_cc_needs_belf=no
12877 rm -f core conftest.err conftest.$ac_objext \
12878 conftest$ac_exeext conftest.$ac_ext
12880 ac_cpp='$CPP $CPPFLAGS'
12881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12886 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12887 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12888 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12889 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12890 CFLAGS="$SAVE_CFLAGS"
12894 # Find out which ABI we are using.
12895 echo 'int i;' > conftest.$ac_ext
12896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12897 (eval $ac_compile) 2>&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; then
12901 case `/usr/bin/file conftest.o` in
12903 case $lt_cv_prog_gnu_ld in
12904 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12905 *) LD="${LD-ld} -64" ;;
12916 need_locks="$enable_libtool_lock"
12921 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12922 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12923 (test "X$CXX" != "Xg++"))) ; then
12925 ac_cpp='$CXXCPP $CPPFLAGS'
12926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12929 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12930 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12931 if test -z "$CXXCPP"; then
12932 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12935 # Double quotes because CXXCPP needs to be expanded
12936 for CXXCPP in "$CXX -E" "/lib/cpp"
12938 ac_preproc_ok=false
12939 for ac_cxx_preproc_warn_flag in '' yes
12941 # Use a header file that comes with gcc, so configuring glibc
12942 # with a fresh cross-compiler works.
12943 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12944 # <limits.h> exists even on freestanding compilers.
12945 # On the NeXT, cc -E runs the code through the compiler's parser,
12946 # not just through cpp. "Syntax error" is here to catch this case.
12947 cat >conftest.$ac_ext <<_ACEOF
12950 cat confdefs.h >>conftest.$ac_ext
12951 cat >>conftest.$ac_ext <<_ACEOF
12952 /* end confdefs.h. */
12954 # include <limits.h>
12956 # include <assert.h>
12960 if { (ac_try="$ac_cpp conftest.$ac_ext"
12961 case "(($ac_try" in
12962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12963 *) ac_try_echo=$ac_try;;
12965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12968 grep -v '^ *+' conftest.er1 >conftest.err
12970 cat conftest.err >&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); } >/dev/null; then
12973 if test -s conftest.err; then
12974 ac_cpp_err=$ac_cxx_preproc_warn_flag
12975 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12982 if test -z "$ac_cpp_err"; then
12985 echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.$ac_ext >&5
12988 # Broken: fails on valid input.
12992 rm -f conftest.err conftest.$ac_ext
12994 # OK, works on sane cases. Now check whether nonexistent headers
12995 # can be detected and how.
12996 cat >conftest.$ac_ext <<_ACEOF
12999 cat confdefs.h >>conftest.$ac_ext
13000 cat >>conftest.$ac_ext <<_ACEOF
13001 /* end confdefs.h. */
13002 #include <ac_nonexistent.h>
13004 if { (ac_try="$ac_cpp conftest.$ac_ext"
13005 case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13012 grep -v '^ *+' conftest.er1 >conftest.err
13014 cat conftest.err >&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); } >/dev/null; then
13017 if test -s conftest.err; then
13018 ac_cpp_err=$ac_cxx_preproc_warn_flag
13019 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13026 if test -z "$ac_cpp_err"; then
13027 # Broken: success on invalid input.
13030 echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.$ac_ext >&5
13033 # Passes both tests.
13038 rm -f conftest.err conftest.$ac_ext
13041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13042 rm -f conftest.err conftest.$ac_ext
13043 if $ac_preproc_ok; then
13048 ac_cv_prog_CXXCPP=$CXXCPP
13051 CXXCPP=$ac_cv_prog_CXXCPP
13053 ac_cv_prog_CXXCPP=$CXXCPP
13055 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13056 echo "${ECHO_T}$CXXCPP" >&6; }
13057 ac_preproc_ok=false
13058 for ac_cxx_preproc_warn_flag in '' yes
13060 # Use a header file that comes with gcc, so configuring glibc
13061 # with a fresh cross-compiler works.
13062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13063 # <limits.h> exists even on freestanding compilers.
13064 # On the NeXT, cc -E runs the code through the compiler's parser,
13065 # not just through cpp. "Syntax error" is here to catch this case.
13066 cat >conftest.$ac_ext <<_ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h. */
13073 # include <limits.h>
13075 # include <assert.h>
13079 if { (ac_try="$ac_cpp conftest.$ac_ext"
13080 case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13087 grep -v '^ *+' conftest.er1 >conftest.err
13089 cat conftest.err >&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); } >/dev/null; then
13092 if test -s conftest.err; then
13093 ac_cpp_err=$ac_cxx_preproc_warn_flag
13094 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13101 if test -z "$ac_cpp_err"; then
13104 echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.$ac_ext >&5
13107 # Broken: fails on valid input.
13111 rm -f conftest.err conftest.$ac_ext
13113 # OK, works on sane cases. Now check whether nonexistent headers
13114 # can be detected and how.
13115 cat >conftest.$ac_ext <<_ACEOF
13118 cat confdefs.h >>conftest.$ac_ext
13119 cat >>conftest.$ac_ext <<_ACEOF
13120 /* end confdefs.h. */
13121 #include <ac_nonexistent.h>
13123 if { (ac_try="$ac_cpp conftest.$ac_ext"
13124 case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13131 grep -v '^ *+' conftest.er1 >conftest.err
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } >/dev/null; then
13136 if test -s conftest.err; then
13137 ac_cpp_err=$ac_cxx_preproc_warn_flag
13138 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13145 if test -z "$ac_cpp_err"; then
13146 # Broken: success on invalid input.
13149 echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.$ac_ext >&5
13152 # Passes both tests.
13157 rm -f conftest.err conftest.$ac_ext
13160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13161 rm -f conftest.err conftest.$ac_ext
13162 if $ac_preproc_ok; then
13165 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13166 See \`config.log' for more details." >&5
13167 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13168 See \`config.log' for more details." >&2;}
13169 { (exit 1); exit 1; }; }
13173 ac_cpp='$CXXCPP $CPPFLAGS'
13174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13182 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13183 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13184 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13185 if test -n "$ac_tool_prefix"; then
13186 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
13188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13192 if test "${ac_cv_prog_F77+set}" = set; then
13193 echo $ECHO_N "(cached) $ECHO_C" >&6
13195 if test -n "$F77"; then
13196 ac_cv_prog_F77="$F77" # Let the user override the test.
13198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13199 for as_dir in $PATH
13202 test -z "$as_dir" && as_dir=.
13203 for ac_exec_ext in '' $ac_executable_extensions; do
13204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13205 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13215 F77=$ac_cv_prog_F77
13216 if test -n "$F77"; then
13217 { echo "$as_me:$LINENO: result: $F77" >&5
13218 echo "${ECHO_T}$F77" >&6; }
13220 { echo "$as_me:$LINENO: result: no" >&5
13221 echo "${ECHO_T}no" >&6; }
13225 test -n "$F77" && break
13228 if test -z "$F77"; then
13230 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
13232 # Extract the first word of "$ac_prog", so it can be a program name with args.
13233 set dummy $ac_prog; ac_word=$2
13234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13236 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13237 echo $ECHO_N "(cached) $ECHO_C" >&6
13239 if test -n "$ac_ct_F77"; then
13240 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13243 for as_dir in $PATH
13246 test -z "$as_dir" && as_dir=.
13247 for ac_exec_ext in '' $ac_executable_extensions; do
13248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13249 ac_cv_prog_ac_ct_F77="$ac_prog"
13250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13259 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13260 if test -n "$ac_ct_F77"; then
13261 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13262 echo "${ECHO_T}$ac_ct_F77" >&6; }
13264 { echo "$as_me:$LINENO: result: no" >&5
13265 echo "${ECHO_T}no" >&6; }
13269 test -n "$ac_ct_F77" && break
13272 if test "x$ac_ct_F77" = x; then
13275 case $cross_compiling:$ac_tool_warned in
13277 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13278 whose name does not start with the host triplet. If you think this
13279 configuration is useful to you, please write to autoconf@gnu.org." >&5
13280 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13281 whose name does not start with the host triplet. If you think this
13282 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13283 ac_tool_warned=yes ;;
13290 # Provide some information about the compiler.
13291 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13292 ac_compiler=`set X $ac_compile; echo $2`
13293 { (ac_try="$ac_compiler --version >&5"
13294 case "(($ac_try" in
13295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13296 *) ac_try_echo=$ac_try;;
13298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13299 (eval "$ac_compiler --version >&5") 2>&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); }
13303 { (ac_try="$ac_compiler -v >&5"
13304 case "(($ac_try" in
13305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306 *) ac_try_echo=$ac_try;;
13308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309 (eval "$ac_compiler -v >&5") 2>&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }
13313 { (ac_try="$ac_compiler -V >&5"
13314 case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_compiler -V >&5") 2>&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }
13325 # If we don't use `.F' as extension, the preprocessor is not run on the
13326 # input file. (Note that this only needs to work for GNU compilers.)
13327 ac_save_ext=$ac_ext
13329 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13330 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13331 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13332 echo $ECHO_N "(cached) $ECHO_C" >&6
13334 cat >conftest.$ac_ext <<_ACEOF
13342 rm -f conftest.$ac_objext
13343 if { (ac_try="$ac_compile"
13344 case "(($ac_try" in
13345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13346 *) ac_try_echo=$ac_try;;
13348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13349 (eval "$ac_compile") 2>conftest.er1
13351 grep -v '^ *+' conftest.er1 >conftest.err
13353 cat conftest.err >&5
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); } &&
13356 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13357 { (case "(($ac_try" in
13358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13359 *) ac_try_echo=$ac_try;;
13361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13362 (eval "$ac_try") 2>&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); }; } &&
13366 { ac_try='test -s conftest.$ac_objext'
13367 { (case "(($ac_try" in
13368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369 *) ac_try_echo=$ac_try;;
13371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372 (eval "$ac_try") 2>&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; }; then
13376 ac_compiler_gnu=yes
13378 echo "$as_me: failed program was:" >&5
13379 sed 's/^/| /' conftest.$ac_ext >&5
13384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13385 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13388 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13389 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13390 ac_ext=$ac_save_ext
13391 ac_test_FFLAGS=${FFLAGS+set}
13392 ac_save_FFLAGS=$FFLAGS
13394 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13395 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13396 if test "${ac_cv_prog_f77_g+set}" = set; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13400 cat >conftest.$ac_ext <<_ACEOF
13405 rm -f conftest.$ac_objext
13406 if { (ac_try="$ac_compile"
13407 case "(($ac_try" in
13408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409 *) ac_try_echo=$ac_try;;
13411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412 (eval "$ac_compile") 2>conftest.er1
13414 grep -v '^ *+' conftest.er1 >conftest.err
13416 cat conftest.err >&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); } &&
13419 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13420 { (case "(($ac_try" in
13421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422 *) ac_try_echo=$ac_try;;
13424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425 (eval "$ac_try") 2>&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; } &&
13429 { ac_try='test -s conftest.$ac_objext'
13430 { (case "(($ac_try" in
13431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13432 *) ac_try_echo=$ac_try;;
13434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13435 (eval "$ac_try") 2>&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); }; }; then
13439 ac_cv_prog_f77_g=yes
13441 echo "$as_me: failed program was:" >&5
13442 sed 's/^/| /' conftest.$ac_ext >&5
13444 ac_cv_prog_f77_g=no
13447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13450 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13451 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13452 if test "$ac_test_FFLAGS" = set; then
13453 FFLAGS=$ac_save_FFLAGS
13454 elif test $ac_cv_prog_f77_g = yes; then
13455 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13461 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13468 G77=`test $ac_compiler_gnu = yes && echo yes`
13470 ac_cpp='$CPP $CPPFLAGS'
13471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13477 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13479 # find the maximum length of command line arguments
13480 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13481 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13482 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13483 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 # On DJGPP, this test can blow up pretty badly due to problems in libc
13491 # (any single argument exceeding 2000 bytes causes a buffer overrun
13492 # during glob expansion). Even if it were fixed, the result of this
13493 # check would be larger than it should be.
13494 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13498 # Under GNU Hurd, this test is not required because there is
13499 # no limit to the length of command line arguments.
13500 # Libtool will interpret -1 as no limit whatsoever
13501 lt_cv_sys_max_cmd_len=-1;
13505 # On Win9x/ME, this test blows up -- it succeeds, but takes
13506 # about 5 minutes as the teststring grows exponentially.
13507 # Worse, since 9x/ME are not pre-emptively multitasking,
13508 # you end up with a "frozen" computer, even though with patience
13509 # the test eventually succeeds (with a max line length of 256k).
13510 # Instead, let's just punt: use the minimum linelength reported by
13511 # all of the supported platforms: 8192 (on NT/2K/XP).
13512 lt_cv_sys_max_cmd_len=8192;
13516 # On AmigaOS with pdksh, this test takes hours, literally.
13517 # So we just punt and use a minimum line length of 8192.
13518 lt_cv_sys_max_cmd_len=8192;
13521 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13522 # This has been around since 386BSD, at least. Likely further.
13523 if test -x /sbin/sysctl; then
13524 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13525 elif test -x /usr/sbin/sysctl; then
13526 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13528 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13530 # And add a safety zone
13531 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13532 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13536 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13537 lt_cv_sys_max_cmd_len=196608
13541 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13542 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13543 # nice to cause kernel panics so lets avoid the loop below.
13544 # First set a reasonable default.
13545 lt_cv_sys_max_cmd_len=16384
13547 if test -x /sbin/sysconfig; then
13548 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13549 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13554 lt_cv_sys_max_cmd_len=102400
13556 sysv5* | sco5v6* | sysv4.2uw2*)
13557 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13558 if test -n "$kargmax"; then
13559 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13561 lt_cv_sys_max_cmd_len=32768
13565 # If test is not a shell built-in, we'll probably end up computing a
13566 # maximum length that is only half of the actual maximum length, but
13568 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13569 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13570 = "XX$teststring") >/dev/null 2>&1 &&
13571 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13572 lt_cv_sys_max_cmd_len=$new_result &&
13573 test $i != 17 # 1/2 MB should be enough
13576 teststring=$teststring$teststring
13579 # Add a significant safety factor because C++ compilers can tack on massive
13580 # amounts of additional arguments before passing them to the linker.
13581 # It appears as though 1/2 is a usable value.
13582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13588 if test -n $lt_cv_sys_max_cmd_len ; then
13589 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13590 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13592 { echo "$as_me:$LINENO: result: none" >&5
13593 echo "${ECHO_T}none" >&6; }
13599 # Check for command to grab the raw symbol name followed by C symbol from nm.
13600 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13601 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13602 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13603 echo $ECHO_N "(cached) $ECHO_C" >&6
13606 # These are sane defaults that work on at least a few old systems.
13607 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13609 # Character class describing NM global symbol codes.
13610 symcode='[BCDEGRST]'
13612 # Regexp to match symbols that can be accessed directly from C.
13613 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13615 # Transform an extracted symbol line into a proper C declaration
13616 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13618 # Transform an extracted symbol line into symbol name and symbol address
13619 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'"
13621 # Define system-specific variables.
13626 cygwin* | mingw* | pw32*)
13627 symcode='[ABCDGISTW]'
13629 hpux*) # Its linker distinguishes data from code symbols
13630 if test "$host_cpu" = ia64; then
13631 symcode='[ABCDEGRST]'
13633 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13634 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'"
13637 if test "$host_cpu" = ia64; then
13638 symcode='[ABCDGIRSTW]'
13639 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13640 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'"
13643 irix* | nonstopux*)
13644 symcode='[BCDEGRST]'
13647 symcode='[BCDEGQRST]'
13658 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13666 # Handle CRLF in mingw tool chain
13670 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13674 # If we're using GNU nm, then use its standard symbol codes.
13675 case `$NM -V 2>&1` in
13676 *GNU* | *'with BFD'*)
13677 symcode='[ABCDGIRSTW]' ;;
13680 # Try without a prefix undercore, then with it.
13681 for ac_symprfx in "" "_"; do
13683 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13684 symxfrm="\\1 $ac_symprfx\\2 \\2"
13686 # Write the raw and C identifiers.
13687 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13689 # Check to see that the pipe works correctly.
13693 cat > conftest.$ac_ext <<EOF
13698 void nm_test_func(){}
13702 int main(){nm_test_var='a';nm_test_func();return(0);}
13705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13706 (eval $ac_compile) 2>&5
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); }; then
13710 # Now try to grab the symbols.
13712 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13713 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); } && test -s "$nlist"; then
13717 # Try sorting and uniquifying the output.
13718 if sort "$nlist" | uniq > "$nlist"T; then
13719 mv -f "$nlist"T "$nlist"
13724 # Make sure that we snagged all the symbols we need.
13725 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13726 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13727 cat <<EOF > conftest.$ac_ext
13733 # Now generate the symbol file.
13734 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13736 cat <<EOF >> conftest.$ac_ext
13737 #if defined (__STDC__) && __STDC__
13738 # define lt_ptr_t void *
13740 # define lt_ptr_t char *
13744 /* The mapping between symbol names and symbols. */
13749 lt_preloaded_symbols[] =
13752 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13753 cat <<\EOF >> conftest.$ac_ext
13761 # Now try linking the two files.
13762 mv conftest.$ac_objext conftstm.$ac_objext
13763 lt_save_LIBS="$LIBS"
13764 lt_save_CFLAGS="$CFLAGS"
13765 LIBS="conftstm.$ac_objext"
13766 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13768 (eval $ac_link) 2>&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13774 LIBS="$lt_save_LIBS"
13775 CFLAGS="$lt_save_CFLAGS"
13777 echo "cannot find nm_test_func in $nlist" >&5
13780 echo "cannot find nm_test_var in $nlist" >&5
13783 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13786 echo "$progname: failed program was:" >&5
13787 cat conftest.$ac_ext >&5
13789 rm -f conftest* conftst*
13791 # Do not use the global_symbol_pipe unless it works.
13792 if test "$pipe_works" = yes; then
13795 lt_cv_sys_global_symbol_pipe=
13801 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13802 lt_cv_sys_global_symbol_to_cdecl=
13804 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13805 { echo "$as_me:$LINENO: result: failed" >&5
13806 echo "${ECHO_T}failed" >&6; }
13808 { echo "$as_me:$LINENO: result: ok" >&5
13809 echo "${ECHO_T}ok" >&6; }
13812 { echo "$as_me:$LINENO: checking for objdir" >&5
13813 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13814 if test "${lt_cv_objdir+set}" = set; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13817 rm -f .libs 2>/dev/null
13818 mkdir .libs 2>/dev/null
13819 if test -d .libs; then
13822 # MS-DOS does not allow filenames that begin with a dot.
13825 rmdir .libs 2>/dev/null
13827 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13828 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13829 objdir=$lt_cv_objdir
13837 # AIX sometimes has problems with the GCC collect2 program. For some
13838 # reason, if we set the COLLECT_NAMES environment variable, the problems
13839 # vanish in a puff of smoke.
13840 if test "X${COLLECT_NAMES+set}" != Xset; then
13842 export COLLECT_NAMES
13847 # Sed substitution that helps us do robust quoting. It backslashifies
13848 # metacharacters that are still active within double-quoted strings.
13849 Xsed='sed -e 1s/^X//'
13850 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13852 # Same as above, but do not quote variable references.
13853 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13855 # Sed substitution to delay expansion of an escaped shell variable in a
13856 # double_quote_subst'ed string.
13857 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13859 # Sed substitution to avoid accidental globbing in evaled expressions
13860 no_glob_subst='s/\*/\\\*/g'
13865 # Global variables:
13866 default_ofile=mklib
13867 can_build_shared=yes
13869 # All known linkers require a `.a' archive for static linking (except MSVC,
13870 # which needs '.lib').
13872 ltmain="$ac_aux_dir/ltmain.sh"
13873 ofile="$default_ofile"
13874 with_gnu_ld="$lt_cv_prog_gnu_ld"
13876 if test -n "$ac_tool_prefix"; then
13877 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13878 set dummy ${ac_tool_prefix}ar; ac_word=$2
13879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13881 if test "${ac_cv_prog_AR+set}" = set; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13884 if test -n "$AR"; then
13885 ac_cv_prog_AR="$AR" # Let the user override the test.
13887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13888 for as_dir in $PATH
13891 test -z "$as_dir" && as_dir=.
13892 for ac_exec_ext in '' $ac_executable_extensions; do
13893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13894 ac_cv_prog_AR="${ac_tool_prefix}ar"
13895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13905 if test -n "$AR"; then
13906 { echo "$as_me:$LINENO: result: $AR" >&5
13907 echo "${ECHO_T}$AR" >&6; }
13909 { echo "$as_me:$LINENO: result: no" >&5
13910 echo "${ECHO_T}no" >&6; }
13915 if test -z "$ac_cv_prog_AR"; then
13917 # Extract the first word of "ar", so it can be a program name with args.
13918 set dummy ar; ac_word=$2
13919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13921 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13922 echo $ECHO_N "(cached) $ECHO_C" >&6
13924 if test -n "$ac_ct_AR"; then
13925 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928 for as_dir in $PATH
13931 test -z "$as_dir" && as_dir=.
13932 for ac_exec_ext in '' $ac_executable_extensions; do
13933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13934 ac_cv_prog_ac_ct_AR="ar"
13935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13944 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13945 if test -n "$ac_ct_AR"; then
13946 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13947 echo "${ECHO_T}$ac_ct_AR" >&6; }
13949 { echo "$as_me:$LINENO: result: no" >&5
13950 echo "${ECHO_T}no" >&6; }
13953 if test "x$ac_ct_AR" = x; then
13956 case $cross_compiling:$ac_tool_warned in
13958 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13959 whose name does not start with the host triplet. If you think this
13960 configuration is useful to you, please write to autoconf@gnu.org." >&5
13961 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13962 whose name does not start with the host triplet. If you think this
13963 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13964 ac_tool_warned=yes ;;
13969 AR="$ac_cv_prog_AR"
13972 if test -n "$ac_tool_prefix"; then
13973 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13974 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13977 if test "${ac_cv_prog_RANLIB+set}" = set; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
13980 if test -n "$RANLIB"; then
13981 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13984 for as_dir in $PATH
13987 test -z "$as_dir" && as_dir=.
13988 for ac_exec_ext in '' $ac_executable_extensions; do
13989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13990 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14000 RANLIB=$ac_cv_prog_RANLIB
14001 if test -n "$RANLIB"; then
14002 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14003 echo "${ECHO_T}$RANLIB" >&6; }
14005 { echo "$as_me:$LINENO: result: no" >&5
14006 echo "${ECHO_T}no" >&6; }
14011 if test -z "$ac_cv_prog_RANLIB"; then
14012 ac_ct_RANLIB=$RANLIB
14013 # Extract the first word of "ranlib", so it can be a program name with args.
14014 set dummy ranlib; ac_word=$2
14015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14017 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14020 if test -n "$ac_ct_RANLIB"; then
14021 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14024 for as_dir in $PATH
14027 test -z "$as_dir" && as_dir=.
14028 for ac_exec_ext in '' $ac_executable_extensions; do
14029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14030 ac_cv_prog_ac_ct_RANLIB="ranlib"
14031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14040 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14041 if test -n "$ac_ct_RANLIB"; then
14042 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14043 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14045 { echo "$as_me:$LINENO: result: no" >&5
14046 echo "${ECHO_T}no" >&6; }
14049 if test "x$ac_ct_RANLIB" = x; then
14052 case $cross_compiling:$ac_tool_warned in
14054 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14055 whose name does not start with the host triplet. If you think this
14056 configuration is useful to you, please write to autoconf@gnu.org." >&5
14057 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14058 whose name does not start with the host triplet. If you think this
14059 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14060 ac_tool_warned=yes ;;
14062 RANLIB=$ac_ct_RANLIB
14065 RANLIB="$ac_cv_prog_RANLIB"
14068 if test -n "$ac_tool_prefix"; then
14069 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14070 set dummy ${ac_tool_prefix}strip; ac_word=$2
14071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14073 if test "${ac_cv_prog_STRIP+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14076 if test -n "$STRIP"; then
14077 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14080 for as_dir in $PATH
14083 test -z "$as_dir" && as_dir=.
14084 for ac_exec_ext in '' $ac_executable_extensions; do
14085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14086 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14096 STRIP=$ac_cv_prog_STRIP
14097 if test -n "$STRIP"; then
14098 { echo "$as_me:$LINENO: result: $STRIP" >&5
14099 echo "${ECHO_T}$STRIP" >&6; }
14101 { echo "$as_me:$LINENO: result: no" >&5
14102 echo "${ECHO_T}no" >&6; }
14107 if test -z "$ac_cv_prog_STRIP"; then
14109 # Extract the first word of "strip", so it can be a program name with args.
14110 set dummy strip; ac_word=$2
14111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14113 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14116 if test -n "$ac_ct_STRIP"; then
14117 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14120 for as_dir in $PATH
14123 test -z "$as_dir" && as_dir=.
14124 for ac_exec_ext in '' $ac_executable_extensions; do
14125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14126 ac_cv_prog_ac_ct_STRIP="strip"
14127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14136 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14137 if test -n "$ac_ct_STRIP"; then
14138 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14139 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14141 { echo "$as_me:$LINENO: result: no" >&5
14142 echo "${ECHO_T}no" >&6; }
14145 if test "x$ac_ct_STRIP" = x; then
14148 case $cross_compiling:$ac_tool_warned in
14150 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14151 whose name does not start with the host triplet. If you think this
14152 configuration is useful to you, please write to autoconf@gnu.org." >&5
14153 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14154 whose name does not start with the host triplet. If you think this
14155 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14156 ac_tool_warned=yes ;;
14161 STRIP="$ac_cv_prog_STRIP"
14166 old_CFLAGS="$CFLAGS"
14168 # Set sane defaults for various variables
14169 test -z "$AR" && AR=ar
14170 test -z "$AR_FLAGS" && AR_FLAGS=cru
14171 test -z "$AS" && AS=as
14172 test -z "$CC" && CC=cc
14173 test -z "$LTCC" && LTCC=$CC
14174 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14175 test -z "$DLLTOOL" && DLLTOOL=dlltool
14176 test -z "$LD" && LD=ld
14177 test -z "$LN_S" && LN_S="ln -s"
14178 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14179 test -z "$NM" && NM=nm
14180 test -z "$SED" && SED=sed
14181 test -z "$OBJDUMP" && OBJDUMP=objdump
14182 test -z "$RANLIB" && RANLIB=:
14183 test -z "$STRIP" && STRIP=:
14184 test -z "$ac_objext" && ac_objext=o
14186 # Determine commands to create old-style static archives.
14187 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14188 old_postinstall_cmds='chmod 644 $oldlib'
14189 old_postuninstall_cmds=
14191 if test -n "$RANLIB"; then
14194 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14197 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14200 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14203 for cc_temp in $compiler""; do
14205 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14206 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14211 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14214 # Only perform the check for file, if the check method requires it
14215 case $deplibs_check_method in
14217 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14218 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14219 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14220 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14221 echo $ECHO_N "(cached) $ECHO_C" >&6
14225 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14228 lt_save_MAGIC_CMD="$MAGIC_CMD"
14229 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14230 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14231 for ac_dir in $ac_dummy; do
14233 test -z "$ac_dir" && ac_dir=.
14234 if test -f $ac_dir/${ac_tool_prefix}file; then
14235 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14236 if test -n "$file_magic_test_file"; then
14237 case $deplibs_check_method in
14239 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14241 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14242 $EGREP "$file_magic_regex" > /dev/null; then
14247 *** Warning: the command libtool uses to detect shared libraries,
14248 *** $file_magic_cmd, produces output that libtool cannot recognize.
14249 *** The result is that libtool may fail to recognize shared libraries
14250 *** as such. This will affect the creation of libtool libraries that
14251 *** depend on shared libraries, but programs linked with such libtool
14252 *** libraries will work regardless of this problem. Nevertheless, you
14253 *** may want to report the problem to your system manager and/or to
14254 *** bug-libtool@gnu.org
14264 MAGIC_CMD="$lt_save_MAGIC_CMD"
14269 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14270 if test -n "$MAGIC_CMD"; then
14271 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14272 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14274 { echo "$as_me:$LINENO: result: no" >&5
14275 echo "${ECHO_T}no" >&6; }
14278 if test -z "$lt_cv_path_MAGIC_CMD"; then
14279 if test -n "$ac_tool_prefix"; then
14280 { echo "$as_me:$LINENO: checking for file" >&5
14281 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14282 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14283 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14290 lt_save_MAGIC_CMD="$MAGIC_CMD"
14291 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14292 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14293 for ac_dir in $ac_dummy; do
14295 test -z "$ac_dir" && ac_dir=.
14296 if test -f $ac_dir/file; then
14297 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14298 if test -n "$file_magic_test_file"; then
14299 case $deplibs_check_method in
14301 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14302 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14303 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14304 $EGREP "$file_magic_regex" > /dev/null; then
14309 *** Warning: the command libtool uses to detect shared libraries,
14310 *** $file_magic_cmd, produces output that libtool cannot recognize.
14311 *** The result is that libtool may fail to recognize shared libraries
14312 *** as such. This will affect the creation of libtool libraries that
14313 *** depend on shared libraries, but programs linked with such libtool
14314 *** libraries will work regardless of this problem. Nevertheless, you
14315 *** may want to report the problem to your system manager and/or to
14316 *** bug-libtool@gnu.org
14326 MAGIC_CMD="$lt_save_MAGIC_CMD"
14331 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14332 if test -n "$MAGIC_CMD"; then
14333 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14334 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14336 { echo "$as_me:$LINENO: result: no" >&5
14337 echo "${ECHO_T}no" >&6; }
14350 enable_win32_dll=no
14352 # Check whether --enable-libtool-lock was given.
14353 if test "${enable_libtool_lock+set}" = set; then
14354 enableval=$enable_libtool_lock;
14357 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14360 # Check whether --with-pic was given.
14361 if test "${with_pic+set}" = set; then
14362 withval=$with_pic; pic_mode="$withval"
14367 test -z "$pic_mode" && pic_mode=default
14369 # Use C for the default configuration in the libtool script
14373 ac_cpp='$CPP $CPPFLAGS'
14374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14379 # Source file extension for C test sources.
14382 # Object file extension for compiled C test sources.
14386 # Code to be used in simple compile tests
14387 lt_simple_compile_test_code="int some_variable = 0;\n"
14389 # Code to be used in simple link tests
14390 lt_simple_link_test_code='int main(){return(0);}\n'
14393 # If no C compiler was specified, use CC.
14396 # If no C compiler flags were specified, use CFLAGS.
14397 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14399 # Allow CC to be a program name with arguments.
14403 # save warnings/boilerplate of simple test code
14404 ac_outfile=conftest.$ac_objext
14405 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14406 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14407 _lt_compiler_boilerplate=`cat conftest.err`
14410 ac_outfile=conftest.$ac_objext
14411 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14412 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14413 _lt_linker_boilerplate=`cat conftest.err`
14418 lt_prog_compiler_no_builtin_flag=
14420 if test "$GCC" = yes; then
14421 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14424 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14425 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14426 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14429 lt_cv_prog_compiler_rtti_exceptions=no
14430 ac_outfile=conftest.$ac_objext
14431 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14432 lt_compiler_flag="-fno-rtti -fno-exceptions"
14433 # Insert the option either (1) after the last *FLAGS variable, or
14434 # (2) before a word containing "conftest.", or (3) at the end.
14435 # Note that $ac_compile itself does not contain backslashes and begins
14436 # with a dollar sign (not a hyphen), so the echo should work correctly.
14437 # The option is referenced via a variable to avoid confusing sed.
14438 lt_compile=`echo "$ac_compile" | $SED \
14439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14441 -e 's:$: $lt_compiler_flag:'`
14442 (eval echo "\"\$as_me:14442: $lt_compile\"" >&5)
14443 (eval "$lt_compile" 2>conftest.err)
14445 cat conftest.err >&5
14446 echo "$as_me:14446: \$? = $ac_status" >&5
14447 if (exit $ac_status) && test -s "$ac_outfile"; then
14448 # The compiler can only warn and ignore the option if not recognized
14449 # So say no if there are warnings other than the usual output.
14450 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14451 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14452 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14453 lt_cv_prog_compiler_rtti_exceptions=yes
14459 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14460 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14462 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14463 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14470 lt_prog_compiler_wl=
14471 lt_prog_compiler_pic=
14472 lt_prog_compiler_static=
14474 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14475 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14477 if test "$GCC" = yes; then
14478 lt_prog_compiler_wl='-Wl,'
14479 lt_prog_compiler_static='-static'
14483 # All AIX code is PIC.
14484 if test "$host_cpu" = ia64; then
14485 # AIX 5 now supports IA64 processor
14486 lt_prog_compiler_static='-Bstatic'
14491 # FIXME: we need at least 68020 code to build shared libraries, but
14492 # adding the `-m68020' flag to GCC prevents building anything better,
14494 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14497 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14498 # PIC is the default for these OSes.
14501 mingw* | pw32* | os2*)
14502 # This hack is so that the source file can tell whether it is being
14503 # built for inclusion in a dll (and should export symbols for example).
14504 lt_prog_compiler_pic='-DDLL_EXPORT'
14507 darwin* | rhapsody*)
14508 # PIC is the default on this platform
14509 # Common symbols not allowed in MH_DYLIB files
14510 lt_prog_compiler_pic='-fno-common'
14514 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14515 # Instead, we relocate shared libraries at runtime.
14519 # Just because we use GCC doesn't mean we suddenly get shared libraries
14520 # on systems that don't support them.
14521 lt_prog_compiler_can_build_shared=no
14526 if test -d /usr/nec; then
14527 lt_prog_compiler_pic=-Kconform_pic
14532 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14533 # not for PA HP-UX.
14539 lt_prog_compiler_pic='-fPIC'
14545 lt_prog_compiler_pic='-fPIC'
14549 # PORTME Check for flag to pass linker flags through the system compiler.
14552 lt_prog_compiler_wl='-Wl,'
14553 if test "$host_cpu" = ia64; then
14554 # AIX 5 now supports IA64 processor
14555 lt_prog_compiler_static='-Bstatic'
14557 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14561 # PIC is the default on this platform
14562 # Common symbols not allowed in MH_DYLIB files
14563 case $cc_basename in
14565 lt_prog_compiler_pic='-qnocommon'
14566 lt_prog_compiler_wl='-Wl,'
14571 mingw* | pw32* | os2*)
14572 # This hack is so that the source file can tell whether it is being
14573 # built for inclusion in a dll (and should export symbols for example).
14574 lt_prog_compiler_pic='-DDLL_EXPORT'
14577 hpux9* | hpux10* | hpux11*)
14578 lt_prog_compiler_wl='-Wl,'
14579 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14580 # not for PA HP-UX.
14586 lt_prog_compiler_pic='+Z'
14589 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14590 lt_prog_compiler_static='${wl}-a ${wl}archive'
14593 irix5* | irix6* | nonstopux*)
14594 lt_prog_compiler_wl='-Wl,'
14595 # PIC (with -KPIC) is the default.
14596 lt_prog_compiler_static='-non_shared'
14600 lt_prog_compiler_pic='-KPIC'
14601 lt_prog_compiler_static='-Bstatic'
14605 case $cc_basename in
14607 lt_prog_compiler_wl='-Wl,'
14608 lt_prog_compiler_pic='-KPIC'
14609 lt_prog_compiler_static='-static'
14611 pgcc* | pgf77* | pgf90* | pgf95*)
14612 # Portland Group compilers (*not* the Pentium gcc compiler,
14613 # which looks to be a dead project)
14614 lt_prog_compiler_wl='-Wl,'
14615 lt_prog_compiler_pic='-fpic'
14616 lt_prog_compiler_static='-Bstatic'
14619 lt_prog_compiler_wl='-Wl,'
14620 # All Alpha code is PIC.
14621 lt_prog_compiler_static='-non_shared'
14626 osf3* | osf4* | osf5*)
14627 lt_prog_compiler_wl='-Wl,'
14628 # All OSF/1 code is PIC.
14629 lt_prog_compiler_static='-non_shared'
14633 lt_prog_compiler_pic='-KPIC'
14634 lt_prog_compiler_static='-Bstatic'
14635 case $cc_basename in
14636 f77* | f90* | f95*)
14637 lt_prog_compiler_wl='-Qoption ld ';;
14639 lt_prog_compiler_wl='-Wl,';;
14644 lt_prog_compiler_wl='-Qoption ld '
14645 lt_prog_compiler_pic='-PIC'
14646 lt_prog_compiler_static='-Bstatic'
14649 sysv4 | sysv4.2uw2* | sysv4.3*)
14650 lt_prog_compiler_wl='-Wl,'
14651 lt_prog_compiler_pic='-KPIC'
14652 lt_prog_compiler_static='-Bstatic'
14656 if test -d /usr/nec ;then
14657 lt_prog_compiler_pic='-Kconform_pic'
14658 lt_prog_compiler_static='-Bstatic'
14662 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14663 lt_prog_compiler_wl='-Wl,'
14664 lt_prog_compiler_pic='-KPIC'
14665 lt_prog_compiler_static='-Bstatic'
14669 lt_prog_compiler_wl='-Wl,'
14670 lt_prog_compiler_can_build_shared=no
14674 lt_prog_compiler_pic='-pic'
14675 lt_prog_compiler_static='-Bstatic'
14679 lt_prog_compiler_can_build_shared=no
14684 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14685 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14688 # Check to make sure the PIC flag actually works.
14690 if test -n "$lt_prog_compiler_pic"; then
14692 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14693 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14694 if test "${lt_prog_compiler_pic_works+set}" = set; then
14695 echo $ECHO_N "(cached) $ECHO_C" >&6
14697 lt_prog_compiler_pic_works=no
14698 ac_outfile=conftest.$ac_objext
14699 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14700 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14701 # Insert the option either (1) after the last *FLAGS variable, or
14702 # (2) before a word containing "conftest.", or (3) at the end.
14703 # Note that $ac_compile itself does not contain backslashes and begins
14704 # with a dollar sign (not a hyphen), so the echo should work correctly.
14705 # The option is referenced via a variable to avoid confusing sed.
14706 lt_compile=`echo "$ac_compile" | $SED \
14707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14709 -e 's:$: $lt_compiler_flag:'`
14710 (eval echo "\"\$as_me:14710: $lt_compile\"" >&5)
14711 (eval "$lt_compile" 2>conftest.err)
14713 cat conftest.err >&5
14714 echo "$as_me:14714: \$? = $ac_status" >&5
14715 if (exit $ac_status) && test -s "$ac_outfile"; then
14716 # The compiler can only warn and ignore the option if not recognized
14717 # So say no if there are warnings other than the usual output.
14718 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14720 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14721 lt_prog_compiler_pic_works=yes
14727 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14728 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14730 if test x"$lt_prog_compiler_pic_works" = xyes; then
14731 case $lt_prog_compiler_pic in
14733 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14736 lt_prog_compiler_pic=
14737 lt_prog_compiler_can_build_shared=no
14742 # For platforms which do not support PIC, -DPIC is meaningless:
14744 lt_prog_compiler_pic=
14747 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14752 # Check to make sure the static flag actually works.
14754 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14755 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14756 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14757 if test "${lt_prog_compiler_static_works+set}" = set; then
14758 echo $ECHO_N "(cached) $ECHO_C" >&6
14760 lt_prog_compiler_static_works=no
14761 save_LDFLAGS="$LDFLAGS"
14762 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14763 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14764 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14765 # The linker can only warn and ignore the option if not recognized
14766 # So say no if there are warnings
14767 if test -s conftest.err; then
14768 # Append any errors to the config.log.
14769 cat conftest.err 1>&5
14770 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14771 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14772 if diff conftest.exp conftest.er2 >/dev/null; then
14773 lt_prog_compiler_static_works=yes
14776 lt_prog_compiler_static_works=yes
14780 LDFLAGS="$save_LDFLAGS"
14783 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14784 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14786 if test x"$lt_prog_compiler_static_works" = xyes; then
14789 lt_prog_compiler_static=
14793 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14794 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14795 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14796 echo $ECHO_N "(cached) $ECHO_C" >&6
14798 lt_cv_prog_compiler_c_o=no
14799 $rm -r conftest 2>/dev/null
14803 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14805 lt_compiler_flag="-o out/conftest2.$ac_objext"
14806 # Insert the option either (1) after the last *FLAGS variable, or
14807 # (2) before a word containing "conftest.", or (3) at the end.
14808 # Note that $ac_compile itself does not contain backslashes and begins
14809 # with a dollar sign (not a hyphen), so the echo should work correctly.
14810 lt_compile=`echo "$ac_compile" | $SED \
14811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14813 -e 's:$: $lt_compiler_flag:'`
14814 (eval echo "\"\$as_me:14814: $lt_compile\"" >&5)
14815 (eval "$lt_compile" 2>out/conftest.err)
14817 cat out/conftest.err >&5
14818 echo "$as_me:14818: \$? = $ac_status" >&5
14819 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14821 # The compiler can only warn and ignore the option if not recognized
14822 # So say no if there are warnings
14823 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14824 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14825 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14826 lt_cv_prog_compiler_c_o=yes
14831 # SGI C++ compiler will create directory out/ii_files/ for
14832 # template instantiation
14833 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14834 $rm out/* && rmdir out
14840 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14841 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14844 hard_links="nottested"
14845 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14846 # do not overwrite the value of need_locks provided by the user
14847 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14848 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14851 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14853 ln conftest.a conftest.b 2>&5 || hard_links=no
14854 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14855 { echo "$as_me:$LINENO: result: $hard_links" >&5
14856 echo "${ECHO_T}$hard_links" >&6; }
14857 if test "$hard_links" = no; then
14858 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14859 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14866 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14867 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14870 allow_undefined_flag=
14871 enable_shared_with_static_runtimes=no
14873 archive_expsym_cmds=
14874 old_archive_From_new_cmds=
14875 old_archive_from_expsyms_cmds=
14876 export_dynamic_flag_spec=
14877 whole_archive_flag_spec=
14878 thread_safe_flag_spec=
14879 hardcode_libdir_flag_spec=
14880 hardcode_libdir_flag_spec_ld=
14881 hardcode_libdir_separator=
14883 hardcode_minus_L=no
14884 hardcode_shlibpath_var=unsupported
14885 link_all_deplibs=unknown
14886 hardcode_automatic=no
14888 module_expsym_cmds=
14889 always_export_symbols=no
14890 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14891 # include_expsyms should be a list of space-separated symbols to be *always*
14892 # included in the symbol list
14894 # exclude_expsyms can be an extended regexp of symbols to exclude
14895 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14896 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14897 # as well as any symbol that contains `d'.
14898 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14899 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14900 # platforms (ab)use it in PIC code, but their linkers get confused if
14901 # the symbol is explicitly referenced. Since portable code cannot
14902 # rely on this symbol name, it's probably fine to never include it in
14903 # preloaded symbol tables.
14904 extract_expsyms_cmds=
14905 # Just being paranoid about ensuring that cc_basename is set.
14906 for cc_temp in $compiler""; do
14908 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14909 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14914 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14917 cygwin* | mingw* | pw32*)
14918 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14919 # When not using gcc, we currently assume that we are using
14920 # Microsoft Visual C++.
14921 if test "$GCC" != yes; then
14926 # we just hope/assume this is gcc and not c89 (= MSVC++)
14935 if test "$with_gnu_ld" = yes; then
14936 # If archive_cmds runs LD, not CC, wlarc should be empty
14939 # Set some defaults for GNU ld with shared library support. These
14940 # are reset later if shared libraries are not supported. Putting them
14941 # here allows them to be overridden if necessary.
14942 runpath_var=LD_RUN_PATH
14943 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14944 export_dynamic_flag_spec='${wl}--export-dynamic'
14945 # ancient GNU ld didn't support --whole-archive et. al.
14946 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14947 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14949 whole_archive_flag_spec=
14951 supports_anon_versioning=no
14952 case `$LD -v 2>/dev/null` in
14953 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14954 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14955 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14956 *\ 2.11.*) ;; # other 2.11 versions
14957 *) supports_anon_versioning=yes ;;
14960 # See if GNU ld supports shared libraries.
14962 aix3* | aix4* | aix5*)
14963 # On AIX/PPC, the GNU linker is very broken
14964 if test "$host_cpu" != ia64; then
14968 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14969 *** to be unable to reliably create shared libraries on AIX.
14970 *** Therefore, libtool is disabling shared libraries support. If you
14971 *** really care for shared libraries, you may want to modify your PATH
14972 *** so that a non-GNU linker is found, and then restart.
14979 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)'
14980 hardcode_libdir_flag_spec='-L$libdir'
14981 hardcode_minus_L=yes
14983 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14984 # that the semantics of dynamic libraries on AmigaOS, at least up
14985 # to version 4, is to share data among multiple programs linked
14986 # with the same dynamic library. Since this doesn't match the
14987 # behavior of shared libraries on other platforms, we can't use
14993 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14994 allow_undefined_flag=unsupported
14995 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14996 # support --undefined. This deserves some investigation. FIXME
14997 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15003 cygwin* | mingw* | pw32*)
15004 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15005 # as there is no search path for DLLs.
15006 hardcode_libdir_flag_spec='-L$libdir'
15007 allow_undefined_flag=unsupported
15008 always_export_symbols=no
15009 enable_shared_with_static_runtimes=yes
15010 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15012 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15013 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15014 # If the export-symbols file already is a .def file (1st line
15015 # is EXPORTS), use it as is; otherwise, prepend...
15016 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15017 cp $export_symbols $output_objdir/$soname.def;
15019 echo EXPORTS > $output_objdir/$soname.def;
15020 cat $export_symbols >> $output_objdir/$soname.def;
15022 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15030 hardcode_shlibpath_var=no
15031 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15032 export_dynamic_flag_spec='${wl}-E'
15033 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15034 # Instead, shared libraries are loaded at an image base (0x10000000 by
15035 # default) and relocated if they conflict, which is a slow very memory
15036 # consuming and fragmenting process. To avoid this, we pick a random,
15037 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15038 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15039 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15040 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'
15044 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15046 case $cc_basename,$host_cpu in
15047 pgcc*) # Portland Group C compiler
15048 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'
15049 tmp_addflag=' $pic_flag'
15051 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15052 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'
15053 tmp_addflag=' $pic_flag -Mnomain' ;;
15054 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15055 tmp_addflag=' -i_dynamic' ;;
15056 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15057 tmp_addflag=' -i_dynamic -nofor_main' ;;
15058 ifc* | ifort*) # Intel Fortran compiler
15059 tmp_addflag=' -nofor_main' ;;
15061 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15063 if test $supports_anon_versioning = yes; then
15064 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15065 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15066 $echo "local: *; };" >> $output_objdir/$libname.ver~
15067 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15075 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15076 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15080 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15085 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15089 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15090 *** create shared libraries on Solaris systems. Therefore, libtool
15091 *** is disabling shared libraries support. We urge you to upgrade GNU
15092 *** binutils to release 2.9.1 or newer. Another option is to modify
15093 *** your PATH or compiler configuration so that the native linker is
15094 *** used, and then restart.
15097 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15098 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15099 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15105 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15106 case `$LD -v 2>&1` in
15107 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15111 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15112 *** reliably create shared libraries on SCO systems. Therefore, libtool
15113 *** is disabling shared libraries support. We urge you to upgrade GNU
15114 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15115 *** your PATH or compiler configuration so that the native linker is
15116 *** used, and then restart.
15121 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15122 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15123 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15124 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15133 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15135 hardcode_direct=yes
15136 hardcode_shlibpath_var=no
15140 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15142 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15149 if test "$ld_shlibs" = no; then
15151 hardcode_libdir_flag_spec=
15152 export_dynamic_flag_spec=
15153 whole_archive_flag_spec=
15156 # PORTME fill in a description of your system's linker (not GNU ld)
15159 allow_undefined_flag=unsupported
15160 always_export_symbols=yes
15161 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'
15162 # Note: this linker hardcodes the directories in LIBPATH if there
15163 # are no directories specified by -L.
15164 hardcode_minus_L=yes
15165 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15166 # Neither direct hardcoding nor static linking is supported with a
15168 hardcode_direct=unsupported
15173 if test "$host_cpu" = ia64; then
15174 # On IA64, the linker does run time linking by default, so we don't
15175 # have to do anything special.
15176 aix_use_runtimelinking=no
15177 exp_sym_flag='-Bexport'
15180 # If we're using GNU nm, then we don't want the "-C" option.
15181 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15182 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15183 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'
15185 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'
15187 aix_use_runtimelinking=no
15189 # Test if we are trying to use run time linking or normal
15190 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15191 # need to do runtime linking.
15192 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15193 for ld_flag in $LDFLAGS; do
15194 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15195 aix_use_runtimelinking=yes
15202 exp_sym_flag='-bexport'
15203 no_entry_flag='-bnoentry'
15206 # When large executables or shared objects are built, AIX ld can
15207 # have problems creating the table of contents. If linking a library
15208 # or program results in "error TOC overflow" add -mminimal-toc to
15209 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15210 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15213 hardcode_direct=yes
15214 hardcode_libdir_separator=':'
15215 link_all_deplibs=yes
15217 if test "$GCC" = yes; then
15218 case $host_os in aix4.[012]|aix4.[012].*)
15219 # We only want to do this on AIX 4.2 and lower, the check
15220 # below for broken collect2 doesn't work under 4.3+
15221 collect2name=`${CC} -print-prog-name=collect2`
15222 if test -f "$collect2name" && \
15223 strings "$collect2name" | grep resolve_lib_name >/dev/null
15225 # We have reworked collect2
15226 hardcode_direct=yes
15228 # We have old collect2
15229 hardcode_direct=unsupported
15230 # It fails to find uninstalled libraries when the uninstalled
15231 # path is not listed in the libpath. Setting hardcode_minus_L
15232 # to unsupported forces relinking
15233 hardcode_minus_L=yes
15234 hardcode_libdir_flag_spec='-L$libdir'
15235 hardcode_libdir_separator=
15239 shared_flag='-shared'
15240 if test "$aix_use_runtimelinking" = yes; then
15241 shared_flag="$shared_flag "'${wl}-G'
15245 if test "$host_cpu" = ia64; then
15246 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15247 # chokes on -Wl,-G. The following line is correct:
15250 if test "$aix_use_runtimelinking" = yes; then
15251 shared_flag='${wl}-G'
15253 shared_flag='${wl}-bM:SRE'
15258 # It seems that -bexpall does not export symbols beginning with
15259 # underscore (_), so it is better to generate a list of symbols to export.
15260 always_export_symbols=yes
15261 if test "$aix_use_runtimelinking" = yes; then
15262 # Warning - without using the other runtime loading flags (-brtl),
15263 # -berok will link without error, but may produce a broken library.
15264 allow_undefined_flag='-berok'
15265 # Determine the default libpath from the value encoded in an empty executable.
15266 cat >conftest.$ac_ext <<_ACEOF
15269 cat confdefs.h >>conftest.$ac_ext
15270 cat >>conftest.$ac_ext <<_ACEOF
15271 /* end confdefs.h. */
15281 rm -f conftest.$ac_objext conftest$ac_exeext
15282 if { (ac_try="$ac_link"
15283 case "(($ac_try" in
15284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15285 *) ac_try_echo=$ac_try;;
15287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15288 (eval "$ac_link") 2>conftest.er1
15290 grep -v '^ *+' conftest.er1 >conftest.err
15292 cat conftest.err >&5
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); } &&
15295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15296 { (case "(($ac_try" in
15297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15298 *) ac_try_echo=$ac_try;;
15300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15301 (eval "$ac_try") 2>&5
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); }; } &&
15305 { ac_try='test -s conftest$ac_exeext'
15306 { (case "(($ac_try" in
15307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308 *) ac_try_echo=$ac_try;;
15310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15311 (eval "$ac_try") 2>&5
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); }; }; then
15316 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15318 # Check for a 64-bit object if we didn't find anything.
15319 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; }
15322 echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15328 rm -f core conftest.err conftest.$ac_objext \
15329 conftest$ac_exeext conftest.$ac_ext
15330 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15332 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15333 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"
15335 if test "$host_cpu" = ia64; then
15336 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15337 allow_undefined_flag="-z nodefs"
15338 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"
15340 # Determine the default libpath from the value encoded in an empty executable.
15341 cat >conftest.$ac_ext <<_ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15356 rm -f conftest.$ac_objext conftest$ac_exeext
15357 if { (ac_try="$ac_link"
15358 case "(($ac_try" in
15359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15360 *) ac_try_echo=$ac_try;;
15362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15363 (eval "$ac_link") 2>conftest.er1
15365 grep -v '^ *+' conftest.er1 >conftest.err
15367 cat conftest.err >&5
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); } &&
15370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15371 { (case "(($ac_try" in
15372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373 *) ac_try_echo=$ac_try;;
15375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15376 (eval "$ac_try") 2>&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); }; } &&
15380 { ac_try='test -s conftest$ac_exeext'
15381 { (case "(($ac_try" in
15382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15383 *) ac_try_echo=$ac_try;;
15385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15386 (eval "$ac_try") 2>&5
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); }; }; then
15391 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15393 # Check for a 64-bit object if we didn't find anything.
15394 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; }
15397 echo "$as_me: failed program was:" >&5
15398 sed 's/^/| /' conftest.$ac_ext >&5
15403 rm -f core conftest.err conftest.$ac_objext \
15404 conftest$ac_exeext conftest.$ac_ext
15405 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15407 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15408 # Warning - without using the other run time loading flags,
15409 # -berok will link without error, but may produce a broken library.
15410 no_undefined_flag=' ${wl}-bernotok'
15411 allow_undefined_flag=' ${wl}-berok'
15412 # Exported symbols can be pulled into shared objects from archives
15413 whole_archive_flag_spec='$convenience'
15414 archive_cmds_need_lc=yes
15415 # This is similar to how AIX traditionally builds its shared libraries.
15416 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'
15422 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)'
15423 hardcode_libdir_flag_spec='-L$libdir'
15424 hardcode_minus_L=yes
15425 # see comment about different semantics on the GNU ld section
15430 export_dynamic_flag_spec=-rdynamic
15433 cygwin* | mingw* | pw32*)
15434 # When not using gcc, we currently assume that we are using
15435 # Microsoft Visual C++.
15436 # hardcode_libdir_flag_spec is actually meaningless, as there is
15437 # no search path for DLLs.
15438 hardcode_libdir_flag_spec=' '
15439 allow_undefined_flag=unsupported
15440 # Tell ltmain to make .lib files, not .a files.
15442 # Tell ltmain to make .dll files, not .so files.
15444 # FIXME: Setting linknames here is a bad hack.
15445 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15446 # The linker will automatically build a .lib file if we build a DLL.
15447 old_archive_From_new_cmds='true'
15448 # FIXME: Should let the user specify the lib program.
15449 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15450 fix_srcfile_path='`cygpath -w "$srcfile"`'
15451 enable_shared_with_static_runtimes=yes
15454 darwin* | rhapsody*)
15456 rhapsody* | darwin1.[012])
15457 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15460 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15461 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15463 case ${MACOSX_DEPLOYMENT_TARGET} in
15465 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15468 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15474 archive_cmds_need_lc=no
15476 hardcode_automatic=yes
15477 hardcode_shlibpath_var=unsupported
15478 whole_archive_flag_spec=''
15479 link_all_deplibs=yes
15480 if test "$GCC" = yes ; then
15481 output_verbose_link_cmd='echo'
15482 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15483 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15484 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15485 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}'
15486 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}'
15488 case $cc_basename in
15490 output_verbose_link_cmd='echo'
15491 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15492 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15493 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15494 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}'
15495 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}'
15505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15506 hardcode_libdir_flag_spec='-L$libdir'
15507 hardcode_shlibpath_var=no
15514 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15515 # support. Future versions do this automatically, but an explicit c++rt0.o
15516 # does not break anything, and helps significantly (at the cost of a little
15519 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15520 hardcode_libdir_flag_spec='-R$libdir'
15521 hardcode_direct=yes
15522 hardcode_shlibpath_var=no
15525 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15527 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15528 hardcode_direct=yes
15529 hardcode_minus_L=yes
15530 hardcode_shlibpath_var=no
15533 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15534 freebsd* | kfreebsd*-gnu | dragonfly*)
15535 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15536 hardcode_libdir_flag_spec='-R$libdir'
15537 hardcode_direct=yes
15538 hardcode_shlibpath_var=no
15542 if test "$GCC" = yes; then
15543 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'
15545 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'
15547 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15548 hardcode_libdir_separator=:
15549 hardcode_direct=yes
15551 # hardcode_minus_L: Not really in the search PATH,
15552 # but as the default location of the library.
15553 hardcode_minus_L=yes
15554 export_dynamic_flag_spec='${wl}-E'
15558 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15559 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15561 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15563 if test "$with_gnu_ld" = no; then
15564 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15565 hardcode_libdir_separator=:
15567 hardcode_direct=yes
15568 export_dynamic_flag_spec='${wl}-E'
15570 # hardcode_minus_L: Not really in the search PATH,
15571 # but as the default location of the library.
15572 hardcode_minus_L=yes
15577 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15580 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15583 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15586 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15592 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15595 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15598 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15602 if test "$with_gnu_ld" = no; then
15603 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15604 hardcode_libdir_separator=:
15608 hardcode_libdir_flag_spec_ld='+b $libdir'
15610 hardcode_shlibpath_var=no
15613 hardcode_direct=yes
15614 export_dynamic_flag_spec='${wl}-E'
15616 # hardcode_minus_L: Not really in the search PATH,
15617 # but as the default location of the library.
15618 hardcode_minus_L=yes
15624 irix5* | irix6* | nonstopux*)
15625 if test "$GCC" = yes; then
15626 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'
15628 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'
15629 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15631 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15632 hardcode_libdir_separator=:
15633 link_all_deplibs=yes
15637 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15638 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15640 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15642 hardcode_libdir_flag_spec='-R$libdir'
15643 hardcode_direct=yes
15644 hardcode_shlibpath_var=no
15648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15649 hardcode_direct=yes
15650 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15651 hardcode_libdir_separator=:
15652 hardcode_shlibpath_var=no
15656 hardcode_direct=yes
15657 hardcode_shlibpath_var=no
15658 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15659 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15660 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15661 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15662 export_dynamic_flag_spec='${wl}-E'
15665 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15666 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15667 hardcode_libdir_flag_spec='-R$libdir'
15670 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15671 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15678 hardcode_libdir_flag_spec='-L$libdir'
15679 hardcode_minus_L=yes
15680 allow_undefined_flag=unsupported
15681 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'
15682 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15686 if test "$GCC" = yes; then
15687 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15688 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'
15690 allow_undefined_flag=' -expect_unresolved \*'
15691 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'
15693 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15694 hardcode_libdir_separator=:
15697 osf4* | osf5*) # as osf3* with the addition of -msym flag
15698 if test "$GCC" = yes; then
15699 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15700 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'
15701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15703 allow_undefined_flag=' -expect_unresolved \*'
15704 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'
15705 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15706 $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'
15708 # Both c and cxx compiler support -rpath directly
15709 hardcode_libdir_flag_spec='-rpath $libdir'
15711 hardcode_libdir_separator=:
15715 no_undefined_flag=' -z text'
15716 if test "$GCC" = yes; then
15718 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15719 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15720 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15723 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15724 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15725 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15727 hardcode_libdir_flag_spec='-R$libdir'
15728 hardcode_shlibpath_var=no
15730 solaris2.[0-5] | solaris2.[0-5].*) ;;
15732 # The compiler driver will combine linker options so we
15733 # cannot just pass the convience library names through
15734 # without $wl, iff we do not link with $LD.
15735 # Luckily, gcc supports the same syntax we need for Sun Studio.
15736 # Supported since Solaris 2.6 (maybe 2.5.1?)
15739 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15741 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' ;;
15744 link_all_deplibs=yes
15748 if test "x$host_vendor" = xsequent; then
15749 # Use $CC to link under sequent, because it throws in some extra .o
15750 # files that make .init and .fini sections work.
15751 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15753 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15755 hardcode_libdir_flag_spec='-L$libdir'
15756 hardcode_direct=yes
15757 hardcode_minus_L=yes
15758 hardcode_shlibpath_var=no
15762 case $host_vendor in
15764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15765 hardcode_direct=yes # is this really true???
15768 ## LD is ld it makes a PLAMLIB
15769 ## CC just makes a GrossModule.
15770 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15771 reload_cmds='$CC -r -o $output$reload_objs'
15775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15776 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15779 runpath_var='LD_RUN_PATH'
15780 hardcode_shlibpath_var=no
15784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15785 hardcode_shlibpath_var=no
15786 export_dynamic_flag_spec='-Bexport'
15790 if test -d /usr/nec; then
15791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15792 hardcode_shlibpath_var=no
15793 runpath_var=LD_RUN_PATH
15794 hardcode_runpath_var=yes
15799 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15800 no_undefined_flag='${wl}-z,text'
15801 archive_cmds_need_lc=no
15802 hardcode_shlibpath_var=no
15803 runpath_var='LD_RUN_PATH'
15805 if test "$GCC" = yes; then
15806 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15807 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15809 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15810 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15814 sysv5* | sco3.2v5* | sco5v6*)
15815 # Note: We can NOT use -z defs as we might desire, because we do not
15816 # link with -lc, and that would cause any symbols used from libc to
15817 # always be unresolved, which means just about no library would
15818 # ever link correctly. If we're not using GNU ld we use -z text
15819 # though, which does catch some bad symbols but isn't as heavy-handed
15821 no_undefined_flag='${wl}-z,text'
15822 allow_undefined_flag='${wl}-z,nodefs'
15823 archive_cmds_need_lc=no
15824 hardcode_shlibpath_var=no
15825 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15826 hardcode_libdir_separator=':'
15827 link_all_deplibs=yes
15828 export_dynamic_flag_spec='${wl}-Bexport'
15829 runpath_var='LD_RUN_PATH'
15831 if test "$GCC" = yes; then
15832 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15833 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15835 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15836 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15842 hardcode_libdir_flag_spec='-L$libdir'
15843 hardcode_shlibpath_var=no
15852 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15853 echo "${ECHO_T}$ld_shlibs" >&6; }
15854 test "$ld_shlibs" = no && can_build_shared=no
15857 # Do we need to explicitly link libc?
15859 case "x$archive_cmds_need_lc" in
15861 # Assume -lc should be added
15862 archive_cmds_need_lc=yes
15864 if test "$enable_shared" = yes && test "$GCC" = yes; then
15865 case $archive_cmds in
15867 # FIXME: we may have to deal with multi-command sequences.
15870 # Test whether the compiler implicitly links with -lc since on some
15871 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15872 # to ld, don't add -lc before -lgcc.
15873 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15874 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15876 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15879 (eval $ac_compile) 2>&5
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); } 2>conftest.err; then
15885 libobjs=conftest.$ac_objext
15887 wl=$lt_prog_compiler_wl
15888 pic_flag=$lt_prog_compiler_pic
15894 lt_save_allow_undefined_flag=$allow_undefined_flag
15895 allow_undefined_flag=
15896 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15897 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }
15902 archive_cmds_need_lc=no
15904 archive_cmds_need_lc=yes
15906 allow_undefined_flag=$lt_save_allow_undefined_flag
15908 cat conftest.err 1>&5
15911 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15912 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15919 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15920 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15921 library_names_spec=
15922 libname_spec='lib$name'
15926 postuninstall_cmds=
15930 shlibpath_overrides_runpath=unknown
15932 dynamic_linker="$host_os ld.so"
15933 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15934 if test "$GCC" = yes; then
15935 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15936 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15937 # if the path contains ";" then we assume it to be the separator
15938 # otherwise default to the standard path separator (i.e. ":") - it is
15939 # assumed that no part of a normal pathname contains ";" but that should
15940 # okay in the real world where ";" in dirpaths is itself problematic.
15941 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15946 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15948 need_lib_prefix=unknown
15949 hardcode_into_libs=no
15951 # when you set need_version to no, make sure it does not cause -set_version
15952 # flags to be left without arguments
15953 need_version=unknown
15958 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15959 shlibpath_var=LIBPATH
15961 # AIX 3 has no versioning support, so we append a major version to the name.
15962 soname_spec='${libname}${release}${shared_ext}$major'
15969 hardcode_into_libs=yes
15970 if test "$host_cpu" = ia64; then
15971 # AIX 5 supports IA64
15972 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15973 shlibpath_var=LD_LIBRARY_PATH
15975 # With GCC up to 2.95.x, collect2 would create an import file
15976 # for dependence libraries. The import file would start with
15977 # the line `#! .'. This would cause the generated library to
15978 # depend on `.', always an invalid library. This was fixed in
15979 # development snapshots of GCC prior to 3.0.
15981 aix4 | aix4.[01] | aix4.[01].*)
15982 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15984 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15987 can_build_shared=no
15991 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15992 # soname into executable. Probably we can add versioning support to
15993 # collect2, so additional links can be useful in future.
15994 if test "$aix_use_runtimelinking" = yes; then
15995 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15996 # instead of lib<name>.a to let people know that these are not
15997 # typical AIX shared libraries.
15998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16000 # We preserve .a as extension for shared libraries through AIX4.2
16001 # and later when we are not doing run time linking.
16002 library_names_spec='${libname}${release}.a $libname.a'
16003 soname_spec='${libname}${release}${shared_ext}$major'
16005 shlibpath_var=LIBPATH
16010 library_names_spec='$libname.ixlibrary $libname.a'
16011 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16012 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'
16016 library_names_spec='${libname}${shared_ext}'
16017 dynamic_linker="$host_os ld.so"
16018 shlibpath_var=LIBRARY_PATH
16024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16025 soname_spec='${libname}${release}${shared_ext}$major'
16026 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16027 shlibpath_var=LD_LIBRARY_PATH
16028 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16029 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16030 # the default ld.so.conf also contains /usr/contrib/lib and
16031 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16032 # libtool to hard-code these into programs
16035 cygwin* | mingw* | pw32*)
16036 version_type=windows
16041 case $GCC,$host_os in
16042 yes,cygwin* | yes,mingw* | yes,pw32*)
16043 library_names_spec='$libname.dll.a'
16044 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16045 postinstall_cmds='base_file=`basename \${file}`~
16046 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16047 dldir=$destdir/`dirname \$dlpath`~
16048 test -d \$dldir || mkdir -p \$dldir~
16049 $install_prog $dir/$dlname \$dldir/$dlname~
16050 chmod a+x \$dldir/$dlname'
16051 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16052 dlpath=$dir/\$dldll~
16054 shlibpath_overrides_runpath=yes
16058 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16059 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16060 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16063 # MinGW DLLs use traditional 'lib' prefix
16064 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16065 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16066 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16067 # It is most probably a Windows format PATH printed by
16068 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16069 # path with ; separators, and with drive letters. We can handle the
16070 # drive letters (cygwin fileutils understands them), so leave them,
16071 # especially as we might pass files found there to a mingw objdump,
16072 # which wouldn't understand a cygwinified path. Ahh.
16073 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16075 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16079 # pw32 DLLs use 'pw' prefix rather than 'lib'
16080 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16086 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16089 dynamic_linker='Win32 ld.exe'
16090 # FIXME: first we should search . and the directory the executable is in
16094 darwin* | rhapsody*)
16095 dynamic_linker="$host_os dyld"
16096 version_type=darwin
16099 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16100 soname_spec='${libname}${release}${major}$shared_ext'
16101 shlibpath_overrides_runpath=yes
16102 shlibpath_var=DYLD_LIBRARY_PATH
16103 shrext_cmds='.dylib'
16104 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16105 if test "$GCC" = yes; then
16106 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"`
16108 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16110 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16118 soname_spec='${libname}${release}${shared_ext}$major'
16119 shlibpath_var=LD_LIBRARY_PATH
16130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16131 soname_spec='${libname}${release}${shared_ext}$major'
16132 shlibpath_var=LD_LIBRARY_PATH
16133 shlibpath_overrides_runpath=no
16134 hardcode_into_libs=yes
16135 dynamic_linker='GNU ld.so'
16138 freebsd* | dragonfly*)
16139 # DragonFly does not have aout. When/if they implement a new
16140 # versioning mechanism, adjust this.
16141 if test -x /usr/bin/objformat; then
16142 objformat=`/usr/bin/objformat`
16145 freebsd[123]*) objformat=aout ;;
16146 *) objformat=elf ;;
16149 version_type=freebsd-$objformat
16150 case $version_type in
16152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16157 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16161 shlibpath_var=LD_LIBRARY_PATH
16164 shlibpath_overrides_runpath=yes
16166 freebsd3.[01]* | freebsdelf3.[01]*)
16167 shlibpath_overrides_runpath=yes
16168 hardcode_into_libs=yes
16170 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16171 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16172 shlibpath_overrides_runpath=no
16173 hardcode_into_libs=yes
16175 freebsd*) # from 4.6 on
16176 shlibpath_overrides_runpath=yes
16177 hardcode_into_libs=yes
16186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16187 soname_spec='${libname}${release}${shared_ext}$major'
16188 shlibpath_var=LD_LIBRARY_PATH
16189 hardcode_into_libs=yes
16192 hpux9* | hpux10* | hpux11*)
16193 # Give a soname corresponding to the major version so that dld.sl refuses to
16194 # link against other versions.
16201 hardcode_into_libs=yes
16202 dynamic_linker="$host_os dld.so"
16203 shlibpath_var=LD_LIBRARY_PATH
16204 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16206 soname_spec='${libname}${release}${shared_ext}$major'
16207 if test "X$HPUX_IA64_MODE" = X32; then
16208 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16210 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16212 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16216 hardcode_into_libs=yes
16217 dynamic_linker="$host_os dld.sl"
16218 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16219 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16221 soname_spec='${libname}${release}${shared_ext}$major'
16222 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16223 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16227 dynamic_linker="$host_os dld.sl"
16228 shlibpath_var=SHLIB_PATH
16229 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16231 soname_spec='${libname}${release}${shared_ext}$major'
16234 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16235 postinstall_cmds='chmod 555 $lib'
16242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16243 soname_spec='${libname}${release}${shared_ext}$major'
16244 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16245 shlibpath_var=LD_LIBRARY_PATH
16246 shlibpath_overrides_runpath=no
16247 hardcode_into_libs=yes
16250 irix5* | irix6* | nonstopux*)
16252 nonstopux*) version_type=nonstopux ;;
16254 if test "$lt_cv_prog_gnu_ld" = yes; then
16262 soname_spec='${libname}${release}${shared_ext}$major'
16263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16265 irix5* | nonstopux*)
16266 libsuff= shlibsuff=
16269 case $LD in # libtool.m4 will add one of these switches to LD
16270 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16271 libsuff= shlibsuff= libmagic=32-bit;;
16272 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16273 libsuff=32 shlibsuff=N32 libmagic=N32;;
16274 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16275 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16276 *) libsuff= shlibsuff= libmagic=never-match;;
16280 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16281 shlibpath_overrides_runpath=no
16282 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16283 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16284 hardcode_into_libs=yes
16287 # No shared lib support for Linux oldld, aout, or coff.
16288 linux*oldld* | linux*aout* | linux*coff*)
16292 # This must be Linux ELF.
16297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16298 soname_spec='${libname}${release}${shared_ext}$major'
16299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16300 shlibpath_var=LD_LIBRARY_PATH
16301 shlibpath_overrides_runpath=no
16302 # This implies no fast_install, which is unacceptable.
16303 # Some rework will be needed to allow for fast_install
16304 # before this can be enabled.
16305 hardcode_into_libs=yes
16307 # Append ld.so.conf contents to the search path
16308 if test -f /etc/ld.so.conf; then
16309 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' ' '`
16310 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16313 # We used to test for /lib/ld.so.1 and disable shared libraries on
16314 # powerpc, because MkLinux only supported shared libraries with the
16315 # GNU dynamic linker. Since this was broken with cross compilers,
16316 # most powerpc-linux boxes support dynamic linking these days and
16317 # people can always --disable-shared, the test was removed, and we
16318 # assume the GNU/Linux dynamic linker is in use.
16319 dynamic_linker='GNU/Linux ld.so'
16326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16327 soname_spec='${libname}${release}${shared_ext}$major'
16328 shlibpath_var=LD_LIBRARY_PATH
16329 shlibpath_overrides_runpath=no
16330 hardcode_into_libs=yes
16331 dynamic_linker='GNU ld.so'
16338 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16340 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16341 dynamic_linker='NetBSD (a.out) ld.so'
16343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16344 soname_spec='${libname}${release}${shared_ext}$major'
16345 dynamic_linker='NetBSD ld.elf_so'
16347 shlibpath_var=LD_LIBRARY_PATH
16348 shlibpath_overrides_runpath=yes
16349 hardcode_into_libs=yes
16354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16355 shlibpath_var=LD_LIBRARY_PATH
16356 shlibpath_overrides_runpath=yes
16363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16364 soname_spec='${libname}${release}${shared_ext}$major'
16365 shlibpath_var=LD_LIBRARY_PATH
16366 shlibpath_overrides_runpath=yes
16371 sys_lib_dlsearch_path_spec="/usr/lib"
16373 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16375 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16376 *) need_version=no ;;
16378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16380 shlibpath_var=LD_LIBRARY_PATH
16381 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16383 openbsd2.[89] | openbsd2.[89].*)
16384 shlibpath_overrides_runpath=no
16387 shlibpath_overrides_runpath=yes
16391 shlibpath_overrides_runpath=yes
16396 libname_spec='$name'
16399 library_names_spec='$libname${shared_ext} $libname.a'
16400 dynamic_linker='OS/2 ld.exe'
16401 shlibpath_var=LIBPATH
16404 osf3* | osf4* | osf5*)
16408 soname_spec='${libname}${release}${shared_ext}$major'
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16410 shlibpath_var=LD_LIBRARY_PATH
16411 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16412 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16420 soname_spec='${libname}${release}${shared_ext}$major'
16421 shlibpath_var=LD_LIBRARY_PATH
16422 shlibpath_overrides_runpath=yes
16423 hardcode_into_libs=yes
16424 # ldd complains unless libraries are executable
16425 postinstall_cmds='chmod +x $lib'
16430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16431 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16432 shlibpath_var=LD_LIBRARY_PATH
16433 shlibpath_overrides_runpath=yes
16434 if test "$with_gnu_ld" = yes; then
16442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16443 soname_spec='${libname}${release}${shared_ext}$major'
16444 shlibpath_var=LD_LIBRARY_PATH
16445 case $host_vendor in
16447 shlibpath_overrides_runpath=no
16449 export_dynamic_flag_spec='${wl}-Blargedynsym'
16450 runpath_var=LD_RUN_PATH
16458 shlibpath_overrides_runpath=no
16459 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16465 if test -d /usr/nec ;then
16467 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16468 soname_spec='$libname${shared_ext}.$major'
16469 shlibpath_var=LD_LIBRARY_PATH
16473 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16474 version_type=freebsd-elf
16477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16478 soname_spec='${libname}${release}${shared_ext}$major'
16479 shlibpath_var=LD_LIBRARY_PATH
16480 hardcode_into_libs=yes
16481 if test "$with_gnu_ld" = yes; then
16482 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16483 shlibpath_overrides_runpath=no
16485 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16486 shlibpath_overrides_runpath=yes
16489 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16493 sys_lib_dlsearch_path_spec='/usr/lib'
16498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16499 soname_spec='${libname}${release}${shared_ext}$major'
16500 shlibpath_var=LD_LIBRARY_PATH
16507 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16508 echo "${ECHO_T}$dynamic_linker" >&6; }
16509 test "$dynamic_linker" = no && can_build_shared=no
16511 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16512 if test "$GCC" = yes; then
16513 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16516 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16517 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16519 if test -n "$hardcode_libdir_flag_spec" || \
16520 test -n "$runpath_var" || \
16521 test "X$hardcode_automatic" = "Xyes" ; then
16523 # We can hardcode non-existant directories.
16524 if test "$hardcode_direct" != no &&
16525 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16526 # have to relink, otherwise we might link with an installed library
16527 # when we should be linking with a yet-to-be-installed one
16528 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16529 test "$hardcode_minus_L" != no; then
16530 # Linking always hardcodes the temporary library directory.
16531 hardcode_action=relink
16533 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16534 hardcode_action=immediate
16537 # We cannot hardcode anything, or else we can only hardcode existing
16539 hardcode_action=unsupported
16541 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16542 echo "${ECHO_T}$hardcode_action" >&6; }
16544 if test "$hardcode_action" = relink; then
16545 # Fast installation is not supported
16546 enable_fast_install=no
16547 elif test "$shlibpath_overrides_runpath" = yes ||
16548 test "$enable_shared" = no; then
16549 # Fast installation is not necessary
16550 enable_fast_install=needless
16555 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16556 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16557 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16558 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16559 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16560 { echo "$as_me:$LINENO: result: yes" >&5
16561 echo "${ECHO_T}yes" >&6; }
16563 # FIXME - insert some real tests, host_os isn't really good enough
16566 if test -n "$STRIP" ; then
16567 striplib="$STRIP -x"
16568 { echo "$as_me:$LINENO: result: yes" >&5
16569 echo "${ECHO_T}yes" >&6; }
16571 { echo "$as_me:$LINENO: result: no" >&5
16572 echo "${ECHO_T}no" >&6; }
16576 { echo "$as_me:$LINENO: result: no" >&5
16577 echo "${ECHO_T}no" >&6; }
16582 if test "x$enable_dlopen" != xyes; then
16583 enable_dlopen=unknown
16584 enable_dlopen_self=unknown
16585 enable_dlopen_self_static=unknown
16592 lt_cv_dlopen="load_add_on"
16594 lt_cv_dlopen_self=yes
16598 lt_cv_dlopen="LoadLibrary"
16603 lt_cv_dlopen="dlopen"
16608 # if libdl is installed we need to link against it
16609 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16610 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16611 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16612 echo $ECHO_N "(cached) $ECHO_C" >&6
16614 ac_check_lib_save_LIBS=$LIBS
16616 cat >conftest.$ac_ext <<_ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h. */
16623 /* Override any GCC internal prototype to avoid an error.
16624 Use char because int might match the return type of a GCC
16625 builtin and then its argument prototype would still apply. */
16638 rm -f conftest.$ac_objext conftest$ac_exeext
16639 if { (ac_try="$ac_link"
16640 case "(($ac_try" in
16641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642 *) ac_try_echo=$ac_try;;
16644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16645 (eval "$ac_link") 2>conftest.er1
16647 grep -v '^ *+' conftest.er1 >conftest.err
16649 cat conftest.err >&5
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); } &&
16652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16653 { (case "(($ac_try" in
16654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655 *) ac_try_echo=$ac_try;;
16657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658 (eval "$ac_try") 2>&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; } &&
16662 { ac_try='test -s conftest$ac_exeext'
16663 { (case "(($ac_try" in
16664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665 *) ac_try_echo=$ac_try;;
16667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668 (eval "$ac_try") 2>&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; }; then
16672 ac_cv_lib_dl_dlopen=yes
16674 echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16677 ac_cv_lib_dl_dlopen=no
16680 rm -f core conftest.err conftest.$ac_objext \
16681 conftest$ac_exeext conftest.$ac_ext
16682 LIBS=$ac_check_lib_save_LIBS
16684 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16685 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16686 if test $ac_cv_lib_dl_dlopen = yes; then
16687 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16690 lt_cv_dlopen="dyld"
16692 lt_cv_dlopen_self=yes
16699 { echo "$as_me:$LINENO: checking for shl_load" >&5
16700 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16701 if test "${ac_cv_func_shl_load+set}" = set; then
16702 echo $ECHO_N "(cached) $ECHO_C" >&6
16704 cat >conftest.$ac_ext <<_ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h. */
16710 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16712 #define shl_load innocuous_shl_load
16714 /* System header to define __stub macros and hopefully few prototypes,
16715 which can conflict with char shl_load (); below.
16716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16717 <limits.h> exists even on freestanding compilers. */
16720 # include <limits.h>
16722 # include <assert.h>
16727 /* Override any GCC internal prototype to avoid an error.
16728 Use char because int might match the return type of a GCC
16729 builtin and then its argument prototype would still apply. */
16734 /* The GNU C library defines this for functions which it implements
16735 to always fail with ENOSYS. Some functions are actually named
16736 something starting with __ and the normal name is an alias. */
16737 #if defined __stub_shl_load || defined __stub___shl_load
16744 return shl_load ();
16749 rm -f conftest.$ac_objext conftest$ac_exeext
16750 if { (ac_try="$ac_link"
16751 case "(($ac_try" in
16752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16753 *) ac_try_echo=$ac_try;;
16755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16756 (eval "$ac_link") 2>conftest.er1
16758 grep -v '^ *+' conftest.er1 >conftest.err
16760 cat conftest.err >&5
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); } &&
16763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16764 { (case "(($ac_try" in
16765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16766 *) ac_try_echo=$ac_try;;
16768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16769 (eval "$ac_try") 2>&5
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); }; } &&
16773 { ac_try='test -s conftest$ac_exeext'
16774 { (case "(($ac_try" in
16775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16776 *) ac_try_echo=$ac_try;;
16778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16779 (eval "$ac_try") 2>&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; }; then
16783 ac_cv_func_shl_load=yes
16785 echo "$as_me: failed program was:" >&5
16786 sed 's/^/| /' conftest.$ac_ext >&5
16788 ac_cv_func_shl_load=no
16791 rm -f core conftest.err conftest.$ac_objext \
16792 conftest$ac_exeext conftest.$ac_ext
16794 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16795 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16796 if test $ac_cv_func_shl_load = yes; then
16797 lt_cv_dlopen="shl_load"
16799 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16800 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16801 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16802 echo $ECHO_N "(cached) $ECHO_C" >&6
16804 ac_check_lib_save_LIBS=$LIBS
16806 cat >conftest.$ac_ext <<_ACEOF
16809 cat confdefs.h >>conftest.$ac_ext
16810 cat >>conftest.$ac_ext <<_ACEOF
16811 /* end confdefs.h. */
16813 /* Override any GCC internal prototype to avoid an error.
16814 Use char because int might match the return type of a GCC
16815 builtin and then its argument prototype would still apply. */
16823 return shl_load ();
16828 rm -f conftest.$ac_objext conftest$ac_exeext
16829 if { (ac_try="$ac_link"
16830 case "(($ac_try" in
16831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832 *) ac_try_echo=$ac_try;;
16834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16835 (eval "$ac_link") 2>conftest.er1
16837 grep -v '^ *+' conftest.er1 >conftest.err
16839 cat conftest.err >&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } &&
16842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16843 { (case "(($ac_try" in
16844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845 *) ac_try_echo=$ac_try;;
16847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848 (eval "$ac_try") 2>&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; } &&
16852 { ac_try='test -s conftest$ac_exeext'
16853 { (case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_try") 2>&5
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; }; then
16862 ac_cv_lib_dld_shl_load=yes
16864 echo "$as_me: failed program was:" >&5
16865 sed 's/^/| /' conftest.$ac_ext >&5
16867 ac_cv_lib_dld_shl_load=no
16870 rm -f core conftest.err conftest.$ac_objext \
16871 conftest$ac_exeext conftest.$ac_ext
16872 LIBS=$ac_check_lib_save_LIBS
16874 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16875 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16876 if test $ac_cv_lib_dld_shl_load = yes; then
16877 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16879 { echo "$as_me:$LINENO: checking for dlopen" >&5
16880 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16881 if test "${ac_cv_func_dlopen+set}" = set; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16884 cat >conftest.$ac_ext <<_ACEOF
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h. */
16890 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16892 #define dlopen innocuous_dlopen
16894 /* System header to define __stub macros and hopefully few prototypes,
16895 which can conflict with char dlopen (); below.
16896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16897 <limits.h> exists even on freestanding compilers. */
16900 # include <limits.h>
16902 # include <assert.h>
16907 /* Override any GCC internal prototype to avoid an error.
16908 Use char because int might match the return type of a GCC
16909 builtin and then its argument prototype would still apply. */
16914 /* The GNU C library defines this for functions which it implements
16915 to always fail with ENOSYS. Some functions are actually named
16916 something starting with __ and the normal name is an alias. */
16917 #if defined __stub_dlopen || defined __stub___dlopen
16929 rm -f conftest.$ac_objext conftest$ac_exeext
16930 if { (ac_try="$ac_link"
16931 case "(($ac_try" in
16932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933 *) ac_try_echo=$ac_try;;
16935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936 (eval "$ac_link") 2>conftest.er1
16938 grep -v '^ *+' conftest.er1 >conftest.err
16940 cat conftest.err >&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); } &&
16943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16944 { (case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949 (eval "$ac_try") 2>&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; } &&
16953 { ac_try='test -s conftest$ac_exeext'
16954 { (case "(($ac_try" in
16955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956 *) ac_try_echo=$ac_try;;
16958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959 (eval "$ac_try") 2>&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; }; then
16963 ac_cv_func_dlopen=yes
16965 echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16968 ac_cv_func_dlopen=no
16971 rm -f core conftest.err conftest.$ac_objext \
16972 conftest$ac_exeext conftest.$ac_ext
16974 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16975 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16976 if test $ac_cv_func_dlopen = yes; then
16977 lt_cv_dlopen="dlopen"
16979 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16980 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16981 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16982 echo $ECHO_N "(cached) $ECHO_C" >&6
16984 ac_check_lib_save_LIBS=$LIBS
16986 cat >conftest.$ac_ext <<_ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h. */
16993 /* Override any GCC internal prototype to avoid an error.
16994 Use char because int might match the return type of a GCC
16995 builtin and then its argument prototype would still apply. */
17008 rm -f conftest.$ac_objext conftest$ac_exeext
17009 if { (ac_try="$ac_link"
17010 case "(($ac_try" in
17011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012 *) ac_try_echo=$ac_try;;
17014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015 (eval "$ac_link") 2>conftest.er1
17017 grep -v '^ *+' conftest.er1 >conftest.err
17019 cat conftest.err >&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
17022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17023 { (case "(($ac_try" in
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17028 (eval "$ac_try") 2>&5
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; } &&
17032 { ac_try='test -s conftest$ac_exeext'
17033 { (case "(($ac_try" in
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035 *) ac_try_echo=$ac_try;;
17037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038 (eval "$ac_try") 2>&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); }; }; then
17042 ac_cv_lib_dl_dlopen=yes
17044 echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.$ac_ext >&5
17047 ac_cv_lib_dl_dlopen=no
17050 rm -f core conftest.err conftest.$ac_objext \
17051 conftest$ac_exeext conftest.$ac_ext
17052 LIBS=$ac_check_lib_save_LIBS
17054 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17055 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17056 if test $ac_cv_lib_dl_dlopen = yes; then
17057 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17059 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17060 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17061 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17062 echo $ECHO_N "(cached) $ECHO_C" >&6
17064 ac_check_lib_save_LIBS=$LIBS
17065 LIBS="-lsvld $LIBS"
17066 cat >conftest.$ac_ext <<_ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h. */
17073 /* Override any GCC internal prototype to avoid an error.
17074 Use char because int might match the return type of a GCC
17075 builtin and then its argument prototype would still apply. */
17088 rm -f conftest.$ac_objext conftest$ac_exeext
17089 if { (ac_try="$ac_link"
17090 case "(($ac_try" in
17091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092 *) ac_try_echo=$ac_try;;
17094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095 (eval "$ac_link") 2>conftest.er1
17097 grep -v '^ *+' conftest.er1 >conftest.err
17099 cat conftest.err >&5
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); } &&
17102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17112 { ac_try='test -s conftest$ac_exeext'
17113 { (case "(($ac_try" in
17114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115 *) ac_try_echo=$ac_try;;
17117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17118 (eval "$ac_try") 2>&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); }; }; then
17122 ac_cv_lib_svld_dlopen=yes
17124 echo "$as_me: failed program was:" >&5
17125 sed 's/^/| /' conftest.$ac_ext >&5
17127 ac_cv_lib_svld_dlopen=no
17130 rm -f core conftest.err conftest.$ac_objext \
17131 conftest$ac_exeext conftest.$ac_ext
17132 LIBS=$ac_check_lib_save_LIBS
17134 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17135 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17136 if test $ac_cv_lib_svld_dlopen = yes; then
17137 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17139 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17140 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17141 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17142 echo $ECHO_N "(cached) $ECHO_C" >&6
17144 ac_check_lib_save_LIBS=$LIBS
17146 cat >conftest.$ac_ext <<_ACEOF
17149 cat confdefs.h >>conftest.$ac_ext
17150 cat >>conftest.$ac_ext <<_ACEOF
17151 /* end confdefs.h. */
17153 /* Override any GCC internal prototype to avoid an error.
17154 Use char because int might match the return type of a GCC
17155 builtin and then its argument prototype would still apply. */
17163 return dld_link ();
17168 rm -f conftest.$ac_objext conftest$ac_exeext
17169 if { (ac_try="$ac_link"
17170 case "(($ac_try" in
17171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17172 *) ac_try_echo=$ac_try;;
17174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17175 (eval "$ac_link") 2>conftest.er1
17177 grep -v '^ *+' conftest.er1 >conftest.err
17179 cat conftest.err >&5
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); } &&
17182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17183 { (case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_try") 2>&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; } &&
17192 { ac_try='test -s conftest$ac_exeext'
17193 { (case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198 (eval "$ac_try") 2>&5
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; }; then
17202 ac_cv_lib_dld_dld_link=yes
17204 echo "$as_me: failed program was:" >&5
17205 sed 's/^/| /' conftest.$ac_ext >&5
17207 ac_cv_lib_dld_dld_link=no
17210 rm -f core conftest.err conftest.$ac_objext \
17211 conftest$ac_exeext conftest.$ac_ext
17212 LIBS=$ac_check_lib_save_LIBS
17214 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17215 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17216 if test $ac_cv_lib_dld_dld_link = yes; then
17217 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17238 if test "x$lt_cv_dlopen" != xno; then
17244 case $lt_cv_dlopen in
17246 save_CPPFLAGS="$CPPFLAGS"
17247 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17249 save_LDFLAGS="$LDFLAGS"
17250 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17253 LIBS="$lt_cv_dlopen_libs $LIBS"
17255 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17256 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17257 if test "${lt_cv_dlopen_self+set}" = set; then
17258 echo $ECHO_N "(cached) $ECHO_C" >&6
17260 if test "$cross_compiling" = yes; then :
17261 lt_cv_dlopen_self=cross
17263 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17264 lt_status=$lt_dlunknown
17265 cat > conftest.$ac_ext <<EOF
17266 #line 17266 "configure"
17267 #include "confdefs.h"
17276 # define LT_DLGLOBAL RTLD_GLOBAL
17279 # define LT_DLGLOBAL DL_GLOBAL
17281 # define LT_DLGLOBAL 0
17285 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17286 find out it does not work in some platform. */
17287 #ifndef LT_DLLAZY_OR_NOW
17289 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17292 # define LT_DLLAZY_OR_NOW DL_LAZY
17295 # define LT_DLLAZY_OR_NOW RTLD_NOW
17298 # define LT_DLLAZY_OR_NOW DL_NOW
17300 # define LT_DLLAZY_OR_NOW 0
17308 extern "C" void exit (int);
17311 void fnord() { int i=42;}
17314 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17315 int status = $lt_dlunknown;
17319 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17320 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17321 /* dlclose (self); */
17329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17330 (eval $ac_link) 2>&5
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17334 (./conftest; exit; ) >&5 2>/dev/null
17336 case x$lt_status in
17337 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17338 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17339 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17342 # compilation failed
17343 lt_cv_dlopen_self=no
17350 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17351 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17353 if test "x$lt_cv_dlopen_self" = xyes; then
17354 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17355 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17356 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17357 if test "${lt_cv_dlopen_self_static+set}" = set; then
17358 echo $ECHO_N "(cached) $ECHO_C" >&6
17360 if test "$cross_compiling" = yes; then :
17361 lt_cv_dlopen_self_static=cross
17363 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17364 lt_status=$lt_dlunknown
17365 cat > conftest.$ac_ext <<EOF
17366 #line 17366 "configure"
17367 #include "confdefs.h"
17376 # define LT_DLGLOBAL RTLD_GLOBAL
17379 # define LT_DLGLOBAL DL_GLOBAL
17381 # define LT_DLGLOBAL 0
17385 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17386 find out it does not work in some platform. */
17387 #ifndef LT_DLLAZY_OR_NOW
17389 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17392 # define LT_DLLAZY_OR_NOW DL_LAZY
17395 # define LT_DLLAZY_OR_NOW RTLD_NOW
17398 # define LT_DLLAZY_OR_NOW DL_NOW
17400 # define LT_DLLAZY_OR_NOW 0
17408 extern "C" void exit (int);
17411 void fnord() { int i=42;}
17414 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17415 int status = $lt_dlunknown;
17419 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17420 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17421 /* dlclose (self); */
17429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17430 (eval $ac_link) 2>&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17434 (./conftest; exit; ) >&5 2>/dev/null
17436 case x$lt_status in
17437 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17438 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17439 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17442 # compilation failed
17443 lt_cv_dlopen_self_static=no
17450 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17451 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17454 CPPFLAGS="$save_CPPFLAGS"
17455 LDFLAGS="$save_LDFLAGS"
17460 case $lt_cv_dlopen_self in
17461 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17462 *) enable_dlopen_self=unknown ;;
17465 case $lt_cv_dlopen_self_static in
17466 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17467 *) enable_dlopen_self_static=unknown ;;
17472 # Report which library types will actually be built
17473 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17474 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17475 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17476 echo "${ECHO_T}$can_build_shared" >&6; }
17478 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17479 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17480 test "$can_build_shared" = "no" && enable_shared=no
17482 # On AIX, shared libraries and static libraries use the same namespace, and
17483 # are all built from PIC.
17486 test "$enable_shared" = yes && enable_static=no
17487 if test -n "$RANLIB"; then
17488 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17489 postinstall_cmds='$RANLIB $lib'
17494 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17495 test "$enable_shared" = yes && enable_static=no
17499 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17500 echo "${ECHO_T}$enable_shared" >&6; }
17502 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17503 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17504 # Make sure either enable_shared or enable_static is yes.
17505 test "$enable_shared" = yes || enable_static=yes
17506 { echo "$as_me:$LINENO: result: $enable_static" >&5
17507 echo "${ECHO_T}$enable_static" >&6; }
17509 # The else clause should only fire when bootstrapping the
17510 # libtool distribution, otherwise you forgot to ship ltmain.sh
17511 # with your package, and you will get complaints that there are
17512 # no rules to generate ltmain.sh.
17513 if test -f "$ltmain"; then
17514 # See if we are running on zsh, and set the options which allow our commands through
17515 # without removal of \ escapes.
17516 if test -n "${ZSH_VERSION+set}" ; then
17517 setopt NO_GLOB_SUBST
17519 # Now quote all the things that may contain metacharacters while being
17520 # careful not to overquote the AC_SUBSTed values. We take copies of the
17521 # variables and quote the copies for generation of the libtool script.
17522 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17524 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17525 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17526 deplibs_check_method reload_flag reload_cmds need_locks \
17527 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17528 lt_cv_sys_global_symbol_to_c_name_address \
17529 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17530 old_postinstall_cmds old_postuninstall_cmds \
17534 lt_prog_compiler_wl \
17535 lt_prog_compiler_pic \
17536 lt_prog_compiler_static \
17537 lt_prog_compiler_no_builtin_flag \
17538 export_dynamic_flag_spec \
17539 thread_safe_flag_spec \
17540 whole_archive_flag_spec \
17541 enable_shared_with_static_runtimes \
17543 old_archive_from_new_cmds \
17548 compiler_lib_search_path \
17550 archive_expsym_cmds \
17552 postuninstall_cmds \
17553 old_archive_from_expsyms_cmds \
17554 allow_undefined_flag \
17555 no_undefined_flag \
17556 export_symbols_cmds \
17557 hardcode_libdir_flag_spec \
17558 hardcode_libdir_flag_spec_ld \
17559 hardcode_libdir_separator \
17560 hardcode_automatic \
17562 module_expsym_cmds \
17563 lt_cv_prog_compiler_c_o \
17565 include_expsyms; do
17568 old_archive_cmds | \
17569 old_archive_from_new_cmds | \
17571 archive_expsym_cmds | \
17573 module_expsym_cmds | \
17574 old_archive_from_expsyms_cmds | \
17575 export_symbols_cmds | \
17576 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17577 postinstall_cmds | postuninstall_cmds | \
17578 old_postinstall_cmds | old_postuninstall_cmds | \
17579 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17580 # Double-quote double-evaled strings.
17581 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17584 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17590 *'\$0 --fallback-echo"')
17591 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17595 cfgfile="${ofile}T"
17596 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17598 { echo "$as_me:$LINENO: creating $ofile" >&5
17599 echo "$as_me: creating $ofile" >&6;}
17601 cat <<__EOF__ >> "$cfgfile"
17604 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17605 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17606 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17608 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17609 # Free Software Foundation, Inc.
17611 # This file is part of GNU Libtool:
17612 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17614 # This program is free software; you can redistribute it and/or modify
17615 # it under the terms of the GNU General Public License as published by
17616 # the Free Software Foundation; either version 2 of the License, or
17617 # (at your option) any later version.
17619 # This program is distributed in the hope that it will be useful, but
17620 # WITHOUT ANY WARRANTY; without even the implied warranty of
17621 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17622 # General Public License for more details.
17624 # You should have received a copy of the GNU General Public License
17625 # along with this program; if not, write to the Free Software
17626 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17628 # As a special exception to the GNU General Public License, if you
17629 # distribute this file as part of a program that contains a
17630 # configuration script generated by Autoconf, you may include it under
17631 # the same distribution terms that you use for the rest of that program.
17633 # A sed program that does not truncate output.
17636 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17637 Xsed="$SED -e 1s/^X//"
17639 # The HP-UX ksh and POSIX shell print the target directory to stdout
17640 # if CDPATH is set.
17641 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17643 # The names of the tagged configurations supported by this script.
17646 # ### BEGIN LIBTOOL CONFIG
17648 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17650 # Shell to use when invoking shell scripts.
17653 # Whether or not to build shared libraries.
17654 build_libtool_libs=$enable_shared
17656 # Whether or not to build static libraries.
17657 build_old_libs=$enable_static
17659 # Whether or not to add -lc for building shared libraries.
17660 build_libtool_need_lc=$archive_cmds_need_lc
17662 # Whether or not to disallow shared libs when runtime libs are static
17663 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17665 # Whether or not to optimize for fast installation.
17666 fast_install=$enable_fast_install
17669 host_alias=$host_alias
17673 # The build system.
17674 build_alias=$build_alias
17678 # An echo program that does not interpret backslashes.
17683 AR_FLAGS=$lt_AR_FLAGS
17688 # LTCC compiler flags.
17689 LTCFLAGS=$lt_LTCFLAGS
17691 # A language-specific compiler.
17694 # Is the compiler the GNU C compiler?
17700 # The linker used to build libraries.
17703 # Whether we need hard or soft links.
17706 # A BSD-compatible nm program.
17709 # A symbol stripping program
17712 # Used to examine libraries when file_magic_cmd begins "file"
17713 MAGIC_CMD=$MAGIC_CMD
17715 # Used on cygwin: DLL creation program.
17718 # Used on cygwin: object dumper.
17721 # Used on cygwin: assembler.
17724 # The name of the directory that contains temporary libtool files.
17727 # How to create reloadable object files.
17728 reload_flag=$lt_reload_flag
17729 reload_cmds=$lt_reload_cmds
17731 # How to pass a linker flag through the compiler.
17732 wl=$lt_lt_prog_compiler_wl
17734 # Object file suffix (normally "o").
17735 objext="$ac_objext"
17737 # Old archive suffix (normally "a").
17740 # Shared library suffix (normally ".so").
17741 shrext_cmds='$shrext_cmds'
17743 # Executable file suffix (normally "").
17746 # Additional compiler flags for building library objects.
17747 pic_flag=$lt_lt_prog_compiler_pic
17750 # What is the maximum length of a command?
17751 max_cmd_len=$lt_cv_sys_max_cmd_len
17753 # Does compiler simultaneously support -c and -o options?
17754 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17756 # Must we lock files when doing compilation?
17757 need_locks=$lt_need_locks
17759 # Do we need the lib prefix for modules?
17760 need_lib_prefix=$need_lib_prefix
17762 # Do we need a version for libraries?
17763 need_version=$need_version
17765 # Whether dlopen is supported.
17766 dlopen_support=$enable_dlopen
17768 # Whether dlopen of programs is supported.
17769 dlopen_self=$enable_dlopen_self
17771 # Whether dlopen of statically linked programs is supported.
17772 dlopen_self_static=$enable_dlopen_self_static
17774 # Compiler flag to prevent dynamic linking.
17775 link_static_flag=$lt_lt_prog_compiler_static
17777 # Compiler flag to turn off builtin functions.
17778 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17780 # Compiler flag to allow reflexive dlopens.
17781 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17783 # Compiler flag to generate shared objects directly from archives.
17784 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17786 # Compiler flag to generate thread-safe objects.
17787 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17789 # Library versioning type.
17790 version_type=$version_type
17792 # Format of library name prefix.
17793 libname_spec=$lt_libname_spec
17795 # List of archive names. First name is the real one, the rest are links.
17796 # The last name is the one that the linker finds with -lNAME.
17797 library_names_spec=$lt_library_names_spec
17799 # The coded name of the library, if different from the real name.
17800 soname_spec=$lt_soname_spec
17802 # Commands used to build and install an old-style archive.
17804 old_archive_cmds=$lt_old_archive_cmds
17805 old_postinstall_cmds=$lt_old_postinstall_cmds
17806 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17808 # Create an old-style archive from a shared archive.
17809 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17811 # Create a temporary old-style archive to link instead of a shared archive.
17812 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17814 # Commands used to build and install a shared archive.
17815 archive_cmds=$lt_archive_cmds
17816 archive_expsym_cmds=$lt_archive_expsym_cmds
17817 postinstall_cmds=$lt_postinstall_cmds
17818 postuninstall_cmds=$lt_postuninstall_cmds
17820 # Commands used to build a loadable module (assumed same as above if empty)
17821 module_cmds=$lt_module_cmds
17822 module_expsym_cmds=$lt_module_expsym_cmds
17824 # Commands to strip libraries.
17825 old_striplib=$lt_old_striplib
17826 striplib=$lt_striplib
17828 # Dependencies to place before the objects being linked to create a
17830 predep_objects=$lt_predep_objects
17832 # Dependencies to place after the objects being linked to create a
17834 postdep_objects=$lt_postdep_objects
17836 # Dependencies to place before the objects being linked to create a
17838 predeps=$lt_predeps
17840 # Dependencies to place after the objects being linked to create a
17842 postdeps=$lt_postdeps
17844 # The library search path used internally by the compiler when linking
17845 # a shared library.
17846 compiler_lib_search_path=$lt_compiler_lib_search_path
17848 # Method to check whether dependent libraries are shared objects.
17849 deplibs_check_method=$lt_deplibs_check_method
17851 # Command to use when deplibs_check_method == file_magic.
17852 file_magic_cmd=$lt_file_magic_cmd
17854 # Flag that allows shared libraries with undefined symbols to be built.
17855 allow_undefined_flag=$lt_allow_undefined_flag
17857 # Flag that forces no undefined symbols.
17858 no_undefined_flag=$lt_no_undefined_flag
17860 # Commands used to finish a libtool library installation in a directory.
17861 finish_cmds=$lt_finish_cmds
17863 # Same as above, but a single script fragment to be evaled but not shown.
17864 finish_eval=$lt_finish_eval
17866 # Take the output of nm and produce a listing of raw symbols and C names.
17867 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17869 # Transform the output of nm in a proper C declaration
17870 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17872 # Transform the output of nm in a C name address pair
17873 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17875 # This is the shared library runtime path variable.
17876 runpath_var=$runpath_var
17878 # This is the shared library path variable.
17879 shlibpath_var=$shlibpath_var
17881 # Is shlibpath searched before the hard-coded library search path?
17882 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17884 # How to hardcode a shared library path into an executable.
17885 hardcode_action=$hardcode_action
17887 # Whether we should hardcode library paths into libraries.
17888 hardcode_into_libs=$hardcode_into_libs
17890 # Flag to hardcode \$libdir into a binary during linking.
17891 # This must work even if \$libdir does not exist.
17892 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17894 # If ld is used when linking, flag to hardcode \$libdir into
17895 # a binary during linking. This must work even if \$libdir does
17897 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17899 # Whether we need a single -rpath flag with a separated argument.
17900 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17902 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17903 # resulting binary.
17904 hardcode_direct=$hardcode_direct
17906 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17907 # resulting binary.
17908 hardcode_minus_L=$hardcode_minus_L
17910 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17911 # the resulting binary.
17912 hardcode_shlibpath_var=$hardcode_shlibpath_var
17914 # Set to yes if building a shared library automatically hardcodes DIR into the library
17915 # and all subsequent libraries and executables linked against it.
17916 hardcode_automatic=$hardcode_automatic
17918 # Variables whose values should be saved in libtool wrapper scripts and
17919 # restored at relink time.
17920 variables_saved_for_relink="$variables_saved_for_relink"
17922 # Whether libtool must link a program against all its dependency libraries.
17923 link_all_deplibs=$link_all_deplibs
17925 # Compile-time system search path for libraries
17926 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17928 # Run-time system search path for libraries
17929 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17931 # Fix the shell variable \$srcfile for the compiler.
17932 fix_srcfile_path="$fix_srcfile_path"
17934 # Set to yes if exported symbols are required.
17935 always_export_symbols=$always_export_symbols
17937 # The commands to list exported symbols.
17938 export_symbols_cmds=$lt_export_symbols_cmds
17940 # The commands to extract the exported symbol list from a shared archive.
17941 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17943 # Symbols that should not be listed in the preloaded symbols.
17944 exclude_expsyms=$lt_exclude_expsyms
17946 # Symbols that must always be exported.
17947 include_expsyms=$lt_include_expsyms
17949 # ### END LIBTOOL CONFIG
17956 cat <<\EOF >> "$cfgfile"
17958 # AIX sometimes has problems with the GCC collect2 program. For some
17959 # reason, if we set the COLLECT_NAMES environment variable, the problems
17960 # vanish in a puff of smoke.
17961 if test "X${COLLECT_NAMES+set}" != Xset; then
17963 export COLLECT_NAMES
17969 # We use sed instead of cat because bash on DJGPP gets confused if
17970 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17971 # text mode, it properly converts lines to CR/LF. This bash problem
17972 # is reportedly fixed, but why not run on old versions too?
17973 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17975 mv -f "$cfgfile" "$ofile" || \
17976 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17980 # If there is no Makefile yet, we rely on a make rule to execute
17981 # `config.status --recheck' to rerun these tests and create the
17982 # libtool script then.
17983 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17984 if test -f "$ltmain_in"; then
17985 test -f Makefile && make "$ltmain"
17991 ac_cpp='$CPP $CPPFLAGS'
17992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17999 # Check whether --with-tags was given.
18000 if test "${with_tags+set}" = set; then
18001 withval=$with_tags; tagnames="$withval"
18005 if test -f "$ltmain" && test -n "$tagnames"; then
18006 if test ! -f "${ofile}"; then
18007 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18008 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18011 if test -z "$LTCC"; then
18012 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18013 if test -z "$LTCC"; then
18014 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18015 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18017 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18018 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18021 if test -z "$LTCFLAGS"; then
18022 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18025 # Extract list of available tagged configurations in $ofile.
18026 # Note that this assumes the entire list is on one line.
18027 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18029 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18030 for tagname in $tagnames; do
18032 # Check whether tagname contains only valid characters
18033 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18035 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18036 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18037 { (exit 1); exit 1; }; }
18041 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18043 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18044 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18045 { (exit 1); exit 1; }; }
18048 # Update the list of available tags.
18049 if test -n "$tagname"; then
18050 echo appending configuration tag \"$tagname\" to $ofile
18054 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18055 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18056 (test "X$CXX" != "Xg++"))) ; then
18058 ac_cpp='$CXXCPP $CPPFLAGS'
18059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18066 archive_cmds_need_lc_CXX=no
18067 allow_undefined_flag_CXX=
18068 always_export_symbols_CXX=no
18069 archive_expsym_cmds_CXX=
18070 export_dynamic_flag_spec_CXX=
18071 hardcode_direct_CXX=no
18072 hardcode_libdir_flag_spec_CXX=
18073 hardcode_libdir_flag_spec_ld_CXX=
18074 hardcode_libdir_separator_CXX=
18075 hardcode_minus_L_CXX=no
18076 hardcode_shlibpath_var_CXX=unsupported
18077 hardcode_automatic_CXX=no
18079 module_expsym_cmds_CXX=
18080 link_all_deplibs_CXX=unknown
18081 old_archive_cmds_CXX=$old_archive_cmds
18082 no_undefined_flag_CXX=
18083 whole_archive_flag_spec_CXX=
18084 enable_shared_with_static_runtimes_CXX=no
18086 # Dependencies to place before and after the object being linked:
18087 predep_objects_CXX=
18088 postdep_objects_CXX=
18091 compiler_lib_search_path_CXX=
18093 # Source file extension for C++ test sources.
18096 # Object file extension for compiled C++ test sources.
18100 # Code to be used in simple compile tests
18101 lt_simple_compile_test_code="int some_variable = 0;\n"
18103 # Code to be used in simple link tests
18104 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18106 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18108 # If no C compiler was specified, use CC.
18111 # If no C compiler flags were specified, use CFLAGS.
18112 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18114 # Allow CC to be a program name with arguments.
18118 # save warnings/boilerplate of simple test code
18119 ac_outfile=conftest.$ac_objext
18120 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18121 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18122 _lt_compiler_boilerplate=`cat conftest.err`
18125 ac_outfile=conftest.$ac_objext
18126 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18127 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18128 _lt_linker_boilerplate=`cat conftest.err`
18132 # Allow CC to be a program name with arguments.
18137 lt_save_with_gnu_ld=$with_gnu_ld
18138 lt_save_path_LD=$lt_cv_path_LD
18139 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18140 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18142 $as_unset lt_cv_prog_gnu_ld
18144 if test -n "${lt_cv_path_LDCXX+set}"; then
18145 lt_cv_path_LD=$lt_cv_path_LDCXX
18147 $as_unset lt_cv_path_LD
18149 test -z "${LDCXX+set}" || LD=$LDCXX
18153 for cc_temp in $compiler""; do
18155 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18156 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18161 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18164 # We don't want -fno-exception wen compiling C++ code, so set the
18165 # no_builtin_flag separately
18166 if test "$GXX" = yes; then
18167 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18169 lt_prog_compiler_no_builtin_flag_CXX=
18172 if test "$GXX" = yes; then
18173 # Set up default GNU C++ configuration
18176 # Check whether --with-gnu-ld was given.
18177 if test "${with_gnu_ld+set}" = set; then
18178 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18184 if test "$GCC" = yes; then
18185 # Check if gcc -print-prog-name=ld gives a path.
18186 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18187 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18190 # gcc leaves a trailing carriage return which upsets mingw
18191 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18193 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18196 # Accept absolute paths.
18198 re_direlt='/[^/][^/]*/\.\./'
18199 # Canonicalize the pathname of ld
18200 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18201 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18202 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18204 test -z "$LD" && LD="$ac_prog"
18207 # If it fails, then pretend we aren't using GCC.
18211 # If it is relative, then search for the first ld in PATH.
18212 with_gnu_ld=unknown
18215 elif test "$with_gnu_ld" = yes; then
18216 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18217 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18219 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18220 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18222 if test "${lt_cv_path_LD+set}" = set; then
18223 echo $ECHO_N "(cached) $ECHO_C" >&6
18225 if test -z "$LD"; then
18226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18227 for ac_dir in $PATH; do
18229 test -z "$ac_dir" && ac_dir=.
18230 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18231 lt_cv_path_LD="$ac_dir/$ac_prog"
18232 # Check to see if the program is GNU ld. I'd rather use --version,
18233 # but apparently some variants of GNU ld only accept -v.
18234 # Break only if it was the GNU/non-GNU ld that we prefer.
18235 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18236 *GNU* | *'with BFD'*)
18237 test "$with_gnu_ld" != no && break
18240 test "$with_gnu_ld" != yes && break
18247 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18251 LD="$lt_cv_path_LD"
18252 if test -n "$LD"; then
18253 { echo "$as_me:$LINENO: result: $LD" >&5
18254 echo "${ECHO_T}$LD" >&6; }
18256 { echo "$as_me:$LINENO: result: no" >&5
18257 echo "${ECHO_T}no" >&6; }
18259 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18260 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18261 { (exit 1); exit 1; }; }
18262 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18263 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18264 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18265 echo $ECHO_N "(cached) $ECHO_C" >&6
18267 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18268 case `$LD -v 2>&1 </dev/null` in
18269 *GNU* | *'with BFD'*)
18270 lt_cv_prog_gnu_ld=yes
18273 lt_cv_prog_gnu_ld=no
18277 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18278 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18279 with_gnu_ld=$lt_cv_prog_gnu_ld
18283 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18284 # archiving commands below assume that GNU ld is being used.
18285 if test "$with_gnu_ld" = yes; then
18286 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18287 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'
18289 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18290 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18292 # If archive_cmds runs LD, not CC, wlarc should be empty
18293 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18294 # investigate it a little bit more. (MM)
18297 # ancient GNU ld didn't support --whole-archive et. al.
18298 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18299 grep 'no-whole-archive' > /dev/null; then
18300 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18302 whole_archive_flag_spec_CXX=
18308 # A generic and very simple default shared library creation
18309 # command for GNU C++ for the case where it uses the native
18310 # linker, instead of GNU ld. If possible, this setting should
18311 # overridden to take advantage of the native linker features on
18312 # the platform it is being used on.
18313 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18316 # Commands to make compiler produce verbose output that lists
18317 # what "hidden" libraries, object files and flags are used when
18318 # linking a shared library.
18319 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18327 # PORTME: fill in a description of your system's C++ link characteristics
18328 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18329 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18333 # FIXME: insert proper C++ library support
18337 if test "$host_cpu" = ia64; then
18338 # On IA64, the linker does run time linking by default, so we don't
18339 # have to do anything special.
18340 aix_use_runtimelinking=no
18341 exp_sym_flag='-Bexport'
18344 aix_use_runtimelinking=no
18346 # Test if we are trying to use run time linking or normal
18347 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18348 # need to do runtime linking.
18349 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18350 for ld_flag in $LDFLAGS; do
18353 aix_use_runtimelinking=yes
18361 exp_sym_flag='-bexport'
18362 no_entry_flag='-bnoentry'
18365 # When large executables or shared objects are built, AIX ld can
18366 # have problems creating the table of contents. If linking a library
18367 # or program results in "error TOC overflow" add -mminimal-toc to
18368 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18369 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18371 archive_cmds_CXX=''
18372 hardcode_direct_CXX=yes
18373 hardcode_libdir_separator_CXX=':'
18374 link_all_deplibs_CXX=yes
18376 if test "$GXX" = yes; then
18377 case $host_os in aix4.[012]|aix4.[012].*)
18378 # We only want to do this on AIX 4.2 and lower, the check
18379 # below for broken collect2 doesn't work under 4.3+
18380 collect2name=`${CC} -print-prog-name=collect2`
18381 if test -f "$collect2name" && \
18382 strings "$collect2name" | grep resolve_lib_name >/dev/null
18384 # We have reworked collect2
18385 hardcode_direct_CXX=yes
18387 # We have old collect2
18388 hardcode_direct_CXX=unsupported
18389 # It fails to find uninstalled libraries when the uninstalled
18390 # path is not listed in the libpath. Setting hardcode_minus_L
18391 # to unsupported forces relinking
18392 hardcode_minus_L_CXX=yes
18393 hardcode_libdir_flag_spec_CXX='-L$libdir'
18394 hardcode_libdir_separator_CXX=
18398 shared_flag='-shared'
18399 if test "$aix_use_runtimelinking" = yes; then
18400 shared_flag="$shared_flag "'${wl}-G'
18404 if test "$host_cpu" = ia64; then
18405 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18406 # chokes on -Wl,-G. The following line is correct:
18409 if test "$aix_use_runtimelinking" = yes; then
18410 shared_flag='${wl}-G'
18412 shared_flag='${wl}-bM:SRE'
18417 # It seems that -bexpall does not export symbols beginning with
18418 # underscore (_), so it is better to generate a list of symbols to export.
18419 always_export_symbols_CXX=yes
18420 if test "$aix_use_runtimelinking" = yes; then
18421 # Warning - without using the other runtime loading flags (-brtl),
18422 # -berok will link without error, but may produce a broken library.
18423 allow_undefined_flag_CXX='-berok'
18424 # Determine the default libpath from the value encoded in an empty executable.
18425 cat >conftest.$ac_ext <<_ACEOF
18428 cat confdefs.h >>conftest.$ac_ext
18429 cat >>conftest.$ac_ext <<_ACEOF
18430 /* end confdefs.h. */
18440 rm -f conftest.$ac_objext conftest$ac_exeext
18441 if { (ac_try="$ac_link"
18442 case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_link") 2>conftest.er1
18449 grep -v '^ *+' conftest.er1 >conftest.err
18451 cat conftest.err >&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); } &&
18454 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18455 { (case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_try") 2>&5
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try='test -s conftest$ac_exeext'
18465 { (case "(($ac_try" in
18466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467 *) ac_try_echo=$ac_try;;
18469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470 (eval "$ac_try") 2>&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; }; then
18475 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18477 # Check for a 64-bit object if we didn't find anything.
18478 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; }
18481 echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18487 rm -f core conftest.err conftest.$ac_objext \
18488 conftest$ac_exeext conftest.$ac_ext
18489 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18491 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18493 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"
18495 if test "$host_cpu" = ia64; then
18496 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18497 allow_undefined_flag_CXX="-z nodefs"
18498 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"
18500 # Determine the default libpath from the value encoded in an empty executable.
18501 cat >conftest.$ac_ext <<_ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h. */
18516 rm -f conftest.$ac_objext conftest$ac_exeext
18517 if { (ac_try="$ac_link"
18518 case "(($ac_try" in
18519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520 *) ac_try_echo=$ac_try;;
18522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18523 (eval "$ac_link") 2>conftest.er1
18525 grep -v '^ *+' conftest.er1 >conftest.err
18527 cat conftest.err >&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); } &&
18530 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18531 { (case "(($ac_try" in
18532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533 *) ac_try_echo=$ac_try;;
18535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536 (eval "$ac_try") 2>&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); }; } &&
18540 { ac_try='test -s conftest$ac_exeext'
18541 { (case "(($ac_try" in
18542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18543 *) ac_try_echo=$ac_try;;
18545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18546 (eval "$ac_try") 2>&5
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); }; }; then
18551 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18553 # Check for a 64-bit object if we didn't find anything.
18554 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; }
18557 echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.$ac_ext >&5
18563 rm -f core conftest.err conftest.$ac_objext \
18564 conftest$ac_exeext conftest.$ac_ext
18565 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18567 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18568 # Warning - without using the other run time loading flags,
18569 # -berok will link without error, but may produce a broken library.
18570 no_undefined_flag_CXX=' ${wl}-bernotok'
18571 allow_undefined_flag_CXX=' ${wl}-berok'
18572 # Exported symbols can be pulled into shared objects from archives
18573 whole_archive_flag_spec_CXX='$convenience'
18574 archive_cmds_need_lc_CXX=yes
18575 # This is similar to how AIX traditionally builds its shared libraries.
18576 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'
18582 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18583 allow_undefined_flag_CXX=unsupported
18584 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18585 # support --undefined. This deserves some investigation. FIXME
18586 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18593 case $cc_basename in
18595 # FIXME: insert proper C++ library support
18601 cygwin* | mingw* | pw32*)
18602 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18603 # as there is no search path for DLLs.
18604 hardcode_libdir_flag_spec_CXX='-L$libdir'
18605 allow_undefined_flag_CXX=unsupported
18606 always_export_symbols_CXX=no
18607 enable_shared_with_static_runtimes_CXX=yes
18609 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18610 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'
18611 # If the export-symbols file already is a .def file (1st line
18612 # is EXPORTS), use it as is; otherwise, prepend...
18613 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18614 cp $export_symbols $output_objdir/$soname.def;
18616 echo EXPORTS > $output_objdir/$soname.def;
18617 cat $export_symbols >> $output_objdir/$soname.def;
18619 $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'
18624 darwin* | rhapsody*)
18626 rhapsody* | darwin1.[012])
18627 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18630 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18631 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18633 case ${MACOSX_DEPLOYMENT_TARGET} in
18635 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18638 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18644 archive_cmds_need_lc_CXX=no
18645 hardcode_direct_CXX=no
18646 hardcode_automatic_CXX=yes
18647 hardcode_shlibpath_var_CXX=unsupported
18648 whole_archive_flag_spec_CXX=''
18649 link_all_deplibs_CXX=yes
18651 if test "$GXX" = yes ; then
18652 lt_int_apple_cc_single_mod=no
18653 output_verbose_link_cmd='echo'
18654 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18655 lt_int_apple_cc_single_mod=yes
18657 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18658 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18660 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'
18662 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18663 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18664 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18665 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}'
18667 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}'
18669 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}'
18671 case $cc_basename in
18673 output_verbose_link_cmd='echo'
18674 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'
18675 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18676 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18677 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}'
18678 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}'
18688 case $cc_basename in
18690 # FIXME: insert proper C++ library support
18694 # Green Hills C++ Compiler
18695 # FIXME: insert proper C++ library support
18699 # FIXME: insert proper C++ library support
18705 # C++ shared libraries reported to be fairly broken before switch to ELF
18709 archive_cmds_need_lc_CXX=no
18711 freebsd* | kfreebsd*-gnu | dragonfly*)
18712 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18719 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18720 hardcode_libdir_separator_CXX=:
18721 export_dynamic_flag_spec_CXX='${wl}-E'
18722 hardcode_direct_CXX=yes
18723 hardcode_minus_L_CXX=yes # Not in the search PATH,
18724 # but as the default
18725 # location of the library.
18727 case $cc_basename in
18729 # FIXME: insert proper C++ library support
18733 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'
18734 # Commands to make compiler produce verbose output that lists
18735 # what "hidden" libraries, object files and flags are used when
18736 # linking a shared library.
18738 # There doesn't appear to be a way to prevent this compiler from
18739 # explicitly linking system object files so we need to strip them
18740 # from the output so that they don't get included in the library
18742 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'
18745 if test "$GXX" = yes; then
18746 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'
18748 # FIXME: insert proper C++ library support
18755 if test $with_gnu_ld = no; then
18756 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18757 hardcode_libdir_separator_CXX=:
18761 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18764 export_dynamic_flag_spec_CXX='${wl}-E'
18770 hardcode_direct_CXX=no
18771 hardcode_shlibpath_var_CXX=no
18774 hardcode_direct_CXX=yes
18775 hardcode_minus_L_CXX=yes # Not in the search PATH,
18776 # but as the default
18777 # location of the library.
18781 case $cc_basename in
18783 # FIXME: insert proper C++ library support
18789 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18792 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18795 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18798 # Commands to make compiler produce verbose output that lists
18799 # what "hidden" libraries, object files and flags are used when
18800 # linking a shared library.
18802 # There doesn't appear to be a way to prevent this compiler from
18803 # explicitly linking system object files so we need to strip them
18804 # from the output so that they don't get included in the library
18806 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'
18809 if test "$GXX" = yes; then
18810 if test $with_gnu_ld = no; then
18813 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18816 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18819 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'
18824 # FIXME: insert proper C++ library support
18831 hardcode_direct_CXX=no
18832 hardcode_shlibpath_var_CXX=no
18833 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18834 export_dynamic_flag_spec_CXX='${wl}-E'
18835 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18836 # Instead, shared libraries are loaded at an image base (0x10000000 by
18837 # default) and relocated if they conflict, which is a slow very memory
18838 # consuming and fragmenting process. To avoid this, we pick a random,
18839 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18840 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18841 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'
18842 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'
18845 case $cc_basename in
18848 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'
18850 # Archives containing C++ object files must be created using
18851 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18852 # necessary to make sure instantiated templates are included
18854 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18857 if test "$GXX" = yes; then
18858 if test "$with_gnu_ld" = no; then
18859 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'
18861 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'
18864 link_all_deplibs_CXX=yes
18867 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18868 hardcode_libdir_separator_CXX=:
18871 case $cc_basename in
18873 # Kuck and Associates, Inc. (KAI) C++ Compiler
18875 # KCC will only create a shared library if the output file
18876 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18877 # to its proper name (with version) after linking.
18878 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'
18879 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'
18880 # Commands to make compiler produce verbose output that lists
18881 # what "hidden" libraries, object files and flags are used when
18882 # linking a shared library.
18884 # There doesn't appear to be a way to prevent this compiler from
18885 # explicitly linking system object files so we need to strip them
18886 # from the output so that they don't get included in the library
18888 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'
18890 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18891 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18893 # Archives containing C++ object files must be created using
18894 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18895 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18900 # version 8.0 and above of icpc choke on multiply defined symbols
18901 # if we add $predep_objects and $postdep_objects, however 7.1 and
18902 # earlier do not add the objects themselves.
18903 case `$CC -V 2>&1` in
18905 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18906 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'
18908 *) # Version 8.0 or newer
18911 ia64*) tmp_idyn=' -i_dynamic';;
18913 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18914 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'
18917 archive_cmds_need_lc_CXX=no
18918 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18919 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18920 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18923 # Portland Group C++ compiler
18924 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18925 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'
18927 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18928 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18929 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'
18933 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18934 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'
18936 runpath_var=LD_RUN_PATH
18937 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18938 hardcode_libdir_separator_CXX=:
18940 # Commands to make compiler produce verbose output that lists
18941 # what "hidden" libraries, object files and flags are used when
18942 # linking a shared library.
18944 # There doesn't appear to be a way to prevent this compiler from
18945 # explicitly linking system object files so we need to strip them
18946 # from the output so that they don't get included in the library
18948 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'
18953 # FIXME: insert proper C++ library support
18957 # FIXME: insert proper C++ library support
18961 case $cc_basename in
18963 # FIXME: insert proper C++ library support
18967 # FIXME: insert proper C++ library support
18973 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18974 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18976 hardcode_libdir_flag_spec_CXX='-R$libdir'
18977 hardcode_direct_CXX=yes
18978 hardcode_shlibpath_var_CXX=no
18980 # Workaround some broken pre-1.5 toolchains
18981 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18984 # C++ shared libraries are fairly broken
18988 hardcode_direct_CXX=yes
18989 hardcode_shlibpath_var_CXX=no
18990 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18991 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18992 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18993 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18994 export_dynamic_flag_spec_CXX='${wl}-E'
18995 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18997 output_verbose_link_cmd='echo'
19000 case $cc_basename in
19002 # Kuck and Associates, Inc. (KAI) C++ Compiler
19004 # KCC will only create a shared library if the output file
19005 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19006 # to its proper name (with version) after linking.
19007 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'
19009 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19010 hardcode_libdir_separator_CXX=:
19012 # Archives containing C++ object files must be created using
19013 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19014 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19018 # Rational C++ 2.4.1
19019 # FIXME: insert proper C++ library support
19023 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19024 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'
19026 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19027 hardcode_libdir_separator_CXX=:
19029 # Commands to make compiler produce verbose output that lists
19030 # what "hidden" libraries, object files and flags are used when
19031 # linking a shared library.
19033 # There doesn't appear to be a way to prevent this compiler from
19034 # explicitly linking system object files so we need to strip them
19035 # from the output so that they don't get included in the library
19037 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'
19040 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19041 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19042 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'
19044 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19045 hardcode_libdir_separator_CXX=:
19047 # Commands to make compiler produce verbose output that lists
19048 # what "hidden" libraries, object files and flags are used when
19049 # linking a shared library.
19050 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19053 # FIXME: insert proper C++ library support
19060 case $cc_basename in
19062 # Kuck and Associates, Inc. (KAI) C++ Compiler
19064 # KCC will only create a shared library if the output file
19065 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19066 # to its proper name (with version) after linking.
19067 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'
19069 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19070 hardcode_libdir_separator_CXX=:
19072 # Archives containing C++ object files must be created using
19073 # the KAI C++ compiler.
19074 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19077 # Rational C++ 2.4.1
19078 # FIXME: insert proper C++ library support
19082 allow_undefined_flag_CXX=' -expect_unresolved \*'
19083 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'
19084 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19085 echo "-hidden">> $lib.exp~
19086 $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~
19089 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19090 hardcode_libdir_separator_CXX=:
19092 # Commands to make compiler produce verbose output that lists
19093 # what "hidden" libraries, object files and flags are used when
19094 # linking a shared library.
19096 # There doesn't appear to be a way to prevent this compiler from
19097 # explicitly linking system object files so we need to strip them
19098 # from the output so that they don't get included in the library
19100 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'
19103 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19104 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19105 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'
19107 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19108 hardcode_libdir_separator_CXX=:
19110 # Commands to make compiler produce verbose output that lists
19111 # what "hidden" libraries, object files and flags are used when
19112 # linking a shared library.
19113 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19116 # FIXME: insert proper C++ library support
19123 # FIXME: insert proper C++ library support
19127 case $cc_basename in
19130 # FIXME: insert proper C++ library support
19135 # FIXME: insert proper C++ library support
19139 # FIXME: insert proper C++ library support
19145 case $cc_basename in
19147 # Sun C++ 4.2, 5.x and Centerline C++
19148 archive_cmds_need_lc_CXX=yes
19149 no_undefined_flag_CXX=' -zdefs'
19150 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19151 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19152 $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'
19154 hardcode_libdir_flag_spec_CXX='-R$libdir'
19155 hardcode_shlibpath_var_CXX=no
19157 solaris2.[0-5] | solaris2.[0-5].*) ;;
19159 # The C++ compiler is used as linker so we must use $wl
19160 # flag to pass the commands to the underlying system
19161 # linker. We must also pass each convience library through
19162 # to the system linker between allextract/defaultextract.
19163 # The C++ compiler will combine linker options so we
19164 # cannot just pass the convience library names through
19166 # Supported since Solaris 2.6 (maybe 2.5.1?)
19167 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'
19170 link_all_deplibs_CXX=yes
19172 output_verbose_link_cmd='echo'
19174 # Archives containing C++ object files must be created using
19175 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19176 # necessary to make sure instantiated templates are included
19178 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19181 # Green Hills C++ Compiler
19182 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19184 # The C++ compiler must be used to create the archive.
19185 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19188 # GNU C++ compiler with Solaris linker
19189 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19190 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19191 if $CC --version | grep -v '^2\.7' > /dev/null; then
19192 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19193 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19194 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19196 # Commands to make compiler produce verbose output that lists
19197 # what "hidden" libraries, object files and flags are used when
19198 # linking a shared library.
19199 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19201 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19203 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19204 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19205 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19207 # Commands to make compiler produce verbose output that lists
19208 # what "hidden" libraries, object files and flags are used when
19209 # linking a shared library.
19210 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19213 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19218 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19219 no_undefined_flag_CXX='${wl}-z,text'
19220 archive_cmds_need_lc_CXX=no
19221 hardcode_shlibpath_var_CXX=no
19222 runpath_var='LD_RUN_PATH'
19224 case $cc_basename in
19226 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19227 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19230 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19231 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19235 sysv5* | sco3.2v5* | sco5v6*)
19236 # Note: We can NOT use -z defs as we might desire, because we do not
19237 # link with -lc, and that would cause any symbols used from libc to
19238 # always be unresolved, which means just about no library would
19239 # ever link correctly. If we're not using GNU ld we use -z text
19240 # though, which does catch some bad symbols but isn't as heavy-handed
19242 # For security reasons, it is highly recommended that you always
19243 # use absolute paths for naming shared libraries, and exclude the
19244 # DT_RUNPATH tag from executables and libraries. But doing so
19245 # requires that you compile everything twice, which is a pain.
19246 # So that behaviour is only enabled if SCOABSPATH is set to a
19247 # non-empty value in the environment. Most likely only useful for
19248 # creating official distributions of packages.
19249 # This is a hack until libtool officially supports absolute path
19250 # names for shared libraries.
19251 no_undefined_flag_CXX='${wl}-z,text'
19252 allow_undefined_flag_CXX='${wl}-z,nodefs'
19253 archive_cmds_need_lc_CXX=no
19254 hardcode_shlibpath_var_CXX=no
19255 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19256 hardcode_libdir_separator_CXX=':'
19257 link_all_deplibs_CXX=yes
19258 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19259 runpath_var='LD_RUN_PATH'
19261 case $cc_basename in
19263 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19264 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19267 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19268 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19273 case $cc_basename in
19275 # NonStop-UX NCC 3.20
19276 # FIXME: insert proper C++ library support
19280 # FIXME: insert proper C++ library support
19286 # FIXME: insert proper C++ library support
19290 # FIXME: insert proper C++ library support
19294 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19295 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19296 test "$ld_shlibs_CXX" = no && can_build_shared=no
19302 cat > conftest.$ac_ext <<EOF
19306 Foo (void) { a = 0; }
19312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19313 (eval $ac_compile) 2>&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; then
19317 # Parse the compiler output and extract the necessary
19318 # objects, libraries and library flags.
19320 # Sentinel used to keep track of whether or not we are before
19321 # the conftest object file.
19322 pre_test_object_deps_done=no
19324 # The `*' in the case matches for architectures that use `case' in
19325 # $output_verbose_cmd can trigger glob expansion during the loop
19326 # eval without this substitution.
19327 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19329 for p in `eval $output_verbose_link_cmd`; do
19333 # Some compilers place space between "-{L,R}" and the path.
19334 # Remove the space.
19335 if test $p = "-L" \
19336 || test $p = "-R"; then
19343 if test "$pre_test_object_deps_done" = no; then
19346 # Internal compiler library paths should come after those
19347 # provided the user. The postdeps already come after the
19348 # user supplied libs so there is no need to process them.
19349 if test -z "$compiler_lib_search_path_CXX"; then
19350 compiler_lib_search_path_CXX="${prev}${p}"
19352 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19355 # The "-l" case would never come before the object being
19356 # linked, so don't bother handling this case.
19359 if test -z "$postdeps_CXX"; then
19360 postdeps_CXX="${prev}${p}"
19362 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19368 # This assumes that the test object file only shows up
19369 # once in the compiler output.
19370 if test "$p" = "conftest.$objext"; then
19371 pre_test_object_deps_done=yes
19375 if test "$pre_test_object_deps_done" = no; then
19376 if test -z "$predep_objects_CXX"; then
19377 predep_objects_CXX="$p"
19379 predep_objects_CXX="$predep_objects_CXX $p"
19382 if test -z "$postdep_objects_CXX"; then
19383 postdep_objects_CXX="$p"
19385 postdep_objects_CXX="$postdep_objects_CXX $p"
19390 *) ;; # Ignore the rest.
19398 echo "libtool.m4: error: problem compiling CXX test program"
19401 $rm -f confest.$objext
19403 # PORTME: override above test on systems where it is broken
19406 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19407 # hack all around it, let's just trust "g++" to DTRT.
19408 predep_objects_CXX=
19409 postdep_objects_CXX=
19414 case $cc_basename in
19416 # Adding this requires a known-good setup of shared libraries for
19417 # Sun compiler versions before 5.6, else PIC objects from an old
19418 # archive will be linked into the output, leading to subtle bugs.
19419 postdeps_CXX='-lCstd -lCrun'
19426 case " $postdeps_CXX " in
19427 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19430 lt_prog_compiler_wl_CXX=
19431 lt_prog_compiler_pic_CXX=
19432 lt_prog_compiler_static_CXX=
19434 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19435 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19437 # C++ specific cases for pic, static, wl, etc.
19438 if test "$GXX" = yes; then
19439 lt_prog_compiler_wl_CXX='-Wl,'
19440 lt_prog_compiler_static_CXX='-static'
19444 # All AIX code is PIC.
19445 if test "$host_cpu" = ia64; then
19446 # AIX 5 now supports IA64 processor
19447 lt_prog_compiler_static_CXX='-Bstatic'
19451 # FIXME: we need at least 68020 code to build shared libraries, but
19452 # adding the `-m68020' flag to GCC prevents building anything better,
19454 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19456 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19457 # PIC is the default for these OSes.
19459 mingw* | os2* | pw32*)
19460 # This hack is so that the source file can tell whether it is being
19461 # built for inclusion in a dll (and should export symbols for example).
19462 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19464 darwin* | rhapsody*)
19465 # PIC is the default on this platform
19466 # Common symbols not allowed in MH_DYLIB files
19467 lt_prog_compiler_pic_CXX='-fno-common'
19470 # DJGPP does not support shared libraries at all
19471 lt_prog_compiler_pic_CXX=
19474 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19475 # Instead, we relocate shared libraries at runtime.
19478 if test -d /usr/nec; then
19479 lt_prog_compiler_pic_CXX=-Kconform_pic
19483 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19484 # not for PA HP-UX.
19489 lt_prog_compiler_pic_CXX='-fPIC'
19494 lt_prog_compiler_pic_CXX='-fPIC'
19500 # All AIX code is PIC.
19501 if test "$host_cpu" = ia64; then
19502 # AIX 5 now supports IA64 processor
19503 lt_prog_compiler_static_CXX='-Bstatic'
19505 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19509 case $cc_basename in
19511 # Green Hills C++ Compiler
19512 # _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"
19517 # PIC is the default on this platform
19518 # Common symbols not allowed in MH_DYLIB files
19519 case $cc_basename in
19521 lt_prog_compiler_pic_CXX='-qnocommon'
19522 lt_prog_compiler_wl_CXX='-Wl,'
19527 case $cc_basename in
19529 lt_prog_compiler_pic_CXX='-KPIC'
19532 # Green Hills C++ Compiler
19533 lt_prog_compiler_pic_CXX='-pic'
19539 freebsd* | kfreebsd*-gnu | dragonfly*)
19540 # FreeBSD uses GNU C++
19542 hpux9* | hpux10* | hpux11*)
19543 case $cc_basename in
19545 lt_prog_compiler_wl_CXX='-Wl,'
19546 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19547 if test "$host_cpu" != ia64; then
19548 lt_prog_compiler_pic_CXX='+Z'
19552 lt_prog_compiler_wl_CXX='-Wl,'
19553 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19559 lt_prog_compiler_pic_CXX='+Z'
19568 # This is c89, which is MS Visual C++ (no shared libs)
19569 # Anyone wants to do a port?
19571 irix5* | irix6* | nonstopux*)
19572 case $cc_basename in
19574 lt_prog_compiler_wl_CXX='-Wl,'
19575 lt_prog_compiler_static_CXX='-non_shared'
19576 # CC pic flag -KPIC is the default.
19583 case $cc_basename in
19586 lt_prog_compiler_wl_CXX='--backend -Wl,'
19587 lt_prog_compiler_pic_CXX='-fPIC'
19591 lt_prog_compiler_wl_CXX='-Wl,'
19592 lt_prog_compiler_pic_CXX='-KPIC'
19593 lt_prog_compiler_static_CXX='-static'
19596 # Portland Group C++ compiler.
19597 lt_prog_compiler_wl_CXX='-Wl,'
19598 lt_prog_compiler_pic_CXX='-fpic'
19599 lt_prog_compiler_static_CXX='-Bstatic'
19603 # Make sure the PIC flag is empty. It appears that all Alpha
19604 # Linux and Compaq Tru64 Unix objects are PIC.
19605 lt_prog_compiler_pic_CXX=
19606 lt_prog_compiler_static_CXX='-non_shared'
19617 case $cc_basename in
19619 lt_prog_compiler_pic_CXX='-W c,exportall'
19627 osf3* | osf4* | osf5*)
19628 case $cc_basename in
19630 lt_prog_compiler_wl_CXX='--backend -Wl,'
19633 # Rational C++ 2.4.1
19634 lt_prog_compiler_pic_CXX='-pic'
19637 # Digital/Compaq C++
19638 lt_prog_compiler_wl_CXX='-Wl,'
19639 # Make sure the PIC flag is empty. It appears that all Alpha
19640 # Linux and Compaq Tru64 Unix objects are PIC.
19641 lt_prog_compiler_pic_CXX=
19642 lt_prog_compiler_static_CXX='-non_shared'
19651 case $cc_basename in
19653 # Sun C++ 4.2, 5.x and Centerline C++
19654 lt_prog_compiler_pic_CXX='-KPIC'
19655 lt_prog_compiler_static_CXX='-Bstatic'
19656 lt_prog_compiler_wl_CXX='-Qoption ld '
19659 # Green Hills C++ Compiler
19660 lt_prog_compiler_pic_CXX='-PIC'
19667 case $cc_basename in
19670 lt_prog_compiler_pic_CXX='-pic'
19671 lt_prog_compiler_static_CXX='-Bstatic'
19675 lt_prog_compiler_pic_CXX='-pic'
19682 case $cc_basename in
19684 # NonStop-UX NCC 3.20
19685 lt_prog_compiler_pic_CXX='-KPIC'
19691 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19692 case $cc_basename in
19694 lt_prog_compiler_wl_CXX='-Wl,'
19695 lt_prog_compiler_pic_CXX='-KPIC'
19696 lt_prog_compiler_static_CXX='-Bstatic'
19703 lt_prog_compiler_can_build_shared_CXX=no
19708 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19709 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19712 # Check to make sure the PIC flag actually works.
19714 if test -n "$lt_prog_compiler_pic_CXX"; then
19716 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19717 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19718 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19719 echo $ECHO_N "(cached) $ECHO_C" >&6
19721 lt_prog_compiler_pic_works_CXX=no
19722 ac_outfile=conftest.$ac_objext
19723 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19724 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19725 # Insert the option either (1) after the last *FLAGS variable, or
19726 # (2) before a word containing "conftest.", or (3) at the end.
19727 # Note that $ac_compile itself does not contain backslashes and begins
19728 # with a dollar sign (not a hyphen), so the echo should work correctly.
19729 # The option is referenced via a variable to avoid confusing sed.
19730 lt_compile=`echo "$ac_compile" | $SED \
19731 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19733 -e 's:$: $lt_compiler_flag:'`
19734 (eval echo "\"\$as_me:19734: $lt_compile\"" >&5)
19735 (eval "$lt_compile" 2>conftest.err)
19737 cat conftest.err >&5
19738 echo "$as_me:19738: \$? = $ac_status" >&5
19739 if (exit $ac_status) && test -s "$ac_outfile"; then
19740 # The compiler can only warn and ignore the option if not recognized
19741 # So say no if there are warnings other than the usual output.
19742 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19743 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19744 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19745 lt_prog_compiler_pic_works_CXX=yes
19751 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19752 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19754 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19755 case $lt_prog_compiler_pic_CXX in
19757 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19760 lt_prog_compiler_pic_CXX=
19761 lt_prog_compiler_can_build_shared_CXX=no
19766 # For platforms which do not support PIC, -DPIC is meaningless:
19768 lt_prog_compiler_pic_CXX=
19771 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19776 # Check to make sure the static flag actually works.
19778 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19779 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19780 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19781 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19782 echo $ECHO_N "(cached) $ECHO_C" >&6
19784 lt_prog_compiler_static_works_CXX=no
19785 save_LDFLAGS="$LDFLAGS"
19786 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19787 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19788 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19789 # The linker can only warn and ignore the option if not recognized
19790 # So say no if there are warnings
19791 if test -s conftest.err; then
19792 # Append any errors to the config.log.
19793 cat conftest.err 1>&5
19794 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19795 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19796 if diff conftest.exp conftest.er2 >/dev/null; then
19797 lt_prog_compiler_static_works_CXX=yes
19800 lt_prog_compiler_static_works_CXX=yes
19804 LDFLAGS="$save_LDFLAGS"
19807 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19808 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19810 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19813 lt_prog_compiler_static_CXX=
19817 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19818 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19819 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19820 echo $ECHO_N "(cached) $ECHO_C" >&6
19822 lt_cv_prog_compiler_c_o_CXX=no
19823 $rm -r conftest 2>/dev/null
19827 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19829 lt_compiler_flag="-o out/conftest2.$ac_objext"
19830 # Insert the option either (1) after the last *FLAGS variable, or
19831 # (2) before a word containing "conftest.", or (3) at the end.
19832 # Note that $ac_compile itself does not contain backslashes and begins
19833 # with a dollar sign (not a hyphen), so the echo should work correctly.
19834 lt_compile=`echo "$ac_compile" | $SED \
19835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19837 -e 's:$: $lt_compiler_flag:'`
19838 (eval echo "\"\$as_me:19838: $lt_compile\"" >&5)
19839 (eval "$lt_compile" 2>out/conftest.err)
19841 cat out/conftest.err >&5
19842 echo "$as_me:19842: \$? = $ac_status" >&5
19843 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19845 # The compiler can only warn and ignore the option if not recognized
19846 # So say no if there are warnings
19847 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19848 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19849 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19850 lt_cv_prog_compiler_c_o_CXX=yes
19855 # SGI C++ compiler will create directory out/ii_files/ for
19856 # template instantiation
19857 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19858 $rm out/* && rmdir out
19864 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19865 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19868 hard_links="nottested"
19869 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19870 # do not overwrite the value of need_locks provided by the user
19871 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19872 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19875 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19877 ln conftest.a conftest.b 2>&5 || hard_links=no
19878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19879 { echo "$as_me:$LINENO: result: $hard_links" >&5
19880 echo "${ECHO_T}$hard_links" >&6; }
19881 if test "$hard_links" = no; then
19882 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19883 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19890 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19891 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19893 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19896 # If we're using GNU nm, then we don't want the "-C" option.
19897 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19898 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19899 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'
19901 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'
19905 export_symbols_cmds_CXX="$ltdll_cmds"
19908 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'
19911 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19915 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19916 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19917 test "$ld_shlibs_CXX" = no && can_build_shared=no
19920 # Do we need to explicitly link libc?
19922 case "x$archive_cmds_need_lc_CXX" in
19924 # Assume -lc should be added
19925 archive_cmds_need_lc_CXX=yes
19927 if test "$enable_shared" = yes && test "$GCC" = yes; then
19928 case $archive_cmds_CXX in
19930 # FIXME: we may have to deal with multi-command sequences.
19933 # Test whether the compiler implicitly links with -lc since on some
19934 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19935 # to ld, don't add -lc before -lgcc.
19936 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19937 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19939 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19942 (eval $ac_compile) 2>&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); } 2>conftest.err; then
19948 libobjs=conftest.$ac_objext
19950 wl=$lt_prog_compiler_wl_CXX
19951 pic_flag=$lt_prog_compiler_pic_CXX
19957 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19958 allow_undefined_flag_CXX=
19959 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19960 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); }
19965 archive_cmds_need_lc_CXX=no
19967 archive_cmds_need_lc_CXX=yes
19969 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19971 cat conftest.err 1>&5
19974 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19975 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19982 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19983 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19984 library_names_spec=
19985 libname_spec='lib$name'
19989 postuninstall_cmds=
19993 shlibpath_overrides_runpath=unknown
19995 dynamic_linker="$host_os ld.so"
19996 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19997 if test "$GCC" = yes; then
19998 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19999 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20000 # if the path contains ";" then we assume it to be the separator
20001 # otherwise default to the standard path separator (i.e. ":") - it is
20002 # assumed that no part of a normal pathname contains ";" but that should
20003 # okay in the real world where ";" in dirpaths is itself problematic.
20004 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20006 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20009 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20011 need_lib_prefix=unknown
20012 hardcode_into_libs=no
20014 # when you set need_version to no, make sure it does not cause -set_version
20015 # flags to be left without arguments
20016 need_version=unknown
20021 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20022 shlibpath_var=LIBPATH
20024 # AIX 3 has no versioning support, so we append a major version to the name.
20025 soname_spec='${libname}${release}${shared_ext}$major'
20032 hardcode_into_libs=yes
20033 if test "$host_cpu" = ia64; then
20034 # AIX 5 supports IA64
20035 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20036 shlibpath_var=LD_LIBRARY_PATH
20038 # With GCC up to 2.95.x, collect2 would create an import file
20039 # for dependence libraries. The import file would start with
20040 # the line `#! .'. This would cause the generated library to
20041 # depend on `.', always an invalid library. This was fixed in
20042 # development snapshots of GCC prior to 3.0.
20044 aix4 | aix4.[01] | aix4.[01].*)
20045 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20047 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20050 can_build_shared=no
20054 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20055 # soname into executable. Probably we can add versioning support to
20056 # collect2, so additional links can be useful in future.
20057 if test "$aix_use_runtimelinking" = yes; then
20058 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20059 # instead of lib<name>.a to let people know that these are not
20060 # typical AIX shared libraries.
20061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20063 # We preserve .a as extension for shared libraries through AIX4.2
20064 # and later when we are not doing run time linking.
20065 library_names_spec='${libname}${release}.a $libname.a'
20066 soname_spec='${libname}${release}${shared_ext}$major'
20068 shlibpath_var=LIBPATH
20073 library_names_spec='$libname.ixlibrary $libname.a'
20074 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20075 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'
20079 library_names_spec='${libname}${shared_ext}'
20080 dynamic_linker="$host_os ld.so"
20081 shlibpath_var=LIBRARY_PATH
20087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20088 soname_spec='${libname}${release}${shared_ext}$major'
20089 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20090 shlibpath_var=LD_LIBRARY_PATH
20091 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20092 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20093 # the default ld.so.conf also contains /usr/contrib/lib and
20094 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20095 # libtool to hard-code these into programs
20098 cygwin* | mingw* | pw32*)
20099 version_type=windows
20104 case $GCC,$host_os in
20105 yes,cygwin* | yes,mingw* | yes,pw32*)
20106 library_names_spec='$libname.dll.a'
20107 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20108 postinstall_cmds='base_file=`basename \${file}`~
20109 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20110 dldir=$destdir/`dirname \$dlpath`~
20111 test -d \$dldir || mkdir -p \$dldir~
20112 $install_prog $dir/$dlname \$dldir/$dlname~
20113 chmod a+x \$dldir/$dlname'
20114 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20115 dlpath=$dir/\$dldll~
20117 shlibpath_overrides_runpath=yes
20121 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20122 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20123 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20126 # MinGW DLLs use traditional 'lib' prefix
20127 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20128 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20129 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20130 # It is most probably a Windows format PATH printed by
20131 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20132 # path with ; separators, and with drive letters. We can handle the
20133 # drive letters (cygwin fileutils understands them), so leave them,
20134 # especially as we might pass files found there to a mingw objdump,
20135 # which wouldn't understand a cygwinified path. Ahh.
20136 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20138 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20142 # pw32 DLLs use 'pw' prefix rather than 'lib'
20143 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20149 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20152 dynamic_linker='Win32 ld.exe'
20153 # FIXME: first we should search . and the directory the executable is in
20157 darwin* | rhapsody*)
20158 dynamic_linker="$host_os dyld"
20159 version_type=darwin
20162 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20163 soname_spec='${libname}${release}${major}$shared_ext'
20164 shlibpath_overrides_runpath=yes
20165 shlibpath_var=DYLD_LIBRARY_PATH
20166 shrext_cmds='.dylib'
20167 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20168 if test "$GCC" = yes; then
20169 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"`
20171 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20173 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20181 soname_spec='${libname}${release}${shared_ext}$major'
20182 shlibpath_var=LD_LIBRARY_PATH
20193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20194 soname_spec='${libname}${release}${shared_ext}$major'
20195 shlibpath_var=LD_LIBRARY_PATH
20196 shlibpath_overrides_runpath=no
20197 hardcode_into_libs=yes
20198 dynamic_linker='GNU ld.so'
20201 freebsd* | dragonfly*)
20202 # DragonFly does not have aout. When/if they implement a new
20203 # versioning mechanism, adjust this.
20204 if test -x /usr/bin/objformat; then
20205 objformat=`/usr/bin/objformat`
20208 freebsd[123]*) objformat=aout ;;
20209 *) objformat=elf ;;
20212 version_type=freebsd-$objformat
20213 case $version_type in
20215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20220 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20224 shlibpath_var=LD_LIBRARY_PATH
20227 shlibpath_overrides_runpath=yes
20229 freebsd3.[01]* | freebsdelf3.[01]*)
20230 shlibpath_overrides_runpath=yes
20231 hardcode_into_libs=yes
20233 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20234 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20235 shlibpath_overrides_runpath=no
20236 hardcode_into_libs=yes
20238 freebsd*) # from 4.6 on
20239 shlibpath_overrides_runpath=yes
20240 hardcode_into_libs=yes
20249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20250 soname_spec='${libname}${release}${shared_ext}$major'
20251 shlibpath_var=LD_LIBRARY_PATH
20252 hardcode_into_libs=yes
20255 hpux9* | hpux10* | hpux11*)
20256 # Give a soname corresponding to the major version so that dld.sl refuses to
20257 # link against other versions.
20264 hardcode_into_libs=yes
20265 dynamic_linker="$host_os dld.so"
20266 shlibpath_var=LD_LIBRARY_PATH
20267 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20269 soname_spec='${libname}${release}${shared_ext}$major'
20270 if test "X$HPUX_IA64_MODE" = X32; then
20271 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20273 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20275 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20279 hardcode_into_libs=yes
20280 dynamic_linker="$host_os dld.sl"
20281 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20282 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20284 soname_spec='${libname}${release}${shared_ext}$major'
20285 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20286 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20290 dynamic_linker="$host_os dld.sl"
20291 shlibpath_var=SHLIB_PATH
20292 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20294 soname_spec='${libname}${release}${shared_ext}$major'
20297 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20298 postinstall_cmds='chmod 555 $lib'
20305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20306 soname_spec='${libname}${release}${shared_ext}$major'
20307 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20308 shlibpath_var=LD_LIBRARY_PATH
20309 shlibpath_overrides_runpath=no
20310 hardcode_into_libs=yes
20313 irix5* | irix6* | nonstopux*)
20315 nonstopux*) version_type=nonstopux ;;
20317 if test "$lt_cv_prog_gnu_ld" = yes; then
20325 soname_spec='${libname}${release}${shared_ext}$major'
20326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20328 irix5* | nonstopux*)
20329 libsuff= shlibsuff=
20332 case $LD in # libtool.m4 will add one of these switches to LD
20333 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20334 libsuff= shlibsuff= libmagic=32-bit;;
20335 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20336 libsuff=32 shlibsuff=N32 libmagic=N32;;
20337 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20338 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20339 *) libsuff= shlibsuff= libmagic=never-match;;
20343 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20344 shlibpath_overrides_runpath=no
20345 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20346 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20347 hardcode_into_libs=yes
20350 # No shared lib support for Linux oldld, aout, or coff.
20351 linux*oldld* | linux*aout* | linux*coff*)
20355 # This must be Linux ELF.
20360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20361 soname_spec='${libname}${release}${shared_ext}$major'
20362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20363 shlibpath_var=LD_LIBRARY_PATH
20364 shlibpath_overrides_runpath=no
20365 # This implies no fast_install, which is unacceptable.
20366 # Some rework will be needed to allow for fast_install
20367 # before this can be enabled.
20368 hardcode_into_libs=yes
20370 # Append ld.so.conf contents to the search path
20371 if test -f /etc/ld.so.conf; then
20372 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' ' '`
20373 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20376 # We used to test for /lib/ld.so.1 and disable shared libraries on
20377 # powerpc, because MkLinux only supported shared libraries with the
20378 # GNU dynamic linker. Since this was broken with cross compilers,
20379 # most powerpc-linux boxes support dynamic linking these days and
20380 # people can always --disable-shared, the test was removed, and we
20381 # assume the GNU/Linux dynamic linker is in use.
20382 dynamic_linker='GNU/Linux ld.so'
20389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20390 soname_spec='${libname}${release}${shared_ext}$major'
20391 shlibpath_var=LD_LIBRARY_PATH
20392 shlibpath_overrides_runpath=no
20393 hardcode_into_libs=yes
20394 dynamic_linker='GNU ld.so'
20401 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20404 dynamic_linker='NetBSD (a.out) ld.so'
20406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20407 soname_spec='${libname}${release}${shared_ext}$major'
20408 dynamic_linker='NetBSD ld.elf_so'
20410 shlibpath_var=LD_LIBRARY_PATH
20411 shlibpath_overrides_runpath=yes
20412 hardcode_into_libs=yes
20417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20418 shlibpath_var=LD_LIBRARY_PATH
20419 shlibpath_overrides_runpath=yes
20426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20427 soname_spec='${libname}${release}${shared_ext}$major'
20428 shlibpath_var=LD_LIBRARY_PATH
20429 shlibpath_overrides_runpath=yes
20434 sys_lib_dlsearch_path_spec="/usr/lib"
20436 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20438 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20439 *) need_version=no ;;
20441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20443 shlibpath_var=LD_LIBRARY_PATH
20444 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20446 openbsd2.[89] | openbsd2.[89].*)
20447 shlibpath_overrides_runpath=no
20450 shlibpath_overrides_runpath=yes
20454 shlibpath_overrides_runpath=yes
20459 libname_spec='$name'
20462 library_names_spec='$libname${shared_ext} $libname.a'
20463 dynamic_linker='OS/2 ld.exe'
20464 shlibpath_var=LIBPATH
20467 osf3* | osf4* | osf5*)
20471 soname_spec='${libname}${release}${shared_ext}$major'
20472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20473 shlibpath_var=LD_LIBRARY_PATH
20474 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20475 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20483 soname_spec='${libname}${release}${shared_ext}$major'
20484 shlibpath_var=LD_LIBRARY_PATH
20485 shlibpath_overrides_runpath=yes
20486 hardcode_into_libs=yes
20487 # ldd complains unless libraries are executable
20488 postinstall_cmds='chmod +x $lib'
20493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20494 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20495 shlibpath_var=LD_LIBRARY_PATH
20496 shlibpath_overrides_runpath=yes
20497 if test "$with_gnu_ld" = yes; then
20505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20506 soname_spec='${libname}${release}${shared_ext}$major'
20507 shlibpath_var=LD_LIBRARY_PATH
20508 case $host_vendor in
20510 shlibpath_overrides_runpath=no
20512 export_dynamic_flag_spec='${wl}-Blargedynsym'
20513 runpath_var=LD_RUN_PATH
20521 shlibpath_overrides_runpath=no
20522 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20528 if test -d /usr/nec ;then
20530 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20531 soname_spec='$libname${shared_ext}.$major'
20532 shlibpath_var=LD_LIBRARY_PATH
20536 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20537 version_type=freebsd-elf
20540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20541 soname_spec='${libname}${release}${shared_ext}$major'
20542 shlibpath_var=LD_LIBRARY_PATH
20543 hardcode_into_libs=yes
20544 if test "$with_gnu_ld" = yes; then
20545 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20546 shlibpath_overrides_runpath=no
20548 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20549 shlibpath_overrides_runpath=yes
20552 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20556 sys_lib_dlsearch_path_spec='/usr/lib'
20561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20562 soname_spec='${libname}${release}${shared_ext}$major'
20563 shlibpath_var=LD_LIBRARY_PATH
20570 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20571 echo "${ECHO_T}$dynamic_linker" >&6; }
20572 test "$dynamic_linker" = no && can_build_shared=no
20574 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20575 if test "$GCC" = yes; then
20576 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20579 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20580 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20581 hardcode_action_CXX=
20582 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20583 test -n "$runpath_var_CXX" || \
20584 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20586 # We can hardcode non-existant directories.
20587 if test "$hardcode_direct_CXX" != no &&
20588 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20589 # have to relink, otherwise we might link with an installed library
20590 # when we should be linking with a yet-to-be-installed one
20591 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20592 test "$hardcode_minus_L_CXX" != no; then
20593 # Linking always hardcodes the temporary library directory.
20594 hardcode_action_CXX=relink
20596 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20597 hardcode_action_CXX=immediate
20600 # We cannot hardcode anything, or else we can only hardcode existing
20602 hardcode_action_CXX=unsupported
20604 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20605 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20607 if test "$hardcode_action_CXX" = relink; then
20608 # Fast installation is not supported
20609 enable_fast_install=no
20610 elif test "$shlibpath_overrides_runpath" = yes ||
20611 test "$enable_shared" = no; then
20612 # Fast installation is not necessary
20613 enable_fast_install=needless
20617 # The else clause should only fire when bootstrapping the
20618 # libtool distribution, otherwise you forgot to ship ltmain.sh
20619 # with your package, and you will get complaints that there are
20620 # no rules to generate ltmain.sh.
20621 if test -f "$ltmain"; then
20622 # See if we are running on zsh, and set the options which allow our commands through
20623 # without removal of \ escapes.
20624 if test -n "${ZSH_VERSION+set}" ; then
20625 setopt NO_GLOB_SUBST
20627 # Now quote all the things that may contain metacharacters while being
20628 # careful not to overquote the AC_SUBSTed values. We take copies of the
20629 # variables and quote the copies for generation of the libtool script.
20630 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20632 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20633 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20634 deplibs_check_method reload_flag reload_cmds need_locks \
20635 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20636 lt_cv_sys_global_symbol_to_c_name_address \
20637 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20638 old_postinstall_cmds old_postuninstall_cmds \
20642 lt_prog_compiler_wl_CXX \
20643 lt_prog_compiler_pic_CXX \
20644 lt_prog_compiler_static_CXX \
20645 lt_prog_compiler_no_builtin_flag_CXX \
20646 export_dynamic_flag_spec_CXX \
20647 thread_safe_flag_spec_CXX \
20648 whole_archive_flag_spec_CXX \
20649 enable_shared_with_static_runtimes_CXX \
20650 old_archive_cmds_CXX \
20651 old_archive_from_new_cmds_CXX \
20652 predep_objects_CXX \
20653 postdep_objects_CXX \
20656 compiler_lib_search_path_CXX \
20658 archive_expsym_cmds_CXX \
20659 postinstall_cmds_CXX \
20660 postuninstall_cmds_CXX \
20661 old_archive_from_expsyms_cmds_CXX \
20662 allow_undefined_flag_CXX \
20663 no_undefined_flag_CXX \
20664 export_symbols_cmds_CXX \
20665 hardcode_libdir_flag_spec_CXX \
20666 hardcode_libdir_flag_spec_ld_CXX \
20667 hardcode_libdir_separator_CXX \
20668 hardcode_automatic_CXX \
20670 module_expsym_cmds_CXX \
20671 lt_cv_prog_compiler_c_o_CXX \
20672 exclude_expsyms_CXX \
20673 include_expsyms_CXX; do
20676 old_archive_cmds_CXX | \
20677 old_archive_from_new_cmds_CXX | \
20678 archive_cmds_CXX | \
20679 archive_expsym_cmds_CXX | \
20680 module_cmds_CXX | \
20681 module_expsym_cmds_CXX | \
20682 old_archive_from_expsyms_cmds_CXX | \
20683 export_symbols_cmds_CXX | \
20684 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20685 postinstall_cmds | postuninstall_cmds | \
20686 old_postinstall_cmds | old_postuninstall_cmds | \
20687 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20688 # Double-quote double-evaled strings.
20689 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20692 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20698 *'\$0 --fallback-echo"')
20699 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20705 cat <<__EOF__ >> "$cfgfile"
20706 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20708 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20710 # Shell to use when invoking shell scripts.
20713 # Whether or not to build shared libraries.
20714 build_libtool_libs=$enable_shared
20716 # Whether or not to build static libraries.
20717 build_old_libs=$enable_static
20719 # Whether or not to add -lc for building shared libraries.
20720 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20722 # Whether or not to disallow shared libs when runtime libs are static
20723 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20725 # Whether or not to optimize for fast installation.
20726 fast_install=$enable_fast_install
20729 host_alias=$host_alias
20733 # The build system.
20734 build_alias=$build_alias
20738 # An echo program that does not interpret backslashes.
20743 AR_FLAGS=$lt_AR_FLAGS
20748 # LTCC compiler flags.
20749 LTCFLAGS=$lt_LTCFLAGS
20751 # A language-specific compiler.
20752 CC=$lt_compiler_CXX
20754 # Is the compiler the GNU C compiler?
20760 # The linker used to build libraries.
20763 # Whether we need hard or soft links.
20766 # A BSD-compatible nm program.
20769 # A symbol stripping program
20772 # Used to examine libraries when file_magic_cmd begins "file"
20773 MAGIC_CMD=$MAGIC_CMD
20775 # Used on cygwin: DLL creation program.
20778 # Used on cygwin: object dumper.
20781 # Used on cygwin: assembler.
20784 # The name of the directory that contains temporary libtool files.
20787 # How to create reloadable object files.
20788 reload_flag=$lt_reload_flag
20789 reload_cmds=$lt_reload_cmds
20791 # How to pass a linker flag through the compiler.
20792 wl=$lt_lt_prog_compiler_wl_CXX
20794 # Object file suffix (normally "o").
20795 objext="$ac_objext"
20797 # Old archive suffix (normally "a").
20800 # Shared library suffix (normally ".so").
20801 shrext_cmds='$shrext_cmds'
20803 # Executable file suffix (normally "").
20806 # Additional compiler flags for building library objects.
20807 pic_flag=$lt_lt_prog_compiler_pic_CXX
20810 # What is the maximum length of a command?
20811 max_cmd_len=$lt_cv_sys_max_cmd_len
20813 # Does compiler simultaneously support -c and -o options?
20814 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20816 # Must we lock files when doing compilation?
20817 need_locks=$lt_need_locks
20819 # Do we need the lib prefix for modules?
20820 need_lib_prefix=$need_lib_prefix
20822 # Do we need a version for libraries?
20823 need_version=$need_version
20825 # Whether dlopen is supported.
20826 dlopen_support=$enable_dlopen
20828 # Whether dlopen of programs is supported.
20829 dlopen_self=$enable_dlopen_self
20831 # Whether dlopen of statically linked programs is supported.
20832 dlopen_self_static=$enable_dlopen_self_static
20834 # Compiler flag to prevent dynamic linking.
20835 link_static_flag=$lt_lt_prog_compiler_static_CXX
20837 # Compiler flag to turn off builtin functions.
20838 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20840 # Compiler flag to allow reflexive dlopens.
20841 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20843 # Compiler flag to generate shared objects directly from archives.
20844 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20846 # Compiler flag to generate thread-safe objects.
20847 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20849 # Library versioning type.
20850 version_type=$version_type
20852 # Format of library name prefix.
20853 libname_spec=$lt_libname_spec
20855 # List of archive names. First name is the real one, the rest are links.
20856 # The last name is the one that the linker finds with -lNAME.
20857 library_names_spec=$lt_library_names_spec
20859 # The coded name of the library, if different from the real name.
20860 soname_spec=$lt_soname_spec
20862 # Commands used to build and install an old-style archive.
20864 old_archive_cmds=$lt_old_archive_cmds_CXX
20865 old_postinstall_cmds=$lt_old_postinstall_cmds
20866 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20868 # Create an old-style archive from a shared archive.
20869 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20871 # Create a temporary old-style archive to link instead of a shared archive.
20872 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20874 # Commands used to build and install a shared archive.
20875 archive_cmds=$lt_archive_cmds_CXX
20876 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20877 postinstall_cmds=$lt_postinstall_cmds
20878 postuninstall_cmds=$lt_postuninstall_cmds
20880 # Commands used to build a loadable module (assumed same as above if empty)
20881 module_cmds=$lt_module_cmds_CXX
20882 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20884 # Commands to strip libraries.
20885 old_striplib=$lt_old_striplib
20886 striplib=$lt_striplib
20888 # Dependencies to place before the objects being linked to create a
20890 predep_objects=$lt_predep_objects_CXX
20892 # Dependencies to place after the objects being linked to create a
20894 postdep_objects=$lt_postdep_objects_CXX
20896 # Dependencies to place before the objects being linked to create a
20898 predeps=$lt_predeps_CXX
20900 # Dependencies to place after the objects being linked to create a
20902 postdeps=$lt_postdeps_CXX
20904 # The library search path used internally by the compiler when linking
20905 # a shared library.
20906 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20908 # Method to check whether dependent libraries are shared objects.
20909 deplibs_check_method=$lt_deplibs_check_method
20911 # Command to use when deplibs_check_method == file_magic.
20912 file_magic_cmd=$lt_file_magic_cmd
20914 # Flag that allows shared libraries with undefined symbols to be built.
20915 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20917 # Flag that forces no undefined symbols.
20918 no_undefined_flag=$lt_no_undefined_flag_CXX
20920 # Commands used to finish a libtool library installation in a directory.
20921 finish_cmds=$lt_finish_cmds
20923 # Same as above, but a single script fragment to be evaled but not shown.
20924 finish_eval=$lt_finish_eval
20926 # Take the output of nm and produce a listing of raw symbols and C names.
20927 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20929 # Transform the output of nm in a proper C declaration
20930 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20932 # Transform the output of nm in a C name address pair
20933 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20935 # This is the shared library runtime path variable.
20936 runpath_var=$runpath_var
20938 # This is the shared library path variable.
20939 shlibpath_var=$shlibpath_var
20941 # Is shlibpath searched before the hard-coded library search path?
20942 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20944 # How to hardcode a shared library path into an executable.
20945 hardcode_action=$hardcode_action_CXX
20947 # Whether we should hardcode library paths into libraries.
20948 hardcode_into_libs=$hardcode_into_libs
20950 # Flag to hardcode \$libdir into a binary during linking.
20951 # This must work even if \$libdir does not exist.
20952 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20954 # If ld is used when linking, flag to hardcode \$libdir into
20955 # a binary during linking. This must work even if \$libdir does
20957 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20959 # Whether we need a single -rpath flag with a separated argument.
20960 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20962 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20963 # resulting binary.
20964 hardcode_direct=$hardcode_direct_CXX
20966 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20967 # resulting binary.
20968 hardcode_minus_L=$hardcode_minus_L_CXX
20970 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20971 # the resulting binary.
20972 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20974 # Set to yes if building a shared library automatically hardcodes DIR into the library
20975 # and all subsequent libraries and executables linked against it.
20976 hardcode_automatic=$hardcode_automatic_CXX
20978 # Variables whose values should be saved in libtool wrapper scripts and
20979 # restored at relink time.
20980 variables_saved_for_relink="$variables_saved_for_relink"
20982 # Whether libtool must link a program against all its dependency libraries.
20983 link_all_deplibs=$link_all_deplibs_CXX
20985 # Compile-time system search path for libraries
20986 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20988 # Run-time system search path for libraries
20989 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20991 # Fix the shell variable \$srcfile for the compiler.
20992 fix_srcfile_path="$fix_srcfile_path_CXX"
20994 # Set to yes if exported symbols are required.
20995 always_export_symbols=$always_export_symbols_CXX
20997 # The commands to list exported symbols.
20998 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21000 # The commands to extract the exported symbol list from a shared archive.
21001 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21003 # Symbols that should not be listed in the preloaded symbols.
21004 exclude_expsyms=$lt_exclude_expsyms_CXX
21006 # Symbols that must always be exported.
21007 include_expsyms=$lt_include_expsyms_CXX
21009 # ### END LIBTOOL TAG CONFIG: $tagname
21015 # If there is no Makefile yet, we rely on a make rule to execute
21016 # `config.status --recheck' to rerun these tests and create the
21017 # libtool script then.
21018 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21019 if test -f "$ltmain_in"; then
21020 test -f Makefile && make "$ltmain"
21026 ac_cpp='$CPP $CPPFLAGS'
21027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21035 with_gnu_ldcxx=$with_gnu_ld
21036 with_gnu_ld=$lt_save_with_gnu_ld
21037 lt_cv_path_LDCXX=$lt_cv_path_LD
21038 lt_cv_path_LD=$lt_save_path_LD
21039 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21040 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21048 if test -n "$F77" && test "X$F77" != "Xno"; then
21051 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21052 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21053 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21056 archive_cmds_need_lc_F77=no
21057 allow_undefined_flag_F77=
21058 always_export_symbols_F77=no
21059 archive_expsym_cmds_F77=
21060 export_dynamic_flag_spec_F77=
21061 hardcode_direct_F77=no
21062 hardcode_libdir_flag_spec_F77=
21063 hardcode_libdir_flag_spec_ld_F77=
21064 hardcode_libdir_separator_F77=
21065 hardcode_minus_L_F77=no
21066 hardcode_automatic_F77=no
21068 module_expsym_cmds_F77=
21069 link_all_deplibs_F77=unknown
21070 old_archive_cmds_F77=$old_archive_cmds
21071 no_undefined_flag_F77=
21072 whole_archive_flag_spec_F77=
21073 enable_shared_with_static_runtimes_F77=no
21075 # Source file extension for f77 test sources.
21078 # Object file extension for compiled f77 test sources.
21082 # Code to be used in simple compile tests
21083 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21085 # Code to be used in simple link tests
21086 lt_simple_link_test_code=" program t\n end\n"
21088 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21090 # If no C compiler was specified, use CC.
21093 # If no C compiler flags were specified, use CFLAGS.
21094 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21096 # Allow CC to be a program name with arguments.
21100 # save warnings/boilerplate of simple test code
21101 ac_outfile=conftest.$ac_objext
21102 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21103 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21104 _lt_compiler_boilerplate=`cat conftest.err`
21107 ac_outfile=conftest.$ac_objext
21108 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21109 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21110 _lt_linker_boilerplate=`cat conftest.err`
21114 # Allow CC to be a program name with arguments.
21119 for cc_temp in $compiler""; do
21121 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21122 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21127 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21130 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21131 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21132 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21133 echo "${ECHO_T}$can_build_shared" >&6; }
21135 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21136 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21137 test "$can_build_shared" = "no" && enable_shared=no
21139 # On AIX, shared libraries and static libraries use the same namespace, and
21140 # are all built from PIC.
21143 test "$enable_shared" = yes && enable_static=no
21144 if test -n "$RANLIB"; then
21145 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21146 postinstall_cmds='$RANLIB $lib'
21150 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21151 test "$enable_shared" = yes && enable_static=no
21155 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21156 echo "${ECHO_T}$enable_shared" >&6; }
21158 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21159 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21160 # Make sure either enable_shared or enable_static is yes.
21161 test "$enable_shared" = yes || enable_static=yes
21162 { echo "$as_me:$LINENO: result: $enable_static" >&5
21163 echo "${ECHO_T}$enable_static" >&6; }
21168 lt_prog_compiler_wl_F77=
21169 lt_prog_compiler_pic_F77=
21170 lt_prog_compiler_static_F77=
21172 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21173 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21175 if test "$GCC" = yes; then
21176 lt_prog_compiler_wl_F77='-Wl,'
21177 lt_prog_compiler_static_F77='-static'
21181 # All AIX code is PIC.
21182 if test "$host_cpu" = ia64; then
21183 # AIX 5 now supports IA64 processor
21184 lt_prog_compiler_static_F77='-Bstatic'
21189 # FIXME: we need at least 68020 code to build shared libraries, but
21190 # adding the `-m68020' flag to GCC prevents building anything better,
21192 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21195 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21196 # PIC is the default for these OSes.
21199 mingw* | pw32* | os2*)
21200 # This hack is so that the source file can tell whether it is being
21201 # built for inclusion in a dll (and should export symbols for example).
21202 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21205 darwin* | rhapsody*)
21206 # PIC is the default on this platform
21207 # Common symbols not allowed in MH_DYLIB files
21208 lt_prog_compiler_pic_F77='-fno-common'
21212 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21213 # Instead, we relocate shared libraries at runtime.
21217 # Just because we use GCC doesn't mean we suddenly get shared libraries
21218 # on systems that don't support them.
21219 lt_prog_compiler_can_build_shared_F77=no
21224 if test -d /usr/nec; then
21225 lt_prog_compiler_pic_F77=-Kconform_pic
21230 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21231 # not for PA HP-UX.
21237 lt_prog_compiler_pic_F77='-fPIC'
21243 lt_prog_compiler_pic_F77='-fPIC'
21247 # PORTME Check for flag to pass linker flags through the system compiler.
21250 lt_prog_compiler_wl_F77='-Wl,'
21251 if test "$host_cpu" = ia64; then
21252 # AIX 5 now supports IA64 processor
21253 lt_prog_compiler_static_F77='-Bstatic'
21255 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21259 # PIC is the default on this platform
21260 # Common symbols not allowed in MH_DYLIB files
21261 case $cc_basename in
21263 lt_prog_compiler_pic_F77='-qnocommon'
21264 lt_prog_compiler_wl_F77='-Wl,'
21269 mingw* | pw32* | os2*)
21270 # This hack is so that the source file can tell whether it is being
21271 # built for inclusion in a dll (and should export symbols for example).
21272 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21275 hpux9* | hpux10* | hpux11*)
21276 lt_prog_compiler_wl_F77='-Wl,'
21277 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21278 # not for PA HP-UX.
21284 lt_prog_compiler_pic_F77='+Z'
21287 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21288 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21291 irix5* | irix6* | nonstopux*)
21292 lt_prog_compiler_wl_F77='-Wl,'
21293 # PIC (with -KPIC) is the default.
21294 lt_prog_compiler_static_F77='-non_shared'
21298 lt_prog_compiler_pic_F77='-KPIC'
21299 lt_prog_compiler_static_F77='-Bstatic'
21303 case $cc_basename in
21305 lt_prog_compiler_wl_F77='-Wl,'
21306 lt_prog_compiler_pic_F77='-KPIC'
21307 lt_prog_compiler_static_F77='-static'
21309 pgcc* | pgf77* | pgf90* | pgf95*)
21310 # Portland Group compilers (*not* the Pentium gcc compiler,
21311 # which looks to be a dead project)
21312 lt_prog_compiler_wl_F77='-Wl,'
21313 lt_prog_compiler_pic_F77='-fpic'
21314 lt_prog_compiler_static_F77='-Bstatic'
21317 lt_prog_compiler_wl_F77='-Wl,'
21318 # All Alpha code is PIC.
21319 lt_prog_compiler_static_F77='-non_shared'
21324 osf3* | osf4* | osf5*)
21325 lt_prog_compiler_wl_F77='-Wl,'
21326 # All OSF/1 code is PIC.
21327 lt_prog_compiler_static_F77='-non_shared'
21331 lt_prog_compiler_pic_F77='-KPIC'
21332 lt_prog_compiler_static_F77='-Bstatic'
21333 case $cc_basename in
21334 f77* | f90* | f95*)
21335 lt_prog_compiler_wl_F77='-Qoption ld ';;
21337 lt_prog_compiler_wl_F77='-Wl,';;
21342 lt_prog_compiler_wl_F77='-Qoption ld '
21343 lt_prog_compiler_pic_F77='-PIC'
21344 lt_prog_compiler_static_F77='-Bstatic'
21347 sysv4 | sysv4.2uw2* | sysv4.3*)
21348 lt_prog_compiler_wl_F77='-Wl,'
21349 lt_prog_compiler_pic_F77='-KPIC'
21350 lt_prog_compiler_static_F77='-Bstatic'
21354 if test -d /usr/nec ;then
21355 lt_prog_compiler_pic_F77='-Kconform_pic'
21356 lt_prog_compiler_static_F77='-Bstatic'
21360 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21361 lt_prog_compiler_wl_F77='-Wl,'
21362 lt_prog_compiler_pic_F77='-KPIC'
21363 lt_prog_compiler_static_F77='-Bstatic'
21367 lt_prog_compiler_wl_F77='-Wl,'
21368 lt_prog_compiler_can_build_shared_F77=no
21372 lt_prog_compiler_pic_F77='-pic'
21373 lt_prog_compiler_static_F77='-Bstatic'
21377 lt_prog_compiler_can_build_shared_F77=no
21382 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21383 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21386 # Check to make sure the PIC flag actually works.
21388 if test -n "$lt_prog_compiler_pic_F77"; then
21390 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21391 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21392 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21393 echo $ECHO_N "(cached) $ECHO_C" >&6
21395 lt_prog_compiler_pic_works_F77=no
21396 ac_outfile=conftest.$ac_objext
21397 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21398 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21399 # Insert the option either (1) after the last *FLAGS variable, or
21400 # (2) before a word containing "conftest.", or (3) at the end.
21401 # Note that $ac_compile itself does not contain backslashes and begins
21402 # with a dollar sign (not a hyphen), so the echo should work correctly.
21403 # The option is referenced via a variable to avoid confusing sed.
21404 lt_compile=`echo "$ac_compile" | $SED \
21405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21407 -e 's:$: $lt_compiler_flag:'`
21408 (eval echo "\"\$as_me:21408: $lt_compile\"" >&5)
21409 (eval "$lt_compile" 2>conftest.err)
21411 cat conftest.err >&5
21412 echo "$as_me:21412: \$? = $ac_status" >&5
21413 if (exit $ac_status) && test -s "$ac_outfile"; then
21414 # The compiler can only warn and ignore the option if not recognized
21415 # So say no if there are warnings other than the usual output.
21416 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21417 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21418 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21419 lt_prog_compiler_pic_works_F77=yes
21425 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21426 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21428 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21429 case $lt_prog_compiler_pic_F77 in
21431 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21434 lt_prog_compiler_pic_F77=
21435 lt_prog_compiler_can_build_shared_F77=no
21440 # For platforms which do not support PIC, -DPIC is meaningless:
21442 lt_prog_compiler_pic_F77=
21445 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21450 # Check to make sure the static flag actually works.
21452 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21453 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21454 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21455 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21456 echo $ECHO_N "(cached) $ECHO_C" >&6
21458 lt_prog_compiler_static_works_F77=no
21459 save_LDFLAGS="$LDFLAGS"
21460 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21461 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21462 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21463 # The linker can only warn and ignore the option if not recognized
21464 # So say no if there are warnings
21465 if test -s conftest.err; then
21466 # Append any errors to the config.log.
21467 cat conftest.err 1>&5
21468 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21470 if diff conftest.exp conftest.er2 >/dev/null; then
21471 lt_prog_compiler_static_works_F77=yes
21474 lt_prog_compiler_static_works_F77=yes
21478 LDFLAGS="$save_LDFLAGS"
21481 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21482 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21484 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21487 lt_prog_compiler_static_F77=
21491 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21492 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21493 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21494 echo $ECHO_N "(cached) $ECHO_C" >&6
21496 lt_cv_prog_compiler_c_o_F77=no
21497 $rm -r conftest 2>/dev/null
21501 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21503 lt_compiler_flag="-o out/conftest2.$ac_objext"
21504 # Insert the option either (1) after the last *FLAGS variable, or
21505 # (2) before a word containing "conftest.", or (3) at the end.
21506 # Note that $ac_compile itself does not contain backslashes and begins
21507 # with a dollar sign (not a hyphen), so the echo should work correctly.
21508 lt_compile=`echo "$ac_compile" | $SED \
21509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21511 -e 's:$: $lt_compiler_flag:'`
21512 (eval echo "\"\$as_me:21512: $lt_compile\"" >&5)
21513 (eval "$lt_compile" 2>out/conftest.err)
21515 cat out/conftest.err >&5
21516 echo "$as_me:21516: \$? = $ac_status" >&5
21517 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21519 # The compiler can only warn and ignore the option if not recognized
21520 # So say no if there are warnings
21521 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21522 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21523 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21524 lt_cv_prog_compiler_c_o_F77=yes
21529 # SGI C++ compiler will create directory out/ii_files/ for
21530 # template instantiation
21531 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21532 $rm out/* && rmdir out
21538 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21539 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21542 hard_links="nottested"
21543 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21544 # do not overwrite the value of need_locks provided by the user
21545 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21546 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21549 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21551 ln conftest.a conftest.b 2>&5 || hard_links=no
21552 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21553 { echo "$as_me:$LINENO: result: $hard_links" >&5
21554 echo "${ECHO_T}$hard_links" >&6; }
21555 if test "$hard_links" = no; then
21556 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21557 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21564 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21565 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21568 allow_undefined_flag_F77=
21569 enable_shared_with_static_runtimes_F77=no
21571 archive_expsym_cmds_F77=
21572 old_archive_From_new_cmds_F77=
21573 old_archive_from_expsyms_cmds_F77=
21574 export_dynamic_flag_spec_F77=
21575 whole_archive_flag_spec_F77=
21576 thread_safe_flag_spec_F77=
21577 hardcode_libdir_flag_spec_F77=
21578 hardcode_libdir_flag_spec_ld_F77=
21579 hardcode_libdir_separator_F77=
21580 hardcode_direct_F77=no
21581 hardcode_minus_L_F77=no
21582 hardcode_shlibpath_var_F77=unsupported
21583 link_all_deplibs_F77=unknown
21584 hardcode_automatic_F77=no
21586 module_expsym_cmds_F77=
21587 always_export_symbols_F77=no
21588 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21589 # include_expsyms should be a list of space-separated symbols to be *always*
21590 # included in the symbol list
21591 include_expsyms_F77=
21592 # exclude_expsyms can be an extended regexp of symbols to exclude
21593 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21594 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21595 # as well as any symbol that contains `d'.
21596 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21597 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21598 # platforms (ab)use it in PIC code, but their linkers get confused if
21599 # the symbol is explicitly referenced. Since portable code cannot
21600 # rely on this symbol name, it's probably fine to never include it in
21601 # preloaded symbol tables.
21602 extract_expsyms_cmds=
21603 # Just being paranoid about ensuring that cc_basename is set.
21604 for cc_temp in $compiler""; do
21606 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21607 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21612 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21615 cygwin* | mingw* | pw32*)
21616 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21617 # When not using gcc, we currently assume that we are using
21618 # Microsoft Visual C++.
21619 if test "$GCC" != yes; then
21624 # we just hope/assume this is gcc and not c89 (= MSVC++)
21633 if test "$with_gnu_ld" = yes; then
21634 # If archive_cmds runs LD, not CC, wlarc should be empty
21637 # Set some defaults for GNU ld with shared library support. These
21638 # are reset later if shared libraries are not supported. Putting them
21639 # here allows them to be overridden if necessary.
21640 runpath_var=LD_RUN_PATH
21641 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21642 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21643 # ancient GNU ld didn't support --whole-archive et. al.
21644 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21645 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21647 whole_archive_flag_spec_F77=
21649 supports_anon_versioning=no
21650 case `$LD -v 2>/dev/null` in
21651 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21652 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21653 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21654 *\ 2.11.*) ;; # other 2.11 versions
21655 *) supports_anon_versioning=yes ;;
21658 # See if GNU ld supports shared libraries.
21660 aix3* | aix4* | aix5*)
21661 # On AIX/PPC, the GNU linker is very broken
21662 if test "$host_cpu" != ia64; then
21666 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21667 *** to be unable to reliably create shared libraries on AIX.
21668 *** Therefore, libtool is disabling shared libraries support. If you
21669 *** really care for shared libraries, you may want to modify your PATH
21670 *** so that a non-GNU linker is found, and then restart.
21677 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)'
21678 hardcode_libdir_flag_spec_F77='-L$libdir'
21679 hardcode_minus_L_F77=yes
21681 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21682 # that the semantics of dynamic libraries on AmigaOS, at least up
21683 # to version 4, is to share data among multiple programs linked
21684 # with the same dynamic library. Since this doesn't match the
21685 # behavior of shared libraries on other platforms, we can't use
21691 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21692 allow_undefined_flag_F77=unsupported
21693 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21694 # support --undefined. This deserves some investigation. FIXME
21695 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21701 cygwin* | mingw* | pw32*)
21702 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21703 # as there is no search path for DLLs.
21704 hardcode_libdir_flag_spec_F77='-L$libdir'
21705 allow_undefined_flag_F77=unsupported
21706 always_export_symbols_F77=no
21707 enable_shared_with_static_runtimes_F77=yes
21708 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21710 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21711 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21712 # If the export-symbols file already is a .def file (1st line
21713 # is EXPORTS), use it as is; otherwise, prepend...
21714 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21715 cp $export_symbols $output_objdir/$soname.def;
21717 echo EXPORTS > $output_objdir/$soname.def;
21718 cat $export_symbols >> $output_objdir/$soname.def;
21720 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21727 hardcode_direct_F77=no
21728 hardcode_shlibpath_var_F77=no
21729 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21730 export_dynamic_flag_spec_F77='${wl}-E'
21731 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21732 # Instead, shared libraries are loaded at an image base (0x10000000 by
21733 # default) and relocated if they conflict, which is a slow very memory
21734 # consuming and fragmenting process. To avoid this, we pick a random,
21735 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21736 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21737 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'
21738 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'
21742 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21744 case $cc_basename,$host_cpu in
21745 pgcc*) # Portland Group C compiler
21746 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'
21747 tmp_addflag=' $pic_flag'
21749 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21750 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'
21751 tmp_addflag=' $pic_flag -Mnomain' ;;
21752 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21753 tmp_addflag=' -i_dynamic' ;;
21754 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21755 tmp_addflag=' -i_dynamic -nofor_main' ;;
21756 ifc* | ifort*) # Intel Fortran compiler
21757 tmp_addflag=' -nofor_main' ;;
21759 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21761 if test $supports_anon_versioning = yes; then
21762 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21763 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21764 $echo "local: *; };" >> $output_objdir/$libname.ver~
21765 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21773 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21774 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21777 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21778 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21783 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21787 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21788 *** create shared libraries on Solaris systems. Therefore, libtool
21789 *** is disabling shared libraries support. We urge you to upgrade GNU
21790 *** binutils to release 2.9.1 or newer. Another option is to modify
21791 *** your PATH or compiler configuration so that the native linker is
21792 *** used, and then restart.
21795 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21796 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21797 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21804 case `$LD -v 2>&1` in
21805 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21809 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21810 *** reliably create shared libraries on SCO systems. Therefore, libtool
21811 *** is disabling shared libraries support. We urge you to upgrade GNU
21812 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21813 *** your PATH or compiler configuration so that the native linker is
21814 *** used, and then restart.
21819 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21820 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21821 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21822 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21831 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21833 hardcode_direct_F77=yes
21834 hardcode_shlibpath_var_F77=no
21838 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21839 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21840 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21847 if test "$ld_shlibs_F77" = no; then
21849 hardcode_libdir_flag_spec_F77=
21850 export_dynamic_flag_spec_F77=
21851 whole_archive_flag_spec_F77=
21854 # PORTME fill in a description of your system's linker (not GNU ld)
21857 allow_undefined_flag_F77=unsupported
21858 always_export_symbols_F77=yes
21859 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'
21860 # Note: this linker hardcodes the directories in LIBPATH if there
21861 # are no directories specified by -L.
21862 hardcode_minus_L_F77=yes
21863 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21864 # Neither direct hardcoding nor static linking is supported with a
21866 hardcode_direct_F77=unsupported
21871 if test "$host_cpu" = ia64; then
21872 # On IA64, the linker does run time linking by default, so we don't
21873 # have to do anything special.
21874 aix_use_runtimelinking=no
21875 exp_sym_flag='-Bexport'
21878 # If we're using GNU nm, then we don't want the "-C" option.
21879 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21880 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21881 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'
21883 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'
21885 aix_use_runtimelinking=no
21887 # Test if we are trying to use run time linking or normal
21888 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21889 # need to do runtime linking.
21890 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21891 for ld_flag in $LDFLAGS; do
21892 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21893 aix_use_runtimelinking=yes
21900 exp_sym_flag='-bexport'
21901 no_entry_flag='-bnoentry'
21904 # When large executables or shared objects are built, AIX ld can
21905 # have problems creating the table of contents. If linking a library
21906 # or program results in "error TOC overflow" add -mminimal-toc to
21907 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21908 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21910 archive_cmds_F77=''
21911 hardcode_direct_F77=yes
21912 hardcode_libdir_separator_F77=':'
21913 link_all_deplibs_F77=yes
21915 if test "$GCC" = yes; then
21916 case $host_os in aix4.[012]|aix4.[012].*)
21917 # We only want to do this on AIX 4.2 and lower, the check
21918 # below for broken collect2 doesn't work under 4.3+
21919 collect2name=`${CC} -print-prog-name=collect2`
21920 if test -f "$collect2name" && \
21921 strings "$collect2name" | grep resolve_lib_name >/dev/null
21923 # We have reworked collect2
21924 hardcode_direct_F77=yes
21926 # We have old collect2
21927 hardcode_direct_F77=unsupported
21928 # It fails to find uninstalled libraries when the uninstalled
21929 # path is not listed in the libpath. Setting hardcode_minus_L
21930 # to unsupported forces relinking
21931 hardcode_minus_L_F77=yes
21932 hardcode_libdir_flag_spec_F77='-L$libdir'
21933 hardcode_libdir_separator_F77=
21937 shared_flag='-shared'
21938 if test "$aix_use_runtimelinking" = yes; then
21939 shared_flag="$shared_flag "'${wl}-G'
21943 if test "$host_cpu" = ia64; then
21944 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21945 # chokes on -Wl,-G. The following line is correct:
21948 if test "$aix_use_runtimelinking" = yes; then
21949 shared_flag='${wl}-G'
21951 shared_flag='${wl}-bM:SRE'
21956 # It seems that -bexpall does not export symbols beginning with
21957 # underscore (_), so it is better to generate a list of symbols to export.
21958 always_export_symbols_F77=yes
21959 if test "$aix_use_runtimelinking" = yes; then
21960 # Warning - without using the other runtime loading flags (-brtl),
21961 # -berok will link without error, but may produce a broken library.
21962 allow_undefined_flag_F77='-berok'
21963 # Determine the default libpath from the value encoded in an empty executable.
21964 cat >conftest.$ac_ext <<_ACEOF
21969 rm -f conftest.$ac_objext conftest$ac_exeext
21970 if { (ac_try="$ac_link"
21971 case "(($ac_try" in
21972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21973 *) ac_try_echo=$ac_try;;
21975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21976 (eval "$ac_link") 2>conftest.er1
21978 grep -v '^ *+' conftest.er1 >conftest.err
21980 cat conftest.err >&5
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); } &&
21983 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21984 { (case "(($ac_try" in
21985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21986 *) ac_try_echo=$ac_try;;
21988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21989 (eval "$ac_try") 2>&5
21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); }; } &&
21993 { ac_try='test -s conftest$ac_exeext'
21994 { (case "(($ac_try" in
21995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21996 *) ac_try_echo=$ac_try;;
21998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21999 (eval "$ac_try") 2>&5
22001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002 (exit $ac_status); }; }; then
22004 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22006 # Check for a 64-bit object if we didn't find anything.
22007 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; }
22010 echo "$as_me: failed program was:" >&5
22011 sed 's/^/| /' conftest.$ac_ext >&5
22016 rm -f core conftest.err conftest.$ac_objext \
22017 conftest$ac_exeext conftest.$ac_ext
22018 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22020 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22021 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"
22023 if test "$host_cpu" = ia64; then
22024 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22025 allow_undefined_flag_F77="-z nodefs"
22026 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"
22028 # Determine the default libpath from the value encoded in an empty executable.
22029 cat >conftest.$ac_ext <<_ACEOF
22034 rm -f conftest.$ac_objext conftest$ac_exeext
22035 if { (ac_try="$ac_link"
22036 case "(($ac_try" in
22037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22038 *) ac_try_echo=$ac_try;;
22040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22041 (eval "$ac_link") 2>conftest.er1
22043 grep -v '^ *+' conftest.er1 >conftest.err
22045 cat conftest.err >&5
22046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047 (exit $ac_status); } &&
22048 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22049 { (case "(($ac_try" in
22050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22051 *) ac_try_echo=$ac_try;;
22053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22054 (eval "$ac_try") 2>&5
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); }; } &&
22058 { ac_try='test -s conftest$ac_exeext'
22059 { (case "(($ac_try" in
22060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061 *) ac_try_echo=$ac_try;;
22063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22064 (eval "$ac_try") 2>&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); }; }; then
22069 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22071 # Check for a 64-bit object if we didn't find anything.
22072 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; }
22075 echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22081 rm -f core conftest.err conftest.$ac_objext \
22082 conftest$ac_exeext conftest.$ac_ext
22083 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22085 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22086 # Warning - without using the other run time loading flags,
22087 # -berok will link without error, but may produce a broken library.
22088 no_undefined_flag_F77=' ${wl}-bernotok'
22089 allow_undefined_flag_F77=' ${wl}-berok'
22090 # Exported symbols can be pulled into shared objects from archives
22091 whole_archive_flag_spec_F77='$convenience'
22092 archive_cmds_need_lc_F77=yes
22093 # This is similar to how AIX traditionally builds its shared libraries.
22094 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'
22100 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)'
22101 hardcode_libdir_flag_spec_F77='-L$libdir'
22102 hardcode_minus_L_F77=yes
22103 # see comment about different semantics on the GNU ld section
22108 export_dynamic_flag_spec_F77=-rdynamic
22111 cygwin* | mingw* | pw32*)
22112 # When not using gcc, we currently assume that we are using
22113 # Microsoft Visual C++.
22114 # hardcode_libdir_flag_spec is actually meaningless, as there is
22115 # no search path for DLLs.
22116 hardcode_libdir_flag_spec_F77=' '
22117 allow_undefined_flag_F77=unsupported
22118 # Tell ltmain to make .lib files, not .a files.
22120 # Tell ltmain to make .dll files, not .so files.
22122 # FIXME: Setting linknames here is a bad hack.
22123 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22124 # The linker will automatically build a .lib file if we build a DLL.
22125 old_archive_From_new_cmds_F77='true'
22126 # FIXME: Should let the user specify the lib program.
22127 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22128 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22129 enable_shared_with_static_runtimes_F77=yes
22132 darwin* | rhapsody*)
22134 rhapsody* | darwin1.[012])
22135 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22138 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22139 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22141 case ${MACOSX_DEPLOYMENT_TARGET} in
22143 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22146 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22152 archive_cmds_need_lc_F77=no
22153 hardcode_direct_F77=no
22154 hardcode_automatic_F77=yes
22155 hardcode_shlibpath_var_F77=unsupported
22156 whole_archive_flag_spec_F77=''
22157 link_all_deplibs_F77=yes
22158 if test "$GCC" = yes ; then
22159 output_verbose_link_cmd='echo'
22160 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22161 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22162 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22163 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}'
22164 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}'
22166 case $cc_basename in
22168 output_verbose_link_cmd='echo'
22169 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22170 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22171 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22172 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}'
22173 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}'
22183 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22184 hardcode_libdir_flag_spec_F77='-L$libdir'
22185 hardcode_shlibpath_var_F77=no
22192 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22193 # support. Future versions do this automatically, but an explicit c++rt0.o
22194 # does not break anything, and helps significantly (at the cost of a little
22197 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22198 hardcode_libdir_flag_spec_F77='-R$libdir'
22199 hardcode_direct_F77=yes
22200 hardcode_shlibpath_var_F77=no
22203 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22205 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22206 hardcode_direct_F77=yes
22207 hardcode_minus_L_F77=yes
22208 hardcode_shlibpath_var_F77=no
22211 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22212 freebsd* | kfreebsd*-gnu | dragonfly*)
22213 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22214 hardcode_libdir_flag_spec_F77='-R$libdir'
22215 hardcode_direct_F77=yes
22216 hardcode_shlibpath_var_F77=no
22220 if test "$GCC" = yes; then
22221 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'
22223 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'
22225 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22226 hardcode_libdir_separator_F77=:
22227 hardcode_direct_F77=yes
22229 # hardcode_minus_L: Not really in the search PATH,
22230 # but as the default location of the library.
22231 hardcode_minus_L_F77=yes
22232 export_dynamic_flag_spec_F77='${wl}-E'
22236 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22237 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22239 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22241 if test "$with_gnu_ld" = no; then
22242 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22243 hardcode_libdir_separator_F77=:
22245 hardcode_direct_F77=yes
22246 export_dynamic_flag_spec_F77='${wl}-E'
22248 # hardcode_minus_L: Not really in the search PATH,
22249 # but as the default location of the library.
22250 hardcode_minus_L_F77=yes
22255 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22258 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22261 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22264 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22270 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22273 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22276 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22280 if test "$with_gnu_ld" = no; then
22281 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22282 hardcode_libdir_separator_F77=:
22286 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22287 hardcode_direct_F77=no
22288 hardcode_shlibpath_var_F77=no
22291 hardcode_direct_F77=yes
22292 export_dynamic_flag_spec_F77='${wl}-E'
22294 # hardcode_minus_L: Not really in the search PATH,
22295 # but as the default location of the library.
22296 hardcode_minus_L_F77=yes
22302 irix5* | irix6* | nonstopux*)
22303 if test "$GCC" = yes; then
22304 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'
22306 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'
22307 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22309 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22310 hardcode_libdir_separator_F77=:
22311 link_all_deplibs_F77=yes
22315 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22316 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22318 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22320 hardcode_libdir_flag_spec_F77='-R$libdir'
22321 hardcode_direct_F77=yes
22322 hardcode_shlibpath_var_F77=no
22326 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22327 hardcode_direct_F77=yes
22328 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22329 hardcode_libdir_separator_F77=:
22330 hardcode_shlibpath_var_F77=no
22334 hardcode_direct_F77=yes
22335 hardcode_shlibpath_var_F77=no
22336 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22337 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22338 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22339 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22340 export_dynamic_flag_spec_F77='${wl}-E'
22343 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22344 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22345 hardcode_libdir_flag_spec_F77='-R$libdir'
22348 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22349 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22356 hardcode_libdir_flag_spec_F77='-L$libdir'
22357 hardcode_minus_L_F77=yes
22358 allow_undefined_flag_F77=unsupported
22359 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'
22360 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22364 if test "$GCC" = yes; then
22365 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22366 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'
22368 allow_undefined_flag_F77=' -expect_unresolved \*'
22369 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'
22371 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22372 hardcode_libdir_separator_F77=:
22375 osf4* | osf5*) # as osf3* with the addition of -msym flag
22376 if test "$GCC" = yes; then
22377 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22378 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'
22379 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22381 allow_undefined_flag_F77=' -expect_unresolved \*'
22382 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'
22383 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~
22384 $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'
22386 # Both c and cxx compiler support -rpath directly
22387 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22389 hardcode_libdir_separator_F77=:
22393 no_undefined_flag_F77=' -z text'
22394 if test "$GCC" = yes; then
22396 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22397 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22398 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22401 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22402 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22403 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22405 hardcode_libdir_flag_spec_F77='-R$libdir'
22406 hardcode_shlibpath_var_F77=no
22408 solaris2.[0-5] | solaris2.[0-5].*) ;;
22410 # The compiler driver will combine linker options so we
22411 # cannot just pass the convience library names through
22412 # without $wl, iff we do not link with $LD.
22413 # Luckily, gcc supports the same syntax we need for Sun Studio.
22414 # Supported since Solaris 2.6 (maybe 2.5.1?)
22417 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22419 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' ;;
22422 link_all_deplibs_F77=yes
22426 if test "x$host_vendor" = xsequent; then
22427 # Use $CC to link under sequent, because it throws in some extra .o
22428 # files that make .init and .fini sections work.
22429 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22431 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22433 hardcode_libdir_flag_spec_F77='-L$libdir'
22434 hardcode_direct_F77=yes
22435 hardcode_minus_L_F77=yes
22436 hardcode_shlibpath_var_F77=no
22440 case $host_vendor in
22442 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22443 hardcode_direct_F77=yes # is this really true???
22446 ## LD is ld it makes a PLAMLIB
22447 ## CC just makes a GrossModule.
22448 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22449 reload_cmds_F77='$CC -r -o $output$reload_objs'
22450 hardcode_direct_F77=no
22453 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22454 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22457 runpath_var='LD_RUN_PATH'
22458 hardcode_shlibpath_var_F77=no
22462 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22463 hardcode_shlibpath_var_F77=no
22464 export_dynamic_flag_spec_F77='-Bexport'
22468 if test -d /usr/nec; then
22469 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22470 hardcode_shlibpath_var_F77=no
22471 runpath_var=LD_RUN_PATH
22472 hardcode_runpath_var=yes
22477 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22478 no_undefined_flag_F77='${wl}-z,text'
22479 archive_cmds_need_lc_F77=no
22480 hardcode_shlibpath_var_F77=no
22481 runpath_var='LD_RUN_PATH'
22483 if test "$GCC" = yes; then
22484 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22485 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22487 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22488 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22492 sysv5* | sco3.2v5* | sco5v6*)
22493 # Note: We can NOT use -z defs as we might desire, because we do not
22494 # link with -lc, and that would cause any symbols used from libc to
22495 # always be unresolved, which means just about no library would
22496 # ever link correctly. If we're not using GNU ld we use -z text
22497 # though, which does catch some bad symbols but isn't as heavy-handed
22499 no_undefined_flag_F77='${wl}-z,text'
22500 allow_undefined_flag_F77='${wl}-z,nodefs'
22501 archive_cmds_need_lc_F77=no
22502 hardcode_shlibpath_var_F77=no
22503 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22504 hardcode_libdir_separator_F77=':'
22505 link_all_deplibs_F77=yes
22506 export_dynamic_flag_spec_F77='${wl}-Bexport'
22507 runpath_var='LD_RUN_PATH'
22509 if test "$GCC" = yes; then
22510 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22511 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22513 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22514 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22519 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22520 hardcode_libdir_flag_spec_F77='-L$libdir'
22521 hardcode_shlibpath_var_F77=no
22530 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22531 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22532 test "$ld_shlibs_F77" = no && can_build_shared=no
22535 # Do we need to explicitly link libc?
22537 case "x$archive_cmds_need_lc_F77" in
22539 # Assume -lc should be added
22540 archive_cmds_need_lc_F77=yes
22542 if test "$enable_shared" = yes && test "$GCC" = yes; then
22543 case $archive_cmds_F77 in
22545 # FIXME: we may have to deal with multi-command sequences.
22548 # Test whether the compiler implicitly links with -lc since on some
22549 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22550 # to ld, don't add -lc before -lgcc.
22551 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22552 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22554 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22557 (eval $ac_compile) 2>&5
22559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560 (exit $ac_status); } 2>conftest.err; then
22563 libobjs=conftest.$ac_objext
22565 wl=$lt_prog_compiler_wl_F77
22566 pic_flag=$lt_prog_compiler_pic_F77
22572 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22573 allow_undefined_flag_F77=
22574 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22575 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578 (exit $ac_status); }
22580 archive_cmds_need_lc_F77=no
22582 archive_cmds_need_lc_F77=yes
22584 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22586 cat conftest.err 1>&5
22589 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22590 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22597 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22598 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22599 library_names_spec=
22600 libname_spec='lib$name'
22604 postuninstall_cmds=
22608 shlibpath_overrides_runpath=unknown
22610 dynamic_linker="$host_os ld.so"
22611 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22612 if test "$GCC" = yes; then
22613 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22614 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22615 # if the path contains ";" then we assume it to be the separator
22616 # otherwise default to the standard path separator (i.e. ":") - it is
22617 # assumed that no part of a normal pathname contains ";" but that should
22618 # okay in the real world where ";" in dirpaths is itself problematic.
22619 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22621 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22624 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22626 need_lib_prefix=unknown
22627 hardcode_into_libs=no
22629 # when you set need_version to no, make sure it does not cause -set_version
22630 # flags to be left without arguments
22631 need_version=unknown
22636 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22637 shlibpath_var=LIBPATH
22639 # AIX 3 has no versioning support, so we append a major version to the name.
22640 soname_spec='${libname}${release}${shared_ext}$major'
22647 hardcode_into_libs=yes
22648 if test "$host_cpu" = ia64; then
22649 # AIX 5 supports IA64
22650 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22651 shlibpath_var=LD_LIBRARY_PATH
22653 # With GCC up to 2.95.x, collect2 would create an import file
22654 # for dependence libraries. The import file would start with
22655 # the line `#! .'. This would cause the generated library to
22656 # depend on `.', always an invalid library. This was fixed in
22657 # development snapshots of GCC prior to 3.0.
22659 aix4 | aix4.[01] | aix4.[01].*)
22660 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22662 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22665 can_build_shared=no
22669 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22670 # soname into executable. Probably we can add versioning support to
22671 # collect2, so additional links can be useful in future.
22672 if test "$aix_use_runtimelinking" = yes; then
22673 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22674 # instead of lib<name>.a to let people know that these are not
22675 # typical AIX shared libraries.
22676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22678 # We preserve .a as extension for shared libraries through AIX4.2
22679 # and later when we are not doing run time linking.
22680 library_names_spec='${libname}${release}.a $libname.a'
22681 soname_spec='${libname}${release}${shared_ext}$major'
22683 shlibpath_var=LIBPATH
22688 library_names_spec='$libname.ixlibrary $libname.a'
22689 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22690 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'
22694 library_names_spec='${libname}${shared_ext}'
22695 dynamic_linker="$host_os ld.so"
22696 shlibpath_var=LIBRARY_PATH
22702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22703 soname_spec='${libname}${release}${shared_ext}$major'
22704 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22705 shlibpath_var=LD_LIBRARY_PATH
22706 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22707 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22708 # the default ld.so.conf also contains /usr/contrib/lib and
22709 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22710 # libtool to hard-code these into programs
22713 cygwin* | mingw* | pw32*)
22714 version_type=windows
22719 case $GCC,$host_os in
22720 yes,cygwin* | yes,mingw* | yes,pw32*)
22721 library_names_spec='$libname.dll.a'
22722 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22723 postinstall_cmds='base_file=`basename \${file}`~
22724 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22725 dldir=$destdir/`dirname \$dlpath`~
22726 test -d \$dldir || mkdir -p \$dldir~
22727 $install_prog $dir/$dlname \$dldir/$dlname~
22728 chmod a+x \$dldir/$dlname'
22729 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22730 dlpath=$dir/\$dldll~
22732 shlibpath_overrides_runpath=yes
22736 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22737 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22738 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22741 # MinGW DLLs use traditional 'lib' prefix
22742 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22743 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22744 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22745 # It is most probably a Windows format PATH printed by
22746 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22747 # path with ; separators, and with drive letters. We can handle the
22748 # drive letters (cygwin fileutils understands them), so leave them,
22749 # especially as we might pass files found there to a mingw objdump,
22750 # which wouldn't understand a cygwinified path. Ahh.
22751 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22753 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22757 # pw32 DLLs use 'pw' prefix rather than 'lib'
22758 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22764 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22767 dynamic_linker='Win32 ld.exe'
22768 # FIXME: first we should search . and the directory the executable is in
22772 darwin* | rhapsody*)
22773 dynamic_linker="$host_os dyld"
22774 version_type=darwin
22777 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22778 soname_spec='${libname}${release}${major}$shared_ext'
22779 shlibpath_overrides_runpath=yes
22780 shlibpath_var=DYLD_LIBRARY_PATH
22781 shrext_cmds='.dylib'
22782 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22783 if test "$GCC" = yes; then
22784 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"`
22786 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22788 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22796 soname_spec='${libname}${release}${shared_ext}$major'
22797 shlibpath_var=LD_LIBRARY_PATH
22808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22809 soname_spec='${libname}${release}${shared_ext}$major'
22810 shlibpath_var=LD_LIBRARY_PATH
22811 shlibpath_overrides_runpath=no
22812 hardcode_into_libs=yes
22813 dynamic_linker='GNU ld.so'
22816 freebsd* | dragonfly*)
22817 # DragonFly does not have aout. When/if they implement a new
22818 # versioning mechanism, adjust this.
22819 if test -x /usr/bin/objformat; then
22820 objformat=`/usr/bin/objformat`
22823 freebsd[123]*) objformat=aout ;;
22824 *) objformat=elf ;;
22827 version_type=freebsd-$objformat
22828 case $version_type in
22830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22835 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22839 shlibpath_var=LD_LIBRARY_PATH
22842 shlibpath_overrides_runpath=yes
22844 freebsd3.[01]* | freebsdelf3.[01]*)
22845 shlibpath_overrides_runpath=yes
22846 hardcode_into_libs=yes
22848 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22849 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22850 shlibpath_overrides_runpath=no
22851 hardcode_into_libs=yes
22853 freebsd*) # from 4.6 on
22854 shlibpath_overrides_runpath=yes
22855 hardcode_into_libs=yes
22864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22865 soname_spec='${libname}${release}${shared_ext}$major'
22866 shlibpath_var=LD_LIBRARY_PATH
22867 hardcode_into_libs=yes
22870 hpux9* | hpux10* | hpux11*)
22871 # Give a soname corresponding to the major version so that dld.sl refuses to
22872 # link against other versions.
22879 hardcode_into_libs=yes
22880 dynamic_linker="$host_os dld.so"
22881 shlibpath_var=LD_LIBRARY_PATH
22882 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22884 soname_spec='${libname}${release}${shared_ext}$major'
22885 if test "X$HPUX_IA64_MODE" = X32; then
22886 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22888 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22890 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22894 hardcode_into_libs=yes
22895 dynamic_linker="$host_os dld.sl"
22896 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22897 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22899 soname_spec='${libname}${release}${shared_ext}$major'
22900 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22901 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22905 dynamic_linker="$host_os dld.sl"
22906 shlibpath_var=SHLIB_PATH
22907 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22909 soname_spec='${libname}${release}${shared_ext}$major'
22912 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22913 postinstall_cmds='chmod 555 $lib'
22920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22921 soname_spec='${libname}${release}${shared_ext}$major'
22922 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22923 shlibpath_var=LD_LIBRARY_PATH
22924 shlibpath_overrides_runpath=no
22925 hardcode_into_libs=yes
22928 irix5* | irix6* | nonstopux*)
22930 nonstopux*) version_type=nonstopux ;;
22932 if test "$lt_cv_prog_gnu_ld" = yes; then
22940 soname_spec='${libname}${release}${shared_ext}$major'
22941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22943 irix5* | nonstopux*)
22944 libsuff= shlibsuff=
22947 case $LD in # libtool.m4 will add one of these switches to LD
22948 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22949 libsuff= shlibsuff= libmagic=32-bit;;
22950 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22951 libsuff=32 shlibsuff=N32 libmagic=N32;;
22952 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22953 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22954 *) libsuff= shlibsuff= libmagic=never-match;;
22958 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22959 shlibpath_overrides_runpath=no
22960 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22961 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22962 hardcode_into_libs=yes
22965 # No shared lib support for Linux oldld, aout, or coff.
22966 linux*oldld* | linux*aout* | linux*coff*)
22970 # This must be Linux ELF.
22975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22976 soname_spec='${libname}${release}${shared_ext}$major'
22977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22978 shlibpath_var=LD_LIBRARY_PATH
22979 shlibpath_overrides_runpath=no
22980 # This implies no fast_install, which is unacceptable.
22981 # Some rework will be needed to allow for fast_install
22982 # before this can be enabled.
22983 hardcode_into_libs=yes
22985 # Append ld.so.conf contents to the search path
22986 if test -f /etc/ld.so.conf; then
22987 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' ' '`
22988 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22991 # We used to test for /lib/ld.so.1 and disable shared libraries on
22992 # powerpc, because MkLinux only supported shared libraries with the
22993 # GNU dynamic linker. Since this was broken with cross compilers,
22994 # most powerpc-linux boxes support dynamic linking these days and
22995 # people can always --disable-shared, the test was removed, and we
22996 # assume the GNU/Linux dynamic linker is in use.
22997 dynamic_linker='GNU/Linux ld.so'
23004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23005 soname_spec='${libname}${release}${shared_ext}$major'
23006 shlibpath_var=LD_LIBRARY_PATH
23007 shlibpath_overrides_runpath=no
23008 hardcode_into_libs=yes
23009 dynamic_linker='GNU ld.so'
23016 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23019 dynamic_linker='NetBSD (a.out) ld.so'
23021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23022 soname_spec='${libname}${release}${shared_ext}$major'
23023 dynamic_linker='NetBSD ld.elf_so'
23025 shlibpath_var=LD_LIBRARY_PATH
23026 shlibpath_overrides_runpath=yes
23027 hardcode_into_libs=yes
23032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23033 shlibpath_var=LD_LIBRARY_PATH
23034 shlibpath_overrides_runpath=yes
23041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23042 soname_spec='${libname}${release}${shared_ext}$major'
23043 shlibpath_var=LD_LIBRARY_PATH
23044 shlibpath_overrides_runpath=yes
23049 sys_lib_dlsearch_path_spec="/usr/lib"
23051 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23053 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23054 *) need_version=no ;;
23056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23058 shlibpath_var=LD_LIBRARY_PATH
23059 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23061 openbsd2.[89] | openbsd2.[89].*)
23062 shlibpath_overrides_runpath=no
23065 shlibpath_overrides_runpath=yes
23069 shlibpath_overrides_runpath=yes
23074 libname_spec='$name'
23077 library_names_spec='$libname${shared_ext} $libname.a'
23078 dynamic_linker='OS/2 ld.exe'
23079 shlibpath_var=LIBPATH
23082 osf3* | osf4* | osf5*)
23086 soname_spec='${libname}${release}${shared_ext}$major'
23087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23088 shlibpath_var=LD_LIBRARY_PATH
23089 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23090 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23098 soname_spec='${libname}${release}${shared_ext}$major'
23099 shlibpath_var=LD_LIBRARY_PATH
23100 shlibpath_overrides_runpath=yes
23101 hardcode_into_libs=yes
23102 # ldd complains unless libraries are executable
23103 postinstall_cmds='chmod +x $lib'
23108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23109 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23110 shlibpath_var=LD_LIBRARY_PATH
23111 shlibpath_overrides_runpath=yes
23112 if test "$with_gnu_ld" = yes; then
23120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23121 soname_spec='${libname}${release}${shared_ext}$major'
23122 shlibpath_var=LD_LIBRARY_PATH
23123 case $host_vendor in
23125 shlibpath_overrides_runpath=no
23127 export_dynamic_flag_spec='${wl}-Blargedynsym'
23128 runpath_var=LD_RUN_PATH
23136 shlibpath_overrides_runpath=no
23137 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23143 if test -d /usr/nec ;then
23145 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23146 soname_spec='$libname${shared_ext}.$major'
23147 shlibpath_var=LD_LIBRARY_PATH
23151 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23152 version_type=freebsd-elf
23155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23156 soname_spec='${libname}${release}${shared_ext}$major'
23157 shlibpath_var=LD_LIBRARY_PATH
23158 hardcode_into_libs=yes
23159 if test "$with_gnu_ld" = yes; then
23160 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23161 shlibpath_overrides_runpath=no
23163 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23164 shlibpath_overrides_runpath=yes
23167 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23171 sys_lib_dlsearch_path_spec='/usr/lib'
23176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23177 soname_spec='${libname}${release}${shared_ext}$major'
23178 shlibpath_var=LD_LIBRARY_PATH
23185 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23186 echo "${ECHO_T}$dynamic_linker" >&6; }
23187 test "$dynamic_linker" = no && can_build_shared=no
23189 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23190 if test "$GCC" = yes; then
23191 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23194 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23195 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23196 hardcode_action_F77=
23197 if test -n "$hardcode_libdir_flag_spec_F77" || \
23198 test -n "$runpath_var_F77" || \
23199 test "X$hardcode_automatic_F77" = "Xyes" ; then
23201 # We can hardcode non-existant directories.
23202 if test "$hardcode_direct_F77" != no &&
23203 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23204 # have to relink, otherwise we might link with an installed library
23205 # when we should be linking with a yet-to-be-installed one
23206 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23207 test "$hardcode_minus_L_F77" != no; then
23208 # Linking always hardcodes the temporary library directory.
23209 hardcode_action_F77=relink
23211 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23212 hardcode_action_F77=immediate
23215 # We cannot hardcode anything, or else we can only hardcode existing
23217 hardcode_action_F77=unsupported
23219 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23220 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23222 if test "$hardcode_action_F77" = relink; then
23223 # Fast installation is not supported
23224 enable_fast_install=no
23225 elif test "$shlibpath_overrides_runpath" = yes ||
23226 test "$enable_shared" = no; then
23227 # Fast installation is not necessary
23228 enable_fast_install=needless
23232 # The else clause should only fire when bootstrapping the
23233 # libtool distribution, otherwise you forgot to ship ltmain.sh
23234 # with your package, and you will get complaints that there are
23235 # no rules to generate ltmain.sh.
23236 if test -f "$ltmain"; then
23237 # See if we are running on zsh, and set the options which allow our commands through
23238 # without removal of \ escapes.
23239 if test -n "${ZSH_VERSION+set}" ; then
23240 setopt NO_GLOB_SUBST
23242 # Now quote all the things that may contain metacharacters while being
23243 # careful not to overquote the AC_SUBSTed values. We take copies of the
23244 # variables and quote the copies for generation of the libtool script.
23245 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23247 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23248 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23249 deplibs_check_method reload_flag reload_cmds need_locks \
23250 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23251 lt_cv_sys_global_symbol_to_c_name_address \
23252 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23253 old_postinstall_cmds old_postuninstall_cmds \
23257 lt_prog_compiler_wl_F77 \
23258 lt_prog_compiler_pic_F77 \
23259 lt_prog_compiler_static_F77 \
23260 lt_prog_compiler_no_builtin_flag_F77 \
23261 export_dynamic_flag_spec_F77 \
23262 thread_safe_flag_spec_F77 \
23263 whole_archive_flag_spec_F77 \
23264 enable_shared_with_static_runtimes_F77 \
23265 old_archive_cmds_F77 \
23266 old_archive_from_new_cmds_F77 \
23267 predep_objects_F77 \
23268 postdep_objects_F77 \
23271 compiler_lib_search_path_F77 \
23273 archive_expsym_cmds_F77 \
23274 postinstall_cmds_F77 \
23275 postuninstall_cmds_F77 \
23276 old_archive_from_expsyms_cmds_F77 \
23277 allow_undefined_flag_F77 \
23278 no_undefined_flag_F77 \
23279 export_symbols_cmds_F77 \
23280 hardcode_libdir_flag_spec_F77 \
23281 hardcode_libdir_flag_spec_ld_F77 \
23282 hardcode_libdir_separator_F77 \
23283 hardcode_automatic_F77 \
23285 module_expsym_cmds_F77 \
23286 lt_cv_prog_compiler_c_o_F77 \
23287 exclude_expsyms_F77 \
23288 include_expsyms_F77; do
23291 old_archive_cmds_F77 | \
23292 old_archive_from_new_cmds_F77 | \
23293 archive_cmds_F77 | \
23294 archive_expsym_cmds_F77 | \
23295 module_cmds_F77 | \
23296 module_expsym_cmds_F77 | \
23297 old_archive_from_expsyms_cmds_F77 | \
23298 export_symbols_cmds_F77 | \
23299 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23300 postinstall_cmds | postuninstall_cmds | \
23301 old_postinstall_cmds | old_postuninstall_cmds | \
23302 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23303 # Double-quote double-evaled strings.
23304 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23307 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23313 *'\$0 --fallback-echo"')
23314 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23320 cat <<__EOF__ >> "$cfgfile"
23321 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23323 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23325 # Shell to use when invoking shell scripts.
23328 # Whether or not to build shared libraries.
23329 build_libtool_libs=$enable_shared
23331 # Whether or not to build static libraries.
23332 build_old_libs=$enable_static
23334 # Whether or not to add -lc for building shared libraries.
23335 build_libtool_need_lc=$archive_cmds_need_lc_F77
23337 # Whether or not to disallow shared libs when runtime libs are static
23338 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23340 # Whether or not to optimize for fast installation.
23341 fast_install=$enable_fast_install
23344 host_alias=$host_alias
23348 # The build system.
23349 build_alias=$build_alias
23353 # An echo program that does not interpret backslashes.
23358 AR_FLAGS=$lt_AR_FLAGS
23363 # LTCC compiler flags.
23364 LTCFLAGS=$lt_LTCFLAGS
23366 # A language-specific compiler.
23367 CC=$lt_compiler_F77
23369 # Is the compiler the GNU C compiler?
23375 # The linker used to build libraries.
23378 # Whether we need hard or soft links.
23381 # A BSD-compatible nm program.
23384 # A symbol stripping program
23387 # Used to examine libraries when file_magic_cmd begins "file"
23388 MAGIC_CMD=$MAGIC_CMD
23390 # Used on cygwin: DLL creation program.
23393 # Used on cygwin: object dumper.
23396 # Used on cygwin: assembler.
23399 # The name of the directory that contains temporary libtool files.
23402 # How to create reloadable object files.
23403 reload_flag=$lt_reload_flag
23404 reload_cmds=$lt_reload_cmds
23406 # How to pass a linker flag through the compiler.
23407 wl=$lt_lt_prog_compiler_wl_F77
23409 # Object file suffix (normally "o").
23410 objext="$ac_objext"
23412 # Old archive suffix (normally "a").
23415 # Shared library suffix (normally ".so").
23416 shrext_cmds='$shrext_cmds'
23418 # Executable file suffix (normally "").
23421 # Additional compiler flags for building library objects.
23422 pic_flag=$lt_lt_prog_compiler_pic_F77
23425 # What is the maximum length of a command?
23426 max_cmd_len=$lt_cv_sys_max_cmd_len
23428 # Does compiler simultaneously support -c and -o options?
23429 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23431 # Must we lock files when doing compilation?
23432 need_locks=$lt_need_locks
23434 # Do we need the lib prefix for modules?
23435 need_lib_prefix=$need_lib_prefix
23437 # Do we need a version for libraries?
23438 need_version=$need_version
23440 # Whether dlopen is supported.
23441 dlopen_support=$enable_dlopen
23443 # Whether dlopen of programs is supported.
23444 dlopen_self=$enable_dlopen_self
23446 # Whether dlopen of statically linked programs is supported.
23447 dlopen_self_static=$enable_dlopen_self_static
23449 # Compiler flag to prevent dynamic linking.
23450 link_static_flag=$lt_lt_prog_compiler_static_F77
23452 # Compiler flag to turn off builtin functions.
23453 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23455 # Compiler flag to allow reflexive dlopens.
23456 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23458 # Compiler flag to generate shared objects directly from archives.
23459 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23461 # Compiler flag to generate thread-safe objects.
23462 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23464 # Library versioning type.
23465 version_type=$version_type
23467 # Format of library name prefix.
23468 libname_spec=$lt_libname_spec
23470 # List of archive names. First name is the real one, the rest are links.
23471 # The last name is the one that the linker finds with -lNAME.
23472 library_names_spec=$lt_library_names_spec
23474 # The coded name of the library, if different from the real name.
23475 soname_spec=$lt_soname_spec
23477 # Commands used to build and install an old-style archive.
23479 old_archive_cmds=$lt_old_archive_cmds_F77
23480 old_postinstall_cmds=$lt_old_postinstall_cmds
23481 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23483 # Create an old-style archive from a shared archive.
23484 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23486 # Create a temporary old-style archive to link instead of a shared archive.
23487 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23489 # Commands used to build and install a shared archive.
23490 archive_cmds=$lt_archive_cmds_F77
23491 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23492 postinstall_cmds=$lt_postinstall_cmds
23493 postuninstall_cmds=$lt_postuninstall_cmds
23495 # Commands used to build a loadable module (assumed same as above if empty)
23496 module_cmds=$lt_module_cmds_F77
23497 module_expsym_cmds=$lt_module_expsym_cmds_F77
23499 # Commands to strip libraries.
23500 old_striplib=$lt_old_striplib
23501 striplib=$lt_striplib
23503 # Dependencies to place before the objects being linked to create a
23505 predep_objects=$lt_predep_objects_F77
23507 # Dependencies to place after the objects being linked to create a
23509 postdep_objects=$lt_postdep_objects_F77
23511 # Dependencies to place before the objects being linked to create a
23513 predeps=$lt_predeps_F77
23515 # Dependencies to place after the objects being linked to create a
23517 postdeps=$lt_postdeps_F77
23519 # The library search path used internally by the compiler when linking
23520 # a shared library.
23521 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23523 # Method to check whether dependent libraries are shared objects.
23524 deplibs_check_method=$lt_deplibs_check_method
23526 # Command to use when deplibs_check_method == file_magic.
23527 file_magic_cmd=$lt_file_magic_cmd
23529 # Flag that allows shared libraries with undefined symbols to be built.
23530 allow_undefined_flag=$lt_allow_undefined_flag_F77
23532 # Flag that forces no undefined symbols.
23533 no_undefined_flag=$lt_no_undefined_flag_F77
23535 # Commands used to finish a libtool library installation in a directory.
23536 finish_cmds=$lt_finish_cmds
23538 # Same as above, but a single script fragment to be evaled but not shown.
23539 finish_eval=$lt_finish_eval
23541 # Take the output of nm and produce a listing of raw symbols and C names.
23542 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23544 # Transform the output of nm in a proper C declaration
23545 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23547 # Transform the output of nm in a C name address pair
23548 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23550 # This is the shared library runtime path variable.
23551 runpath_var=$runpath_var
23553 # This is the shared library path variable.
23554 shlibpath_var=$shlibpath_var
23556 # Is shlibpath searched before the hard-coded library search path?
23557 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23559 # How to hardcode a shared library path into an executable.
23560 hardcode_action=$hardcode_action_F77
23562 # Whether we should hardcode library paths into libraries.
23563 hardcode_into_libs=$hardcode_into_libs
23565 # Flag to hardcode \$libdir into a binary during linking.
23566 # This must work even if \$libdir does not exist.
23567 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23569 # If ld is used when linking, flag to hardcode \$libdir into
23570 # a binary during linking. This must work even if \$libdir does
23572 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23574 # Whether we need a single -rpath flag with a separated argument.
23575 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23577 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23578 # resulting binary.
23579 hardcode_direct=$hardcode_direct_F77
23581 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23582 # resulting binary.
23583 hardcode_minus_L=$hardcode_minus_L_F77
23585 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23586 # the resulting binary.
23587 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23589 # Set to yes if building a shared library automatically hardcodes DIR into the library
23590 # and all subsequent libraries and executables linked against it.
23591 hardcode_automatic=$hardcode_automatic_F77
23593 # Variables whose values should be saved in libtool wrapper scripts and
23594 # restored at relink time.
23595 variables_saved_for_relink="$variables_saved_for_relink"
23597 # Whether libtool must link a program against all its dependency libraries.
23598 link_all_deplibs=$link_all_deplibs_F77
23600 # Compile-time system search path for libraries
23601 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23603 # Run-time system search path for libraries
23604 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23606 # Fix the shell variable \$srcfile for the compiler.
23607 fix_srcfile_path="$fix_srcfile_path_F77"
23609 # Set to yes if exported symbols are required.
23610 always_export_symbols=$always_export_symbols_F77
23612 # The commands to list exported symbols.
23613 export_symbols_cmds=$lt_export_symbols_cmds_F77
23615 # The commands to extract the exported symbol list from a shared archive.
23616 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23618 # Symbols that should not be listed in the preloaded symbols.
23619 exclude_expsyms=$lt_exclude_expsyms_F77
23621 # Symbols that must always be exported.
23622 include_expsyms=$lt_include_expsyms_F77
23624 # ### END LIBTOOL TAG CONFIG: $tagname
23630 # If there is no Makefile yet, we rely on a make rule to execute
23631 # `config.status --recheck' to rerun these tests and create the
23632 # libtool script then.
23633 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23634 if test -f "$ltmain_in"; then
23635 test -f Makefile && make "$ltmain"
23641 ac_cpp='$CPP $CPPFLAGS'
23642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23654 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23656 ac_cpp='$CPP $CPPFLAGS'
23657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23662 # Source file extension for Java test sources.
23665 # Object file extension for compiled Java test sources.
23669 # Code to be used in simple compile tests
23670 lt_simple_compile_test_code="class foo {}\n"
23672 # Code to be used in simple link tests
23673 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23675 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23677 # If no C compiler was specified, use CC.
23680 # If no C compiler flags were specified, use CFLAGS.
23681 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23683 # Allow CC to be a program name with arguments.
23687 # save warnings/boilerplate of simple test code
23688 ac_outfile=conftest.$ac_objext
23689 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23690 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23691 _lt_compiler_boilerplate=`cat conftest.err`
23694 ac_outfile=conftest.$ac_objext
23695 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23696 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23697 _lt_linker_boilerplate=`cat conftest.err`
23701 # Allow CC to be a program name with arguments.
23706 for cc_temp in $compiler""; do
23708 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23709 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23714 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23717 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23718 archive_cmds_need_lc_GCJ=no
23720 old_archive_cmds_GCJ=$old_archive_cmds
23723 lt_prog_compiler_no_builtin_flag_GCJ=
23725 if test "$GCC" = yes; then
23726 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23729 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23730 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23731 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23732 echo $ECHO_N "(cached) $ECHO_C" >&6
23734 lt_cv_prog_compiler_rtti_exceptions=no
23735 ac_outfile=conftest.$ac_objext
23736 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23737 lt_compiler_flag="-fno-rtti -fno-exceptions"
23738 # Insert the option either (1) after the last *FLAGS variable, or
23739 # (2) before a word containing "conftest.", or (3) at the end.
23740 # Note that $ac_compile itself does not contain backslashes and begins
23741 # with a dollar sign (not a hyphen), so the echo should work correctly.
23742 # The option is referenced via a variable to avoid confusing sed.
23743 lt_compile=`echo "$ac_compile" | $SED \
23744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23746 -e 's:$: $lt_compiler_flag:'`
23747 (eval echo "\"\$as_me:23747: $lt_compile\"" >&5)
23748 (eval "$lt_compile" 2>conftest.err)
23750 cat conftest.err >&5
23751 echo "$as_me:23751: \$? = $ac_status" >&5
23752 if (exit $ac_status) && test -s "$ac_outfile"; then
23753 # The compiler can only warn and ignore the option if not recognized
23754 # So say no if there are warnings other than the usual output.
23755 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23757 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23758 lt_cv_prog_compiler_rtti_exceptions=yes
23764 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23765 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23767 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23768 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23775 lt_prog_compiler_wl_GCJ=
23776 lt_prog_compiler_pic_GCJ=
23777 lt_prog_compiler_static_GCJ=
23779 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23780 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23782 if test "$GCC" = yes; then
23783 lt_prog_compiler_wl_GCJ='-Wl,'
23784 lt_prog_compiler_static_GCJ='-static'
23788 # All AIX code is PIC.
23789 if test "$host_cpu" = ia64; then
23790 # AIX 5 now supports IA64 processor
23791 lt_prog_compiler_static_GCJ='-Bstatic'
23796 # FIXME: we need at least 68020 code to build shared libraries, but
23797 # adding the `-m68020' flag to GCC prevents building anything better,
23799 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23802 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23803 # PIC is the default for these OSes.
23806 mingw* | pw32* | os2*)
23807 # This hack is so that the source file can tell whether it is being
23808 # built for inclusion in a dll (and should export symbols for example).
23809 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23812 darwin* | rhapsody*)
23813 # PIC is the default on this platform
23814 # Common symbols not allowed in MH_DYLIB files
23815 lt_prog_compiler_pic_GCJ='-fno-common'
23819 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23820 # Instead, we relocate shared libraries at runtime.
23824 # Just because we use GCC doesn't mean we suddenly get shared libraries
23825 # on systems that don't support them.
23826 lt_prog_compiler_can_build_shared_GCJ=no
23831 if test -d /usr/nec; then
23832 lt_prog_compiler_pic_GCJ=-Kconform_pic
23837 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23838 # not for PA HP-UX.
23844 lt_prog_compiler_pic_GCJ='-fPIC'
23850 lt_prog_compiler_pic_GCJ='-fPIC'
23854 # PORTME Check for flag to pass linker flags through the system compiler.
23857 lt_prog_compiler_wl_GCJ='-Wl,'
23858 if test "$host_cpu" = ia64; then
23859 # AIX 5 now supports IA64 processor
23860 lt_prog_compiler_static_GCJ='-Bstatic'
23862 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23866 # PIC is the default on this platform
23867 # Common symbols not allowed in MH_DYLIB files
23868 case $cc_basename in
23870 lt_prog_compiler_pic_GCJ='-qnocommon'
23871 lt_prog_compiler_wl_GCJ='-Wl,'
23876 mingw* | pw32* | os2*)
23877 # This hack is so that the source file can tell whether it is being
23878 # built for inclusion in a dll (and should export symbols for example).
23879 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23882 hpux9* | hpux10* | hpux11*)
23883 lt_prog_compiler_wl_GCJ='-Wl,'
23884 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23885 # not for PA HP-UX.
23891 lt_prog_compiler_pic_GCJ='+Z'
23894 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23895 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23898 irix5* | irix6* | nonstopux*)
23899 lt_prog_compiler_wl_GCJ='-Wl,'
23900 # PIC (with -KPIC) is the default.
23901 lt_prog_compiler_static_GCJ='-non_shared'
23905 lt_prog_compiler_pic_GCJ='-KPIC'
23906 lt_prog_compiler_static_GCJ='-Bstatic'
23910 case $cc_basename in
23912 lt_prog_compiler_wl_GCJ='-Wl,'
23913 lt_prog_compiler_pic_GCJ='-KPIC'
23914 lt_prog_compiler_static_GCJ='-static'
23916 pgcc* | pgf77* | pgf90* | pgf95*)
23917 # Portland Group compilers (*not* the Pentium gcc compiler,
23918 # which looks to be a dead project)
23919 lt_prog_compiler_wl_GCJ='-Wl,'
23920 lt_prog_compiler_pic_GCJ='-fpic'
23921 lt_prog_compiler_static_GCJ='-Bstatic'
23924 lt_prog_compiler_wl_GCJ='-Wl,'
23925 # All Alpha code is PIC.
23926 lt_prog_compiler_static_GCJ='-non_shared'
23931 osf3* | osf4* | osf5*)
23932 lt_prog_compiler_wl_GCJ='-Wl,'
23933 # All OSF/1 code is PIC.
23934 lt_prog_compiler_static_GCJ='-non_shared'
23938 lt_prog_compiler_pic_GCJ='-KPIC'
23939 lt_prog_compiler_static_GCJ='-Bstatic'
23940 case $cc_basename in
23941 f77* | f90* | f95*)
23942 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23944 lt_prog_compiler_wl_GCJ='-Wl,';;
23949 lt_prog_compiler_wl_GCJ='-Qoption ld '
23950 lt_prog_compiler_pic_GCJ='-PIC'
23951 lt_prog_compiler_static_GCJ='-Bstatic'
23954 sysv4 | sysv4.2uw2* | sysv4.3*)
23955 lt_prog_compiler_wl_GCJ='-Wl,'
23956 lt_prog_compiler_pic_GCJ='-KPIC'
23957 lt_prog_compiler_static_GCJ='-Bstatic'
23961 if test -d /usr/nec ;then
23962 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23963 lt_prog_compiler_static_GCJ='-Bstatic'
23967 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23968 lt_prog_compiler_wl_GCJ='-Wl,'
23969 lt_prog_compiler_pic_GCJ='-KPIC'
23970 lt_prog_compiler_static_GCJ='-Bstatic'
23974 lt_prog_compiler_wl_GCJ='-Wl,'
23975 lt_prog_compiler_can_build_shared_GCJ=no
23979 lt_prog_compiler_pic_GCJ='-pic'
23980 lt_prog_compiler_static_GCJ='-Bstatic'
23984 lt_prog_compiler_can_build_shared_GCJ=no
23989 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23990 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23993 # Check to make sure the PIC flag actually works.
23995 if test -n "$lt_prog_compiler_pic_GCJ"; then
23997 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23998 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23999 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24000 echo $ECHO_N "(cached) $ECHO_C" >&6
24002 lt_prog_compiler_pic_works_GCJ=no
24003 ac_outfile=conftest.$ac_objext
24004 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24005 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24006 # Insert the option either (1) after the last *FLAGS variable, or
24007 # (2) before a word containing "conftest.", or (3) at the end.
24008 # Note that $ac_compile itself does not contain backslashes and begins
24009 # with a dollar sign (not a hyphen), so the echo should work correctly.
24010 # The option is referenced via a variable to avoid confusing sed.
24011 lt_compile=`echo "$ac_compile" | $SED \
24012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24014 -e 's:$: $lt_compiler_flag:'`
24015 (eval echo "\"\$as_me:24015: $lt_compile\"" >&5)
24016 (eval "$lt_compile" 2>conftest.err)
24018 cat conftest.err >&5
24019 echo "$as_me:24019: \$? = $ac_status" >&5
24020 if (exit $ac_status) && test -s "$ac_outfile"; then
24021 # The compiler can only warn and ignore the option if not recognized
24022 # So say no if there are warnings other than the usual output.
24023 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24024 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24025 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24026 lt_prog_compiler_pic_works_GCJ=yes
24032 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24033 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24035 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24036 case $lt_prog_compiler_pic_GCJ in
24038 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24041 lt_prog_compiler_pic_GCJ=
24042 lt_prog_compiler_can_build_shared_GCJ=no
24047 # For platforms which do not support PIC, -DPIC is meaningless:
24049 lt_prog_compiler_pic_GCJ=
24052 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24057 # Check to make sure the static flag actually works.
24059 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24060 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24061 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24062 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24063 echo $ECHO_N "(cached) $ECHO_C" >&6
24065 lt_prog_compiler_static_works_GCJ=no
24066 save_LDFLAGS="$LDFLAGS"
24067 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24068 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24069 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24070 # The linker can only warn and ignore the option if not recognized
24071 # So say no if there are warnings
24072 if test -s conftest.err; then
24073 # Append any errors to the config.log.
24074 cat conftest.err 1>&5
24075 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24076 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24077 if diff conftest.exp conftest.er2 >/dev/null; then
24078 lt_prog_compiler_static_works_GCJ=yes
24081 lt_prog_compiler_static_works_GCJ=yes
24085 LDFLAGS="$save_LDFLAGS"
24088 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24089 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24091 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24094 lt_prog_compiler_static_GCJ=
24098 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24099 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24100 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24101 echo $ECHO_N "(cached) $ECHO_C" >&6
24103 lt_cv_prog_compiler_c_o_GCJ=no
24104 $rm -r conftest 2>/dev/null
24108 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24110 lt_compiler_flag="-o out/conftest2.$ac_objext"
24111 # Insert the option either (1) after the last *FLAGS variable, or
24112 # (2) before a word containing "conftest.", or (3) at the end.
24113 # Note that $ac_compile itself does not contain backslashes and begins
24114 # with a dollar sign (not a hyphen), so the echo should work correctly.
24115 lt_compile=`echo "$ac_compile" | $SED \
24116 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24117 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24118 -e 's:$: $lt_compiler_flag:'`
24119 (eval echo "\"\$as_me:24119: $lt_compile\"" >&5)
24120 (eval "$lt_compile" 2>out/conftest.err)
24122 cat out/conftest.err >&5
24123 echo "$as_me:24123: \$? = $ac_status" >&5
24124 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24126 # The compiler can only warn and ignore the option if not recognized
24127 # So say no if there are warnings
24128 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24129 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24130 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24131 lt_cv_prog_compiler_c_o_GCJ=yes
24136 # SGI C++ compiler will create directory out/ii_files/ for
24137 # template instantiation
24138 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24139 $rm out/* && rmdir out
24145 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24146 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24149 hard_links="nottested"
24150 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24151 # do not overwrite the value of need_locks provided by the user
24152 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24153 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24156 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24158 ln conftest.a conftest.b 2>&5 || hard_links=no
24159 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24160 { echo "$as_me:$LINENO: result: $hard_links" >&5
24161 echo "${ECHO_T}$hard_links" >&6; }
24162 if test "$hard_links" = no; then
24163 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24164 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24171 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24172 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24175 allow_undefined_flag_GCJ=
24176 enable_shared_with_static_runtimes_GCJ=no
24178 archive_expsym_cmds_GCJ=
24179 old_archive_From_new_cmds_GCJ=
24180 old_archive_from_expsyms_cmds_GCJ=
24181 export_dynamic_flag_spec_GCJ=
24182 whole_archive_flag_spec_GCJ=
24183 thread_safe_flag_spec_GCJ=
24184 hardcode_libdir_flag_spec_GCJ=
24185 hardcode_libdir_flag_spec_ld_GCJ=
24186 hardcode_libdir_separator_GCJ=
24187 hardcode_direct_GCJ=no
24188 hardcode_minus_L_GCJ=no
24189 hardcode_shlibpath_var_GCJ=unsupported
24190 link_all_deplibs_GCJ=unknown
24191 hardcode_automatic_GCJ=no
24193 module_expsym_cmds_GCJ=
24194 always_export_symbols_GCJ=no
24195 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24196 # include_expsyms should be a list of space-separated symbols to be *always*
24197 # included in the symbol list
24198 include_expsyms_GCJ=
24199 # exclude_expsyms can be an extended regexp of symbols to exclude
24200 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24201 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24202 # as well as any symbol that contains `d'.
24203 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24204 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24205 # platforms (ab)use it in PIC code, but their linkers get confused if
24206 # the symbol is explicitly referenced. Since portable code cannot
24207 # rely on this symbol name, it's probably fine to never include it in
24208 # preloaded symbol tables.
24209 extract_expsyms_cmds=
24210 # Just being paranoid about ensuring that cc_basename is set.
24211 for cc_temp in $compiler""; do
24213 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24214 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24219 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24222 cygwin* | mingw* | pw32*)
24223 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24224 # When not using gcc, we currently assume that we are using
24225 # Microsoft Visual C++.
24226 if test "$GCC" != yes; then
24231 # we just hope/assume this is gcc and not c89 (= MSVC++)
24240 if test "$with_gnu_ld" = yes; then
24241 # If archive_cmds runs LD, not CC, wlarc should be empty
24244 # Set some defaults for GNU ld with shared library support. These
24245 # are reset later if shared libraries are not supported. Putting them
24246 # here allows them to be overridden if necessary.
24247 runpath_var=LD_RUN_PATH
24248 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24249 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24250 # ancient GNU ld didn't support --whole-archive et. al.
24251 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24252 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24254 whole_archive_flag_spec_GCJ=
24256 supports_anon_versioning=no
24257 case `$LD -v 2>/dev/null` in
24258 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24259 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24260 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24261 *\ 2.11.*) ;; # other 2.11 versions
24262 *) supports_anon_versioning=yes ;;
24265 # See if GNU ld supports shared libraries.
24267 aix3* | aix4* | aix5*)
24268 # On AIX/PPC, the GNU linker is very broken
24269 if test "$host_cpu" != ia64; then
24273 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24274 *** to be unable to reliably create shared libraries on AIX.
24275 *** Therefore, libtool is disabling shared libraries support. If you
24276 *** really care for shared libraries, you may want to modify your PATH
24277 *** so that a non-GNU linker is found, and then restart.
24284 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)'
24285 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24286 hardcode_minus_L_GCJ=yes
24288 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24289 # that the semantics of dynamic libraries on AmigaOS, at least up
24290 # to version 4, is to share data among multiple programs linked
24291 # with the same dynamic library. Since this doesn't match the
24292 # behavior of shared libraries on other platforms, we can't use
24298 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24299 allow_undefined_flag_GCJ=unsupported
24300 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24301 # support --undefined. This deserves some investigation. FIXME
24302 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24308 cygwin* | mingw* | pw32*)
24309 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24310 # as there is no search path for DLLs.
24311 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24312 allow_undefined_flag_GCJ=unsupported
24313 always_export_symbols_GCJ=no
24314 enable_shared_with_static_runtimes_GCJ=yes
24315 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24317 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24318 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24319 # If the export-symbols file already is a .def file (1st line
24320 # is EXPORTS), use it as is; otherwise, prepend...
24321 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24322 cp $export_symbols $output_objdir/$soname.def;
24324 echo EXPORTS > $output_objdir/$soname.def;
24325 cat $export_symbols >> $output_objdir/$soname.def;
24327 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24334 hardcode_direct_GCJ=no
24335 hardcode_shlibpath_var_GCJ=no
24336 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24337 export_dynamic_flag_spec_GCJ='${wl}-E'
24338 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24339 # Instead, shared libraries are loaded at an image base (0x10000000 by
24340 # default) and relocated if they conflict, which is a slow very memory
24341 # consuming and fragmenting process. To avoid this, we pick a random,
24342 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24343 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24344 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'
24345 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'
24349 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24351 case $cc_basename,$host_cpu in
24352 pgcc*) # Portland Group C compiler
24353 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'
24354 tmp_addflag=' $pic_flag'
24356 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24357 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'
24358 tmp_addflag=' $pic_flag -Mnomain' ;;
24359 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24360 tmp_addflag=' -i_dynamic' ;;
24361 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24362 tmp_addflag=' -i_dynamic -nofor_main' ;;
24363 ifc* | ifort*) # Intel Fortran compiler
24364 tmp_addflag=' -nofor_main' ;;
24366 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24368 if test $supports_anon_versioning = yes; then
24369 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24370 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24371 $echo "local: *; };" >> $output_objdir/$libname.ver~
24372 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24380 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24381 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24384 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24385 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24390 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24394 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24395 *** create shared libraries on Solaris systems. Therefore, libtool
24396 *** is disabling shared libraries support. We urge you to upgrade GNU
24397 *** binutils to release 2.9.1 or newer. Another option is to modify
24398 *** your PATH or compiler configuration so that the native linker is
24399 *** used, and then restart.
24402 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24403 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24404 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24410 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24411 case `$LD -v 2>&1` in
24412 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24416 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24417 *** reliably create shared libraries on SCO systems. Therefore, libtool
24418 *** is disabling shared libraries support. We urge you to upgrade GNU
24419 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24420 *** your PATH or compiler configuration so that the native linker is
24421 *** used, and then restart.
24426 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24427 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24428 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24429 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24438 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24440 hardcode_direct_GCJ=yes
24441 hardcode_shlibpath_var_GCJ=no
24445 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24446 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24447 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24454 if test "$ld_shlibs_GCJ" = no; then
24456 hardcode_libdir_flag_spec_GCJ=
24457 export_dynamic_flag_spec_GCJ=
24458 whole_archive_flag_spec_GCJ=
24461 # PORTME fill in a description of your system's linker (not GNU ld)
24464 allow_undefined_flag_GCJ=unsupported
24465 always_export_symbols_GCJ=yes
24466 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'
24467 # Note: this linker hardcodes the directories in LIBPATH if there
24468 # are no directories specified by -L.
24469 hardcode_minus_L_GCJ=yes
24470 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24471 # Neither direct hardcoding nor static linking is supported with a
24473 hardcode_direct_GCJ=unsupported
24478 if test "$host_cpu" = ia64; then
24479 # On IA64, the linker does run time linking by default, so we don't
24480 # have to do anything special.
24481 aix_use_runtimelinking=no
24482 exp_sym_flag='-Bexport'
24485 # If we're using GNU nm, then we don't want the "-C" option.
24486 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24487 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24488 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'
24490 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'
24492 aix_use_runtimelinking=no
24494 # Test if we are trying to use run time linking or normal
24495 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24496 # need to do runtime linking.
24497 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24498 for ld_flag in $LDFLAGS; do
24499 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24500 aix_use_runtimelinking=yes
24507 exp_sym_flag='-bexport'
24508 no_entry_flag='-bnoentry'
24511 # When large executables or shared objects are built, AIX ld can
24512 # have problems creating the table of contents. If linking a library
24513 # or program results in "error TOC overflow" add -mminimal-toc to
24514 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24515 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24517 archive_cmds_GCJ=''
24518 hardcode_direct_GCJ=yes
24519 hardcode_libdir_separator_GCJ=':'
24520 link_all_deplibs_GCJ=yes
24522 if test "$GCC" = yes; then
24523 case $host_os in aix4.[012]|aix4.[012].*)
24524 # We only want to do this on AIX 4.2 and lower, the check
24525 # below for broken collect2 doesn't work under 4.3+
24526 collect2name=`${CC} -print-prog-name=collect2`
24527 if test -f "$collect2name" && \
24528 strings "$collect2name" | grep resolve_lib_name >/dev/null
24530 # We have reworked collect2
24531 hardcode_direct_GCJ=yes
24533 # We have old collect2
24534 hardcode_direct_GCJ=unsupported
24535 # It fails to find uninstalled libraries when the uninstalled
24536 # path is not listed in the libpath. Setting hardcode_minus_L
24537 # to unsupported forces relinking
24538 hardcode_minus_L_GCJ=yes
24539 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24540 hardcode_libdir_separator_GCJ=
24544 shared_flag='-shared'
24545 if test "$aix_use_runtimelinking" = yes; then
24546 shared_flag="$shared_flag "'${wl}-G'
24550 if test "$host_cpu" = ia64; then
24551 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24552 # chokes on -Wl,-G. The following line is correct:
24555 if test "$aix_use_runtimelinking" = yes; then
24556 shared_flag='${wl}-G'
24558 shared_flag='${wl}-bM:SRE'
24563 # It seems that -bexpall does not export symbols beginning with
24564 # underscore (_), so it is better to generate a list of symbols to export.
24565 always_export_symbols_GCJ=yes
24566 if test "$aix_use_runtimelinking" = yes; then
24567 # Warning - without using the other runtime loading flags (-brtl),
24568 # -berok will link without error, but may produce a broken library.
24569 allow_undefined_flag_GCJ='-berok'
24570 # Determine the default libpath from the value encoded in an empty executable.
24571 cat >conftest.$ac_ext <<_ACEOF
24574 cat confdefs.h >>conftest.$ac_ext
24575 cat >>conftest.$ac_ext <<_ACEOF
24576 /* end confdefs.h. */
24586 rm -f conftest.$ac_objext conftest$ac_exeext
24587 if { (ac_try="$ac_link"
24588 case "(($ac_try" in
24589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24590 *) ac_try_echo=$ac_try;;
24592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24593 (eval "$ac_link") 2>conftest.er1
24595 grep -v '^ *+' conftest.er1 >conftest.err
24597 cat conftest.err >&5
24598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24599 (exit $ac_status); } &&
24600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24601 { (case "(($ac_try" in
24602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24603 *) ac_try_echo=$ac_try;;
24605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24606 (eval "$ac_try") 2>&5
24608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609 (exit $ac_status); }; } &&
24610 { ac_try='test -s conftest$ac_exeext'
24611 { (case "(($ac_try" in
24612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24613 *) ac_try_echo=$ac_try;;
24615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24616 (eval "$ac_try") 2>&5
24618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619 (exit $ac_status); }; }; then
24621 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24623 # Check for a 64-bit object if we didn't find anything.
24624 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; }
24627 echo "$as_me: failed program was:" >&5
24628 sed 's/^/| /' conftest.$ac_ext >&5
24633 rm -f core conftest.err conftest.$ac_objext \
24634 conftest$ac_exeext conftest.$ac_ext
24635 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24637 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24638 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"
24640 if test "$host_cpu" = ia64; then
24641 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24642 allow_undefined_flag_GCJ="-z nodefs"
24643 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"
24645 # Determine the default libpath from the value encoded in an empty executable.
24646 cat >conftest.$ac_ext <<_ACEOF
24649 cat confdefs.h >>conftest.$ac_ext
24650 cat >>conftest.$ac_ext <<_ACEOF
24651 /* end confdefs.h. */
24661 rm -f conftest.$ac_objext conftest$ac_exeext
24662 if { (ac_try="$ac_link"
24663 case "(($ac_try" in
24664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24665 *) ac_try_echo=$ac_try;;
24667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24668 (eval "$ac_link") 2>conftest.er1
24670 grep -v '^ *+' conftest.er1 >conftest.err
24672 cat conftest.err >&5
24673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674 (exit $ac_status); } &&
24675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24676 { (case "(($ac_try" in
24677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24678 *) ac_try_echo=$ac_try;;
24680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24681 (eval "$ac_try") 2>&5
24683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684 (exit $ac_status); }; } &&
24685 { ac_try='test -s conftest$ac_exeext'
24686 { (case "(($ac_try" in
24687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24688 *) ac_try_echo=$ac_try;;
24690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24691 (eval "$ac_try") 2>&5
24693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24694 (exit $ac_status); }; }; then
24696 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24698 # Check for a 64-bit object if we didn't find anything.
24699 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; }
24702 echo "$as_me: failed program was:" >&5
24703 sed 's/^/| /' conftest.$ac_ext >&5
24708 rm -f core conftest.err conftest.$ac_objext \
24709 conftest$ac_exeext conftest.$ac_ext
24710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24712 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24713 # Warning - without using the other run time loading flags,
24714 # -berok will link without error, but may produce a broken library.
24715 no_undefined_flag_GCJ=' ${wl}-bernotok'
24716 allow_undefined_flag_GCJ=' ${wl}-berok'
24717 # Exported symbols can be pulled into shared objects from archives
24718 whole_archive_flag_spec_GCJ='$convenience'
24719 archive_cmds_need_lc_GCJ=yes
24720 # This is similar to how AIX traditionally builds its shared libraries.
24721 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'
24727 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)'
24728 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24729 hardcode_minus_L_GCJ=yes
24730 # see comment about different semantics on the GNU ld section
24735 export_dynamic_flag_spec_GCJ=-rdynamic
24738 cygwin* | mingw* | pw32*)
24739 # When not using gcc, we currently assume that we are using
24740 # Microsoft Visual C++.
24741 # hardcode_libdir_flag_spec is actually meaningless, as there is
24742 # no search path for DLLs.
24743 hardcode_libdir_flag_spec_GCJ=' '
24744 allow_undefined_flag_GCJ=unsupported
24745 # Tell ltmain to make .lib files, not .a files.
24747 # Tell ltmain to make .dll files, not .so files.
24749 # FIXME: Setting linknames here is a bad hack.
24750 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24751 # The linker will automatically build a .lib file if we build a DLL.
24752 old_archive_From_new_cmds_GCJ='true'
24753 # FIXME: Should let the user specify the lib program.
24754 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24755 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24756 enable_shared_with_static_runtimes_GCJ=yes
24759 darwin* | rhapsody*)
24761 rhapsody* | darwin1.[012])
24762 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24765 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24766 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24768 case ${MACOSX_DEPLOYMENT_TARGET} in
24770 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24773 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24779 archive_cmds_need_lc_GCJ=no
24780 hardcode_direct_GCJ=no
24781 hardcode_automatic_GCJ=yes
24782 hardcode_shlibpath_var_GCJ=unsupported
24783 whole_archive_flag_spec_GCJ=''
24784 link_all_deplibs_GCJ=yes
24785 if test "$GCC" = yes ; then
24786 output_verbose_link_cmd='echo'
24787 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24788 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24789 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24790 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}'
24791 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}'
24793 case $cc_basename in
24795 output_verbose_link_cmd='echo'
24796 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24797 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24798 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24799 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}'
24800 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}'
24810 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24811 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24812 hardcode_shlibpath_var_GCJ=no
24819 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24820 # support. Future versions do this automatically, but an explicit c++rt0.o
24821 # does not break anything, and helps significantly (at the cost of a little
24824 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24825 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24826 hardcode_direct_GCJ=yes
24827 hardcode_shlibpath_var_GCJ=no
24830 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24832 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24833 hardcode_direct_GCJ=yes
24834 hardcode_minus_L_GCJ=yes
24835 hardcode_shlibpath_var_GCJ=no
24838 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24839 freebsd* | kfreebsd*-gnu | dragonfly*)
24840 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24841 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24842 hardcode_direct_GCJ=yes
24843 hardcode_shlibpath_var_GCJ=no
24847 if test "$GCC" = yes; then
24848 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'
24850 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'
24852 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24853 hardcode_libdir_separator_GCJ=:
24854 hardcode_direct_GCJ=yes
24856 # hardcode_minus_L: Not really in the search PATH,
24857 # but as the default location of the library.
24858 hardcode_minus_L_GCJ=yes
24859 export_dynamic_flag_spec_GCJ='${wl}-E'
24863 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24864 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24866 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24868 if test "$with_gnu_ld" = no; then
24869 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24870 hardcode_libdir_separator_GCJ=:
24872 hardcode_direct_GCJ=yes
24873 export_dynamic_flag_spec_GCJ='${wl}-E'
24875 # hardcode_minus_L: Not really in the search PATH,
24876 # but as the default location of the library.
24877 hardcode_minus_L_GCJ=yes
24882 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24885 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24888 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24891 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24897 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24900 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24903 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24907 if test "$with_gnu_ld" = no; then
24908 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24909 hardcode_libdir_separator_GCJ=:
24913 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24914 hardcode_direct_GCJ=no
24915 hardcode_shlibpath_var_GCJ=no
24918 hardcode_direct_GCJ=yes
24919 export_dynamic_flag_spec_GCJ='${wl}-E'
24921 # hardcode_minus_L: Not really in the search PATH,
24922 # but as the default location of the library.
24923 hardcode_minus_L_GCJ=yes
24929 irix5* | irix6* | nonstopux*)
24930 if test "$GCC" = yes; then
24931 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'
24933 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'
24934 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24936 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24937 hardcode_libdir_separator_GCJ=:
24938 link_all_deplibs_GCJ=yes
24942 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24943 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24945 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24947 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24948 hardcode_direct_GCJ=yes
24949 hardcode_shlibpath_var_GCJ=no
24953 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24954 hardcode_direct_GCJ=yes
24955 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24956 hardcode_libdir_separator_GCJ=:
24957 hardcode_shlibpath_var_GCJ=no
24961 hardcode_direct_GCJ=yes
24962 hardcode_shlibpath_var_GCJ=no
24963 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24964 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24965 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24966 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24967 export_dynamic_flag_spec_GCJ='${wl}-E'
24970 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24971 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24972 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24975 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24976 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24983 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24984 hardcode_minus_L_GCJ=yes
24985 allow_undefined_flag_GCJ=unsupported
24986 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'
24987 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24991 if test "$GCC" = yes; then
24992 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24993 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'
24995 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24996 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'
24998 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24999 hardcode_libdir_separator_GCJ=:
25002 osf4* | osf5*) # as osf3* with the addition of -msym flag
25003 if test "$GCC" = yes; then
25004 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25005 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'
25006 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25008 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25009 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'
25010 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~
25011 $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'
25013 # Both c and cxx compiler support -rpath directly
25014 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25016 hardcode_libdir_separator_GCJ=:
25020 no_undefined_flag_GCJ=' -z text'
25021 if test "$GCC" = yes; then
25023 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25024 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25025 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25028 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25029 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25030 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25032 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25033 hardcode_shlibpath_var_GCJ=no
25035 solaris2.[0-5] | solaris2.[0-5].*) ;;
25037 # The compiler driver will combine linker options so we
25038 # cannot just pass the convience library names through
25039 # without $wl, iff we do not link with $LD.
25040 # Luckily, gcc supports the same syntax we need for Sun Studio.
25041 # Supported since Solaris 2.6 (maybe 2.5.1?)
25044 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25046 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' ;;
25049 link_all_deplibs_GCJ=yes
25053 if test "x$host_vendor" = xsequent; then
25054 # Use $CC to link under sequent, because it throws in some extra .o
25055 # files that make .init and .fini sections work.
25056 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25058 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25060 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25061 hardcode_direct_GCJ=yes
25062 hardcode_minus_L_GCJ=yes
25063 hardcode_shlibpath_var_GCJ=no
25067 case $host_vendor in
25069 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25070 hardcode_direct_GCJ=yes # is this really true???
25073 ## LD is ld it makes a PLAMLIB
25074 ## CC just makes a GrossModule.
25075 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25076 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25077 hardcode_direct_GCJ=no
25080 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25081 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25084 runpath_var='LD_RUN_PATH'
25085 hardcode_shlibpath_var_GCJ=no
25089 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25090 hardcode_shlibpath_var_GCJ=no
25091 export_dynamic_flag_spec_GCJ='-Bexport'
25095 if test -d /usr/nec; then
25096 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25097 hardcode_shlibpath_var_GCJ=no
25098 runpath_var=LD_RUN_PATH
25099 hardcode_runpath_var=yes
25104 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25105 no_undefined_flag_GCJ='${wl}-z,text'
25106 archive_cmds_need_lc_GCJ=no
25107 hardcode_shlibpath_var_GCJ=no
25108 runpath_var='LD_RUN_PATH'
25110 if test "$GCC" = yes; then
25111 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25112 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25114 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25115 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25119 sysv5* | sco3.2v5* | sco5v6*)
25120 # Note: We can NOT use -z defs as we might desire, because we do not
25121 # link with -lc, and that would cause any symbols used from libc to
25122 # always be unresolved, which means just about no library would
25123 # ever link correctly. If we're not using GNU ld we use -z text
25124 # though, which does catch some bad symbols but isn't as heavy-handed
25126 no_undefined_flag_GCJ='${wl}-z,text'
25127 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25128 archive_cmds_need_lc_GCJ=no
25129 hardcode_shlibpath_var_GCJ=no
25130 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25131 hardcode_libdir_separator_GCJ=':'
25132 link_all_deplibs_GCJ=yes
25133 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25134 runpath_var='LD_RUN_PATH'
25136 if test "$GCC" = yes; then
25137 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25138 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25140 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25141 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25146 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25147 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25148 hardcode_shlibpath_var_GCJ=no
25157 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25158 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25159 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25162 # Do we need to explicitly link libc?
25164 case "x$archive_cmds_need_lc_GCJ" in
25166 # Assume -lc should be added
25167 archive_cmds_need_lc_GCJ=yes
25169 if test "$enable_shared" = yes && test "$GCC" = yes; then
25170 case $archive_cmds_GCJ in
25172 # FIXME: we may have to deal with multi-command sequences.
25175 # Test whether the compiler implicitly links with -lc since on some
25176 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25177 # to ld, don't add -lc before -lgcc.
25178 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25179 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25181 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25184 (eval $ac_compile) 2>&5
25186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187 (exit $ac_status); } 2>conftest.err; then
25190 libobjs=conftest.$ac_objext
25192 wl=$lt_prog_compiler_wl_GCJ
25193 pic_flag=$lt_prog_compiler_pic_GCJ
25199 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25200 allow_undefined_flag_GCJ=
25201 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25202 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205 (exit $ac_status); }
25207 archive_cmds_need_lc_GCJ=no
25209 archive_cmds_need_lc_GCJ=yes
25211 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25213 cat conftest.err 1>&5
25216 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25217 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25224 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25225 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25226 library_names_spec=
25227 libname_spec='lib$name'
25231 postuninstall_cmds=
25235 shlibpath_overrides_runpath=unknown
25237 dynamic_linker="$host_os ld.so"
25238 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25239 if test "$GCC" = yes; then
25240 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25241 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25242 # if the path contains ";" then we assume it to be the separator
25243 # otherwise default to the standard path separator (i.e. ":") - it is
25244 # assumed that no part of a normal pathname contains ";" but that should
25245 # okay in the real world where ";" in dirpaths is itself problematic.
25246 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25248 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25251 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25253 need_lib_prefix=unknown
25254 hardcode_into_libs=no
25256 # when you set need_version to no, make sure it does not cause -set_version
25257 # flags to be left without arguments
25258 need_version=unknown
25263 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25264 shlibpath_var=LIBPATH
25266 # AIX 3 has no versioning support, so we append a major version to the name.
25267 soname_spec='${libname}${release}${shared_ext}$major'
25274 hardcode_into_libs=yes
25275 if test "$host_cpu" = ia64; then
25276 # AIX 5 supports IA64
25277 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25278 shlibpath_var=LD_LIBRARY_PATH
25280 # With GCC up to 2.95.x, collect2 would create an import file
25281 # for dependence libraries. The import file would start with
25282 # the line `#! .'. This would cause the generated library to
25283 # depend on `.', always an invalid library. This was fixed in
25284 # development snapshots of GCC prior to 3.0.
25286 aix4 | aix4.[01] | aix4.[01].*)
25287 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25289 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25292 can_build_shared=no
25296 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25297 # soname into executable. Probably we can add versioning support to
25298 # collect2, so additional links can be useful in future.
25299 if test "$aix_use_runtimelinking" = yes; then
25300 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25301 # instead of lib<name>.a to let people know that these are not
25302 # typical AIX shared libraries.
25303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25305 # We preserve .a as extension for shared libraries through AIX4.2
25306 # and later when we are not doing run time linking.
25307 library_names_spec='${libname}${release}.a $libname.a'
25308 soname_spec='${libname}${release}${shared_ext}$major'
25310 shlibpath_var=LIBPATH
25315 library_names_spec='$libname.ixlibrary $libname.a'
25316 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25317 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'
25321 library_names_spec='${libname}${shared_ext}'
25322 dynamic_linker="$host_os ld.so"
25323 shlibpath_var=LIBRARY_PATH
25329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25330 soname_spec='${libname}${release}${shared_ext}$major'
25331 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25332 shlibpath_var=LD_LIBRARY_PATH
25333 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25334 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25335 # the default ld.so.conf also contains /usr/contrib/lib and
25336 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25337 # libtool to hard-code these into programs
25340 cygwin* | mingw* | pw32*)
25341 version_type=windows
25346 case $GCC,$host_os in
25347 yes,cygwin* | yes,mingw* | yes,pw32*)
25348 library_names_spec='$libname.dll.a'
25349 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25350 postinstall_cmds='base_file=`basename \${file}`~
25351 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25352 dldir=$destdir/`dirname \$dlpath`~
25353 test -d \$dldir || mkdir -p \$dldir~
25354 $install_prog $dir/$dlname \$dldir/$dlname~
25355 chmod a+x \$dldir/$dlname'
25356 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25357 dlpath=$dir/\$dldll~
25359 shlibpath_overrides_runpath=yes
25363 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25364 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25365 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25368 # MinGW DLLs use traditional 'lib' prefix
25369 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25370 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25371 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25372 # It is most probably a Windows format PATH printed by
25373 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25374 # path with ; separators, and with drive letters. We can handle the
25375 # drive letters (cygwin fileutils understands them), so leave them,
25376 # especially as we might pass files found there to a mingw objdump,
25377 # which wouldn't understand a cygwinified path. Ahh.
25378 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25380 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25384 # pw32 DLLs use 'pw' prefix rather than 'lib'
25385 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25391 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25394 dynamic_linker='Win32 ld.exe'
25395 # FIXME: first we should search . and the directory the executable is in
25399 darwin* | rhapsody*)
25400 dynamic_linker="$host_os dyld"
25401 version_type=darwin
25404 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25405 soname_spec='${libname}${release}${major}$shared_ext'
25406 shlibpath_overrides_runpath=yes
25407 shlibpath_var=DYLD_LIBRARY_PATH
25408 shrext_cmds='.dylib'
25409 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25410 if test "$GCC" = yes; then
25411 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"`
25413 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25415 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25423 soname_spec='${libname}${release}${shared_ext}$major'
25424 shlibpath_var=LD_LIBRARY_PATH
25435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25436 soname_spec='${libname}${release}${shared_ext}$major'
25437 shlibpath_var=LD_LIBRARY_PATH
25438 shlibpath_overrides_runpath=no
25439 hardcode_into_libs=yes
25440 dynamic_linker='GNU ld.so'
25443 freebsd* | dragonfly*)
25444 # DragonFly does not have aout. When/if they implement a new
25445 # versioning mechanism, adjust this.
25446 if test -x /usr/bin/objformat; then
25447 objformat=`/usr/bin/objformat`
25450 freebsd[123]*) objformat=aout ;;
25451 *) objformat=elf ;;
25454 version_type=freebsd-$objformat
25455 case $version_type in
25457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25462 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25466 shlibpath_var=LD_LIBRARY_PATH
25469 shlibpath_overrides_runpath=yes
25471 freebsd3.[01]* | freebsdelf3.[01]*)
25472 shlibpath_overrides_runpath=yes
25473 hardcode_into_libs=yes
25475 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25476 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25477 shlibpath_overrides_runpath=no
25478 hardcode_into_libs=yes
25480 freebsd*) # from 4.6 on
25481 shlibpath_overrides_runpath=yes
25482 hardcode_into_libs=yes
25491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25492 soname_spec='${libname}${release}${shared_ext}$major'
25493 shlibpath_var=LD_LIBRARY_PATH
25494 hardcode_into_libs=yes
25497 hpux9* | hpux10* | hpux11*)
25498 # Give a soname corresponding to the major version so that dld.sl refuses to
25499 # link against other versions.
25506 hardcode_into_libs=yes
25507 dynamic_linker="$host_os dld.so"
25508 shlibpath_var=LD_LIBRARY_PATH
25509 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25511 soname_spec='${libname}${release}${shared_ext}$major'
25512 if test "X$HPUX_IA64_MODE" = X32; then
25513 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25515 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25517 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25521 hardcode_into_libs=yes
25522 dynamic_linker="$host_os dld.sl"
25523 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25524 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25526 soname_spec='${libname}${release}${shared_ext}$major'
25527 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25528 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25532 dynamic_linker="$host_os dld.sl"
25533 shlibpath_var=SHLIB_PATH
25534 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25536 soname_spec='${libname}${release}${shared_ext}$major'
25539 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25540 postinstall_cmds='chmod 555 $lib'
25547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25548 soname_spec='${libname}${release}${shared_ext}$major'
25549 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25550 shlibpath_var=LD_LIBRARY_PATH
25551 shlibpath_overrides_runpath=no
25552 hardcode_into_libs=yes
25555 irix5* | irix6* | nonstopux*)
25557 nonstopux*) version_type=nonstopux ;;
25559 if test "$lt_cv_prog_gnu_ld" = yes; then
25567 soname_spec='${libname}${release}${shared_ext}$major'
25568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25570 irix5* | nonstopux*)
25571 libsuff= shlibsuff=
25574 case $LD in # libtool.m4 will add one of these switches to LD
25575 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25576 libsuff= shlibsuff= libmagic=32-bit;;
25577 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25578 libsuff=32 shlibsuff=N32 libmagic=N32;;
25579 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25580 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25581 *) libsuff= shlibsuff= libmagic=never-match;;
25585 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25586 shlibpath_overrides_runpath=no
25587 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25588 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25589 hardcode_into_libs=yes
25592 # No shared lib support for Linux oldld, aout, or coff.
25593 linux*oldld* | linux*aout* | linux*coff*)
25597 # This must be Linux ELF.
25602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25603 soname_spec='${libname}${release}${shared_ext}$major'
25604 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25605 shlibpath_var=LD_LIBRARY_PATH
25606 shlibpath_overrides_runpath=no
25607 # This implies no fast_install, which is unacceptable.
25608 # Some rework will be needed to allow for fast_install
25609 # before this can be enabled.
25610 hardcode_into_libs=yes
25612 # Append ld.so.conf contents to the search path
25613 if test -f /etc/ld.so.conf; then
25614 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' ' '`
25615 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25618 # We used to test for /lib/ld.so.1 and disable shared libraries on
25619 # powerpc, because MkLinux only supported shared libraries with the
25620 # GNU dynamic linker. Since this was broken with cross compilers,
25621 # most powerpc-linux boxes support dynamic linking these days and
25622 # people can always --disable-shared, the test was removed, and we
25623 # assume the GNU/Linux dynamic linker is in use.
25624 dynamic_linker='GNU/Linux ld.so'
25631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25632 soname_spec='${libname}${release}${shared_ext}$major'
25633 shlibpath_var=LD_LIBRARY_PATH
25634 shlibpath_overrides_runpath=no
25635 hardcode_into_libs=yes
25636 dynamic_linker='GNU ld.so'
25643 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25645 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25646 dynamic_linker='NetBSD (a.out) ld.so'
25648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25649 soname_spec='${libname}${release}${shared_ext}$major'
25650 dynamic_linker='NetBSD ld.elf_so'
25652 shlibpath_var=LD_LIBRARY_PATH
25653 shlibpath_overrides_runpath=yes
25654 hardcode_into_libs=yes
25659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25660 shlibpath_var=LD_LIBRARY_PATH
25661 shlibpath_overrides_runpath=yes
25668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25669 soname_spec='${libname}${release}${shared_ext}$major'
25670 shlibpath_var=LD_LIBRARY_PATH
25671 shlibpath_overrides_runpath=yes
25676 sys_lib_dlsearch_path_spec="/usr/lib"
25678 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25680 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25681 *) need_version=no ;;
25683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25684 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25685 shlibpath_var=LD_LIBRARY_PATH
25686 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25688 openbsd2.[89] | openbsd2.[89].*)
25689 shlibpath_overrides_runpath=no
25692 shlibpath_overrides_runpath=yes
25696 shlibpath_overrides_runpath=yes
25701 libname_spec='$name'
25704 library_names_spec='$libname${shared_ext} $libname.a'
25705 dynamic_linker='OS/2 ld.exe'
25706 shlibpath_var=LIBPATH
25709 osf3* | osf4* | osf5*)
25713 soname_spec='${libname}${release}${shared_ext}$major'
25714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25715 shlibpath_var=LD_LIBRARY_PATH
25716 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25717 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25725 soname_spec='${libname}${release}${shared_ext}$major'
25726 shlibpath_var=LD_LIBRARY_PATH
25727 shlibpath_overrides_runpath=yes
25728 hardcode_into_libs=yes
25729 # ldd complains unless libraries are executable
25730 postinstall_cmds='chmod +x $lib'
25735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25736 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25737 shlibpath_var=LD_LIBRARY_PATH
25738 shlibpath_overrides_runpath=yes
25739 if test "$with_gnu_ld" = yes; then
25747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25748 soname_spec='${libname}${release}${shared_ext}$major'
25749 shlibpath_var=LD_LIBRARY_PATH
25750 case $host_vendor in
25752 shlibpath_overrides_runpath=no
25754 export_dynamic_flag_spec='${wl}-Blargedynsym'
25755 runpath_var=LD_RUN_PATH
25763 shlibpath_overrides_runpath=no
25764 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25770 if test -d /usr/nec ;then
25772 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25773 soname_spec='$libname${shared_ext}.$major'
25774 shlibpath_var=LD_LIBRARY_PATH
25778 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25779 version_type=freebsd-elf
25782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25783 soname_spec='${libname}${release}${shared_ext}$major'
25784 shlibpath_var=LD_LIBRARY_PATH
25785 hardcode_into_libs=yes
25786 if test "$with_gnu_ld" = yes; then
25787 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25788 shlibpath_overrides_runpath=no
25790 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25791 shlibpath_overrides_runpath=yes
25794 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25798 sys_lib_dlsearch_path_spec='/usr/lib'
25803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25804 soname_spec='${libname}${release}${shared_ext}$major'
25805 shlibpath_var=LD_LIBRARY_PATH
25812 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25813 echo "${ECHO_T}$dynamic_linker" >&6; }
25814 test "$dynamic_linker" = no && can_build_shared=no
25816 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25817 if test "$GCC" = yes; then
25818 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25821 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25822 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25823 hardcode_action_GCJ=
25824 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25825 test -n "$runpath_var_GCJ" || \
25826 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25828 # We can hardcode non-existant directories.
25829 if test "$hardcode_direct_GCJ" != no &&
25830 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25831 # have to relink, otherwise we might link with an installed library
25832 # when we should be linking with a yet-to-be-installed one
25833 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25834 test "$hardcode_minus_L_GCJ" != no; then
25835 # Linking always hardcodes the temporary library directory.
25836 hardcode_action_GCJ=relink
25838 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25839 hardcode_action_GCJ=immediate
25842 # We cannot hardcode anything, or else we can only hardcode existing
25844 hardcode_action_GCJ=unsupported
25846 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25847 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25849 if test "$hardcode_action_GCJ" = relink; then
25850 # Fast installation is not supported
25851 enable_fast_install=no
25852 elif test "$shlibpath_overrides_runpath" = yes ||
25853 test "$enable_shared" = no; then
25854 # Fast installation is not necessary
25855 enable_fast_install=needless
25859 # The else clause should only fire when bootstrapping the
25860 # libtool distribution, otherwise you forgot to ship ltmain.sh
25861 # with your package, and you will get complaints that there are
25862 # no rules to generate ltmain.sh.
25863 if test -f "$ltmain"; then
25864 # See if we are running on zsh, and set the options which allow our commands through
25865 # without removal of \ escapes.
25866 if test -n "${ZSH_VERSION+set}" ; then
25867 setopt NO_GLOB_SUBST
25869 # Now quote all the things that may contain metacharacters while being
25870 # careful not to overquote the AC_SUBSTed values. We take copies of the
25871 # variables and quote the copies for generation of the libtool script.
25872 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25874 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25875 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25876 deplibs_check_method reload_flag reload_cmds need_locks \
25877 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25878 lt_cv_sys_global_symbol_to_c_name_address \
25879 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25880 old_postinstall_cmds old_postuninstall_cmds \
25884 lt_prog_compiler_wl_GCJ \
25885 lt_prog_compiler_pic_GCJ \
25886 lt_prog_compiler_static_GCJ \
25887 lt_prog_compiler_no_builtin_flag_GCJ \
25888 export_dynamic_flag_spec_GCJ \
25889 thread_safe_flag_spec_GCJ \
25890 whole_archive_flag_spec_GCJ \
25891 enable_shared_with_static_runtimes_GCJ \
25892 old_archive_cmds_GCJ \
25893 old_archive_from_new_cmds_GCJ \
25894 predep_objects_GCJ \
25895 postdep_objects_GCJ \
25898 compiler_lib_search_path_GCJ \
25900 archive_expsym_cmds_GCJ \
25901 postinstall_cmds_GCJ \
25902 postuninstall_cmds_GCJ \
25903 old_archive_from_expsyms_cmds_GCJ \
25904 allow_undefined_flag_GCJ \
25905 no_undefined_flag_GCJ \
25906 export_symbols_cmds_GCJ \
25907 hardcode_libdir_flag_spec_GCJ \
25908 hardcode_libdir_flag_spec_ld_GCJ \
25909 hardcode_libdir_separator_GCJ \
25910 hardcode_automatic_GCJ \
25912 module_expsym_cmds_GCJ \
25913 lt_cv_prog_compiler_c_o_GCJ \
25914 exclude_expsyms_GCJ \
25915 include_expsyms_GCJ; do
25918 old_archive_cmds_GCJ | \
25919 old_archive_from_new_cmds_GCJ | \
25920 archive_cmds_GCJ | \
25921 archive_expsym_cmds_GCJ | \
25922 module_cmds_GCJ | \
25923 module_expsym_cmds_GCJ | \
25924 old_archive_from_expsyms_cmds_GCJ | \
25925 export_symbols_cmds_GCJ | \
25926 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25927 postinstall_cmds | postuninstall_cmds | \
25928 old_postinstall_cmds | old_postuninstall_cmds | \
25929 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25930 # Double-quote double-evaled strings.
25931 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25934 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25940 *'\$0 --fallback-echo"')
25941 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25947 cat <<__EOF__ >> "$cfgfile"
25948 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25950 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25952 # Shell to use when invoking shell scripts.
25955 # Whether or not to build shared libraries.
25956 build_libtool_libs=$enable_shared
25958 # Whether or not to build static libraries.
25959 build_old_libs=$enable_static
25961 # Whether or not to add -lc for building shared libraries.
25962 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25964 # Whether or not to disallow shared libs when runtime libs are static
25965 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25967 # Whether or not to optimize for fast installation.
25968 fast_install=$enable_fast_install
25971 host_alias=$host_alias
25975 # The build system.
25976 build_alias=$build_alias
25980 # An echo program that does not interpret backslashes.
25985 AR_FLAGS=$lt_AR_FLAGS
25990 # LTCC compiler flags.
25991 LTCFLAGS=$lt_LTCFLAGS
25993 # A language-specific compiler.
25994 CC=$lt_compiler_GCJ
25996 # Is the compiler the GNU C compiler?
26002 # The linker used to build libraries.
26005 # Whether we need hard or soft links.
26008 # A BSD-compatible nm program.
26011 # A symbol stripping program
26014 # Used to examine libraries when file_magic_cmd begins "file"
26015 MAGIC_CMD=$MAGIC_CMD
26017 # Used on cygwin: DLL creation program.
26020 # Used on cygwin: object dumper.
26023 # Used on cygwin: assembler.
26026 # The name of the directory that contains temporary libtool files.
26029 # How to create reloadable object files.
26030 reload_flag=$lt_reload_flag
26031 reload_cmds=$lt_reload_cmds
26033 # How to pass a linker flag through the compiler.
26034 wl=$lt_lt_prog_compiler_wl_GCJ
26036 # Object file suffix (normally "o").
26037 objext="$ac_objext"
26039 # Old archive suffix (normally "a").
26042 # Shared library suffix (normally ".so").
26043 shrext_cmds='$shrext_cmds'
26045 # Executable file suffix (normally "").
26048 # Additional compiler flags for building library objects.
26049 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26052 # What is the maximum length of a command?
26053 max_cmd_len=$lt_cv_sys_max_cmd_len
26055 # Does compiler simultaneously support -c and -o options?
26056 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26058 # Must we lock files when doing compilation?
26059 need_locks=$lt_need_locks
26061 # Do we need the lib prefix for modules?
26062 need_lib_prefix=$need_lib_prefix
26064 # Do we need a version for libraries?
26065 need_version=$need_version
26067 # Whether dlopen is supported.
26068 dlopen_support=$enable_dlopen
26070 # Whether dlopen of programs is supported.
26071 dlopen_self=$enable_dlopen_self
26073 # Whether dlopen of statically linked programs is supported.
26074 dlopen_self_static=$enable_dlopen_self_static
26076 # Compiler flag to prevent dynamic linking.
26077 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26079 # Compiler flag to turn off builtin functions.
26080 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26082 # Compiler flag to allow reflexive dlopens.
26083 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26085 # Compiler flag to generate shared objects directly from archives.
26086 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26088 # Compiler flag to generate thread-safe objects.
26089 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26091 # Library versioning type.
26092 version_type=$version_type
26094 # Format of library name prefix.
26095 libname_spec=$lt_libname_spec
26097 # List of archive names. First name is the real one, the rest are links.
26098 # The last name is the one that the linker finds with -lNAME.
26099 library_names_spec=$lt_library_names_spec
26101 # The coded name of the library, if different from the real name.
26102 soname_spec=$lt_soname_spec
26104 # Commands used to build and install an old-style archive.
26106 old_archive_cmds=$lt_old_archive_cmds_GCJ
26107 old_postinstall_cmds=$lt_old_postinstall_cmds
26108 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26110 # Create an old-style archive from a shared archive.
26111 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26113 # Create a temporary old-style archive to link instead of a shared archive.
26114 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26116 # Commands used to build and install a shared archive.
26117 archive_cmds=$lt_archive_cmds_GCJ
26118 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26119 postinstall_cmds=$lt_postinstall_cmds
26120 postuninstall_cmds=$lt_postuninstall_cmds
26122 # Commands used to build a loadable module (assumed same as above if empty)
26123 module_cmds=$lt_module_cmds_GCJ
26124 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26126 # Commands to strip libraries.
26127 old_striplib=$lt_old_striplib
26128 striplib=$lt_striplib
26130 # Dependencies to place before the objects being linked to create a
26132 predep_objects=$lt_predep_objects_GCJ
26134 # Dependencies to place after the objects being linked to create a
26136 postdep_objects=$lt_postdep_objects_GCJ
26138 # Dependencies to place before the objects being linked to create a
26140 predeps=$lt_predeps_GCJ
26142 # Dependencies to place after the objects being linked to create a
26144 postdeps=$lt_postdeps_GCJ
26146 # The library search path used internally by the compiler when linking
26147 # a shared library.
26148 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26150 # Method to check whether dependent libraries are shared objects.
26151 deplibs_check_method=$lt_deplibs_check_method
26153 # Command to use when deplibs_check_method == file_magic.
26154 file_magic_cmd=$lt_file_magic_cmd
26156 # Flag that allows shared libraries with undefined symbols to be built.
26157 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26159 # Flag that forces no undefined symbols.
26160 no_undefined_flag=$lt_no_undefined_flag_GCJ
26162 # Commands used to finish a libtool library installation in a directory.
26163 finish_cmds=$lt_finish_cmds
26165 # Same as above, but a single script fragment to be evaled but not shown.
26166 finish_eval=$lt_finish_eval
26168 # Take the output of nm and produce a listing of raw symbols and C names.
26169 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26171 # Transform the output of nm in a proper C declaration
26172 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26174 # Transform the output of nm in a C name address pair
26175 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26177 # This is the shared library runtime path variable.
26178 runpath_var=$runpath_var
26180 # This is the shared library path variable.
26181 shlibpath_var=$shlibpath_var
26183 # Is shlibpath searched before the hard-coded library search path?
26184 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26186 # How to hardcode a shared library path into an executable.
26187 hardcode_action=$hardcode_action_GCJ
26189 # Whether we should hardcode library paths into libraries.
26190 hardcode_into_libs=$hardcode_into_libs
26192 # Flag to hardcode \$libdir into a binary during linking.
26193 # This must work even if \$libdir does not exist.
26194 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26196 # If ld is used when linking, flag to hardcode \$libdir into
26197 # a binary during linking. This must work even if \$libdir does
26199 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26201 # Whether we need a single -rpath flag with a separated argument.
26202 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26204 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26205 # resulting binary.
26206 hardcode_direct=$hardcode_direct_GCJ
26208 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26209 # resulting binary.
26210 hardcode_minus_L=$hardcode_minus_L_GCJ
26212 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26213 # the resulting binary.
26214 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26216 # Set to yes if building a shared library automatically hardcodes DIR into the library
26217 # and all subsequent libraries and executables linked against it.
26218 hardcode_automatic=$hardcode_automatic_GCJ
26220 # Variables whose values should be saved in libtool wrapper scripts and
26221 # restored at relink time.
26222 variables_saved_for_relink="$variables_saved_for_relink"
26224 # Whether libtool must link a program against all its dependency libraries.
26225 link_all_deplibs=$link_all_deplibs_GCJ
26227 # Compile-time system search path for libraries
26228 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26230 # Run-time system search path for libraries
26231 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26233 # Fix the shell variable \$srcfile for the compiler.
26234 fix_srcfile_path="$fix_srcfile_path_GCJ"
26236 # Set to yes if exported symbols are required.
26237 always_export_symbols=$always_export_symbols_GCJ
26239 # The commands to list exported symbols.
26240 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26242 # The commands to extract the exported symbol list from a shared archive.
26243 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26245 # Symbols that should not be listed in the preloaded symbols.
26246 exclude_expsyms=$lt_exclude_expsyms_GCJ
26248 # Symbols that must always be exported.
26249 include_expsyms=$lt_include_expsyms_GCJ
26251 # ### END LIBTOOL TAG CONFIG: $tagname
26257 # If there is no Makefile yet, we rely on a make rule to execute
26258 # `config.status --recheck' to rerun these tests and create the
26259 # libtool script then.
26260 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26261 if test -f "$ltmain_in"; then
26262 test -f Makefile && make "$ltmain"
26268 ac_cpp='$CPP $CPPFLAGS'
26269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26282 ac_cpp='$CPP $CPPFLAGS'
26283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26288 # Source file extension for RC test sources.
26291 # Object file extension for compiled RC test sources.
26295 # Code to be used in simple compile tests
26296 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26298 # Code to be used in simple link tests
26299 lt_simple_link_test_code="$lt_simple_compile_test_code"
26301 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26303 # If no C compiler was specified, use CC.
26306 # If no C compiler flags were specified, use CFLAGS.
26307 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26309 # Allow CC to be a program name with arguments.
26313 # save warnings/boilerplate of simple test code
26314 ac_outfile=conftest.$ac_objext
26315 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26316 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26317 _lt_compiler_boilerplate=`cat conftest.err`
26320 ac_outfile=conftest.$ac_objext
26321 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26322 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26323 _lt_linker_boilerplate=`cat conftest.err`
26327 # Allow CC to be a program name with arguments.
26332 for cc_temp in $compiler""; do
26334 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26335 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26340 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26342 lt_cv_prog_compiler_c_o_RC=yes
26344 # The else clause should only fire when bootstrapping the
26345 # libtool distribution, otherwise you forgot to ship ltmain.sh
26346 # with your package, and you will get complaints that there are
26347 # no rules to generate ltmain.sh.
26348 if test -f "$ltmain"; then
26349 # See if we are running on zsh, and set the options which allow our commands through
26350 # without removal of \ escapes.
26351 if test -n "${ZSH_VERSION+set}" ; then
26352 setopt NO_GLOB_SUBST
26354 # Now quote all the things that may contain metacharacters while being
26355 # careful not to overquote the AC_SUBSTed values. We take copies of the
26356 # variables and quote the copies for generation of the libtool script.
26357 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26359 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26360 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26361 deplibs_check_method reload_flag reload_cmds need_locks \
26362 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26363 lt_cv_sys_global_symbol_to_c_name_address \
26364 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26365 old_postinstall_cmds old_postuninstall_cmds \
26369 lt_prog_compiler_wl_RC \
26370 lt_prog_compiler_pic_RC \
26371 lt_prog_compiler_static_RC \
26372 lt_prog_compiler_no_builtin_flag_RC \
26373 export_dynamic_flag_spec_RC \
26374 thread_safe_flag_spec_RC \
26375 whole_archive_flag_spec_RC \
26376 enable_shared_with_static_runtimes_RC \
26377 old_archive_cmds_RC \
26378 old_archive_from_new_cmds_RC \
26379 predep_objects_RC \
26380 postdep_objects_RC \
26383 compiler_lib_search_path_RC \
26385 archive_expsym_cmds_RC \
26386 postinstall_cmds_RC \
26387 postuninstall_cmds_RC \
26388 old_archive_from_expsyms_cmds_RC \
26389 allow_undefined_flag_RC \
26390 no_undefined_flag_RC \
26391 export_symbols_cmds_RC \
26392 hardcode_libdir_flag_spec_RC \
26393 hardcode_libdir_flag_spec_ld_RC \
26394 hardcode_libdir_separator_RC \
26395 hardcode_automatic_RC \
26397 module_expsym_cmds_RC \
26398 lt_cv_prog_compiler_c_o_RC \
26399 exclude_expsyms_RC \
26400 include_expsyms_RC; do
26403 old_archive_cmds_RC | \
26404 old_archive_from_new_cmds_RC | \
26405 archive_cmds_RC | \
26406 archive_expsym_cmds_RC | \
26408 module_expsym_cmds_RC | \
26409 old_archive_from_expsyms_cmds_RC | \
26410 export_symbols_cmds_RC | \
26411 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26412 postinstall_cmds | postuninstall_cmds | \
26413 old_postinstall_cmds | old_postuninstall_cmds | \
26414 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26415 # Double-quote double-evaled strings.
26416 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26419 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26425 *'\$0 --fallback-echo"')
26426 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26432 cat <<__EOF__ >> "$cfgfile"
26433 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26435 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26437 # Shell to use when invoking shell scripts.
26440 # Whether or not to build shared libraries.
26441 build_libtool_libs=$enable_shared
26443 # Whether or not to build static libraries.
26444 build_old_libs=$enable_static
26446 # Whether or not to add -lc for building shared libraries.
26447 build_libtool_need_lc=$archive_cmds_need_lc_RC
26449 # Whether or not to disallow shared libs when runtime libs are static
26450 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26452 # Whether or not to optimize for fast installation.
26453 fast_install=$enable_fast_install
26456 host_alias=$host_alias
26460 # The build system.
26461 build_alias=$build_alias
26465 # An echo program that does not interpret backslashes.
26470 AR_FLAGS=$lt_AR_FLAGS
26475 # LTCC compiler flags.
26476 LTCFLAGS=$lt_LTCFLAGS
26478 # A language-specific compiler.
26481 # Is the compiler the GNU C compiler?
26487 # The linker used to build libraries.
26490 # Whether we need hard or soft links.
26493 # A BSD-compatible nm program.
26496 # A symbol stripping program
26499 # Used to examine libraries when file_magic_cmd begins "file"
26500 MAGIC_CMD=$MAGIC_CMD
26502 # Used on cygwin: DLL creation program.
26505 # Used on cygwin: object dumper.
26508 # Used on cygwin: assembler.
26511 # The name of the directory that contains temporary libtool files.
26514 # How to create reloadable object files.
26515 reload_flag=$lt_reload_flag
26516 reload_cmds=$lt_reload_cmds
26518 # How to pass a linker flag through the compiler.
26519 wl=$lt_lt_prog_compiler_wl_RC
26521 # Object file suffix (normally "o").
26522 objext="$ac_objext"
26524 # Old archive suffix (normally "a").
26527 # Shared library suffix (normally ".so").
26528 shrext_cmds='$shrext_cmds'
26530 # Executable file suffix (normally "").
26533 # Additional compiler flags for building library objects.
26534 pic_flag=$lt_lt_prog_compiler_pic_RC
26537 # What is the maximum length of a command?
26538 max_cmd_len=$lt_cv_sys_max_cmd_len
26540 # Does compiler simultaneously support -c and -o options?
26541 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26543 # Must we lock files when doing compilation?
26544 need_locks=$lt_need_locks
26546 # Do we need the lib prefix for modules?
26547 need_lib_prefix=$need_lib_prefix
26549 # Do we need a version for libraries?
26550 need_version=$need_version
26552 # Whether dlopen is supported.
26553 dlopen_support=$enable_dlopen
26555 # Whether dlopen of programs is supported.
26556 dlopen_self=$enable_dlopen_self
26558 # Whether dlopen of statically linked programs is supported.
26559 dlopen_self_static=$enable_dlopen_self_static
26561 # Compiler flag to prevent dynamic linking.
26562 link_static_flag=$lt_lt_prog_compiler_static_RC
26564 # Compiler flag to turn off builtin functions.
26565 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26567 # Compiler flag to allow reflexive dlopens.
26568 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26570 # Compiler flag to generate shared objects directly from archives.
26571 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26573 # Compiler flag to generate thread-safe objects.
26574 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26576 # Library versioning type.
26577 version_type=$version_type
26579 # Format of library name prefix.
26580 libname_spec=$lt_libname_spec
26582 # List of archive names. First name is the real one, the rest are links.
26583 # The last name is the one that the linker finds with -lNAME.
26584 library_names_spec=$lt_library_names_spec
26586 # The coded name of the library, if different from the real name.
26587 soname_spec=$lt_soname_spec
26589 # Commands used to build and install an old-style archive.
26591 old_archive_cmds=$lt_old_archive_cmds_RC
26592 old_postinstall_cmds=$lt_old_postinstall_cmds
26593 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26595 # Create an old-style archive from a shared archive.
26596 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26598 # Create a temporary old-style archive to link instead of a shared archive.
26599 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26601 # Commands used to build and install a shared archive.
26602 archive_cmds=$lt_archive_cmds_RC
26603 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26604 postinstall_cmds=$lt_postinstall_cmds
26605 postuninstall_cmds=$lt_postuninstall_cmds
26607 # Commands used to build a loadable module (assumed same as above if empty)
26608 module_cmds=$lt_module_cmds_RC
26609 module_expsym_cmds=$lt_module_expsym_cmds_RC
26611 # Commands to strip libraries.
26612 old_striplib=$lt_old_striplib
26613 striplib=$lt_striplib
26615 # Dependencies to place before the objects being linked to create a
26617 predep_objects=$lt_predep_objects_RC
26619 # Dependencies to place after the objects being linked to create a
26621 postdep_objects=$lt_postdep_objects_RC
26623 # Dependencies to place before the objects being linked to create a
26625 predeps=$lt_predeps_RC
26627 # Dependencies to place after the objects being linked to create a
26629 postdeps=$lt_postdeps_RC
26631 # The library search path used internally by the compiler when linking
26632 # a shared library.
26633 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26635 # Method to check whether dependent libraries are shared objects.
26636 deplibs_check_method=$lt_deplibs_check_method
26638 # Command to use when deplibs_check_method == file_magic.
26639 file_magic_cmd=$lt_file_magic_cmd
26641 # Flag that allows shared libraries with undefined symbols to be built.
26642 allow_undefined_flag=$lt_allow_undefined_flag_RC
26644 # Flag that forces no undefined symbols.
26645 no_undefined_flag=$lt_no_undefined_flag_RC
26647 # Commands used to finish a libtool library installation in a directory.
26648 finish_cmds=$lt_finish_cmds
26650 # Same as above, but a single script fragment to be evaled but not shown.
26651 finish_eval=$lt_finish_eval
26653 # Take the output of nm and produce a listing of raw symbols and C names.
26654 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26656 # Transform the output of nm in a proper C declaration
26657 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26659 # Transform the output of nm in a C name address pair
26660 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26662 # This is the shared library runtime path variable.
26663 runpath_var=$runpath_var
26665 # This is the shared library path variable.
26666 shlibpath_var=$shlibpath_var
26668 # Is shlibpath searched before the hard-coded library search path?
26669 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26671 # How to hardcode a shared library path into an executable.
26672 hardcode_action=$hardcode_action_RC
26674 # Whether we should hardcode library paths into libraries.
26675 hardcode_into_libs=$hardcode_into_libs
26677 # Flag to hardcode \$libdir into a binary during linking.
26678 # This must work even if \$libdir does not exist.
26679 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26681 # If ld is used when linking, flag to hardcode \$libdir into
26682 # a binary during linking. This must work even if \$libdir does
26684 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26686 # Whether we need a single -rpath flag with a separated argument.
26687 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26689 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26690 # resulting binary.
26691 hardcode_direct=$hardcode_direct_RC
26693 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26694 # resulting binary.
26695 hardcode_minus_L=$hardcode_minus_L_RC
26697 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26698 # the resulting binary.
26699 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26701 # Set to yes if building a shared library automatically hardcodes DIR into the library
26702 # and all subsequent libraries and executables linked against it.
26703 hardcode_automatic=$hardcode_automatic_RC
26705 # Variables whose values should be saved in libtool wrapper scripts and
26706 # restored at relink time.
26707 variables_saved_for_relink="$variables_saved_for_relink"
26709 # Whether libtool must link a program against all its dependency libraries.
26710 link_all_deplibs=$link_all_deplibs_RC
26712 # Compile-time system search path for libraries
26713 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26715 # Run-time system search path for libraries
26716 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26718 # Fix the shell variable \$srcfile for the compiler.
26719 fix_srcfile_path="$fix_srcfile_path_RC"
26721 # Set to yes if exported symbols are required.
26722 always_export_symbols=$always_export_symbols_RC
26724 # The commands to list exported symbols.
26725 export_symbols_cmds=$lt_export_symbols_cmds_RC
26727 # The commands to extract the exported symbol list from a shared archive.
26728 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26730 # Symbols that should not be listed in the preloaded symbols.
26731 exclude_expsyms=$lt_exclude_expsyms_RC
26733 # Symbols that must always be exported.
26734 include_expsyms=$lt_include_expsyms_RC
26736 # ### END LIBTOOL TAG CONFIG: $tagname
26742 # If there is no Makefile yet, we rely on a make rule to execute
26743 # `config.status --recheck' to rerun these tests and create the
26744 # libtool script then.
26745 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26746 if test -f "$ltmain_in"; then
26747 test -f Makefile && make "$ltmain"
26753 ac_cpp='$CPP $CPPFLAGS'
26754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26763 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26764 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26765 { (exit 1); exit 1; }; }
26769 # Append the new tag name to the list of available tags.
26770 if test -n "$tagname" ; then
26771 available_tags="$available_tags $tagname"
26777 # Now substitute the updated list of available tags.
26778 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26779 mv "${ofile}T" "$ofile"
26783 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26784 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26785 { (exit 1); exit 1; }; }
26791 # This can be used to rebuild libtool when needed
26792 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26794 # Always use our own libtool.
26795 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26797 # Prevent multiple expansion
26819 if test "$lt_cv_dlopen_self" = "yes" ; then
26821 cat >>confdefs.h <<\_ACEOF
26822 #define CAN_DLOPEN_SELF 1
26827 if test "$WITH_LLVMGCCDIR" = "default" ; then
26828 LLVMGCC="llvm-gcc${EXEEXT}"
26829 LLVMGXX="llvm-g++${EXEEXT}"
26830 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26831 set dummy $LLVMGCC; ac_word=$2
26832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26834 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26835 echo $ECHO_N "(cached) $ECHO_C" >&6
26839 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26843 for as_dir in $PATH
26846 test -z "$as_dir" && as_dir=.
26847 for ac_exec_ext in '' $ac_executable_extensions; do
26848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26849 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26860 LLVMGCC=$ac_cv_path_LLVMGCC
26861 if test -n "$LLVMGCC"; then
26862 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26863 echo "${ECHO_T}$LLVMGCC" >&6; }
26865 { echo "$as_me:$LINENO: result: no" >&5
26866 echo "${ECHO_T}no" >&6; }
26870 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26871 set dummy $LLVMGXX; ac_word=$2
26872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26874 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26875 echo $ECHO_N "(cached) $ECHO_C" >&6
26879 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26883 for as_dir in $PATH
26886 test -z "$as_dir" && as_dir=.
26887 for ac_exec_ext in '' $ac_executable_extensions; do
26888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26889 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26900 LLVMGXX=$ac_cv_path_LLVMGXX
26901 if test -n "$LLVMGXX"; then
26902 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26903 echo "${ECHO_T}$LLVMGXX" >&6; }
26905 { echo "$as_me:$LINENO: result: no" >&5
26906 echo "${ECHO_T}no" >&6; }
26911 if test -z "$LLVMGCC"; then
26912 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26914 if test -z "$LLVMGXX"; then
26915 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26923 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26924 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26937 if test "$GCC" != "yes" && test "$ICC" != "yes"
26939 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26940 echo "$as_me: error: gcc|icc required but not found" >&2;}
26941 { (exit 1); exit 1; }; }
26944 if test "$GXX" != "yes" && test "$IXX" != "yes"
26946 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26947 echo "$as_me: error: g++|icc required but not found" >&2;}
26948 { (exit 1); exit 1; }; }
26951 if test "$GCC" = "yes"
26953 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26954 if test "$gccmajor" -lt "3"
26956 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26957 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26958 { (exit 1); exit 1; }; }
26962 if test -z "$llvm_cv_gnu_make_command"
26964 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26965 echo "$as_me: error: GNU Make required but not found" >&2;}
26966 { (exit 1); exit 1; }; }
26969 { echo "$as_me:$LINENO: result: ok" >&5
26970 echo "${ECHO_T}ok" >&6; }
26974 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26975 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26976 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26977 echo $ECHO_N "(cached) $ECHO_C" >&6
26979 ac_check_lib_save_LIBS=$LIBS
26981 cat >conftest.$ac_ext <<_ACEOF
26984 cat confdefs.h >>conftest.$ac_ext
26985 cat >>conftest.$ac_ext <<_ACEOF
26986 /* end confdefs.h. */
26988 /* Override any GCC internal prototype to avoid an error.
26989 Use char because int might match the return type of a GCC
26990 builtin and then its argument prototype would still apply. */
26998 return elf_begin ();
27003 rm -f conftest.$ac_objext conftest$ac_exeext
27004 if { (ac_try="$ac_link"
27005 case "(($ac_try" in
27006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27007 *) ac_try_echo=$ac_try;;
27009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27010 (eval "$ac_link") 2>conftest.er1
27012 grep -v '^ *+' conftest.er1 >conftest.err
27014 cat conftest.err >&5
27015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016 (exit $ac_status); } &&
27017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27018 { (case "(($ac_try" in
27019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27020 *) ac_try_echo=$ac_try;;
27022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27023 (eval "$ac_try") 2>&5
27025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026 (exit $ac_status); }; } &&
27027 { ac_try='test -s conftest$ac_exeext'
27028 { (case "(($ac_try" in
27029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27030 *) ac_try_echo=$ac_try;;
27032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27033 (eval "$ac_try") 2>&5
27035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036 (exit $ac_status); }; }; then
27037 ac_cv_lib_elf_elf_begin=yes
27039 echo "$as_me: failed program was:" >&5
27040 sed 's/^/| /' conftest.$ac_ext >&5
27042 ac_cv_lib_elf_elf_begin=no
27045 rm -f core conftest.err conftest.$ac_objext \
27046 conftest$ac_exeext conftest.$ac_ext
27047 LIBS=$ac_check_lib_save_LIBS
27049 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27050 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27051 if test $ac_cv_lib_elf_elf_begin = yes; then
27052 cat >>confdefs.h <<_ACEOF
27053 #define HAVE_LIBELF 1
27061 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27062 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27063 if test "${ac_cv_lib_m_sin+set}" = set; then
27064 echo $ECHO_N "(cached) $ECHO_C" >&6
27066 ac_check_lib_save_LIBS=$LIBS
27068 cat >conftest.$ac_ext <<_ACEOF
27071 cat confdefs.h >>conftest.$ac_ext
27072 cat >>conftest.$ac_ext <<_ACEOF
27073 /* end confdefs.h. */
27075 /* Override any GCC internal prototype to avoid an error.
27076 Use char because int might match the return type of a GCC
27077 builtin and then its argument prototype would still apply. */
27090 rm -f conftest.$ac_objext conftest$ac_exeext
27091 if { (ac_try="$ac_link"
27092 case "(($ac_try" in
27093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27094 *) ac_try_echo=$ac_try;;
27096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27097 (eval "$ac_link") 2>conftest.er1
27099 grep -v '^ *+' conftest.er1 >conftest.err
27101 cat conftest.err >&5
27102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103 (exit $ac_status); } &&
27104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27105 { (case "(($ac_try" in
27106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27107 *) ac_try_echo=$ac_try;;
27109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27110 (eval "$ac_try") 2>&5
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); }; } &&
27114 { ac_try='test -s conftest$ac_exeext'
27115 { (case "(($ac_try" in
27116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117 *) ac_try_echo=$ac_try;;
27119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120 (eval "$ac_try") 2>&5
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); }; }; then
27124 ac_cv_lib_m_sin=yes
27126 echo "$as_me: failed program was:" >&5
27127 sed 's/^/| /' conftest.$ac_ext >&5
27132 rm -f core conftest.err conftest.$ac_objext \
27133 conftest$ac_exeext conftest.$ac_ext
27134 LIBS=$ac_check_lib_save_LIBS
27136 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27137 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27138 if test $ac_cv_lib_m_sin = yes; then
27139 cat >>confdefs.h <<_ACEOF
27140 #define HAVE_LIBM 1
27147 if test "$llvm_cv_os_type" = "MingW" ; then
27149 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27150 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27151 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27152 echo $ECHO_N "(cached) $ECHO_C" >&6
27154 ac_check_lib_save_LIBS=$LIBS
27155 LIBS="-limagehlp $LIBS"
27156 cat >conftest.$ac_ext <<_ACEOF
27159 cat confdefs.h >>conftest.$ac_ext
27160 cat >>conftest.$ac_ext <<_ACEOF
27161 /* end confdefs.h. */
27172 rm -f conftest.$ac_objext conftest$ac_exeext
27173 if { (ac_try="$ac_link"
27174 case "(($ac_try" in
27175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27176 *) ac_try_echo=$ac_try;;
27178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27179 (eval "$ac_link") 2>conftest.er1
27181 grep -v '^ *+' conftest.er1 >conftest.err
27183 cat conftest.err >&5
27184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185 (exit $ac_status); } &&
27186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27187 { (case "(($ac_try" in
27188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27189 *) ac_try_echo=$ac_try;;
27191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27192 (eval "$ac_try") 2>&5
27194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195 (exit $ac_status); }; } &&
27196 { ac_try='test -s conftest$ac_exeext'
27197 { (case "(($ac_try" in
27198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27199 *) ac_try_echo=$ac_try;;
27201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27202 (eval "$ac_try") 2>&5
27204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205 (exit $ac_status); }; }; then
27206 ac_cv_lib_imagehlp_main=yes
27208 echo "$as_me: failed program was:" >&5
27209 sed 's/^/| /' conftest.$ac_ext >&5
27211 ac_cv_lib_imagehlp_main=no
27214 rm -f core conftest.err conftest.$ac_objext \
27215 conftest$ac_exeext conftest.$ac_ext
27216 LIBS=$ac_check_lib_save_LIBS
27218 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27219 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27220 if test $ac_cv_lib_imagehlp_main = yes; then
27221 cat >>confdefs.h <<_ACEOF
27222 #define HAVE_LIBIMAGEHLP 1
27225 LIBS="-limagehlp $LIBS"
27230 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27231 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27232 if test "${ac_cv_lib_psapi_main+set}" = set; then
27233 echo $ECHO_N "(cached) $ECHO_C" >&6
27235 ac_check_lib_save_LIBS=$LIBS
27236 LIBS="-lpsapi $LIBS"
27237 cat >conftest.$ac_ext <<_ACEOF
27240 cat confdefs.h >>conftest.$ac_ext
27241 cat >>conftest.$ac_ext <<_ACEOF
27242 /* end confdefs.h. */
27253 rm -f conftest.$ac_objext conftest$ac_exeext
27254 if { (ac_try="$ac_link"
27255 case "(($ac_try" in
27256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27257 *) ac_try_echo=$ac_try;;
27259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27260 (eval "$ac_link") 2>conftest.er1
27262 grep -v '^ *+' conftest.er1 >conftest.err
27264 cat conftest.err >&5
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); } &&
27267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27268 { (case "(($ac_try" in
27269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27270 *) ac_try_echo=$ac_try;;
27272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27273 (eval "$ac_try") 2>&5
27275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276 (exit $ac_status); }; } &&
27277 { ac_try='test -s conftest$ac_exeext'
27278 { (case "(($ac_try" in
27279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27280 *) ac_try_echo=$ac_try;;
27282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27283 (eval "$ac_try") 2>&5
27285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286 (exit $ac_status); }; }; then
27287 ac_cv_lib_psapi_main=yes
27289 echo "$as_me: failed program was:" >&5
27290 sed 's/^/| /' conftest.$ac_ext >&5
27292 ac_cv_lib_psapi_main=no
27295 rm -f core conftest.err conftest.$ac_objext \
27296 conftest$ac_exeext conftest.$ac_ext
27297 LIBS=$ac_check_lib_save_LIBS
27299 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27300 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27301 if test $ac_cv_lib_psapi_main = yes; then
27302 cat >>confdefs.h <<_ACEOF
27303 #define HAVE_LIBPSAPI 1
27306 LIBS="-lpsapi $LIBS"
27312 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27313 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27314 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27315 echo $ECHO_N "(cached) $ECHO_C" >&6
27317 ac_func_search_save_LIBS=$LIBS
27318 cat >conftest.$ac_ext <<_ACEOF
27321 cat confdefs.h >>conftest.$ac_ext
27322 cat >>conftest.$ac_ext <<_ACEOF
27323 /* end confdefs.h. */
27325 /* Override any GCC internal prototype to avoid an error.
27326 Use char because int might match the return type of a GCC
27327 builtin and then its argument prototype would still apply. */
27335 return lt_dlopen ();
27340 for ac_lib in '' ltdl; do
27341 if test -z "$ac_lib"; then
27342 ac_res="none required"
27345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27347 rm -f conftest.$ac_objext conftest$ac_exeext
27348 if { (ac_try="$ac_link"
27349 case "(($ac_try" in
27350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27351 *) ac_try_echo=$ac_try;;
27353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27354 (eval "$ac_link") 2>conftest.er1
27356 grep -v '^ *+' conftest.er1 >conftest.err
27358 cat conftest.err >&5
27359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27360 (exit $ac_status); } &&
27361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27362 { (case "(($ac_try" in
27363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27364 *) ac_try_echo=$ac_try;;
27366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27367 (eval "$ac_try") 2>&5
27369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370 (exit $ac_status); }; } &&
27371 { ac_try='test -s conftest$ac_exeext'
27372 { (case "(($ac_try" in
27373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27374 *) ac_try_echo=$ac_try;;
27376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27377 (eval "$ac_try") 2>&5
27379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380 (exit $ac_status); }; }; then
27381 ac_cv_search_lt_dlopen=$ac_res
27383 echo "$as_me: failed program was:" >&5
27384 sed 's/^/| /' conftest.$ac_ext >&5
27389 rm -f core conftest.err conftest.$ac_objext \
27391 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27395 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27398 ac_cv_search_lt_dlopen=no
27400 rm conftest.$ac_ext
27401 LIBS=$ac_func_search_save_LIBS
27403 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27404 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27405 ac_res=$ac_cv_search_lt_dlopen
27406 if test "$ac_res" != no; then
27407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27409 cat >>confdefs.h <<\_ACEOF
27410 #define HAVE_LT_DLOPEN 1
27414 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27415 not be available" >&5
27416 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27417 not be available" >&2;}
27421 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27422 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27423 if test "${ac_cv_search_dlopen+set}" = set; then
27424 echo $ECHO_N "(cached) $ECHO_C" >&6
27426 ac_func_search_save_LIBS=$LIBS
27427 cat >conftest.$ac_ext <<_ACEOF
27430 cat confdefs.h >>conftest.$ac_ext
27431 cat >>conftest.$ac_ext <<_ACEOF
27432 /* end confdefs.h. */
27434 /* Override any GCC internal prototype to avoid an error.
27435 Use char because int might match the return type of a GCC
27436 builtin and then its argument prototype would still apply. */
27449 for ac_lib in '' dl; do
27450 if test -z "$ac_lib"; then
27451 ac_res="none required"
27454 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27456 rm -f conftest.$ac_objext conftest$ac_exeext
27457 if { (ac_try="$ac_link"
27458 case "(($ac_try" in
27459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27460 *) ac_try_echo=$ac_try;;
27462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27463 (eval "$ac_link") 2>conftest.er1
27465 grep -v '^ *+' conftest.er1 >conftest.err
27467 cat conftest.err >&5
27468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469 (exit $ac_status); } &&
27470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27471 { (case "(($ac_try" in
27472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27473 *) ac_try_echo=$ac_try;;
27475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27476 (eval "$ac_try") 2>&5
27478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479 (exit $ac_status); }; } &&
27480 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27490 ac_cv_search_dlopen=$ac_res
27492 echo "$as_me: failed program was:" >&5
27493 sed 's/^/| /' conftest.$ac_ext >&5
27498 rm -f core conftest.err conftest.$ac_objext \
27500 if test "${ac_cv_search_dlopen+set}" = set; then
27504 if test "${ac_cv_search_dlopen+set}" = set; then
27507 ac_cv_search_dlopen=no
27509 rm conftest.$ac_ext
27510 LIBS=$ac_func_search_save_LIBS
27512 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27513 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27514 ac_res=$ac_cv_search_dlopen
27515 if test "$ac_res" != no; then
27516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27518 cat >>confdefs.h <<\_ACEOF
27519 #define HAVE_DLOPEN 1
27523 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27524 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27528 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27529 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27530 if test "${ac_cv_search_mallinfo+set}" = set; then
27531 echo $ECHO_N "(cached) $ECHO_C" >&6
27533 ac_func_search_save_LIBS=$LIBS
27534 cat >conftest.$ac_ext <<_ACEOF
27537 cat confdefs.h >>conftest.$ac_ext
27538 cat >>conftest.$ac_ext <<_ACEOF
27539 /* end confdefs.h. */
27541 /* Override any GCC internal prototype to avoid an error.
27542 Use char because int might match the return type of a GCC
27543 builtin and then its argument prototype would still apply. */
27551 return mallinfo ();
27556 for ac_lib in '' malloc; do
27557 if test -z "$ac_lib"; then
27558 ac_res="none required"
27561 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27563 rm -f conftest.$ac_objext conftest$ac_exeext
27564 if { (ac_try="$ac_link"
27565 case "(($ac_try" in
27566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27567 *) ac_try_echo=$ac_try;;
27569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27570 (eval "$ac_link") 2>conftest.er1
27572 grep -v '^ *+' conftest.er1 >conftest.err
27574 cat conftest.err >&5
27575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576 (exit $ac_status); } &&
27577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27578 { (case "(($ac_try" in
27579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27580 *) ac_try_echo=$ac_try;;
27582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27583 (eval "$ac_try") 2>&5
27585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586 (exit $ac_status); }; } &&
27587 { ac_try='test -s conftest$ac_exeext'
27588 { (case "(($ac_try" in
27589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27590 *) ac_try_echo=$ac_try;;
27592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27593 (eval "$ac_try") 2>&5
27595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27596 (exit $ac_status); }; }; then
27597 ac_cv_search_mallinfo=$ac_res
27599 echo "$as_me: failed program was:" >&5
27600 sed 's/^/| /' conftest.$ac_ext >&5
27605 rm -f core conftest.err conftest.$ac_objext \
27607 if test "${ac_cv_search_mallinfo+set}" = set; then
27611 if test "${ac_cv_search_mallinfo+set}" = set; then
27614 ac_cv_search_mallinfo=no
27616 rm conftest.$ac_ext
27617 LIBS=$ac_func_search_save_LIBS
27619 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27620 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27621 ac_res=$ac_cv_search_mallinfo
27622 if test "$ac_res" != no; then
27623 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27625 cat >>confdefs.h <<\_ACEOF
27626 #define HAVE_MALLINFO 1
27632 if test "$ENABLE_THREADS" -eq 1 ; then
27634 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27635 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27636 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27637 echo $ECHO_N "(cached) $ECHO_C" >&6
27639 ac_check_lib_save_LIBS=$LIBS
27640 LIBS="-lpthread $LIBS"
27641 cat >conftest.$ac_ext <<_ACEOF
27644 cat confdefs.h >>conftest.$ac_ext
27645 cat >>conftest.$ac_ext <<_ACEOF
27646 /* end confdefs.h. */
27648 /* Override any GCC internal prototype to avoid an error.
27649 Use char because int might match the return type of a GCC
27650 builtin and then its argument prototype would still apply. */
27654 char pthread_mutex_init ();
27658 return pthread_mutex_init ();
27663 rm -f conftest.$ac_objext conftest$ac_exeext
27664 if { (ac_try="$ac_link"
27665 case "(($ac_try" in
27666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27667 *) ac_try_echo=$ac_try;;
27669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27670 (eval "$ac_link") 2>conftest.er1
27672 grep -v '^ *+' conftest.er1 >conftest.err
27674 cat conftest.err >&5
27675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27676 (exit $ac_status); } &&
27677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27678 { (case "(($ac_try" in
27679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27680 *) ac_try_echo=$ac_try;;
27682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27683 (eval "$ac_try") 2>&5
27685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686 (exit $ac_status); }; } &&
27687 { ac_try='test -s conftest$ac_exeext'
27688 { (case "(($ac_try" in
27689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27690 *) ac_try_echo=$ac_try;;
27692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27693 (eval "$ac_try") 2>&5
27695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696 (exit $ac_status); }; }; then
27697 ac_cv_lib_pthread_pthread_mutex_init=yes
27699 echo "$as_me: failed program was:" >&5
27700 sed 's/^/| /' conftest.$ac_ext >&5
27702 ac_cv_lib_pthread_pthread_mutex_init=no
27705 rm -f core conftest.err conftest.$ac_objext \
27706 conftest$ac_exeext conftest.$ac_ext
27707 LIBS=$ac_check_lib_save_LIBS
27709 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27710 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27711 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27712 cat >>confdefs.h <<_ACEOF
27713 #define HAVE_LIBPTHREAD 1
27716 LIBS="-lpthread $LIBS"
27720 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27721 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27722 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27723 echo $ECHO_N "(cached) $ECHO_C" >&6
27725 ac_func_search_save_LIBS=$LIBS
27726 cat >conftest.$ac_ext <<_ACEOF
27729 cat confdefs.h >>conftest.$ac_ext
27730 cat >>conftest.$ac_ext <<_ACEOF
27731 /* end confdefs.h. */
27733 /* Override any GCC internal prototype to avoid an error.
27734 Use char because int might match the return type of a GCC
27735 builtin and then its argument prototype would still apply. */
27739 char pthread_mutex_lock ();
27743 return pthread_mutex_lock ();
27748 for ac_lib in '' pthread; do
27749 if test -z "$ac_lib"; then
27750 ac_res="none required"
27753 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27755 rm -f conftest.$ac_objext conftest$ac_exeext
27756 if { (ac_try="$ac_link"
27757 case "(($ac_try" in
27758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27759 *) ac_try_echo=$ac_try;;
27761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27762 (eval "$ac_link") 2>conftest.er1
27764 grep -v '^ *+' conftest.er1 >conftest.err
27766 cat conftest.err >&5
27767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27768 (exit $ac_status); } &&
27769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27770 { (case "(($ac_try" in
27771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27772 *) ac_try_echo=$ac_try;;
27774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27775 (eval "$ac_try") 2>&5
27777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778 (exit $ac_status); }; } &&
27779 { ac_try='test -s conftest$ac_exeext'
27780 { (case "(($ac_try" in
27781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27782 *) ac_try_echo=$ac_try;;
27784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27785 (eval "$ac_try") 2>&5
27787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788 (exit $ac_status); }; }; then
27789 ac_cv_search_pthread_mutex_lock=$ac_res
27791 echo "$as_me: failed program was:" >&5
27792 sed 's/^/| /' conftest.$ac_ext >&5
27797 rm -f core conftest.err conftest.$ac_objext \
27799 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27803 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27806 ac_cv_search_pthread_mutex_lock=no
27808 rm conftest.$ac_ext
27809 LIBS=$ac_func_search_save_LIBS
27811 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27812 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27813 ac_res=$ac_cv_search_pthread_mutex_lock
27814 if test "$ac_res" != no; then
27815 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27817 cat >>confdefs.h <<\_ACEOF
27818 #define HAVE_PTHREAD_MUTEX_LOCK 1
27826 # Check whether --with-udis86 was given.
27827 if test "${with_udis86+set}" = set; then
27828 withval=$with_udis86;
27833 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27836 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27837 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27838 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27839 echo $ECHO_N "(cached) $ECHO_C" >&6
27841 ac_check_lib_save_LIBS=$LIBS
27842 LIBS="-ludis86 $LIBS"
27843 cat >conftest.$ac_ext <<_ACEOF
27846 cat confdefs.h >>conftest.$ac_ext
27847 cat >>conftest.$ac_ext <<_ACEOF
27848 /* end confdefs.h. */
27850 /* Override any GCC internal prototype to avoid an error.
27851 Use char because int might match the return type of a GCC
27852 builtin and then its argument prototype would still apply. */
27865 rm -f conftest.$ac_objext conftest$ac_exeext
27866 if { (ac_try="$ac_link"
27867 case "(($ac_try" in
27868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27869 *) ac_try_echo=$ac_try;;
27871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27872 (eval "$ac_link") 2>conftest.er1
27874 grep -v '^ *+' conftest.er1 >conftest.err
27876 cat conftest.err >&5
27877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878 (exit $ac_status); } &&
27879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27880 { (case "(($ac_try" in
27881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27882 *) ac_try_echo=$ac_try;;
27884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27885 (eval "$ac_try") 2>&5
27887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888 (exit $ac_status); }; } &&
27889 { ac_try='test -s conftest$ac_exeext'
27890 { (case "(($ac_try" in
27891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27892 *) ac_try_echo=$ac_try;;
27894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27895 (eval "$ac_try") 2>&5
27897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898 (exit $ac_status); }; }; then
27899 ac_cv_lib_udis86_ud_init=yes
27901 echo "$as_me: failed program was:" >&5
27902 sed 's/^/| /' conftest.$ac_ext >&5
27904 ac_cv_lib_udis86_ud_init=no
27907 rm -f core conftest.err conftest.$ac_objext \
27908 conftest$ac_exeext conftest.$ac_ext
27909 LIBS=$ac_check_lib_save_LIBS
27911 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27912 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27913 if test $ac_cv_lib_udis86_ud_init = yes; then
27914 cat >>confdefs.h <<_ACEOF
27915 #define HAVE_LIBUDIS86 1
27918 LIBS="-ludis86 $LIBS"
27922 echo "Error! You need to have libudis86 around."
27934 cat >>confdefs.h <<_ACEOF
27935 #define USE_UDIS86 $USE_UDIS86
27945 ac_header_dirent=no
27946 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27947 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27948 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27949 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27951 echo $ECHO_N "(cached) $ECHO_C" >&6
27953 cat >conftest.$ac_ext <<_ACEOF
27956 cat confdefs.h >>conftest.$ac_ext
27957 cat >>conftest.$ac_ext <<_ACEOF
27958 /* end confdefs.h. */
27959 #include <sys/types.h>
27971 rm -f conftest.$ac_objext
27972 if { (ac_try="$ac_compile"
27973 case "(($ac_try" in
27974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27975 *) ac_try_echo=$ac_try;;
27977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27978 (eval "$ac_compile") 2>conftest.er1
27980 grep -v '^ *+' conftest.er1 >conftest.err
27982 cat conftest.err >&5
27983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984 (exit $ac_status); } &&
27985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27986 { (case "(($ac_try" in
27987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27988 *) ac_try_echo=$ac_try;;
27990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27991 (eval "$ac_try") 2>&5
27993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994 (exit $ac_status); }; } &&
27995 { ac_try='test -s conftest.$ac_objext'
27996 { (case "(($ac_try" in
27997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27998 *) ac_try_echo=$ac_try;;
28000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28001 (eval "$ac_try") 2>&5
28003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004 (exit $ac_status); }; }; then
28005 eval "$as_ac_Header=yes"
28007 echo "$as_me: failed program was:" >&5
28008 sed 's/^/| /' conftest.$ac_ext >&5
28010 eval "$as_ac_Header=no"
28013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28015 ac_res=`eval echo '${'$as_ac_Header'}'`
28016 { echo "$as_me:$LINENO: result: $ac_res" >&5
28017 echo "${ECHO_T}$ac_res" >&6; }
28018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28019 cat >>confdefs.h <<_ACEOF
28020 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28023 ac_header_dirent=$ac_hdr; break
28027 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28028 if test $ac_header_dirent = dirent.h; then
28029 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28030 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28031 if test "${ac_cv_search_opendir+set}" = set; then
28032 echo $ECHO_N "(cached) $ECHO_C" >&6
28034 ac_func_search_save_LIBS=$LIBS
28035 cat >conftest.$ac_ext <<_ACEOF
28038 cat confdefs.h >>conftest.$ac_ext
28039 cat >>conftest.$ac_ext <<_ACEOF
28040 /* end confdefs.h. */
28042 /* Override any GCC internal prototype to avoid an error.
28043 Use char because int might match the return type of a GCC
28044 builtin and then its argument prototype would still apply. */
28057 for ac_lib in '' dir; do
28058 if test -z "$ac_lib"; then
28059 ac_res="none required"
28062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28064 rm -f conftest.$ac_objext conftest$ac_exeext
28065 if { (ac_try="$ac_link"
28066 case "(($ac_try" in
28067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28068 *) ac_try_echo=$ac_try;;
28070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28071 (eval "$ac_link") 2>conftest.er1
28073 grep -v '^ *+' conftest.er1 >conftest.err
28075 cat conftest.err >&5
28076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077 (exit $ac_status); } &&
28078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28079 { (case "(($ac_try" in
28080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28081 *) ac_try_echo=$ac_try;;
28083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28084 (eval "$ac_try") 2>&5
28086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087 (exit $ac_status); }; } &&
28088 { ac_try='test -s conftest$ac_exeext'
28089 { (case "(($ac_try" in
28090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28091 *) ac_try_echo=$ac_try;;
28093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28094 (eval "$ac_try") 2>&5
28096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097 (exit $ac_status); }; }; then
28098 ac_cv_search_opendir=$ac_res
28100 echo "$as_me: failed program was:" >&5
28101 sed 's/^/| /' conftest.$ac_ext >&5
28106 rm -f core conftest.err conftest.$ac_objext \
28108 if test "${ac_cv_search_opendir+set}" = set; then
28112 if test "${ac_cv_search_opendir+set}" = set; then
28115 ac_cv_search_opendir=no
28117 rm conftest.$ac_ext
28118 LIBS=$ac_func_search_save_LIBS
28120 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28121 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28122 ac_res=$ac_cv_search_opendir
28123 if test "$ac_res" != no; then
28124 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28129 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28130 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28131 if test "${ac_cv_search_opendir+set}" = set; then
28132 echo $ECHO_N "(cached) $ECHO_C" >&6
28134 ac_func_search_save_LIBS=$LIBS
28135 cat >conftest.$ac_ext <<_ACEOF
28138 cat confdefs.h >>conftest.$ac_ext
28139 cat >>conftest.$ac_ext <<_ACEOF
28140 /* end confdefs.h. */
28142 /* Override any GCC internal prototype to avoid an error.
28143 Use char because int might match the return type of a GCC
28144 builtin and then its argument prototype would still apply. */
28157 for ac_lib in '' x; do
28158 if test -z "$ac_lib"; then
28159 ac_res="none required"
28162 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28164 rm -f conftest.$ac_objext conftest$ac_exeext
28165 if { (ac_try="$ac_link"
28166 case "(($ac_try" in
28167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28168 *) ac_try_echo=$ac_try;;
28170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28171 (eval "$ac_link") 2>conftest.er1
28173 grep -v '^ *+' conftest.er1 >conftest.err
28175 cat conftest.err >&5
28176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177 (exit $ac_status); } &&
28178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28179 { (case "(($ac_try" in
28180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28181 *) ac_try_echo=$ac_try;;
28183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28184 (eval "$ac_try") 2>&5
28186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28187 (exit $ac_status); }; } &&
28188 { ac_try='test -s conftest$ac_exeext'
28189 { (case "(($ac_try" in
28190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28191 *) ac_try_echo=$ac_try;;
28193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28194 (eval "$ac_try") 2>&5
28196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197 (exit $ac_status); }; }; then
28198 ac_cv_search_opendir=$ac_res
28200 echo "$as_me: failed program was:" >&5
28201 sed 's/^/| /' conftest.$ac_ext >&5
28206 rm -f core conftest.err conftest.$ac_objext \
28208 if test "${ac_cv_search_opendir+set}" = set; then
28212 if test "${ac_cv_search_opendir+set}" = set; then
28215 ac_cv_search_opendir=no
28217 rm conftest.$ac_ext
28218 LIBS=$ac_func_search_save_LIBS
28220 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28221 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28222 ac_res=$ac_cv_search_opendir
28223 if test "$ac_res" != no; then
28224 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28230 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28231 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28232 if test "${ac_cv_header_mmap_anon+set}" = set; then
28233 echo $ECHO_N "(cached) $ECHO_C" >&6
28236 ac_cpp='$CPP $CPPFLAGS'
28237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28241 cat >conftest.$ac_ext <<_ACEOF
28244 cat confdefs.h >>conftest.$ac_ext
28245 cat >>conftest.$ac_ext <<_ACEOF
28246 /* end confdefs.h. */
28247 #include <sys/mman.h>
28248 #include <unistd.h>
28253 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28258 rm -f conftest.$ac_objext
28259 if { (ac_try="$ac_compile"
28260 case "(($ac_try" in
28261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28262 *) ac_try_echo=$ac_try;;
28264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28265 (eval "$ac_compile") 2>conftest.er1
28267 grep -v '^ *+' conftest.er1 >conftest.err
28269 cat conftest.err >&5
28270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271 (exit $ac_status); } &&
28272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28273 { (case "(($ac_try" in
28274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28275 *) ac_try_echo=$ac_try;;
28277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28278 (eval "$ac_try") 2>&5
28280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281 (exit $ac_status); }; } &&
28282 { ac_try='test -s conftest.$ac_objext'
28283 { (case "(($ac_try" in
28284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28285 *) ac_try_echo=$ac_try;;
28287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28288 (eval "$ac_try") 2>&5
28290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28291 (exit $ac_status); }; }; then
28292 ac_cv_header_mmap_anon=yes
28294 echo "$as_me: failed program was:" >&5
28295 sed 's/^/| /' conftest.$ac_ext >&5
28297 ac_cv_header_mmap_anon=no
28300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28302 ac_cpp='$CPP $CPPFLAGS'
28303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28309 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28310 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28311 if test "$ac_cv_header_mmap_anon" = yes; then
28313 cat >>confdefs.h <<\_ACEOF
28314 #define HAVE_MMAP_ANONYMOUS 1
28319 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28320 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28321 if test "${ac_cv_header_stat_broken+set}" = set; then
28322 echo $ECHO_N "(cached) $ECHO_C" >&6
28324 cat >conftest.$ac_ext <<_ACEOF
28327 cat confdefs.h >>conftest.$ac_ext
28328 cat >>conftest.$ac_ext <<_ACEOF
28329 /* end confdefs.h. */
28330 #include <sys/types.h>
28331 #include <sys/stat.h>
28333 #if defined S_ISBLK && defined S_IFDIR
28334 # if S_ISBLK (S_IFDIR)
28339 #if defined S_ISBLK && defined S_IFCHR
28340 # if S_ISBLK (S_IFCHR)
28345 #if defined S_ISLNK && defined S_IFREG
28346 # if S_ISLNK (S_IFREG)
28351 #if defined S_ISSOCK && defined S_IFREG
28352 # if S_ISSOCK (S_IFREG)
28358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28359 $EGREP "You lose" >/dev/null 2>&1; then
28360 ac_cv_header_stat_broken=yes
28362 ac_cv_header_stat_broken=no
28367 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28368 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28369 if test $ac_cv_header_stat_broken = yes; then
28371 cat >>confdefs.h <<\_ACEOF
28372 #define STAT_MACROS_BROKEN 1
28377 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28378 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28379 if test "${ac_cv_header_stdc+set}" = set; then
28380 echo $ECHO_N "(cached) $ECHO_C" >&6
28382 cat >conftest.$ac_ext <<_ACEOF
28385 cat confdefs.h >>conftest.$ac_ext
28386 cat >>conftest.$ac_ext <<_ACEOF
28387 /* end confdefs.h. */
28388 #include <stdlib.h>
28389 #include <stdarg.h>
28390 #include <string.h>
28401 rm -f conftest.$ac_objext
28402 if { (ac_try="$ac_compile"
28403 case "(($ac_try" in
28404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28405 *) ac_try_echo=$ac_try;;
28407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28408 (eval "$ac_compile") 2>conftest.er1
28410 grep -v '^ *+' conftest.er1 >conftest.err
28412 cat conftest.err >&5
28413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414 (exit $ac_status); } &&
28415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28416 { (case "(($ac_try" in
28417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28418 *) ac_try_echo=$ac_try;;
28420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28421 (eval "$ac_try") 2>&5
28423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28424 (exit $ac_status); }; } &&
28425 { ac_try='test -s conftest.$ac_objext'
28426 { (case "(($ac_try" in
28427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28428 *) ac_try_echo=$ac_try;;
28430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28431 (eval "$ac_try") 2>&5
28433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28434 (exit $ac_status); }; }; then
28435 ac_cv_header_stdc=yes
28437 echo "$as_me: failed program was:" >&5
28438 sed 's/^/| /' conftest.$ac_ext >&5
28440 ac_cv_header_stdc=no
28443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28445 if test $ac_cv_header_stdc = yes; then
28446 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28447 cat >conftest.$ac_ext <<_ACEOF
28450 cat confdefs.h >>conftest.$ac_ext
28451 cat >>conftest.$ac_ext <<_ACEOF
28452 /* end confdefs.h. */
28453 #include <string.h>
28456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28457 $EGREP "memchr" >/dev/null 2>&1; then
28460 ac_cv_header_stdc=no
28466 if test $ac_cv_header_stdc = yes; then
28467 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28468 cat >conftest.$ac_ext <<_ACEOF
28471 cat confdefs.h >>conftest.$ac_ext
28472 cat >>conftest.$ac_ext <<_ACEOF
28473 /* end confdefs.h. */
28474 #include <stdlib.h>
28477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28478 $EGREP "free" >/dev/null 2>&1; then
28481 ac_cv_header_stdc=no
28487 if test $ac_cv_header_stdc = yes; then
28488 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28489 if test "$cross_compiling" = yes; then
28492 cat >conftest.$ac_ext <<_ACEOF
28495 cat confdefs.h >>conftest.$ac_ext
28496 cat >>conftest.$ac_ext <<_ACEOF
28497 /* end confdefs.h. */
28499 #include <stdlib.h>
28500 #if ((' ' & 0x0FF) == 0x020)
28501 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28502 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28504 # define ISLOWER(c) \
28505 (('a' <= (c) && (c) <= 'i') \
28506 || ('j' <= (c) && (c) <= 'r') \
28507 || ('s' <= (c) && (c) <= 'z'))
28508 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28516 for (i = 0; i < 256; i++)
28517 if (XOR (islower (i), ISLOWER (i))
28518 || toupper (i) != TOUPPER (i))
28523 rm -f conftest$ac_exeext
28524 if { (ac_try="$ac_link"
28525 case "(($ac_try" in
28526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28527 *) ac_try_echo=$ac_try;;
28529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28530 (eval "$ac_link") 2>&5
28532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28534 { (case "(($ac_try" in
28535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28536 *) ac_try_echo=$ac_try;;
28538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28539 (eval "$ac_try") 2>&5
28541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542 (exit $ac_status); }; }; then
28545 echo "$as_me: program exited with status $ac_status" >&5
28546 echo "$as_me: failed program was:" >&5
28547 sed 's/^/| /' conftest.$ac_ext >&5
28549 ( exit $ac_status )
28550 ac_cv_header_stdc=no
28552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28558 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28559 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28560 if test $ac_cv_header_stdc = yes; then
28562 cat >>confdefs.h <<\_ACEOF
28563 #define STDC_HEADERS 1
28568 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28569 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28570 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28571 echo $ECHO_N "(cached) $ECHO_C" >&6
28573 cat >conftest.$ac_ext <<_ACEOF
28576 cat confdefs.h >>conftest.$ac_ext
28577 cat >>conftest.$ac_ext <<_ACEOF
28578 /* end confdefs.h. */
28579 #include <sys/types.h>
28580 #include <sys/wait.h>
28581 #ifndef WEXITSTATUS
28582 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28585 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28593 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28598 rm -f conftest.$ac_objext
28599 if { (ac_try="$ac_compile"
28600 case "(($ac_try" in
28601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28602 *) ac_try_echo=$ac_try;;
28604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28605 (eval "$ac_compile") 2>conftest.er1
28607 grep -v '^ *+' conftest.er1 >conftest.err
28609 cat conftest.err >&5
28610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28611 (exit $ac_status); } &&
28612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28613 { (case "(($ac_try" in
28614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28615 *) ac_try_echo=$ac_try;;
28617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28618 (eval "$ac_try") 2>&5
28620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28621 (exit $ac_status); }; } &&
28622 { ac_try='test -s conftest.$ac_objext'
28623 { (case "(($ac_try" in
28624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28625 *) ac_try_echo=$ac_try;;
28627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28628 (eval "$ac_try") 2>&5
28630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28631 (exit $ac_status); }; }; then
28632 ac_cv_header_sys_wait_h=yes
28634 echo "$as_me: failed program was:" >&5
28635 sed 's/^/| /' conftest.$ac_ext >&5
28637 ac_cv_header_sys_wait_h=no
28640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28642 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28643 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28644 if test $ac_cv_header_sys_wait_h = yes; then
28646 cat >>confdefs.h <<\_ACEOF
28647 #define HAVE_SYS_WAIT_H 1
28652 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28653 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28654 if test "${ac_cv_header_time+set}" = set; then
28655 echo $ECHO_N "(cached) $ECHO_C" >&6
28657 cat >conftest.$ac_ext <<_ACEOF
28660 cat confdefs.h >>conftest.$ac_ext
28661 cat >>conftest.$ac_ext <<_ACEOF
28662 /* end confdefs.h. */
28663 #include <sys/types.h>
28664 #include <sys/time.h>
28670 if ((struct tm *) 0)
28676 rm -f conftest.$ac_objext
28677 if { (ac_try="$ac_compile"
28678 case "(($ac_try" in
28679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28680 *) ac_try_echo=$ac_try;;
28682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28683 (eval "$ac_compile") 2>conftest.er1
28685 grep -v '^ *+' conftest.er1 >conftest.err
28687 cat conftest.err >&5
28688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689 (exit $ac_status); } &&
28690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28691 { (case "(($ac_try" in
28692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28693 *) ac_try_echo=$ac_try;;
28695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28696 (eval "$ac_try") 2>&5
28698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699 (exit $ac_status); }; } &&
28700 { ac_try='test -s conftest.$ac_objext'
28701 { (case "(($ac_try" in
28702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28703 *) ac_try_echo=$ac_try;;
28705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28706 (eval "$ac_try") 2>&5
28708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28709 (exit $ac_status); }; }; then
28710 ac_cv_header_time=yes
28712 echo "$as_me: failed program was:" >&5
28713 sed 's/^/| /' conftest.$ac_ext >&5
28715 ac_cv_header_time=no
28718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28720 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28721 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28722 if test $ac_cv_header_time = yes; then
28724 cat >>confdefs.h <<\_ACEOF
28725 #define TIME_WITH_SYS_TIME 1
28737 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28741 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28744 echo $ECHO_N "(cached) $ECHO_C" >&6
28746 ac_res=`eval echo '${'$as_ac_Header'}'`
28747 { echo "$as_me:$LINENO: result: $ac_res" >&5
28748 echo "${ECHO_T}$ac_res" >&6; }
28750 # Is the header compilable?
28751 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28752 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28753 cat >conftest.$ac_ext <<_ACEOF
28756 cat confdefs.h >>conftest.$ac_ext
28757 cat >>conftest.$ac_ext <<_ACEOF
28758 /* end confdefs.h. */
28759 $ac_includes_default
28760 #include <$ac_header>
28762 rm -f conftest.$ac_objext
28763 if { (ac_try="$ac_compile"
28764 case "(($ac_try" in
28765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28766 *) ac_try_echo=$ac_try;;
28768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28769 (eval "$ac_compile") 2>conftest.er1
28771 grep -v '^ *+' conftest.er1 >conftest.err
28773 cat conftest.err >&5
28774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775 (exit $ac_status); } &&
28776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28777 { (case "(($ac_try" in
28778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28779 *) ac_try_echo=$ac_try;;
28781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28782 (eval "$ac_try") 2>&5
28784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28785 (exit $ac_status); }; } &&
28786 { ac_try='test -s conftest.$ac_objext'
28787 { (case "(($ac_try" in
28788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28789 *) ac_try_echo=$ac_try;;
28791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28792 (eval "$ac_try") 2>&5
28794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28795 (exit $ac_status); }; }; then
28796 ac_header_compiler=yes
28798 echo "$as_me: failed program was:" >&5
28799 sed 's/^/| /' conftest.$ac_ext >&5
28801 ac_header_compiler=no
28804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28805 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28806 echo "${ECHO_T}$ac_header_compiler" >&6; }
28808 # Is the header present?
28809 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28811 cat >conftest.$ac_ext <<_ACEOF
28814 cat confdefs.h >>conftest.$ac_ext
28815 cat >>conftest.$ac_ext <<_ACEOF
28816 /* end confdefs.h. */
28817 #include <$ac_header>
28819 if { (ac_try="$ac_cpp conftest.$ac_ext"
28820 case "(($ac_try" in
28821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28822 *) ac_try_echo=$ac_try;;
28824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28827 grep -v '^ *+' conftest.er1 >conftest.err
28829 cat conftest.err >&5
28830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28831 (exit $ac_status); } >/dev/null; then
28832 if test -s conftest.err; then
28833 ac_cpp_err=$ac_c_preproc_warn_flag
28834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28841 if test -z "$ac_cpp_err"; then
28842 ac_header_preproc=yes
28844 echo "$as_me: failed program was:" >&5
28845 sed 's/^/| /' conftest.$ac_ext >&5
28847 ac_header_preproc=no
28850 rm -f conftest.err conftest.$ac_ext
28851 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28852 echo "${ECHO_T}$ac_header_preproc" >&6; }
28854 # So? What about this header?
28855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28861 ac_header_preproc=yes
28864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28867 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28871 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28877 ## ----------------------------------- ##
28878 ## Report this to llvmbugs@cs.uiuc.edu ##
28879 ## ----------------------------------- ##
28881 ) | sed "s/^/$as_me: WARNING: /" >&2
28884 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28887 echo $ECHO_N "(cached) $ECHO_C" >&6
28889 eval "$as_ac_Header=\$ac_header_preproc"
28891 ac_res=`eval echo '${'$as_ac_Header'}'`
28892 { echo "$as_me:$LINENO: result: $ac_res" >&5
28893 echo "${ECHO_T}$ac_res" >&6; }
28896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28897 cat >>confdefs.h <<_ACEOF
28898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28911 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28918 echo $ECHO_N "(cached) $ECHO_C" >&6
28920 ac_res=`eval echo '${'$as_ac_Header'}'`
28921 { echo "$as_me:$LINENO: result: $ac_res" >&5
28922 echo "${ECHO_T}$ac_res" >&6; }
28924 # Is the header compilable?
28925 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28927 cat >conftest.$ac_ext <<_ACEOF
28930 cat confdefs.h >>conftest.$ac_ext
28931 cat >>conftest.$ac_ext <<_ACEOF
28932 /* end confdefs.h. */
28933 $ac_includes_default
28934 #include <$ac_header>
28936 rm -f conftest.$ac_objext
28937 if { (ac_try="$ac_compile"
28938 case "(($ac_try" in
28939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28940 *) ac_try_echo=$ac_try;;
28942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28943 (eval "$ac_compile") 2>conftest.er1
28945 grep -v '^ *+' conftest.er1 >conftest.err
28947 cat conftest.err >&5
28948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949 (exit $ac_status); } &&
28950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28951 { (case "(($ac_try" in
28952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28953 *) ac_try_echo=$ac_try;;
28955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28956 (eval "$ac_try") 2>&5
28958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959 (exit $ac_status); }; } &&
28960 { ac_try='test -s conftest.$ac_objext'
28961 { (case "(($ac_try" in
28962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28963 *) ac_try_echo=$ac_try;;
28965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28966 (eval "$ac_try") 2>&5
28968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969 (exit $ac_status); }; }; then
28970 ac_header_compiler=yes
28972 echo "$as_me: failed program was:" >&5
28973 sed 's/^/| /' conftest.$ac_ext >&5
28975 ac_header_compiler=no
28978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28980 echo "${ECHO_T}$ac_header_compiler" >&6; }
28982 # Is the header present?
28983 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28985 cat >conftest.$ac_ext <<_ACEOF
28988 cat confdefs.h >>conftest.$ac_ext
28989 cat >>conftest.$ac_ext <<_ACEOF
28990 /* end confdefs.h. */
28991 #include <$ac_header>
28993 if { (ac_try="$ac_cpp conftest.$ac_ext"
28994 case "(($ac_try" in
28995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28996 *) ac_try_echo=$ac_try;;
28998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29001 grep -v '^ *+' conftest.er1 >conftest.err
29003 cat conftest.err >&5
29004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005 (exit $ac_status); } >/dev/null; then
29006 if test -s conftest.err; then
29007 ac_cpp_err=$ac_c_preproc_warn_flag
29008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29015 if test -z "$ac_cpp_err"; then
29016 ac_header_preproc=yes
29018 echo "$as_me: failed program was:" >&5
29019 sed 's/^/| /' conftest.$ac_ext >&5
29021 ac_header_preproc=no
29024 rm -f conftest.err conftest.$ac_ext
29025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29026 echo "${ECHO_T}$ac_header_preproc" >&6; }
29028 # So? What about this header?
29029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29035 ac_header_preproc=yes
29038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29045 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29051 ## ----------------------------------- ##
29052 ## Report this to llvmbugs@cs.uiuc.edu ##
29053 ## ----------------------------------- ##
29055 ) | sed "s/^/$as_me: WARNING: /" >&2
29058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29061 echo $ECHO_N "(cached) $ECHO_C" >&6
29063 eval "$as_ac_Header=\$ac_header_preproc"
29065 ac_res=`eval echo '${'$as_ac_Header'}'`
29066 { echo "$as_me:$LINENO: result: $ac_res" >&5
29067 echo "${ECHO_T}$ac_res" >&6; }
29070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29071 cat >>confdefs.h <<_ACEOF
29072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29080 for ac_header in windows.h
29082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29087 echo $ECHO_N "(cached) $ECHO_C" >&6
29089 ac_res=`eval echo '${'$as_ac_Header'}'`
29090 { echo "$as_me:$LINENO: result: $ac_res" >&5
29091 echo "${ECHO_T}$ac_res" >&6; }
29093 # Is the header compilable?
29094 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29096 cat >conftest.$ac_ext <<_ACEOF
29099 cat confdefs.h >>conftest.$ac_ext
29100 cat >>conftest.$ac_ext <<_ACEOF
29101 /* end confdefs.h. */
29102 $ac_includes_default
29103 #include <$ac_header>
29105 rm -f conftest.$ac_objext
29106 if { (ac_try="$ac_compile"
29107 case "(($ac_try" in
29108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29109 *) ac_try_echo=$ac_try;;
29111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29112 (eval "$ac_compile") 2>conftest.er1
29114 grep -v '^ *+' conftest.er1 >conftest.err
29116 cat conftest.err >&5
29117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118 (exit $ac_status); } &&
29119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29120 { (case "(($ac_try" in
29121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29122 *) ac_try_echo=$ac_try;;
29124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29125 (eval "$ac_try") 2>&5
29127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29128 (exit $ac_status); }; } &&
29129 { ac_try='test -s conftest.$ac_objext'
29130 { (case "(($ac_try" in
29131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29132 *) ac_try_echo=$ac_try;;
29134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29135 (eval "$ac_try") 2>&5
29137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138 (exit $ac_status); }; }; then
29139 ac_header_compiler=yes
29141 echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29144 ac_header_compiler=no
29147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29148 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29149 echo "${ECHO_T}$ac_header_compiler" >&6; }
29151 # Is the header present?
29152 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29154 cat >conftest.$ac_ext <<_ACEOF
29157 cat confdefs.h >>conftest.$ac_ext
29158 cat >>conftest.$ac_ext <<_ACEOF
29159 /* end confdefs.h. */
29160 #include <$ac_header>
29162 if { (ac_try="$ac_cpp conftest.$ac_ext"
29163 case "(($ac_try" in
29164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29165 *) ac_try_echo=$ac_try;;
29167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29170 grep -v '^ *+' conftest.er1 >conftest.err
29172 cat conftest.err >&5
29173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174 (exit $ac_status); } >/dev/null; then
29175 if test -s conftest.err; then
29176 ac_cpp_err=$ac_c_preproc_warn_flag
29177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29184 if test -z "$ac_cpp_err"; then
29185 ac_header_preproc=yes
29187 echo "$as_me: failed program was:" >&5
29188 sed 's/^/| /' conftest.$ac_ext >&5
29190 ac_header_preproc=no
29193 rm -f conftest.err conftest.$ac_ext
29194 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29195 echo "${ECHO_T}$ac_header_preproc" >&6; }
29197 # So? What about this header?
29198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29204 ac_header_preproc=yes
29207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29214 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29220 ## ----------------------------------- ##
29221 ## Report this to llvmbugs@cs.uiuc.edu ##
29222 ## ----------------------------------- ##
29224 ) | sed "s/^/$as_me: WARNING: /" >&2
29227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29230 echo $ECHO_N "(cached) $ECHO_C" >&6
29232 eval "$as_ac_Header=\$ac_header_preproc"
29234 ac_res=`eval echo '${'$as_ac_Header'}'`
29235 { echo "$as_me:$LINENO: result: $ac_res" >&5
29236 echo "${ECHO_T}$ac_res" >&6; }
29239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29240 cat >>confdefs.h <<_ACEOF
29241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29252 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29259 echo $ECHO_N "(cached) $ECHO_C" >&6
29261 ac_res=`eval echo '${'$as_ac_Header'}'`
29262 { echo "$as_me:$LINENO: result: $ac_res" >&5
29263 echo "${ECHO_T}$ac_res" >&6; }
29265 # Is the header compilable?
29266 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29268 cat >conftest.$ac_ext <<_ACEOF
29271 cat confdefs.h >>conftest.$ac_ext
29272 cat >>conftest.$ac_ext <<_ACEOF
29273 /* end confdefs.h. */
29274 $ac_includes_default
29275 #include <$ac_header>
29277 rm -f conftest.$ac_objext
29278 if { (ac_try="$ac_compile"
29279 case "(($ac_try" in
29280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29281 *) ac_try_echo=$ac_try;;
29283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29284 (eval "$ac_compile") 2>conftest.er1
29286 grep -v '^ *+' conftest.er1 >conftest.err
29288 cat conftest.err >&5
29289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290 (exit $ac_status); } &&
29291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
29299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29300 (exit $ac_status); }; } &&
29301 { ac_try='test -s conftest.$ac_objext'
29302 { (case "(($ac_try" in
29303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29304 *) ac_try_echo=$ac_try;;
29306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29307 (eval "$ac_try") 2>&5
29309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310 (exit $ac_status); }; }; then
29311 ac_header_compiler=yes
29313 echo "$as_me: failed program was:" >&5
29314 sed 's/^/| /' conftest.$ac_ext >&5
29316 ac_header_compiler=no
29319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29321 echo "${ECHO_T}$ac_header_compiler" >&6; }
29323 # Is the header present?
29324 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29326 cat >conftest.$ac_ext <<_ACEOF
29329 cat confdefs.h >>conftest.$ac_ext
29330 cat >>conftest.$ac_ext <<_ACEOF
29331 /* end confdefs.h. */
29332 #include <$ac_header>
29334 if { (ac_try="$ac_cpp conftest.$ac_ext"
29335 case "(($ac_try" in
29336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29337 *) ac_try_echo=$ac_try;;
29339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29342 grep -v '^ *+' conftest.er1 >conftest.err
29344 cat conftest.err >&5
29345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29346 (exit $ac_status); } >/dev/null; then
29347 if test -s conftest.err; then
29348 ac_cpp_err=$ac_c_preproc_warn_flag
29349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29356 if test -z "$ac_cpp_err"; then
29357 ac_header_preproc=yes
29359 echo "$as_me: failed program was:" >&5
29360 sed 's/^/| /' conftest.$ac_ext >&5
29362 ac_header_preproc=no
29365 rm -f conftest.err conftest.$ac_ext
29366 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29367 echo "${ECHO_T}$ac_header_preproc" >&6; }
29369 # So? What about this header?
29370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29372 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29375 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29376 ac_header_preproc=yes
29379 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29380 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29381 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29382 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29383 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29384 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29385 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29386 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29389 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29390 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29392 ## ----------------------------------- ##
29393 ## Report this to llvmbugs@cs.uiuc.edu ##
29394 ## ----------------------------------- ##
29396 ) | sed "s/^/$as_me: WARNING: /" >&2
29399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29402 echo $ECHO_N "(cached) $ECHO_C" >&6
29404 eval "$as_ac_Header=\$ac_header_preproc"
29406 ac_res=`eval echo '${'$as_ac_Header'}'`
29407 { echo "$as_me:$LINENO: result: $ac_res" >&5
29408 echo "${ECHO_T}$ac_res" >&6; }
29411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29412 cat >>confdefs.h <<_ACEOF
29413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29423 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29430 echo $ECHO_N "(cached) $ECHO_C" >&6
29432 ac_res=`eval echo '${'$as_ac_Header'}'`
29433 { echo "$as_me:$LINENO: result: $ac_res" >&5
29434 echo "${ECHO_T}$ac_res" >&6; }
29436 # Is the header compilable?
29437 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29439 cat >conftest.$ac_ext <<_ACEOF
29442 cat confdefs.h >>conftest.$ac_ext
29443 cat >>conftest.$ac_ext <<_ACEOF
29444 /* end confdefs.h. */
29445 $ac_includes_default
29446 #include <$ac_header>
29448 rm -f conftest.$ac_objext
29449 if { (ac_try="$ac_compile"
29450 case "(($ac_try" in
29451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29452 *) ac_try_echo=$ac_try;;
29454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29455 (eval "$ac_compile") 2>conftest.er1
29457 grep -v '^ *+' conftest.er1 >conftest.err
29459 cat conftest.err >&5
29460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461 (exit $ac_status); } &&
29462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29463 { (case "(($ac_try" in
29464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29465 *) ac_try_echo=$ac_try;;
29467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29468 (eval "$ac_try") 2>&5
29470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471 (exit $ac_status); }; } &&
29472 { ac_try='test -s conftest.$ac_objext'
29473 { (case "(($ac_try" in
29474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29475 *) ac_try_echo=$ac_try;;
29477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29478 (eval "$ac_try") 2>&5
29480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481 (exit $ac_status); }; }; then
29482 ac_header_compiler=yes
29484 echo "$as_me: failed program was:" >&5
29485 sed 's/^/| /' conftest.$ac_ext >&5
29487 ac_header_compiler=no
29490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29492 echo "${ECHO_T}$ac_header_compiler" >&6; }
29494 # Is the header present?
29495 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29497 cat >conftest.$ac_ext <<_ACEOF
29500 cat confdefs.h >>conftest.$ac_ext
29501 cat >>conftest.$ac_ext <<_ACEOF
29502 /* end confdefs.h. */
29503 #include <$ac_header>
29505 if { (ac_try="$ac_cpp conftest.$ac_ext"
29506 case "(($ac_try" in
29507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29508 *) ac_try_echo=$ac_try;;
29510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29513 grep -v '^ *+' conftest.er1 >conftest.err
29515 cat conftest.err >&5
29516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); } >/dev/null; then
29518 if test -s conftest.err; then
29519 ac_cpp_err=$ac_c_preproc_warn_flag
29520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29527 if test -z "$ac_cpp_err"; then
29528 ac_header_preproc=yes
29530 echo "$as_me: failed program was:" >&5
29531 sed 's/^/| /' conftest.$ac_ext >&5
29533 ac_header_preproc=no
29536 rm -f conftest.err conftest.$ac_ext
29537 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29538 echo "${ECHO_T}$ac_header_preproc" >&6; }
29540 # So? What about this header?
29541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29546 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29547 ac_header_preproc=yes
29550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29553 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29554 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29555 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29556 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29557 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29560 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29561 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29563 ## ----------------------------------- ##
29564 ## Report this to llvmbugs@cs.uiuc.edu ##
29565 ## ----------------------------------- ##
29567 ) | sed "s/^/$as_me: WARNING: /" >&2
29570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29573 echo $ECHO_N "(cached) $ECHO_C" >&6
29575 eval "$as_ac_Header=\$ac_header_preproc"
29577 ac_res=`eval echo '${'$as_ac_Header'}'`
29578 { echo "$as_me:$LINENO: result: $ac_res" >&5
29579 echo "${ECHO_T}$ac_res" >&6; }
29582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29583 cat >>confdefs.h <<_ACEOF
29584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29591 if test "$ENABLE_THREADS" -eq 1 ; then
29593 for ac_header in pthread.h
29595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29600 echo $ECHO_N "(cached) $ECHO_C" >&6
29602 ac_res=`eval echo '${'$as_ac_Header'}'`
29603 { echo "$as_me:$LINENO: result: $ac_res" >&5
29604 echo "${ECHO_T}$ac_res" >&6; }
29606 # Is the header compilable?
29607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29609 cat >conftest.$ac_ext <<_ACEOF
29612 cat confdefs.h >>conftest.$ac_ext
29613 cat >>conftest.$ac_ext <<_ACEOF
29614 /* end confdefs.h. */
29615 $ac_includes_default
29616 #include <$ac_header>
29618 rm -f conftest.$ac_objext
29619 if { (ac_try="$ac_compile"
29620 case "(($ac_try" in
29621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29622 *) ac_try_echo=$ac_try;;
29624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29625 (eval "$ac_compile") 2>conftest.er1
29627 grep -v '^ *+' conftest.er1 >conftest.err
29629 cat conftest.err >&5
29630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29631 (exit $ac_status); } &&
29632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29633 { (case "(($ac_try" in
29634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29635 *) ac_try_echo=$ac_try;;
29637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29638 (eval "$ac_try") 2>&5
29640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29641 (exit $ac_status); }; } &&
29642 { ac_try='test -s conftest.$ac_objext'
29643 { (case "(($ac_try" in
29644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29645 *) ac_try_echo=$ac_try;;
29647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29648 (eval "$ac_try") 2>&5
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651 (exit $ac_status); }; }; then
29652 ac_header_compiler=yes
29654 echo "$as_me: failed program was:" >&5
29655 sed 's/^/| /' conftest.$ac_ext >&5
29657 ac_header_compiler=no
29660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29662 echo "${ECHO_T}$ac_header_compiler" >&6; }
29664 # Is the header present?
29665 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29666 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29667 cat >conftest.$ac_ext <<_ACEOF
29670 cat confdefs.h >>conftest.$ac_ext
29671 cat >>conftest.$ac_ext <<_ACEOF
29672 /* end confdefs.h. */
29673 #include <$ac_header>
29675 if { (ac_try="$ac_cpp conftest.$ac_ext"
29676 case "(($ac_try" in
29677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29678 *) ac_try_echo=$ac_try;;
29680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29683 grep -v '^ *+' conftest.er1 >conftest.err
29685 cat conftest.err >&5
29686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29687 (exit $ac_status); } >/dev/null; then
29688 if test -s conftest.err; then
29689 ac_cpp_err=$ac_c_preproc_warn_flag
29690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29697 if test -z "$ac_cpp_err"; then
29698 ac_header_preproc=yes
29700 echo "$as_me: failed program was:" >&5
29701 sed 's/^/| /' conftest.$ac_ext >&5
29703 ac_header_preproc=no
29706 rm -f conftest.err conftest.$ac_ext
29707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29708 echo "${ECHO_T}$ac_header_preproc" >&6; }
29710 # So? What about this header?
29711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29717 ac_header_preproc=yes
29720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29727 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29733 ## ----------------------------------- ##
29734 ## Report this to llvmbugs@cs.uiuc.edu ##
29735 ## ----------------------------------- ##
29737 ) | sed "s/^/$as_me: WARNING: /" >&2
29740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29743 echo $ECHO_N "(cached) $ECHO_C" >&6
29745 eval "$as_ac_Header=\$ac_header_preproc"
29747 ac_res=`eval echo '${'$as_ac_Header'}'`
29748 { echo "$as_me:$LINENO: result: $ac_res" >&5
29749 echo "${ECHO_T}$ac_res" >&6; }
29752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29753 cat >>confdefs.h <<_ACEOF
29754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29772 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29773 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29774 if test "${ac_cv_huge_val_sanity+set}" = set; then
29775 echo $ECHO_N "(cached) $ECHO_C" >&6
29779 ac_cpp='$CXXCPP $CPPFLAGS'
29780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29785 if test "$cross_compiling" = yes; then
29786 ac_cv_huge_val_sanity=yes
29788 cat >conftest.$ac_ext <<_ACEOF
29791 cat confdefs.h >>conftest.$ac_ext
29792 cat >>conftest.$ac_ext <<_ACEOF
29793 /* end confdefs.h. */
29798 double x = HUGE_VAL; return x != x;
29803 rm -f conftest$ac_exeext
29804 if { (ac_try="$ac_link"
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_link") 2>&5
29812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29814 { (case "(($ac_try" in
29815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29816 *) ac_try_echo=$ac_try;;
29818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29819 (eval "$ac_try") 2>&5
29821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822 (exit $ac_status); }; }; then
29823 ac_cv_huge_val_sanity=yes
29825 echo "$as_me: program exited with status $ac_status" >&5
29826 echo "$as_me: failed program was:" >&5
29827 sed 's/^/| /' conftest.$ac_ext >&5
29829 ( exit $ac_status )
29830 ac_cv_huge_val_sanity=no
29832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29837 ac_cpp='$CPP $CPPFLAGS'
29838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29844 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29845 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29846 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29849 { echo "$as_me:$LINENO: checking for pid_t" >&5
29850 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29851 if test "${ac_cv_type_pid_t+set}" = set; then
29852 echo $ECHO_N "(cached) $ECHO_C" >&6
29854 cat >conftest.$ac_ext <<_ACEOF
29857 cat confdefs.h >>conftest.$ac_ext
29858 cat >>conftest.$ac_ext <<_ACEOF
29859 /* end confdefs.h. */
29860 $ac_includes_default
29861 typedef pid_t ac__type_new_;
29865 if ((ac__type_new_ *) 0)
29867 if (sizeof (ac__type_new_))
29873 rm -f conftest.$ac_objext
29874 if { (ac_try="$ac_compile"
29875 case "(($ac_try" in
29876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29877 *) ac_try_echo=$ac_try;;
29879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29880 (eval "$ac_compile") 2>conftest.er1
29882 grep -v '^ *+' conftest.er1 >conftest.err
29884 cat conftest.err >&5
29885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886 (exit $ac_status); } &&
29887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29888 { (case "(($ac_try" in
29889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29890 *) ac_try_echo=$ac_try;;
29892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29893 (eval "$ac_try") 2>&5
29895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896 (exit $ac_status); }; } &&
29897 { ac_try='test -s conftest.$ac_objext'
29898 { (case "(($ac_try" in
29899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29900 *) ac_try_echo=$ac_try;;
29902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29903 (eval "$ac_try") 2>&5
29905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29906 (exit $ac_status); }; }; then
29907 ac_cv_type_pid_t=yes
29909 echo "$as_me: failed program was:" >&5
29910 sed 's/^/| /' conftest.$ac_ext >&5
29912 ac_cv_type_pid_t=no
29915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29917 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29918 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29919 if test $ac_cv_type_pid_t = yes; then
29923 cat >>confdefs.h <<_ACEOF
29929 { echo "$as_me:$LINENO: checking for size_t" >&5
29930 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29931 if test "${ac_cv_type_size_t+set}" = set; then
29932 echo $ECHO_N "(cached) $ECHO_C" >&6
29934 cat >conftest.$ac_ext <<_ACEOF
29937 cat confdefs.h >>conftest.$ac_ext
29938 cat >>conftest.$ac_ext <<_ACEOF
29939 /* end confdefs.h. */
29940 $ac_includes_default
29941 typedef size_t ac__type_new_;
29945 if ((ac__type_new_ *) 0)
29947 if (sizeof (ac__type_new_))
29953 rm -f conftest.$ac_objext
29954 if { (ac_try="$ac_compile"
29955 case "(($ac_try" in
29956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29957 *) ac_try_echo=$ac_try;;
29959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29960 (eval "$ac_compile") 2>conftest.er1
29962 grep -v '^ *+' conftest.er1 >conftest.err
29964 cat conftest.err >&5
29965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29966 (exit $ac_status); } &&
29967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29968 { (case "(($ac_try" in
29969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29970 *) ac_try_echo=$ac_try;;
29972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29973 (eval "$ac_try") 2>&5
29975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29976 (exit $ac_status); }; } &&
29977 { ac_try='test -s conftest.$ac_objext'
29978 { (case "(($ac_try" in
29979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29980 *) ac_try_echo=$ac_try;;
29982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29983 (eval "$ac_try") 2>&5
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); }; }; then
29987 ac_cv_type_size_t=yes
29989 echo "$as_me: failed program was:" >&5
29990 sed 's/^/| /' conftest.$ac_ext >&5
29992 ac_cv_type_size_t=no
29995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29997 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29998 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29999 if test $ac_cv_type_size_t = yes; then
30003 cat >>confdefs.h <<_ACEOF
30004 #define size_t unsigned int
30009 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30010 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30011 if test "${ac_cv_type_signal+set}" = set; then
30012 echo $ECHO_N "(cached) $ECHO_C" >&6
30014 cat >conftest.$ac_ext <<_ACEOF
30017 cat confdefs.h >>conftest.$ac_ext
30018 cat >>conftest.$ac_ext <<_ACEOF
30019 /* end confdefs.h. */
30020 #include <sys/types.h>
30021 #include <signal.h>
30026 return *(signal (0, 0)) (0) == 1;
30031 rm -f conftest.$ac_objext
30032 if { (ac_try="$ac_compile"
30033 case "(($ac_try" in
30034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30035 *) ac_try_echo=$ac_try;;
30037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30038 (eval "$ac_compile") 2>conftest.er1
30040 grep -v '^ *+' conftest.er1 >conftest.err
30042 cat conftest.err >&5
30043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044 (exit $ac_status); } &&
30045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30046 { (case "(($ac_try" in
30047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30048 *) ac_try_echo=$ac_try;;
30050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30051 (eval "$ac_try") 2>&5
30053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30054 (exit $ac_status); }; } &&
30055 { ac_try='test -s conftest.$ac_objext'
30056 { (case "(($ac_try" in
30057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30058 *) ac_try_echo=$ac_try;;
30060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30061 (eval "$ac_try") 2>&5
30063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30064 (exit $ac_status); }; }; then
30065 ac_cv_type_signal=int
30067 echo "$as_me: failed program was:" >&5
30068 sed 's/^/| /' conftest.$ac_ext >&5
30070 ac_cv_type_signal=void
30073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30075 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30076 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30078 cat >>confdefs.h <<_ACEOF
30079 #define RETSIGTYPE $ac_cv_type_signal
30083 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30084 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30085 if test "${ac_cv_struct_tm+set}" = set; then
30086 echo $ECHO_N "(cached) $ECHO_C" >&6
30088 cat >conftest.$ac_ext <<_ACEOF
30091 cat confdefs.h >>conftest.$ac_ext
30092 cat >>conftest.$ac_ext <<_ACEOF
30093 /* end confdefs.h. */
30094 #include <sys/types.h>
30100 struct tm *tp; tp->tm_sec;
30105 rm -f conftest.$ac_objext
30106 if { (ac_try="$ac_compile"
30107 case "(($ac_try" in
30108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30109 *) ac_try_echo=$ac_try;;
30111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30112 (eval "$ac_compile") 2>conftest.er1
30114 grep -v '^ *+' conftest.er1 >conftest.err
30116 cat conftest.err >&5
30117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30118 (exit $ac_status); } &&
30119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30120 { (case "(($ac_try" in
30121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30122 *) ac_try_echo=$ac_try;;
30124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30125 (eval "$ac_try") 2>&5
30127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30128 (exit $ac_status); }; } &&
30129 { ac_try='test -s conftest.$ac_objext'
30130 { (case "(($ac_try" in
30131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30132 *) ac_try_echo=$ac_try;;
30134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30135 (eval "$ac_try") 2>&5
30137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138 (exit $ac_status); }; }; then
30139 ac_cv_struct_tm=time.h
30141 echo "$as_me: failed program was:" >&5
30142 sed 's/^/| /' conftest.$ac_ext >&5
30144 ac_cv_struct_tm=sys/time.h
30147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30149 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30150 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30151 if test $ac_cv_struct_tm = sys/time.h; then
30153 cat >>confdefs.h <<\_ACEOF
30154 #define TM_IN_SYS_TIME 1
30159 { echo "$as_me:$LINENO: checking for int64_t" >&5
30160 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30161 if test "${ac_cv_type_int64_t+set}" = set; then
30162 echo $ECHO_N "(cached) $ECHO_C" >&6
30164 cat >conftest.$ac_ext <<_ACEOF
30167 cat confdefs.h >>conftest.$ac_ext
30168 cat >>conftest.$ac_ext <<_ACEOF
30169 /* end confdefs.h. */
30170 $ac_includes_default
30171 typedef int64_t ac__type_new_;
30175 if ((ac__type_new_ *) 0)
30177 if (sizeof (ac__type_new_))
30183 rm -f conftest.$ac_objext
30184 if { (ac_try="$ac_compile"
30185 case "(($ac_try" in
30186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30187 *) ac_try_echo=$ac_try;;
30189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30190 (eval "$ac_compile") 2>conftest.er1
30192 grep -v '^ *+' conftest.er1 >conftest.err
30194 cat conftest.err >&5
30195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196 (exit $ac_status); } &&
30197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30198 { (case "(($ac_try" in
30199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30200 *) ac_try_echo=$ac_try;;
30202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30203 (eval "$ac_try") 2>&5
30205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); }; } &&
30207 { ac_try='test -s conftest.$ac_objext'
30208 { (case "(($ac_try" in
30209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30210 *) ac_try_echo=$ac_try;;
30212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30213 (eval "$ac_try") 2>&5
30215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216 (exit $ac_status); }; }; then
30217 ac_cv_type_int64_t=yes
30219 echo "$as_me: failed program was:" >&5
30220 sed 's/^/| /' conftest.$ac_ext >&5
30222 ac_cv_type_int64_t=no
30225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30227 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30228 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30229 if test $ac_cv_type_int64_t = yes; then
30231 cat >>confdefs.h <<_ACEOF
30232 #define HAVE_INT64_T 1
30237 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30238 echo "$as_me: error: Type int64_t required but not found" >&2;}
30239 { (exit 1); exit 1; }; }
30242 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30243 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30244 if test "${ac_cv_type_uint64_t+set}" = set; then
30245 echo $ECHO_N "(cached) $ECHO_C" >&6
30247 cat >conftest.$ac_ext <<_ACEOF
30250 cat confdefs.h >>conftest.$ac_ext
30251 cat >>conftest.$ac_ext <<_ACEOF
30252 /* end confdefs.h. */
30253 $ac_includes_default
30254 typedef uint64_t ac__type_new_;
30258 if ((ac__type_new_ *) 0)
30260 if (sizeof (ac__type_new_))
30266 rm -f conftest.$ac_objext
30267 if { (ac_try="$ac_compile"
30268 case "(($ac_try" in
30269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30270 *) ac_try_echo=$ac_try;;
30272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30273 (eval "$ac_compile") 2>conftest.er1
30275 grep -v '^ *+' conftest.er1 >conftest.err
30277 cat conftest.err >&5
30278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30279 (exit $ac_status); } &&
30280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30281 { (case "(($ac_try" in
30282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30283 *) ac_try_echo=$ac_try;;
30285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30286 (eval "$ac_try") 2>&5
30288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289 (exit $ac_status); }; } &&
30290 { ac_try='test -s conftest.$ac_objext'
30291 { (case "(($ac_try" in
30292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30293 *) ac_try_echo=$ac_try;;
30295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30296 (eval "$ac_try") 2>&5
30298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299 (exit $ac_status); }; }; then
30300 ac_cv_type_uint64_t=yes
30302 echo "$as_me: failed program was:" >&5
30303 sed 's/^/| /' conftest.$ac_ext >&5
30305 ac_cv_type_uint64_t=no
30308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30310 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30311 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30312 if test $ac_cv_type_uint64_t = yes; then
30314 cat >>confdefs.h <<_ACEOF
30315 #define HAVE_UINT64_T 1
30320 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30321 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30322 if test "${ac_cv_type_u_int64_t+set}" = set; then
30323 echo $ECHO_N "(cached) $ECHO_C" >&6
30325 cat >conftest.$ac_ext <<_ACEOF
30328 cat confdefs.h >>conftest.$ac_ext
30329 cat >>conftest.$ac_ext <<_ACEOF
30330 /* end confdefs.h. */
30331 $ac_includes_default
30332 typedef u_int64_t ac__type_new_;
30336 if ((ac__type_new_ *) 0)
30338 if (sizeof (ac__type_new_))
30344 rm -f conftest.$ac_objext
30345 if { (ac_try="$ac_compile"
30346 case "(($ac_try" in
30347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30348 *) ac_try_echo=$ac_try;;
30350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30351 (eval "$ac_compile") 2>conftest.er1
30353 grep -v '^ *+' conftest.er1 >conftest.err
30355 cat conftest.err >&5
30356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357 (exit $ac_status); } &&
30358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30359 { (case "(($ac_try" in
30360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30361 *) ac_try_echo=$ac_try;;
30363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30364 (eval "$ac_try") 2>&5
30366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367 (exit $ac_status); }; } &&
30368 { ac_try='test -s conftest.$ac_objext'
30369 { (case "(($ac_try" in
30370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30371 *) ac_try_echo=$ac_try;;
30373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30374 (eval "$ac_try") 2>&5
30376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377 (exit $ac_status); }; }; then
30378 ac_cv_type_u_int64_t=yes
30380 echo "$as_me: failed program was:" >&5
30381 sed 's/^/| /' conftest.$ac_ext >&5
30383 ac_cv_type_u_int64_t=no
30386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30388 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30389 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30390 if test $ac_cv_type_u_int64_t = yes; then
30392 cat >>confdefs.h <<_ACEOF
30393 #define HAVE_U_INT64_T 1
30398 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30399 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30400 { (exit 1); exit 1; }; }
30414 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30417 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30419 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30420 echo $ECHO_N "(cached) $ECHO_C" >&6
30422 cat >conftest.$ac_ext <<_ACEOF
30425 cat confdefs.h >>conftest.$ac_ext
30426 cat >>conftest.$ac_ext <<_ACEOF
30427 /* end confdefs.h. */
30428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30430 #define $ac_func innocuous_$ac_func
30432 /* System header to define __stub macros and hopefully few prototypes,
30433 which can conflict with char $ac_func (); below.
30434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30435 <limits.h> exists even on freestanding compilers. */
30438 # include <limits.h>
30440 # include <assert.h>
30445 /* Override any GCC internal prototype to avoid an error.
30446 Use char because int might match the return type of a GCC
30447 builtin and then its argument prototype would still apply. */
30452 /* The GNU C library defines this for functions which it implements
30453 to always fail with ENOSYS. Some functions are actually named
30454 something starting with __ and the normal name is an alias. */
30455 #if defined __stub_$ac_func || defined __stub___$ac_func
30462 return $ac_func ();
30467 rm -f conftest.$ac_objext conftest$ac_exeext
30468 if { (ac_try="$ac_link"
30469 case "(($ac_try" in
30470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30471 *) ac_try_echo=$ac_try;;
30473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30474 (eval "$ac_link") 2>conftest.er1
30476 grep -v '^ *+' conftest.er1 >conftest.err
30478 cat conftest.err >&5
30479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480 (exit $ac_status); } &&
30481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30482 { (case "(($ac_try" in
30483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30484 *) ac_try_echo=$ac_try;;
30486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30487 (eval "$ac_try") 2>&5
30489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30490 (exit $ac_status); }; } &&
30491 { ac_try='test -s conftest$ac_exeext'
30492 { (case "(($ac_try" in
30493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30494 *) ac_try_echo=$ac_try;;
30496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30497 (eval "$ac_try") 2>&5
30499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30500 (exit $ac_status); }; }; then
30501 eval "$as_ac_var=yes"
30503 echo "$as_me: failed program was:" >&5
30504 sed 's/^/| /' conftest.$ac_ext >&5
30506 eval "$as_ac_var=no"
30509 rm -f core conftest.err conftest.$ac_objext \
30510 conftest$ac_exeext conftest.$ac_ext
30512 ac_res=`eval echo '${'$as_ac_var'}'`
30513 { echo "$as_me:$LINENO: result: $ac_res" >&5
30514 echo "${ECHO_T}$ac_res" >&6; }
30515 if test `eval echo '${'$as_ac_var'}'` = yes; then
30516 cat >>confdefs.h <<_ACEOF
30517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30527 for ac_func in powf fmodf strtof round
30529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30530 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30532 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30533 echo $ECHO_N "(cached) $ECHO_C" >&6
30535 cat >conftest.$ac_ext <<_ACEOF
30538 cat confdefs.h >>conftest.$ac_ext
30539 cat >>conftest.$ac_ext <<_ACEOF
30540 /* end confdefs.h. */
30541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30543 #define $ac_func innocuous_$ac_func
30545 /* System header to define __stub macros and hopefully few prototypes,
30546 which can conflict with char $ac_func (); below.
30547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30548 <limits.h> exists even on freestanding compilers. */
30551 # include <limits.h>
30553 # include <assert.h>
30558 /* Override any GCC internal prototype to avoid an error.
30559 Use char because int might match the return type of a GCC
30560 builtin and then its argument prototype would still apply. */
30565 /* The GNU C library defines this for functions which it implements
30566 to always fail with ENOSYS. Some functions are actually named
30567 something starting with __ and the normal name is an alias. */
30568 #if defined __stub_$ac_func || defined __stub___$ac_func
30575 return $ac_func ();
30580 rm -f conftest.$ac_objext conftest$ac_exeext
30581 if { (ac_try="$ac_link"
30582 case "(($ac_try" in
30583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30584 *) ac_try_echo=$ac_try;;
30586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30587 (eval "$ac_link") 2>conftest.er1
30589 grep -v '^ *+' conftest.er1 >conftest.err
30591 cat conftest.err >&5
30592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593 (exit $ac_status); } &&
30594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30595 { (case "(($ac_try" in
30596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30597 *) ac_try_echo=$ac_try;;
30599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30600 (eval "$ac_try") 2>&5
30602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30603 (exit $ac_status); }; } &&
30604 { ac_try='test -s conftest$ac_exeext'
30605 { (case "(($ac_try" in
30606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30607 *) ac_try_echo=$ac_try;;
30609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30610 (eval "$ac_try") 2>&5
30612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613 (exit $ac_status); }; }; then
30614 eval "$as_ac_var=yes"
30616 echo "$as_me: failed program was:" >&5
30617 sed 's/^/| /' conftest.$ac_ext >&5
30619 eval "$as_ac_var=no"
30622 rm -f core conftest.err conftest.$ac_objext \
30623 conftest$ac_exeext conftest.$ac_ext
30625 ac_res=`eval echo '${'$as_ac_var'}'`
30626 { echo "$as_me:$LINENO: result: $ac_res" >&5
30627 echo "${ECHO_T}$ac_res" >&6; }
30628 if test `eval echo '${'$as_ac_var'}'` = yes; then
30629 cat >>confdefs.h <<_ACEOF
30630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30641 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30647 echo $ECHO_N "(cached) $ECHO_C" >&6
30649 cat >conftest.$ac_ext <<_ACEOF
30652 cat confdefs.h >>conftest.$ac_ext
30653 cat >>conftest.$ac_ext <<_ACEOF
30654 /* end confdefs.h. */
30655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30657 #define $ac_func innocuous_$ac_func
30659 /* System header to define __stub macros and hopefully few prototypes,
30660 which can conflict with char $ac_func (); below.
30661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30662 <limits.h> exists even on freestanding compilers. */
30665 # include <limits.h>
30667 # include <assert.h>
30672 /* Override any GCC internal prototype to avoid an error.
30673 Use char because int might match the return type of a GCC
30674 builtin and then its argument prototype would still apply. */
30679 /* The GNU C library defines this for functions which it implements
30680 to always fail with ENOSYS. Some functions are actually named
30681 something starting with __ and the normal name is an alias. */
30682 #if defined __stub_$ac_func || defined __stub___$ac_func
30689 return $ac_func ();
30694 rm -f conftest.$ac_objext conftest$ac_exeext
30695 if { (ac_try="$ac_link"
30696 case "(($ac_try" in
30697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30698 *) ac_try_echo=$ac_try;;
30700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30701 (eval "$ac_link") 2>conftest.er1
30703 grep -v '^ *+' conftest.er1 >conftest.err
30705 cat conftest.err >&5
30706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30707 (exit $ac_status); } &&
30708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30709 { (case "(($ac_try" in
30710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30711 *) ac_try_echo=$ac_try;;
30713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30714 (eval "$ac_try") 2>&5
30716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717 (exit $ac_status); }; } &&
30718 { ac_try='test -s conftest$ac_exeext'
30719 { (case "(($ac_try" in
30720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30721 *) ac_try_echo=$ac_try;;
30723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30724 (eval "$ac_try") 2>&5
30726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30727 (exit $ac_status); }; }; then
30728 eval "$as_ac_var=yes"
30730 echo "$as_me: failed program was:" >&5
30731 sed 's/^/| /' conftest.$ac_ext >&5
30733 eval "$as_ac_var=no"
30736 rm -f core conftest.err conftest.$ac_objext \
30737 conftest$ac_exeext conftest.$ac_ext
30739 ac_res=`eval echo '${'$as_ac_var'}'`
30740 { echo "$as_me:$LINENO: result: $ac_res" >&5
30741 echo "${ECHO_T}$ac_res" >&6; }
30742 if test `eval echo '${'$as_ac_var'}'` = yes; then
30743 cat >>confdefs.h <<_ACEOF
30744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30753 for ac_func in isatty mkdtemp mkstemp
30755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30756 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30759 echo $ECHO_N "(cached) $ECHO_C" >&6
30761 cat >conftest.$ac_ext <<_ACEOF
30764 cat confdefs.h >>conftest.$ac_ext
30765 cat >>conftest.$ac_ext <<_ACEOF
30766 /* end confdefs.h. */
30767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30769 #define $ac_func innocuous_$ac_func
30771 /* System header to define __stub macros and hopefully few prototypes,
30772 which can conflict with char $ac_func (); below.
30773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30774 <limits.h> exists even on freestanding compilers. */
30777 # include <limits.h>
30779 # include <assert.h>
30784 /* Override any GCC internal prototype to avoid an error.
30785 Use char because int might match the return type of a GCC
30786 builtin and then its argument prototype would still apply. */
30791 /* The GNU C library defines this for functions which it implements
30792 to always fail with ENOSYS. Some functions are actually named
30793 something starting with __ and the normal name is an alias. */
30794 #if defined __stub_$ac_func || defined __stub___$ac_func
30801 return $ac_func ();
30806 rm -f conftest.$ac_objext conftest$ac_exeext
30807 if { (ac_try="$ac_link"
30808 case "(($ac_try" in
30809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30810 *) ac_try_echo=$ac_try;;
30812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30813 (eval "$ac_link") 2>conftest.er1
30815 grep -v '^ *+' conftest.er1 >conftest.err
30817 cat conftest.err >&5
30818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30819 (exit $ac_status); } &&
30820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30821 { (case "(($ac_try" in
30822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30823 *) ac_try_echo=$ac_try;;
30825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30826 (eval "$ac_try") 2>&5
30828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30829 (exit $ac_status); }; } &&
30830 { ac_try='test -s conftest$ac_exeext'
30831 { (case "(($ac_try" in
30832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30833 *) ac_try_echo=$ac_try;;
30835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30836 (eval "$ac_try") 2>&5
30838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30839 (exit $ac_status); }; }; then
30840 eval "$as_ac_var=yes"
30842 echo "$as_me: failed program was:" >&5
30843 sed 's/^/| /' conftest.$ac_ext >&5
30845 eval "$as_ac_var=no"
30848 rm -f core conftest.err conftest.$ac_objext \
30849 conftest$ac_exeext conftest.$ac_ext
30851 ac_res=`eval echo '${'$as_ac_var'}'`
30852 { echo "$as_me:$LINENO: result: $ac_res" >&5
30853 echo "${ECHO_T}$ac_res" >&6; }
30854 if test `eval echo '${'$as_ac_var'}'` = yes; then
30855 cat >>confdefs.h <<_ACEOF
30856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30869 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30872 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30874 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30875 echo $ECHO_N "(cached) $ECHO_C" >&6
30877 cat >conftest.$ac_ext <<_ACEOF
30880 cat confdefs.h >>conftest.$ac_ext
30881 cat >>conftest.$ac_ext <<_ACEOF
30882 /* end confdefs.h. */
30883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30885 #define $ac_func innocuous_$ac_func
30887 /* System header to define __stub macros and hopefully few prototypes,
30888 which can conflict with char $ac_func (); below.
30889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30890 <limits.h> exists even on freestanding compilers. */
30893 # include <limits.h>
30895 # include <assert.h>
30900 /* Override any GCC internal prototype to avoid an error.
30901 Use char because int might match the return type of a GCC
30902 builtin and then its argument prototype would still apply. */
30907 /* The GNU C library defines this for functions which it implements
30908 to always fail with ENOSYS. Some functions are actually named
30909 something starting with __ and the normal name is an alias. */
30910 #if defined __stub_$ac_func || defined __stub___$ac_func
30917 return $ac_func ();
30922 rm -f conftest.$ac_objext conftest$ac_exeext
30923 if { (ac_try="$ac_link"
30924 case "(($ac_try" in
30925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30926 *) ac_try_echo=$ac_try;;
30928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30929 (eval "$ac_link") 2>conftest.er1
30931 grep -v '^ *+' conftest.er1 >conftest.err
30933 cat conftest.err >&5
30934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30935 (exit $ac_status); } &&
30936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30937 { (case "(($ac_try" in
30938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30939 *) ac_try_echo=$ac_try;;
30941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30942 (eval "$ac_try") 2>&5
30944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30945 (exit $ac_status); }; } &&
30946 { ac_try='test -s conftest$ac_exeext'
30947 { (case "(($ac_try" in
30948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30949 *) ac_try_echo=$ac_try;;
30951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30952 (eval "$ac_try") 2>&5
30954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30955 (exit $ac_status); }; }; then
30956 eval "$as_ac_var=yes"
30958 echo "$as_me: failed program was:" >&5
30959 sed 's/^/| /' conftest.$ac_ext >&5
30961 eval "$as_ac_var=no"
30964 rm -f core conftest.err conftest.$ac_objext \
30965 conftest$ac_exeext conftest.$ac_ext
30967 ac_res=`eval echo '${'$as_ac_var'}'`
30968 { echo "$as_me:$LINENO: result: $ac_res" >&5
30969 echo "${ECHO_T}$ac_res" >&6; }
30970 if test `eval echo '${'$as_ac_var'}'` = yes; then
30971 cat >>confdefs.h <<_ACEOF
30972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30982 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30985 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30987 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30988 echo $ECHO_N "(cached) $ECHO_C" >&6
30990 cat >conftest.$ac_ext <<_ACEOF
30993 cat confdefs.h >>conftest.$ac_ext
30994 cat >>conftest.$ac_ext <<_ACEOF
30995 /* end confdefs.h. */
30996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30998 #define $ac_func innocuous_$ac_func
31000 /* System header to define __stub macros and hopefully few prototypes,
31001 which can conflict with char $ac_func (); below.
31002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31003 <limits.h> exists even on freestanding compilers. */
31006 # include <limits.h>
31008 # include <assert.h>
31013 /* Override any GCC internal prototype to avoid an error.
31014 Use char because int might match the return type of a GCC
31015 builtin and then its argument prototype would still apply. */
31020 /* The GNU C library defines this for functions which it implements
31021 to always fail with ENOSYS. Some functions are actually named
31022 something starting with __ and the normal name is an alias. */
31023 #if defined __stub_$ac_func || defined __stub___$ac_func
31030 return $ac_func ();
31035 rm -f conftest.$ac_objext conftest$ac_exeext
31036 if { (ac_try="$ac_link"
31037 case "(($ac_try" in
31038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31039 *) ac_try_echo=$ac_try;;
31041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31042 (eval "$ac_link") 2>conftest.er1
31044 grep -v '^ *+' conftest.er1 >conftest.err
31046 cat conftest.err >&5
31047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31048 (exit $ac_status); } &&
31049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31050 { (case "(($ac_try" in
31051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31052 *) ac_try_echo=$ac_try;;
31054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31055 (eval "$ac_try") 2>&5
31057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058 (exit $ac_status); }; } &&
31059 { ac_try='test -s conftest$ac_exeext'
31060 { (case "(($ac_try" in
31061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31062 *) ac_try_echo=$ac_try;;
31064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31065 (eval "$ac_try") 2>&5
31067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31068 (exit $ac_status); }; }; then
31069 eval "$as_ac_var=yes"
31071 echo "$as_me: failed program was:" >&5
31072 sed 's/^/| /' conftest.$ac_ext >&5
31074 eval "$as_ac_var=no"
31077 rm -f core conftest.err conftest.$ac_objext \
31078 conftest$ac_exeext conftest.$ac_ext
31080 ac_res=`eval echo '${'$as_ac_var'}'`
31081 { echo "$as_me:$LINENO: result: $ac_res" >&5
31082 echo "${ECHO_T}$ac_res" >&6; }
31083 if test `eval echo '${'$as_ac_var'}'` = yes; then
31084 cat >>confdefs.h <<_ACEOF
31085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31095 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31098 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31100 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31101 echo $ECHO_N "(cached) $ECHO_C" >&6
31103 cat >conftest.$ac_ext <<_ACEOF
31106 cat confdefs.h >>conftest.$ac_ext
31107 cat >>conftest.$ac_ext <<_ACEOF
31108 /* end confdefs.h. */
31109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31111 #define $ac_func innocuous_$ac_func
31113 /* System header to define __stub macros and hopefully few prototypes,
31114 which can conflict with char $ac_func (); below.
31115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31116 <limits.h> exists even on freestanding compilers. */
31119 # include <limits.h>
31121 # include <assert.h>
31126 /* Override any GCC internal prototype to avoid an error.
31127 Use char because int might match the return type of a GCC
31128 builtin and then its argument prototype would still apply. */
31133 /* The GNU C library defines this for functions which it implements
31134 to always fail with ENOSYS. Some functions are actually named
31135 something starting with __ and the normal name is an alias. */
31136 #if defined __stub_$ac_func || defined __stub___$ac_func
31143 return $ac_func ();
31148 rm -f conftest.$ac_objext conftest$ac_exeext
31149 if { (ac_try="$ac_link"
31150 case "(($ac_try" in
31151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31152 *) ac_try_echo=$ac_try;;
31154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31155 (eval "$ac_link") 2>conftest.er1
31157 grep -v '^ *+' conftest.er1 >conftest.err
31159 cat conftest.err >&5
31160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31161 (exit $ac_status); } &&
31162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31163 { (case "(($ac_try" in
31164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31165 *) ac_try_echo=$ac_try;;
31167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31168 (eval "$ac_try") 2>&5
31170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31171 (exit $ac_status); }; } &&
31172 { ac_try='test -s conftest$ac_exeext'
31173 { (case "(($ac_try" in
31174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31175 *) ac_try_echo=$ac_try;;
31177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31178 (eval "$ac_try") 2>&5
31180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31181 (exit $ac_status); }; }; then
31182 eval "$as_ac_var=yes"
31184 echo "$as_me: failed program was:" >&5
31185 sed 's/^/| /' conftest.$ac_ext >&5
31187 eval "$as_ac_var=no"
31190 rm -f core conftest.err conftest.$ac_objext \
31191 conftest$ac_exeext conftest.$ac_ext
31193 ac_res=`eval echo '${'$as_ac_var'}'`
31194 { echo "$as_me:$LINENO: result: $ac_res" >&5
31195 echo "${ECHO_T}$ac_res" >&6; }
31196 if test `eval echo '${'$as_ac_var'}'` = yes; then
31197 cat >>confdefs.h <<_ACEOF
31198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31204 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31205 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31206 if test "${llvm_cv_c_printf_a+set}" = set; then
31207 echo $ECHO_N "(cached) $ECHO_C" >&6
31210 ac_cpp='$CPP $CPPFLAGS'
31211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31215 if test "$cross_compiling" = yes; then
31216 llvmac_cv_c_printf_a=no
31218 cat >conftest.$ac_ext <<_ACEOF
31222 cat confdefs.h >>conftest.$ac_ext
31223 cat >>conftest.$ac_ext <<_ACEOF
31224 /* end confdefs.h. */
31227 #include <stdlib.h>
31233 volatile double A, B;
31237 sprintf(Buffer, "%a", A);
31241 if (A != 0x1.999999999999ap-4)
31248 rm -f conftest$ac_exeext
31249 if { (ac_try="$ac_link"
31250 case "(($ac_try" in
31251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31252 *) ac_try_echo=$ac_try;;
31254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31255 (eval "$ac_link") 2>&5
31257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31259 { (case "(($ac_try" in
31260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31261 *) ac_try_echo=$ac_try;;
31263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31264 (eval "$ac_try") 2>&5
31266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31267 (exit $ac_status); }; }; then
31268 llvm_cv_c_printf_a=yes
31270 echo "$as_me: program exited with status $ac_status" >&5
31271 echo "$as_me: failed program was:" >&5
31272 sed 's/^/| /' conftest.$ac_ext >&5
31274 ( exit $ac_status )
31275 llvmac_cv_c_printf_a=no
31277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31282 ac_cpp='$CPP $CPPFLAGS'
31283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31288 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31289 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31290 if test "$llvm_cv_c_printf_a" = "yes"; then
31292 cat >>confdefs.h <<\_ACEOF
31293 #define HAVE_PRINTF_A 1
31298 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31299 # for constant arguments. Useless!
31300 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31301 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31302 if test "${ac_cv_working_alloca_h+set}" = set; then
31303 echo $ECHO_N "(cached) $ECHO_C" >&6
31305 cat >conftest.$ac_ext <<_ACEOF
31308 cat confdefs.h >>conftest.$ac_ext
31309 cat >>conftest.$ac_ext <<_ACEOF
31310 /* end confdefs.h. */
31311 #include <alloca.h>
31315 char *p = (char *) alloca (2 * sizeof (int));
31321 rm -f conftest.$ac_objext conftest$ac_exeext
31322 if { (ac_try="$ac_link"
31323 case "(($ac_try" in
31324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31325 *) ac_try_echo=$ac_try;;
31327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31328 (eval "$ac_link") 2>conftest.er1
31330 grep -v '^ *+' conftest.er1 >conftest.err
31332 cat conftest.err >&5
31333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31334 (exit $ac_status); } &&
31335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31336 { (case "(($ac_try" in
31337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31338 *) ac_try_echo=$ac_try;;
31340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31341 (eval "$ac_try") 2>&5
31343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31344 (exit $ac_status); }; } &&
31345 { ac_try='test -s conftest$ac_exeext'
31346 { (case "(($ac_try" in
31347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31348 *) ac_try_echo=$ac_try;;
31350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31351 (eval "$ac_try") 2>&5
31353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31354 (exit $ac_status); }; }; then
31355 ac_cv_working_alloca_h=yes
31357 echo "$as_me: failed program was:" >&5
31358 sed 's/^/| /' conftest.$ac_ext >&5
31360 ac_cv_working_alloca_h=no
31363 rm -f core conftest.err conftest.$ac_objext \
31364 conftest$ac_exeext conftest.$ac_ext
31366 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31367 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31368 if test $ac_cv_working_alloca_h = yes; then
31370 cat >>confdefs.h <<\_ACEOF
31371 #define HAVE_ALLOCA_H 1
31376 { echo "$as_me:$LINENO: checking for alloca" >&5
31377 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31378 if test "${ac_cv_func_alloca_works+set}" = set; then
31379 echo $ECHO_N "(cached) $ECHO_C" >&6
31381 cat >conftest.$ac_ext <<_ACEOF
31384 cat confdefs.h >>conftest.$ac_ext
31385 cat >>conftest.$ac_ext <<_ACEOF
31386 /* end confdefs.h. */
31388 # define alloca __builtin_alloca
31391 # include <malloc.h>
31392 # define alloca _alloca
31395 # include <alloca.h>
31400 # ifndef alloca /* predefined by HP cc +Olibcalls */
31411 char *p = (char *) alloca (1);
31417 rm -f conftest.$ac_objext conftest$ac_exeext
31418 if { (ac_try="$ac_link"
31419 case "(($ac_try" in
31420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31421 *) ac_try_echo=$ac_try;;
31423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31424 (eval "$ac_link") 2>conftest.er1
31426 grep -v '^ *+' conftest.er1 >conftest.err
31428 cat conftest.err >&5
31429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31430 (exit $ac_status); } &&
31431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31432 { (case "(($ac_try" in
31433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31434 *) ac_try_echo=$ac_try;;
31436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31437 (eval "$ac_try") 2>&5
31439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31440 (exit $ac_status); }; } &&
31441 { ac_try='test -s conftest$ac_exeext'
31442 { (case "(($ac_try" in
31443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31444 *) ac_try_echo=$ac_try;;
31446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31447 (eval "$ac_try") 2>&5
31449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31450 (exit $ac_status); }; }; then
31451 ac_cv_func_alloca_works=yes
31453 echo "$as_me: failed program was:" >&5
31454 sed 's/^/| /' conftest.$ac_ext >&5
31456 ac_cv_func_alloca_works=no
31459 rm -f core conftest.err conftest.$ac_objext \
31460 conftest$ac_exeext conftest.$ac_ext
31462 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31463 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31465 if test $ac_cv_func_alloca_works = yes; then
31467 cat >>confdefs.h <<\_ACEOF
31468 #define HAVE_ALLOCA 1
31472 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31473 # that cause trouble. Some versions do not even contain alloca or
31474 # contain a buggy version. If you still want to use their alloca,
31475 # use ar to extract alloca.o from them instead of compiling alloca.c.
31477 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31479 cat >>confdefs.h <<\_ACEOF
31484 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31485 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31486 if test "${ac_cv_os_cray+set}" = set; then
31487 echo $ECHO_N "(cached) $ECHO_C" >&6
31489 cat >conftest.$ac_ext <<_ACEOF
31492 cat confdefs.h >>conftest.$ac_ext
31493 cat >>conftest.$ac_ext <<_ACEOF
31494 /* end confdefs.h. */
31495 #if defined CRAY && ! defined CRAY2
31502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31503 $EGREP "webecray" >/dev/null 2>&1; then
31511 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31512 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31513 if test $ac_cv_os_cray = yes; then
31514 for ac_func in _getb67 GETB67 getb67; do
31515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31516 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31519 echo $ECHO_N "(cached) $ECHO_C" >&6
31521 cat >conftest.$ac_ext <<_ACEOF
31524 cat confdefs.h >>conftest.$ac_ext
31525 cat >>conftest.$ac_ext <<_ACEOF
31526 /* end confdefs.h. */
31527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31529 #define $ac_func innocuous_$ac_func
31531 /* System header to define __stub macros and hopefully few prototypes,
31532 which can conflict with char $ac_func (); below.
31533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31534 <limits.h> exists even on freestanding compilers. */
31537 # include <limits.h>
31539 # include <assert.h>
31544 /* Override any GCC internal prototype to avoid an error.
31545 Use char because int might match the return type of a GCC
31546 builtin and then its argument prototype would still apply. */
31551 /* The GNU C library defines this for functions which it implements
31552 to always fail with ENOSYS. Some functions are actually named
31553 something starting with __ and the normal name is an alias. */
31554 #if defined __stub_$ac_func || defined __stub___$ac_func
31561 return $ac_func ();
31566 rm -f conftest.$ac_objext conftest$ac_exeext
31567 if { (ac_try="$ac_link"
31568 case "(($ac_try" in
31569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31570 *) ac_try_echo=$ac_try;;
31572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31573 (eval "$ac_link") 2>conftest.er1
31575 grep -v '^ *+' conftest.er1 >conftest.err
31577 cat conftest.err >&5
31578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31579 (exit $ac_status); } &&
31580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31581 { (case "(($ac_try" in
31582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31583 *) ac_try_echo=$ac_try;;
31585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31586 (eval "$ac_try") 2>&5
31588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589 (exit $ac_status); }; } &&
31590 { ac_try='test -s conftest$ac_exeext'
31591 { (case "(($ac_try" in
31592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31593 *) ac_try_echo=$ac_try;;
31595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31596 (eval "$ac_try") 2>&5
31598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599 (exit $ac_status); }; }; then
31600 eval "$as_ac_var=yes"
31602 echo "$as_me: failed program was:" >&5
31603 sed 's/^/| /' conftest.$ac_ext >&5
31605 eval "$as_ac_var=no"
31608 rm -f core conftest.err conftest.$ac_objext \
31609 conftest$ac_exeext conftest.$ac_ext
31611 ac_res=`eval echo '${'$as_ac_var'}'`
31612 { echo "$as_me:$LINENO: result: $ac_res" >&5
31613 echo "${ECHO_T}$ac_res" >&6; }
31614 if test `eval echo '${'$as_ac_var'}'` = yes; then
31616 cat >>confdefs.h <<_ACEOF
31617 #define CRAY_STACKSEG_END $ac_func
31626 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31627 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31628 if test "${ac_cv_c_stack_direction+set}" = set; then
31629 echo $ECHO_N "(cached) $ECHO_C" >&6
31631 if test "$cross_compiling" = yes; then
31632 ac_cv_c_stack_direction=0
31634 cat >conftest.$ac_ext <<_ACEOF
31637 cat confdefs.h >>conftest.$ac_ext
31638 cat >>conftest.$ac_ext <<_ACEOF
31639 /* end confdefs.h. */
31640 $ac_includes_default
31642 find_stack_direction ()
31644 static char *addr = 0;
31649 return find_stack_direction ();
31652 return (&dummy > addr) ? 1 : -1;
31658 return find_stack_direction () < 0;
31661 rm -f conftest$ac_exeext
31662 if { (ac_try="$ac_link"
31663 case "(($ac_try" in
31664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31665 *) ac_try_echo=$ac_try;;
31667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31668 (eval "$ac_link") 2>&5
31670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31672 { (case "(($ac_try" in
31673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31674 *) ac_try_echo=$ac_try;;
31676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31677 (eval "$ac_try") 2>&5
31679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31680 (exit $ac_status); }; }; then
31681 ac_cv_c_stack_direction=1
31683 echo "$as_me: program exited with status $ac_status" >&5
31684 echo "$as_me: failed program was:" >&5
31685 sed 's/^/| /' conftest.$ac_ext >&5
31687 ( exit $ac_status )
31688 ac_cv_c_stack_direction=-1
31690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31695 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31696 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31698 cat >>confdefs.h <<_ACEOF
31699 #define STACK_DIRECTION $ac_cv_c_stack_direction
31706 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31707 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31708 if test "${ac_cv_func_rand48+set}" = set; then
31709 echo $ECHO_N "(cached) $ECHO_C" >&6
31712 ac_cpp='$CXXCPP $CPPFLAGS'
31713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31717 cat >conftest.$ac_ext <<_ACEOF
31720 cat confdefs.h >>conftest.$ac_ext
31721 cat >>conftest.$ac_ext <<_ACEOF
31722 /* end confdefs.h. */
31723 #include <stdlib.h>
31727 srand48(0);lrand48();drand48();
31732 rm -f conftest.$ac_objext
31733 if { (ac_try="$ac_compile"
31734 case "(($ac_try" in
31735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31736 *) ac_try_echo=$ac_try;;
31738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31739 (eval "$ac_compile") 2>conftest.er1
31741 grep -v '^ *+' conftest.er1 >conftest.err
31743 cat conftest.err >&5
31744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31745 (exit $ac_status); } &&
31746 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31747 { (case "(($ac_try" in
31748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31749 *) ac_try_echo=$ac_try;;
31751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31752 (eval "$ac_try") 2>&5
31754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31755 (exit $ac_status); }; } &&
31756 { ac_try='test -s conftest.$ac_objext'
31757 { (case "(($ac_try" in
31758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31759 *) ac_try_echo=$ac_try;;
31761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31762 (eval "$ac_try") 2>&5
31764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31765 (exit $ac_status); }; }; then
31766 ac_cv_func_rand48=yes
31768 echo "$as_me: failed program was:" >&5
31769 sed 's/^/| /' conftest.$ac_ext >&5
31771 ac_cv_func_rand48=no
31774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31776 ac_cpp='$CPP $CPPFLAGS'
31777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31782 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31783 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31785 if test "$ac_cv_func_rand48" = "yes" ; then
31787 cat >>confdefs.h <<\_ACEOF
31788 #define HAVE_RAND48 1
31794 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31795 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31796 if test "${ac_cv_cxx_namespaces+set}" = set; then
31797 echo $ECHO_N "(cached) $ECHO_C" >&6
31800 ac_cpp='$CXXCPP $CPPFLAGS'
31801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31805 cat >conftest.$ac_ext <<_ACEOF
31808 cat confdefs.h >>conftest.$ac_ext
31809 cat >>conftest.$ac_ext <<_ACEOF
31810 /* end confdefs.h. */
31811 namespace Outer { namespace Inner { int i = 0; }}
31815 using namespace Outer::Inner; return i;
31820 rm -f conftest.$ac_objext
31821 if { (ac_try="$ac_compile"
31822 case "(($ac_try" in
31823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31824 *) ac_try_echo=$ac_try;;
31826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31827 (eval "$ac_compile") 2>conftest.er1
31829 grep -v '^ *+' conftest.er1 >conftest.err
31831 cat conftest.err >&5
31832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833 (exit $ac_status); } &&
31834 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31835 { (case "(($ac_try" in
31836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31837 *) ac_try_echo=$ac_try;;
31839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31840 (eval "$ac_try") 2>&5
31842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843 (exit $ac_status); }; } &&
31844 { ac_try='test -s conftest.$ac_objext'
31845 { (case "(($ac_try" in
31846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31847 *) ac_try_echo=$ac_try;;
31849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31850 (eval "$ac_try") 2>&5
31852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31853 (exit $ac_status); }; }; then
31854 ac_cv_cxx_namespaces=yes
31856 echo "$as_me: failed program was:" >&5
31857 sed 's/^/| /' conftest.$ac_ext >&5
31859 ac_cv_cxx_namespaces=no
31862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31864 ac_cpp='$CPP $CPPFLAGS'
31865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31871 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31872 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31873 if test "$ac_cv_cxx_namespaces" = yes; then
31875 cat >>confdefs.h <<\_ACEOF
31876 #define HAVE_NAMESPACES
31881 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31882 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31883 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31884 echo $ECHO_N "(cached) $ECHO_C" >&6
31888 ac_cpp='$CXXCPP $CPPFLAGS'
31889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31893 cat >conftest.$ac_ext <<_ACEOF
31896 cat confdefs.h >>conftest.$ac_ext
31897 cat >>conftest.$ac_ext <<_ACEOF
31898 /* end confdefs.h. */
31899 #include <ext/hash_map>
31900 #ifdef HAVE_NAMESPACES
31901 using namespace std;
31906 hash_map<int, int> t;
31911 rm -f conftest.$ac_objext
31912 if { (ac_try="$ac_compile"
31913 case "(($ac_try" in
31914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31915 *) ac_try_echo=$ac_try;;
31917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31918 (eval "$ac_compile") 2>conftest.er1
31920 grep -v '^ *+' conftest.er1 >conftest.err
31922 cat conftest.err >&5
31923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31924 (exit $ac_status); } &&
31925 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31926 { (case "(($ac_try" in
31927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31928 *) ac_try_echo=$ac_try;;
31930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31931 (eval "$ac_try") 2>&5
31933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934 (exit $ac_status); }; } &&
31935 { ac_try='test -s conftest.$ac_objext'
31936 { (case "(($ac_try" in
31937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31938 *) ac_try_echo=$ac_try;;
31940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31941 (eval "$ac_try") 2>&5
31943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31944 (exit $ac_status); }; }; then
31945 ac_cv_cxx_have_std_ext_hash_map=yes
31947 echo "$as_me: failed program was:" >&5
31948 sed 's/^/| /' conftest.$ac_ext >&5
31950 ac_cv_cxx_have_std_ext_hash_map=no
31953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31955 ac_cpp='$CPP $CPPFLAGS'
31956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31961 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31962 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31963 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31966 cat >>confdefs.h <<\_ACEOF
31967 #define HAVE_STD_EXT_HASH_MAP 1
31972 cat >>confdefs.h <<\_ACEOF
31973 #define HAVE_STD_EXT_HASH_MAP 0
31978 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31979 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31980 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31981 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 #include <ext/hash_map>
31997 #ifdef HAVE_NAMESPACES
31998 using namespace __gnu_cxx;
32003 hash_map<int,int> t;
32008 rm -f conftest.$ac_objext
32009 if { (ac_try="$ac_compile"
32010 case "(($ac_try" in
32011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32012 *) ac_try_echo=$ac_try;;
32014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32015 (eval "$ac_compile") 2>conftest.er1
32017 grep -v '^ *+' conftest.er1 >conftest.err
32019 cat conftest.err >&5
32020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32021 (exit $ac_status); } &&
32022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32023 { (case "(($ac_try" in
32024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32025 *) ac_try_echo=$ac_try;;
32027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32028 (eval "$ac_try") 2>&5
32030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32031 (exit $ac_status); }; } &&
32032 { ac_try='test -s conftest.$ac_objext'
32033 { (case "(($ac_try" in
32034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32035 *) ac_try_echo=$ac_try;;
32037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32038 (eval "$ac_try") 2>&5
32040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32041 (exit $ac_status); }; }; then
32042 ac_cv_cxx_have_gnu_ext_hash_map=yes
32044 echo "$as_me: failed program was:" >&5
32045 sed 's/^/| /' conftest.$ac_ext >&5
32047 ac_cv_cxx_have_gnu_ext_hash_map=no
32050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32052 ac_cpp='$CPP $CPPFLAGS'
32053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32058 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32059 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32060 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32063 cat >>confdefs.h <<\_ACEOF
32064 #define HAVE_GNU_EXT_HASH_MAP 1
32069 cat >>confdefs.h <<\_ACEOF
32070 #define HAVE_GNU_EXT_HASH_MAP 0
32075 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32076 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32077 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32078 echo $ECHO_N "(cached) $ECHO_C" >&6
32082 ac_cpp='$CXXCPP $CPPFLAGS'
32083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32087 cat >conftest.$ac_ext <<_ACEOF
32090 cat confdefs.h >>conftest.$ac_ext
32091 cat >>conftest.$ac_ext <<_ACEOF
32092 /* end confdefs.h. */
32093 #include <hash_map>
32097 hash_map<int,int> t;
32102 rm -f conftest.$ac_objext
32103 if { (ac_try="$ac_compile"
32104 case "(($ac_try" in
32105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32106 *) ac_try_echo=$ac_try;;
32108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32109 (eval "$ac_compile") 2>conftest.er1
32111 grep -v '^ *+' conftest.er1 >conftest.err
32113 cat conftest.err >&5
32114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32115 (exit $ac_status); } &&
32116 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32117 { (case "(($ac_try" in
32118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32119 *) ac_try_echo=$ac_try;;
32121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32122 (eval "$ac_try") 2>&5
32124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32125 (exit $ac_status); }; } &&
32126 { ac_try='test -s conftest.$ac_objext'
32127 { (case "(($ac_try" in
32128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32129 *) ac_try_echo=$ac_try;;
32131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32132 (eval "$ac_try") 2>&5
32134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32135 (exit $ac_status); }; }; then
32136 ac_cv_cxx_have_global_hash_map=yes
32138 echo "$as_me: failed program was:" >&5
32139 sed 's/^/| /' conftest.$ac_ext >&5
32141 ac_cv_cxx_have_global_hash_map=no
32144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32146 ac_cpp='$CPP $CPPFLAGS'
32147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32152 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32153 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32154 if test "$ac_cv_cxx_have_global_hash_map" = yes
32157 cat >>confdefs.h <<\_ACEOF
32158 #define HAVE_GLOBAL_HASH_MAP 1
32163 cat >>confdefs.h <<\_ACEOF
32164 #define HAVE_GLOBAL_HASH_MAP 0
32169 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32170 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32171 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32172 echo $ECHO_N "(cached) $ECHO_C" >&6
32176 ac_cpp='$CXXCPP $CPPFLAGS'
32177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32181 cat >conftest.$ac_ext <<_ACEOF
32184 cat confdefs.h >>conftest.$ac_ext
32185 cat >>conftest.$ac_ext <<_ACEOF
32186 /* end confdefs.h. */
32187 #include <ext/hash_set>
32188 #ifdef HAVE_NAMESPACES
32189 using namespace std;
32199 rm -f conftest.$ac_objext
32200 if { (ac_try="$ac_compile"
32201 case "(($ac_try" in
32202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32203 *) ac_try_echo=$ac_try;;
32205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32206 (eval "$ac_compile") 2>conftest.er1
32208 grep -v '^ *+' conftest.er1 >conftest.err
32210 cat conftest.err >&5
32211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32212 (exit $ac_status); } &&
32213 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32214 { (case "(($ac_try" in
32215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32216 *) ac_try_echo=$ac_try;;
32218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32219 (eval "$ac_try") 2>&5
32221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32222 (exit $ac_status); }; } &&
32223 { ac_try='test -s conftest.$ac_objext'
32224 { (case "(($ac_try" in
32225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32226 *) ac_try_echo=$ac_try;;
32228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32229 (eval "$ac_try") 2>&5
32231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32232 (exit $ac_status); }; }; then
32233 ac_cv_cxx_have_std_ext_hash_set=yes
32235 echo "$as_me: failed program was:" >&5
32236 sed 's/^/| /' conftest.$ac_ext >&5
32238 ac_cv_cxx_have_std_ext_hash_set=no
32241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32243 ac_cpp='$CPP $CPPFLAGS'
32244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32249 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32250 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32251 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32254 cat >>confdefs.h <<\_ACEOF
32255 #define HAVE_STD_EXT_HASH_SET 1
32260 cat >>confdefs.h <<\_ACEOF
32261 #define HAVE_STD_EXT_HASH_SET 0
32266 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32267 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32268 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32269 echo $ECHO_N "(cached) $ECHO_C" >&6
32273 ac_cpp='$CXXCPP $CPPFLAGS'
32274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32278 cat >conftest.$ac_ext <<_ACEOF
32281 cat confdefs.h >>conftest.$ac_ext
32282 cat >>conftest.$ac_ext <<_ACEOF
32283 /* end confdefs.h. */
32284 #include <ext/hash_set>
32285 #ifdef HAVE_NAMESPACES
32286 using namespace __gnu_cxx;
32296 rm -f conftest.$ac_objext
32297 if { (ac_try="$ac_compile"
32298 case "(($ac_try" in
32299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32300 *) ac_try_echo=$ac_try;;
32302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32303 (eval "$ac_compile") 2>conftest.er1
32305 grep -v '^ *+' conftest.er1 >conftest.err
32307 cat conftest.err >&5
32308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309 (exit $ac_status); } &&
32310 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32311 { (case "(($ac_try" in
32312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32313 *) ac_try_echo=$ac_try;;
32315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32316 (eval "$ac_try") 2>&5
32318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32319 (exit $ac_status); }; } &&
32320 { ac_try='test -s conftest.$ac_objext'
32321 { (case "(($ac_try" in
32322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32323 *) ac_try_echo=$ac_try;;
32325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32326 (eval "$ac_try") 2>&5
32328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32329 (exit $ac_status); }; }; then
32330 ac_cv_cxx_have_gnu_ext_hash_set=yes
32332 echo "$as_me: failed program was:" >&5
32333 sed 's/^/| /' conftest.$ac_ext >&5
32335 ac_cv_cxx_have_gnu_ext_hash_set=no
32338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32340 ac_cpp='$CPP $CPPFLAGS'
32341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32346 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32347 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32348 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32351 cat >>confdefs.h <<\_ACEOF
32352 #define HAVE_GNU_EXT_HASH_SET 1
32357 cat >>confdefs.h <<\_ACEOF
32358 #define HAVE_GNU_EXT_HASH_SET 0
32363 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32364 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32365 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32366 echo $ECHO_N "(cached) $ECHO_C" >&6
32370 ac_cpp='$CXXCPP $CPPFLAGS'
32371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32375 cat >conftest.$ac_ext <<_ACEOF
32378 cat confdefs.h >>conftest.$ac_ext
32379 cat >>conftest.$ac_ext <<_ACEOF
32380 /* end confdefs.h. */
32381 #include <hash_set>
32385 hash_set<int> t; return 0;
32390 rm -f conftest.$ac_objext
32391 if { (ac_try="$ac_compile"
32392 case "(($ac_try" in
32393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32394 *) ac_try_echo=$ac_try;;
32396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32397 (eval "$ac_compile") 2>conftest.er1
32399 grep -v '^ *+' conftest.er1 >conftest.err
32401 cat conftest.err >&5
32402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32403 (exit $ac_status); } &&
32404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32405 { (case "(($ac_try" in
32406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32407 *) ac_try_echo=$ac_try;;
32409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32410 (eval "$ac_try") 2>&5
32412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32413 (exit $ac_status); }; } &&
32414 { ac_try='test -s conftest.$ac_objext'
32415 { (case "(($ac_try" in
32416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32417 *) ac_try_echo=$ac_try;;
32419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32420 (eval "$ac_try") 2>&5
32422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32423 (exit $ac_status); }; }; then
32424 ac_cv_cxx_have_global_hash_set=yes
32426 echo "$as_me: failed program was:" >&5
32427 sed 's/^/| /' conftest.$ac_ext >&5
32429 ac_cv_cxx_have_global_hash_set=no
32432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32434 ac_cpp='$CPP $CPPFLAGS'
32435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32440 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32441 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32442 if test "$ac_cv_cxx_have_global_hash_set" = yes
32445 cat >>confdefs.h <<\_ACEOF
32446 #define HAVE_GLOBAL_HASH_SET 1
32451 cat >>confdefs.h <<\_ACEOF
32452 #define HAVE_GLOBAL_HASH_SET 0
32457 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32458 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32459 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32460 echo $ECHO_N "(cached) $ECHO_C" >&6
32464 ac_cpp='$CXXCPP $CPPFLAGS'
32465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32469 cat >conftest.$ac_ext <<_ACEOF
32472 cat confdefs.h >>conftest.$ac_ext
32473 cat >>conftest.$ac_ext <<_ACEOF
32474 /* end confdefs.h. */
32475 #include <iterator>
32476 #ifdef HAVE_NAMESPACES
32477 using namespace std;
32482 iterator<int,int,int> t; return 0;
32487 rm -f conftest.$ac_objext
32488 if { (ac_try="$ac_compile"
32489 case "(($ac_try" in
32490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32491 *) ac_try_echo=$ac_try;;
32493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32494 (eval "$ac_compile") 2>conftest.er1
32496 grep -v '^ *+' conftest.er1 >conftest.err
32498 cat conftest.err >&5
32499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32500 (exit $ac_status); } &&
32501 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32502 { (case "(($ac_try" in
32503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32504 *) ac_try_echo=$ac_try;;
32506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32507 (eval "$ac_try") 2>&5
32509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32510 (exit $ac_status); }; } &&
32511 { ac_try='test -s conftest.$ac_objext'
32512 { (case "(($ac_try" in
32513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32514 *) ac_try_echo=$ac_try;;
32516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32517 (eval "$ac_try") 2>&5
32519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520 (exit $ac_status); }; }; then
32521 ac_cv_cxx_have_std_iterator=yes
32523 echo "$as_me: failed program was:" >&5
32524 sed 's/^/| /' conftest.$ac_ext >&5
32526 ac_cv_cxx_have_std_iterator=no
32529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32531 ac_cpp='$CPP $CPPFLAGS'
32532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32538 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32539 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32540 if test "$ac_cv_cxx_have_std_iterator" = yes
32543 cat >>confdefs.h <<\_ACEOF
32544 #define HAVE_STD_ITERATOR 1
32549 cat >>confdefs.h <<\_ACEOF
32550 #define HAVE_STD_ITERATOR 0
32555 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32556 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32557 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32558 echo $ECHO_N "(cached) $ECHO_C" >&6
32562 ac_cpp='$CXXCPP $CPPFLAGS'
32563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32567 cat >conftest.$ac_ext <<_ACEOF
32570 cat confdefs.h >>conftest.$ac_ext
32571 cat >>conftest.$ac_ext <<_ACEOF
32572 /* end confdefs.h. */
32573 #include <iterator>
32574 #ifdef HAVE_NAMESPACES
32575 using namespace std;
32580 bidirectional_iterator<int,int> t; return 0;
32585 rm -f conftest.$ac_objext
32586 if { (ac_try="$ac_compile"
32587 case "(($ac_try" in
32588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32589 *) ac_try_echo=$ac_try;;
32591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32592 (eval "$ac_compile") 2>conftest.er1
32594 grep -v '^ *+' conftest.er1 >conftest.err
32596 cat conftest.err >&5
32597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32598 (exit $ac_status); } &&
32599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
32609 { ac_try='test -s conftest.$ac_objext'
32610 { (case "(($ac_try" in
32611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32612 *) ac_try_echo=$ac_try;;
32614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32615 (eval "$ac_try") 2>&5
32617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618 (exit $ac_status); }; }; then
32619 ac_cv_cxx_have_bi_iterator=yes
32621 echo "$as_me: failed program was:" >&5
32622 sed 's/^/| /' conftest.$ac_ext >&5
32624 ac_cv_cxx_have_bi_iterator=no
32627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32629 ac_cpp='$CPP $CPPFLAGS'
32630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32636 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32637 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32638 if test "$ac_cv_cxx_have_bi_iterator" = yes
32641 cat >>confdefs.h <<\_ACEOF
32642 #define HAVE_BI_ITERATOR 1
32647 cat >>confdefs.h <<\_ACEOF
32648 #define HAVE_BI_ITERATOR 0
32653 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32654 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32655 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32656 echo $ECHO_N "(cached) $ECHO_C" >&6
32660 ac_cpp='$CXXCPP $CPPFLAGS'
32661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32665 cat >conftest.$ac_ext <<_ACEOF
32668 cat confdefs.h >>conftest.$ac_ext
32669 cat >>conftest.$ac_ext <<_ACEOF
32670 /* end confdefs.h. */
32671 #include <iterator>
32672 #ifdef HAVE_NAMESPACES
32673 using namespace std;
32678 forward_iterator<int,int> t; return 0;
32683 rm -f conftest.$ac_objext
32684 if { (ac_try="$ac_compile"
32685 case "(($ac_try" in
32686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32687 *) ac_try_echo=$ac_try;;
32689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32690 (eval "$ac_compile") 2>conftest.er1
32692 grep -v '^ *+' conftest.er1 >conftest.err
32694 cat conftest.err >&5
32695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32696 (exit $ac_status); } &&
32697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32698 { (case "(($ac_try" in
32699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32700 *) ac_try_echo=$ac_try;;
32702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32703 (eval "$ac_try") 2>&5
32705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32706 (exit $ac_status); }; } &&
32707 { ac_try='test -s conftest.$ac_objext'
32708 { (case "(($ac_try" in
32709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32710 *) ac_try_echo=$ac_try;;
32712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32713 (eval "$ac_try") 2>&5
32715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32716 (exit $ac_status); }; }; then
32717 ac_cv_cxx_have_fwd_iterator=yes
32719 echo "$as_me: failed program was:" >&5
32720 sed 's/^/| /' conftest.$ac_ext >&5
32722 ac_cv_cxx_have_fwd_iterator=no
32725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32727 ac_cpp='$CPP $CPPFLAGS'
32728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32734 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32735 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32736 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32739 cat >>confdefs.h <<\_ACEOF
32740 #define HAVE_FWD_ITERATOR 1
32745 cat >>confdefs.h <<\_ACEOF
32746 #define HAVE_FWD_ITERATOR 0
32752 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32753 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32754 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32755 echo $ECHO_N "(cached) $ECHO_C" >&6
32758 ac_cpp='$CXXCPP $CPPFLAGS'
32759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32763 cat >conftest.$ac_ext <<_ACEOF
32766 cat confdefs.h >>conftest.$ac_ext
32767 cat >>conftest.$ac_ext <<_ACEOF
32768 /* end confdefs.h. */
32778 rm -f conftest.$ac_objext
32779 if { (ac_try="$ac_compile"
32780 case "(($ac_try" in
32781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32782 *) ac_try_echo=$ac_try;;
32784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32785 (eval "$ac_compile") 2>conftest.er1
32787 grep -v '^ *+' conftest.er1 >conftest.err
32789 cat conftest.err >&5
32790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32791 (exit $ac_status); } &&
32792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32793 { (case "(($ac_try" in
32794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32795 *) ac_try_echo=$ac_try;;
32797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32798 (eval "$ac_try") 2>&5
32800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32801 (exit $ac_status); }; } &&
32802 { ac_try='test -s conftest.$ac_objext'
32803 { (case "(($ac_try" in
32804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32805 *) ac_try_echo=$ac_try;;
32807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32808 (eval "$ac_try") 2>&5
32810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32811 (exit $ac_status); }; }; then
32812 ac_cv_func_isnan_in_math_h=yes
32814 echo "$as_me: failed program was:" >&5
32815 sed 's/^/| /' conftest.$ac_ext >&5
32817 ac_cv_func_isnan_in_math_h=no
32820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32822 ac_cpp='$CPP $CPPFLAGS'
32823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32828 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32829 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32832 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32834 cat >>confdefs.h <<\_ACEOF
32835 #define HAVE_ISNAN_IN_MATH_H 1
32840 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32841 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32842 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32843 echo $ECHO_N "(cached) $ECHO_C" >&6
32846 ac_cpp='$CXXCPP $CPPFLAGS'
32847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32851 cat >conftest.$ac_ext <<_ACEOF
32854 cat confdefs.h >>conftest.$ac_ext
32855 cat >>conftest.$ac_ext <<_ACEOF
32856 /* end confdefs.h. */
32866 rm -f conftest.$ac_objext
32867 if { (ac_try="$ac_compile"
32868 case "(($ac_try" in
32869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32870 *) ac_try_echo=$ac_try;;
32872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32873 (eval "$ac_compile") 2>conftest.er1
32875 grep -v '^ *+' conftest.er1 >conftest.err
32877 cat conftest.err >&5
32878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879 (exit $ac_status); } &&
32880 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32881 { (case "(($ac_try" in
32882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32883 *) ac_try_echo=$ac_try;;
32885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32886 (eval "$ac_try") 2>&5
32888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32889 (exit $ac_status); }; } &&
32890 { ac_try='test -s conftest.$ac_objext'
32891 { (case "(($ac_try" in
32892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32893 *) ac_try_echo=$ac_try;;
32895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32896 (eval "$ac_try") 2>&5
32898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32899 (exit $ac_status); }; }; then
32900 ac_cv_func_isnan_in_cmath=yes
32902 echo "$as_me: failed program was:" >&5
32903 sed 's/^/| /' conftest.$ac_ext >&5
32905 ac_cv_func_isnan_in_cmath=no
32908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32910 ac_cpp='$CPP $CPPFLAGS'
32911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32916 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32917 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32919 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32921 cat >>confdefs.h <<\_ACEOF
32922 #define HAVE_ISNAN_IN_CMATH 1
32927 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32928 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32929 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32930 echo $ECHO_N "(cached) $ECHO_C" >&6
32933 ac_cpp='$CXXCPP $CPPFLAGS'
32934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32938 cat >conftest.$ac_ext <<_ACEOF
32941 cat confdefs.h >>conftest.$ac_ext
32942 cat >>conftest.$ac_ext <<_ACEOF
32943 /* end confdefs.h. */
32948 float f; std::isnan(f);
32953 rm -f conftest.$ac_objext
32954 if { (ac_try="$ac_compile"
32955 case "(($ac_try" in
32956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32957 *) ac_try_echo=$ac_try;;
32959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32960 (eval "$ac_compile") 2>conftest.er1
32962 grep -v '^ *+' conftest.er1 >conftest.err
32964 cat conftest.err >&5
32965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32966 (exit $ac_status); } &&
32967 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32968 { (case "(($ac_try" in
32969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32970 *) ac_try_echo=$ac_try;;
32972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32973 (eval "$ac_try") 2>&5
32975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32976 (exit $ac_status); }; } &&
32977 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
32987 ac_cv_func_std_isnan_in_cmath=yes
32989 echo "$as_me: failed program was:" >&5
32990 sed 's/^/| /' conftest.$ac_ext >&5
32992 ac_cv_func_std_isnan_in_cmath=no
32995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32997 ac_cpp='$CPP $CPPFLAGS'
32998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33003 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33004 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33006 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33008 cat >>confdefs.h <<\_ACEOF
33009 #define HAVE_STD_ISNAN_IN_CMATH 1
33015 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33016 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33017 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33018 echo $ECHO_N "(cached) $ECHO_C" >&6
33021 ac_cpp='$CXXCPP $CPPFLAGS'
33022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33026 cat >conftest.$ac_ext <<_ACEOF
33029 cat confdefs.h >>conftest.$ac_ext
33030 cat >>conftest.$ac_ext <<_ACEOF
33031 /* end confdefs.h. */
33041 rm -f conftest.$ac_objext
33042 if { (ac_try="$ac_compile"
33043 case "(($ac_try" in
33044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33045 *) ac_try_echo=$ac_try;;
33047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33048 (eval "$ac_compile") 2>conftest.er1
33050 grep -v '^ *+' conftest.er1 >conftest.err
33052 cat conftest.err >&5
33053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054 (exit $ac_status); } &&
33055 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33056 { (case "(($ac_try" in
33057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33058 *) ac_try_echo=$ac_try;;
33060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33061 (eval "$ac_try") 2>&5
33063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33064 (exit $ac_status); }; } &&
33065 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
33075 ac_cv_func_isinf_in_math_h=yes
33077 echo "$as_me: failed program was:" >&5
33078 sed 's/^/| /' conftest.$ac_ext >&5
33080 ac_cv_func_isinf_in_math_h=no
33083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33085 ac_cpp='$CPP $CPPFLAGS'
33086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33091 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33092 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33094 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33096 cat >>confdefs.h <<\_ACEOF
33097 #define HAVE_ISINF_IN_MATH_H 1
33102 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33103 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33104 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33105 echo $ECHO_N "(cached) $ECHO_C" >&6
33108 ac_cpp='$CXXCPP $CPPFLAGS'
33109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33113 cat >conftest.$ac_ext <<_ACEOF
33116 cat confdefs.h >>conftest.$ac_ext
33117 cat >>conftest.$ac_ext <<_ACEOF
33118 /* end confdefs.h. */
33128 rm -f conftest.$ac_objext
33129 if { (ac_try="$ac_compile"
33130 case "(($ac_try" in
33131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33132 *) ac_try_echo=$ac_try;;
33134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33135 (eval "$ac_compile") 2>conftest.er1
33137 grep -v '^ *+' conftest.er1 >conftest.err
33139 cat conftest.err >&5
33140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141 (exit $ac_status); } &&
33142 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33143 { (case "(($ac_try" in
33144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33145 *) ac_try_echo=$ac_try;;
33147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33148 (eval "$ac_try") 2>&5
33150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33151 (exit $ac_status); }; } &&
33152 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
33162 ac_cv_func_isinf_in_cmath=yes
33164 echo "$as_me: failed program was:" >&5
33165 sed 's/^/| /' conftest.$ac_ext >&5
33167 ac_cv_func_isinf_in_cmath=no
33170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33172 ac_cpp='$CPP $CPPFLAGS'
33173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33178 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33179 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33181 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33183 cat >>confdefs.h <<\_ACEOF
33184 #define HAVE_ISINF_IN_CMATH 1
33189 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33190 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33191 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33192 echo $ECHO_N "(cached) $ECHO_C" >&6
33195 ac_cpp='$CXXCPP $CPPFLAGS'
33196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33200 cat >conftest.$ac_ext <<_ACEOF
33203 cat confdefs.h >>conftest.$ac_ext
33204 cat >>conftest.$ac_ext <<_ACEOF
33205 /* end confdefs.h. */
33210 float f; std::isinf(f)}
33215 rm -f conftest.$ac_objext
33216 if { (ac_try="$ac_compile"
33217 case "(($ac_try" in
33218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33219 *) ac_try_echo=$ac_try;;
33221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33222 (eval "$ac_compile") 2>conftest.er1
33224 grep -v '^ *+' conftest.er1 >conftest.err
33226 cat conftest.err >&5
33227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33228 (exit $ac_status); } &&
33229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33230 { (case "(($ac_try" in
33231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33232 *) ac_try_echo=$ac_try;;
33234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33235 (eval "$ac_try") 2>&5
33237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33238 (exit $ac_status); }; } &&
33239 { ac_try='test -s conftest.$ac_objext'
33240 { (case "(($ac_try" in
33241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33242 *) ac_try_echo=$ac_try;;
33244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33245 (eval "$ac_try") 2>&5
33247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33248 (exit $ac_status); }; }; then
33249 ac_cv_func_std_isinf_in_cmath=yes
33251 echo "$as_me: failed program was:" >&5
33252 sed 's/^/| /' conftest.$ac_ext >&5
33254 ac_cv_func_std_isinf_in_cmath=no
33257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33259 ac_cpp='$CPP $CPPFLAGS'
33260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33265 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33266 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33268 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33270 cat >>confdefs.h <<\_ACEOF
33271 #define HAVE_STD_ISINF_IN_CMATH 1
33276 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33277 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33278 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33279 echo $ECHO_N "(cached) $ECHO_C" >&6
33282 ac_cpp='$CXXCPP $CPPFLAGS'
33283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33287 cat >conftest.$ac_ext <<_ACEOF
33290 cat confdefs.h >>conftest.$ac_ext
33291 cat >>conftest.$ac_ext <<_ACEOF
33292 /* end confdefs.h. */
33293 #include <ieeefp.h>
33297 float f; finite(f);
33302 rm -f conftest.$ac_objext
33303 if { (ac_try="$ac_compile"
33304 case "(($ac_try" in
33305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33306 *) ac_try_echo=$ac_try;;
33308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33309 (eval "$ac_compile") 2>conftest.er1
33311 grep -v '^ *+' conftest.er1 >conftest.err
33313 cat conftest.err >&5
33314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33315 (exit $ac_status); } &&
33316 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33317 { (case "(($ac_try" in
33318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33319 *) ac_try_echo=$ac_try;;
33321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33322 (eval "$ac_try") 2>&5
33324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33325 (exit $ac_status); }; } &&
33326 { ac_try='test -s conftest.$ac_objext'
33327 { (case "(($ac_try" in
33328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33329 *) ac_try_echo=$ac_try;;
33331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33332 (eval "$ac_try") 2>&5
33334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33335 (exit $ac_status); }; }; then
33336 ac_cv_func_finite_in_ieeefp_h=yes
33338 echo "$as_me: failed program was:" >&5
33339 sed 's/^/| /' conftest.$ac_ext >&5
33341 ac_cv_func_finite_in_ieeefp_h=no
33344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33346 ac_cpp='$CPP $CPPFLAGS'
33347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33352 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33353 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33355 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33357 cat >>confdefs.h <<\_ACEOF
33358 #define HAVE_FINITE_IN_IEEEFP_H 1
33365 if test "$llvm_cv_platform_type" = "Unix" ; then
33368 for ac_header in stdlib.h unistd.h
33370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33375 echo $ECHO_N "(cached) $ECHO_C" >&6
33377 ac_res=`eval echo '${'$as_ac_Header'}'`
33378 { echo "$as_me:$LINENO: result: $ac_res" >&5
33379 echo "${ECHO_T}$ac_res" >&6; }
33381 # Is the header compilable?
33382 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33384 cat >conftest.$ac_ext <<_ACEOF
33387 cat confdefs.h >>conftest.$ac_ext
33388 cat >>conftest.$ac_ext <<_ACEOF
33389 /* end confdefs.h. */
33390 $ac_includes_default
33391 #include <$ac_header>
33393 rm -f conftest.$ac_objext
33394 if { (ac_try="$ac_compile"
33395 case "(($ac_try" in
33396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33397 *) ac_try_echo=$ac_try;;
33399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33400 (eval "$ac_compile") 2>conftest.er1
33402 grep -v '^ *+' conftest.er1 >conftest.err
33404 cat conftest.err >&5
33405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33406 (exit $ac_status); } &&
33407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33408 { (case "(($ac_try" in
33409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33410 *) ac_try_echo=$ac_try;;
33412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33413 (eval "$ac_try") 2>&5
33415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33416 (exit $ac_status); }; } &&
33417 { ac_try='test -s conftest.$ac_objext'
33418 { (case "(($ac_try" in
33419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33420 *) ac_try_echo=$ac_try;;
33422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33423 (eval "$ac_try") 2>&5
33425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33426 (exit $ac_status); }; }; then
33427 ac_header_compiler=yes
33429 echo "$as_me: failed program was:" >&5
33430 sed 's/^/| /' conftest.$ac_ext >&5
33432 ac_header_compiler=no
33435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33436 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33437 echo "${ECHO_T}$ac_header_compiler" >&6; }
33439 # Is the header present?
33440 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33442 cat >conftest.$ac_ext <<_ACEOF
33445 cat confdefs.h >>conftest.$ac_ext
33446 cat >>conftest.$ac_ext <<_ACEOF
33447 /* end confdefs.h. */
33448 #include <$ac_header>
33450 if { (ac_try="$ac_cpp conftest.$ac_ext"
33451 case "(($ac_try" in
33452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33453 *) ac_try_echo=$ac_try;;
33455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33458 grep -v '^ *+' conftest.er1 >conftest.err
33460 cat conftest.err >&5
33461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33462 (exit $ac_status); } >/dev/null; then
33463 if test -s conftest.err; then
33464 ac_cpp_err=$ac_c_preproc_warn_flag
33465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33472 if test -z "$ac_cpp_err"; then
33473 ac_header_preproc=yes
33475 echo "$as_me: failed program was:" >&5
33476 sed 's/^/| /' conftest.$ac_ext >&5
33478 ac_header_preproc=no
33481 rm -f conftest.err conftest.$ac_ext
33482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33483 echo "${ECHO_T}$ac_header_preproc" >&6; }
33485 # So? What about this header?
33486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33492 ac_header_preproc=yes
33495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33498 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33499 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33501 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33502 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33505 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33508 ## ----------------------------------- ##
33509 ## Report this to llvmbugs@cs.uiuc.edu ##
33510 ## ----------------------------------- ##
33512 ) | sed "s/^/$as_me: WARNING: /" >&2
33515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33518 echo $ECHO_N "(cached) $ECHO_C" >&6
33520 eval "$as_ac_Header=\$ac_header_preproc"
33522 ac_res=`eval echo '${'$as_ac_Header'}'`
33523 { echo "$as_me:$LINENO: result: $ac_res" >&5
33524 echo "${ECHO_T}$ac_res" >&6; }
33527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33528 cat >>confdefs.h <<_ACEOF
33529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33537 for ac_func in getpagesize
33539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33540 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33542 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33543 echo $ECHO_N "(cached) $ECHO_C" >&6
33545 cat >conftest.$ac_ext <<_ACEOF
33548 cat confdefs.h >>conftest.$ac_ext
33549 cat >>conftest.$ac_ext <<_ACEOF
33550 /* end confdefs.h. */
33551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33553 #define $ac_func innocuous_$ac_func
33555 /* System header to define __stub macros and hopefully few prototypes,
33556 which can conflict with char $ac_func (); below.
33557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33558 <limits.h> exists even on freestanding compilers. */
33561 # include <limits.h>
33563 # include <assert.h>
33568 /* Override any GCC internal prototype to avoid an error.
33569 Use char because int might match the return type of a GCC
33570 builtin and then its argument prototype would still apply. */
33575 /* The GNU C library defines this for functions which it implements
33576 to always fail with ENOSYS. Some functions are actually named
33577 something starting with __ and the normal name is an alias. */
33578 #if defined __stub_$ac_func || defined __stub___$ac_func
33585 return $ac_func ();
33590 rm -f conftest.$ac_objext conftest$ac_exeext
33591 if { (ac_try="$ac_link"
33592 case "(($ac_try" in
33593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33594 *) ac_try_echo=$ac_try;;
33596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33597 (eval "$ac_link") 2>conftest.er1
33599 grep -v '^ *+' conftest.er1 >conftest.err
33601 cat conftest.err >&5
33602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33603 (exit $ac_status); } &&
33604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33605 { (case "(($ac_try" in
33606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33607 *) ac_try_echo=$ac_try;;
33609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33610 (eval "$ac_try") 2>&5
33612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33613 (exit $ac_status); }; } &&
33614 { ac_try='test -s conftest$ac_exeext'
33615 { (case "(($ac_try" in
33616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33617 *) ac_try_echo=$ac_try;;
33619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33620 (eval "$ac_try") 2>&5
33622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33623 (exit $ac_status); }; }; then
33624 eval "$as_ac_var=yes"
33626 echo "$as_me: failed program was:" >&5
33627 sed 's/^/| /' conftest.$ac_ext >&5
33629 eval "$as_ac_var=no"
33632 rm -f core conftest.err conftest.$ac_objext \
33633 conftest$ac_exeext conftest.$ac_ext
33635 ac_res=`eval echo '${'$as_ac_var'}'`
33636 { echo "$as_me:$LINENO: result: $ac_res" >&5
33637 echo "${ECHO_T}$ac_res" >&6; }
33638 if test `eval echo '${'$as_ac_var'}'` = yes; then
33639 cat >>confdefs.h <<_ACEOF
33640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33646 { echo "$as_me:$LINENO: checking for working mmap" >&5
33647 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33648 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33649 echo $ECHO_N "(cached) $ECHO_C" >&6
33651 if test "$cross_compiling" = yes; then
33652 ac_cv_func_mmap_fixed_mapped=no
33654 cat >conftest.$ac_ext <<_ACEOF
33657 cat confdefs.h >>conftest.$ac_ext
33658 cat >>conftest.$ac_ext <<_ACEOF
33659 /* end confdefs.h. */
33660 $ac_includes_default
33661 /* malloc might have been renamed as rpl_malloc. */
33664 /* Thanks to Mike Haertel and Jim Avera for this test.
33665 Here is a matrix of mmap possibilities:
33666 mmap private not fixed
33667 mmap private fixed at somewhere currently unmapped
33668 mmap private fixed at somewhere already mapped
33669 mmap shared not fixed
33670 mmap shared fixed at somewhere currently unmapped
33671 mmap shared fixed at somewhere already mapped
33672 For private mappings, we should verify that changes cannot be read()
33673 back from the file, nor mmap's back from the file at a different
33674 address. (There have been systems where private was not correctly
33675 implemented like the infamous i386 svr4.0, and systems where the
33676 VM page cache was not coherent with the file system buffer cache
33677 like early versions of FreeBSD and possibly contemporary NetBSD.)
33678 For shared mappings, we should conversely verify that changes get
33679 propagated back to all the places they're supposed to be.
33681 Grep wants private fixed already mapped.
33682 The main things grep needs to know about mmap are:
33683 * does it exist and is it safe to write into the mmap'd area
33684 * how to use it (BSD variants) */
33687 #include <sys/mman.h>
33689 #if !STDC_HEADERS && !HAVE_STDLIB_H
33693 /* This mess was copied from the GNU getpagesize.h. */
33694 #if !HAVE_GETPAGESIZE
33695 /* Assume that all systems that can run configure have sys/param.h. */
33696 # if !HAVE_SYS_PARAM_H
33697 # define HAVE_SYS_PARAM_H 1
33700 # ifdef _SC_PAGESIZE
33701 # define getpagesize() sysconf(_SC_PAGESIZE)
33702 # else /* no _SC_PAGESIZE */
33703 # if HAVE_SYS_PARAM_H
33704 # include <sys/param.h>
33705 # ifdef EXEC_PAGESIZE
33706 # define getpagesize() EXEC_PAGESIZE
33707 # else /* no EXEC_PAGESIZE */
33709 # define getpagesize() NBPG * CLSIZE
33712 # endif /* no CLSIZE */
33713 # else /* no NBPG */
33715 # define getpagesize() NBPC
33716 # else /* no NBPC */
33718 # define getpagesize() PAGESIZE
33719 # endif /* PAGESIZE */
33720 # endif /* no NBPC */
33721 # endif /* no NBPG */
33722 # endif /* no EXEC_PAGESIZE */
33723 # else /* no HAVE_SYS_PARAM_H */
33724 # define getpagesize() 8192 /* punt totally */
33725 # endif /* no HAVE_SYS_PARAM_H */
33726 # endif /* no _SC_PAGESIZE */
33728 #endif /* no HAVE_GETPAGESIZE */
33733 char *data, *data2, *data3;
33737 pagesize = getpagesize ();
33739 /* First, make a file with some known garbage in it. */
33740 data = (char *) malloc (pagesize);
33743 for (i = 0; i < pagesize; ++i)
33744 *(data + i) = rand ();
33746 fd = creat ("conftest.mmap", 0600);
33749 if (write (fd, data, pagesize) != pagesize)
33753 /* Next, try to mmap the file at a fixed address which already has
33754 something else allocated at it. If we can, also make sure that
33755 we see the same garbage. */
33756 fd = open ("conftest.mmap", O_RDWR);
33759 data2 = (char *) malloc (2 * pagesize);
33762 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33763 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33764 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33766 for (i = 0; i < pagesize; ++i)
33767 if (*(data + i) != *(data2 + i))
33770 /* Finally, make sure that changes to the mapped area do not
33771 percolate back to the file as seen by read(). (This is a bug on
33772 some variants of i386 svr4.0.) */
33773 for (i = 0; i < pagesize; ++i)
33774 *(data2 + i) = *(data2 + i) + 1;
33775 data3 = (char *) malloc (pagesize);
33778 if (read (fd, data3, pagesize) != pagesize)
33780 for (i = 0; i < pagesize; ++i)
33781 if (*(data + i) != *(data3 + i))
33787 rm -f conftest$ac_exeext
33788 if { (ac_try="$ac_link"
33789 case "(($ac_try" in
33790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33791 *) ac_try_echo=$ac_try;;
33793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33794 (eval "$ac_link") 2>&5
33796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33798 { (case "(($ac_try" in
33799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33800 *) ac_try_echo=$ac_try;;
33802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33803 (eval "$ac_try") 2>&5
33805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33806 (exit $ac_status); }; }; then
33807 ac_cv_func_mmap_fixed_mapped=yes
33809 echo "$as_me: program exited with status $ac_status" >&5
33810 echo "$as_me: failed program was:" >&5
33811 sed 's/^/| /' conftest.$ac_ext >&5
33813 ( exit $ac_status )
33814 ac_cv_func_mmap_fixed_mapped=no
33816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33821 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33822 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33823 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33825 cat >>confdefs.h <<\_ACEOF
33826 #define HAVE_MMAP 1
33830 rm -f conftest.mmap
33832 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33833 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33834 if test "${ac_cv_func_mmap_file+set}" = set; then
33835 echo $ECHO_N "(cached) $ECHO_C" >&6
33838 ac_cpp='$CPP $CPPFLAGS'
33839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33843 if test "$cross_compiling" = yes; then
33844 ac_cv_func_mmap_file=no
33846 cat >conftest.$ac_ext <<_ACEOF
33850 cat confdefs.h >>conftest.$ac_ext
33851 cat >>conftest.$ac_ext <<_ACEOF
33852 /* end confdefs.h. */
33854 #include <sys/types.h>
33855 #include <sys/mman.h>
33863 fd = creat ("foo",0777);
33864 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33866 return (fd != (int) MAP_FAILED);
33871 rm -f conftest$ac_exeext
33872 if { (ac_try="$ac_link"
33873 case "(($ac_try" in
33874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33875 *) ac_try_echo=$ac_try;;
33877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33878 (eval "$ac_link") 2>&5
33880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33882 { (case "(($ac_try" in
33883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33884 *) ac_try_echo=$ac_try;;
33886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33887 (eval "$ac_try") 2>&5
33889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33890 (exit $ac_status); }; }; then
33891 ac_cv_func_mmap_file=yes
33893 echo "$as_me: program exited with status $ac_status" >&5
33894 echo "$as_me: failed program was:" >&5
33895 sed 's/^/| /' conftest.$ac_ext >&5
33897 ( exit $ac_status )
33898 ac_cv_func_mmap_file=no
33900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33905 ac_cpp='$CPP $CPPFLAGS'
33906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33912 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33913 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33914 if test "$ac_cv_func_mmap_file" = yes; then
33916 cat >>confdefs.h <<\_ACEOF
33917 #define HAVE_MMAP_FILE
33924 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33925 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33926 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33927 echo $ECHO_N "(cached) $ECHO_C" >&6
33929 if test "$llvm_cv_os_type" = "Interix" ; then
33930 ac_cv_need_dev_zero_for_mmap=yes
33932 ac_cv_need_dev_zero_for_mmap=no
33936 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33937 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33938 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33940 cat >>confdefs.h <<\_ACEOF
33941 #define NEED_DEV_ZERO_FOR_MMAP 1
33946 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33948 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33949 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33951 if test "$ac_cv_func_mmap_file" = "no"
33953 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33954 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33960 for ac_func in __dso_handle
33962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33963 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33965 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33966 echo $ECHO_N "(cached) $ECHO_C" >&6
33968 cat >conftest.$ac_ext <<_ACEOF
33971 cat confdefs.h >>conftest.$ac_ext
33972 cat >>conftest.$ac_ext <<_ACEOF
33973 /* end confdefs.h. */
33974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33976 #define $ac_func innocuous_$ac_func
33978 /* System header to define __stub macros and hopefully few prototypes,
33979 which can conflict with char $ac_func (); below.
33980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33981 <limits.h> exists even on freestanding compilers. */
33984 # include <limits.h>
33986 # include <assert.h>
33991 /* Override any GCC internal prototype to avoid an error.
33992 Use char because int might match the return type of a GCC
33993 builtin and then its argument prototype would still apply. */
33998 /* The GNU C library defines this for functions which it implements
33999 to always fail with ENOSYS. Some functions are actually named
34000 something starting with __ and the normal name is an alias. */
34001 #if defined __stub_$ac_func || defined __stub___$ac_func
34008 return $ac_func ();
34013 rm -f conftest.$ac_objext conftest$ac_exeext
34014 if { (ac_try="$ac_link"
34015 case "(($ac_try" in
34016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34017 *) ac_try_echo=$ac_try;;
34019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34020 (eval "$ac_link") 2>conftest.er1
34022 grep -v '^ *+' conftest.er1 >conftest.err
34024 cat conftest.err >&5
34025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026 (exit $ac_status); } &&
34027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34028 { (case "(($ac_try" in
34029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34030 *) ac_try_echo=$ac_try;;
34032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34033 (eval "$ac_try") 2>&5
34035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34036 (exit $ac_status); }; } &&
34037 { ac_try='test -s conftest$ac_exeext'
34038 { (case "(($ac_try" in
34039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34040 *) ac_try_echo=$ac_try;;
34042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34043 (eval "$ac_try") 2>&5
34045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34046 (exit $ac_status); }; }; then
34047 eval "$as_ac_var=yes"
34049 echo "$as_me: failed program was:" >&5
34050 sed 's/^/| /' conftest.$ac_ext >&5
34052 eval "$as_ac_var=no"
34055 rm -f core conftest.err conftest.$ac_objext \
34056 conftest$ac_exeext conftest.$ac_ext
34058 ac_res=`eval echo '${'$as_ac_var'}'`
34059 { echo "$as_me:$LINENO: result: $ac_res" >&5
34060 echo "${ECHO_T}$ac_res" >&6; }
34061 if test `eval echo '${'$as_ac_var'}'` = yes; then
34062 cat >>confdefs.h <<_ACEOF
34063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34070 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34071 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34072 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34073 echo $ECHO_N "(cached) $ECHO_C" >&6
34075 llvm_cv_llvmgcc_sanity="no"
34076 if test -x "$LLVMGCC" ; then
34077 cp /dev/null conftest.c
34078 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34079 grep 'target datalayout =' > /dev/null 2>&1
34080 if test $? -eq 0 ; then
34081 llvm_cv_llvmgcc_sanity="yes"
34086 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34087 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34089 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34090 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34091 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34092 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34093 LLVMCC1=$llvmcc1path
34095 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34096 LLVMCC1PLUS=$llvmcc1pluspath
34098 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34099 LLVMGCCDIR=$llvmgccdir
34101 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34102 LLVMGCCLIBEXEC=$llvmgcclibexec
34104 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34105 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34106 LLVMGCC_VERSION=$llvmgccversion
34108 LLVMGCC_MAJVERS=$llvmgccmajvers
34110 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34111 LLVMGCC_LANGS=$llvmgcclangs
34113 { echo "$as_me:$LINENO: result: ok" >&5
34114 echo "${ECHO_T}ok" >&6; }
34117 SHLIBEXT=$libltdl_cv_shlibext
34120 # Translate the various configuration directories and other basic
34121 # information into substitutions that will end up in Makefile.config.in
34122 # that these configured values can be used by the makefiles
34123 if test "${prefix}" = "NONE" ; then
34124 prefix="/usr/local"
34126 eval LLVM_PREFIX="${prefix}";
34127 eval LLVM_BINDIR="${prefix}/bin";
34128 eval LLVM_LIBDIR="${prefix}/lib";
34129 eval LLVM_DATADIR="${prefix}/share/llvm";
34130 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34131 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34132 eval LLVM_INCLUDEDIR="${prefix}/include";
34133 eval LLVM_INFODIR="${prefix}/info";
34134 eval LLVM_MANDIR="${prefix}/man";
34135 LLVM_CONFIGTIME=`date`
34147 # Place the various directores into the config.h file as #defines so that we
34148 # can know about the installation paths within LLVM.
34150 cat >>confdefs.h <<_ACEOF
34151 #define LLVM_PREFIX "$LLVM_PREFIX"
34155 cat >>confdefs.h <<_ACEOF
34156 #define LLVM_BINDIR "$LLVM_BINDIR"
34160 cat >>confdefs.h <<_ACEOF
34161 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34165 cat >>confdefs.h <<_ACEOF
34166 #define LLVM_DATADIR "$LLVM_DATADIR"
34170 cat >>confdefs.h <<_ACEOF
34171 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34175 cat >>confdefs.h <<_ACEOF
34176 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34180 cat >>confdefs.h <<_ACEOF
34181 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34185 cat >>confdefs.h <<_ACEOF
34186 #define LLVM_INFODIR "$LLVM_INFODIR"
34190 cat >>confdefs.h <<_ACEOF
34191 #define LLVM_MANDIR "$LLVM_MANDIR"
34195 cat >>confdefs.h <<_ACEOF
34196 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34200 cat >>confdefs.h <<_ACEOF
34201 #define LLVM_HOSTTRIPLE "$host"
34205 # Determine which bindings to build.
34206 if test "$BINDINGS_TO_BUILD" = auto ; then
34207 BINDINGS_TO_BUILD=""
34208 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34209 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34212 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34215 # This isn't really configurey, but it avoids having to repeat the list in
34220 # Do any work necessary to ensure that bindings have what they need.
34221 binding_prereqs_failed=0
34222 for a_binding in $BINDINGS_TO_BUILD ; do
34223 case "$a_binding" in
34225 if test "x$OCAMLC" = x ; then
34226 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34227 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34228 binding_prereqs_failed=1
34230 if test "x$OCAMLDEP" = x ; then
34231 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34232 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34233 binding_prereqs_failed=1
34235 if test "x$OCAMLOPT" = x ; then
34236 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34237 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34239 if test "x$with_ocaml_libdir" != xauto ; then
34240 OCAML_LIBDIR=$with_ocaml_libdir
34243 ocaml_stdlib="`"$OCAMLC" -where`"
34244 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34246 # ocaml stdlib is beneath our prefix; use stdlib
34247 OCAML_LIBDIR=$ocaml_stdlib
34250 # ocaml stdlib is outside our prefix; use libdir/ocaml
34251 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34258 if test "$binding_prereqs_failed" = 1 ; then
34259 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34260 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34261 { (exit 1); exit 1; }; }
34266 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34268 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34270 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
34272 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
34274 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
34277 ac_config_files="$ac_config_files Makefile.config"
34280 ac_config_files="$ac_config_files llvm.spec"
34283 ac_config_files="$ac_config_files docs/doxygen.cfg"
34286 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34289 ac_config_commands="$ac_config_commands setup"
34291 ac_config_commands="$ac_config_commands Makefile"
34294 ac_config_commands="$ac_config_commands Makefile.common"
34297 ac_config_commands="$ac_config_commands examples/Makefile"
34300 ac_config_commands="$ac_config_commands lib/Makefile"
34303 ac_config_commands="$ac_config_commands runtime/Makefile"
34306 ac_config_commands="$ac_config_commands test/Makefile"
34309 ac_config_commands="$ac_config_commands test/Makefile.tests"
34312 ac_config_commands="$ac_config_commands tools/Makefile"
34315 ac_config_commands="$ac_config_commands utils/Makefile"
34318 ac_config_commands="$ac_config_commands projects/Makefile"
34321 ac_config_commands="$ac_config_commands bindings/Makefile"
34324 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34328 cat >confcache <<\_ACEOF
34329 # This file is a shell script that caches the results of configure
34330 # tests run on this system so they can be shared between configure
34331 # scripts and configure runs, see configure's option --config-cache.
34332 # It is not useful on other systems. If it contains results you don't
34333 # want to keep, you may remove or edit it.
34335 # config.status only pays attention to the cache file if you give it
34336 # the --recheck option to rerun configure.
34338 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34339 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34340 # following values.
34344 # The following way of writing the cache mishandles newlines in values,
34345 # but we know of no workaround that is simple, portable, and efficient.
34346 # So, we kill variables containing newlines.
34347 # Ultrix sh set writes to stderr and can't be redirected directly,
34348 # and sets the high bit in the cache file unless we assign to the vars.
34350 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34351 eval ac_val=\$$ac_var
34355 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34356 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34359 _ | IFS | as_nl) ;; #(
34360 *) $as_unset $ac_var ;;
34366 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34367 *${as_nl}ac_space=\ *)
34368 # `set' does not quote correctly, so add quotes (double-quote
34369 # substitution turns \\\\ into \\, and sed turns \\ into \).
34372 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34375 # `set' quotes correctly as required by POSIX, so do not add quotes.
34376 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34385 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34387 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34389 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34390 if test -w "$cache_file"; then
34391 test "x$cache_file" != "x/dev/null" &&
34392 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34393 echo "$as_me: updating cache $cache_file" >&6;}
34394 cat confcache >$cache_file
34396 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34397 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34402 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34403 # Let make expand exec_prefix.
34404 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34406 DEFS=-DHAVE_CONFIG_H
34410 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34411 # 1. Remove the extension, and $U if already installed.
34412 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34413 ac_i=`echo "$ac_i" | sed "$ac_script"`
34414 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34415 # will be set to the directory where LIBOBJS objects are built.
34416 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34417 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34419 LIBOBJS=$ac_libobjs
34421 LTLIBOBJS=$ac_ltlibobjs
34424 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34425 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34426 Usually this means the macro was only invoked conditionally." >&5
34427 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34428 Usually this means the macro was only invoked conditionally." >&2;}
34429 { (exit 1); exit 1; }; }
34431 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34432 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34433 Usually this means the macro was only invoked conditionally." >&5
34434 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34435 Usually this means the macro was only invoked conditionally." >&2;}
34436 { (exit 1); exit 1; }; }
34439 : ${CONFIG_STATUS=./config.status}
34440 ac_clean_files_save=$ac_clean_files
34441 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34442 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34443 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34444 cat >$CONFIG_STATUS <<_ACEOF
34446 # Generated by $as_me.
34447 # Run this file to recreate the current configuration.
34448 # Compiler output produced by configure, useful for debugging
34449 # configure, is in config.log if it exists.
34452 ac_cs_recheck=false
34454 SHELL=\${CONFIG_SHELL-$SHELL}
34457 cat >>$CONFIG_STATUS <<\_ACEOF
34458 ## --------------------- ##
34459 ## M4sh Initialization. ##
34460 ## --------------------- ##
34462 # Be Bourne compatible
34463 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34466 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34467 # is contrary to our usage. Disable this feature.
34468 alias -g '${1+"$@"}'='"$@"'
34469 setopt NO_GLOB_SUBST
34471 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34473 BIN_SH=xpg4; export BIN_SH # for Tru64
34474 DUALCASE=1; export DUALCASE # for MKS sh
34478 # Avoid depending upon Character Ranges.
34479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34482 as_cr_digits='0123456789'
34483 as_cr_alnum=$as_cr_Letters$as_cr_digits
34485 # The user is always right.
34486 if test "${PATH_SEPARATOR+set}" != set; then
34487 echo "#! /bin/sh" >conf$$.sh
34488 echo "exit 0" >>conf$$.sh
34490 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34498 # Support unset when possible.
34499 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34507 # We need space, tab and new line, in precisely that order. Quoting is
34508 # there to prevent editors from complaining about space-tab.
34509 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34510 # splitting by setting IFS to empty value.)
34515 # Find who we are. Look in the path if we contain no directory separator.
34517 *[\\/]* ) as_myself=$0 ;;
34518 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34519 for as_dir in $PATH
34522 test -z "$as_dir" && as_dir=.
34523 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34529 # We did not find ourselves, most probably we were run as `sh COMMAND'
34530 # in which case we are not to be found in the path.
34531 if test "x$as_myself" = x; then
34534 if test ! -f "$as_myself"; then
34535 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34536 { (exit 1); exit 1; }
34539 # Work around bugs in pre-3.0 UWIN ksh.
34540 for as_var in ENV MAIL MAILPATH
34541 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34549 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34550 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34551 LC_TELEPHONE LC_TIME
34553 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34554 eval $as_var=C; export $as_var
34556 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34560 # Required to use basename.
34561 if expr a : '\(a\)' >/dev/null 2>&1 &&
34562 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34568 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34569 as_basename=basename
34575 # Name of the executable.
34576 as_me=`$as_basename -- "$0" ||
34577 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34578 X"$0" : 'X\(//\)$' \| \
34579 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34581 sed '/^.*\/\([^/][^/]*\)\/*$/{
34600 as_lineno_1=$LINENO
34601 as_lineno_2=$LINENO
34602 test "x$as_lineno_1" != "x$as_lineno_2" &&
34603 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34605 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34606 # uniformly replaced by the line number. The first 'sed' inserts a
34607 # line-number line after each line using $LINENO; the second 'sed'
34608 # does the real work. The second script uses 'N' to pair each
34609 # line-number line with the line containing $LINENO, and appends
34610 # trailing '-' during substitution so that $LINENO is not a special
34611 # case at line end.
34612 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34613 # scripts with optimization help from Paolo Bonzini. Blame Lee
34614 # E. McMahon (1931-1989) for sed's syntax. :-)
34626 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34629 ' >$as_me.lineno &&
34630 chmod +x "$as_me.lineno" ||
34631 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34632 { (exit 1); exit 1; }; }
34634 # Don't try to exec as it changes $[0], causing all sort of problems
34635 # (the dirname of $[0] is not the place where we might find the
34636 # original and so on. Autoconf is especially sensitive to this).
34637 . "./$as_me.lineno"
34638 # Exit status is that of the last command.
34643 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34649 ECHO_C= ECHO_N= ECHO_T=
34650 case `echo -n x` in
34652 case `echo 'x\c'` in
34653 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34660 if expr a : '\(a\)' >/dev/null 2>&1 &&
34661 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34667 rm -f conf$$ conf$$.exe conf$$.file
34668 if test -d conf$$.dir; then
34669 rm -f conf$$.dir/conf$$.file
34675 if ln -s conf$$.file conf$$ 2>/dev/null; then
34677 # ... but there are two gotchas:
34678 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34679 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34680 # In both cases, we have to default to `cp -p'.
34681 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34683 elif ln conf$$.file conf$$ 2>/dev/null; then
34688 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34689 rmdir conf$$.dir 2>/dev/null
34691 if mkdir -p . 2>/dev/null; then
34694 test -d ./-p && rmdir ./-p
34698 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34699 # systems may use methods other than mode bits to determine executability.
34700 cat >conf$$.file <<_ASEOF
34704 chmod +x conf$$.file
34705 if test -x conf$$.file >/dev/null 2>&1; then
34706 as_executable_p="test -x"
34712 # Sed expression to map a string onto a valid CPP name.
34713 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34715 # Sed expression to map a string onto a valid variable name.
34716 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34721 # Save the log message, to keep $[0] and so on meaningful, and to
34722 # report actual input values of CONFIG_FILES etc. instead of their
34723 # values after options handling.
34725 This file was extended by llvm $as_me 2.2svn, which was
34726 generated by GNU Autoconf 2.60. Invocation command line was
34728 CONFIG_FILES = $CONFIG_FILES
34729 CONFIG_HEADERS = $CONFIG_HEADERS
34730 CONFIG_LINKS = $CONFIG_LINKS
34731 CONFIG_COMMANDS = $CONFIG_COMMANDS
34734 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34739 cat >>$CONFIG_STATUS <<_ACEOF
34740 # Files that config.status was made for.
34741 config_files="$ac_config_files"
34742 config_headers="$ac_config_headers"
34743 config_commands="$ac_config_commands"
34747 cat >>$CONFIG_STATUS <<\_ACEOF
34749 \`$as_me' instantiates files from templates according to the
34750 current configuration.
34752 Usage: $0 [OPTIONS] [FILE]...
34754 -h, --help print this help, then exit
34755 -V, --version print version number, then exit
34756 -q, --quiet do not print progress messages
34757 -d, --debug don't remove temporary files
34758 --recheck update $as_me by reconfiguring in the same conditions
34759 --file=FILE[:TEMPLATE]
34760 instantiate the configuration file FILE
34761 --header=FILE[:TEMPLATE]
34762 instantiate the configuration header FILE
34764 Configuration files:
34767 Configuration headers:
34770 Configuration commands:
34773 Report bugs to <bug-autoconf@gnu.org>."
34776 cat >>$CONFIG_STATUS <<_ACEOF
34778 llvm config.status 2.2svn
34779 configured by $0, generated by GNU Autoconf 2.60,
34780 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34782 Copyright (C) 2006 Free Software Foundation, Inc.
34783 This config.status script is free software; the Free Software Foundation
34784 gives unlimited permission to copy, distribute and modify it."
34791 cat >>$CONFIG_STATUS <<\_ACEOF
34792 # If no file are specified by the user, then we need to provide default
34793 # value. By we need to know if files were specified by the user.
34799 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34800 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34811 # Handling of the options.
34812 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34814 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34815 echo "$ac_cs_version"; exit ;;
34816 --debug | --debu | --deb | --de | --d | -d )
34818 --file | --fil | --fi | --f )
34820 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34821 ac_need_defaults=false;;
34822 --header | --heade | --head | --hea )
34824 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34825 ac_need_defaults=false;;
34827 # Conflict between --help and --header
34828 { echo "$as_me: error: ambiguous option: $1
34829 Try \`$0 --help' for more information." >&2
34830 { (exit 1); exit 1; }; };;
34831 --help | --hel | -h )
34832 echo "$ac_cs_usage"; exit ;;
34833 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34834 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34837 # This is an error.
34838 -*) { echo "$as_me: error: unrecognized option: $1
34839 Try \`$0 --help' for more information." >&2
34840 { (exit 1); exit 1; }; } ;;
34842 *) ac_config_targets="$ac_config_targets $1"
34843 ac_need_defaults=false ;;
34849 ac_configure_extra_args=
34851 if $ac_cs_silent; then
34853 ac_configure_extra_args="$ac_configure_extra_args --silent"
34857 cat >>$CONFIG_STATUS <<_ACEOF
34858 if \$ac_cs_recheck; then
34859 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34860 CONFIG_SHELL=$SHELL
34861 export CONFIG_SHELL
34862 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34866 cat >>$CONFIG_STATUS <<\_ACEOF
34870 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34871 ## Running $as_me. ##
34877 cat >>$CONFIG_STATUS <<_ACEOF
34881 llvm_src="${srcdir}"
34885 cat >>$CONFIG_STATUS <<\_ACEOF
34887 # Handling of arguments.
34888 for ac_config_target in $ac_config_targets
34890 case $ac_config_target in
34891 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34892 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34893 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34894 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34895 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34896 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34897 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34898 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34899 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34900 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34901 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34902 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34903 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34904 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34905 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34906 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34907 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34908 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34909 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34910 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34911 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34912 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34914 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34915 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34916 { (exit 1); exit 1; }; };;
34921 # If the user did not use the arguments to specify the items to instantiate,
34922 # then the envvar interface is used. Set only those that are not.
34923 # We use the long form for the default assignment because of an extremely
34924 # bizarre bug on SunOS 4.1.3.
34925 if $ac_need_defaults; then
34926 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34927 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34928 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34931 # Have a temporary directory for convenience. Make it in the build tree
34932 # simply because there is no reason against having it here, and in addition,
34933 # creating and moving files from /tmp can sometimes cause problems.
34934 # Hook for its removal unless debugging.
34935 # Note that there is a small window in which the directory will not be cleaned:
34936 # after its creation but before its name has been assigned to `$tmp'.
34940 trap 'exit_status=$?
34941 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34943 trap '{ (exit 1); exit 1; }' 1 2 13 15
34945 # Create a (secure) tmp directory for tmp files.
34948 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34949 test -n "$tmp" && test -d "$tmp"
34952 tmp=./conf$$-$RANDOM
34953 (umask 077 && mkdir "$tmp")
34956 echo "$me: cannot create a temporary directory in ." >&2
34957 { (exit 1); exit 1; }
34961 # Set up the sed scripts for CONFIG_FILES section.
34964 # No need to generate the scripts if there are no CONFIG_FILES.
34965 # This happens for instance when ./config.status config.h
34966 if test -n "$CONFIG_FILES"; then
34973 for ac_last_try in false false false false false :; do
34974 cat >conf$$subs.sed <<_ACEOF
34975 SHELL!$SHELL$ac_delim
34976 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34977 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34978 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34979 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34980 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34981 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34982 exec_prefix!$exec_prefix$ac_delim
34983 prefix!$prefix$ac_delim
34984 program_transform_name!$program_transform_name$ac_delim
34985 bindir!$bindir$ac_delim
34986 sbindir!$sbindir$ac_delim
34987 libexecdir!$libexecdir$ac_delim
34988 datarootdir!$datarootdir$ac_delim
34989 datadir!$datadir$ac_delim
34990 sysconfdir!$sysconfdir$ac_delim
34991 sharedstatedir!$sharedstatedir$ac_delim
34992 localstatedir!$localstatedir$ac_delim
34993 includedir!$includedir$ac_delim
34994 oldincludedir!$oldincludedir$ac_delim
34995 docdir!$docdir$ac_delim
34996 infodir!$infodir$ac_delim
34997 htmldir!$htmldir$ac_delim
34998 dvidir!$dvidir$ac_delim
34999 pdfdir!$pdfdir$ac_delim
35000 psdir!$psdir$ac_delim
35001 libdir!$libdir$ac_delim
35002 localedir!$localedir$ac_delim
35003 mandir!$mandir$ac_delim
35004 DEFS!$DEFS$ac_delim
35005 ECHO_C!$ECHO_C$ac_delim
35006 ECHO_N!$ECHO_N$ac_delim
35007 ECHO_T!$ECHO_T$ac_delim
35008 LIBS!$LIBS$ac_delim
35009 build_alias!$build_alias$ac_delim
35010 host_alias!$host_alias$ac_delim
35011 target_alias!$target_alias$ac_delim
35012 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35013 subdirs!$subdirs$ac_delim
35014 build!$build$ac_delim
35015 build_cpu!$build_cpu$ac_delim
35016 build_vendor!$build_vendor$ac_delim
35017 build_os!$build_os$ac_delim
35018 host!$host$ac_delim
35019 host_cpu!$host_cpu$ac_delim
35020 host_vendor!$host_vendor$ac_delim
35021 host_os!$host_os$ac_delim
35022 target!$target$ac_delim
35023 target_cpu!$target_cpu$ac_delim
35024 target_vendor!$target_vendor$ac_delim
35025 target_os!$target_os$ac_delim
35027 LINKALL!$LINKALL$ac_delim
35028 NOLINKALL!$NOLINKALL$ac_delim
35029 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35030 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35031 ARCH!$ARCH$ac_delim
35032 ENDIAN!$ENDIAN$ac_delim
35034 CFLAGS!$CFLAGS$ac_delim
35035 LDFLAGS!$LDFLAGS$ac_delim
35036 CPPFLAGS!$CPPFLAGS$ac_delim
35037 ac_ct_CC!$ac_ct_CC$ac_delim
35038 EXEEXT!$EXEEXT$ac_delim
35039 OBJEXT!$OBJEXT$ac_delim
35041 GREP!$GREP$ac_delim
35042 EGREP!$EGREP$ac_delim
35043 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35044 BUILD_CC!$BUILD_CC$ac_delim
35045 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35046 CVSBUILD!$CVSBUILD$ac_delim
35047 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35048 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35049 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35050 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35051 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35053 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35054 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35055 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35056 ENABLE_PIC!$ENABLE_PIC$ac_delim
35057 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35058 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35059 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35061 CXXFLAGS!$CXXFLAGS$ac_delim
35062 ac_ct_CXX!$ac_ct_CXX$ac_delim
35064 LEXLIB!$LEXLIB$ac_delim
35065 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35066 FLEX!$FLEX$ac_delim
35067 YACC!$YACC$ac_delim
35068 YFLAGS!$YFLAGS$ac_delim
35069 BISON!$BISON$ac_delim
35071 ifGNUmake!$ifGNUmake$ac_delim
35074 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35076 elif $ac_last_try; then
35077 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35078 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35079 { (exit 1); exit 1; }; }
35081 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35085 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35086 if test -n "$ac_eof"; then
35087 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35088 ac_eof=`expr $ac_eof + 1`
35091 cat >>$CONFIG_STATUS <<_ACEOF
35092 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35093 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35096 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35097 s/^/s,@/; s/!/@,|#_!!_#|/
35100 s/'"$ac_delim"'$/,g/; t
35102 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35103 ' >>$CONFIG_STATUS <conf$$subs.sed
35104 rm -f conf$$subs.sed
35105 cat >>$CONFIG_STATUS <<_ACEOF
35111 for ac_last_try in false false false false false :; do
35112 cat >conf$$subs.sed <<_ACEOF
35113 LN_S!$LN_S$ac_delim
35116 DATE!$DATE$ac_delim
35117 FIND!$FIND$ac_delim
35118 MKDIR!$MKDIR$ac_delim
35120 RANLIB!$RANLIB$ac_delim
35124 BINPWD!$BINPWD$ac_delim
35125 GRAPHVIZ!$GRAPHVIZ$ac_delim
35128 DOTTY!$DOTTY$ac_delim
35129 PERL!$PERL$ac_delim
35130 HAVE_PERL!$HAVE_PERL$ac_delim
35131 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35132 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35133 INSTALL_DATA!$INSTALL_DATA$ac_delim
35134 BZIP2!$BZIP2$ac_delim
35135 DOXYGEN!$DOXYGEN$ac_delim
35136 GROFF!$GROFF$ac_delim
35137 GZIP!$GZIP$ac_delim
35138 POD2HTML!$POD2HTML$ac_delim
35139 POD2MAN!$POD2MAN$ac_delim
35140 RUNTEST!$RUNTEST$ac_delim
35141 TCLSH!$TCLSH$ac_delim
35143 OCAMLC!$OCAMLC$ac_delim
35144 OCAMLOPT!$OCAMLOPT$ac_delim
35145 OCAMLDEP!$OCAMLDEP$ac_delim
35146 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35147 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35148 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35149 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35150 LIBADD_DL!$LIBADD_DL$ac_delim
35151 ECHO!$ECHO$ac_delim
35153 STRIP!$STRIP$ac_delim
35154 CXXCPP!$CXXCPP$ac_delim
35156 FFLAGS!$FFLAGS$ac_delim
35157 ac_ct_F77!$ac_ct_F77$ac_delim
35158 LIBTOOL!$LIBTOOL$ac_delim
35159 LLVMGCC!$LLVMGCC$ac_delim
35160 LLVMGXX!$LLVMGXX$ac_delim
35161 USE_UDIS86!$USE_UDIS86$ac_delim
35162 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35163 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35164 ALLOCA!$ALLOCA$ac_delim
35165 MMAP_FILE!$MMAP_FILE$ac_delim
35166 LLVMCC1!$LLVMCC1$ac_delim
35167 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35168 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35169 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35170 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35171 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35172 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35173 SHLIBEXT!$SHLIBEXT$ac_delim
35174 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35175 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35176 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35177 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35178 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35179 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35180 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35181 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35182 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35183 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35184 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35185 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35186 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35187 LIBOBJS!$LIBOBJS$ac_delim
35188 LTLIBOBJS!$LTLIBOBJS$ac_delim
35191 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
35193 elif $ac_last_try; then
35194 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35195 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35196 { (exit 1); exit 1; }; }
35198 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35202 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35203 if test -n "$ac_eof"; then
35204 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35205 ac_eof=`expr $ac_eof + 1`
35208 cat >>$CONFIG_STATUS <<_ACEOF
35209 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35210 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35213 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35214 s/^/s,@/; s/!/@,|#_!!_#|/
35217 s/'"$ac_delim"'$/,g/; t
35219 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35220 ' >>$CONFIG_STATUS <conf$$subs.sed
35221 rm -f conf$$subs.sed
35222 cat >>$CONFIG_STATUS <<_ACEOF
35229 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35230 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35231 # trailing colons and then remove the whole line if VPATH becomes empty
35232 # (actually we leave an empty line to preserve line numbers).
35233 if test "x$srcdir" = x.; then
35234 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35235 s/:*\$(srcdir):*/:/
35236 s/:*\${srcdir}:*/:/
35238 s/^\([^=]*=[ ]*\):*/\1/
35244 cat >>$CONFIG_STATUS <<\_ACEOF
35245 fi # test -n "$CONFIG_FILES"
35248 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35251 :[FHLC]) ac_mode=$ac_tag; continue;;
35253 case $ac_mode$ac_tag in
35255 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35256 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35257 { (exit 1); exit 1; }; };;
35258 :[FH]-) ac_tag=-:-;;
35259 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35276 -) ac_f="$tmp/stdin";;
35277 *) # Look for the file first in the build tree, then in the source tree
35278 # (if the path is not absolute). The absolute path cannot be DOS-style,
35279 # because $ac_f cannot contain `:'.
35283 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35285 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35286 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35287 { (exit 1); exit 1; }; };;
35289 ac_file_inputs="$ac_file_inputs $ac_f"
35292 # Let's still pretend it is `configure' which instantiates (i.e., don't
35293 # use $as_me), people would be surprised to read:
35294 # /* config.h. Generated by config.status. */
35295 configure_input="Generated from "`IFS=:
35296 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35297 if test x"$ac_file" != x-; then
35298 configure_input="$ac_file. $configure_input"
35299 { echo "$as_me:$LINENO: creating $ac_file" >&5
35300 echo "$as_me: creating $ac_file" >&6;}
35304 *:-:* | *:-) cat >"$tmp/stdin";;
35309 ac_dir=`$as_dirname -- "$ac_file" ||
35310 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35311 X"$ac_file" : 'X\(//\)[^/]' \| \
35312 X"$ac_file" : 'X\(//\)$' \| \
35313 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35319 /^X\(\/\/\)[^/].*/{
35334 -*) as_dir=./$as_dir;;
35336 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35340 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35341 *) as_qdir=$as_dir;;
35343 as_dirs="'$as_qdir' $as_dirs"
35344 as_dir=`$as_dirname -- "$as_dir" ||
35345 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35346 X"$as_dir" : 'X\(//\)[^/]' \| \
35347 X"$as_dir" : 'X\(//\)$' \| \
35348 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35354 /^X\(\/\/\)[^/].*/{
35367 test -d "$as_dir" && break
35369 test -z "$as_dirs" || eval "mkdir $as_dirs"
35370 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35371 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35372 { (exit 1); exit 1; }; }; }
35376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35378 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35379 # A ".." for each directory in $ac_dir_suffix.
35380 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35381 case $ac_top_builddir_sub in
35382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35386 ac_abs_top_builddir=$ac_pwd
35387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35388 # for backward compatibility:
35389 ac_top_builddir=$ac_top_build_prefix
35392 .) # We are building in place.
35394 ac_top_srcdir=$ac_top_builddir_sub
35395 ac_abs_top_srcdir=$ac_pwd ;;
35396 [\\/]* | ?:[\\/]* ) # Absolute name.
35397 ac_srcdir=$srcdir$ac_dir_suffix;
35398 ac_top_srcdir=$srcdir
35399 ac_abs_top_srcdir=$srcdir ;;
35400 *) # Relative name.
35401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35402 ac_top_srcdir=$ac_top_build_prefix$srcdir
35403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35415 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35416 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35420 cat >>$CONFIG_STATUS <<\_ACEOF
35421 # If the template does not know about datarootdir, expand it.
35422 # FIXME: This hack should be removed a few years after 2.60.
35423 ac_datarootdir_hack=; ac_datarootdir_seen=
35425 case `sed -n '/datarootdir/ {
35434 ' $ac_file_inputs` in
35435 *datarootdir*) ac_datarootdir_seen=yes;;
35436 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35437 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35438 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35440 cat >>$CONFIG_STATUS <<_ACEOF
35441 ac_datarootdir_hack='
35442 s&@datadir@&$datadir&g
35443 s&@docdir@&$docdir&g
35444 s&@infodir@&$infodir&g
35445 s&@localedir@&$localedir&g
35446 s&@mandir@&$mandir&g
35447 s&\\\${datarootdir}&$datarootdir&g' ;;
35451 # Neutralize VPATH when `$srcdir' = `.'.
35452 # Shell code in configure.ac might set extrasub.
35453 # FIXME: do we really want to maintain this feature?
35454 cat >>$CONFIG_STATUS <<_ACEOF
35458 cat >>$CONFIG_STATUS <<\_ACEOF
35460 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35461 s&@configure_input@&$configure_input&;t t
35462 s&@top_builddir@&$ac_top_builddir_sub&;t t
35463 s&@srcdir@&$ac_srcdir&;t t
35464 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35465 s&@top_srcdir@&$ac_top_srcdir&;t t
35466 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35467 s&@builddir@&$ac_builddir&;t t
35468 s&@abs_builddir@&$ac_abs_builddir&;t t
35469 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35470 s&@INSTALL@&$ac_INSTALL&;t t
35471 $ac_datarootdir_hack
35472 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35474 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35475 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35476 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35477 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35478 which seems to be undefined. Please make sure it is defined." >&5
35479 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35480 which seems to be undefined. Please make sure it is defined." >&2;}
35484 -) cat "$tmp/out"; rm -f "$tmp/out";;
35485 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35494 # Transform confdefs.h into a sed script `conftest.defines', that
35495 # substitutes the proper values into config.h.in to produce config.h.
35496 rm -f conftest.defines conftest.tail
35497 # First, append a space to every undef/define line, to ease matching.
35498 echo 's/$/ /' >conftest.defines
35499 # Then, protect against being on the right side of a sed subst, or in
35500 # an unquoted here document, in config.status. If some macros were
35501 # called several times there might be several #defines for the same
35502 # symbol, which is useless. But do not sort them, since the last
35503 # AC_DEFINE must be honored.
35504 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35505 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35506 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35507 # PARAMS is the parameter list in the macro definition--in most cases, it's
35508 # just an empty string.
35509 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35510 ac_dB='\\)[ (].*,\\1define\\2'
35518 s/^[ ]*#[ ]*define[ ][ ]*//
35523 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35524 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35525 ' >>conftest.defines
35527 # Remove the space that was appended to ease matching.
35528 # Then replace #undef with comments. This is necessary, for
35529 # example, in the case of _POSIX_SOURCE, which is predefined and required
35530 # on some systems where configure will not decide to define it.
35531 # (The regexp can be short, since the line contains either #define or #undef.)
35533 s,^[ #]*u.*,/* & */,' >>conftest.defines
35535 # Break up conftest.defines:
35536 ac_max_sed_lines=50
35538 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35539 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35540 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35542 ac_in='$ac_file_inputs'
35543 ac_out='"$tmp/out1"'
35544 ac_nxt='"$tmp/out2"'
35548 # Write a here document:
35549 cat >>$CONFIG_STATUS <<_ACEOF
35550 # First, check the format of the line:
35551 cat >"\$tmp/defines.sed" <<\\CEOF
35552 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35553 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35557 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35559 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35560 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35561 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35562 grep . conftest.tail >/dev/null || break
35563 rm -f conftest.defines
35564 mv conftest.tail conftest.defines
35566 rm -f conftest.defines conftest.tail
35568 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35569 cat >>$CONFIG_STATUS <<\_ACEOF
35570 if test x"$ac_file" != x-; then
35571 echo "/* $configure_input */" >"$tmp/config.h"
35572 cat "$ac_result" >>"$tmp/config.h"
35573 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35574 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35575 echo "$as_me: $ac_file is unchanged" >&6;}
35578 mv "$tmp/config.h" $ac_file
35581 echo "/* $configure_input */"
35587 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35588 echo "$as_me: executing $ac_file commands" >&6;}
35593 case $ac_file$ac_mode in
35594 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35595 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35596 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35597 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35598 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35599 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35600 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35601 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35602 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35603 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35604 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35605 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35606 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35607 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35608 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35609 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35610 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35611 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35612 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35613 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35614 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35615 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35616 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35617 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35623 { (exit 0); exit 0; }
35625 chmod +x $CONFIG_STATUS
35626 ac_clean_files=$ac_clean_files_save
35629 # configure is writing to config.log, and then calls config.status.
35630 # config.status does its own redirection, appending to config.log.
35631 # Unfortunately, on DOS this fails, as config.log is still kept open
35632 # by configure, so config.status won't be able to write to it; its
35633 # output is simply discarded. So we exec the FD to /dev/null,
35634 # effectively closing config.log, so it can be properly (re)opened and
35635 # appended to by config.status. When coming back to configure, we
35636 # need to make the FD available again.
35637 if test "$no_create" != yes; then
35639 ac_config_status_args=
35640 test "$silent" = yes &&
35641 ac_config_status_args="$ac_config_status_args --quiet"
35643 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35645 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35646 # would make configure fail if this is the last instruction.
35647 $ac_cs_success || { (exit 1); exit 1; }
35651 # CONFIG_SUBDIRS section.
35653 if test "$no_recursion" != yes; then
35655 # Remove --cache-file and --srcdir arguments so they do not pile up.
35656 ac_sub_configure_args=
35658 eval "set x $ac_configure_args"
35662 if test -n "$ac_prev"; then
35667 -cache-file | --cache-file | --cache-fil | --cache-fi \
35668 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35669 ac_prev=cache_file ;;
35670 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35671 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35674 --config-cache | -C)
35676 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35678 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35680 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35682 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35686 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35688 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35692 # Always prepend --prefix to ensure using the same prefix
35693 # in subdir configurations.
35694 ac_arg="--prefix=$prefix"
35696 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35698 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35701 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35703 # Do not complain, so a configure script can configure whichever
35704 # parts of a large source tree are present.
35705 test -d "$srcdir/$ac_dir" || continue
35707 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35708 echo "$as_me:$LINENO: $ac_msg" >&5
35712 -*) as_dir=./$as_dir;;
35714 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35718 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35719 *) as_qdir=$as_dir;;
35721 as_dirs="'$as_qdir' $as_dirs"
35722 as_dir=`$as_dirname -- "$as_dir" ||
35723 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35724 X"$as_dir" : 'X\(//\)[^/]' \| \
35725 X"$as_dir" : 'X\(//\)$' \| \
35726 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35732 /^X\(\/\/\)[^/].*/{
35745 test -d "$as_dir" && break
35747 test -z "$as_dirs" || eval "mkdir $as_dirs"
35748 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35749 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35750 { (exit 1); exit 1; }; }; }
35754 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35756 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35757 # A ".." for each directory in $ac_dir_suffix.
35758 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35759 case $ac_top_builddir_sub in
35760 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35761 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35764 ac_abs_top_builddir=$ac_pwd
35765 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35766 # for backward compatibility:
35767 ac_top_builddir=$ac_top_build_prefix
35770 .) # We are building in place.
35772 ac_top_srcdir=$ac_top_builddir_sub
35773 ac_abs_top_srcdir=$ac_pwd ;;
35774 [\\/]* | ?:[\\/]* ) # Absolute name.
35775 ac_srcdir=$srcdir$ac_dir_suffix;
35776 ac_top_srcdir=$srcdir
35777 ac_abs_top_srcdir=$srcdir ;;
35778 *) # Relative name.
35779 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35780 ac_top_srcdir=$ac_top_build_prefix$srcdir
35781 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35783 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35788 # Check for guested configure; otherwise get Cygnus style configure.
35789 if test -f "$ac_srcdir/configure.gnu"; then
35790 ac_sub_configure=$ac_srcdir/configure.gnu
35791 elif test -f "$ac_srcdir/configure"; then
35792 ac_sub_configure=$ac_srcdir/configure
35793 elif test -f "$ac_srcdir/configure.in"; then
35794 # This should be Cygnus configure.
35795 ac_sub_configure=$ac_aux_dir/configure
35797 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35798 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35802 # The recursion is here.
35803 if test -n "$ac_sub_configure"; then
35804 # Make the cache file name correct relative to the subdirectory.
35805 case $cache_file in
35806 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35807 *) # Relative name.
35808 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35811 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35812 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35813 # The eval makes quoting arguments work.
35814 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35815 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35816 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35817 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35818 { (exit 1); exit 1; }; }