2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 1.9cvs.
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-2005 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='1.9cvs'
719 PACKAGE_STRING='llvm 1.9cvs'
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
884 CONVENIENCE_LTDL_TRUE
885 CONVENIENCE_LTDL_FALSE
919 ac_precious_vars='build_alias
935 ac_subdirs_all='projects/sample
943 projects/llvm-poolalloc
944 projects/llvm-kernel'
946 # Initialize some variables set by options.
948 ac_init_version=false
949 # The variables have the same names as the options, with
950 # dashes changed to underlines.
958 program_transform_name=s,x,x,
966 # Installation directory options.
967 # These are left unexpanded so users can "make install exec_prefix=/foo"
968 # and all the variables that are supposed to be based on exec_prefix
969 # by default will actually change.
970 # Use braces instead of parens because sh, perl, etc. also accept them.
971 # (The list follows the same order as the GNU Coding Standards.)
972 bindir='${exec_prefix}/bin'
973 sbindir='${exec_prefix}/sbin'
974 libexecdir='${exec_prefix}/libexec'
975 datarootdir='${prefix}/share'
976 datadir='${datarootdir}'
977 sysconfdir='${prefix}/etc'
978 sharedstatedir='${prefix}/com'
979 localstatedir='${prefix}/var'
980 includedir='${prefix}/include'
981 oldincludedir='/usr/include'
982 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
983 infodir='${datarootdir}/info'
988 libdir='${exec_prefix}/lib'
989 localedir='${datarootdir}/locale'
990 mandir='${datarootdir}/man'
996 # If the previous option needs an argument, assign it.
997 if test -n "$ac_prev"; then
998 eval $ac_prev=\$ac_option
1004 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008 # Accept the important Cygnus configure options, so we can diagnose typos.
1010 case $ac_dashdash$ac_option in
1014 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1016 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1017 bindir=$ac_optarg ;;
1019 -build | --build | --buil | --bui | --bu)
1020 ac_prev=build_alias ;;
1021 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1022 build_alias=$ac_optarg ;;
1024 -cache-file | --cache-file | --cache-fil | --cache-fi \
1025 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1026 ac_prev=cache_file ;;
1027 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1028 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1029 cache_file=$ac_optarg ;;
1031 --config-cache | -C)
1032 cache_file=config.cache ;;
1034 -datadir | --datadir | --datadi | --datad)
1036 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1037 datadir=$ac_optarg ;;
1039 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1040 | --dataroo | --dataro | --datar)
1041 ac_prev=datarootdir ;;
1042 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1043 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1044 datarootdir=$ac_optarg ;;
1046 -disable-* | --disable-*)
1047 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1050 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1051 { (exit 1); exit 1; }; }
1052 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1053 eval enable_$ac_feature=no ;;
1055 -docdir | --docdir | --docdi | --doc | --do)
1057 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058 docdir=$ac_optarg ;;
1060 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1062 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063 dvidir=$ac_optarg ;;
1065 -enable-* | --enable-*)
1066 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1069 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1072 eval enable_$ac_feature=\$ac_optarg ;;
1074 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1075 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1076 | --exec | --exe | --ex)
1077 ac_prev=exec_prefix ;;
1078 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1079 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1080 | --exec=* | --exe=* | --ex=*)
1081 exec_prefix=$ac_optarg ;;
1083 -gas | --gas | --ga | --g)
1084 # Obsolete; use --with-gas.
1087 -help | --help | --hel | --he | -h)
1088 ac_init_help=long ;;
1089 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1090 ac_init_help=recursive ;;
1091 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1092 ac_init_help=short ;;
1094 -host | --host | --hos | --ho)
1095 ac_prev=host_alias ;;
1096 -host=* | --host=* | --hos=* | --ho=*)
1097 host_alias=$ac_optarg ;;
1099 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1101 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1103 htmldir=$ac_optarg ;;
1105 -includedir | --includedir | --includedi | --included | --include \
1106 | --includ | --inclu | --incl | --inc)
1107 ac_prev=includedir ;;
1108 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1109 | --includ=* | --inclu=* | --incl=* | --inc=*)
1110 includedir=$ac_optarg ;;
1112 -infodir | --infodir | --infodi | --infod | --info | --inf)
1114 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1115 infodir=$ac_optarg ;;
1117 -libdir | --libdir | --libdi | --libd)
1119 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1120 libdir=$ac_optarg ;;
1122 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1123 | --libexe | --libex | --libe)
1124 ac_prev=libexecdir ;;
1125 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1126 | --libexe=* | --libex=* | --libe=*)
1127 libexecdir=$ac_optarg ;;
1129 -localedir | --localedir | --localedi | --localed | --locale)
1130 ac_prev=localedir ;;
1131 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1132 localedir=$ac_optarg ;;
1134 -localstatedir | --localstatedir | --localstatedi | --localstated \
1135 | --localstate | --localstat | --localsta | --localst | --locals)
1136 ac_prev=localstatedir ;;
1137 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1138 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1139 localstatedir=$ac_optarg ;;
1141 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1143 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1144 mandir=$ac_optarg ;;
1146 -nfp | --nfp | --nf)
1147 # Obsolete; use --without-fp.
1150 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1151 | --no-cr | --no-c | -n)
1154 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1155 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1158 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1159 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1160 | --oldin | --oldi | --old | --ol | --o)
1161 ac_prev=oldincludedir ;;
1162 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1163 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1164 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1165 oldincludedir=$ac_optarg ;;
1167 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1169 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1170 prefix=$ac_optarg ;;
1172 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1173 | --program-pre | --program-pr | --program-p)
1174 ac_prev=program_prefix ;;
1175 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1176 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1177 program_prefix=$ac_optarg ;;
1179 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1180 | --program-suf | --program-su | --program-s)
1181 ac_prev=program_suffix ;;
1182 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1183 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1184 program_suffix=$ac_optarg ;;
1186 -program-transform-name | --program-transform-name \
1187 | --program-transform-nam | --program-transform-na \
1188 | --program-transform-n | --program-transform- \
1189 | --program-transform | --program-transfor \
1190 | --program-transfo | --program-transf \
1191 | --program-trans | --program-tran \
1192 | --progr-tra | --program-tr | --program-t)
1193 ac_prev=program_transform_name ;;
1194 -program-transform-name=* | --program-transform-name=* \
1195 | --program-transform-nam=* | --program-transform-na=* \
1196 | --program-transform-n=* | --program-transform-=* \
1197 | --program-transform=* | --program-transfor=* \
1198 | --program-transfo=* | --program-transf=* \
1199 | --program-trans=* | --program-tran=* \
1200 | --progr-tra=* | --program-tr=* | --program-t=*)
1201 program_transform_name=$ac_optarg ;;
1203 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1205 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1206 pdfdir=$ac_optarg ;;
1208 -psdir | --psdir | --psdi | --psd | --ps)
1210 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1214 | -silent | --silent | --silen | --sile | --sil)
1217 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1219 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1221 sbindir=$ac_optarg ;;
1223 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1224 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1225 | --sharedst | --shareds | --shared | --share | --shar \
1227 ac_prev=sharedstatedir ;;
1228 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1229 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1230 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1232 sharedstatedir=$ac_optarg ;;
1234 -site | --site | --sit)
1236 -site=* | --site=* | --sit=*)
1239 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1241 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1242 srcdir=$ac_optarg ;;
1244 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1245 | --syscon | --sysco | --sysc | --sys | --sy)
1246 ac_prev=sysconfdir ;;
1247 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1248 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1249 sysconfdir=$ac_optarg ;;
1251 -target | --target | --targe | --targ | --tar | --ta | --t)
1252 ac_prev=target_alias ;;
1253 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1254 target_alias=$ac_optarg ;;
1256 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1259 -version | --version | --versio | --versi | --vers | -V)
1260 ac_init_version=: ;;
1263 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1264 # Reject names that are not valid shell variable names.
1265 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1266 { echo "$as_me: error: invalid package name: $ac_package" >&2
1267 { (exit 1); exit 1; }; }
1268 ac_package=`echo $ac_package| sed 's/-/_/g'`
1269 eval with_$ac_package=\$ac_optarg ;;
1271 -without-* | --without-*)
1272 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1275 { echo "$as_me: error: invalid package name: $ac_package" >&2
1276 { (exit 1); exit 1; }; }
1277 ac_package=`echo $ac_package | sed 's/-/_/g'`
1278 eval with_$ac_package=no ;;
1281 # Obsolete; use --with-x.
1284 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1285 | --x-incl | --x-inc | --x-in | --x-i)
1286 ac_prev=x_includes ;;
1287 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1288 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1289 x_includes=$ac_optarg ;;
1291 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1292 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1293 ac_prev=x_libraries ;;
1294 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1295 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1296 x_libraries=$ac_optarg ;;
1298 -*) { echo "$as_me: error: unrecognized option: $ac_option
1299 Try \`$0 --help' for more information." >&2
1300 { (exit 1); exit 1; }; }
1304 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1305 # Reject names that are not valid shell variable names.
1306 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1307 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1308 { (exit 1); exit 1; }; }
1309 eval $ac_envvar=\$ac_optarg
1310 export $ac_envvar ;;
1313 # FIXME: should be removed in autoconf 3.0.
1314 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1315 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1316 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1317 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1323 if test -n "$ac_prev"; then
1324 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1325 { echo "$as_me: error: missing argument to $ac_option" >&2
1326 { (exit 1); exit 1; }; }
1329 # Be sure to have absolute directory names.
1330 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1331 datadir sysconfdir sharedstatedir localstatedir includedir \
1332 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1333 libdir localedir mandir
1335 eval ac_val=\$$ac_var
1337 [\\/$]* | ?:[\\/]* ) continue;;
1338 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1340 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1341 { (exit 1); exit 1; }; }
1344 # There might be people who depend on the old broken behavior: `$host'
1345 # used to hold the argument of --host etc.
1346 # FIXME: To remove some day.
1349 target=$target_alias
1351 # FIXME: To remove some day.
1352 if test "x$host_alias" != x; then
1353 if test "x$build_alias" = x; then
1354 cross_compiling=maybe
1355 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1356 If a cross compiler is detected then cross compile mode will be used." >&2
1357 elif test "x$build_alias" != "x$host_alias"; then
1363 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365 test "$silent" = yes && exec 6>/dev/null
1368 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1369 ac_ls_di=`ls -di .` &&
1370 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1371 { echo "$as_me: error: Working directory cannot be determined" >&2
1372 { (exit 1); exit 1; }; }
1373 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1374 { echo "$as_me: error: pwd does not report name of working directory" >&2
1375 { (exit 1); exit 1; }; }
1378 # Find the source files, if location was not specified.
1379 if test -z "$srcdir"; then
1380 ac_srcdir_defaulted=yes
1381 # Try the directory containing this script, then the parent directory.
1382 ac_confdir=`$as_dirname -- "$0" ||
1383 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1384 X"$0" : 'X\(//\)[^/]' \| \
1385 X"$0" : 'X\(//\)$' \| \
1386 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406 if test ! -r "$srcdir/$ac_unique_file"; then
1410 ac_srcdir_defaulted=no
1412 if test ! -r "$srcdir/$ac_unique_file"; then
1413 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1414 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1415 { (exit 1); exit 1; }; }
1417 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1419 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1420 { (exit 1); exit 1; }; }
1422 # When building in place, set srcdir=.
1423 if test "$ac_abs_confdir" = "$ac_pwd"; then
1426 # Remove unnecessary trailing slashes from srcdir.
1427 # Double slashes in file names in object file debugging info
1428 # mess up M-x gdb in Emacs.
1430 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1432 for ac_var in $ac_precious_vars; do
1433 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1434 eval ac_env_${ac_var}_value=\$${ac_var}
1435 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1440 # Report the --help message.
1442 if test "$ac_init_help" = "long"; then
1443 # Omit some internal or obsolete options to make the list less imposing.
1444 # This message is too long to be a string in the A/UX 3.1 sh.
1446 \`configure' configures llvm 1.9cvs to adapt to many kinds of systems.
1448 Usage: $0 [OPTION]... [VAR=VALUE]...
1450 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451 VAR=VALUE. See below for descriptions of some of the useful variables.
1453 Defaults for the options are specified in brackets.
1456 -h, --help display this help and exit
1457 --help=short display options specific to this package
1458 --help=recursive display the short help of all the included packages
1459 -V, --version display version information and exit
1460 -q, --quiet, --silent do not print \`checking...' messages
1461 --cache-file=FILE cache test results in FILE [disabled]
1462 -C, --config-cache alias for \`--cache-file=config.cache'
1463 -n, --no-create do not create output files
1464 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1466 Installation directories:
1467 --prefix=PREFIX install architecture-independent files in PREFIX
1468 [$ac_default_prefix]
1469 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1472 By default, \`make install' will install all the files in
1473 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1474 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1475 for instance \`--prefix=\$HOME'.
1477 For better control, use the options below.
1479 Fine tuning of the installation directories:
1480 --bindir=DIR user executables [EPREFIX/bin]
1481 --sbindir=DIR system admin executables [EPREFIX/sbin]
1482 --libexecdir=DIR program executables [EPREFIX/libexec]
1483 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1484 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1485 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1486 --libdir=DIR object code libraries [EPREFIX/lib]
1487 --includedir=DIR C header files [PREFIX/include]
1488 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1489 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1490 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1491 --infodir=DIR info documentation [DATAROOTDIR/info]
1492 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1493 --mandir=DIR man documentation [DATAROOTDIR/man]
1494 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1495 --htmldir=DIR html documentation [DOCDIR]
1496 --dvidir=DIR dvi documentation [DOCDIR]
1497 --pdfdir=DIR pdf documentation [DOCDIR]
1498 --psdir=DIR ps documentation [DOCDIR]
1504 --build=BUILD configure for building on BUILD [guessed]
1505 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1506 --target=TARGET configure for building compilers for TARGET [HOST]
1510 if test -n "$ac_init_help"; then
1511 case $ac_init_help in
1512 short | recursive ) echo "Configuration of llvm 1.9cvs:";;
1517 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1518 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1521 --enable-debug-runtime
1522 --enable-jit Enable Just In Time Compiling (default is YES)
1523 --enable-doxygen Build doxygen documentation (default is NO)
1524 --enable-threads Use threads if available (default is YES)
1525 --enable-targets Build specific host targets:
1526 all,host-only,{target-name} (default=all)
1527 --enable-ltdl-install install libltdl
1528 --enable-shared[=PKGS] build shared libraries
1529 [default=enable_shared_default]
1530 --enable-static[=PKGS] build static libraries
1531 [default=enable_static_default]
1532 --enable-fast-install[=PKGS]
1533 optimize for fast installation
1534 [default=enable_Fast_install_default]
1535 --disable-libtool-lock avoid locking (might break parallel builds)
1538 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1539 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1540 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1542 --with-extra-options Specify addtional options to compile LLVM with
1543 --with-tclinclude directory where tcl headers are
1544 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1545 --with-pic try to use only PIC/non-PIC objects [default=use
1547 --with-tags[=TAGS] include additional configurations [automatic]
1549 Some influential environment variables:
1550 CC C compiler command
1551 CFLAGS C compiler flags
1552 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1553 nonstandard directory <lib dir>
1554 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1555 you have headers in a nonstandard directory <include dir>
1557 CXX C++ compiler command
1558 CXXFLAGS C++ compiler flags
1559 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1560 the first program found out of: `bison -y', `byacc', `yacc'.
1561 YFLAGS The list of arguments that will be passed by default to $YACC.
1562 This script will default YFLAGS to the empty string to avoid a
1563 default value of `-d' given by some make applications.
1564 CXXCPP C++ preprocessor
1565 F77 Fortran 77 compiler command
1566 FFLAGS Fortran 77 compiler flags
1568 Use these variables to override the choices made by `configure' or to help
1569 it to find libraries and programs with nonstandard names/locations.
1571 Report bugs to <llvmbugs@cs.uiuc.edu>.
1576 if test "$ac_init_help" = "recursive"; then
1577 # If there are subdirs, report their specific --help.
1578 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579 test -d "$ac_dir" || continue
1583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1586 # A ".." for each directory in $ac_dir_suffix.
1587 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1588 case $ac_top_builddir_sub in
1589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1593 ac_abs_top_builddir=$ac_pwd
1594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595 # for backward compatibility:
1596 ac_top_builddir=$ac_top_build_prefix
1599 .) # We are building in place.
1601 ac_top_srcdir=$ac_top_builddir_sub
1602 ac_abs_top_srcdir=$ac_pwd ;;
1603 [\\/]* | ?:[\\/]* ) # Absolute name.
1604 ac_srcdir=$srcdir$ac_dir_suffix;
1605 ac_top_srcdir=$srcdir
1606 ac_abs_top_srcdir=$srcdir ;;
1608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609 ac_top_srcdir=$ac_top_build_prefix$srcdir
1610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1614 cd "$ac_dir" || { ac_status=$?; continue; }
1615 # Check for guested configure.
1616 if test -f "$ac_srcdir/configure.gnu"; then
1618 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619 elif test -f "$ac_srcdir/configure"; then
1621 $SHELL "$ac_srcdir/configure" --help=recursive
1623 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1625 cd "$ac_pwd" || { ac_status=$?; break; }
1629 test -n "$ac_init_help" && exit $ac_status
1630 if $ac_init_version; then
1632 llvm configure 1.9cvs
1633 generated by GNU Autoconf 2.60
1635 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1636 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1637 This configure script is free software; the Free Software Foundation
1638 gives unlimited permission to copy, distribute and modify it.
1640 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1644 cat >config.log <<_ACEOF
1645 This file contains any messages produced by compilers while
1646 running configure, to aid debugging if configure makes a mistake.
1648 It was created by llvm $as_me 1.9cvs, which was
1649 generated by GNU Autoconf 2.60. Invocation command line was
1661 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1662 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1663 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1664 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1665 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1667 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1668 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1670 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1671 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1672 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1673 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1674 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1675 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1676 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 test -z "$as_dir" && as_dir=.
1685 echo "PATH: $as_dir"
1701 # Keep a trace of the command line.
1702 # Strip out --no-create and --no-recursion so they do not pile up.
1703 # Strip out --silent because we don't want to record it for future runs.
1704 # Also quote any args containing shell meta-characters.
1705 # Make two passes to allow for proper duplicate-argument suppression.
1709 ac_must_keep_next=false
1715 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1716 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1717 | -silent | --silent | --silen | --sile | --sil)
1720 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1723 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1725 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1726 if test $ac_must_keep_next = true; then
1727 ac_must_keep_next=false # Got value, back to normal.
1730 *=* | --config-cache | -C | -disable-* | --disable-* \
1731 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1732 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1733 | -with-* | --with-* | -without-* | --without-* | --x)
1734 case "$ac_configure_args0 " in
1735 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1738 -* ) ac_must_keep_next=true ;;
1741 ac_configure_args="$ac_configure_args '$ac_arg'"
1746 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1747 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1749 # When interrupted or exit'd, cleanup temporary files, and complete
1750 # config.log. We remove comments because anyway the quotes in there
1751 # would cause problems or look ugly.
1752 # WARNING: Use '\'' to represent an apostrophe within the trap.
1753 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1754 trap 'exit_status=$?
1755 # Save into config.log some information that might help in debugging.
1760 ## ---------------- ##
1761 ## Cache variables. ##
1762 ## ---------------- ##
1765 # The following way of writing the cache mishandles newlines in values,
1767 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1768 eval ac_val=\$$ac_var
1772 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1773 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1776 _ | IFS | as_nl) ;; #(
1777 *) $as_unset $ac_var ;;
1782 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1783 *${as_nl}ac_space=\ *)
1785 "s/'\''/'\''\\\\'\'''\''/g;
1786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1789 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1797 ## ----------------- ##
1798 ## Output variables. ##
1799 ## ----------------- ##
1802 for ac_var in $ac_subst_vars
1804 eval ac_val=\$$ac_var
1806 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1808 echo "$ac_var='\''$ac_val'\''"
1812 if test -n "$ac_subst_files"; then
1814 ## ------------------- ##
1815 ## File substitutions. ##
1816 ## ------------------- ##
1819 for ac_var in $ac_subst_files
1821 eval ac_val=\$$ac_var
1823 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1825 echo "$ac_var='\''$ac_val'\''"
1830 if test -s confdefs.h; then
1840 test "$ac_signal" != 0 &&
1841 echo "$as_me: caught signal $ac_signal"
1842 echo "$as_me: exit $exit_status"
1844 rm -f core *.core core.conftest.* &&
1845 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1848 for ac_signal in 1 2 13 15; do
1849 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1853 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1854 rm -f -r conftest* confdefs.h
1856 # Predefined preprocessor variables.
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_NAME "$PACKAGE_NAME"
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_STRING "$PACKAGE_STRING"
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1883 # Let the site file select an alternate cache file if it wants to.
1884 # Prefer explicitly selected file to automatically selected ones.
1885 if test -n "$CONFIG_SITE"; then
1886 set x "$CONFIG_SITE"
1887 elif test "x$prefix" != xNONE; then
1888 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1890 set x "$ac_default_prefix/share/config.site" \
1891 "$ac_default_prefix/etc/config.site"
1896 if test -r "$ac_site_file"; then
1897 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1898 echo "$as_me: loading site script $ac_site_file" >&6;}
1899 sed 's/^/| /' "$ac_site_file" >&5
1904 if test -r "$cache_file"; then
1905 # Some versions of bash will fail to source /dev/null (special
1906 # files actually), so we avoid doing that.
1907 if test -f "$cache_file"; then
1908 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1909 echo "$as_me: loading cache $cache_file" >&6;}
1911 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1912 *) . "./$cache_file";;
1916 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1917 echo "$as_me: creating cache $cache_file" >&6;}
1921 # Check that the precious variables saved in the cache have kept the same
1923 ac_cache_corrupted=false
1924 for ac_var in $ac_precious_vars; do
1925 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1926 eval ac_new_set=\$ac_env_${ac_var}_set
1927 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1928 eval ac_new_val=\$ac_env_${ac_var}_value
1929 case $ac_old_set,$ac_new_set in
1931 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1932 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1933 ac_cache_corrupted=: ;;
1935 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1936 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1937 ac_cache_corrupted=: ;;
1940 if test "x$ac_old_val" != "x$ac_new_val"; then
1941 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1942 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1943 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1944 echo "$as_me: former value: $ac_old_val" >&2;}
1945 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1946 echo "$as_me: current value: $ac_new_val" >&2;}
1947 ac_cache_corrupted=:
1950 # Pass precious variables to config.status.
1951 if test "$ac_new_set" = set; then
1953 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1954 *) ac_arg=$ac_var=$ac_new_val ;;
1956 case " $ac_configure_args " in
1957 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1958 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1962 if $ac_cache_corrupted; then
1963 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1964 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1965 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1966 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1967 { (exit 1); exit 1; }; }
1995 ac_cpp='$CPP $CPPFLAGS'
1996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2002 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
2011 for ac_dir in autoconf "$srcdir"/autoconf; do
2012 if test -f "$ac_dir/install-sh"; then
2014 ac_install_sh="$ac_aux_dir/install-sh -c"
2016 elif test -f "$ac_dir/install.sh"; then
2018 ac_install_sh="$ac_aux_dir/install.sh -c"
2020 elif test -f "$ac_dir/shtool"; then
2022 ac_install_sh="$ac_aux_dir/shtool install -c"
2026 if test -z "$ac_aux_dir"; then
2027 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2028 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2029 { (exit 1); exit 1; }; }
2032 # These three variables are undocumented and unsupported,
2033 # and are intended to be withdrawn in a future Autoconf release.
2034 # They can cause serious problems if a builder's source tree is in a directory
2035 # whose full name contains unusual characters.
2036 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2037 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2038 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2042 if test ${srcdir} != "." ; then
2043 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2044 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2045 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2046 { (exit 1); exit 1; }; }
2050 for i in `ls ${srcdir}/projects`
2052 if test -d ${srcdir}/projects/${i} ; then
2055 "sample") subdirs="$subdirs projects/sample"
2057 "Stacker") subdirs="$subdirs projects/Stacker"
2059 "privbracket") subdirs="$subdirs projects/privbracket"
2061 "llvm-test") subdirs="$subdirs projects/llvm-test"
2063 "llvm-reopt") subdirs="$subdirs projects/llvm-reopt"
2065 "llvm-gcc") subdirs="$subdirs projects/llvm-gcc"
2067 "llvm-java") subdirs="$subdirs projects/llvm-java"
2069 "llvm-tv") subdirs="$subdirs projects/llvm-tv"
2071 "llvm-poolalloc") subdirs="$subdirs projects/llvm-poolalloc"
2073 "llvm-kernel") subdirs="$subdirs projects/llvm-kernel"
2076 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2077 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2084 # Make sure we can run config.sub.
2085 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2086 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2087 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2088 { (exit 1); exit 1; }; }
2090 { echo "$as_me:$LINENO: checking build system type" >&5
2091 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2092 if test "${ac_cv_build+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 ac_build_alias=$build_alias
2096 test "x$ac_build_alias" = x &&
2097 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2098 test "x$ac_build_alias" = x &&
2099 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2100 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2101 { (exit 1); exit 1; }; }
2102 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2103 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2104 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2105 { (exit 1); exit 1; }; }
2108 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2109 echo "${ECHO_T}$ac_cv_build" >&6; }
2110 case $ac_cv_build in
2112 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2113 echo "$as_me: error: invalid value of canonical build" >&2;}
2114 { (exit 1); exit 1; }; };;
2117 ac_save_IFS=$IFS; IFS='-'
2123 # Remember, the first character of IFS is used to create $*,
2124 # except with old shells:
2127 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2130 { echo "$as_me:$LINENO: checking host system type" >&5
2131 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2132 if test "${ac_cv_host+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 if test "x$host_alias" = x; then
2136 ac_cv_host=$ac_cv_build
2138 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2139 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2140 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2141 { (exit 1); exit 1; }; }
2145 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2146 echo "${ECHO_T}$ac_cv_host" >&6; }
2149 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2150 echo "$as_me: error: invalid value of canonical host" >&2;}
2151 { (exit 1); exit 1; }; };;
2154 ac_save_IFS=$IFS; IFS='-'
2160 # Remember, the first character of IFS is used to create $*,
2161 # except with old shells:
2164 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2167 { echo "$as_me:$LINENO: checking target system type" >&5
2168 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2169 if test "${ac_cv_target+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 if test "x$target_alias" = x; then
2173 ac_cv_target=$ac_cv_host
2175 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2176 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2177 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2178 { (exit 1); exit 1; }; }
2182 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2183 echo "${ECHO_T}$ac_cv_target" >&6; }
2184 case $ac_cv_target in
2186 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2187 echo "$as_me: error: invalid value of canonical target" >&2;}
2188 { (exit 1); exit 1; }; };;
2190 target=$ac_cv_target
2191 ac_save_IFS=$IFS; IFS='-'
2197 # Remember, the first character of IFS is used to create $*,
2198 # except with old shells:
2201 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2204 # The aliases save the names the user supplied, while $host etc.
2205 # will get canonicalized.
2206 test -n "$target_alias" &&
2207 test "$program_prefix$program_suffix$program_transform_name" = \
2209 program_prefix=${target_alias}-
2211 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2212 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2213 if test "${llvm_cv_os_type+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 llvm_cv_link_all_option="-Wl,--whole-archive"
2219 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2220 llvm_cv_os_type="AIX"
2221 llvm_cv_platform_type="Unix" ;;
2223 llvm_cv_link_all_option="-Wl,--whole-archive"
2224 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2225 llvm_cv_os_type="IRIX"
2226 llvm_cv_platform_type="Unix" ;;
2228 llvm_cv_link_all_option="-Wl,--whole-archive"
2229 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2230 llvm_cv_os_type="Cygwin"
2231 llvm_cv_platform_type="Unix" ;;
2233 llvm_cv_link_all_option="-Wl,-all_load"
2234 llvm_cv_link_all_option="-Wl,-noall_load"
2235 llvm_cv_os_type="Darwin"
2236 llvm_cv_platform_type="Unix" ;;
2238 llvm_cv_link_all_option="-Wl,--whole-archive"
2239 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2240 llvm_cv_os_type="FreeBSD"
2241 llvm_cv_platform_type="Unix" ;;
2243 llvm_cv_link_all_option="-Wl,--whole-archive"
2244 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2245 llvm_cv_os_type="OpenBSD"
2246 llvm_cv_platform_type="Unix" ;;
2248 llvm_cv_link_all_option="-Wl,--whole-archive"
2249 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2250 llvm_cv_os_type="HP-UX"
2251 llvm_cv_platform_type="Unix" ;;
2253 llvm_cv_link_all_option="-Wl,--whole-archive"
2254 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2255 llvm_cv_os_type="Interix"
2256 llvm_cv_platform_type="Unix" ;;
2258 llvm_cv_link_all_option="-Wl,--whole-archive"
2259 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2260 llvm_cv_os_type="Linux"
2261 llvm_cv_platform_type="Unix" ;;
2263 llvm_cv_link_all_option="-Wl,-z,allextract"
2264 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2265 llvm_cv_os_type="SunOS"
2266 llvm_cv_platform_type="Unix" ;;
2268 llvm_cv_link_all_option="-Wl,--whole-archive"
2269 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2270 llvm_cv_os_type="Win32"
2271 llvm_cv_platform_type="Win32" ;;
2273 llvm_cv_link_all_option="-Wl,--whole-archive"
2274 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2275 llvm_cv_os_type="MingW"
2276 llvm_cv_platform_type="Win32" ;;
2278 llvm_cv_link_all_option=""
2279 llvm_cv_no_link_all_option=""
2280 llvm_cv_os_type="Unknown"
2281 llvm_cv_platform_type="Unknown" ;;
2284 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2285 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2287 if test "$llvm_cv_os_type" = "Unknown" ; then
2288 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2289 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2290 { (exit 1); exit 1; }; }
2296 LINKALL=$llvm_cv_link_all_option
2298 NOLINKALL=$llvm_cv_no_link_all_option
2301 case $llvm_cv_platform_type in
2304 cat >>confdefs.h <<\_ACEOF
2305 #define LLVM_ON_UNIX 1
2315 cat >>confdefs.h <<\_ACEOF
2316 #define LLVM_ON_WIN32 1
2326 { echo "$as_me:$LINENO: checking target architecture" >&5
2327 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2328 if test "${llvm_cv_target_arch+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 i?86-*) llvm_cv_target_arch="x86" ;;
2333 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2334 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2335 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2336 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2337 ia64-*) llvm_cv_target_arch="IA64" ;;
2338 *) llvm_cv_target_arch="Unknown" ;;
2341 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2342 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2344 if test "$llvm_cv_target_arch" = "Unknown" ; then
2345 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2346 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2349 ARCH=$llvm_cv_target_arch
2353 ac_cpp='$CPP $CPPFLAGS'
2354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2357 if test -n "$ac_tool_prefix"; then
2358 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2359 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2362 if test "${ac_cv_prog_CC+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 if test -n "$CC"; then
2366 ac_cv_prog_CC="$CC" # Let the user override the test.
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2375 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2386 if test -n "$CC"; then
2387 { echo "$as_me:$LINENO: result: $CC" >&5
2388 echo "${ECHO_T}$CC" >&6; }
2390 { echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6; }
2396 if test -z "$ac_cv_prog_CC"; then
2398 # Extract the first word of "gcc", so it can be a program name with args.
2399 set dummy gcc; ac_word=$2
2400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2402 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2405 if test -n "$ac_ct_CC"; then
2406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2415 ac_cv_prog_ac_ct_CC="gcc"
2416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2426 if test -n "$ac_ct_CC"; then
2427 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2428 echo "${ECHO_T}$ac_ct_CC" >&6; }
2430 { echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6; }
2434 if test "x$ac_ct_CC" = x; then
2437 case $cross_compiling:$ac_tool_warned in
2439 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2440 whose name does not start with the host triplet. If you think this
2441 configuration is useful to you, please write to autoconf@gnu.org." >&5
2442 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2443 whose name does not start with the host triplet. If you think this
2444 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2445 ac_tool_warned=yes ;;
2453 if test -z "$CC"; then
2454 if test -n "$ac_tool_prefix"; then
2455 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2456 set dummy ${ac_tool_prefix}cc; ac_word=$2
2457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2459 if test "${ac_cv_prog_CC+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 if test -n "$CC"; then
2463 ac_cv_prog_CC="$CC" # Let the user override the test.
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 test -z "$as_dir" && as_dir=.
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2472 ac_cv_prog_CC="${ac_tool_prefix}cc"
2473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 if test -n "$CC"; then
2484 { echo "$as_me:$LINENO: result: $CC" >&5
2485 echo "${ECHO_T}$CC" >&6; }
2487 { echo "$as_me:$LINENO: result: no" >&5
2488 echo "${ECHO_T}no" >&6; }
2494 if test -z "$CC"; then
2495 # Extract the first word of "cc", so it can be a program name with args.
2496 set dummy cc; ac_word=$2
2497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2499 if test "${ac_cv_prog_CC+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 if test -n "$CC"; then
2503 ac_cv_prog_CC="$CC" # Let the user override the test.
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2513 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2514 ac_prog_rejected=yes
2518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 if test $ac_prog_rejected = yes; then
2526 # We found a bogon in the path, so make sure we never use it.
2527 set dummy $ac_cv_prog_CC
2529 if test $# != 0; then
2530 # We chose a different compiler from the bogus one.
2531 # However, it has the same basename, so the bogon will be chosen
2532 # first if we set CC to just the basename; use the full file name.
2534 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2540 if test -n "$CC"; then
2541 { echo "$as_me:$LINENO: result: $CC" >&5
2542 echo "${ECHO_T}$CC" >&6; }
2544 { echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6; }
2550 if test -z "$CC"; then
2551 if test -n "$ac_tool_prefix"; then
2552 for ac_prog in cl.exe
2554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2558 if test "${ac_cv_prog_CC+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 if test -n "$CC"; then
2562 ac_cv_prog_CC="$CC" # Let the user override the test.
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2571 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 if test -n "$CC"; then
2583 { echo "$as_me:$LINENO: result: $CC" >&5
2584 echo "${ECHO_T}$CC" >&6; }
2586 { echo "$as_me:$LINENO: result: no" >&5
2587 echo "${ECHO_T}no" >&6; }
2591 test -n "$CC" && break
2594 if test -z "$CC"; then
2596 for ac_prog in cl.exe
2598 # Extract the first word of "$ac_prog", so it can be a program name with args.
2599 set dummy $ac_prog; ac_word=$2
2600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2602 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2603 echo $ECHO_N "(cached) $ECHO_C" >&6
2605 if test -n "$ac_ct_CC"; then
2606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2615 ac_cv_prog_ac_ct_CC="$ac_prog"
2616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2626 if test -n "$ac_ct_CC"; then
2627 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2628 echo "${ECHO_T}$ac_ct_CC" >&6; }
2630 { echo "$as_me:$LINENO: result: no" >&5
2631 echo "${ECHO_T}no" >&6; }
2635 test -n "$ac_ct_CC" && break
2638 if test "x$ac_ct_CC" = x; then
2641 case $cross_compiling:$ac_tool_warned in
2643 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2644 whose name does not start with the host triplet. If you think this
2645 configuration is useful to you, please write to autoconf@gnu.org." >&5
2646 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2647 whose name does not start with the host triplet. If you think this
2648 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2649 ac_tool_warned=yes ;;
2658 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2659 See \`config.log' for more details." >&5
2660 echo "$as_me: error: no acceptable C compiler found in \$PATH
2661 See \`config.log' for more details." >&2;}
2662 { (exit 1); exit 1; }; }
2664 # Provide some information about the compiler.
2665 echo "$as_me:$LINENO: checking for C compiler version" >&5
2666 ac_compiler=`set X $ac_compile; echo $2`
2667 { (ac_try="$ac_compiler --version >&5"
2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670 *) ac_try_echo=$ac_try;;
2672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2673 (eval "$ac_compiler --version >&5") 2>&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }
2677 { (ac_try="$ac_compiler -v >&5"
2679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680 *) ac_try_echo=$ac_try;;
2682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2683 (eval "$ac_compiler -v >&5") 2>&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }
2687 { (ac_try="$ac_compiler -V >&5"
2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690 *) ac_try_echo=$ac_try;;
2692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2693 (eval "$ac_compiler -V >&5") 2>&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }
2698 cat >conftest.$ac_ext <<_ACEOF
2701 cat confdefs.h >>conftest.$ac_ext
2702 cat >>conftest.$ac_ext <<_ACEOF
2703 /* end confdefs.h. */
2713 ac_clean_files_save=$ac_clean_files
2714 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2715 # Try to create an executable without -o first, disregard a.out.
2716 # It will help us diagnose broken compilers, and finding out an intuition
2718 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2719 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2720 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2722 # List of possible output files, starting from the most likely.
2723 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2724 # only as a last resort. b.out is created by i960 compilers.
2725 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2727 # The IRIX 6 linker writes into existing files which may not be
2728 # executable, retaining their permissions. Remove them first so a
2729 # subsequent execution test works.
2731 for ac_file in $ac_files
2734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2735 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2740 if { (ac_try="$ac_link_default"
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746 (eval "$ac_link_default") 2>&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; then
2750 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2751 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2752 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2753 # so that the user can short-circuit this test for compilers unknown to
2755 for ac_file in $ac_files
2757 test -f "$ac_file" || continue
2759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2762 # We found the default executable, but exeext='' is most
2766 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2768 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2770 # We set ac_cv_exeext here because the later test for it is not
2771 # safe: cross compilers may not add the suffix if given an `-o'
2772 # argument, so we may need to know it at that point already.
2773 # Even if this section looks crufty: it has the advantage of
2780 test "$ac_cv_exeext" = no && ac_cv_exeext=
2783 echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2786 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2787 See \`config.log' for more details." >&5
2788 echo "$as_me: error: C compiler cannot create executables
2789 See \`config.log' for more details." >&2;}
2790 { (exit 77); exit 77; }; }
2793 ac_exeext=$ac_cv_exeext
2794 { echo "$as_me:$LINENO: result: $ac_file" >&5
2795 echo "${ECHO_T}$ac_file" >&6; }
2797 # Check that the compiler produces executables we can run. If not, either
2798 # the compiler is broken, or we cross compile.
2799 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2800 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2801 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2802 # If not cross compiling, check that we can run a simple program.
2803 if test "$cross_compiling" != yes; then
2804 if { ac_try='./$ac_file'
2805 { (case "(($ac_try" in
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810 (eval "$ac_try") 2>&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; }; then
2816 if test "$cross_compiling" = maybe; then
2819 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2820 If you meant to cross compile, use \`--host'.
2821 See \`config.log' for more details." >&5
2822 echo "$as_me: error: cannot run C compiled programs.
2823 If you meant to cross compile, use \`--host'.
2824 See \`config.log' for more details." >&2;}
2825 { (exit 1); exit 1; }; }
2829 { echo "$as_me:$LINENO: result: yes" >&5
2830 echo "${ECHO_T}yes" >&6; }
2832 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2833 ac_clean_files=$ac_clean_files_save
2834 # Check that the compiler produces executables we can run. If not, either
2835 # the compiler is broken, or we cross compile.
2836 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2837 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2838 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2839 echo "${ECHO_T}$cross_compiling" >&6; }
2841 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2842 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2843 if { (ac_try="$ac_link"
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_link") 2>&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; then
2853 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2854 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2855 # work properly (i.e., refer to `conftest.exe'), while it won't with
2857 for ac_file in conftest.exe conftest conftest.*; do
2858 test -f "$ac_file" || continue
2860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2861 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2867 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2868 See \`config.log' for more details." >&5
2869 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2870 See \`config.log' for more details." >&2;}
2871 { (exit 1); exit 1; }; }
2874 rm -f conftest$ac_cv_exeext
2875 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2876 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2878 rm -f conftest.$ac_ext
2879 EXEEXT=$ac_cv_exeext
2881 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2882 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2883 if test "${ac_cv_objext+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 cat >conftest.$ac_ext <<_ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2901 rm -f conftest.o conftest.obj
2902 if { (ac_try="$ac_compile"
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compile") 2>&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; then
2912 for ac_file in conftest.o conftest.obj conftest.*; do
2913 test -f "$ac_file" || continue;
2915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2916 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2921 echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2924 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2925 See \`config.log' for more details." >&5
2926 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2927 See \`config.log' for more details." >&2;}
2928 { (exit 1); exit 1; }; }
2931 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2933 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2934 echo "${ECHO_T}$ac_cv_objext" >&6; }
2935 OBJEXT=$ac_cv_objext
2937 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2938 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2939 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2942 cat >conftest.$ac_ext <<_ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h. */
2960 rm -f conftest.$ac_objext
2961 if { (ac_try="$ac_compile"
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_compile") 2>conftest.er1
2969 grep -v '^ *+' conftest.er1 >conftest.err
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } &&
2974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2975 { (case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_try") 2>&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; } &&
2984 { ac_try='test -s conftest.$ac_objext'
2985 { (case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990 (eval "$ac_try") 2>&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; }; then
2996 echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
3002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3003 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3006 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3007 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3008 GCC=`test $ac_compiler_gnu = yes && echo yes`
3009 ac_test_CFLAGS=${CFLAGS+set}
3010 ac_save_CFLAGS=$CFLAGS
3011 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3012 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3013 if test "${ac_cv_prog_cc_g+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 ac_save_c_werror_flag=$ac_c_werror_flag
3017 ac_c_werror_flag=yes
3020 cat >conftest.$ac_ext <<_ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>conftest.er1
3044 grep -v '^ *+' conftest.er1 >conftest.err
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } &&
3049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; } &&
3059 { ac_try='test -s conftest.$ac_objext'
3060 { (case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_try") 2>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; }; then
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3075 cat >conftest.$ac_ext <<_ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3090 rm -f conftest.$ac_objext
3091 if { (ac_try="$ac_compile"
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_compile") 2>conftest.er1
3099 grep -v '^ *+' conftest.er1 >conftest.err
3101 cat conftest.err >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } &&
3104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; } &&
3114 { ac_try='test -s conftest.$ac_objext'
3115 { (case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_try") 2>&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; }; then
3126 echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3129 ac_c_werror_flag=$ac_save_c_werror_flag
3131 cat >conftest.$ac_ext <<_ACEOF
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h. */
3146 rm -f conftest.$ac_objext
3147 if { (ac_try="$ac_compile"
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_compile") 2>conftest.er1
3155 grep -v '^ *+' conftest.er1 >conftest.err
3157 cat conftest.err >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } &&
3160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3161 { (case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_try") 2>&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; } &&
3170 { ac_try='test -s conftest.$ac_objext'
3171 { (case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_try") 2>&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; }; then
3182 echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 ac_c_werror_flag=$ac_save_c_werror_flag
3197 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3198 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3199 if test "$ac_test_CFLAGS" = set; then
3200 CFLAGS=$ac_save_CFLAGS
3201 elif test $ac_cv_prog_cc_g = yes; then
3202 if test "$GCC" = yes; then
3208 if test "$GCC" = yes; then
3214 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3215 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3216 if test "${ac_cv_prog_cc_c89+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 ac_cv_prog_cc_c89=no
3221 cat >conftest.$ac_ext <<_ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3229 #include <sys/types.h>
3230 #include <sys/stat.h>
3231 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3232 struct buf { int x; };
3233 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3234 static char *e (p, i)
3240 static char *f (char * (*g) (char **, int), char **p, ...)
3245 s = g (p, va_arg (v,int));
3250 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3251 function prototypes and stuff, but not '\xHH' hex character constants.
3252 These don't provoke an error unfortunately, instead are silently treated
3253 as 'x'. The following induces an error, until -std is added to get
3254 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3255 array size at least. It's necessary to write '\x00'==0 to get something
3256 that's true only with -std. */
3257 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3259 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3260 inside strings and character constants. */
3262 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3264 int test (int i, double x);
3265 struct s1 {int (*f) (int a);};
3266 struct s2 {int (*f) (double a);};
3267 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3273 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3278 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3279 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3281 CC="$ac_save_CC $ac_arg"
3282 rm -f conftest.$ac_objext
3283 if { (ac_try="$ac_compile"
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289 (eval "$ac_compile") 2>conftest.er1
3291 grep -v '^ *+' conftest.er1 >conftest.err
3293 cat conftest.err >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } &&
3296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3297 { (case "(($ac_try" in
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302 (eval "$ac_try") 2>&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }; } &&
3306 { ac_try='test -s conftest.$ac_objext'
3307 { (case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3312 (eval "$ac_try") 2>&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); }; }; then
3316 ac_cv_prog_cc_c89=$ac_arg
3318 echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3324 rm -f core conftest.err conftest.$ac_objext
3325 test "x$ac_cv_prog_cc_c89" != "xno" && break
3327 rm -f conftest.$ac_ext
3332 case "x$ac_cv_prog_cc_c89" in
3334 { echo "$as_me:$LINENO: result: none needed" >&5
3335 echo "${ECHO_T}none needed" >&6; } ;;
3337 { echo "$as_me:$LINENO: result: unsupported" >&5
3338 echo "${ECHO_T}unsupported" >&6; } ;;
3340 CC="$CC $ac_cv_prog_cc_c89"
3341 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3342 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3347 ac_cpp='$CPP $CPPFLAGS'
3348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3354 ac_cpp='$CPP $CPPFLAGS'
3355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3359 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3360 # On Suns, sometimes $CPP names a directory.
3361 if test -n "$CPP" && test -d "$CPP"; then
3364 if test -z "$CPP"; then
3365 if test "${ac_cv_prog_CPP+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 # Double quotes because CPP needs to be expanded
3369 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3372 for ac_c_preproc_warn_flag in '' yes
3374 # Use a header file that comes with gcc, so configuring glibc
3375 # with a fresh cross-compiler works.
3376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3377 # <limits.h> exists even on freestanding compilers.
3378 # On the NeXT, cc -E runs the code through the compiler's parser,
3379 # not just through cpp. "Syntax error" is here to catch this case.
3380 cat >conftest.$ac_ext <<_ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3387 # include <limits.h>
3389 # include <assert.h>
3393 if { (ac_try="$ac_cpp conftest.$ac_ext"
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3401 grep -v '^ *+' conftest.er1 >conftest.err
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null; then
3406 if test -s conftest.err; then
3407 ac_cpp_err=$ac_c_preproc_warn_flag
3408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3415 if test -z "$ac_cpp_err"; then
3418 echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3421 # Broken: fails on valid input.
3425 rm -f conftest.err conftest.$ac_ext
3427 # OK, works on sane cases. Now check whether nonexistent headers
3428 # can be detected and how.
3429 cat >conftest.$ac_ext <<_ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h. */
3435 #include <ac_nonexistent.h>
3437 if { (ac_try="$ac_cpp conftest.$ac_ext"
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3445 grep -v '^ *+' conftest.er1 >conftest.err
3447 cat conftest.err >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } >/dev/null; then
3450 if test -s conftest.err; then
3451 ac_cpp_err=$ac_c_preproc_warn_flag
3452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3459 if test -z "$ac_cpp_err"; then
3460 # Broken: success on invalid input.
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3466 # Passes both tests.
3471 rm -f conftest.err conftest.$ac_ext
3474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3475 rm -f conftest.err conftest.$ac_ext
3476 if $ac_preproc_ok; then
3488 { echo "$as_me:$LINENO: result: $CPP" >&5
3489 echo "${ECHO_T}$CPP" >&6; }
3491 for ac_c_preproc_warn_flag in '' yes
3493 # Use a header file that comes with gcc, so configuring glibc
3494 # with a fresh cross-compiler works.
3495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3496 # <limits.h> exists even on freestanding compilers.
3497 # On the NeXT, cc -E runs the code through the compiler's parser,
3498 # not just through cpp. "Syntax error" is here to catch this case.
3499 cat >conftest.$ac_ext <<_ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3506 # include <limits.h>
3508 # include <assert.h>
3512 if { (ac_try="$ac_cpp conftest.$ac_ext"
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3520 grep -v '^ *+' conftest.er1 >conftest.err
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } >/dev/null; then
3525 if test -s conftest.err; then
3526 ac_cpp_err=$ac_c_preproc_warn_flag
3527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3534 if test -z "$ac_cpp_err"; then
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3540 # Broken: fails on valid input.
3544 rm -f conftest.err conftest.$ac_ext
3546 # OK, works on sane cases. Now check whether nonexistent headers
3547 # can be detected and how.
3548 cat >conftest.$ac_ext <<_ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h. */
3554 #include <ac_nonexistent.h>
3556 if { (ac_try="$ac_cpp conftest.$ac_ext"
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3564 grep -v '^ *+' conftest.er1 >conftest.err
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } >/dev/null; then
3569 if test -s conftest.err; then
3570 ac_cpp_err=$ac_c_preproc_warn_flag
3571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3578 if test -z "$ac_cpp_err"; then
3579 # Broken: success on invalid input.
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3585 # Passes both tests.
3590 rm -f conftest.err conftest.$ac_ext
3593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3594 rm -f conftest.err conftest.$ac_ext
3595 if $ac_preproc_ok; then
3598 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3599 See \`config.log' for more details." >&5
3600 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3601 See \`config.log' for more details." >&2;}
3602 { (exit 1); exit 1; }; }
3606 ac_cpp='$CPP $CPPFLAGS'
3607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3612 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3613 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3614 if test "${ac_cv_path_GREP+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 # Extract the first word of "grep ggrep" to use in msg output
3618 if test -z "$GREP"; then
3619 set dummy grep ggrep; ac_prog_name=$2
3620 if test "${ac_cv_path_GREP+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 ac_path_GREP_found=false
3624 # Loop through the user's path and test for each of PROGNAME-LIST
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3629 test -z "$as_dir" && as_dir=.
3630 for ac_prog in grep ggrep; do
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3633 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3634 # Check for GNU ac_path_GREP and select it if it is found.
3635 # Check for GNU $ac_path_GREP
3636 case `"$ac_path_GREP" --version 2>&1` in
3638 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3641 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3644 cat "conftest.in" "conftest.in" >"conftest.tmp"
3645 mv "conftest.tmp" "conftest.in"
3646 cp "conftest.in" "conftest.nl"
3647 echo 'GREP' >> "conftest.nl"
3648 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3649 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3650 ac_count=`expr $ac_count + 1`
3651 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3652 # Best one so far, save it but keep looking for a better one
3653 ac_cv_path_GREP="$ac_path_GREP"
3654 ac_path_GREP_max=$ac_count
3656 # 10*(2^10) chars as input seems more than enough
3657 test $ac_count -gt 10 && break
3659 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3663 $ac_path_GREP_found && break 3
3673 GREP="$ac_cv_path_GREP"
3674 if test -z "$GREP"; then
3675 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3676 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3677 { (exit 1); exit 1; }; }
3681 ac_cv_path_GREP=$GREP
3686 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3687 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3688 GREP="$ac_cv_path_GREP"
3691 { echo "$as_me:$LINENO: checking for egrep" >&5
3692 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3693 if test "${ac_cv_path_EGREP+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3697 then ac_cv_path_EGREP="$GREP -E"
3699 # Extract the first word of "egrep" to use in msg output
3700 if test -z "$EGREP"; then
3701 set dummy egrep; ac_prog_name=$2
3702 if test "${ac_cv_path_EGREP+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 ac_path_EGREP_found=false
3706 # Loop through the user's path and test for each of PROGNAME-LIST
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3711 test -z "$as_dir" && as_dir=.
3712 for ac_prog in egrep; do
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3715 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3716 # Check for GNU ac_path_EGREP and select it if it is found.
3717 # Check for GNU $ac_path_EGREP
3718 case `"$ac_path_EGREP" --version 2>&1` in
3720 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3723 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3726 cat "conftest.in" "conftest.in" >"conftest.tmp"
3727 mv "conftest.tmp" "conftest.in"
3728 cp "conftest.in" "conftest.nl"
3729 echo 'EGREP' >> "conftest.nl"
3730 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3732 ac_count=`expr $ac_count + 1`
3733 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3734 # Best one so far, save it but keep looking for a better one
3735 ac_cv_path_EGREP="$ac_path_EGREP"
3736 ac_path_EGREP_max=$ac_count
3738 # 10*(2^10) chars as input seems more than enough
3739 test $ac_count -gt 10 && break
3741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3745 $ac_path_EGREP_found && break 3
3755 EGREP="$ac_cv_path_EGREP"
3756 if test -z "$EGREP"; then
3757 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3758 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3759 { (exit 1); exit 1; }; }
3763 ac_cv_path_EGREP=$EGREP
3769 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3770 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3771 EGREP="$ac_cv_path_EGREP"
3774 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3775 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3776 if test "${ac_cv_header_stdc+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 cat >conftest.$ac_ext <<_ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3798 rm -f conftest.$ac_objext
3799 if { (ac_try="$ac_compile"
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3805 (eval "$ac_compile") 2>conftest.er1
3807 grep -v '^ *+' conftest.er1 >conftest.err
3809 cat conftest.err >&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); } &&
3812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3813 { (case "(($ac_try" in
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3818 (eval "$ac_try") 2>&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; } &&
3822 { ac_try='test -s conftest.$ac_objext'
3823 { (case "(($ac_try" in
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828 (eval "$ac_try") 2>&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; }; then
3832 ac_cv_header_stdc=yes
3834 echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3837 ac_cv_header_stdc=no
3840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842 if test $ac_cv_header_stdc = yes; then
3843 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3844 cat >conftest.$ac_ext <<_ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h. */
3853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3854 $EGREP "memchr" >/dev/null 2>&1; then
3857 ac_cv_header_stdc=no
3863 if test $ac_cv_header_stdc = yes; then
3864 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3865 cat >conftest.$ac_ext <<_ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3875 $EGREP "free" >/dev/null 2>&1; then
3878 ac_cv_header_stdc=no
3884 if test $ac_cv_header_stdc = yes; then
3885 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3886 if test "$cross_compiling" = yes; then
3889 cat >conftest.$ac_ext <<_ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3897 #if ((' ' & 0x0FF) == 0x020)
3898 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3899 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3901 # define ISLOWER(c) \
3902 (('a' <= (c) && (c) <= 'i') \
3903 || ('j' <= (c) && (c) <= 'r') \
3904 || ('s' <= (c) && (c) <= 'z'))
3905 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3908 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3913 for (i = 0; i < 256; i++)
3914 if (XOR (islower (i), ISLOWER (i))
3915 || toupper (i) != TOUPPER (i))
3920 rm -f conftest$ac_exeext
3921 if { (ac_try="$ac_link"
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3927 (eval "$ac_link") 2>&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3931 { (case "(($ac_try" in
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3936 (eval "$ac_try") 2>&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; }; then
3942 echo "$as_me: program exited with status $ac_status" >&5
3943 echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3947 ac_cv_header_stdc=no
3949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3955 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3956 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3957 if test $ac_cv_header_stdc = yes; then
3959 cat >>confdefs.h <<\_ACEOF
3960 #define STDC_HEADERS 1
3965 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3975 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3976 inttypes.h stdint.h unistd.h
3978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3979 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 cat >conftest.$ac_ext <<_ACEOF
3987 cat confdefs.h >>conftest.$ac_ext
3988 cat >>conftest.$ac_ext <<_ACEOF
3989 /* end confdefs.h. */
3990 $ac_includes_default
3992 #include <$ac_header>
3994 rm -f conftest.$ac_objext
3995 if { (ac_try="$ac_compile"
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
4000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4001 (eval "$ac_compile") 2>conftest.er1
4003 grep -v '^ *+' conftest.er1 >conftest.err
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } &&
4008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4009 { (case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_try") 2>&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; } &&
4018 { ac_try='test -s conftest.$ac_objext'
4019 { (case "(($ac_try" in
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4024 (eval "$ac_try") 2>&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4028 eval "$as_ac_Header=yes"
4030 echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4033 eval "$as_ac_Header=no"
4036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038 ac_res=`eval echo '${'$as_ac_Header'}'`
4039 { echo "$as_me:$LINENO: result: $ac_res" >&5
4040 echo "${ECHO_T}$ac_res" >&6; }
4041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4042 cat >>confdefs.h <<_ACEOF
4043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4051 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4052 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4053 if test "${ac_cv_c_bigendian+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 # See if sys/param.h defines the BYTE_ORDER macro.
4057 cat >conftest.$ac_ext <<_ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4063 #include <sys/types.h>
4064 #include <sys/param.h>
4069 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4077 rm -f conftest.$ac_objext
4078 if { (ac_try="$ac_compile"
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084 (eval "$ac_compile") 2>conftest.er1
4086 grep -v '^ *+' conftest.er1 >conftest.err
4088 cat conftest.err >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); } &&
4091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4092 { (case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097 (eval "$ac_try") 2>&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; } &&
4101 { ac_try='test -s conftest.$ac_objext'
4102 { (case "(($ac_try" in
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4107 (eval "$ac_try") 2>&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; }; then
4111 # It does; now see whether it defined to BIG_ENDIAN or not.
4112 cat >conftest.$ac_ext <<_ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4118 #include <sys/types.h>
4119 #include <sys/param.h>
4124 #if BYTE_ORDER != BIG_ENDIAN
4132 rm -f conftest.$ac_objext
4133 if { (ac_try="$ac_compile"
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_compile") 2>conftest.er1
4141 grep -v '^ *+' conftest.er1 >conftest.err
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } &&
4146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4147 { (case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_try") 2>&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; } &&
4156 { ac_try='test -s conftest.$ac_objext'
4157 { (case "(($ac_try" in
4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162 (eval "$ac_try") 2>&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; }; then
4166 ac_cv_c_bigendian=yes
4168 echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4171 ac_cv_c_bigendian=no
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4179 # It does not; compile a test program.
4180 if test "$cross_compiling" = yes; then
4181 # try to guess the endianness by grepping values into an object file
4182 ac_cv_c_bigendian=unknown
4183 cat >conftest.$ac_ext <<_ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h. */
4189 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4190 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4191 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4192 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4193 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4194 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4198 _ascii (); _ebcdic ();
4203 rm -f conftest.$ac_objext
4204 if { (ac_try="$ac_compile"
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210 (eval "$ac_compile") 2>conftest.er1
4212 grep -v '^ *+' conftest.er1 >conftest.err
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } &&
4217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4218 { (case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_try") 2>&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); }; } &&
4227 { ac_try='test -s conftest.$ac_objext'
4228 { (case "(($ac_try" in
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233 (eval "$ac_try") 2>&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; }; then
4237 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4238 ac_cv_c_bigendian=yes
4240 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4241 if test "$ac_cv_c_bigendian" = unknown; then
4242 ac_cv_c_bigendian=no
4244 # finding both strings is unlikely to happen, but who knows?
4245 ac_cv_c_bigendian=unknown
4249 echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257 cat >conftest.$ac_ext <<_ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h. */
4263 $ac_includes_default
4268 /* Are we little or big endian? From Harbison&Steele. */
4272 char c[sizeof (long int)];
4275 return u.c[sizeof (long int) - 1] == 1;
4281 rm -f conftest$ac_exeext
4282 if { (ac_try="$ac_link"
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_link") 2>&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4292 { (case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297 (eval "$ac_try") 2>&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; }; then
4301 ac_cv_c_bigendian=no
4303 echo "$as_me: program exited with status $ac_status" >&5
4304 echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4308 ac_cv_c_bigendian=yes
4310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4318 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4319 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4320 case $ac_cv_c_bigendian in
4328 { { echo "$as_me:$LINENO: error: unknown endianness
4329 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4330 echo "$as_me: error: unknown endianness
4331 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4332 { (exit 1); exit 1; }; } ;;
4336 if test "$cross_compiling" = yes; then
4337 LLVM_CROSS_COMPILING=1
4340 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4341 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4342 if test "${ac_cv_build_exeext+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4346 ac_cv_build_exeext=.exe
4348 ac_build_prefix=${build_alias}-
4350 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4351 set dummy ${ac_build_prefix}gcc; ac_word=$2
4352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4354 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 if test -n "$BUILD_CC"; then
4358 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 BUILD_CC=$ac_cv_prog_BUILD_CC
4378 if test -n "$BUILD_CC"; then
4379 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4380 echo "${ECHO_T}$BUILD_CC" >&6; }
4382 { echo "$as_me:$LINENO: result: no" >&5
4383 echo "${ECHO_T}no" >&6; }
4387 if test -z "$BUILD_CC"; then
4388 # Extract the first word of "gcc", so it can be a program name with args.
4389 set dummy gcc; ac_word=$2
4390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4392 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4395 if test -n "$BUILD_CC"; then
4396 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4405 ac_cv_prog_BUILD_CC="gcc"
4406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 BUILD_CC=$ac_cv_prog_BUILD_CC
4416 if test -n "$BUILD_CC"; then
4417 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4418 echo "${ECHO_T}$BUILD_CC" >&6; }
4420 { echo "$as_me:$LINENO: result: no" >&5
4421 echo "${ECHO_T}no" >&6; }
4425 if test -z "$BUILD_CC"; then
4426 # Extract the first word of "cc", so it can be a program name with args.
4427 set dummy cc; ac_word=$2
4428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4430 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 if test -n "$BUILD_CC"; then
4434 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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4445 ac_prog_rejected=yes
4448 ac_cv_prog_BUILD_CC="cc"
4449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 if test $ac_prog_rejected = yes; then
4457 # We found a bogon in the path, so make sure we never use it.
4458 set dummy $ac_cv_prog_BUILD_CC
4460 if test $# != 0; then
4461 # We chose a different compiler from the bogus one.
4462 # However, it has the same basename, so the bogon will be chosen
4463 # first if we set BUILD_CC to just the basename; use the full file name.
4465 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4470 BUILD_CC=$ac_cv_prog_BUILD_CC
4471 if test -n "$BUILD_CC"; then
4472 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4473 echo "${ECHO_T}$BUILD_CC" >&6; }
4475 { echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6; }
4482 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4483 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4484 { (exit 1); exit 1; }; }
4485 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4487 echo 'int main () { return 0; }' > conftest.$ac_ext
4489 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4490 (eval $ac_build_link) 2>&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; then
4494 for file in conftest.*; do
4496 *.c | *.o | *.obj) ;;
4497 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4501 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4502 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4503 { (exit 1); exit 1; }; }
4506 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4511 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4512 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4513 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4514 ac_build_exeext=$BUILD_EXEEXT
4517 LLVM_CROSS_COMPILING=0
4521 if test -d "CVS" -o -d "${srcdir}/CVS"; then
4532 # Check whether --enable-optimized was given.
4533 if test "${enable_optimized+set}" = set; then
4534 enableval=$enable_optimized;
4539 if test ${enableval} = "no" ; then
4543 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4547 # Check whether --enable-assertions was given.
4548 if test "${enable_assertions+set}" = set; then
4549 enableval=$enable_assertions;
4554 if test ${enableval} = "yes" ; then
4558 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4562 # Check whether --enable-debug-runtime was given.
4563 if test "${enable_debug_runtime+set}" = set; then
4564 enableval=$enable_debug_runtime;
4569 if test ${enableval} = "no" ; then
4573 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4577 # Check whether --enable-jit was given.
4578 if test "${enable_jit+set}" = set; then
4579 enableval=$enable_jit;
4584 if test ${enableval} = "no"
4589 case "$llvm_cv_target_arch" in
4590 x86) TARGET_HAS_JIT=1
4592 Sparc) TARGET_HAS_JIT=1
4594 PowerPC) TARGET_HAS_JIT=1
4596 x86_64) TARGET_HAS_JIT=0
4598 Alpha) TARGET_HAS_JIT=1
4600 IA64) TARGET_HAS_JIT=0
4607 # Check whether --enable-doxygen was given.
4608 if test "${enable_doxygen+set}" = set; then
4609 enableval=$enable_doxygen;
4614 case "$enableval" in
4615 yes) ENABLE_DOXYGEN=1
4617 no) ENABLE_DOXYGEN=0
4619 default) ENABLE_DOXYGEN=0
4621 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4622 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4623 { (exit 1); exit 1; }; } ;;
4626 # Check whether --enable-threads was given.
4627 if test "${enable_threads+set}" = set; then
4628 enableval=$enable_threads;
4633 case "$enableval" in
4634 yes) ENABLE_THREADS=1
4636 no) ENABLE_THREADS=0
4638 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4639 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4640 { (exit 1); exit 1; }; } ;;
4643 cat >>confdefs.h <<_ACEOF
4644 #define ENABLE_THREADS $ENABLE_THREADS
4649 # Check whether --enable-targets was given.
4650 if test "${enable_targets+set}" = set; then
4651 enableval=$enable_targets;
4656 case "$enableval" in
4657 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4659 case "$llvm_cv_target_arch" in
4660 x86) TARGETS_TO_BUILD="X86" ;;
4661 x86_64) TARGETS_TO_BUILD="X86" ;;
4662 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4663 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4664 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4665 IA64) TARGETS_TO_BUILD="IA64" ;;
4666 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4667 echo "$as_me: error: Can not set target to build" >&2;}
4668 { (exit 1); exit 1; }; } ;;
4671 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4673 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4674 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4675 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4676 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4677 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4678 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4679 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4680 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4681 { (exit 1); exit 1; }; } ;;
4686 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4687 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4691 # Check whether --with-llvmgccdir was given.
4692 if test "${with_llvmgccdir+set}" = set; then
4693 withval=$with_llvmgccdir;
4699 default) WITH_LLVMGCCDIR=default ;;
4700 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4701 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4702 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4703 { (exit 1); exit 1; }; } ;;
4707 # Check whether --with-extra-options was given.
4708 if test "${with_extra_options+set}" = set; then
4709 withval=$with_extra_options;
4715 default) EXTRA_OPTIONS= ;;
4716 *) EXTRA_OPTIONS=$withval ;;
4718 EXTRA_OPTIONS=$EXTRA_OPTIONS
4723 ac_cpp='$CPP $CPPFLAGS'
4724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4727 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4728 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4729 # On Suns, sometimes $CPP names a directory.
4730 if test -n "$CPP" && test -d "$CPP"; then
4733 if test -z "$CPP"; then
4734 if test "${ac_cv_prog_CPP+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 # Double quotes because CPP needs to be expanded
4738 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4741 for ac_c_preproc_warn_flag in '' yes
4743 # Use a header file that comes with gcc, so configuring glibc
4744 # with a fresh cross-compiler works.
4745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4746 # <limits.h> exists even on freestanding compilers.
4747 # On the NeXT, cc -E runs the code through the compiler's parser,
4748 # not just through cpp. "Syntax error" is here to catch this case.
4749 cat >conftest.$ac_ext <<_ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4756 # include <limits.h>
4758 # include <assert.h>
4762 if { (ac_try="$ac_cpp conftest.$ac_ext"
4764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4765 *) ac_try_echo=$ac_try;;
4767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4770 grep -v '^ *+' conftest.er1 >conftest.err
4772 cat conftest.err >&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); } >/dev/null; then
4775 if test -s conftest.err; then
4776 ac_cpp_err=$ac_c_preproc_warn_flag
4777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4784 if test -z "$ac_cpp_err"; then
4787 echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4790 # Broken: fails on valid input.
4794 rm -f conftest.err conftest.$ac_ext
4796 # OK, works on sane cases. Now check whether nonexistent headers
4797 # can be detected and how.
4798 cat >conftest.$ac_ext <<_ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h. */
4804 #include <ac_nonexistent.h>
4806 if { (ac_try="$ac_cpp conftest.$ac_ext"
4808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4809 *) ac_try_echo=$ac_try;;
4811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4814 grep -v '^ *+' conftest.er1 >conftest.err
4816 cat conftest.err >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } >/dev/null; then
4819 if test -s conftest.err; then
4820 ac_cpp_err=$ac_c_preproc_warn_flag
4821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4828 if test -z "$ac_cpp_err"; then
4829 # Broken: success on invalid input.
4832 echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4835 # Passes both tests.
4840 rm -f conftest.err conftest.$ac_ext
4843 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4844 rm -f conftest.err conftest.$ac_ext
4845 if $ac_preproc_ok; then
4857 { echo "$as_me:$LINENO: result: $CPP" >&5
4858 echo "${ECHO_T}$CPP" >&6; }
4860 for ac_c_preproc_warn_flag in '' yes
4862 # Use a header file that comes with gcc, so configuring glibc
4863 # with a fresh cross-compiler works.
4864 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4865 # <limits.h> exists even on freestanding compilers.
4866 # On the NeXT, cc -E runs the code through the compiler's parser,
4867 # not just through cpp. "Syntax error" is here to catch this case.
4868 cat >conftest.$ac_ext <<_ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4875 # include <limits.h>
4877 # include <assert.h>
4881 if { (ac_try="$ac_cpp conftest.$ac_ext"
4883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4884 *) ac_try_echo=$ac_try;;
4886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4889 grep -v '^ *+' conftest.er1 >conftest.err
4891 cat conftest.err >&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); } >/dev/null; then
4894 if test -s conftest.err; then
4895 ac_cpp_err=$ac_c_preproc_warn_flag
4896 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4903 if test -z "$ac_cpp_err"; then
4906 echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4909 # Broken: fails on valid input.
4913 rm -f conftest.err conftest.$ac_ext
4915 # OK, works on sane cases. Now check whether nonexistent headers
4916 # can be detected and how.
4917 cat >conftest.$ac_ext <<_ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h. */
4923 #include <ac_nonexistent.h>
4925 if { (ac_try="$ac_cpp conftest.$ac_ext"
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4933 grep -v '^ *+' conftest.er1 >conftest.err
4935 cat conftest.err >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } >/dev/null; then
4938 if test -s conftest.err; then
4939 ac_cpp_err=$ac_c_preproc_warn_flag
4940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4947 if test -z "$ac_cpp_err"; then
4948 # Broken: success on invalid input.
4951 echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4954 # Passes both tests.
4959 rm -f conftest.err conftest.$ac_ext
4962 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4963 rm -f conftest.err conftest.$ac_ext
4964 if $ac_preproc_ok; then
4967 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4968 See \`config.log' for more details." >&5
4969 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4970 See \`config.log' for more details." >&2;}
4971 { (exit 1); exit 1; }; }
4975 ac_cpp='$CPP $CPPFLAGS'
4976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4981 ac_cpp='$CPP $CPPFLAGS'
4982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4985 if test -n "$ac_tool_prefix"; then
4988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4989 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4992 if test "${ac_cv_prog_CC+set}" = set; then
4993 echo $ECHO_N "(cached) $ECHO_C" >&6
4995 if test -n "$CC"; then
4996 ac_cv_prog_CC="$CC" # Let the user override the test.
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5005 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 if test -n "$CC"; then
5017 { echo "$as_me:$LINENO: result: $CC" >&5
5018 echo "${ECHO_T}$CC" >&6; }
5020 { echo "$as_me:$LINENO: result: no" >&5
5021 echo "${ECHO_T}no" >&6; }
5025 test -n "$CC" && break
5028 if test -z "$CC"; then
5032 # Extract the first word of "$ac_prog", so it can be a program name with args.
5033 set dummy $ac_prog; ac_word=$2
5034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5036 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 if test -n "$ac_ct_CC"; then
5040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5049 ac_cv_prog_ac_ct_CC="$ac_prog"
5050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5060 if test -n "$ac_ct_CC"; then
5061 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5062 echo "${ECHO_T}$ac_ct_CC" >&6; }
5064 { echo "$as_me:$LINENO: result: no" >&5
5065 echo "${ECHO_T}no" >&6; }
5069 test -n "$ac_ct_CC" && break
5072 if test "x$ac_ct_CC" = x; then
5075 case $cross_compiling:$ac_tool_warned in
5077 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5078 whose name does not start with the host triplet. If you think this
5079 configuration is useful to you, please write to autoconf@gnu.org." >&5
5080 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5081 whose name does not start with the host triplet. If you think this
5082 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5083 ac_tool_warned=yes ;;
5090 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5091 See \`config.log' for more details." >&5
5092 echo "$as_me: error: no acceptable C compiler found in \$PATH
5093 See \`config.log' for more details." >&2;}
5094 { (exit 1); exit 1; }; }
5096 # Provide some information about the compiler.
5097 echo "$as_me:$LINENO: checking for C compiler version" >&5
5098 ac_compiler=`set X $ac_compile; echo $2`
5099 { (ac_try="$ac_compiler --version >&5"
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105 (eval "$ac_compiler --version >&5") 2>&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }
5109 { (ac_try="$ac_compiler -v >&5"
5111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5115 (eval "$ac_compiler -v >&5") 2>&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }
5119 { (ac_try="$ac_compiler -V >&5"
5121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122 *) ac_try_echo=$ac_try;;
5124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5125 (eval "$ac_compiler -V >&5") 2>&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }
5130 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5131 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5132 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 cat >conftest.$ac_ext <<_ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5153 rm -f conftest.$ac_objext
5154 if { (ac_try="$ac_compile"
5156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5157 *) ac_try_echo=$ac_try;;
5159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5160 (eval "$ac_compile") 2>conftest.er1
5162 grep -v '^ *+' conftest.er1 >conftest.err
5164 cat conftest.err >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } &&
5167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5168 { (case "(($ac_try" in
5169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5173 (eval "$ac_try") 2>&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; } &&
5177 { ac_try='test -s conftest.$ac_objext'
5178 { (case "(($ac_try" in
5179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180 *) ac_try_echo=$ac_try;;
5182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5183 (eval "$ac_try") 2>&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }; }; then
5189 echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5196 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5199 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5200 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5201 GCC=`test $ac_compiler_gnu = yes && echo yes`
5202 ac_test_CFLAGS=${CFLAGS+set}
5203 ac_save_CFLAGS=$CFLAGS
5204 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5205 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5206 if test "${ac_cv_prog_cc_g+set}" = set; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 ac_save_c_werror_flag=$ac_c_werror_flag
5210 ac_c_werror_flag=yes
5213 cat >conftest.$ac_ext <<_ACEOF
5216 cat confdefs.h >>conftest.$ac_ext
5217 cat >>conftest.$ac_ext <<_ACEOF
5218 /* end confdefs.h. */
5228 rm -f conftest.$ac_objext
5229 if { (ac_try="$ac_compile"
5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235 (eval "$ac_compile") 2>conftest.er1
5237 grep -v '^ *+' conftest.er1 >conftest.err
5239 cat conftest.err >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } &&
5242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5243 { (case "(($ac_try" in
5244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245 *) ac_try_echo=$ac_try;;
5247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5248 (eval "$ac_try") 2>&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }; } &&
5252 { ac_try='test -s conftest.$ac_objext'
5253 { (case "(($ac_try" in
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258 (eval "$ac_try") 2>&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; }; then
5264 echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5268 cat >conftest.$ac_ext <<_ACEOF
5271 cat confdefs.h >>conftest.$ac_ext
5272 cat >>conftest.$ac_ext <<_ACEOF
5273 /* end confdefs.h. */
5283 rm -f conftest.$ac_objext
5284 if { (ac_try="$ac_compile"
5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287 *) ac_try_echo=$ac_try;;
5289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5290 (eval "$ac_compile") 2>conftest.er1
5292 grep -v '^ *+' conftest.er1 >conftest.err
5294 cat conftest.err >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } &&
5297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5298 { (case "(($ac_try" in
5299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300 *) ac_try_echo=$ac_try;;
5302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303 (eval "$ac_try") 2>&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; } &&
5307 { ac_try='test -s conftest.$ac_objext'
5308 { (case "(($ac_try" in
5309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310 *) ac_try_echo=$ac_try;;
5312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313 (eval "$ac_try") 2>&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; }; then
5319 echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5322 ac_c_werror_flag=$ac_save_c_werror_flag
5324 cat >conftest.$ac_ext <<_ACEOF
5327 cat confdefs.h >>conftest.$ac_ext
5328 cat >>conftest.$ac_ext <<_ACEOF
5329 /* end confdefs.h. */
5339 rm -f conftest.$ac_objext
5340 if { (ac_try="$ac_compile"
5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343 *) ac_try_echo=$ac_try;;
5345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5346 (eval "$ac_compile") 2>conftest.er1
5348 grep -v '^ *+' conftest.er1 >conftest.err
5350 cat conftest.err >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } &&
5353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5354 { (case "(($ac_try" in
5355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356 *) ac_try_echo=$ac_try;;
5358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359 (eval "$ac_try") 2>&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }; } &&
5363 { ac_try='test -s conftest.$ac_objext'
5364 { (case "(($ac_try" in
5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366 *) ac_try_echo=$ac_try;;
5368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5369 (eval "$ac_try") 2>&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; }; then
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5388 ac_c_werror_flag=$ac_save_c_werror_flag
5390 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5391 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5392 if test "$ac_test_CFLAGS" = set; then
5393 CFLAGS=$ac_save_CFLAGS
5394 elif test $ac_cv_prog_cc_g = yes; then
5395 if test "$GCC" = yes; then
5401 if test "$GCC" = yes; then
5407 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5408 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5409 if test "${ac_cv_prog_cc_c89+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 ac_cv_prog_cc_c89=no
5414 cat >conftest.$ac_ext <<_ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5422 #include <sys/types.h>
5423 #include <sys/stat.h>
5424 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5425 struct buf { int x; };
5426 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5427 static char *e (p, i)
5433 static char *f (char * (*g) (char **, int), char **p, ...)
5438 s = g (p, va_arg (v,int));
5443 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5444 function prototypes and stuff, but not '\xHH' hex character constants.
5445 These don't provoke an error unfortunately, instead are silently treated
5446 as 'x'. The following induces an error, until -std is added to get
5447 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5448 array size at least. It's necessary to write '\x00'==0 to get something
5449 that's true only with -std. */
5450 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5452 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5453 inside strings and character constants. */
5455 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5457 int test (int i, double x);
5458 struct s1 {int (*f) (int a);};
5459 struct s2 {int (*f) (double a);};
5460 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5466 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5471 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5472 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5474 CC="$ac_save_CC $ac_arg"
5475 rm -f conftest.$ac_objext
5476 if { (ac_try="$ac_compile"
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_compile") 2>conftest.er1
5484 grep -v '^ *+' conftest.er1 >conftest.err
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } &&
5489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5490 { (case "(($ac_try" in
5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492 *) ac_try_echo=$ac_try;;
5494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495 (eval "$ac_try") 2>&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }; } &&
5499 { ac_try='test -s conftest.$ac_objext'
5500 { (case "(($ac_try" in
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_try") 2>&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); }; }; then
5509 ac_cv_prog_cc_c89=$ac_arg
5511 echo "$as_me: failed program was:" >&5
5512 sed 's/^/| /' conftest.$ac_ext >&5
5517 rm -f core conftest.err conftest.$ac_objext
5518 test "x$ac_cv_prog_cc_c89" != "xno" && break
5520 rm -f conftest.$ac_ext
5525 case "x$ac_cv_prog_cc_c89" in
5527 { echo "$as_me:$LINENO: result: none needed" >&5
5528 echo "${ECHO_T}none needed" >&6; } ;;
5530 { echo "$as_me:$LINENO: result: unsupported" >&5
5531 echo "${ECHO_T}unsupported" >&6; } ;;
5533 CC="$CC $ac_cv_prog_cc_c89"
5534 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5535 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5540 ac_cpp='$CPP $CPPFLAGS'
5541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5546 ac_cpp='$CXXCPP $CPPFLAGS'
5547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5550 if test -z "$CXX"; then
5551 if test -n "$CCC"; then
5554 if test -n "$ac_tool_prefix"; then
5557 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5558 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5561 if test "${ac_cv_prog_CXX+set}" = set; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 if test -n "$CXX"; then
5565 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571 test -z "$as_dir" && as_dir=.
5572 for ac_exec_ext in '' $ac_executable_extensions; do
5573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5574 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5585 if test -n "$CXX"; then
5586 { echo "$as_me:$LINENO: result: $CXX" >&5
5587 echo "${ECHO_T}$CXX" >&6; }
5589 { echo "$as_me:$LINENO: result: no" >&5
5590 echo "${ECHO_T}no" >&6; }
5594 test -n "$CXX" && break
5597 if test -z "$CXX"; then
5601 # Extract the first word of "$ac_prog", so it can be a program name with args.
5602 set dummy $ac_prog; ac_word=$2
5603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5605 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5608 if test -n "$ac_ct_CXX"; then
5609 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5618 ac_cv_prog_ac_ct_CXX="$ac_prog"
5619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5628 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5629 if test -n "$ac_ct_CXX"; then
5630 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5631 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5633 { echo "$as_me:$LINENO: result: no" >&5
5634 echo "${ECHO_T}no" >&6; }
5638 test -n "$ac_ct_CXX" && break
5641 if test "x$ac_ct_CXX" = x; then
5644 case $cross_compiling:$ac_tool_warned in
5646 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5647 whose name does not start with the host triplet. If you think this
5648 configuration is useful to you, please write to autoconf@gnu.org." >&5
5649 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5650 whose name does not start with the host triplet. If you think this
5651 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5652 ac_tool_warned=yes ;;
5660 # Provide some information about the compiler.
5661 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5662 ac_compiler=`set X $ac_compile; echo $2`
5663 { (ac_try="$ac_compiler --version >&5"
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669 (eval "$ac_compiler --version >&5") 2>&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }
5673 { (ac_try="$ac_compiler -v >&5"
5675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5676 *) ac_try_echo=$ac_try;;
5678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5679 (eval "$ac_compiler -v >&5") 2>&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }
5683 { (ac_try="$ac_compiler -V >&5"
5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5689 (eval "$ac_compiler -V >&5") 2>&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); }
5694 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5695 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5696 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
5699 cat >conftest.$ac_ext <<_ACEOF
5702 cat confdefs.h >>conftest.$ac_ext
5703 cat >>conftest.$ac_ext <<_ACEOF
5704 /* end confdefs.h. */
5717 rm -f conftest.$ac_objext
5718 if { (ac_try="$ac_compile"
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_compile") 2>conftest.er1
5726 grep -v '^ *+' conftest.er1 >conftest.err
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } &&
5731 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5732 { (case "(($ac_try" in
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_try") 2>&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; } &&
5741 { ac_try='test -s conftest.$ac_objext'
5742 { (case "(($ac_try" in
5743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744 *) ac_try_echo=$ac_try;;
5746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5747 (eval "$ac_try") 2>&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5763 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5764 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5765 GXX=`test $ac_compiler_gnu = yes && echo yes`
5766 ac_test_CXXFLAGS=${CXXFLAGS+set}
5767 ac_save_CXXFLAGS=$CXXFLAGS
5768 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5769 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5770 if test "${ac_cv_prog_cxx_g+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5773 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5774 ac_cxx_werror_flag=yes
5777 cat >conftest.$ac_ext <<_ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h. */
5792 rm -f conftest.$ac_objext
5793 if { (ac_try="$ac_compile"
5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799 (eval "$ac_compile") 2>conftest.er1
5801 grep -v '^ *+' conftest.er1 >conftest.err
5803 cat conftest.err >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } &&
5806 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5807 { (case "(($ac_try" in
5808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5809 *) ac_try_echo=$ac_try;;
5811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5812 (eval "$ac_try") 2>&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); }; } &&
5816 { ac_try='test -s conftest.$ac_objext'
5817 { (case "(($ac_try" in
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822 (eval "$ac_try") 2>&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; }; then
5826 ac_cv_prog_cxx_g=yes
5828 echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5832 cat >conftest.$ac_ext <<_ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5847 rm -f conftest.$ac_objext
5848 if { (ac_try="$ac_compile"
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854 (eval "$ac_compile") 2>conftest.er1
5856 grep -v '^ *+' conftest.er1 >conftest.err
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } &&
5861 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5862 { (case "(($ac_try" in
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_try") 2>&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; } &&
5871 { ac_try='test -s conftest.$ac_objext'
5872 { (case "(($ac_try" in
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877 (eval "$ac_try") 2>&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; }; then
5883 echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5886 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5888 cat >conftest.$ac_ext <<_ACEOF
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h. */
5903 rm -f conftest.$ac_objext
5904 if { (ac_try="$ac_compile"
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910 (eval "$ac_compile") 2>conftest.er1
5912 grep -v '^ *+' conftest.er1 >conftest.err
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } &&
5917 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5918 { (case "(($ac_try" in
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_try") 2>&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; } &&
5927 { ac_try='test -s conftest.$ac_objext'
5928 { (case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_try") 2>&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5937 ac_cv_prog_cxx_g=yes
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5954 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5955 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5956 if test "$ac_test_CXXFLAGS" = set; then
5957 CXXFLAGS=$ac_save_CXXFLAGS
5958 elif test $ac_cv_prog_cxx_g = yes; then
5959 if test "$GXX" = yes; then
5965 if test "$GXX" = yes; then
5972 ac_cpp='$CPP $CPPFLAGS'
5973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5977 { echo "$as_me:$LINENO: checking " >&5
5978 echo $ECHO_N "checking ... $ECHO_C" >&6; }
5979 if test "${ac_cv_has_flex+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 for ac_prog in flex lex
5984 # Extract the first word of "$ac_prog", so it can be a program name with args.
5985 set dummy $ac_prog; ac_word=$2
5986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5988 if test "${ac_cv_prog_LEX+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 if test -n "$LEX"; then
5992 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6001 ac_cv_prog_LEX="$ac_prog"
6002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012 if test -n "$LEX"; then
6013 { echo "$as_me:$LINENO: result: $LEX" >&5
6014 echo "${ECHO_T}$LEX" >&6; }
6016 { echo "$as_me:$LINENO: result: no" >&5
6017 echo "${ECHO_T}no" >&6; }
6021 test -n "$LEX" && break
6023 test -n "$LEX" || LEX=":"
6025 if test -z "$LEXLIB"
6027 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6028 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6029 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 ac_check_lib_save_LIBS=$LIBS
6034 cat >conftest.$ac_ext <<_ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6041 /* Override any GCC internal prototype to avoid an error.
6042 Use char because int might match the return type of a GCC
6043 builtin and then its argument prototype would still apply. */
6056 rm -f conftest.$ac_objext conftest$ac_exeext
6057 if { (ac_try="$ac_link"
6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060 *) ac_try_echo=$ac_try;;
6062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063 (eval "$ac_link") 2>conftest.er1
6065 grep -v '^ *+' conftest.er1 >conftest.err
6067 cat conftest.err >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } &&
6070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6071 { (case "(($ac_try" in
6072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073 *) ac_try_echo=$ac_try;;
6075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076 (eval "$ac_try") 2>&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); }; } &&
6080 { ac_try='test -s conftest$ac_exeext'
6081 { (case "(($ac_try" in
6082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083 *) ac_try_echo=$ac_try;;
6085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6086 (eval "$ac_try") 2>&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; }; then
6090 ac_cv_lib_fl_yywrap=yes
6092 echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6095 ac_cv_lib_fl_yywrap=no
6098 rm -f core conftest.err conftest.$ac_objext \
6099 conftest$ac_exeext conftest.$ac_ext
6100 LIBS=$ac_check_lib_save_LIBS
6102 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6103 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6104 if test $ac_cv_lib_fl_yywrap = yes; then
6107 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6108 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6109 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 ac_check_lib_save_LIBS=$LIBS
6114 cat >conftest.$ac_ext <<_ACEOF
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h. */
6121 /* Override any GCC internal prototype to avoid an error.
6122 Use char because int might match the return type of a GCC
6123 builtin and then its argument prototype would still apply. */
6136 rm -f conftest.$ac_objext conftest$ac_exeext
6137 if { (ac_try="$ac_link"
6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143 (eval "$ac_link") 2>conftest.er1
6145 grep -v '^ *+' conftest.er1 >conftest.err
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } &&
6150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6151 { (case "(($ac_try" in
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_try") 2>&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; } &&
6160 { ac_try='test -s conftest$ac_exeext'
6161 { (case "(($ac_try" in
6162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163 *) ac_try_echo=$ac_try;;
6165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166 (eval "$ac_try") 2>&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
6170 ac_cv_lib_l_yywrap=yes
6172 echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6175 ac_cv_lib_l_yywrap=no
6178 rm -f core conftest.err conftest.$ac_objext \
6179 conftest$ac_exeext conftest.$ac_ext
6180 LIBS=$ac_check_lib_save_LIBS
6182 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6183 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6184 if test $ac_cv_lib_l_yywrap = yes; then
6192 if test "x$LEX" != "x:"; then
6193 { echo "$as_me:$LINENO: checking lex output file root" >&5
6194 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6195 if test "${ac_cv_prog_lex_root+set}" = set; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 # The minimal lex program is just a single line: %%. But some broken lexes
6199 # (Solaris, I think it was) want two %% lines, so accommodate them.
6200 cat >conftest.l <<_ACEOF
6204 { (ac_try="$LEX conftest.l"
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210 (eval "$LEX conftest.l") 2>&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }
6214 if test -f lex.yy.c; then
6215 ac_cv_prog_lex_root=lex.yy
6216 elif test -f lexyy.c; then
6217 ac_cv_prog_lex_root=lexyy
6219 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6220 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6221 { (exit 1); exit 1; }; }
6224 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6225 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6227 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6229 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6230 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6231 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 # POSIX says lex can declare yytext either as a pointer or an array; the
6235 # default is implementation-dependent. Figure out which it is, since
6236 # not all implementations provide the %pointer and %array declarations.
6237 ac_cv_prog_lex_yytext_pointer=no
6238 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6240 LIBS="$LIBS $LEXLIB"
6241 cat >conftest.$ac_ext <<_ACEOF
6242 `cat $LEX_OUTPUT_ROOT.c`
6244 rm -f conftest.$ac_objext conftest$ac_exeext
6245 if { (ac_try="$ac_link"
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_link") 2>conftest.er1
6253 grep -v '^ *+' conftest.er1 >conftest.err
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6259 { (case "(($ac_try" in
6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264 (eval "$ac_try") 2>&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; } &&
6268 { ac_try='test -s conftest$ac_exeext'
6269 { (case "(($ac_try" in
6270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271 *) ac_try_echo=$ac_try;;
6273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6274 (eval "$ac_try") 2>&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); }; }; then
6278 ac_cv_prog_lex_yytext_pointer=yes
6280 echo "$as_me: failed program was:" >&5
6281 sed 's/^/| /' conftest.$ac_ext >&5
6286 rm -f core conftest.err conftest.$ac_objext \
6287 conftest$ac_exeext conftest.$ac_ext
6289 rm -f "${LEX_OUTPUT_ROOT}.c"
6292 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6293 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6294 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6296 cat >>confdefs.h <<\_ACEOF
6297 #define YYTEXT_POINTER 1
6305 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6306 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6307 if test "$LEX" != "flex"; then
6308 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6309 echo "$as_me: error: flex not found but required" >&2;}
6310 { (exit 1); exit 1; }; }
6316 { echo "$as_me:$LINENO: checking " >&5
6317 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6318 if test "${llvm_cv_has_bison+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 for ac_prog in 'bison -y' byacc
6323 # Extract the first word of "$ac_prog", so it can be a program name with args.
6324 set dummy $ac_prog; ac_word=$2
6325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6327 if test "${ac_cv_prog_YACC+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 if test -n "$YACC"; then
6331 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6340 ac_cv_prog_YACC="$ac_prog"
6341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6350 YACC=$ac_cv_prog_YACC
6351 if test -n "$YACC"; then
6352 { echo "$as_me:$LINENO: result: $YACC" >&5
6353 echo "${ECHO_T}$YACC" >&6; }
6355 { echo "$as_me:$LINENO: result: no" >&5
6356 echo "${ECHO_T}no" >&6; }
6360 test -n "$YACC" && break
6362 test -n "$YACC" || YACC="yacc"
6365 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6366 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6367 if test "$YACC" != "bison -y"; then
6369 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6370 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6376 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6377 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6378 if test "${lt_cv_path_NM+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6381 if test -n "$NM"; then
6382 # Let the user override the test.
6385 lt_nm_to_check="${ac_tool_prefix}nm"
6386 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6387 lt_nm_to_check="$lt_nm_to_check nm"
6389 for lt_tmp_nm in $lt_nm_to_check; do
6390 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6391 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6393 test -z "$ac_dir" && ac_dir=.
6394 tmp_nm="$ac_dir/$lt_tmp_nm"
6395 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6396 # Check to see if the nm accepts a BSD-compat flag.
6397 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6398 # nm: unknown option "B" ignored
6399 # Tru64's nm complains that /dev/null is an invalid object file
6400 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6401 */dev/null* | *'Invalid file or object type'*)
6402 lt_cv_path_NM="$tmp_nm -B"
6406 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6408 lt_cv_path_NM="$tmp_nm -p"
6412 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6413 continue # so that we can try to find one that supports BSD flags
6422 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6425 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6426 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6431 { echo "$as_me:$LINENO: checking for GNU make" >&5
6432 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6433 if test "${llvm_cv_gnu_make_command+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 llvm_cv_gnu_make_command=''
6437 for a in "$MAKE" make gmake gnumake ; do
6438 if test -z "$a" ; then continue ; fi ;
6439 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6441 llvm_cv_gnu_make_command=$a ;
6446 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6447 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6448 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6452 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6453 echo "${ECHO_T}\"Not found\"" >&6; };
6457 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6458 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6460 if test "$LN_S" = "ln -s"; then
6461 { echo "$as_me:$LINENO: result: yes" >&5
6462 echo "${ECHO_T}yes" >&6; }
6464 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6465 echo "${ECHO_T}no, using $LN_S" >&6; }
6468 # Extract the first word of "cmp", so it can be a program name with args.
6469 set dummy cmp; ac_word=$2
6470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6472 if test "${ac_cv_path_CMP+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6477 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6487 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6500 if test -n "$CMP"; then
6501 { echo "$as_me:$LINENO: result: $CMP" >&5
6502 echo "${ECHO_T}$CMP" >&6; }
6504 { echo "$as_me:$LINENO: result: no" >&5
6505 echo "${ECHO_T}no" >&6; }
6509 # Extract the first word of "cp", so it can be a program name with args.
6510 set dummy cp; ac_word=$2
6511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6513 if test "${ac_cv_path_CP+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6518 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6528 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6541 if test -n "$CP"; then
6542 { echo "$as_me:$LINENO: result: $CP" >&5
6543 echo "${ECHO_T}$CP" >&6; }
6545 { echo "$as_me:$LINENO: result: no" >&5
6546 echo "${ECHO_T}no" >&6; }
6550 # Extract the first word of "date", so it can be a program name with args.
6551 set dummy date; ac_word=$2
6552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6554 if test "${ac_cv_path_DATE+set}" = set; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 test -z "$as_dir" && as_dir=.
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6569 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6577 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6581 DATE=$ac_cv_path_DATE
6582 if test -n "$DATE"; then
6583 { echo "$as_me:$LINENO: result: $DATE" >&5
6584 echo "${ECHO_T}$DATE" >&6; }
6586 { echo "$as_me:$LINENO: result: no" >&5
6587 echo "${ECHO_T}no" >&6; }
6591 # Extract the first word of "find", so it can be a program name with args.
6592 set dummy find; ac_word=$2
6593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6595 if test "${ac_cv_path_FIND+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 test -z "$as_dir" && as_dir=.
6608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6610 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6618 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6622 FIND=$ac_cv_path_FIND
6623 if test -n "$FIND"; then
6624 { echo "$as_me:$LINENO: result: $FIND" >&5
6625 echo "${ECHO_T}$FIND" >&6; }
6627 { echo "$as_me:$LINENO: result: no" >&5
6628 echo "${ECHO_T}no" >&6; }
6632 # Extract the first word of "grep", so it can be a program name with args.
6633 set dummy grep; ac_word=$2
6634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6636 if test "${ac_cv_path_GREP+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6641 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6651 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6663 GREP=$ac_cv_path_GREP
6664 if test -n "$GREP"; then
6665 { echo "$as_me:$LINENO: result: $GREP" >&5
6666 echo "${ECHO_T}$GREP" >&6; }
6668 { echo "$as_me:$LINENO: result: no" >&5
6669 echo "${ECHO_T}no" >&6; }
6673 # Extract the first word of "mkdir", so it can be a program name with args.
6674 set dummy mkdir; ac_word=$2
6675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6677 if test "${ac_cv_path_MKDIR+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 test -z "$as_dir" && as_dir=.
6690 for ac_exec_ext in '' $ac_executable_extensions; do
6691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6692 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6704 MKDIR=$ac_cv_path_MKDIR
6705 if test -n "$MKDIR"; then
6706 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6707 echo "${ECHO_T}$MKDIR" >&6; }
6709 { echo "$as_me:$LINENO: result: no" >&5
6710 echo "${ECHO_T}no" >&6; }
6714 # Extract the first word of "mv", so it can be a program name with args.
6715 set dummy mv; ac_word=$2
6716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6718 if test "${ac_cv_path_MV+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6733 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6746 if test -n "$MV"; then
6747 { echo "$as_me:$LINENO: result: $MV" >&5
6748 echo "${ECHO_T}$MV" >&6; }
6750 { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6755 if test -n "$ac_tool_prefix"; then
6756 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6757 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6760 if test "${ac_cv_prog_RANLIB+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 if test -n "$RANLIB"; then
6764 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6773 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 RANLIB=$ac_cv_prog_RANLIB
6784 if test -n "$RANLIB"; then
6785 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6786 echo "${ECHO_T}$RANLIB" >&6; }
6788 { echo "$as_me:$LINENO: result: no" >&5
6789 echo "${ECHO_T}no" >&6; }
6794 if test -z "$ac_cv_prog_RANLIB"; then
6795 ac_ct_RANLIB=$RANLIB
6796 # Extract the first word of "ranlib", so it can be a program name with args.
6797 set dummy ranlib; ac_word=$2
6798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6800 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 if test -n "$ac_ct_RANLIB"; then
6804 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6813 ac_cv_prog_ac_ct_RANLIB="ranlib"
6814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6824 if test -n "$ac_ct_RANLIB"; then
6825 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6826 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6828 { echo "$as_me:$LINENO: result: no" >&5
6829 echo "${ECHO_T}no" >&6; }
6832 if test "x$ac_ct_RANLIB" = x; then
6835 case $cross_compiling:$ac_tool_warned in
6837 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6838 whose name does not start with the host triplet. If you think this
6839 configuration is useful to you, please write to autoconf@gnu.org." >&5
6840 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6841 whose name does not start with the host triplet. If you think this
6842 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6843 ac_tool_warned=yes ;;
6845 RANLIB=$ac_ct_RANLIB
6848 RANLIB="$ac_cv_prog_RANLIB"
6851 # Extract the first word of "rm", so it can be a program name with args.
6852 set dummy rm; ac_word=$2
6853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6855 if test "${ac_cv_path_RM+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6870 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6883 if test -n "$RM"; then
6884 { echo "$as_me:$LINENO: result: $RM" >&5
6885 echo "${ECHO_T}$RM" >&6; }
6887 { echo "$as_me:$LINENO: result: no" >&5
6888 echo "${ECHO_T}no" >&6; }
6892 # Extract the first word of "sed", so it can be a program name with args.
6893 set dummy sed; ac_word=$2
6894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6896 if test "${ac_cv_path_SED+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 test -z "$as_dir" && as_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6911 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6924 if test -n "$SED"; then
6925 { echo "$as_me:$LINENO: result: $SED" >&5
6926 echo "${ECHO_T}$SED" >&6; }
6928 { echo "$as_me:$LINENO: result: no" >&5
6929 echo "${ECHO_T}no" >&6; }
6933 # Extract the first word of "tar", so it can be a program name with args.
6934 set dummy tar; ac_word=$2
6935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6937 if test "${ac_cv_path_TAR+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6952 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6965 if test -n "$TAR"; then
6966 { echo "$as_me:$LINENO: result: $TAR" >&5
6967 echo "${ECHO_T}$TAR" >&6; }
6969 { echo "$as_me:$LINENO: result: no" >&5
6970 echo "${ECHO_T}no" >&6; }
6974 # Extract the first word of "pwd", so it can be a program name with args.
6975 set dummy pwd; ac_word=$2
6976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6978 if test "${ac_cv_path_BINPWD+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6993 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7005 BINPWD=$ac_cv_path_BINPWD
7006 if test -n "$BINPWD"; then
7007 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7008 echo "${ECHO_T}$BINPWD" >&6; }
7010 { echo "$as_me:$LINENO: result: no" >&5
7011 echo "${ECHO_T}no" >&6; }
7016 # Extract the first word of "Graphviz", so it can be a program name with args.
7017 set dummy Graphviz; ac_word=$2
7018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7020 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 test -z "$as_dir" && as_dir=.
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7035 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7047 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7048 if test -n "$GRAPHVIZ"; then
7049 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7050 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7052 { echo "$as_me:$LINENO: result: no" >&5
7053 echo "${ECHO_T}no" >&6; }
7057 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7059 cat >>confdefs.h <<\_ACEOF
7060 #define HAVE_GRAPHVIZ 1
7063 if test "$llvm_cv_os_type" == "MingW" ; then
7064 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7067 cat >>confdefs.h <<_ACEOF
7068 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7072 # Extract the first word of "dot", so it can be a program name with args.
7073 set dummy dot; ac_word=$2
7074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076 if test "${ac_cv_path_DOT+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7091 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7104 if test -n "$DOT"; then
7105 { echo "$as_me:$LINENO: result: $DOT" >&5
7106 echo "${ECHO_T}$DOT" >&6; }
7108 { echo "$as_me:$LINENO: result: no" >&5
7109 echo "${ECHO_T}no" >&6; }
7113 if test "$DOT" != "echo dot" ; then
7115 cat >>confdefs.h <<\_ACEOF
7119 if test "$llvm_cv_os_type" == "MingW" ; then
7120 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7123 cat >>confdefs.h <<_ACEOF
7124 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7128 for ac_prog in gv gsview32
7130 # Extract the first word of "$ac_prog", so it can be a program name with args.
7131 set dummy $ac_prog; ac_word=$2
7132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134 if test "${ac_cv_path_GV+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7149 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 if test -n "$GV"; then
7162 { echo "$as_me:$LINENO: result: $GV" >&5
7163 echo "${ECHO_T}$GV" >&6; }
7165 { echo "$as_me:$LINENO: result: no" >&5
7166 echo "${ECHO_T}no" >&6; }
7170 test -n "$GV" && break
7172 test -n "$GV" || GV="echo gv"
7174 if test "$GV" != "echo gv" ; then
7176 cat >>confdefs.h <<\_ACEOF
7180 if test "$llvm_cv_os_type" == "MingW" ; then
7181 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7184 cat >>confdefs.h <<_ACEOF
7185 #define LLVM_PATH_GV "$GV${EXEEXT}"
7189 # Extract the first word of "dotty", so it can be a program name with args.
7190 set dummy dotty; ac_word=$2
7191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193 if test "${ac_cv_path_DOTTY+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7208 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7220 DOTTY=$ac_cv_path_DOTTY
7221 if test -n "$DOTTY"; then
7222 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7223 echo "${ECHO_T}$DOTTY" >&6; }
7225 { echo "$as_me:$LINENO: result: no" >&5
7226 echo "${ECHO_T}no" >&6; }
7230 if test "$DOTTY" != "echo dotty" ; then
7232 cat >>confdefs.h <<\_ACEOF
7233 #define HAVE_DOTTY 1
7236 if test "$llvm_cv_os_type" == "MingW" ; then
7237 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7240 cat >>confdefs.h <<_ACEOF
7241 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7247 # Extract the first word of "perl", so it can be a program name with args.
7248 set dummy perl; ac_word=$2
7249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7251 if test "${ac_cv_path_PERL+set}" = set; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7266 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7274 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7278 PERL=$ac_cv_path_PERL
7279 if test -n "$PERL"; then
7280 { echo "$as_me:$LINENO: result: $PERL" >&5
7281 echo "${ECHO_T}$PERL" >&6; }
7283 { echo "$as_me:$LINENO: result: no" >&5
7284 echo "${ECHO_T}no" >&6; }
7288 if test "$PERL" != "none"; then
7289 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7290 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7291 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7292 { echo "$as_me:$LINENO: result: yes" >&5
7293 echo "${ECHO_T}yes" >&6; }
7296 { echo "$as_me:$LINENO: result: not found" >&5
7297 echo "${ECHO_T}not found" >&6; }
7302 if test x"$PERL" = xnone; then
7310 # Find a good install program. We prefer a C program (faster),
7311 # so one script is as good as another. But avoid the broken or
7312 # incompatible versions:
7313 # SysV /etc/install, /usr/sbin/install
7314 # SunOS /usr/etc/install
7315 # IRIX /sbin/install
7317 # AmigaOS /C/install, which installs bootblocks on floppy discs
7318 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7319 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7320 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7321 # OS/2's system install, which has a completely different semantic
7322 # ./install, which can be erroneously created by make from ./install.sh.
7323 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7324 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7325 if test -z "$INSTALL"; then
7326 if test "${ac_cv_path_install+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 test -z "$as_dir" && as_dir=.
7334 # Account for people who put trailing slashes in PATH elements.
7336 ./ | .// | /cC/* | \
7337 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7338 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7341 # OSF1 and SCO ODT 3.0 have their own names for install.
7342 # Don't use installbsd from OSF since it installs stuff as root
7344 for ac_prog in ginstall scoinst install; do
7345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7347 if test $ac_prog = install &&
7348 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7349 # AIX install. It has an incompatible calling convention.
7351 elif test $ac_prog = install &&
7352 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7353 # program-specific install script used by HP pwplus--don't use.
7356 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7369 if test "${ac_cv_path_install+set}" = set; then
7370 INSTALL=$ac_cv_path_install
7372 # As a last resort, use the slow shell script. Don't cache a
7373 # value for INSTALL within a source directory, because that will
7374 # break other packages using the cache if that directory is
7375 # removed, or if the value is a relative name.
7376 INSTALL=$ac_install_sh
7379 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7380 echo "${ECHO_T}$INSTALL" >&6; }
7382 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7383 # It thinks the first close brace ends the variable substitution.
7384 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7386 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7388 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7391 # Extract the first word of "bzip2", so it can be a program name with args.
7392 set dummy bzip2; ac_word=$2
7393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7395 if test "${ac_cv_path_BZIP2+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 test -z "$as_dir" && as_dir=.
7408 for ac_exec_ext in '' $ac_executable_extensions; do
7409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7410 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7418 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7422 BZIP2=$ac_cv_path_BZIP2
7423 if test -n "$BZIP2"; then
7424 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7425 echo "${ECHO_T}$BZIP2" >&6; }
7427 { echo "$as_me:$LINENO: result: no" >&5
7428 echo "${ECHO_T}no" >&6; }
7432 # Extract the first word of "doxygen", so it can be a program name with args.
7433 set dummy doxygen; ac_word=$2
7434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7441 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7459 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7463 DOXYGEN=$ac_cv_path_DOXYGEN
7464 if test -n "$DOXYGEN"; then
7465 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7466 echo "${ECHO_T}$DOXYGEN" >&6; }
7468 { echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6; }
7473 # Extract the first word of "groff", so it can be a program name with args.
7474 set dummy groff; ac_word=$2
7475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7477 if test "${ac_cv_path_GROFF+set}" = set; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
7482 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 test -z "$as_dir" && as_dir=.
7490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7492 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7504 GROFF=$ac_cv_path_GROFF
7505 if test -n "$GROFF"; then
7506 { echo "$as_me:$LINENO: result: $GROFF" >&5
7507 echo "${ECHO_T}$GROFF" >&6; }
7509 { echo "$as_me:$LINENO: result: no" >&5
7510 echo "${ECHO_T}no" >&6; }
7514 # Extract the first word of "gzip", so it can be a program name with args.
7515 set dummy gzip; ac_word=$2
7516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7518 if test "${ac_cv_path_GZIP+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7523 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530 test -z "$as_dir" && as_dir=.
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7533 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7545 GZIP=$ac_cv_path_GZIP
7546 if test -n "$GZIP"; then
7547 { echo "$as_me:$LINENO: result: $GZIP" >&5
7548 echo "${ECHO_T}$GZIP" >&6; }
7550 { echo "$as_me:$LINENO: result: no" >&5
7551 echo "${ECHO_T}no" >&6; }
7555 # Extract the first word of "pod2html", so it can be a program name with args.
7556 set dummy pod2html; ac_word=$2
7557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7559 if test "${ac_cv_path_POD2HTML+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7564 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571 test -z "$as_dir" && as_dir=.
7572 for ac_exec_ext in '' $ac_executable_extensions; do
7573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7574 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7582 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7586 POD2HTML=$ac_cv_path_POD2HTML
7587 if test -n "$POD2HTML"; then
7588 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7589 echo "${ECHO_T}$POD2HTML" >&6; }
7591 { echo "$as_me:$LINENO: result: no" >&5
7592 echo "${ECHO_T}no" >&6; }
7596 # Extract the first word of "pod2man", so it can be a program name with args.
7597 set dummy pod2man; ac_word=$2
7598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7600 if test "${ac_cv_path_POD2MAN+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7605 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 test -z "$as_dir" && as_dir=.
7613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7615 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7627 POD2MAN=$ac_cv_path_POD2MAN
7628 if test -n "$POD2MAN"; then
7629 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7630 echo "${ECHO_T}$POD2MAN" >&6; }
7632 { echo "$as_me:$LINENO: result: no" >&5
7633 echo "${ECHO_T}no" >&6; }
7637 # Extract the first word of "runtest", so it can be a program name with args.
7638 set dummy runtest; ac_word=$2
7639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7641 if test "${ac_cv_path_RUNTEST+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653 test -z "$as_dir" && as_dir=.
7654 for ac_exec_ext in '' $ac_executable_extensions; do
7655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7656 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7664 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7668 RUNTEST=$ac_cv_path_RUNTEST
7669 if test -n "$RUNTEST"; then
7670 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7671 echo "${ECHO_T}$RUNTEST" >&6; }
7673 { echo "$as_me:$LINENO: result: no" >&5
7674 echo "${ECHO_T}no" >&6; }
7680 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7681 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7683 # Check whether --with-tclinclude was given.
7684 if test "${with_tclinclude+set}" = set; then
7685 withval=$with_tclinclude; with_tclinclude=${withval}
7690 if test "${ac_cv_path_tclsh+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7694 if test x"${with_tclinclude}" != x ; then
7695 if test -f ${with_tclinclude}/tclsh ; then
7696 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7697 elif test -f ${with_tclinclude}/src/tclsh ; then
7698 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7700 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7701 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7702 { (exit 1); exit 1; }; }
7706 if test x"${ac_cv_path_tclsh}" = x ; then
7707 { echo "$as_me:$LINENO: result: none" >&5
7708 echo "${ECHO_T}none" >&6; }
7709 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
7711 # Extract the first word of "$ac_prog", so it can be a program name with args.
7712 set dummy $ac_prog; ac_word=$2
7713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7715 if test "${ac_cv_path_TCLSH+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 test -z "$as_dir" && as_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7730 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7741 TCLSH=$ac_cv_path_TCLSH
7742 if test -n "$TCLSH"; then
7743 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7744 echo "${ECHO_T}$TCLSH" >&6; }
7746 { echo "$as_me:$LINENO: result: no" >&5
7747 echo "${ECHO_T}no" >&6; }
7751 test -n "$TCLSH" && break
7754 if test x"${TCLSH}" = x ; then
7755 ac_cv_path_tclsh='';
7757 ac_cv_path_tclsh="${TCLSH}";
7760 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7761 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7762 TCLSH="${ac_cv_path_tclsh}"
7768 # Extract the first word of "zip", so it can be a program name with args.
7769 set dummy zip; ac_word=$2
7770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7772 if test "${ac_cv_path_ZIP+set}" = set; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7787 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7795 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7800 if test -n "$ZIP"; then
7801 { echo "$as_me:$LINENO: result: $ZIP" >&5
7802 echo "${ECHO_T}$ZIP" >&6; }
7804 { echo "$as_me:$LINENO: result: no" >&5
7805 echo "${ECHO_T}no" >&6; }
7810 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7811 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7812 if test "${llvm_cv_link_use_r+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7816 ac_cpp='$CPP $CPPFLAGS'
7817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7822 CFLAGS="$CFLAGS -Wl,-R."
7823 cat >conftest.$ac_ext <<_ACEOF
7826 cat confdefs.h >>conftest.$ac_ext
7827 cat >>conftest.$ac_ext <<_ACEOF
7828 /* end confdefs.h. */
7833 int main() { return 0; }
7838 rm -f conftest.$ac_objext conftest$ac_exeext
7839 if { (ac_try="$ac_link"
7841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842 *) ac_try_echo=$ac_try;;
7844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845 (eval "$ac_link") 2>conftest.er1
7847 grep -v '^ *+' conftest.er1 >conftest.err
7849 cat conftest.err >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } &&
7852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7853 { (case "(($ac_try" in
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858 (eval "$ac_try") 2>&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; } &&
7862 { ac_try='test -s conftest$ac_exeext'
7863 { (case "(($ac_try" in
7864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865 *) ac_try_echo=$ac_try;;
7867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7868 (eval "$ac_try") 2>&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); }; }; then
7872 llvm_cv_link_use_r=yes
7874 echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7877 llvm_cv_link_use_r=no
7880 rm -f core conftest.err conftest.$ac_objext \
7881 conftest$ac_exeext conftest.$ac_ext
7884 ac_cpp='$CPP $CPPFLAGS'
7885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7891 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7892 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7893 if test "$llvm_cv_link_use_r" = yes ; then
7895 cat >>confdefs.h <<\_ACEOF
7896 #define HAVE_LINK_R 1
7904 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7905 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7906 if test "${ac_cv_c_const+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 cat >conftest.$ac_ext <<_ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h. */
7919 /* FIXME: Include the comments suggested by Paul. */
7921 /* Ultrix mips cc rejects this. */
7922 typedef int charset[2];
7924 /* SunOS 4.1.1 cc rejects this. */
7925 char const *const *ccp;
7927 /* NEC SVR4.0.2 mips cc rejects this. */
7928 struct point {int x, y;};
7929 static struct point const zero = {0,0};
7930 /* AIX XL C 1.02.0.0 rejects this.
7931 It does not let you subtract one const X* pointer from another in
7932 an arm of an if-expression whose if-part is not a constant
7934 const char *g = "string";
7935 ccp = &g + (g ? g-g : 0);
7936 /* HPUX 7.0 cc rejects these. */
7939 ccp = (char const *const *) p;
7940 { /* SCO 3.2v4 cc rejects this. */
7942 char const *s = 0 ? (char *) 0 : (char const *) 0;
7947 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7949 const int *foo = &x[0];
7952 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7953 typedef const int *iptr;
7957 { /* AIX XL C 1.02.0.0 rejects this saying
7958 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7959 struct s { int j; const int *ap[3]; };
7960 struct s *b; b->j = 5;
7962 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7966 return !x[0] && !zero.x;
7973 rm -f conftest.$ac_objext
7974 if { (ac_try="$ac_compile"
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980 (eval "$ac_compile") 2>conftest.er1
7982 grep -v '^ *+' conftest.er1 >conftest.err
7984 cat conftest.err >&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); } &&
7987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7988 { (case "(($ac_try" in
7989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990 *) ac_try_echo=$ac_try;;
7992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993 (eval "$ac_try") 2>&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; } &&
7997 { ac_try='test -s conftest.$ac_objext'
7998 { (case "(($ac_try" in
7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000 *) ac_try_echo=$ac_try;;
8002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003 (eval "$ac_try") 2>&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; }; then
8009 echo "$as_me: failed program was:" >&5
8010 sed 's/^/| /' conftest.$ac_ext >&5
8015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8017 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8018 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8019 if test $ac_cv_c_const = no; then
8021 cat >>confdefs.h <<\_ACEOF
8033 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8034 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8035 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8036 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 cat >conftest.$ac_ext <<_ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h. */
8046 #include <sys/types.h>
8058 rm -f conftest.$ac_objext
8059 if { (ac_try="$ac_compile"
8061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062 *) ac_try_echo=$ac_try;;
8064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065 (eval "$ac_compile") 2>conftest.er1
8067 grep -v '^ *+' conftest.er1 >conftest.err
8069 cat conftest.err >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } &&
8072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8073 { (case "(($ac_try" in
8074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075 *) ac_try_echo=$ac_try;;
8077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078 (eval "$ac_try") 2>&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; } &&
8082 { ac_try='test -s conftest.$ac_objext'
8083 { (case "(($ac_try" in
8084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085 *) ac_try_echo=$ac_try;;
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088 (eval "$ac_try") 2>&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; }; then
8092 eval "$as_ac_Header=yes"
8094 echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8097 eval "$as_ac_Header=no"
8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 ac_res=`eval echo '${'$as_ac_Header'}'`
8103 { echo "$as_me:$LINENO: result: $ac_res" >&5
8104 echo "${ECHO_T}$ac_res" >&6; }
8105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8106 cat >>confdefs.h <<_ACEOF
8107 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8110 ac_header_dirent=$ac_hdr; break
8114 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8115 if test $ac_header_dirent = dirent.h; then
8116 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8117 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8118 if test "${ac_cv_search_opendir+set}" = set; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8121 ac_func_search_save_LIBS=$LIBS
8122 cat >conftest.$ac_ext <<_ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8129 /* Override any GCC internal prototype to avoid an error.
8130 Use char because int might match the return type of a GCC
8131 builtin and then its argument prototype would still apply. */
8144 for ac_lib in '' dir; do
8145 if test -z "$ac_lib"; then
8146 ac_res="none required"
8149 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8151 rm -f conftest.$ac_objext conftest$ac_exeext
8152 if { (ac_try="$ac_link"
8154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8155 *) ac_try_echo=$ac_try;;
8157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8158 (eval "$ac_link") 2>conftest.er1
8160 grep -v '^ *+' conftest.er1 >conftest.err
8162 cat conftest.err >&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } &&
8165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8166 { (case "(($ac_try" in
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_try") 2>&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); }; } &&
8175 { ac_try='test -s conftest$ac_exeext'
8176 { (case "(($ac_try" in
8177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8178 *) ac_try_echo=$ac_try;;
8180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8181 (eval "$ac_try") 2>&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); }; }; then
8185 ac_cv_search_opendir=$ac_res
8187 echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.$ac_ext >&5
8193 rm -f core conftest.err conftest.$ac_objext \
8195 if test "${ac_cv_search_opendir+set}" = set; then
8199 if test "${ac_cv_search_opendir+set}" = set; then
8202 ac_cv_search_opendir=no
8205 LIBS=$ac_func_search_save_LIBS
8207 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8208 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8209 ac_res=$ac_cv_search_opendir
8210 if test "$ac_res" != no; then
8211 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8216 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8217 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8218 if test "${ac_cv_search_opendir+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8221 ac_func_search_save_LIBS=$LIBS
8222 cat >conftest.$ac_ext <<_ACEOF
8225 cat confdefs.h >>conftest.$ac_ext
8226 cat >>conftest.$ac_ext <<_ACEOF
8227 /* end confdefs.h. */
8229 /* Override any GCC internal prototype to avoid an error.
8230 Use char because int might match the return type of a GCC
8231 builtin and then its argument prototype would still apply. */
8244 for ac_lib in '' x; do
8245 if test -z "$ac_lib"; then
8246 ac_res="none required"
8249 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8251 rm -f conftest.$ac_objext conftest$ac_exeext
8252 if { (ac_try="$ac_link"
8254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255 *) ac_try_echo=$ac_try;;
8257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8258 (eval "$ac_link") 2>conftest.er1
8260 grep -v '^ *+' conftest.er1 >conftest.err
8262 cat conftest.err >&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); } &&
8265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8266 { (case "(($ac_try" in
8267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268 *) ac_try_echo=$ac_try;;
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271 (eval "$ac_try") 2>&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; } &&
8275 { ac_try='test -s conftest$ac_exeext'
8276 { (case "(($ac_try" in
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_try") 2>&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); }; }; then
8285 ac_cv_search_opendir=$ac_res
8287 echo "$as_me: failed program was:" >&5
8288 sed 's/^/| /' conftest.$ac_ext >&5
8293 rm -f core conftest.err conftest.$ac_objext \
8295 if test "${ac_cv_search_opendir+set}" = set; then
8299 if test "${ac_cv_search_opendir+set}" = set; then
8302 ac_cv_search_opendir=no
8305 LIBS=$ac_func_search_save_LIBS
8307 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8308 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8309 ac_res=$ac_cv_search_opendir
8310 if test "$ac_res" != no; then
8311 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8318 for ac_header in dlfcn.h
8320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8327 ac_res=`eval echo '${'$as_ac_Header'}'`
8328 { echo "$as_me:$LINENO: result: $ac_res" >&5
8329 echo "${ECHO_T}$ac_res" >&6; }
8331 # Is the header compilable?
8332 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8334 cat >conftest.$ac_ext <<_ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h. */
8340 $ac_includes_default
8341 #include <$ac_header>
8343 rm -f conftest.$ac_objext
8344 if { (ac_try="$ac_compile"
8346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350 (eval "$ac_compile") 2>conftest.er1
8352 grep -v '^ *+' conftest.er1 >conftest.err
8354 cat conftest.err >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } &&
8357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8358 { (case "(($ac_try" in
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_try") 2>&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; } &&
8367 { ac_try='test -s conftest.$ac_objext'
8368 { (case "(($ac_try" in
8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370 *) ac_try_echo=$ac_try;;
8372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373 (eval "$ac_try") 2>&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; }; then
8377 ac_header_compiler=yes
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8382 ac_header_compiler=no
8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8387 echo "${ECHO_T}$ac_header_compiler" >&6; }
8389 # Is the header present?
8390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8392 cat >conftest.$ac_ext <<_ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h. */
8398 #include <$ac_header>
8400 if { (ac_try="$ac_cpp conftest.$ac_ext"
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8408 grep -v '^ *+' conftest.er1 >conftest.err
8410 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } >/dev/null; then
8413 if test -s conftest.err; then
8414 ac_cpp_err=$ac_c_preproc_warn_flag
8415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8422 if test -z "$ac_cpp_err"; then
8423 ac_header_preproc=yes
8425 echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8428 ac_header_preproc=no
8431 rm -f conftest.err conftest.$ac_ext
8432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8433 echo "${ECHO_T}$ac_header_preproc" >&6; }
8435 # So? What about this header?
8436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8442 ac_header_preproc=yes
8445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8452 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8458 ## ----------------------------------- ##
8459 ## Report this to llvmbugs@cs.uiuc.edu ##
8460 ## ----------------------------------- ##
8462 ) | sed "s/^/$as_me: WARNING: /" >&2
8465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
8470 eval "$as_ac_Header=\$ac_header_preproc"
8472 ac_res=`eval echo '${'$as_ac_Header'}'`
8473 { echo "$as_me:$LINENO: result: $ac_res" >&5
8474 echo "${ECHO_T}$ac_res" >&6; }
8477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8478 cat >>confdefs.h <<_ACEOF
8479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8486 # Check whether --enable-ltdl-install was given.
8487 if test "${enable_ltdl_install+set}" = set; then
8488 enableval=$enable_ltdl_install;
8494 if test x"${enable_ltdl_install-no}" != xno; then
8496 INSTALL_LTDL_FALSE='#'
8498 INSTALL_LTDL_TRUE='#'
8504 if test x"${enable_ltdl_convenience-no}" != xno; then
8505 CONVENIENCE_LTDL_TRUE=
8506 CONVENIENCE_LTDL_FALSE='#'
8508 CONVENIENCE_LTDL_TRUE='#'
8509 CONVENIENCE_LTDL_FALSE=
8513 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8514 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8516 libname_spec='lib$name'
8524 shlibpath_overrides_runpath=unknown
8526 dynamic_linker="$host_os ld.so"
8527 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8528 if test "$GCC" = yes; then
8529 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8530 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8531 # if the path contains ";" then we assume it to be the separator
8532 # otherwise default to the standard path separator (i.e. ":") - it is
8533 # assumed that no part of a normal pathname contains ";" but that should
8534 # okay in the real world where ";" in dirpaths is itself problematic.
8535 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8537 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8540 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8542 need_lib_prefix=unknown
8543 hardcode_into_libs=no
8545 # when you set need_version to no, make sure it does not cause -set_version
8546 # flags to be left without arguments
8547 need_version=unknown
8552 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8553 shlibpath_var=LIBPATH
8555 # AIX 3 has no versioning support, so we append a major version to the name.
8556 soname_spec='${libname}${release}${shared_ext}$major'
8563 hardcode_into_libs=yes
8564 if test "$host_cpu" = ia64; then
8565 # AIX 5 supports IA64
8566 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8567 shlibpath_var=LD_LIBRARY_PATH
8569 # With GCC up to 2.95.x, collect2 would create an import file
8570 # for dependence libraries. The import file would start with
8571 # the line `#! .'. This would cause the generated library to
8572 # depend on `.', always an invalid library. This was fixed in
8573 # development snapshots of GCC prior to 3.0.
8575 aix4 | aix4.[01] | aix4.[01].*)
8576 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8578 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8585 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8586 # soname into executable. Probably we can add versioning support to
8587 # collect2, so additional links can be useful in future.
8588 if test "$aix_use_runtimelinking" = yes; then
8589 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8590 # instead of lib<name>.a to let people know that these are not
8591 # typical AIX shared libraries.
8592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8594 # We preserve .a as extension for shared libraries through AIX4.2
8595 # and later when we are not doing run time linking.
8596 library_names_spec='${libname}${release}.a $libname.a'
8597 soname_spec='${libname}${release}${shared_ext}$major'
8599 shlibpath_var=LIBPATH
8604 library_names_spec='$libname.ixlibrary $libname.a'
8605 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8606 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'
8610 library_names_spec='${libname}${shared_ext}'
8611 dynamic_linker="$host_os ld.so"
8612 shlibpath_var=LIBRARY_PATH
8618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8619 soname_spec='${libname}${release}${shared_ext}$major'
8620 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8621 shlibpath_var=LD_LIBRARY_PATH
8622 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8623 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8624 # the default ld.so.conf also contains /usr/contrib/lib and
8625 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8626 # libtool to hard-code these into programs
8629 cygwin* | mingw* | pw32*)
8630 version_type=windows
8635 case $GCC,$host_os in
8636 yes,cygwin* | yes,mingw* | yes,pw32*)
8637 library_names_spec='$libname.dll.a'
8638 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8639 postinstall_cmds='base_file=`basename \${file}`~
8640 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8641 dldir=$destdir/`dirname \$dlpath`~
8642 test -d \$dldir || mkdir -p \$dldir~
8643 $install_prog $dir/$dlname \$dldir/$dlname~
8644 chmod a+x \$dldir/$dlname'
8645 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8646 dlpath=$dir/\$dldll~
8648 shlibpath_overrides_runpath=yes
8652 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8653 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8654 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8657 # MinGW DLLs use traditional 'lib' prefix
8658 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8659 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8660 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8661 # It is most probably a Windows format PATH printed by
8662 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8663 # path with ; separators, and with drive letters. We can handle the
8664 # drive letters (cygwin fileutils understands them), so leave them,
8665 # especially as we might pass files found there to a mingw objdump,
8666 # which wouldn't understand a cygwinified path. Ahh.
8667 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8669 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8673 # pw32 DLLs use 'pw' prefix rather than 'lib'
8674 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8680 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8683 dynamic_linker='Win32 ld.exe'
8684 # FIXME: first we should search . and the directory the executable is in
8688 darwin* | rhapsody*)
8689 dynamic_linker="$host_os dyld"
8693 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8694 soname_spec='${libname}${release}${major}$shared_ext'
8695 shlibpath_overrides_runpath=yes
8696 shlibpath_var=DYLD_LIBRARY_PATH
8697 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8698 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8699 if test "$GCC" = yes; then
8700 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"`
8702 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8704 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8712 soname_spec='${libname}${release}${shared_ext}$major'
8713 shlibpath_var=LD_LIBRARY_PATH
8724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8725 soname_spec='${libname}${release}${shared_ext}$major'
8726 shlibpath_var=LD_LIBRARY_PATH
8727 shlibpath_overrides_runpath=no
8728 hardcode_into_libs=yes
8729 dynamic_linker='GNU ld.so'
8732 freebsd* | dragonfly*)
8733 # DragonFly does not have aout. When/if they implement a new
8734 # versioning mechanism, adjust this.
8735 if test -x /usr/bin/objformat; then
8736 objformat=`/usr/bin/objformat`
8739 freebsd[123]*) objformat=aout ;;
8743 version_type=freebsd-$objformat
8744 case $version_type in
8746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8751 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8755 shlibpath_var=LD_LIBRARY_PATH
8758 shlibpath_overrides_runpath=yes
8760 freebsd3.[01]* | freebsdelf3.[01]*)
8761 shlibpath_overrides_runpath=yes
8762 hardcode_into_libs=yes
8764 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8765 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8766 shlibpath_overrides_runpath=no
8767 hardcode_into_libs=yes
8769 freebsd*) # from 4.6 on
8770 shlibpath_overrides_runpath=yes
8771 hardcode_into_libs=yes
8780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8781 soname_spec='${libname}${release}${shared_ext}$major'
8782 shlibpath_var=LD_LIBRARY_PATH
8783 hardcode_into_libs=yes
8786 hpux9* | hpux10* | hpux11*)
8787 # Give a soname corresponding to the major version so that dld.sl refuses to
8788 # link against other versions.
8795 hardcode_into_libs=yes
8796 dynamic_linker="$host_os dld.so"
8797 shlibpath_var=LD_LIBRARY_PATH
8798 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8800 soname_spec='${libname}${release}${shared_ext}$major'
8801 if test "X$HPUX_IA64_MODE" = X32; then
8802 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8804 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8806 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8810 hardcode_into_libs=yes
8811 dynamic_linker="$host_os dld.sl"
8812 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8813 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8815 soname_spec='${libname}${release}${shared_ext}$major'
8816 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8817 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8821 dynamic_linker="$host_os dld.sl"
8822 shlibpath_var=SHLIB_PATH
8823 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8825 soname_spec='${libname}${release}${shared_ext}$major'
8828 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8829 postinstall_cmds='chmod 555 $lib'
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8837 soname_spec='${libname}${release}${shared_ext}$major'
8838 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8839 shlibpath_var=LD_LIBRARY_PATH
8840 shlibpath_overrides_runpath=no
8841 hardcode_into_libs=yes
8844 irix5* | irix6* | nonstopux*)
8846 nonstopux*) version_type=nonstopux ;;
8848 if test "$lt_cv_prog_gnu_ld" = yes; then
8856 soname_spec='${libname}${release}${shared_ext}$major'
8857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8859 irix5* | nonstopux*)
8863 case $LD in # libtool.m4 will add one of these switches to LD
8864 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8865 libsuff= shlibsuff= libmagic=32-bit;;
8866 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8867 libsuff=32 shlibsuff=N32 libmagic=N32;;
8868 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8869 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8870 *) libsuff= shlibsuff= libmagic=never-match;;
8874 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8875 shlibpath_overrides_runpath=no
8876 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8877 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8878 hardcode_into_libs=yes
8881 # No shared lib support for Linux oldld, aout, or coff.
8882 linux*oldld* | linux*aout* | linux*coff*)
8886 # This must be Linux ELF.
8891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8892 soname_spec='${libname}${release}${shared_ext}$major'
8893 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8894 shlibpath_var=LD_LIBRARY_PATH
8895 shlibpath_overrides_runpath=no
8896 # This implies no fast_install, which is unacceptable.
8897 # Some rework will be needed to allow for fast_install
8898 # before this can be enabled.
8899 hardcode_into_libs=yes
8901 # Append ld.so.conf contents to the search path
8902 if test -f /etc/ld.so.conf; then
8903 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' ' '`
8904 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8907 # We used to test for /lib/ld.so.1 and disable shared libraries on
8908 # powerpc, because MkLinux only supported shared libraries with the
8909 # GNU dynamic linker. Since this was broken with cross compilers,
8910 # most powerpc-linux boxes support dynamic linking these days and
8911 # people can always --disable-shared, the test was removed, and we
8912 # assume the GNU/Linux dynamic linker is in use.
8913 dynamic_linker='GNU/Linux ld.so'
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8921 soname_spec='${libname}${release}${shared_ext}$major'
8922 shlibpath_var=LD_LIBRARY_PATH
8923 shlibpath_overrides_runpath=no
8924 hardcode_into_libs=yes
8925 dynamic_linker='GNU ld.so'
8932 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8935 dynamic_linker='NetBSD (a.out) ld.so'
8937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8938 soname_spec='${libname}${release}${shared_ext}$major'
8939 dynamic_linker='NetBSD ld.elf_so'
8941 shlibpath_var=LD_LIBRARY_PATH
8942 shlibpath_overrides_runpath=yes
8943 hardcode_into_libs=yes
8948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8949 shlibpath_var=LD_LIBRARY_PATH
8950 shlibpath_overrides_runpath=yes
8957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8958 soname_spec='${libname}${release}${shared_ext}$major'
8959 shlibpath_var=LD_LIBRARY_PATH
8960 shlibpath_overrides_runpath=yes
8965 sys_lib_dlsearch_path_spec="/usr/lib"
8967 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8969 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8970 *) need_version=no ;;
8972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8973 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8974 shlibpath_var=LD_LIBRARY_PATH
8975 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8977 openbsd2.[89] | openbsd2.[89].*)
8978 shlibpath_overrides_runpath=no
8981 shlibpath_overrides_runpath=yes
8985 shlibpath_overrides_runpath=yes
8990 libname_spec='$name'
8993 library_names_spec='$libname${shared_ext} $libname.a'
8994 dynamic_linker='OS/2 ld.exe'
8995 shlibpath_var=LIBPATH
8998 osf3* | osf4* | osf5*)
9002 soname_spec='${libname}${release}${shared_ext}$major'
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9004 shlibpath_var=LD_LIBRARY_PATH
9005 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9006 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9014 soname_spec='${libname}${release}${shared_ext}$major'
9015 shlibpath_var=LD_LIBRARY_PATH
9016 shlibpath_overrides_runpath=yes
9017 hardcode_into_libs=yes
9018 # ldd complains unless libraries are executable
9019 postinstall_cmds='chmod +x $lib'
9024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9025 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9026 shlibpath_var=LD_LIBRARY_PATH
9027 shlibpath_overrides_runpath=yes
9028 if test "$with_gnu_ld" = yes; then
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9037 soname_spec='${libname}${release}${shared_ext}$major'
9038 shlibpath_var=LD_LIBRARY_PATH
9039 case $host_vendor in
9041 shlibpath_overrides_runpath=no
9043 export_dynamic_flag_spec='${wl}-Blargedynsym'
9044 runpath_var=LD_RUN_PATH
9052 shlibpath_overrides_runpath=no
9053 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9059 if test -d /usr/nec ;then
9061 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9062 soname_spec='$libname${shared_ext}.$major'
9063 shlibpath_var=LD_LIBRARY_PATH
9067 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9068 version_type=freebsd-elf
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9072 soname_spec='${libname}${release}${shared_ext}$major'
9073 shlibpath_var=LD_LIBRARY_PATH
9074 hardcode_into_libs=yes
9075 if test "$with_gnu_ld" = yes; then
9076 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9077 shlibpath_overrides_runpath=no
9079 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9080 shlibpath_overrides_runpath=yes
9083 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9087 sys_lib_dlsearch_path_spec='/usr/lib'
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9093 soname_spec='${libname}${release}${shared_ext}$major'
9094 shlibpath_var=LD_LIBRARY_PATH
9101 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9102 echo "${ECHO_T}$dynamic_linker" >&6; }
9103 test "$dynamic_linker" = no && can_build_shared=no
9105 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9106 if test "$GCC" = yes; then
9107 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9111 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9112 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9113 if test "${libltdl_cv_shlibext+set}" = set; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 eval libltdl_cv_shlibext=$shrext_cmds
9121 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9122 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9123 if test -n "$libltdl_cv_shlibext"; then
9125 cat >>confdefs.h <<_ACEOF
9126 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9132 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9133 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9134 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9135 echo $ECHO_N "(cached) $ECHO_C" >&6
9137 libltdl_cv_shlibpath_var="$shlibpath_var"
9139 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9140 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9141 if test -n "$libltdl_cv_shlibpath_var"; then
9143 cat >>confdefs.h <<_ACEOF
9144 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9150 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9151 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9152 if test "${libltdl_cv_sys_search_path+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9155 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9157 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9158 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9159 if test -n "$libltdl_cv_sys_search_path"; then
9161 for dir in $libltdl_cv_sys_search_path; do
9162 if test -z "$sys_search_path"; then
9163 sys_search_path="$dir"
9165 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9169 cat >>confdefs.h <<_ACEOF
9170 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9175 { echo "$as_me:$LINENO: checking for objdir" >&5
9176 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9177 if test "${libltdl_cv_objdir+set}" = set; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
9180 libltdl_cv_objdir="$objdir"
9181 if test -n "$objdir"; then
9184 rm -f .libs 2>/dev/null
9185 mkdir .libs 2>/dev/null
9186 if test -d .libs; then
9187 libltdl_cv_objdir=.libs
9189 # MS-DOS does not allow filenames that begin with a dot.
9190 libltdl_cv_objdir=_libs
9192 rmdir .libs 2>/dev/null
9196 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9197 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9199 cat >>confdefs.h <<_ACEOF
9200 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9208 # Check for command to grab the raw symbol name followed by C symbol from nm.
9209 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9210 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9211 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 # These are sane defaults that work on at least a few old systems.
9216 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9218 # Character class describing NM global symbol codes.
9219 symcode='[BCDEGRST]'
9221 # Regexp to match symbols that can be accessed directly from C.
9222 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9224 # Transform an extracted symbol line into a proper C declaration
9225 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9227 # Transform an extracted symbol line into symbol name and symbol address
9228 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'"
9230 # Define system-specific variables.
9235 cygwin* | mingw* | pw32*)
9236 symcode='[ABCDGISTW]'
9238 hpux*) # Its linker distinguishes data from code symbols
9239 if test "$host_cpu" = ia64; then
9240 symcode='[ABCDEGRST]'
9242 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9243 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'"
9246 if test "$host_cpu" = ia64; then
9247 symcode='[ABCDGIRSTW]'
9248 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9249 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'"
9253 symcode='[BCDEGRST]'
9256 symcode='[BCDEGQRST]'
9267 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9275 # Handle CRLF in mingw tool chain
9279 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9283 # If we're using GNU nm, then use its standard symbol codes.
9284 case `$NM -V 2>&1` in
9285 *GNU* | *'with BFD'*)
9286 symcode='[ABCDGIRSTW]' ;;
9289 # Try without a prefix undercore, then with it.
9290 for ac_symprfx in "" "_"; do
9292 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9293 symxfrm="\\1 $ac_symprfx\\2 \\2"
9295 # Write the raw and C identifiers.
9296 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9298 # Check to see that the pipe works correctly.
9302 cat > conftest.$ac_ext <<EOF
9307 void nm_test_func(){}
9311 int main(){nm_test_var='a';nm_test_func();return(0);}
9314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9315 (eval $ac_compile) 2>&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; then
9319 # Now try to grab the symbols.
9321 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9322 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); } && test -s "$nlist"; then
9326 # Try sorting and uniquifying the output.
9327 if sort "$nlist" | uniq > "$nlist"T; then
9328 mv -f "$nlist"T "$nlist"
9333 # Make sure that we snagged all the symbols we need.
9334 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9335 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9336 cat <<EOF > conftest.$ac_ext
9342 # Now generate the symbol file.
9343 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9345 cat <<EOF >> conftest.$ac_ext
9346 #if defined (__STDC__) && __STDC__
9347 # define lt_ptr_t void *
9349 # define lt_ptr_t char *
9353 /* The mapping between symbol names and symbols. */
9358 lt_preloaded_symbols[] =
9361 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9362 cat <<\EOF >> conftest.$ac_ext
9370 # Now try linking the two files.
9371 mv conftest.$ac_objext conftstm.$ac_objext
9372 lt_save_LIBS="$LIBS"
9373 lt_save_CFLAGS="$CFLAGS"
9374 LIBS="conftstm.$ac_objext"
9375 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9377 (eval $ac_link) 2>&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9383 LIBS="$lt_save_LIBS"
9384 CFLAGS="$lt_save_CFLAGS"
9386 echo "cannot find nm_test_func in $nlist" >&5
9389 echo "cannot find nm_test_var in $nlist" >&5
9392 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9395 echo "$progname: failed program was:" >&5
9396 cat conftest.$ac_ext >&5
9398 rm -f conftest* conftst*
9400 # Do not use the global_symbol_pipe unless it works.
9401 if test "$pipe_works" = yes; then
9404 lt_cv_sys_global_symbol_pipe=
9410 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9411 lt_cv_sys_global_symbol_to_cdecl=
9413 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9414 { echo "$as_me:$LINENO: result: failed" >&5
9415 echo "${ECHO_T}failed" >&6; }
9417 { echo "$as_me:$LINENO: result: ok" >&5
9418 echo "${ECHO_T}ok" >&6; }
9422 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9423 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9424 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9425 echo $ECHO_N "(cached) $ECHO_C" >&6
9427 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9428 libltdl_cv_preloaded_symbols=yes
9430 libltdl_cv_preloaded_symbols=no
9434 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9435 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9436 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9438 cat >>confdefs.h <<\_ACEOF
9439 #define HAVE_PRELOADED_SYMBOLS 1
9447 ac_cpp='$CPP $CPPFLAGS'
9448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9453 { echo "$as_me:$LINENO: checking for shl_load" >&5
9454 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9455 if test "${ac_cv_func_shl_load+set}" = set; then
9456 echo $ECHO_N "(cached) $ECHO_C" >&6
9458 cat >conftest.$ac_ext <<_ACEOF
9461 cat confdefs.h >>conftest.$ac_ext
9462 cat >>conftest.$ac_ext <<_ACEOF
9463 /* end confdefs.h. */
9464 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9466 #define shl_load innocuous_shl_load
9468 /* System header to define __stub macros and hopefully few prototypes,
9469 which can conflict with char shl_load (); below.
9470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9471 <limits.h> exists even on freestanding compilers. */
9474 # include <limits.h>
9476 # include <assert.h>
9481 /* Override any GCC internal prototype to avoid an error.
9482 Use char because int might match the return type of a GCC
9483 builtin and then its argument prototype would still apply. */
9488 /* The GNU C library defines this for functions which it implements
9489 to always fail with ENOSYS. Some functions are actually named
9490 something starting with __ and the normal name is an alias. */
9491 #if defined __stub_shl_load || defined __stub___shl_load
9503 rm -f conftest.$ac_objext conftest$ac_exeext
9504 if { (ac_try="$ac_link"
9506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507 *) ac_try_echo=$ac_try;;
9509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9510 (eval "$ac_link") 2>conftest.er1
9512 grep -v '^ *+' conftest.er1 >conftest.err
9514 cat conftest.err >&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); } &&
9517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9518 { (case "(($ac_try" in
9519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9520 *) ac_try_echo=$ac_try;;
9522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9523 (eval "$ac_try") 2>&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; } &&
9527 { ac_try='test -s conftest$ac_exeext'
9528 { (case "(($ac_try" in
9529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530 *) ac_try_echo=$ac_try;;
9532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533 (eval "$ac_try") 2>&5
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); }; }; then
9537 ac_cv_func_shl_load=yes
9539 echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9542 ac_cv_func_shl_load=no
9545 rm -f core conftest.err conftest.$ac_objext \
9546 conftest$ac_exeext conftest.$ac_ext
9548 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9549 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9550 if test $ac_cv_func_shl_load = yes; then
9552 cat >>confdefs.h <<\_ACEOF
9553 #define HAVE_SHL_LOAD 1
9557 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9558 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9559 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
9562 ac_check_lib_save_LIBS=$LIBS
9564 cat >conftest.$ac_ext <<_ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h. */
9571 /* Override any GCC internal prototype to avoid an error.
9572 Use char because int might match the return type of a GCC
9573 builtin and then its argument prototype would still apply. */
9586 rm -f conftest.$ac_objext conftest$ac_exeext
9587 if { (ac_try="$ac_link"
9589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590 *) ac_try_echo=$ac_try;;
9592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593 (eval "$ac_link") 2>conftest.er1
9595 grep -v '^ *+' conftest.er1 >conftest.err
9597 cat conftest.err >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); } &&
9600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9601 { (case "(($ac_try" in
9602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603 *) ac_try_echo=$ac_try;;
9605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9606 (eval "$ac_try") 2>&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }; } &&
9610 { ac_try='test -s conftest$ac_exeext'
9611 { (case "(($ac_try" in
9612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613 *) ac_try_echo=$ac_try;;
9615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9616 (eval "$ac_try") 2>&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; }; then
9620 ac_cv_lib_dld_shl_load=yes
9622 echo "$as_me: failed program was:" >&5
9623 sed 's/^/| /' conftest.$ac_ext >&5
9625 ac_cv_lib_dld_shl_load=no
9628 rm -f core conftest.err conftest.$ac_objext \
9629 conftest$ac_exeext conftest.$ac_ext
9630 LIBS=$ac_check_lib_save_LIBS
9632 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9633 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9634 if test $ac_cv_lib_dld_shl_load = yes; then
9636 cat >>confdefs.h <<\_ACEOF
9637 #define HAVE_SHL_LOAD 1
9640 LIBADD_DL="$LIBADD_DL -ldld"
9642 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9643 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9644 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 ac_check_lib_save_LIBS=$LIBS
9649 cat >conftest.$ac_ext <<_ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h. */
9656 /* Override any GCC internal prototype to avoid an error.
9657 Use char because int might match the return type of a GCC
9658 builtin and then its argument prototype would still apply. */
9671 rm -f conftest.$ac_objext conftest$ac_exeext
9672 if { (ac_try="$ac_link"
9674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675 *) ac_try_echo=$ac_try;;
9677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678 (eval "$ac_link") 2>conftest.er1
9680 grep -v '^ *+' conftest.er1 >conftest.err
9682 cat conftest.err >&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } &&
9685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9686 { (case "(($ac_try" in
9687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688 *) ac_try_echo=$ac_try;;
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691 (eval "$ac_try") 2>&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; } &&
9695 { ac_try='test -s conftest$ac_exeext'
9696 { (case "(($ac_try" in
9697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698 *) ac_try_echo=$ac_try;;
9700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701 (eval "$ac_try") 2>&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; }; then
9705 ac_cv_lib_dl_dlopen=yes
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9710 ac_cv_lib_dl_dlopen=no
9713 rm -f core conftest.err conftest.$ac_objext \
9714 conftest$ac_exeext conftest.$ac_ext
9715 LIBS=$ac_check_lib_save_LIBS
9717 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9718 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9719 if test $ac_cv_lib_dl_dlopen = yes; then
9721 cat >>confdefs.h <<\_ACEOF
9722 #define HAVE_LIBDL 1
9725 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9727 cat >conftest.$ac_ext <<_ACEOF
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h. */
9745 rm -f conftest.$ac_objext conftest$ac_exeext
9746 if { (ac_try="$ac_link"
9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749 *) ac_try_echo=$ac_try;;
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752 (eval "$ac_link") 2>conftest.er1
9754 grep -v '^ *+' conftest.er1 >conftest.err
9756 cat conftest.err >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } &&
9759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9760 { (case "(($ac_try" in
9761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762 *) ac_try_echo=$ac_try;;
9764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9765 (eval "$ac_try") 2>&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; } &&
9769 { ac_try='test -s conftest$ac_exeext'
9770 { (case "(($ac_try" in
9771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772 *) ac_try_echo=$ac_try;;
9774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775 (eval "$ac_try") 2>&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); }; }; then
9780 cat >>confdefs.h <<\_ACEOF
9781 #define HAVE_LIBDL 1
9783 libltdl_cv_func_dlopen="yes"
9785 echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9788 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9789 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9790 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9793 ac_check_lib_save_LIBS=$LIBS
9795 cat >conftest.$ac_ext <<_ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9802 /* Override any GCC internal prototype to avoid an error.
9803 Use char because int might match the return type of a GCC
9804 builtin and then its argument prototype would still apply. */
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (ac_try="$ac_link"
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_link") 2>conftest.er1
9826 grep -v '^ *+' conftest.er1 >conftest.err
9828 cat conftest.err >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } &&
9831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9832 { (case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_try") 2>&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; } &&
9841 { ac_try='test -s conftest$ac_exeext'
9842 { (case "(($ac_try" in
9843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844 *) ac_try_echo=$ac_try;;
9846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847 (eval "$ac_try") 2>&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; }; then
9851 ac_cv_lib_svld_dlopen=yes
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9856 ac_cv_lib_svld_dlopen=no
9859 rm -f core conftest.err conftest.$ac_objext \
9860 conftest$ac_exeext conftest.$ac_ext
9861 LIBS=$ac_check_lib_save_LIBS
9863 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9864 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9865 if test $ac_cv_lib_svld_dlopen = yes; then
9867 cat >>confdefs.h <<\_ACEOF
9868 #define HAVE_LIBDL 1
9871 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9873 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9874 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9875 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 ac_check_lib_save_LIBS=$LIBS
9880 cat >conftest.$ac_ext <<_ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h. */
9887 /* Override any GCC internal prototype to avoid an error.
9888 Use char because int might match the return type of a GCC
9889 builtin and then its argument prototype would still apply. */
9902 rm -f conftest.$ac_objext conftest$ac_exeext
9903 if { (ac_try="$ac_link"
9905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906 *) ac_try_echo=$ac_try;;
9908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909 (eval "$ac_link") 2>conftest.er1
9911 grep -v '^ *+' conftest.er1 >conftest.err
9913 cat conftest.err >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } &&
9916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9917 { (case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_try") 2>&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; } &&
9926 { ac_try='test -s conftest$ac_exeext'
9927 { (case "(($ac_try" in
9928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929 *) ac_try_echo=$ac_try;;
9931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932 (eval "$ac_try") 2>&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; }; then
9936 ac_cv_lib_dld_dld_link=yes
9938 echo "$as_me: failed program was:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9941 ac_cv_lib_dld_dld_link=no
9944 rm -f core conftest.err conftest.$ac_objext \
9945 conftest$ac_exeext conftest.$ac_ext
9946 LIBS=$ac_check_lib_save_LIBS
9948 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9949 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9950 if test $ac_cv_lib_dld_dld_link = yes; then
9952 cat >>confdefs.h <<\_ACEOF
9956 LIBADD_DL="$LIBADD_DL -ldld"
9958 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9959 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9960 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 cat >conftest.$ac_ext <<_ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9969 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9971 #define _dyld_func_lookup innocuous__dyld_func_lookup
9973 /* System header to define __stub macros and hopefully few prototypes,
9974 which can conflict with char _dyld_func_lookup (); below.
9975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9976 <limits.h> exists even on freestanding compilers. */
9979 # include <limits.h>
9981 # include <assert.h>
9984 #undef _dyld_func_lookup
9986 /* Override any GCC internal prototype to avoid an error.
9987 Use char because int might match the return type of a GCC
9988 builtin and then its argument prototype would still apply. */
9992 char _dyld_func_lookup ();
9993 /* The GNU C library defines this for functions which it implements
9994 to always fail with ENOSYS. Some functions are actually named
9995 something starting with __ and the normal name is an alias. */
9996 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10003 return _dyld_func_lookup ();
10008 rm -f conftest.$ac_objext conftest$ac_exeext
10009 if { (ac_try="$ac_link"
10010 case "(($ac_try" in
10011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10012 *) ac_try_echo=$ac_try;;
10014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10015 (eval "$ac_link") 2>conftest.er1
10017 grep -v '^ *+' conftest.er1 >conftest.err
10019 cat conftest.err >&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
10022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10023 { (case "(($ac_try" in
10024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025 *) ac_try_echo=$ac_try;;
10027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028 (eval "$ac_try") 2>&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; } &&
10032 { ac_try='test -s conftest$ac_exeext'
10033 { (case "(($ac_try" in
10034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035 *) ac_try_echo=$ac_try;;
10037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10038 (eval "$ac_try") 2>&5
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; }; then
10042 ac_cv_func__dyld_func_lookup=yes
10044 echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.$ac_ext >&5
10047 ac_cv_func__dyld_func_lookup=no
10050 rm -f core conftest.err conftest.$ac_objext \
10051 conftest$ac_exeext conftest.$ac_ext
10053 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10054 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10055 if test $ac_cv_func__dyld_func_lookup = yes; then
10057 cat >>confdefs.h <<\_ACEOF
10058 #define HAVE_DYLD 1
10072 rm -f core conftest.err conftest.$ac_objext \
10073 conftest$ac_exeext conftest.$ac_ext
10084 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10086 lt_save_LIBS="$LIBS"
10087 LIBS="$LIBS $LIBADD_DL"
10089 for ac_func in dlerror
10091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10092 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10094 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10097 cat >conftest.$ac_ext <<_ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10105 #define $ac_func innocuous_$ac_func
10107 /* System header to define __stub macros and hopefully few prototypes,
10108 which can conflict with char $ac_func (); below.
10109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10110 <limits.h> exists even on freestanding compilers. */
10113 # include <limits.h>
10115 # include <assert.h>
10120 /* Override any GCC internal prototype to avoid an error.
10121 Use char because int might match the return type of a GCC
10122 builtin and then its argument prototype would still apply. */
10127 /* The GNU C library defines this for functions which it implements
10128 to always fail with ENOSYS. Some functions are actually named
10129 something starting with __ and the normal name is an alias. */
10130 #if defined __stub_$ac_func || defined __stub___$ac_func
10137 return $ac_func ();
10142 rm -f conftest.$ac_objext conftest$ac_exeext
10143 if { (ac_try="$ac_link"
10144 case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149 (eval "$ac_link") 2>conftest.er1
10151 grep -v '^ *+' conftest.er1 >conftest.err
10153 cat conftest.err >&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); } &&
10156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10157 { (case "(($ac_try" in
10158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159 *) ac_try_echo=$ac_try;;
10161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162 (eval "$ac_try") 2>&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; } &&
10166 { ac_try='test -s conftest$ac_exeext'
10167 { (case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172 (eval "$ac_try") 2>&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); }; }; then
10176 eval "$as_ac_var=yes"
10178 echo "$as_me: failed program was:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10181 eval "$as_ac_var=no"
10184 rm -f core conftest.err conftest.$ac_objext \
10185 conftest$ac_exeext conftest.$ac_ext
10187 ac_res=`eval echo '${'$as_ac_var'}'`
10188 { echo "$as_me:$LINENO: result: $ac_res" >&5
10189 echo "${ECHO_T}$ac_res" >&6; }
10190 if test `eval echo '${'$as_ac_var'}'` = yes; then
10191 cat >>confdefs.h <<_ACEOF
10192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10198 LIBS="$lt_save_LIBS"
10201 ac_cpp='$CPP $CPPFLAGS'
10202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10208 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10209 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10210 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10211 echo $ECHO_N "(cached) $ECHO_C" >&6
10213 ac_cv_sys_symbol_underscore=no
10214 cat > conftest.$ac_ext <<EOF
10215 void nm_test_func(){}
10216 int main(){nm_test_func;return 0;}
10218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10219 (eval $ac_compile) 2>&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; then
10223 # Now try to grab the symbols.
10224 ac_nlist=conftest.nm
10225 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10226 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } && test -s "$ac_nlist"; then
10230 # See whether the symbols have a leading underscore.
10231 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10232 ac_cv_sys_symbol_underscore=yes
10234 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10237 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10241 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10244 echo "configure: failed program was:" >&5
10250 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10251 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10254 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10255 if test x"$libltdl_cv_func_dlopen" = xyes ||
10256 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10257 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10258 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10259 if test "${libltdl_cv_need_uscore+set}" = set; then
10260 echo $ECHO_N "(cached) $ECHO_C" >&6
10262 libltdl_cv_need_uscore=unknown
10264 LIBS="$LIBS $LIBADD_DL"
10265 if test "$cross_compiling" = yes; then :
10266 libltdl_cv_need_uscore=cross
10268 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10269 lt_status=$lt_dlunknown
10270 cat > conftest.$ac_ext <<EOF
10271 #line 10271 "configure"
10272 #include "confdefs.h"
10281 # define LT_DLGLOBAL RTLD_GLOBAL
10284 # define LT_DLGLOBAL DL_GLOBAL
10286 # define LT_DLGLOBAL 0
10290 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10291 find out it does not work in some platform. */
10292 #ifndef LT_DLLAZY_OR_NOW
10294 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10297 # define LT_DLLAZY_OR_NOW DL_LAZY
10300 # define LT_DLLAZY_OR_NOW RTLD_NOW
10303 # define LT_DLLAZY_OR_NOW DL_NOW
10305 # define LT_DLLAZY_OR_NOW 0
10313 extern "C" void exit (int);
10316 void fnord() { int i=42;}
10319 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10320 int status = $lt_dlunknown;
10324 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10325 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10326 /* dlclose (self); */
10334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10335 (eval $ac_link) 2>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10339 (./conftest; exit; ) >&5 2>/dev/null
10341 case x$lt_status in
10342 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10343 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10344 x$lt_dlunknown|x*) ;;
10347 # compilation failed
10356 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10357 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10361 if test x"$libltdl_cv_need_uscore" = xyes; then
10363 cat >>confdefs.h <<\_ACEOF
10364 #define NEED_USCORE 1
10370 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10371 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10372 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10373 echo $ECHO_N "(cached) $ECHO_C" >&6
10375 # PORTME does your system automatically load deplibs for dlopen?
10376 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10377 # For now, we just catch OSes we know something about -- in the
10378 # future, we'll try test this programmatically.
10379 libltdl_cv_sys_dlopen_deplibs=unknown
10381 aix3*|aix4.1.*|aix4.2.*)
10382 # Unknown whether this is true for these versions of AIX, but
10383 # we want this `case' here to explicitly catch those versions.
10384 libltdl_cv_sys_dlopen_deplibs=unknown
10387 libltdl_cv_sys_dlopen_deplibs=yes
10390 # Assuming the user has installed a libdl from somewhere, this is true
10391 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10392 libltdl_cv_sys_dlopen_deplibs=yes
10394 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10395 # GNU and its variants, using gnu ld.so (Glibc)
10396 libltdl_cv_sys_dlopen_deplibs=yes
10399 libltdl_cv_sys_dlopen_deplibs=yes
10402 libltdl_cv_sys_dlopen_deplibs=yes
10404 irix[12345]*|irix6.[01]*)
10405 # Catch all versions of IRIX before 6.2, and indicate that we don't
10406 # know how it worked for any of those versions.
10407 libltdl_cv_sys_dlopen_deplibs=unknown
10410 # The case above catches anything before 6.2, and it's known that
10411 # at 6.2 and later dlopen does load deplibs.
10412 libltdl_cv_sys_dlopen_deplibs=yes
10415 libltdl_cv_sys_dlopen_deplibs=yes
10418 libltdl_cv_sys_dlopen_deplibs=yes
10421 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10422 # it did *not* use an RPATH in a shared library to find objects the
10423 # library depends on, so we explictly say `no'.
10424 libltdl_cv_sys_dlopen_deplibs=no
10426 osf5.0|osf5.0a|osf5.1)
10427 # dlopen *does* load deplibs and with the right loader patch applied
10428 # it even uses RPATH in a shared library to search for shared objects
10429 # that the library depends on, but there's no easy way to know if that
10430 # patch is installed. Since this is the case, all we can really
10431 # say is unknown -- it depends on the patch being installed. If
10432 # it is, this changes to `yes'. Without it, it would be `no'.
10433 libltdl_cv_sys_dlopen_deplibs=unknown
10436 # the two cases above should catch all versions of osf <= 5.1. Read
10437 # the comments above for what we know about them.
10438 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10439 # is used to find them so we can finally say `yes'.
10440 libltdl_cv_sys_dlopen_deplibs=yes
10443 libltdl_cv_sys_dlopen_deplibs=yes
10445 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10446 libltdl_cv_sys_dlopen_deplibs=yes
10451 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10452 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10453 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10455 cat >>confdefs.h <<\_ACEOF
10456 #define LTDL_DLOPEN_DEPLIBS 1
10462 for ac_header in argz.h
10464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 ac_res=`eval echo '${'$as_ac_Header'}'`
10472 { echo "$as_me:$LINENO: result: $ac_res" >&5
10473 echo "${ECHO_T}$ac_res" >&6; }
10475 # Is the header compilable?
10476 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10478 cat >conftest.$ac_ext <<_ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10484 $ac_includes_default
10485 #include <$ac_header>
10487 rm -f conftest.$ac_objext
10488 if { (ac_try="$ac_compile"
10489 case "(($ac_try" in
10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_compile") 2>conftest.er1
10496 grep -v '^ *+' conftest.er1 >conftest.err
10498 cat conftest.err >&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } &&
10501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10502 { (case "(($ac_try" in
10503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10504 *) ac_try_echo=$ac_try;;
10506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10507 (eval "$ac_try") 2>&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; } &&
10511 { ac_try='test -s conftest.$ac_objext'
10512 { (case "(($ac_try" in
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514 *) ac_try_echo=$ac_try;;
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517 (eval "$ac_try") 2>&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; }; then
10521 ac_header_compiler=yes
10523 echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10526 ac_header_compiler=no
10529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10531 echo "${ECHO_T}$ac_header_compiler" >&6; }
10533 # Is the header present?
10534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10536 cat >conftest.$ac_ext <<_ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h. */
10542 #include <$ac_header>
10544 if { (ac_try="$ac_cpp conftest.$ac_ext"
10545 case "(($ac_try" in
10546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547 *) ac_try_echo=$ac_try;;
10549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10552 grep -v '^ *+' conftest.er1 >conftest.err
10554 cat conftest.err >&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } >/dev/null; then
10557 if test -s conftest.err; then
10558 ac_cpp_err=$ac_c_preproc_warn_flag
10559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10566 if test -z "$ac_cpp_err"; then
10567 ac_header_preproc=yes
10569 echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10572 ac_header_preproc=no
10575 rm -f conftest.err conftest.$ac_ext
10576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10577 echo "${ECHO_T}$ac_header_preproc" >&6; }
10579 # So? What about this header?
10580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10586 ac_header_preproc=yes
10589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10596 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10602 ## ----------------------------------- ##
10603 ## Report this to llvmbugs@cs.uiuc.edu ##
10604 ## ----------------------------------- ##
10606 ) | sed "s/^/$as_me: WARNING: /" >&2
10609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10612 echo $ECHO_N "(cached) $ECHO_C" >&6
10614 eval "$as_ac_Header=\$ac_header_preproc"
10616 ac_res=`eval echo '${'$as_ac_Header'}'`
10617 { echo "$as_me:$LINENO: result: $ac_res" >&5
10618 echo "${ECHO_T}$ac_res" >&6; }
10621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10622 cat >>confdefs.h <<_ACEOF
10623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10631 { echo "$as_me:$LINENO: checking for error_t" >&5
10632 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10633 if test "${ac_cv_type_error_t+set}" = set; then
10634 echo $ECHO_N "(cached) $ECHO_C" >&6
10636 cat >conftest.$ac_ext <<_ACEOF
10639 cat confdefs.h >>conftest.$ac_ext
10640 cat >>conftest.$ac_ext <<_ACEOF
10641 /* end confdefs.h. */
10646 typedef error_t ac__type_new_;
10650 if ((ac__type_new_ *) 0)
10652 if (sizeof (ac__type_new_))
10658 rm -f conftest.$ac_objext
10659 if { (ac_try="$ac_compile"
10660 case "(($ac_try" in
10661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662 *) ac_try_echo=$ac_try;;
10664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10665 (eval "$ac_compile") 2>conftest.er1
10667 grep -v '^ *+' conftest.er1 >conftest.err
10669 cat conftest.err >&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } &&
10672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10673 { (case "(($ac_try" in
10674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675 *) ac_try_echo=$ac_try;;
10677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10678 (eval "$ac_try") 2>&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; } &&
10682 { ac_try='test -s conftest.$ac_objext'
10683 { (case "(($ac_try" in
10684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685 *) ac_try_echo=$ac_try;;
10687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10688 (eval "$ac_try") 2>&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; }; then
10692 ac_cv_type_error_t=yes
10694 echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10697 ac_cv_type_error_t=no
10700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10702 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10703 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10704 if test $ac_cv_type_error_t = yes; then
10706 cat >>confdefs.h <<_ACEOF
10707 #define HAVE_ERROR_T 1
10713 cat >>confdefs.h <<\_ACEOF
10714 #define error_t int
10725 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10731 echo $ECHO_N "(cached) $ECHO_C" >&6
10733 cat >conftest.$ac_ext <<_ACEOF
10736 cat confdefs.h >>conftest.$ac_ext
10737 cat >>conftest.$ac_ext <<_ACEOF
10738 /* end confdefs.h. */
10739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10741 #define $ac_func innocuous_$ac_func
10743 /* System header to define __stub macros and hopefully few prototypes,
10744 which can conflict with char $ac_func (); below.
10745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10746 <limits.h> exists even on freestanding compilers. */
10749 # include <limits.h>
10751 # include <assert.h>
10756 /* Override any GCC internal prototype to avoid an error.
10757 Use char because int might match the return type of a GCC
10758 builtin and then its argument prototype would still apply. */
10763 /* The GNU C library defines this for functions which it implements
10764 to always fail with ENOSYS. Some functions are actually named
10765 something starting with __ and the normal name is an alias. */
10766 #if defined __stub_$ac_func || defined __stub___$ac_func
10773 return $ac_func ();
10778 rm -f conftest.$ac_objext conftest$ac_exeext
10779 if { (ac_try="$ac_link"
10780 case "(($ac_try" in
10781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782 *) ac_try_echo=$ac_try;;
10784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10785 (eval "$ac_link") 2>conftest.er1
10787 grep -v '^ *+' conftest.er1 >conftest.err
10789 cat conftest.err >&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } &&
10792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10793 { (case "(($ac_try" in
10794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795 *) ac_try_echo=$ac_try;;
10797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10798 (eval "$ac_try") 2>&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); }; } &&
10802 { ac_try='test -s conftest$ac_exeext'
10803 { (case "(($ac_try" in
10804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10805 *) ac_try_echo=$ac_try;;
10807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808 (eval "$ac_try") 2>&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); }; }; then
10812 eval "$as_ac_var=yes"
10814 echo "$as_me: failed program was:" >&5
10815 sed 's/^/| /' conftest.$ac_ext >&5
10817 eval "$as_ac_var=no"
10820 rm -f core conftest.err conftest.$ac_objext \
10821 conftest$ac_exeext conftest.$ac_ext
10823 ac_res=`eval echo '${'$as_ac_var'}'`
10824 { echo "$as_me:$LINENO: result: $ac_res" >&5
10825 echo "${ECHO_T}$ac_res" >&6; }
10826 if test `eval echo '${'$as_ac_var'}'` = yes; then
10827 cat >>confdefs.h <<_ACEOF
10828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10861 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10866 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 ac_res=`eval echo '${'$as_ac_Header'}'`
10872 { echo "$as_me:$LINENO: result: $ac_res" >&5
10873 echo "${ECHO_T}$ac_res" >&6; }
10875 # Is the header compilable?
10876 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10877 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10878 cat >conftest.$ac_ext <<_ACEOF
10881 cat confdefs.h >>conftest.$ac_ext
10882 cat >>conftest.$ac_ext <<_ACEOF
10883 /* end confdefs.h. */
10884 $ac_includes_default
10885 #include <$ac_header>
10887 rm -f conftest.$ac_objext
10888 if { (ac_try="$ac_compile"
10889 case "(($ac_try" in
10890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891 *) ac_try_echo=$ac_try;;
10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894 (eval "$ac_compile") 2>conftest.er1
10896 grep -v '^ *+' conftest.er1 >conftest.err
10898 cat conftest.err >&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } &&
10901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10902 { (case "(($ac_try" in
10903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904 *) ac_try_echo=$ac_try;;
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907 (eval "$ac_try") 2>&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; } &&
10911 { ac_try='test -s conftest.$ac_objext'
10912 { (case "(($ac_try" in
10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914 *) ac_try_echo=$ac_try;;
10916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917 (eval "$ac_try") 2>&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); }; }; then
10921 ac_header_compiler=yes
10923 echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10926 ac_header_compiler=no
10929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10930 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10931 echo "${ECHO_T}$ac_header_compiler" >&6; }
10933 # Is the header present?
10934 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10936 cat >conftest.$ac_ext <<_ACEOF
10939 cat confdefs.h >>conftest.$ac_ext
10940 cat >>conftest.$ac_ext <<_ACEOF
10941 /* end confdefs.h. */
10942 #include <$ac_header>
10944 if { (ac_try="$ac_cpp conftest.$ac_ext"
10945 case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10952 grep -v '^ *+' conftest.er1 >conftest.err
10954 cat conftest.err >&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); } >/dev/null; then
10957 if test -s conftest.err; then
10958 ac_cpp_err=$ac_c_preproc_warn_flag
10959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10966 if test -z "$ac_cpp_err"; then
10967 ac_header_preproc=yes
10969 echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.$ac_ext >&5
10972 ac_header_preproc=no
10975 rm -f conftest.err conftest.$ac_ext
10976 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10977 echo "${ECHO_T}$ac_header_preproc" >&6; }
10979 # So? What about this header?
10980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10986 ac_header_preproc=yes
10989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10996 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11002 ## ----------------------------------- ##
11003 ## Report this to llvmbugs@cs.uiuc.edu ##
11004 ## ----------------------------------- ##
11006 ) | sed "s/^/$as_me: WARNING: /" >&2
11009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11014 eval "$as_ac_Header=\$ac_header_preproc"
11016 ac_res=`eval echo '${'$as_ac_Header'}'`
11017 { echo "$as_me:$LINENO: result: $ac_res" >&5
11018 echo "${ECHO_T}$ac_res" >&6; }
11021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11022 cat >>confdefs.h <<_ACEOF
11023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11034 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11041 echo $ECHO_N "(cached) $ECHO_C" >&6
11043 ac_res=`eval echo '${'$as_ac_Header'}'`
11044 { echo "$as_me:$LINENO: result: $ac_res" >&5
11045 echo "${ECHO_T}$ac_res" >&6; }
11047 # Is the header compilable?
11048 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11050 cat >conftest.$ac_ext <<_ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h. */
11056 $ac_includes_default
11057 #include <$ac_header>
11059 rm -f conftest.$ac_objext
11060 if { (ac_try="$ac_compile"
11061 case "(($ac_try" in
11062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063 *) ac_try_echo=$ac_try;;
11065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066 (eval "$ac_compile") 2>conftest.er1
11068 grep -v '^ *+' conftest.er1 >conftest.err
11070 cat conftest.err >&5
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } &&
11073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11074 { (case "(($ac_try" in
11075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076 *) ac_try_echo=$ac_try;;
11078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079 (eval "$ac_try") 2>&5
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); }; } &&
11083 { ac_try='test -s conftest.$ac_objext'
11084 { (case "(($ac_try" in
11085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11086 *) ac_try_echo=$ac_try;;
11088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11089 (eval "$ac_try") 2>&5
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); }; }; then
11093 ac_header_compiler=yes
11095 echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.$ac_ext >&5
11098 ac_header_compiler=no
11101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11103 echo "${ECHO_T}$ac_header_compiler" >&6; }
11105 # Is the header present?
11106 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11108 cat >conftest.$ac_ext <<_ACEOF
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h. */
11114 #include <$ac_header>
11116 if { (ac_try="$ac_cpp conftest.$ac_ext"
11117 case "(($ac_try" in
11118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11119 *) ac_try_echo=$ac_try;;
11121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11124 grep -v '^ *+' conftest.er1 >conftest.err
11126 cat conftest.err >&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); } >/dev/null; then
11129 if test -s conftest.err; then
11130 ac_cpp_err=$ac_c_preproc_warn_flag
11131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11138 if test -z "$ac_cpp_err"; then
11139 ac_header_preproc=yes
11141 echo "$as_me: failed program was:" >&5
11142 sed 's/^/| /' conftest.$ac_ext >&5
11144 ac_header_preproc=no
11147 rm -f conftest.err conftest.$ac_ext
11148 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11149 echo "${ECHO_T}$ac_header_preproc" >&6; }
11151 # So? What about this header?
11152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11158 ac_header_preproc=yes
11161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11164 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11166 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11168 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11172 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11174 ## ----------------------------------- ##
11175 ## Report this to llvmbugs@cs.uiuc.edu ##
11176 ## ----------------------------------- ##
11178 ) | sed "s/^/$as_me: WARNING: /" >&2
11181 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11186 eval "$as_ac_Header=\$ac_header_preproc"
11188 ac_res=`eval echo '${'$as_ac_Header'}'`
11189 { echo "$as_me:$LINENO: result: $ac_res" >&5
11190 echo "${ECHO_T}$ac_res" >&6; }
11193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11194 cat >>confdefs.h <<_ACEOF
11195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11204 for ac_header in string.h strings.h
11206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11213 ac_res=`eval echo '${'$as_ac_Header'}'`
11214 { echo "$as_me:$LINENO: result: $ac_res" >&5
11215 echo "${ECHO_T}$ac_res" >&6; }
11217 # Is the header compilable?
11218 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11220 cat >conftest.$ac_ext <<_ACEOF
11223 cat confdefs.h >>conftest.$ac_ext
11224 cat >>conftest.$ac_ext <<_ACEOF
11225 /* end confdefs.h. */
11226 $ac_includes_default
11227 #include <$ac_header>
11229 rm -f conftest.$ac_objext
11230 if { (ac_try="$ac_compile"
11231 case "(($ac_try" in
11232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11233 *) ac_try_echo=$ac_try;;
11235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11236 (eval "$ac_compile") 2>conftest.er1
11238 grep -v '^ *+' conftest.er1 >conftest.err
11240 cat conftest.err >&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } &&
11243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11244 { (case "(($ac_try" in
11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249 (eval "$ac_try") 2>&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; } &&
11253 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; }; then
11263 ac_header_compiler=yes
11265 echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.$ac_ext >&5
11268 ac_header_compiler=no
11271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11272 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11273 echo "${ECHO_T}$ac_header_compiler" >&6; }
11275 # Is the header present?
11276 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11277 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11278 cat >conftest.$ac_ext <<_ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11284 #include <$ac_header>
11286 if { (ac_try="$ac_cpp conftest.$ac_ext"
11287 case "(($ac_try" in
11288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289 *) ac_try_echo=$ac_try;;
11291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11294 grep -v '^ *+' conftest.er1 >conftest.err
11296 cat conftest.err >&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } >/dev/null; then
11299 if test -s conftest.err; then
11300 ac_cpp_err=$ac_c_preproc_warn_flag
11301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11308 if test -z "$ac_cpp_err"; then
11309 ac_header_preproc=yes
11311 echo "$as_me: failed program was:" >&5
11312 sed 's/^/| /' conftest.$ac_ext >&5
11314 ac_header_preproc=no
11317 rm -f conftest.err conftest.$ac_ext
11318 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11319 echo "${ECHO_T}$ac_header_preproc" >&6; }
11321 # So? What about this header?
11322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11328 ac_header_preproc=yes
11331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11334 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11335 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11336 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11337 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11338 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11341 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11342 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11344 ## ----------------------------------- ##
11345 ## Report this to llvmbugs@cs.uiuc.edu ##
11346 ## ----------------------------------- ##
11348 ) | sed "s/^/$as_me: WARNING: /" >&2
11351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11354 echo $ECHO_N "(cached) $ECHO_C" >&6
11356 eval "$as_ac_Header=\$ac_header_preproc"
11358 ac_res=`eval echo '${'$as_ac_Header'}'`
11359 { echo "$as_me:$LINENO: result: $ac_res" >&5
11360 echo "${ECHO_T}$ac_res" >&6; }
11363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11364 cat >>confdefs.h <<_ACEOF
11365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11375 for ac_func in strchr index
11377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11378 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11380 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11383 cat >conftest.$ac_ext <<_ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h. */
11389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11391 #define $ac_func innocuous_$ac_func
11393 /* System header to define __stub macros and hopefully few prototypes,
11394 which can conflict with char $ac_func (); below.
11395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11396 <limits.h> exists even on freestanding compilers. */
11399 # include <limits.h>
11401 # include <assert.h>
11406 /* Override any GCC internal prototype to avoid an error.
11407 Use char because int might match the return type of a GCC
11408 builtin and then its argument prototype would still apply. */
11413 /* The GNU C library defines this for functions which it implements
11414 to always fail with ENOSYS. Some functions are actually named
11415 something starting with __ and the normal name is an alias. */
11416 #if defined __stub_$ac_func || defined __stub___$ac_func
11423 return $ac_func ();
11428 rm -f conftest.$ac_objext conftest$ac_exeext
11429 if { (ac_try="$ac_link"
11430 case "(($ac_try" in
11431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11432 *) ac_try_echo=$ac_try;;
11434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11435 (eval "$ac_link") 2>conftest.er1
11437 grep -v '^ *+' conftest.er1 >conftest.err
11439 cat conftest.err >&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } &&
11442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11443 { (case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448 (eval "$ac_try") 2>&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); }; } &&
11452 { ac_try='test -s conftest$ac_exeext'
11453 { (case "(($ac_try" in
11454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11458 (eval "$ac_try") 2>&5
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; }; then
11462 eval "$as_ac_var=yes"
11464 echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11467 eval "$as_ac_var=no"
11470 rm -f core conftest.err conftest.$ac_objext \
11471 conftest$ac_exeext conftest.$ac_ext
11473 ac_res=`eval echo '${'$as_ac_var'}'`
11474 { echo "$as_me:$LINENO: result: $ac_res" >&5
11475 echo "${ECHO_T}$ac_res" >&6; }
11476 if test `eval echo '${'$as_ac_var'}'` = yes; then
11477 cat >>confdefs.h <<_ACEOF
11478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11486 for ac_func in strrchr rindex
11488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11489 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11491 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11494 cat >conftest.$ac_ext <<_ACEOF
11497 cat confdefs.h >>conftest.$ac_ext
11498 cat >>conftest.$ac_ext <<_ACEOF
11499 /* end confdefs.h. */
11500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11502 #define $ac_func innocuous_$ac_func
11504 /* System header to define __stub macros and hopefully few prototypes,
11505 which can conflict with char $ac_func (); below.
11506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11507 <limits.h> exists even on freestanding compilers. */
11510 # include <limits.h>
11512 # include <assert.h>
11517 /* Override any GCC internal prototype to avoid an error.
11518 Use char because int might match the return type of a GCC
11519 builtin and then its argument prototype would still apply. */
11524 /* The GNU C library defines this for functions which it implements
11525 to always fail with ENOSYS. Some functions are actually named
11526 something starting with __ and the normal name is an alias. */
11527 #if defined __stub_$ac_func || defined __stub___$ac_func
11534 return $ac_func ();
11539 rm -f conftest.$ac_objext conftest$ac_exeext
11540 if { (ac_try="$ac_link"
11541 case "(($ac_try" in
11542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543 *) ac_try_echo=$ac_try;;
11545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546 (eval "$ac_link") 2>conftest.er1
11548 grep -v '^ *+' conftest.er1 >conftest.err
11550 cat conftest.err >&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); } &&
11553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11554 { (case "(($ac_try" in
11555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556 *) ac_try_echo=$ac_try;;
11558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559 (eval "$ac_try") 2>&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); }; } &&
11563 { ac_try='test -s conftest$ac_exeext'
11564 { (case "(($ac_try" in
11565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566 *) ac_try_echo=$ac_try;;
11568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569 (eval "$ac_try") 2>&5
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; }; then
11573 eval "$as_ac_var=yes"
11575 echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11578 eval "$as_ac_var=no"
11581 rm -f core conftest.err conftest.$ac_objext \
11582 conftest$ac_exeext conftest.$ac_ext
11584 ac_res=`eval echo '${'$as_ac_var'}'`
11585 { echo "$as_me:$LINENO: result: $ac_res" >&5
11586 echo "${ECHO_T}$ac_res" >&6; }
11587 if test `eval echo '${'$as_ac_var'}'` = yes; then
11588 cat >>confdefs.h <<_ACEOF
11589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11597 for ac_func in memcpy bcopy
11599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11600 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11602 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11605 cat >conftest.$ac_ext <<_ACEOF
11608 cat confdefs.h >>conftest.$ac_ext
11609 cat >>conftest.$ac_ext <<_ACEOF
11610 /* end confdefs.h. */
11611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11613 #define $ac_func innocuous_$ac_func
11615 /* System header to define __stub macros and hopefully few prototypes,
11616 which can conflict with char $ac_func (); below.
11617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11618 <limits.h> exists even on freestanding compilers. */
11621 # include <limits.h>
11623 # include <assert.h>
11628 /* Override any GCC internal prototype to avoid an error.
11629 Use char because int might match the return type of a GCC
11630 builtin and then its argument prototype would still apply. */
11635 /* The GNU C library defines this for functions which it implements
11636 to always fail with ENOSYS. Some functions are actually named
11637 something starting with __ and the normal name is an alias. */
11638 #if defined __stub_$ac_func || defined __stub___$ac_func
11645 return $ac_func ();
11650 rm -f conftest.$ac_objext conftest$ac_exeext
11651 if { (ac_try="$ac_link"
11652 case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657 (eval "$ac_link") 2>conftest.er1
11659 grep -v '^ *+' conftest.er1 >conftest.err
11661 cat conftest.err >&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } &&
11664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11665 { (case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_try") 2>&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; } &&
11674 { ac_try='test -s conftest$ac_exeext'
11675 { (case "(($ac_try" in
11676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680 (eval "$ac_try") 2>&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; }; then
11684 eval "$as_ac_var=yes"
11686 echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11689 eval "$as_ac_var=no"
11692 rm -f core conftest.err conftest.$ac_objext \
11693 conftest$ac_exeext conftest.$ac_ext
11695 ac_res=`eval echo '${'$as_ac_var'}'`
11696 { echo "$as_me:$LINENO: result: $ac_res" >&5
11697 echo "${ECHO_T}$ac_res" >&6; }
11698 if test `eval echo '${'$as_ac_var'}'` = yes; then
11699 cat >>confdefs.h <<_ACEOF
11700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11708 for ac_func in memmove strcmp
11710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11711 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11716 cat >conftest.$ac_ext <<_ACEOF
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h. */
11722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11724 #define $ac_func innocuous_$ac_func
11726 /* System header to define __stub macros and hopefully few prototypes,
11727 which can conflict with char $ac_func (); below.
11728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11729 <limits.h> exists even on freestanding compilers. */
11732 # include <limits.h>
11734 # include <assert.h>
11739 /* Override any GCC internal prototype to avoid an error.
11740 Use char because int might match the return type of a GCC
11741 builtin and then its argument prototype would still apply. */
11746 /* The GNU C library defines this for functions which it implements
11747 to always fail with ENOSYS. Some functions are actually named
11748 something starting with __ and the normal name is an alias. */
11749 #if defined __stub_$ac_func || defined __stub___$ac_func
11756 return $ac_func ();
11761 rm -f conftest.$ac_objext conftest$ac_exeext
11762 if { (ac_try="$ac_link"
11763 case "(($ac_try" in
11764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765 *) ac_try_echo=$ac_try;;
11767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768 (eval "$ac_link") 2>conftest.er1
11770 grep -v '^ *+' conftest.er1 >conftest.err
11772 cat conftest.err >&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
11775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11776 { (case "(($ac_try" in
11777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778 *) ac_try_echo=$ac_try;;
11780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781 (eval "$ac_try") 2>&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; } &&
11785 { ac_try='test -s conftest$ac_exeext'
11786 { (case "(($ac_try" in
11787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788 *) ac_try_echo=$ac_try;;
11790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791 (eval "$ac_try") 2>&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; }; then
11795 eval "$as_ac_var=yes"
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11800 eval "$as_ac_var=no"
11803 rm -f core conftest.err conftest.$ac_objext \
11804 conftest$ac_exeext conftest.$ac_ext
11806 ac_res=`eval echo '${'$as_ac_var'}'`
11807 { echo "$as_me:$LINENO: result: $ac_res" >&5
11808 echo "${ECHO_T}$ac_res" >&6; }
11809 if test `eval echo '${'$as_ac_var'}'` = yes; then
11810 cat >>confdefs.h <<_ACEOF
11811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11820 for ac_func in closedir opendir readdir
11822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
11828 cat >conftest.$ac_ext <<_ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11836 #define $ac_func innocuous_$ac_func
11838 /* System header to define __stub macros and hopefully few prototypes,
11839 which can conflict with char $ac_func (); below.
11840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11841 <limits.h> exists even on freestanding compilers. */
11844 # include <limits.h>
11846 # include <assert.h>
11851 /* Override any GCC internal prototype to avoid an error.
11852 Use char because int might match the return type of a GCC
11853 builtin and then its argument prototype would still apply. */
11858 /* The GNU C library defines this for functions which it implements
11859 to always fail with ENOSYS. Some functions are actually named
11860 something starting with __ and the normal name is an alias. */
11861 #if defined __stub_$ac_func || defined __stub___$ac_func
11868 return $ac_func ();
11873 rm -f conftest.$ac_objext conftest$ac_exeext
11874 if { (ac_try="$ac_link"
11875 case "(($ac_try" in
11876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877 *) ac_try_echo=$ac_try;;
11879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11880 (eval "$ac_link") 2>conftest.er1
11882 grep -v '^ *+' conftest.er1 >conftest.err
11884 cat conftest.err >&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); } &&
11887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11888 { (case "(($ac_try" in
11889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11890 *) ac_try_echo=$ac_try;;
11892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11893 (eval "$ac_try") 2>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; } &&
11897 { ac_try='test -s conftest$ac_exeext'
11898 { (case "(($ac_try" in
11899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11900 *) ac_try_echo=$ac_try;;
11902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11903 (eval "$ac_try") 2>&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); }; }; then
11907 eval "$as_ac_var=yes"
11909 echo "$as_me: failed program was:" >&5
11910 sed 's/^/| /' conftest.$ac_ext >&5
11912 eval "$as_ac_var=no"
11915 rm -f core conftest.err conftest.$ac_objext \
11916 conftest$ac_exeext conftest.$ac_ext
11918 ac_res=`eval echo '${'$as_ac_var'}'`
11919 { echo "$as_me:$LINENO: result: $ac_res" >&5
11920 echo "${ECHO_T}$ac_res" >&6; }
11921 if test `eval echo '${'$as_ac_var'}'` = yes; then
11922 cat >>confdefs.h <<_ACEOF
11923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11930 # Check whether --enable-shared was given.
11931 if test "${enable_shared+set}" = set; then
11932 enableval=$enable_shared; p=${PACKAGE-default}
11934 yes) enable_shared=yes ;;
11935 no) enable_shared=no ;;
11938 # Look at the argument we got. We use all the common list separators.
11939 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11940 for pkg in $enableval; do
11942 if test "X$pkg" = "X$p"; then
11954 # Check whether --enable-static was given.
11955 if test "${enable_static+set}" = set; then
11956 enableval=$enable_static; p=${PACKAGE-default}
11958 yes) enable_static=yes ;;
11959 no) enable_static=no ;;
11962 # Look at the argument we got. We use all the common list separators.
11963 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11964 for pkg in $enableval; do
11966 if test "X$pkg" = "X$p"; then
11978 # Check whether --enable-fast-install was given.
11979 if test "${enable_fast_install+set}" = set; then
11980 enableval=$enable_fast_install; p=${PACKAGE-default}
11982 yes) enable_fast_install=yes ;;
11983 no) enable_fast_install=no ;;
11985 enable_fast_install=no
11986 # Look at the argument we got. We use all the common list separators.
11987 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11988 for pkg in $enableval; do
11990 if test "X$pkg" = "X$p"; then
11991 enable_fast_install=yes
11998 enable_fast_install=yes
12002 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12003 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12004 if test "${lt_cv_path_SED+set}" = set; then
12005 echo $ECHO_N "(cached) $ECHO_C" >&6
12007 # Loop through the user's path and test for sed and gsed.
12008 # Then use that list of sed's as ones to test for truncation.
12009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12010 for as_dir in $PATH
12013 test -z "$as_dir" && as_dir=.
12014 for lt_ac_prog in sed gsed; do
12015 for ac_exec_ext in '' $ac_executable_extensions; do
12016 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12017 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12024 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12025 # along with /bin/sed that truncates output.
12026 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12027 test ! -f $lt_ac_sed && continue
12028 cat /dev/null > conftest.in
12030 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12031 # Check for GNU sed and select it if it is found.
12032 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12033 lt_cv_path_SED=$lt_ac_sed
12037 cat conftest.in conftest.in >conftest.tmp
12038 mv conftest.tmp conftest.in
12039 cp conftest.in conftest.nl
12041 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12042 cmp -s conftest.out conftest.nl || break
12043 # 10000 chars as input seems more than enough
12044 test $lt_ac_count -gt 10 && break
12045 lt_ac_count=`expr $lt_ac_count + 1`
12046 if test $lt_ac_count -gt $lt_ac_max; then
12047 lt_ac_max=$lt_ac_count
12048 lt_cv_path_SED=$lt_ac_sed
12055 SED=$lt_cv_path_SED
12056 { echo "$as_me:$LINENO: result: $SED" >&5
12057 echo "${ECHO_T}$SED" >&6; }
12060 # Check whether --with-gnu-ld was given.
12061 if test "${with_gnu_ld+set}" = set; then
12062 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12068 if test "$GCC" = yes; then
12069 # Check if gcc -print-prog-name=ld gives a path.
12070 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12071 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12074 # gcc leaves a trailing carriage return which upsets mingw
12075 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12077 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12080 # Accept absolute paths.
12082 re_direlt='/[^/][^/]*/\.\./'
12083 # Canonicalize the pathname of ld
12084 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12085 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12086 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12088 test -z "$LD" && LD="$ac_prog"
12091 # If it fails, then pretend we aren't using GCC.
12095 # If it is relative, then search for the first ld in PATH.
12096 with_gnu_ld=unknown
12099 elif test "$with_gnu_ld" = yes; then
12100 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12101 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12103 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12104 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12106 if test "${lt_cv_path_LD+set}" = set; then
12107 echo $ECHO_N "(cached) $ECHO_C" >&6
12109 if test -z "$LD"; then
12110 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12111 for ac_dir in $PATH; do
12113 test -z "$ac_dir" && ac_dir=.
12114 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12115 lt_cv_path_LD="$ac_dir/$ac_prog"
12116 # Check to see if the program is GNU ld. I'd rather use --version,
12117 # but apparently some variants of GNU ld only accept -v.
12118 # Break only if it was the GNU/non-GNU ld that we prefer.
12119 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12120 *GNU* | *'with BFD'*)
12121 test "$with_gnu_ld" != no && break
12124 test "$with_gnu_ld" != yes && break
12131 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12135 LD="$lt_cv_path_LD"
12136 if test -n "$LD"; then
12137 { echo "$as_me:$LINENO: result: $LD" >&5
12138 echo "${ECHO_T}$LD" >&6; }
12140 { echo "$as_me:$LINENO: result: no" >&5
12141 echo "${ECHO_T}no" >&6; }
12143 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12144 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12145 { (exit 1); exit 1; }; }
12146 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12147 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12148 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12149 echo $ECHO_N "(cached) $ECHO_C" >&6
12151 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12152 case `$LD -v 2>&1 </dev/null` in
12153 *GNU* | *'with BFD'*)
12154 lt_cv_prog_gnu_ld=yes
12157 lt_cv_prog_gnu_ld=no
12161 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12162 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12163 with_gnu_ld=$lt_cv_prog_gnu_ld
12166 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12167 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12168 if test "${lt_cv_ld_reload_flag+set}" = set; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12171 lt_cv_ld_reload_flag='-r'
12173 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12174 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12175 reload_flag=$lt_cv_ld_reload_flag
12176 case $reload_flag in
12178 *) reload_flag=" $reload_flag" ;;
12180 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12183 if test "$GCC" = yes; then
12184 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12186 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12191 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12192 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12193 if test "${lt_cv_deplibs_check_method+set}" = set; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12196 lt_cv_file_magic_cmd='$MAGIC_CMD'
12197 lt_cv_file_magic_test_file=
12198 lt_cv_deplibs_check_method='unknown'
12199 # Need to set the preceding variable on all platforms that support
12200 # interlibrary dependencies.
12201 # 'none' -- dependencies not supported.
12202 # `unknown' -- same as none, but documents that we really don't know.
12203 # 'pass_all' -- all dependencies passed with no checks.
12204 # 'test_compile' -- check by making test program.
12205 # 'file_magic [[regex]]' -- check by looking for files in library path
12206 # which responds to the $file_magic_cmd with a given extended regex.
12207 # If you have `file' or equivalent on your system and you're not sure
12208 # whether `pass_all' will *always* work, you probably want this one.
12212 lt_cv_deplibs_check_method=pass_all
12216 lt_cv_deplibs_check_method=pass_all
12220 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12221 lt_cv_file_magic_cmd='/usr/bin/file -L'
12222 lt_cv_file_magic_test_file=/shlib/libc.so
12226 # func_win32_libid is a shell function defined in ltmain.sh
12227 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12228 lt_cv_file_magic_cmd='func_win32_libid'
12232 # Base MSYS/MinGW do not provide the 'file' command needed by
12233 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12234 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12235 lt_cv_file_magic_cmd='$OBJDUMP -f'
12238 darwin* | rhapsody*)
12239 lt_cv_deplibs_check_method=pass_all
12242 freebsd* | kfreebsd*-gnu | dragonfly*)
12243 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12246 # Not sure whether the presence of OpenBSD here was a mistake.
12247 # Let's accept both of them until this is cleared up.
12248 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12249 lt_cv_file_magic_cmd=/usr/bin/file
12250 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12254 lt_cv_deplibs_check_method=pass_all
12259 lt_cv_deplibs_check_method=pass_all
12262 hpux10.20* | hpux11*)
12263 lt_cv_file_magic_cmd=/usr/bin/file
12266 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12267 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12270 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]'
12271 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12274 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12275 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12281 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12285 irix5* | irix6* | nonstopux*)
12287 *-32|*"-32 ") libmagic=32-bit;;
12288 *-n32|*"-n32 ") libmagic=N32;;
12289 *-64|*"-64 ") libmagic=64-bit;;
12290 *) libmagic=never-match;;
12292 lt_cv_deplibs_check_method=pass_all
12295 # This must be Linux ELF.
12297 lt_cv_deplibs_check_method=pass_all
12301 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12302 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12309 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12310 lt_cv_file_magic_cmd=/usr/bin/file
12311 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12315 lt_cv_deplibs_check_method=unknown
12319 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12322 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12326 osf3* | osf4* | osf5*)
12327 lt_cv_deplibs_check_method=pass_all
12331 lt_cv_deplibs_check_method=pass_all
12335 case $host_vendor in
12337 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]'
12338 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12341 lt_cv_deplibs_check_method=pass_all
12344 lt_cv_file_magic_cmd='/bin/file'
12345 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12348 lt_cv_file_magic_cmd='/bin/file'
12349 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12350 lt_cv_file_magic_test_file=/lib/libc.so
12353 lt_cv_deplibs_check_method=pass_all
12356 lt_cv_deplibs_check_method=pass_all
12361 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12362 lt_cv_deplibs_check_method=pass_all
12367 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12368 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12369 file_magic_cmd=$lt_cv_file_magic_cmd
12370 deplibs_check_method=$lt_cv_deplibs_check_method
12371 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12375 # If no C compiler was specified, use CC.
12378 # If no C compiler flags were specified, use CFLAGS.
12379 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12381 # Allow CC to be a program name with arguments.
12384 # Check whether --enable-libtool-lock was given.
12385 if test "${enable_libtool_lock+set}" = set; then
12386 enableval=$enable_libtool_lock;
12389 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12391 # Some flags need to be propagated to the compiler or linker for good
12395 # Find out which ABI we are using.
12396 echo 'int i;' > conftest.$ac_ext
12397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12398 (eval $ac_compile) 2>&5
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }; then
12402 case `/usr/bin/file conftest.$ac_objext` in
12404 HPUX_IA64_MODE="32"
12407 HPUX_IA64_MODE="64"
12414 # Find out which ABI we are using.
12415 echo '#line 12415 "configure"' > conftest.$ac_ext
12416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12417 (eval $ac_compile) 2>&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; then
12421 if test "$lt_cv_prog_gnu_ld" = yes; then
12422 case `/usr/bin/file conftest.$ac_objext` in
12424 LD="${LD-ld} -melf32bsmip"
12427 LD="${LD-ld} -melf32bmipn32"
12430 LD="${LD-ld} -melf64bmip"
12434 case `/usr/bin/file conftest.$ac_objext` in
12450 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12451 # Find out which ABI we are using.
12452 echo 'int i;' > conftest.$ac_ext
12453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12454 (eval $ac_compile) 2>&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; then
12458 case `/usr/bin/file conftest.o` in
12462 LD="${LD-ld} -m elf_i386"
12464 ppc64-*linux*|powerpc64-*linux*)
12465 LD="${LD-ld} -m elf32ppclinux"
12468 LD="${LD-ld} -m elf_s390"
12471 LD="${LD-ld} -m elf32_sparc"
12478 LD="${LD-ld} -m elf_x86_64"
12480 ppc*-*linux*|powerpc*-*linux*)
12481 LD="${LD-ld} -m elf64ppc"
12484 LD="${LD-ld} -m elf64_s390"
12487 LD="${LD-ld} -m elf64_sparc"
12497 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12498 SAVE_CFLAGS="$CFLAGS"
12499 CFLAGS="$CFLAGS -belf"
12500 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12501 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12502 if test "${lt_cv_cc_needs_belf+set}" = set; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12506 ac_cpp='$CPP $CPPFLAGS'
12507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12511 cat >conftest.$ac_ext <<_ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h. */
12526 rm -f conftest.$ac_objext conftest$ac_exeext
12527 if { (ac_try="$ac_link"
12528 case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_link") 2>conftest.er1
12535 grep -v '^ *+' conftest.er1 >conftest.err
12537 cat conftest.err >&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } &&
12540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12541 { (case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_try") 2>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; } &&
12550 { ac_try='test -s conftest$ac_exeext'
12551 { (case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_try") 2>&5
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); }; }; then
12560 lt_cv_cc_needs_belf=yes
12562 echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12565 lt_cv_cc_needs_belf=no
12568 rm -f core conftest.err conftest.$ac_objext \
12569 conftest$ac_exeext conftest.$ac_ext
12571 ac_cpp='$CPP $CPPFLAGS'
12572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12577 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12578 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12579 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12580 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12581 CFLAGS="$SAVE_CFLAGS"
12585 # Find out which ABI we are using.
12586 echo 'int i;' > conftest.$ac_ext
12587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12588 (eval $ac_compile) 2>&5
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); }; then
12592 case `/usr/bin/file conftest.o` in
12594 case $lt_cv_prog_gnu_ld in
12595 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12596 *) LD="${LD-ld} -64" ;;
12607 need_locks="$enable_libtool_lock"
12612 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12613 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12614 (test "X$CXX" != "Xg++"))) ; then
12616 ac_cpp='$CXXCPP $CPPFLAGS'
12617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12620 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12621 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12622 if test -z "$CXXCPP"; then
12623 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12624 echo $ECHO_N "(cached) $ECHO_C" >&6
12626 # Double quotes because CXXCPP needs to be expanded
12627 for CXXCPP in "$CXX -E" "/lib/cpp"
12629 ac_preproc_ok=false
12630 for ac_cxx_preproc_warn_flag in '' yes
12632 # Use a header file that comes with gcc, so configuring glibc
12633 # with a fresh cross-compiler works.
12634 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12635 # <limits.h> exists even on freestanding compilers.
12636 # On the NeXT, cc -E runs the code through the compiler's parser,
12637 # not just through cpp. "Syntax error" is here to catch this case.
12638 cat >conftest.$ac_ext <<_ACEOF
12641 cat confdefs.h >>conftest.$ac_ext
12642 cat >>conftest.$ac_ext <<_ACEOF
12643 /* end confdefs.h. */
12645 # include <limits.h>
12647 # include <assert.h>
12651 if { (ac_try="$ac_cpp conftest.$ac_ext"
12652 case "(($ac_try" in
12653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654 *) ac_try_echo=$ac_try;;
12656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12659 grep -v '^ *+' conftest.er1 >conftest.err
12661 cat conftest.err >&5
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); } >/dev/null; then
12664 if test -s conftest.err; then
12665 ac_cpp_err=$ac_cxx_preproc_warn_flag
12666 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12673 if test -z "$ac_cpp_err"; then
12676 echo "$as_me: failed program was:" >&5
12677 sed 's/^/| /' conftest.$ac_ext >&5
12679 # Broken: fails on valid input.
12683 rm -f conftest.err conftest.$ac_ext
12685 # OK, works on sane cases. Now check whether nonexistent headers
12686 # can be detected and how.
12687 cat >conftest.$ac_ext <<_ACEOF
12690 cat confdefs.h >>conftest.$ac_ext
12691 cat >>conftest.$ac_ext <<_ACEOF
12692 /* end confdefs.h. */
12693 #include <ac_nonexistent.h>
12695 if { (ac_try="$ac_cpp conftest.$ac_ext"
12696 case "(($ac_try" in
12697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12698 *) ac_try_echo=$ac_try;;
12700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12703 grep -v '^ *+' conftest.er1 >conftest.err
12705 cat conftest.err >&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); } >/dev/null; then
12708 if test -s conftest.err; then
12709 ac_cpp_err=$ac_cxx_preproc_warn_flag
12710 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12717 if test -z "$ac_cpp_err"; then
12718 # Broken: success on invalid input.
12721 echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12724 # Passes both tests.
12729 rm -f conftest.err conftest.$ac_ext
12732 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12733 rm -f conftest.err conftest.$ac_ext
12734 if $ac_preproc_ok; then
12739 ac_cv_prog_CXXCPP=$CXXCPP
12742 CXXCPP=$ac_cv_prog_CXXCPP
12744 ac_cv_prog_CXXCPP=$CXXCPP
12746 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12747 echo "${ECHO_T}$CXXCPP" >&6; }
12748 ac_preproc_ok=false
12749 for ac_cxx_preproc_warn_flag in '' yes
12751 # Use a header file that comes with gcc, so configuring glibc
12752 # with a fresh cross-compiler works.
12753 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12754 # <limits.h> exists even on freestanding compilers.
12755 # On the NeXT, cc -E runs the code through the compiler's parser,
12756 # not just through cpp. "Syntax error" is here to catch this case.
12757 cat >conftest.$ac_ext <<_ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12764 # include <limits.h>
12766 # include <assert.h>
12770 if { (ac_try="$ac_cpp conftest.$ac_ext"
12771 case "(($ac_try" in
12772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773 *) ac_try_echo=$ac_try;;
12775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12778 grep -v '^ *+' conftest.er1 >conftest.err
12780 cat conftest.err >&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } >/dev/null; then
12783 if test -s conftest.err; then
12784 ac_cpp_err=$ac_cxx_preproc_warn_flag
12785 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12792 if test -z "$ac_cpp_err"; then
12795 echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.$ac_ext >&5
12798 # Broken: fails on valid input.
12802 rm -f conftest.err conftest.$ac_ext
12804 # OK, works on sane cases. Now check whether nonexistent headers
12805 # can be detected and how.
12806 cat >conftest.$ac_ext <<_ACEOF
12809 cat confdefs.h >>conftest.$ac_ext
12810 cat >>conftest.$ac_ext <<_ACEOF
12811 /* end confdefs.h. */
12812 #include <ac_nonexistent.h>
12814 if { (ac_try="$ac_cpp conftest.$ac_ext"
12815 case "(($ac_try" in
12816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12817 *) ac_try_echo=$ac_try;;
12819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12822 grep -v '^ *+' conftest.er1 >conftest.err
12824 cat conftest.err >&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } >/dev/null; then
12827 if test -s conftest.err; then
12828 ac_cpp_err=$ac_cxx_preproc_warn_flag
12829 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12836 if test -z "$ac_cpp_err"; then
12837 # Broken: success on invalid input.
12840 echo "$as_me: failed program was:" >&5
12841 sed 's/^/| /' conftest.$ac_ext >&5
12843 # Passes both tests.
12848 rm -f conftest.err conftest.$ac_ext
12851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12852 rm -f conftest.err conftest.$ac_ext
12853 if $ac_preproc_ok; then
12856 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12857 See \`config.log' for more details." >&5
12858 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12859 See \`config.log' for more details." >&2;}
12860 { (exit 1); exit 1; }; }
12864 ac_cpp='$CXXCPP $CPPFLAGS'
12865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12873 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12874 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12875 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12876 if test -n "$ac_tool_prefix"; then
12877 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
12879 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12883 if test "${ac_cv_prog_F77+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12886 if test -n "$F77"; then
12887 ac_cv_prog_F77="$F77" # Let the user override the test.
12889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12890 for as_dir in $PATH
12893 test -z "$as_dir" && as_dir=.
12894 for ac_exec_ext in '' $ac_executable_extensions; do
12895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12896 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12906 F77=$ac_cv_prog_F77
12907 if test -n "$F77"; then
12908 { echo "$as_me:$LINENO: result: $F77" >&5
12909 echo "${ECHO_T}$F77" >&6; }
12911 { echo "$as_me:$LINENO: result: no" >&5
12912 echo "${ECHO_T}no" >&6; }
12916 test -n "$F77" && break
12919 if test -z "$F77"; then
12921 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
12923 # Extract the first word of "$ac_prog", so it can be a program name with args.
12924 set dummy $ac_prog; ac_word=$2
12925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12927 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12928 echo $ECHO_N "(cached) $ECHO_C" >&6
12930 if test -n "$ac_ct_F77"; then
12931 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12934 for as_dir in $PATH
12937 test -z "$as_dir" && as_dir=.
12938 for ac_exec_ext in '' $ac_executable_extensions; do
12939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12940 ac_cv_prog_ac_ct_F77="$ac_prog"
12941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12950 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12951 if test -n "$ac_ct_F77"; then
12952 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12953 echo "${ECHO_T}$ac_ct_F77" >&6; }
12955 { echo "$as_me:$LINENO: result: no" >&5
12956 echo "${ECHO_T}no" >&6; }
12960 test -n "$ac_ct_F77" && break
12963 if test "x$ac_ct_F77" = x; then
12966 case $cross_compiling:$ac_tool_warned in
12968 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12969 whose name does not start with the host triplet. If you think this
12970 configuration is useful to you, please write to autoconf@gnu.org." >&5
12971 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12972 whose name does not start with the host triplet. If you think this
12973 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12974 ac_tool_warned=yes ;;
12981 # Provide some information about the compiler.
12982 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
12983 ac_compiler=`set X $ac_compile; echo $2`
12984 { (ac_try="$ac_compiler --version >&5"
12985 case "(($ac_try" in
12986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987 *) ac_try_echo=$ac_try;;
12989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990 (eval "$ac_compiler --version >&5") 2>&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }
12994 { (ac_try="$ac_compiler -v >&5"
12995 case "(($ac_try" in
12996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12997 *) ac_try_echo=$ac_try;;
12999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13000 (eval "$ac_compiler -v >&5") 2>&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }
13004 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }
13016 # If we don't use `.F' as extension, the preprocessor is not run on the
13017 # input file. (Note that this only needs to work for GNU compilers.)
13018 ac_save_ext=$ac_ext
13020 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13021 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13022 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13023 echo $ECHO_N "(cached) $ECHO_C" >&6
13025 cat >conftest.$ac_ext <<_ACEOF
13033 rm -f conftest.$ac_objext
13034 if { (ac_try="$ac_compile"
13035 case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_compile") 2>conftest.er1
13042 grep -v '^ *+' conftest.er1 >conftest.err
13044 cat conftest.err >&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); } &&
13047 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13048 { (case "(($ac_try" in
13049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050 *) ac_try_echo=$ac_try;;
13052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053 (eval "$ac_try") 2>&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; } &&
13057 { ac_try='test -s conftest.$ac_objext'
13058 { (case "(($ac_try" in
13059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060 *) ac_try_echo=$ac_try;;
13062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063 (eval "$ac_try") 2>&5
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; }; then
13067 ac_compiler_gnu=yes
13069 echo "$as_me: failed program was:" >&5
13070 sed 's/^/| /' conftest.$ac_ext >&5
13075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13076 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13079 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13080 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13081 ac_ext=$ac_save_ext
13082 ac_test_FFLAGS=${FFLAGS+set}
13083 ac_save_FFLAGS=$FFLAGS
13085 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13086 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13087 if test "${ac_cv_prog_f77_g+set}" = set; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13091 cat >conftest.$ac_ext <<_ACEOF
13096 rm -f conftest.$ac_objext
13097 if { (ac_try="$ac_compile"
13098 case "(($ac_try" in
13099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13100 *) ac_try_echo=$ac_try;;
13102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13103 (eval "$ac_compile") 2>conftest.er1
13105 grep -v '^ *+' conftest.er1 >conftest.err
13107 cat conftest.err >&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); } &&
13110 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13111 { (case "(($ac_try" in
13112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113 *) ac_try_echo=$ac_try;;
13115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116 (eval "$ac_try") 2>&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); }; } &&
13120 { ac_try='test -s conftest.$ac_objext'
13121 { (case "(($ac_try" in
13122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123 *) ac_try_echo=$ac_try;;
13125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126 (eval "$ac_try") 2>&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; }; then
13130 ac_cv_prog_f77_g=yes
13132 echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13135 ac_cv_prog_f77_g=no
13138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13141 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13142 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13143 if test "$ac_test_FFLAGS" = set; then
13144 FFLAGS=$ac_save_FFLAGS
13145 elif test $ac_cv_prog_f77_g = yes; then
13146 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13152 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13159 G77=`test $ac_compiler_gnu = yes && echo yes`
13161 ac_cpp='$CPP $CPPFLAGS'
13162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13168 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13170 # find the maximum length of command line arguments
13171 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13172 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13173 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13174 echo $ECHO_N "(cached) $ECHO_C" >&6
13181 # On DJGPP, this test can blow up pretty badly due to problems in libc
13182 # (any single argument exceeding 2000 bytes causes a buffer overrun
13183 # during glob expansion). Even if it were fixed, the result of this
13184 # check would be larger than it should be.
13185 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13189 # Under GNU Hurd, this test is not required because there is
13190 # no limit to the length of command line arguments.
13191 # Libtool will interpret -1 as no limit whatsoever
13192 lt_cv_sys_max_cmd_len=-1;
13196 # On Win9x/ME, this test blows up -- it succeeds, but takes
13197 # about 5 minutes as the teststring grows exponentially.
13198 # Worse, since 9x/ME are not pre-emptively multitasking,
13199 # you end up with a "frozen" computer, even though with patience
13200 # the test eventually succeeds (with a max line length of 256k).
13201 # Instead, let's just punt: use the minimum linelength reported by
13202 # all of the supported platforms: 8192 (on NT/2K/XP).
13203 lt_cv_sys_max_cmd_len=8192;
13207 # On AmigaOS with pdksh, this test takes hours, literally.
13208 # So we just punt and use a minimum line length of 8192.
13209 lt_cv_sys_max_cmd_len=8192;
13212 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13213 # This has been around since 386BSD, at least. Likely further.
13214 if test -x /sbin/sysctl; then
13215 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13216 elif test -x /usr/sbin/sysctl; then
13217 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13219 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13221 # And add a safety zone
13222 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13223 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13227 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13228 lt_cv_sys_max_cmd_len=196608
13232 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13233 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13234 # nice to cause kernel panics so lets avoid the loop below.
13235 # First set a reasonable default.
13236 lt_cv_sys_max_cmd_len=16384
13238 if test -x /sbin/sysconfig; then
13239 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13240 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13245 lt_cv_sys_max_cmd_len=102400
13247 sysv5* | sco5v6* | sysv4.2uw2*)
13248 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13249 if test -n "$kargmax"; then
13250 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13252 lt_cv_sys_max_cmd_len=32768
13256 # If test is not a shell built-in, we'll probably end up computing a
13257 # maximum length that is only half of the actual maximum length, but
13259 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13260 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13261 = "XX$teststring") >/dev/null 2>&1 &&
13262 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13263 lt_cv_sys_max_cmd_len=$new_result &&
13264 test $i != 17 # 1/2 MB should be enough
13267 teststring=$teststring$teststring
13270 # Add a significant safety factor because C++ compilers can tack on massive
13271 # amounts of additional arguments before passing them to the linker.
13272 # It appears as though 1/2 is a usable value.
13273 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13279 if test -n $lt_cv_sys_max_cmd_len ; then
13280 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13281 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13283 { echo "$as_me:$LINENO: result: none" >&5
13284 echo "${ECHO_T}none" >&6; }
13290 # Check for command to grab the raw symbol name followed by C symbol from nm.
13291 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13292 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13293 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13297 # These are sane defaults that work on at least a few old systems.
13298 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13300 # Character class describing NM global symbol codes.
13301 symcode='[BCDEGRST]'
13303 # Regexp to match symbols that can be accessed directly from C.
13304 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13306 # Transform an extracted symbol line into a proper C declaration
13307 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13309 # Transform an extracted symbol line into symbol name and symbol address
13310 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'"
13312 # Define system-specific variables.
13317 cygwin* | mingw* | pw32*)
13318 symcode='[ABCDGISTW]'
13320 hpux*) # Its linker distinguishes data from code symbols
13321 if test "$host_cpu" = ia64; then
13322 symcode='[ABCDEGRST]'
13324 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13325 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'"
13328 if test "$host_cpu" = ia64; then
13329 symcode='[ABCDGIRSTW]'
13330 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13331 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'"
13334 irix* | nonstopux*)
13335 symcode='[BCDEGRST]'
13338 symcode='[BCDEGQRST]'
13349 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13357 # Handle CRLF in mingw tool chain
13361 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13365 # If we're using GNU nm, then use its standard symbol codes.
13366 case `$NM -V 2>&1` in
13367 *GNU* | *'with BFD'*)
13368 symcode='[ABCDGIRSTW]' ;;
13371 # Try without a prefix undercore, then with it.
13372 for ac_symprfx in "" "_"; do
13374 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13375 symxfrm="\\1 $ac_symprfx\\2 \\2"
13377 # Write the raw and C identifiers.
13378 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13380 # Check to see that the pipe works correctly.
13384 cat > conftest.$ac_ext <<EOF
13389 void nm_test_func(){}
13393 int main(){nm_test_var='a';nm_test_func();return(0);}
13396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13397 (eval $ac_compile) 2>&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; then
13401 # Now try to grab the symbols.
13403 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13404 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } && test -s "$nlist"; then
13408 # Try sorting and uniquifying the output.
13409 if sort "$nlist" | uniq > "$nlist"T; then
13410 mv -f "$nlist"T "$nlist"
13415 # Make sure that we snagged all the symbols we need.
13416 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13417 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13418 cat <<EOF > conftest.$ac_ext
13424 # Now generate the symbol file.
13425 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13427 cat <<EOF >> conftest.$ac_ext
13428 #if defined (__STDC__) && __STDC__
13429 # define lt_ptr_t void *
13431 # define lt_ptr_t char *
13435 /* The mapping between symbol names and symbols. */
13440 lt_preloaded_symbols[] =
13443 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13444 cat <<\EOF >> conftest.$ac_ext
13452 # Now try linking the two files.
13453 mv conftest.$ac_objext conftstm.$ac_objext
13454 lt_save_LIBS="$LIBS"
13455 lt_save_CFLAGS="$CFLAGS"
13456 LIBS="conftstm.$ac_objext"
13457 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13459 (eval $ac_link) 2>&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13465 LIBS="$lt_save_LIBS"
13466 CFLAGS="$lt_save_CFLAGS"
13468 echo "cannot find nm_test_func in $nlist" >&5
13471 echo "cannot find nm_test_var in $nlist" >&5
13474 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13477 echo "$progname: failed program was:" >&5
13478 cat conftest.$ac_ext >&5
13480 rm -f conftest* conftst*
13482 # Do not use the global_symbol_pipe unless it works.
13483 if test "$pipe_works" = yes; then
13486 lt_cv_sys_global_symbol_pipe=
13492 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13493 lt_cv_sys_global_symbol_to_cdecl=
13495 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13496 { echo "$as_me:$LINENO: result: failed" >&5
13497 echo "${ECHO_T}failed" >&6; }
13499 { echo "$as_me:$LINENO: result: ok" >&5
13500 echo "${ECHO_T}ok" >&6; }
13503 { echo "$as_me:$LINENO: checking for objdir" >&5
13504 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13505 if test "${lt_cv_objdir+set}" = set; then
13506 echo $ECHO_N "(cached) $ECHO_C" >&6
13508 rm -f .libs 2>/dev/null
13509 mkdir .libs 2>/dev/null
13510 if test -d .libs; then
13513 # MS-DOS does not allow filenames that begin with a dot.
13516 rmdir .libs 2>/dev/null
13518 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13519 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13520 objdir=$lt_cv_objdir
13528 # AIX sometimes has problems with the GCC collect2 program. For some
13529 # reason, if we set the COLLECT_NAMES environment variable, the problems
13530 # vanish in a puff of smoke.
13531 if test "X${COLLECT_NAMES+set}" != Xset; then
13533 export COLLECT_NAMES
13538 # Sed substitution that helps us do robust quoting. It backslashifies
13539 # metacharacters that are still active within double-quoted strings.
13540 Xsed='sed -e 1s/^X//'
13541 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13543 # Same as above, but do not quote variable references.
13544 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13546 # Sed substitution to delay expansion of an escaped shell variable in a
13547 # double_quote_subst'ed string.
13548 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13550 # Sed substitution to avoid accidental globbing in evaled expressions
13551 no_glob_subst='s/\*/\\\*/g'
13556 # Global variables:
13557 default_ofile=mklib
13558 can_build_shared=yes
13560 # All known linkers require a `.a' archive for static linking (except MSVC,
13561 # which needs '.lib').
13563 ltmain="$ac_aux_dir/ltmain.sh"
13564 ofile="$default_ofile"
13565 with_gnu_ld="$lt_cv_prog_gnu_ld"
13567 if test -n "$ac_tool_prefix"; then
13568 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13569 set dummy ${ac_tool_prefix}ar; ac_word=$2
13570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13572 if test "${ac_cv_prog_AR+set}" = set; then
13573 echo $ECHO_N "(cached) $ECHO_C" >&6
13575 if test -n "$AR"; then
13576 ac_cv_prog_AR="$AR" # Let the user override the test.
13578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13579 for as_dir in $PATH
13582 test -z "$as_dir" && as_dir=.
13583 for ac_exec_ext in '' $ac_executable_extensions; do
13584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13585 ac_cv_prog_AR="${ac_tool_prefix}ar"
13586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13596 if test -n "$AR"; then
13597 { echo "$as_me:$LINENO: result: $AR" >&5
13598 echo "${ECHO_T}$AR" >&6; }
13600 { echo "$as_me:$LINENO: result: no" >&5
13601 echo "${ECHO_T}no" >&6; }
13606 if test -z "$ac_cv_prog_AR"; then
13608 # Extract the first word of "ar", so it can be a program name with args.
13609 set dummy ar; ac_word=$2
13610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13612 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13613 echo $ECHO_N "(cached) $ECHO_C" >&6
13615 if test -n "$ac_ct_AR"; then
13616 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13619 for as_dir in $PATH
13622 test -z "$as_dir" && as_dir=.
13623 for ac_exec_ext in '' $ac_executable_extensions; do
13624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13625 ac_cv_prog_ac_ct_AR="ar"
13626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13635 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13636 if test -n "$ac_ct_AR"; then
13637 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13638 echo "${ECHO_T}$ac_ct_AR" >&6; }
13640 { echo "$as_me:$LINENO: result: no" >&5
13641 echo "${ECHO_T}no" >&6; }
13644 if test "x$ac_ct_AR" = x; then
13647 case $cross_compiling:$ac_tool_warned in
13649 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13650 whose name does not start with the host triplet. If you think this
13651 configuration is useful to you, please write to autoconf@gnu.org." >&5
13652 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13653 whose name does not start with the host triplet. If you think this
13654 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13655 ac_tool_warned=yes ;;
13660 AR="$ac_cv_prog_AR"
13663 if test -n "$ac_tool_prefix"; then
13664 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13665 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13668 if test "${ac_cv_prog_RANLIB+set}" = set; then
13669 echo $ECHO_N "(cached) $ECHO_C" >&6
13671 if test -n "$RANLIB"; then
13672 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13675 for as_dir in $PATH
13678 test -z "$as_dir" && as_dir=.
13679 for ac_exec_ext in '' $ac_executable_extensions; do
13680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13681 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13691 RANLIB=$ac_cv_prog_RANLIB
13692 if test -n "$RANLIB"; then
13693 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13694 echo "${ECHO_T}$RANLIB" >&6; }
13696 { echo "$as_me:$LINENO: result: no" >&5
13697 echo "${ECHO_T}no" >&6; }
13702 if test -z "$ac_cv_prog_RANLIB"; then
13703 ac_ct_RANLIB=$RANLIB
13704 # Extract the first word of "ranlib", so it can be a program name with args.
13705 set dummy ranlib; ac_word=$2
13706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13708 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13709 echo $ECHO_N "(cached) $ECHO_C" >&6
13711 if test -n "$ac_ct_RANLIB"; then
13712 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13715 for as_dir in $PATH
13718 test -z "$as_dir" && as_dir=.
13719 for ac_exec_ext in '' $ac_executable_extensions; do
13720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13721 ac_cv_prog_ac_ct_RANLIB="ranlib"
13722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13731 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13732 if test -n "$ac_ct_RANLIB"; then
13733 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13734 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13736 { echo "$as_me:$LINENO: result: no" >&5
13737 echo "${ECHO_T}no" >&6; }
13740 if test "x$ac_ct_RANLIB" = x; then
13743 case $cross_compiling:$ac_tool_warned in
13745 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13746 whose name does not start with the host triplet. If you think this
13747 configuration is useful to you, please write to autoconf@gnu.org." >&5
13748 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13749 whose name does not start with the host triplet. If you think this
13750 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13751 ac_tool_warned=yes ;;
13753 RANLIB=$ac_ct_RANLIB
13756 RANLIB="$ac_cv_prog_RANLIB"
13759 if test -n "$ac_tool_prefix"; then
13760 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13761 set dummy ${ac_tool_prefix}strip; ac_word=$2
13762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13764 if test "${ac_cv_prog_STRIP+set}" = set; then
13765 echo $ECHO_N "(cached) $ECHO_C" >&6
13767 if test -n "$STRIP"; then
13768 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13771 for as_dir in $PATH
13774 test -z "$as_dir" && as_dir=.
13775 for ac_exec_ext in '' $ac_executable_extensions; do
13776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13777 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13787 STRIP=$ac_cv_prog_STRIP
13788 if test -n "$STRIP"; then
13789 { echo "$as_me:$LINENO: result: $STRIP" >&5
13790 echo "${ECHO_T}$STRIP" >&6; }
13792 { echo "$as_me:$LINENO: result: no" >&5
13793 echo "${ECHO_T}no" >&6; }
13798 if test -z "$ac_cv_prog_STRIP"; then
13800 # Extract the first word of "strip", so it can be a program name with args.
13801 set dummy strip; ac_word=$2
13802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13804 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13807 if test -n "$ac_ct_STRIP"; then
13808 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13811 for as_dir in $PATH
13814 test -z "$as_dir" && as_dir=.
13815 for ac_exec_ext in '' $ac_executable_extensions; do
13816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13817 ac_cv_prog_ac_ct_STRIP="strip"
13818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13827 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13828 if test -n "$ac_ct_STRIP"; then
13829 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13830 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13832 { echo "$as_me:$LINENO: result: no" >&5
13833 echo "${ECHO_T}no" >&6; }
13836 if test "x$ac_ct_STRIP" = x; then
13839 case $cross_compiling:$ac_tool_warned in
13841 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13842 whose name does not start with the host triplet. If you think this
13843 configuration is useful to you, please write to autoconf@gnu.org." >&5
13844 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13845 whose name does not start with the host triplet. If you think this
13846 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13847 ac_tool_warned=yes ;;
13852 STRIP="$ac_cv_prog_STRIP"
13857 old_CFLAGS="$CFLAGS"
13859 # Set sane defaults for various variables
13860 test -z "$AR" && AR=ar
13861 test -z "$AR_FLAGS" && AR_FLAGS=cru
13862 test -z "$AS" && AS=as
13863 test -z "$CC" && CC=cc
13864 test -z "$LTCC" && LTCC=$CC
13865 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13866 test -z "$DLLTOOL" && DLLTOOL=dlltool
13867 test -z "$LD" && LD=ld
13868 test -z "$LN_S" && LN_S="ln -s"
13869 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13870 test -z "$NM" && NM=nm
13871 test -z "$SED" && SED=sed
13872 test -z "$OBJDUMP" && OBJDUMP=objdump
13873 test -z "$RANLIB" && RANLIB=:
13874 test -z "$STRIP" && STRIP=:
13875 test -z "$ac_objext" && ac_objext=o
13877 # Determine commands to create old-style static archives.
13878 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13879 old_postinstall_cmds='chmod 644 $oldlib'
13880 old_postuninstall_cmds=
13882 if test -n "$RANLIB"; then
13885 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13888 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13891 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13894 for cc_temp in $compiler""; do
13896 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13897 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13902 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13905 # Only perform the check for file, if the check method requires it
13906 case $deplibs_check_method in
13908 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13909 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13910 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13911 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13912 echo $ECHO_N "(cached) $ECHO_C" >&6
13916 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13919 lt_save_MAGIC_CMD="$MAGIC_CMD"
13920 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13921 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13922 for ac_dir in $ac_dummy; do
13924 test -z "$ac_dir" && ac_dir=.
13925 if test -f $ac_dir/${ac_tool_prefix}file; then
13926 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13927 if test -n "$file_magic_test_file"; then
13928 case $deplibs_check_method in
13930 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13931 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13932 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13933 $EGREP "$file_magic_regex" > /dev/null; then
13938 *** Warning: the command libtool uses to detect shared libraries,
13939 *** $file_magic_cmd, produces output that libtool cannot recognize.
13940 *** The result is that libtool may fail to recognize shared libraries
13941 *** as such. This will affect the creation of libtool libraries that
13942 *** depend on shared libraries, but programs linked with such libtool
13943 *** libraries will work regardless of this problem. Nevertheless, you
13944 *** may want to report the problem to your system manager and/or to
13945 *** bug-libtool@gnu.org
13955 MAGIC_CMD="$lt_save_MAGIC_CMD"
13960 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13961 if test -n "$MAGIC_CMD"; then
13962 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13963 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13965 { echo "$as_me:$LINENO: result: no" >&5
13966 echo "${ECHO_T}no" >&6; }
13969 if test -z "$lt_cv_path_MAGIC_CMD"; then
13970 if test -n "$ac_tool_prefix"; then
13971 { echo "$as_me:$LINENO: checking for file" >&5
13972 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
13973 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13974 echo $ECHO_N "(cached) $ECHO_C" >&6
13978 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13981 lt_save_MAGIC_CMD="$MAGIC_CMD"
13982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13983 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13984 for ac_dir in $ac_dummy; do
13986 test -z "$ac_dir" && ac_dir=.
13987 if test -f $ac_dir/file; then
13988 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13989 if test -n "$file_magic_test_file"; then
13990 case $deplibs_check_method in
13992 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13993 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13994 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13995 $EGREP "$file_magic_regex" > /dev/null; then
14000 *** Warning: the command libtool uses to detect shared libraries,
14001 *** $file_magic_cmd, produces output that libtool cannot recognize.
14002 *** The result is that libtool may fail to recognize shared libraries
14003 *** as such. This will affect the creation of libtool libraries that
14004 *** depend on shared libraries, but programs linked with such libtool
14005 *** libraries will work regardless of this problem. Nevertheless, you
14006 *** may want to report the problem to your system manager and/or to
14007 *** bug-libtool@gnu.org
14017 MAGIC_CMD="$lt_save_MAGIC_CMD"
14022 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14023 if test -n "$MAGIC_CMD"; then
14024 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14025 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14027 { echo "$as_me:$LINENO: result: no" >&5
14028 echo "${ECHO_T}no" >&6; }
14041 enable_win32_dll=no
14043 # Check whether --enable-libtool-lock was given.
14044 if test "${enable_libtool_lock+set}" = set; then
14045 enableval=$enable_libtool_lock;
14048 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14051 # Check whether --with-pic was given.
14052 if test "${with_pic+set}" = set; then
14053 withval=$with_pic; pic_mode="$withval"
14058 test -z "$pic_mode" && pic_mode=default
14060 # Use C for the default configuration in the libtool script
14064 ac_cpp='$CPP $CPPFLAGS'
14065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14070 # Source file extension for C test sources.
14073 # Object file extension for compiled C test sources.
14077 # Code to be used in simple compile tests
14078 lt_simple_compile_test_code="int some_variable = 0;\n"
14080 # Code to be used in simple link tests
14081 lt_simple_link_test_code='int main(){return(0);}\n'
14084 # If no C compiler was specified, use CC.
14087 # If no C compiler flags were specified, use CFLAGS.
14088 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14090 # Allow CC to be a program name with arguments.
14094 # save warnings/boilerplate of simple test code
14095 ac_outfile=conftest.$ac_objext
14096 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14097 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14098 _lt_compiler_boilerplate=`cat conftest.err`
14101 ac_outfile=conftest.$ac_objext
14102 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14103 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14104 _lt_linker_boilerplate=`cat conftest.err`
14109 lt_prog_compiler_no_builtin_flag=
14111 if test "$GCC" = yes; then
14112 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14115 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14116 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14117 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14118 echo $ECHO_N "(cached) $ECHO_C" >&6
14120 lt_cv_prog_compiler_rtti_exceptions=no
14121 ac_outfile=conftest.$ac_objext
14122 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14123 lt_compiler_flag="-fno-rtti -fno-exceptions"
14124 # Insert the option either (1) after the last *FLAGS variable, or
14125 # (2) before a word containing "conftest.", or (3) at the end.
14126 # Note that $ac_compile itself does not contain backslashes and begins
14127 # with a dollar sign (not a hyphen), so the echo should work correctly.
14128 # The option is referenced via a variable to avoid confusing sed.
14129 lt_compile=`echo "$ac_compile" | $SED \
14130 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14131 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14132 -e 's:$: $lt_compiler_flag:'`
14133 (eval echo "\"\$as_me:14133: $lt_compile\"" >&5)
14134 (eval "$lt_compile" 2>conftest.err)
14136 cat conftest.err >&5
14137 echo "$as_me:14137: \$? = $ac_status" >&5
14138 if (exit $ac_status) && test -s "$ac_outfile"; then
14139 # The compiler can only warn and ignore the option if not recognized
14140 # So say no if there are warnings other than the usual output.
14141 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14143 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14144 lt_cv_prog_compiler_rtti_exceptions=yes
14150 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14151 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14153 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14154 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14161 lt_prog_compiler_wl=
14162 lt_prog_compiler_pic=
14163 lt_prog_compiler_static=
14165 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14166 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14168 if test "$GCC" = yes; then
14169 lt_prog_compiler_wl='-Wl,'
14170 lt_prog_compiler_static='-static'
14174 # All AIX code is PIC.
14175 if test "$host_cpu" = ia64; then
14176 # AIX 5 now supports IA64 processor
14177 lt_prog_compiler_static='-Bstatic'
14182 # FIXME: we need at least 68020 code to build shared libraries, but
14183 # adding the `-m68020' flag to GCC prevents building anything better,
14185 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14188 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14189 # PIC is the default for these OSes.
14192 mingw* | pw32* | os2*)
14193 # This hack is so that the source file can tell whether it is being
14194 # built for inclusion in a dll (and should export symbols for example).
14195 lt_prog_compiler_pic='-DDLL_EXPORT'
14198 darwin* | rhapsody*)
14199 # PIC is the default on this platform
14200 # Common symbols not allowed in MH_DYLIB files
14201 lt_prog_compiler_pic='-fno-common'
14205 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14206 # Instead, we relocate shared libraries at runtime.
14210 # Just because we use GCC doesn't mean we suddenly get shared libraries
14211 # on systems that don't support them.
14212 lt_prog_compiler_can_build_shared=no
14217 if test -d /usr/nec; then
14218 lt_prog_compiler_pic=-Kconform_pic
14223 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14224 # not for PA HP-UX.
14230 lt_prog_compiler_pic='-fPIC'
14236 lt_prog_compiler_pic='-fPIC'
14240 # PORTME Check for flag to pass linker flags through the system compiler.
14243 lt_prog_compiler_wl='-Wl,'
14244 if test "$host_cpu" = ia64; then
14245 # AIX 5 now supports IA64 processor
14246 lt_prog_compiler_static='-Bstatic'
14248 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14252 # PIC is the default on this platform
14253 # Common symbols not allowed in MH_DYLIB files
14254 case $cc_basename in
14256 lt_prog_compiler_pic='-qnocommon'
14257 lt_prog_compiler_wl='-Wl,'
14262 mingw* | pw32* | os2*)
14263 # This hack is so that the source file can tell whether it is being
14264 # built for inclusion in a dll (and should export symbols for example).
14265 lt_prog_compiler_pic='-DDLL_EXPORT'
14268 hpux9* | hpux10* | hpux11*)
14269 lt_prog_compiler_wl='-Wl,'
14270 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14271 # not for PA HP-UX.
14277 lt_prog_compiler_pic='+Z'
14280 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14281 lt_prog_compiler_static='${wl}-a ${wl}archive'
14284 irix5* | irix6* | nonstopux*)
14285 lt_prog_compiler_wl='-Wl,'
14286 # PIC (with -KPIC) is the default.
14287 lt_prog_compiler_static='-non_shared'
14291 lt_prog_compiler_pic='-KPIC'
14292 lt_prog_compiler_static='-Bstatic'
14296 case $cc_basename in
14298 lt_prog_compiler_wl='-Wl,'
14299 lt_prog_compiler_pic='-KPIC'
14300 lt_prog_compiler_static='-static'
14302 pgcc* | pgf77* | pgf90* | pgf95*)
14303 # Portland Group compilers (*not* the Pentium gcc compiler,
14304 # which looks to be a dead project)
14305 lt_prog_compiler_wl='-Wl,'
14306 lt_prog_compiler_pic='-fpic'
14307 lt_prog_compiler_static='-Bstatic'
14310 lt_prog_compiler_wl='-Wl,'
14311 # All Alpha code is PIC.
14312 lt_prog_compiler_static='-non_shared'
14317 osf3* | osf4* | osf5*)
14318 lt_prog_compiler_wl='-Wl,'
14319 # All OSF/1 code is PIC.
14320 lt_prog_compiler_static='-non_shared'
14324 lt_prog_compiler_pic='-KPIC'
14325 lt_prog_compiler_static='-Bstatic'
14326 case $cc_basename in
14327 f77* | f90* | f95*)
14328 lt_prog_compiler_wl='-Qoption ld ';;
14330 lt_prog_compiler_wl='-Wl,';;
14335 lt_prog_compiler_wl='-Qoption ld '
14336 lt_prog_compiler_pic='-PIC'
14337 lt_prog_compiler_static='-Bstatic'
14340 sysv4 | sysv4.2uw2* | sysv4.3*)
14341 lt_prog_compiler_wl='-Wl,'
14342 lt_prog_compiler_pic='-KPIC'
14343 lt_prog_compiler_static='-Bstatic'
14347 if test -d /usr/nec ;then
14348 lt_prog_compiler_pic='-Kconform_pic'
14349 lt_prog_compiler_static='-Bstatic'
14353 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14354 lt_prog_compiler_wl='-Wl,'
14355 lt_prog_compiler_pic='-KPIC'
14356 lt_prog_compiler_static='-Bstatic'
14360 lt_prog_compiler_wl='-Wl,'
14361 lt_prog_compiler_can_build_shared=no
14365 lt_prog_compiler_pic='-pic'
14366 lt_prog_compiler_static='-Bstatic'
14370 lt_prog_compiler_can_build_shared=no
14375 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14376 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14379 # Check to make sure the PIC flag actually works.
14381 if test -n "$lt_prog_compiler_pic"; then
14383 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14384 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14385 if test "${lt_prog_compiler_pic_works+set}" = set; then
14386 echo $ECHO_N "(cached) $ECHO_C" >&6
14388 lt_prog_compiler_pic_works=no
14389 ac_outfile=conftest.$ac_objext
14390 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14391 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14392 # Insert the option either (1) after the last *FLAGS variable, or
14393 # (2) before a word containing "conftest.", or (3) at the end.
14394 # Note that $ac_compile itself does not contain backslashes and begins
14395 # with a dollar sign (not a hyphen), so the echo should work correctly.
14396 # The option is referenced via a variable to avoid confusing sed.
14397 lt_compile=`echo "$ac_compile" | $SED \
14398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14400 -e 's:$: $lt_compiler_flag:'`
14401 (eval echo "\"\$as_me:14401: $lt_compile\"" >&5)
14402 (eval "$lt_compile" 2>conftest.err)
14404 cat conftest.err >&5
14405 echo "$as_me:14405: \$? = $ac_status" >&5
14406 if (exit $ac_status) && test -s "$ac_outfile"; then
14407 # The compiler can only warn and ignore the option if not recognized
14408 # So say no if there are warnings other than the usual output.
14409 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14410 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14411 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14412 lt_prog_compiler_pic_works=yes
14418 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14419 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14421 if test x"$lt_prog_compiler_pic_works" = xyes; then
14422 case $lt_prog_compiler_pic in
14424 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14427 lt_prog_compiler_pic=
14428 lt_prog_compiler_can_build_shared=no
14433 # For platforms which do not support PIC, -DPIC is meaningless:
14435 lt_prog_compiler_pic=
14438 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14443 # Check to make sure the static flag actually works.
14445 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14446 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14447 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14448 if test "${lt_prog_compiler_static_works+set}" = set; then
14449 echo $ECHO_N "(cached) $ECHO_C" >&6
14451 lt_prog_compiler_static_works=no
14452 save_LDFLAGS="$LDFLAGS"
14453 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14454 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14455 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14456 # The linker can only warn and ignore the option if not recognized
14457 # So say no if there are warnings
14458 if test -s conftest.err; then
14459 # Append any errors to the config.log.
14460 cat conftest.err 1>&5
14461 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14462 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14463 if diff conftest.exp conftest.er2 >/dev/null; then
14464 lt_prog_compiler_static_works=yes
14467 lt_prog_compiler_static_works=yes
14471 LDFLAGS="$save_LDFLAGS"
14474 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14475 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14477 if test x"$lt_prog_compiler_static_works" = xyes; then
14480 lt_prog_compiler_static=
14484 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14485 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14486 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
14489 lt_cv_prog_compiler_c_o=no
14490 $rm -r conftest 2>/dev/null
14494 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14496 lt_compiler_flag="-o out/conftest2.$ac_objext"
14497 # Insert the option either (1) after the last *FLAGS variable, or
14498 # (2) before a word containing "conftest.", or (3) at the end.
14499 # Note that $ac_compile itself does not contain backslashes and begins
14500 # with a dollar sign (not a hyphen), so the echo should work correctly.
14501 lt_compile=`echo "$ac_compile" | $SED \
14502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14504 -e 's:$: $lt_compiler_flag:'`
14505 (eval echo "\"\$as_me:14505: $lt_compile\"" >&5)
14506 (eval "$lt_compile" 2>out/conftest.err)
14508 cat out/conftest.err >&5
14509 echo "$as_me:14509: \$? = $ac_status" >&5
14510 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14512 # The compiler can only warn and ignore the option if not recognized
14513 # So say no if there are warnings
14514 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14515 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14516 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14517 lt_cv_prog_compiler_c_o=yes
14522 # SGI C++ compiler will create directory out/ii_files/ for
14523 # template instantiation
14524 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14525 $rm out/* && rmdir out
14531 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14532 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14535 hard_links="nottested"
14536 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14537 # do not overwrite the value of need_locks provided by the user
14538 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14539 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14542 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14544 ln conftest.a conftest.b 2>&5 || hard_links=no
14545 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14546 { echo "$as_me:$LINENO: result: $hard_links" >&5
14547 echo "${ECHO_T}$hard_links" >&6; }
14548 if test "$hard_links" = no; then
14549 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14550 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14557 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14558 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14561 allow_undefined_flag=
14562 enable_shared_with_static_runtimes=no
14564 archive_expsym_cmds=
14565 old_archive_From_new_cmds=
14566 old_archive_from_expsyms_cmds=
14567 export_dynamic_flag_spec=
14568 whole_archive_flag_spec=
14569 thread_safe_flag_spec=
14570 hardcode_libdir_flag_spec=
14571 hardcode_libdir_flag_spec_ld=
14572 hardcode_libdir_separator=
14574 hardcode_minus_L=no
14575 hardcode_shlibpath_var=unsupported
14576 link_all_deplibs=unknown
14577 hardcode_automatic=no
14579 module_expsym_cmds=
14580 always_export_symbols=no
14581 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14582 # include_expsyms should be a list of space-separated symbols to be *always*
14583 # included in the symbol list
14585 # exclude_expsyms can be an extended regexp of symbols to exclude
14586 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14587 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14588 # as well as any symbol that contains `d'.
14589 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14590 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14591 # platforms (ab)use it in PIC code, but their linkers get confused if
14592 # the symbol is explicitly referenced. Since portable code cannot
14593 # rely on this symbol name, it's probably fine to never include it in
14594 # preloaded symbol tables.
14595 extract_expsyms_cmds=
14596 # Just being paranoid about ensuring that cc_basename is set.
14597 for cc_temp in $compiler""; do
14599 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14600 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14605 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14608 cygwin* | mingw* | pw32*)
14609 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14610 # When not using gcc, we currently assume that we are using
14611 # Microsoft Visual C++.
14612 if test "$GCC" != yes; then
14617 # we just hope/assume this is gcc and not c89 (= MSVC++)
14626 if test "$with_gnu_ld" = yes; then
14627 # If archive_cmds runs LD, not CC, wlarc should be empty
14630 # Set some defaults for GNU ld with shared library support. These
14631 # are reset later if shared libraries are not supported. Putting them
14632 # here allows them to be overridden if necessary.
14633 runpath_var=LD_RUN_PATH
14634 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14635 export_dynamic_flag_spec='${wl}--export-dynamic'
14636 # ancient GNU ld didn't support --whole-archive et. al.
14637 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14638 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14640 whole_archive_flag_spec=
14642 supports_anon_versioning=no
14643 case `$LD -v 2>/dev/null` in
14644 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14645 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14646 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14647 *\ 2.11.*) ;; # other 2.11 versions
14648 *) supports_anon_versioning=yes ;;
14651 # See if GNU ld supports shared libraries.
14653 aix3* | aix4* | aix5*)
14654 # On AIX/PPC, the GNU linker is very broken
14655 if test "$host_cpu" != ia64; then
14659 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14660 *** to be unable to reliably create shared libraries on AIX.
14661 *** Therefore, libtool is disabling shared libraries support. If you
14662 *** really care for shared libraries, you may want to modify your PATH
14663 *** so that a non-GNU linker is found, and then restart.
14670 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)'
14671 hardcode_libdir_flag_spec='-L$libdir'
14672 hardcode_minus_L=yes
14674 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14675 # that the semantics of dynamic libraries on AmigaOS, at least up
14676 # to version 4, is to share data among multiple programs linked
14677 # with the same dynamic library. Since this doesn't match the
14678 # behavior of shared libraries on other platforms, we can't use
14684 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14685 allow_undefined_flag=unsupported
14686 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14687 # support --undefined. This deserves some investigation. FIXME
14688 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14694 cygwin* | mingw* | pw32*)
14695 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14696 # as there is no search path for DLLs.
14697 hardcode_libdir_flag_spec='-L$libdir'
14698 allow_undefined_flag=unsupported
14699 always_export_symbols=no
14700 enable_shared_with_static_runtimes=yes
14701 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14703 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14705 # If the export-symbols file already is a .def file (1st line
14706 # is EXPORTS), use it as is; otherwise, prepend...
14707 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14708 cp $export_symbols $output_objdir/$soname.def;
14710 echo EXPORTS > $output_objdir/$soname.def;
14711 cat $export_symbols >> $output_objdir/$soname.def;
14713 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14721 hardcode_shlibpath_var=no
14722 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14723 export_dynamic_flag_spec='${wl}-E'
14724 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14725 # Instead, shared libraries are loaded at an image base (0x10000000 by
14726 # default) and relocated if they conflict, which is a slow very memory
14727 # consuming and fragmenting process. To avoid this, we pick a random,
14728 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14729 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14730 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14731 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'
14735 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14737 case $cc_basename,$host_cpu in
14738 pgcc*) # Portland Group C compiler
14739 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'
14740 tmp_addflag=' $pic_flag'
14742 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14743 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'
14744 tmp_addflag=' $pic_flag -Mnomain' ;;
14745 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14746 tmp_addflag=' -i_dynamic' ;;
14747 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14748 tmp_addflag=' -i_dynamic -nofor_main' ;;
14749 ifc* | ifort*) # Intel Fortran compiler
14750 tmp_addflag=' -nofor_main' ;;
14752 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14754 if test $supports_anon_versioning = yes; then
14755 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14756 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14757 $echo "local: *; };" >> $output_objdir/$libname.ver~
14758 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14766 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14767 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14770 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14771 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14776 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14780 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14781 *** create shared libraries on Solaris systems. Therefore, libtool
14782 *** is disabling shared libraries support. We urge you to upgrade GNU
14783 *** binutils to release 2.9.1 or newer. Another option is to modify
14784 *** your PATH or compiler configuration so that the native linker is
14785 *** used, and then restart.
14788 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14790 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14797 case `$LD -v 2>&1` in
14798 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14802 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14803 *** reliably create shared libraries on SCO systems. Therefore, libtool
14804 *** is disabling shared libraries support. We urge you to upgrade GNU
14805 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14806 *** your PATH or compiler configuration so that the native linker is
14807 *** used, and then restart.
14812 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14813 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14815 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14824 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14826 hardcode_direct=yes
14827 hardcode_shlibpath_var=no
14831 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14833 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14840 if test "$ld_shlibs" = no; then
14842 hardcode_libdir_flag_spec=
14843 export_dynamic_flag_spec=
14844 whole_archive_flag_spec=
14847 # PORTME fill in a description of your system's linker (not GNU ld)
14850 allow_undefined_flag=unsupported
14851 always_export_symbols=yes
14852 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'
14853 # Note: this linker hardcodes the directories in LIBPATH if there
14854 # are no directories specified by -L.
14855 hardcode_minus_L=yes
14856 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14857 # Neither direct hardcoding nor static linking is supported with a
14859 hardcode_direct=unsupported
14864 if test "$host_cpu" = ia64; then
14865 # On IA64, the linker does run time linking by default, so we don't
14866 # have to do anything special.
14867 aix_use_runtimelinking=no
14868 exp_sym_flag='-Bexport'
14871 # If we're using GNU nm, then we don't want the "-C" option.
14872 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14873 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14874 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'
14876 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'
14878 aix_use_runtimelinking=no
14880 # Test if we are trying to use run time linking or normal
14881 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14882 # need to do runtime linking.
14883 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14884 for ld_flag in $LDFLAGS; do
14885 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14886 aix_use_runtimelinking=yes
14893 exp_sym_flag='-bexport'
14894 no_entry_flag='-bnoentry'
14897 # When large executables or shared objects are built, AIX ld can
14898 # have problems creating the table of contents. If linking a library
14899 # or program results in "error TOC overflow" add -mminimal-toc to
14900 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14901 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14904 hardcode_direct=yes
14905 hardcode_libdir_separator=':'
14906 link_all_deplibs=yes
14908 if test "$GCC" = yes; then
14909 case $host_os in aix4.[012]|aix4.[012].*)
14910 # We only want to do this on AIX 4.2 and lower, the check
14911 # below for broken collect2 doesn't work under 4.3+
14912 collect2name=`${CC} -print-prog-name=collect2`
14913 if test -f "$collect2name" && \
14914 strings "$collect2name" | grep resolve_lib_name >/dev/null
14916 # We have reworked collect2
14917 hardcode_direct=yes
14919 # We have old collect2
14920 hardcode_direct=unsupported
14921 # It fails to find uninstalled libraries when the uninstalled
14922 # path is not listed in the libpath. Setting hardcode_minus_L
14923 # to unsupported forces relinking
14924 hardcode_minus_L=yes
14925 hardcode_libdir_flag_spec='-L$libdir'
14926 hardcode_libdir_separator=
14930 shared_flag='-shared'
14931 if test "$aix_use_runtimelinking" = yes; then
14932 shared_flag="$shared_flag "'${wl}-G'
14936 if test "$host_cpu" = ia64; then
14937 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14938 # chokes on -Wl,-G. The following line is correct:
14941 if test "$aix_use_runtimelinking" = yes; then
14942 shared_flag='${wl}-G'
14944 shared_flag='${wl}-bM:SRE'
14949 # It seems that -bexpall does not export symbols beginning with
14950 # underscore (_), so it is better to generate a list of symbols to export.
14951 always_export_symbols=yes
14952 if test "$aix_use_runtimelinking" = yes; then
14953 # Warning - without using the other runtime loading flags (-brtl),
14954 # -berok will link without error, but may produce a broken library.
14955 allow_undefined_flag='-berok'
14956 # Determine the default libpath from the value encoded in an empty executable.
14957 cat >conftest.$ac_ext <<_ACEOF
14960 cat confdefs.h >>conftest.$ac_ext
14961 cat >>conftest.$ac_ext <<_ACEOF
14962 /* end confdefs.h. */
14972 rm -f conftest.$ac_objext conftest$ac_exeext
14973 if { (ac_try="$ac_link"
14974 case "(($ac_try" in
14975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14976 *) ac_try_echo=$ac_try;;
14978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14979 (eval "$ac_link") 2>conftest.er1
14981 grep -v '^ *+' conftest.er1 >conftest.err
14983 cat conftest.err >&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } &&
14986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14987 { (case "(($ac_try" in
14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989 *) ac_try_echo=$ac_try;;
14991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992 (eval "$ac_try") 2>&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; } &&
14996 { ac_try='test -s conftest$ac_exeext'
14997 { (case "(($ac_try" in
14998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999 *) ac_try_echo=$ac_try;;
15001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002 (eval "$ac_try") 2>&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; }; then
15007 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15009 # Check for a 64-bit object if we didn't find anything.
15010 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; }
15013 echo "$as_me: failed program was:" >&5
15014 sed 's/^/| /' conftest.$ac_ext >&5
15019 rm -f core conftest.err conftest.$ac_objext \
15020 conftest$ac_exeext conftest.$ac_ext
15021 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15023 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15024 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"
15026 if test "$host_cpu" = ia64; then
15027 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15028 allow_undefined_flag="-z nodefs"
15029 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"
15031 # Determine the default libpath from the value encoded in an empty executable.
15032 cat >conftest.$ac_ext <<_ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h. */
15047 rm -f conftest.$ac_objext conftest$ac_exeext
15048 if { (ac_try="$ac_link"
15049 case "(($ac_try" in
15050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051 *) ac_try_echo=$ac_try;;
15053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054 (eval "$ac_link") 2>conftest.er1
15056 grep -v '^ *+' conftest.er1 >conftest.err
15058 cat conftest.err >&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); } &&
15061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15062 { (case "(($ac_try" in
15063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064 *) ac_try_echo=$ac_try;;
15066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067 (eval "$ac_try") 2>&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; } &&
15071 { ac_try='test -s conftest$ac_exeext'
15072 { (case "(($ac_try" in
15073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074 *) ac_try_echo=$ac_try;;
15076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077 (eval "$ac_try") 2>&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; }; then
15082 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15084 # Check for a 64-bit object if we didn't find anything.
15085 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; }
15088 echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15094 rm -f core conftest.err conftest.$ac_objext \
15095 conftest$ac_exeext conftest.$ac_ext
15096 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15098 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15099 # Warning - without using the other run time loading flags,
15100 # -berok will link without error, but may produce a broken library.
15101 no_undefined_flag=' ${wl}-bernotok'
15102 allow_undefined_flag=' ${wl}-berok'
15103 # Exported symbols can be pulled into shared objects from archives
15104 whole_archive_flag_spec='$convenience'
15105 archive_cmds_need_lc=yes
15106 # This is similar to how AIX traditionally builds its shared libraries.
15107 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'
15113 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)'
15114 hardcode_libdir_flag_spec='-L$libdir'
15115 hardcode_minus_L=yes
15116 # see comment about different semantics on the GNU ld section
15121 export_dynamic_flag_spec=-rdynamic
15124 cygwin* | mingw* | pw32*)
15125 # When not using gcc, we currently assume that we are using
15126 # Microsoft Visual C++.
15127 # hardcode_libdir_flag_spec is actually meaningless, as there is
15128 # no search path for DLLs.
15129 hardcode_libdir_flag_spec=' '
15130 allow_undefined_flag=unsupported
15131 # Tell ltmain to make .lib files, not .a files.
15133 # Tell ltmain to make .dll files, not .so files.
15135 # FIXME: Setting linknames here is a bad hack.
15136 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15137 # The linker will automatically build a .lib file if we build a DLL.
15138 old_archive_From_new_cmds='true'
15139 # FIXME: Should let the user specify the lib program.
15140 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15141 fix_srcfile_path='`cygpath -w "$srcfile"`'
15142 enable_shared_with_static_runtimes=yes
15145 darwin* | rhapsody*)
15147 rhapsody* | darwin1.[012])
15148 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15151 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15152 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15154 case ${MACOSX_DEPLOYMENT_TARGET} in
15156 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15159 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15165 archive_cmds_need_lc=no
15167 hardcode_automatic=yes
15168 hardcode_shlibpath_var=unsupported
15169 whole_archive_flag_spec=''
15170 link_all_deplibs=yes
15171 if test "$GCC" = yes ; then
15172 output_verbose_link_cmd='echo'
15173 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15174 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15175 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15176 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}'
15177 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}'
15179 case $cc_basename in
15181 output_verbose_link_cmd='echo'
15182 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15183 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15184 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15185 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}'
15186 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}'
15196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15197 hardcode_libdir_flag_spec='-L$libdir'
15198 hardcode_shlibpath_var=no
15205 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15206 # support. Future versions do this automatically, but an explicit c++rt0.o
15207 # does not break anything, and helps significantly (at the cost of a little
15210 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15211 hardcode_libdir_flag_spec='-R$libdir'
15212 hardcode_direct=yes
15213 hardcode_shlibpath_var=no
15216 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15218 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15219 hardcode_direct=yes
15220 hardcode_minus_L=yes
15221 hardcode_shlibpath_var=no
15224 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15225 freebsd* | kfreebsd*-gnu | dragonfly*)
15226 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15227 hardcode_libdir_flag_spec='-R$libdir'
15228 hardcode_direct=yes
15229 hardcode_shlibpath_var=no
15233 if test "$GCC" = yes; then
15234 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'
15236 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'
15238 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15239 hardcode_libdir_separator=:
15240 hardcode_direct=yes
15242 # hardcode_minus_L: Not really in the search PATH,
15243 # but as the default location of the library.
15244 hardcode_minus_L=yes
15245 export_dynamic_flag_spec='${wl}-E'
15249 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15250 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15252 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15254 if test "$with_gnu_ld" = no; then
15255 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15256 hardcode_libdir_separator=:
15258 hardcode_direct=yes
15259 export_dynamic_flag_spec='${wl}-E'
15261 # hardcode_minus_L: Not really in the search PATH,
15262 # but as the default location of the library.
15263 hardcode_minus_L=yes
15268 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15271 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15274 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15277 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15283 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15286 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15289 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15293 if test "$with_gnu_ld" = no; then
15294 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15295 hardcode_libdir_separator=:
15299 hardcode_libdir_flag_spec_ld='+b $libdir'
15301 hardcode_shlibpath_var=no
15304 hardcode_direct=yes
15305 export_dynamic_flag_spec='${wl}-E'
15307 # hardcode_minus_L: Not really in the search PATH,
15308 # but as the default location of the library.
15309 hardcode_minus_L=yes
15315 irix5* | irix6* | nonstopux*)
15316 if test "$GCC" = yes; then
15317 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'
15319 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'
15320 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15322 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15323 hardcode_libdir_separator=:
15324 link_all_deplibs=yes
15328 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15329 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15331 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15333 hardcode_libdir_flag_spec='-R$libdir'
15334 hardcode_direct=yes
15335 hardcode_shlibpath_var=no
15339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15340 hardcode_direct=yes
15341 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15342 hardcode_libdir_separator=:
15343 hardcode_shlibpath_var=no
15347 hardcode_direct=yes
15348 hardcode_shlibpath_var=no
15349 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15350 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15351 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15352 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15353 export_dynamic_flag_spec='${wl}-E'
15356 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15358 hardcode_libdir_flag_spec='-R$libdir'
15361 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15362 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15369 hardcode_libdir_flag_spec='-L$libdir'
15370 hardcode_minus_L=yes
15371 allow_undefined_flag=unsupported
15372 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'
15373 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15377 if test "$GCC" = yes; then
15378 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15379 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'
15381 allow_undefined_flag=' -expect_unresolved \*'
15382 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'
15384 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15385 hardcode_libdir_separator=:
15388 osf4* | osf5*) # as osf3* with the addition of -msym flag
15389 if test "$GCC" = yes; then
15390 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15391 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'
15392 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15394 allow_undefined_flag=' -expect_unresolved \*'
15395 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'
15396 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15397 $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'
15399 # Both c and cxx compiler support -rpath directly
15400 hardcode_libdir_flag_spec='-rpath $libdir'
15402 hardcode_libdir_separator=:
15406 no_undefined_flag=' -z text'
15407 if test "$GCC" = yes; then
15409 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15410 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15411 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15414 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15415 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15416 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15418 hardcode_libdir_flag_spec='-R$libdir'
15419 hardcode_shlibpath_var=no
15421 solaris2.[0-5] | solaris2.[0-5].*) ;;
15423 # The compiler driver will combine linker options so we
15424 # cannot just pass the convience library names through
15425 # without $wl, iff we do not link with $LD.
15426 # Luckily, gcc supports the same syntax we need for Sun Studio.
15427 # Supported since Solaris 2.6 (maybe 2.5.1?)
15430 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15432 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' ;;
15435 link_all_deplibs=yes
15439 if test "x$host_vendor" = xsequent; then
15440 # Use $CC to link under sequent, because it throws in some extra .o
15441 # files that make .init and .fini sections work.
15442 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15444 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15446 hardcode_libdir_flag_spec='-L$libdir'
15447 hardcode_direct=yes
15448 hardcode_minus_L=yes
15449 hardcode_shlibpath_var=no
15453 case $host_vendor in
15455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15456 hardcode_direct=yes # is this really true???
15459 ## LD is ld it makes a PLAMLIB
15460 ## CC just makes a GrossModule.
15461 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15462 reload_cmds='$CC -r -o $output$reload_objs'
15466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15467 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15470 runpath_var='LD_RUN_PATH'
15471 hardcode_shlibpath_var=no
15475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15476 hardcode_shlibpath_var=no
15477 export_dynamic_flag_spec='-Bexport'
15481 if test -d /usr/nec; then
15482 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15483 hardcode_shlibpath_var=no
15484 runpath_var=LD_RUN_PATH
15485 hardcode_runpath_var=yes
15490 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15491 no_undefined_flag='${wl}-z,text'
15492 archive_cmds_need_lc=no
15493 hardcode_shlibpath_var=no
15494 runpath_var='LD_RUN_PATH'
15496 if test "$GCC" = yes; then
15497 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15498 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15500 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15501 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15505 sysv5* | sco3.2v5* | sco5v6*)
15506 # Note: We can NOT use -z defs as we might desire, because we do not
15507 # link with -lc, and that would cause any symbols used from libc to
15508 # always be unresolved, which means just about no library would
15509 # ever link correctly. If we're not using GNU ld we use -z text
15510 # though, which does catch some bad symbols but isn't as heavy-handed
15512 no_undefined_flag='${wl}-z,text'
15513 allow_undefined_flag='${wl}-z,nodefs'
15514 archive_cmds_need_lc=no
15515 hardcode_shlibpath_var=no
15516 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15517 hardcode_libdir_separator=':'
15518 link_all_deplibs=yes
15519 export_dynamic_flag_spec='${wl}-Bexport'
15520 runpath_var='LD_RUN_PATH'
15522 if test "$GCC" = yes; then
15523 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15524 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15526 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15527 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15533 hardcode_libdir_flag_spec='-L$libdir'
15534 hardcode_shlibpath_var=no
15543 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15544 echo "${ECHO_T}$ld_shlibs" >&6; }
15545 test "$ld_shlibs" = no && can_build_shared=no
15548 # Do we need to explicitly link libc?
15550 case "x$archive_cmds_need_lc" in
15552 # Assume -lc should be added
15553 archive_cmds_need_lc=yes
15555 if test "$enable_shared" = yes && test "$GCC" = yes; then
15556 case $archive_cmds in
15558 # FIXME: we may have to deal with multi-command sequences.
15561 # Test whether the compiler implicitly links with -lc since on some
15562 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15563 # to ld, don't add -lc before -lgcc.
15564 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15565 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15567 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15570 (eval $ac_compile) 2>&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); } 2>conftest.err; then
15576 libobjs=conftest.$ac_objext
15578 wl=$lt_prog_compiler_wl
15579 pic_flag=$lt_prog_compiler_pic
15585 lt_save_allow_undefined_flag=$allow_undefined_flag
15586 allow_undefined_flag=
15587 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15588 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }
15593 archive_cmds_need_lc=no
15595 archive_cmds_need_lc=yes
15597 allow_undefined_flag=$lt_save_allow_undefined_flag
15599 cat conftest.err 1>&5
15602 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15603 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15610 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15611 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15612 library_names_spec=
15613 libname_spec='lib$name'
15617 postuninstall_cmds=
15621 shlibpath_overrides_runpath=unknown
15623 dynamic_linker="$host_os ld.so"
15624 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15625 if test "$GCC" = yes; then
15626 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15627 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15628 # if the path contains ";" then we assume it to be the separator
15629 # otherwise default to the standard path separator (i.e. ":") - it is
15630 # assumed that no part of a normal pathname contains ";" but that should
15631 # okay in the real world where ";" in dirpaths is itself problematic.
15632 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15634 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15637 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15639 need_lib_prefix=unknown
15640 hardcode_into_libs=no
15642 # when you set need_version to no, make sure it does not cause -set_version
15643 # flags to be left without arguments
15644 need_version=unknown
15649 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15650 shlibpath_var=LIBPATH
15652 # AIX 3 has no versioning support, so we append a major version to the name.
15653 soname_spec='${libname}${release}${shared_ext}$major'
15660 hardcode_into_libs=yes
15661 if test "$host_cpu" = ia64; then
15662 # AIX 5 supports IA64
15663 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15664 shlibpath_var=LD_LIBRARY_PATH
15666 # With GCC up to 2.95.x, collect2 would create an import file
15667 # for dependence libraries. The import file would start with
15668 # the line `#! .'. This would cause the generated library to
15669 # depend on `.', always an invalid library. This was fixed in
15670 # development snapshots of GCC prior to 3.0.
15672 aix4 | aix4.[01] | aix4.[01].*)
15673 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15675 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15678 can_build_shared=no
15682 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15683 # soname into executable. Probably we can add versioning support to
15684 # collect2, so additional links can be useful in future.
15685 if test "$aix_use_runtimelinking" = yes; then
15686 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15687 # instead of lib<name>.a to let people know that these are not
15688 # typical AIX shared libraries.
15689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15691 # We preserve .a as extension for shared libraries through AIX4.2
15692 # and later when we are not doing run time linking.
15693 library_names_spec='${libname}${release}.a $libname.a'
15694 soname_spec='${libname}${release}${shared_ext}$major'
15696 shlibpath_var=LIBPATH
15701 library_names_spec='$libname.ixlibrary $libname.a'
15702 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15703 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'
15707 library_names_spec='${libname}${shared_ext}'
15708 dynamic_linker="$host_os ld.so"
15709 shlibpath_var=LIBRARY_PATH
15715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15716 soname_spec='${libname}${release}${shared_ext}$major'
15717 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15718 shlibpath_var=LD_LIBRARY_PATH
15719 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15720 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15721 # the default ld.so.conf also contains /usr/contrib/lib and
15722 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15723 # libtool to hard-code these into programs
15726 cygwin* | mingw* | pw32*)
15727 version_type=windows
15732 case $GCC,$host_os in
15733 yes,cygwin* | yes,mingw* | yes,pw32*)
15734 library_names_spec='$libname.dll.a'
15735 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15736 postinstall_cmds='base_file=`basename \${file}`~
15737 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15738 dldir=$destdir/`dirname \$dlpath`~
15739 test -d \$dldir || mkdir -p \$dldir~
15740 $install_prog $dir/$dlname \$dldir/$dlname~
15741 chmod a+x \$dldir/$dlname'
15742 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15743 dlpath=$dir/\$dldll~
15745 shlibpath_overrides_runpath=yes
15749 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15750 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15751 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15754 # MinGW DLLs use traditional 'lib' prefix
15755 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15756 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15757 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15758 # It is most probably a Windows format PATH printed by
15759 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15760 # path with ; separators, and with drive letters. We can handle the
15761 # drive letters (cygwin fileutils understands them), so leave them,
15762 # especially as we might pass files found there to a mingw objdump,
15763 # which wouldn't understand a cygwinified path. Ahh.
15764 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15766 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15770 # pw32 DLLs use 'pw' prefix rather than 'lib'
15771 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15777 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15780 dynamic_linker='Win32 ld.exe'
15781 # FIXME: first we should search . and the directory the executable is in
15785 darwin* | rhapsody*)
15786 dynamic_linker="$host_os dyld"
15787 version_type=darwin
15790 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15791 soname_spec='${libname}${release}${major}$shared_ext'
15792 shlibpath_overrides_runpath=yes
15793 shlibpath_var=DYLD_LIBRARY_PATH
15794 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15795 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15796 if test "$GCC" = yes; then
15797 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"`
15799 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15801 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15809 soname_spec='${libname}${release}${shared_ext}$major'
15810 shlibpath_var=LD_LIBRARY_PATH
15821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15822 soname_spec='${libname}${release}${shared_ext}$major'
15823 shlibpath_var=LD_LIBRARY_PATH
15824 shlibpath_overrides_runpath=no
15825 hardcode_into_libs=yes
15826 dynamic_linker='GNU ld.so'
15829 freebsd* | dragonfly*)
15830 # DragonFly does not have aout. When/if they implement a new
15831 # versioning mechanism, adjust this.
15832 if test -x /usr/bin/objformat; then
15833 objformat=`/usr/bin/objformat`
15836 freebsd[123]*) objformat=aout ;;
15837 *) objformat=elf ;;
15840 version_type=freebsd-$objformat
15841 case $version_type in
15843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15848 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15852 shlibpath_var=LD_LIBRARY_PATH
15855 shlibpath_overrides_runpath=yes
15857 freebsd3.[01]* | freebsdelf3.[01]*)
15858 shlibpath_overrides_runpath=yes
15859 hardcode_into_libs=yes
15861 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15862 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15863 shlibpath_overrides_runpath=no
15864 hardcode_into_libs=yes
15866 freebsd*) # from 4.6 on
15867 shlibpath_overrides_runpath=yes
15868 hardcode_into_libs=yes
15877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15878 soname_spec='${libname}${release}${shared_ext}$major'
15879 shlibpath_var=LD_LIBRARY_PATH
15880 hardcode_into_libs=yes
15883 hpux9* | hpux10* | hpux11*)
15884 # Give a soname corresponding to the major version so that dld.sl refuses to
15885 # link against other versions.
15892 hardcode_into_libs=yes
15893 dynamic_linker="$host_os dld.so"
15894 shlibpath_var=LD_LIBRARY_PATH
15895 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15897 soname_spec='${libname}${release}${shared_ext}$major'
15898 if test "X$HPUX_IA64_MODE" = X32; then
15899 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15901 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15903 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15907 hardcode_into_libs=yes
15908 dynamic_linker="$host_os dld.sl"
15909 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15910 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15912 soname_spec='${libname}${release}${shared_ext}$major'
15913 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15914 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15918 dynamic_linker="$host_os dld.sl"
15919 shlibpath_var=SHLIB_PATH
15920 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15922 soname_spec='${libname}${release}${shared_ext}$major'
15925 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15926 postinstall_cmds='chmod 555 $lib'
15933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15934 soname_spec='${libname}${release}${shared_ext}$major'
15935 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15936 shlibpath_var=LD_LIBRARY_PATH
15937 shlibpath_overrides_runpath=no
15938 hardcode_into_libs=yes
15941 irix5* | irix6* | nonstopux*)
15943 nonstopux*) version_type=nonstopux ;;
15945 if test "$lt_cv_prog_gnu_ld" = yes; then
15953 soname_spec='${libname}${release}${shared_ext}$major'
15954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15956 irix5* | nonstopux*)
15957 libsuff= shlibsuff=
15960 case $LD in # libtool.m4 will add one of these switches to LD
15961 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15962 libsuff= shlibsuff= libmagic=32-bit;;
15963 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15964 libsuff=32 shlibsuff=N32 libmagic=N32;;
15965 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15966 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15967 *) libsuff= shlibsuff= libmagic=never-match;;
15971 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15972 shlibpath_overrides_runpath=no
15973 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15974 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15975 hardcode_into_libs=yes
15978 # No shared lib support for Linux oldld, aout, or coff.
15979 linux*oldld* | linux*aout* | linux*coff*)
15983 # This must be Linux ELF.
15988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15989 soname_spec='${libname}${release}${shared_ext}$major'
15990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15991 shlibpath_var=LD_LIBRARY_PATH
15992 shlibpath_overrides_runpath=no
15993 # This implies no fast_install, which is unacceptable.
15994 # Some rework will be needed to allow for fast_install
15995 # before this can be enabled.
15996 hardcode_into_libs=yes
15998 # Append ld.so.conf contents to the search path
15999 if test -f /etc/ld.so.conf; then
16000 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' ' '`
16001 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16004 # We used to test for /lib/ld.so.1 and disable shared libraries on
16005 # powerpc, because MkLinux only supported shared libraries with the
16006 # GNU dynamic linker. Since this was broken with cross compilers,
16007 # most powerpc-linux boxes support dynamic linking these days and
16008 # people can always --disable-shared, the test was removed, and we
16009 # assume the GNU/Linux dynamic linker is in use.
16010 dynamic_linker='GNU/Linux ld.so'
16017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16018 soname_spec='${libname}${release}${shared_ext}$major'
16019 shlibpath_var=LD_LIBRARY_PATH
16020 shlibpath_overrides_runpath=no
16021 hardcode_into_libs=yes
16022 dynamic_linker='GNU ld.so'
16029 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16032 dynamic_linker='NetBSD (a.out) ld.so'
16034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16035 soname_spec='${libname}${release}${shared_ext}$major'
16036 dynamic_linker='NetBSD ld.elf_so'
16038 shlibpath_var=LD_LIBRARY_PATH
16039 shlibpath_overrides_runpath=yes
16040 hardcode_into_libs=yes
16045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16046 shlibpath_var=LD_LIBRARY_PATH
16047 shlibpath_overrides_runpath=yes
16054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16055 soname_spec='${libname}${release}${shared_ext}$major'
16056 shlibpath_var=LD_LIBRARY_PATH
16057 shlibpath_overrides_runpath=yes
16062 sys_lib_dlsearch_path_spec="/usr/lib"
16064 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16066 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16067 *) need_version=no ;;
16069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16071 shlibpath_var=LD_LIBRARY_PATH
16072 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16074 openbsd2.[89] | openbsd2.[89].*)
16075 shlibpath_overrides_runpath=no
16078 shlibpath_overrides_runpath=yes
16082 shlibpath_overrides_runpath=yes
16087 libname_spec='$name'
16090 library_names_spec='$libname${shared_ext} $libname.a'
16091 dynamic_linker='OS/2 ld.exe'
16092 shlibpath_var=LIBPATH
16095 osf3* | osf4* | osf5*)
16099 soname_spec='${libname}${release}${shared_ext}$major'
16100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16101 shlibpath_var=LD_LIBRARY_PATH
16102 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16103 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16111 soname_spec='${libname}${release}${shared_ext}$major'
16112 shlibpath_var=LD_LIBRARY_PATH
16113 shlibpath_overrides_runpath=yes
16114 hardcode_into_libs=yes
16115 # ldd complains unless libraries are executable
16116 postinstall_cmds='chmod +x $lib'
16121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16122 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16123 shlibpath_var=LD_LIBRARY_PATH
16124 shlibpath_overrides_runpath=yes
16125 if test "$with_gnu_ld" = yes; then
16133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16134 soname_spec='${libname}${release}${shared_ext}$major'
16135 shlibpath_var=LD_LIBRARY_PATH
16136 case $host_vendor in
16138 shlibpath_overrides_runpath=no
16140 export_dynamic_flag_spec='${wl}-Blargedynsym'
16141 runpath_var=LD_RUN_PATH
16149 shlibpath_overrides_runpath=no
16150 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16156 if test -d /usr/nec ;then
16158 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16159 soname_spec='$libname${shared_ext}.$major'
16160 shlibpath_var=LD_LIBRARY_PATH
16164 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16165 version_type=freebsd-elf
16168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16169 soname_spec='${libname}${release}${shared_ext}$major'
16170 shlibpath_var=LD_LIBRARY_PATH
16171 hardcode_into_libs=yes
16172 if test "$with_gnu_ld" = yes; then
16173 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16174 shlibpath_overrides_runpath=no
16176 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16177 shlibpath_overrides_runpath=yes
16180 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16184 sys_lib_dlsearch_path_spec='/usr/lib'
16189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16190 soname_spec='${libname}${release}${shared_ext}$major'
16191 shlibpath_var=LD_LIBRARY_PATH
16198 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16199 echo "${ECHO_T}$dynamic_linker" >&6; }
16200 test "$dynamic_linker" = no && can_build_shared=no
16202 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16203 if test "$GCC" = yes; then
16204 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16207 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16208 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16210 if test -n "$hardcode_libdir_flag_spec" || \
16211 test -n "$runpath_var" || \
16212 test "X$hardcode_automatic" = "Xyes" ; then
16214 # We can hardcode non-existant directories.
16215 if test "$hardcode_direct" != no &&
16216 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16217 # have to relink, otherwise we might link with an installed library
16218 # when we should be linking with a yet-to-be-installed one
16219 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16220 test "$hardcode_minus_L" != no; then
16221 # Linking always hardcodes the temporary library directory.
16222 hardcode_action=relink
16224 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16225 hardcode_action=immediate
16228 # We cannot hardcode anything, or else we can only hardcode existing
16230 hardcode_action=unsupported
16232 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16233 echo "${ECHO_T}$hardcode_action" >&6; }
16235 if test "$hardcode_action" = relink; then
16236 # Fast installation is not supported
16237 enable_fast_install=no
16238 elif test "$shlibpath_overrides_runpath" = yes ||
16239 test "$enable_shared" = no; then
16240 # Fast installation is not necessary
16241 enable_fast_install=needless
16246 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16247 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16248 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16249 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16250 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16251 { echo "$as_me:$LINENO: result: yes" >&5
16252 echo "${ECHO_T}yes" >&6; }
16254 # FIXME - insert some real tests, host_os isn't really good enough
16257 if test -n "$STRIP" ; then
16258 striplib="$STRIP -x"
16259 { echo "$as_me:$LINENO: result: yes" >&5
16260 echo "${ECHO_T}yes" >&6; }
16262 { echo "$as_me:$LINENO: result: no" >&5
16263 echo "${ECHO_T}no" >&6; }
16267 { echo "$as_me:$LINENO: result: no" >&5
16268 echo "${ECHO_T}no" >&6; }
16273 if test "x$enable_dlopen" != xyes; then
16274 enable_dlopen=unknown
16275 enable_dlopen_self=unknown
16276 enable_dlopen_self_static=unknown
16283 lt_cv_dlopen="load_add_on"
16285 lt_cv_dlopen_self=yes
16289 lt_cv_dlopen="LoadLibrary"
16294 lt_cv_dlopen="dlopen"
16299 # if libdl is installed we need to link against it
16300 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16301 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16302 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16303 echo $ECHO_N "(cached) $ECHO_C" >&6
16305 ac_check_lib_save_LIBS=$LIBS
16307 cat >conftest.$ac_ext <<_ACEOF
16310 cat confdefs.h >>conftest.$ac_ext
16311 cat >>conftest.$ac_ext <<_ACEOF
16312 /* end confdefs.h. */
16314 /* Override any GCC internal prototype to avoid an error.
16315 Use char because int might match the return type of a GCC
16316 builtin and then its argument prototype would still apply. */
16329 rm -f conftest.$ac_objext conftest$ac_exeext
16330 if { (ac_try="$ac_link"
16331 case "(($ac_try" in
16332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16333 *) ac_try_echo=$ac_try;;
16335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16336 (eval "$ac_link") 2>conftest.er1
16338 grep -v '^ *+' conftest.er1 >conftest.err
16340 cat conftest.err >&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); } &&
16343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16344 { (case "(($ac_try" in
16345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16346 *) ac_try_echo=$ac_try;;
16348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16349 (eval "$ac_try") 2>&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); }; } &&
16353 { ac_try='test -s conftest$ac_exeext'
16354 { (case "(($ac_try" in
16355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356 *) ac_try_echo=$ac_try;;
16358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359 (eval "$ac_try") 2>&5
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }; }; then
16363 ac_cv_lib_dl_dlopen=yes
16365 echo "$as_me: failed program was:" >&5
16366 sed 's/^/| /' conftest.$ac_ext >&5
16368 ac_cv_lib_dl_dlopen=no
16371 rm -f core conftest.err conftest.$ac_objext \
16372 conftest$ac_exeext conftest.$ac_ext
16373 LIBS=$ac_check_lib_save_LIBS
16375 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16376 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16377 if test $ac_cv_lib_dl_dlopen = yes; then
16378 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16381 lt_cv_dlopen="dyld"
16383 lt_cv_dlopen_self=yes
16390 { echo "$as_me:$LINENO: checking for shl_load" >&5
16391 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16392 if test "${ac_cv_func_shl_load+set}" = set; then
16393 echo $ECHO_N "(cached) $ECHO_C" >&6
16395 cat >conftest.$ac_ext <<_ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h. */
16401 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16403 #define shl_load innocuous_shl_load
16405 /* System header to define __stub macros and hopefully few prototypes,
16406 which can conflict with char shl_load (); below.
16407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16408 <limits.h> exists even on freestanding compilers. */
16411 # include <limits.h>
16413 # include <assert.h>
16418 /* Override any GCC internal prototype to avoid an error.
16419 Use char because int might match the return type of a GCC
16420 builtin and then its argument prototype would still apply. */
16425 /* The GNU C library defines this for functions which it implements
16426 to always fail with ENOSYS. Some functions are actually named
16427 something starting with __ and the normal name is an alias. */
16428 #if defined __stub_shl_load || defined __stub___shl_load
16435 return shl_load ();
16440 rm -f conftest.$ac_objext conftest$ac_exeext
16441 if { (ac_try="$ac_link"
16442 case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447 (eval "$ac_link") 2>conftest.er1
16449 grep -v '^ *+' conftest.er1 >conftest.err
16451 cat conftest.err >&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } &&
16454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16455 { (case "(($ac_try" in
16456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457 *) ac_try_echo=$ac_try;;
16459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460 (eval "$ac_try") 2>&5
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); }; } &&
16464 { ac_try='test -s conftest$ac_exeext'
16465 { (case "(($ac_try" in
16466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467 *) ac_try_echo=$ac_try;;
16469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16470 (eval "$ac_try") 2>&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; }; then
16474 ac_cv_func_shl_load=yes
16476 echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16479 ac_cv_func_shl_load=no
16482 rm -f core conftest.err conftest.$ac_objext \
16483 conftest$ac_exeext conftest.$ac_ext
16485 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16486 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16487 if test $ac_cv_func_shl_load = yes; then
16488 lt_cv_dlopen="shl_load"
16490 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16491 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16492 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16493 echo $ECHO_N "(cached) $ECHO_C" >&6
16495 ac_check_lib_save_LIBS=$LIBS
16497 cat >conftest.$ac_ext <<_ACEOF
16500 cat confdefs.h >>conftest.$ac_ext
16501 cat >>conftest.$ac_ext <<_ACEOF
16502 /* end confdefs.h. */
16504 /* Override any GCC internal prototype to avoid an error.
16505 Use char because int might match the return type of a GCC
16506 builtin and then its argument prototype would still apply. */
16514 return shl_load ();
16519 rm -f conftest.$ac_objext conftest$ac_exeext
16520 if { (ac_try="$ac_link"
16521 case "(($ac_try" in
16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523 *) ac_try_echo=$ac_try;;
16525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526 (eval "$ac_link") 2>conftest.er1
16528 grep -v '^ *+' conftest.er1 >conftest.err
16530 cat conftest.err >&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); } &&
16533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16534 { (case "(($ac_try" in
16535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536 *) ac_try_echo=$ac_try;;
16538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539 (eval "$ac_try") 2>&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; } &&
16543 { ac_try='test -s conftest$ac_exeext'
16544 { (case "(($ac_try" in
16545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16546 *) ac_try_echo=$ac_try;;
16548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16549 (eval "$ac_try") 2>&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); }; }; then
16553 ac_cv_lib_dld_shl_load=yes
16555 echo "$as_me: failed program was:" >&5
16556 sed 's/^/| /' conftest.$ac_ext >&5
16558 ac_cv_lib_dld_shl_load=no
16561 rm -f core conftest.err conftest.$ac_objext \
16562 conftest$ac_exeext conftest.$ac_ext
16563 LIBS=$ac_check_lib_save_LIBS
16565 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16566 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16567 if test $ac_cv_lib_dld_shl_load = yes; then
16568 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16570 { echo "$as_me:$LINENO: checking for dlopen" >&5
16571 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16572 if test "${ac_cv_func_dlopen+set}" = set; then
16573 echo $ECHO_N "(cached) $ECHO_C" >&6
16575 cat >conftest.$ac_ext <<_ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h. */
16581 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16583 #define dlopen innocuous_dlopen
16585 /* System header to define __stub macros and hopefully few prototypes,
16586 which can conflict with char dlopen (); below.
16587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16588 <limits.h> exists even on freestanding compilers. */
16591 # include <limits.h>
16593 # include <assert.h>
16598 /* Override any GCC internal prototype to avoid an error.
16599 Use char because int might match the return type of a GCC
16600 builtin and then its argument prototype would still apply. */
16605 /* The GNU C library defines this for functions which it implements
16606 to always fail with ENOSYS. Some functions are actually named
16607 something starting with __ and the normal name is an alias. */
16608 #if defined __stub_dlopen || defined __stub___dlopen
16620 rm -f conftest.$ac_objext conftest$ac_exeext
16621 if { (ac_try="$ac_link"
16622 case "(($ac_try" in
16623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624 *) ac_try_echo=$ac_try;;
16626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627 (eval "$ac_link") 2>conftest.er1
16629 grep -v '^ *+' conftest.er1 >conftest.err
16631 cat conftest.err >&5
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); } &&
16634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16635 { (case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_try") 2>&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; } &&
16644 { ac_try='test -s conftest$ac_exeext'
16645 { (case "(($ac_try" in
16646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647 *) ac_try_echo=$ac_try;;
16649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650 (eval "$ac_try") 2>&5
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; }; then
16654 ac_cv_func_dlopen=yes
16656 echo "$as_me: failed program was:" >&5
16657 sed 's/^/| /' conftest.$ac_ext >&5
16659 ac_cv_func_dlopen=no
16662 rm -f core conftest.err conftest.$ac_objext \
16663 conftest$ac_exeext conftest.$ac_ext
16665 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16666 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16667 if test $ac_cv_func_dlopen = yes; then
16668 lt_cv_dlopen="dlopen"
16670 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16671 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16672 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16673 echo $ECHO_N "(cached) $ECHO_C" >&6
16675 ac_check_lib_save_LIBS=$LIBS
16677 cat >conftest.$ac_ext <<_ACEOF
16680 cat confdefs.h >>conftest.$ac_ext
16681 cat >>conftest.$ac_ext <<_ACEOF
16682 /* end confdefs.h. */
16684 /* Override any GCC internal prototype to avoid an error.
16685 Use char because int might match the return type of a GCC
16686 builtin and then its argument prototype would still apply. */
16699 rm -f conftest.$ac_objext conftest$ac_exeext
16700 if { (ac_try="$ac_link"
16701 case "(($ac_try" in
16702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16703 *) ac_try_echo=$ac_try;;
16705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16706 (eval "$ac_link") 2>conftest.er1
16708 grep -v '^ *+' conftest.er1 >conftest.err
16710 cat conftest.err >&5
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); } &&
16713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16714 { (case "(($ac_try" in
16715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716 *) ac_try_echo=$ac_try;;
16718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719 (eval "$ac_try") 2>&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; } &&
16723 { ac_try='test -s conftest$ac_exeext'
16724 { (case "(($ac_try" in
16725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726 *) ac_try_echo=$ac_try;;
16728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16729 (eval "$ac_try") 2>&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; }; then
16733 ac_cv_lib_dl_dlopen=yes
16735 echo "$as_me: failed program was:" >&5
16736 sed 's/^/| /' conftest.$ac_ext >&5
16738 ac_cv_lib_dl_dlopen=no
16741 rm -f core conftest.err conftest.$ac_objext \
16742 conftest$ac_exeext conftest.$ac_ext
16743 LIBS=$ac_check_lib_save_LIBS
16745 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16746 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16747 if test $ac_cv_lib_dl_dlopen = yes; then
16748 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16750 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16751 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16752 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16753 echo $ECHO_N "(cached) $ECHO_C" >&6
16755 ac_check_lib_save_LIBS=$LIBS
16756 LIBS="-lsvld $LIBS"
16757 cat >conftest.$ac_ext <<_ACEOF
16760 cat confdefs.h >>conftest.$ac_ext
16761 cat >>conftest.$ac_ext <<_ACEOF
16762 /* end confdefs.h. */
16764 /* Override any GCC internal prototype to avoid an error.
16765 Use char because int might match the return type of a GCC
16766 builtin and then its argument prototype would still apply. */
16779 rm -f conftest.$ac_objext conftest$ac_exeext
16780 if { (ac_try="$ac_link"
16781 case "(($ac_try" in
16782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783 *) ac_try_echo=$ac_try;;
16785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16786 (eval "$ac_link") 2>conftest.er1
16788 grep -v '^ *+' conftest.er1 >conftest.err
16790 cat conftest.err >&5
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); } &&
16793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16794 { (case "(($ac_try" in
16795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16796 *) ac_try_echo=$ac_try;;
16798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16799 (eval "$ac_try") 2>&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; } &&
16803 { ac_try='test -s conftest$ac_exeext'
16804 { (case "(($ac_try" in
16805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806 *) ac_try_echo=$ac_try;;
16808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16809 (eval "$ac_try") 2>&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); }; }; then
16813 ac_cv_lib_svld_dlopen=yes
16815 echo "$as_me: failed program was:" >&5
16816 sed 's/^/| /' conftest.$ac_ext >&5
16818 ac_cv_lib_svld_dlopen=no
16821 rm -f core conftest.err conftest.$ac_objext \
16822 conftest$ac_exeext conftest.$ac_ext
16823 LIBS=$ac_check_lib_save_LIBS
16825 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16826 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16827 if test $ac_cv_lib_svld_dlopen = yes; then
16828 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16830 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16831 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16832 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16833 echo $ECHO_N "(cached) $ECHO_C" >&6
16835 ac_check_lib_save_LIBS=$LIBS
16837 cat >conftest.$ac_ext <<_ACEOF
16840 cat confdefs.h >>conftest.$ac_ext
16841 cat >>conftest.$ac_ext <<_ACEOF
16842 /* end confdefs.h. */
16844 /* Override any GCC internal prototype to avoid an error.
16845 Use char because int might match the return type of a GCC
16846 builtin and then its argument prototype would still apply. */
16854 return dld_link ();
16859 rm -f conftest.$ac_objext conftest$ac_exeext
16860 if { (ac_try="$ac_link"
16861 case "(($ac_try" in
16862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863 *) ac_try_echo=$ac_try;;
16865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16866 (eval "$ac_link") 2>conftest.er1
16868 grep -v '^ *+' conftest.er1 >conftest.err
16870 cat conftest.err >&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } &&
16873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16874 { (case "(($ac_try" in
16875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876 *) ac_try_echo=$ac_try;;
16878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16879 (eval "$ac_try") 2>&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; } &&
16883 { ac_try='test -s conftest$ac_exeext'
16884 { (case "(($ac_try" in
16885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886 *) ac_try_echo=$ac_try;;
16888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889 (eval "$ac_try") 2>&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; }; then
16893 ac_cv_lib_dld_dld_link=yes
16895 echo "$as_me: failed program was:" >&5
16896 sed 's/^/| /' conftest.$ac_ext >&5
16898 ac_cv_lib_dld_dld_link=no
16901 rm -f core conftest.err conftest.$ac_objext \
16902 conftest$ac_exeext conftest.$ac_ext
16903 LIBS=$ac_check_lib_save_LIBS
16905 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16906 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16907 if test $ac_cv_lib_dld_dld_link = yes; then
16908 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16929 if test "x$lt_cv_dlopen" != xno; then
16935 case $lt_cv_dlopen in
16937 save_CPPFLAGS="$CPPFLAGS"
16938 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16940 save_LDFLAGS="$LDFLAGS"
16941 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16944 LIBS="$lt_cv_dlopen_libs $LIBS"
16946 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16947 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16948 if test "${lt_cv_dlopen_self+set}" = set; then
16949 echo $ECHO_N "(cached) $ECHO_C" >&6
16951 if test "$cross_compiling" = yes; then :
16952 lt_cv_dlopen_self=cross
16954 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16955 lt_status=$lt_dlunknown
16956 cat > conftest.$ac_ext <<EOF
16957 #line 16957 "configure"
16958 #include "confdefs.h"
16967 # define LT_DLGLOBAL RTLD_GLOBAL
16970 # define LT_DLGLOBAL DL_GLOBAL
16972 # define LT_DLGLOBAL 0
16976 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16977 find out it does not work in some platform. */
16978 #ifndef LT_DLLAZY_OR_NOW
16980 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16983 # define LT_DLLAZY_OR_NOW DL_LAZY
16986 # define LT_DLLAZY_OR_NOW RTLD_NOW
16989 # define LT_DLLAZY_OR_NOW DL_NOW
16991 # define LT_DLLAZY_OR_NOW 0
16999 extern "C" void exit (int);
17002 void fnord() { int i=42;}
17005 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17006 int status = $lt_dlunknown;
17010 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17011 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17012 /* dlclose (self); */
17020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17021 (eval $ac_link) 2>&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17025 (./conftest; exit; ) >&5 2>/dev/null
17027 case x$lt_status in
17028 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17029 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17030 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17033 # compilation failed
17034 lt_cv_dlopen_self=no
17041 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17042 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17044 if test "x$lt_cv_dlopen_self" = xyes; then
17045 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17046 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17047 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17048 if test "${lt_cv_dlopen_self_static+set}" = set; then
17049 echo $ECHO_N "(cached) $ECHO_C" >&6
17051 if test "$cross_compiling" = yes; then :
17052 lt_cv_dlopen_self_static=cross
17054 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17055 lt_status=$lt_dlunknown
17056 cat > conftest.$ac_ext <<EOF
17057 #line 17057 "configure"
17058 #include "confdefs.h"
17067 # define LT_DLGLOBAL RTLD_GLOBAL
17070 # define LT_DLGLOBAL DL_GLOBAL
17072 # define LT_DLGLOBAL 0
17076 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17077 find out it does not work in some platform. */
17078 #ifndef LT_DLLAZY_OR_NOW
17080 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17083 # define LT_DLLAZY_OR_NOW DL_LAZY
17086 # define LT_DLLAZY_OR_NOW RTLD_NOW
17089 # define LT_DLLAZY_OR_NOW DL_NOW
17091 # define LT_DLLAZY_OR_NOW 0
17099 extern "C" void exit (int);
17102 void fnord() { int i=42;}
17105 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17106 int status = $lt_dlunknown;
17110 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17111 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17112 /* dlclose (self); */
17120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17121 (eval $ac_link) 2>&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17125 (./conftest; exit; ) >&5 2>/dev/null
17127 case x$lt_status in
17128 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17129 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17130 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17133 # compilation failed
17134 lt_cv_dlopen_self_static=no
17141 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17142 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17145 CPPFLAGS="$save_CPPFLAGS"
17146 LDFLAGS="$save_LDFLAGS"
17151 case $lt_cv_dlopen_self in
17152 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17153 *) enable_dlopen_self=unknown ;;
17156 case $lt_cv_dlopen_self_static in
17157 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17158 *) enable_dlopen_self_static=unknown ;;
17163 # Report which library types will actually be built
17164 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17165 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17166 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17167 echo "${ECHO_T}$can_build_shared" >&6; }
17169 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17170 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17171 test "$can_build_shared" = "no" && enable_shared=no
17173 # On AIX, shared libraries and static libraries use the same namespace, and
17174 # are all built from PIC.
17177 test "$enable_shared" = yes && enable_static=no
17178 if test -n "$RANLIB"; then
17179 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17180 postinstall_cmds='$RANLIB $lib'
17185 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17186 test "$enable_shared" = yes && enable_static=no
17190 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17191 echo "${ECHO_T}$enable_shared" >&6; }
17193 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17194 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17195 # Make sure either enable_shared or enable_static is yes.
17196 test "$enable_shared" = yes || enable_static=yes
17197 { echo "$as_me:$LINENO: result: $enable_static" >&5
17198 echo "${ECHO_T}$enable_static" >&6; }
17200 # The else clause should only fire when bootstrapping the
17201 # libtool distribution, otherwise you forgot to ship ltmain.sh
17202 # with your package, and you will get complaints that there are
17203 # no rules to generate ltmain.sh.
17204 if test -f "$ltmain"; then
17205 # See if we are running on zsh, and set the options which allow our commands through
17206 # without removal of \ escapes.
17207 if test -n "${ZSH_VERSION+set}" ; then
17208 setopt NO_GLOB_SUBST
17210 # Now quote all the things that may contain metacharacters while being
17211 # careful not to overquote the AC_SUBSTed values. We take copies of the
17212 # variables and quote the copies for generation of the libtool script.
17213 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17215 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17216 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17217 deplibs_check_method reload_flag reload_cmds need_locks \
17218 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17219 lt_cv_sys_global_symbol_to_c_name_address \
17220 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17221 old_postinstall_cmds old_postuninstall_cmds \
17225 lt_prog_compiler_wl \
17226 lt_prog_compiler_pic \
17227 lt_prog_compiler_static \
17228 lt_prog_compiler_no_builtin_flag \
17229 export_dynamic_flag_spec \
17230 thread_safe_flag_spec \
17231 whole_archive_flag_spec \
17232 enable_shared_with_static_runtimes \
17234 old_archive_from_new_cmds \
17239 compiler_lib_search_path \
17241 archive_expsym_cmds \
17243 postuninstall_cmds \
17244 old_archive_from_expsyms_cmds \
17245 allow_undefined_flag \
17246 no_undefined_flag \
17247 export_symbols_cmds \
17248 hardcode_libdir_flag_spec \
17249 hardcode_libdir_flag_spec_ld \
17250 hardcode_libdir_separator \
17251 hardcode_automatic \
17253 module_expsym_cmds \
17254 lt_cv_prog_compiler_c_o \
17256 include_expsyms; do
17259 old_archive_cmds | \
17260 old_archive_from_new_cmds | \
17262 archive_expsym_cmds | \
17264 module_expsym_cmds | \
17265 old_archive_from_expsyms_cmds | \
17266 export_symbols_cmds | \
17267 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17268 postinstall_cmds | postuninstall_cmds | \
17269 old_postinstall_cmds | old_postuninstall_cmds | \
17270 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17271 # Double-quote double-evaled strings.
17272 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17275 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17281 *'\$0 --fallback-echo"')
17282 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17286 cfgfile="${ofile}T"
17287 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17289 { echo "$as_me:$LINENO: creating $ofile" >&5
17290 echo "$as_me: creating $ofile" >&6;}
17292 cat <<__EOF__ >> "$cfgfile"
17295 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17296 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17297 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17299 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17300 # Free Software Foundation, Inc.
17302 # This file is part of GNU Libtool:
17303 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17305 # This program is free software; you can redistribute it and/or modify
17306 # it under the terms of the GNU General Public License as published by
17307 # the Free Software Foundation; either version 2 of the License, or
17308 # (at your option) any later version.
17310 # This program is distributed in the hope that it will be useful, but
17311 # WITHOUT ANY WARRANTY; without even the implied warranty of
17312 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17313 # General Public License for more details.
17315 # You should have received a copy of the GNU General Public License
17316 # along with this program; if not, write to the Free Software
17317 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17319 # As a special exception to the GNU General Public License, if you
17320 # distribute this file as part of a program that contains a
17321 # configuration script generated by Autoconf, you may include it under
17322 # the same distribution terms that you use for the rest of that program.
17324 # A sed program that does not truncate output.
17327 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17328 Xsed="$SED -e 1s/^X//"
17330 # The HP-UX ksh and POSIX shell print the target directory to stdout
17331 # if CDPATH is set.
17332 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17334 # The names of the tagged configurations supported by this script.
17337 # ### BEGIN LIBTOOL CONFIG
17339 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17341 # Shell to use when invoking shell scripts.
17344 # Whether or not to build shared libraries.
17345 build_libtool_libs=$enable_shared
17347 # Whether or not to build static libraries.
17348 build_old_libs=$enable_static
17350 # Whether or not to add -lc for building shared libraries.
17351 build_libtool_need_lc=$archive_cmds_need_lc
17353 # Whether or not to disallow shared libs when runtime libs are static
17354 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17356 # Whether or not to optimize for fast installation.
17357 fast_install=$enable_fast_install
17360 host_alias=$host_alias
17364 # The build system.
17365 build_alias=$build_alias
17369 # An echo program that does not interpret backslashes.
17374 AR_FLAGS=$lt_AR_FLAGS
17379 # LTCC compiler flags.
17380 LTCFLAGS=$lt_LTCFLAGS
17382 # A language-specific compiler.
17385 # Is the compiler the GNU C compiler?
17391 # The linker used to build libraries.
17394 # Whether we need hard or soft links.
17397 # A BSD-compatible nm program.
17400 # A symbol stripping program
17403 # Used to examine libraries when file_magic_cmd begins "file"
17404 MAGIC_CMD=$MAGIC_CMD
17406 # Used on cygwin: DLL creation program.
17409 # Used on cygwin: object dumper.
17412 # Used on cygwin: assembler.
17415 # The name of the directory that contains temporary libtool files.
17418 # How to create reloadable object files.
17419 reload_flag=$lt_reload_flag
17420 reload_cmds=$lt_reload_cmds
17422 # How to pass a linker flag through the compiler.
17423 wl=$lt_lt_prog_compiler_wl
17425 # Object file suffix (normally "o").
17426 objext="$ac_objext"
17428 # Old archive suffix (normally "a").
17431 # Shared library suffix (normally ".so").
17432 shrext_cmds='$shrext_cmds'
17434 # Executable file suffix (normally "").
17437 # Additional compiler flags for building library objects.
17438 pic_flag=$lt_lt_prog_compiler_pic
17441 # What is the maximum length of a command?
17442 max_cmd_len=$lt_cv_sys_max_cmd_len
17444 # Does compiler simultaneously support -c and -o options?
17445 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17447 # Must we lock files when doing compilation?
17448 need_locks=$lt_need_locks
17450 # Do we need the lib prefix for modules?
17451 need_lib_prefix=$need_lib_prefix
17453 # Do we need a version for libraries?
17454 need_version=$need_version
17456 # Whether dlopen is supported.
17457 dlopen_support=$enable_dlopen
17459 # Whether dlopen of programs is supported.
17460 dlopen_self=$enable_dlopen_self
17462 # Whether dlopen of statically linked programs is supported.
17463 dlopen_self_static=$enable_dlopen_self_static
17465 # Compiler flag to prevent dynamic linking.
17466 link_static_flag=$lt_lt_prog_compiler_static
17468 # Compiler flag to turn off builtin functions.
17469 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17471 # Compiler flag to allow reflexive dlopens.
17472 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17474 # Compiler flag to generate shared objects directly from archives.
17475 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17477 # Compiler flag to generate thread-safe objects.
17478 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17480 # Library versioning type.
17481 version_type=$version_type
17483 # Format of library name prefix.
17484 libname_spec=$lt_libname_spec
17486 # List of archive names. First name is the real one, the rest are links.
17487 # The last name is the one that the linker finds with -lNAME.
17488 library_names_spec=$lt_library_names_spec
17490 # The coded name of the library, if different from the real name.
17491 soname_spec=$lt_soname_spec
17493 # Commands used to build and install an old-style archive.
17495 old_archive_cmds=$lt_old_archive_cmds
17496 old_postinstall_cmds=$lt_old_postinstall_cmds
17497 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17499 # Create an old-style archive from a shared archive.
17500 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17502 # Create a temporary old-style archive to link instead of a shared archive.
17503 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17505 # Commands used to build and install a shared archive.
17506 archive_cmds=$lt_archive_cmds
17507 archive_expsym_cmds=$lt_archive_expsym_cmds
17508 postinstall_cmds=$lt_postinstall_cmds
17509 postuninstall_cmds=$lt_postuninstall_cmds
17511 # Commands used to build a loadable module (assumed same as above if empty)
17512 module_cmds=$lt_module_cmds
17513 module_expsym_cmds=$lt_module_expsym_cmds
17515 # Commands to strip libraries.
17516 old_striplib=$lt_old_striplib
17517 striplib=$lt_striplib
17519 # Dependencies to place before the objects being linked to create a
17521 predep_objects=$lt_predep_objects
17523 # Dependencies to place after the objects being linked to create a
17525 postdep_objects=$lt_postdep_objects
17527 # Dependencies to place before the objects being linked to create a
17529 predeps=$lt_predeps
17531 # Dependencies to place after the objects being linked to create a
17533 postdeps=$lt_postdeps
17535 # The library search path used internally by the compiler when linking
17536 # a shared library.
17537 compiler_lib_search_path=$lt_compiler_lib_search_path
17539 # Method to check whether dependent libraries are shared objects.
17540 deplibs_check_method=$lt_deplibs_check_method
17542 # Command to use when deplibs_check_method == file_magic.
17543 file_magic_cmd=$lt_file_magic_cmd
17545 # Flag that allows shared libraries with undefined symbols to be built.
17546 allow_undefined_flag=$lt_allow_undefined_flag
17548 # Flag that forces no undefined symbols.
17549 no_undefined_flag=$lt_no_undefined_flag
17551 # Commands used to finish a libtool library installation in a directory.
17552 finish_cmds=$lt_finish_cmds
17554 # Same as above, but a single script fragment to be evaled but not shown.
17555 finish_eval=$lt_finish_eval
17557 # Take the output of nm and produce a listing of raw symbols and C names.
17558 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17560 # Transform the output of nm in a proper C declaration
17561 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17563 # Transform the output of nm in a C name address pair
17564 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17566 # This is the shared library runtime path variable.
17567 runpath_var=$runpath_var
17569 # This is the shared library path variable.
17570 shlibpath_var=$shlibpath_var
17572 # Is shlibpath searched before the hard-coded library search path?
17573 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17575 # How to hardcode a shared library path into an executable.
17576 hardcode_action=$hardcode_action
17578 # Whether we should hardcode library paths into libraries.
17579 hardcode_into_libs=$hardcode_into_libs
17581 # Flag to hardcode \$libdir into a binary during linking.
17582 # This must work even if \$libdir does not exist.
17583 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17585 # If ld is used when linking, flag to hardcode \$libdir into
17586 # a binary during linking. This must work even if \$libdir does
17588 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17590 # Whether we need a single -rpath flag with a separated argument.
17591 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17593 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17594 # resulting binary.
17595 hardcode_direct=$hardcode_direct
17597 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17598 # resulting binary.
17599 hardcode_minus_L=$hardcode_minus_L
17601 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17602 # the resulting binary.
17603 hardcode_shlibpath_var=$hardcode_shlibpath_var
17605 # Set to yes if building a shared library automatically hardcodes DIR into the library
17606 # and all subsequent libraries and executables linked against it.
17607 hardcode_automatic=$hardcode_automatic
17609 # Variables whose values should be saved in libtool wrapper scripts and
17610 # restored at relink time.
17611 variables_saved_for_relink="$variables_saved_for_relink"
17613 # Whether libtool must link a program against all its dependency libraries.
17614 link_all_deplibs=$link_all_deplibs
17616 # Compile-time system search path for libraries
17617 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17619 # Run-time system search path for libraries
17620 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17622 # Fix the shell variable \$srcfile for the compiler.
17623 fix_srcfile_path="$fix_srcfile_path"
17625 # Set to yes if exported symbols are required.
17626 always_export_symbols=$always_export_symbols
17628 # The commands to list exported symbols.
17629 export_symbols_cmds=$lt_export_symbols_cmds
17631 # The commands to extract the exported symbol list from a shared archive.
17632 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17634 # Symbols that should not be listed in the preloaded symbols.
17635 exclude_expsyms=$lt_exclude_expsyms
17637 # Symbols that must always be exported.
17638 include_expsyms=$lt_include_expsyms
17640 # ### END LIBTOOL CONFIG
17647 cat <<\EOF >> "$cfgfile"
17649 # AIX sometimes has problems with the GCC collect2 program. For some
17650 # reason, if we set the COLLECT_NAMES environment variable, the problems
17651 # vanish in a puff of smoke.
17652 if test "X${COLLECT_NAMES+set}" != Xset; then
17654 export COLLECT_NAMES
17660 # We use sed instead of cat because bash on DJGPP gets confused if
17661 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17662 # text mode, it properly converts lines to CR/LF. This bash problem
17663 # is reportedly fixed, but why not run on old versions too?
17664 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17666 mv -f "$cfgfile" "$ofile" || \
17667 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17671 # If there is no Makefile yet, we rely on a make rule to execute
17672 # `config.status --recheck' to rerun these tests and create the
17673 # libtool script then.
17674 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17675 if test -f "$ltmain_in"; then
17676 test -f Makefile && make "$ltmain"
17682 ac_cpp='$CPP $CPPFLAGS'
17683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17690 # Check whether --with-tags was given.
17691 if test "${with_tags+set}" = set; then
17692 withval=$with_tags; tagnames="$withval"
17696 if test -f "$ltmain" && test -n "$tagnames"; then
17697 if test ! -f "${ofile}"; then
17698 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17699 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17702 if test -z "$LTCC"; then
17703 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17704 if test -z "$LTCC"; then
17705 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17706 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17708 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17709 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17712 if test -z "$LTCFLAGS"; then
17713 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17716 # Extract list of available tagged configurations in $ofile.
17717 # Note that this assumes the entire list is on one line.
17718 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17720 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17721 for tagname in $tagnames; do
17723 # Check whether tagname contains only valid characters
17724 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17726 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17727 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17728 { (exit 1); exit 1; }; }
17732 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17734 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17735 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17736 { (exit 1); exit 1; }; }
17739 # Update the list of available tags.
17740 if test -n "$tagname"; then
17741 echo appending configuration tag \"$tagname\" to $ofile
17745 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17746 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17747 (test "X$CXX" != "Xg++"))) ; then
17749 ac_cpp='$CXXCPP $CPPFLAGS'
17750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17757 archive_cmds_need_lc_CXX=no
17758 allow_undefined_flag_CXX=
17759 always_export_symbols_CXX=no
17760 archive_expsym_cmds_CXX=
17761 export_dynamic_flag_spec_CXX=
17762 hardcode_direct_CXX=no
17763 hardcode_libdir_flag_spec_CXX=
17764 hardcode_libdir_flag_spec_ld_CXX=
17765 hardcode_libdir_separator_CXX=
17766 hardcode_minus_L_CXX=no
17767 hardcode_shlibpath_var_CXX=unsupported
17768 hardcode_automatic_CXX=no
17770 module_expsym_cmds_CXX=
17771 link_all_deplibs_CXX=unknown
17772 old_archive_cmds_CXX=$old_archive_cmds
17773 no_undefined_flag_CXX=
17774 whole_archive_flag_spec_CXX=
17775 enable_shared_with_static_runtimes_CXX=no
17777 # Dependencies to place before and after the object being linked:
17778 predep_objects_CXX=
17779 postdep_objects_CXX=
17782 compiler_lib_search_path_CXX=
17784 # Source file extension for C++ test sources.
17787 # Object file extension for compiled C++ test sources.
17791 # Code to be used in simple compile tests
17792 lt_simple_compile_test_code="int some_variable = 0;\n"
17794 # Code to be used in simple link tests
17795 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17797 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17799 # If no C compiler was specified, use CC.
17802 # If no C compiler flags were specified, use CFLAGS.
17803 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17805 # Allow CC to be a program name with arguments.
17809 # save warnings/boilerplate of simple test code
17810 ac_outfile=conftest.$ac_objext
17811 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17812 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17813 _lt_compiler_boilerplate=`cat conftest.err`
17816 ac_outfile=conftest.$ac_objext
17817 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17818 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17819 _lt_linker_boilerplate=`cat conftest.err`
17823 # Allow CC to be a program name with arguments.
17828 lt_save_with_gnu_ld=$with_gnu_ld
17829 lt_save_path_LD=$lt_cv_path_LD
17830 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17831 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17833 $as_unset lt_cv_prog_gnu_ld
17835 if test -n "${lt_cv_path_LDCXX+set}"; then
17836 lt_cv_path_LD=$lt_cv_path_LDCXX
17838 $as_unset lt_cv_path_LD
17840 test -z "${LDCXX+set}" || LD=$LDCXX
17844 for cc_temp in $compiler""; do
17846 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17847 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17852 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17855 # We don't want -fno-exception wen compiling C++ code, so set the
17856 # no_builtin_flag separately
17857 if test "$GXX" = yes; then
17858 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17860 lt_prog_compiler_no_builtin_flag_CXX=
17863 if test "$GXX" = yes; then
17864 # Set up default GNU C++ configuration
17867 # Check whether --with-gnu-ld was given.
17868 if test "${with_gnu_ld+set}" = set; then
17869 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17875 if test "$GCC" = yes; then
17876 # Check if gcc -print-prog-name=ld gives a path.
17877 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17878 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17881 # gcc leaves a trailing carriage return which upsets mingw
17882 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17884 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17887 # Accept absolute paths.
17889 re_direlt='/[^/][^/]*/\.\./'
17890 # Canonicalize the pathname of ld
17891 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17892 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17893 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17895 test -z "$LD" && LD="$ac_prog"
17898 # If it fails, then pretend we aren't using GCC.
17902 # If it is relative, then search for the first ld in PATH.
17903 with_gnu_ld=unknown
17906 elif test "$with_gnu_ld" = yes; then
17907 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17908 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17910 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17911 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17913 if test "${lt_cv_path_LD+set}" = set; then
17914 echo $ECHO_N "(cached) $ECHO_C" >&6
17916 if test -z "$LD"; then
17917 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17918 for ac_dir in $PATH; do
17920 test -z "$ac_dir" && ac_dir=.
17921 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17922 lt_cv_path_LD="$ac_dir/$ac_prog"
17923 # Check to see if the program is GNU ld. I'd rather use --version,
17924 # but apparently some variants of GNU ld only accept -v.
17925 # Break only if it was the GNU/non-GNU ld that we prefer.
17926 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17927 *GNU* | *'with BFD'*)
17928 test "$with_gnu_ld" != no && break
17931 test "$with_gnu_ld" != yes && break
17938 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17942 LD="$lt_cv_path_LD"
17943 if test -n "$LD"; then
17944 { echo "$as_me:$LINENO: result: $LD" >&5
17945 echo "${ECHO_T}$LD" >&6; }
17947 { echo "$as_me:$LINENO: result: no" >&5
17948 echo "${ECHO_T}no" >&6; }
17950 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17951 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17952 { (exit 1); exit 1; }; }
17953 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17954 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17955 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17956 echo $ECHO_N "(cached) $ECHO_C" >&6
17958 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17959 case `$LD -v 2>&1 </dev/null` in
17960 *GNU* | *'with BFD'*)
17961 lt_cv_prog_gnu_ld=yes
17964 lt_cv_prog_gnu_ld=no
17968 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17969 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
17970 with_gnu_ld=$lt_cv_prog_gnu_ld
17974 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17975 # archiving commands below assume that GNU ld is being used.
17976 if test "$with_gnu_ld" = yes; then
17977 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17978 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'
17980 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17981 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17983 # If archive_cmds runs LD, not CC, wlarc should be empty
17984 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17985 # investigate it a little bit more. (MM)
17988 # ancient GNU ld didn't support --whole-archive et. al.
17989 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17990 grep 'no-whole-archive' > /dev/null; then
17991 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17993 whole_archive_flag_spec_CXX=
17999 # A generic and very simple default shared library creation
18000 # command for GNU C++ for the case where it uses the native
18001 # linker, instead of GNU ld. If possible, this setting should
18002 # overridden to take advantage of the native linker features on
18003 # the platform it is being used on.
18004 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18007 # Commands to make compiler produce verbose output that lists
18008 # what "hidden" libraries, object files and flags are used when
18009 # linking a shared library.
18010 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18018 # PORTME: fill in a description of your system's C++ link characteristics
18019 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18020 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18024 # FIXME: insert proper C++ library support
18028 if test "$host_cpu" = ia64; then
18029 # On IA64, the linker does run time linking by default, so we don't
18030 # have to do anything special.
18031 aix_use_runtimelinking=no
18032 exp_sym_flag='-Bexport'
18035 aix_use_runtimelinking=no
18037 # Test if we are trying to use run time linking or normal
18038 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18039 # need to do runtime linking.
18040 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18041 for ld_flag in $LDFLAGS; do
18044 aix_use_runtimelinking=yes
18052 exp_sym_flag='-bexport'
18053 no_entry_flag='-bnoentry'
18056 # When large executables or shared objects are built, AIX ld can
18057 # have problems creating the table of contents. If linking a library
18058 # or program results in "error TOC overflow" add -mminimal-toc to
18059 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18060 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18062 archive_cmds_CXX=''
18063 hardcode_direct_CXX=yes
18064 hardcode_libdir_separator_CXX=':'
18065 link_all_deplibs_CXX=yes
18067 if test "$GXX" = yes; then
18068 case $host_os in aix4.[012]|aix4.[012].*)
18069 # We only want to do this on AIX 4.2 and lower, the check
18070 # below for broken collect2 doesn't work under 4.3+
18071 collect2name=`${CC} -print-prog-name=collect2`
18072 if test -f "$collect2name" && \
18073 strings "$collect2name" | grep resolve_lib_name >/dev/null
18075 # We have reworked collect2
18076 hardcode_direct_CXX=yes
18078 # We have old collect2
18079 hardcode_direct_CXX=unsupported
18080 # It fails to find uninstalled libraries when the uninstalled
18081 # path is not listed in the libpath. Setting hardcode_minus_L
18082 # to unsupported forces relinking
18083 hardcode_minus_L_CXX=yes
18084 hardcode_libdir_flag_spec_CXX='-L$libdir'
18085 hardcode_libdir_separator_CXX=
18089 shared_flag='-shared'
18090 if test "$aix_use_runtimelinking" = yes; then
18091 shared_flag="$shared_flag "'${wl}-G'
18095 if test "$host_cpu" = ia64; then
18096 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18097 # chokes on -Wl,-G. The following line is correct:
18100 if test "$aix_use_runtimelinking" = yes; then
18101 shared_flag='${wl}-G'
18103 shared_flag='${wl}-bM:SRE'
18108 # It seems that -bexpall does not export symbols beginning with
18109 # underscore (_), so it is better to generate a list of symbols to export.
18110 always_export_symbols_CXX=yes
18111 if test "$aix_use_runtimelinking" = yes; then
18112 # Warning - without using the other runtime loading flags (-brtl),
18113 # -berok will link without error, but may produce a broken library.
18114 allow_undefined_flag_CXX='-berok'
18115 # Determine the default libpath from the value encoded in an empty executable.
18116 cat >conftest.$ac_ext <<_ACEOF
18119 cat confdefs.h >>conftest.$ac_ext
18120 cat >>conftest.$ac_ext <<_ACEOF
18121 /* end confdefs.h. */
18131 rm -f conftest.$ac_objext conftest$ac_exeext
18132 if { (ac_try="$ac_link"
18133 case "(($ac_try" in
18134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18135 *) ac_try_echo=$ac_try;;
18137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18138 (eval "$ac_link") 2>conftest.er1
18140 grep -v '^ *+' conftest.er1 >conftest.err
18142 cat conftest.err >&5
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); } &&
18145 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18146 { (case "(($ac_try" in
18147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18148 *) ac_try_echo=$ac_try;;
18150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18151 (eval "$ac_try") 2>&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; } &&
18155 { ac_try='test -s conftest$ac_exeext'
18156 { (case "(($ac_try" in
18157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18158 *) ac_try_echo=$ac_try;;
18160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161 (eval "$ac_try") 2>&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; }; then
18166 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18168 # Check for a 64-bit object if we didn't find anything.
18169 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; }
18172 echo "$as_me: failed program was:" >&5
18173 sed 's/^/| /' conftest.$ac_ext >&5
18178 rm -f core conftest.err conftest.$ac_objext \
18179 conftest$ac_exeext conftest.$ac_ext
18180 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18182 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18184 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"
18186 if test "$host_cpu" = ia64; then
18187 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18188 allow_undefined_flag_CXX="-z nodefs"
18189 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"
18191 # Determine the default libpath from the value encoded in an empty executable.
18192 cat >conftest.$ac_ext <<_ACEOF
18195 cat confdefs.h >>conftest.$ac_ext
18196 cat >>conftest.$ac_ext <<_ACEOF
18197 /* end confdefs.h. */
18207 rm -f conftest.$ac_objext conftest$ac_exeext
18208 if { (ac_try="$ac_link"
18209 case "(($ac_try" in
18210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211 *) ac_try_echo=$ac_try;;
18213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18214 (eval "$ac_link") 2>conftest.er1
18216 grep -v '^ *+' conftest.er1 >conftest.err
18218 cat conftest.err >&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); } &&
18221 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18222 { (case "(($ac_try" in
18223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224 *) ac_try_echo=$ac_try;;
18226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227 (eval "$ac_try") 2>&5
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; } &&
18231 { ac_try='test -s conftest$ac_exeext'
18232 { (case "(($ac_try" in
18233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234 *) ac_try_echo=$ac_try;;
18236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18237 (eval "$ac_try") 2>&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; }; then
18242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18244 # Check for a 64-bit object if we didn't find anything.
18245 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; }
18248 echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.$ac_ext >&5
18254 rm -f core conftest.err conftest.$ac_objext \
18255 conftest$ac_exeext conftest.$ac_ext
18256 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18258 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18259 # Warning - without using the other run time loading flags,
18260 # -berok will link without error, but may produce a broken library.
18261 no_undefined_flag_CXX=' ${wl}-bernotok'
18262 allow_undefined_flag_CXX=' ${wl}-berok'
18263 # Exported symbols can be pulled into shared objects from archives
18264 whole_archive_flag_spec_CXX='$convenience'
18265 archive_cmds_need_lc_CXX=yes
18266 # This is similar to how AIX traditionally builds its shared libraries.
18267 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'
18273 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18274 allow_undefined_flag_CXX=unsupported
18275 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18276 # support --undefined. This deserves some investigation. FIXME
18277 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18284 case $cc_basename in
18286 # FIXME: insert proper C++ library support
18292 cygwin* | mingw* | pw32*)
18293 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18294 # as there is no search path for DLLs.
18295 hardcode_libdir_flag_spec_CXX='-L$libdir'
18296 allow_undefined_flag_CXX=unsupported
18297 always_export_symbols_CXX=no
18298 enable_shared_with_static_runtimes_CXX=yes
18300 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18301 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'
18302 # If the export-symbols file already is a .def file (1st line
18303 # is EXPORTS), use it as is; otherwise, prepend...
18304 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18305 cp $export_symbols $output_objdir/$soname.def;
18307 echo EXPORTS > $output_objdir/$soname.def;
18308 cat $export_symbols >> $output_objdir/$soname.def;
18310 $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'
18315 darwin* | rhapsody*)
18317 rhapsody* | darwin1.[012])
18318 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18321 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18322 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18324 case ${MACOSX_DEPLOYMENT_TARGET} in
18326 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18329 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18335 archive_cmds_need_lc_CXX=no
18336 hardcode_direct_CXX=no
18337 hardcode_automatic_CXX=yes
18338 hardcode_shlibpath_var_CXX=unsupported
18339 whole_archive_flag_spec_CXX=''
18340 link_all_deplibs_CXX=yes
18342 if test "$GXX" = yes ; then
18343 lt_int_apple_cc_single_mod=no
18344 output_verbose_link_cmd='echo'
18345 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18346 lt_int_apple_cc_single_mod=yes
18348 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18349 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18351 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'
18353 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18354 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18355 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18356 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}'
18358 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}'
18360 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}'
18362 case $cc_basename in
18364 output_verbose_link_cmd='echo'
18365 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'
18366 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18367 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18368 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}'
18369 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}'
18379 case $cc_basename in
18381 # FIXME: insert proper C++ library support
18385 # Green Hills C++ Compiler
18386 # FIXME: insert proper C++ library support
18390 # FIXME: insert proper C++ library support
18396 # C++ shared libraries reported to be fairly broken before switch to ELF
18400 archive_cmds_need_lc_CXX=no
18402 freebsd* | kfreebsd*-gnu | dragonfly*)
18403 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18410 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18411 hardcode_libdir_separator_CXX=:
18412 export_dynamic_flag_spec_CXX='${wl}-E'
18413 hardcode_direct_CXX=yes
18414 hardcode_minus_L_CXX=yes # Not in the search PATH,
18415 # but as the default
18416 # location of the library.
18418 case $cc_basename in
18420 # FIXME: insert proper C++ library support
18424 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'
18425 # Commands to make compiler produce verbose output that lists
18426 # what "hidden" libraries, object files and flags are used when
18427 # linking a shared library.
18429 # There doesn't appear to be a way to prevent this compiler from
18430 # explicitly linking system object files so we need to strip them
18431 # from the output so that they don't get included in the library
18433 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'
18436 if test "$GXX" = yes; then
18437 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'
18439 # FIXME: insert proper C++ library support
18446 if test $with_gnu_ld = no; then
18447 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18448 hardcode_libdir_separator_CXX=:
18452 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18455 export_dynamic_flag_spec_CXX='${wl}-E'
18461 hardcode_direct_CXX=no
18462 hardcode_shlibpath_var_CXX=no
18465 hardcode_direct_CXX=yes
18466 hardcode_minus_L_CXX=yes # Not in the search PATH,
18467 # but as the default
18468 # location of the library.
18472 case $cc_basename in
18474 # FIXME: insert proper C++ library support
18480 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18483 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18486 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18489 # Commands to make compiler produce verbose output that lists
18490 # what "hidden" libraries, object files and flags are used when
18491 # linking a shared library.
18493 # There doesn't appear to be a way to prevent this compiler from
18494 # explicitly linking system object files so we need to strip them
18495 # from the output so that they don't get included in the library
18497 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'
18500 if test "$GXX" = yes; then
18501 if test $with_gnu_ld = no; then
18504 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18507 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18510 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'
18515 # FIXME: insert proper C++ library support
18522 hardcode_direct_CXX=no
18523 hardcode_shlibpath_var_CXX=no
18524 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18525 export_dynamic_flag_spec_CXX='${wl}-E'
18526 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18527 # Instead, shared libraries are loaded at an image base (0x10000000 by
18528 # default) and relocated if they conflict, which is a slow very memory
18529 # consuming and fragmenting process. To avoid this, we pick a random,
18530 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18531 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18532 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'
18533 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'
18536 case $cc_basename in
18539 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'
18541 # Archives containing C++ object files must be created using
18542 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18543 # necessary to make sure instantiated templates are included
18545 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18548 if test "$GXX" = yes; then
18549 if test "$with_gnu_ld" = no; then
18550 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'
18552 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'
18555 link_all_deplibs_CXX=yes
18558 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18559 hardcode_libdir_separator_CXX=:
18562 case $cc_basename in
18564 # Kuck and Associates, Inc. (KAI) C++ Compiler
18566 # KCC will only create a shared library if the output file
18567 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18568 # to its proper name (with version) after linking.
18569 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'
18570 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'
18571 # Commands to make compiler produce verbose output that lists
18572 # what "hidden" libraries, object files and flags are used when
18573 # linking a shared library.
18575 # There doesn't appear to be a way to prevent this compiler from
18576 # explicitly linking system object files so we need to strip them
18577 # from the output so that they don't get included in the library
18579 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'
18581 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18582 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18584 # Archives containing C++ object files must be created using
18585 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18586 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18591 # version 8.0 and above of icpc choke on multiply defined symbols
18592 # if we add $predep_objects and $postdep_objects, however 7.1 and
18593 # earlier do not add the objects themselves.
18594 case `$CC -V 2>&1` in
18596 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18597 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'
18599 *) # Version 8.0 or newer
18602 ia64*) tmp_idyn=' -i_dynamic';;
18604 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18605 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'
18608 archive_cmds_need_lc_CXX=no
18609 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18610 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18611 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18614 # Portland Group C++ compiler
18615 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18616 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'
18618 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18619 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18620 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'
18624 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18625 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'
18627 runpath_var=LD_RUN_PATH
18628 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18629 hardcode_libdir_separator_CXX=:
18631 # Commands to make compiler produce verbose output that lists
18632 # what "hidden" libraries, object files and flags are used when
18633 # linking a shared library.
18635 # There doesn't appear to be a way to prevent this compiler from
18636 # explicitly linking system object files so we need to strip them
18637 # from the output so that they don't get included in the library
18639 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'
18644 # FIXME: insert proper C++ library support
18648 # FIXME: insert proper C++ library support
18652 case $cc_basename in
18654 # FIXME: insert proper C++ library support
18658 # FIXME: insert proper C++ library support
18664 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18665 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18667 hardcode_libdir_flag_spec_CXX='-R$libdir'
18668 hardcode_direct_CXX=yes
18669 hardcode_shlibpath_var_CXX=no
18671 # Workaround some broken pre-1.5 toolchains
18672 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18675 # C++ shared libraries are fairly broken
18679 hardcode_direct_CXX=yes
18680 hardcode_shlibpath_var_CXX=no
18681 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18682 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18683 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18684 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18685 export_dynamic_flag_spec_CXX='${wl}-E'
18686 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18688 output_verbose_link_cmd='echo'
18691 case $cc_basename in
18693 # Kuck and Associates, Inc. (KAI) C++ Compiler
18695 # KCC will only create a shared library if the output file
18696 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18697 # to its proper name (with version) after linking.
18698 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'
18700 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18701 hardcode_libdir_separator_CXX=:
18703 # Archives containing C++ object files must be created using
18704 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18705 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18709 # Rational C++ 2.4.1
18710 # FIXME: insert proper C++ library support
18714 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18715 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'
18717 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18718 hardcode_libdir_separator_CXX=:
18720 # Commands to make compiler produce verbose output that lists
18721 # what "hidden" libraries, object files and flags are used when
18722 # linking a shared library.
18724 # There doesn't appear to be a way to prevent this compiler from
18725 # explicitly linking system object files so we need to strip them
18726 # from the output so that they don't get included in the library
18728 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'
18731 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18732 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18733 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'
18735 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18736 hardcode_libdir_separator_CXX=:
18738 # Commands to make compiler produce verbose output that lists
18739 # what "hidden" libraries, object files and flags are used when
18740 # linking a shared library.
18741 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18744 # FIXME: insert proper C++ library support
18751 case $cc_basename in
18753 # Kuck and Associates, Inc. (KAI) C++ Compiler
18755 # KCC will only create a shared library if the output file
18756 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18757 # to its proper name (with version) after linking.
18758 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'
18760 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18761 hardcode_libdir_separator_CXX=:
18763 # Archives containing C++ object files must be created using
18764 # the KAI C++ compiler.
18765 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18768 # Rational C++ 2.4.1
18769 # FIXME: insert proper C++ library support
18773 allow_undefined_flag_CXX=' -expect_unresolved \*'
18774 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'
18775 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18776 echo "-hidden">> $lib.exp~
18777 $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~
18780 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18781 hardcode_libdir_separator_CXX=:
18783 # Commands to make compiler produce verbose output that lists
18784 # what "hidden" libraries, object files and flags are used when
18785 # linking a shared library.
18787 # There doesn't appear to be a way to prevent this compiler from
18788 # explicitly linking system object files so we need to strip them
18789 # from the output so that they don't get included in the library
18791 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'
18794 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18795 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18796 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'
18798 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18799 hardcode_libdir_separator_CXX=:
18801 # Commands to make compiler produce verbose output that lists
18802 # what "hidden" libraries, object files and flags are used when
18803 # linking a shared library.
18804 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18807 # FIXME: insert proper C++ library support
18814 # FIXME: insert proper C++ library support
18818 case $cc_basename in
18821 # FIXME: insert proper C++ library support
18826 # FIXME: insert proper C++ library support
18830 # FIXME: insert proper C++ library support
18836 case $cc_basename in
18838 # Sun C++ 4.2, 5.x and Centerline C++
18839 archive_cmds_need_lc_CXX=yes
18840 no_undefined_flag_CXX=' -zdefs'
18841 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18842 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18843 $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'
18845 hardcode_libdir_flag_spec_CXX='-R$libdir'
18846 hardcode_shlibpath_var_CXX=no
18848 solaris2.[0-5] | solaris2.[0-5].*) ;;
18850 # The C++ compiler is used as linker so we must use $wl
18851 # flag to pass the commands to the underlying system
18852 # linker. We must also pass each convience library through
18853 # to the system linker between allextract/defaultextract.
18854 # The C++ compiler will combine linker options so we
18855 # cannot just pass the convience library names through
18857 # Supported since Solaris 2.6 (maybe 2.5.1?)
18858 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'
18861 link_all_deplibs_CXX=yes
18863 output_verbose_link_cmd='echo'
18865 # Archives containing C++ object files must be created using
18866 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18867 # necessary to make sure instantiated templates are included
18869 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18872 # Green Hills C++ Compiler
18873 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18875 # The C++ compiler must be used to create the archive.
18876 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18879 # GNU C++ compiler with Solaris linker
18880 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18881 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18882 if $CC --version | grep -v '^2\.7' > /dev/null; then
18883 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18884 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18885 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18887 # Commands to make compiler produce verbose output that lists
18888 # what "hidden" libraries, object files and flags are used when
18889 # linking a shared library.
18890 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18892 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18894 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18895 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18896 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18898 # Commands to make compiler produce verbose output that lists
18899 # what "hidden" libraries, object files and flags are used when
18900 # linking a shared library.
18901 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18904 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18909 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18910 no_undefined_flag_CXX='${wl}-z,text'
18911 archive_cmds_need_lc_CXX=no
18912 hardcode_shlibpath_var_CXX=no
18913 runpath_var='LD_RUN_PATH'
18915 case $cc_basename in
18917 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18918 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18921 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18922 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18926 sysv5* | sco3.2v5* | sco5v6*)
18927 # Note: We can NOT use -z defs as we might desire, because we do not
18928 # link with -lc, and that would cause any symbols used from libc to
18929 # always be unresolved, which means just about no library would
18930 # ever link correctly. If we're not using GNU ld we use -z text
18931 # though, which does catch some bad symbols but isn't as heavy-handed
18933 # For security reasons, it is highly recommended that you always
18934 # use absolute paths for naming shared libraries, and exclude the
18935 # DT_RUNPATH tag from executables and libraries. But doing so
18936 # requires that you compile everything twice, which is a pain.
18937 # So that behaviour is only enabled if SCOABSPATH is set to a
18938 # non-empty value in the environment. Most likely only useful for
18939 # creating official distributions of packages.
18940 # This is a hack until libtool officially supports absolute path
18941 # names for shared libraries.
18942 no_undefined_flag_CXX='${wl}-z,text'
18943 allow_undefined_flag_CXX='${wl}-z,nodefs'
18944 archive_cmds_need_lc_CXX=no
18945 hardcode_shlibpath_var_CXX=no
18946 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18947 hardcode_libdir_separator_CXX=':'
18948 link_all_deplibs_CXX=yes
18949 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18950 runpath_var='LD_RUN_PATH'
18952 case $cc_basename in
18954 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18955 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18958 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18959 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18964 case $cc_basename in
18966 # NonStop-UX NCC 3.20
18967 # FIXME: insert proper C++ library support
18971 # FIXME: insert proper C++ library support
18977 # FIXME: insert proper C++ library support
18981 # FIXME: insert proper C++ library support
18985 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18986 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18987 test "$ld_shlibs_CXX" = no && can_build_shared=no
18993 cat > conftest.$ac_ext <<EOF
18997 Foo (void) { a = 0; }
19003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19004 (eval $ac_compile) 2>&5
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); }; then
19008 # Parse the compiler output and extract the necessary
19009 # objects, libraries and library flags.
19011 # Sentinel used to keep track of whether or not we are before
19012 # the conftest object file.
19013 pre_test_object_deps_done=no
19015 # The `*' in the case matches for architectures that use `case' in
19016 # $output_verbose_cmd can trigger glob expansion during the loop
19017 # eval without this substitution.
19018 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19020 for p in `eval $output_verbose_link_cmd`; do
19024 # Some compilers place space between "-{L,R}" and the path.
19025 # Remove the space.
19026 if test $p = "-L" \
19027 || test $p = "-R"; then
19034 if test "$pre_test_object_deps_done" = no; then
19037 # Internal compiler library paths should come after those
19038 # provided the user. The postdeps already come after the
19039 # user supplied libs so there is no need to process them.
19040 if test -z "$compiler_lib_search_path_CXX"; then
19041 compiler_lib_search_path_CXX="${prev}${p}"
19043 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19046 # The "-l" case would never come before the object being
19047 # linked, so don't bother handling this case.
19050 if test -z "$postdeps_CXX"; then
19051 postdeps_CXX="${prev}${p}"
19053 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19059 # This assumes that the test object file only shows up
19060 # once in the compiler output.
19061 if test "$p" = "conftest.$objext"; then
19062 pre_test_object_deps_done=yes
19066 if test "$pre_test_object_deps_done" = no; then
19067 if test -z "$predep_objects_CXX"; then
19068 predep_objects_CXX="$p"
19070 predep_objects_CXX="$predep_objects_CXX $p"
19073 if test -z "$postdep_objects_CXX"; then
19074 postdep_objects_CXX="$p"
19076 postdep_objects_CXX="$postdep_objects_CXX $p"
19081 *) ;; # Ignore the rest.
19089 echo "libtool.m4: error: problem compiling CXX test program"
19092 $rm -f confest.$objext
19094 # PORTME: override above test on systems where it is broken
19097 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19098 # hack all around it, let's just trust "g++" to DTRT.
19099 predep_objects_CXX=
19100 postdep_objects_CXX=
19105 case $cc_basename in
19107 # Adding this requires a known-good setup of shared libraries for
19108 # Sun compiler versions before 5.6, else PIC objects from an old
19109 # archive will be linked into the output, leading to subtle bugs.
19110 postdeps_CXX='-lCstd -lCrun'
19117 case " $postdeps_CXX " in
19118 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19121 lt_prog_compiler_wl_CXX=
19122 lt_prog_compiler_pic_CXX=
19123 lt_prog_compiler_static_CXX=
19125 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19126 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19128 # C++ specific cases for pic, static, wl, etc.
19129 if test "$GXX" = yes; then
19130 lt_prog_compiler_wl_CXX='-Wl,'
19131 lt_prog_compiler_static_CXX='-static'
19135 # All AIX code is PIC.
19136 if test "$host_cpu" = ia64; then
19137 # AIX 5 now supports IA64 processor
19138 lt_prog_compiler_static_CXX='-Bstatic'
19142 # FIXME: we need at least 68020 code to build shared libraries, but
19143 # adding the `-m68020' flag to GCC prevents building anything better,
19145 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19147 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19148 # PIC is the default for these OSes.
19150 mingw* | os2* | pw32*)
19151 # This hack is so that the source file can tell whether it is being
19152 # built for inclusion in a dll (and should export symbols for example).
19153 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19155 darwin* | rhapsody*)
19156 # PIC is the default on this platform
19157 # Common symbols not allowed in MH_DYLIB files
19158 lt_prog_compiler_pic_CXX='-fno-common'
19161 # DJGPP does not support shared libraries at all
19162 lt_prog_compiler_pic_CXX=
19165 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19166 # Instead, we relocate shared libraries at runtime.
19169 if test -d /usr/nec; then
19170 lt_prog_compiler_pic_CXX=-Kconform_pic
19174 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19175 # not for PA HP-UX.
19180 lt_prog_compiler_pic_CXX='-fPIC'
19185 lt_prog_compiler_pic_CXX='-fPIC'
19191 # All AIX code is PIC.
19192 if test "$host_cpu" = ia64; then
19193 # AIX 5 now supports IA64 processor
19194 lt_prog_compiler_static_CXX='-Bstatic'
19196 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19200 case $cc_basename in
19202 # Green Hills C++ Compiler
19203 # _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"
19208 # PIC is the default on this platform
19209 # Common symbols not allowed in MH_DYLIB files
19210 case $cc_basename in
19212 lt_prog_compiler_pic_CXX='-qnocommon'
19213 lt_prog_compiler_wl_CXX='-Wl,'
19218 case $cc_basename in
19220 lt_prog_compiler_pic_CXX='-KPIC'
19223 # Green Hills C++ Compiler
19224 lt_prog_compiler_pic_CXX='-pic'
19230 freebsd* | kfreebsd*-gnu | dragonfly*)
19231 # FreeBSD uses GNU C++
19233 hpux9* | hpux10* | hpux11*)
19234 case $cc_basename in
19236 lt_prog_compiler_wl_CXX='-Wl,'
19237 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19238 if test "$host_cpu" != ia64; then
19239 lt_prog_compiler_pic_CXX='+Z'
19243 lt_prog_compiler_wl_CXX='-Wl,'
19244 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19250 lt_prog_compiler_pic_CXX='+Z'
19259 # This is c89, which is MS Visual C++ (no shared libs)
19260 # Anyone wants to do a port?
19262 irix5* | irix6* | nonstopux*)
19263 case $cc_basename in
19265 lt_prog_compiler_wl_CXX='-Wl,'
19266 lt_prog_compiler_static_CXX='-non_shared'
19267 # CC pic flag -KPIC is the default.
19274 case $cc_basename in
19277 lt_prog_compiler_wl_CXX='--backend -Wl,'
19278 lt_prog_compiler_pic_CXX='-fPIC'
19282 lt_prog_compiler_wl_CXX='-Wl,'
19283 lt_prog_compiler_pic_CXX='-KPIC'
19284 lt_prog_compiler_static_CXX='-static'
19287 # Portland Group C++ compiler.
19288 lt_prog_compiler_wl_CXX='-Wl,'
19289 lt_prog_compiler_pic_CXX='-fpic'
19290 lt_prog_compiler_static_CXX='-Bstatic'
19294 # Make sure the PIC flag is empty. It appears that all Alpha
19295 # Linux and Compaq Tru64 Unix objects are PIC.
19296 lt_prog_compiler_pic_CXX=
19297 lt_prog_compiler_static_CXX='-non_shared'
19308 case $cc_basename in
19310 lt_prog_compiler_pic_CXX='-W c,exportall'
19318 osf3* | osf4* | osf5*)
19319 case $cc_basename in
19321 lt_prog_compiler_wl_CXX='--backend -Wl,'
19324 # Rational C++ 2.4.1
19325 lt_prog_compiler_pic_CXX='-pic'
19328 # Digital/Compaq C++
19329 lt_prog_compiler_wl_CXX='-Wl,'
19330 # Make sure the PIC flag is empty. It appears that all Alpha
19331 # Linux and Compaq Tru64 Unix objects are PIC.
19332 lt_prog_compiler_pic_CXX=
19333 lt_prog_compiler_static_CXX='-non_shared'
19342 case $cc_basename in
19344 # Sun C++ 4.2, 5.x and Centerline C++
19345 lt_prog_compiler_pic_CXX='-KPIC'
19346 lt_prog_compiler_static_CXX='-Bstatic'
19347 lt_prog_compiler_wl_CXX='-Qoption ld '
19350 # Green Hills C++ Compiler
19351 lt_prog_compiler_pic_CXX='-PIC'
19358 case $cc_basename in
19361 lt_prog_compiler_pic_CXX='-pic'
19362 lt_prog_compiler_static_CXX='-Bstatic'
19366 lt_prog_compiler_pic_CXX='-pic'
19373 case $cc_basename in
19375 # NonStop-UX NCC 3.20
19376 lt_prog_compiler_pic_CXX='-KPIC'
19382 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19383 case $cc_basename in
19385 lt_prog_compiler_wl_CXX='-Wl,'
19386 lt_prog_compiler_pic_CXX='-KPIC'
19387 lt_prog_compiler_static_CXX='-Bstatic'
19394 lt_prog_compiler_can_build_shared_CXX=no
19399 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19400 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19403 # Check to make sure the PIC flag actually works.
19405 if test -n "$lt_prog_compiler_pic_CXX"; then
19407 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19408 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19409 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19410 echo $ECHO_N "(cached) $ECHO_C" >&6
19412 lt_prog_compiler_pic_works_CXX=no
19413 ac_outfile=conftest.$ac_objext
19414 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19415 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19416 # Insert the option either (1) after the last *FLAGS variable, or
19417 # (2) before a word containing "conftest.", or (3) at the end.
19418 # Note that $ac_compile itself does not contain backslashes and begins
19419 # with a dollar sign (not a hyphen), so the echo should work correctly.
19420 # The option is referenced via a variable to avoid confusing sed.
19421 lt_compile=`echo "$ac_compile" | $SED \
19422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19424 -e 's:$: $lt_compiler_flag:'`
19425 (eval echo "\"\$as_me:19425: $lt_compile\"" >&5)
19426 (eval "$lt_compile" 2>conftest.err)
19428 cat conftest.err >&5
19429 echo "$as_me:19429: \$? = $ac_status" >&5
19430 if (exit $ac_status) && test -s "$ac_outfile"; then
19431 # The compiler can only warn and ignore the option if not recognized
19432 # So say no if there are warnings other than the usual output.
19433 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19435 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19436 lt_prog_compiler_pic_works_CXX=yes
19442 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19443 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19445 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19446 case $lt_prog_compiler_pic_CXX in
19448 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19451 lt_prog_compiler_pic_CXX=
19452 lt_prog_compiler_can_build_shared_CXX=no
19457 # For platforms which do not support PIC, -DPIC is meaningless:
19459 lt_prog_compiler_pic_CXX=
19462 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19467 # Check to make sure the static flag actually works.
19469 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19470 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19471 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19472 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19473 echo $ECHO_N "(cached) $ECHO_C" >&6
19475 lt_prog_compiler_static_works_CXX=no
19476 save_LDFLAGS="$LDFLAGS"
19477 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19478 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19479 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19480 # The linker can only warn and ignore the option if not recognized
19481 # So say no if there are warnings
19482 if test -s conftest.err; then
19483 # Append any errors to the config.log.
19484 cat conftest.err 1>&5
19485 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19487 if diff conftest.exp conftest.er2 >/dev/null; then
19488 lt_prog_compiler_static_works_CXX=yes
19491 lt_prog_compiler_static_works_CXX=yes
19495 LDFLAGS="$save_LDFLAGS"
19498 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19499 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19501 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19504 lt_prog_compiler_static_CXX=
19508 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19509 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19510 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19511 echo $ECHO_N "(cached) $ECHO_C" >&6
19513 lt_cv_prog_compiler_c_o_CXX=no
19514 $rm -r conftest 2>/dev/null
19518 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19520 lt_compiler_flag="-o out/conftest2.$ac_objext"
19521 # Insert the option either (1) after the last *FLAGS variable, or
19522 # (2) before a word containing "conftest.", or (3) at the end.
19523 # Note that $ac_compile itself does not contain backslashes and begins
19524 # with a dollar sign (not a hyphen), so the echo should work correctly.
19525 lt_compile=`echo "$ac_compile" | $SED \
19526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19528 -e 's:$: $lt_compiler_flag:'`
19529 (eval echo "\"\$as_me:19529: $lt_compile\"" >&5)
19530 (eval "$lt_compile" 2>out/conftest.err)
19532 cat out/conftest.err >&5
19533 echo "$as_me:19533: \$? = $ac_status" >&5
19534 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19536 # The compiler can only warn and ignore the option if not recognized
19537 # So say no if there are warnings
19538 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19539 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19540 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19541 lt_cv_prog_compiler_c_o_CXX=yes
19546 # SGI C++ compiler will create directory out/ii_files/ for
19547 # template instantiation
19548 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19549 $rm out/* && rmdir out
19555 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19556 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19559 hard_links="nottested"
19560 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19561 # do not overwrite the value of need_locks provided by the user
19562 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19563 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19566 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19568 ln conftest.a conftest.b 2>&5 || hard_links=no
19569 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19570 { echo "$as_me:$LINENO: result: $hard_links" >&5
19571 echo "${ECHO_T}$hard_links" >&6; }
19572 if test "$hard_links" = no; then
19573 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19574 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19581 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19582 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19584 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19587 # If we're using GNU nm, then we don't want the "-C" option.
19588 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19589 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19590 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'
19592 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'
19596 export_symbols_cmds_CXX="$ltdll_cmds"
19599 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'
19602 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19606 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19607 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19608 test "$ld_shlibs_CXX" = no && can_build_shared=no
19611 # Do we need to explicitly link libc?
19613 case "x$archive_cmds_need_lc_CXX" in
19615 # Assume -lc should be added
19616 archive_cmds_need_lc_CXX=yes
19618 if test "$enable_shared" = yes && test "$GCC" = yes; then
19619 case $archive_cmds_CXX in
19621 # FIXME: we may have to deal with multi-command sequences.
19624 # Test whether the compiler implicitly links with -lc since on some
19625 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19626 # to ld, don't add -lc before -lgcc.
19627 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19628 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19630 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19633 (eval $ac_compile) 2>&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } 2>conftest.err; then
19639 libobjs=conftest.$ac_objext
19641 wl=$lt_prog_compiler_wl_CXX
19642 pic_flag=$lt_prog_compiler_pic_CXX
19648 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19649 allow_undefined_flag_CXX=
19650 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19651 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); }
19656 archive_cmds_need_lc_CXX=no
19658 archive_cmds_need_lc_CXX=yes
19660 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19662 cat conftest.err 1>&5
19665 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19666 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19673 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19674 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19675 library_names_spec=
19676 libname_spec='lib$name'
19680 postuninstall_cmds=
19684 shlibpath_overrides_runpath=unknown
19686 dynamic_linker="$host_os ld.so"
19687 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19688 if test "$GCC" = yes; then
19689 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19690 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19691 # if the path contains ";" then we assume it to be the separator
19692 # otherwise default to the standard path separator (i.e. ":") - it is
19693 # assumed that no part of a normal pathname contains ";" but that should
19694 # okay in the real world where ";" in dirpaths is itself problematic.
19695 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19697 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19700 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19702 need_lib_prefix=unknown
19703 hardcode_into_libs=no
19705 # when you set need_version to no, make sure it does not cause -set_version
19706 # flags to be left without arguments
19707 need_version=unknown
19712 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19713 shlibpath_var=LIBPATH
19715 # AIX 3 has no versioning support, so we append a major version to the name.
19716 soname_spec='${libname}${release}${shared_ext}$major'
19723 hardcode_into_libs=yes
19724 if test "$host_cpu" = ia64; then
19725 # AIX 5 supports IA64
19726 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19727 shlibpath_var=LD_LIBRARY_PATH
19729 # With GCC up to 2.95.x, collect2 would create an import file
19730 # for dependence libraries. The import file would start with
19731 # the line `#! .'. This would cause the generated library to
19732 # depend on `.', always an invalid library. This was fixed in
19733 # development snapshots of GCC prior to 3.0.
19735 aix4 | aix4.[01] | aix4.[01].*)
19736 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19738 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19741 can_build_shared=no
19745 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19746 # soname into executable. Probably we can add versioning support to
19747 # collect2, so additional links can be useful in future.
19748 if test "$aix_use_runtimelinking" = yes; then
19749 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19750 # instead of lib<name>.a to let people know that these are not
19751 # typical AIX shared libraries.
19752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19754 # We preserve .a as extension for shared libraries through AIX4.2
19755 # and later when we are not doing run time linking.
19756 library_names_spec='${libname}${release}.a $libname.a'
19757 soname_spec='${libname}${release}${shared_ext}$major'
19759 shlibpath_var=LIBPATH
19764 library_names_spec='$libname.ixlibrary $libname.a'
19765 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19766 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'
19770 library_names_spec='${libname}${shared_ext}'
19771 dynamic_linker="$host_os ld.so"
19772 shlibpath_var=LIBRARY_PATH
19778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19779 soname_spec='${libname}${release}${shared_ext}$major'
19780 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19781 shlibpath_var=LD_LIBRARY_PATH
19782 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19783 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19784 # the default ld.so.conf also contains /usr/contrib/lib and
19785 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19786 # libtool to hard-code these into programs
19789 cygwin* | mingw* | pw32*)
19790 version_type=windows
19795 case $GCC,$host_os in
19796 yes,cygwin* | yes,mingw* | yes,pw32*)
19797 library_names_spec='$libname.dll.a'
19798 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19799 postinstall_cmds='base_file=`basename \${file}`~
19800 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19801 dldir=$destdir/`dirname \$dlpath`~
19802 test -d \$dldir || mkdir -p \$dldir~
19803 $install_prog $dir/$dlname \$dldir/$dlname~
19804 chmod a+x \$dldir/$dlname'
19805 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19806 dlpath=$dir/\$dldll~
19808 shlibpath_overrides_runpath=yes
19812 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19813 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19814 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19817 # MinGW DLLs use traditional 'lib' prefix
19818 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19819 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19820 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19821 # It is most probably a Windows format PATH printed by
19822 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19823 # path with ; separators, and with drive letters. We can handle the
19824 # drive letters (cygwin fileutils understands them), so leave them,
19825 # especially as we might pass files found there to a mingw objdump,
19826 # which wouldn't understand a cygwinified path. Ahh.
19827 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19829 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19833 # pw32 DLLs use 'pw' prefix rather than 'lib'
19834 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19840 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19843 dynamic_linker='Win32 ld.exe'
19844 # FIXME: first we should search . and the directory the executable is in
19848 darwin* | rhapsody*)
19849 dynamic_linker="$host_os dyld"
19850 version_type=darwin
19853 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19854 soname_spec='${libname}${release}${major}$shared_ext'
19855 shlibpath_overrides_runpath=yes
19856 shlibpath_var=DYLD_LIBRARY_PATH
19857 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19858 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19859 if test "$GCC" = yes; then
19860 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"`
19862 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19864 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19872 soname_spec='${libname}${release}${shared_ext}$major'
19873 shlibpath_var=LD_LIBRARY_PATH
19884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19885 soname_spec='${libname}${release}${shared_ext}$major'
19886 shlibpath_var=LD_LIBRARY_PATH
19887 shlibpath_overrides_runpath=no
19888 hardcode_into_libs=yes
19889 dynamic_linker='GNU ld.so'
19892 freebsd* | dragonfly*)
19893 # DragonFly does not have aout. When/if they implement a new
19894 # versioning mechanism, adjust this.
19895 if test -x /usr/bin/objformat; then
19896 objformat=`/usr/bin/objformat`
19899 freebsd[123]*) objformat=aout ;;
19900 *) objformat=elf ;;
19903 version_type=freebsd-$objformat
19904 case $version_type in
19906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19911 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19915 shlibpath_var=LD_LIBRARY_PATH
19918 shlibpath_overrides_runpath=yes
19920 freebsd3.[01]* | freebsdelf3.[01]*)
19921 shlibpath_overrides_runpath=yes
19922 hardcode_into_libs=yes
19924 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19925 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19926 shlibpath_overrides_runpath=no
19927 hardcode_into_libs=yes
19929 freebsd*) # from 4.6 on
19930 shlibpath_overrides_runpath=yes
19931 hardcode_into_libs=yes
19940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19941 soname_spec='${libname}${release}${shared_ext}$major'
19942 shlibpath_var=LD_LIBRARY_PATH
19943 hardcode_into_libs=yes
19946 hpux9* | hpux10* | hpux11*)
19947 # Give a soname corresponding to the major version so that dld.sl refuses to
19948 # link against other versions.
19955 hardcode_into_libs=yes
19956 dynamic_linker="$host_os dld.so"
19957 shlibpath_var=LD_LIBRARY_PATH
19958 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19960 soname_spec='${libname}${release}${shared_ext}$major'
19961 if test "X$HPUX_IA64_MODE" = X32; then
19962 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19964 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19966 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19970 hardcode_into_libs=yes
19971 dynamic_linker="$host_os dld.sl"
19972 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19973 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19975 soname_spec='${libname}${release}${shared_ext}$major'
19976 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19977 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19981 dynamic_linker="$host_os dld.sl"
19982 shlibpath_var=SHLIB_PATH
19983 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19985 soname_spec='${libname}${release}${shared_ext}$major'
19988 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19989 postinstall_cmds='chmod 555 $lib'
19996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19997 soname_spec='${libname}${release}${shared_ext}$major'
19998 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19999 shlibpath_var=LD_LIBRARY_PATH
20000 shlibpath_overrides_runpath=no
20001 hardcode_into_libs=yes
20004 irix5* | irix6* | nonstopux*)
20006 nonstopux*) version_type=nonstopux ;;
20008 if test "$lt_cv_prog_gnu_ld" = yes; then
20016 soname_spec='${libname}${release}${shared_ext}$major'
20017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20019 irix5* | nonstopux*)
20020 libsuff= shlibsuff=
20023 case $LD in # libtool.m4 will add one of these switches to LD
20024 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20025 libsuff= shlibsuff= libmagic=32-bit;;
20026 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20027 libsuff=32 shlibsuff=N32 libmagic=N32;;
20028 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20029 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20030 *) libsuff= shlibsuff= libmagic=never-match;;
20034 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20035 shlibpath_overrides_runpath=no
20036 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20037 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20038 hardcode_into_libs=yes
20041 # No shared lib support for Linux oldld, aout, or coff.
20042 linux*oldld* | linux*aout* | linux*coff*)
20046 # This must be Linux ELF.
20051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20052 soname_spec='${libname}${release}${shared_ext}$major'
20053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20054 shlibpath_var=LD_LIBRARY_PATH
20055 shlibpath_overrides_runpath=no
20056 # This implies no fast_install, which is unacceptable.
20057 # Some rework will be needed to allow for fast_install
20058 # before this can be enabled.
20059 hardcode_into_libs=yes
20061 # Append ld.so.conf contents to the search path
20062 if test -f /etc/ld.so.conf; then
20063 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' ' '`
20064 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20067 # We used to test for /lib/ld.so.1 and disable shared libraries on
20068 # powerpc, because MkLinux only supported shared libraries with the
20069 # GNU dynamic linker. Since this was broken with cross compilers,
20070 # most powerpc-linux boxes support dynamic linking these days and
20071 # people can always --disable-shared, the test was removed, and we
20072 # assume the GNU/Linux dynamic linker is in use.
20073 dynamic_linker='GNU/Linux ld.so'
20080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20081 soname_spec='${libname}${release}${shared_ext}$major'
20082 shlibpath_var=LD_LIBRARY_PATH
20083 shlibpath_overrides_runpath=no
20084 hardcode_into_libs=yes
20085 dynamic_linker='GNU ld.so'
20092 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20095 dynamic_linker='NetBSD (a.out) ld.so'
20097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20098 soname_spec='${libname}${release}${shared_ext}$major'
20099 dynamic_linker='NetBSD ld.elf_so'
20101 shlibpath_var=LD_LIBRARY_PATH
20102 shlibpath_overrides_runpath=yes
20103 hardcode_into_libs=yes
20108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20109 shlibpath_var=LD_LIBRARY_PATH
20110 shlibpath_overrides_runpath=yes
20117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20118 soname_spec='${libname}${release}${shared_ext}$major'
20119 shlibpath_var=LD_LIBRARY_PATH
20120 shlibpath_overrides_runpath=yes
20125 sys_lib_dlsearch_path_spec="/usr/lib"
20127 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20129 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20130 *) need_version=no ;;
20132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20134 shlibpath_var=LD_LIBRARY_PATH
20135 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20137 openbsd2.[89] | openbsd2.[89].*)
20138 shlibpath_overrides_runpath=no
20141 shlibpath_overrides_runpath=yes
20145 shlibpath_overrides_runpath=yes
20150 libname_spec='$name'
20153 library_names_spec='$libname${shared_ext} $libname.a'
20154 dynamic_linker='OS/2 ld.exe'
20155 shlibpath_var=LIBPATH
20158 osf3* | osf4* | osf5*)
20162 soname_spec='${libname}${release}${shared_ext}$major'
20163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20164 shlibpath_var=LD_LIBRARY_PATH
20165 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20166 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20174 soname_spec='${libname}${release}${shared_ext}$major'
20175 shlibpath_var=LD_LIBRARY_PATH
20176 shlibpath_overrides_runpath=yes
20177 hardcode_into_libs=yes
20178 # ldd complains unless libraries are executable
20179 postinstall_cmds='chmod +x $lib'
20184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20185 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20186 shlibpath_var=LD_LIBRARY_PATH
20187 shlibpath_overrides_runpath=yes
20188 if test "$with_gnu_ld" = yes; then
20196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20197 soname_spec='${libname}${release}${shared_ext}$major'
20198 shlibpath_var=LD_LIBRARY_PATH
20199 case $host_vendor in
20201 shlibpath_overrides_runpath=no
20203 export_dynamic_flag_spec='${wl}-Blargedynsym'
20204 runpath_var=LD_RUN_PATH
20212 shlibpath_overrides_runpath=no
20213 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20219 if test -d /usr/nec ;then
20221 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20222 soname_spec='$libname${shared_ext}.$major'
20223 shlibpath_var=LD_LIBRARY_PATH
20227 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20228 version_type=freebsd-elf
20231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20232 soname_spec='${libname}${release}${shared_ext}$major'
20233 shlibpath_var=LD_LIBRARY_PATH
20234 hardcode_into_libs=yes
20235 if test "$with_gnu_ld" = yes; then
20236 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20237 shlibpath_overrides_runpath=no
20239 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20240 shlibpath_overrides_runpath=yes
20243 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20247 sys_lib_dlsearch_path_spec='/usr/lib'
20252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20253 soname_spec='${libname}${release}${shared_ext}$major'
20254 shlibpath_var=LD_LIBRARY_PATH
20261 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20262 echo "${ECHO_T}$dynamic_linker" >&6; }
20263 test "$dynamic_linker" = no && can_build_shared=no
20265 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20266 if test "$GCC" = yes; then
20267 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20270 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20271 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20272 hardcode_action_CXX=
20273 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20274 test -n "$runpath_var_CXX" || \
20275 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20277 # We can hardcode non-existant directories.
20278 if test "$hardcode_direct_CXX" != no &&
20279 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20280 # have to relink, otherwise we might link with an installed library
20281 # when we should be linking with a yet-to-be-installed one
20282 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20283 test "$hardcode_minus_L_CXX" != no; then
20284 # Linking always hardcodes the temporary library directory.
20285 hardcode_action_CXX=relink
20287 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20288 hardcode_action_CXX=immediate
20291 # We cannot hardcode anything, or else we can only hardcode existing
20293 hardcode_action_CXX=unsupported
20295 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20296 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20298 if test "$hardcode_action_CXX" = relink; then
20299 # Fast installation is not supported
20300 enable_fast_install=no
20301 elif test "$shlibpath_overrides_runpath" = yes ||
20302 test "$enable_shared" = no; then
20303 # Fast installation is not necessary
20304 enable_fast_install=needless
20308 # The else clause should only fire when bootstrapping the
20309 # libtool distribution, otherwise you forgot to ship ltmain.sh
20310 # with your package, and you will get complaints that there are
20311 # no rules to generate ltmain.sh.
20312 if test -f "$ltmain"; then
20313 # See if we are running on zsh, and set the options which allow our commands through
20314 # without removal of \ escapes.
20315 if test -n "${ZSH_VERSION+set}" ; then
20316 setopt NO_GLOB_SUBST
20318 # Now quote all the things that may contain metacharacters while being
20319 # careful not to overquote the AC_SUBSTed values. We take copies of the
20320 # variables and quote the copies for generation of the libtool script.
20321 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20323 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20324 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20325 deplibs_check_method reload_flag reload_cmds need_locks \
20326 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20327 lt_cv_sys_global_symbol_to_c_name_address \
20328 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20329 old_postinstall_cmds old_postuninstall_cmds \
20333 lt_prog_compiler_wl_CXX \
20334 lt_prog_compiler_pic_CXX \
20335 lt_prog_compiler_static_CXX \
20336 lt_prog_compiler_no_builtin_flag_CXX \
20337 export_dynamic_flag_spec_CXX \
20338 thread_safe_flag_spec_CXX \
20339 whole_archive_flag_spec_CXX \
20340 enable_shared_with_static_runtimes_CXX \
20341 old_archive_cmds_CXX \
20342 old_archive_from_new_cmds_CXX \
20343 predep_objects_CXX \
20344 postdep_objects_CXX \
20347 compiler_lib_search_path_CXX \
20349 archive_expsym_cmds_CXX \
20350 postinstall_cmds_CXX \
20351 postuninstall_cmds_CXX \
20352 old_archive_from_expsyms_cmds_CXX \
20353 allow_undefined_flag_CXX \
20354 no_undefined_flag_CXX \
20355 export_symbols_cmds_CXX \
20356 hardcode_libdir_flag_spec_CXX \
20357 hardcode_libdir_flag_spec_ld_CXX \
20358 hardcode_libdir_separator_CXX \
20359 hardcode_automatic_CXX \
20361 module_expsym_cmds_CXX \
20362 lt_cv_prog_compiler_c_o_CXX \
20363 exclude_expsyms_CXX \
20364 include_expsyms_CXX; do
20367 old_archive_cmds_CXX | \
20368 old_archive_from_new_cmds_CXX | \
20369 archive_cmds_CXX | \
20370 archive_expsym_cmds_CXX | \
20371 module_cmds_CXX | \
20372 module_expsym_cmds_CXX | \
20373 old_archive_from_expsyms_cmds_CXX | \
20374 export_symbols_cmds_CXX | \
20375 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20376 postinstall_cmds | postuninstall_cmds | \
20377 old_postinstall_cmds | old_postuninstall_cmds | \
20378 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20379 # Double-quote double-evaled strings.
20380 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20383 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20389 *'\$0 --fallback-echo"')
20390 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20396 cat <<__EOF__ >> "$cfgfile"
20397 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20399 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20401 # Shell to use when invoking shell scripts.
20404 # Whether or not to build shared libraries.
20405 build_libtool_libs=$enable_shared
20407 # Whether or not to build static libraries.
20408 build_old_libs=$enable_static
20410 # Whether or not to add -lc for building shared libraries.
20411 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20413 # Whether or not to disallow shared libs when runtime libs are static
20414 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20416 # Whether or not to optimize for fast installation.
20417 fast_install=$enable_fast_install
20420 host_alias=$host_alias
20424 # The build system.
20425 build_alias=$build_alias
20429 # An echo program that does not interpret backslashes.
20434 AR_FLAGS=$lt_AR_FLAGS
20439 # LTCC compiler flags.
20440 LTCFLAGS=$lt_LTCFLAGS
20442 # A language-specific compiler.
20443 CC=$lt_compiler_CXX
20445 # Is the compiler the GNU C compiler?
20451 # The linker used to build libraries.
20454 # Whether we need hard or soft links.
20457 # A BSD-compatible nm program.
20460 # A symbol stripping program
20463 # Used to examine libraries when file_magic_cmd begins "file"
20464 MAGIC_CMD=$MAGIC_CMD
20466 # Used on cygwin: DLL creation program.
20469 # Used on cygwin: object dumper.
20472 # Used on cygwin: assembler.
20475 # The name of the directory that contains temporary libtool files.
20478 # How to create reloadable object files.
20479 reload_flag=$lt_reload_flag
20480 reload_cmds=$lt_reload_cmds
20482 # How to pass a linker flag through the compiler.
20483 wl=$lt_lt_prog_compiler_wl_CXX
20485 # Object file suffix (normally "o").
20486 objext="$ac_objext"
20488 # Old archive suffix (normally "a").
20491 # Shared library suffix (normally ".so").
20492 shrext_cmds='$shrext_cmds'
20494 # Executable file suffix (normally "").
20497 # Additional compiler flags for building library objects.
20498 pic_flag=$lt_lt_prog_compiler_pic_CXX
20501 # What is the maximum length of a command?
20502 max_cmd_len=$lt_cv_sys_max_cmd_len
20504 # Does compiler simultaneously support -c and -o options?
20505 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20507 # Must we lock files when doing compilation?
20508 need_locks=$lt_need_locks
20510 # Do we need the lib prefix for modules?
20511 need_lib_prefix=$need_lib_prefix
20513 # Do we need a version for libraries?
20514 need_version=$need_version
20516 # Whether dlopen is supported.
20517 dlopen_support=$enable_dlopen
20519 # Whether dlopen of programs is supported.
20520 dlopen_self=$enable_dlopen_self
20522 # Whether dlopen of statically linked programs is supported.
20523 dlopen_self_static=$enable_dlopen_self_static
20525 # Compiler flag to prevent dynamic linking.
20526 link_static_flag=$lt_lt_prog_compiler_static_CXX
20528 # Compiler flag to turn off builtin functions.
20529 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20531 # Compiler flag to allow reflexive dlopens.
20532 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20534 # Compiler flag to generate shared objects directly from archives.
20535 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20537 # Compiler flag to generate thread-safe objects.
20538 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20540 # Library versioning type.
20541 version_type=$version_type
20543 # Format of library name prefix.
20544 libname_spec=$lt_libname_spec
20546 # List of archive names. First name is the real one, the rest are links.
20547 # The last name is the one that the linker finds with -lNAME.
20548 library_names_spec=$lt_library_names_spec
20550 # The coded name of the library, if different from the real name.
20551 soname_spec=$lt_soname_spec
20553 # Commands used to build and install an old-style archive.
20555 old_archive_cmds=$lt_old_archive_cmds_CXX
20556 old_postinstall_cmds=$lt_old_postinstall_cmds
20557 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20559 # Create an old-style archive from a shared archive.
20560 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20562 # Create a temporary old-style archive to link instead of a shared archive.
20563 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20565 # Commands used to build and install a shared archive.
20566 archive_cmds=$lt_archive_cmds_CXX
20567 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20568 postinstall_cmds=$lt_postinstall_cmds
20569 postuninstall_cmds=$lt_postuninstall_cmds
20571 # Commands used to build a loadable module (assumed same as above if empty)
20572 module_cmds=$lt_module_cmds_CXX
20573 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20575 # Commands to strip libraries.
20576 old_striplib=$lt_old_striplib
20577 striplib=$lt_striplib
20579 # Dependencies to place before the objects being linked to create a
20581 predep_objects=$lt_predep_objects_CXX
20583 # Dependencies to place after the objects being linked to create a
20585 postdep_objects=$lt_postdep_objects_CXX
20587 # Dependencies to place before the objects being linked to create a
20589 predeps=$lt_predeps_CXX
20591 # Dependencies to place after the objects being linked to create a
20593 postdeps=$lt_postdeps_CXX
20595 # The library search path used internally by the compiler when linking
20596 # a shared library.
20597 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20599 # Method to check whether dependent libraries are shared objects.
20600 deplibs_check_method=$lt_deplibs_check_method
20602 # Command to use when deplibs_check_method == file_magic.
20603 file_magic_cmd=$lt_file_magic_cmd
20605 # Flag that allows shared libraries with undefined symbols to be built.
20606 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20608 # Flag that forces no undefined symbols.
20609 no_undefined_flag=$lt_no_undefined_flag_CXX
20611 # Commands used to finish a libtool library installation in a directory.
20612 finish_cmds=$lt_finish_cmds
20614 # Same as above, but a single script fragment to be evaled but not shown.
20615 finish_eval=$lt_finish_eval
20617 # Take the output of nm and produce a listing of raw symbols and C names.
20618 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20620 # Transform the output of nm in a proper C declaration
20621 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20623 # Transform the output of nm in a C name address pair
20624 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20626 # This is the shared library runtime path variable.
20627 runpath_var=$runpath_var
20629 # This is the shared library path variable.
20630 shlibpath_var=$shlibpath_var
20632 # Is shlibpath searched before the hard-coded library search path?
20633 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20635 # How to hardcode a shared library path into an executable.
20636 hardcode_action=$hardcode_action_CXX
20638 # Whether we should hardcode library paths into libraries.
20639 hardcode_into_libs=$hardcode_into_libs
20641 # Flag to hardcode \$libdir into a binary during linking.
20642 # This must work even if \$libdir does not exist.
20643 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20645 # If ld is used when linking, flag to hardcode \$libdir into
20646 # a binary during linking. This must work even if \$libdir does
20648 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20650 # Whether we need a single -rpath flag with a separated argument.
20651 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20653 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20654 # resulting binary.
20655 hardcode_direct=$hardcode_direct_CXX
20657 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20658 # resulting binary.
20659 hardcode_minus_L=$hardcode_minus_L_CXX
20661 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20662 # the resulting binary.
20663 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20665 # Set to yes if building a shared library automatically hardcodes DIR into the library
20666 # and all subsequent libraries and executables linked against it.
20667 hardcode_automatic=$hardcode_automatic_CXX
20669 # Variables whose values should be saved in libtool wrapper scripts and
20670 # restored at relink time.
20671 variables_saved_for_relink="$variables_saved_for_relink"
20673 # Whether libtool must link a program against all its dependency libraries.
20674 link_all_deplibs=$link_all_deplibs_CXX
20676 # Compile-time system search path for libraries
20677 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20679 # Run-time system search path for libraries
20680 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20682 # Fix the shell variable \$srcfile for the compiler.
20683 fix_srcfile_path="$fix_srcfile_path_CXX"
20685 # Set to yes if exported symbols are required.
20686 always_export_symbols=$always_export_symbols_CXX
20688 # The commands to list exported symbols.
20689 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20691 # The commands to extract the exported symbol list from a shared archive.
20692 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20694 # Symbols that should not be listed in the preloaded symbols.
20695 exclude_expsyms=$lt_exclude_expsyms_CXX
20697 # Symbols that must always be exported.
20698 include_expsyms=$lt_include_expsyms_CXX
20700 # ### END LIBTOOL TAG CONFIG: $tagname
20706 # If there is no Makefile yet, we rely on a make rule to execute
20707 # `config.status --recheck' to rerun these tests and create the
20708 # libtool script then.
20709 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20710 if test -f "$ltmain_in"; then
20711 test -f Makefile && make "$ltmain"
20717 ac_cpp='$CPP $CPPFLAGS'
20718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20726 with_gnu_ldcxx=$with_gnu_ld
20727 with_gnu_ld=$lt_save_with_gnu_ld
20728 lt_cv_path_LDCXX=$lt_cv_path_LD
20729 lt_cv_path_LD=$lt_save_path_LD
20730 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20731 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20739 if test -n "$F77" && test "X$F77" != "Xno"; then
20742 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20743 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20744 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20747 archive_cmds_need_lc_F77=no
20748 allow_undefined_flag_F77=
20749 always_export_symbols_F77=no
20750 archive_expsym_cmds_F77=
20751 export_dynamic_flag_spec_F77=
20752 hardcode_direct_F77=no
20753 hardcode_libdir_flag_spec_F77=
20754 hardcode_libdir_flag_spec_ld_F77=
20755 hardcode_libdir_separator_F77=
20756 hardcode_minus_L_F77=no
20757 hardcode_automatic_F77=no
20759 module_expsym_cmds_F77=
20760 link_all_deplibs_F77=unknown
20761 old_archive_cmds_F77=$old_archive_cmds
20762 no_undefined_flag_F77=
20763 whole_archive_flag_spec_F77=
20764 enable_shared_with_static_runtimes_F77=no
20766 # Source file extension for f77 test sources.
20769 # Object file extension for compiled f77 test sources.
20773 # Code to be used in simple compile tests
20774 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20776 # Code to be used in simple link tests
20777 lt_simple_link_test_code=" program t\n end\n"
20779 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20781 # If no C compiler was specified, use CC.
20784 # If no C compiler flags were specified, use CFLAGS.
20785 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20787 # Allow CC to be a program name with arguments.
20791 # save warnings/boilerplate of simple test code
20792 ac_outfile=conftest.$ac_objext
20793 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20794 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20795 _lt_compiler_boilerplate=`cat conftest.err`
20798 ac_outfile=conftest.$ac_objext
20799 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20800 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20801 _lt_linker_boilerplate=`cat conftest.err`
20805 # Allow CC to be a program name with arguments.
20810 for cc_temp in $compiler""; do
20812 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20813 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20818 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20821 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20822 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20823 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20824 echo "${ECHO_T}$can_build_shared" >&6; }
20826 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20827 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20828 test "$can_build_shared" = "no" && enable_shared=no
20830 # On AIX, shared libraries and static libraries use the same namespace, and
20831 # are all built from PIC.
20834 test "$enable_shared" = yes && enable_static=no
20835 if test -n "$RANLIB"; then
20836 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20837 postinstall_cmds='$RANLIB $lib'
20841 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20842 test "$enable_shared" = yes && enable_static=no
20846 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20847 echo "${ECHO_T}$enable_shared" >&6; }
20849 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20850 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20851 # Make sure either enable_shared or enable_static is yes.
20852 test "$enable_shared" = yes || enable_static=yes
20853 { echo "$as_me:$LINENO: result: $enable_static" >&5
20854 echo "${ECHO_T}$enable_static" >&6; }
20859 lt_prog_compiler_wl_F77=
20860 lt_prog_compiler_pic_F77=
20861 lt_prog_compiler_static_F77=
20863 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20864 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20866 if test "$GCC" = yes; then
20867 lt_prog_compiler_wl_F77='-Wl,'
20868 lt_prog_compiler_static_F77='-static'
20872 # All AIX code is PIC.
20873 if test "$host_cpu" = ia64; then
20874 # AIX 5 now supports IA64 processor
20875 lt_prog_compiler_static_F77='-Bstatic'
20880 # FIXME: we need at least 68020 code to build shared libraries, but
20881 # adding the `-m68020' flag to GCC prevents building anything better,
20883 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20886 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20887 # PIC is the default for these OSes.
20890 mingw* | pw32* | os2*)
20891 # This hack is so that the source file can tell whether it is being
20892 # built for inclusion in a dll (and should export symbols for example).
20893 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20896 darwin* | rhapsody*)
20897 # PIC is the default on this platform
20898 # Common symbols not allowed in MH_DYLIB files
20899 lt_prog_compiler_pic_F77='-fno-common'
20903 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20904 # Instead, we relocate shared libraries at runtime.
20908 # Just because we use GCC doesn't mean we suddenly get shared libraries
20909 # on systems that don't support them.
20910 lt_prog_compiler_can_build_shared_F77=no
20915 if test -d /usr/nec; then
20916 lt_prog_compiler_pic_F77=-Kconform_pic
20921 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20922 # not for PA HP-UX.
20928 lt_prog_compiler_pic_F77='-fPIC'
20934 lt_prog_compiler_pic_F77='-fPIC'
20938 # PORTME Check for flag to pass linker flags through the system compiler.
20941 lt_prog_compiler_wl_F77='-Wl,'
20942 if test "$host_cpu" = ia64; then
20943 # AIX 5 now supports IA64 processor
20944 lt_prog_compiler_static_F77='-Bstatic'
20946 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20950 # PIC is the default on this platform
20951 # Common symbols not allowed in MH_DYLIB files
20952 case $cc_basename in
20954 lt_prog_compiler_pic_F77='-qnocommon'
20955 lt_prog_compiler_wl_F77='-Wl,'
20960 mingw* | pw32* | os2*)
20961 # This hack is so that the source file can tell whether it is being
20962 # built for inclusion in a dll (and should export symbols for example).
20963 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20966 hpux9* | hpux10* | hpux11*)
20967 lt_prog_compiler_wl_F77='-Wl,'
20968 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20969 # not for PA HP-UX.
20975 lt_prog_compiler_pic_F77='+Z'
20978 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20979 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20982 irix5* | irix6* | nonstopux*)
20983 lt_prog_compiler_wl_F77='-Wl,'
20984 # PIC (with -KPIC) is the default.
20985 lt_prog_compiler_static_F77='-non_shared'
20989 lt_prog_compiler_pic_F77='-KPIC'
20990 lt_prog_compiler_static_F77='-Bstatic'
20994 case $cc_basename in
20996 lt_prog_compiler_wl_F77='-Wl,'
20997 lt_prog_compiler_pic_F77='-KPIC'
20998 lt_prog_compiler_static_F77='-static'
21000 pgcc* | pgf77* | pgf90* | pgf95*)
21001 # Portland Group compilers (*not* the Pentium gcc compiler,
21002 # which looks to be a dead project)
21003 lt_prog_compiler_wl_F77='-Wl,'
21004 lt_prog_compiler_pic_F77='-fpic'
21005 lt_prog_compiler_static_F77='-Bstatic'
21008 lt_prog_compiler_wl_F77='-Wl,'
21009 # All Alpha code is PIC.
21010 lt_prog_compiler_static_F77='-non_shared'
21015 osf3* | osf4* | osf5*)
21016 lt_prog_compiler_wl_F77='-Wl,'
21017 # All OSF/1 code is PIC.
21018 lt_prog_compiler_static_F77='-non_shared'
21022 lt_prog_compiler_pic_F77='-KPIC'
21023 lt_prog_compiler_static_F77='-Bstatic'
21024 case $cc_basename in
21025 f77* | f90* | f95*)
21026 lt_prog_compiler_wl_F77='-Qoption ld ';;
21028 lt_prog_compiler_wl_F77='-Wl,';;
21033 lt_prog_compiler_wl_F77='-Qoption ld '
21034 lt_prog_compiler_pic_F77='-PIC'
21035 lt_prog_compiler_static_F77='-Bstatic'
21038 sysv4 | sysv4.2uw2* | sysv4.3*)
21039 lt_prog_compiler_wl_F77='-Wl,'
21040 lt_prog_compiler_pic_F77='-KPIC'
21041 lt_prog_compiler_static_F77='-Bstatic'
21045 if test -d /usr/nec ;then
21046 lt_prog_compiler_pic_F77='-Kconform_pic'
21047 lt_prog_compiler_static_F77='-Bstatic'
21051 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21052 lt_prog_compiler_wl_F77='-Wl,'
21053 lt_prog_compiler_pic_F77='-KPIC'
21054 lt_prog_compiler_static_F77='-Bstatic'
21058 lt_prog_compiler_wl_F77='-Wl,'
21059 lt_prog_compiler_can_build_shared_F77=no
21063 lt_prog_compiler_pic_F77='-pic'
21064 lt_prog_compiler_static_F77='-Bstatic'
21068 lt_prog_compiler_can_build_shared_F77=no
21073 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21074 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21077 # Check to make sure the PIC flag actually works.
21079 if test -n "$lt_prog_compiler_pic_F77"; then
21081 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21082 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21083 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21084 echo $ECHO_N "(cached) $ECHO_C" >&6
21086 lt_prog_compiler_pic_works_F77=no
21087 ac_outfile=conftest.$ac_objext
21088 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21089 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21090 # Insert the option either (1) after the last *FLAGS variable, or
21091 # (2) before a word containing "conftest.", or (3) at the end.
21092 # Note that $ac_compile itself does not contain backslashes and begins
21093 # with a dollar sign (not a hyphen), so the echo should work correctly.
21094 # The option is referenced via a variable to avoid confusing sed.
21095 lt_compile=`echo "$ac_compile" | $SED \
21096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21098 -e 's:$: $lt_compiler_flag:'`
21099 (eval echo "\"\$as_me:21099: $lt_compile\"" >&5)
21100 (eval "$lt_compile" 2>conftest.err)
21102 cat conftest.err >&5
21103 echo "$as_me:21103: \$? = $ac_status" >&5
21104 if (exit $ac_status) && test -s "$ac_outfile"; then
21105 # The compiler can only warn and ignore the option if not recognized
21106 # So say no if there are warnings other than the usual output.
21107 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21108 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21109 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21110 lt_prog_compiler_pic_works_F77=yes
21116 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21117 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21119 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21120 case $lt_prog_compiler_pic_F77 in
21122 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21125 lt_prog_compiler_pic_F77=
21126 lt_prog_compiler_can_build_shared_F77=no
21131 # For platforms which do not support PIC, -DPIC is meaningless:
21133 lt_prog_compiler_pic_F77=
21136 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21141 # Check to make sure the static flag actually works.
21143 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21144 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21145 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21146 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21147 echo $ECHO_N "(cached) $ECHO_C" >&6
21149 lt_prog_compiler_static_works_F77=no
21150 save_LDFLAGS="$LDFLAGS"
21151 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21152 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21153 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21154 # The linker can only warn and ignore the option if not recognized
21155 # So say no if there are warnings
21156 if test -s conftest.err; then
21157 # Append any errors to the config.log.
21158 cat conftest.err 1>&5
21159 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21161 if diff conftest.exp conftest.er2 >/dev/null; then
21162 lt_prog_compiler_static_works_F77=yes
21165 lt_prog_compiler_static_works_F77=yes
21169 LDFLAGS="$save_LDFLAGS"
21172 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21173 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21175 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21178 lt_prog_compiler_static_F77=
21182 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21183 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21184 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21185 echo $ECHO_N "(cached) $ECHO_C" >&6
21187 lt_cv_prog_compiler_c_o_F77=no
21188 $rm -r conftest 2>/dev/null
21192 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21194 lt_compiler_flag="-o out/conftest2.$ac_objext"
21195 # Insert the option either (1) after the last *FLAGS variable, or
21196 # (2) before a word containing "conftest.", or (3) at the end.
21197 # Note that $ac_compile itself does not contain backslashes and begins
21198 # with a dollar sign (not a hyphen), so the echo should work correctly.
21199 lt_compile=`echo "$ac_compile" | $SED \
21200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21202 -e 's:$: $lt_compiler_flag:'`
21203 (eval echo "\"\$as_me:21203: $lt_compile\"" >&5)
21204 (eval "$lt_compile" 2>out/conftest.err)
21206 cat out/conftest.err >&5
21207 echo "$as_me:21207: \$? = $ac_status" >&5
21208 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21210 # The compiler can only warn and ignore the option if not recognized
21211 # So say no if there are warnings
21212 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21213 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21214 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21215 lt_cv_prog_compiler_c_o_F77=yes
21220 # SGI C++ compiler will create directory out/ii_files/ for
21221 # template instantiation
21222 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21223 $rm out/* && rmdir out
21229 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21230 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21233 hard_links="nottested"
21234 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21235 # do not overwrite the value of need_locks provided by the user
21236 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21237 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21240 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21242 ln conftest.a conftest.b 2>&5 || hard_links=no
21243 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21244 { echo "$as_me:$LINENO: result: $hard_links" >&5
21245 echo "${ECHO_T}$hard_links" >&6; }
21246 if test "$hard_links" = no; then
21247 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21248 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21255 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21256 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21259 allow_undefined_flag_F77=
21260 enable_shared_with_static_runtimes_F77=no
21262 archive_expsym_cmds_F77=
21263 old_archive_From_new_cmds_F77=
21264 old_archive_from_expsyms_cmds_F77=
21265 export_dynamic_flag_spec_F77=
21266 whole_archive_flag_spec_F77=
21267 thread_safe_flag_spec_F77=
21268 hardcode_libdir_flag_spec_F77=
21269 hardcode_libdir_flag_spec_ld_F77=
21270 hardcode_libdir_separator_F77=
21271 hardcode_direct_F77=no
21272 hardcode_minus_L_F77=no
21273 hardcode_shlibpath_var_F77=unsupported
21274 link_all_deplibs_F77=unknown
21275 hardcode_automatic_F77=no
21277 module_expsym_cmds_F77=
21278 always_export_symbols_F77=no
21279 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21280 # include_expsyms should be a list of space-separated symbols to be *always*
21281 # included in the symbol list
21282 include_expsyms_F77=
21283 # exclude_expsyms can be an extended regexp of symbols to exclude
21284 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21285 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21286 # as well as any symbol that contains `d'.
21287 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21288 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21289 # platforms (ab)use it in PIC code, but their linkers get confused if
21290 # the symbol is explicitly referenced. Since portable code cannot
21291 # rely on this symbol name, it's probably fine to never include it in
21292 # preloaded symbol tables.
21293 extract_expsyms_cmds=
21294 # Just being paranoid about ensuring that cc_basename is set.
21295 for cc_temp in $compiler""; do
21297 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21298 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21303 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21306 cygwin* | mingw* | pw32*)
21307 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21308 # When not using gcc, we currently assume that we are using
21309 # Microsoft Visual C++.
21310 if test "$GCC" != yes; then
21315 # we just hope/assume this is gcc and not c89 (= MSVC++)
21324 if test "$with_gnu_ld" = yes; then
21325 # If archive_cmds runs LD, not CC, wlarc should be empty
21328 # Set some defaults for GNU ld with shared library support. These
21329 # are reset later if shared libraries are not supported. Putting them
21330 # here allows them to be overridden if necessary.
21331 runpath_var=LD_RUN_PATH
21332 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21333 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21334 # ancient GNU ld didn't support --whole-archive et. al.
21335 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21336 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21338 whole_archive_flag_spec_F77=
21340 supports_anon_versioning=no
21341 case `$LD -v 2>/dev/null` in
21342 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21343 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21344 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21345 *\ 2.11.*) ;; # other 2.11 versions
21346 *) supports_anon_versioning=yes ;;
21349 # See if GNU ld supports shared libraries.
21351 aix3* | aix4* | aix5*)
21352 # On AIX/PPC, the GNU linker is very broken
21353 if test "$host_cpu" != ia64; then
21357 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21358 *** to be unable to reliably create shared libraries on AIX.
21359 *** Therefore, libtool is disabling shared libraries support. If you
21360 *** really care for shared libraries, you may want to modify your PATH
21361 *** so that a non-GNU linker is found, and then restart.
21368 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)'
21369 hardcode_libdir_flag_spec_F77='-L$libdir'
21370 hardcode_minus_L_F77=yes
21372 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21373 # that the semantics of dynamic libraries on AmigaOS, at least up
21374 # to version 4, is to share data among multiple programs linked
21375 # with the same dynamic library. Since this doesn't match the
21376 # behavior of shared libraries on other platforms, we can't use
21382 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21383 allow_undefined_flag_F77=unsupported
21384 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21385 # support --undefined. This deserves some investigation. FIXME
21386 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21392 cygwin* | mingw* | pw32*)
21393 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21394 # as there is no search path for DLLs.
21395 hardcode_libdir_flag_spec_F77='-L$libdir'
21396 allow_undefined_flag_F77=unsupported
21397 always_export_symbols_F77=no
21398 enable_shared_with_static_runtimes_F77=yes
21399 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21401 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21402 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21403 # If the export-symbols file already is a .def file (1st line
21404 # is EXPORTS), use it as is; otherwise, prepend...
21405 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21406 cp $export_symbols $output_objdir/$soname.def;
21408 echo EXPORTS > $output_objdir/$soname.def;
21409 cat $export_symbols >> $output_objdir/$soname.def;
21411 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21418 hardcode_direct_F77=no
21419 hardcode_shlibpath_var_F77=no
21420 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21421 export_dynamic_flag_spec_F77='${wl}-E'
21422 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21423 # Instead, shared libraries are loaded at an image base (0x10000000 by
21424 # default) and relocated if they conflict, which is a slow very memory
21425 # consuming and fragmenting process. To avoid this, we pick a random,
21426 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21427 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21428 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'
21429 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'
21433 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21435 case $cc_basename,$host_cpu in
21436 pgcc*) # Portland Group C compiler
21437 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'
21438 tmp_addflag=' $pic_flag'
21440 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21441 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'
21442 tmp_addflag=' $pic_flag -Mnomain' ;;
21443 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21444 tmp_addflag=' -i_dynamic' ;;
21445 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21446 tmp_addflag=' -i_dynamic -nofor_main' ;;
21447 ifc* | ifort*) # Intel Fortran compiler
21448 tmp_addflag=' -nofor_main' ;;
21450 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21452 if test $supports_anon_versioning = yes; then
21453 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21454 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21455 $echo "local: *; };" >> $output_objdir/$libname.ver~
21456 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21464 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21465 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21468 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21469 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21474 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21478 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21479 *** create shared libraries on Solaris systems. Therefore, libtool
21480 *** is disabling shared libraries support. We urge you to upgrade GNU
21481 *** binutils to release 2.9.1 or newer. Another option is to modify
21482 *** your PATH or compiler configuration so that the native linker is
21483 *** used, and then restart.
21486 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21487 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21488 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21495 case `$LD -v 2>&1` in
21496 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21500 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21501 *** reliably create shared libraries on SCO systems. Therefore, libtool
21502 *** is disabling shared libraries support. We urge you to upgrade GNU
21503 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21504 *** your PATH or compiler configuration so that the native linker is
21505 *** used, and then restart.
21510 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21511 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21512 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21513 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21522 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21524 hardcode_direct_F77=yes
21525 hardcode_shlibpath_var_F77=no
21529 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21530 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21531 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21538 if test "$ld_shlibs_F77" = no; then
21540 hardcode_libdir_flag_spec_F77=
21541 export_dynamic_flag_spec_F77=
21542 whole_archive_flag_spec_F77=
21545 # PORTME fill in a description of your system's linker (not GNU ld)
21548 allow_undefined_flag_F77=unsupported
21549 always_export_symbols_F77=yes
21550 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'
21551 # Note: this linker hardcodes the directories in LIBPATH if there
21552 # are no directories specified by -L.
21553 hardcode_minus_L_F77=yes
21554 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21555 # Neither direct hardcoding nor static linking is supported with a
21557 hardcode_direct_F77=unsupported
21562 if test "$host_cpu" = ia64; then
21563 # On IA64, the linker does run time linking by default, so we don't
21564 # have to do anything special.
21565 aix_use_runtimelinking=no
21566 exp_sym_flag='-Bexport'
21569 # If we're using GNU nm, then we don't want the "-C" option.
21570 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21571 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21572 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'
21574 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'
21576 aix_use_runtimelinking=no
21578 # Test if we are trying to use run time linking or normal
21579 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21580 # need to do runtime linking.
21581 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21582 for ld_flag in $LDFLAGS; do
21583 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21584 aix_use_runtimelinking=yes
21591 exp_sym_flag='-bexport'
21592 no_entry_flag='-bnoentry'
21595 # When large executables or shared objects are built, AIX ld can
21596 # have problems creating the table of contents. If linking a library
21597 # or program results in "error TOC overflow" add -mminimal-toc to
21598 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21599 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21601 archive_cmds_F77=''
21602 hardcode_direct_F77=yes
21603 hardcode_libdir_separator_F77=':'
21604 link_all_deplibs_F77=yes
21606 if test "$GCC" = yes; then
21607 case $host_os in aix4.[012]|aix4.[012].*)
21608 # We only want to do this on AIX 4.2 and lower, the check
21609 # below for broken collect2 doesn't work under 4.3+
21610 collect2name=`${CC} -print-prog-name=collect2`
21611 if test -f "$collect2name" && \
21612 strings "$collect2name" | grep resolve_lib_name >/dev/null
21614 # We have reworked collect2
21615 hardcode_direct_F77=yes
21617 # We have old collect2
21618 hardcode_direct_F77=unsupported
21619 # It fails to find uninstalled libraries when the uninstalled
21620 # path is not listed in the libpath. Setting hardcode_minus_L
21621 # to unsupported forces relinking
21622 hardcode_minus_L_F77=yes
21623 hardcode_libdir_flag_spec_F77='-L$libdir'
21624 hardcode_libdir_separator_F77=
21628 shared_flag='-shared'
21629 if test "$aix_use_runtimelinking" = yes; then
21630 shared_flag="$shared_flag "'${wl}-G'
21634 if test "$host_cpu" = ia64; then
21635 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21636 # chokes on -Wl,-G. The following line is correct:
21639 if test "$aix_use_runtimelinking" = yes; then
21640 shared_flag='${wl}-G'
21642 shared_flag='${wl}-bM:SRE'
21647 # It seems that -bexpall does not export symbols beginning with
21648 # underscore (_), so it is better to generate a list of symbols to export.
21649 always_export_symbols_F77=yes
21650 if test "$aix_use_runtimelinking" = yes; then
21651 # Warning - without using the other runtime loading flags (-brtl),
21652 # -berok will link without error, but may produce a broken library.
21653 allow_undefined_flag_F77='-berok'
21654 # Determine the default libpath from the value encoded in an empty executable.
21655 cat >conftest.$ac_ext <<_ACEOF
21660 rm -f conftest.$ac_objext conftest$ac_exeext
21661 if { (ac_try="$ac_link"
21662 case "(($ac_try" in
21663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21664 *) ac_try_echo=$ac_try;;
21666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21667 (eval "$ac_link") 2>conftest.er1
21669 grep -v '^ *+' conftest.er1 >conftest.err
21671 cat conftest.err >&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); } &&
21674 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21675 { (case "(($ac_try" in
21676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21677 *) ac_try_echo=$ac_try;;
21679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21680 (eval "$ac_try") 2>&5
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); }; } &&
21684 { ac_try='test -s conftest$ac_exeext'
21685 { (case "(($ac_try" in
21686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687 *) ac_try_echo=$ac_try;;
21689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690 (eval "$ac_try") 2>&5
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); }; }; then
21695 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21697 # Check for a 64-bit object if we didn't find anything.
21698 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; }
21701 echo "$as_me: failed program was:" >&5
21702 sed 's/^/| /' conftest.$ac_ext >&5
21707 rm -f core conftest.err conftest.$ac_objext \
21708 conftest$ac_exeext conftest.$ac_ext
21709 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21711 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21712 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"
21714 if test "$host_cpu" = ia64; then
21715 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21716 allow_undefined_flag_F77="-z nodefs"
21717 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"
21719 # Determine the default libpath from the value encoded in an empty executable.
21720 cat >conftest.$ac_ext <<_ACEOF
21725 rm -f conftest.$ac_objext conftest$ac_exeext
21726 if { (ac_try="$ac_link"
21727 case "(($ac_try" in
21728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21729 *) ac_try_echo=$ac_try;;
21731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21732 (eval "$ac_link") 2>conftest.er1
21734 grep -v '^ *+' conftest.er1 >conftest.err
21736 cat conftest.err >&5
21737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738 (exit $ac_status); } &&
21739 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21740 { (case "(($ac_try" in
21741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21742 *) ac_try_echo=$ac_try;;
21744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21745 (eval "$ac_try") 2>&5
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); }; } &&
21749 { ac_try='test -s conftest$ac_exeext'
21750 { (case "(($ac_try" in
21751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21752 *) ac_try_echo=$ac_try;;
21754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21755 (eval "$ac_try") 2>&5
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); }; }; then
21760 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21762 # Check for a 64-bit object if we didn't find anything.
21763 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; }
21766 echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21772 rm -f core conftest.err conftest.$ac_objext \
21773 conftest$ac_exeext conftest.$ac_ext
21774 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21776 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21777 # Warning - without using the other run time loading flags,
21778 # -berok will link without error, but may produce a broken library.
21779 no_undefined_flag_F77=' ${wl}-bernotok'
21780 allow_undefined_flag_F77=' ${wl}-berok'
21781 # Exported symbols can be pulled into shared objects from archives
21782 whole_archive_flag_spec_F77='$convenience'
21783 archive_cmds_need_lc_F77=yes
21784 # This is similar to how AIX traditionally builds its shared libraries.
21785 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'
21791 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)'
21792 hardcode_libdir_flag_spec_F77='-L$libdir'
21793 hardcode_minus_L_F77=yes
21794 # see comment about different semantics on the GNU ld section
21799 export_dynamic_flag_spec_F77=-rdynamic
21802 cygwin* | mingw* | pw32*)
21803 # When not using gcc, we currently assume that we are using
21804 # Microsoft Visual C++.
21805 # hardcode_libdir_flag_spec is actually meaningless, as there is
21806 # no search path for DLLs.
21807 hardcode_libdir_flag_spec_F77=' '
21808 allow_undefined_flag_F77=unsupported
21809 # Tell ltmain to make .lib files, not .a files.
21811 # Tell ltmain to make .dll files, not .so files.
21813 # FIXME: Setting linknames here is a bad hack.
21814 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21815 # The linker will automatically build a .lib file if we build a DLL.
21816 old_archive_From_new_cmds_F77='true'
21817 # FIXME: Should let the user specify the lib program.
21818 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21819 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21820 enable_shared_with_static_runtimes_F77=yes
21823 darwin* | rhapsody*)
21825 rhapsody* | darwin1.[012])
21826 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21829 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21830 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21832 case ${MACOSX_DEPLOYMENT_TARGET} in
21834 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21837 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21843 archive_cmds_need_lc_F77=no
21844 hardcode_direct_F77=no
21845 hardcode_automatic_F77=yes
21846 hardcode_shlibpath_var_F77=unsupported
21847 whole_archive_flag_spec_F77=''
21848 link_all_deplibs_F77=yes
21849 if test "$GCC" = yes ; then
21850 output_verbose_link_cmd='echo'
21851 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21852 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21853 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21854 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}'
21855 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}'
21857 case $cc_basename in
21859 output_verbose_link_cmd='echo'
21860 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21861 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21862 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21863 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}'
21864 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}'
21874 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21875 hardcode_libdir_flag_spec_F77='-L$libdir'
21876 hardcode_shlibpath_var_F77=no
21883 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21884 # support. Future versions do this automatically, but an explicit c++rt0.o
21885 # does not break anything, and helps significantly (at the cost of a little
21888 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21889 hardcode_libdir_flag_spec_F77='-R$libdir'
21890 hardcode_direct_F77=yes
21891 hardcode_shlibpath_var_F77=no
21894 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21896 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21897 hardcode_direct_F77=yes
21898 hardcode_minus_L_F77=yes
21899 hardcode_shlibpath_var_F77=no
21902 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21903 freebsd* | kfreebsd*-gnu | dragonfly*)
21904 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21905 hardcode_libdir_flag_spec_F77='-R$libdir'
21906 hardcode_direct_F77=yes
21907 hardcode_shlibpath_var_F77=no
21911 if test "$GCC" = yes; then
21912 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'
21914 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'
21916 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21917 hardcode_libdir_separator_F77=:
21918 hardcode_direct_F77=yes
21920 # hardcode_minus_L: Not really in the search PATH,
21921 # but as the default location of the library.
21922 hardcode_minus_L_F77=yes
21923 export_dynamic_flag_spec_F77='${wl}-E'
21927 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21928 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21930 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21932 if test "$with_gnu_ld" = no; then
21933 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21934 hardcode_libdir_separator_F77=:
21936 hardcode_direct_F77=yes
21937 export_dynamic_flag_spec_F77='${wl}-E'
21939 # hardcode_minus_L: Not really in the search PATH,
21940 # but as the default location of the library.
21941 hardcode_minus_L_F77=yes
21946 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21949 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21952 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21955 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21961 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21964 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21967 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21971 if test "$with_gnu_ld" = no; then
21972 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21973 hardcode_libdir_separator_F77=:
21977 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21978 hardcode_direct_F77=no
21979 hardcode_shlibpath_var_F77=no
21982 hardcode_direct_F77=yes
21983 export_dynamic_flag_spec_F77='${wl}-E'
21985 # hardcode_minus_L: Not really in the search PATH,
21986 # but as the default location of the library.
21987 hardcode_minus_L_F77=yes
21993 irix5* | irix6* | nonstopux*)
21994 if test "$GCC" = yes; then
21995 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'
21997 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'
21998 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22000 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22001 hardcode_libdir_separator_F77=:
22002 link_all_deplibs_F77=yes
22006 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22007 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22009 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22011 hardcode_libdir_flag_spec_F77='-R$libdir'
22012 hardcode_direct_F77=yes
22013 hardcode_shlibpath_var_F77=no
22017 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22018 hardcode_direct_F77=yes
22019 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22020 hardcode_libdir_separator_F77=:
22021 hardcode_shlibpath_var_F77=no
22025 hardcode_direct_F77=yes
22026 hardcode_shlibpath_var_F77=no
22027 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22028 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22029 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22030 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22031 export_dynamic_flag_spec_F77='${wl}-E'
22034 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22035 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22036 hardcode_libdir_flag_spec_F77='-R$libdir'
22039 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22040 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22047 hardcode_libdir_flag_spec_F77='-L$libdir'
22048 hardcode_minus_L_F77=yes
22049 allow_undefined_flag_F77=unsupported
22050 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'
22051 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22055 if test "$GCC" = yes; then
22056 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22057 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'
22059 allow_undefined_flag_F77=' -expect_unresolved \*'
22060 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'
22062 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22063 hardcode_libdir_separator_F77=:
22066 osf4* | osf5*) # as osf3* with the addition of -msym flag
22067 if test "$GCC" = yes; then
22068 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22069 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'
22070 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22072 allow_undefined_flag_F77=' -expect_unresolved \*'
22073 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'
22074 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~
22075 $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'
22077 # Both c and cxx compiler support -rpath directly
22078 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22080 hardcode_libdir_separator_F77=:
22084 no_undefined_flag_F77=' -z text'
22085 if test "$GCC" = yes; then
22087 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22088 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22089 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22092 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22093 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22094 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22096 hardcode_libdir_flag_spec_F77='-R$libdir'
22097 hardcode_shlibpath_var_F77=no
22099 solaris2.[0-5] | solaris2.[0-5].*) ;;
22101 # The compiler driver will combine linker options so we
22102 # cannot just pass the convience library names through
22103 # without $wl, iff we do not link with $LD.
22104 # Luckily, gcc supports the same syntax we need for Sun Studio.
22105 # Supported since Solaris 2.6 (maybe 2.5.1?)
22108 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22110 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' ;;
22113 link_all_deplibs_F77=yes
22117 if test "x$host_vendor" = xsequent; then
22118 # Use $CC to link under sequent, because it throws in some extra .o
22119 # files that make .init and .fini sections work.
22120 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22122 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22124 hardcode_libdir_flag_spec_F77='-L$libdir'
22125 hardcode_direct_F77=yes
22126 hardcode_minus_L_F77=yes
22127 hardcode_shlibpath_var_F77=no
22131 case $host_vendor in
22133 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22134 hardcode_direct_F77=yes # is this really true???
22137 ## LD is ld it makes a PLAMLIB
22138 ## CC just makes a GrossModule.
22139 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22140 reload_cmds_F77='$CC -r -o $output$reload_objs'
22141 hardcode_direct_F77=no
22144 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22145 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22148 runpath_var='LD_RUN_PATH'
22149 hardcode_shlibpath_var_F77=no
22153 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22154 hardcode_shlibpath_var_F77=no
22155 export_dynamic_flag_spec_F77='-Bexport'
22159 if test -d /usr/nec; then
22160 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22161 hardcode_shlibpath_var_F77=no
22162 runpath_var=LD_RUN_PATH
22163 hardcode_runpath_var=yes
22168 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22169 no_undefined_flag_F77='${wl}-z,text'
22170 archive_cmds_need_lc_F77=no
22171 hardcode_shlibpath_var_F77=no
22172 runpath_var='LD_RUN_PATH'
22174 if test "$GCC" = yes; then
22175 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22176 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22178 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22179 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22183 sysv5* | sco3.2v5* | sco5v6*)
22184 # Note: We can NOT use -z defs as we might desire, because we do not
22185 # link with -lc, and that would cause any symbols used from libc to
22186 # always be unresolved, which means just about no library would
22187 # ever link correctly. If we're not using GNU ld we use -z text
22188 # though, which does catch some bad symbols but isn't as heavy-handed
22190 no_undefined_flag_F77='${wl}-z,text'
22191 allow_undefined_flag_F77='${wl}-z,nodefs'
22192 archive_cmds_need_lc_F77=no
22193 hardcode_shlibpath_var_F77=no
22194 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22195 hardcode_libdir_separator_F77=':'
22196 link_all_deplibs_F77=yes
22197 export_dynamic_flag_spec_F77='${wl}-Bexport'
22198 runpath_var='LD_RUN_PATH'
22200 if test "$GCC" = yes; then
22201 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22202 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22204 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22205 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22210 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22211 hardcode_libdir_flag_spec_F77='-L$libdir'
22212 hardcode_shlibpath_var_F77=no
22221 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22222 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22223 test "$ld_shlibs_F77" = no && can_build_shared=no
22226 # Do we need to explicitly link libc?
22228 case "x$archive_cmds_need_lc_F77" in
22230 # Assume -lc should be added
22231 archive_cmds_need_lc_F77=yes
22233 if test "$enable_shared" = yes && test "$GCC" = yes; then
22234 case $archive_cmds_F77 in
22236 # FIXME: we may have to deal with multi-command sequences.
22239 # Test whether the compiler implicitly links with -lc since on some
22240 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22241 # to ld, don't add -lc before -lgcc.
22242 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22243 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22245 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22248 (eval $ac_compile) 2>&5
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); } 2>conftest.err; then
22254 libobjs=conftest.$ac_objext
22256 wl=$lt_prog_compiler_wl_F77
22257 pic_flag=$lt_prog_compiler_pic_F77
22263 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22264 allow_undefined_flag_F77=
22265 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22266 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); }
22271 archive_cmds_need_lc_F77=no
22273 archive_cmds_need_lc_F77=yes
22275 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22277 cat conftest.err 1>&5
22280 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22281 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22288 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22289 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22290 library_names_spec=
22291 libname_spec='lib$name'
22295 postuninstall_cmds=
22299 shlibpath_overrides_runpath=unknown
22301 dynamic_linker="$host_os ld.so"
22302 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22303 if test "$GCC" = yes; then
22304 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22305 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22306 # if the path contains ";" then we assume it to be the separator
22307 # otherwise default to the standard path separator (i.e. ":") - it is
22308 # assumed that no part of a normal pathname contains ";" but that should
22309 # okay in the real world where ";" in dirpaths is itself problematic.
22310 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22312 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22315 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22317 need_lib_prefix=unknown
22318 hardcode_into_libs=no
22320 # when you set need_version to no, make sure it does not cause -set_version
22321 # flags to be left without arguments
22322 need_version=unknown
22327 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22328 shlibpath_var=LIBPATH
22330 # AIX 3 has no versioning support, so we append a major version to the name.
22331 soname_spec='${libname}${release}${shared_ext}$major'
22338 hardcode_into_libs=yes
22339 if test "$host_cpu" = ia64; then
22340 # AIX 5 supports IA64
22341 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22342 shlibpath_var=LD_LIBRARY_PATH
22344 # With GCC up to 2.95.x, collect2 would create an import file
22345 # for dependence libraries. The import file would start with
22346 # the line `#! .'. This would cause the generated library to
22347 # depend on `.', always an invalid library. This was fixed in
22348 # development snapshots of GCC prior to 3.0.
22350 aix4 | aix4.[01] | aix4.[01].*)
22351 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22353 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22356 can_build_shared=no
22360 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22361 # soname into executable. Probably we can add versioning support to
22362 # collect2, so additional links can be useful in future.
22363 if test "$aix_use_runtimelinking" = yes; then
22364 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22365 # instead of lib<name>.a to let people know that these are not
22366 # typical AIX shared libraries.
22367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22369 # We preserve .a as extension for shared libraries through AIX4.2
22370 # and later when we are not doing run time linking.
22371 library_names_spec='${libname}${release}.a $libname.a'
22372 soname_spec='${libname}${release}${shared_ext}$major'
22374 shlibpath_var=LIBPATH
22379 library_names_spec='$libname.ixlibrary $libname.a'
22380 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22381 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'
22385 library_names_spec='${libname}${shared_ext}'
22386 dynamic_linker="$host_os ld.so"
22387 shlibpath_var=LIBRARY_PATH
22393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22394 soname_spec='${libname}${release}${shared_ext}$major'
22395 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22396 shlibpath_var=LD_LIBRARY_PATH
22397 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22398 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22399 # the default ld.so.conf also contains /usr/contrib/lib and
22400 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22401 # libtool to hard-code these into programs
22404 cygwin* | mingw* | pw32*)
22405 version_type=windows
22410 case $GCC,$host_os in
22411 yes,cygwin* | yes,mingw* | yes,pw32*)
22412 library_names_spec='$libname.dll.a'
22413 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22414 postinstall_cmds='base_file=`basename \${file}`~
22415 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22416 dldir=$destdir/`dirname \$dlpath`~
22417 test -d \$dldir || mkdir -p \$dldir~
22418 $install_prog $dir/$dlname \$dldir/$dlname~
22419 chmod a+x \$dldir/$dlname'
22420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22421 dlpath=$dir/\$dldll~
22423 shlibpath_overrides_runpath=yes
22427 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22428 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22429 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22432 # MinGW DLLs use traditional 'lib' prefix
22433 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22434 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22435 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22436 # It is most probably a Windows format PATH printed by
22437 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22438 # path with ; separators, and with drive letters. We can handle the
22439 # drive letters (cygwin fileutils understands them), so leave them,
22440 # especially as we might pass files found there to a mingw objdump,
22441 # which wouldn't understand a cygwinified path. Ahh.
22442 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22444 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22448 # pw32 DLLs use 'pw' prefix rather than 'lib'
22449 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22455 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22458 dynamic_linker='Win32 ld.exe'
22459 # FIXME: first we should search . and the directory the executable is in
22463 darwin* | rhapsody*)
22464 dynamic_linker="$host_os dyld"
22465 version_type=darwin
22468 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22469 soname_spec='${libname}${release}${major}$shared_ext'
22470 shlibpath_overrides_runpath=yes
22471 shlibpath_var=DYLD_LIBRARY_PATH
22472 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22473 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22474 if test "$GCC" = yes; then
22475 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"`
22477 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22479 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22487 soname_spec='${libname}${release}${shared_ext}$major'
22488 shlibpath_var=LD_LIBRARY_PATH
22499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22500 soname_spec='${libname}${release}${shared_ext}$major'
22501 shlibpath_var=LD_LIBRARY_PATH
22502 shlibpath_overrides_runpath=no
22503 hardcode_into_libs=yes
22504 dynamic_linker='GNU ld.so'
22507 freebsd* | dragonfly*)
22508 # DragonFly does not have aout. When/if they implement a new
22509 # versioning mechanism, adjust this.
22510 if test -x /usr/bin/objformat; then
22511 objformat=`/usr/bin/objformat`
22514 freebsd[123]*) objformat=aout ;;
22515 *) objformat=elf ;;
22518 version_type=freebsd-$objformat
22519 case $version_type in
22521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22526 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22530 shlibpath_var=LD_LIBRARY_PATH
22533 shlibpath_overrides_runpath=yes
22535 freebsd3.[01]* | freebsdelf3.[01]*)
22536 shlibpath_overrides_runpath=yes
22537 hardcode_into_libs=yes
22539 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22540 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22541 shlibpath_overrides_runpath=no
22542 hardcode_into_libs=yes
22544 freebsd*) # from 4.6 on
22545 shlibpath_overrides_runpath=yes
22546 hardcode_into_libs=yes
22555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22556 soname_spec='${libname}${release}${shared_ext}$major'
22557 shlibpath_var=LD_LIBRARY_PATH
22558 hardcode_into_libs=yes
22561 hpux9* | hpux10* | hpux11*)
22562 # Give a soname corresponding to the major version so that dld.sl refuses to
22563 # link against other versions.
22570 hardcode_into_libs=yes
22571 dynamic_linker="$host_os dld.so"
22572 shlibpath_var=LD_LIBRARY_PATH
22573 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22575 soname_spec='${libname}${release}${shared_ext}$major'
22576 if test "X$HPUX_IA64_MODE" = X32; then
22577 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22579 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22585 hardcode_into_libs=yes
22586 dynamic_linker="$host_os dld.sl"
22587 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22588 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22590 soname_spec='${libname}${release}${shared_ext}$major'
22591 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22592 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22596 dynamic_linker="$host_os dld.sl"
22597 shlibpath_var=SHLIB_PATH
22598 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22600 soname_spec='${libname}${release}${shared_ext}$major'
22603 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22604 postinstall_cmds='chmod 555 $lib'
22611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22612 soname_spec='${libname}${release}${shared_ext}$major'
22613 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22614 shlibpath_var=LD_LIBRARY_PATH
22615 shlibpath_overrides_runpath=no
22616 hardcode_into_libs=yes
22619 irix5* | irix6* | nonstopux*)
22621 nonstopux*) version_type=nonstopux ;;
22623 if test "$lt_cv_prog_gnu_ld" = yes; then
22631 soname_spec='${libname}${release}${shared_ext}$major'
22632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22634 irix5* | nonstopux*)
22635 libsuff= shlibsuff=
22638 case $LD in # libtool.m4 will add one of these switches to LD
22639 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22640 libsuff= shlibsuff= libmagic=32-bit;;
22641 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22642 libsuff=32 shlibsuff=N32 libmagic=N32;;
22643 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22644 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22645 *) libsuff= shlibsuff= libmagic=never-match;;
22649 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22650 shlibpath_overrides_runpath=no
22651 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22652 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22653 hardcode_into_libs=yes
22656 # No shared lib support for Linux oldld, aout, or coff.
22657 linux*oldld* | linux*aout* | linux*coff*)
22661 # This must be Linux ELF.
22666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22667 soname_spec='${libname}${release}${shared_ext}$major'
22668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22669 shlibpath_var=LD_LIBRARY_PATH
22670 shlibpath_overrides_runpath=no
22671 # This implies no fast_install, which is unacceptable.
22672 # Some rework will be needed to allow for fast_install
22673 # before this can be enabled.
22674 hardcode_into_libs=yes
22676 # Append ld.so.conf contents to the search path
22677 if test -f /etc/ld.so.conf; then
22678 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' ' '`
22679 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22682 # We used to test for /lib/ld.so.1 and disable shared libraries on
22683 # powerpc, because MkLinux only supported shared libraries with the
22684 # GNU dynamic linker. Since this was broken with cross compilers,
22685 # most powerpc-linux boxes support dynamic linking these days and
22686 # people can always --disable-shared, the test was removed, and we
22687 # assume the GNU/Linux dynamic linker is in use.
22688 dynamic_linker='GNU/Linux ld.so'
22695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22696 soname_spec='${libname}${release}${shared_ext}$major'
22697 shlibpath_var=LD_LIBRARY_PATH
22698 shlibpath_overrides_runpath=no
22699 hardcode_into_libs=yes
22700 dynamic_linker='GNU ld.so'
22707 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22710 dynamic_linker='NetBSD (a.out) ld.so'
22712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22713 soname_spec='${libname}${release}${shared_ext}$major'
22714 dynamic_linker='NetBSD ld.elf_so'
22716 shlibpath_var=LD_LIBRARY_PATH
22717 shlibpath_overrides_runpath=yes
22718 hardcode_into_libs=yes
22723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22724 shlibpath_var=LD_LIBRARY_PATH
22725 shlibpath_overrides_runpath=yes
22732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22733 soname_spec='${libname}${release}${shared_ext}$major'
22734 shlibpath_var=LD_LIBRARY_PATH
22735 shlibpath_overrides_runpath=yes
22740 sys_lib_dlsearch_path_spec="/usr/lib"
22742 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22744 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22745 *) need_version=no ;;
22747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22749 shlibpath_var=LD_LIBRARY_PATH
22750 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22752 openbsd2.[89] | openbsd2.[89].*)
22753 shlibpath_overrides_runpath=no
22756 shlibpath_overrides_runpath=yes
22760 shlibpath_overrides_runpath=yes
22765 libname_spec='$name'
22768 library_names_spec='$libname${shared_ext} $libname.a'
22769 dynamic_linker='OS/2 ld.exe'
22770 shlibpath_var=LIBPATH
22773 osf3* | osf4* | osf5*)
22777 soname_spec='${libname}${release}${shared_ext}$major'
22778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22779 shlibpath_var=LD_LIBRARY_PATH
22780 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22781 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22789 soname_spec='${libname}${release}${shared_ext}$major'
22790 shlibpath_var=LD_LIBRARY_PATH
22791 shlibpath_overrides_runpath=yes
22792 hardcode_into_libs=yes
22793 # ldd complains unless libraries are executable
22794 postinstall_cmds='chmod +x $lib'
22799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22800 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22801 shlibpath_var=LD_LIBRARY_PATH
22802 shlibpath_overrides_runpath=yes
22803 if test "$with_gnu_ld" = yes; then
22811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22812 soname_spec='${libname}${release}${shared_ext}$major'
22813 shlibpath_var=LD_LIBRARY_PATH
22814 case $host_vendor in
22816 shlibpath_overrides_runpath=no
22818 export_dynamic_flag_spec='${wl}-Blargedynsym'
22819 runpath_var=LD_RUN_PATH
22827 shlibpath_overrides_runpath=no
22828 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22834 if test -d /usr/nec ;then
22836 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22837 soname_spec='$libname${shared_ext}.$major'
22838 shlibpath_var=LD_LIBRARY_PATH
22842 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22843 version_type=freebsd-elf
22846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22847 soname_spec='${libname}${release}${shared_ext}$major'
22848 shlibpath_var=LD_LIBRARY_PATH
22849 hardcode_into_libs=yes
22850 if test "$with_gnu_ld" = yes; then
22851 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22852 shlibpath_overrides_runpath=no
22854 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22855 shlibpath_overrides_runpath=yes
22858 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22862 sys_lib_dlsearch_path_spec='/usr/lib'
22867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22868 soname_spec='${libname}${release}${shared_ext}$major'
22869 shlibpath_var=LD_LIBRARY_PATH
22876 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22877 echo "${ECHO_T}$dynamic_linker" >&6; }
22878 test "$dynamic_linker" = no && can_build_shared=no
22880 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22881 if test "$GCC" = yes; then
22882 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22885 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22886 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22887 hardcode_action_F77=
22888 if test -n "$hardcode_libdir_flag_spec_F77" || \
22889 test -n "$runpath_var_F77" || \
22890 test "X$hardcode_automatic_F77" = "Xyes" ; then
22892 # We can hardcode non-existant directories.
22893 if test "$hardcode_direct_F77" != no &&
22894 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22895 # have to relink, otherwise we might link with an installed library
22896 # when we should be linking with a yet-to-be-installed one
22897 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22898 test "$hardcode_minus_L_F77" != no; then
22899 # Linking always hardcodes the temporary library directory.
22900 hardcode_action_F77=relink
22902 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22903 hardcode_action_F77=immediate
22906 # We cannot hardcode anything, or else we can only hardcode existing
22908 hardcode_action_F77=unsupported
22910 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22911 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22913 if test "$hardcode_action_F77" = relink; then
22914 # Fast installation is not supported
22915 enable_fast_install=no
22916 elif test "$shlibpath_overrides_runpath" = yes ||
22917 test "$enable_shared" = no; then
22918 # Fast installation is not necessary
22919 enable_fast_install=needless
22923 # The else clause should only fire when bootstrapping the
22924 # libtool distribution, otherwise you forgot to ship ltmain.sh
22925 # with your package, and you will get complaints that there are
22926 # no rules to generate ltmain.sh.
22927 if test -f "$ltmain"; then
22928 # See if we are running on zsh, and set the options which allow our commands through
22929 # without removal of \ escapes.
22930 if test -n "${ZSH_VERSION+set}" ; then
22931 setopt NO_GLOB_SUBST
22933 # Now quote all the things that may contain metacharacters while being
22934 # careful not to overquote the AC_SUBSTed values. We take copies of the
22935 # variables and quote the copies for generation of the libtool script.
22936 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22938 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22939 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22940 deplibs_check_method reload_flag reload_cmds need_locks \
22941 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22942 lt_cv_sys_global_symbol_to_c_name_address \
22943 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22944 old_postinstall_cmds old_postuninstall_cmds \
22948 lt_prog_compiler_wl_F77 \
22949 lt_prog_compiler_pic_F77 \
22950 lt_prog_compiler_static_F77 \
22951 lt_prog_compiler_no_builtin_flag_F77 \
22952 export_dynamic_flag_spec_F77 \
22953 thread_safe_flag_spec_F77 \
22954 whole_archive_flag_spec_F77 \
22955 enable_shared_with_static_runtimes_F77 \
22956 old_archive_cmds_F77 \
22957 old_archive_from_new_cmds_F77 \
22958 predep_objects_F77 \
22959 postdep_objects_F77 \
22962 compiler_lib_search_path_F77 \
22964 archive_expsym_cmds_F77 \
22965 postinstall_cmds_F77 \
22966 postuninstall_cmds_F77 \
22967 old_archive_from_expsyms_cmds_F77 \
22968 allow_undefined_flag_F77 \
22969 no_undefined_flag_F77 \
22970 export_symbols_cmds_F77 \
22971 hardcode_libdir_flag_spec_F77 \
22972 hardcode_libdir_flag_spec_ld_F77 \
22973 hardcode_libdir_separator_F77 \
22974 hardcode_automatic_F77 \
22976 module_expsym_cmds_F77 \
22977 lt_cv_prog_compiler_c_o_F77 \
22978 exclude_expsyms_F77 \
22979 include_expsyms_F77; do
22982 old_archive_cmds_F77 | \
22983 old_archive_from_new_cmds_F77 | \
22984 archive_cmds_F77 | \
22985 archive_expsym_cmds_F77 | \
22986 module_cmds_F77 | \
22987 module_expsym_cmds_F77 | \
22988 old_archive_from_expsyms_cmds_F77 | \
22989 export_symbols_cmds_F77 | \
22990 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22991 postinstall_cmds | postuninstall_cmds | \
22992 old_postinstall_cmds | old_postuninstall_cmds | \
22993 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22994 # Double-quote double-evaled strings.
22995 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22998 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23004 *'\$0 --fallback-echo"')
23005 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23011 cat <<__EOF__ >> "$cfgfile"
23012 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23014 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23016 # Shell to use when invoking shell scripts.
23019 # Whether or not to build shared libraries.
23020 build_libtool_libs=$enable_shared
23022 # Whether or not to build static libraries.
23023 build_old_libs=$enable_static
23025 # Whether or not to add -lc for building shared libraries.
23026 build_libtool_need_lc=$archive_cmds_need_lc_F77
23028 # Whether or not to disallow shared libs when runtime libs are static
23029 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23031 # Whether or not to optimize for fast installation.
23032 fast_install=$enable_fast_install
23035 host_alias=$host_alias
23039 # The build system.
23040 build_alias=$build_alias
23044 # An echo program that does not interpret backslashes.
23049 AR_FLAGS=$lt_AR_FLAGS
23054 # LTCC compiler flags.
23055 LTCFLAGS=$lt_LTCFLAGS
23057 # A language-specific compiler.
23058 CC=$lt_compiler_F77
23060 # Is the compiler the GNU C compiler?
23066 # The linker used to build libraries.
23069 # Whether we need hard or soft links.
23072 # A BSD-compatible nm program.
23075 # A symbol stripping program
23078 # Used to examine libraries when file_magic_cmd begins "file"
23079 MAGIC_CMD=$MAGIC_CMD
23081 # Used on cygwin: DLL creation program.
23084 # Used on cygwin: object dumper.
23087 # Used on cygwin: assembler.
23090 # The name of the directory that contains temporary libtool files.
23093 # How to create reloadable object files.
23094 reload_flag=$lt_reload_flag
23095 reload_cmds=$lt_reload_cmds
23097 # How to pass a linker flag through the compiler.
23098 wl=$lt_lt_prog_compiler_wl_F77
23100 # Object file suffix (normally "o").
23101 objext="$ac_objext"
23103 # Old archive suffix (normally "a").
23106 # Shared library suffix (normally ".so").
23107 shrext_cmds='$shrext_cmds'
23109 # Executable file suffix (normally "").
23112 # Additional compiler flags for building library objects.
23113 pic_flag=$lt_lt_prog_compiler_pic_F77
23116 # What is the maximum length of a command?
23117 max_cmd_len=$lt_cv_sys_max_cmd_len
23119 # Does compiler simultaneously support -c and -o options?
23120 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23122 # Must we lock files when doing compilation?
23123 need_locks=$lt_need_locks
23125 # Do we need the lib prefix for modules?
23126 need_lib_prefix=$need_lib_prefix
23128 # Do we need a version for libraries?
23129 need_version=$need_version
23131 # Whether dlopen is supported.
23132 dlopen_support=$enable_dlopen
23134 # Whether dlopen of programs is supported.
23135 dlopen_self=$enable_dlopen_self
23137 # Whether dlopen of statically linked programs is supported.
23138 dlopen_self_static=$enable_dlopen_self_static
23140 # Compiler flag to prevent dynamic linking.
23141 link_static_flag=$lt_lt_prog_compiler_static_F77
23143 # Compiler flag to turn off builtin functions.
23144 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23146 # Compiler flag to allow reflexive dlopens.
23147 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23149 # Compiler flag to generate shared objects directly from archives.
23150 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23152 # Compiler flag to generate thread-safe objects.
23153 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23155 # Library versioning type.
23156 version_type=$version_type
23158 # Format of library name prefix.
23159 libname_spec=$lt_libname_spec
23161 # List of archive names. First name is the real one, the rest are links.
23162 # The last name is the one that the linker finds with -lNAME.
23163 library_names_spec=$lt_library_names_spec
23165 # The coded name of the library, if different from the real name.
23166 soname_spec=$lt_soname_spec
23168 # Commands used to build and install an old-style archive.
23170 old_archive_cmds=$lt_old_archive_cmds_F77
23171 old_postinstall_cmds=$lt_old_postinstall_cmds
23172 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23174 # Create an old-style archive from a shared archive.
23175 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23177 # Create a temporary old-style archive to link instead of a shared archive.
23178 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23180 # Commands used to build and install a shared archive.
23181 archive_cmds=$lt_archive_cmds_F77
23182 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23183 postinstall_cmds=$lt_postinstall_cmds
23184 postuninstall_cmds=$lt_postuninstall_cmds
23186 # Commands used to build a loadable module (assumed same as above if empty)
23187 module_cmds=$lt_module_cmds_F77
23188 module_expsym_cmds=$lt_module_expsym_cmds_F77
23190 # Commands to strip libraries.
23191 old_striplib=$lt_old_striplib
23192 striplib=$lt_striplib
23194 # Dependencies to place before the objects being linked to create a
23196 predep_objects=$lt_predep_objects_F77
23198 # Dependencies to place after the objects being linked to create a
23200 postdep_objects=$lt_postdep_objects_F77
23202 # Dependencies to place before the objects being linked to create a
23204 predeps=$lt_predeps_F77
23206 # Dependencies to place after the objects being linked to create a
23208 postdeps=$lt_postdeps_F77
23210 # The library search path used internally by the compiler when linking
23211 # a shared library.
23212 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23214 # Method to check whether dependent libraries are shared objects.
23215 deplibs_check_method=$lt_deplibs_check_method
23217 # Command to use when deplibs_check_method == file_magic.
23218 file_magic_cmd=$lt_file_magic_cmd
23220 # Flag that allows shared libraries with undefined symbols to be built.
23221 allow_undefined_flag=$lt_allow_undefined_flag_F77
23223 # Flag that forces no undefined symbols.
23224 no_undefined_flag=$lt_no_undefined_flag_F77
23226 # Commands used to finish a libtool library installation in a directory.
23227 finish_cmds=$lt_finish_cmds
23229 # Same as above, but a single script fragment to be evaled but not shown.
23230 finish_eval=$lt_finish_eval
23232 # Take the output of nm and produce a listing of raw symbols and C names.
23233 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23235 # Transform the output of nm in a proper C declaration
23236 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23238 # Transform the output of nm in a C name address pair
23239 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23241 # This is the shared library runtime path variable.
23242 runpath_var=$runpath_var
23244 # This is the shared library path variable.
23245 shlibpath_var=$shlibpath_var
23247 # Is shlibpath searched before the hard-coded library search path?
23248 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23250 # How to hardcode a shared library path into an executable.
23251 hardcode_action=$hardcode_action_F77
23253 # Whether we should hardcode library paths into libraries.
23254 hardcode_into_libs=$hardcode_into_libs
23256 # Flag to hardcode \$libdir into a binary during linking.
23257 # This must work even if \$libdir does not exist.
23258 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23260 # If ld is used when linking, flag to hardcode \$libdir into
23261 # a binary during linking. This must work even if \$libdir does
23263 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23265 # Whether we need a single -rpath flag with a separated argument.
23266 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23268 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23269 # resulting binary.
23270 hardcode_direct=$hardcode_direct_F77
23272 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23273 # resulting binary.
23274 hardcode_minus_L=$hardcode_minus_L_F77
23276 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23277 # the resulting binary.
23278 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23280 # Set to yes if building a shared library automatically hardcodes DIR into the library
23281 # and all subsequent libraries and executables linked against it.
23282 hardcode_automatic=$hardcode_automatic_F77
23284 # Variables whose values should be saved in libtool wrapper scripts and
23285 # restored at relink time.
23286 variables_saved_for_relink="$variables_saved_for_relink"
23288 # Whether libtool must link a program against all its dependency libraries.
23289 link_all_deplibs=$link_all_deplibs_F77
23291 # Compile-time system search path for libraries
23292 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23294 # Run-time system search path for libraries
23295 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23297 # Fix the shell variable \$srcfile for the compiler.
23298 fix_srcfile_path="$fix_srcfile_path_F77"
23300 # Set to yes if exported symbols are required.
23301 always_export_symbols=$always_export_symbols_F77
23303 # The commands to list exported symbols.
23304 export_symbols_cmds=$lt_export_symbols_cmds_F77
23306 # The commands to extract the exported symbol list from a shared archive.
23307 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23309 # Symbols that should not be listed in the preloaded symbols.
23310 exclude_expsyms=$lt_exclude_expsyms_F77
23312 # Symbols that must always be exported.
23313 include_expsyms=$lt_include_expsyms_F77
23315 # ### END LIBTOOL TAG CONFIG: $tagname
23321 # If there is no Makefile yet, we rely on a make rule to execute
23322 # `config.status --recheck' to rerun these tests and create the
23323 # libtool script then.
23324 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23325 if test -f "$ltmain_in"; then
23326 test -f Makefile && make "$ltmain"
23332 ac_cpp='$CPP $CPPFLAGS'
23333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23345 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23347 ac_cpp='$CPP $CPPFLAGS'
23348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23353 # Source file extension for Java test sources.
23356 # Object file extension for compiled Java test sources.
23360 # Code to be used in simple compile tests
23361 lt_simple_compile_test_code="class foo {}\n"
23363 # Code to be used in simple link tests
23364 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23366 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23368 # If no C compiler was specified, use CC.
23371 # If no C compiler flags were specified, use CFLAGS.
23372 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23374 # Allow CC to be a program name with arguments.
23378 # save warnings/boilerplate of simple test code
23379 ac_outfile=conftest.$ac_objext
23380 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23381 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23382 _lt_compiler_boilerplate=`cat conftest.err`
23385 ac_outfile=conftest.$ac_objext
23386 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23387 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23388 _lt_linker_boilerplate=`cat conftest.err`
23392 # Allow CC to be a program name with arguments.
23397 for cc_temp in $compiler""; do
23399 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23400 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23405 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23408 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23409 archive_cmds_need_lc_GCJ=no
23411 old_archive_cmds_GCJ=$old_archive_cmds
23414 lt_prog_compiler_no_builtin_flag_GCJ=
23416 if test "$GCC" = yes; then
23417 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23420 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23421 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23422 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23423 echo $ECHO_N "(cached) $ECHO_C" >&6
23425 lt_cv_prog_compiler_rtti_exceptions=no
23426 ac_outfile=conftest.$ac_objext
23427 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23428 lt_compiler_flag="-fno-rtti -fno-exceptions"
23429 # Insert the option either (1) after the last *FLAGS variable, or
23430 # (2) before a word containing "conftest.", or (3) at the end.
23431 # Note that $ac_compile itself does not contain backslashes and begins
23432 # with a dollar sign (not a hyphen), so the echo should work correctly.
23433 # The option is referenced via a variable to avoid confusing sed.
23434 lt_compile=`echo "$ac_compile" | $SED \
23435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23437 -e 's:$: $lt_compiler_flag:'`
23438 (eval echo "\"\$as_me:23438: $lt_compile\"" >&5)
23439 (eval "$lt_compile" 2>conftest.err)
23441 cat conftest.err >&5
23442 echo "$as_me:23442: \$? = $ac_status" >&5
23443 if (exit $ac_status) && test -s "$ac_outfile"; then
23444 # The compiler can only warn and ignore the option if not recognized
23445 # So say no if there are warnings other than the usual output.
23446 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23448 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23449 lt_cv_prog_compiler_rtti_exceptions=yes
23455 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23456 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23458 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23459 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23466 lt_prog_compiler_wl_GCJ=
23467 lt_prog_compiler_pic_GCJ=
23468 lt_prog_compiler_static_GCJ=
23470 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23471 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23473 if test "$GCC" = yes; then
23474 lt_prog_compiler_wl_GCJ='-Wl,'
23475 lt_prog_compiler_static_GCJ='-static'
23479 # All AIX code is PIC.
23480 if test "$host_cpu" = ia64; then
23481 # AIX 5 now supports IA64 processor
23482 lt_prog_compiler_static_GCJ='-Bstatic'
23487 # FIXME: we need at least 68020 code to build shared libraries, but
23488 # adding the `-m68020' flag to GCC prevents building anything better,
23490 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23493 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23494 # PIC is the default for these OSes.
23497 mingw* | pw32* | os2*)
23498 # This hack is so that the source file can tell whether it is being
23499 # built for inclusion in a dll (and should export symbols for example).
23500 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23503 darwin* | rhapsody*)
23504 # PIC is the default on this platform
23505 # Common symbols not allowed in MH_DYLIB files
23506 lt_prog_compiler_pic_GCJ='-fno-common'
23510 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23511 # Instead, we relocate shared libraries at runtime.
23515 # Just because we use GCC doesn't mean we suddenly get shared libraries
23516 # on systems that don't support them.
23517 lt_prog_compiler_can_build_shared_GCJ=no
23522 if test -d /usr/nec; then
23523 lt_prog_compiler_pic_GCJ=-Kconform_pic
23528 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23529 # not for PA HP-UX.
23535 lt_prog_compiler_pic_GCJ='-fPIC'
23541 lt_prog_compiler_pic_GCJ='-fPIC'
23545 # PORTME Check for flag to pass linker flags through the system compiler.
23548 lt_prog_compiler_wl_GCJ='-Wl,'
23549 if test "$host_cpu" = ia64; then
23550 # AIX 5 now supports IA64 processor
23551 lt_prog_compiler_static_GCJ='-Bstatic'
23553 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23557 # PIC is the default on this platform
23558 # Common symbols not allowed in MH_DYLIB files
23559 case $cc_basename in
23561 lt_prog_compiler_pic_GCJ='-qnocommon'
23562 lt_prog_compiler_wl_GCJ='-Wl,'
23567 mingw* | pw32* | os2*)
23568 # This hack is so that the source file can tell whether it is being
23569 # built for inclusion in a dll (and should export symbols for example).
23570 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23573 hpux9* | hpux10* | hpux11*)
23574 lt_prog_compiler_wl_GCJ='-Wl,'
23575 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23576 # not for PA HP-UX.
23582 lt_prog_compiler_pic_GCJ='+Z'
23585 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23586 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23589 irix5* | irix6* | nonstopux*)
23590 lt_prog_compiler_wl_GCJ='-Wl,'
23591 # PIC (with -KPIC) is the default.
23592 lt_prog_compiler_static_GCJ='-non_shared'
23596 lt_prog_compiler_pic_GCJ='-KPIC'
23597 lt_prog_compiler_static_GCJ='-Bstatic'
23601 case $cc_basename in
23603 lt_prog_compiler_wl_GCJ='-Wl,'
23604 lt_prog_compiler_pic_GCJ='-KPIC'
23605 lt_prog_compiler_static_GCJ='-static'
23607 pgcc* | pgf77* | pgf90* | pgf95*)
23608 # Portland Group compilers (*not* the Pentium gcc compiler,
23609 # which looks to be a dead project)
23610 lt_prog_compiler_wl_GCJ='-Wl,'
23611 lt_prog_compiler_pic_GCJ='-fpic'
23612 lt_prog_compiler_static_GCJ='-Bstatic'
23615 lt_prog_compiler_wl_GCJ='-Wl,'
23616 # All Alpha code is PIC.
23617 lt_prog_compiler_static_GCJ='-non_shared'
23622 osf3* | osf4* | osf5*)
23623 lt_prog_compiler_wl_GCJ='-Wl,'
23624 # All OSF/1 code is PIC.
23625 lt_prog_compiler_static_GCJ='-non_shared'
23629 lt_prog_compiler_pic_GCJ='-KPIC'
23630 lt_prog_compiler_static_GCJ='-Bstatic'
23631 case $cc_basename in
23632 f77* | f90* | f95*)
23633 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23635 lt_prog_compiler_wl_GCJ='-Wl,';;
23640 lt_prog_compiler_wl_GCJ='-Qoption ld '
23641 lt_prog_compiler_pic_GCJ='-PIC'
23642 lt_prog_compiler_static_GCJ='-Bstatic'
23645 sysv4 | sysv4.2uw2* | sysv4.3*)
23646 lt_prog_compiler_wl_GCJ='-Wl,'
23647 lt_prog_compiler_pic_GCJ='-KPIC'
23648 lt_prog_compiler_static_GCJ='-Bstatic'
23652 if test -d /usr/nec ;then
23653 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23654 lt_prog_compiler_static_GCJ='-Bstatic'
23658 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23659 lt_prog_compiler_wl_GCJ='-Wl,'
23660 lt_prog_compiler_pic_GCJ='-KPIC'
23661 lt_prog_compiler_static_GCJ='-Bstatic'
23665 lt_prog_compiler_wl_GCJ='-Wl,'
23666 lt_prog_compiler_can_build_shared_GCJ=no
23670 lt_prog_compiler_pic_GCJ='-pic'
23671 lt_prog_compiler_static_GCJ='-Bstatic'
23675 lt_prog_compiler_can_build_shared_GCJ=no
23680 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23681 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23684 # Check to make sure the PIC flag actually works.
23686 if test -n "$lt_prog_compiler_pic_GCJ"; then
23688 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23689 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23690 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23691 echo $ECHO_N "(cached) $ECHO_C" >&6
23693 lt_prog_compiler_pic_works_GCJ=no
23694 ac_outfile=conftest.$ac_objext
23695 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23696 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23697 # Insert the option either (1) after the last *FLAGS variable, or
23698 # (2) before a word containing "conftest.", or (3) at the end.
23699 # Note that $ac_compile itself does not contain backslashes and begins
23700 # with a dollar sign (not a hyphen), so the echo should work correctly.
23701 # The option is referenced via a variable to avoid confusing sed.
23702 lt_compile=`echo "$ac_compile" | $SED \
23703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23705 -e 's:$: $lt_compiler_flag:'`
23706 (eval echo "\"\$as_me:23706: $lt_compile\"" >&5)
23707 (eval "$lt_compile" 2>conftest.err)
23709 cat conftest.err >&5
23710 echo "$as_me:23710: \$? = $ac_status" >&5
23711 if (exit $ac_status) && test -s "$ac_outfile"; then
23712 # The compiler can only warn and ignore the option if not recognized
23713 # So say no if there are warnings other than the usual output.
23714 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23716 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23717 lt_prog_compiler_pic_works_GCJ=yes
23723 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23724 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23726 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23727 case $lt_prog_compiler_pic_GCJ in
23729 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23732 lt_prog_compiler_pic_GCJ=
23733 lt_prog_compiler_can_build_shared_GCJ=no
23738 # For platforms which do not support PIC, -DPIC is meaningless:
23740 lt_prog_compiler_pic_GCJ=
23743 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23748 # Check to make sure the static flag actually works.
23750 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23751 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23752 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23753 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23754 echo $ECHO_N "(cached) $ECHO_C" >&6
23756 lt_prog_compiler_static_works_GCJ=no
23757 save_LDFLAGS="$LDFLAGS"
23758 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23759 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23760 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23761 # The linker can only warn and ignore the option if not recognized
23762 # So say no if there are warnings
23763 if test -s conftest.err; then
23764 # Append any errors to the config.log.
23765 cat conftest.err 1>&5
23766 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23767 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23768 if diff conftest.exp conftest.er2 >/dev/null; then
23769 lt_prog_compiler_static_works_GCJ=yes
23772 lt_prog_compiler_static_works_GCJ=yes
23776 LDFLAGS="$save_LDFLAGS"
23779 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23780 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23782 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23785 lt_prog_compiler_static_GCJ=
23789 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23790 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23791 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23792 echo $ECHO_N "(cached) $ECHO_C" >&6
23794 lt_cv_prog_compiler_c_o_GCJ=no
23795 $rm -r conftest 2>/dev/null
23799 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23801 lt_compiler_flag="-o out/conftest2.$ac_objext"
23802 # Insert the option either (1) after the last *FLAGS variable, or
23803 # (2) before a word containing "conftest.", or (3) at the end.
23804 # Note that $ac_compile itself does not contain backslashes and begins
23805 # with a dollar sign (not a hyphen), so the echo should work correctly.
23806 lt_compile=`echo "$ac_compile" | $SED \
23807 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23809 -e 's:$: $lt_compiler_flag:'`
23810 (eval echo "\"\$as_me:23810: $lt_compile\"" >&5)
23811 (eval "$lt_compile" 2>out/conftest.err)
23813 cat out/conftest.err >&5
23814 echo "$as_me:23814: \$? = $ac_status" >&5
23815 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23817 # The compiler can only warn and ignore the option if not recognized
23818 # So say no if there are warnings
23819 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23820 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23821 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23822 lt_cv_prog_compiler_c_o_GCJ=yes
23827 # SGI C++ compiler will create directory out/ii_files/ for
23828 # template instantiation
23829 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23830 $rm out/* && rmdir out
23836 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23837 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23840 hard_links="nottested"
23841 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23842 # do not overwrite the value of need_locks provided by the user
23843 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23844 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23847 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23849 ln conftest.a conftest.b 2>&5 || hard_links=no
23850 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23851 { echo "$as_me:$LINENO: result: $hard_links" >&5
23852 echo "${ECHO_T}$hard_links" >&6; }
23853 if test "$hard_links" = no; then
23854 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23855 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23862 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23863 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23866 allow_undefined_flag_GCJ=
23867 enable_shared_with_static_runtimes_GCJ=no
23869 archive_expsym_cmds_GCJ=
23870 old_archive_From_new_cmds_GCJ=
23871 old_archive_from_expsyms_cmds_GCJ=
23872 export_dynamic_flag_spec_GCJ=
23873 whole_archive_flag_spec_GCJ=
23874 thread_safe_flag_spec_GCJ=
23875 hardcode_libdir_flag_spec_GCJ=
23876 hardcode_libdir_flag_spec_ld_GCJ=
23877 hardcode_libdir_separator_GCJ=
23878 hardcode_direct_GCJ=no
23879 hardcode_minus_L_GCJ=no
23880 hardcode_shlibpath_var_GCJ=unsupported
23881 link_all_deplibs_GCJ=unknown
23882 hardcode_automatic_GCJ=no
23884 module_expsym_cmds_GCJ=
23885 always_export_symbols_GCJ=no
23886 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23887 # include_expsyms should be a list of space-separated symbols to be *always*
23888 # included in the symbol list
23889 include_expsyms_GCJ=
23890 # exclude_expsyms can be an extended regexp of symbols to exclude
23891 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23892 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23893 # as well as any symbol that contains `d'.
23894 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23895 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23896 # platforms (ab)use it in PIC code, but their linkers get confused if
23897 # the symbol is explicitly referenced. Since portable code cannot
23898 # rely on this symbol name, it's probably fine to never include it in
23899 # preloaded symbol tables.
23900 extract_expsyms_cmds=
23901 # Just being paranoid about ensuring that cc_basename is set.
23902 for cc_temp in $compiler""; do
23904 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23905 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23910 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23913 cygwin* | mingw* | pw32*)
23914 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23915 # When not using gcc, we currently assume that we are using
23916 # Microsoft Visual C++.
23917 if test "$GCC" != yes; then
23922 # we just hope/assume this is gcc and not c89 (= MSVC++)
23931 if test "$with_gnu_ld" = yes; then
23932 # If archive_cmds runs LD, not CC, wlarc should be empty
23935 # Set some defaults for GNU ld with shared library support. These
23936 # are reset later if shared libraries are not supported. Putting them
23937 # here allows them to be overridden if necessary.
23938 runpath_var=LD_RUN_PATH
23939 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23940 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23941 # ancient GNU ld didn't support --whole-archive et. al.
23942 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23943 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23945 whole_archive_flag_spec_GCJ=
23947 supports_anon_versioning=no
23948 case `$LD -v 2>/dev/null` in
23949 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23950 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23951 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23952 *\ 2.11.*) ;; # other 2.11 versions
23953 *) supports_anon_versioning=yes ;;
23956 # See if GNU ld supports shared libraries.
23958 aix3* | aix4* | aix5*)
23959 # On AIX/PPC, the GNU linker is very broken
23960 if test "$host_cpu" != ia64; then
23964 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23965 *** to be unable to reliably create shared libraries on AIX.
23966 *** Therefore, libtool is disabling shared libraries support. If you
23967 *** really care for shared libraries, you may want to modify your PATH
23968 *** so that a non-GNU linker is found, and then restart.
23975 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)'
23976 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23977 hardcode_minus_L_GCJ=yes
23979 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23980 # that the semantics of dynamic libraries on AmigaOS, at least up
23981 # to version 4, is to share data among multiple programs linked
23982 # with the same dynamic library. Since this doesn't match the
23983 # behavior of shared libraries on other platforms, we can't use
23989 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23990 allow_undefined_flag_GCJ=unsupported
23991 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23992 # support --undefined. This deserves some investigation. FIXME
23993 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23999 cygwin* | mingw* | pw32*)
24000 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24001 # as there is no search path for DLLs.
24002 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24003 allow_undefined_flag_GCJ=unsupported
24004 always_export_symbols_GCJ=no
24005 enable_shared_with_static_runtimes_GCJ=yes
24006 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24008 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24009 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24010 # If the export-symbols file already is a .def file (1st line
24011 # is EXPORTS), use it as is; otherwise, prepend...
24012 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24013 cp $export_symbols $output_objdir/$soname.def;
24015 echo EXPORTS > $output_objdir/$soname.def;
24016 cat $export_symbols >> $output_objdir/$soname.def;
24018 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24025 hardcode_direct_GCJ=no
24026 hardcode_shlibpath_var_GCJ=no
24027 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24028 export_dynamic_flag_spec_GCJ='${wl}-E'
24029 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24030 # Instead, shared libraries are loaded at an image base (0x10000000 by
24031 # default) and relocated if they conflict, which is a slow very memory
24032 # consuming and fragmenting process. To avoid this, we pick a random,
24033 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24034 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24035 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'
24036 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'
24040 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24042 case $cc_basename,$host_cpu in
24043 pgcc*) # Portland Group C compiler
24044 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'
24045 tmp_addflag=' $pic_flag'
24047 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24048 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'
24049 tmp_addflag=' $pic_flag -Mnomain' ;;
24050 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24051 tmp_addflag=' -i_dynamic' ;;
24052 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24053 tmp_addflag=' -i_dynamic -nofor_main' ;;
24054 ifc* | ifort*) # Intel Fortran compiler
24055 tmp_addflag=' -nofor_main' ;;
24057 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24059 if test $supports_anon_versioning = yes; then
24060 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24061 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24062 $echo "local: *; };" >> $output_objdir/$libname.ver~
24063 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24071 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24072 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24075 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24076 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24081 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24085 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24086 *** create shared libraries on Solaris systems. Therefore, libtool
24087 *** is disabling shared libraries support. We urge you to upgrade GNU
24088 *** binutils to release 2.9.1 or newer. Another option is to modify
24089 *** your PATH or compiler configuration so that the native linker is
24090 *** used, and then restart.
24093 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24094 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24095 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24101 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24102 case `$LD -v 2>&1` in
24103 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24107 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24108 *** reliably create shared libraries on SCO systems. Therefore, libtool
24109 *** is disabling shared libraries support. We urge you to upgrade GNU
24110 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24111 *** your PATH or compiler configuration so that the native linker is
24112 *** used, and then restart.
24117 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24118 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24119 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24120 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24129 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24131 hardcode_direct_GCJ=yes
24132 hardcode_shlibpath_var_GCJ=no
24136 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24137 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24138 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24145 if test "$ld_shlibs_GCJ" = no; then
24147 hardcode_libdir_flag_spec_GCJ=
24148 export_dynamic_flag_spec_GCJ=
24149 whole_archive_flag_spec_GCJ=
24152 # PORTME fill in a description of your system's linker (not GNU ld)
24155 allow_undefined_flag_GCJ=unsupported
24156 always_export_symbols_GCJ=yes
24157 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'
24158 # Note: this linker hardcodes the directories in LIBPATH if there
24159 # are no directories specified by -L.
24160 hardcode_minus_L_GCJ=yes
24161 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24162 # Neither direct hardcoding nor static linking is supported with a
24164 hardcode_direct_GCJ=unsupported
24169 if test "$host_cpu" = ia64; then
24170 # On IA64, the linker does run time linking by default, so we don't
24171 # have to do anything special.
24172 aix_use_runtimelinking=no
24173 exp_sym_flag='-Bexport'
24176 # If we're using GNU nm, then we don't want the "-C" option.
24177 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24178 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24179 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'
24181 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'
24183 aix_use_runtimelinking=no
24185 # Test if we are trying to use run time linking or normal
24186 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24187 # need to do runtime linking.
24188 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24189 for ld_flag in $LDFLAGS; do
24190 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24191 aix_use_runtimelinking=yes
24198 exp_sym_flag='-bexport'
24199 no_entry_flag='-bnoentry'
24202 # When large executables or shared objects are built, AIX ld can
24203 # have problems creating the table of contents. If linking a library
24204 # or program results in "error TOC overflow" add -mminimal-toc to
24205 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24206 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24208 archive_cmds_GCJ=''
24209 hardcode_direct_GCJ=yes
24210 hardcode_libdir_separator_GCJ=':'
24211 link_all_deplibs_GCJ=yes
24213 if test "$GCC" = yes; then
24214 case $host_os in aix4.[012]|aix4.[012].*)
24215 # We only want to do this on AIX 4.2 and lower, the check
24216 # below for broken collect2 doesn't work under 4.3+
24217 collect2name=`${CC} -print-prog-name=collect2`
24218 if test -f "$collect2name" && \
24219 strings "$collect2name" | grep resolve_lib_name >/dev/null
24221 # We have reworked collect2
24222 hardcode_direct_GCJ=yes
24224 # We have old collect2
24225 hardcode_direct_GCJ=unsupported
24226 # It fails to find uninstalled libraries when the uninstalled
24227 # path is not listed in the libpath. Setting hardcode_minus_L
24228 # to unsupported forces relinking
24229 hardcode_minus_L_GCJ=yes
24230 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24231 hardcode_libdir_separator_GCJ=
24235 shared_flag='-shared'
24236 if test "$aix_use_runtimelinking" = yes; then
24237 shared_flag="$shared_flag "'${wl}-G'
24241 if test "$host_cpu" = ia64; then
24242 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24243 # chokes on -Wl,-G. The following line is correct:
24246 if test "$aix_use_runtimelinking" = yes; then
24247 shared_flag='${wl}-G'
24249 shared_flag='${wl}-bM:SRE'
24254 # It seems that -bexpall does not export symbols beginning with
24255 # underscore (_), so it is better to generate a list of symbols to export.
24256 always_export_symbols_GCJ=yes
24257 if test "$aix_use_runtimelinking" = yes; then
24258 # Warning - without using the other runtime loading flags (-brtl),
24259 # -berok will link without error, but may produce a broken library.
24260 allow_undefined_flag_GCJ='-berok'
24261 # Determine the default libpath from the value encoded in an empty executable.
24262 cat >conftest.$ac_ext <<_ACEOF
24265 cat confdefs.h >>conftest.$ac_ext
24266 cat >>conftest.$ac_ext <<_ACEOF
24267 /* end confdefs.h. */
24277 rm -f conftest.$ac_objext conftest$ac_exeext
24278 if { (ac_try="$ac_link"
24279 case "(($ac_try" in
24280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24281 *) ac_try_echo=$ac_try;;
24283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24284 (eval "$ac_link") 2>conftest.er1
24286 grep -v '^ *+' conftest.er1 >conftest.err
24288 cat conftest.err >&5
24289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290 (exit $ac_status); } &&
24291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24292 { (case "(($ac_try" in
24293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294 *) ac_try_echo=$ac_try;;
24296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24297 (eval "$ac_try") 2>&5
24299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300 (exit $ac_status); }; } &&
24301 { ac_try='test -s conftest$ac_exeext'
24302 { (case "(($ac_try" in
24303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24304 *) ac_try_echo=$ac_try;;
24306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24307 (eval "$ac_try") 2>&5
24309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310 (exit $ac_status); }; }; then
24312 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24314 # Check for a 64-bit object if we didn't find anything.
24315 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; }
24318 echo "$as_me: failed program was:" >&5
24319 sed 's/^/| /' conftest.$ac_ext >&5
24324 rm -f core conftest.err conftest.$ac_objext \
24325 conftest$ac_exeext conftest.$ac_ext
24326 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24328 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24329 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"
24331 if test "$host_cpu" = ia64; then
24332 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24333 allow_undefined_flag_GCJ="-z nodefs"
24334 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"
24336 # Determine the default libpath from the value encoded in an empty executable.
24337 cat >conftest.$ac_ext <<_ACEOF
24340 cat confdefs.h >>conftest.$ac_ext
24341 cat >>conftest.$ac_ext <<_ACEOF
24342 /* end confdefs.h. */
24352 rm -f conftest.$ac_objext conftest$ac_exeext
24353 if { (ac_try="$ac_link"
24354 case "(($ac_try" in
24355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24356 *) ac_try_echo=$ac_try;;
24358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24359 (eval "$ac_link") 2>conftest.er1
24361 grep -v '^ *+' conftest.er1 >conftest.err
24363 cat conftest.err >&5
24364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24365 (exit $ac_status); } &&
24366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24367 { (case "(($ac_try" in
24368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24369 *) ac_try_echo=$ac_try;;
24371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24372 (eval "$ac_try") 2>&5
24374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375 (exit $ac_status); }; } &&
24376 { ac_try='test -s conftest$ac_exeext'
24377 { (case "(($ac_try" in
24378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24379 *) ac_try_echo=$ac_try;;
24381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24382 (eval "$ac_try") 2>&5
24384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385 (exit $ac_status); }; }; then
24387 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24389 # Check for a 64-bit object if we didn't find anything.
24390 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; }
24393 echo "$as_me: failed program was:" >&5
24394 sed 's/^/| /' conftest.$ac_ext >&5
24399 rm -f core conftest.err conftest.$ac_objext \
24400 conftest$ac_exeext conftest.$ac_ext
24401 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24403 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24404 # Warning - without using the other run time loading flags,
24405 # -berok will link without error, but may produce a broken library.
24406 no_undefined_flag_GCJ=' ${wl}-bernotok'
24407 allow_undefined_flag_GCJ=' ${wl}-berok'
24408 # Exported symbols can be pulled into shared objects from archives
24409 whole_archive_flag_spec_GCJ='$convenience'
24410 archive_cmds_need_lc_GCJ=yes
24411 # This is similar to how AIX traditionally builds its shared libraries.
24412 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'
24418 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)'
24419 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24420 hardcode_minus_L_GCJ=yes
24421 # see comment about different semantics on the GNU ld section
24426 export_dynamic_flag_spec_GCJ=-rdynamic
24429 cygwin* | mingw* | pw32*)
24430 # When not using gcc, we currently assume that we are using
24431 # Microsoft Visual C++.
24432 # hardcode_libdir_flag_spec is actually meaningless, as there is
24433 # no search path for DLLs.
24434 hardcode_libdir_flag_spec_GCJ=' '
24435 allow_undefined_flag_GCJ=unsupported
24436 # Tell ltmain to make .lib files, not .a files.
24438 # Tell ltmain to make .dll files, not .so files.
24440 # FIXME: Setting linknames here is a bad hack.
24441 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24442 # The linker will automatically build a .lib file if we build a DLL.
24443 old_archive_From_new_cmds_GCJ='true'
24444 # FIXME: Should let the user specify the lib program.
24445 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24446 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24447 enable_shared_with_static_runtimes_GCJ=yes
24450 darwin* | rhapsody*)
24452 rhapsody* | darwin1.[012])
24453 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24456 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24457 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24459 case ${MACOSX_DEPLOYMENT_TARGET} in
24461 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24464 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24470 archive_cmds_need_lc_GCJ=no
24471 hardcode_direct_GCJ=no
24472 hardcode_automatic_GCJ=yes
24473 hardcode_shlibpath_var_GCJ=unsupported
24474 whole_archive_flag_spec_GCJ=''
24475 link_all_deplibs_GCJ=yes
24476 if test "$GCC" = yes ; then
24477 output_verbose_link_cmd='echo'
24478 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24479 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24480 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24481 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}'
24482 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}'
24484 case $cc_basename in
24486 output_verbose_link_cmd='echo'
24487 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24488 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24489 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24490 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}'
24491 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}'
24501 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24502 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24503 hardcode_shlibpath_var_GCJ=no
24510 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24511 # support. Future versions do this automatically, but an explicit c++rt0.o
24512 # does not break anything, and helps significantly (at the cost of a little
24515 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24516 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24517 hardcode_direct_GCJ=yes
24518 hardcode_shlibpath_var_GCJ=no
24521 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24523 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24524 hardcode_direct_GCJ=yes
24525 hardcode_minus_L_GCJ=yes
24526 hardcode_shlibpath_var_GCJ=no
24529 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24530 freebsd* | kfreebsd*-gnu | dragonfly*)
24531 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24532 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24533 hardcode_direct_GCJ=yes
24534 hardcode_shlibpath_var_GCJ=no
24538 if test "$GCC" = yes; then
24539 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'
24541 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'
24543 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24544 hardcode_libdir_separator_GCJ=:
24545 hardcode_direct_GCJ=yes
24547 # hardcode_minus_L: Not really in the search PATH,
24548 # but as the default location of the library.
24549 hardcode_minus_L_GCJ=yes
24550 export_dynamic_flag_spec_GCJ='${wl}-E'
24554 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24555 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24557 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24559 if test "$with_gnu_ld" = no; then
24560 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24561 hardcode_libdir_separator_GCJ=:
24563 hardcode_direct_GCJ=yes
24564 export_dynamic_flag_spec_GCJ='${wl}-E'
24566 # hardcode_minus_L: Not really in the search PATH,
24567 # but as the default location of the library.
24568 hardcode_minus_L_GCJ=yes
24573 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24576 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24579 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24582 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24588 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24591 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24594 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24598 if test "$with_gnu_ld" = no; then
24599 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24600 hardcode_libdir_separator_GCJ=:
24604 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24605 hardcode_direct_GCJ=no
24606 hardcode_shlibpath_var_GCJ=no
24609 hardcode_direct_GCJ=yes
24610 export_dynamic_flag_spec_GCJ='${wl}-E'
24612 # hardcode_minus_L: Not really in the search PATH,
24613 # but as the default location of the library.
24614 hardcode_minus_L_GCJ=yes
24620 irix5* | irix6* | nonstopux*)
24621 if test "$GCC" = yes; then
24622 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'
24624 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'
24625 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24627 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24628 hardcode_libdir_separator_GCJ=:
24629 link_all_deplibs_GCJ=yes
24633 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24634 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24636 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24638 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24639 hardcode_direct_GCJ=yes
24640 hardcode_shlibpath_var_GCJ=no
24644 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24645 hardcode_direct_GCJ=yes
24646 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24647 hardcode_libdir_separator_GCJ=:
24648 hardcode_shlibpath_var_GCJ=no
24652 hardcode_direct_GCJ=yes
24653 hardcode_shlibpath_var_GCJ=no
24654 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24655 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24656 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24657 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24658 export_dynamic_flag_spec_GCJ='${wl}-E'
24661 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24662 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24663 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24666 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24667 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24674 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24675 hardcode_minus_L_GCJ=yes
24676 allow_undefined_flag_GCJ=unsupported
24677 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'
24678 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24682 if test "$GCC" = yes; then
24683 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24684 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'
24686 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24687 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'
24689 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24690 hardcode_libdir_separator_GCJ=:
24693 osf4* | osf5*) # as osf3* with the addition of -msym flag
24694 if test "$GCC" = yes; then
24695 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24696 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'
24697 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24699 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24700 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'
24701 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~
24702 $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'
24704 # Both c and cxx compiler support -rpath directly
24705 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24707 hardcode_libdir_separator_GCJ=:
24711 no_undefined_flag_GCJ=' -z text'
24712 if test "$GCC" = yes; then
24714 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24715 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24716 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24719 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24720 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24721 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24723 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24724 hardcode_shlibpath_var_GCJ=no
24726 solaris2.[0-5] | solaris2.[0-5].*) ;;
24728 # The compiler driver will combine linker options so we
24729 # cannot just pass the convience library names through
24730 # without $wl, iff we do not link with $LD.
24731 # Luckily, gcc supports the same syntax we need for Sun Studio.
24732 # Supported since Solaris 2.6 (maybe 2.5.1?)
24735 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24737 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' ;;
24740 link_all_deplibs_GCJ=yes
24744 if test "x$host_vendor" = xsequent; then
24745 # Use $CC to link under sequent, because it throws in some extra .o
24746 # files that make .init and .fini sections work.
24747 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24749 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24751 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24752 hardcode_direct_GCJ=yes
24753 hardcode_minus_L_GCJ=yes
24754 hardcode_shlibpath_var_GCJ=no
24758 case $host_vendor in
24760 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24761 hardcode_direct_GCJ=yes # is this really true???
24764 ## LD is ld it makes a PLAMLIB
24765 ## CC just makes a GrossModule.
24766 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24767 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24768 hardcode_direct_GCJ=no
24771 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24772 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24775 runpath_var='LD_RUN_PATH'
24776 hardcode_shlibpath_var_GCJ=no
24780 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24781 hardcode_shlibpath_var_GCJ=no
24782 export_dynamic_flag_spec_GCJ='-Bexport'
24786 if test -d /usr/nec; then
24787 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24788 hardcode_shlibpath_var_GCJ=no
24789 runpath_var=LD_RUN_PATH
24790 hardcode_runpath_var=yes
24795 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24796 no_undefined_flag_GCJ='${wl}-z,text'
24797 archive_cmds_need_lc_GCJ=no
24798 hardcode_shlibpath_var_GCJ=no
24799 runpath_var='LD_RUN_PATH'
24801 if test "$GCC" = yes; then
24802 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24803 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24805 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24806 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24810 sysv5* | sco3.2v5* | sco5v6*)
24811 # Note: We can NOT use -z defs as we might desire, because we do not
24812 # link with -lc, and that would cause any symbols used from libc to
24813 # always be unresolved, which means just about no library would
24814 # ever link correctly. If we're not using GNU ld we use -z text
24815 # though, which does catch some bad symbols but isn't as heavy-handed
24817 no_undefined_flag_GCJ='${wl}-z,text'
24818 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24819 archive_cmds_need_lc_GCJ=no
24820 hardcode_shlibpath_var_GCJ=no
24821 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24822 hardcode_libdir_separator_GCJ=':'
24823 link_all_deplibs_GCJ=yes
24824 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24825 runpath_var='LD_RUN_PATH'
24827 if test "$GCC" = yes; then
24828 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24829 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24831 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24832 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24837 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24838 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24839 hardcode_shlibpath_var_GCJ=no
24848 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24849 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24850 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24853 # Do we need to explicitly link libc?
24855 case "x$archive_cmds_need_lc_GCJ" in
24857 # Assume -lc should be added
24858 archive_cmds_need_lc_GCJ=yes
24860 if test "$enable_shared" = yes && test "$GCC" = yes; then
24861 case $archive_cmds_GCJ in
24863 # FIXME: we may have to deal with multi-command sequences.
24866 # Test whether the compiler implicitly links with -lc since on some
24867 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24868 # to ld, don't add -lc before -lgcc.
24869 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24870 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24872 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24875 (eval $ac_compile) 2>&5
24877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878 (exit $ac_status); } 2>conftest.err; then
24881 libobjs=conftest.$ac_objext
24883 wl=$lt_prog_compiler_wl_GCJ
24884 pic_flag=$lt_prog_compiler_pic_GCJ
24890 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24891 allow_undefined_flag_GCJ=
24892 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24893 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); }
24898 archive_cmds_need_lc_GCJ=no
24900 archive_cmds_need_lc_GCJ=yes
24902 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24904 cat conftest.err 1>&5
24907 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24908 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24915 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24916 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24917 library_names_spec=
24918 libname_spec='lib$name'
24922 postuninstall_cmds=
24926 shlibpath_overrides_runpath=unknown
24928 dynamic_linker="$host_os ld.so"
24929 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24930 if test "$GCC" = yes; then
24931 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24932 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24933 # if the path contains ";" then we assume it to be the separator
24934 # otherwise default to the standard path separator (i.e. ":") - it is
24935 # assumed that no part of a normal pathname contains ";" but that should
24936 # okay in the real world where ";" in dirpaths is itself problematic.
24937 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24939 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24942 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24944 need_lib_prefix=unknown
24945 hardcode_into_libs=no
24947 # when you set need_version to no, make sure it does not cause -set_version
24948 # flags to be left without arguments
24949 need_version=unknown
24954 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24955 shlibpath_var=LIBPATH
24957 # AIX 3 has no versioning support, so we append a major version to the name.
24958 soname_spec='${libname}${release}${shared_ext}$major'
24965 hardcode_into_libs=yes
24966 if test "$host_cpu" = ia64; then
24967 # AIX 5 supports IA64
24968 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24969 shlibpath_var=LD_LIBRARY_PATH
24971 # With GCC up to 2.95.x, collect2 would create an import file
24972 # for dependence libraries. The import file would start with
24973 # the line `#! .'. This would cause the generated library to
24974 # depend on `.', always an invalid library. This was fixed in
24975 # development snapshots of GCC prior to 3.0.
24977 aix4 | aix4.[01] | aix4.[01].*)
24978 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24980 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24983 can_build_shared=no
24987 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24988 # soname into executable. Probably we can add versioning support to
24989 # collect2, so additional links can be useful in future.
24990 if test "$aix_use_runtimelinking" = yes; then
24991 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24992 # instead of lib<name>.a to let people know that these are not
24993 # typical AIX shared libraries.
24994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24996 # We preserve .a as extension for shared libraries through AIX4.2
24997 # and later when we are not doing run time linking.
24998 library_names_spec='${libname}${release}.a $libname.a'
24999 soname_spec='${libname}${release}${shared_ext}$major'
25001 shlibpath_var=LIBPATH
25006 library_names_spec='$libname.ixlibrary $libname.a'
25007 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25008 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'
25012 library_names_spec='${libname}${shared_ext}'
25013 dynamic_linker="$host_os ld.so"
25014 shlibpath_var=LIBRARY_PATH
25020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25021 soname_spec='${libname}${release}${shared_ext}$major'
25022 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25023 shlibpath_var=LD_LIBRARY_PATH
25024 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25025 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25026 # the default ld.so.conf also contains /usr/contrib/lib and
25027 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25028 # libtool to hard-code these into programs
25031 cygwin* | mingw* | pw32*)
25032 version_type=windows
25037 case $GCC,$host_os in
25038 yes,cygwin* | yes,mingw* | yes,pw32*)
25039 library_names_spec='$libname.dll.a'
25040 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25041 postinstall_cmds='base_file=`basename \${file}`~
25042 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25043 dldir=$destdir/`dirname \$dlpath`~
25044 test -d \$dldir || mkdir -p \$dldir~
25045 $install_prog $dir/$dlname \$dldir/$dlname~
25046 chmod a+x \$dldir/$dlname'
25047 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25048 dlpath=$dir/\$dldll~
25050 shlibpath_overrides_runpath=yes
25054 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25055 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25056 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25059 # MinGW DLLs use traditional 'lib' prefix
25060 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25061 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25062 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25063 # It is most probably a Windows format PATH printed by
25064 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25065 # path with ; separators, and with drive letters. We can handle the
25066 # drive letters (cygwin fileutils understands them), so leave them,
25067 # especially as we might pass files found there to a mingw objdump,
25068 # which wouldn't understand a cygwinified path. Ahh.
25069 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25071 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25075 # pw32 DLLs use 'pw' prefix rather than 'lib'
25076 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25082 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25085 dynamic_linker='Win32 ld.exe'
25086 # FIXME: first we should search . and the directory the executable is in
25090 darwin* | rhapsody*)
25091 dynamic_linker="$host_os dyld"
25092 version_type=darwin
25095 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25096 soname_spec='${libname}${release}${major}$shared_ext'
25097 shlibpath_overrides_runpath=yes
25098 shlibpath_var=DYLD_LIBRARY_PATH
25099 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25100 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25101 if test "$GCC" = yes; then
25102 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"`
25104 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25106 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25114 soname_spec='${libname}${release}${shared_ext}$major'
25115 shlibpath_var=LD_LIBRARY_PATH
25126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25127 soname_spec='${libname}${release}${shared_ext}$major'
25128 shlibpath_var=LD_LIBRARY_PATH
25129 shlibpath_overrides_runpath=no
25130 hardcode_into_libs=yes
25131 dynamic_linker='GNU ld.so'
25134 freebsd* | dragonfly*)
25135 # DragonFly does not have aout. When/if they implement a new
25136 # versioning mechanism, adjust this.
25137 if test -x /usr/bin/objformat; then
25138 objformat=`/usr/bin/objformat`
25141 freebsd[123]*) objformat=aout ;;
25142 *) objformat=elf ;;
25145 version_type=freebsd-$objformat
25146 case $version_type in
25148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25153 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25157 shlibpath_var=LD_LIBRARY_PATH
25160 shlibpath_overrides_runpath=yes
25162 freebsd3.[01]* | freebsdelf3.[01]*)
25163 shlibpath_overrides_runpath=yes
25164 hardcode_into_libs=yes
25166 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25167 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25168 shlibpath_overrides_runpath=no
25169 hardcode_into_libs=yes
25171 freebsd*) # from 4.6 on
25172 shlibpath_overrides_runpath=yes
25173 hardcode_into_libs=yes
25182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25183 soname_spec='${libname}${release}${shared_ext}$major'
25184 shlibpath_var=LD_LIBRARY_PATH
25185 hardcode_into_libs=yes
25188 hpux9* | hpux10* | hpux11*)
25189 # Give a soname corresponding to the major version so that dld.sl refuses to
25190 # link against other versions.
25197 hardcode_into_libs=yes
25198 dynamic_linker="$host_os dld.so"
25199 shlibpath_var=LD_LIBRARY_PATH
25200 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25202 soname_spec='${libname}${release}${shared_ext}$major'
25203 if test "X$HPUX_IA64_MODE" = X32; then
25204 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25206 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25208 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25212 hardcode_into_libs=yes
25213 dynamic_linker="$host_os dld.sl"
25214 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25215 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25217 soname_spec='${libname}${release}${shared_ext}$major'
25218 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25223 dynamic_linker="$host_os dld.sl"
25224 shlibpath_var=SHLIB_PATH
25225 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25227 soname_spec='${libname}${release}${shared_ext}$major'
25230 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25231 postinstall_cmds='chmod 555 $lib'
25238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25239 soname_spec='${libname}${release}${shared_ext}$major'
25240 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25241 shlibpath_var=LD_LIBRARY_PATH
25242 shlibpath_overrides_runpath=no
25243 hardcode_into_libs=yes
25246 irix5* | irix6* | nonstopux*)
25248 nonstopux*) version_type=nonstopux ;;
25250 if test "$lt_cv_prog_gnu_ld" = yes; then
25258 soname_spec='${libname}${release}${shared_ext}$major'
25259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25261 irix5* | nonstopux*)
25262 libsuff= shlibsuff=
25265 case $LD in # libtool.m4 will add one of these switches to LD
25266 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25267 libsuff= shlibsuff= libmagic=32-bit;;
25268 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25269 libsuff=32 shlibsuff=N32 libmagic=N32;;
25270 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25271 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25272 *) libsuff= shlibsuff= libmagic=never-match;;
25276 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25277 shlibpath_overrides_runpath=no
25278 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25279 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25280 hardcode_into_libs=yes
25283 # No shared lib support for Linux oldld, aout, or coff.
25284 linux*oldld* | linux*aout* | linux*coff*)
25288 # This must be Linux ELF.
25293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25294 soname_spec='${libname}${release}${shared_ext}$major'
25295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25296 shlibpath_var=LD_LIBRARY_PATH
25297 shlibpath_overrides_runpath=no
25298 # This implies no fast_install, which is unacceptable.
25299 # Some rework will be needed to allow for fast_install
25300 # before this can be enabled.
25301 hardcode_into_libs=yes
25303 # Append ld.so.conf contents to the search path
25304 if test -f /etc/ld.so.conf; then
25305 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' ' '`
25306 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25309 # We used to test for /lib/ld.so.1 and disable shared libraries on
25310 # powerpc, because MkLinux only supported shared libraries with the
25311 # GNU dynamic linker. Since this was broken with cross compilers,
25312 # most powerpc-linux boxes support dynamic linking these days and
25313 # people can always --disable-shared, the test was removed, and we
25314 # assume the GNU/Linux dynamic linker is in use.
25315 dynamic_linker='GNU/Linux ld.so'
25322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25323 soname_spec='${libname}${release}${shared_ext}$major'
25324 shlibpath_var=LD_LIBRARY_PATH
25325 shlibpath_overrides_runpath=no
25326 hardcode_into_libs=yes
25327 dynamic_linker='GNU ld.so'
25334 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25336 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25337 dynamic_linker='NetBSD (a.out) ld.so'
25339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25340 soname_spec='${libname}${release}${shared_ext}$major'
25341 dynamic_linker='NetBSD ld.elf_so'
25343 shlibpath_var=LD_LIBRARY_PATH
25344 shlibpath_overrides_runpath=yes
25345 hardcode_into_libs=yes
25350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25351 shlibpath_var=LD_LIBRARY_PATH
25352 shlibpath_overrides_runpath=yes
25359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25360 soname_spec='${libname}${release}${shared_ext}$major'
25361 shlibpath_var=LD_LIBRARY_PATH
25362 shlibpath_overrides_runpath=yes
25367 sys_lib_dlsearch_path_spec="/usr/lib"
25369 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25371 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25372 *) need_version=no ;;
25374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25376 shlibpath_var=LD_LIBRARY_PATH
25377 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25379 openbsd2.[89] | openbsd2.[89].*)
25380 shlibpath_overrides_runpath=no
25383 shlibpath_overrides_runpath=yes
25387 shlibpath_overrides_runpath=yes
25392 libname_spec='$name'
25395 library_names_spec='$libname${shared_ext} $libname.a'
25396 dynamic_linker='OS/2 ld.exe'
25397 shlibpath_var=LIBPATH
25400 osf3* | osf4* | osf5*)
25404 soname_spec='${libname}${release}${shared_ext}$major'
25405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25406 shlibpath_var=LD_LIBRARY_PATH
25407 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25408 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25416 soname_spec='${libname}${release}${shared_ext}$major'
25417 shlibpath_var=LD_LIBRARY_PATH
25418 shlibpath_overrides_runpath=yes
25419 hardcode_into_libs=yes
25420 # ldd complains unless libraries are executable
25421 postinstall_cmds='chmod +x $lib'
25426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25427 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25428 shlibpath_var=LD_LIBRARY_PATH
25429 shlibpath_overrides_runpath=yes
25430 if test "$with_gnu_ld" = yes; then
25438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25439 soname_spec='${libname}${release}${shared_ext}$major'
25440 shlibpath_var=LD_LIBRARY_PATH
25441 case $host_vendor in
25443 shlibpath_overrides_runpath=no
25445 export_dynamic_flag_spec='${wl}-Blargedynsym'
25446 runpath_var=LD_RUN_PATH
25454 shlibpath_overrides_runpath=no
25455 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25461 if test -d /usr/nec ;then
25463 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25464 soname_spec='$libname${shared_ext}.$major'
25465 shlibpath_var=LD_LIBRARY_PATH
25469 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25470 version_type=freebsd-elf
25473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25474 soname_spec='${libname}${release}${shared_ext}$major'
25475 shlibpath_var=LD_LIBRARY_PATH
25476 hardcode_into_libs=yes
25477 if test "$with_gnu_ld" = yes; then
25478 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25479 shlibpath_overrides_runpath=no
25481 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25482 shlibpath_overrides_runpath=yes
25485 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25489 sys_lib_dlsearch_path_spec='/usr/lib'
25494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25495 soname_spec='${libname}${release}${shared_ext}$major'
25496 shlibpath_var=LD_LIBRARY_PATH
25503 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25504 echo "${ECHO_T}$dynamic_linker" >&6; }
25505 test "$dynamic_linker" = no && can_build_shared=no
25507 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25508 if test "$GCC" = yes; then
25509 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25512 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25513 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25514 hardcode_action_GCJ=
25515 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25516 test -n "$runpath_var_GCJ" || \
25517 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25519 # We can hardcode non-existant directories.
25520 if test "$hardcode_direct_GCJ" != no &&
25521 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25522 # have to relink, otherwise we might link with an installed library
25523 # when we should be linking with a yet-to-be-installed one
25524 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25525 test "$hardcode_minus_L_GCJ" != no; then
25526 # Linking always hardcodes the temporary library directory.
25527 hardcode_action_GCJ=relink
25529 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25530 hardcode_action_GCJ=immediate
25533 # We cannot hardcode anything, or else we can only hardcode existing
25535 hardcode_action_GCJ=unsupported
25537 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25538 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25540 if test "$hardcode_action_GCJ" = relink; then
25541 # Fast installation is not supported
25542 enable_fast_install=no
25543 elif test "$shlibpath_overrides_runpath" = yes ||
25544 test "$enable_shared" = no; then
25545 # Fast installation is not necessary
25546 enable_fast_install=needless
25550 # The else clause should only fire when bootstrapping the
25551 # libtool distribution, otherwise you forgot to ship ltmain.sh
25552 # with your package, and you will get complaints that there are
25553 # no rules to generate ltmain.sh.
25554 if test -f "$ltmain"; then
25555 # See if we are running on zsh, and set the options which allow our commands through
25556 # without removal of \ escapes.
25557 if test -n "${ZSH_VERSION+set}" ; then
25558 setopt NO_GLOB_SUBST
25560 # Now quote all the things that may contain metacharacters while being
25561 # careful not to overquote the AC_SUBSTed values. We take copies of the
25562 # variables and quote the copies for generation of the libtool script.
25563 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25565 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25566 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25567 deplibs_check_method reload_flag reload_cmds need_locks \
25568 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25569 lt_cv_sys_global_symbol_to_c_name_address \
25570 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25571 old_postinstall_cmds old_postuninstall_cmds \
25575 lt_prog_compiler_wl_GCJ \
25576 lt_prog_compiler_pic_GCJ \
25577 lt_prog_compiler_static_GCJ \
25578 lt_prog_compiler_no_builtin_flag_GCJ \
25579 export_dynamic_flag_spec_GCJ \
25580 thread_safe_flag_spec_GCJ \
25581 whole_archive_flag_spec_GCJ \
25582 enable_shared_with_static_runtimes_GCJ \
25583 old_archive_cmds_GCJ \
25584 old_archive_from_new_cmds_GCJ \
25585 predep_objects_GCJ \
25586 postdep_objects_GCJ \
25589 compiler_lib_search_path_GCJ \
25591 archive_expsym_cmds_GCJ \
25592 postinstall_cmds_GCJ \
25593 postuninstall_cmds_GCJ \
25594 old_archive_from_expsyms_cmds_GCJ \
25595 allow_undefined_flag_GCJ \
25596 no_undefined_flag_GCJ \
25597 export_symbols_cmds_GCJ \
25598 hardcode_libdir_flag_spec_GCJ \
25599 hardcode_libdir_flag_spec_ld_GCJ \
25600 hardcode_libdir_separator_GCJ \
25601 hardcode_automatic_GCJ \
25603 module_expsym_cmds_GCJ \
25604 lt_cv_prog_compiler_c_o_GCJ \
25605 exclude_expsyms_GCJ \
25606 include_expsyms_GCJ; do
25609 old_archive_cmds_GCJ | \
25610 old_archive_from_new_cmds_GCJ | \
25611 archive_cmds_GCJ | \
25612 archive_expsym_cmds_GCJ | \
25613 module_cmds_GCJ | \
25614 module_expsym_cmds_GCJ | \
25615 old_archive_from_expsyms_cmds_GCJ | \
25616 export_symbols_cmds_GCJ | \
25617 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25618 postinstall_cmds | postuninstall_cmds | \
25619 old_postinstall_cmds | old_postuninstall_cmds | \
25620 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25621 # Double-quote double-evaled strings.
25622 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25625 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25631 *'\$0 --fallback-echo"')
25632 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25638 cat <<__EOF__ >> "$cfgfile"
25639 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25641 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25643 # Shell to use when invoking shell scripts.
25646 # Whether or not to build shared libraries.
25647 build_libtool_libs=$enable_shared
25649 # Whether or not to build static libraries.
25650 build_old_libs=$enable_static
25652 # Whether or not to add -lc for building shared libraries.
25653 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25655 # Whether or not to disallow shared libs when runtime libs are static
25656 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25658 # Whether or not to optimize for fast installation.
25659 fast_install=$enable_fast_install
25662 host_alias=$host_alias
25666 # The build system.
25667 build_alias=$build_alias
25671 # An echo program that does not interpret backslashes.
25676 AR_FLAGS=$lt_AR_FLAGS
25681 # LTCC compiler flags.
25682 LTCFLAGS=$lt_LTCFLAGS
25684 # A language-specific compiler.
25685 CC=$lt_compiler_GCJ
25687 # Is the compiler the GNU C compiler?
25693 # The linker used to build libraries.
25696 # Whether we need hard or soft links.
25699 # A BSD-compatible nm program.
25702 # A symbol stripping program
25705 # Used to examine libraries when file_magic_cmd begins "file"
25706 MAGIC_CMD=$MAGIC_CMD
25708 # Used on cygwin: DLL creation program.
25711 # Used on cygwin: object dumper.
25714 # Used on cygwin: assembler.
25717 # The name of the directory that contains temporary libtool files.
25720 # How to create reloadable object files.
25721 reload_flag=$lt_reload_flag
25722 reload_cmds=$lt_reload_cmds
25724 # How to pass a linker flag through the compiler.
25725 wl=$lt_lt_prog_compiler_wl_GCJ
25727 # Object file suffix (normally "o").
25728 objext="$ac_objext"
25730 # Old archive suffix (normally "a").
25733 # Shared library suffix (normally ".so").
25734 shrext_cmds='$shrext_cmds'
25736 # Executable file suffix (normally "").
25739 # Additional compiler flags for building library objects.
25740 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25743 # What is the maximum length of a command?
25744 max_cmd_len=$lt_cv_sys_max_cmd_len
25746 # Does compiler simultaneously support -c and -o options?
25747 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25749 # Must we lock files when doing compilation?
25750 need_locks=$lt_need_locks
25752 # Do we need the lib prefix for modules?
25753 need_lib_prefix=$need_lib_prefix
25755 # Do we need a version for libraries?
25756 need_version=$need_version
25758 # Whether dlopen is supported.
25759 dlopen_support=$enable_dlopen
25761 # Whether dlopen of programs is supported.
25762 dlopen_self=$enable_dlopen_self
25764 # Whether dlopen of statically linked programs is supported.
25765 dlopen_self_static=$enable_dlopen_self_static
25767 # Compiler flag to prevent dynamic linking.
25768 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25770 # Compiler flag to turn off builtin functions.
25771 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25773 # Compiler flag to allow reflexive dlopens.
25774 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25776 # Compiler flag to generate shared objects directly from archives.
25777 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25779 # Compiler flag to generate thread-safe objects.
25780 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25782 # Library versioning type.
25783 version_type=$version_type
25785 # Format of library name prefix.
25786 libname_spec=$lt_libname_spec
25788 # List of archive names. First name is the real one, the rest are links.
25789 # The last name is the one that the linker finds with -lNAME.
25790 library_names_spec=$lt_library_names_spec
25792 # The coded name of the library, if different from the real name.
25793 soname_spec=$lt_soname_spec
25795 # Commands used to build and install an old-style archive.
25797 old_archive_cmds=$lt_old_archive_cmds_GCJ
25798 old_postinstall_cmds=$lt_old_postinstall_cmds
25799 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25801 # Create an old-style archive from a shared archive.
25802 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25804 # Create a temporary old-style archive to link instead of a shared archive.
25805 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25807 # Commands used to build and install a shared archive.
25808 archive_cmds=$lt_archive_cmds_GCJ
25809 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25810 postinstall_cmds=$lt_postinstall_cmds
25811 postuninstall_cmds=$lt_postuninstall_cmds
25813 # Commands used to build a loadable module (assumed same as above if empty)
25814 module_cmds=$lt_module_cmds_GCJ
25815 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25817 # Commands to strip libraries.
25818 old_striplib=$lt_old_striplib
25819 striplib=$lt_striplib
25821 # Dependencies to place before the objects being linked to create a
25823 predep_objects=$lt_predep_objects_GCJ
25825 # Dependencies to place after the objects being linked to create a
25827 postdep_objects=$lt_postdep_objects_GCJ
25829 # Dependencies to place before the objects being linked to create a
25831 predeps=$lt_predeps_GCJ
25833 # Dependencies to place after the objects being linked to create a
25835 postdeps=$lt_postdeps_GCJ
25837 # The library search path used internally by the compiler when linking
25838 # a shared library.
25839 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25841 # Method to check whether dependent libraries are shared objects.
25842 deplibs_check_method=$lt_deplibs_check_method
25844 # Command to use when deplibs_check_method == file_magic.
25845 file_magic_cmd=$lt_file_magic_cmd
25847 # Flag that allows shared libraries with undefined symbols to be built.
25848 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25850 # Flag that forces no undefined symbols.
25851 no_undefined_flag=$lt_no_undefined_flag_GCJ
25853 # Commands used to finish a libtool library installation in a directory.
25854 finish_cmds=$lt_finish_cmds
25856 # Same as above, but a single script fragment to be evaled but not shown.
25857 finish_eval=$lt_finish_eval
25859 # Take the output of nm and produce a listing of raw symbols and C names.
25860 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25862 # Transform the output of nm in a proper C declaration
25863 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25865 # Transform the output of nm in a C name address pair
25866 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25868 # This is the shared library runtime path variable.
25869 runpath_var=$runpath_var
25871 # This is the shared library path variable.
25872 shlibpath_var=$shlibpath_var
25874 # Is shlibpath searched before the hard-coded library search path?
25875 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25877 # How to hardcode a shared library path into an executable.
25878 hardcode_action=$hardcode_action_GCJ
25880 # Whether we should hardcode library paths into libraries.
25881 hardcode_into_libs=$hardcode_into_libs
25883 # Flag to hardcode \$libdir into a binary during linking.
25884 # This must work even if \$libdir does not exist.
25885 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25887 # If ld is used when linking, flag to hardcode \$libdir into
25888 # a binary during linking. This must work even if \$libdir does
25890 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25892 # Whether we need a single -rpath flag with a separated argument.
25893 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25895 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25896 # resulting binary.
25897 hardcode_direct=$hardcode_direct_GCJ
25899 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25900 # resulting binary.
25901 hardcode_minus_L=$hardcode_minus_L_GCJ
25903 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25904 # the resulting binary.
25905 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25907 # Set to yes if building a shared library automatically hardcodes DIR into the library
25908 # and all subsequent libraries and executables linked against it.
25909 hardcode_automatic=$hardcode_automatic_GCJ
25911 # Variables whose values should be saved in libtool wrapper scripts and
25912 # restored at relink time.
25913 variables_saved_for_relink="$variables_saved_for_relink"
25915 # Whether libtool must link a program against all its dependency libraries.
25916 link_all_deplibs=$link_all_deplibs_GCJ
25918 # Compile-time system search path for libraries
25919 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25921 # Run-time system search path for libraries
25922 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25924 # Fix the shell variable \$srcfile for the compiler.
25925 fix_srcfile_path="$fix_srcfile_path_GCJ"
25927 # Set to yes if exported symbols are required.
25928 always_export_symbols=$always_export_symbols_GCJ
25930 # The commands to list exported symbols.
25931 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25933 # The commands to extract the exported symbol list from a shared archive.
25934 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25936 # Symbols that should not be listed in the preloaded symbols.
25937 exclude_expsyms=$lt_exclude_expsyms_GCJ
25939 # Symbols that must always be exported.
25940 include_expsyms=$lt_include_expsyms_GCJ
25942 # ### END LIBTOOL TAG CONFIG: $tagname
25948 # If there is no Makefile yet, we rely on a make rule to execute
25949 # `config.status --recheck' to rerun these tests and create the
25950 # libtool script then.
25951 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25952 if test -f "$ltmain_in"; then
25953 test -f Makefile && make "$ltmain"
25959 ac_cpp='$CPP $CPPFLAGS'
25960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25973 ac_cpp='$CPP $CPPFLAGS'
25974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25979 # Source file extension for RC test sources.
25982 # Object file extension for compiled RC test sources.
25986 # Code to be used in simple compile tests
25987 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25989 # Code to be used in simple link tests
25990 lt_simple_link_test_code="$lt_simple_compile_test_code"
25992 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25994 # If no C compiler was specified, use CC.
25997 # If no C compiler flags were specified, use CFLAGS.
25998 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26000 # Allow CC to be a program name with arguments.
26004 # save warnings/boilerplate of simple test code
26005 ac_outfile=conftest.$ac_objext
26006 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26007 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26008 _lt_compiler_boilerplate=`cat conftest.err`
26011 ac_outfile=conftest.$ac_objext
26012 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26013 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26014 _lt_linker_boilerplate=`cat conftest.err`
26018 # Allow CC to be a program name with arguments.
26023 for cc_temp in $compiler""; do
26025 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26026 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26031 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26033 lt_cv_prog_compiler_c_o_RC=yes
26035 # The else clause should only fire when bootstrapping the
26036 # libtool distribution, otherwise you forgot to ship ltmain.sh
26037 # with your package, and you will get complaints that there are
26038 # no rules to generate ltmain.sh.
26039 if test -f "$ltmain"; then
26040 # See if we are running on zsh, and set the options which allow our commands through
26041 # without removal of \ escapes.
26042 if test -n "${ZSH_VERSION+set}" ; then
26043 setopt NO_GLOB_SUBST
26045 # Now quote all the things that may contain metacharacters while being
26046 # careful not to overquote the AC_SUBSTed values. We take copies of the
26047 # variables and quote the copies for generation of the libtool script.
26048 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26050 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26051 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26052 deplibs_check_method reload_flag reload_cmds need_locks \
26053 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26054 lt_cv_sys_global_symbol_to_c_name_address \
26055 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26056 old_postinstall_cmds old_postuninstall_cmds \
26060 lt_prog_compiler_wl_RC \
26061 lt_prog_compiler_pic_RC \
26062 lt_prog_compiler_static_RC \
26063 lt_prog_compiler_no_builtin_flag_RC \
26064 export_dynamic_flag_spec_RC \
26065 thread_safe_flag_spec_RC \
26066 whole_archive_flag_spec_RC \
26067 enable_shared_with_static_runtimes_RC \
26068 old_archive_cmds_RC \
26069 old_archive_from_new_cmds_RC \
26070 predep_objects_RC \
26071 postdep_objects_RC \
26074 compiler_lib_search_path_RC \
26076 archive_expsym_cmds_RC \
26077 postinstall_cmds_RC \
26078 postuninstall_cmds_RC \
26079 old_archive_from_expsyms_cmds_RC \
26080 allow_undefined_flag_RC \
26081 no_undefined_flag_RC \
26082 export_symbols_cmds_RC \
26083 hardcode_libdir_flag_spec_RC \
26084 hardcode_libdir_flag_spec_ld_RC \
26085 hardcode_libdir_separator_RC \
26086 hardcode_automatic_RC \
26088 module_expsym_cmds_RC \
26089 lt_cv_prog_compiler_c_o_RC \
26090 exclude_expsyms_RC \
26091 include_expsyms_RC; do
26094 old_archive_cmds_RC | \
26095 old_archive_from_new_cmds_RC | \
26096 archive_cmds_RC | \
26097 archive_expsym_cmds_RC | \
26099 module_expsym_cmds_RC | \
26100 old_archive_from_expsyms_cmds_RC | \
26101 export_symbols_cmds_RC | \
26102 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26103 postinstall_cmds | postuninstall_cmds | \
26104 old_postinstall_cmds | old_postuninstall_cmds | \
26105 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26106 # Double-quote double-evaled strings.
26107 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26110 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26116 *'\$0 --fallback-echo"')
26117 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26123 cat <<__EOF__ >> "$cfgfile"
26124 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26126 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26128 # Shell to use when invoking shell scripts.
26131 # Whether or not to build shared libraries.
26132 build_libtool_libs=$enable_shared
26134 # Whether or not to build static libraries.
26135 build_old_libs=$enable_static
26137 # Whether or not to add -lc for building shared libraries.
26138 build_libtool_need_lc=$archive_cmds_need_lc_RC
26140 # Whether or not to disallow shared libs when runtime libs are static
26141 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26143 # Whether or not to optimize for fast installation.
26144 fast_install=$enable_fast_install
26147 host_alias=$host_alias
26151 # The build system.
26152 build_alias=$build_alias
26156 # An echo program that does not interpret backslashes.
26161 AR_FLAGS=$lt_AR_FLAGS
26166 # LTCC compiler flags.
26167 LTCFLAGS=$lt_LTCFLAGS
26169 # A language-specific compiler.
26172 # Is the compiler the GNU C compiler?
26178 # The linker used to build libraries.
26181 # Whether we need hard or soft links.
26184 # A BSD-compatible nm program.
26187 # A symbol stripping program
26190 # Used to examine libraries when file_magic_cmd begins "file"
26191 MAGIC_CMD=$MAGIC_CMD
26193 # Used on cygwin: DLL creation program.
26196 # Used on cygwin: object dumper.
26199 # Used on cygwin: assembler.
26202 # The name of the directory that contains temporary libtool files.
26205 # How to create reloadable object files.
26206 reload_flag=$lt_reload_flag
26207 reload_cmds=$lt_reload_cmds
26209 # How to pass a linker flag through the compiler.
26210 wl=$lt_lt_prog_compiler_wl_RC
26212 # Object file suffix (normally "o").
26213 objext="$ac_objext"
26215 # Old archive suffix (normally "a").
26218 # Shared library suffix (normally ".so").
26219 shrext_cmds='$shrext_cmds'
26221 # Executable file suffix (normally "").
26224 # Additional compiler flags for building library objects.
26225 pic_flag=$lt_lt_prog_compiler_pic_RC
26228 # What is the maximum length of a command?
26229 max_cmd_len=$lt_cv_sys_max_cmd_len
26231 # Does compiler simultaneously support -c and -o options?
26232 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26234 # Must we lock files when doing compilation?
26235 need_locks=$lt_need_locks
26237 # Do we need the lib prefix for modules?
26238 need_lib_prefix=$need_lib_prefix
26240 # Do we need a version for libraries?
26241 need_version=$need_version
26243 # Whether dlopen is supported.
26244 dlopen_support=$enable_dlopen
26246 # Whether dlopen of programs is supported.
26247 dlopen_self=$enable_dlopen_self
26249 # Whether dlopen of statically linked programs is supported.
26250 dlopen_self_static=$enable_dlopen_self_static
26252 # Compiler flag to prevent dynamic linking.
26253 link_static_flag=$lt_lt_prog_compiler_static_RC
26255 # Compiler flag to turn off builtin functions.
26256 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26258 # Compiler flag to allow reflexive dlopens.
26259 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26261 # Compiler flag to generate shared objects directly from archives.
26262 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26264 # Compiler flag to generate thread-safe objects.
26265 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26267 # Library versioning type.
26268 version_type=$version_type
26270 # Format of library name prefix.
26271 libname_spec=$lt_libname_spec
26273 # List of archive names. First name is the real one, the rest are links.
26274 # The last name is the one that the linker finds with -lNAME.
26275 library_names_spec=$lt_library_names_spec
26277 # The coded name of the library, if different from the real name.
26278 soname_spec=$lt_soname_spec
26280 # Commands used to build and install an old-style archive.
26282 old_archive_cmds=$lt_old_archive_cmds_RC
26283 old_postinstall_cmds=$lt_old_postinstall_cmds
26284 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26286 # Create an old-style archive from a shared archive.
26287 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26289 # Create a temporary old-style archive to link instead of a shared archive.
26290 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26292 # Commands used to build and install a shared archive.
26293 archive_cmds=$lt_archive_cmds_RC
26294 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26295 postinstall_cmds=$lt_postinstall_cmds
26296 postuninstall_cmds=$lt_postuninstall_cmds
26298 # Commands used to build a loadable module (assumed same as above if empty)
26299 module_cmds=$lt_module_cmds_RC
26300 module_expsym_cmds=$lt_module_expsym_cmds_RC
26302 # Commands to strip libraries.
26303 old_striplib=$lt_old_striplib
26304 striplib=$lt_striplib
26306 # Dependencies to place before the objects being linked to create a
26308 predep_objects=$lt_predep_objects_RC
26310 # Dependencies to place after the objects being linked to create a
26312 postdep_objects=$lt_postdep_objects_RC
26314 # Dependencies to place before the objects being linked to create a
26316 predeps=$lt_predeps_RC
26318 # Dependencies to place after the objects being linked to create a
26320 postdeps=$lt_postdeps_RC
26322 # The library search path used internally by the compiler when linking
26323 # a shared library.
26324 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26326 # Method to check whether dependent libraries are shared objects.
26327 deplibs_check_method=$lt_deplibs_check_method
26329 # Command to use when deplibs_check_method == file_magic.
26330 file_magic_cmd=$lt_file_magic_cmd
26332 # Flag that allows shared libraries with undefined symbols to be built.
26333 allow_undefined_flag=$lt_allow_undefined_flag_RC
26335 # Flag that forces no undefined symbols.
26336 no_undefined_flag=$lt_no_undefined_flag_RC
26338 # Commands used to finish a libtool library installation in a directory.
26339 finish_cmds=$lt_finish_cmds
26341 # Same as above, but a single script fragment to be evaled but not shown.
26342 finish_eval=$lt_finish_eval
26344 # Take the output of nm and produce a listing of raw symbols and C names.
26345 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26347 # Transform the output of nm in a proper C declaration
26348 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26350 # Transform the output of nm in a C name address pair
26351 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26353 # This is the shared library runtime path variable.
26354 runpath_var=$runpath_var
26356 # This is the shared library path variable.
26357 shlibpath_var=$shlibpath_var
26359 # Is shlibpath searched before the hard-coded library search path?
26360 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26362 # How to hardcode a shared library path into an executable.
26363 hardcode_action=$hardcode_action_RC
26365 # Whether we should hardcode library paths into libraries.
26366 hardcode_into_libs=$hardcode_into_libs
26368 # Flag to hardcode \$libdir into a binary during linking.
26369 # This must work even if \$libdir does not exist.
26370 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26372 # If ld is used when linking, flag to hardcode \$libdir into
26373 # a binary during linking. This must work even if \$libdir does
26375 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26377 # Whether we need a single -rpath flag with a separated argument.
26378 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26380 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26381 # resulting binary.
26382 hardcode_direct=$hardcode_direct_RC
26384 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26385 # resulting binary.
26386 hardcode_minus_L=$hardcode_minus_L_RC
26388 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26389 # the resulting binary.
26390 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26392 # Set to yes if building a shared library automatically hardcodes DIR into the library
26393 # and all subsequent libraries and executables linked against it.
26394 hardcode_automatic=$hardcode_automatic_RC
26396 # Variables whose values should be saved in libtool wrapper scripts and
26397 # restored at relink time.
26398 variables_saved_for_relink="$variables_saved_for_relink"
26400 # Whether libtool must link a program against all its dependency libraries.
26401 link_all_deplibs=$link_all_deplibs_RC
26403 # Compile-time system search path for libraries
26404 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26406 # Run-time system search path for libraries
26407 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26409 # Fix the shell variable \$srcfile for the compiler.
26410 fix_srcfile_path="$fix_srcfile_path_RC"
26412 # Set to yes if exported symbols are required.
26413 always_export_symbols=$always_export_symbols_RC
26415 # The commands to list exported symbols.
26416 export_symbols_cmds=$lt_export_symbols_cmds_RC
26418 # The commands to extract the exported symbol list from a shared archive.
26419 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26421 # Symbols that should not be listed in the preloaded symbols.
26422 exclude_expsyms=$lt_exclude_expsyms_RC
26424 # Symbols that must always be exported.
26425 include_expsyms=$lt_include_expsyms_RC
26427 # ### END LIBTOOL TAG CONFIG: $tagname
26433 # If there is no Makefile yet, we rely on a make rule to execute
26434 # `config.status --recheck' to rerun these tests and create the
26435 # libtool script then.
26436 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26437 if test -f "$ltmain_in"; then
26438 test -f Makefile && make "$ltmain"
26444 ac_cpp='$CPP $CPPFLAGS'
26445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26454 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26455 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26456 { (exit 1); exit 1; }; }
26460 # Append the new tag name to the list of available tags.
26461 if test -n "$tagname" ; then
26462 available_tags="$available_tags $tagname"
26468 # Now substitute the updated list of available tags.
26469 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26470 mv "${ofile}T" "$ofile"
26474 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26475 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26476 { (exit 1); exit 1; }; }
26482 # This can be used to rebuild libtool when needed
26483 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26485 # Always use our own libtool.
26486 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26488 # Prevent multiple expansion
26510 if test "$lt_cv_dlopen_self" = "yes" ; then
26512 cat >>confdefs.h <<\_ACEOF
26513 #define CAN_DLOPEN_SELF 1
26518 etags_version=`$ETAGS --version 2>&1`
26519 case "$etags_version" in
26520 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26521 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26522 *) ETAGSFLAGS="" ;;
26524 ETAGSFLAGS=$ETAGSFLAGS
26527 if test "$WITH_LLVMGCCDIR" = "default" ; then
26528 LLVMGCC="llvm-gcc${EXEEXT}"
26529 LLVMGXX="llvm-g++${EXEEXT}"
26530 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26531 set dummy $LLVMGCC; ac_word=$2
26532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26534 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26535 echo $ECHO_N "(cached) $ECHO_C" >&6
26539 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26543 for as_dir in $PATH
26546 test -z "$as_dir" && as_dir=.
26547 for ac_exec_ext in '' $ac_executable_extensions; do
26548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26549 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26560 LLVMGCC=$ac_cv_path_LLVMGCC
26561 if test -n "$LLVMGCC"; then
26562 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26563 echo "${ECHO_T}$LLVMGCC" >&6; }
26565 { echo "$as_me:$LINENO: result: no" >&5
26566 echo "${ECHO_T}no" >&6; }
26570 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26571 set dummy $LLVMGXX; ac_word=$2
26572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26574 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26575 echo $ECHO_N "(cached) $ECHO_C" >&6
26579 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26583 for as_dir in $PATH
26586 test -z "$as_dir" && as_dir=.
26587 for ac_exec_ext in '' $ac_executable_extensions; do
26588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26589 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26600 LLVMGXX=$ac_cv_path_LLVMGXX
26601 if test -n "$LLVMGXX"; then
26602 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26603 echo "${ECHO_T}$LLVMGXX" >&6; }
26605 { echo "$as_me:$LINENO: result: no" >&5
26606 echo "${ECHO_T}no" >&6; }
26611 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26612 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26619 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26620 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26633 if test "$GCC" != "yes" && test "$ICC" != "yes"
26635 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26636 echo "$as_me: error: gcc|icc required but not found" >&2;}
26637 { (exit 1); exit 1; }; }
26640 if test "$GXX" != "yes" && test "$IXX" != "yes"
26642 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26643 echo "$as_me: error: g++|icc required but not found" >&2;}
26644 { (exit 1); exit 1; }; }
26647 if test "$GCC" = "yes"
26649 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26650 if test "$gccmajor" -lt "3"
26652 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26653 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26654 { (exit 1); exit 1; }; }
26658 if test -z "$llvm_cv_gnu_make_command"
26660 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26661 echo "$as_me: error: GNU Make required but not found" >&2;}
26662 { (exit 1); exit 1; }; }
26665 { echo "$as_me:$LINENO: result: ok" >&5
26666 echo "${ECHO_T}ok" >&6; }
26670 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26671 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26672 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26673 echo $ECHO_N "(cached) $ECHO_C" >&6
26675 ac_check_lib_save_LIBS=$LIBS
26677 cat >conftest.$ac_ext <<_ACEOF
26680 cat confdefs.h >>conftest.$ac_ext
26681 cat >>conftest.$ac_ext <<_ACEOF
26682 /* end confdefs.h. */
26684 /* Override any GCC internal prototype to avoid an error.
26685 Use char because int might match the return type of a GCC
26686 builtin and then its argument prototype would still apply. */
26694 return elf_begin ();
26699 rm -f conftest.$ac_objext conftest$ac_exeext
26700 if { (ac_try="$ac_link"
26701 case "(($ac_try" in
26702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26703 *) ac_try_echo=$ac_try;;
26705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26706 (eval "$ac_link") 2>conftest.er1
26708 grep -v '^ *+' conftest.er1 >conftest.err
26710 cat conftest.err >&5
26711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712 (exit $ac_status); } &&
26713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26714 { (case "(($ac_try" in
26715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26716 *) ac_try_echo=$ac_try;;
26718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26719 (eval "$ac_try") 2>&5
26721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26722 (exit $ac_status); }; } &&
26723 { ac_try='test -s conftest$ac_exeext'
26724 { (case "(($ac_try" in
26725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26726 *) ac_try_echo=$ac_try;;
26728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26729 (eval "$ac_try") 2>&5
26731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732 (exit $ac_status); }; }; then
26733 ac_cv_lib_elf_elf_begin=yes
26735 echo "$as_me: failed program was:" >&5
26736 sed 's/^/| /' conftest.$ac_ext >&5
26738 ac_cv_lib_elf_elf_begin=no
26741 rm -f core conftest.err conftest.$ac_objext \
26742 conftest$ac_exeext conftest.$ac_ext
26743 LIBS=$ac_check_lib_save_LIBS
26745 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26746 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26747 if test $ac_cv_lib_elf_elf_begin = yes; then
26748 cat >>confdefs.h <<_ACEOF
26749 #define HAVE_LIBELF 1
26757 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26758 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26759 if test "${ac_cv_lib_m_sin+set}" = set; then
26760 echo $ECHO_N "(cached) $ECHO_C" >&6
26762 ac_check_lib_save_LIBS=$LIBS
26764 cat >conftest.$ac_ext <<_ACEOF
26767 cat confdefs.h >>conftest.$ac_ext
26768 cat >>conftest.$ac_ext <<_ACEOF
26769 /* end confdefs.h. */
26771 /* Override any GCC internal prototype to avoid an error.
26772 Use char because int might match the return type of a GCC
26773 builtin and then its argument prototype would still apply. */
26786 rm -f conftest.$ac_objext conftest$ac_exeext
26787 if { (ac_try="$ac_link"
26788 case "(($ac_try" in
26789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26790 *) ac_try_echo=$ac_try;;
26792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26793 (eval "$ac_link") 2>conftest.er1
26795 grep -v '^ *+' conftest.er1 >conftest.err
26797 cat conftest.err >&5
26798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26799 (exit $ac_status); } &&
26800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26801 { (case "(($ac_try" in
26802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26803 *) ac_try_echo=$ac_try;;
26805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26806 (eval "$ac_try") 2>&5
26808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26809 (exit $ac_status); }; } &&
26810 { ac_try='test -s conftest$ac_exeext'
26811 { (case "(($ac_try" in
26812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26813 *) ac_try_echo=$ac_try;;
26815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26816 (eval "$ac_try") 2>&5
26818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26819 (exit $ac_status); }; }; then
26820 ac_cv_lib_m_sin=yes
26822 echo "$as_me: failed program was:" >&5
26823 sed 's/^/| /' conftest.$ac_ext >&5
26828 rm -f core conftest.err conftest.$ac_objext \
26829 conftest$ac_exeext conftest.$ac_ext
26830 LIBS=$ac_check_lib_save_LIBS
26832 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26833 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26834 if test $ac_cv_lib_m_sin = yes; then
26835 cat >>confdefs.h <<_ACEOF
26836 #define HAVE_LIBM 1
26843 if test "$llvm_cv_os_type" == "MingW" ; then
26845 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26846 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26847 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26848 echo $ECHO_N "(cached) $ECHO_C" >&6
26850 ac_check_lib_save_LIBS=$LIBS
26851 LIBS="-limagehlp $LIBS"
26852 cat >conftest.$ac_ext <<_ACEOF
26855 cat confdefs.h >>conftest.$ac_ext
26856 cat >>conftest.$ac_ext <<_ACEOF
26857 /* end confdefs.h. */
26868 rm -f conftest.$ac_objext conftest$ac_exeext
26869 if { (ac_try="$ac_link"
26870 case "(($ac_try" in
26871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26872 *) ac_try_echo=$ac_try;;
26874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26875 (eval "$ac_link") 2>conftest.er1
26877 grep -v '^ *+' conftest.er1 >conftest.err
26879 cat conftest.err >&5
26880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881 (exit $ac_status); } &&
26882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26883 { (case "(($ac_try" in
26884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26885 *) ac_try_echo=$ac_try;;
26887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26888 (eval "$ac_try") 2>&5
26890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26891 (exit $ac_status); }; } &&
26892 { ac_try='test -s conftest$ac_exeext'
26893 { (case "(($ac_try" in
26894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26895 *) ac_try_echo=$ac_try;;
26897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26898 (eval "$ac_try") 2>&5
26900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26901 (exit $ac_status); }; }; then
26902 ac_cv_lib_imagehlp_main=yes
26904 echo "$as_me: failed program was:" >&5
26905 sed 's/^/| /' conftest.$ac_ext >&5
26907 ac_cv_lib_imagehlp_main=no
26910 rm -f core conftest.err conftest.$ac_objext \
26911 conftest$ac_exeext conftest.$ac_ext
26912 LIBS=$ac_check_lib_save_LIBS
26914 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26915 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26916 if test $ac_cv_lib_imagehlp_main = yes; then
26917 cat >>confdefs.h <<_ACEOF
26918 #define HAVE_LIBIMAGEHLP 1
26921 LIBS="-limagehlp $LIBS"
26926 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26927 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
26928 if test "${ac_cv_lib_psapi_main+set}" = set; then
26929 echo $ECHO_N "(cached) $ECHO_C" >&6
26931 ac_check_lib_save_LIBS=$LIBS
26932 LIBS="-lpsapi $LIBS"
26933 cat >conftest.$ac_ext <<_ACEOF
26936 cat confdefs.h >>conftest.$ac_ext
26937 cat >>conftest.$ac_ext <<_ACEOF
26938 /* end confdefs.h. */
26949 rm -f conftest.$ac_objext conftest$ac_exeext
26950 if { (ac_try="$ac_link"
26951 case "(($ac_try" in
26952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26953 *) ac_try_echo=$ac_try;;
26955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26956 (eval "$ac_link") 2>conftest.er1
26958 grep -v '^ *+' conftest.er1 >conftest.err
26960 cat conftest.err >&5
26961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962 (exit $ac_status); } &&
26963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26964 { (case "(($ac_try" in
26965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26966 *) ac_try_echo=$ac_try;;
26968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26969 (eval "$ac_try") 2>&5
26971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972 (exit $ac_status); }; } &&
26973 { ac_try='test -s conftest$ac_exeext'
26974 { (case "(($ac_try" in
26975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26976 *) ac_try_echo=$ac_try;;
26978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26979 (eval "$ac_try") 2>&5
26981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26982 (exit $ac_status); }; }; then
26983 ac_cv_lib_psapi_main=yes
26985 echo "$as_me: failed program was:" >&5
26986 sed 's/^/| /' conftest.$ac_ext >&5
26988 ac_cv_lib_psapi_main=no
26991 rm -f core conftest.err conftest.$ac_objext \
26992 conftest$ac_exeext conftest.$ac_ext
26993 LIBS=$ac_check_lib_save_LIBS
26995 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
26996 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
26997 if test $ac_cv_lib_psapi_main = yes; then
26998 cat >>confdefs.h <<_ACEOF
26999 #define HAVE_LIBPSAPI 1
27002 LIBS="-lpsapi $LIBS"
27008 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27009 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27010 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27011 echo $ECHO_N "(cached) $ECHO_C" >&6
27013 ac_func_search_save_LIBS=$LIBS
27014 cat >conftest.$ac_ext <<_ACEOF
27017 cat confdefs.h >>conftest.$ac_ext
27018 cat >>conftest.$ac_ext <<_ACEOF
27019 /* end confdefs.h. */
27021 /* Override any GCC internal prototype to avoid an error.
27022 Use char because int might match the return type of a GCC
27023 builtin and then its argument prototype would still apply. */
27031 return lt_dlopen ();
27036 for ac_lib in '' ltdl; do
27037 if test -z "$ac_lib"; then
27038 ac_res="none required"
27041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27043 rm -f conftest.$ac_objext conftest$ac_exeext
27044 if { (ac_try="$ac_link"
27045 case "(($ac_try" in
27046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27047 *) ac_try_echo=$ac_try;;
27049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27050 (eval "$ac_link") 2>conftest.er1
27052 grep -v '^ *+' conftest.er1 >conftest.err
27054 cat conftest.err >&5
27055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056 (exit $ac_status); } &&
27057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27058 { (case "(($ac_try" in
27059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27060 *) ac_try_echo=$ac_try;;
27062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27063 (eval "$ac_try") 2>&5
27065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066 (exit $ac_status); }; } &&
27067 { ac_try='test -s conftest$ac_exeext'
27068 { (case "(($ac_try" in
27069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27070 *) ac_try_echo=$ac_try;;
27072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27073 (eval "$ac_try") 2>&5
27075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076 (exit $ac_status); }; }; then
27077 ac_cv_search_lt_dlopen=$ac_res
27079 echo "$as_me: failed program was:" >&5
27080 sed 's/^/| /' conftest.$ac_ext >&5
27085 rm -f core conftest.err conftest.$ac_objext \
27087 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27091 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27094 ac_cv_search_lt_dlopen=no
27096 rm conftest.$ac_ext
27097 LIBS=$ac_func_search_save_LIBS
27099 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27100 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27101 ac_res=$ac_cv_search_lt_dlopen
27102 if test "$ac_res" != no; then
27103 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27105 cat >>confdefs.h <<\_ACEOF
27106 #define HAVE_LT_DLOPEN 1
27110 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27111 not be available" >&5
27112 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27113 not be available" >&2;}
27117 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27118 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27119 if test "${ac_cv_search_dlopen+set}" = set; then
27120 echo $ECHO_N "(cached) $ECHO_C" >&6
27122 ac_func_search_save_LIBS=$LIBS
27123 cat >conftest.$ac_ext <<_ACEOF
27126 cat confdefs.h >>conftest.$ac_ext
27127 cat >>conftest.$ac_ext <<_ACEOF
27128 /* end confdefs.h. */
27130 /* Override any GCC internal prototype to avoid an error.
27131 Use char because int might match the return type of a GCC
27132 builtin and then its argument prototype would still apply. */
27145 for ac_lib in '' dl; do
27146 if test -z "$ac_lib"; then
27147 ac_res="none required"
27150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27152 rm -f conftest.$ac_objext conftest$ac_exeext
27153 if { (ac_try="$ac_link"
27154 case "(($ac_try" in
27155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27156 *) ac_try_echo=$ac_try;;
27158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27159 (eval "$ac_link") 2>conftest.er1
27161 grep -v '^ *+' conftest.er1 >conftest.err
27163 cat conftest.err >&5
27164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27165 (exit $ac_status); } &&
27166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27167 { (case "(($ac_try" in
27168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27169 *) ac_try_echo=$ac_try;;
27171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27172 (eval "$ac_try") 2>&5
27174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27175 (exit $ac_status); }; } &&
27176 { ac_try='test -s conftest$ac_exeext'
27177 { (case "(($ac_try" in
27178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27179 *) ac_try_echo=$ac_try;;
27181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27182 (eval "$ac_try") 2>&5
27184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185 (exit $ac_status); }; }; then
27186 ac_cv_search_dlopen=$ac_res
27188 echo "$as_me: failed program was:" >&5
27189 sed 's/^/| /' conftest.$ac_ext >&5
27194 rm -f core conftest.err conftest.$ac_objext \
27196 if test "${ac_cv_search_dlopen+set}" = set; then
27200 if test "${ac_cv_search_dlopen+set}" = set; then
27203 ac_cv_search_dlopen=no
27205 rm conftest.$ac_ext
27206 LIBS=$ac_func_search_save_LIBS
27208 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27209 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27210 ac_res=$ac_cv_search_dlopen
27211 if test "$ac_res" != no; then
27212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27214 cat >>confdefs.h <<\_ACEOF
27215 #define HAVE_DLOPEN 1
27219 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27220 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27224 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27225 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27226 if test "${ac_cv_search_mallinfo+set}" = set; then
27227 echo $ECHO_N "(cached) $ECHO_C" >&6
27229 ac_func_search_save_LIBS=$LIBS
27230 cat >conftest.$ac_ext <<_ACEOF
27233 cat confdefs.h >>conftest.$ac_ext
27234 cat >>conftest.$ac_ext <<_ACEOF
27235 /* end confdefs.h. */
27237 /* Override any GCC internal prototype to avoid an error.
27238 Use char because int might match the return type of a GCC
27239 builtin and then its argument prototype would still apply. */
27247 return mallinfo ();
27252 for ac_lib in '' malloc; do
27253 if test -z "$ac_lib"; then
27254 ac_res="none required"
27257 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27259 rm -f conftest.$ac_objext conftest$ac_exeext
27260 if { (ac_try="$ac_link"
27261 case "(($ac_try" in
27262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27263 *) ac_try_echo=$ac_try;;
27265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27266 (eval "$ac_link") 2>conftest.er1
27268 grep -v '^ *+' conftest.er1 >conftest.err
27270 cat conftest.err >&5
27271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272 (exit $ac_status); } &&
27273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27274 { (case "(($ac_try" in
27275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27276 *) ac_try_echo=$ac_try;;
27278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27279 (eval "$ac_try") 2>&5
27281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27282 (exit $ac_status); }; } &&
27283 { ac_try='test -s conftest$ac_exeext'
27284 { (case "(($ac_try" in
27285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27286 *) ac_try_echo=$ac_try;;
27288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27289 (eval "$ac_try") 2>&5
27291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27292 (exit $ac_status); }; }; then
27293 ac_cv_search_mallinfo=$ac_res
27295 echo "$as_me: failed program was:" >&5
27296 sed 's/^/| /' conftest.$ac_ext >&5
27301 rm -f core conftest.err conftest.$ac_objext \
27303 if test "${ac_cv_search_mallinfo+set}" = set; then
27307 if test "${ac_cv_search_mallinfo+set}" = set; then
27310 ac_cv_search_mallinfo=no
27312 rm conftest.$ac_ext
27313 LIBS=$ac_func_search_save_LIBS
27315 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27316 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27317 ac_res=$ac_cv_search_mallinfo
27318 if test "$ac_res" != no; then
27319 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27321 cat >>confdefs.h <<\_ACEOF
27322 #define HAVE_MALLINFO 1
27328 if test "$ENABLE_THREADS" -eq 1 ; then
27330 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27331 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27332 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27333 echo $ECHO_N "(cached) $ECHO_C" >&6
27335 ac_check_lib_save_LIBS=$LIBS
27336 LIBS="-lpthread $LIBS"
27337 cat >conftest.$ac_ext <<_ACEOF
27340 cat confdefs.h >>conftest.$ac_ext
27341 cat >>conftest.$ac_ext <<_ACEOF
27342 /* end confdefs.h. */
27344 /* Override any GCC internal prototype to avoid an error.
27345 Use char because int might match the return type of a GCC
27346 builtin and then its argument prototype would still apply. */
27350 char pthread_mutex_init ();
27354 return pthread_mutex_init ();
27359 rm -f conftest.$ac_objext conftest$ac_exeext
27360 if { (ac_try="$ac_link"
27361 case "(($ac_try" in
27362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27363 *) ac_try_echo=$ac_try;;
27365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27366 (eval "$ac_link") 2>conftest.er1
27368 grep -v '^ *+' conftest.er1 >conftest.err
27370 cat conftest.err >&5
27371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27372 (exit $ac_status); } &&
27373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27374 { (case "(($ac_try" in
27375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27376 *) ac_try_echo=$ac_try;;
27378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27379 (eval "$ac_try") 2>&5
27381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382 (exit $ac_status); }; } &&
27383 { ac_try='test -s conftest$ac_exeext'
27384 { (case "(($ac_try" in
27385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27386 *) ac_try_echo=$ac_try;;
27388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27389 (eval "$ac_try") 2>&5
27391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392 (exit $ac_status); }; }; then
27393 ac_cv_lib_pthread_pthread_mutex_init=yes
27395 echo "$as_me: failed program was:" >&5
27396 sed 's/^/| /' conftest.$ac_ext >&5
27398 ac_cv_lib_pthread_pthread_mutex_init=no
27401 rm -f core conftest.err conftest.$ac_objext \
27402 conftest$ac_exeext conftest.$ac_ext
27403 LIBS=$ac_check_lib_save_LIBS
27405 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27406 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27407 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27408 cat >>confdefs.h <<_ACEOF
27409 #define HAVE_LIBPTHREAD 1
27412 LIBS="-lpthread $LIBS"
27416 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27417 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27418 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27419 echo $ECHO_N "(cached) $ECHO_C" >&6
27421 ac_func_search_save_LIBS=$LIBS
27422 cat >conftest.$ac_ext <<_ACEOF
27425 cat confdefs.h >>conftest.$ac_ext
27426 cat >>conftest.$ac_ext <<_ACEOF
27427 /* end confdefs.h. */
27429 /* Override any GCC internal prototype to avoid an error.
27430 Use char because int might match the return type of a GCC
27431 builtin and then its argument prototype would still apply. */
27435 char pthread_mutex_lock ();
27439 return pthread_mutex_lock ();
27444 for ac_lib in '' pthread; do
27445 if test -z "$ac_lib"; then
27446 ac_res="none required"
27449 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27451 rm -f conftest.$ac_objext conftest$ac_exeext
27452 if { (ac_try="$ac_link"
27453 case "(($ac_try" in
27454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27455 *) ac_try_echo=$ac_try;;
27457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27458 (eval "$ac_link") 2>conftest.er1
27460 grep -v '^ *+' conftest.er1 >conftest.err
27462 cat conftest.err >&5
27463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464 (exit $ac_status); } &&
27465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27466 { (case "(($ac_try" in
27467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27468 *) ac_try_echo=$ac_try;;
27470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27471 (eval "$ac_try") 2>&5
27473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474 (exit $ac_status); }; } &&
27475 { ac_try='test -s conftest$ac_exeext'
27476 { (case "(($ac_try" in
27477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27478 *) ac_try_echo=$ac_try;;
27480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27481 (eval "$ac_try") 2>&5
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); }; }; then
27485 ac_cv_search_pthread_mutex_lock=$ac_res
27487 echo "$as_me: failed program was:" >&5
27488 sed 's/^/| /' conftest.$ac_ext >&5
27493 rm -f core conftest.err conftest.$ac_objext \
27495 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27499 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27502 ac_cv_search_pthread_mutex_lock=no
27504 rm conftest.$ac_ext
27505 LIBS=$ac_func_search_save_LIBS
27507 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27508 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27509 ac_res=$ac_cv_search_pthread_mutex_lock
27510 if test "$ac_res" != no; then
27511 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27513 cat >>confdefs.h <<\_ACEOF
27514 #define HAVE_PTHREAD_MUTEX_LOCK 1
27527 ac_header_dirent=no
27528 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27529 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27530 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27531 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27533 echo $ECHO_N "(cached) $ECHO_C" >&6
27535 cat >conftest.$ac_ext <<_ACEOF
27538 cat confdefs.h >>conftest.$ac_ext
27539 cat >>conftest.$ac_ext <<_ACEOF
27540 /* end confdefs.h. */
27541 #include <sys/types.h>
27553 rm -f conftest.$ac_objext
27554 if { (ac_try="$ac_compile"
27555 case "(($ac_try" in
27556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27557 *) ac_try_echo=$ac_try;;
27559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27560 (eval "$ac_compile") 2>conftest.er1
27562 grep -v '^ *+' conftest.er1 >conftest.err
27564 cat conftest.err >&5
27565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566 (exit $ac_status); } &&
27567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27568 { (case "(($ac_try" in
27569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27570 *) ac_try_echo=$ac_try;;
27572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27573 (eval "$ac_try") 2>&5
27575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576 (exit $ac_status); }; } &&
27577 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27587 eval "$as_ac_Header=yes"
27589 echo "$as_me: failed program was:" >&5
27590 sed 's/^/| /' conftest.$ac_ext >&5
27592 eval "$as_ac_Header=no"
27595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27597 ac_res=`eval echo '${'$as_ac_Header'}'`
27598 { echo "$as_me:$LINENO: result: $ac_res" >&5
27599 echo "${ECHO_T}$ac_res" >&6; }
27600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27601 cat >>confdefs.h <<_ACEOF
27602 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27605 ac_header_dirent=$ac_hdr; break
27609 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27610 if test $ac_header_dirent = dirent.h; then
27611 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27612 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27613 if test "${ac_cv_search_opendir+set}" = set; then
27614 echo $ECHO_N "(cached) $ECHO_C" >&6
27616 ac_func_search_save_LIBS=$LIBS
27617 cat >conftest.$ac_ext <<_ACEOF
27620 cat confdefs.h >>conftest.$ac_ext
27621 cat >>conftest.$ac_ext <<_ACEOF
27622 /* end confdefs.h. */
27624 /* Override any GCC internal prototype to avoid an error.
27625 Use char because int might match the return type of a GCC
27626 builtin and then its argument prototype would still apply. */
27639 for ac_lib in '' dir; do
27640 if test -z "$ac_lib"; then
27641 ac_res="none required"
27644 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27646 rm -f conftest.$ac_objext conftest$ac_exeext
27647 if { (ac_try="$ac_link"
27648 case "(($ac_try" in
27649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27650 *) ac_try_echo=$ac_try;;
27652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27653 (eval "$ac_link") 2>conftest.er1
27655 grep -v '^ *+' conftest.er1 >conftest.err
27657 cat conftest.err >&5
27658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659 (exit $ac_status); } &&
27660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27661 { (case "(($ac_try" in
27662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27663 *) ac_try_echo=$ac_try;;
27665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27666 (eval "$ac_try") 2>&5
27668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27669 (exit $ac_status); }; } &&
27670 { ac_try='test -s conftest$ac_exeext'
27671 { (case "(($ac_try" in
27672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27673 *) ac_try_echo=$ac_try;;
27675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27676 (eval "$ac_try") 2>&5
27678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679 (exit $ac_status); }; }; then
27680 ac_cv_search_opendir=$ac_res
27682 echo "$as_me: failed program was:" >&5
27683 sed 's/^/| /' conftest.$ac_ext >&5
27688 rm -f core conftest.err conftest.$ac_objext \
27690 if test "${ac_cv_search_opendir+set}" = set; then
27694 if test "${ac_cv_search_opendir+set}" = set; then
27697 ac_cv_search_opendir=no
27699 rm conftest.$ac_ext
27700 LIBS=$ac_func_search_save_LIBS
27702 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27703 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27704 ac_res=$ac_cv_search_opendir
27705 if test "$ac_res" != no; then
27706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27711 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27712 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27713 if test "${ac_cv_search_opendir+set}" = set; then
27714 echo $ECHO_N "(cached) $ECHO_C" >&6
27716 ac_func_search_save_LIBS=$LIBS
27717 cat >conftest.$ac_ext <<_ACEOF
27720 cat confdefs.h >>conftest.$ac_ext
27721 cat >>conftest.$ac_ext <<_ACEOF
27722 /* end confdefs.h. */
27724 /* Override any GCC internal prototype to avoid an error.
27725 Use char because int might match the return type of a GCC
27726 builtin and then its argument prototype would still apply. */
27739 for ac_lib in '' x; do
27740 if test -z "$ac_lib"; then
27741 ac_res="none required"
27744 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27746 rm -f conftest.$ac_objext conftest$ac_exeext
27747 if { (ac_try="$ac_link"
27748 case "(($ac_try" in
27749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27750 *) ac_try_echo=$ac_try;;
27752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27753 (eval "$ac_link") 2>conftest.er1
27755 grep -v '^ *+' conftest.er1 >conftest.err
27757 cat conftest.err >&5
27758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759 (exit $ac_status); } &&
27760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27761 { (case "(($ac_try" in
27762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27763 *) ac_try_echo=$ac_try;;
27765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27766 (eval "$ac_try") 2>&5
27768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769 (exit $ac_status); }; } &&
27770 { ac_try='test -s conftest$ac_exeext'
27771 { (case "(($ac_try" in
27772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27773 *) ac_try_echo=$ac_try;;
27775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27776 (eval "$ac_try") 2>&5
27778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779 (exit $ac_status); }; }; then
27780 ac_cv_search_opendir=$ac_res
27782 echo "$as_me: failed program was:" >&5
27783 sed 's/^/| /' conftest.$ac_ext >&5
27788 rm -f core conftest.err conftest.$ac_objext \
27790 if test "${ac_cv_search_opendir+set}" = set; then
27794 if test "${ac_cv_search_opendir+set}" = set; then
27797 ac_cv_search_opendir=no
27799 rm conftest.$ac_ext
27800 LIBS=$ac_func_search_save_LIBS
27802 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27803 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27804 ac_res=$ac_cv_search_opendir
27805 if test "$ac_res" != no; then
27806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27812 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27813 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
27814 if test "${ac_cv_header_mmap_anon+set}" = set; then
27815 echo $ECHO_N "(cached) $ECHO_C" >&6
27818 ac_cpp='$CPP $CPPFLAGS'
27819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27823 cat >conftest.$ac_ext <<_ACEOF
27826 cat confdefs.h >>conftest.$ac_ext
27827 cat >>conftest.$ac_ext <<_ACEOF
27828 /* end confdefs.h. */
27829 #include <sys/mman.h>
27830 #include <unistd.h>
27835 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27840 rm -f conftest.$ac_objext
27841 if { (ac_try="$ac_compile"
27842 case "(($ac_try" in
27843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27844 *) ac_try_echo=$ac_try;;
27846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27847 (eval "$ac_compile") 2>conftest.er1
27849 grep -v '^ *+' conftest.er1 >conftest.err
27851 cat conftest.err >&5
27852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853 (exit $ac_status); } &&
27854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27855 { (case "(($ac_try" in
27856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27857 *) ac_try_echo=$ac_try;;
27859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27860 (eval "$ac_try") 2>&5
27862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863 (exit $ac_status); }; } &&
27864 { ac_try='test -s conftest.$ac_objext'
27865 { (case "(($ac_try" in
27866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27867 *) ac_try_echo=$ac_try;;
27869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27870 (eval "$ac_try") 2>&5
27872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27873 (exit $ac_status); }; }; then
27874 ac_cv_header_mmap_anon=yes
27876 echo "$as_me: failed program was:" >&5
27877 sed 's/^/| /' conftest.$ac_ext >&5
27879 ac_cv_header_mmap_anon=no
27882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27884 ac_cpp='$CPP $CPPFLAGS'
27885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27891 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27892 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
27893 if test "$ac_cv_header_mmap_anon" = yes; then
27895 cat >>confdefs.h <<\_ACEOF
27896 #define HAVE_MMAP_ANONYMOUS 1
27901 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27902 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
27903 if test "${ac_cv_header_stat_broken+set}" = set; then
27904 echo $ECHO_N "(cached) $ECHO_C" >&6
27906 cat >conftest.$ac_ext <<_ACEOF
27909 cat confdefs.h >>conftest.$ac_ext
27910 cat >>conftest.$ac_ext <<_ACEOF
27911 /* end confdefs.h. */
27912 #include <sys/types.h>
27913 #include <sys/stat.h>
27915 #if defined S_ISBLK && defined S_IFDIR
27916 # if S_ISBLK (S_IFDIR)
27921 #if defined S_ISBLK && defined S_IFCHR
27922 # if S_ISBLK (S_IFCHR)
27927 #if defined S_ISLNK && defined S_IFREG
27928 # if S_ISLNK (S_IFREG)
27933 #if defined S_ISSOCK && defined S_IFREG
27934 # if S_ISSOCK (S_IFREG)
27940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27941 $EGREP "You lose" >/dev/null 2>&1; then
27942 ac_cv_header_stat_broken=yes
27944 ac_cv_header_stat_broken=no
27949 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27950 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
27951 if test $ac_cv_header_stat_broken = yes; then
27953 cat >>confdefs.h <<\_ACEOF
27954 #define STAT_MACROS_BROKEN 1
27959 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27960 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
27961 if test "${ac_cv_header_stdc+set}" = set; then
27962 echo $ECHO_N "(cached) $ECHO_C" >&6
27964 cat >conftest.$ac_ext <<_ACEOF
27967 cat confdefs.h >>conftest.$ac_ext
27968 cat >>conftest.$ac_ext <<_ACEOF
27969 /* end confdefs.h. */
27970 #include <stdlib.h>
27971 #include <stdarg.h>
27972 #include <string.h>
27983 rm -f conftest.$ac_objext
27984 if { (ac_try="$ac_compile"
27985 case "(($ac_try" in
27986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27987 *) ac_try_echo=$ac_try;;
27989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27990 (eval "$ac_compile") 2>conftest.er1
27992 grep -v '^ *+' conftest.er1 >conftest.err
27994 cat conftest.err >&5
27995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996 (exit $ac_status); } &&
27997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27998 { (case "(($ac_try" in
27999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28000 *) ac_try_echo=$ac_try;;
28002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28003 (eval "$ac_try") 2>&5
28005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28006 (exit $ac_status); }; } &&
28007 { ac_try='test -s conftest.$ac_objext'
28008 { (case "(($ac_try" in
28009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28010 *) ac_try_echo=$ac_try;;
28012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28013 (eval "$ac_try") 2>&5
28015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28016 (exit $ac_status); }; }; then
28017 ac_cv_header_stdc=yes
28019 echo "$as_me: failed program was:" >&5
28020 sed 's/^/| /' conftest.$ac_ext >&5
28022 ac_cv_header_stdc=no
28025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28027 if test $ac_cv_header_stdc = yes; then
28028 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28029 cat >conftest.$ac_ext <<_ACEOF
28032 cat confdefs.h >>conftest.$ac_ext
28033 cat >>conftest.$ac_ext <<_ACEOF
28034 /* end confdefs.h. */
28035 #include <string.h>
28038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28039 $EGREP "memchr" >/dev/null 2>&1; then
28042 ac_cv_header_stdc=no
28048 if test $ac_cv_header_stdc = yes; then
28049 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28050 cat >conftest.$ac_ext <<_ACEOF
28053 cat confdefs.h >>conftest.$ac_ext
28054 cat >>conftest.$ac_ext <<_ACEOF
28055 /* end confdefs.h. */
28056 #include <stdlib.h>
28059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28060 $EGREP "free" >/dev/null 2>&1; then
28063 ac_cv_header_stdc=no
28069 if test $ac_cv_header_stdc = yes; then
28070 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28071 if test "$cross_compiling" = yes; then
28074 cat >conftest.$ac_ext <<_ACEOF
28077 cat confdefs.h >>conftest.$ac_ext
28078 cat >>conftest.$ac_ext <<_ACEOF
28079 /* end confdefs.h. */
28081 #include <stdlib.h>
28082 #if ((' ' & 0x0FF) == 0x020)
28083 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28084 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28086 # define ISLOWER(c) \
28087 (('a' <= (c) && (c) <= 'i') \
28088 || ('j' <= (c) && (c) <= 'r') \
28089 || ('s' <= (c) && (c) <= 'z'))
28090 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28093 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28098 for (i = 0; i < 256; i++)
28099 if (XOR (islower (i), ISLOWER (i))
28100 || toupper (i) != TOUPPER (i))
28105 rm -f conftest$ac_exeext
28106 if { (ac_try="$ac_link"
28107 case "(($ac_try" in
28108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28109 *) ac_try_echo=$ac_try;;
28111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28112 (eval "$ac_link") 2>&5
28114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28116 { (case "(($ac_try" in
28117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28118 *) ac_try_echo=$ac_try;;
28120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28121 (eval "$ac_try") 2>&5
28123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124 (exit $ac_status); }; }; then
28127 echo "$as_me: program exited with status $ac_status" >&5
28128 echo "$as_me: failed program was:" >&5
28129 sed 's/^/| /' conftest.$ac_ext >&5
28131 ( exit $ac_status )
28132 ac_cv_header_stdc=no
28134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28140 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28141 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28142 if test $ac_cv_header_stdc = yes; then
28144 cat >>confdefs.h <<\_ACEOF
28145 #define STDC_HEADERS 1
28150 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28151 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28152 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28153 echo $ECHO_N "(cached) $ECHO_C" >&6
28155 cat >conftest.$ac_ext <<_ACEOF
28158 cat confdefs.h >>conftest.$ac_ext
28159 cat >>conftest.$ac_ext <<_ACEOF
28160 /* end confdefs.h. */
28161 #include <sys/types.h>
28162 #include <sys/wait.h>
28163 #ifndef WEXITSTATUS
28164 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28167 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28175 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28180 rm -f conftest.$ac_objext
28181 if { (ac_try="$ac_compile"
28182 case "(($ac_try" in
28183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28184 *) ac_try_echo=$ac_try;;
28186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28187 (eval "$ac_compile") 2>conftest.er1
28189 grep -v '^ *+' conftest.er1 >conftest.err
28191 cat conftest.err >&5
28192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193 (exit $ac_status); } &&
28194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28195 { (case "(($ac_try" in
28196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28197 *) ac_try_echo=$ac_try;;
28199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28200 (eval "$ac_try") 2>&5
28202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203 (exit $ac_status); }; } &&
28204 { ac_try='test -s conftest.$ac_objext'
28205 { (case "(($ac_try" in
28206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28207 *) ac_try_echo=$ac_try;;
28209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28210 (eval "$ac_try") 2>&5
28212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213 (exit $ac_status); }; }; then
28214 ac_cv_header_sys_wait_h=yes
28216 echo "$as_me: failed program was:" >&5
28217 sed 's/^/| /' conftest.$ac_ext >&5
28219 ac_cv_header_sys_wait_h=no
28222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28224 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28225 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28226 if test $ac_cv_header_sys_wait_h = yes; then
28228 cat >>confdefs.h <<\_ACEOF
28229 #define HAVE_SYS_WAIT_H 1
28234 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28235 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28236 if test "${ac_cv_header_time+set}" = set; then
28237 echo $ECHO_N "(cached) $ECHO_C" >&6
28239 cat >conftest.$ac_ext <<_ACEOF
28242 cat confdefs.h >>conftest.$ac_ext
28243 cat >>conftest.$ac_ext <<_ACEOF
28244 /* end confdefs.h. */
28245 #include <sys/types.h>
28246 #include <sys/time.h>
28252 if ((struct tm *) 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_time=yes
28294 echo "$as_me: failed program was:" >&5
28295 sed 's/^/| /' conftest.$ac_ext >&5
28297 ac_cv_header_time=no
28300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28302 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28303 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28304 if test $ac_cv_header_time = yes; then
28306 cat >>confdefs.h <<\_ACEOF
28307 #define TIME_WITH_SYS_TIME 1
28319 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28326 echo $ECHO_N "(cached) $ECHO_C" >&6
28328 ac_res=`eval echo '${'$as_ac_Header'}'`
28329 { echo "$as_me:$LINENO: result: $ac_res" >&5
28330 echo "${ECHO_T}$ac_res" >&6; }
28332 # Is the header compilable?
28333 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28335 cat >conftest.$ac_ext <<_ACEOF
28338 cat confdefs.h >>conftest.$ac_ext
28339 cat >>conftest.$ac_ext <<_ACEOF
28340 /* end confdefs.h. */
28341 $ac_includes_default
28342 #include <$ac_header>
28344 rm -f conftest.$ac_objext
28345 if { (ac_try="$ac_compile"
28346 case "(($ac_try" in
28347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28348 *) ac_try_echo=$ac_try;;
28350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28351 (eval "$ac_compile") 2>conftest.er1
28353 grep -v '^ *+' conftest.er1 >conftest.err
28355 cat conftest.err >&5
28356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357 (exit $ac_status); } &&
28358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28359 { (case "(($ac_try" in
28360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28361 *) ac_try_echo=$ac_try;;
28363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28364 (eval "$ac_try") 2>&5
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); }; } &&
28368 { ac_try='test -s conftest.$ac_objext'
28369 { (case "(($ac_try" in
28370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28371 *) ac_try_echo=$ac_try;;
28373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28374 (eval "$ac_try") 2>&5
28376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377 (exit $ac_status); }; }; then
28378 ac_header_compiler=yes
28380 echo "$as_me: failed program was:" >&5
28381 sed 's/^/| /' conftest.$ac_ext >&5
28383 ac_header_compiler=no
28386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28388 echo "${ECHO_T}$ac_header_compiler" >&6; }
28390 # Is the header present?
28391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28393 cat >conftest.$ac_ext <<_ACEOF
28396 cat confdefs.h >>conftest.$ac_ext
28397 cat >>conftest.$ac_ext <<_ACEOF
28398 /* end confdefs.h. */
28399 #include <$ac_header>
28401 if { (ac_try="$ac_cpp conftest.$ac_ext"
28402 case "(($ac_try" in
28403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28404 *) ac_try_echo=$ac_try;;
28406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28409 grep -v '^ *+' conftest.er1 >conftest.err
28411 cat conftest.err >&5
28412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413 (exit $ac_status); } >/dev/null; then
28414 if test -s conftest.err; then
28415 ac_cpp_err=$ac_c_preproc_warn_flag
28416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28423 if test -z "$ac_cpp_err"; then
28424 ac_header_preproc=yes
28426 echo "$as_me: failed program was:" >&5
28427 sed 's/^/| /' conftest.$ac_ext >&5
28429 ac_header_preproc=no
28432 rm -f conftest.err conftest.$ac_ext
28433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28434 echo "${ECHO_T}$ac_header_preproc" >&6; }
28436 # So? What about this header?
28437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28443 ac_header_preproc=yes
28446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28449 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28453 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28459 ## ----------------------------------- ##
28460 ## Report this to llvmbugs@cs.uiuc.edu ##
28461 ## ----------------------------------- ##
28463 ) | sed "s/^/$as_me: WARNING: /" >&2
28466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28469 echo $ECHO_N "(cached) $ECHO_C" >&6
28471 eval "$as_ac_Header=\$ac_header_preproc"
28473 ac_res=`eval echo '${'$as_ac_Header'}'`
28474 { echo "$as_me:$LINENO: result: $ac_res" >&5
28475 echo "${ECHO_T}$ac_res" >&6; }
28478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28479 cat >>confdefs.h <<_ACEOF
28480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28493 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28500 echo $ECHO_N "(cached) $ECHO_C" >&6
28502 ac_res=`eval echo '${'$as_ac_Header'}'`
28503 { echo "$as_me:$LINENO: result: $ac_res" >&5
28504 echo "${ECHO_T}$ac_res" >&6; }
28506 # Is the header compilable?
28507 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28509 cat >conftest.$ac_ext <<_ACEOF
28512 cat confdefs.h >>conftest.$ac_ext
28513 cat >>conftest.$ac_ext <<_ACEOF
28514 /* end confdefs.h. */
28515 $ac_includes_default
28516 #include <$ac_header>
28518 rm -f conftest.$ac_objext
28519 if { (ac_try="$ac_compile"
28520 case "(($ac_try" in
28521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28522 *) ac_try_echo=$ac_try;;
28524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28525 (eval "$ac_compile") 2>conftest.er1
28527 grep -v '^ *+' conftest.er1 >conftest.err
28529 cat conftest.err >&5
28530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28531 (exit $ac_status); } &&
28532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28533 { (case "(($ac_try" in
28534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28535 *) ac_try_echo=$ac_try;;
28537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28538 (eval "$ac_try") 2>&5
28540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541 (exit $ac_status); }; } &&
28542 { ac_try='test -s conftest.$ac_objext'
28543 { (case "(($ac_try" in
28544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28545 *) ac_try_echo=$ac_try;;
28547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28548 (eval "$ac_try") 2>&5
28550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28551 (exit $ac_status); }; }; then
28552 ac_header_compiler=yes
28554 echo "$as_me: failed program was:" >&5
28555 sed 's/^/| /' conftest.$ac_ext >&5
28557 ac_header_compiler=no
28560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28562 echo "${ECHO_T}$ac_header_compiler" >&6; }
28564 # Is the header present?
28565 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28567 cat >conftest.$ac_ext <<_ACEOF
28570 cat confdefs.h >>conftest.$ac_ext
28571 cat >>conftest.$ac_ext <<_ACEOF
28572 /* end confdefs.h. */
28573 #include <$ac_header>
28575 if { (ac_try="$ac_cpp conftest.$ac_ext"
28576 case "(($ac_try" in
28577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28578 *) ac_try_echo=$ac_try;;
28580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28583 grep -v '^ *+' conftest.er1 >conftest.err
28585 cat conftest.err >&5
28586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28587 (exit $ac_status); } >/dev/null; then
28588 if test -s conftest.err; then
28589 ac_cpp_err=$ac_c_preproc_warn_flag
28590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28597 if test -z "$ac_cpp_err"; then
28598 ac_header_preproc=yes
28600 echo "$as_me: failed program was:" >&5
28601 sed 's/^/| /' conftest.$ac_ext >&5
28603 ac_header_preproc=no
28606 rm -f conftest.err conftest.$ac_ext
28607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28608 echo "${ECHO_T}$ac_header_preproc" >&6; }
28610 # So? What about this header?
28611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28617 ac_header_preproc=yes
28620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28633 ## ----------------------------------- ##
28634 ## Report this to llvmbugs@cs.uiuc.edu ##
28635 ## ----------------------------------- ##
28637 ) | sed "s/^/$as_me: WARNING: /" >&2
28640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28643 echo $ECHO_N "(cached) $ECHO_C" >&6
28645 eval "$as_ac_Header=\$ac_header_preproc"
28647 ac_res=`eval echo '${'$as_ac_Header'}'`
28648 { echo "$as_me:$LINENO: result: $ac_res" >&5
28649 echo "${ECHO_T}$ac_res" >&6; }
28652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28653 cat >>confdefs.h <<_ACEOF
28654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28666 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
28668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28673 echo $ECHO_N "(cached) $ECHO_C" >&6
28675 ac_res=`eval echo '${'$as_ac_Header'}'`
28676 { echo "$as_me:$LINENO: result: $ac_res" >&5
28677 echo "${ECHO_T}$ac_res" >&6; }
28679 # Is the header compilable?
28680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28682 cat >conftest.$ac_ext <<_ACEOF
28685 cat confdefs.h >>conftest.$ac_ext
28686 cat >>conftest.$ac_ext <<_ACEOF
28687 /* end confdefs.h. */
28688 $ac_includes_default
28689 #include <$ac_header>
28691 rm -f conftest.$ac_objext
28692 if { (ac_try="$ac_compile"
28693 case "(($ac_try" in
28694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28695 *) ac_try_echo=$ac_try;;
28697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28698 (eval "$ac_compile") 2>conftest.er1
28700 grep -v '^ *+' conftest.er1 >conftest.err
28702 cat conftest.err >&5
28703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704 (exit $ac_status); } &&
28705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28706 { (case "(($ac_try" in
28707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28708 *) ac_try_echo=$ac_try;;
28710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28711 (eval "$ac_try") 2>&5
28713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714 (exit $ac_status); }; } &&
28715 { ac_try='test -s conftest.$ac_objext'
28716 { (case "(($ac_try" in
28717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28718 *) ac_try_echo=$ac_try;;
28720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28721 (eval "$ac_try") 2>&5
28723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724 (exit $ac_status); }; }; then
28725 ac_header_compiler=yes
28727 echo "$as_me: failed program was:" >&5
28728 sed 's/^/| /' conftest.$ac_ext >&5
28730 ac_header_compiler=no
28733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28734 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28735 echo "${ECHO_T}$ac_header_compiler" >&6; }
28737 # Is the header present?
28738 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28740 cat >conftest.$ac_ext <<_ACEOF
28743 cat confdefs.h >>conftest.$ac_ext
28744 cat >>conftest.$ac_ext <<_ACEOF
28745 /* end confdefs.h. */
28746 #include <$ac_header>
28748 if { (ac_try="$ac_cpp conftest.$ac_ext"
28749 case "(($ac_try" in
28750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28751 *) ac_try_echo=$ac_try;;
28753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28756 grep -v '^ *+' conftest.er1 >conftest.err
28758 cat conftest.err >&5
28759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28760 (exit $ac_status); } >/dev/null; then
28761 if test -s conftest.err; then
28762 ac_cpp_err=$ac_c_preproc_warn_flag
28763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28770 if test -z "$ac_cpp_err"; then
28771 ac_header_preproc=yes
28773 echo "$as_me: failed program was:" >&5
28774 sed 's/^/| /' conftest.$ac_ext >&5
28776 ac_header_preproc=no
28779 rm -f conftest.err conftest.$ac_ext
28780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28781 echo "${ECHO_T}$ac_header_preproc" >&6; }
28783 # So? What about this header?
28784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28790 ac_header_preproc=yes
28793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28806 ## ----------------------------------- ##
28807 ## Report this to llvmbugs@cs.uiuc.edu ##
28808 ## ----------------------------------- ##
28810 ) | sed "s/^/$as_me: WARNING: /" >&2
28813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28816 echo $ECHO_N "(cached) $ECHO_C" >&6
28818 eval "$as_ac_Header=\$ac_header_preproc"
28820 ac_res=`eval echo '${'$as_ac_Header'}'`
28821 { echo "$as_me:$LINENO: result: $ac_res" >&5
28822 echo "${ECHO_T}$ac_res" >&6; }
28825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28826 cat >>confdefs.h <<_ACEOF
28827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28836 for ac_header in sys/types.h malloc/malloc.h
28838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28843 echo $ECHO_N "(cached) $ECHO_C" >&6
28845 ac_res=`eval echo '${'$as_ac_Header'}'`
28846 { echo "$as_me:$LINENO: result: $ac_res" >&5
28847 echo "${ECHO_T}$ac_res" >&6; }
28849 # Is the header compilable?
28850 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28852 cat >conftest.$ac_ext <<_ACEOF
28855 cat confdefs.h >>conftest.$ac_ext
28856 cat >>conftest.$ac_ext <<_ACEOF
28857 /* end confdefs.h. */
28858 $ac_includes_default
28859 #include <$ac_header>
28861 rm -f conftest.$ac_objext
28862 if { (ac_try="$ac_compile"
28863 case "(($ac_try" in
28864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28865 *) ac_try_echo=$ac_try;;
28867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28868 (eval "$ac_compile") 2>conftest.er1
28870 grep -v '^ *+' conftest.er1 >conftest.err
28872 cat conftest.err >&5
28873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874 (exit $ac_status); } &&
28875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28876 { (case "(($ac_try" in
28877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28878 *) ac_try_echo=$ac_try;;
28880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28881 (eval "$ac_try") 2>&5
28883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884 (exit $ac_status); }; } &&
28885 { ac_try='test -s conftest.$ac_objext'
28886 { (case "(($ac_try" in
28887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28888 *) ac_try_echo=$ac_try;;
28890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28891 (eval "$ac_try") 2>&5
28893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894 (exit $ac_status); }; }; then
28895 ac_header_compiler=yes
28897 echo "$as_me: failed program was:" >&5
28898 sed 's/^/| /' conftest.$ac_ext >&5
28900 ac_header_compiler=no
28903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28904 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28905 echo "${ECHO_T}$ac_header_compiler" >&6; }
28907 # Is the header present?
28908 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28910 cat >conftest.$ac_ext <<_ACEOF
28913 cat confdefs.h >>conftest.$ac_ext
28914 cat >>conftest.$ac_ext <<_ACEOF
28915 /* end confdefs.h. */
28916 #include <$ac_header>
28918 if { (ac_try="$ac_cpp conftest.$ac_ext"
28919 case "(($ac_try" in
28920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28921 *) ac_try_echo=$ac_try;;
28923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28926 grep -v '^ *+' conftest.er1 >conftest.err
28928 cat conftest.err >&5
28929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930 (exit $ac_status); } >/dev/null; then
28931 if test -s conftest.err; then
28932 ac_cpp_err=$ac_c_preproc_warn_flag
28933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28940 if test -z "$ac_cpp_err"; then
28941 ac_header_preproc=yes
28943 echo "$as_me: failed program was:" >&5
28944 sed 's/^/| /' conftest.$ac_ext >&5
28946 ac_header_preproc=no
28949 rm -f conftest.err conftest.$ac_ext
28950 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28951 echo "${ECHO_T}$ac_header_preproc" >&6; }
28953 # So? What about this header?
28954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28956 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28957 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28959 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28960 ac_header_preproc=yes
28963 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28964 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28965 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28966 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28967 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28968 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28969 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28970 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28973 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28974 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28976 ## ----------------------------------- ##
28977 ## Report this to llvmbugs@cs.uiuc.edu ##
28978 ## ----------------------------------- ##
28980 ) | sed "s/^/$as_me: WARNING: /" >&2
28983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28986 echo $ECHO_N "(cached) $ECHO_C" >&6
28988 eval "$as_ac_Header=\$ac_header_preproc"
28990 ac_res=`eval echo '${'$as_ac_Header'}'`
28991 { echo "$as_me:$LINENO: result: $ac_res" >&5
28992 echo "${ECHO_T}$ac_res" >&6; }
28995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28996 cat >>confdefs.h <<_ACEOF
28997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29004 if test "$ENABLE_THREADS" -eq 1 ; then
29006 for ac_header in pthread.h
29008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29013 echo $ECHO_N "(cached) $ECHO_C" >&6
29015 ac_res=`eval echo '${'$as_ac_Header'}'`
29016 { echo "$as_me:$LINENO: result: $ac_res" >&5
29017 echo "${ECHO_T}$ac_res" >&6; }
29019 # Is the header compilable?
29020 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29022 cat >conftest.$ac_ext <<_ACEOF
29025 cat confdefs.h >>conftest.$ac_ext
29026 cat >>conftest.$ac_ext <<_ACEOF
29027 /* end confdefs.h. */
29028 $ac_includes_default
29029 #include <$ac_header>
29031 rm -f conftest.$ac_objext
29032 if { (ac_try="$ac_compile"
29033 case "(($ac_try" in
29034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29035 *) ac_try_echo=$ac_try;;
29037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29038 (eval "$ac_compile") 2>conftest.er1
29040 grep -v '^ *+' conftest.er1 >conftest.err
29042 cat conftest.err >&5
29043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29044 (exit $ac_status); } &&
29045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29046 { (case "(($ac_try" in
29047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29048 *) ac_try_echo=$ac_try;;
29050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29051 (eval "$ac_try") 2>&5
29053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29054 (exit $ac_status); }; } &&
29055 { ac_try='test -s conftest.$ac_objext'
29056 { (case "(($ac_try" in
29057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29058 *) ac_try_echo=$ac_try;;
29060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29061 (eval "$ac_try") 2>&5
29063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064 (exit $ac_status); }; }; then
29065 ac_header_compiler=yes
29067 echo "$as_me: failed program was:" >&5
29068 sed 's/^/| /' conftest.$ac_ext >&5
29070 ac_header_compiler=no
29073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29075 echo "${ECHO_T}$ac_header_compiler" >&6; }
29077 # Is the header present?
29078 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29080 cat >conftest.$ac_ext <<_ACEOF
29083 cat confdefs.h >>conftest.$ac_ext
29084 cat >>conftest.$ac_ext <<_ACEOF
29085 /* end confdefs.h. */
29086 #include <$ac_header>
29088 if { (ac_try="$ac_cpp conftest.$ac_ext"
29089 case "(($ac_try" in
29090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29091 *) ac_try_echo=$ac_try;;
29093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29096 grep -v '^ *+' conftest.er1 >conftest.err
29098 cat conftest.err >&5
29099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100 (exit $ac_status); } >/dev/null; then
29101 if test -s conftest.err; then
29102 ac_cpp_err=$ac_c_preproc_warn_flag
29103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29110 if test -z "$ac_cpp_err"; then
29111 ac_header_preproc=yes
29113 echo "$as_me: failed program was:" >&5
29114 sed 's/^/| /' conftest.$ac_ext >&5
29116 ac_header_preproc=no
29119 rm -f conftest.err conftest.$ac_ext
29120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29121 echo "${ECHO_T}$ac_header_preproc" >&6; }
29123 # So? What about this header?
29124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29130 ac_header_preproc=yes
29133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29136 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29140 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29146 ## ----------------------------------- ##
29147 ## Report this to llvmbugs@cs.uiuc.edu ##
29148 ## ----------------------------------- ##
29150 ) | sed "s/^/$as_me: WARNING: /" >&2
29153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29156 echo $ECHO_N "(cached) $ECHO_C" >&6
29158 eval "$as_ac_Header=\$ac_header_preproc"
29160 ac_res=`eval echo '${'$as_ac_Header'}'`
29161 { echo "$as_me:$LINENO: result: $ac_res" >&5
29162 echo "${ECHO_T}$ac_res" >&6; }
29165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29166 cat >>confdefs.h <<_ACEOF
29167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29177 { echo "$as_me:$LINENO: checking for pid_t" >&5
29178 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29179 if test "${ac_cv_type_pid_t+set}" = set; then
29180 echo $ECHO_N "(cached) $ECHO_C" >&6
29182 cat >conftest.$ac_ext <<_ACEOF
29185 cat confdefs.h >>conftest.$ac_ext
29186 cat >>conftest.$ac_ext <<_ACEOF
29187 /* end confdefs.h. */
29188 $ac_includes_default
29189 typedef pid_t ac__type_new_;
29193 if ((ac__type_new_ *) 0)
29195 if (sizeof (ac__type_new_))
29201 rm -f conftest.$ac_objext
29202 if { (ac_try="$ac_compile"
29203 case "(($ac_try" in
29204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29205 *) ac_try_echo=$ac_try;;
29207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29208 (eval "$ac_compile") 2>conftest.er1
29210 grep -v '^ *+' conftest.er1 >conftest.err
29212 cat conftest.err >&5
29213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214 (exit $ac_status); } &&
29215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29216 { (case "(($ac_try" in
29217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29218 *) ac_try_echo=$ac_try;;
29220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29221 (eval "$ac_try") 2>&5
29223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29224 (exit $ac_status); }; } &&
29225 { ac_try='test -s conftest.$ac_objext'
29226 { (case "(($ac_try" in
29227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29228 *) ac_try_echo=$ac_try;;
29230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29231 (eval "$ac_try") 2>&5
29233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234 (exit $ac_status); }; }; then
29235 ac_cv_type_pid_t=yes
29237 echo "$as_me: failed program was:" >&5
29238 sed 's/^/| /' conftest.$ac_ext >&5
29240 ac_cv_type_pid_t=no
29243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29245 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29246 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29247 if test $ac_cv_type_pid_t = yes; then
29251 cat >>confdefs.h <<_ACEOF
29257 { echo "$as_me:$LINENO: checking for size_t" >&5
29258 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29259 if test "${ac_cv_type_size_t+set}" = set; then
29260 echo $ECHO_N "(cached) $ECHO_C" >&6
29262 cat >conftest.$ac_ext <<_ACEOF
29265 cat confdefs.h >>conftest.$ac_ext
29266 cat >>conftest.$ac_ext <<_ACEOF
29267 /* end confdefs.h. */
29268 $ac_includes_default
29269 typedef size_t ac__type_new_;
29273 if ((ac__type_new_ *) 0)
29275 if (sizeof (ac__type_new_))
29281 rm -f conftest.$ac_objext
29282 if { (ac_try="$ac_compile"
29283 case "(($ac_try" in
29284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29285 *) ac_try_echo=$ac_try;;
29287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29288 (eval "$ac_compile") 2>conftest.er1
29290 grep -v '^ *+' conftest.er1 >conftest.err
29292 cat conftest.err >&5
29293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); } &&
29295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29296 { (case "(($ac_try" in
29297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29298 *) ac_try_echo=$ac_try;;
29300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29301 (eval "$ac_try") 2>&5
29303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304 (exit $ac_status); }; } &&
29305 { ac_try='test -s conftest.$ac_objext'
29306 { (case "(($ac_try" in
29307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29308 *) ac_try_echo=$ac_try;;
29310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29311 (eval "$ac_try") 2>&5
29313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314 (exit $ac_status); }; }; then
29315 ac_cv_type_size_t=yes
29317 echo "$as_me: failed program was:" >&5
29318 sed 's/^/| /' conftest.$ac_ext >&5
29320 ac_cv_type_size_t=no
29323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29325 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29326 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29327 if test $ac_cv_type_size_t = yes; then
29331 cat >>confdefs.h <<_ACEOF
29332 #define size_t unsigned int
29337 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29338 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29339 if test "${ac_cv_type_signal+set}" = set; then
29340 echo $ECHO_N "(cached) $ECHO_C" >&6
29342 cat >conftest.$ac_ext <<_ACEOF
29345 cat confdefs.h >>conftest.$ac_ext
29346 cat >>conftest.$ac_ext <<_ACEOF
29347 /* end confdefs.h. */
29348 #include <sys/types.h>
29349 #include <signal.h>
29354 return *(signal (0, 0)) (0) == 1;
29359 rm -f conftest.$ac_objext
29360 if { (ac_try="$ac_compile"
29361 case "(($ac_try" in
29362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29363 *) ac_try_echo=$ac_try;;
29365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29366 (eval "$ac_compile") 2>conftest.er1
29368 grep -v '^ *+' conftest.er1 >conftest.err
29370 cat conftest.err >&5
29371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29372 (exit $ac_status); } &&
29373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29374 { (case "(($ac_try" in
29375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29376 *) ac_try_echo=$ac_try;;
29378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29379 (eval "$ac_try") 2>&5
29381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29382 (exit $ac_status); }; } &&
29383 { ac_try='test -s conftest.$ac_objext'
29384 { (case "(($ac_try" in
29385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29386 *) ac_try_echo=$ac_try;;
29388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29389 (eval "$ac_try") 2>&5
29391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29392 (exit $ac_status); }; }; then
29393 ac_cv_type_signal=int
29395 echo "$as_me: failed program was:" >&5
29396 sed 's/^/| /' conftest.$ac_ext >&5
29398 ac_cv_type_signal=void
29401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29403 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29404 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29406 cat >>confdefs.h <<_ACEOF
29407 #define RETSIGTYPE $ac_cv_type_signal
29411 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29412 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29413 if test "${ac_cv_struct_tm+set}" = set; then
29414 echo $ECHO_N "(cached) $ECHO_C" >&6
29416 cat >conftest.$ac_ext <<_ACEOF
29419 cat confdefs.h >>conftest.$ac_ext
29420 cat >>conftest.$ac_ext <<_ACEOF
29421 /* end confdefs.h. */
29422 #include <sys/types.h>
29428 struct tm *tp; tp->tm_sec;
29433 rm -f conftest.$ac_objext
29434 if { (ac_try="$ac_compile"
29435 case "(($ac_try" in
29436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29437 *) ac_try_echo=$ac_try;;
29439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29440 (eval "$ac_compile") 2>conftest.er1
29442 grep -v '^ *+' conftest.er1 >conftest.err
29444 cat conftest.err >&5
29445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29446 (exit $ac_status); } &&
29447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29448 { (case "(($ac_try" in
29449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29450 *) ac_try_echo=$ac_try;;
29452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29453 (eval "$ac_try") 2>&5
29455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456 (exit $ac_status); }; } &&
29457 { ac_try='test -s conftest.$ac_objext'
29458 { (case "(($ac_try" in
29459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29460 *) ac_try_echo=$ac_try;;
29462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29463 (eval "$ac_try") 2>&5
29465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29466 (exit $ac_status); }; }; then
29467 ac_cv_struct_tm=time.h
29469 echo "$as_me: failed program was:" >&5
29470 sed 's/^/| /' conftest.$ac_ext >&5
29472 ac_cv_struct_tm=sys/time.h
29475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29477 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29478 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29479 if test $ac_cv_struct_tm = sys/time.h; then
29481 cat >>confdefs.h <<\_ACEOF
29482 #define TM_IN_SYS_TIME 1
29487 { echo "$as_me:$LINENO: checking for int64_t" >&5
29488 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29489 if test "${ac_cv_type_int64_t+set}" = set; then
29490 echo $ECHO_N "(cached) $ECHO_C" >&6
29492 cat >conftest.$ac_ext <<_ACEOF
29495 cat confdefs.h >>conftest.$ac_ext
29496 cat >>conftest.$ac_ext <<_ACEOF
29497 /* end confdefs.h. */
29498 $ac_includes_default
29499 typedef int64_t ac__type_new_;
29503 if ((ac__type_new_ *) 0)
29505 if (sizeof (ac__type_new_))
29511 rm -f conftest.$ac_objext
29512 if { (ac_try="$ac_compile"
29513 case "(($ac_try" in
29514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29515 *) ac_try_echo=$ac_try;;
29517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29518 (eval "$ac_compile") 2>conftest.er1
29520 grep -v '^ *+' conftest.er1 >conftest.err
29522 cat conftest.err >&5
29523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29524 (exit $ac_status); } &&
29525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29526 { (case "(($ac_try" in
29527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29528 *) ac_try_echo=$ac_try;;
29530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29531 (eval "$ac_try") 2>&5
29533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534 (exit $ac_status); }; } &&
29535 { ac_try='test -s conftest.$ac_objext'
29536 { (case "(($ac_try" in
29537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29538 *) ac_try_echo=$ac_try;;
29540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29541 (eval "$ac_try") 2>&5
29543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544 (exit $ac_status); }; }; then
29545 ac_cv_type_int64_t=yes
29547 echo "$as_me: failed program was:" >&5
29548 sed 's/^/| /' conftest.$ac_ext >&5
29550 ac_cv_type_int64_t=no
29553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29555 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29556 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29557 if test $ac_cv_type_int64_t = yes; then
29559 cat >>confdefs.h <<_ACEOF
29560 #define HAVE_INT64_T 1
29565 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29566 echo "$as_me: error: Type int64_t required but not found" >&2;}
29567 { (exit 1); exit 1; }; }
29570 { echo "$as_me:$LINENO: checking for uint64_t" >&5
29571 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29572 if test "${ac_cv_type_uint64_t+set}" = set; then
29573 echo $ECHO_N "(cached) $ECHO_C" >&6
29575 cat >conftest.$ac_ext <<_ACEOF
29578 cat confdefs.h >>conftest.$ac_ext
29579 cat >>conftest.$ac_ext <<_ACEOF
29580 /* end confdefs.h. */
29581 $ac_includes_default
29582 typedef uint64_t ac__type_new_;
29586 if ((ac__type_new_ *) 0)
29588 if (sizeof (ac__type_new_))
29594 rm -f conftest.$ac_objext
29595 if { (ac_try="$ac_compile"
29596 case "(($ac_try" in
29597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29598 *) ac_try_echo=$ac_try;;
29600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29601 (eval "$ac_compile") 2>conftest.er1
29603 grep -v '^ *+' conftest.er1 >conftest.err
29605 cat conftest.err >&5
29606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29607 (exit $ac_status); } &&
29608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29609 { (case "(($ac_try" in
29610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29611 *) ac_try_echo=$ac_try;;
29613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29614 (eval "$ac_try") 2>&5
29616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617 (exit $ac_status); }; } &&
29618 { ac_try='test -s conftest.$ac_objext'
29619 { (case "(($ac_try" in
29620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29621 *) ac_try_echo=$ac_try;;
29623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29624 (eval "$ac_try") 2>&5
29626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29627 (exit $ac_status); }; }; then
29628 ac_cv_type_uint64_t=yes
29630 echo "$as_me: failed program was:" >&5
29631 sed 's/^/| /' conftest.$ac_ext >&5
29633 ac_cv_type_uint64_t=no
29636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29638 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29639 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29640 if test $ac_cv_type_uint64_t = yes; then
29642 cat >>confdefs.h <<_ACEOF
29643 #define HAVE_UINT64_T 1
29648 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29649 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29650 if test "${ac_cv_type_u_int64_t+set}" = set; then
29651 echo $ECHO_N "(cached) $ECHO_C" >&6
29653 cat >conftest.$ac_ext <<_ACEOF
29656 cat confdefs.h >>conftest.$ac_ext
29657 cat >>conftest.$ac_ext <<_ACEOF
29658 /* end confdefs.h. */
29659 $ac_includes_default
29660 typedef u_int64_t ac__type_new_;
29664 if ((ac__type_new_ *) 0)
29666 if (sizeof (ac__type_new_))
29672 rm -f conftest.$ac_objext
29673 if { (ac_try="$ac_compile"
29674 case "(($ac_try" in
29675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29676 *) ac_try_echo=$ac_try;;
29678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29679 (eval "$ac_compile") 2>conftest.er1
29681 grep -v '^ *+' conftest.er1 >conftest.err
29683 cat conftest.err >&5
29684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685 (exit $ac_status); } &&
29686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29687 { (case "(($ac_try" in
29688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29689 *) ac_try_echo=$ac_try;;
29691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29692 (eval "$ac_try") 2>&5
29694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695 (exit $ac_status); }; } &&
29696 { ac_try='test -s conftest.$ac_objext'
29697 { (case "(($ac_try" in
29698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29699 *) ac_try_echo=$ac_try;;
29701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29702 (eval "$ac_try") 2>&5
29704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705 (exit $ac_status); }; }; then
29706 ac_cv_type_u_int64_t=yes
29708 echo "$as_me: failed program was:" >&5
29709 sed 's/^/| /' conftest.$ac_ext >&5
29711 ac_cv_type_u_int64_t=no
29714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29716 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29717 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
29718 if test $ac_cv_type_u_int64_t = yes; then
29720 cat >>confdefs.h <<_ACEOF
29721 #define HAVE_U_INT64_T 1
29726 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29727 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29728 { (exit 1); exit 1; }; }
29742 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
29744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29745 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29747 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29748 echo $ECHO_N "(cached) $ECHO_C" >&6
29750 cat >conftest.$ac_ext <<_ACEOF
29753 cat confdefs.h >>conftest.$ac_ext
29754 cat >>conftest.$ac_ext <<_ACEOF
29755 /* end confdefs.h. */
29756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29758 #define $ac_func innocuous_$ac_func
29760 /* System header to define __stub macros and hopefully few prototypes,
29761 which can conflict with char $ac_func (); below.
29762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29763 <limits.h> exists even on freestanding compilers. */
29766 # include <limits.h>
29768 # include <assert.h>
29773 /* Override any GCC internal prototype to avoid an error.
29774 Use char because int might match the return type of a GCC
29775 builtin and then its argument prototype would still apply. */
29780 /* The GNU C library defines this for functions which it implements
29781 to always fail with ENOSYS. Some functions are actually named
29782 something starting with __ and the normal name is an alias. */
29783 #if defined __stub_$ac_func || defined __stub___$ac_func
29790 return $ac_func ();
29795 rm -f conftest.$ac_objext conftest$ac_exeext
29796 if { (ac_try="$ac_link"
29797 case "(($ac_try" in
29798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29799 *) ac_try_echo=$ac_try;;
29801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29802 (eval "$ac_link") 2>conftest.er1
29804 grep -v '^ *+' conftest.er1 >conftest.err
29806 cat conftest.err >&5
29807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808 (exit $ac_status); } &&
29809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29810 { (case "(($ac_try" in
29811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29812 *) ac_try_echo=$ac_try;;
29814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29815 (eval "$ac_try") 2>&5
29817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818 (exit $ac_status); }; } &&
29819 { ac_try='test -s conftest$ac_exeext'
29820 { (case "(($ac_try" in
29821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29822 *) ac_try_echo=$ac_try;;
29824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29825 (eval "$ac_try") 2>&5
29827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828 (exit $ac_status); }; }; then
29829 eval "$as_ac_var=yes"
29831 echo "$as_me: failed program was:" >&5
29832 sed 's/^/| /' conftest.$ac_ext >&5
29834 eval "$as_ac_var=no"
29837 rm -f core conftest.err conftest.$ac_objext \
29838 conftest$ac_exeext conftest.$ac_ext
29840 ac_res=`eval echo '${'$as_ac_var'}'`
29841 { echo "$as_me:$LINENO: result: $ac_res" >&5
29842 echo "${ECHO_T}$ac_res" >&6; }
29843 if test `eval echo '${'$as_ac_var'}'` = yes; then
29844 cat >>confdefs.h <<_ACEOF
29845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29857 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
29859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29860 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29863 echo $ECHO_N "(cached) $ECHO_C" >&6
29865 cat >conftest.$ac_ext <<_ACEOF
29868 cat confdefs.h >>conftest.$ac_ext
29869 cat >>conftest.$ac_ext <<_ACEOF
29870 /* end confdefs.h. */
29871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29873 #define $ac_func innocuous_$ac_func
29875 /* System header to define __stub macros and hopefully few prototypes,
29876 which can conflict with char $ac_func (); below.
29877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29878 <limits.h> exists even on freestanding compilers. */
29881 # include <limits.h>
29883 # include <assert.h>
29888 /* Override any GCC internal prototype to avoid an error.
29889 Use char because int might match the return type of a GCC
29890 builtin and then its argument prototype would still apply. */
29895 /* The GNU C library defines this for functions which it implements
29896 to always fail with ENOSYS. Some functions are actually named
29897 something starting with __ and the normal name is an alias. */
29898 #if defined __stub_$ac_func || defined __stub___$ac_func
29905 return $ac_func ();
29910 rm -f conftest.$ac_objext conftest$ac_exeext
29911 if { (ac_try="$ac_link"
29912 case "(($ac_try" in
29913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29914 *) ac_try_echo=$ac_try;;
29916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29917 (eval "$ac_link") 2>conftest.er1
29919 grep -v '^ *+' conftest.er1 >conftest.err
29921 cat conftest.err >&5
29922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29923 (exit $ac_status); } &&
29924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29925 { (case "(($ac_try" in
29926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29927 *) ac_try_echo=$ac_try;;
29929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29930 (eval "$ac_try") 2>&5
29932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29933 (exit $ac_status); }; } &&
29934 { ac_try='test -s conftest$ac_exeext'
29935 { (case "(($ac_try" in
29936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29937 *) ac_try_echo=$ac_try;;
29939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29940 (eval "$ac_try") 2>&5
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); }; }; then
29944 eval "$as_ac_var=yes"
29946 echo "$as_me: failed program was:" >&5
29947 sed 's/^/| /' conftest.$ac_ext >&5
29949 eval "$as_ac_var=no"
29952 rm -f core conftest.err conftest.$ac_objext \
29953 conftest$ac_exeext conftest.$ac_ext
29955 ac_res=`eval echo '${'$as_ac_var'}'`
29956 { echo "$as_me:$LINENO: result: $ac_res" >&5
29957 echo "${ECHO_T}$ac_res" >&6; }
29958 if test `eval echo '${'$as_ac_var'}'` = yes; then
29959 cat >>confdefs.h <<_ACEOF
29960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29973 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
29975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29976 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29978 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29979 echo $ECHO_N "(cached) $ECHO_C" >&6
29981 cat >conftest.$ac_ext <<_ACEOF
29984 cat confdefs.h >>conftest.$ac_ext
29985 cat >>conftest.$ac_ext <<_ACEOF
29986 /* end confdefs.h. */
29987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29989 #define $ac_func innocuous_$ac_func
29991 /* System header to define __stub macros and hopefully few prototypes,
29992 which can conflict with char $ac_func (); below.
29993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29994 <limits.h> exists even on freestanding compilers. */
29997 # include <limits.h>
29999 # include <assert.h>
30004 /* Override any GCC internal prototype to avoid an error.
30005 Use char because int might match the return type of a GCC
30006 builtin and then its argument prototype would still apply. */
30011 /* The GNU C library defines this for functions which it implements
30012 to always fail with ENOSYS. Some functions are actually named
30013 something starting with __ and the normal name is an alias. */
30014 #if defined __stub_$ac_func || defined __stub___$ac_func
30021 return $ac_func ();
30026 rm -f conftest.$ac_objext conftest$ac_exeext
30027 if { (ac_try="$ac_link"
30028 case "(($ac_try" in
30029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30030 *) ac_try_echo=$ac_try;;
30032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30033 (eval "$ac_link") 2>conftest.er1
30035 grep -v '^ *+' conftest.er1 >conftest.err
30037 cat conftest.err >&5
30038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039 (exit $ac_status); } &&
30040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30041 { (case "(($ac_try" in
30042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30043 *) ac_try_echo=$ac_try;;
30045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30046 (eval "$ac_try") 2>&5
30048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049 (exit $ac_status); }; } &&
30050 { ac_try='test -s conftest$ac_exeext'
30051 { (case "(($ac_try" in
30052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30053 *) ac_try_echo=$ac_try;;
30055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30056 (eval "$ac_try") 2>&5
30058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059 (exit $ac_status); }; }; then
30060 eval "$as_ac_var=yes"
30062 echo "$as_me: failed program was:" >&5
30063 sed 's/^/| /' conftest.$ac_ext >&5
30065 eval "$as_ac_var=no"
30068 rm -f core conftest.err conftest.$ac_objext \
30069 conftest$ac_exeext conftest.$ac_ext
30071 ac_res=`eval echo '${'$as_ac_var'}'`
30072 { echo "$as_me:$LINENO: result: $ac_res" >&5
30073 echo "${ECHO_T}$ac_res" >&6; }
30074 if test `eval echo '${'$as_ac_var'}'` = yes; then
30075 cat >>confdefs.h <<_ACEOF
30076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30086 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30089 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30091 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30092 echo $ECHO_N "(cached) $ECHO_C" >&6
30094 cat >conftest.$ac_ext <<_ACEOF
30097 cat confdefs.h >>conftest.$ac_ext
30098 cat >>conftest.$ac_ext <<_ACEOF
30099 /* end confdefs.h. */
30100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30102 #define $ac_func innocuous_$ac_func
30104 /* System header to define __stub macros and hopefully few prototypes,
30105 which can conflict with char $ac_func (); below.
30106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30107 <limits.h> exists even on freestanding compilers. */
30110 # include <limits.h>
30112 # include <assert.h>
30117 /* Override any GCC internal prototype to avoid an error.
30118 Use char because int might match the return type of a GCC
30119 builtin and then its argument prototype would still apply. */
30124 /* The GNU C library defines this for functions which it implements
30125 to always fail with ENOSYS. Some functions are actually named
30126 something starting with __ and the normal name is an alias. */
30127 #if defined __stub_$ac_func || defined __stub___$ac_func
30134 return $ac_func ();
30139 rm -f conftest.$ac_objext conftest$ac_exeext
30140 if { (ac_try="$ac_link"
30141 case "(($ac_try" in
30142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30143 *) ac_try_echo=$ac_try;;
30145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30146 (eval "$ac_link") 2>conftest.er1
30148 grep -v '^ *+' conftest.er1 >conftest.err
30150 cat conftest.err >&5
30151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30152 (exit $ac_status); } &&
30153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30154 { (case "(($ac_try" in
30155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30156 *) ac_try_echo=$ac_try;;
30158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30159 (eval "$ac_try") 2>&5
30161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30162 (exit $ac_status); }; } &&
30163 { ac_try='test -s conftest$ac_exeext'
30164 { (case "(($ac_try" in
30165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30166 *) ac_try_echo=$ac_try;;
30168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30169 (eval "$ac_try") 2>&5
30171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172 (exit $ac_status); }; }; then
30173 eval "$as_ac_var=yes"
30175 echo "$as_me: failed program was:" >&5
30176 sed 's/^/| /' conftest.$ac_ext >&5
30178 eval "$as_ac_var=no"
30181 rm -f core conftest.err conftest.$ac_objext \
30182 conftest$ac_exeext conftest.$ac_ext
30184 ac_res=`eval echo '${'$as_ac_var'}'`
30185 { echo "$as_me:$LINENO: result: $ac_res" >&5
30186 echo "${ECHO_T}$ac_res" >&6; }
30187 if test `eval echo '${'$as_ac_var'}'` = yes; then
30188 cat >>confdefs.h <<_ACEOF
30189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30201 for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
30203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30204 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30207 echo $ECHO_N "(cached) $ECHO_C" >&6
30209 cat >conftest.$ac_ext <<_ACEOF
30212 cat confdefs.h >>conftest.$ac_ext
30213 cat >>conftest.$ac_ext <<_ACEOF
30214 /* end confdefs.h. */
30215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30217 #define $ac_func innocuous_$ac_func
30219 /* System header to define __stub macros and hopefully few prototypes,
30220 which can conflict with char $ac_func (); below.
30221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30222 <limits.h> exists even on freestanding compilers. */
30225 # include <limits.h>
30227 # include <assert.h>
30232 /* Override any GCC internal prototype to avoid an error.
30233 Use char because int might match the return type of a GCC
30234 builtin and then its argument prototype would still apply. */
30239 /* The GNU C library defines this for functions which it implements
30240 to always fail with ENOSYS. Some functions are actually named
30241 something starting with __ and the normal name is an alias. */
30242 #if defined __stub_$ac_func || defined __stub___$ac_func
30249 return $ac_func ();
30254 rm -f conftest.$ac_objext conftest$ac_exeext
30255 if { (ac_try="$ac_link"
30256 case "(($ac_try" in
30257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30258 *) ac_try_echo=$ac_try;;
30260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30261 (eval "$ac_link") 2>conftest.er1
30263 grep -v '^ *+' conftest.er1 >conftest.err
30265 cat conftest.err >&5
30266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267 (exit $ac_status); } &&
30268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30269 { (case "(($ac_try" in
30270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30271 *) ac_try_echo=$ac_try;;
30273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30274 (eval "$ac_try") 2>&5
30276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277 (exit $ac_status); }; } &&
30278 { ac_try='test -s conftest$ac_exeext'
30279 { (case "(($ac_try" in
30280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30281 *) ac_try_echo=$ac_try;;
30283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30284 (eval "$ac_try") 2>&5
30286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287 (exit $ac_status); }; }; then
30288 eval "$as_ac_var=yes"
30290 echo "$as_me: failed program was:" >&5
30291 sed 's/^/| /' conftest.$ac_ext >&5
30293 eval "$as_ac_var=no"
30296 rm -f core conftest.err conftest.$ac_objext \
30297 conftest$ac_exeext conftest.$ac_ext
30299 ac_res=`eval echo '${'$as_ac_var'}'`
30300 { echo "$as_me:$LINENO: result: $ac_res" >&5
30301 echo "${ECHO_T}$ac_res" >&6; }
30302 if test `eval echo '${'$as_ac_var'}'` = yes; then
30303 cat >>confdefs.h <<_ACEOF
30304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30310 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30311 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
30312 if test "${llvm_cv_c_printf_a+set}" = set; then
30313 echo $ECHO_N "(cached) $ECHO_C" >&6
30316 ac_cpp='$CPP $CPPFLAGS'
30317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30321 if test "$cross_compiling" = yes; then
30322 llvmac_cv_c_printf_a=no
30324 cat >conftest.$ac_ext <<_ACEOF
30328 cat confdefs.h >>conftest.$ac_ext
30329 cat >>conftest.$ac_ext <<_ACEOF
30330 /* end confdefs.h. */
30333 #include <stdlib.h>
30339 volatile double A, B;
30343 sprintf(Buffer, "%a", A);
30347 if (A != 0x1.999999999999ap-4)
30354 rm -f conftest$ac_exeext
30355 if { (ac_try="$ac_link"
30356 case "(($ac_try" in
30357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30358 *) ac_try_echo=$ac_try;;
30360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30361 (eval "$ac_link") 2>&5
30363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30365 { (case "(($ac_try" in
30366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30367 *) ac_try_echo=$ac_try;;
30369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30370 (eval "$ac_try") 2>&5
30372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373 (exit $ac_status); }; }; then
30374 llvm_cv_c_printf_a=yes
30376 echo "$as_me: program exited with status $ac_status" >&5
30377 echo "$as_me: failed program was:" >&5
30378 sed 's/^/| /' conftest.$ac_ext >&5
30380 ( exit $ac_status )
30381 llvmac_cv_c_printf_a=no
30383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30388 ac_cpp='$CPP $CPPFLAGS'
30389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30394 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30395 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
30396 if test "$llvm_cv_c_printf_a" = "yes"; then
30398 cat >>confdefs.h <<\_ACEOF
30399 #define HAVE_PRINTF_A 1
30404 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30405 # for constant arguments. Useless!
30406 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
30407 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30408 if test "${ac_cv_working_alloca_h+set}" = set; then
30409 echo $ECHO_N "(cached) $ECHO_C" >&6
30411 cat >conftest.$ac_ext <<_ACEOF
30414 cat confdefs.h >>conftest.$ac_ext
30415 cat >>conftest.$ac_ext <<_ACEOF
30416 /* end confdefs.h. */
30417 #include <alloca.h>
30421 char *p = (char *) alloca (2 * sizeof (int));
30427 rm -f conftest.$ac_objext conftest$ac_exeext
30428 if { (ac_try="$ac_link"
30429 case "(($ac_try" in
30430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30431 *) ac_try_echo=$ac_try;;
30433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30434 (eval "$ac_link") 2>conftest.er1
30436 grep -v '^ *+' conftest.er1 >conftest.err
30438 cat conftest.err >&5
30439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440 (exit $ac_status); } &&
30441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30442 { (case "(($ac_try" in
30443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30444 *) ac_try_echo=$ac_try;;
30446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30447 (eval "$ac_try") 2>&5
30449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30450 (exit $ac_status); }; } &&
30451 { ac_try='test -s conftest$ac_exeext'
30452 { (case "(($ac_try" in
30453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30454 *) ac_try_echo=$ac_try;;
30456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30457 (eval "$ac_try") 2>&5
30459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30460 (exit $ac_status); }; }; then
30461 ac_cv_working_alloca_h=yes
30463 echo "$as_me: failed program was:" >&5
30464 sed 's/^/| /' conftest.$ac_ext >&5
30466 ac_cv_working_alloca_h=no
30469 rm -f core conftest.err conftest.$ac_objext \
30470 conftest$ac_exeext conftest.$ac_ext
30472 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30473 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30474 if test $ac_cv_working_alloca_h = yes; then
30476 cat >>confdefs.h <<\_ACEOF
30477 #define HAVE_ALLOCA_H 1
30482 { echo "$as_me:$LINENO: checking for alloca" >&5
30483 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30484 if test "${ac_cv_func_alloca_works+set}" = set; then
30485 echo $ECHO_N "(cached) $ECHO_C" >&6
30487 cat >conftest.$ac_ext <<_ACEOF
30490 cat confdefs.h >>conftest.$ac_ext
30491 cat >>conftest.$ac_ext <<_ACEOF
30492 /* end confdefs.h. */
30494 # define alloca __builtin_alloca
30497 # include <malloc.h>
30498 # define alloca _alloca
30501 # include <alloca.h>
30506 # ifndef alloca /* predefined by HP cc +Olibcalls */
30517 char *p = (char *) alloca (1);
30523 rm -f conftest.$ac_objext conftest$ac_exeext
30524 if { (ac_try="$ac_link"
30525 case "(($ac_try" in
30526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30527 *) ac_try_echo=$ac_try;;
30529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30530 (eval "$ac_link") 2>conftest.er1
30532 grep -v '^ *+' conftest.er1 >conftest.err
30534 cat conftest.err >&5
30535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30536 (exit $ac_status); } &&
30537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30538 { (case "(($ac_try" in
30539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30540 *) ac_try_echo=$ac_try;;
30542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30543 (eval "$ac_try") 2>&5
30545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30546 (exit $ac_status); }; } &&
30547 { ac_try='test -s conftest$ac_exeext'
30548 { (case "(($ac_try" in
30549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30550 *) ac_try_echo=$ac_try;;
30552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30553 (eval "$ac_try") 2>&5
30555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30556 (exit $ac_status); }; }; then
30557 ac_cv_func_alloca_works=yes
30559 echo "$as_me: failed program was:" >&5
30560 sed 's/^/| /' conftest.$ac_ext >&5
30562 ac_cv_func_alloca_works=no
30565 rm -f core conftest.err conftest.$ac_objext \
30566 conftest$ac_exeext conftest.$ac_ext
30568 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30569 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30571 if test $ac_cv_func_alloca_works = yes; then
30573 cat >>confdefs.h <<\_ACEOF
30574 #define HAVE_ALLOCA 1
30578 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30579 # that cause trouble. Some versions do not even contain alloca or
30580 # contain a buggy version. If you still want to use their alloca,
30581 # use ar to extract alloca.o from them instead of compiling alloca.c.
30583 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
30585 cat >>confdefs.h <<\_ACEOF
30590 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30591 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30592 if test "${ac_cv_os_cray+set}" = set; then
30593 echo $ECHO_N "(cached) $ECHO_C" >&6
30595 cat >conftest.$ac_ext <<_ACEOF
30598 cat confdefs.h >>conftest.$ac_ext
30599 cat >>conftest.$ac_ext <<_ACEOF
30600 /* end confdefs.h. */
30601 #if defined CRAY && ! defined CRAY2
30608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30609 $EGREP "webecray" >/dev/null 2>&1; then
30617 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30618 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30619 if test $ac_cv_os_cray = yes; then
30620 for ac_func in _getb67 GETB67 getb67; do
30621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30622 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30625 echo $ECHO_N "(cached) $ECHO_C" >&6
30627 cat >conftest.$ac_ext <<_ACEOF
30630 cat confdefs.h >>conftest.$ac_ext
30631 cat >>conftest.$ac_ext <<_ACEOF
30632 /* end confdefs.h. */
30633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30635 #define $ac_func innocuous_$ac_func
30637 /* System header to define __stub macros and hopefully few prototypes,
30638 which can conflict with char $ac_func (); below.
30639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30640 <limits.h> exists even on freestanding compilers. */
30643 # include <limits.h>
30645 # include <assert.h>
30650 /* Override any GCC internal prototype to avoid an error.
30651 Use char because int might match the return type of a GCC
30652 builtin and then its argument prototype would still apply. */
30657 /* The GNU C library defines this for functions which it implements
30658 to always fail with ENOSYS. Some functions are actually named
30659 something starting with __ and the normal name is an alias. */
30660 #if defined __stub_$ac_func || defined __stub___$ac_func
30667 return $ac_func ();
30672 rm -f conftest.$ac_objext conftest$ac_exeext
30673 if { (ac_try="$ac_link"
30674 case "(($ac_try" in
30675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30676 *) ac_try_echo=$ac_try;;
30678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30679 (eval "$ac_link") 2>conftest.er1
30681 grep -v '^ *+' conftest.er1 >conftest.err
30683 cat conftest.err >&5
30684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685 (exit $ac_status); } &&
30686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30687 { (case "(($ac_try" in
30688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30689 *) ac_try_echo=$ac_try;;
30691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30692 (eval "$ac_try") 2>&5
30694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30695 (exit $ac_status); }; } &&
30696 { ac_try='test -s conftest$ac_exeext'
30697 { (case "(($ac_try" in
30698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30699 *) ac_try_echo=$ac_try;;
30701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30702 (eval "$ac_try") 2>&5
30704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705 (exit $ac_status); }; }; then
30706 eval "$as_ac_var=yes"
30708 echo "$as_me: failed program was:" >&5
30709 sed 's/^/| /' conftest.$ac_ext >&5
30711 eval "$as_ac_var=no"
30714 rm -f core conftest.err conftest.$ac_objext \
30715 conftest$ac_exeext conftest.$ac_ext
30717 ac_res=`eval echo '${'$as_ac_var'}'`
30718 { echo "$as_me:$LINENO: result: $ac_res" >&5
30719 echo "${ECHO_T}$ac_res" >&6; }
30720 if test `eval echo '${'$as_ac_var'}'` = yes; then
30722 cat >>confdefs.h <<_ACEOF
30723 #define CRAY_STACKSEG_END $ac_func
30732 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30733 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
30734 if test "${ac_cv_c_stack_direction+set}" = set; then
30735 echo $ECHO_N "(cached) $ECHO_C" >&6
30737 if test "$cross_compiling" = yes; then
30738 ac_cv_c_stack_direction=0
30740 cat >conftest.$ac_ext <<_ACEOF
30743 cat confdefs.h >>conftest.$ac_ext
30744 cat >>conftest.$ac_ext <<_ACEOF
30745 /* end confdefs.h. */
30746 $ac_includes_default
30748 find_stack_direction ()
30750 static char *addr = 0;
30755 return find_stack_direction ();
30758 return (&dummy > addr) ? 1 : -1;
30764 return find_stack_direction () < 0;
30767 rm -f conftest$ac_exeext
30768 if { (ac_try="$ac_link"
30769 case "(($ac_try" in
30770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30771 *) ac_try_echo=$ac_try;;
30773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30774 (eval "$ac_link") 2>&5
30776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30778 { (case "(($ac_try" in
30779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30780 *) ac_try_echo=$ac_try;;
30782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30783 (eval "$ac_try") 2>&5
30785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30786 (exit $ac_status); }; }; then
30787 ac_cv_c_stack_direction=1
30789 echo "$as_me: program exited with status $ac_status" >&5
30790 echo "$as_me: failed program was:" >&5
30791 sed 's/^/| /' conftest.$ac_ext >&5
30793 ( exit $ac_status )
30794 ac_cv_c_stack_direction=-1
30796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30801 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30802 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
30804 cat >>confdefs.h <<_ACEOF
30805 #define STACK_DIRECTION $ac_cv_c_stack_direction
30812 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30813 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
30814 if test "${ac_cv_func_rand48+set}" = set; then
30815 echo $ECHO_N "(cached) $ECHO_C" >&6
30818 ac_cpp='$CXXCPP $CPPFLAGS'
30819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30823 cat >conftest.$ac_ext <<_ACEOF
30826 cat confdefs.h >>conftest.$ac_ext
30827 cat >>conftest.$ac_ext <<_ACEOF
30828 /* end confdefs.h. */
30829 #include <stdlib.h>
30833 srand48(0);lrand48();drand48();
30838 rm -f conftest.$ac_objext
30839 if { (ac_try="$ac_compile"
30840 case "(($ac_try" in
30841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30842 *) ac_try_echo=$ac_try;;
30844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30845 (eval "$ac_compile") 2>conftest.er1
30847 grep -v '^ *+' conftest.er1 >conftest.err
30849 cat conftest.err >&5
30850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30851 (exit $ac_status); } &&
30852 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30853 { (case "(($ac_try" in
30854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30855 *) ac_try_echo=$ac_try;;
30857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30858 (eval "$ac_try") 2>&5
30860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30861 (exit $ac_status); }; } &&
30862 { ac_try='test -s conftest.$ac_objext'
30863 { (case "(($ac_try" in
30864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30865 *) ac_try_echo=$ac_try;;
30867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30868 (eval "$ac_try") 2>&5
30870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30871 (exit $ac_status); }; }; then
30872 ac_cv_func_rand48=yes
30874 echo "$as_me: failed program was:" >&5
30875 sed 's/^/| /' conftest.$ac_ext >&5
30877 ac_cv_func_rand48=no
30880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30882 ac_cpp='$CPP $CPPFLAGS'
30883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30888 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
30889 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
30891 if test "$ac_cv_func_rand48" = "yes" ; then
30893 cat >>confdefs.h <<\_ACEOF
30894 #define HAVE_RAND48 1
30900 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
30901 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
30902 if test "${ac_cv_cxx_namespaces+set}" = set; then
30903 echo $ECHO_N "(cached) $ECHO_C" >&6
30906 ac_cpp='$CXXCPP $CPPFLAGS'
30907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30911 cat >conftest.$ac_ext <<_ACEOF
30914 cat confdefs.h >>conftest.$ac_ext
30915 cat >>conftest.$ac_ext <<_ACEOF
30916 /* end confdefs.h. */
30917 namespace Outer { namespace Inner { int i = 0; }}
30921 using namespace Outer::Inner; return i;
30926 rm -f conftest.$ac_objext
30927 if { (ac_try="$ac_compile"
30928 case "(($ac_try" in
30929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30930 *) ac_try_echo=$ac_try;;
30932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30933 (eval "$ac_compile") 2>conftest.er1
30935 grep -v '^ *+' conftest.er1 >conftest.err
30937 cat conftest.err >&5
30938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30939 (exit $ac_status); } &&
30940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30941 { (case "(($ac_try" in
30942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30943 *) ac_try_echo=$ac_try;;
30945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30946 (eval "$ac_try") 2>&5
30948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949 (exit $ac_status); }; } &&
30950 { ac_try='test -s conftest.$ac_objext'
30951 { (case "(($ac_try" in
30952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30953 *) ac_try_echo=$ac_try;;
30955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30956 (eval "$ac_try") 2>&5
30958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959 (exit $ac_status); }; }; then
30960 ac_cv_cxx_namespaces=yes
30962 echo "$as_me: failed program was:" >&5
30963 sed 's/^/| /' conftest.$ac_ext >&5
30965 ac_cv_cxx_namespaces=no
30968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30970 ac_cpp='$CPP $CPPFLAGS'
30971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30977 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
30978 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
30979 if test "$ac_cv_cxx_namespaces" = yes; then
30981 cat >>confdefs.h <<\_ACEOF
30982 #define HAVE_NAMESPACES
30987 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
30988 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
30989 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
30990 echo $ECHO_N "(cached) $ECHO_C" >&6
30994 ac_cpp='$CXXCPP $CPPFLAGS'
30995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30999 cat >conftest.$ac_ext <<_ACEOF
31002 cat confdefs.h >>conftest.$ac_ext
31003 cat >>conftest.$ac_ext <<_ACEOF
31004 /* end confdefs.h. */
31005 #include <ext/hash_map>
31006 #ifdef HAVE_NAMESPACES
31007 using namespace std;
31012 hash_map<int, int> t;
31017 rm -f conftest.$ac_objext
31018 if { (ac_try="$ac_compile"
31019 case "(($ac_try" in
31020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31021 *) ac_try_echo=$ac_try;;
31023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31024 (eval "$ac_compile") 2>conftest.er1
31026 grep -v '^ *+' conftest.er1 >conftest.err
31028 cat conftest.err >&5
31029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31030 (exit $ac_status); } &&
31031 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31032 { (case "(($ac_try" in
31033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31034 *) ac_try_echo=$ac_try;;
31036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31037 (eval "$ac_try") 2>&5
31039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31040 (exit $ac_status); }; } &&
31041 { ac_try='test -s conftest.$ac_objext'
31042 { (case "(($ac_try" in
31043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31044 *) ac_try_echo=$ac_try;;
31046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31047 (eval "$ac_try") 2>&5
31049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31050 (exit $ac_status); }; }; then
31051 ac_cv_cxx_have_std_ext_hash_map=yes
31053 echo "$as_me: failed program was:" >&5
31054 sed 's/^/| /' conftest.$ac_ext >&5
31056 ac_cv_cxx_have_std_ext_hash_map=no
31059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31061 ac_cpp='$CPP $CPPFLAGS'
31062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31067 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31068 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31069 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31072 cat >>confdefs.h <<\_ACEOF
31073 #define HAVE_STD_EXT_HASH_MAP 1
31078 cat >>confdefs.h <<\_ACEOF
31079 #define HAVE_STD_EXT_HASH_MAP 0
31084 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31085 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31086 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31087 echo $ECHO_N "(cached) $ECHO_C" >&6
31091 ac_cpp='$CXXCPP $CPPFLAGS'
31092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31096 cat >conftest.$ac_ext <<_ACEOF
31099 cat confdefs.h >>conftest.$ac_ext
31100 cat >>conftest.$ac_ext <<_ACEOF
31101 /* end confdefs.h. */
31102 #include <ext/hash_map>
31103 #ifdef HAVE_NAMESPACES
31104 using namespace __gnu_cxx;
31109 hash_map<int,int> t;
31114 rm -f conftest.$ac_objext
31115 if { (ac_try="$ac_compile"
31116 case "(($ac_try" in
31117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31118 *) ac_try_echo=$ac_try;;
31120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31121 (eval "$ac_compile") 2>conftest.er1
31123 grep -v '^ *+' conftest.er1 >conftest.err
31125 cat conftest.err >&5
31126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31127 (exit $ac_status); } &&
31128 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31129 { (case "(($ac_try" in
31130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31131 *) ac_try_echo=$ac_try;;
31133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31134 (eval "$ac_try") 2>&5
31136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137 (exit $ac_status); }; } &&
31138 { ac_try='test -s conftest.$ac_objext'
31139 { (case "(($ac_try" in
31140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31141 *) ac_try_echo=$ac_try;;
31143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31144 (eval "$ac_try") 2>&5
31146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31147 (exit $ac_status); }; }; then
31148 ac_cv_cxx_have_gnu_ext_hash_map=yes
31150 echo "$as_me: failed program was:" >&5
31151 sed 's/^/| /' conftest.$ac_ext >&5
31153 ac_cv_cxx_have_gnu_ext_hash_map=no
31156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31158 ac_cpp='$CPP $CPPFLAGS'
31159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31164 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31165 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31166 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31169 cat >>confdefs.h <<\_ACEOF
31170 #define HAVE_GNU_EXT_HASH_MAP 1
31175 cat >>confdefs.h <<\_ACEOF
31176 #define HAVE_GNU_EXT_HASH_MAP 0
31181 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31182 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31183 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31184 echo $ECHO_N "(cached) $ECHO_C" >&6
31188 ac_cpp='$CXXCPP $CPPFLAGS'
31189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31193 cat >conftest.$ac_ext <<_ACEOF
31196 cat confdefs.h >>conftest.$ac_ext
31197 cat >>conftest.$ac_ext <<_ACEOF
31198 /* end confdefs.h. */
31199 #include <hash_map>
31203 hash_map<int,int> t;
31208 rm -f conftest.$ac_objext
31209 if { (ac_try="$ac_compile"
31210 case "(($ac_try" in
31211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31212 *) ac_try_echo=$ac_try;;
31214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31215 (eval "$ac_compile") 2>conftest.er1
31217 grep -v '^ *+' conftest.er1 >conftest.err
31219 cat conftest.err >&5
31220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31221 (exit $ac_status); } &&
31222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31223 { (case "(($ac_try" in
31224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31225 *) ac_try_echo=$ac_try;;
31227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31228 (eval "$ac_try") 2>&5
31230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231 (exit $ac_status); }; } &&
31232 { ac_try='test -s conftest.$ac_objext'
31233 { (case "(($ac_try" in
31234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31235 *) ac_try_echo=$ac_try;;
31237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31238 (eval "$ac_try") 2>&5
31240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31241 (exit $ac_status); }; }; then
31242 ac_cv_cxx_have_global_hash_map=yes
31244 echo "$as_me: failed program was:" >&5
31245 sed 's/^/| /' conftest.$ac_ext >&5
31247 ac_cv_cxx_have_global_hash_map=no
31250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31252 ac_cpp='$CPP $CPPFLAGS'
31253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31258 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31259 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31260 if test "$ac_cv_cxx_have_global_hash_map" = yes
31263 cat >>confdefs.h <<\_ACEOF
31264 #define HAVE_GLOBAL_HASH_MAP 1
31269 cat >>confdefs.h <<\_ACEOF
31270 #define HAVE_GLOBAL_HASH_MAP 0
31275 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31276 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31277 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31278 echo $ECHO_N "(cached) $ECHO_C" >&6
31282 ac_cpp='$CXXCPP $CPPFLAGS'
31283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31287 cat >conftest.$ac_ext <<_ACEOF
31290 cat confdefs.h >>conftest.$ac_ext
31291 cat >>conftest.$ac_ext <<_ACEOF
31292 /* end confdefs.h. */
31293 #include <ext/hash_set>
31294 #ifdef HAVE_NAMESPACES
31295 using namespace std;
31305 rm -f conftest.$ac_objext
31306 if { (ac_try="$ac_compile"
31307 case "(($ac_try" in
31308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31309 *) ac_try_echo=$ac_try;;
31311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31312 (eval "$ac_compile") 2>conftest.er1
31314 grep -v '^ *+' conftest.er1 >conftest.err
31316 cat conftest.err >&5
31317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318 (exit $ac_status); } &&
31319 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31320 { (case "(($ac_try" in
31321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31322 *) ac_try_echo=$ac_try;;
31324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31325 (eval "$ac_try") 2>&5
31327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328 (exit $ac_status); }; } &&
31329 { ac_try='test -s conftest.$ac_objext'
31330 { (case "(($ac_try" in
31331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31332 *) ac_try_echo=$ac_try;;
31334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31335 (eval "$ac_try") 2>&5
31337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338 (exit $ac_status); }; }; then
31339 ac_cv_cxx_have_std_ext_hash_set=yes
31341 echo "$as_me: failed program was:" >&5
31342 sed 's/^/| /' conftest.$ac_ext >&5
31344 ac_cv_cxx_have_std_ext_hash_set=no
31347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31349 ac_cpp='$CPP $CPPFLAGS'
31350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31355 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31356 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
31357 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31360 cat >>confdefs.h <<\_ACEOF
31361 #define HAVE_STD_EXT_HASH_SET 1
31366 cat >>confdefs.h <<\_ACEOF
31367 #define HAVE_STD_EXT_HASH_SET 0
31372 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31373 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
31374 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31375 echo $ECHO_N "(cached) $ECHO_C" >&6
31379 ac_cpp='$CXXCPP $CPPFLAGS'
31380 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31381 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31382 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31384 cat >conftest.$ac_ext <<_ACEOF
31387 cat confdefs.h >>conftest.$ac_ext
31388 cat >>conftest.$ac_ext <<_ACEOF
31389 /* end confdefs.h. */
31390 #include <ext/hash_set>
31391 #ifdef HAVE_NAMESPACES
31392 using namespace __gnu_cxx;
31402 rm -f conftest.$ac_objext
31403 if { (ac_try="$ac_compile"
31404 case "(($ac_try" in
31405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31406 *) ac_try_echo=$ac_try;;
31408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31409 (eval "$ac_compile") 2>conftest.er1
31411 grep -v '^ *+' conftest.er1 >conftest.err
31413 cat conftest.err >&5
31414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31415 (exit $ac_status); } &&
31416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31417 { (case "(($ac_try" in
31418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31419 *) ac_try_echo=$ac_try;;
31421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31422 (eval "$ac_try") 2>&5
31424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31425 (exit $ac_status); }; } &&
31426 { ac_try='test -s conftest.$ac_objext'
31427 { (case "(($ac_try" in
31428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31429 *) ac_try_echo=$ac_try;;
31431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31432 (eval "$ac_try") 2>&5
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435 (exit $ac_status); }; }; then
31436 ac_cv_cxx_have_gnu_ext_hash_set=yes
31438 echo "$as_me: failed program was:" >&5
31439 sed 's/^/| /' conftest.$ac_ext >&5
31441 ac_cv_cxx_have_gnu_ext_hash_set=no
31444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31446 ac_cpp='$CPP $CPPFLAGS'
31447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31452 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31453 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
31454 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31457 cat >>confdefs.h <<\_ACEOF
31458 #define HAVE_GNU_EXT_HASH_SET 1
31463 cat >>confdefs.h <<\_ACEOF
31464 #define HAVE_GNU_EXT_HASH_SET 0
31469 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31470 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
31471 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31472 echo $ECHO_N "(cached) $ECHO_C" >&6
31476 ac_cpp='$CXXCPP $CPPFLAGS'
31477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31481 cat >conftest.$ac_ext <<_ACEOF
31484 cat confdefs.h >>conftest.$ac_ext
31485 cat >>conftest.$ac_ext <<_ACEOF
31486 /* end confdefs.h. */
31487 #include <hash_set>
31491 hash_set<int> t; return 0;
31496 rm -f conftest.$ac_objext
31497 if { (ac_try="$ac_compile"
31498 case "(($ac_try" in
31499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31500 *) ac_try_echo=$ac_try;;
31502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31503 (eval "$ac_compile") 2>conftest.er1
31505 grep -v '^ *+' conftest.er1 >conftest.err
31507 cat conftest.err >&5
31508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31509 (exit $ac_status); } &&
31510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31511 { (case "(($ac_try" in
31512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31513 *) ac_try_echo=$ac_try;;
31515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31516 (eval "$ac_try") 2>&5
31518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31519 (exit $ac_status); }; } &&
31520 { ac_try='test -s conftest.$ac_objext'
31521 { (case "(($ac_try" in
31522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31523 *) ac_try_echo=$ac_try;;
31525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31526 (eval "$ac_try") 2>&5
31528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31529 (exit $ac_status); }; }; then
31530 ac_cv_cxx_have_global_hash_set=yes
31532 echo "$as_me: failed program was:" >&5
31533 sed 's/^/| /' conftest.$ac_ext >&5
31535 ac_cv_cxx_have_global_hash_set=no
31538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31540 ac_cpp='$CPP $CPPFLAGS'
31541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31546 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31547 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
31548 if test "$ac_cv_cxx_have_global_hash_set" = yes
31551 cat >>confdefs.h <<\_ACEOF
31552 #define HAVE_GLOBAL_HASH_SET 1
31557 cat >>confdefs.h <<\_ACEOF
31558 #define HAVE_GLOBAL_HASH_SET 0
31563 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31564 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
31565 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31566 echo $ECHO_N "(cached) $ECHO_C" >&6
31570 ac_cpp='$CXXCPP $CPPFLAGS'
31571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31575 cat >conftest.$ac_ext <<_ACEOF
31578 cat confdefs.h >>conftest.$ac_ext
31579 cat >>conftest.$ac_ext <<_ACEOF
31580 /* end confdefs.h. */
31581 #include <iterator>
31582 #ifdef HAVE_NAMESPACES
31583 using namespace std;
31588 iterator<int,int,int> t; return 0;
31593 rm -f conftest.$ac_objext
31594 if { (ac_try="$ac_compile"
31595 case "(($ac_try" in
31596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31597 *) ac_try_echo=$ac_try;;
31599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31600 (eval "$ac_compile") 2>conftest.er1
31602 grep -v '^ *+' conftest.er1 >conftest.err
31604 cat conftest.err >&5
31605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31606 (exit $ac_status); } &&
31607 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31608 { (case "(($ac_try" in
31609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31610 *) ac_try_echo=$ac_try;;
31612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31613 (eval "$ac_try") 2>&5
31615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616 (exit $ac_status); }; } &&
31617 { ac_try='test -s conftest.$ac_objext'
31618 { (case "(($ac_try" in
31619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31620 *) ac_try_echo=$ac_try;;
31622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31623 (eval "$ac_try") 2>&5
31625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31626 (exit $ac_status); }; }; then
31627 ac_cv_cxx_have_std_iterator=yes
31629 echo "$as_me: failed program was:" >&5
31630 sed 's/^/| /' conftest.$ac_ext >&5
31632 ac_cv_cxx_have_std_iterator=no
31635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31637 ac_cpp='$CPP $CPPFLAGS'
31638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31644 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31645 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
31646 if test "$ac_cv_cxx_have_std_iterator" = yes
31649 cat >>confdefs.h <<\_ACEOF
31650 #define HAVE_STD_ITERATOR 1
31655 cat >>confdefs.h <<\_ACEOF
31656 #define HAVE_STD_ITERATOR 0
31661 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31662 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
31663 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31664 echo $ECHO_N "(cached) $ECHO_C" >&6
31668 ac_cpp='$CXXCPP $CPPFLAGS'
31669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31673 cat >conftest.$ac_ext <<_ACEOF
31676 cat confdefs.h >>conftest.$ac_ext
31677 cat >>conftest.$ac_ext <<_ACEOF
31678 /* end confdefs.h. */
31679 #include <iterator>
31680 #ifdef HAVE_NAMESPACES
31681 using namespace std;
31686 bidirectional_iterator<int,int> t; return 0;
31691 rm -f conftest.$ac_objext
31692 if { (ac_try="$ac_compile"
31693 case "(($ac_try" in
31694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31695 *) ac_try_echo=$ac_try;;
31697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31698 (eval "$ac_compile") 2>conftest.er1
31700 grep -v '^ *+' conftest.er1 >conftest.err
31702 cat conftest.err >&5
31703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31704 (exit $ac_status); } &&
31705 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31706 { (case "(($ac_try" in
31707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31708 *) ac_try_echo=$ac_try;;
31710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31711 (eval "$ac_try") 2>&5
31713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714 (exit $ac_status); }; } &&
31715 { ac_try='test -s conftest.$ac_objext'
31716 { (case "(($ac_try" in
31717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31718 *) ac_try_echo=$ac_try;;
31720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31721 (eval "$ac_try") 2>&5
31723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724 (exit $ac_status); }; }; then
31725 ac_cv_cxx_have_bi_iterator=yes
31727 echo "$as_me: failed program was:" >&5
31728 sed 's/^/| /' conftest.$ac_ext >&5
31730 ac_cv_cxx_have_bi_iterator=no
31733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31735 ac_cpp='$CPP $CPPFLAGS'
31736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31742 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31743 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
31744 if test "$ac_cv_cxx_have_bi_iterator" = yes
31747 cat >>confdefs.h <<\_ACEOF
31748 #define HAVE_BI_ITERATOR 1
31753 cat >>confdefs.h <<\_ACEOF
31754 #define HAVE_BI_ITERATOR 0
31759 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
31760 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
31761 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31762 echo $ECHO_N "(cached) $ECHO_C" >&6
31766 ac_cpp='$CXXCPP $CPPFLAGS'
31767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31771 cat >conftest.$ac_ext <<_ACEOF
31774 cat confdefs.h >>conftest.$ac_ext
31775 cat >>conftest.$ac_ext <<_ACEOF
31776 /* end confdefs.h. */
31777 #include <iterator>
31778 #ifdef HAVE_NAMESPACES
31779 using namespace std;
31784 forward_iterator<int,int> t; return 0;
31789 rm -f conftest.$ac_objext
31790 if { (ac_try="$ac_compile"
31791 case "(($ac_try" in
31792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31793 *) ac_try_echo=$ac_try;;
31795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31796 (eval "$ac_compile") 2>conftest.er1
31798 grep -v '^ *+' conftest.er1 >conftest.err
31800 cat conftest.err >&5
31801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31802 (exit $ac_status); } &&
31803 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31804 { (case "(($ac_try" in
31805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31806 *) ac_try_echo=$ac_try;;
31808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31809 (eval "$ac_try") 2>&5
31811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31812 (exit $ac_status); }; } &&
31813 { ac_try='test -s conftest.$ac_objext'
31814 { (case "(($ac_try" in
31815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31816 *) ac_try_echo=$ac_try;;
31818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31819 (eval "$ac_try") 2>&5
31821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31822 (exit $ac_status); }; }; then
31823 ac_cv_cxx_have_fwd_iterator=yes
31825 echo "$as_me: failed program was:" >&5
31826 sed 's/^/| /' conftest.$ac_ext >&5
31828 ac_cv_cxx_have_fwd_iterator=no
31831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31833 ac_cpp='$CPP $CPPFLAGS'
31834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31840 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
31841 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
31842 if test "$ac_cv_cxx_have_fwd_iterator" = yes
31845 cat >>confdefs.h <<\_ACEOF
31846 #define HAVE_FWD_ITERATOR 1
31851 cat >>confdefs.h <<\_ACEOF
31852 #define HAVE_FWD_ITERATOR 0
31858 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
31859 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
31860 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31861 echo $ECHO_N "(cached) $ECHO_C" >&6
31864 ac_cpp='$CXXCPP $CPPFLAGS'
31865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31869 cat >conftest.$ac_ext <<_ACEOF
31872 cat confdefs.h >>conftest.$ac_ext
31873 cat >>conftest.$ac_ext <<_ACEOF
31874 /* end confdefs.h. */
31884 rm -f conftest.$ac_objext
31885 if { (ac_try="$ac_compile"
31886 case "(($ac_try" in
31887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31888 *) ac_try_echo=$ac_try;;
31890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31891 (eval "$ac_compile") 2>conftest.er1
31893 grep -v '^ *+' conftest.er1 >conftest.err
31895 cat conftest.err >&5
31896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897 (exit $ac_status); } &&
31898 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31899 { (case "(($ac_try" in
31900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31901 *) ac_try_echo=$ac_try;;
31903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31904 (eval "$ac_try") 2>&5
31906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907 (exit $ac_status); }; } &&
31908 { ac_try='test -s conftest.$ac_objext'
31909 { (case "(($ac_try" in
31910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31911 *) ac_try_echo=$ac_try;;
31913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31914 (eval "$ac_try") 2>&5
31916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31917 (exit $ac_status); }; }; then
31918 ac_cv_func_isnan_in_math_h=yes
31920 echo "$as_me: failed program was:" >&5
31921 sed 's/^/| /' conftest.$ac_ext >&5
31923 ac_cv_func_isnan_in_math_h=no
31926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31928 ac_cpp='$CPP $CPPFLAGS'
31929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31934 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
31935 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
31938 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
31940 cat >>confdefs.h <<\_ACEOF
31941 #define HAVE_ISNAN_IN_MATH_H 1
31946 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
31947 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
31948 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
31949 echo $ECHO_N "(cached) $ECHO_C" >&6
31952 ac_cpp='$CXXCPP $CPPFLAGS'
31953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31957 cat >conftest.$ac_ext <<_ACEOF
31960 cat confdefs.h >>conftest.$ac_ext
31961 cat >>conftest.$ac_ext <<_ACEOF
31962 /* end confdefs.h. */
31972 rm -f conftest.$ac_objext
31973 if { (ac_try="$ac_compile"
31974 case "(($ac_try" in
31975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31976 *) ac_try_echo=$ac_try;;
31978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31979 (eval "$ac_compile") 2>conftest.er1
31981 grep -v '^ *+' conftest.er1 >conftest.err
31983 cat conftest.err >&5
31984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31985 (exit $ac_status); } &&
31986 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31987 { (case "(($ac_try" in
31988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31989 *) ac_try_echo=$ac_try;;
31991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31992 (eval "$ac_try") 2>&5
31994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995 (exit $ac_status); }; } &&
31996 { ac_try='test -s conftest.$ac_objext'
31997 { (case "(($ac_try" in
31998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31999 *) ac_try_echo=$ac_try;;
32001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32002 (eval "$ac_try") 2>&5
32004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32005 (exit $ac_status); }; }; then
32006 ac_cv_func_isnan_in_cmath=yes
32008 echo "$as_me: failed program was:" >&5
32009 sed 's/^/| /' conftest.$ac_ext >&5
32011 ac_cv_func_isnan_in_cmath=no
32014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32016 ac_cpp='$CPP $CPPFLAGS'
32017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32022 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32023 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32025 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32027 cat >>confdefs.h <<\_ACEOF
32028 #define HAVE_ISNAN_IN_CMATH 1
32033 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32034 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32035 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32036 echo $ECHO_N "(cached) $ECHO_C" >&6
32039 ac_cpp='$CXXCPP $CPPFLAGS'
32040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32044 cat >conftest.$ac_ext <<_ACEOF
32047 cat confdefs.h >>conftest.$ac_ext
32048 cat >>conftest.$ac_ext <<_ACEOF
32049 /* end confdefs.h. */
32054 float f; std::isnan(f);
32059 rm -f conftest.$ac_objext
32060 if { (ac_try="$ac_compile"
32061 case "(($ac_try" in
32062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32063 *) ac_try_echo=$ac_try;;
32065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32066 (eval "$ac_compile") 2>conftest.er1
32068 grep -v '^ *+' conftest.er1 >conftest.err
32070 cat conftest.err >&5
32071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32072 (exit $ac_status); } &&
32073 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32074 { (case "(($ac_try" in
32075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32076 *) ac_try_echo=$ac_try;;
32078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32079 (eval "$ac_try") 2>&5
32081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32082 (exit $ac_status); }; } &&
32083 { ac_try='test -s conftest.$ac_objext'
32084 { (case "(($ac_try" in
32085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32086 *) ac_try_echo=$ac_try;;
32088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32089 (eval "$ac_try") 2>&5
32091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32092 (exit $ac_status); }; }; then
32093 ac_cv_func_std_isnan_in_cmath=yes
32095 echo "$as_me: failed program was:" >&5
32096 sed 's/^/| /' conftest.$ac_ext >&5
32098 ac_cv_func_std_isnan_in_cmath=no
32101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32103 ac_cpp='$CPP $CPPFLAGS'
32104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32109 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32110 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32112 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32114 cat >>confdefs.h <<\_ACEOF
32115 #define HAVE_STD_ISNAN_IN_CMATH 1
32121 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32122 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32123 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32124 echo $ECHO_N "(cached) $ECHO_C" >&6
32127 ac_cpp='$CXXCPP $CPPFLAGS'
32128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32132 cat >conftest.$ac_ext <<_ACEOF
32135 cat confdefs.h >>conftest.$ac_ext
32136 cat >>conftest.$ac_ext <<_ACEOF
32137 /* end confdefs.h. */
32147 rm -f conftest.$ac_objext
32148 if { (ac_try="$ac_compile"
32149 case "(($ac_try" in
32150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32151 *) ac_try_echo=$ac_try;;
32153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32154 (eval "$ac_compile") 2>conftest.er1
32156 grep -v '^ *+' conftest.er1 >conftest.err
32158 cat conftest.err >&5
32159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32160 (exit $ac_status); } &&
32161 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32162 { (case "(($ac_try" in
32163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32164 *) ac_try_echo=$ac_try;;
32166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32167 (eval "$ac_try") 2>&5
32169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170 (exit $ac_status); }; } &&
32171 { ac_try='test -s conftest.$ac_objext'
32172 { (case "(($ac_try" in
32173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32174 *) ac_try_echo=$ac_try;;
32176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32177 (eval "$ac_try") 2>&5
32179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32180 (exit $ac_status); }; }; then
32181 ac_cv_func_isinf_in_math_h=yes
32183 echo "$as_me: failed program was:" >&5
32184 sed 's/^/| /' conftest.$ac_ext >&5
32186 ac_cv_func_isinf_in_math_h=no
32189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32191 ac_cpp='$CPP $CPPFLAGS'
32192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32197 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32198 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32200 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32202 cat >>confdefs.h <<\_ACEOF
32203 #define HAVE_ISINF_IN_MATH_H 1
32208 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32209 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32210 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32211 echo $ECHO_N "(cached) $ECHO_C" >&6
32214 ac_cpp='$CXXCPP $CPPFLAGS'
32215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32219 cat >conftest.$ac_ext <<_ACEOF
32222 cat confdefs.h >>conftest.$ac_ext
32223 cat >>conftest.$ac_ext <<_ACEOF
32224 /* end confdefs.h. */
32234 rm -f conftest.$ac_objext
32235 if { (ac_try="$ac_compile"
32236 case "(($ac_try" in
32237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32238 *) ac_try_echo=$ac_try;;
32240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32241 (eval "$ac_compile") 2>conftest.er1
32243 grep -v '^ *+' conftest.er1 >conftest.err
32245 cat conftest.err >&5
32246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247 (exit $ac_status); } &&
32248 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32249 { (case "(($ac_try" in
32250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32251 *) ac_try_echo=$ac_try;;
32253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32254 (eval "$ac_try") 2>&5
32256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257 (exit $ac_status); }; } &&
32258 { ac_try='test -s conftest.$ac_objext'
32259 { (case "(($ac_try" in
32260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32261 *) ac_try_echo=$ac_try;;
32263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32264 (eval "$ac_try") 2>&5
32266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32267 (exit $ac_status); }; }; then
32268 ac_cv_func_isinf_in_cmath=yes
32270 echo "$as_me: failed program was:" >&5
32271 sed 's/^/| /' conftest.$ac_ext >&5
32273 ac_cv_func_isinf_in_cmath=no
32276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32278 ac_cpp='$CPP $CPPFLAGS'
32279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32284 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32285 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32287 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32289 cat >>confdefs.h <<\_ACEOF
32290 #define HAVE_ISINF_IN_CMATH 1
32295 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32296 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32297 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32298 echo $ECHO_N "(cached) $ECHO_C" >&6
32301 ac_cpp='$CXXCPP $CPPFLAGS'
32302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32306 cat >conftest.$ac_ext <<_ACEOF
32309 cat confdefs.h >>conftest.$ac_ext
32310 cat >>conftest.$ac_ext <<_ACEOF
32311 /* end confdefs.h. */
32316 float f; std::isinf(f)}
32321 rm -f conftest.$ac_objext
32322 if { (ac_try="$ac_compile"
32323 case "(($ac_try" in
32324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32325 *) ac_try_echo=$ac_try;;
32327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32328 (eval "$ac_compile") 2>conftest.er1
32330 grep -v '^ *+' conftest.er1 >conftest.err
32332 cat conftest.err >&5
32333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32334 (exit $ac_status); } &&
32335 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32336 { (case "(($ac_try" in
32337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32338 *) ac_try_echo=$ac_try;;
32340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32341 (eval "$ac_try") 2>&5
32343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32344 (exit $ac_status); }; } &&
32345 { ac_try='test -s conftest.$ac_objext'
32346 { (case "(($ac_try" in
32347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32348 *) ac_try_echo=$ac_try;;
32350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32351 (eval "$ac_try") 2>&5
32353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32354 (exit $ac_status); }; }; then
32355 ac_cv_func_std_isinf_in_cmath=yes
32357 echo "$as_me: failed program was:" >&5
32358 sed 's/^/| /' conftest.$ac_ext >&5
32360 ac_cv_func_std_isinf_in_cmath=no
32363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32365 ac_cpp='$CPP $CPPFLAGS'
32366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32371 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32372 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32374 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32376 cat >>confdefs.h <<\_ACEOF
32377 #define HAVE_STD_ISINF_IN_CMATH 1
32382 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32383 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32384 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32385 echo $ECHO_N "(cached) $ECHO_C" >&6
32388 ac_cpp='$CXXCPP $CPPFLAGS'
32389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32393 cat >conftest.$ac_ext <<_ACEOF
32396 cat confdefs.h >>conftest.$ac_ext
32397 cat >>conftest.$ac_ext <<_ACEOF
32398 /* end confdefs.h. */
32399 #include <ieeefp.h>
32403 float f; finite(f);
32408 rm -f conftest.$ac_objext
32409 if { (ac_try="$ac_compile"
32410 case "(($ac_try" in
32411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32412 *) ac_try_echo=$ac_try;;
32414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32415 (eval "$ac_compile") 2>conftest.er1
32417 grep -v '^ *+' conftest.er1 >conftest.err
32419 cat conftest.err >&5
32420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32421 (exit $ac_status); } &&
32422 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32423 { (case "(($ac_try" in
32424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32425 *) ac_try_echo=$ac_try;;
32427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32428 (eval "$ac_try") 2>&5
32430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32431 (exit $ac_status); }; } &&
32432 { ac_try='test -s conftest.$ac_objext'
32433 { (case "(($ac_try" in
32434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32435 *) ac_try_echo=$ac_try;;
32437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32438 (eval "$ac_try") 2>&5
32440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32441 (exit $ac_status); }; }; then
32442 ac_cv_func_finite_in_ieeefp_h=yes
32444 echo "$as_me: failed program was:" >&5
32445 sed 's/^/| /' conftest.$ac_ext >&5
32447 ac_cv_func_finite_in_ieeefp_h=no
32450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32452 ac_cpp='$CPP $CPPFLAGS'
32453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32458 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32459 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32461 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32463 cat >>confdefs.h <<\_ACEOF
32464 #define HAVE_FINITE_IN_IEEEFP_H 1
32473 for ac_header in stdlib.h unistd.h
32475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32480 echo $ECHO_N "(cached) $ECHO_C" >&6
32482 ac_res=`eval echo '${'$as_ac_Header'}'`
32483 { echo "$as_me:$LINENO: result: $ac_res" >&5
32484 echo "${ECHO_T}$ac_res" >&6; }
32486 # Is the header compilable?
32487 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32489 cat >conftest.$ac_ext <<_ACEOF
32492 cat confdefs.h >>conftest.$ac_ext
32493 cat >>conftest.$ac_ext <<_ACEOF
32494 /* end confdefs.h. */
32495 $ac_includes_default
32496 #include <$ac_header>
32498 rm -f conftest.$ac_objext
32499 if { (ac_try="$ac_compile"
32500 case "(($ac_try" in
32501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32502 *) ac_try_echo=$ac_try;;
32504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32505 (eval "$ac_compile") 2>conftest.er1
32507 grep -v '^ *+' conftest.er1 >conftest.err
32509 cat conftest.err >&5
32510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32511 (exit $ac_status); } &&
32512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32513 { (case "(($ac_try" in
32514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32515 *) ac_try_echo=$ac_try;;
32517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32518 (eval "$ac_try") 2>&5
32520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32521 (exit $ac_status); }; } &&
32522 { ac_try='test -s conftest.$ac_objext'
32523 { (case "(($ac_try" in
32524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32525 *) ac_try_echo=$ac_try;;
32527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32528 (eval "$ac_try") 2>&5
32530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32531 (exit $ac_status); }; }; then
32532 ac_header_compiler=yes
32534 echo "$as_me: failed program was:" >&5
32535 sed 's/^/| /' conftest.$ac_ext >&5
32537 ac_header_compiler=no
32540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32542 echo "${ECHO_T}$ac_header_compiler" >&6; }
32544 # Is the header present?
32545 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32547 cat >conftest.$ac_ext <<_ACEOF
32550 cat confdefs.h >>conftest.$ac_ext
32551 cat >>conftest.$ac_ext <<_ACEOF
32552 /* end confdefs.h. */
32553 #include <$ac_header>
32555 if { (ac_try="$ac_cpp conftest.$ac_ext"
32556 case "(($ac_try" in
32557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32558 *) ac_try_echo=$ac_try;;
32560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32563 grep -v '^ *+' conftest.er1 >conftest.err
32565 cat conftest.err >&5
32566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32567 (exit $ac_status); } >/dev/null; then
32568 if test -s conftest.err; then
32569 ac_cpp_err=$ac_c_preproc_warn_flag
32570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32577 if test -z "$ac_cpp_err"; then
32578 ac_header_preproc=yes
32580 echo "$as_me: failed program was:" >&5
32581 sed 's/^/| /' conftest.$ac_ext >&5
32583 ac_header_preproc=no
32586 rm -f conftest.err conftest.$ac_ext
32587 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32588 echo "${ECHO_T}$ac_header_preproc" >&6; }
32590 # So? What about this header?
32591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32596 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32597 ac_header_preproc=yes
32600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32603 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32604 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32605 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32606 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32607 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32610 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32611 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32613 ## ----------------------------------- ##
32614 ## Report this to llvmbugs@cs.uiuc.edu ##
32615 ## ----------------------------------- ##
32617 ) | sed "s/^/$as_me: WARNING: /" >&2
32620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32623 echo $ECHO_N "(cached) $ECHO_C" >&6
32625 eval "$as_ac_Header=\$ac_header_preproc"
32627 ac_res=`eval echo '${'$as_ac_Header'}'`
32628 { echo "$as_me:$LINENO: result: $ac_res" >&5
32629 echo "${ECHO_T}$ac_res" >&6; }
32632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32633 cat >>confdefs.h <<_ACEOF
32634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32642 for ac_func in getpagesize
32644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32645 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32647 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32648 echo $ECHO_N "(cached) $ECHO_C" >&6
32650 cat >conftest.$ac_ext <<_ACEOF
32653 cat confdefs.h >>conftest.$ac_ext
32654 cat >>conftest.$ac_ext <<_ACEOF
32655 /* end confdefs.h. */
32656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32658 #define $ac_func innocuous_$ac_func
32660 /* System header to define __stub macros and hopefully few prototypes,
32661 which can conflict with char $ac_func (); below.
32662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32663 <limits.h> exists even on freestanding compilers. */
32666 # include <limits.h>
32668 # include <assert.h>
32673 /* Override any GCC internal prototype to avoid an error.
32674 Use char because int might match the return type of a GCC
32675 builtin and then its argument prototype would still apply. */
32680 /* The GNU C library defines this for functions which it implements
32681 to always fail with ENOSYS. Some functions are actually named
32682 something starting with __ and the normal name is an alias. */
32683 #if defined __stub_$ac_func || defined __stub___$ac_func
32690 return $ac_func ();
32695 rm -f conftest.$ac_objext conftest$ac_exeext
32696 if { (ac_try="$ac_link"
32697 case "(($ac_try" in
32698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32699 *) ac_try_echo=$ac_try;;
32701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32702 (eval "$ac_link") 2>conftest.er1
32704 grep -v '^ *+' conftest.er1 >conftest.err
32706 cat conftest.err >&5
32707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32708 (exit $ac_status); } &&
32709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32710 { (case "(($ac_try" in
32711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32712 *) ac_try_echo=$ac_try;;
32714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32715 (eval "$ac_try") 2>&5
32717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32718 (exit $ac_status); }; } &&
32719 { ac_try='test -s conftest$ac_exeext'
32720 { (case "(($ac_try" in
32721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32722 *) ac_try_echo=$ac_try;;
32724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32725 (eval "$ac_try") 2>&5
32727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32728 (exit $ac_status); }; }; then
32729 eval "$as_ac_var=yes"
32731 echo "$as_me: failed program was:" >&5
32732 sed 's/^/| /' conftest.$ac_ext >&5
32734 eval "$as_ac_var=no"
32737 rm -f core conftest.err conftest.$ac_objext \
32738 conftest$ac_exeext conftest.$ac_ext
32740 ac_res=`eval echo '${'$as_ac_var'}'`
32741 { echo "$as_me:$LINENO: result: $ac_res" >&5
32742 echo "${ECHO_T}$ac_res" >&6; }
32743 if test `eval echo '${'$as_ac_var'}'` = yes; then
32744 cat >>confdefs.h <<_ACEOF
32745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32751 { echo "$as_me:$LINENO: checking for working mmap" >&5
32752 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
32753 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32754 echo $ECHO_N "(cached) $ECHO_C" >&6
32756 if test "$cross_compiling" = yes; then
32757 ac_cv_func_mmap_fixed_mapped=no
32759 cat >conftest.$ac_ext <<_ACEOF
32762 cat confdefs.h >>conftest.$ac_ext
32763 cat >>conftest.$ac_ext <<_ACEOF
32764 /* end confdefs.h. */
32765 $ac_includes_default
32766 /* malloc might have been renamed as rpl_malloc. */
32769 /* Thanks to Mike Haertel and Jim Avera for this test.
32770 Here is a matrix of mmap possibilities:
32771 mmap private not fixed
32772 mmap private fixed at somewhere currently unmapped
32773 mmap private fixed at somewhere already mapped
32774 mmap shared not fixed
32775 mmap shared fixed at somewhere currently unmapped
32776 mmap shared fixed at somewhere already mapped
32777 For private mappings, we should verify that changes cannot be read()
32778 back from the file, nor mmap's back from the file at a different
32779 address. (There have been systems where private was not correctly
32780 implemented like the infamous i386 svr4.0, and systems where the
32781 VM page cache was not coherent with the file system buffer cache
32782 like early versions of FreeBSD and possibly contemporary NetBSD.)
32783 For shared mappings, we should conversely verify that changes get
32784 propagated back to all the places they're supposed to be.
32786 Grep wants private fixed already mapped.
32787 The main things grep needs to know about mmap are:
32788 * does it exist and is it safe to write into the mmap'd area
32789 * how to use it (BSD variants) */
32792 #include <sys/mman.h>
32794 #if !STDC_HEADERS && !HAVE_STDLIB_H
32798 /* This mess was copied from the GNU getpagesize.h. */
32799 #if !HAVE_GETPAGESIZE
32800 /* Assume that all systems that can run configure have sys/param.h. */
32801 # if !HAVE_SYS_PARAM_H
32802 # define HAVE_SYS_PARAM_H 1
32805 # ifdef _SC_PAGESIZE
32806 # define getpagesize() sysconf(_SC_PAGESIZE)
32807 # else /* no _SC_PAGESIZE */
32808 # if HAVE_SYS_PARAM_H
32809 # include <sys/param.h>
32810 # ifdef EXEC_PAGESIZE
32811 # define getpagesize() EXEC_PAGESIZE
32812 # else /* no EXEC_PAGESIZE */
32814 # define getpagesize() NBPG * CLSIZE
32817 # endif /* no CLSIZE */
32818 # else /* no NBPG */
32820 # define getpagesize() NBPC
32821 # else /* no NBPC */
32823 # define getpagesize() PAGESIZE
32824 # endif /* PAGESIZE */
32825 # endif /* no NBPC */
32826 # endif /* no NBPG */
32827 # endif /* no EXEC_PAGESIZE */
32828 # else /* no HAVE_SYS_PARAM_H */
32829 # define getpagesize() 8192 /* punt totally */
32830 # endif /* no HAVE_SYS_PARAM_H */
32831 # endif /* no _SC_PAGESIZE */
32833 #endif /* no HAVE_GETPAGESIZE */
32838 char *data, *data2, *data3;
32842 pagesize = getpagesize ();
32844 /* First, make a file with some known garbage in it. */
32845 data = (char *) malloc (pagesize);
32848 for (i = 0; i < pagesize; ++i)
32849 *(data + i) = rand ();
32851 fd = creat ("conftest.mmap", 0600);
32854 if (write (fd, data, pagesize) != pagesize)
32858 /* Next, try to mmap the file at a fixed address which already has
32859 something else allocated at it. If we can, also make sure that
32860 we see the same garbage. */
32861 fd = open ("conftest.mmap", O_RDWR);
32864 data2 = (char *) malloc (2 * pagesize);
32867 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
32868 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
32869 MAP_PRIVATE | MAP_FIXED, fd, 0L))
32871 for (i = 0; i < pagesize; ++i)
32872 if (*(data + i) != *(data2 + i))
32875 /* Finally, make sure that changes to the mapped area do not
32876 percolate back to the file as seen by read(). (This is a bug on
32877 some variants of i386 svr4.0.) */
32878 for (i = 0; i < pagesize; ++i)
32879 *(data2 + i) = *(data2 + i) + 1;
32880 data3 = (char *) malloc (pagesize);
32883 if (read (fd, data3, pagesize) != pagesize)
32885 for (i = 0; i < pagesize; ++i)
32886 if (*(data + i) != *(data3 + i))
32892 rm -f conftest$ac_exeext
32893 if { (ac_try="$ac_link"
32894 case "(($ac_try" in
32895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32896 *) ac_try_echo=$ac_try;;
32898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32899 (eval "$ac_link") 2>&5
32901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32903 { (case "(($ac_try" in
32904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32905 *) ac_try_echo=$ac_try;;
32907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32908 (eval "$ac_try") 2>&5
32910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32911 (exit $ac_status); }; }; then
32912 ac_cv_func_mmap_fixed_mapped=yes
32914 echo "$as_me: program exited with status $ac_status" >&5
32915 echo "$as_me: failed program was:" >&5
32916 sed 's/^/| /' conftest.$ac_ext >&5
32918 ( exit $ac_status )
32919 ac_cv_func_mmap_fixed_mapped=no
32921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32926 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
32927 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
32928 if test $ac_cv_func_mmap_fixed_mapped = yes; then
32930 cat >>confdefs.h <<\_ACEOF
32931 #define HAVE_MMAP 1
32935 rm -f conftest.mmap
32937 { echo "$as_me:$LINENO: checking for mmap of files" >&5
32938 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
32939 if test "${ac_cv_func_mmap_file+set}" = set; then
32940 echo $ECHO_N "(cached) $ECHO_C" >&6
32943 ac_cpp='$CPP $CPPFLAGS'
32944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32948 if test "$cross_compiling" = yes; then
32949 ac_cv_func_mmap_file=no
32951 cat >conftest.$ac_ext <<_ACEOF
32955 cat confdefs.h >>conftest.$ac_ext
32956 cat >>conftest.$ac_ext <<_ACEOF
32957 /* end confdefs.h. */
32959 #include <sys/types.h>
32960 #include <sys/mman.h>
32968 fd = creat ("foo",0777);
32969 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
32971 return (fd != (int) MAP_FAILED);
32976 rm -f conftest$ac_exeext
32977 if { (ac_try="$ac_link"
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_link") 2>&5
32985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32987 { (case "(($ac_try" in
32988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32989 *) ac_try_echo=$ac_try;;
32991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32992 (eval "$ac_try") 2>&5
32994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32995 (exit $ac_status); }; }; then
32996 ac_cv_func_mmap_file=yes
32998 echo "$as_me: program exited with status $ac_status" >&5
32999 echo "$as_me: failed program was:" >&5
33000 sed 's/^/| /' conftest.$ac_ext >&5
33002 ( exit $ac_status )
33003 ac_cv_func_mmap_file=no
33005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33010 ac_cpp='$CPP $CPPFLAGS'
33011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33017 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33018 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33019 if test "$ac_cv_func_mmap_file" = yes; then
33021 cat >>confdefs.h <<\_ACEOF
33022 #define HAVE_MMAP_FILE
33029 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33030 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33031 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33032 echo $ECHO_N "(cached) $ECHO_C" >&6
33034 if test "$llvm_cv_os_type" = "Interix" ; then
33035 ac_cv_need_dev_zero_for_mmap=yes
33037 ac_cv_need_dev_zero_for_mmap=no
33041 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33042 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33043 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33045 cat >>confdefs.h <<\_ACEOF
33046 #define NEED_DEV_ZERO_FOR_MMAP 1
33050 { echo "$as_me:$LINENO: checking for mprotect" >&5
33051 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
33052 if test "${ac_cv_func_mprotect+set}" = set; then
33053 echo $ECHO_N "(cached) $ECHO_C" >&6
33055 cat >conftest.$ac_ext <<_ACEOF
33058 cat confdefs.h >>conftest.$ac_ext
33059 cat >>conftest.$ac_ext <<_ACEOF
33060 /* end confdefs.h. */
33061 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
33062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33063 #define mprotect innocuous_mprotect
33065 /* System header to define __stub macros and hopefully few prototypes,
33066 which can conflict with char mprotect (); below.
33067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33068 <limits.h> exists even on freestanding compilers. */
33071 # include <limits.h>
33073 # include <assert.h>
33078 /* Override any GCC internal prototype to avoid an error.
33079 Use char because int might match the return type of a GCC
33080 builtin and then its argument prototype would still apply. */
33085 /* The GNU C library defines this for functions which it implements
33086 to always fail with ENOSYS. Some functions are actually named
33087 something starting with __ and the normal name is an alias. */
33088 #if defined __stub_mprotect || defined __stub___mprotect
33095 return mprotect ();
33100 rm -f conftest.$ac_objext conftest$ac_exeext
33101 if { (ac_try="$ac_link"
33102 case "(($ac_try" in
33103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33104 *) ac_try_echo=$ac_try;;
33106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33107 (eval "$ac_link") 2>conftest.er1
33109 grep -v '^ *+' conftest.er1 >conftest.err
33111 cat conftest.err >&5
33112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33113 (exit $ac_status); } &&
33114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33115 { (case "(($ac_try" in
33116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33117 *) ac_try_echo=$ac_try;;
33119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33120 (eval "$ac_try") 2>&5
33122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33123 (exit $ac_status); }; } &&
33124 { ac_try='test -s conftest$ac_exeext'
33125 { (case "(($ac_try" in
33126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33127 *) ac_try_echo=$ac_try;;
33129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33130 (eval "$ac_try") 2>&5
33132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33133 (exit $ac_status); }; }; then
33134 ac_cv_func_mprotect=yes
33136 echo "$as_me: failed program was:" >&5
33137 sed 's/^/| /' conftest.$ac_ext >&5
33139 ac_cv_func_mprotect=no
33142 rm -f core conftest.err conftest.$ac_objext \
33143 conftest$ac_exeext conftest.$ac_ext
33145 { echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
33146 echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
33147 if test $ac_cv_func_mprotect = yes; then
33150 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
33151 echo "$as_me: error: Function mprotect() required but not found" >&2;}
33152 { (exit 1); exit 1; }; }
33156 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33158 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33159 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33161 if test "$ac_cv_func_mmap_file" = "no"
33163 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33164 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33168 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33169 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33170 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33171 echo $ECHO_N "(cached) $ECHO_C" >&6
33173 llvm_cv_llvmgcc_sanity="no"
33174 if test -x "$LLVMGCC" ; then
33175 cp /dev/null conftest.c
33176 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
33177 if test $? -eq 0 ; then
33178 llvm_cv_llvmgcc_sanity="yes"
33183 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33184 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33186 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33187 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33188 LLVMCC1=$llvmcc1path
33190 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33191 LLVMCC1PLUS=$llvmcc1pluspath
33193 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33194 LLVMGCCDIR=$llvmgccdir
33196 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33197 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33198 LLVMGCC_VERSION=$llvmgccversion
33200 LLVMGCC_MAJVERS=$llvmgccmajvers
33204 SHLIBEXT=$libltdl_cv_shlibext
33207 # Translate the various configuration directories and other basic
33208 # information into substitutions that will end up in Makefile.config.in
33209 # that these configured values can be used by the makefiles
33210 if test "${prefix}" == "NONE" ; then
33211 prefix="/usr/local"
33213 eval LLVM_PREFIX="${prefix}";
33214 eval LLVM_BINDIR="${prefix}/bin";
33215 eval LLVM_LIBDIR="${prefix}/lib";
33216 eval LLVM_DATADIR="${prefix}/share/llvm";
33217 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33218 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33219 eval LLVM_INCLUDEDIR="${prefix}/include";
33220 eval LLVM_INFODIR="${prefix}/info";
33221 eval LLVM_MANDIR="${prefix}/man";
33222 LLVM_CONFIGTIME=`date`
33234 # Place the various directores into the config.h file as #defines so that we
33235 # can know about the installation paths within LLVM.
33237 cat >>confdefs.h <<_ACEOF
33238 #define LLVM_PREFIX "$LLVM_PREFIX"
33242 cat >>confdefs.h <<_ACEOF
33243 #define LLVM_BINDIR "$LLVM_BINDIR"
33247 cat >>confdefs.h <<_ACEOF
33248 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33252 cat >>confdefs.h <<_ACEOF
33253 #define LLVM_DATADIR "$LLVM_DATADIR"
33257 cat >>confdefs.h <<_ACEOF
33258 #define LLVM_DATADIR "$LLVM_DOCSDIR"
33262 cat >>confdefs.h <<_ACEOF
33263 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33267 cat >>confdefs.h <<_ACEOF
33268 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33272 cat >>confdefs.h <<_ACEOF
33273 #define LLVM_INFODIR "$LLVM_INFODIR"
33277 cat >>confdefs.h <<_ACEOF
33278 #define LLVM_MANDIR "$LLVM_MANDIR"
33282 cat >>confdefs.h <<_ACEOF
33283 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33288 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33290 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33292 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
33294 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
33296 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
33299 ac_config_files="$ac_config_files Makefile.config"
33302 ac_config_files="$ac_config_files llvm.spec"
33305 ac_config_files="$ac_config_files docs/doxygen.cfg"
33308 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33311 ac_config_commands="$ac_config_commands setup"
33313 ac_config_commands="$ac_config_commands Makefile"
33316 ac_config_commands="$ac_config_commands Makefile.common"
33319 ac_config_commands="$ac_config_commands examples/Makefile"
33322 ac_config_commands="$ac_config_commands lib/Makefile"
33325 ac_config_commands="$ac_config_commands runtime/Makefile"
33328 ac_config_commands="$ac_config_commands test/Makefile"
33331 ac_config_commands="$ac_config_commands test/Makefile.tests"
33334 ac_config_commands="$ac_config_commands tools/Makefile"
33337 ac_config_commands="$ac_config_commands utils/Makefile"
33340 ac_config_commands="$ac_config_commands projects/Makefile"
33344 cat >confcache <<\_ACEOF
33345 # This file is a shell script that caches the results of configure
33346 # tests run on this system so they can be shared between configure
33347 # scripts and configure runs, see configure's option --config-cache.
33348 # It is not useful on other systems. If it contains results you don't
33349 # want to keep, you may remove or edit it.
33351 # config.status only pays attention to the cache file if you give it
33352 # the --recheck option to rerun configure.
33354 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33355 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33356 # following values.
33360 # The following way of writing the cache mishandles newlines in values,
33361 # but we know of no workaround that is simple, portable, and efficient.
33362 # So, we kill variables containing newlines.
33363 # Ultrix sh set writes to stderr and can't be redirected directly,
33364 # and sets the high bit in the cache file unless we assign to the vars.
33366 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33367 eval ac_val=\$$ac_var
33371 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33372 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33375 _ | IFS | as_nl) ;; #(
33376 *) $as_unset $ac_var ;;
33382 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33383 *${as_nl}ac_space=\ *)
33384 # `set' does not quote correctly, so add quotes (double-quote
33385 # substitution turns \\\\ into \\, and sed turns \\ into \).
33388 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33391 # `set' quotes correctly as required by POSIX, so do not add quotes.
33392 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33401 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33403 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33405 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33406 if test -w "$cache_file"; then
33407 test "x$cache_file" != "x/dev/null" &&
33408 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33409 echo "$as_me: updating cache $cache_file" >&6;}
33410 cat confcache >$cache_file
33412 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33413 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33418 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33419 # Let make expand exec_prefix.
33420 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33422 DEFS=-DHAVE_CONFIG_H
33426 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33427 # 1. Remove the extension, and $U if already installed.
33428 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33429 ac_i=`echo "$ac_i" | sed "$ac_script"`
33430 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33431 # will be set to the directory where LIBOBJS objects are built.
33432 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33433 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33435 LIBOBJS=$ac_libobjs
33437 LTLIBOBJS=$ac_ltlibobjs
33440 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33441 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33442 Usually this means the macro was only invoked conditionally." >&5
33443 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33444 Usually this means the macro was only invoked conditionally." >&2;}
33445 { (exit 1); exit 1; }; }
33447 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33448 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33449 Usually this means the macro was only invoked conditionally." >&5
33450 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33451 Usually this means the macro was only invoked conditionally." >&2;}
33452 { (exit 1); exit 1; }; }
33455 : ${CONFIG_STATUS=./config.status}
33456 ac_clean_files_save=$ac_clean_files
33457 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33458 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33459 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33460 cat >$CONFIG_STATUS <<_ACEOF
33462 # Generated by $as_me.
33463 # Run this file to recreate the current configuration.
33464 # Compiler output produced by configure, useful for debugging
33465 # configure, is in config.log if it exists.
33468 ac_cs_recheck=false
33470 SHELL=\${CONFIG_SHELL-$SHELL}
33473 cat >>$CONFIG_STATUS <<\_ACEOF
33474 ## --------------------- ##
33475 ## M4sh Initialization. ##
33476 ## --------------------- ##
33478 # Be Bourne compatible
33479 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33482 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33483 # is contrary to our usage. Disable this feature.
33484 alias -g '${1+"$@"}'='"$@"'
33485 setopt NO_GLOB_SUBST
33487 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33489 BIN_SH=xpg4; export BIN_SH # for Tru64
33490 DUALCASE=1; export DUALCASE # for MKS sh
33494 # Avoid depending upon Character Ranges.
33495 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33496 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33497 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33498 as_cr_digits='0123456789'
33499 as_cr_alnum=$as_cr_Letters$as_cr_digits
33501 # The user is always right.
33502 if test "${PATH_SEPARATOR+set}" != set; then
33503 echo "#! /bin/sh" >conf$$.sh
33504 echo "exit 0" >>conf$$.sh
33506 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33514 # Support unset when possible.
33515 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33523 # We need space, tab and new line, in precisely that order. Quoting is
33524 # there to prevent editors from complaining about space-tab.
33525 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33526 # splitting by setting IFS to empty value.)
33531 # Find who we are. Look in the path if we contain no directory separator.
33533 *[\\/]* ) as_myself=$0 ;;
33534 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33535 for as_dir in $PATH
33538 test -z "$as_dir" && as_dir=.
33539 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33545 # We did not find ourselves, most probably we were run as `sh COMMAND'
33546 # in which case we are not to be found in the path.
33547 if test "x$as_myself" = x; then
33550 if test ! -f "$as_myself"; then
33551 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33552 { (exit 1); exit 1; }
33555 # Work around bugs in pre-3.0 UWIN ksh.
33556 for as_var in ENV MAIL MAILPATH
33557 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33565 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33566 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33567 LC_TELEPHONE LC_TIME
33569 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33570 eval $as_var=C; export $as_var
33572 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33576 # Required to use basename.
33577 if expr a : '\(a\)' >/dev/null 2>&1 &&
33578 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33584 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33585 as_basename=basename
33591 # Name of the executable.
33592 as_me=`$as_basename -- "$0" ||
33593 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33594 X"$0" : 'X\(//\)$' \| \
33595 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33597 sed '/^.*\/\([^/][^/]*\)\/*$/{
33616 as_lineno_1=$LINENO
33617 as_lineno_2=$LINENO
33618 test "x$as_lineno_1" != "x$as_lineno_2" &&
33619 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33621 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33622 # uniformly replaced by the line number. The first 'sed' inserts a
33623 # line-number line after each line using $LINENO; the second 'sed'
33624 # does the real work. The second script uses 'N' to pair each
33625 # line-number line with the line containing $LINENO, and appends
33626 # trailing '-' during substitution so that $LINENO is not a special
33627 # case at line end.
33628 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33629 # scripts with optimization help from Paolo Bonzini. Blame Lee
33630 # E. McMahon (1931-1989) for sed's syntax. :-)
33642 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33645 ' >$as_me.lineno &&
33646 chmod +x "$as_me.lineno" ||
33647 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33648 { (exit 1); exit 1; }; }
33650 # Don't try to exec as it changes $[0], causing all sort of problems
33651 # (the dirname of $[0] is not the place where we might find the
33652 # original and so on. Autoconf is especially sensitive to this).
33653 . "./$as_me.lineno"
33654 # Exit status is that of the last command.
33659 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33665 ECHO_C= ECHO_N= ECHO_T=
33666 case `echo -n x` in
33668 case `echo 'x\c'` in
33669 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33676 if expr a : '\(a\)' >/dev/null 2>&1 &&
33677 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33683 rm -f conf$$ conf$$.exe conf$$.file
33684 if test -d conf$$.dir; then
33685 rm -f conf$$.dir/conf$$.file
33691 if ln -s conf$$.file conf$$ 2>/dev/null; then
33693 # ... but there are two gotchas:
33694 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33695 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33696 # In both cases, we have to default to `cp -p'.
33697 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33699 elif ln conf$$.file conf$$ 2>/dev/null; then
33704 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33705 rmdir conf$$.dir 2>/dev/null
33707 if mkdir -p . 2>/dev/null; then
33710 test -d ./-p && rmdir ./-p
33714 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
33715 # systems may use methods other than mode bits to determine executability.
33716 cat >conf$$.file <<_ASEOF
33720 chmod +x conf$$.file
33721 if test -x conf$$.file >/dev/null 2>&1; then
33722 as_executable_p="test -x"
33728 # Sed expression to map a string onto a valid CPP name.
33729 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33731 # Sed expression to map a string onto a valid variable name.
33732 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33737 # Save the log message, to keep $[0] and so on meaningful, and to
33738 # report actual input values of CONFIG_FILES etc. instead of their
33739 # values after options handling.
33741 This file was extended by llvm $as_me 1.9cvs, which was
33742 generated by GNU Autoconf 2.60. Invocation command line was
33744 CONFIG_FILES = $CONFIG_FILES
33745 CONFIG_HEADERS = $CONFIG_HEADERS
33746 CONFIG_LINKS = $CONFIG_LINKS
33747 CONFIG_COMMANDS = $CONFIG_COMMANDS
33750 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33755 cat >>$CONFIG_STATUS <<_ACEOF
33756 # Files that config.status was made for.
33757 config_files="$ac_config_files"
33758 config_headers="$ac_config_headers"
33759 config_commands="$ac_config_commands"
33763 cat >>$CONFIG_STATUS <<\_ACEOF
33765 \`$as_me' instantiates files from templates according to the
33766 current configuration.
33768 Usage: $0 [OPTIONS] [FILE]...
33770 -h, --help print this help, then exit
33771 -V, --version print version number, then exit
33772 -q, --quiet do not print progress messages
33773 -d, --debug don't remove temporary files
33774 --recheck update $as_me by reconfiguring in the same conditions
33775 --file=FILE[:TEMPLATE]
33776 instantiate the configuration file FILE
33777 --header=FILE[:TEMPLATE]
33778 instantiate the configuration header FILE
33780 Configuration files:
33783 Configuration headers:
33786 Configuration commands:
33789 Report bugs to <bug-autoconf@gnu.org>."
33792 cat >>$CONFIG_STATUS <<_ACEOF
33794 llvm config.status 1.9cvs
33795 configured by $0, generated by GNU Autoconf 2.60,
33796 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33798 Copyright (C) 2006 Free Software Foundation, Inc.
33799 This config.status script is free software; the Free Software Foundation
33800 gives unlimited permission to copy, distribute and modify it."
33807 cat >>$CONFIG_STATUS <<\_ACEOF
33808 # If no file are specified by the user, then we need to provide default
33809 # value. By we need to know if files were specified by the user.
33815 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33816 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33827 # Handling of the options.
33828 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33830 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33831 echo "$ac_cs_version"; exit ;;
33832 --debug | --debu | --deb | --de | --d | -d )
33834 --file | --fil | --fi | --f )
33836 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33837 ac_need_defaults=false;;
33838 --header | --heade | --head | --hea )
33840 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33841 ac_need_defaults=false;;
33843 # Conflict between --help and --header
33844 { echo "$as_me: error: ambiguous option: $1
33845 Try \`$0 --help' for more information." >&2
33846 { (exit 1); exit 1; }; };;
33847 --help | --hel | -h )
33848 echo "$ac_cs_usage"; exit ;;
33849 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33850 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33853 # This is an error.
33854 -*) { echo "$as_me: error: unrecognized option: $1
33855 Try \`$0 --help' for more information." >&2
33856 { (exit 1); exit 1; }; } ;;
33858 *) ac_config_targets="$ac_config_targets $1"
33859 ac_need_defaults=false ;;
33865 ac_configure_extra_args=
33867 if $ac_cs_silent; then
33869 ac_configure_extra_args="$ac_configure_extra_args --silent"
33873 cat >>$CONFIG_STATUS <<_ACEOF
33874 if \$ac_cs_recheck; then
33875 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33876 CONFIG_SHELL=$SHELL
33877 export CONFIG_SHELL
33878 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33882 cat >>$CONFIG_STATUS <<\_ACEOF
33886 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33887 ## Running $as_me. ##
33893 cat >>$CONFIG_STATUS <<_ACEOF
33897 llvm_src="${srcdir}"
33901 cat >>$CONFIG_STATUS <<\_ACEOF
33903 # Handling of arguments.
33904 for ac_config_target in $ac_config_targets
33906 case $ac_config_target in
33907 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
33908 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
33909 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
33910 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
33911 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
33912 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
33913 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
33914 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
33915 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
33916 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
33917 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
33918 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
33919 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
33920 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
33921 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
33922 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
33923 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
33924 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
33925 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
33926 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
33928 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33929 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33930 { (exit 1); exit 1; }; };;
33935 # If the user did not use the arguments to specify the items to instantiate,
33936 # then the envvar interface is used. Set only those that are not.
33937 # We use the long form for the default assignment because of an extremely
33938 # bizarre bug on SunOS 4.1.3.
33939 if $ac_need_defaults; then
33940 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33941 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33942 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33945 # Have a temporary directory for convenience. Make it in the build tree
33946 # simply because there is no reason against having it here, and in addition,
33947 # creating and moving files from /tmp can sometimes cause problems.
33948 # Hook for its removal unless debugging.
33949 # Note that there is a small window in which the directory will not be cleaned:
33950 # after its creation but before its name has been assigned to `$tmp'.
33954 trap 'exit_status=$?
33955 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33957 trap '{ (exit 1); exit 1; }' 1 2 13 15
33959 # Create a (secure) tmp directory for tmp files.
33962 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33963 test -n "$tmp" && test -d "$tmp"
33966 tmp=./conf$$-$RANDOM
33967 (umask 077 && mkdir "$tmp")
33970 echo "$me: cannot create a temporary directory in ." >&2
33971 { (exit 1); exit 1; }
33975 # Set up the sed scripts for CONFIG_FILES section.
33978 # No need to generate the scripts if there are no CONFIG_FILES.
33979 # This happens for instance when ./config.status config.h
33980 if test -n "$CONFIG_FILES"; then
33987 for ac_last_try in false false false false false :; do
33988 cat >conf$$subs.sed <<_ACEOF
33989 SHELL!$SHELL$ac_delim
33990 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
33991 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
33992 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
33993 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
33994 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
33995 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
33996 exec_prefix!$exec_prefix$ac_delim
33997 prefix!$prefix$ac_delim
33998 program_transform_name!$program_transform_name$ac_delim
33999 bindir!$bindir$ac_delim
34000 sbindir!$sbindir$ac_delim
34001 libexecdir!$libexecdir$ac_delim
34002 datarootdir!$datarootdir$ac_delim
34003 datadir!$datadir$ac_delim
34004 sysconfdir!$sysconfdir$ac_delim
34005 sharedstatedir!$sharedstatedir$ac_delim
34006 localstatedir!$localstatedir$ac_delim
34007 includedir!$includedir$ac_delim
34008 oldincludedir!$oldincludedir$ac_delim
34009 docdir!$docdir$ac_delim
34010 infodir!$infodir$ac_delim
34011 htmldir!$htmldir$ac_delim
34012 dvidir!$dvidir$ac_delim
34013 pdfdir!$pdfdir$ac_delim
34014 psdir!$psdir$ac_delim
34015 libdir!$libdir$ac_delim
34016 localedir!$localedir$ac_delim
34017 mandir!$mandir$ac_delim
34018 DEFS!$DEFS$ac_delim
34019 ECHO_C!$ECHO_C$ac_delim
34020 ECHO_N!$ECHO_N$ac_delim
34021 ECHO_T!$ECHO_T$ac_delim
34022 LIBS!$LIBS$ac_delim
34023 build_alias!$build_alias$ac_delim
34024 host_alias!$host_alias$ac_delim
34025 target_alias!$target_alias$ac_delim
34026 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34027 subdirs!$subdirs$ac_delim
34028 build!$build$ac_delim
34029 build_cpu!$build_cpu$ac_delim
34030 build_vendor!$build_vendor$ac_delim
34031 build_os!$build_os$ac_delim
34032 host!$host$ac_delim
34033 host_cpu!$host_cpu$ac_delim
34034 host_vendor!$host_vendor$ac_delim
34035 host_os!$host_os$ac_delim
34036 target!$target$ac_delim
34037 target_cpu!$target_cpu$ac_delim
34038 target_vendor!$target_vendor$ac_delim
34039 target_os!$target_os$ac_delim
34041 LINKALL!$LINKALL$ac_delim
34042 NOLINKALL!$NOLINKALL$ac_delim
34043 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34044 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34045 ARCH!$ARCH$ac_delim
34046 ENDIAN!$ENDIAN$ac_delim
34048 CFLAGS!$CFLAGS$ac_delim
34049 LDFLAGS!$LDFLAGS$ac_delim
34050 CPPFLAGS!$CPPFLAGS$ac_delim
34051 ac_ct_CC!$ac_ct_CC$ac_delim
34052 EXEEXT!$EXEEXT$ac_delim
34053 OBJEXT!$OBJEXT$ac_delim
34055 GREP!$GREP$ac_delim
34056 EGREP!$EGREP$ac_delim
34057 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34058 BUILD_CC!$BUILD_CC$ac_delim
34059 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34060 CVSBUILD!$CVSBUILD$ac_delim
34061 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34062 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34063 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34065 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34066 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34067 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34068 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34069 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34071 CXXFLAGS!$CXXFLAGS$ac_delim
34072 ac_ct_CXX!$ac_ct_CXX$ac_delim
34074 LEXLIB!$LEXLIB$ac_delim
34075 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34076 FLEX!$FLEX$ac_delim
34077 YACC!$YACC$ac_delim
34078 YFLAGS!$YFLAGS$ac_delim
34079 BISON!$BISON$ac_delim
34081 ifGNUmake!$ifGNUmake$ac_delim
34082 LN_S!$LN_S$ac_delim
34085 DATE!$DATE$ac_delim
34088 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34090 elif $ac_last_try; then
34091 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34092 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34093 { (exit 1); exit 1; }; }
34095 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34099 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34100 if test -n "$ac_eof"; then
34101 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34102 ac_eof=`expr $ac_eof + 1`
34105 cat >>$CONFIG_STATUS <<_ACEOF
34106 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34107 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34110 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34111 s/^/s,@/; s/!/@,|#_!!_#|/
34114 s/'"$ac_delim"'$/,g/; t
34116 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34117 ' >>$CONFIG_STATUS <conf$$subs.sed
34118 rm -f conf$$subs.sed
34119 cat >>$CONFIG_STATUS <<_ACEOF
34125 for ac_last_try in false false false false false :; do
34126 cat >conf$$subs.sed <<_ACEOF
34127 FIND!$FIND$ac_delim
34128 MKDIR!$MKDIR$ac_delim
34130 RANLIB!$RANLIB$ac_delim
34134 BINPWD!$BINPWD$ac_delim
34135 GRAPHVIZ!$GRAPHVIZ$ac_delim
34138 DOTTY!$DOTTY$ac_delim
34139 PERL!$PERL$ac_delim
34140 HAVE_PERL!$HAVE_PERL$ac_delim
34141 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34142 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34143 INSTALL_DATA!$INSTALL_DATA$ac_delim
34144 BZIP2!$BZIP2$ac_delim
34145 DOXYGEN!$DOXYGEN$ac_delim
34146 GROFF!$GROFF$ac_delim
34147 GZIP!$GZIP$ac_delim
34148 POD2HTML!$POD2HTML$ac_delim
34149 POD2MAN!$POD2MAN$ac_delim
34150 RUNTEST!$RUNTEST$ac_delim
34151 TCLSH!$TCLSH$ac_delim
34153 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34154 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34155 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34156 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34157 LIBADD_DL!$LIBADD_DL$ac_delim
34158 ECHO!$ECHO$ac_delim
34160 STRIP!$STRIP$ac_delim
34161 CXXCPP!$CXXCPP$ac_delim
34163 FFLAGS!$FFLAGS$ac_delim
34164 ac_ct_F77!$ac_ct_F77$ac_delim
34165 LIBTOOL!$LIBTOOL$ac_delim
34166 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34167 LLVMGCC!$LLVMGCC$ac_delim
34168 LLVMGXX!$LLVMGXX$ac_delim
34169 ALLOCA!$ALLOCA$ac_delim
34170 MMAP_FILE!$MMAP_FILE$ac_delim
34171 LLVMCC1!$LLVMCC1$ac_delim
34172 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34173 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34174 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34175 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34176 SHLIBEXT!$SHLIBEXT$ac_delim
34177 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34178 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34179 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34180 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34181 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34182 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34183 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34184 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34185 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34186 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34187 LIBOBJS!$LIBOBJS$ac_delim
34188 LTLIBOBJS!$LTLIBOBJS$ac_delim
34191 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 62; then
34193 elif $ac_last_try; then
34194 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34195 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34196 { (exit 1); exit 1; }; }
34198 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34202 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34203 if test -n "$ac_eof"; then
34204 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34205 ac_eof=`expr $ac_eof + 1`
34208 cat >>$CONFIG_STATUS <<_ACEOF
34209 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34210 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34213 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34214 s/^/s,@/; s/!/@,|#_!!_#|/
34217 s/'"$ac_delim"'$/,g/; t
34219 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34220 ' >>$CONFIG_STATUS <conf$$subs.sed
34221 rm -f conf$$subs.sed
34222 cat >>$CONFIG_STATUS <<_ACEOF
34229 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34230 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34231 # trailing colons and then remove the whole line if VPATH becomes empty
34232 # (actually we leave an empty line to preserve line numbers).
34233 if test "x$srcdir" = x.; then
34234 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34235 s/:*\$(srcdir):*/:/
34236 s/:*\${srcdir}:*/:/
34238 s/^\([^=]*=[ ]*\):*/\1/
34244 cat >>$CONFIG_STATUS <<\_ACEOF
34245 fi # test -n "$CONFIG_FILES"
34248 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34251 :[FHLC]) ac_mode=$ac_tag; continue;;
34253 case $ac_mode$ac_tag in
34255 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34256 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34257 { (exit 1); exit 1; }; };;
34258 :[FH]-) ac_tag=-:-;;
34259 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34276 -) ac_f="$tmp/stdin";;
34277 *) # Look for the file first in the build tree, then in the source tree
34278 # (if the path is not absolute). The absolute path cannot be DOS-style,
34279 # because $ac_f cannot contain `:'.
34283 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34285 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34286 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34287 { (exit 1); exit 1; }; };;
34289 ac_file_inputs="$ac_file_inputs $ac_f"
34292 # Let's still pretend it is `configure' which instantiates (i.e., don't
34293 # use $as_me), people would be surprised to read:
34294 # /* config.h. Generated by config.status. */
34295 configure_input="Generated from "`IFS=:
34296 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34297 if test x"$ac_file" != x-; then
34298 configure_input="$ac_file. $configure_input"
34299 { echo "$as_me:$LINENO: creating $ac_file" >&5
34300 echo "$as_me: creating $ac_file" >&6;}
34304 *:-:* | *:-) cat >"$tmp/stdin";;
34309 ac_dir=`$as_dirname -- "$ac_file" ||
34310 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34311 X"$ac_file" : 'X\(//\)[^/]' \| \
34312 X"$ac_file" : 'X\(//\)$' \| \
34313 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34319 /^X\(\/\/\)[^/].*/{
34334 -*) as_dir=./$as_dir;;
34336 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34340 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34341 *) as_qdir=$as_dir;;
34343 as_dirs="'$as_qdir' $as_dirs"
34344 as_dir=`$as_dirname -- "$as_dir" ||
34345 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34346 X"$as_dir" : 'X\(//\)[^/]' \| \
34347 X"$as_dir" : 'X\(//\)$' \| \
34348 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34354 /^X\(\/\/\)[^/].*/{
34367 test -d "$as_dir" && break
34369 test -z "$as_dirs" || eval "mkdir $as_dirs"
34370 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34371 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34372 { (exit 1); exit 1; }; }; }
34376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34378 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34379 # A ".." for each directory in $ac_dir_suffix.
34380 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34381 case $ac_top_builddir_sub in
34382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34386 ac_abs_top_builddir=$ac_pwd
34387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34388 # for backward compatibility:
34389 ac_top_builddir=$ac_top_build_prefix
34392 .) # We are building in place.
34394 ac_top_srcdir=$ac_top_builddir_sub
34395 ac_abs_top_srcdir=$ac_pwd ;;
34396 [\\/]* | ?:[\\/]* ) # Absolute name.
34397 ac_srcdir=$srcdir$ac_dir_suffix;
34398 ac_top_srcdir=$srcdir
34399 ac_abs_top_srcdir=$srcdir ;;
34400 *) # Relative name.
34401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34402 ac_top_srcdir=$ac_top_build_prefix$srcdir
34403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34415 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34416 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34420 cat >>$CONFIG_STATUS <<\_ACEOF
34421 # If the template does not know about datarootdir, expand it.
34422 # FIXME: This hack should be removed a few years after 2.60.
34423 ac_datarootdir_hack=; ac_datarootdir_seen=
34425 case `sed -n '/datarootdir/ {
34434 ' $ac_file_inputs` in
34435 *datarootdir*) ac_datarootdir_seen=yes;;
34436 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34437 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34438 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34440 cat >>$CONFIG_STATUS <<_ACEOF
34441 ac_datarootdir_hack='
34442 s&@datadir@&$datadir&g
34443 s&@docdir@&$docdir&g
34444 s&@infodir@&$infodir&g
34445 s&@localedir@&$localedir&g
34446 s&@mandir@&$mandir&g
34447 s&\\\${datarootdir}&$datarootdir&g' ;;
34451 # Neutralize VPATH when `$srcdir' = `.'.
34452 # Shell code in configure.ac might set extrasub.
34453 # FIXME: do we really want to maintain this feature?
34454 cat >>$CONFIG_STATUS <<_ACEOF
34458 cat >>$CONFIG_STATUS <<\_ACEOF
34460 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34461 s&@configure_input@&$configure_input&;t t
34462 s&@top_builddir@&$ac_top_builddir_sub&;t t
34463 s&@srcdir@&$ac_srcdir&;t t
34464 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34465 s&@top_srcdir@&$ac_top_srcdir&;t t
34466 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34467 s&@builddir@&$ac_builddir&;t t
34468 s&@abs_builddir@&$ac_abs_builddir&;t t
34469 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34470 s&@INSTALL@&$ac_INSTALL&;t t
34471 $ac_datarootdir_hack
34472 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
34474 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34475 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34476 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34477 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34478 which seems to be undefined. Please make sure it is defined." >&5
34479 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34480 which seems to be undefined. Please make sure it is defined." >&2;}
34484 -) cat "$tmp/out"; rm -f "$tmp/out";;
34485 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34494 # Transform confdefs.h into a sed script `conftest.defines', that
34495 # substitutes the proper values into config.h.in to produce config.h.
34496 rm -f conftest.defines conftest.tail
34497 # First, append a space to every undef/define line, to ease matching.
34498 echo 's/$/ /' >conftest.defines
34499 # Then, protect against being on the right side of a sed subst, or in
34500 # an unquoted here document, in config.status. If some macros were
34501 # called several times there might be several #defines for the same
34502 # symbol, which is useless. But do not sort them, since the last
34503 # AC_DEFINE must be honored.
34504 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34505 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34506 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34507 # PARAMS is the parameter list in the macro definition--in most cases, it's
34508 # just an empty string.
34509 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34510 ac_dB='\\)[ (].*,\\1define\\2'
34518 s/^[ ]*#[ ]*define[ ][ ]*//
34523 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34524 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34525 ' >>conftest.defines
34527 # Remove the space that was appended to ease matching.
34528 # Then replace #undef with comments. This is necessary, for
34529 # example, in the case of _POSIX_SOURCE, which is predefined and required
34530 # on some systems where configure will not decide to define it.
34531 # (The regexp can be short, since the line contains either #define or #undef.)
34533 s,^[ #]*u.*,/* & */,' >>conftest.defines
34535 # Break up conftest.defines:
34536 ac_max_sed_lines=50
34538 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34539 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34540 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34542 ac_in='$ac_file_inputs'
34543 ac_out='"$tmp/out1"'
34544 ac_nxt='"$tmp/out2"'
34548 # Write a here document:
34549 cat >>$CONFIG_STATUS <<_ACEOF
34550 # First, check the format of the line:
34551 cat >"\$tmp/defines.sed" <<\\CEOF
34552 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34553 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34557 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34559 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34560 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34561 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34562 grep . conftest.tail >/dev/null || break
34563 rm -f conftest.defines
34564 mv conftest.tail conftest.defines
34566 rm -f conftest.defines conftest.tail
34568 echo "ac_result=$ac_in" >>$CONFIG_STATUS
34569 cat >>$CONFIG_STATUS <<\_ACEOF
34570 if test x"$ac_file" != x-; then
34571 echo "/* $configure_input */" >"$tmp/config.h"
34572 cat "$ac_result" >>"$tmp/config.h"
34573 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34574 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34575 echo "$as_me: $ac_file is unchanged" >&6;}
34578 mv "$tmp/config.h" $ac_file
34581 echo "/* $configure_input */"
34587 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34588 echo "$as_me: executing $ac_file commands" >&6;}
34593 case $ac_file$ac_mode in
34594 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34595 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34596 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34597 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34598 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34599 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34600 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34601 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
34602 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34603 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
34604 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34605 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34606 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34607 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34608 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34609 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34610 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34611 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34612 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34613 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34619 { (exit 0); exit 0; }
34621 chmod +x $CONFIG_STATUS
34622 ac_clean_files=$ac_clean_files_save
34625 # configure is writing to config.log, and then calls config.status.
34626 # config.status does its own redirection, appending to config.log.
34627 # Unfortunately, on DOS this fails, as config.log is still kept open
34628 # by configure, so config.status won't be able to write to it; its
34629 # output is simply discarded. So we exec the FD to /dev/null,
34630 # effectively closing config.log, so it can be properly (re)opened and
34631 # appended to by config.status. When coming back to configure, we
34632 # need to make the FD available again.
34633 if test "$no_create" != yes; then
34635 ac_config_status_args=
34636 test "$silent" = yes &&
34637 ac_config_status_args="$ac_config_status_args --quiet"
34639 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34641 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34642 # would make configure fail if this is the last instruction.
34643 $ac_cs_success || { (exit 1); exit 1; }
34647 # CONFIG_SUBDIRS section.
34649 if test "$no_recursion" != yes; then
34651 # Remove --cache-file and --srcdir arguments so they do not pile up.
34652 ac_sub_configure_args=
34654 eval "set x $ac_configure_args"
34658 if test -n "$ac_prev"; then
34663 -cache-file | --cache-file | --cache-fil | --cache-fi \
34664 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34665 ac_prev=cache_file ;;
34666 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34667 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34670 --config-cache | -C)
34672 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34674 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34676 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34678 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34682 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34684 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
34688 # Always prepend --prefix to ensure using the same prefix
34689 # in subdir configurations.
34690 ac_arg="--prefix=$prefix"
34692 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34694 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
34697 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34699 # Do not complain, so a configure script can configure whichever
34700 # parts of a large source tree are present.
34701 test -d "$srcdir/$ac_dir" || continue
34703 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34704 echo "$as_me:$LINENO: $ac_msg" >&5
34708 -*) as_dir=./$as_dir;;
34710 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34714 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34715 *) as_qdir=$as_dir;;
34717 as_dirs="'$as_qdir' $as_dirs"
34718 as_dir=`$as_dirname -- "$as_dir" ||
34719 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34720 X"$as_dir" : 'X\(//\)[^/]' \| \
34721 X"$as_dir" : 'X\(//\)$' \| \
34722 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34728 /^X\(\/\/\)[^/].*/{
34741 test -d "$as_dir" && break
34743 test -z "$as_dirs" || eval "mkdir $as_dirs"
34744 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34745 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34746 { (exit 1); exit 1; }; }; }
34750 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34752 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34753 # A ".." for each directory in $ac_dir_suffix.
34754 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34755 case $ac_top_builddir_sub in
34756 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34757 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34760 ac_abs_top_builddir=$ac_pwd
34761 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34762 # for backward compatibility:
34763 ac_top_builddir=$ac_top_build_prefix
34766 .) # We are building in place.
34768 ac_top_srcdir=$ac_top_builddir_sub
34769 ac_abs_top_srcdir=$ac_pwd ;;
34770 [\\/]* | ?:[\\/]* ) # Absolute name.
34771 ac_srcdir=$srcdir$ac_dir_suffix;
34772 ac_top_srcdir=$srcdir
34773 ac_abs_top_srcdir=$srcdir ;;
34774 *) # Relative name.
34775 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34776 ac_top_srcdir=$ac_top_build_prefix$srcdir
34777 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34779 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34784 # Check for guested configure; otherwise get Cygnus style configure.
34785 if test -f "$ac_srcdir/configure.gnu"; then
34786 ac_sub_configure=$ac_srcdir/configure.gnu
34787 elif test -f "$ac_srcdir/configure"; then
34788 ac_sub_configure=$ac_srcdir/configure
34789 elif test -f "$ac_srcdir/configure.in"; then
34790 # This should be Cygnus configure.
34791 ac_sub_configure=$ac_aux_dir/configure
34793 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34794 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34798 # The recursion is here.
34799 if test -n "$ac_sub_configure"; then
34800 # Make the cache file name correct relative to the subdirectory.
34801 case $cache_file in
34802 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
34803 *) # Relative name.
34804 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
34807 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34808 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34809 # The eval makes quoting arguments work.
34810 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34811 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34812 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
34813 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34814 { (exit 1); exit 1; }; }
34822 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
34823 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
34824 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
34825 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
34826 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
34827 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
34828 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
34829 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
34830 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
34831 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
34832 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}